crunker 1.3.0 → 2.0.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/.github/workflows/smoketest.yml +69 -0
- package/.prettierignore +1 -0
- package/.yarn/cache/@babel-cli-npm-7.16.8-b6817293f0-bb0cf50ff5.zip +0 -0
- package/.yarn/cache/@babel-code-frame-npm-7.14.5-4dc9115988-0adbe4f8d9.zip +0 -0
- package/.yarn/cache/@babel-code-frame-npm-7.16.7-093eb9e124-db2f7faa31.zip +0 -0
- package/.yarn/cache/@babel-compat-data-npm-7.15.0-48235b743d-65088d87b1.zip +0 -0
- package/.yarn/cache/@babel-compat-data-npm-7.16.4-9128f11195-4949ce54ea.zip +0 -0
- package/.yarn/cache/@babel-compat-data-npm-7.16.8-4a2b385eea-10da2dac5e.zip +0 -0
- package/.yarn/cache/@babel-core-npm-7.15.0-dbd73338b4-6f7ac97d2d.zip +0 -0
- package/.yarn/cache/@babel-core-npm-7.16.12-10529e0454-29b56f3cb7.zip +0 -0
- package/.yarn/cache/@babel-generator-npm-7.15.0-5b452bffe0-ef227c4c39.zip +0 -0
- package/.yarn/cache/@babel-generator-npm-7.16.8-f9d7f9b832-83af38b347.zip +0 -0
- package/.yarn/cache/@babel-helper-annotate-as-pure-npm-7.14.5-28a60a464c-18cefedda6.zip +0 -0
- package/.yarn/cache/@babel-helper-annotate-as-pure-npm-7.16.7-75d26b1e4c-d235be963f.zip +0 -0
- package/.yarn/cache/@babel-helper-builder-binary-assignment-operator-visitor-npm-7.16.7-fa4a09f41d-1784f19a57.zip +0 -0
- package/.yarn/cache/@babel-helper-compilation-targets-npm-7.15.0-9049b29d83-82a1f5d804.zip +0 -0
- package/.yarn/cache/@babel-helper-compilation-targets-npm-7.16.7-8031641957-7238aaee78.zip +0 -0
- package/.yarn/cache/@babel-helper-create-class-features-plugin-npm-7.16.10-67b14ec5a6-2ab266aac7.zip +0 -0
- package/.yarn/cache/@babel-helper-create-regexp-features-plugin-npm-7.14.5-0e774b7831-c2636d0a6e.zip +0 -0
- package/.yarn/cache/@babel-helper-create-regexp-features-plugin-npm-7.16.7-d07c4bfa42-f6015e0b81.zip +0 -0
- package/.yarn/cache/@babel-helper-define-polyfill-provider-npm-0.3.0-c19f133e9a-372378ac42.zip +0 -0
- package/.yarn/cache/@babel-helper-define-polyfill-provider-npm-0.3.1-7c6efdf410-e3e93cb22f.zip +0 -0
- package/.yarn/cache/@babel-helper-environment-visitor-npm-7.16.7-3ee2ba2019-c03a10105d.zip +0 -0
- package/.yarn/cache/@babel-helper-explode-assignable-expression-npm-7.16.7-29ba312670-ea2135ba36.zip +0 -0
- package/.yarn/cache/@babel-helper-function-name-npm-7.14.5-5fe13634f6-fd8ffa82f7.zip +0 -0
- package/.yarn/cache/@babel-helper-function-name-npm-7.16.7-aa24c7b296-fc77cbe7b1.zip +0 -0
- package/.yarn/cache/@babel-helper-get-function-arity-npm-7.14.5-e6a90e49c5-a60779918b.zip +0 -0
- package/.yarn/cache/@babel-helper-get-function-arity-npm-7.16.7-987b1b1bed-25d969fb20.zip +0 -0
- package/.yarn/cache/@babel-helper-hoist-variables-npm-7.14.5-e24b531b4d-35af58eebf.zip +0 -0
- package/.yarn/cache/@babel-helper-hoist-variables-npm-7.16.7-25cc3abba4-6ae1641f4a.zip +0 -0
- package/.yarn/cache/@babel-helper-member-expression-to-functions-npm-7.15.0-ba087ccd48-63b4824839.zip +0 -0
- package/.yarn/cache/@babel-helper-member-expression-to-functions-npm-7.16.7-56558bdc63-e275378022.zip +0 -0
- package/.yarn/cache/@babel-helper-module-imports-npm-7.14.5-11d168065b-b982799086.zip +0 -0
- package/.yarn/cache/@babel-helper-module-imports-npm-7.16.7-19c74fd92b-ddd2c4a600.zip +0 -0
- package/.yarn/cache/@babel-helper-module-transforms-npm-7.15.0-f23e907f24-65eca31a95.zip +0 -0
- package/.yarn/cache/@babel-helper-module-transforms-npm-7.16.7-4b3d4b8254-6e930ce776.zip +0 -0
- package/.yarn/cache/@babel-helper-optimise-call-expression-npm-7.14.5-9d0e7b0f83-c7af558c63.zip +0 -0
- package/.yarn/cache/@babel-helper-optimise-call-expression-npm-7.16.7-27e4a63d42-925feb877d.zip +0 -0
- package/.yarn/cache/@babel-helper-plugin-utils-npm-7.14.5-e35eef11cb-fe20e90a24.zip +0 -0
- package/.yarn/cache/@babel-helper-plugin-utils-npm-7.16.7-9e572698e0-d08dd86554.zip +0 -0
- package/.yarn/cache/@babel-helper-remap-async-to-generator-npm-7.16.8-9a3804d4f8-29282ee368.zip +0 -0
- package/.yarn/cache/@babel-helper-replace-supers-npm-7.15.0-72cc7ef51a-e1fce39b88.zip +0 -0
- package/.yarn/cache/@babel-helper-replace-supers-npm-7.16.7-a3d7cf1544-e5c0b6eb3d.zip +0 -0
- package/.yarn/cache/@babel-helper-simple-access-npm-7.14.8-2361368da7-c1dae88c95.zip +0 -0
- package/.yarn/cache/@babel-helper-simple-access-npm-7.16.7-c4dfb1f5e7-8d22c46c5e.zip +0 -0
- package/.yarn/cache/@babel-helper-skip-transparent-expression-wrappers-npm-7.16.0-caad6e8361-b9ed2896eb.zip +0 -0
- package/.yarn/cache/@babel-helper-split-export-declaration-npm-7.14.5-193bcc5a6e-93437025a3.zip +0 -0
- package/.yarn/cache/@babel-helper-split-export-declaration-npm-7.16.7-5b9ae90171-e10aaf1354.zip +0 -0
- package/.yarn/cache/@babel-helper-validator-identifier-npm-7.14.9-d7bb91b6de-58552531a7.zip +0 -0
- package/.yarn/cache/@babel-helper-validator-identifier-npm-7.15.7-a8f354e738-f041c28c53.zip +0 -0
- package/.yarn/cache/@babel-helper-validator-identifier-npm-7.16.7-8599fb00fc-dbb3db9d18.zip +0 -0
- package/.yarn/cache/@babel-helper-validator-option-npm-7.14.5-fd38dcf0bc-1b25c34a5c.zip +0 -0
- package/.yarn/cache/@babel-helper-validator-option-npm-7.16.7-d13e9c1d9e-c5ccc45191.zip +0 -0
- package/.yarn/cache/@babel-helper-wrap-function-npm-7.16.8-6f134e6cd3-d8aae4baca.zip +0 -0
- package/.yarn/cache/@babel-helpers-npm-7.15.3-e04be1bb7a-cd70614d61.zip +0 -0
- package/.yarn/cache/@babel-helpers-npm-7.16.7-69d23ddac5-75504c76b6.zip +0 -0
- package/.yarn/cache/@babel-highlight-npm-7.14.5-4a18106cbc-4e4b22fb88.zip +0 -0
- package/.yarn/cache/@babel-highlight-npm-7.16.10-626c03326c-1f1bdd752a.zip +0 -0
- package/.yarn/cache/@babel-parser-npm-7.15.3-8a396303bd-4b9ba7e8ff.zip +0 -0
- package/.yarn/cache/@babel-parser-npm-7.16.12-427f7b1500-af287f0f3d.zip +0 -0
- package/.yarn/cache/@babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression-npm-7.16.7-6dd7fba95d-bbb0f82a4c.zip +0 -0
- package/.yarn/cache/@babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining-npm-7.16.7-03f7cda86b-81b372651a.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-async-generator-functions-npm-7.16.8-69b50b5a7c-abd2c2c67d.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-class-properties-npm-7.16.7-a687cd42c3-3977e841e1.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-class-static-block-npm-7.16.7-1b4dfde7f8-3b95b5137e.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-dynamic-import-npm-7.16.7-c8dcbf7085-5992012484.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-export-namespace-from-npm-7.16.7-a284b3fed9-5016079a53.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-json-strings-npm-7.16.7-6050225322-ea6487918f.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-logical-assignment-operators-npm-7.16.7-c5b5395f79-c4cf18e10f.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-nullish-coalescing-operator-npm-7.16.7-45af3f7fdc-bfafc27016.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-numeric-separator-npm-7.16.7-e445f742d7-8e2fb0b328.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-object-rest-spread-npm-7.16.7-6092ff29d7-2d3740e4df.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-optional-catch-binding-npm-7.16.7-8ab736f892-4a422bb19a.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-optional-chaining-npm-7.16.7-f479fd3c81-e4a6c1ac7e.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-private-methods-npm-7.16.11-7bea0c364e-b333e5aa91.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-private-property-in-object-npm-7.16.7-0c73fbde73-666d668f51.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-unicode-property-regex-npm-7.14.5-d36f372112-58bd3277a9.zip +0 -0
- package/.yarn/cache/@babel-plugin-proposal-unicode-property-regex-npm-7.16.7-2fc47231f9-2b8a33713d.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-async-generators-npm-7.8.4-d10cf993c9-7ed1c1d9b9.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-class-properties-npm-7.12.13-002ee9d930-24f34b196d.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-class-static-block-npm-7.14.5-7bdd0ff1b3-3e80814b5b.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-dynamic-import-npm-7.8.3-fb9ff5634a-ce307af83c.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-export-namespace-from-npm-7.8.3-1747201aa9-85740478be.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-json-strings-npm-7.8.3-6dc7848179-bf5aea1f31.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-logical-assignment-operators-npm-7.10.4-72ae00fdf6-aff3357703.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-nullish-coalescing-operator-npm-7.8.3-8a723173b5-87aca49189.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-numeric-separator-npm-7.10.4-81444be605-01ec5547bd.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-object-rest-spread-npm-7.8.3-60bd05b6ae-fddcf581a5.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-optional-catch-binding-npm-7.8.3-ce337427d8-910d90e72b.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-optional-chaining-npm-7.8.3-f3f3c79579-eef94d53a1.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-private-property-in-object-npm-7.14.5-ee837fdbb2-b317174783.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-top-level-await-npm-7.14.5-60a0a2e83b-bbd1a56b09.zip +0 -0
- package/.yarn/cache/@babel-plugin-syntax-typescript-npm-7.16.7-fcf0d6f605-661e636060.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-arrow-functions-npm-7.16.7-d61043d479-2a6aa982c6.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-async-to-generator-npm-7.16.8-3487d66aa2-3a2e781800.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-block-scoped-functions-npm-7.16.7-58a044cde8-591e9f7543.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-block-scoping-npm-7.16.7-b3f0cafea0-f93b5441af.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-classes-npm-7.16.7-92bfc4a1af-791526a1bf.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-computed-properties-npm-7.16.7-9a63f7f0c2-28b17f7cfe.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-destructuring-npm-7.16.7-f1032c6079-d1c2e15e7b.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-dotall-regex-npm-7.14.5-c2010d2608-4da3dac958.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-dotall-regex-npm-7.16.7-da8c5ea826-554570dddf.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-duplicate-keys-npm-7.16.7-757f34aa1c-b96f6e9f7b.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-exponentiation-operator-npm-7.16.7-909d4f03ef-8082c79268.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-for-of-npm-7.16.7-8f3dd5b9fe-35c9264ee4.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-function-name-npm-7.16.7-e8980f9639-4d97d0b844.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-literals-npm-7.16.7-abf8dc29f3-a9565d999f.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-member-expression-literals-npm-7.16.7-bfa68e9eb4-fdf5b22aba.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-modules-amd-npm-7.16.7-4a9945db8e-9ac251ee96.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-modules-commonjs-npm-7.16.8-b70dd72ac5-c0ac00f545.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-modules-systemjs-npm-7.16.7-3347c4ab01-2e50ae45a7.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-modules-umd-npm-7.16.7-a01f399777-d1433f8b0e.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-named-capturing-groups-regex-npm-7.16.8-753500c58b-73e149f5ff.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-new-target-npm-7.16.7-5ce6b99fd8-7410c3e68a.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-object-super-npm-7.16.7-6301890335-46e3c879f4.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-parameters-npm-7.16.7-923943072b-4d6904376d.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-property-literals-npm-7.16.7-b47430aee0-b567445899.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-regenerator-npm-7.16.7-af9e896245-12b1f9a4f3.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-reserved-words-npm-7.16.7-b401728579-00218a646e.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-shorthand-properties-npm-7.16.7-d800844ada-ca381ecf8f.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-spread-npm-7.16.7-584b7c4adf-6e961af1a7.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-sticky-regex-npm-7.16.7-e3085022d7-d59e20121f.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-template-literals-npm-7.16.7-e82d88af58-b55a519dd8.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-typeof-symbol-npm-7.16.7-c3e1f79c97-739a8c439d.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-typescript-npm-7.16.8-b90e8abcf0-a76d0afcbd.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-unicode-escapes-npm-7.16.7-c081a34acc-d10c3b5baa.zip +0 -0
- package/.yarn/cache/@babel-plugin-transform-unicode-regex-npm-7.16.7-0a6888bf4d-ef7721cfb1.zip +0 -0
- package/.yarn/cache/@babel-preset-env-npm-7.16.11-d097cc18a2-c8029c2720.zip +0 -0
- package/.yarn/cache/@babel-preset-modules-npm-0.1.5-15ffcd64c2-8430e0e9e9.zip +0 -0
- package/.yarn/cache/@babel-preset-typescript-npm-7.16.7-82f6473286-44e2f3fa30.zip +0 -0
- package/.yarn/cache/@babel-runtime-npm-7.15.3-6333c71362-2f0b8d2d4e.zip +0 -0
- package/.yarn/cache/@babel-template-npm-7.14.5-98e7aff771-4939199c5b.zip +0 -0
- package/.yarn/cache/@babel-template-npm-7.16.7-a18e444be8-10cd112e89.zip +0 -0
- package/.yarn/cache/@babel-traverse-npm-7.15.0-c9bc8b4682-e13056690a.zip +0 -0
- package/.yarn/cache/@babel-traverse-npm-7.16.10-25c7c5da49-58f52314f8.zip +0 -0
- package/.yarn/cache/@babel-types-npm-7.15.0-20151d256a-6d6bcdfce9.zip +0 -0
- package/.yarn/cache/@babel-types-npm-7.16.0-e111c97393-5b483da5c6.zip +0 -0
- package/.yarn/cache/@babel-types-npm-7.16.8-68f858fd51-4f6a187b29.zip +0 -0
- package/.yarn/cache/@discoveryjs-json-ext-npm-0.5.2-88001749a7-cf7ce79a6e.zip +0 -0
- package/.yarn/cache/@gar-promisify-npm-1.1.2-2343f94380-d05081e088.zip +0 -0
- package/.yarn/cache/@nicolo-ribaudo-chokidar-2-npm-2.1.8-no-fsevents.3-79ca8bfcef-ee55cc9241.zip +0 -0
- package/.yarn/cache/@npmcli-fs-npm-1.1.0-fa0ae1b053-e435b883b4.zip +0 -0
- package/.yarn/cache/@npmcli-move-file-npm-1.0.1-90209166f0-878b39fc1f.zip +0 -0
- package/.yarn/cache/@tootallnate-once-npm-1.1.2-0517220057-e1fb1bbbc1.zip +0 -0
- package/.yarn/cache/@types-component-emitter-npm-1.2.11-581f0366a3-0e081c5f7a.zip +0 -0
- package/.yarn/cache/@types-cookie-npm-0.4.1-274a704dc6-3275534ed6.zip +0 -0
- package/.yarn/cache/@types-cors-npm-2.8.12-ff52e8e514-8c45f112c7.zip +0 -0
- package/.yarn/cache/@types-eslint-npm-8.4.1-014f0ae240-b5790997ee.zip +0 -0
- package/.yarn/cache/@types-eslint-scope-npm-3.7.3-e9b64dad2c-6772b05e1b.zip +0 -0
- package/.yarn/cache/@types-estree-npm-0.0.50-b9bc3b8409-9a2b6a4a8c.zip +0 -0
- package/.yarn/cache/@types-json-schema-npm-7.0.9-361918cff3-259d0e25f1.zip +0 -0
- package/.yarn/cache/@types-node-npm-14.14.10-5b464ba9d4-c031a59db0.zip +0 -0
- package/.yarn/cache/@types-node-npm-17.0.5-78c23cecdc-105535e787.zip +0 -0
- package/.yarn/cache/@ungap-promise-all-settled-npm-1.1.2-c0f42e147b-08d37fdfa2.zip +0 -0
- package/.yarn/cache/@webassemblyjs-ast-npm-1.11.1-623d3d973e-1eee1534ad.zip +0 -0
- package/.yarn/cache/@webassemblyjs-floating-point-hex-parser-npm-1.11.1-f8af5c0037-b8efc6fa08.zip +0 -0
- package/.yarn/cache/@webassemblyjs-helper-api-error-npm-1.11.1-b839d59053-0792813f0e.zip +0 -0
- package/.yarn/cache/@webassemblyjs-helper-buffer-npm-1.11.1-6afb1ef4aa-a337ee44b4.zip +0 -0
- package/.yarn/cache/@webassemblyjs-helper-numbers-npm-1.11.1-a41f7439eb-44d2905dac.zip +0 -0
- package/.yarn/cache/@webassemblyjs-helper-wasm-bytecode-npm-1.11.1-84f0ee4c30-eac4001131.zip +0 -0
- package/.yarn/cache/@webassemblyjs-helper-wasm-section-npm-1.11.1-e4e8450b9d-617696cfe8.zip +0 -0
- package/.yarn/cache/@webassemblyjs-ieee754-npm-1.11.1-897eb85879-23a0ac02a5.zip +0 -0
- package/.yarn/cache/@webassemblyjs-leb128-npm-1.11.1-fd9f27673d-33ccc4ade2.zip +0 -0
- package/.yarn/cache/@webassemblyjs-utf8-npm-1.11.1-583036e767-972c5cfc76.zip +0 -0
- package/.yarn/cache/@webassemblyjs-wasm-edit-npm-1.11.1-34565c1e92-6d7d9efaec.zip +0 -0
- package/.yarn/cache/@webassemblyjs-wasm-gen-npm-1.11.1-a6d0b4d37d-1f6921e640.zip +0 -0
- package/.yarn/cache/@webassemblyjs-wasm-opt-npm-1.11.1-0bb73c20b9-21586883a2.zip +0 -0
- package/.yarn/cache/@webassemblyjs-wasm-parser-npm-1.11.1-cd49c51fdc-1521644065.zip +0 -0
- package/.yarn/cache/@webassemblyjs-wast-printer-npm-1.11.1-f1213430d6-f15ae4c244.zip +0 -0
- package/.yarn/cache/@webpack-cli-configtest-npm-1.1.1-87de53d084-c4e7fca213.zip +0 -0
- package/.yarn/cache/@webpack-cli-info-npm-1.4.1-34c6d9b3f1-7a7cac2ba4.zip +0 -0
- package/.yarn/cache/@webpack-cli-serve-npm-1.6.1-e0ea59ed03-8b273f906a.zip +0 -0
- package/.yarn/cache/@xtuc-ieee754-npm-1.2.0-ec0ce4e025-ac56d4ca6e.zip +0 -0
- package/.yarn/cache/@xtuc-long-npm-4.2.2-37236e6d72-8ed0d477ce.zip +0 -0
- package/.yarn/cache/abbrev-npm-1.1.1-3659247eab-a4a97ec07d.zip +0 -0
- package/.yarn/cache/accepts-npm-1.3.7-0dc9de65aa-27fc8060ff.zip +0 -0
- package/.yarn/cache/acorn-import-assertions-npm-1.8.0-e9a9d57e27-5c4cf7c850.zip +0 -0
- package/.yarn/cache/acorn-npm-8.7.0-ca81d350ee-e0f79409d6.zip +0 -0
- package/.yarn/cache/agent-base-npm-6.0.2-428f325a93-f52b6872cc.zip +0 -0
- package/.yarn/cache/agentkeepalive-npm-4.1.4-4d5b41b4c1-d49c24d4b3.zip +0 -0
- package/.yarn/cache/aggregate-error-npm-3.1.0-415a406f4e-1101a33f21.zip +0 -0
- package/.yarn/cache/ajv-keywords-npm-3.5.2-0e391b70e2-7dc5e59316.zip +0 -0
- package/.yarn/cache/ajv-npm-6.12.6-4b5105e2b2-874972efe5.zip +0 -0
- package/.yarn/cache/ansi-colors-npm-4.1.1-97ad42f223-138d04a510.zip +0 -0
- package/.yarn/cache/ansi-regex-npm-5.0.1-c963a48615-2aa4bb54ca.zip +0 -0
- package/.yarn/cache/ansi-styles-npm-3.2.1-8cb8107983-d85ade01c1.zip +0 -0
- package/.yarn/cache/ansi-styles-npm-4.3.0-245c7d42c7-513b44c3b2.zip +0 -0
- package/.yarn/cache/anymatch-npm-3.1.2-1d5471acfa-985163db22.zip +0 -0
- package/.yarn/cache/aproba-npm-2.0.0-8716bcfde6-5615cadcfb.zip +0 -0
- package/.yarn/cache/are-we-there-yet-npm-2.0.0-7d2f5201ce-6c80b4fd04.zip +0 -0
- package/.yarn/cache/argparse-npm-2.0.1-faff7999e6-83644b5649.zip +0 -0
- package/.yarn/cache/assertion-error-npm-1.1.0-66b893015e-fd9429d3a3.zip +0 -0
- package/.yarn/cache/babel-helper-evaluate-path-npm-0.5.0-83072ae9f7-4a3b301fd9.zip +0 -0
- package/.yarn/cache/babel-helper-flip-expressions-npm-0.4.3-710bf39e25-52174b03ed.zip +0 -0
- package/.yarn/cache/babel-helper-is-nodes-equiv-npm-0.0.1-99fc3c19a7-8621bf12fe.zip +0 -0
- package/.yarn/cache/babel-helper-is-void-0-npm-0.4.3-f3dd25ecc4-0aa68c822c.zip +0 -0
- package/.yarn/cache/babel-helper-mark-eval-scopes-npm-0.4.3-d729c16482-3cf6a1b5ab.zip +0 -0
- package/.yarn/cache/babel-helper-remove-or-void-npm-0.4.3-9d59f20fd0-6a2c305c31.zip +0 -0
- package/.yarn/cache/babel-helper-to-multiple-sequence-expressions-npm-0.5.0-c3398c8b35-f8f07139ee.zip +0 -0
- package/.yarn/cache/babel-loader-npm-8.2.3-855681b984-78e1e1a919.zip +0 -0
- package/.yarn/cache/babel-minify-npm-0.5.1-64a473d967-0e907202e3.zip +0 -0
- package/.yarn/cache/babel-plugin-dynamic-import-node-npm-2.3.3-be081936a9-c9d24415bc.zip +0 -0
- package/.yarn/cache/babel-plugin-minify-builtins-npm-0.5.0-cc5e14b544-55fa4b2e77.zip +0 -0
- package/.yarn/cache/babel-plugin-minify-constant-folding-npm-0.5.0-e0d0cd67a1-9421a07cf2.zip +0 -0
- package/.yarn/cache/babel-plugin-minify-dead-code-elimination-npm-0.5.1-e0cabc5e91-55a9c84c0b.zip +0 -0
- package/.yarn/cache/babel-plugin-minify-flip-comparisons-npm-0.4.3-77392210f5-54e068f926.zip +0 -0
- package/.yarn/cache/babel-plugin-minify-guarded-expressions-npm-0.4.4-7a2eff254a-6071558a5b.zip +0 -0
- package/.yarn/cache/babel-plugin-minify-infinity-npm-0.4.3-0e328e8403-d63d833902.zip +0 -0
- package/.yarn/cache/babel-plugin-minify-mangle-names-npm-0.5.0-06bf202b0a-4b970658aa.zip +0 -0
- package/.yarn/cache/babel-plugin-minify-numeric-literals-npm-0.4.3-b34dfa49e7-8327b43e06.zip +0 -0
- package/.yarn/cache/babel-plugin-minify-replace-npm-0.5.0-21b735c119-eca0ef9c91.zip +0 -0
- package/.yarn/cache/babel-plugin-minify-simplify-npm-0.5.1-723ca9a33e-79d7180013.zip +0 -0
- package/.yarn/cache/babel-plugin-minify-type-constructors-npm-0.4.3-2e146fcb24-2c6cb97aa8.zip +0 -0
- package/.yarn/cache/babel-plugin-polyfill-corejs2-npm-0.3.0-4e58d302d2-ffede59798.zip +0 -0
- package/.yarn/cache/babel-plugin-polyfill-corejs3-npm-0.5.1-97339df7ce-a8945755a1.zip +0 -0
- package/.yarn/cache/babel-plugin-polyfill-regenerator-npm-0.3.0-3228238f85-ecca4389fd.zip +0 -0
- package/.yarn/cache/babel-plugin-transform-inline-consecutive-adds-npm-0.4.3-1ed470a8dc-e3129bafc9.zip +0 -0
- package/.yarn/cache/babel-plugin-transform-member-expression-literals-npm-6.9.4-22cb40dcfa-0008ca6f50.zip +0 -0
- package/.yarn/cache/babel-plugin-transform-merge-sibling-variables-npm-6.9.4-e0c3836b24-ff09d225c0.zip +0 -0
- package/.yarn/cache/babel-plugin-transform-minify-booleans-npm-6.9.4-7ff960508c-d8553742aa.zip +0 -0
- package/.yarn/cache/babel-plugin-transform-property-literals-npm-6.9.4-75c728bb59-14da12703c.zip +0 -0
- package/.yarn/cache/babel-plugin-transform-regexp-constructors-npm-0.4.3-2fc4c4f940-242228775b.zip +0 -0
- package/.yarn/cache/babel-plugin-transform-remove-console-npm-6.9.4-729dc2b980-1123c3816c.zip +0 -0
- package/.yarn/cache/babel-plugin-transform-remove-debugger-npm-6.9.4-11fb287600-ed34e5200d.zip +0 -0
- package/.yarn/cache/babel-plugin-transform-remove-undefined-npm-0.5.0-8fdbb8e6a9-cebba3eae7.zip +0 -0
- package/.yarn/cache/babel-plugin-transform-simplify-comparison-operators-npm-6.9.4-1039e72e00-0b51e361d4.zip +0 -0
- package/.yarn/cache/babel-plugin-transform-undefined-to-void-npm-6.9.4-c40d250da1-dd4d89b3e8.zip +0 -0
- package/.yarn/cache/babel-preset-minify-npm-0.5.1-ab57e35486-f365a2e382.zip +0 -0
- package/.yarn/cache/balanced-match-npm-1.0.0-951a2ad706-9b67bfe558.zip +0 -0
- package/.yarn/cache/base64-arraybuffer-npm-1.0.1-e1053d5403-04b6fe6818.zip +0 -0
- package/.yarn/cache/base64id-npm-2.0.0-ef4afeee0a-581b1d37e6.zip +0 -0
- package/.yarn/cache/big.js-npm-5.2.2-e147c30820-b89b6e8419.zip +0 -0
- package/.yarn/cache/binary-extensions-npm-2.2.0-180c33fec7-ccd267956c.zip +0 -0
- package/.yarn/cache/body-parser-npm-1.19.1-ae102dea05-9197a300a6.zip +0 -0
- package/.yarn/cache/brace-expansion-npm-1.1.11-fb95eb05ad-faf34a7bb0.zip +0 -0
- package/.yarn/cache/braces-npm-3.0.2-782240b28a-e2a8e769a8.zip +0 -0
- package/.yarn/cache/browser-stdout-npm-1.3.1-6b2376bf3f-b717b19b25.zip +0 -0
- package/.yarn/cache/browserslist-npm-4.16.8-43a28a3166-a442ab2156.zip +0 -0
- package/.yarn/cache/browserslist-npm-4.19.1-e9de2a4009-c0777fd483.zip +0 -0
- package/.yarn/cache/buffer-from-npm-1.1.1-22917b8ed8-ccc53b6973.zip +0 -0
- package/.yarn/cache/bytes-npm-3.1.1-f2d0e8c583-949ab99a38.zip +0 -0
- package/.yarn/cache/cacache-npm-15.3.0-a7e5239c6a-a07327c27a.zip +0 -0
- package/.yarn/cache/call-bind-npm-1.0.2-c957124861-f8e31de9d1.zip +0 -0
- package/.yarn/cache/camelcase-npm-4.1.0-6903b265cd-9683356daf.zip +0 -0
- package/.yarn/cache/camelcase-npm-6.3.0-e5e42a0d15-8c96818a90.zip +0 -0
- package/.yarn/cache/caniuse-lite-npm-1.0.30001252-eea0236fd9-0d25a2795c.zip +0 -0
- package/.yarn/cache/caniuse-lite-npm-1.0.30001292-b1bbf4eae9-930d025147.zip +0 -0
- package/.yarn/cache/chai-npm-4.3.6-dba90e4b0b-acff93fd53.zip +0 -0
- package/.yarn/cache/chalk-npm-2.4.2-3ea16dd91e-ec3661d38f.zip +0 -0
- package/.yarn/cache/chalk-npm-4.1.2-ba8b67ab80-fe75c9d5c7.zip +0 -0
- package/.yarn/cache/check-error-npm-1.0.2-00c540c6e9-d9d1065044.zip +0 -0
- package/.yarn/cache/chokidar-npm-3.5.2-6752340fec-d1fda32fcd.zip +0 -0
- package/.yarn/cache/chokidar-npm-3.5.3-c5f9b0a56a-b49fcde401.zip +0 -0
- package/.yarn/cache/chownr-npm-2.0.0-638f1c9c61-c57cf9dd07.zip +0 -0
- package/.yarn/cache/chrome-trace-event-npm-1.0.2-c73a69cbd7-a104606fd0.zip +0 -0
- package/.yarn/cache/clean-stack-npm-2.2.0-a8ce435a5c-2ac8cd2b2f.zip +0 -0
- package/.yarn/cache/cliui-npm-7.0.4-d6b8a9edb6-ce2e8f578a.zip +0 -0
- package/.yarn/cache/clone-deep-npm-4.0.1-70adab92c8-770f912fe4.zip +0 -0
- package/.yarn/cache/color-convert-npm-1.9.3-1fe690075e-fd7a64a17c.zip +0 -0
- package/.yarn/cache/color-convert-npm-2.0.1-79730e935b-79e6bdb9fd.zip +0 -0
- package/.yarn/cache/color-name-npm-1.1.3-728b7b5d39-09c5d3e33d.zip +0 -0
- package/.yarn/cache/color-name-npm-1.1.4-025792b0ea-b044585952.zip +0 -0
- package/.yarn/cache/color-support-npm-1.1.3-3be5c53455-9b73568176.zip +0 -0
- package/.yarn/cache/colorette-npm-1.3.0-850a0c65bc-bda403dfba.zip +0 -0
- package/.yarn/cache/colorette-npm-2.0.16-7b996485d7-cd55596a3a.zip +0 -0
- package/.yarn/cache/colors-npm-1.4.0-7e2cf12234-98aa2c2418.zip +0 -0
- package/.yarn/cache/commander-npm-2.20.3-d8dcbaa39b-ab8c07884e.zip +0 -0
- package/.yarn/cache/commander-npm-4.1.1-22a0fe921b-d7b9913ff9.zip +0 -0
- package/.yarn/cache/commander-npm-7.2.0-19178180f8-53501cbeee.zip +0 -0
- package/.yarn/cache/commondir-npm-1.0.1-291b790340-59715f2fc4.zip +0 -0
- package/.yarn/cache/component-emitter-npm-1.3.0-4b848565b9-b3c46de38f.zip +0 -0
- package/.yarn/cache/concat-map-npm-0.0.1-85a921b7ee-902a9f5d89.zip +0 -0
- package/.yarn/cache/connect-npm-3.7.0-25ccb085cc-96e1c4effc.zip +0 -0
- package/.yarn/cache/console-control-strings-npm-1.1.0-e3160e5275-8755d76787.zip +0 -0
- package/.yarn/cache/content-type-npm-1.0.4-3b1a5ca16b-3d93585fda.zip +0 -0
- package/.yarn/cache/convert-source-map-npm-1.8.0-037f671dde-985d974a2d.zip +0 -0
- package/.yarn/cache/cookie-npm-0.4.1-cc5e2ebb42-bd7c47f5d9.zip +0 -0
- package/.yarn/cache/core-js-compat-npm-3.20.3-b7b0eec0ac-ebb7af23e7.zip +0 -0
- package/.yarn/cache/cors-npm-2.8.5-c9935a2d12-ced838404c.zip +0 -0
- package/.yarn/cache/cross-spawn-npm-7.0.3-e4ff3e65b3-671cc7c728.zip +0 -0
- package/.yarn/cache/custom-event-npm-1.0.1-6693c8e298-334f48a6d5.zip +0 -0
- package/.yarn/cache/date-format-npm-2.1.0-6d206457ad-ff2c80c760.zip +0 -0
- package/.yarn/cache/date-format-npm-3.0.0-da04d77f82-9e1d224460.zip +0 -0
- package/.yarn/cache/debug-npm-2.6.9-7d4cb597dc-d2f51589ca.zip +0 -0
- package/.yarn/cache/debug-npm-4.3.2-f0148b6afe-820ea160e2.zip +0 -0
- package/.yarn/cache/debug-npm-4.3.3-710fd4cc7f-14472d56fe.zip +0 -0
- package/.yarn/cache/decamelize-npm-4.0.0-12410e3409-b7d09b8265.zip +0 -0
- package/.yarn/cache/deep-eql-npm-3.0.1-9a66c09c65-4f4c9fb79e.zip +0 -0
- package/.yarn/cache/define-properties-npm-1.1.2-07a52c45e8-71f5fc9aa3.zip +0 -0
- package/.yarn/cache/define-properties-npm-1.1.3-0f3115e2b9-da80dba55d.zip +0 -0
- package/.yarn/cache/delegates-npm-1.0.0-9b1942d75f-a51744d9b5.zip +0 -0
- package/.yarn/cache/depd-npm-1.1.2-b0c8414da7-6b406620d2.zip +0 -0
- package/.yarn/cache/di-npm-0.0.1-bff5be391f-3f09a99534.zip +0 -0
- package/.yarn/cache/diff-npm-5.0.0-ad6900db18-f19fe29284.zip +0 -0
- package/.yarn/cache/dom-serialize-npm-2.2.1-01ec16503e-48262e299a.zip +0 -0
- package/.yarn/cache/ee-first-npm-1.1.1-33f8535b39-1b4cac778d.zip +0 -0
- package/.yarn/cache/electron-to-chromium-npm-1.3.822-5af44c3194-ad6d590058.zip +0 -0
- package/.yarn/cache/electron-to-chromium-npm-1.4.28-37738ddb1c-ac3dcd1de0.zip +0 -0
- package/.yarn/cache/emoji-regex-npm-8.0.0-213764015c-d4c5c39d5a.zip +0 -0
- package/.yarn/cache/emojis-list-npm-3.0.0-7faa48e6fd-ddaaa02542.zip +0 -0
- package/.yarn/cache/encodeurl-npm-1.0.2-f8c8454c41-e50e3d508c.zip +0 -0
- package/.yarn/cache/encoding-npm-0.1.13-82a1837d30-bb98632f8f.zip +0 -0
- package/.yarn/cache/engine.io-npm-6.1.0-cdba019cb1-37ff47e24c.zip +0 -0
- package/.yarn/cache/engine.io-parser-npm-5.0.2-884d92291e-bd65c3cdce.zip +0 -0
- package/.yarn/cache/enhanced-resolve-npm-5.8.3-24a728966e-d79fbe5311.zip +0 -0
- package/.yarn/cache/ent-npm-2.2.0-97a5f0ffb8-f588b5707d.zip +0 -0
- package/.yarn/cache/env-paths-npm-2.2.1-7c7577428c-65b5df55a8.zip +0 -0
- package/.yarn/cache/envinfo-npm-7.7.3-2ae94ae21f-d8fb5c308f.zip +0 -0
- package/.yarn/cache/err-code-npm-2.0.3-082e0ff9a7-8b7b1be20d.zip +0 -0
- package/.yarn/cache/es-abstract-npm-1.11.0-ff84c10965-6f5e50d549.zip +0 -0
- package/.yarn/cache/es-module-lexer-npm-0.9.3-ff6236dadb-84bbab23c3.zip +0 -0
- package/.yarn/cache/es-to-primitive-npm-1.1.1-613a288d57-e6d1373e70.zip +0 -0
- package/.yarn/cache/escalade-npm-3.1.1-e02da076aa-a3e2a99f07.zip +0 -0
- package/.yarn/cache/escape-html-npm-1.0.3-376c22ee74-6213ca9ae0.zip +0 -0
- package/.yarn/cache/escape-string-regexp-npm-1.0.5-3284de402f-6092fda75c.zip +0 -0
- package/.yarn/cache/escape-string-regexp-npm-4.0.0-4b531d8d59-98b48897d9.zip +0 -0
- package/.yarn/cache/eslint-scope-npm-5.1.1-71fe59b18a-47e4b6a3f0.zip +0 -0
- package/.yarn/cache/esrecurse-npm-4.3.0-10b86a887a-ebc17b1a33.zip +0 -0
- package/.yarn/cache/estraverse-npm-4.3.0-920a32f3c6-a6299491f9.zip +0 -0
- package/.yarn/cache/estraverse-npm-5.2.0-b2e8e36350-ec11b70d94.zip +0 -0
- package/.yarn/cache/esutils-npm-2.0.3-f865beafd5-22b5b08f74.zip +0 -0
- package/.yarn/cache/eventemitter3-npm-4.0.7-7afcdd74ae-1875311c42.zip +0 -0
- package/.yarn/cache/events-npm-3.3.0-c280bc7e48-f6f487ad21.zip +0 -0
- package/.yarn/cache/execa-npm-5.0.0-4ee568fb49-a044367ebd.zip +0 -0
- package/.yarn/cache/extend-npm-3.0.2-e1ca07ac54-a50a8309ca.zip +0 -0
- package/.yarn/cache/fast-deep-equal-npm-3.1.3-790edcfcf5-e21a9d8d84.zip +0 -0
- package/.yarn/cache/fast-json-stable-stringify-npm-2.1.0-02e8905fda-b191531e36.zip +0 -0
- package/.yarn/cache/fastest-levenshtein-npm-1.0.12-a32b4ef51e-e1a013698d.zip +0 -0
- package/.yarn/cache/fill-range-npm-7.0.1-b8b1817caa-cc283f4e65.zip +0 -0
- package/.yarn/cache/finalhandler-npm-1.1.2-55a75d6b53-617880460c.zip +0 -0
- package/.yarn/cache/find-cache-dir-npm-3.3.1-66916b4b23-0f7c22b65e.zip +0 -0
- package/.yarn/cache/find-up-npm-4.1.0-c3ccf8d855-4c172680e8.zip +0 -0
- package/.yarn/cache/find-up-npm-5.0.0-e03e9b796d-07955e3573.zip +0 -0
- package/.yarn/cache/flat-npm-5.0.2-12748102a5-12a1536ac7.zip +0 -0
- package/.yarn/cache/flatted-npm-2.0.2-ccb06e14ff-473c754db7.zip +0 -0
- package/.yarn/cache/follow-redirects-npm-1.14.6-0483823f49-7fcdb089a7.zip +0 -0
- package/.yarn/cache/foreach-npm-2.0.5-9fbfc73114-dab4fbfef0.zip +0 -0
- package/.yarn/cache/fs-extra-npm-8.1.0-197473387f-bf44f0e6ce.zip +0 -0
- package/.yarn/cache/fs-minipass-npm-2.1.0-501ef87306-1b8d128dae.zip +0 -0
- package/.yarn/cache/fs-readdir-recursive-npm-1.1.0-258e230a4b-29d50f3d21.zip +0 -0
- package/.yarn/cache/fs.realpath-npm-1.0.0-c8f05d8126-99ddea01a7.zip +0 -0
- package/.yarn/cache/fsevents-npm-2.3.2-a881d6ac9f-97ade64e75.zip +0 -0
- package/.yarn/cache/fsevents-patch-3340e2eb10-8.zip +0 -0
- package/.yarn/cache/function-bind-npm-1.1.1-b56b322ae9-b32fbaebb3.zip +0 -0
- package/.yarn/cache/gauge-npm-4.0.0-962bc1259b-637b34c84f.zip +0 -0
- package/.yarn/cache/gensync-npm-1.0.0-beta.2-224666d72f-a7437e58c6.zip +0 -0
- package/.yarn/cache/get-caller-file-npm-2.0.5-80e8a86305-b9769a836d.zip +0 -0
- package/.yarn/cache/get-func-name-npm-2.0.0-afbf363765-8d82e69f3e.zip +0 -0
- package/.yarn/cache/get-intrinsic-npm-1.1.1-7e868745da-a9fe2ca8fa.zip +0 -0
- package/.yarn/cache/get-stream-npm-6.0.0-ca30041dff-587e6a9312.zip +0 -0
- package/.yarn/cache/glob-npm-7.1.6-1ce3a5189a-351d549dd9.zip +0 -0
- package/.yarn/cache/glob-npm-7.1.7-5698ad9c48-b61f48973b.zip +0 -0
- package/.yarn/cache/glob-npm-7.2.0-bb4644d239-78a8ea9423.zip +0 -0
- package/.yarn/cache/glob-parent-npm-5.1.2-021ab32634-f4f2bfe242.zip +0 -0
- package/.yarn/cache/glob-to-regexp-npm-0.4.1-cd697e0fc7-e795f4e8f0.zip +0 -0
- package/.yarn/cache/globals-npm-11.12.0-1fa7f41a6c-67051a45ec.zip +0 -0
- package/.yarn/cache/graceful-fs-npm-4.2.4-734467635f-9d58c444eb.zip +0 -0
- package/.yarn/cache/graceful-fs-npm-4.2.8-37c16fc3d3-5d224c8969.zip +0 -0
- package/.yarn/cache/graceful-fs-npm-4.2.9-ee48e00aaa-68ea4e07ff.zip +0 -0
- package/.yarn/cache/growl-npm-1.10.5-2d1da54198-4b86685de6.zip +0 -0
- package/.yarn/cache/has-flag-npm-3.0.0-16ac11fe05-4a15638b45.zip +0 -0
- package/.yarn/cache/has-flag-npm-4.0.0-32af9f0536-261a135703.zip +0 -0
- package/.yarn/cache/has-npm-1.0.1-a9e323ee09-c298fed875.zip +0 -0
- package/.yarn/cache/has-npm-1.0.3-b7f00631c1-b9ad53d53b.zip +0 -0
- package/.yarn/cache/has-symbols-npm-1.0.2-50e53af115-2309c42607.zip +0 -0
- package/.yarn/cache/has-unicode-npm-2.0.1-893adb4747-1eab07a743.zip +0 -0
- package/.yarn/cache/he-npm-1.2.0-3b73a2ff07-3d4d6babcc.zip +0 -0
- package/.yarn/cache/http-cache-semantics-npm-4.1.0-860520a31f-974de94a81.zip +0 -0
- package/.yarn/cache/http-errors-npm-1.8.1-fb60d9f6ae-d3c7e7e776.zip +0 -0
- package/.yarn/cache/http-proxy-agent-npm-4.0.1-ce9ef61788-c6a5da5a19.zip +0 -0
- package/.yarn/cache/http-proxy-npm-1.18.1-a313c479c5-f5bd96bf83.zip +0 -0
- package/.yarn/cache/https-proxy-agent-npm-5.0.0-bb777903c3-165bfb090b.zip +0 -0
- package/.yarn/cache/human-signals-npm-2.1.0-f75815481d-b87fd89fce.zip +0 -0
- package/.yarn/cache/humanize-ms-npm-1.2.1-e942bd7329-9c7a74a282.zip +0 -0
- package/.yarn/cache/iconv-lite-npm-0.4.24-c5c4ac6695-bd9f120f5a.zip +0 -0
- package/.yarn/cache/iconv-lite-npm-0.6.3-24b8aae27e-3f60d47a5c.zip +0 -0
- package/.yarn/cache/import-local-npm-3.0.2-c8afc1fd5f-c74d9f9484.zip +0 -0
- package/.yarn/cache/imurmurhash-npm-0.1.4-610c5068a0-7cae75c8cd.zip +0 -0
- package/.yarn/cache/indent-string-npm-4.0.0-7b717435b2-824cfb9929.zip +0 -0
- package/.yarn/cache/infer-owner-npm-1.0.4-685ac3d2af-181e732764.zip +0 -0
- package/.yarn/cache/inflight-npm-1.0.6-ccedb4b908-f4f76aa072.zip +0 -0
- package/.yarn/cache/inherits-npm-2.0.4-c66b3957a0-4a48a73384.zip +0 -0
- package/.yarn/cache/interpret-npm-2.2.0-3603a544e1-f51efef7cb.zip +0 -0
- package/.yarn/cache/ip-npm-1.1.5-af36318aa6-30133981f0.zip +0 -0
- package/.yarn/cache/is-binary-path-npm-2.1.0-e61d46f557-84192eb88c.zip +0 -0
- package/.yarn/cache/is-callable-npm-1.1.3-befcc5f93c-d610eebb1b.zip +0 -0
- package/.yarn/cache/is-core-module-npm-2.2.0-497065e3b0-61e2aff4a7.zip +0 -0
- package/.yarn/cache/is-core-module-npm-2.6.0-3684fdf55a-183b3b96fe.zip +0 -0
- package/.yarn/cache/is-date-object-npm-1.0.1-3a713f692d-4ce962ecb4.zip +0 -0
- package/.yarn/cache/is-extglob-npm-2.1.1-0870ea68b5-df033653d0.zip +0 -0
- package/.yarn/cache/is-fullwidth-code-point-npm-3.0.0-1ecf4ebee5-44a30c2945.zip +0 -0
- package/.yarn/cache/is-glob-npm-4.0.1-341760116f-84627cad11.zip +0 -0
- package/.yarn/cache/is-lambda-npm-1.0.1-7ab55bc8a8-93a32f0194.zip +0 -0
- package/.yarn/cache/is-number-npm-7.0.0-060086935c-456ac6f8e0.zip +0 -0
- package/.yarn/cache/is-plain-obj-npm-2.1.0-8dffd7ae9c-cec9100678.zip +0 -0
- package/.yarn/cache/is-plain-object-npm-2.0.4-da3265d804-2a401140cf.zip +0 -0
- package/.yarn/cache/is-regex-npm-1.0.4-c77d6d844a-8df3511d44.zip +0 -0
- package/.yarn/cache/is-stream-npm-2.0.0-1401f82ad7-4dc47738e2.zip +0 -0
- package/.yarn/cache/is-symbol-npm-1.0.1-01ae68cc19-92c141ae53.zip +0 -0
- package/.yarn/cache/is-unicode-supported-npm-0.1.0-0833e1bbfb-a2aab86ee7.zip +0 -0
- package/.yarn/cache/isbinaryfile-npm-4.0.8-62c71dd57b-606e3bb648.zip +0 -0
- package/.yarn/cache/isexe-npm-2.0.0-b58870bd2e-26bf6c5480.zip +0 -0
- package/.yarn/cache/isobject-npm-3.0.1-8145901fd2-db85c4c970.zip +0 -0
- package/.yarn/cache/jest-worker-npm-27.4.6-733e0b7d41-105bcdf5c6.zip +0 -0
- package/.yarn/cache/js-tokens-npm-4.0.0-0ac852e9e2-8a95213a5a.zip +0 -0
- package/.yarn/cache/js-yaml-npm-4.1.0-3606f32312-c7830dfd45.zip +0 -0
- package/.yarn/cache/jsesc-npm-0.5.0-6827074492-b8b44cbfc9.zip +0 -0
- package/.yarn/cache/jsesc-npm-2.5.2-c5acb78804-4dc1907711.zip +0 -0
- package/.yarn/cache/json-parse-better-errors-npm-1.0.2-7f37637d19-ff2b5ba2a7.zip +0 -0
- package/.yarn/cache/json-schema-traverse-npm-0.4.1-4759091693-7486074d3b.zip +0 -0
- package/.yarn/cache/json5-npm-1.0.1-647fc8794b-e76ea23dbb.zip +0 -0
- package/.yarn/cache/json5-npm-2.2.0-da49dc7cb5-e88fc5274b.zip +0 -0
- package/.yarn/cache/jsonfile-npm-4.0.0-10ce3aea15-6447d6224f.zip +0 -0
- package/.yarn/cache/karma-chai-npm-0.1.0-d1d807f507-7fae0b4ace.zip +0 -0
- package/.yarn/cache/karma-chrome-launcher-npm-3.1.0-999405afd7-63431ddec9.zip +0 -0
- package/.yarn/cache/karma-mocha-npm-2.0.1-b8979157d3-a09f475875.zip +0 -0
- package/.yarn/cache/karma-npm-6.3.12-df7c67090b-7d7f803808.zip +0 -0
- package/.yarn/cache/kind-of-npm-6.0.3-ab15f36220-3ab01e7b1d.zip +0 -0
- package/.yarn/cache/loader-runner-npm-4.2.0-427f0e7134-e61aea8b69.zip +0 -0
- package/.yarn/cache/loader-utils-npm-1.4.0-a56254a277-d150b15e7a.zip +0 -0
- package/.yarn/cache/locate-path-npm-5.0.0-46580c43e4-83e51725e6.zip +0 -0
- package/.yarn/cache/locate-path-npm-6.0.0-06a1e4c528-72eb661788.zip +0 -0
- package/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip +0 -0
- package/.yarn/cache/lodash.debounce-npm-4.0.8-f1d6e09799-a3f527d22c.zip +0 -0
- package/.yarn/cache/log-symbols-npm-4.1.0-0a13492d8b-fce1497b31.zip +0 -0
- package/.yarn/cache/log4js-npm-6.3.0-7d1ea76e6b-da2812bbe4.zip +0 -0
- package/.yarn/cache/loupe-npm-2.3.1-d7dcc773a0-11b4c4c9eb.zip +0 -0
- package/.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-f97f499f89.zip +0 -0
- package/.yarn/cache/make-dir-npm-2.1.0-1ddaf205e7-043548886b.zip +0 -0
- package/.yarn/cache/make-dir-npm-3.1.0-d1d7505142-484200020a.zip +0 -0
- package/.yarn/cache/make-fetch-happen-npm-9.1.0-23184ad7f6-0eb371c85f.zip +0 -0
- package/.yarn/cache/media-typer-npm-0.3.0-8674f8f0f5-af1b38516c.zip +0 -0
- package/.yarn/cache/merge-stream-npm-2.0.0-2ac83efea5-6fa4dcc8d8.zip +0 -0
- package/.yarn/cache/mime-db-npm-1.51.0-d5e42b45ad-613b1ac9d6.zip +0 -0
- package/.yarn/cache/mime-npm-2.6.0-88b89d8de0-1497ba7b9f.zip +0 -0
- package/.yarn/cache/mime-types-npm-2.1.34-3cd0bb907c-67013de9e9.zip +0 -0
- package/.yarn/cache/mimic-fn-npm-2.1.0-4fbeb3abb4-d2421a3444.zip +0 -0
- package/.yarn/cache/minimatch-npm-3.0.4-6e76f51c23-66ac295f8a.zip +0 -0
- package/.yarn/cache/minimist-npm-1.2.5-ced0e1f617-86706ce5b3.zip +0 -0
- package/.yarn/cache/minipass-collect-npm-1.0.2-3b4676eab5-14df761028.zip +0 -0
- package/.yarn/cache/minipass-fetch-npm-1.4.1-2d67357feb-ec93697bdb.zip +0 -0
- package/.yarn/cache/minipass-flush-npm-1.0.5-efe79d9826-56269a0b22.zip +0 -0
- package/.yarn/cache/minipass-npm-3.1.3-af723e33f3-74b623c1f9.zip +0 -0
- package/.yarn/cache/minipass-npm-3.1.6-f032df1661-57a0404141.zip +0 -0
- package/.yarn/cache/minipass-pipeline-npm-1.2.4-5924cb077f-b14240dac0.zip +0 -0
- package/.yarn/cache/minipass-sized-npm-1.0.3-306d86f432-79076749fc.zip +0 -0
- package/.yarn/cache/minizlib-npm-2.1.2-ea89cd0cfb-f1fdeac0b0.zip +0 -0
- package/.yarn/cache/mkdirp-npm-0.5.5-6bc76534fc-3bce20ea52.zip +0 -0
- package/.yarn/cache/mkdirp-npm-1.0.4-37f6ef56b9-a96865108c.zip +0 -0
- package/.yarn/cache/mocha-npm-9.2.0-4bf488a12f-49efc4724c.zip +0 -0
- package/.yarn/cache/ms-npm-2.0.0-9e1101a471-0e6a22b8b7.zip +0 -0
- package/.yarn/cache/ms-npm-2.1.2-ec0c1512ff-673cdb2c31.zip +0 -0
- package/.yarn/cache/ms-npm-2.1.3-81ff3cfac1-aa92de6080.zip +0 -0
- package/.yarn/cache/nanoid-npm-3.2.0-27f7f3aa52-3d1d5a69fe.zip +0 -0
- package/.yarn/cache/negotiator-npm-0.6.2-ba538e167a-dfddaff6c0.zip +0 -0
- package/.yarn/cache/neo-async-npm-2.6.2-75d6902586-deac9f8d00.zip +0 -0
- package/.yarn/cache/node-gyp-npm-8.4.1-13c90a9c9b-341710b5da.zip +0 -0
- package/.yarn/cache/node-releases-npm-1.1.75-3d5ac48148-74028e7d19.zip +0 -0
- package/.yarn/cache/node-releases-npm-2.0.1-77b8e327f7-b20dd8d4bc.zip +0 -0
- package/.yarn/cache/nopt-npm-5.0.0-304b40fbfe-d35fdec187.zip +0 -0
- package/.yarn/cache/normalize-path-npm-3.0.0-658ba7d77f-88eeb4da89.zip +0 -0
- package/.yarn/cache/npm-run-path-npm-4.0.1-7aebd8bab3-5374c0cea4.zip +0 -0
- package/.yarn/cache/npmlog-npm-6.0.0-94a534434f-33d8a7fe3d.zip +0 -0
- package/.yarn/cache/object-assign-npm-4.1.1-1004ad6dec-fcc6e4ea8c.zip +0 -0
- package/.yarn/cache/object-keys-npm-1.0.11-203a72275b-acdb1e0ddb.zip +0 -0
- package/.yarn/cache/object-keys-npm-1.1.1-1bf2f1be93-b363c5e764.zip +0 -0
- package/.yarn/cache/object.assign-npm-4.1.2-d52edada1c-d621d832ed.zip +0 -0
- package/.yarn/cache/object.getownpropertydescriptors-npm-2.0.3-4fdbddc812-bf79fae8ff.zip +0 -0
- package/.yarn/cache/on-finished-npm-2.3.0-4ce92f72c6-1db595bd96.zip +0 -0
- package/.yarn/cache/once-npm-1.4.0-ccf03ef07a-cd0a885013.zip +0 -0
- package/.yarn/cache/onetime-npm-5.1.2-3ed148fa42-2478859ef8.zip +0 -0
- package/.yarn/cache/p-limit-npm-2.3.0-94a0310039-84ff17f1a3.zip +0 -0
- package/.yarn/cache/p-limit-npm-3.1.0-05d2ede37f-7c3690c4db.zip +0 -0
- package/.yarn/cache/p-locate-npm-4.1.0-eec6872537-513bd14a45.zip +0 -0
- package/.yarn/cache/p-locate-npm-5.0.0-92cc7c7a3e-1623088f36.zip +0 -0
- package/.yarn/cache/p-map-npm-4.0.0-4677ae07c7-cb0ab21ec0.zip +0 -0
- package/.yarn/cache/p-try-npm-2.2.0-e0390dbaf8-f8a8e9a769.zip +0 -0
- package/.yarn/cache/parseurl-npm-1.3.3-1542397e00-407cee8e0a.zip +0 -0
- package/.yarn/cache/path-exists-npm-4.0.0-e9e4f63eb0-505807199d.zip +0 -0
- package/.yarn/cache/path-is-absolute-npm-1.0.1-31bc695ffd-060840f92c.zip +0 -0
- package/.yarn/cache/path-key-npm-3.1.1-0e66ea8321-55cd7a9dd4.zip +0 -0
- package/.yarn/cache/path-parse-npm-1.0.7-09564527b7-49abf3d811.zip +0 -0
- package/.yarn/cache/pathval-npm-1.1.1-ce0311d7e0-090e314771.zip +0 -0
- package/.yarn/cache/picocolors-npm-1.0.0-d81e0b1927-a2e8092dd8.zip +0 -0
- package/.yarn/cache/picomatch-npm-2.2.2-1ce736a913-897a589f94.zip +0 -0
- package/.yarn/cache/pify-npm-4.0.1-062756097b-9c4e34278c.zip +0 -0
- package/.yarn/cache/pkg-dir-npm-4.2.0-2b5d0a8d32-9863e3f351.zip +0 -0
- package/.yarn/cache/prettier-npm-2.5.1-58b195b509-21b9408476.zip +0 -0
- package/.yarn/cache/promise-inflight-npm-1.0.1-5bb925afac-2274948309.zip +0 -0
- package/.yarn/cache/promise-retry-npm-2.0.1-871f0b01b7-f96a3f6d90.zip +0 -0
- package/.yarn/cache/punycode-npm-2.1.1-26eb3e15cf-823bf443c6.zip +0 -0
- package/.yarn/cache/qjobs-npm-1.2.0-e3396bd5d4-eb64c00724.zip +0 -0
- package/.yarn/cache/qs-npm-6.9.6-fee5de1427-cb6df402bb.zip +0 -0
- package/.yarn/cache/randombytes-npm-2.1.0-e3da76bccf-d779499376.zip +0 -0
- package/.yarn/cache/range-parser-npm-1.2.1-1a470fa390-0a268d4fea.zip +0 -0
- package/.yarn/cache/raw-body-npm-2.4.2-f70aad454d-c6f8d6a75c.zip +0 -0
- package/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip +0 -0
- package/.yarn/cache/readdirp-npm-3.6.0-f950cc74ab-1ced032e6e.zip +0 -0
- package/.yarn/cache/rechoir-npm-0.7.0-9bea79bab8-15f55f55e0.zip +0 -0
- package/.yarn/cache/regenerate-npm-1.4.2-b296c5b63a-3317a09b2f.zip +0 -0
- package/.yarn/cache/regenerate-unicode-properties-npm-8.2.0-0e54c6463c-ee7db70ab2.zip +0 -0
- package/.yarn/cache/regenerator-runtime-npm-0.13.9-6d02340eec-65ed455fe5.zip +0 -0
- package/.yarn/cache/regenerator-transform-npm-0.14.5-40045884e9-a467a3b652.zip +0 -0
- package/.yarn/cache/regexpu-core-npm-4.7.1-67fbfa97ed-368b4aab72.zip +0 -0
- package/.yarn/cache/regjsgen-npm-0.5.2-4c9c408ab2-87c83d8488.zip +0 -0
- package/.yarn/cache/regjsparser-npm-0.6.9-4fe5869344-1c439ec46a.zip +0 -0
- package/.yarn/cache/require-directory-npm-2.1.1-8608aee50b-fb47e70bf0.zip +0 -0
- package/.yarn/cache/requires-port-npm-1.0.0-fd036b488a-eee0e303ad.zip +0 -0
- package/.yarn/cache/resolve-cwd-npm-3.0.0-e6f4e296bf-546e081601.zip +0 -0
- package/.yarn/cache/resolve-from-npm-5.0.0-15c9db4d33-4ceeb9113e.zip +0 -0
- package/.yarn/cache/resolve-npm-1.19.0-1c75f25c98-a05b356e47.zip +0 -0
- package/.yarn/cache/resolve-npm-1.20.0-1bc5878aa9-40cf70b2cd.zip +0 -0
- package/.yarn/cache/resolve-patch-b4a69197d3-a0dd7d16a8.zip +0 -0
- package/.yarn/cache/resolve-patch-b5bfe46717-2443b94d34.zip +0 -0
- package/.yarn/cache/retry-npm-0.12.0-72ac7fb4cc-623bd7d2e5.zip +0 -0
- package/.yarn/cache/rfdc-npm-1.3.0-272f288ad8-fb2ba8512e.zip +0 -0
- package/.yarn/cache/rimraf-npm-3.0.2-2cb7dac69a-87f4164e39.zip +0 -0
- package/.yarn/cache/safe-buffer-npm-5.1.2-c27fedf6c4-f2f1f7943c.zip +0 -0
- package/.yarn/cache/safe-buffer-npm-5.2.1-3481c8aa9b-b99c4b41fd.zip +0 -0
- package/.yarn/cache/safer-buffer-npm-2.1.2-8d5c0b705e-cab8f25ae6.zip +0 -0
- package/.yarn/cache/schema-utils-npm-2.7.1-f84d18c473-32c62fc9e2.zip +0 -0
- package/.yarn/cache/schema-utils-npm-3.1.1-8704647575-fb73f3d759.zip +0 -0
- package/.yarn/cache/semver-npm-5.7.1-40bcea106b-57fd0acfd0.zip +0 -0
- package/.yarn/cache/semver-npm-6.3.0-b3eace8bfd-1b26ecf6db.zip +0 -0
- package/.yarn/cache/semver-npm-7.0.0-218e8c00ca-272c11bf8d.zip +0 -0
- package/.yarn/cache/semver-npm-7.3.5-618cf5db6a-5eafe6102b.zip +0 -0
- package/.yarn/cache/serialize-javascript-npm-6.0.0-0bb8a3c88d-56f90b562a.zip +0 -0
- package/.yarn/cache/set-blocking-npm-2.0.0-49e2cffa24-6e65a05f7c.zip +0 -0
- package/.yarn/cache/setprototypeof-npm-1.2.0-0fedbdcd3a-be18cbbf70.zip +0 -0
- package/.yarn/cache/shallow-clone-npm-3.0.1-dab5873d0d-39b3dd9630.zip +0 -0
- package/.yarn/cache/shebang-command-npm-2.0.0-eb2b01921d-6b52fe8727.zip +0 -0
- package/.yarn/cache/shebang-regex-npm-3.0.0-899a0cd65e-1a2bcae50d.zip +0 -0
- package/.yarn/cache/signal-exit-npm-3.0.3-5a2d797648-f0169d3f12.zip +0 -0
- package/.yarn/cache/signal-exit-npm-3.0.6-66fc2466b6-b819ac81ba.zip +0 -0
- package/.yarn/cache/slash-npm-2.0.0-69009eac54-512d435073.zip +0 -0
- package/.yarn/cache/smart-buffer-npm-4.2.0-5ac3f668bb-b5167a7142.zip +0 -0
- package/.yarn/cache/socket.io-adapter-npm-2.3.3-4fd6b5d0bd-73890e0a33.zip +0 -0
- package/.yarn/cache/socket.io-npm-4.4.0-dc1419e09a-3e680f6969.zip +0 -0
- package/.yarn/cache/socket.io-parser-npm-4.0.4-1dfc284556-c173b4f374.zip +0 -0
- package/.yarn/cache/socks-npm-2.6.1-09133d0d22-2ca9d616e4.zip +0 -0
- package/.yarn/cache/socks-proxy-agent-npm-6.1.1-a3843946ba-9a8a4f791b.zip +0 -0
- package/.yarn/cache/source-map-npm-0.5.7-7c3f035429-5dc2043b93.zip +0 -0
- package/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip +0 -0
- package/.yarn/cache/source-map-npm-0.7.3-e3b4f7982a-cd24efb3b8.zip +0 -0
- package/.yarn/cache/source-map-support-npm-0.5.21-09ca99e250-43e98d700d.zip +0 -0
- package/.yarn/cache/ssri-npm-8.0.0-276fb838a8-50085886f4.zip +0 -0
- package/.yarn/cache/ssri-npm-8.0.1-a369e72ce2-bc447f5af8.zip +0 -0
- package/.yarn/cache/statuses-npm-1.5.0-f88f91b2e9-c469b9519d.zip +0 -0
- package/.yarn/cache/streamroller-npm-2.2.4-84aaab4674-83060ded80.zip +0 -0
- package/.yarn/cache/string-width-npm-4.2.3-2c27177bae-e52c10dc3f.zip +0 -0
- package/.yarn/cache/string_decoder-npm-1.3.0-2422117fd0-8417646695.zip +0 -0
- package/.yarn/cache/strip-ansi-npm-6.0.1-caddc7cb40-f3cd25890a.zip +0 -0
- package/.yarn/cache/strip-final-newline-npm-2.0.0-340c4f7c66-69412b5e25.zip +0 -0
- package/.yarn/cache/strip-json-comments-npm-3.1.1-dcb2324823-492f73e272.zip +0 -0
- package/.yarn/cache/supports-color-npm-5.5.0-183ac537bc-95f6f4ba5a.zip +0 -0
- package/.yarn/cache/supports-color-npm-7.2.0-606bfcf7da-3dda818de0.zip +0 -0
- package/.yarn/cache/supports-color-npm-8.1.1-289e937149-c052193a7e.zip +0 -0
- package/.yarn/cache/tapable-npm-2.2.1-8cf5ff3039-3b7a1b4d86.zip +0 -0
- package/.yarn/cache/tar-npm-6.1.11-e6ac3cba9c-a04c07bb9e.zip +0 -0
- package/.yarn/cache/terser-npm-5.10.0-1690d2acb8-1080faeb6d.zip +0 -0
- package/.yarn/cache/terser-webpack-plugin-npm-5.3.0-ab1338dfb0-f6735b8bb2.zip +0 -0
- package/.yarn/cache/tmp-npm-0.2.1-a9c8d9c0ca-8b12146541.zip +0 -0
- package/.yarn/cache/to-fast-properties-npm-2.0.0-0dc60cc481-be2de62fe5.zip +0 -0
- package/.yarn/cache/to-regex-range-npm-5.0.1-f1e8263b00-f76fa01b3d.zip +0 -0
- package/.yarn/cache/toidentifier-npm-1.0.1-f759712599-952c29e2a8.zip +0 -0
- package/.yarn/cache/tslib-npm-1.14.1-102499115e-dbe628ef87.zip +0 -0
- package/.yarn/cache/type-detect-npm-4.0.8-8d8127b901-62b5628bff.zip +0 -0
- package/.yarn/cache/type-is-npm-1.6.18-6dee4d4961-2c8e47675d.zip +0 -0
- package/.yarn/cache/typescript-npm-4.5.5-b3e3678b69-506f4c919d.zip +0 -0
- package/.yarn/cache/typescript-patch-3020d8933d-c05c318d79.zip +0 -0
- package/.yarn/cache/ua-parser-js-npm-0.7.31-aeb4c9aae9-e2f8324a83.zip +0 -0
- package/.yarn/cache/unicode-canonical-property-names-ecmascript-npm-1.0.4-8c5eeb73e7-cc1973b18d.zip +0 -0
- package/.yarn/cache/unicode-match-property-ecmascript-npm-1.0.4-4729801dd7-08e269fac7.zip +0 -0
- package/.yarn/cache/unicode-match-property-value-ecmascript-npm-1.2.0-d6b5d66edf-2e663cfec8.zip +0 -0
- package/.yarn/cache/unicode-property-aliases-ecmascript-npm-1.1.0-2d3021f23b-1a96dc462d.zip +0 -0
- package/.yarn/cache/unique-filename-npm-1.1.1-c885c5095b-cf4998c922.zip +0 -0
- package/.yarn/cache/unique-slug-npm-2.0.2-f6ba1ddeb7-5b6876a645.zip +0 -0
- package/.yarn/cache/universalify-npm-0.1.2-9b22d31d2d-40cdc60f6e.zip +0 -0
- package/.yarn/cache/unpipe-npm-1.0.0-2ed2a3c2bf-4fa18d8d8d.zip +0 -0
- package/.yarn/cache/uri-js-npm-4.4.1-66d11cbcaf-7167432de6.zip +0 -0
- package/.yarn/cache/util-deprecate-npm-1.0.2-e3fe1a219c-474acf1146.zip +0 -0
- package/.yarn/cache/util.promisify-npm-1.0.0-945566c45a-482e857d67.zip +0 -0
- package/.yarn/cache/utils-merge-npm-1.0.1-363bbdfbca-c810954932.zip +0 -0
- package/.yarn/cache/vary-npm-1.1.2-b49f70ae63-ae0123222c.zip +0 -0
- package/.yarn/cache/void-elements-npm-2.0.1-85e6962130-700c07ba9c.zip +0 -0
- package/.yarn/cache/watchpack-npm-2.3.1-89e7852543-70a34f9284.zip +0 -0
- package/.yarn/cache/webpack-cli-npm-4.9.2-5e7d77ef6f-ffb4c5d53a.zip +0 -0
- package/.yarn/cache/webpack-merge-npm-5.7.3-f596ce4401-09608c3a49.zip +0 -0
- package/.yarn/cache/webpack-npm-5.67.0-77afb9c06d-a7f810a5e1.zip +0 -0
- package/.yarn/cache/webpack-sources-npm-3.2.3-6bfb5d9563-989e401b9f.zip +0 -0
- package/.yarn/cache/which-npm-1.3.1-f0ebb8bdd8-f2e185c624.zip +0 -0
- package/.yarn/cache/which-npm-2.0.2-320ddf72f7-1a5c563d3c.zip +0 -0
- package/.yarn/cache/wide-align-npm-1.1.5-889d77e592-d5fc37cd56.zip +0 -0
- package/.yarn/cache/wildcard-npm-2.0.0-baedca033a-1f4fe4c03d.zip +0 -0
- package/.yarn/cache/workerpool-npm-6.2.0-d2a722f6bb-3493b4f0ef.zip +0 -0
- package/.yarn/cache/wrap-ansi-npm-7.0.0-ad6e1a0554-a790b846fd.zip +0 -0
- package/.yarn/cache/wrappy-npm-1.0.2-916de4d4b3-159da4805f.zip +0 -0
- package/.yarn/cache/ws-npm-8.2.3-03a35b8ad7-c869296ccb.zip +0 -0
- package/.yarn/cache/y18n-npm-5.0.8-5f3a0a7e62-54f0fb9562.zip +0 -0
- package/.yarn/cache/yallist-npm-4.0.0-b493d9e907-343617202a.zip +0 -0
- package/.yarn/cache/yargs-npm-16.2.0-547873d425-b14afbb51e.zip +0 -0
- package/.yarn/cache/yargs-parser-npm-10.1.0-04b00264c9-4cd4620783.zip +0 -0
- package/.yarn/cache/yargs-parser-npm-20.2.4-1de20916a6-d251998a37.zip +0 -0
- package/.yarn/cache/yargs-parser-npm-20.2.9-a1d19e598d-8bb69015f2.zip +0 -0
- package/.yarn/cache/yargs-unparser-npm-2.0.0-930f3ff3f6-68f9a542c6.zip +0 -0
- package/.yarn/cache/yocto-queue-npm-0.1.0-c6c9a7db29-f77b3d8d00.zip +0 -0
- package/.yarn/install-state.gz +0 -0
- package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +363 -0
- package/.yarn/releases/yarn-3.1.1.cjs +768 -0
- package/.yarnrc +5 -0
- package/.yarnrc.yml +7 -0
- package/README.md +51 -40
- package/dist/crunker.d.ts +8 -0
- package/dist/crunker.js +1 -1
- package/dist/crunker.js.map +1 -1
- package/examples/README.md +4 -2
- package/examples/client/beatBuilder.html +54 -0
- package/karma.conf.js +20 -0
- package/package.json +28 -22
- package/src/crunker.ts +47 -20
- package/tsconfig.json +7 -59
- package/webpack.config.js +1 -1
- package/webpack.test.config.js +1 -1
package/.yarnrc
ADDED
package/.yarnrc.yml
ADDED
package/README.md
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
# Crunker
|
|
2
2
|
|
|
3
|
-
**Experimental, use in production with caution**
|
|
4
|
-
|
|
5
3
|
Simple way to merge, concatenate, play, export and download audio files with the Web Audio API.
|
|
6
4
|
|
|
7
5
|
- No dependencies
|
|
8
6
|
- Tiny 2kB gzipped
|
|
9
7
|
- Written in Typescript
|
|
10
8
|
|
|
9
|
+
[View online demos](https://jaggad.github.io/crunker/examples/)
|
|
10
|
+
|
|
11
11
|
# Installation
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
14
|
yarn add crunker
|
|
15
15
|
```
|
|
16
|
+
|
|
16
17
|
```sh
|
|
17
18
|
npm install crunker
|
|
18
19
|
```
|
|
@@ -23,22 +24,22 @@ npm install crunker
|
|
|
23
24
|
let crunker = new Crunker();
|
|
24
25
|
|
|
25
26
|
crunker
|
|
26
|
-
.fetchAudio(
|
|
27
|
-
.then(buffers => {
|
|
27
|
+
.fetchAudio('/song.mp3', '/another-song.mp3')
|
|
28
|
+
.then((buffers) => {
|
|
28
29
|
// => [AudioBuffer, AudioBuffer]
|
|
29
30
|
return crunker.mergeAudio(buffers);
|
|
30
31
|
})
|
|
31
|
-
.then(merged => {
|
|
32
|
+
.then((merged) => {
|
|
32
33
|
// => AudioBuffer
|
|
33
|
-
return crunker.export(merged,
|
|
34
|
+
return crunker.export(merged, 'audio/mp3');
|
|
34
35
|
})
|
|
35
|
-
.then(output => {
|
|
36
|
+
.then((output) => {
|
|
36
37
|
// => {blob, element, url}
|
|
37
38
|
crunker.download(output.blob);
|
|
38
39
|
document.body.append(output.element);
|
|
39
40
|
console.log(output.url);
|
|
40
41
|
})
|
|
41
|
-
.catch(error => {
|
|
42
|
+
.catch((error) => {
|
|
42
43
|
// => Error Message
|
|
43
44
|
});
|
|
44
45
|
|
|
@@ -53,11 +54,11 @@ crunker.notSupported(() => {
|
|
|
53
54
|
let crunker = new Crunker();
|
|
54
55
|
|
|
55
56
|
crunker
|
|
56
|
-
.fetchAudio(
|
|
57
|
-
.then(buffers => crunker.mergeAudio(buffers))
|
|
58
|
-
.then(merged => crunker.export(merged,
|
|
59
|
-
.then(output => crunker.download(output.blob))
|
|
60
|
-
.catch(error => {
|
|
57
|
+
.fetchAudio('/voice.mp3', '/background.mp3')
|
|
58
|
+
.then((buffers) => crunker.mergeAudio(buffers))
|
|
59
|
+
.then((merged) => crunker.export(merged, 'audio/mp3'))
|
|
60
|
+
.then((output) => crunker.download(output.blob))
|
|
61
|
+
.catch((error) => {
|
|
61
62
|
throw new Error(error);
|
|
62
63
|
});
|
|
63
64
|
```
|
|
@@ -68,16 +69,16 @@ crunker
|
|
|
68
69
|
let crunker = new Crunker();
|
|
69
70
|
|
|
70
71
|
const onFileInputChange = async (target) => {
|
|
71
|
-
const buffers = await crunker.fetchAudio(...target.files,
|
|
72
|
+
const buffers = await crunker.fetchAudio(...target.files, '/voice.mp3', '/background.mp3');
|
|
72
73
|
};
|
|
73
74
|
|
|
74
|
-
<input
|
|
75
|
-
onChange={onFileInputChange(this)}
|
|
76
|
-
type="file"
|
|
77
|
-
accept="audio/*"
|
|
78
|
-
/>
|
|
75
|
+
<input onChange={onFileInputChange(this)} type="file" accept="audio/*" />;
|
|
79
76
|
```
|
|
80
77
|
|
|
78
|
+
## Other Examples
|
|
79
|
+
|
|
80
|
+
- [Beat Builder Machine](examples/client/beatBuilder.html)
|
|
81
|
+
|
|
81
82
|
# [Graphic Representation of Methods](https://github.com/jackedgson/crunker/issues/16)
|
|
82
83
|
|
|
83
84
|
## Merge
|
|
@@ -92,52 +93,62 @@ const onFileInputChange = async (target) => {
|
|
|
92
93
|
|
|
93
94
|
For more detailed API documentation, view the Typescript typings.
|
|
94
95
|
|
|
95
|
-
## new Crunker(
|
|
96
|
+
## new Crunker()
|
|
96
97
|
|
|
97
|
-
Create a new Crunker.
|
|
98
|
-
You may optionally provide an object with a `sampleRate` key,
|
|
98
|
+
Create a new instance of Crunker.
|
|
99
|
+
You may optionally provide an object with a `sampleRate` key, but it will default to the same sample rate as the internal audio context, which is appropriate for your device.
|
|
99
100
|
|
|
100
101
|
## crunker.fetchAudio(songURL, anotherSongURL)
|
|
101
102
|
|
|
102
|
-
Fetch one or more audio files
|
|
103
|
-
Returns
|
|
103
|
+
Fetch one or more audio files.\
|
|
104
|
+
**Returns:** an array of audio buffers in the order they were fetched.
|
|
104
105
|
|
|
105
106
|
## crunker.mergeAudio(arrayOfBuffers);
|
|
106
107
|
|
|
107
|
-
Merge two or more audio buffers
|
|
108
|
-
Returns
|
|
108
|
+
Merge two or more audio buffers.\
|
|
109
|
+
**Returns:** a single `AudioBuffer` object.
|
|
109
110
|
|
|
110
111
|
## crunker.concatAudio(arrayOfBuffers);
|
|
111
112
|
|
|
112
|
-
Concatenate two or more audio buffers in the order specified
|
|
113
|
-
Returns
|
|
113
|
+
Concatenate two or more audio buffers in the order specified.\
|
|
114
|
+
**Returns:** a single `AudioBuffer` object.
|
|
114
115
|
|
|
115
116
|
## crunker.padAudio(buffer, padStart, seconds);
|
|
116
117
|
|
|
117
|
-
Pad the audio with silence, at the beginning, the end, or any specified points through the audio
|
|
118
|
-
Returns
|
|
118
|
+
Pad the audio with silence, at the beginning, the end, or any specified points through the audio.\
|
|
119
|
+
**Returns:** a single `AudioBuffer` object.
|
|
119
120
|
|
|
120
121
|
## crunker.export(buffer, type);
|
|
121
122
|
|
|
122
|
-
Export an audio buffers with MIME type option
|
|
123
|
-
Type
|
|
124
|
-
|
|
123
|
+
Export an audio buffers with MIME type option.\
|
|
124
|
+
**Type:** e.g. `'audio/mp3', 'audio/wav', 'audio/ogg'`.
|
|
125
|
+
**IMPORTANT**: the MIME type does **not** change the actual file format. It will always be a `WAVE` file under the hood.\
|
|
126
|
+
**Returns:** an object containing the blob object, url, and an audio element object.
|
|
125
127
|
|
|
126
128
|
## crunker.download(blob, filename);
|
|
127
129
|
|
|
128
|
-
Automatically download an exported audio blob with optional filename
|
|
129
|
-
Filename
|
|
130
|
-
Returns
|
|
130
|
+
Automatically download an exported audio blob with optional filename.\
|
|
131
|
+
**Filename:** String **not** containing the .mp3, .wav, or .ogg file extension.\
|
|
132
|
+
**Returns:** the `HTMLAnchorElement` element used to simulate the automatic download.
|
|
131
133
|
|
|
132
134
|
## crunker.play(buffer);
|
|
133
135
|
|
|
134
|
-
Starts playing the exported audio buffer in the background
|
|
135
|
-
Returns
|
|
136
|
+
Starts playing the exported audio buffer in the background.\
|
|
137
|
+
**Returns:** the `HTMLAudioElement`.
|
|
136
138
|
|
|
137
139
|
## crunker.notSupported(callback);
|
|
138
140
|
|
|
139
|
-
Execute custom code if Web Audio API is not supported by the users browser
|
|
140
|
-
Returns
|
|
141
|
+
Execute custom code if Web Audio API is not supported by the users browser.\
|
|
142
|
+
**Returns:** The callback function.
|
|
143
|
+
|
|
144
|
+
# Properties
|
|
145
|
+
|
|
146
|
+
For more detailed API documentation, view the Typescript typings.
|
|
147
|
+
|
|
148
|
+
## crunker.context
|
|
149
|
+
|
|
150
|
+
Access the [AudioContext](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext) used internally by a given Crunker.\
|
|
151
|
+
**Returns:** [AudioContext](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext).
|
|
141
152
|
|
|
142
153
|
# License
|
|
143
154
|
|
package/dist/crunker.d.ts
CHANGED
|
@@ -23,6 +23,9 @@ export default class Crunker {
|
|
|
23
23
|
private readonly _context;
|
|
24
24
|
/**
|
|
25
25
|
* Creates a new instance of Crunker with the provided options.
|
|
26
|
+
*
|
|
27
|
+
* If `sampleRate` is not defined, it will auto-select an appropriate sample rate
|
|
28
|
+
* for the device being used.
|
|
26
29
|
*/
|
|
27
30
|
constructor({ sampleRate }?: Partial<CrunkerConstructorOptions>);
|
|
28
31
|
/**
|
|
@@ -31,6 +34,11 @@ export default class Crunker {
|
|
|
31
34
|
* @internal
|
|
32
35
|
*/
|
|
33
36
|
private _createContext;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* The internal AudioContext used by Crunker.
|
|
40
|
+
*/
|
|
41
|
+
get context(): AudioContext;
|
|
34
42
|
/**
|
|
35
43
|
* Asynchronously fetches multiple audio files and returns an array of AudioBuffers.
|
|
36
44
|
*/
|
package/dist/crunker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Crunker",[],t):"object"==typeof exports?exports.Crunker=t():e.Crunker=t()}(
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Crunker",[],t):"object"==typeof exports?exports.Crunker=t():e.Crunker=t()}(self,(function(){return(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function n(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.r(t),e.d(t,{default:()=>i});var i=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.sampleRate;a(this,e),this._context=this._createContext(),n||(n=this._context.sampleRate),this._sampleRate=n}var t,r,i;return t=e,r=[{key:"_createContext",value:function(){return window.AudioContext=window.AudioContext||window.webkitAudioContext||window.mozAudioContext,new AudioContext}},{key:"context",get:function(){return this._context}},{key:"fetchAudio",value:async function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return await Promise.all(n.map((async function(t){var n;return n=t instanceof File||t instanceof Blob?await t.arrayBuffer():await fetch(t).then((function(e){return e.headers.has("Content-Type")&&!e.headers.get("Content-Type").includes("audio/")&&console.warn("Crunker: Attempted to fetch an audio file, but its MIME type is `".concat(e.headers.get("Content-Type").split(";")[0],"`. We'll try and continue anyway. (file: \"").concat(t,'")')),e.arrayBuffer()})),await e._context.decodeAudioData(n)})))}},{key:"mergeAudio",value:function(e){var t=this._context.createBuffer(this._maxNumberOfChannels(e),this._sampleRate*this._maxDuration(e),this._sampleRate);return e.forEach((function(e){for(var n=0;n<e.numberOfChannels;n++){for(var r=t.getChannelData(n),a=e.getChannelData(n),o=e.getChannelData(n).length-1;o>=0;o--)r[o]+=a[o];t.getChannelData(n).set(r)}})),t}},{key:"concatAudio",value:function(e){var t=this._context.createBuffer(this._maxNumberOfChannels(e),this._totalLength(e),this._sampleRate),n=0;return e.forEach((function(e){for(var r=0;r<e.numberOfChannels;r++)t.getChannelData(r).set(e.getChannelData(r),n);n+=e.length})),t}},{key:"padAudio",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===n)return e;if(t<0)throw new Error('Crunker: Parameter "padStart" in padAudio must be positive');if(n<0)throw new Error('Crunker: Parameter "seconds" in padAudio must be positive');for(var r=this._context.createBuffer(e.numberOfChannels,Math.ceil(e.length+n*e.sampleRate),e.sampleRate),a=0;a<e.numberOfChannels;a++){var o=e.getChannelData(a);r.getChannelData(a).set(o.subarray(0,Math.ceil(t*e.sampleRate)+1),0),r.getChannelData(a).set(o.subarray(Math.ceil(t*e.sampleRate)+2,r.length+1),Math.ceil((t+n)*e.sampleRate))}return r}},{key:"play",value:function(e){var t=this._context.createBufferSource();return t.buffer=e,t.connect(this._context.destination),t.start(),t}},{key:"export",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"audio/wav",n=this._interleave(e),r=this._writeHeaders(n,e.numberOfChannels,e.sampleRate),a=new Blob([r],{type:t});return{blob:a,url:this._renderURL(a),element:this._renderAudioElement(a)}}},{key:"download",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"crunker",n=document.createElement("a");return n.style.display="none",n.href=this._renderURL(e),n.download="".concat(t,".").concat(e.type.split("/")[1]),n.click(),n}},{key:"notSupported",value:function(e){return this._isSupported()?void 0:e()}},{key:"close",value:function(){return this._context.close(),this}},{key:"_maxDuration",value:function(e){return Math.max.apply(Math,n(e.map((function(e){return e.duration}))))}},{key:"_maxNumberOfChannels",value:function(e){return Math.max.apply(Math,n(e.map((function(e){return e.numberOfChannels}))))}},{key:"_totalLength",value:function(e){return e.map((function(e){return e.length})).reduce((function(e,t){return e+t}),0)}},{key:"_isSupported",value:function(){return"AudioContext"in window||"webkitAudioContext"in window||"mozAudioContext"in window}},{key:"_writeHeaders",value:function(e,t,n){var r=2*t,a=2*e.length,o=36+a,i=new ArrayBuffer(8+o),u=new DataView(i);return this._writeString(u,0,"RIFF"),u.setUint32(4,o,!0),this._writeString(u,8,"WAVE"),this._writeString(u,12,"fmt "),u.setUint32(16,16,!0),u.setUint16(20,1,!0),u.setUint16(22,t,!0),u.setUint32(24,n,!0),u.setUint32(28,n*r,!0),u.setUint16(32,r,!0),u.setUint16(34,16,!0),this._writeString(u,36,"data"),u.setUint32(40,a,!0),this._floatTo16BitPCM(u,e,44)}},{key:"_floatTo16BitPCM",value:function(e,t,n){for(var r=0;r<t.length;r++,n+=2){var a=Math.max(-1,Math.min(1,t[r]));e.setInt16(n,a<0?32768*a:32767*a,!0)}return e}},{key:"_writeString",value:function(e,t,n){for(var r=0;r<n.length;r++)e.setUint8(t+r,n.charCodeAt(r))}},{key:"_interleave",value:function(e){for(var t=Array.from({length:e.numberOfChannels},(function(e,t){return t})),n=t.reduce((function(t,n){return t+e.getChannelData(n).length}),0),r=new Float32Array(n),a=0,o=0;a<n;)t.forEach((function(t){r[a++]=e.getChannelData(t)[o]})),o++;return r}},{key:"_renderAudioElement",value:function(e){var t=document.createElement("audio");return t.controls=!0,t.src=this._renderURL(e),t}},{key:"_renderURL",value:function(e){return(window.URL||window.webkitURL).createObjectURL(e)}}],r&&o(t.prototype,r),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();return t})()}));
|
|
2
2
|
//# sourceMappingURL=crunker.js.map
|
package/dist/crunker.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://Crunker/webpack/universalModuleDefinition","webpack://Crunker/webpack/bootstrap","webpack://Crunker/./crunker.ts"],"names":["root","factory","exports","module","define","amd","window","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","Crunker","sampleRate","this","_sampleRate","_context","_createContext","AudioContext","webkitAudioContext","mozAudioContext","async","filepaths","Promise","all","map","filepath","buffer","File","Blob","arrayBuffer","fetch","then","response","headers","has","includes","console","warn","split","decodeAudioData","buffers","output","createBuffer","_maxNumberOfChannels","_maxDuration","forEach","channelNumber","numberOfChannels","outputData","getChannelData","bufferData","length","set","_totalLength","offset","padStart","seconds","Error","updatedBuffer","Math","ceil","channelData","subarray","source","createBufferSource","connect","destination","start","type","recorded","_interleave","dataview","_writeHeaders","audioBlob","blob","url","_renderURL","element","_renderAudioElement","filename","a","document","createElement","style","display","href","download","click","callback","_isSupported","undefined","close","max","duration","reduce","b","ArrayBuffer","view","DataView","_writeString","setUint32","setUint16","_floatTo16BitPCM","tmp","min","setInt16","header","setUint8","charCodeAt","input","result","Float32Array","index","inputIndex","audio","controls","src","URL","webkitURL","createObjectURL"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,UAAW,GAAIH,GACI,iBAAZC,QACdA,QAAiB,QAAID,IAErBD,EAAc,QAAIC,IARpB,CASGK,QAAQ,WACX,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUP,QAGnC,IAAIC,EAASI,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHT,QAAS,IAUV,OANAU,EAAQH,GAAUI,KAAKV,EAAOD,QAASC,EAAQA,EAAOD,QAASM,GAG/DL,EAAOQ,GAAI,EAGJR,EAAOD,QA0Df,OArDAM,EAAoBM,EAAIF,EAGxBJ,EAAoBO,EAAIR,EAGxBC,EAAoBQ,EAAI,SAASd,EAASe,EAAMC,GAC3C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,GAAI,QAC5BA,EAAKG,UAAU,GAAoB,EAAhB1E,EAAOyB,QAAY,GAE/BtC,KAAKyF,iBAAiBL,EAAMvE,EAAQ,M,8BAQ7C,SAAyB6C,EAAoB7C,EAAsB4B,GACjE,IAAK,IAAI3E,EAAI,EAAGA,EAAI+C,EAAOyB,OAAQxE,IAAK2E,GAAU,EAAG,CACnD,IAAMiD,EAAM5C,KAAKiC,KAAK,EAAGjC,KAAK6C,IAAI,EAAG9E,EAAO/C,KAC5C4F,EAASkC,SAASnD,EAAQiD,EAAM,EAAU,MAANA,EAAqB,MAANA,GAAc,GAGnE,OAAOhC,I,0BAQT,SAAqBA,EAAoBjB,EAAgBoD,GACvD,IAAK,IAAI/H,EAAI,EAAGA,EAAI+H,EAAOvD,OAAQxE,IACjC4F,EAASoC,SAASrD,EAAS3E,EAAG+H,EAAOE,WAAWjI,M,yBASpD,SAAoBkI,GAQlB,IAPA,IAAMnF,EAASmF,EAAM5D,eAAe,GAClCE,EAAyB,EAAhBzB,EAAOyB,OAChB2D,EAAS,IAAIC,aAAa5D,GAExB6D,EAAQ,EACVC,EAAa,EAERD,EAAQ7D,GACb2D,EAAOE,KAAWtF,EAAOuF,GACzBH,EAAOE,KAAWtF,EAAOuF,GACzBA,IAEF,OAAOH,I,iCAQT,SAA4BpC,GAC1B,IAAMwC,EAAQjC,SAASC,cAAc,SAKrC,OAHAgC,EAAMC,UAAW,EACjBD,EAAME,IAAMvG,KAAK+D,WAAWF,GAErBwC,I,wBAQT,SAAmBxC,GACjB,OAAQnG,OAAO8I,KAAO9I,OAAO+I,WAAWC,gBAAgB7C,Q","file":"crunker.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"Crunker\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Crunker\"] = factory();\n\telse\n\t\troot[\"Crunker\"] = factory();\n})(window, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","export interface CrunkerConstructorOptions {\n /**\n * Sample rate for Crunker's internal audio context.\n *\n * @default 44100\n */\n sampleRate: number;\n}\n\nexport type CrunkerInputTypes = string | File | Blob;\n\n/**\n * An exported Crunker audio object.\n */\nexport interface ExportedCrunkerAudio {\n blob: Blob;\n url: string;\n element: HTMLAudioElement;\n}\n\n/**\n * Crunker is the simple way to merge, concatenate, play, export and download audio files using the Web Audio API.\n */\nexport default class Crunker {\n private readonly _sampleRate: number;\n private readonly _context: AudioContext;\n\n /**\n * Creates a new instance of Crunker with the provided options.\n */\n constructor({ sampleRate = 44100 }: Partial<CrunkerConstructorOptions> = {}) {\n this._sampleRate = sampleRate;\n this._context = this._createContext();\n }\n\n /**\n * Creates Crunker's internal AudioContext.\n *\n * @internal\n */\n private _createContext(): AudioContext {\n window.AudioContext = window.AudioContext || (window as any).webkitAudioContext || (window as any).mozAudioContext;\n return new AudioContext();\n }\n\n /**\n * Asynchronously fetches multiple audio files and returns an array of AudioBuffers.\n */\n async fetchAudio(...filepaths: CrunkerInputTypes[]): Promise<AudioBuffer[]> {\n return await Promise.all(\n filepaths.map(async (filepath) => {\n let buffer: ArrayBuffer;\n\n if (filepath instanceof File || filepath instanceof Blob) {\n buffer = await filepath.arrayBuffer();\n } else {\n buffer = await fetch(filepath).then((response) => {\n if (response.headers.has('Content-Type') && !response.headers.get('Content-Type')!.includes('audio/')) {\n console.warn(\n `Crunker: Attempted to fetch an audio file, but its MIME type is \\`${\n response.headers.get('Content-Type')!.split(';')[0]\n }\\`. We'll try and continue anyway. (file: \"${filepath}\")`\n );\n }\n\n return response.arrayBuffer();\n });\n }\n\n return await this._context.decodeAudioData(buffer);\n })\n );\n }\n\n /**\n * Merges (layers) multiple AudioBuffers into a single AudioBuffer.\n *\n * **Visual representation:**\n *\n * \n */\n mergeAudio(buffers: AudioBuffer[]): AudioBuffer {\n const output = this._context.createBuffer(\n this._maxNumberOfChannels(buffers),\n this._sampleRate * this._maxDuration(buffers),\n this._sampleRate\n );\n\n buffers.forEach((buffer) => {\n for (let channelNumber = 0; channelNumber < buffer.numberOfChannels; channelNumber++) {\n const outputData = output.getChannelData(channelNumber);\n const bufferData = buffer.getChannelData(channelNumber);\n\n for (let i = buffer.getChannelData(channelNumber).length - 1; i >= 0; i--) {\n outputData[i] += bufferData[i];\n }\n\n output.getChannelData(channelNumber).set(outputData);\n }\n });\n\n return output;\n }\n\n /**\n * Concatenates multiple AudioBuffers into a single AudioBuffer.\n *\n * **Visual representation:**\n *\n * \n */\n concatAudio(buffers: AudioBuffer[]): AudioBuffer {\n const output = this._context.createBuffer(\n this._maxNumberOfChannels(buffers),\n this._totalLength(buffers),\n this._sampleRate\n );\n let offset = 0;\n\n buffers.forEach((buffer) => {\n for (let channelNumber = 0; channelNumber < buffer.numberOfChannels; channelNumber++) {\n output.getChannelData(channelNumber).set(buffer.getChannelData(channelNumber), offset);\n }\n\n offset += buffer.length;\n });\n\n return output;\n }\n\n /**\n * Pads a specified AudioBuffer with silence from a specified start time,\n * for a specified length of time.\n *\n * Accepts float values as well as whole integers.\n *\n * @param buffer AudioBuffer to pad\n * @param padStart Time to start padding (in seconds)\n * @param seconds Duration to pad for (in seconds)\n */\n padAudio(buffer: AudioBuffer, padStart: number = 0, seconds: number = 0): AudioBuffer {\n if (seconds === 0) return buffer;\n\n if (padStart < 0) throw new Error('Crunker: Parameter \"padStart\" in padAudio must be positive');\n if (seconds < 0) throw new Error('Crunker: Parameter \"seconds\" in padAudio must be positive');\n\n const updatedBuffer = this._context.createBuffer(\n buffer.numberOfChannels,\n Math.ceil(buffer.length + seconds * buffer.sampleRate),\n buffer.sampleRate\n );\n\n for (let channelNumber = 0; channelNumber < buffer.numberOfChannels; channelNumber++) {\n const channelData = buffer.getChannelData(channelNumber);\n updatedBuffer\n .getChannelData(channelNumber)\n .set(channelData.subarray(0, Math.ceil(padStart * buffer.sampleRate) + 1), 0);\n\n updatedBuffer\n .getChannelData(channelNumber)\n .set(\n channelData.subarray(Math.ceil(padStart * buffer.sampleRate) + 2, updatedBuffer.length + 1),\n Math.ceil((padStart + seconds) * buffer.sampleRate)\n );\n }\n\n return updatedBuffer;\n }\n\n /**\n * Plays the provided AudioBuffer in an AudioBufferSourceNode.\n */\n play(buffer: AudioBuffer): AudioBufferSourceNode {\n const source = this._context.createBufferSource();\n\n source.buffer = buffer;\n source.connect(this._context.destination);\n source.start();\n\n return source;\n }\n\n /**\n * Exports the specified AudioBuffer to a Blob, Object URI and HTMLAudioElement.\n *\n * Note that changing the MIME type does not change the actual file format. The\n * file format will **always** be a WAVE file due to how audio is stored in the\n * browser.\n *\n * @param buffer Buffer to export\n * @param type MIME type (default: `audio/wav`)\n */\n export(buffer: AudioBuffer, type: string = 'audio/wav'): ExportedCrunkerAudio {\n const recorded = this._interleave(buffer);\n const dataview = this._writeHeaders(recorded);\n const audioBlob = new Blob([dataview], { type });\n\n return {\n blob: audioBlob,\n url: this._renderURL(audioBlob),\n element: this._renderAudioElement(audioBlob),\n };\n }\n\n /**\n * Downloads the provided Blob.\n *\n * @param blob Blob to download\n * @param filename An optional file name to use for the download (default: `crunker`)\n */\n download(blob: Blob, filename: string = 'crunker'): HTMLAnchorElement {\n const a = document.createElement('a');\n\n a.style.display = 'none';\n a.href = this._renderURL(blob);\n a.download = `${filename}.${blob.type.split('/')[1]}`;\n a.click();\n\n return a;\n }\n\n /**\n * Executes a callback if the browser does not support the Web Audio API.\n *\n * Returns the result of the callback, or `undefined` if the Web Audio API is supported.\n *\n * @param callback callback to run if the browser does not support the Web Audio API\n */\n notSupported<T>(callback: () => T): T | undefined {\n return this._isSupported() ? undefined : callback();\n }\n\n /**\n * Closes Crunker's internal AudioContext.\n */\n close(): this {\n this._context.close();\n return this;\n }\n\n /**\n * Returns the largest duration of the longest AudioBuffer.\n *\n * @internal\n */\n private _maxDuration(buffers: AudioBuffer[]): number {\n return Math.max(...buffers.map((buffer) => buffer.duration));\n }\n\n /**\n * Returns the largest number of channels in an array of AudioBuffers.\n *\n * @internal\n */\n private _maxNumberOfChannels(buffers: AudioBuffer[]): number {\n return Math.max(...buffers.map((buffer) => buffer.numberOfChannels));\n }\n\n /**\n * Returns the sum of the lengths of an array of AudioBuffers.\n *\n * @internal\n */\n private _totalLength(buffers: AudioBuffer[]): number {\n return buffers.map((buffer) => buffer.length).reduce((a, b) => a + b, 0);\n }\n\n /**\n * Returns whether the browser supports the Web Audio API.\n *\n * @internal\n */\n private _isSupported(): boolean {\n return 'AudioContext' in window || 'webkitAudioContext' in window || 'mozAudioContext' in window;\n }\n\n /**\n * Writes the WAV headers for the specified Float32Array.\n *\n * Returns a DataView containing the WAV headers and file content.\n *\n * @internal\n */\n private _writeHeaders(buffer: Float32Array): DataView {\n const arrayBuffer = new ArrayBuffer(44 + buffer.length * 2);\n const view = new DataView(arrayBuffer);\n\n this._writeString(view, 0, 'RIFF');\n view.setUint32(4, 32 + buffer.length * 2, true);\n this._writeString(view, 8, 'WAVE');\n this._writeString(view, 12, 'fmt ');\n view.setUint32(16, 16, true);\n view.setUint16(20, 1, true);\n view.setUint16(22, 2, true);\n view.setUint32(24, this._sampleRate, true);\n view.setUint32(28, this._sampleRate * 4, true);\n view.setUint16(32, 4, true);\n view.setUint16(34, 16, true);\n this._writeString(view, 36, 'data');\n view.setUint32(40, buffer.length * 2, true);\n\n return this._floatTo16BitPCM(view, buffer, 44);\n }\n\n /**\n * Converts a Float32Array to 16-bit PCM.\n *\n * @internal\n */\n private _floatTo16BitPCM(dataview: DataView, buffer: Float32Array, offset: number): DataView {\n for (let i = 0; i < buffer.length; i++, offset += 2) {\n const tmp = Math.max(-1, Math.min(1, buffer[i]));\n dataview.setInt16(offset, tmp < 0 ? tmp * 0x8000 : tmp * 0x7fff, true);\n }\n\n return dataview;\n }\n\n /**\n * Writes a string to a DataView at the specified offset.\n *\n * @internal\n */\n private _writeString(dataview: DataView, offset: number, header: string): void {\n for (let i = 0; i < header.length; i++) {\n dataview.setUint8(offset + i, header.charCodeAt(i));\n }\n }\n\n /**\n * Converts an AudioBuffer to a Float32Array.\n *\n * @internal\n */\n private _interleave(input: AudioBuffer): Float32Array {\n const buffer = input.getChannelData(0),\n length = buffer.length * 2,\n result = new Float32Array(length);\n\n let index = 0,\n inputIndex = 0;\n\n while (index < length) {\n result[index++] = buffer[inputIndex];\n result[index++] = buffer[inputIndex];\n inputIndex++;\n }\n return result;\n }\n\n /**\n * Creates an HTMLAudioElement whose source is the specified Blob.\n *\n * @internal\n */\n private _renderAudioElement(blob: Blob): HTMLAudioElement {\n const audio = document.createElement('audio');\n\n audio.controls = true;\n audio.src = this._renderURL(blob);\n\n return audio;\n }\n\n /**\n * Creates an Object URL for the specified Blob.\n *\n * @internal\n */\n private _renderURL(blob: Blob): string {\n return (window.URL || window.webkitURL).createObjectURL(blob);\n }\n}\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"crunker.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,UAAW,GAAIH,GACI,iBAAZC,QACdA,QAAiB,QAAID,IAErBD,EAAc,QAAIC,IARpB,CASGK,MAAM,WACT,M,mBCTA,IAAIC,EAAsB,CCA1BA,EAAwB,CAACL,EAASM,KACjC,IAAI,IAAIC,KAAOD,EACXD,EAAoBG,EAAEF,EAAYC,KAASF,EAAo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,OAAQgE,EAAMrE,mBAAoB,SAACyE,EAAGrE,GAAJ,OAAUA,KACpEC,EAASiE,EAAStB,QAAO,SAAC0B,EAAMC,GAAP,OAAsBD,EAAOL,EAAMnE,eAAeyE,GAAYtE,SAAQ,GAC/FuE,EAAS,IAAIC,aAAaxE,GAE5ByE,EAAQ,EACRC,EAAa,EAGVD,EAAQzE,GACbiE,EAASxE,SAAQ,SAAC6E,GAChBC,EAAOE,KAAWT,EAAMnE,eAAeyE,GAAYI,MAGrDA,IAGF,OAAOH,I,iCAQT,SAA4BhD,GAC1B,IAAMoD,EAAQ7C,SAASC,cAAc,SAKrC,OAHA4C,EAAMC,UAAW,EACjBD,EAAME,IAAMrH,KAAKiE,WAAWF,GAErBoD,I,wBAQT,SAAmBpD,GACjB,OAAQ3D,OAAOkH,KAAOlH,OAAOmH,WAAWC,gBAAgBzD,M,mFAtXvCjE,G","sources":["webpack://Crunker/webpack/universalModuleDefinition","webpack://Crunker/webpack/bootstrap","webpack://Crunker/webpack/runtime/define property getters","webpack://Crunker/webpack/runtime/hasOwnProperty shorthand","webpack://Crunker/webpack/runtime/make namespace object","webpack://Crunker/./crunker.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"Crunker\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Crunker\"] = factory();\n\telse\n\t\troot[\"Crunker\"] = factory();\n})(self, function() {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export interface CrunkerConstructorOptions {\n /**\n * Sample rate for Crunker's internal audio context.\n *\n * @default 44100\n */\n sampleRate: number;\n}\n\nexport type CrunkerInputTypes = string | File | Blob;\n\n/**\n * An exported Crunker audio object.\n */\nexport interface ExportedCrunkerAudio {\n blob: Blob;\n url: string;\n element: HTMLAudioElement;\n}\n\n/**\n * Crunker is the simple way to merge, concatenate, play, export and download audio files using the Web Audio API.\n */\nexport default class Crunker {\n private readonly _sampleRate: number;\n private readonly _context: AudioContext;\n\n /**\n * Creates a new instance of Crunker with the provided options.\n *\n * If `sampleRate` is not defined, it will auto-select an appropriate sample rate\n * for the device being used.\n */\n constructor({ sampleRate }: Partial<CrunkerConstructorOptions> = {}) {\n this._context = this._createContext();\n\n sampleRate ||= this._context.sampleRate;\n\n this._sampleRate = sampleRate;\n }\n\n /**\n * Creates Crunker's internal AudioContext.\n *\n * @internal\n */\n private _createContext(): AudioContext {\n window.AudioContext = window.AudioContext || (window as any).webkitAudioContext || (window as any).mozAudioContext;\n return new AudioContext();\n }\n\n /**\n *\n * The internal AudioContext used by Crunker.\n */\n get context(): AudioContext {\n return this._context;\n }\n\n /**\n * Asynchronously fetches multiple audio files and returns an array of AudioBuffers.\n */\n async fetchAudio(...filepaths: CrunkerInputTypes[]): Promise<AudioBuffer[]> {\n return await Promise.all(\n filepaths.map(async (filepath) => {\n let buffer: ArrayBuffer;\n\n if (filepath instanceof File || filepath instanceof Blob) {\n buffer = await filepath.arrayBuffer();\n } else {\n buffer = await fetch(filepath).then((response) => {\n if (response.headers.has('Content-Type') && !response.headers.get('Content-Type')!.includes('audio/')) {\n console.warn(\n `Crunker: Attempted to fetch an audio file, but its MIME type is \\`${\n response.headers.get('Content-Type')!.split(';')[0]\n }\\`. We'll try and continue anyway. (file: \"${filepath}\")`\n );\n }\n\n return response.arrayBuffer();\n });\n }\n\n return await this._context.decodeAudioData(buffer);\n })\n );\n }\n\n /**\n * Merges (layers) multiple AudioBuffers into a single AudioBuffer.\n *\n * **Visual representation:**\n *\n * \n */\n mergeAudio(buffers: AudioBuffer[]): AudioBuffer {\n const output = this._context.createBuffer(\n this._maxNumberOfChannels(buffers),\n this._sampleRate * this._maxDuration(buffers),\n this._sampleRate\n );\n\n buffers.forEach((buffer) => {\n for (let channelNumber = 0; channelNumber < buffer.numberOfChannels; channelNumber++) {\n const outputData = output.getChannelData(channelNumber);\n const bufferData = buffer.getChannelData(channelNumber);\n\n for (let i = buffer.getChannelData(channelNumber).length - 1; i >= 0; i--) {\n outputData[i] += bufferData[i];\n }\n\n output.getChannelData(channelNumber).set(outputData);\n }\n });\n\n return output;\n }\n\n /**\n * Concatenates multiple AudioBuffers into a single AudioBuffer.\n *\n * **Visual representation:**\n *\n * \n */\n concatAudio(buffers: AudioBuffer[]): AudioBuffer {\n const output = this._context.createBuffer(\n this._maxNumberOfChannels(buffers),\n this._totalLength(buffers),\n this._sampleRate\n );\n let offset = 0;\n\n buffers.forEach((buffer) => {\n for (let channelNumber = 0; channelNumber < buffer.numberOfChannels; channelNumber++) {\n output.getChannelData(channelNumber).set(buffer.getChannelData(channelNumber), offset);\n }\n\n offset += buffer.length;\n });\n\n return output;\n }\n\n /**\n * Pads a specified AudioBuffer with silence from a specified start time,\n * for a specified length of time.\n *\n * Accepts float values as well as whole integers.\n *\n * @param buffer AudioBuffer to pad\n * @param padStart Time to start padding (in seconds)\n * @param seconds Duration to pad for (in seconds)\n */\n padAudio(buffer: AudioBuffer, padStart: number = 0, seconds: number = 0): AudioBuffer {\n if (seconds === 0) return buffer;\n\n if (padStart < 0) throw new Error('Crunker: Parameter \"padStart\" in padAudio must be positive');\n if (seconds < 0) throw new Error('Crunker: Parameter \"seconds\" in padAudio must be positive');\n\n const updatedBuffer = this._context.createBuffer(\n buffer.numberOfChannels,\n Math.ceil(buffer.length + seconds * buffer.sampleRate),\n buffer.sampleRate\n );\n\n for (let channelNumber = 0; channelNumber < buffer.numberOfChannels; channelNumber++) {\n const channelData = buffer.getChannelData(channelNumber);\n updatedBuffer\n .getChannelData(channelNumber)\n .set(channelData.subarray(0, Math.ceil(padStart * buffer.sampleRate) + 1), 0);\n\n updatedBuffer\n .getChannelData(channelNumber)\n .set(\n channelData.subarray(Math.ceil(padStart * buffer.sampleRate) + 2, updatedBuffer.length + 1),\n Math.ceil((padStart + seconds) * buffer.sampleRate)\n );\n }\n\n return updatedBuffer;\n }\n\n /**\n * Plays the provided AudioBuffer in an AudioBufferSourceNode.\n */\n play(buffer: AudioBuffer): AudioBufferSourceNode {\n const source = this._context.createBufferSource();\n\n source.buffer = buffer;\n source.connect(this._context.destination);\n source.start();\n\n return source;\n }\n\n /**\n * Exports the specified AudioBuffer to a Blob, Object URI and HTMLAudioElement.\n *\n * Note that changing the MIME type does not change the actual file format. The\n * file format will **always** be a WAVE file due to how audio is stored in the\n * browser.\n *\n * @param buffer Buffer to export\n * @param type MIME type (default: `audio/wav`)\n */\n export(buffer: AudioBuffer, type: string = 'audio/wav'): ExportedCrunkerAudio {\n const recorded = this._interleave(buffer);\n const dataview = this._writeHeaders(recorded, buffer.numberOfChannels, buffer.sampleRate);\n const audioBlob = new Blob([dataview], { type });\n\n return {\n blob: audioBlob,\n url: this._renderURL(audioBlob),\n element: this._renderAudioElement(audioBlob),\n };\n }\n\n /**\n * Downloads the provided Blob.\n *\n * @param blob Blob to download\n * @param filename An optional file name to use for the download (default: `crunker`)\n */\n download(blob: Blob, filename: string = 'crunker'): HTMLAnchorElement {\n const a = document.createElement('a');\n\n a.style.display = 'none';\n a.href = this._renderURL(blob);\n a.download = `${filename}.${blob.type.split('/')[1]}`;\n a.click();\n\n return a;\n }\n\n /**\n * Executes a callback if the browser does not support the Web Audio API.\n *\n * Returns the result of the callback, or `undefined` if the Web Audio API is supported.\n *\n * @param callback callback to run if the browser does not support the Web Audio API\n */\n notSupported<T>(callback: () => T): T | undefined {\n return this._isSupported() ? undefined : callback();\n }\n\n /**\n * Closes Crunker's internal AudioContext.\n */\n close(): this {\n this._context.close();\n return this;\n }\n\n /**\n * Returns the largest duration of the longest AudioBuffer.\n *\n * @internal\n */\n private _maxDuration(buffers: AudioBuffer[]): number {\n return Math.max(...buffers.map((buffer) => buffer.duration));\n }\n\n /**\n * Returns the largest number of channels in an array of AudioBuffers.\n *\n * @internal\n */\n private _maxNumberOfChannels(buffers: AudioBuffer[]): number {\n return Math.max(...buffers.map((buffer) => buffer.numberOfChannels));\n }\n\n /**\n * Returns the sum of the lengths of an array of AudioBuffers.\n *\n * @internal\n */\n private _totalLength(buffers: AudioBuffer[]): number {\n return buffers.map((buffer) => buffer.length).reduce((a, b) => a + b, 0);\n }\n\n /**\n * Returns whether the browser supports the Web Audio API.\n *\n * @internal\n */\n private _isSupported(): boolean {\n return 'AudioContext' in window || 'webkitAudioContext' in window || 'mozAudioContext' in window;\n }\n\n /**\n * Writes the WAV headers for the specified Float32Array.\n *\n * Returns a DataView containing the WAV headers and file content.\n *\n * @internal\n */\n private _writeHeaders(buffer: Float32Array, numOfChannels: number, sampleRate: number): DataView {\n const bitDepth = 16;\n const bytesPerSample = bitDepth / 8;\n const sampleSize = numOfChannels * bytesPerSample;\n\n const fileHeaderSize = 8;\n const chunkHeaderSize = 36;\n const chunkDataSize = buffer.length * bytesPerSample;\n const chunkTotalSize = chunkHeaderSize + chunkDataSize;\n\n const arrayBuffer = new ArrayBuffer(fileHeaderSize + chunkTotalSize);\n const view = new DataView(arrayBuffer);\n\n this._writeString(view, 0, 'RIFF');\n view.setUint32(4, chunkTotalSize, true);\n this._writeString(view, 8, 'WAVE');\n this._writeString(view, 12, 'fmt ');\n view.setUint32(16, 16, true);\n view.setUint16(20, 1, true);\n view.setUint16(22, numOfChannels, true);\n view.setUint32(24, sampleRate, true);\n view.setUint32(28, sampleRate * sampleSize, true);\n view.setUint16(32, sampleSize, true);\n view.setUint16(34, bitDepth, true);\n this._writeString(view, 36, 'data');\n view.setUint32(40, chunkDataSize, true);\n\n return this._floatTo16BitPCM(view, buffer, fileHeaderSize + chunkHeaderSize);\n }\n\n /**\n * Converts a Float32Array to 16-bit PCM.\n *\n * @internal\n */\n private _floatTo16BitPCM(dataview: DataView, buffer: Float32Array, offset: number): DataView {\n for (let i = 0; i < buffer.length; i++, offset += 2) {\n const tmp = Math.max(-1, Math.min(1, buffer[i]));\n dataview.setInt16(offset, tmp < 0 ? tmp * 0x8000 : tmp * 0x7fff, true);\n }\n\n return dataview;\n }\n\n /**\n * Writes a string to a DataView at the specified offset.\n *\n * @internal\n */\n private _writeString(dataview: DataView, offset: number, header: string): void {\n for (let i = 0; i < header.length; i++) {\n dataview.setUint8(offset + i, header.charCodeAt(i));\n }\n }\n\n /**\n * Converts an AudioBuffer to a Float32Array.\n *\n * @internal\n */\n private _interleave(input: AudioBuffer): Float32Array {\n const channels = Array.from({ length: input.numberOfChannels }, (_, i) => i);\n const length = channels.reduce((prev, channelIdx) => prev + input.getChannelData(channelIdx).length, 0);\n const result = new Float32Array(length);\n\n let index = 0;\n let inputIndex = 0;\n\n // for 2 channels its like: [L[0], R[0], L[1], R[1], ... , L[n], R[n]]\n while (index < length) {\n channels.forEach((channelIdx) => {\n result[index++] = input.getChannelData(channelIdx)[inputIndex];\n });\n\n inputIndex++;\n }\n\n return result;\n }\n\n /**\n * Creates an HTMLAudioElement whose source is the specified Blob.\n *\n * @internal\n */\n private _renderAudioElement(blob: Blob): HTMLAudioElement {\n const audio = document.createElement('audio');\n\n audio.controls = true;\n audio.src = this._renderURL(blob);\n\n return audio;\n }\n\n /**\n * Creates an Object URL for the specified Blob.\n *\n * @internal\n */\n private _renderURL(blob: Blob): string {\n return (window.URL || window.webkitURL).createObjectURL(blob);\n }\n}\n"],"names":["root","factory","exports","module","define","amd","self","__webpack_require__","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","Crunker","sampleRate","this","_context","_createContext","_sampleRate","window","AudioContext","webkitAudioContext","mozAudioContext","async","filepaths","Promise","all","map","filepath","buffer","File","Blob","arrayBuffer","fetch","then","response","headers","has","includes","console","warn","split","decodeAudioData","buffers","output","createBuffer","_maxNumberOfChannels","_maxDuration","forEach","channelNumber","numberOfChannels","outputData","getChannelData","bufferData","i","length","set","_totalLength","offset","padStart","seconds","Error","updatedBuffer","Math","ceil","channelData","subarray","source","createBufferSource","connect","destination","start","type","recorded","_interleave","dataview","_writeHeaders","audioBlob","blob","url","_renderURL","element","_renderAudioElement","filename","a","document","createElement","style","display","href","download","click","callback","_isSupported","undefined","close","max","duration","reduce","b","numOfChannels","sampleSize","bitDepth","chunkDataSize","chunkTotalSize","ArrayBuffer","view","DataView","_writeString","setUint32","setUint16","_floatTo16BitPCM","fileHeaderSize","tmp","min","setInt16","header","setUint8","charCodeAt","input","channels","Array","from","_","prev","channelIdx","result","Float32Array","index","inputIndex","audio","controls","src","URL","webkitURL","createObjectURL"],"sourceRoot":""}
|
package/examples/README.md
CHANGED
|
@@ -3,5 +3,7 @@
|
|
|
3
3
|
This directory contains some examples of possible use-cases for crunker.js and to serve as a reference of how to apply it in various scenarios. Full source code and instructions on how to run them are included in each sub-directory. Alternately, hosted live demos are available for each at the links below.
|
|
4
4
|
|
|
5
5
|
## Live Demos
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
|
|
7
|
+
- [Audio from Client](https://jaggad.github.io/crunker/examples/client/index.html)
|
|
8
|
+
- [Audio from Server](https://jaggad.github.io/crunker/examples/server/index.html)
|
|
9
|
+
- [Beat Builder](https://jaggad.github.io/crunker/examples/client/beatBuilder.html)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<title>Crunker - Beat machine example</title>
|
|
5
|
+
<script src="https://unpkg.com/crunker@latest/dist/crunker.js"></script>
|
|
6
|
+
<script type="text/javascript">
|
|
7
|
+
const mergeOneLine = async (crunker, buffer, times) => {
|
|
8
|
+
const audios = times.map((t) => crunker.padAudio(buffer, 0, t));
|
|
9
|
+
return crunker.mergeAudio(audios);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const beatBuilder = async (crunker, beatConf, buffers, beatTiming) => {
|
|
13
|
+
const beatLines = await Promise.all(
|
|
14
|
+
buffers.map((_, i) => {
|
|
15
|
+
return mergeOneLine(
|
|
16
|
+
crunker,
|
|
17
|
+
buffers[i],
|
|
18
|
+
beatTiming[i].map((bt) => bt * beatConf.timing)
|
|
19
|
+
);
|
|
20
|
+
})
|
|
21
|
+
);
|
|
22
|
+
const beat = await crunker.mergeAudio(beatLines);
|
|
23
|
+
const beatTimingBaseArray = Array.from(Array(beatConf.repeats).keys()); //will generate an Array [0,1,2,3,4,5,...,beatConf.repeats]
|
|
24
|
+
const beatTiming = beatTimingBaseArray.map((e) => beatConf.delayStart + e * beatConf.beats * beatConf.timing); //will convert the array to the exact timestamps where the beat should restart
|
|
25
|
+
return await mergeOneLine(crunker, beat, beatTiming);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
window.onload = async function () {
|
|
29
|
+
const crunker = new Crunker.default({ sampleRate: 96000 });
|
|
30
|
+
const [hihats] = await crunker.fetchAudio('./drumms_Hi-Hats_Open_Hat.mp3'); //use your own sound here
|
|
31
|
+
const [dirtBase] = await crunker.fetchAudio('./drumms_dirt_base.mp3'); //use your own sound here
|
|
32
|
+
|
|
33
|
+
//add pause to audio
|
|
34
|
+
const beat = await beatBuilder(
|
|
35
|
+
crunker,
|
|
36
|
+
{ delayStart: 1, timing: 0.5, repeats: 4, beats: 4 },
|
|
37
|
+
[dirtBase, hihats],
|
|
38
|
+
[
|
|
39
|
+
[0, 1.5, 2],
|
|
40
|
+
[1, 3],
|
|
41
|
+
]
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
const merged = await crunker.mergeAudio([beat]);
|
|
45
|
+
crunker.play(merged);
|
|
46
|
+
const output = await crunker.export(merged, 'audio/ogg');
|
|
47
|
+
await crunker.download(output.blob, 'merged');
|
|
48
|
+
};
|
|
49
|
+
</script>
|
|
50
|
+
</head>
|
|
51
|
+
<body>
|
|
52
|
+
<h1>Crunker - Beat machine example</h1>
|
|
53
|
+
</body>
|
|
54
|
+
</html>
|
package/karma.conf.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module.exports = function (config) {
|
|
2
|
+
config.set({
|
|
3
|
+
frameworks: ['mocha', 'chai'],
|
|
4
|
+
files: ['test/test.bundle.js'],
|
|
5
|
+
reporters: ['progress'],
|
|
6
|
+
port: 9876, // karma web server port
|
|
7
|
+
colors: true,
|
|
8
|
+
browserDisconnectTimeout: 100000,
|
|
9
|
+
logLevel: config.LOG_INFO,
|
|
10
|
+
browsers: ['ChromeHeadless'],
|
|
11
|
+
autoWatch: false,
|
|
12
|
+
// singleRun: false, // Karma captures browsers, runs the tests and exits
|
|
13
|
+
concurrency: Infinity,
|
|
14
|
+
client: {
|
|
15
|
+
mocha: {
|
|
16
|
+
timeout: 10000, // 10 seconds - upped from 2 seconds
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "crunker",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Simple way to merge or concatenate audio files with the Web Audio API.",
|
|
5
5
|
"main": "dist/crunker.js",
|
|
6
6
|
"types": "dist/crunker.d.ts",
|
|
@@ -10,17 +10,19 @@
|
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"type-check": "tsc --noEmit",
|
|
13
|
-
"type-check:watch": "
|
|
14
|
-
"build": "
|
|
13
|
+
"type-check:watch": "yarn run type-check -- --watch",
|
|
14
|
+
"build": "yarn run build:prod && yarn run build:types",
|
|
15
15
|
"build:test": "webpack --config webpack.test.config.js --mode development",
|
|
16
16
|
"build:prod": "webpack --config webpack.config.js --mode production",
|
|
17
17
|
"build:types": "tsc --emitDeclarationOnly",
|
|
18
|
-
"prepublishOnly": "
|
|
19
|
-
"format": "prettier --write
|
|
18
|
+
"prepublishOnly": "yarn run build",
|
|
19
|
+
"format": "prettier --write .",
|
|
20
|
+
"format:check": "prettier --check .",
|
|
21
|
+
"test": "NODE_ENV=development yarn run build:test && karma start --single-run --browsers ChromeHeadless karma.conf.js "
|
|
20
22
|
},
|
|
21
23
|
"repository": {
|
|
22
24
|
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/
|
|
25
|
+
"url": "git+https://github.com/jaggad/crunker.git"
|
|
24
26
|
},
|
|
25
27
|
"keywords": [
|
|
26
28
|
"web-audio-api",
|
|
@@ -34,26 +36,30 @@
|
|
|
34
36
|
"author": "Jack Edgson",
|
|
35
37
|
"license": "MIT",
|
|
36
38
|
"bugs": {
|
|
37
|
-
"url": "https://github.com/
|
|
39
|
+
"url": "https://github.com/jaggad/crunker/issues"
|
|
38
40
|
},
|
|
39
|
-
"homepage": "https://github.com/
|
|
41
|
+
"homepage": "https://github.com/jaggad/crunker#readme",
|
|
40
42
|
"devDependencies": {
|
|
41
|
-
"@babel/cli": "^7.
|
|
42
|
-
"@babel/core": "^7.
|
|
43
|
-
"@babel/preset-env": "^7.
|
|
44
|
-
"@babel/preset-typescript": "^7.
|
|
45
|
-
"babel-loader": "^8.2.
|
|
43
|
+
"@babel/cli": "^7.16.8",
|
|
44
|
+
"@babel/core": "^7.16.12",
|
|
45
|
+
"@babel/preset-env": "^7.16.11",
|
|
46
|
+
"@babel/preset-typescript": "^7.16.7",
|
|
47
|
+
"babel-loader": "^8.2.3",
|
|
46
48
|
"babel-minify": "^0.5.1",
|
|
47
|
-
"chai": "^3.
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
49
|
+
"chai": "^4.3.6",
|
|
50
|
+
"karma": "^6.3.12",
|
|
51
|
+
"karma-chai": "^0.1.0",
|
|
52
|
+
"karma-chrome-launcher": "^3.1.0",
|
|
53
|
+
"karma-mocha": "^2.0.1",
|
|
54
|
+
"mocha": "^9.2.0",
|
|
55
|
+
"prettier": "^2.5.1",
|
|
56
|
+
"terser-webpack-plugin": "^5.3.0",
|
|
57
|
+
"typescript": "^4.5.5",
|
|
58
|
+
"webpack": "^5.67.0",
|
|
59
|
+
"webpack-cli": "^4.9.2"
|
|
54
60
|
},
|
|
55
61
|
"publishConfig": {
|
|
56
62
|
"registry": "https://registry.npmjs.org"
|
|
57
63
|
},
|
|
58
|
-
"
|
|
59
|
-
}
|
|
64
|
+
"packageManager": "yarn@3.1.1"
|
|
65
|
+
}
|