@corellium/corellium-cli 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.eslintrc.js +38 -0
- package/.gitlab-ci.yml +21 -0
- package/.husky/pre-commit +4 -0
- package/.nvmrc +1 -0
- package/.prettierrc.js +21 -0
- package/Jenkinsfile +3 -0
- package/README.md +46 -0
- package/docs/OVERVIEW.md +274 -0
- package/example/WebPlayerSample.js +263 -0
- package/index.js +21 -0
- package/index.sh +5 -0
- package/jenkinsbuild/build.sh +70 -0
- package/lint-staged.config.js +19 -0
- package/node_modules/@babel/cli/LICENSE +22 -0
- package/node_modules/@babel/cli/README.md +19 -0
- package/node_modules/@babel/cli/bin/babel-external-helpers.js +3 -0
- package/node_modules/@babel/cli/bin/babel.js +3 -0
- package/node_modules/@babel/cli/index.js +1 -0
- package/node_modules/@babel/cli/lib/babel/dir.js +285 -0
- package/node_modules/@babel/cli/lib/babel/file.js +273 -0
- package/node_modules/@babel/cli/lib/babel/index.js +20 -0
- package/node_modules/@babel/cli/lib/babel/options.js +285 -0
- package/node_modules/@babel/cli/lib/babel/util.js +181 -0
- package/node_modules/@babel/cli/lib/babel/watcher.js +162 -0
- package/node_modules/@babel/cli/lib/babel-external-helpers.js +43 -0
- package/node_modules/@babel/cli/node_modules/commander/CHANGELOG.md +436 -0
- package/node_modules/@babel/cli/node_modules/commander/LICENSE +22 -0
- package/node_modules/@babel/cli/node_modules/commander/Readme.md +713 -0
- package/node_modules/@babel/cli/node_modules/commander/index.js +1649 -0
- package/node_modules/@babel/cli/node_modules/commander/package.json +76 -0
- package/node_modules/@babel/cli/node_modules/commander/typings/index.d.ts +311 -0
- package/node_modules/@babel/cli/node_modules/make-dir/index.d.ts +39 -0
- package/node_modules/@babel/cli/node_modules/make-dir/index.js +139 -0
- package/node_modules/@babel/cli/node_modules/make-dir/license +9 -0
- package/node_modules/@babel/cli/node_modules/make-dir/package.json +94 -0
- package/node_modules/@babel/cli/node_modules/make-dir/readme.md +123 -0
- package/node_modules/@babel/cli/node_modules/pify/index.js +68 -0
- package/node_modules/@babel/cli/node_modules/pify/license +9 -0
- package/node_modules/@babel/cli/node_modules/pify/package.json +86 -0
- package/node_modules/@babel/cli/node_modules/pify/readme.md +145 -0
- package/node_modules/@babel/cli/node_modules/semver/CHANGELOG.md +39 -0
- package/node_modules/@babel/cli/node_modules/semver/LICENSE +15 -0
- package/node_modules/@babel/cli/node_modules/semver/README.md +412 -0
- package/node_modules/@babel/cli/node_modules/semver/bin/semver +160 -0
- package/node_modules/@babel/cli/node_modules/semver/package.json +63 -0
- package/node_modules/@babel/cli/node_modules/semver/range.bnf +16 -0
- package/node_modules/@babel/cli/node_modules/semver/semver.js +1483 -0
- package/node_modules/@babel/cli/node_modules/slash/index.js +11 -0
- package/node_modules/@babel/cli/node_modules/slash/license +9 -0
- package/node_modules/@babel/cli/node_modules/slash/package.json +69 -0
- package/node_modules/@babel/cli/node_modules/slash/readme.md +44 -0
- package/node_modules/@babel/cli/package.json +91 -0
- package/node_modules/@corellium/client-api/README.md +209 -0
- package/node_modules/@corellium/client-api/dist/ApiClient.js +780 -0
- package/node_modules/@corellium/client-api/dist/api/CorelliumApi.js +1744 -0
- package/node_modules/@corellium/client-api/dist/index.js +295 -0
- package/node_modules/@corellium/client-api/dist/model/ApiConflictError.js +114 -0
- package/node_modules/@corellium/client-api/dist/model/ApiError.js +101 -0
- package/node_modules/@corellium/client-api/dist/model/ApiNotFoundError.js +111 -0
- package/node_modules/@corellium/client-api/dist/model/ApiToken.js +78 -0
- package/node_modules/@corellium/client-api/dist/model/Bit.js +50 -0
- package/node_modules/@corellium/client-api/dist/model/Credentials.js +91 -0
- package/node_modules/@corellium/client-api/dist/model/Firmware.js +208 -0
- package/node_modules/@corellium/client-api/dist/model/GpioStateDefinition.js +93 -0
- package/node_modules/@corellium/client-api/dist/model/Image.js +249 -0
- package/node_modules/@corellium/client-api/dist/model/Instance.js +313 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceBootOptions.js +134 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceConsoleEndpoint.js +76 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceCreateOptions.js +224 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceNetmonState.js +75 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceReturn.js +92 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceServices.js +77 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceStartOptions.js +76 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceState.js +64 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceStopOptions.js +76 -0
- package/node_modules/@corellium/client-api/dist/model/Model.js +165 -0
- package/node_modules/@corellium/client-api/dist/model/ModelSoftware.js +122 -0
- package/node_modules/@corellium/client-api/dist/model/PeripheralsData.js +147 -0
- package/node_modules/@corellium/client-api/dist/model/Project.js +122 -0
- package/node_modules/@corellium/client-api/dist/model/ProjectQuota.js +93 -0
- package/node_modules/@corellium/client-api/dist/model/ProjectSettings.js +93 -0
- package/node_modules/@corellium/client-api/dist/model/ProjectUsage.js +102 -0
- package/node_modules/@corellium/client-api/dist/model/Snapshot.js +145 -0
- package/node_modules/@corellium/client-api/dist/model/SnapshotCreationOptions.js +79 -0
- package/node_modules/@corellium/client-api/dist/model/SnapshotStatus.js +84 -0
- package/node_modules/@corellium/client-api/dist/model/Token.js +88 -0
- package/node_modules/@corellium/client-api/dist/model/UserError.js +114 -0
- package/node_modules/@corellium/client-api/dist/model/V1SetStateBody.js +80 -0
- package/node_modules/@corellium/client-api/dist/model/VolumeOptions.js +94 -0
- package/node_modules/@corellium/client-api/dist/model/VpnDefinition.js +84 -0
- package/node_modules/@corellium/client-api/package.json +75 -0
- package/node_modules/@corellium/corellium-api/README.md +1210 -0
- package/node_modules/@corellium/corellium-api/node_modules/form-data/License +19 -0
- package/node_modules/@corellium/corellium-api/node_modules/form-data/README.md.bak +356 -0
- package/node_modules/@corellium/corellium-api/node_modules/form-data/Readme.md +356 -0
- package/node_modules/@corellium/corellium-api/node_modules/form-data/index.d.ts +62 -0
- package/node_modules/@corellium/corellium-api/node_modules/form-data/lib/browser.js +2 -0
- package/node_modules/@corellium/corellium-api/node_modules/form-data/lib/form_data.js +498 -0
- package/node_modules/@corellium/corellium-api/node_modules/form-data/lib/populate.js +10 -0
- package/node_modules/@corellium/corellium-api/node_modules/form-data/package.json +104 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/AUTHORS +5 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/CHANGELOG.md +119 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/LICENSE.md +21 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/README.md +276 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/bin/uuid +65 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/index.js +8 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/lib/bytesToUuid.js +26 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/lib/md5-browser.js +216 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/lib/md5.js +25 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/lib/rng-browser.js +34 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/lib/rng.js +8 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/lib/sha1-browser.js +89 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/lib/sha1.js +25 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/lib/v35.js +57 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/package.json +103 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/v1.js +109 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/v3.js +4 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/v4.js +29 -0
- package/node_modules/@corellium/corellium-api/node_modules/uuid/v5.js +3 -0
- package/node_modules/@corellium/corellium-api/package.json +106 -0
- package/node_modules/@corellium/corellium-api/resumable.js +1312 -0
- package/node_modules/@corellium/corellium-api/src/agent.js +962 -0
- package/node_modules/@corellium/corellium-api/src/corellium.js +444 -0
- package/node_modules/@corellium/corellium-api/src/images.js +131 -0
- package/node_modules/@corellium/corellium-api/src/input.js +178 -0
- package/node_modules/@corellium/corellium-api/src/instance-updater.js +56 -0
- package/node_modules/@corellium/corellium-api/src/instance.js +1031 -0
- package/node_modules/@corellium/corellium-api/src/netmon.js +308 -0
- package/node_modules/@corellium/corellium-api/src/project.js +393 -0
- package/node_modules/@corellium/corellium-api/src/role.js +65 -0
- package/node_modules/@corellium/corellium-api/src/snapshot.js +77 -0
- package/node_modules/@corellium/corellium-api/src/team.js +29 -0
- package/node_modules/@corellium/corellium-api/src/user.js +51 -0
- package/node_modules/@corellium/corellium-api/src/util/fetch.js +62 -0
- package/node_modules/@corellium/corellium-api/src/util/sleep.js +7 -0
- package/node_modules/@corellium/corellium-api/test/integration-tests.js +1292 -0
- package/node_modules/@corellium/corellium-api/test/root-hook-set-flag-if-test-failed.js +7 -0
- package/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
- package/node_modules/@jridgewell/resolve-uri/README.md +40 -0
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +242 -0
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +250 -0
- package/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
- package/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
- package/node_modules/@jridgewell/resolve-uri/package.json +108 -0
- package/node_modules/@jridgewell/sourcemap-codec/LICENSE +21 -0
- package/node_modules/@jridgewell/sourcemap-codec/README.md +200 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +164 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +175 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +6 -0
- package/node_modules/@jridgewell/sourcemap-codec/package.json +110 -0
- package/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +198 -0
- package/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
- package/node_modules/@jridgewell/trace-mapping/README.md +252 -0
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +518 -0
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +532 -0
- package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +8 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +32 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +7 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +1 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +2 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +4 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +74 -0
- package/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +85 -0
- package/node_modules/@jridgewell/trace-mapping/package.json +112 -0
- package/node_modules/@jridgewell/trace-mapping/src/any-map.ts +166 -0
- package/node_modules/@jridgewell/trace-mapping/src/binary-search.ts +115 -0
- package/node_modules/@jridgewell/trace-mapping/src/by-source.ts +64 -0
- package/node_modules/@jridgewell/trace-mapping/src/resolve.ts +10 -0
- package/node_modules/@jridgewell/trace-mapping/src/sort.ts +45 -0
- package/node_modules/@jridgewell/trace-mapping/src/sourcemap-segment.ts +23 -0
- package/node_modules/@jridgewell/trace-mapping/src/strip-filename.ts +8 -0
- package/node_modules/@jridgewell/trace-mapping/src/trace-mapping.ts +405 -0
- package/node_modules/@jridgewell/trace-mapping/src/types.ts +90 -0
- package/node_modules/@mapbox/node-pre-gyp/CHANGELOG.md +504 -0
- package/node_modules/@mapbox/node-pre-gyp/LICENSE +27 -0
- package/node_modules/@mapbox/node-pre-gyp/README.md +742 -0
- package/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp +4 -0
- package/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp.cmd +2 -0
- package/node_modules/@mapbox/node-pre-gyp/contributing.md +10 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/build.js +51 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/clean.js +31 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/configure.js +52 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/info.js +38 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/install.js +235 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/main.js +125 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js +309 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/package.js +73 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js +34 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/publish.js +81 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/rebuild.js +20 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/reinstall.js +19 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/reveal.js +32 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/testbinary.js +79 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/testpackage.js +53 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/unpublish.js +41 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/util/abi_crosswalk.json +2602 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js +93 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/util/handle_gyp_opts.js +102 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/util/napi.js +205 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html +26 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/package.json +9 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js +163 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js +335 -0
- package/node_modules/@mapbox/node-pre-gyp/package.json +100 -0
- package/node_modules/@nicolo-ribaudo/chokidar-2/README.md +3 -0
- package/node_modules/@nicolo-ribaudo/chokidar-2/build-chokidar.sh +30 -0
- package/node_modules/@nicolo-ribaudo/chokidar-2/dist/main.js +2086 -0
- package/node_modules/@nicolo-ribaudo/chokidar-2/package.json +73 -0
- package/node_modules/@nicolo-ribaudo/chokidar-2/types.d.ts +191 -0
- package/node_modules/abbrev/LICENSE +46 -0
- package/node_modules/abbrev/README.md +23 -0
- package/node_modules/abbrev/abbrev.js +61 -0
- package/node_modules/abbrev/package.json +59 -0
- package/node_modules/agent-base/README.md +145 -0
- package/node_modules/agent-base/dist/src/index.d.ts +78 -0
- package/node_modules/agent-base/dist/src/index.js +203 -0
- package/node_modules/agent-base/dist/src/index.js.map +1 -0
- package/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
- package/node_modules/agent-base/dist/src/promisify.js +18 -0
- package/node_modules/agent-base/dist/src/promisify.js.map +1 -0
- package/node_modules/agent-base/package.json +97 -0
- package/node_modules/agent-base/src/index.ts +345 -0
- package/node_modules/agent-base/src/promisify.ts +33 -0
- package/node_modules/ansi-regex/index.d.ts +37 -0
- package/node_modules/ansi-regex/index.js +10 -0
- package/node_modules/ansi-regex/license +9 -0
- package/node_modules/ansi-regex/package.json +90 -0
- package/node_modules/ansi-regex/readme.md +78 -0
- package/node_modules/ansi-styles/index.d.ts +345 -0
- package/node_modules/ansi-styles/index.js +163 -0
- package/node_modules/ansi-styles/license +9 -0
- package/node_modules/ansi-styles/package.json +96 -0
- package/node_modules/ansi-styles/readme.md +152 -0
- package/node_modules/anymatch/LICENSE +15 -0
- package/node_modules/anymatch/README.md +87 -0
- package/node_modules/anymatch/index.d.ts +19 -0
- package/node_modules/anymatch/index.js +104 -0
- package/node_modules/anymatch/package.json +80 -0
- package/node_modules/aproba/CHANGELOG.md +4 -0
- package/node_modules/aproba/LICENSE +14 -0
- package/node_modules/aproba/README.md +94 -0
- package/node_modules/aproba/index.js +105 -0
- package/node_modules/aproba/package.json +66 -0
- package/node_modules/are-we-there-yet/LICENSE.md +18 -0
- package/node_modules/are-we-there-yet/README.md +208 -0
- package/node_modules/are-we-there-yet/lib/index.js +4 -0
- package/node_modules/are-we-there-yet/lib/tracker-base.js +11 -0
- package/node_modules/are-we-there-yet/lib/tracker-group.js +116 -0
- package/node_modules/are-we-there-yet/lib/tracker-stream.js +36 -0
- package/node_modules/are-we-there-yet/lib/tracker.js +32 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/README.md +106 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/errors-browser.js +127 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/errors.js +116 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/_stream_duplex.js +139 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/_stream_passthrough.js +39 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/_stream_readable.js +1124 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/_stream_transform.js +201 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/_stream_writable.js +697 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/destroy.js +105 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/package.json +100 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/readable-browser.js +9 -0
- package/node_modules/are-we-there-yet/node_modules/readable-stream/readable.js +16 -0
- package/node_modules/are-we-there-yet/package.json +87 -0
- package/node_modules/ascii-art/.travis.yml +19 -0
- package/node_modules/ascii-art/Fonts/Doom.flf +833 -0
- package/node_modules/ascii-art/Fonts/rusted.flf +302 -0
- package/node_modules/ascii-art/LICENSE +20 -0
- package/node_modules/ascii-art/README.md +654 -0
- package/node_modules/ascii-art/art-source.js +42 -0
- package/node_modules/ascii-art/art.js +579 -0
- package/node_modules/ascii-art/artwork.js +53 -0
- package/node_modules/ascii-art/bin/ascii-art +359 -0
- package/node_modules/ascii-art/color_profiles.json +20 -0
- package/node_modules/ascii-art/demo.js +151 -0
- package/node_modules/ascii-art/generate.js +83 -0
- package/node_modules/ascii-art/kaolin.js +140 -0
- package/node_modules/ascii-art/karma.conf.js +81 -0
- package/node_modules/ascii-art/package.json +123 -0
- package/node_modules/ascii-art/test/dev_setup.sh +16 -0
- package/node_modules/ascii-art/test/extras/kaolin-test.js +81 -0
- package/node_modules/ascii-art/test/images/animal_muppet.nfo +43 -0
- package/node_modules/ascii-art/test/images/beyonce-upgrade.nfo +21 -0
- package/node_modules/ascii-art/test/images/cernettes.nfo +31 -0
- package/node_modules/ascii-art/test/images/gir.nfo +40 -0
- package/node_modules/ascii-art/test/images/gob.nfo +40 -0
- package/node_modules/ascii-art/test/images/grendel.nfo +70 -0
- package/node_modules/ascii-art/test/images/initech.nfo +29 -0
- package/node_modules/ascii-art/test/images/metropolis.nfo +56 -0
- package/node_modules/ascii-art/test/images/mixed.nfo +15 -0
- package/node_modules/ascii-art/test/images/mucha-job.art.nfo +56 -0
- package/node_modules/ascii-art/test/images/mucha-job.nfo +56 -0
- package/node_modules/ascii-art/test/images/peewee.nfo +50 -0
- package/node_modules/ascii-art/test/images/peewee.poster.nfo +50 -0
- package/node_modules/ascii-art/test/images/rene-cigler.nfo +59 -0
- package/node_modules/ascii-art/test/images/serious-business.nfo +48 -0
- package/node_modules/ascii-art/test/images/seven-proxies.nfo +26 -0
- package/node_modules/ascii-art/test/images/sunburst.nfo +40 -0
- package/node_modules/ascii-art/test/images/sunburst_red.nfo +40 -0
- package/node_modules/ascii-art/test/images/zero-cool.nfo +60 -0
- package/node_modules/ascii-art/test/karma/init.js +34 -0
- package/node_modules/ascii-art/test/scripts/bbs.js +42 -0
- package/node_modules/ascii-art/test/test.js +459 -0
- package/node_modules/ascii-art-ansi/LICENSE +20 -0
- package/node_modules/ascii-art-ansi/README.md +287 -0
- package/node_modules/ascii-art-ansi/ansi.js +409 -0
- package/node_modules/ascii-art-ansi/color.js +623 -0
- package/node_modules/ascii-art-ansi/grid.js +129 -0
- package/node_modules/ascii-art-ansi/package.json +84 -0
- package/node_modules/ascii-art-ansi/test/test.js +251 -0
- package/node_modules/ascii-art-braille/README.md +6 -0
- package/node_modules/ascii-art-braille/braille.js +176 -0
- package/node_modules/ascii-art-braille/package.json +34 -0
- package/node_modules/ascii-art-font/Fonts/Doom.flf +833 -0
- package/node_modules/ascii-art-font/Fonts/rusted.flf +302 -0
- package/node_modules/ascii-art-font/LICENSE +22 -0
- package/node_modules/ascii-art-font/MIT-LICENSE.txt +20 -0
- package/node_modules/ascii-art-font/README.md +74 -0
- package/node_modules/ascii-art-font/font.js +152 -0
- package/node_modules/ascii-art-font/package.json +71 -0
- package/node_modules/ascii-art-font/test/test.js +59 -0
- package/node_modules/ascii-art-graph/README.md +142 -0
- package/node_modules/ascii-art-graph/d3.js +20 -0
- package/node_modules/ascii-art-graph/graph.js +1042 -0
- package/node_modules/ascii-art-graph/multi-series.png +0 -0
- package/node_modules/ascii-art-graph/package.json +45 -0
- package/node_modules/ascii-art-graph/simple-braille.png +0 -0
- package/node_modules/ascii-art-graph/test/data/binaryGrid.json +1725 -0
- package/node_modules/ascii-art-graph/test/data/multiLineGraph.json +21 -0
- package/node_modules/ascii-art-graph/test/data/simple-braille.ansi +20 -0
- package/node_modules/ascii-art-graph/test/data/simpleLineGraph.json +21 -0
- package/node_modules/ascii-art-graph/test/test.js +119 -0
- package/node_modules/ascii-art-image/README.md +93 -0
- package/node_modules/ascii-art-image/generate.js +80 -0
- package/node_modules/ascii-art-image/image.js +464 -0
- package/node_modules/ascii-art-image/node_modules/ascii-art-braille/README.md +6 -0
- package/node_modules/ascii-art-image/node_modules/ascii-art-braille/braille.js +249 -0
- package/node_modules/ascii-art-image/node_modules/ascii-art-braille/package.json +34 -0
- package/node_modules/ascii-art-image/package.json +47 -0
- package/node_modules/ascii-art-image/renderers/average.js +170 -0
- package/node_modules/ascii-art-image/test/images/animal_muppet.nfo +43 -0
- package/node_modules/ascii-art-image/test/images/beyonce-upgrade.nfo +21 -0
- package/node_modules/ascii-art-image/test/images/cernettes.nfo +31 -0
- package/node_modules/ascii-art-image/test/images/gir.nfo +40 -0
- package/node_modules/ascii-art-image/test/images/gob.nfo +40 -0
- package/node_modules/ascii-art-image/test/images/grendel.nfo +70 -0
- package/node_modules/ascii-art-image/test/images/initech.nfo +29 -0
- package/node_modules/ascii-art-image/test/images/metropolis.nfo +56 -0
- package/node_modules/ascii-art-image/test/images/mixed.nfo +15 -0
- package/node_modules/ascii-art-image/test/images/mucha-job.art.nfo +56 -0
- package/node_modules/ascii-art-image/test/images/mucha-job.json +1 -0
- package/node_modules/ascii-art-image/test/images/mucha-job.nfo +56 -0
- package/node_modules/ascii-art-image/test/images/peewee.nfo +50 -0
- package/node_modules/ascii-art-image/test/images/peewee.poster.nfo +50 -0
- package/node_modules/ascii-art-image/test/images/rene-cigler.nfo +59 -0
- package/node_modules/ascii-art-image/test/images/serious-business.nfo +48 -0
- package/node_modules/ascii-art-image/test/images/seven-proxies.nfo +26 -0
- package/node_modules/ascii-art-image/test/images/zero-cool.nfo +60 -0
- package/node_modules/ascii-art-image/test/test.js +334 -0
- package/node_modules/ascii-art-table/README.md +152 -0
- package/node_modules/ascii-art-table/package.json +42 -0
- package/node_modules/ascii-art-table/table.js +512 -0
- package/node_modules/ascii-art-table/test/test.js +133 -0
- package/node_modules/ascii-art-utf/README.md +23 -0
- package/node_modules/ascii-art-utf/package.json +70 -0
- package/node_modules/ascii-art-utf/run.js +5 -0
- package/node_modules/ascii-art-utf/utf.js +170 -0
- package/node_modules/async/CHANGELOG.md +278 -0
- package/node_modules/async/LICENSE +19 -0
- package/node_modules/async/README.md +56 -0
- package/node_modules/async/all.js +50 -0
- package/node_modules/async/allLimit.js +42 -0
- package/node_modules/async/allSeries.js +37 -0
- package/node_modules/async/any.js +52 -0
- package/node_modules/async/anyLimit.js +43 -0
- package/node_modules/async/anySeries.js +38 -0
- package/node_modules/async/apply.js +68 -0
- package/node_modules/async/applyEach.js +51 -0
- package/node_modules/async/applyEachSeries.js +37 -0
- package/node_modules/async/asyncify.js +110 -0
- package/node_modules/async/auto.js +289 -0
- package/node_modules/async/autoInject.js +170 -0
- package/node_modules/async/bower.json +17 -0
- package/node_modules/async/cargo.js +94 -0
- package/node_modules/async/compose.js +58 -0
- package/node_modules/async/concat.js +43 -0
- package/node_modules/async/concatLimit.js +65 -0
- package/node_modules/async/concatSeries.js +36 -0
- package/node_modules/async/constant.js +66 -0
- package/node_modules/async/detect.js +61 -0
- package/node_modules/async/detectLimit.js +48 -0
- package/node_modules/async/detectSeries.js +38 -0
- package/node_modules/async/dir.js +43 -0
- package/node_modules/async/dist/async.js +5612 -0
- package/node_modules/async/dist/async.min.js +2 -0
- package/node_modules/async/dist/async.min.map +1 -0
- package/node_modules/async/doDuring.js +66 -0
- package/node_modules/async/doUntil.js +39 -0
- package/node_modules/async/doWhilst.js +59 -0
- package/node_modules/async/during.js +76 -0
- package/node_modules/async/each.js +82 -0
- package/node_modules/async/eachLimit.js +45 -0
- package/node_modules/async/eachOf.js +111 -0
- package/node_modules/async/eachOfLimit.js +41 -0
- package/node_modules/async/eachOfSeries.js +35 -0
- package/node_modules/async/eachSeries.js +37 -0
- package/node_modules/async/ensureAsync.js +73 -0
- package/node_modules/async/every.js +50 -0
- package/node_modules/async/everyLimit.js +42 -0
- package/node_modules/async/everySeries.js +37 -0
- package/node_modules/async/filter.js +45 -0
- package/node_modules/async/filterLimit.js +37 -0
- package/node_modules/async/filterSeries.js +35 -0
- package/node_modules/async/find.js +61 -0
- package/node_modules/async/findLimit.js +48 -0
- package/node_modules/async/findSeries.js +38 -0
- package/node_modules/async/foldl.js +78 -0
- package/node_modules/async/foldr.js +44 -0
- package/node_modules/async/forEach.js +82 -0
- package/node_modules/async/forEachLimit.js +45 -0
- package/node_modules/async/forEachOf.js +111 -0
- package/node_modules/async/forEachOfLimit.js +41 -0
- package/node_modules/async/forEachOfSeries.js +35 -0
- package/node_modules/async/forEachSeries.js +37 -0
- package/node_modules/async/forever.js +65 -0
- package/node_modules/async/groupBy.js +54 -0
- package/node_modules/async/groupByLimit.js +71 -0
- package/node_modules/async/groupBySeries.js +37 -0
- package/node_modules/async/index.js +582 -0
- package/node_modules/async/inject.js +78 -0
- package/node_modules/async/internal/DoublyLinkedList.js +88 -0
- package/node_modules/async/internal/applyEach.js +38 -0
- package/node_modules/async/internal/breakLoop.js +9 -0
- package/node_modules/async/internal/consoleFunc.js +42 -0
- package/node_modules/async/internal/createTester.js +44 -0
- package/node_modules/async/internal/doLimit.js +12 -0
- package/node_modules/async/internal/doParallel.js +23 -0
- package/node_modules/async/internal/doParallelLimit.js +23 -0
- package/node_modules/async/internal/eachOfLimit.js +74 -0
- package/node_modules/async/internal/filter.js +75 -0
- package/node_modules/async/internal/findGetResult.js +10 -0
- package/node_modules/async/internal/getIterator.js +13 -0
- package/node_modules/async/internal/initialParams.js +21 -0
- package/node_modules/async/internal/iterator.js +61 -0
- package/node_modules/async/internal/map.js +35 -0
- package/node_modules/async/internal/notId.js +10 -0
- package/node_modules/async/internal/once.js +15 -0
- package/node_modules/async/internal/onlyOnce.js +15 -0
- package/node_modules/async/internal/parallel.js +42 -0
- package/node_modules/async/internal/queue.js +204 -0
- package/node_modules/async/internal/reject.js +21 -0
- package/node_modules/async/internal/setImmediate.js +42 -0
- package/node_modules/async/internal/slice.js +16 -0
- package/node_modules/async/internal/withoutIndex.js +12 -0
- package/node_modules/async/internal/wrapAsync.js +25 -0
- package/node_modules/async/log.js +41 -0
- package/node_modules/async/map.js +54 -0
- package/node_modules/async/mapLimit.js +37 -0
- package/node_modules/async/mapSeries.js +36 -0
- package/node_modules/async/mapValues.js +63 -0
- package/node_modules/async/mapValuesLimit.js +61 -0
- package/node_modules/async/mapValuesSeries.js +37 -0
- package/node_modules/async/memoize.js +101 -0
- package/node_modules/async/nextTick.js +51 -0
- package/node_modules/async/package.json +110 -0
- package/node_modules/async/parallel.js +90 -0
- package/node_modules/async/parallelLimit.js +40 -0
- package/node_modules/async/priorityQueue.js +98 -0
- package/node_modules/async/queue.js +130 -0
- package/node_modules/async/race.js +70 -0
- package/node_modules/async/reduce.js +78 -0
- package/node_modules/async/reduceRight.js +44 -0
- package/node_modules/async/reflect.js +81 -0
- package/node_modules/async/reflectAll.js +105 -0
- package/node_modules/async/reject.js +45 -0
- package/node_modules/async/rejectLimit.js +37 -0
- package/node_modules/async/rejectSeries.js +35 -0
- package/node_modules/async/retry.js +156 -0
- package/node_modules/async/retryable.js +65 -0
- package/node_modules/async/select.js +45 -0
- package/node_modules/async/selectLimit.js +37 -0
- package/node_modules/async/selectSeries.js +35 -0
- package/node_modules/async/seq.js +91 -0
- package/node_modules/async/series.js +85 -0
- package/node_modules/async/setImmediate.js +45 -0
- package/node_modules/async/some.js +52 -0
- package/node_modules/async/someLimit.js +43 -0
- package/node_modules/async/someSeries.js +38 -0
- package/node_modules/async/sortBy.js +91 -0
- package/node_modules/async/timeout.js +89 -0
- package/node_modules/async/times.js +50 -0
- package/node_modules/async/timesLimit.js +42 -0
- package/node_modules/async/timesSeries.js +32 -0
- package/node_modules/async/transform.js +87 -0
- package/node_modules/async/tryEach.js +81 -0
- package/node_modules/async/unmemoize.js +25 -0
- package/node_modules/async/until.js +41 -0
- package/node_modules/async/waterfall.js +113 -0
- package/node_modules/async/whilst.js +72 -0
- package/node_modules/async/wrapSync.js +110 -0
- package/node_modules/async-arrays/.travis.yml +6 -0
- package/node_modules/async-arrays/LICENSE +20 -0
- package/node_modules/async-arrays/README.md +133 -0
- package/node_modules/async-arrays/async-arrays.js +214 -0
- package/node_modules/async-arrays/package.json +64 -0
- package/node_modules/async-arrays/test.js +101 -0
- package/node_modules/async-limiter/.eslintignore +2 -0
- package/node_modules/async-limiter/.nycrc +10 -0
- package/node_modules/async-limiter/.travis.yml +9 -0
- package/node_modules/async-limiter/LICENSE +8 -0
- package/node_modules/async-limiter/index.js +67 -0
- package/node_modules/async-limiter/package.json +72 -0
- package/node_modules/async-limiter/readme.md +132 -0
- package/node_modules/asynckit/LICENSE +21 -0
- package/node_modules/asynckit/README.md +233 -0
- package/node_modules/asynckit/bench.js +76 -0
- package/node_modules/asynckit/index.js +6 -0
- package/node_modules/asynckit/lib/abort.js +29 -0
- package/node_modules/asynckit/lib/async.js +34 -0
- package/node_modules/asynckit/lib/defer.js +26 -0
- package/node_modules/asynckit/lib/iterate.js +75 -0
- package/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/node_modules/asynckit/lib/state.js +37 -0
- package/node_modules/asynckit/lib/streamify.js +141 -0
- package/node_modules/asynckit/lib/terminator.js +29 -0
- package/node_modules/asynckit/package.json +96 -0
- package/node_modules/asynckit/parallel.js +43 -0
- package/node_modules/asynckit/serial.js +17 -0
- package/node_modules/asynckit/serialOrdered.js +75 -0
- package/node_modules/asynckit/stream.js +21 -0
- package/node_modules/axios/CHANGELOG.md +943 -0
- package/node_modules/axios/LICENSE +19 -0
- package/node_modules/axios/README.md +991 -0
- package/node_modules/axios/SECURITY.md +5 -0
- package/node_modules/axios/UPGRADE_GUIDE.md +168 -0
- package/node_modules/axios/dist/axios.js +2595 -0
- package/node_modules/axios/dist/axios.map +1 -0
- package/node_modules/axios/dist/axios.min.js +3 -0
- package/node_modules/axios/dist/axios.min.map +1 -0
- package/node_modules/axios/index.d.ts +254 -0
- package/node_modules/axios/index.js +1 -0
- package/node_modules/axios/lib/adapters/README.md +37 -0
- package/node_modules/axios/lib/adapters/http.js +424 -0
- package/node_modules/axios/lib/adapters/xhr.js +222 -0
- package/node_modules/axios/lib/axios.js +64 -0
- package/node_modules/axios/lib/cancel/CancelToken.js +119 -0
- package/node_modules/axios/lib/cancel/CanceledError.js +22 -0
- package/node_modules/axios/lib/cancel/isCancel.js +5 -0
- package/node_modules/axios/lib/core/Axios.js +160 -0
- package/node_modules/axios/lib/core/AxiosError.js +86 -0
- package/node_modules/axios/lib/core/InterceptorManager.js +54 -0
- package/node_modules/axios/lib/core/README.md +8 -0
- package/node_modules/axios/lib/core/buildFullPath.js +20 -0
- package/node_modules/axios/lib/core/dispatchRequest.js +87 -0
- package/node_modules/axios/lib/core/mergeConfig.js +100 -0
- package/node_modules/axios/lib/core/settle.js +25 -0
- package/node_modules/axios/lib/core/transformData.js +22 -0
- package/node_modules/axios/lib/defaults/env/FormData.js +2 -0
- package/node_modules/axios/lib/defaults/index.js +146 -0
- package/node_modules/axios/lib/defaults/transitional.js +7 -0
- package/node_modules/axios/lib/env/README.md +3 -0
- package/node_modules/axios/lib/env/data.js +3 -0
- package/node_modules/axios/lib/helpers/README.md +7 -0
- package/node_modules/axios/lib/helpers/bind.js +11 -0
- package/node_modules/axios/lib/helpers/buildURL.js +70 -0
- package/node_modules/axios/lib/helpers/combineURLs.js +14 -0
- package/node_modules/axios/lib/helpers/cookies.js +53 -0
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +24 -0
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +14 -0
- package/node_modules/axios/lib/helpers/isAxiosError.js +13 -0
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +68 -0
- package/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
- package/node_modules/axios/lib/helpers/null.js +2 -0
- package/node_modules/axios/lib/helpers/parseHeaders.js +53 -0
- package/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/node_modules/axios/lib/helpers/spread.js +27 -0
- package/node_modules/axios/lib/helpers/toFormData.js +72 -0
- package/node_modules/axios/lib/helpers/validator.js +86 -0
- package/node_modules/axios/lib/utils.js +470 -0
- package/node_modules/axios/package.json +117 -0
- package/node_modules/axios/tsconfig.json +14 -0
- package/node_modules/axios/tslint.json +6 -0
- package/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/node_modules/balanced-match/LICENSE.md +21 -0
- package/node_modules/balanced-match/README.md +97 -0
- package/node_modules/balanced-match/index.js +62 -0
- package/node_modules/balanced-match/package.json +79 -0
- package/node_modules/binary-extensions/binary-extensions.json +260 -0
- package/node_modules/binary-extensions/binary-extensions.json.d.ts +3 -0
- package/node_modules/binary-extensions/index.d.ts +14 -0
- package/node_modules/binary-extensions/index.js +1 -0
- package/node_modules/binary-extensions/license +9 -0
- package/node_modules/binary-extensions/package.json +74 -0
- package/node_modules/binary-extensions/readme.md +41 -0
- package/node_modules/brace-expansion/LICENSE +21 -0
- package/node_modules/brace-expansion/README.md +129 -0
- package/node_modules/brace-expansion/index.js +201 -0
- package/node_modules/brace-expansion/package.json +78 -0
- package/node_modules/braces/CHANGELOG.md +184 -0
- package/node_modules/braces/LICENSE +21 -0
- package/node_modules/braces/README.md +593 -0
- package/node_modules/braces/index.js +170 -0
- package/node_modules/braces/lib/compile.js +57 -0
- package/node_modules/braces/lib/constants.js +57 -0
- package/node_modules/braces/lib/expand.js +113 -0
- package/node_modules/braces/lib/parse.js +333 -0
- package/node_modules/braces/lib/stringify.js +32 -0
- package/node_modules/braces/lib/utils.js +112 -0
- package/node_modules/braces/package.json +127 -0
- package/node_modules/buffer-crc32/LICENSE +19 -0
- package/node_modules/buffer-crc32/README.md +47 -0
- package/node_modules/buffer-crc32/index.js +111 -0
- package/node_modules/buffer-crc32/package.json +72 -0
- package/node_modules/call-bind/.eslintignore +1 -0
- package/node_modules/call-bind/.eslintrc +17 -0
- package/node_modules/call-bind/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind/.nycrc +13 -0
- package/node_modules/call-bind/CHANGELOG.md +42 -0
- package/node_modules/call-bind/LICENSE +21 -0
- package/node_modules/call-bind/README.md +2 -0
- package/node_modules/call-bind/callBound.js +15 -0
- package/node_modules/call-bind/index.js +47 -0
- package/node_modules/call-bind/package.json +126 -0
- package/node_modules/call-bind/test/callBound.js +55 -0
- package/node_modules/call-bind/test/index.js +66 -0
- package/node_modules/canvas/Readme.md +600 -0
- package/node_modules/canvas/binding.gyp +229 -0
- package/node_modules/canvas/browser.js +35 -0
- package/node_modules/canvas/build/Release/.deps/Release/canvas.node.d +1 -0
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/Backends.o.d +392 -0
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/Canvas.o.d +406 -0
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/CanvasGradient.o.d +376 -0
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/CanvasPattern.o.d +722 -0
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/CanvasRenderingContext2d.o.d +733 -0
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/Image.o.d +722 -0
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/ImageData.o.d +64 -0
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/Backend.o.d +72 -0
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/ImageBackend.o.d +74 -0
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/PdfBackend.o.d +391 -0
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/SvgBackend.o.d +391 -0
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/bmp/BMPParser.o.d +5 -0
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/closure.o.d +386 -0
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/color.o.d +4 -0
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/init.o.d +758 -0
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/register_font.o.d +349 -0
- package/node_modules/canvas/build/Release/canvas.node +0 -0
- package/node_modules/canvas/build/Release/libX11.6.dylib +0 -0
- package/node_modules/canvas/build/Release/libXau.6.dylib +0 -0
- package/node_modules/canvas/build/Release/libXdmcp.6.dylib +0 -0
- package/node_modules/canvas/build/Release/libXext.6.dylib +0 -0
- package/node_modules/canvas/build/Release/libXrender.1.dylib +0 -0
- package/node_modules/canvas/build/Release/libcairo-gobject.2.dylib +0 -0
- package/node_modules/canvas/build/Release/libcairo.2.dylib +0 -0
- package/node_modules/canvas/build/Release/libffi.8.dylib +0 -0
- package/node_modules/canvas/build/Release/libfontconfig.1.dylib +0 -0
- package/node_modules/canvas/build/Release/libfreetype.6.dylib +0 -0
- package/node_modules/canvas/build/Release/libfribidi.0.dylib +0 -0
- package/node_modules/canvas/build/Release/libgdk_pixbuf-2.0.0.dylib +0 -0
- package/node_modules/canvas/build/Release/libgif.7.2.0.dylib +0 -0
- package/node_modules/canvas/build/Release/libgio-2.0.0.dylib +0 -0
- package/node_modules/canvas/build/Release/libglib-2.0.0.dylib +0 -0
- package/node_modules/canvas/build/Release/libgmodule-2.0.0.dylib +0 -0
- package/node_modules/canvas/build/Release/libgobject-2.0.0.dylib +0 -0
- package/node_modules/canvas/build/Release/libgraphite2.3.2.1.dylib +0 -0
- package/node_modules/canvas/build/Release/libharfbuzz.0.dylib +0 -0
- package/node_modules/canvas/build/Release/libintl.8.dylib +0 -0
- package/node_modules/canvas/build/Release/libjpeg.9.dylib +0 -0
- package/node_modules/canvas/build/Release/libpango-1.0.0.dylib +0 -0
- package/node_modules/canvas/build/Release/libpangocairo-1.0.0.dylib +0 -0
- package/node_modules/canvas/build/Release/libpangoft2-1.0.0.dylib +0 -0
- package/node_modules/canvas/build/Release/libpcre.1.dylib +0 -0
- package/node_modules/canvas/build/Release/libpixman-1.0.40.0.dylib +0 -0
- package/node_modules/canvas/build/Release/libpng16.16.dylib +0 -0
- package/node_modules/canvas/build/Release/librsvg-2.2.dylib +0 -0
- package/node_modules/canvas/build/Release/libxcb-render.0.0.0.dylib +0 -0
- package/node_modules/canvas/build/Release/libxcb-shm.0.0.0.dylib +0 -0
- package/node_modules/canvas/build/Release/libxcb.1.1.0.dylib +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/Backends.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/Canvas.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/CanvasGradient.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/CanvasPattern.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/CanvasRenderingContext2d.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/Image.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/ImageData.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/backend/Backend.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/backend/ImageBackend.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/backend/PdfBackend.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/backend/SvgBackend.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/bmp/BMPParser.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/closure.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/color.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/init.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/register_font.o +0 -0
- package/node_modules/canvas/index.js +92 -0
- package/node_modules/canvas/lib/DOMMatrix.js +620 -0
- package/node_modules/canvas/lib/bindings.js +13 -0
- package/node_modules/canvas/lib/canvas.js +113 -0
- package/node_modules/canvas/lib/context2d.js +14 -0
- package/node_modules/canvas/lib/image.js +93 -0
- package/node_modules/canvas/lib/jpegstream.js +41 -0
- package/node_modules/canvas/lib/parse-font.js +101 -0
- package/node_modules/canvas/lib/pattern.js +17 -0
- package/node_modules/canvas/lib/pdfstream.js +35 -0
- package/node_modules/canvas/lib/pngstream.js +42 -0
- package/node_modules/canvas/package.json +116 -0
- package/node_modules/canvas/src/Backends.cc +18 -0
- package/node_modules/canvas/src/Backends.h +10 -0
- package/node_modules/canvas/src/Canvas.cc +951 -0
- package/node_modules/canvas/src/Canvas.h +82 -0
- package/node_modules/canvas/src/CanvasError.h +23 -0
- package/node_modules/canvas/src/CanvasGradient.cc +123 -0
- package/node_modules/canvas/src/CanvasGradient.h +22 -0
- package/node_modules/canvas/src/CanvasPattern.cc +136 -0
- package/node_modules/canvas/src/CanvasPattern.h +37 -0
- package/node_modules/canvas/src/CanvasRenderingContext2d.cc +3097 -0
- package/node_modules/canvas/src/CanvasRenderingContext2d.h +203 -0
- package/node_modules/canvas/src/Image.cc +1402 -0
- package/node_modules/canvas/src/Image.h +127 -0
- package/node_modules/canvas/src/ImageData.cc +140 -0
- package/node_modules/canvas/src/ImageData.h +27 -0
- package/node_modules/canvas/src/JPEGStream.h +167 -0
- package/node_modules/canvas/src/PNG.h +292 -0
- package/node_modules/canvas/src/Point.h +10 -0
- package/node_modules/canvas/src/Util.h +34 -0
- package/node_modules/canvas/src/backend/Backend.cc +112 -0
- package/node_modules/canvas/src/backend/Backend.h +69 -0
- package/node_modules/canvas/src/backend/ImageBackend.cc +74 -0
- package/node_modules/canvas/src/backend/ImageBackend.h +26 -0
- package/node_modules/canvas/src/backend/PdfBackend.cc +53 -0
- package/node_modules/canvas/src/backend/PdfBackend.h +24 -0
- package/node_modules/canvas/src/backend/SvgBackend.cc +61 -0
- package/node_modules/canvas/src/backend/SvgBackend.h +24 -0
- package/node_modules/canvas/src/bmp/BMPParser.cc +457 -0
- package/node_modules/canvas/src/bmp/BMPParser.h +60 -0
- package/node_modules/canvas/src/bmp/LICENSE.md +24 -0
- package/node_modules/canvas/src/closure.cc +26 -0
- package/node_modules/canvas/src/closure.h +81 -0
- package/node_modules/canvas/src/color.cc +775 -0
- package/node_modules/canvas/src/color.h +30 -0
- package/node_modules/canvas/src/dll_visibility.h +20 -0
- package/node_modules/canvas/src/init.cc +92 -0
- package/node_modules/canvas/src/register_font.cc +408 -0
- package/node_modules/canvas/src/register_font.h +7 -0
- package/node_modules/canvas/types/index.d.ts +335 -0
- package/node_modules/canvas/util/has_lib.js +119 -0
- package/node_modules/canvas/util/win_jpeg_lookup.js +21 -0
- package/node_modules/chokidar/LICENSE +21 -0
- package/node_modules/chokidar/README.md +308 -0
- package/node_modules/chokidar/index.js +973 -0
- package/node_modules/chokidar/lib/constants.js +65 -0
- package/node_modules/chokidar/lib/fsevents-handler.js +524 -0
- package/node_modules/chokidar/lib/nodefs-handler.js +654 -0
- package/node_modules/chokidar/package.json +123 -0
- package/node_modules/chokidar/types/index.d.ts +188 -0
- package/node_modules/chownr/LICENSE +15 -0
- package/node_modules/chownr/README.md +3 -0
- package/node_modules/chownr/chownr.js +167 -0
- package/node_modules/chownr/package.json +68 -0
- package/node_modules/cli/README.md +196 -0
- package/node_modules/cli/cli.js +1133 -0
- package/node_modules/cli/examples/cat.js +17 -0
- package/node_modules/cli/examples/command.js +16 -0
- package/node_modules/cli/examples/echo.js +54 -0
- package/node_modules/cli/examples/glob.js +6 -0
- package/node_modules/cli/examples/long_desc.js +20 -0
- package/node_modules/cli/examples/progress.js +11 -0
- package/node_modules/cli/examples/sort.js +18 -0
- package/node_modules/cli/examples/spinner.js +9 -0
- package/node_modules/cli/examples/static.coffee +27 -0
- package/node_modules/cli/examples/static.js +25 -0
- package/node_modules/cli/index.js +1 -0
- package/node_modules/cli/package.json +77 -0
- package/node_modules/cliui/CHANGELOG.md +121 -0
- package/node_modules/cliui/LICENSE.txt +14 -0
- package/node_modules/cliui/README.md +141 -0
- package/node_modules/cliui/build/index.cjs +302 -0
- package/node_modules/cliui/build/lib/index.js +287 -0
- package/node_modules/cliui/build/lib/string-utils.js +27 -0
- package/node_modules/cliui/index.mjs +13 -0
- package/node_modules/cliui/package.json +121 -0
- package/node_modules/color/LICENSE +21 -0
- package/node_modules/color/README.md +123 -0
- package/node_modules/color/index.js +482 -0
- package/node_modules/color/node_modules/color-convert/CHANGELOG.md +54 -0
- package/node_modules/color/node_modules/color-convert/LICENSE +21 -0
- package/node_modules/color/node_modules/color-convert/README.md +68 -0
- package/node_modules/color/node_modules/color-convert/conversions.js +868 -0
- package/node_modules/color/node_modules/color-convert/index.js +78 -0
- package/node_modules/color/node_modules/color-convert/package.json +84 -0
- package/node_modules/color/node_modules/color-convert/route.js +97 -0
- package/node_modules/color/node_modules/color-name/.eslintrc.json +43 -0
- package/node_modules/color/node_modules/color-name/.npmignore +107 -0
- package/node_modules/color/node_modules/color-name/LICENSE +8 -0
- package/node_modules/color/node_modules/color-name/README.md +11 -0
- package/node_modules/color/node_modules/color-name/index.js +152 -0
- package/node_modules/color/node_modules/color-name/package.json +56 -0
- package/node_modules/color/node_modules/color-name/test.js +7 -0
- package/node_modules/color/package.json +75 -0
- package/node_modules/color-convert/CHANGELOG.md +54 -0
- package/node_modules/color-convert/LICENSE +21 -0
- package/node_modules/color-convert/README.md +68 -0
- package/node_modules/color-convert/conversions.js +839 -0
- package/node_modules/color-convert/index.js +81 -0
- package/node_modules/color-convert/package.json +86 -0
- package/node_modules/color-convert/route.js +97 -0
- package/node_modules/color-difference/LICENSE +7 -0
- package/node_modules/color-difference/Makefile +29 -0
- package/node_modules/color-difference/README.md +12 -0
- package/node_modules/color-difference/bin/color-difference +3 -0
- package/node_modules/color-difference/index.js +4 -0
- package/node_modules/color-difference/lib/cli-runner.js +49 -0
- package/node_modules/color-difference/lib/compare.js +28 -0
- package/node_modules/color-difference/lib/index.js +7 -0
- package/node_modules/color-difference/lib/method/abstract.js +15 -0
- package/node_modules/color-difference/lib/method/cie-76-difference.js +33 -0
- package/node_modules/color-difference/lib/method/euclidean-distance.js +32 -0
- package/node_modules/color-difference/package.json +67 -0
- package/node_modules/color-difference/test/compare.js +40 -0
- package/node_modules/color-difference/test/method-absract.js +18 -0
- package/node_modules/color-model/Makefile +29 -0
- package/node_modules/color-model/index.js +5 -0
- package/node_modules/color-model/lib/abstract-model.js +92 -0
- package/node_modules/color-model/lib/component.js +59 -0
- package/node_modules/color-model/lib/hex-rgb.js +69 -0
- package/node_modules/color-model/lib/hsl.js +108 -0
- package/node_modules/color-model/lib/index.js +9 -0
- package/node_modules/color-model/lib/lab.js +46 -0
- package/node_modules/color-model/lib/rgb.js +154 -0
- package/node_modules/color-model/lib/xyz.js +117 -0
- package/node_modules/color-model/package.json +63 -0
- package/node_modules/color-model/test/abstract-model.js +82 -0
- package/node_modules/color-model/test/component.js +104 -0
- package/node_modules/color-model/test/hex-rgb.js +56 -0
- package/node_modules/color-model/test/hsl.js +33 -0
- package/node_modules/color-model/test/lab.js +37 -0
- package/node_modules/color-model/test/rgb.js +74 -0
- package/node_modules/color-model/test/xyz.js +45 -0
- package/node_modules/color-name/LICENSE +8 -0
- package/node_modules/color-name/README.md +11 -0
- package/node_modules/color-name/index.js +152 -0
- package/node_modules/color-name/package.json +60 -0
- package/node_modules/color-string/LICENSE +21 -0
- package/node_modules/color-string/README.md +62 -0
- package/node_modules/color-string/index.js +242 -0
- package/node_modules/color-string/package.json +84 -0
- package/node_modules/color-support/LICENSE +15 -0
- package/node_modules/color-support/README.md +129 -0
- package/node_modules/color-support/bin.js +3 -0
- package/node_modules/color-support/browser.js +14 -0
- package/node_modules/color-support/index.js +134 -0
- package/node_modules/color-support/package.json +74 -0
- package/node_modules/combined-stream/License +19 -0
- package/node_modules/combined-stream/Readme.md +138 -0
- package/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/node_modules/combined-stream/package.json +62 -0
- package/node_modules/combined-stream/yarn.lock +17 -0
- package/node_modules/component-emitter/History.md +75 -0
- package/node_modules/component-emitter/LICENSE +24 -0
- package/node_modules/component-emitter/Readme.md +74 -0
- package/node_modules/component-emitter/index.js +175 -0
- package/node_modules/component-emitter/package.json +59 -0
- package/node_modules/concat-map/.travis.yml +4 -0
- package/node_modules/concat-map/LICENSE +18 -0
- package/node_modules/concat-map/README.markdown +62 -0
- package/node_modules/concat-map/example/map.js +6 -0
- package/node_modules/concat-map/index.js +13 -0
- package/node_modules/concat-map/package.json +91 -0
- package/node_modules/concat-map/test/map.js +39 -0
- package/node_modules/console-control-strings/LICENSE +13 -0
- package/node_modules/console-control-strings/README.md +145 -0
- package/node_modules/console-control-strings/README.md~ +140 -0
- package/node_modules/console-control-strings/index.js +125 -0
- package/node_modules/console-control-strings/package.json +64 -0
- package/node_modules/convert-source-map/LICENSE +23 -0
- package/node_modules/convert-source-map/README.md +120 -0
- package/node_modules/convert-source-map/index.js +136 -0
- package/node_modules/convert-source-map/package.json +75 -0
- package/node_modules/cookiejar/LICENSE +9 -0
- package/node_modules/cookiejar/cookiejar.js +276 -0
- package/node_modules/cookiejar/package.json +58 -0
- package/node_modules/cookiejar/readme.md +60 -0
- package/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/core-util-is/README.md +3 -0
- package/node_modules/core-util-is/lib/util.js +107 -0
- package/node_modules/core-util-is/package.json +72 -0
- package/node_modules/cross-fetch/LICENSE +21 -0
- package/node_modules/cross-fetch/README.md +169 -0
- package/node_modules/cross-fetch/dist/browser-polyfill.js +532 -0
- package/node_modules/cross-fetch/dist/browser-ponyfill.js +554 -0
- package/node_modules/cross-fetch/dist/cross-fetch.js +2 -0
- package/node_modules/cross-fetch/dist/cross-fetch.js.map +1 -0
- package/node_modules/cross-fetch/dist/node-polyfill.js +11 -0
- package/node_modules/cross-fetch/dist/node-ponyfill.js +22 -0
- package/node_modules/cross-fetch/dist/react-native-polyfill.js +12 -0
- package/node_modules/cross-fetch/dist/react-native-ponyfill.js +6 -0
- package/node_modules/cross-fetch/index.d.ts +14 -0
- package/node_modules/cross-fetch/package.json +160 -0
- package/node_modules/cross-fetch/polyfill/package.json +8 -0
- package/node_modules/d3/CHANGES.md +1409 -0
- package/node_modules/d3/LICENSE +27 -0
- package/node_modules/d3/README.md +57 -0
- package/node_modules/d3/dist/d3.js +18568 -0
- package/node_modules/d3/dist/d3.min.js +2 -0
- package/node_modules/d3/dist/d3.node.js +287 -0
- package/node_modules/d3/dist/package.js +16 -0
- package/node_modules/d3/index.js +32 -0
- package/node_modules/d3/package.json +109 -0
- package/node_modules/d3-array/.eslintrc.json +15 -0
- package/node_modules/d3-array/LICENSE +27 -0
- package/node_modules/d3-array/README.md +382 -0
- package/node_modules/d3-array/dist/d3-array.js +590 -0
- package/node_modules/d3-array/dist/d3-array.min.js +2 -0
- package/node_modules/d3-array/package.json +77 -0
- package/node_modules/d3-array/rollup.config.js +36 -0
- package/node_modules/d3-array/src/array.js +4 -0
- package/node_modules/d3-array/src/ascending.js +3 -0
- package/node_modules/d3-array/src/bisect.js +7 -0
- package/node_modules/d3-array/src/bisector.js +33 -0
- package/node_modules/d3-array/src/constant.js +5 -0
- package/node_modules/d3-array/src/cross.js +21 -0
- package/node_modules/d3-array/src/descending.js +3 -0
- package/node_modules/d3-array/src/deviation.js +6 -0
- package/node_modules/d3-array/src/extent.js +37 -0
- package/node_modules/d3-array/src/histogram.js +75 -0
- package/node_modules/d3-array/src/identity.js +3 -0
- package/node_modules/d3-array/src/index.js +27 -0
- package/node_modules/d3-array/src/max.js +34 -0
- package/node_modules/d3-array/src/mean.js +25 -0
- package/node_modules/d3-array/src/median.js +28 -0
- package/node_modules/d3-array/src/merge.js +21 -0
- package/node_modules/d3-array/src/min.js +34 -0
- package/node_modules/d3-array/src/number.js +3 -0
- package/node_modules/d3-array/src/pairs.js +10 -0
- package/node_modules/d3-array/src/permute.js +5 -0
- package/node_modules/d3-array/src/quantile.js +14 -0
- package/node_modules/d3-array/src/range.js +13 -0
- package/node_modules/d3-array/src/scan.js +20 -0
- package/node_modules/d3-array/src/shuffle.js +14 -0
- package/node_modules/d3-array/src/sum.js +20 -0
- package/node_modules/d3-array/src/threshold/freedmanDiaconis.js +9 -0
- package/node_modules/d3-array/src/threshold/scott.js +5 -0
- package/node_modules/d3-array/src/threshold/sturges.js +3 -0
- package/node_modules/d3-array/src/ticks.js +51 -0
- package/node_modules/d3-array/src/transpose.js +15 -0
- package/node_modules/d3-array/src/variance.js +33 -0
- package/node_modules/d3-array/src/zip.js +5 -0
- package/node_modules/d3-array/yarn.lock +939 -0
- package/node_modules/d3-axis/.eslintrc.json +15 -0
- package/node_modules/d3-axis/LICENSE +27 -0
- package/node_modules/d3-axis/README.md +192 -0
- package/node_modules/d3-axis/dist/d3-axis.js +193 -0
- package/node_modules/d3-axis/dist/d3-axis.min.js +2 -0
- package/node_modules/d3-axis/package.json +72 -0
- package/node_modules/d3-axis/rollup.config.js +36 -0
- package/node_modules/d3-axis/src/array.js +1 -0
- package/node_modules/d3-axis/src/axis.js +174 -0
- package/node_modules/d3-axis/src/identity.js +3 -0
- package/node_modules/d3-axis/src/index.js +6 -0
- package/node_modules/d3-axis/yarn.lock +1432 -0
- package/node_modules/d3-brush/LICENSE +27 -0
- package/node_modules/d3-brush/README.md +169 -0
- package/node_modules/d3-brush/dist/d3-brush.js +619 -0
- package/node_modules/d3-brush/dist/d3-brush.min.js +2 -0
- package/node_modules/d3-brush/package.json +79 -0
- package/node_modules/d3-brush/src/brush.js +591 -0
- package/node_modules/d3-brush/src/constant.js +5 -0
- package/node_modules/d3-brush/src/event.js +5 -0
- package/node_modules/d3-brush/src/index.js +6 -0
- package/node_modules/d3-brush/src/noevent.js +10 -0
- package/node_modules/d3-chord/.eslintrc.json +15 -0
- package/node_modules/d3-chord/LICENSE +27 -0
- package/node_modules/d3-chord/README.md +170 -0
- package/node_modules/d3-chord/dist/d3-chord.js +230 -0
- package/node_modules/d3-chord/dist/d3-chord.min.js +2 -0
- package/node_modules/d3-chord/package.json +74 -0
- package/node_modules/d3-chord/rollup.config.js +36 -0
- package/node_modules/d3-chord/src/array.js +1 -0
- package/node_modules/d3-chord/src/chord.js +121 -0
- package/node_modules/d3-chord/src/constant.js +5 -0
- package/node_modules/d3-chord/src/index.js +2 -0
- package/node_modules/d3-chord/src/math.js +6 -0
- package/node_modules/d3-chord/src/ribbon.js +87 -0
- package/node_modules/d3-chord/yarn.lock +943 -0
- package/node_modules/d3-collection/.eslintrc.json +15 -0
- package/node_modules/d3-collection/LICENSE +27 -0
- package/node_modules/d3-collection/README.md +271 -0
- package/node_modules/d3-collection/dist/d3-collection.js +217 -0
- package/node_modules/d3-collection/dist/d3-collection.min.js +2 -0
- package/node_modules/d3-collection/package.json +75 -0
- package/node_modules/d3-collection/rollup.config.js +36 -0
- package/node_modules/d3-collection/src/entries.js +5 -0
- package/node_modules/d3-collection/src/index.js +6 -0
- package/node_modules/d3-collection/src/keys.js +5 -0
- package/node_modules/d3-collection/src/map.js +75 -0
- package/node_modules/d3-collection/src/nest.js +73 -0
- package/node_modules/d3-collection/src/set.js +39 -0
- package/node_modules/d3-collection/src/values.js +5 -0
- package/node_modules/d3-collection/yarn-error.log +1049 -0
- package/node_modules/d3-collection/yarn.lock +939 -0
- package/node_modules/d3-color/LICENSE +27 -0
- package/node_modules/d3-color/README.md +177 -0
- package/node_modules/d3-color/dist/d3-color.js +581 -0
- package/node_modules/d3-color/dist/d3-color.min.js +2 -0
- package/node_modules/d3-color/package.json +81 -0
- package/node_modules/d3-color/src/color.js +371 -0
- package/node_modules/d3-color/src/cubehelix.js +61 -0
- package/node_modules/d3-color/src/define.js +10 -0
- package/node_modules/d3-color/src/index.js +3 -0
- package/node_modules/d3-color/src/lab.js +123 -0
- package/node_modules/d3-color/src/math.js +2 -0
- package/node_modules/d3-contour/.eslintrc.json +16 -0
- package/node_modules/d3-contour/LICENSE +27 -0
- package/node_modules/d3-contour/README.md +172 -0
- package/node_modules/d3-contour/dist/d3-contour.js +431 -0
- package/node_modules/d3-contour/dist/d3-contour.min.js +2 -0
- package/node_modules/d3-contour/package.json +71 -0
- package/node_modules/d3-contour/rollup.config.js +36 -0
- package/node_modules/d3-contour/src/area.js +5 -0
- package/node_modules/d3-contour/src/array.js +3 -0
- package/node_modules/d3-contour/src/ascending.js +3 -0
- package/node_modules/d3-contour/src/blur.js +43 -0
- package/node_modules/d3-contour/src/constant.js +5 -0
- package/node_modules/d3-contour/src/contains.js +27 -0
- package/node_modules/d3-contour/src/contours.js +203 -0
- package/node_modules/d3-contour/src/density.js +133 -0
- package/node_modules/d3-contour/src/index.js +2 -0
- package/node_modules/d3-contour/src/noop.js +1 -0
- package/node_modules/d3-contour/yarn.lock +939 -0
- package/node_modules/d3-dispatch/LICENSE +27 -0
- package/node_modules/d3-dispatch/README.md +82 -0
- package/node_modules/d3-dispatch/dist/d3-dispatch.js +95 -0
- package/node_modules/d3-dispatch/dist/d3-dispatch.min.js +2 -0
- package/node_modules/d3-dispatch/package.json +79 -0
- package/node_modules/d3-dispatch/src/dispatch.js +84 -0
- package/node_modules/d3-dispatch/src/index.js +1 -0
- package/node_modules/d3-drag/LICENSE +27 -0
- package/node_modules/d3-drag/README.md +235 -0
- package/node_modules/d3-drag/dist/d3-drag.js +234 -0
- package/node_modules/d3-drag/dist/d3-drag.min.js +2 -0
- package/node_modules/d3-drag/package.json +80 -0
- package/node_modules/d3-drag/src/constant.js +5 -0
- package/node_modules/d3-drag/src/drag.js +167 -0
- package/node_modules/d3-drag/src/event.js +17 -0
- package/node_modules/d3-drag/src/index.js +2 -0
- package/node_modules/d3-drag/src/nodrag.js +28 -0
- package/node_modules/d3-drag/src/noevent.js +10 -0
- package/node_modules/d3-dsv/LICENSE +27 -0
- package/node_modules/d3-dsv/README.md +473 -0
- package/node_modules/d3-dsv/bin/dsv2dsv +32 -0
- package/node_modules/d3-dsv/bin/dsv2json +33 -0
- package/node_modules/d3-dsv/bin/json2dsv +33 -0
- package/node_modules/d3-dsv/dist/d3-dsv.js +233 -0
- package/node_modules/d3-dsv/dist/d3-dsv.min.js +2 -0
- package/node_modules/d3-dsv/node_modules/commander/CHANGELOG.md +419 -0
- package/node_modules/d3-dsv/node_modules/commander/LICENSE +22 -0
- package/node_modules/d3-dsv/node_modules/commander/Readme.md +428 -0
- package/node_modules/d3-dsv/node_modules/commander/index.js +1224 -0
- package/node_modules/d3-dsv/node_modules/commander/package.json +73 -0
- package/node_modules/d3-dsv/node_modules/commander/typings/index.d.ts +310 -0
- package/node_modules/d3-dsv/package.json +93 -0
- package/node_modules/d3-dsv/src/autoType.js +20 -0
- package/node_modules/d3-dsv/src/csv.js +11 -0
- package/node_modules/d3-dsv/src/dsv.js +164 -0
- package/node_modules/d3-dsv/src/index.js +4 -0
- package/node_modules/d3-dsv/src/tsv.js +11 -0
- package/node_modules/d3-ease/LICENSE +28 -0
- package/node_modules/d3-ease/README.md +241 -0
- package/node_modules/d3-ease/dist/d3-ease.js +264 -0
- package/node_modules/d3-ease/dist/d3-ease.min.js +2 -0
- package/node_modules/d3-ease/package.json +76 -0
- package/node_modules/d3-ease/src/back.js +37 -0
- package/node_modules/d3-ease/src/bounce.js +22 -0
- package/node_modules/d3-ease/src/circle.js +11 -0
- package/node_modules/d3-ease/src/cubic.js +11 -0
- package/node_modules/d3-ease/src/elastic.js +46 -0
- package/node_modules/d3-ease/src/exp.js +13 -0
- package/node_modules/d3-ease/src/index.js +66 -0
- package/node_modules/d3-ease/src/linear.js +3 -0
- package/node_modules/d3-ease/src/math.js +4 -0
- package/node_modules/d3-ease/src/poly.js +37 -0
- package/node_modules/d3-ease/src/quad.js +11 -0
- package/node_modules/d3-ease/src/sin.js +14 -0
- package/node_modules/d3-fetch/LICENSE +27 -0
- package/node_modules/d3-fetch/README.md +104 -0
- package/node_modules/d3-fetch/dist/d3-fetch.js +103 -0
- package/node_modules/d3-fetch/dist/d3-fetch.min.js +2 -0
- package/node_modules/d3-fetch/package.json +77 -0
- package/node_modules/d3-fetch/src/blob.js +8 -0
- package/node_modules/d3-fetch/src/buffer.js +8 -0
- package/node_modules/d3-fetch/src/dsv.js +22 -0
- package/node_modules/d3-fetch/src/image.js +9 -0
- package/node_modules/d3-fetch/src/index.js +7 -0
- package/node_modules/d3-fetch/src/json.js +9 -0
- package/node_modules/d3-fetch/src/text.js +8 -0
- package/node_modules/d3-fetch/src/xml.js +15 -0
- package/node_modules/d3-force/.eslintrc.json +15 -0
- package/node_modules/d3-force/LICENSE +27 -0
- package/node_modules/d3-force/README.md +459 -0
- package/node_modules/d3-force/dist/d3-force.js +668 -0
- package/node_modules/d3-force/dist/d3-force.min.js +2 -0
- package/node_modules/d3-force/package.json +78 -0
- package/node_modules/d3-force/rollup.config.js +36 -0
- package/node_modules/d3-force/src/center.js +36 -0
- package/node_modules/d3-force/src/collide.js +98 -0
- package/node_modules/d3-force/src/constant.js +5 -0
- package/node_modules/d3-force/src/index.js +8 -0
- package/node_modules/d3-force/src/jiggle.js +3 -0
- package/node_modules/d3-force/src/link.js +116 -0
- package/node_modules/d3-force/src/manyBody.js +114 -0
- package/node_modules/d3-force/src/radial.js +57 -0
- package/node_modules/d3-force/src/simulation.js +151 -0
- package/node_modules/d3-force/src/x.js +41 -0
- package/node_modules/d3-force/src/y.js +41 -0
- package/node_modules/d3-force/yarn.lock +951 -0
- package/node_modules/d3-format/LICENSE +27 -0
- package/node_modules/d3-format/README.md +343 -0
- package/node_modules/d3-format/dist/d3-format.js +345 -0
- package/node_modules/d3-format/dist/d3-format.min.js +2 -0
- package/node_modules/d3-format/locale/ar-001.json +7 -0
- package/node_modules/d3-format/locale/ar-AE.json +7 -0
- package/node_modules/d3-format/locale/ar-BH.json +7 -0
- package/node_modules/d3-format/locale/ar-DJ.json +7 -0
- package/node_modules/d3-format/locale/ar-DZ.json +6 -0
- package/node_modules/d3-format/locale/ar-EG.json +7 -0
- package/node_modules/d3-format/locale/ar-EH.json +6 -0
- package/node_modules/d3-format/locale/ar-ER.json +7 -0
- package/node_modules/d3-format/locale/ar-IL.json +7 -0
- package/node_modules/d3-format/locale/ar-IQ.json +7 -0
- package/node_modules/d3-format/locale/ar-JO.json +7 -0
- package/node_modules/d3-format/locale/ar-KM.json +7 -0
- package/node_modules/d3-format/locale/ar-KW.json +7 -0
- package/node_modules/d3-format/locale/ar-LB.json +7 -0
- package/node_modules/d3-format/locale/ar-LY.json +6 -0
- package/node_modules/d3-format/locale/ar-MA.json +6 -0
- package/node_modules/d3-format/locale/ar-MR.json +7 -0
- package/node_modules/d3-format/locale/ar-OM.json +7 -0
- package/node_modules/d3-format/locale/ar-PS.json +7 -0
- package/node_modules/d3-format/locale/ar-QA.json +7 -0
- package/node_modules/d3-format/locale/ar-SA.json +7 -0
- package/node_modules/d3-format/locale/ar-SD.json +7 -0
- package/node_modules/d3-format/locale/ar-SO.json +7 -0
- package/node_modules/d3-format/locale/ar-SS.json +7 -0
- package/node_modules/d3-format/locale/ar-SY.json +7 -0
- package/node_modules/d3-format/locale/ar-TD.json +7 -0
- package/node_modules/d3-format/locale/ar-TN.json +6 -0
- package/node_modules/d3-format/locale/ar-YE.json +7 -0
- package/node_modules/d3-format/locale/ca-ES.json +6 -0
- package/node_modules/d3-format/locale/cs-CZ.json +6 -0
- package/node_modules/d3-format/locale/de-CH.json +6 -0
- package/node_modules/d3-format/locale/de-DE.json +6 -0
- package/node_modules/d3-format/locale/en-CA.json +6 -0
- package/node_modules/d3-format/locale/en-GB.json +6 -0
- package/node_modules/d3-format/locale/en-IE.json +6 -0
- package/node_modules/d3-format/locale/en-IN.json +6 -0
- package/node_modules/d3-format/locale/en-US.json +6 -0
- package/node_modules/d3-format/locale/es-BO.json +7 -0
- package/node_modules/d3-format/locale/es-ES.json +6 -0
- package/node_modules/d3-format/locale/es-MX.json +6 -0
- package/node_modules/d3-format/locale/fi-FI.json +6 -0
- package/node_modules/d3-format/locale/fr-CA.json +6 -0
- package/node_modules/d3-format/locale/fr-FR.json +7 -0
- package/node_modules/d3-format/locale/he-IL.json +6 -0
- package/node_modules/d3-format/locale/hu-HU.json +6 -0
- package/node_modules/d3-format/locale/it-IT.json +6 -0
- package/node_modules/d3-format/locale/ja-JP.json +6 -0
- package/node_modules/d3-format/locale/ko-KR.json +6 -0
- package/node_modules/d3-format/locale/mk-MK.json +6 -0
- package/node_modules/d3-format/locale/nl-NL.json +6 -0
- package/node_modules/d3-format/locale/pl-PL.json +6 -0
- package/node_modules/d3-format/locale/pt-BR.json +6 -0
- package/node_modules/d3-format/locale/ru-RU.json +6 -0
- package/node_modules/d3-format/locale/sv-SE.json +6 -0
- package/node_modules/d3-format/locale/uk-UA.json +6 -0
- package/node_modules/d3-format/locale/zh-CN.json +6 -0
- package/node_modules/d3-format/package.json +77 -0
- package/node_modules/d3-format/src/defaultLocale.js +20 -0
- package/node_modules/d3-format/src/exponent.js +5 -0
- package/node_modules/d3-format/src/formatDecimal.js +20 -0
- package/node_modules/d3-format/src/formatGroup.js +18 -0
- package/node_modules/d3-format/src/formatNumerals.js +7 -0
- package/node_modules/d3-format/src/formatPrefixAuto.js +16 -0
- package/node_modules/d3-format/src/formatRounded.js +11 -0
- package/node_modules/d3-format/src/formatSpecifier.js +47 -0
- package/node_modules/d3-format/src/formatTrim.js +11 -0
- package/node_modules/d3-format/src/formatTypes.js +19 -0
- package/node_modules/d3-format/src/identity.js +3 -0
- package/node_modules/d3-format/src/index.js +6 -0
- package/node_modules/d3-format/src/locale.js +148 -0
- package/node_modules/d3-format/src/precisionFixed.js +5 -0
- package/node_modules/d3-format/src/precisionPrefix.js +5 -0
- package/node_modules/d3-format/src/precisionRound.js +6 -0
- package/node_modules/d3-geo/LICENSE +48 -0
- package/node_modules/d3-geo/README.md +683 -0
- package/node_modules/d3-geo/dist/d3-geo.js +3165 -0
- package/node_modules/d3-geo/dist/d3-geo.min.js +2 -0
- package/node_modules/d3-geo/package.json +83 -0
- package/node_modules/d3-geo/src/adder.js +40 -0
- package/node_modules/d3-geo/src/area.js +74 -0
- package/node_modules/d3-geo/src/bounds.js +179 -0
- package/node_modules/d3-geo/src/cartesian.js +33 -0
- package/node_modules/d3-geo/src/centroid.js +140 -0
- package/node_modules/d3-geo/src/circle.js +72 -0
- package/node_modules/d3-geo/src/clip/antimeridian.js +92 -0
- package/node_modules/d3-geo/src/clip/buffer.js +24 -0
- package/node_modules/d3-geo/src/clip/circle.js +177 -0
- package/node_modules/d3-geo/src/clip/extent.js +20 -0
- package/node_modules/d3-geo/src/clip/index.js +131 -0
- package/node_modules/d3-geo/src/clip/line.js +59 -0
- package/node_modules/d3-geo/src/clip/rectangle.js +168 -0
- package/node_modules/d3-geo/src/clip/rejoin.js +103 -0
- package/node_modules/d3-geo/src/compose.js +12 -0
- package/node_modules/d3-geo/src/constant.js +5 -0
- package/node_modules/d3-geo/src/contains.js +97 -0
- package/node_modules/d3-geo/src/distance.js +10 -0
- package/node_modules/d3-geo/src/graticule.js +105 -0
- package/node_modules/d3-geo/src/identity.js +3 -0
- package/node_modules/d3-geo/src/index.js +34 -0
- package/node_modules/d3-geo/src/interpolate.js +36 -0
- package/node_modules/d3-geo/src/length.js +53 -0
- package/node_modules/d3-geo/src/math.js +35 -0
- package/node_modules/d3-geo/src/noop.js +1 -0
- package/node_modules/d3-geo/src/path/area.js +50 -0
- package/node_modules/d3-geo/src/path/bounds.js +28 -0
- package/node_modules/d3-geo/src/path/centroid.js +100 -0
- package/node_modules/d3-geo/src/path/context.js +45 -0
- package/node_modules/d3-geo/src/path/index.js +61 -0
- package/node_modules/d3-geo/src/path/measure.js +45 -0
- package/node_modules/d3-geo/src/path/string.js +59 -0
- package/node_modules/d3-geo/src/pointEqual.js +5 -0
- package/node_modules/d3-geo/src/polygonContains.js +79 -0
- package/node_modules/d3-geo/src/projection/albers.js +10 -0
- package/node_modules/d3-geo/src/projection/albersUsa.js +111 -0
- package/node_modules/d3-geo/src/projection/azimuthal.js +26 -0
- package/node_modules/d3-geo/src/projection/azimuthalEqualArea.js +17 -0
- package/node_modules/d3-geo/src/projection/azimuthalEquidistant.js +17 -0
- package/node_modules/d3-geo/src/projection/conic.js +15 -0
- package/node_modules/d3-geo/src/projection/conicConformal.js +38 -0
- package/node_modules/d3-geo/src/projection/conicEqualArea.js +33 -0
- package/node_modules/d3-geo/src/projection/conicEquidistant.js +32 -0
- package/node_modules/d3-geo/src/projection/cylindricalEqualArea.js +15 -0
- package/node_modules/d3-geo/src/projection/equalEarth.js +36 -0
- package/node_modules/d3-geo/src/projection/equirectangular.js +12 -0
- package/node_modules/d3-geo/src/projection/fit.js +47 -0
- package/node_modules/d3-geo/src/projection/gnomonic.js +16 -0
- package/node_modules/d3-geo/src/projection/identity.js +85 -0
- package/node_modules/d3-geo/src/projection/index.js +176 -0
- package/node_modules/d3-geo/src/projection/mercator.js +52 -0
- package/node_modules/d3-geo/src/projection/naturalEarth1.js +28 -0
- package/node_modules/d3-geo/src/projection/orthographic.js +15 -0
- package/node_modules/d3-geo/src/projection/resample.js +102 -0
- package/node_modules/d3-geo/src/projection/stereographic.js +18 -0
- package/node_modules/d3-geo/src/projection/transverseMercator.js +27 -0
- package/node_modules/d3-geo/src/rotation.js +76 -0
- package/node_modules/d3-geo/src/stream.js +69 -0
- package/node_modules/d3-geo/src/transform.js +26 -0
- package/node_modules/d3-hierarchy/LICENSE +27 -0
- package/node_modules/d3-hierarchy/README.md +548 -0
- package/node_modules/d3-hierarchy/dist/d3-hierarchy.js +1290 -0
- package/node_modules/d3-hierarchy/dist/d3-hierarchy.min.js +2 -0
- package/node_modules/d3-hierarchy/package.json +81 -0
- package/node_modules/d3-hierarchy/src/accessors.js +8 -0
- package/node_modules/d3-hierarchy/src/array.js +16 -0
- package/node_modules/d3-hierarchy/src/cluster.js +84 -0
- package/node_modules/d3-hierarchy/src/constant.js +9 -0
- package/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +7 -0
- package/node_modules/d3-hierarchy/src/hierarchy/count.js +12 -0
- package/node_modules/d3-hierarchy/src/hierarchy/descendants.js +7 -0
- package/node_modules/d3-hierarchy/src/hierarchy/each.js +13 -0
- package/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +13 -0
- package/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +10 -0
- package/node_modules/d3-hierarchy/src/hierarchy/index.js +79 -0
- package/node_modules/d3-hierarchy/src/hierarchy/leaves.js +9 -0
- package/node_modules/d3-hierarchy/src/hierarchy/links.js +9 -0
- package/node_modules/d3-hierarchy/src/hierarchy/path.js +30 -0
- package/node_modules/d3-hierarchy/src/hierarchy/sort.js +7 -0
- package/node_modules/d3-hierarchy/src/hierarchy/sum.js +9 -0
- package/node_modules/d3-hierarchy/src/index.js +15 -0
- package/node_modules/d3-hierarchy/src/pack/enclose.js +118 -0
- package/node_modules/d3-hierarchy/src/pack/index.js +79 -0
- package/node_modules/d3-hierarchy/src/pack/siblings.js +118 -0
- package/node_modules/d3-hierarchy/src/partition.js +52 -0
- package/node_modules/d3-hierarchy/src/stratify.js +73 -0
- package/node_modules/d3-hierarchy/src/tree.js +237 -0
- package/node_modules/d3-hierarchy/src/treemap/binary.js +46 -0
- package/node_modules/d3-hierarchy/src/treemap/dice.js +12 -0
- package/node_modules/d3-hierarchy/src/treemap/index.js +94 -0
- package/node_modules/d3-hierarchy/src/treemap/resquarify.js +36 -0
- package/node_modules/d3-hierarchy/src/treemap/round.js +6 -0
- package/node_modules/d3-hierarchy/src/treemap/slice.js +12 -0
- package/node_modules/d3-hierarchy/src/treemap/sliceDice.js +6 -0
- package/node_modules/d3-hierarchy/src/treemap/squarify.js +66 -0
- package/node_modules/d3-interpolate/LICENSE +27 -0
- package/node_modules/d3-interpolate/README.md +250 -0
- package/node_modules/d3-interpolate/dist/d3-interpolate.js +593 -0
- package/node_modules/d3-interpolate/dist/d3-interpolate.min.js +2 -0
- package/node_modules/d3-interpolate/package.json +82 -0
- package/node_modules/d3-interpolate/src/array.js +22 -0
- package/node_modules/d3-interpolate/src/basis.js +19 -0
- package/node_modules/d3-interpolate/src/basisClosed.js +13 -0
- package/node_modules/d3-interpolate/src/color.js +29 -0
- package/node_modules/d3-interpolate/src/constant.js +5 -0
- package/node_modules/d3-interpolate/src/cubehelix.js +29 -0
- package/node_modules/d3-interpolate/src/date.js +6 -0
- package/node_modules/d3-interpolate/src/discrete.js +6 -0
- package/node_modules/d3-interpolate/src/hcl.js +21 -0
- package/node_modules/d3-interpolate/src/hsl.js +21 -0
- package/node_modules/d3-interpolate/src/hue.js +9 -0
- package/node_modules/d3-interpolate/src/index.js +21 -0
- package/node_modules/d3-interpolate/src/lab.js +16 -0
- package/node_modules/d3-interpolate/src/number.js +5 -0
- package/node_modules/d3-interpolate/src/numberArray.js +14 -0
- package/node_modules/d3-interpolate/src/object.js +23 -0
- package/node_modules/d3-interpolate/src/piecewise.js +8 -0
- package/node_modules/d3-interpolate/src/quantize.js +5 -0
- package/node_modules/d3-interpolate/src/rgb.js +55 -0
- package/node_modules/d3-interpolate/src/round.js +5 -0
- package/node_modules/d3-interpolate/src/string.js +64 -0
- package/node_modules/d3-interpolate/src/transform/decompose.js +26 -0
- package/node_modules/d3-interpolate/src/transform/index.js +63 -0
- package/node_modules/d3-interpolate/src/transform/parse.js +25 -0
- package/node_modules/d3-interpolate/src/value.js +22 -0
- package/node_modules/d3-interpolate/src/zoom.js +64 -0
- package/node_modules/d3-path/LICENSE +27 -0
- package/node_modules/d3-path/README.md +78 -0
- package/node_modules/d3-path/dist/d3-path.js +141 -0
- package/node_modules/d3-path/dist/d3-path.min.js +2 -0
- package/node_modules/d3-path/package.json +80 -0
- package/node_modules/d3-path/src/index.js +1 -0
- package/node_modules/d3-path/src/path.js +130 -0
- package/node_modules/d3-polygon/LICENSE +27 -0
- package/node_modules/d3-polygon/README.md +40 -0
- package/node_modules/d3-polygon/dist/d3-polygon.js +150 -0
- package/node_modules/d3-polygon/dist/d3-polygon.min.js +2 -0
- package/node_modules/d3-polygon/package.json +75 -0
- package/node_modules/d3-polygon/src/area.js +15 -0
- package/node_modules/d3-polygon/src/centroid.js +20 -0
- package/node_modules/d3-polygon/src/contains.js +16 -0
- package/node_modules/d3-polygon/src/cross.js +7 -0
- package/node_modules/d3-polygon/src/hull.js +49 -0
- package/node_modules/d3-polygon/src/index.js +5 -0
- package/node_modules/d3-polygon/src/length.js +23 -0
- package/node_modules/d3-quadtree/LICENSE +27 -0
- package/node_modules/d3-quadtree/README.md +163 -0
- package/node_modules/d3-quadtree/dist/d3-quadtree.js +419 -0
- package/node_modules/d3-quadtree/dist/d3-quadtree.min.js +2 -0
- package/node_modules/d3-quadtree/package.json +74 -0
- package/node_modules/d3-quadtree/src/add.js +84 -0
- package/node_modules/d3-quadtree/src/cover.js +43 -0
- package/node_modules/d3-quadtree/src/data.js +7 -0
- package/node_modules/d3-quadtree/src/extent.js +5 -0
- package/node_modules/d3-quadtree/src/find.js +70 -0
- package/node_modules/d3-quadtree/src/index.js +1 -0
- package/node_modules/d3-quadtree/src/quad.js +7 -0
- package/node_modules/d3-quadtree/src/quadtree.js +73 -0
- package/node_modules/d3-quadtree/src/remove.js +62 -0
- package/node_modules/d3-quadtree/src/root.js +3 -0
- package/node_modules/d3-quadtree/src/size.js +7 -0
- package/node_modules/d3-quadtree/src/visit.js +16 -0
- package/node_modules/d3-quadtree/src/visitAfter.js +21 -0
- package/node_modules/d3-quadtree/src/x.js +7 -0
- package/node_modules/d3-quadtree/src/y.js +7 -0
- package/node_modules/d3-random/.eslintrc.json +15 -0
- package/node_modules/d3-random/LICENSE +27 -0
- package/node_modules/d3-random/README.md +63 -0
- package/node_modules/d3-random/dist/d3-random.js +115 -0
- package/node_modules/d3-random/dist/d3-random.min.js +2 -0
- package/node_modules/d3-random/package.json +70 -0
- package/node_modules/d3-random/rollup.config.js +36 -0
- package/node_modules/d3-random/src/bates.js +15 -0
- package/node_modules/d3-random/src/defaultSource.js +3 -0
- package/node_modules/d3-random/src/exponential.js +13 -0
- package/node_modules/d3-random/src/index.js +6 -0
- package/node_modules/d3-random/src/irwinHall.js +14 -0
- package/node_modules/d3-random/src/logNormal.js +15 -0
- package/node_modules/d3-random/src/normal.js +28 -0
- package/node_modules/d3-random/src/uniform.js +17 -0
- package/node_modules/d3-random/yarn.lock +943 -0
- package/node_modules/d3-scale/.eslintrc.json +15 -0
- package/node_modules/d3-scale/LICENSE +27 -0
- package/node_modules/d3-scale/README.md +952 -0
- package/node_modules/d3-scale/dist/d3-scale.js +1165 -0
- package/node_modules/d3-scale/dist/d3-scale.min.js +2 -0
- package/node_modules/d3-scale/package.json +77 -0
- package/node_modules/d3-scale/rollup.config.js +36 -0
- package/node_modules/d3-scale/src/array.js +4 -0
- package/node_modules/d3-scale/src/band.js +100 -0
- package/node_modules/d3-scale/src/colors.js +5 -0
- package/node_modules/d3-scale/src/constant.js +5 -0
- package/node_modules/d3-scale/src/continuous.js +124 -0
- package/node_modules/d3-scale/src/diverging.js +91 -0
- package/node_modules/d3-scale/src/identity.js +29 -0
- package/node_modules/d3-scale/src/index.js +74 -0
- package/node_modules/d3-scale/src/init.js +17 -0
- package/node_modules/d3-scale/src/linear.js +72 -0
- package/node_modules/d3-scale/src/log.js +145 -0
- package/node_modules/d3-scale/src/nice.js +18 -0
- package/node_modules/d3-scale/src/number.js +3 -0
- package/node_modules/d3-scale/src/ordinal.js +45 -0
- package/node_modules/d3-scale/src/pow.js +50 -0
- package/node_modules/d3-scale/src/quantile.js +58 -0
- package/node_modules/d3-scale/src/quantize.js +57 -0
- package/node_modules/d3-scale/src/sequential.js +95 -0
- package/node_modules/d3-scale/src/sequentialQuantile.js +30 -0
- package/node_modules/d3-scale/src/symlog.js +35 -0
- package/node_modules/d3-scale/src/threshold.js +40 -0
- package/node_modules/d3-scale/src/tickFormat.js +29 -0
- package/node_modules/d3-scale/src/time.js +135 -0
- package/node_modules/d3-scale/src/utcTime.js +8 -0
- package/node_modules/d3-scale/yarn.lock +967 -0
- package/node_modules/d3-scale-chromatic/LICENSE +44 -0
- package/node_modules/d3-scale-chromatic/README.md +386 -0
- package/node_modules/d3-scale-chromatic/dist/d3-scale-chromatic.js +521 -0
- package/node_modules/d3-scale-chromatic/dist/d3-scale-chromatic.min.js +2 -0
- package/node_modules/d3-scale-chromatic/package.json +79 -0
- package/node_modules/d3-scale-chromatic/src/categorical/Accent.js +3 -0
- package/node_modules/d3-scale-chromatic/src/categorical/Dark2.js +3 -0
- package/node_modules/d3-scale-chromatic/src/categorical/Paired.js +3 -0
- package/node_modules/d3-scale-chromatic/src/categorical/Pastel1.js +3 -0
- package/node_modules/d3-scale-chromatic/src/categorical/Pastel2.js +3 -0
- package/node_modules/d3-scale-chromatic/src/categorical/Set1.js +3 -0
- package/node_modules/d3-scale-chromatic/src/categorical/Set2.js +3 -0
- package/node_modules/d3-scale-chromatic/src/categorical/Set3.js +3 -0
- package/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +3 -0
- package/node_modules/d3-scale-chromatic/src/categorical/category10.js +3 -0
- package/node_modules/d3-scale-chromatic/src/colors.js +5 -0
- package/node_modules/d3-scale-chromatic/src/diverging/BrBG.js +16 -0
- package/node_modules/d3-scale-chromatic/src/diverging/PRGn.js +16 -0
- package/node_modules/d3-scale-chromatic/src/diverging/PiYG.js +16 -0
- package/node_modules/d3-scale-chromatic/src/diverging/PuOr.js +16 -0
- package/node_modules/d3-scale-chromatic/src/diverging/RdBu.js +16 -0
- package/node_modules/d3-scale-chromatic/src/diverging/RdGy.js +16 -0
- package/node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js +16 -0
- package/node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js +16 -0
- package/node_modules/d3-scale-chromatic/src/diverging/Spectral.js +16 -0
- package/node_modules/d3-scale-chromatic/src/index.js +43 -0
- package/node_modules/d3-scale-chromatic/src/ramp.js +5 -0
- package/node_modules/d3-scale-chromatic/src/rampClosed.js +9 -0
- package/node_modules/d3-scale-chromatic/src/scheme.js +11 -0
- package/node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js +14 -0
- package/node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js +14 -0
- package/node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js +14 -0
- package/node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js +14 -0
- package/node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js +14 -0
- package/node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js +14 -0
- package/node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js +14 -0
- package/node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js +14 -0
- package/node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js +14 -0
- package/node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js +14 -0
- package/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js +14 -0
- package/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js +14 -0
- package/node_modules/d3-scale-chromatic/src/sequential-multi/cividis.js +8 -0
- package/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js +4 -0
- package/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js +17 -0
- package/node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js +14 -0
- package/node_modules/d3-scale-chromatic/src/sequential-multi/turbo.js +8 -0
- package/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js +16 -0
- package/node_modules/d3-scale-chromatic/src/sequential-single/Blues.js +14 -0
- package/node_modules/d3-scale-chromatic/src/sequential-single/Greens.js +14 -0
- package/node_modules/d3-scale-chromatic/src/sequential-single/Greys.js +14 -0
- package/node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js +14 -0
- package/node_modules/d3-scale-chromatic/src/sequential-single/Purples.js +14 -0
- package/node_modules/d3-scale-chromatic/src/sequential-single/Reds.js +14 -0
- package/node_modules/d3-selection/LICENSE +26 -0
- package/node_modules/d3-selection/README.md +829 -0
- package/node_modules/d3-selection/dist/d3-selection.js +989 -0
- package/node_modules/d3-selection/dist/d3-selection.min.js +2 -0
- package/node_modules/d3-selection/package.json +79 -0
- package/node_modules/d3-selection/src/constant.js +5 -0
- package/node_modules/d3-selection/src/create.js +6 -0
- package/node_modules/d3-selection/src/creator.js +25 -0
- package/node_modules/d3-selection/src/identity.js +3 -0
- package/node_modules/d3-selection/src/index.js +18 -0
- package/node_modules/d3-selection/src/local.js +27 -0
- package/node_modules/d3-selection/src/matcher.js +5 -0
- package/node_modules/d3-selection/src/mouse.js +8 -0
- package/node_modules/d3-selection/src/namespace.js +7 -0
- package/node_modules/d3-selection/src/namespaces.js +9 -0
- package/node_modules/d3-selection/src/point.js +13 -0
- package/node_modules/d3-selection/src/select.js +7 -0
- package/node_modules/d3-selection/src/selectAll.js +7 -0
- package/node_modules/d3-selection/src/selection/append.js +8 -0
- package/node_modules/d3-selection/src/selection/attr.js +57 -0
- package/node_modules/d3-selection/src/selection/call.js +6 -0
- package/node_modules/d3-selection/src/selection/classed.js +75 -0
- package/node_modules/d3-selection/src/selection/clone.js +13 -0
- package/node_modules/d3-selection/src/selection/data.js +118 -0
- package/node_modules/d3-selection/src/selection/datum.js +5 -0
- package/node_modules/d3-selection/src/selection/dispatch.js +34 -0
- package/node_modules/d3-selection/src/selection/each.js +10 -0
- package/node_modules/d3-selection/src/selection/empty.js +3 -0
- package/node_modules/d3-selection/src/selection/enter.js +22 -0
- package/node_modules/d3-selection/src/selection/exit.js +6 -0
- package/node_modules/d3-selection/src/selection/filter.js +16 -0
- package/node_modules/d3-selection/src/selection/html.js +25 -0
- package/node_modules/d3-selection/src/selection/index.js +79 -0
- package/node_modules/d3-selection/src/selection/insert.js +14 -0
- package/node_modules/d3-selection/src/selection/join.js +7 -0
- package/node_modules/d3-selection/src/selection/lower.js +7 -0
- package/node_modules/d3-selection/src/selection/merge.js +18 -0
- package/node_modules/d3-selection/src/selection/node.js +11 -0
- package/node_modules/d3-selection/src/selection/nodes.js +5 -0
- package/node_modules/d3-selection/src/selection/on.js +107 -0
- package/node_modules/d3-selection/src/selection/order.js +13 -0
- package/node_modules/d3-selection/src/selection/property.js +28 -0
- package/node_modules/d3-selection/src/selection/raise.js +7 -0
- package/node_modules/d3-selection/src/selection/remove.js +8 -0
- package/node_modules/d3-selection/src/selection/select.js +17 -0
- package/node_modules/d3-selection/src/selection/selectAll.js +17 -0
- package/node_modules/d3-selection/src/selection/size.js +5 -0
- package/node_modules/d3-selection/src/selection/sort.js +24 -0
- package/node_modules/d3-selection/src/selection/sparse.js +3 -0
- package/node_modules/d3-selection/src/selection/style.js +35 -0
- package/node_modules/d3-selection/src/selection/text.js +25 -0
- package/node_modules/d3-selection/src/selector.js +7 -0
- package/node_modules/d3-selection/src/selectorAll.js +9 -0
- package/node_modules/d3-selection/src/sourceEvent.js +7 -0
- package/node_modules/d3-selection/src/touch.js +14 -0
- package/node_modules/d3-selection/src/touches.js +12 -0
- package/node_modules/d3-selection/src/window.js +5 -0
- package/node_modules/d3-shape/LICENSE +27 -0
- package/node_modules/d3-shape/README.md +1149 -0
- package/node_modules/d3-shape/dist/d3-shape.js +1949 -0
- package/node_modules/d3-shape/dist/d3-shape.min.js +2 -0
- package/node_modules/d3-shape/package.json +79 -0
- package/node_modules/d3-shape/src/arc.js +261 -0
- package/node_modules/d3-shape/src/area.js +109 -0
- package/node_modules/d3-shape/src/areaRadial.js +29 -0
- package/node_modules/d3-shape/src/array.js +1 -0
- package/node_modules/d3-shape/src/constant.js +5 -0
- package/node_modules/d3-shape/src/curve/basis.js +51 -0
- package/node_modules/d3-shape/src/curve/basisClosed.js +52 -0
- package/node_modules/d3-shape/src/curve/basisOpen.js +39 -0
- package/node_modules/d3-shape/src/curve/bundle.js +56 -0
- package/node_modules/d3-shape/src/curve/cardinal.js +61 -0
- package/node_modules/d3-shape/src/curve/cardinalClosed.js +61 -0
- package/node_modules/d3-shape/src/curve/cardinalOpen.js +49 -0
- package/node_modules/d3-shape/src/curve/catmullRom.js +88 -0
- package/node_modules/d3-shape/src/curve/catmullRomClosed.js +74 -0
- package/node_modules/d3-shape/src/curve/catmullRomOpen.js +62 -0
- package/node_modules/d3-shape/src/curve/linear.js +31 -0
- package/node_modules/d3-shape/src/curve/linearClosed.js +25 -0
- package/node_modules/d3-shape/src/curve/monotone.js +104 -0
- package/node_modules/d3-shape/src/curve/natural.js +65 -0
- package/node_modules/d3-shape/src/curve/radial.js +36 -0
- package/node_modules/d3-shape/src/curve/step.js +53 -0
- package/node_modules/d3-shape/src/descending.js +3 -0
- package/node_modules/d3-shape/src/identity.js +3 -0
- package/node_modules/d3-shape/src/index.js +46 -0
- package/node_modules/d3-shape/src/line.js +55 -0
- package/node_modules/d3-shape/src/lineRadial.js +19 -0
- package/node_modules/d3-shape/src/link/index.js +84 -0
- package/node_modules/d3-shape/src/math.js +20 -0
- package/node_modules/d3-shape/src/noop.js +1 -0
- package/node_modules/d3-shape/src/offset/diverging.js +14 -0
- package/node_modules/d3-shape/src/offset/expand.js +10 -0
- package/node_modules/d3-shape/src/offset/none.js +9 -0
- package/node_modules/d3-shape/src/offset/silhouette.js +10 -0
- package/node_modules/d3-shape/src/offset/wiggle.js +24 -0
- package/node_modules/d3-shape/src/order/appearance.js +12 -0
- package/node_modules/d3-shape/src/order/ascending.js +12 -0
- package/node_modules/d3-shape/src/order/descending.js +5 -0
- package/node_modules/d3-shape/src/order/insideOut.js +27 -0
- package/node_modules/d3-shape/src/order/none.js +5 -0
- package/node_modules/d3-shape/src/order/reverse.js +5 -0
- package/node_modules/d3-shape/src/pie.js +79 -0
- package/node_modules/d3-shape/src/point.js +7 -0
- package/node_modules/d3-shape/src/pointRadial.js +3 -0
- package/node_modules/d3-shape/src/stack.js +57 -0
- package/node_modules/d3-shape/src/symbol/circle.js +9 -0
- package/node_modules/d3-shape/src/symbol/cross.js +18 -0
- package/node_modules/d3-shape/src/symbol/diamond.js +14 -0
- package/node_modules/d3-shape/src/symbol/square.js +7 -0
- package/node_modules/d3-shape/src/symbol/star.js +24 -0
- package/node_modules/d3-shape/src/symbol/triangle.js +11 -0
- package/node_modules/d3-shape/src/symbol/wye.js +26 -0
- package/node_modules/d3-shape/src/symbol.js +46 -0
- package/node_modules/d3-time/LICENSE +27 -0
- package/node_modules/d3-time/README.md +333 -0
- package/node_modules/d3-time/dist/d3-time.js +373 -0
- package/node_modules/d3-time/dist/d3-time.min.js +2 -0
- package/node_modules/d3-time/package.json +76 -0
- package/node_modules/d3-time/src/day.js +15 -0
- package/node_modules/d3-time/src/duration.js +5 -0
- package/node_modules/d3-time/src/hour.js +15 -0
- package/node_modules/d3-time/src/index.js +105 -0
- package/node_modules/d3-time/src/interval.js +70 -0
- package/node_modules/d3-time/src/millisecond.js +26 -0
- package/node_modules/d3-time/src/minute.js +15 -0
- package/node_modules/d3-time/src/month.js +15 -0
- package/node_modules/d3-time/src/second.js +15 -0
- package/node_modules/d3-time/src/utcDay.js +15 -0
- package/node_modules/d3-time/src/utcHour.js +15 -0
- package/node_modules/d3-time/src/utcMinute.js +15 -0
- package/node_modules/d3-time/src/utcMonth.js +15 -0
- package/node_modules/d3-time/src/utcWeek.js +29 -0
- package/node_modules/d3-time/src/utcYear.js +26 -0
- package/node_modules/d3-time/src/week.js +29 -0
- package/node_modules/d3-time/src/year.js +26 -0
- package/node_modules/d3-time-format/LICENSE +27 -0
- package/node_modules/d3-time-format/README.md +199 -0
- package/node_modules/d3-time-format/dist/d3-time-format.js +743 -0
- package/node_modules/d3-time-format/dist/d3-time-format.min.js +2 -0
- package/node_modules/d3-time-format/locale/ar-EG.json +10 -0
- package/node_modules/d3-time-format/locale/ca-ES.json +10 -0
- package/node_modules/d3-time-format/locale/cs-CZ.json +10 -0
- package/node_modules/d3-time-format/locale/da-DK.json +10 -0
- package/node_modules/d3-time-format/locale/de-CH.json +10 -0
- package/node_modules/d3-time-format/locale/de-DE.json +10 -0
- package/node_modules/d3-time-format/locale/en-CA.json +10 -0
- package/node_modules/d3-time-format/locale/en-GB.json +10 -0
- package/node_modules/d3-time-format/locale/en-US.json +10 -0
- package/node_modules/d3-time-format/locale/es-ES.json +10 -0
- package/node_modules/d3-time-format/locale/es-MX.json +10 -0
- package/node_modules/d3-time-format/locale/fa-IR.json +10 -0
- package/node_modules/d3-time-format/locale/fi-FI.json +10 -0
- package/node_modules/d3-time-format/locale/fr-CA.json +10 -0
- package/node_modules/d3-time-format/locale/fr-FR.json +10 -0
- package/node_modules/d3-time-format/locale/he-IL.json +10 -0
- package/node_modules/d3-time-format/locale/hu-HU.json +10 -0
- package/node_modules/d3-time-format/locale/it-IT.json +10 -0
- package/node_modules/d3-time-format/locale/ja-JP.json +10 -0
- package/node_modules/d3-time-format/locale/ko-KR.json +10 -0
- package/node_modules/d3-time-format/locale/mk-MK.json +10 -0
- package/node_modules/d3-time-format/locale/nb-NO.json +10 -0
- package/node_modules/d3-time-format/locale/nl-NL.json +10 -0
- package/node_modules/d3-time-format/locale/pl-PL.json +10 -0
- package/node_modules/d3-time-format/locale/pt-BR.json +10 -0
- package/node_modules/d3-time-format/locale/ru-RU.json +10 -0
- package/node_modules/d3-time-format/locale/sv-SE.json +10 -0
- package/node_modules/d3-time-format/locale/tr-TR.json +10 -0
- package/node_modules/d3-time-format/locale/uk-UA.json +10 -0
- package/node_modules/d3-time-format/locale/zh-CN.json +10 -0
- package/node_modules/d3-time-format/locale/zh-TW.json +10 -0
- package/node_modules/d3-time-format/package.json +83 -0
- package/node_modules/d3-time-format/src/defaultLocale.js +27 -0
- package/node_modules/d3-time-format/src/index.js +4 -0
- package/node_modules/d3-time-format/src/isoFormat.js +13 -0
- package/node_modules/d3-time-format/src/isoParse.js +13 -0
- package/node_modules/d3-time-format/src/locale.js +699 -0
- package/node_modules/d3-timer/LICENSE +27 -0
- package/node_modules/d3-timer/README.md +75 -0
- package/node_modules/d3-timer/dist/d3-timer.js +149 -0
- package/node_modules/d3-timer/dist/d3-timer.min.js +2 -0
- package/node_modules/d3-timer/package.json +79 -0
- package/node_modules/d3-timer/src/index.js +13 -0
- package/node_modules/d3-timer/src/interval.js +13 -0
- package/node_modules/d3-timer/src/timeout.js +11 -0
- package/node_modules/d3-timer/src/timer.js +110 -0
- package/node_modules/d3-transition/LICENSE +58 -0
- package/node_modules/d3-transition/README.md +448 -0
- package/node_modules/d3-transition/dist/d3-transition.js +880 -0
- package/node_modules/d3-transition/dist/d3-transition.min.js +2 -0
- package/node_modules/d3-transition/package.json +85 -0
- package/node_modules/d3-transition/src/active.js +21 -0
- package/node_modules/d3-transition/src/index.js +4 -0
- package/node_modules/d3-transition/src/interrupt.js +24 -0
- package/node_modules/d3-transition/src/selection/index.js +6 -0
- package/node_modules/d3-transition/src/selection/interrupt.js +7 -0
- package/node_modules/d3-transition/src/selection/transition.js +42 -0
- package/node_modules/d3-transition/src/transition/attr.js +78 -0
- package/node_modules/d3-transition/src/transition/attrTween.js +44 -0
- package/node_modules/d3-transition/src/transition/delay.js +23 -0
- package/node_modules/d3-transition/src/transition/duration.js +23 -0
- package/node_modules/d3-transition/src/transition/ease.js +16 -0
- package/node_modules/d3-transition/src/transition/end.js +26 -0
- package/node_modules/d3-transition/src/transition/filter.js +16 -0
- package/node_modules/d3-transition/src/transition/index.js +68 -0
- package/node_modules/d3-transition/src/transition/interpolate.js +10 -0
- package/node_modules/d3-transition/src/transition/merge.js +19 -0
- package/node_modules/d3-transition/src/transition/on.js +32 -0
- package/node_modules/d3-transition/src/transition/remove.js +11 -0
- package/node_modules/d3-transition/src/transition/schedule.js +153 -0
- package/node_modules/d3-transition/src/transition/select.js +22 -0
- package/node_modules/d3-transition/src/transition/selectAll.js +26 -0
- package/node_modules/d3-transition/src/transition/selection.js +7 -0
- package/node_modules/d3-transition/src/transition/style.js +80 -0
- package/node_modules/d3-transition/src/transition/styleTween.js +24 -0
- package/node_modules/d3-transition/src/transition/text.js +20 -0
- package/node_modules/d3-transition/src/transition/textTween.js +24 -0
- package/node_modules/d3-transition/src/transition/transition.js +24 -0
- package/node_modules/d3-transition/src/transition/tween.js +81 -0
- package/node_modules/d3-voronoi/.eslintrc.json +16 -0
- package/node_modules/d3-voronoi/LICENSE +50 -0
- package/node_modules/d3-voronoi/README.md +164 -0
- package/node_modules/d3-voronoi/dist/d3-voronoi.js +999 -0
- package/node_modules/d3-voronoi/dist/d3-voronoi.min.js +2 -0
- package/node_modules/d3-voronoi/package.json +68 -0
- package/node_modules/d3-voronoi/rollup.config.js +36 -0
- package/node_modules/d3-voronoi/src/Beach.js +193 -0
- package/node_modules/d3-voronoi/src/Cell.js +126 -0
- package/node_modules/d3-voronoi/src/Circle.js +78 -0
- package/node_modules/d3-voronoi/src/Diagram.js +142 -0
- package/node_modules/d3-voronoi/src/Edge.js +168 -0
- package/node_modules/d3-voronoi/src/RedBlackTree.js +237 -0
- package/node_modules/d3-voronoi/src/constant.js +5 -0
- package/node_modules/d3-voronoi/src/index.js +1 -0
- package/node_modules/d3-voronoi/src/point.js +7 -0
- package/node_modules/d3-voronoi/src/voronoi.js +48 -0
- package/node_modules/d3-voronoi/yarn.lock +935 -0
- package/node_modules/d3-zoom/LICENSE +27 -0
- package/node_modules/d3-zoom/README.md +398 -0
- package/node_modules/d3-zoom/dist/d3-zoom.js +497 -0
- package/node_modules/d3-zoom/dist/d3-zoom.min.js +2 -0
- package/node_modules/d3-zoom/package.json +80 -0
- package/node_modules/d3-zoom/src/constant.js +5 -0
- package/node_modules/d3-zoom/src/event.js +5 -0
- package/node_modules/d3-zoom/src/index.js +2 -0
- package/node_modules/d3-zoom/src/noevent.js +10 -0
- package/node_modules/d3-zoom/src/transform.js +51 -0
- package/node_modules/d3-zoom/src/zoom.js +419 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +113 -0
- package/node_modules/debug/src/browser.js +269 -0
- package/node_modules/debug/src/common.js +274 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/decompress-response/index.d.ts +29 -0
- package/node_modules/decompress-response/index.js +40 -0
- package/node_modules/decompress-response/license +9 -0
- package/node_modules/decompress-response/package.json +85 -0
- package/node_modules/decompress-response/readme.md +52 -0
- package/node_modules/delayed-stream/.npmignore +1 -0
- package/node_modules/delayed-stream/License +19 -0
- package/node_modules/delayed-stream/Makefile +7 -0
- package/node_modules/delayed-stream/Readme.md +141 -0
- package/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/node_modules/delayed-stream/package.json +65 -0
- package/node_modules/delegates/.npmignore +1 -0
- package/node_modules/delegates/History.md +22 -0
- package/node_modules/delegates/License +20 -0
- package/node_modules/delegates/Makefile +8 -0
- package/node_modules/delegates/Readme.md +94 -0
- package/node_modules/delegates/index.js +121 -0
- package/node_modules/delegates/package.json +51 -0
- package/node_modules/delegates/test/index.js +94 -0
- package/node_modules/detect-libc/LICENSE +201 -0
- package/node_modules/detect-libc/README.md +160 -0
- package/node_modules/detect-libc/index.d.ts +11 -0
- package/node_modules/detect-libc/lib/detect-libc.js +178 -0
- package/node_modules/detect-libc/lib/process.js +16 -0
- package/node_modules/detect-libc/package.json +74 -0
- package/node_modules/dirname-shim/LICENSE +20 -0
- package/node_modules/dirname-shim/README.md +11 -0
- package/node_modules/dirname-shim/package.json +62 -0
- package/node_modules/dirname-shim/shim.js +110 -0
- package/node_modules/dotenv/CHANGELOG.md +356 -0
- package/node_modules/dotenv/LICENSE +23 -0
- package/node_modules/dotenv/README.md +408 -0
- package/node_modules/dotenv/config.d.ts +1 -0
- package/node_modules/dotenv/config.js +9 -0
- package/node_modules/dotenv/lib/cli-options.js +11 -0
- package/node_modules/dotenv/lib/env-options.js +20 -0
- package/node_modules/dotenv/lib/main.d.ts +73 -0
- package/node_modules/dotenv/lib/main.js +109 -0
- package/node_modules/dotenv/package.json +87 -0
- package/node_modules/duplexer/.travis.yml +6 -0
- package/node_modules/duplexer/LICENCE +19 -0
- package/node_modules/duplexer/README.md +49 -0
- package/node_modules/duplexer/index.js +87 -0
- package/node_modules/duplexer/package.json +77 -0
- package/node_modules/duplexer/test/index.js +31 -0
- package/node_modules/duplexify/.travis.yml +6 -0
- package/node_modules/duplexify/LICENSE +21 -0
- package/node_modules/duplexify/README.md +97 -0
- package/node_modules/duplexify/example.js +21 -0
- package/node_modules/duplexify/index.js +234 -0
- package/node_modules/duplexify/package.json +69 -0
- package/node_modules/duplexify/test.js +295 -0
- package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/node_modules/emoji-regex/README.md +73 -0
- package/node_modules/emoji-regex/es2015/index.js +6 -0
- package/node_modules/emoji-regex/es2015/text.js +6 -0
- package/node_modules/emoji-regex/index.d.ts +23 -0
- package/node_modules/emoji-regex/index.js +6 -0
- package/node_modules/emoji-regex/package.json +80 -0
- package/node_modules/emoji-regex/text.js +6 -0
- package/node_modules/end-of-stream/LICENSE +21 -0
- package/node_modules/end-of-stream/README.md +54 -0
- package/node_modules/end-of-stream/index.js +94 -0
- package/node_modules/end-of-stream/package.json +69 -0
- package/node_modules/escalade/dist/index.js +22 -0
- package/node_modules/escalade/dist/index.mjs +22 -0
- package/node_modules/escalade/index.d.ts +3 -0
- package/node_modules/escalade/license +9 -0
- package/node_modules/escalade/package.json +96 -0
- package/node_modules/escalade/readme.md +211 -0
- package/node_modules/escalade/sync/index.d.ts +2 -0
- package/node_modules/escalade/sync/index.js +18 -0
- package/node_modules/escalade/sync/index.mjs +18 -0
- package/node_modules/extended-emitter/.travis.yml +6 -0
- package/node_modules/extended-emitter/LICENSE +20 -0
- package/node_modules/extended-emitter/README.md +65 -0
- package/node_modules/extended-emitter/extended-emitter.js +115 -0
- package/node_modules/extended-emitter/package.json +67 -0
- package/node_modules/extended-emitter/test.js +156 -0
- package/node_modules/fast-safe-stringify/.travis.yml +8 -0
- package/node_modules/fast-safe-stringify/CHANGELOG.md +17 -0
- package/node_modules/fast-safe-stringify/LICENSE +23 -0
- package/node_modules/fast-safe-stringify/benchmark.js +137 -0
- package/node_modules/fast-safe-stringify/index.d.ts +23 -0
- package/node_modules/fast-safe-stringify/index.js +229 -0
- package/node_modules/fast-safe-stringify/package.json +90 -0
- package/node_modules/fast-safe-stringify/readme.md +170 -0
- package/node_modules/fast-safe-stringify/test-stable.js +404 -0
- package/node_modules/fast-safe-stringify/test.js +397 -0
- package/node_modules/fast-stable-stringify/.npmignore +4 -0
- package/node_modules/fast-stable-stringify/.travis.yml +10 -0
- package/node_modules/fast-stable-stringify/LICENSE +21 -0
- package/node_modules/fast-stable-stringify/README.md +81 -0
- package/node_modules/fast-stable-stringify/cli/files-to-comparison-results.js +67 -0
- package/node_modules/fast-stable-stringify/cli/format-table.js +70 -0
- package/node_modules/fast-stable-stringify/cli/index.js +19 -0
- package/node_modules/fast-stable-stringify/fixtures/index.js +5 -0
- package/node_modules/fast-stable-stringify/fixtures/input-data-types.js +191 -0
- package/node_modules/fast-stable-stringify/fixtures/log-result.json +22 -0
- package/node_modules/fast-stable-stringify/fixtures/log.txt +24 -0
- package/node_modules/fast-stable-stringify/index.js +73 -0
- package/node_modules/fast-stable-stringify/karma.conf.js +124 -0
- package/node_modules/fast-stable-stringify/karma.conf.travis.js +95 -0
- package/node_modules/fast-stable-stringify/package.json +77 -0
- package/node_modules/fast-stable-stringify/results/escape-long/Chrome 60.0.3112 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-long/Chrome Mobile 55.0.2883 (Android 6.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-long/Edge 14.14393.0 (Windows 10 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-long/Firefox 54.0.0 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-long/IE 10.0.0 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-long/IE 11.0.0 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-long/IE 9.0.0 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-long/Mobile Safari 10.0.0 (iOS 10.3.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-long/Safari 10.0.1 (Mac OS X 10.12.1).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-short/Chrome 60.0.3112 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-short/Chrome Mobile 55.0.2883 (Android 6.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-short/Edge 14.14393.0 (Windows 10 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-short/Firefox 54.0.0 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-short/IE 10.0.0 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-short/IE 11.0.0 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-short/IE 9.0.0 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-short/Mobile Safari 10.0.0 (iOS 10.3.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-short/Safari 10.0.1 (Mac OS X 10.12.1).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape.md +20 -0
- package/node_modules/fast-stable-stringify/results/itar-long/Chrome 60.0.3112 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-long/Chrome Mobile 55.0.2883 (Android 6.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-long/Edge 14.14393.0 (Windows 10 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-long/Firefox 54.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-long/IE 10.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-long/IE 11.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-long/IE 9.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-long/Mobile Safari 10.0.0 (iOS 10.3.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-long/Safari 10.0.1 (Mac OS X 10.12.1).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-short/Chrome 60.0.3112 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-short/Chrome Mobile 55.0.2883 (Android 6.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-short/Edge 14.14393.0 (Windows 10 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-short/Firefox 54.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-short/IE 10.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-short/IE 11.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-short/IE 9.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-short/Mobile Safari 10.0.0 (iOS 10.3.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-short/Safari 10.0.1 (Mac OS X 10.12.1).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar.md +20 -0
- package/node_modules/fast-stable-stringify/results/iter/Chrome 60.0.3112 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/Chrome Mobile 39.0.0 (Android 5.1.1).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/Chrome Mobile 55.0.2883 (Android 6.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/Edge 14.14393.0 (Windows 10 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/Firefox 54.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/IE 10.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/IE 11.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/IE 9.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/Mobile Safari 10.0.0 (iOS 10.3.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/Mobile Safari 9.0.0 (iOS 9.2.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/Safari 10.0.1 (Mac OS X 10.12.1).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/Safari 9.1.2 (Mac OS X 10.11.6).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter.md +14 -0
- package/node_modules/fast-stable-stringify/results/libs/Chrome 60.0.3112 (Windows 7 0.0.0).json +46 -0
- package/node_modules/fast-stable-stringify/results/libs/Chrome Mobile 55.0.2883 (Android 6.0.0).json +46 -0
- package/node_modules/fast-stable-stringify/results/libs/Edge 14.14393.0 (Windows 10 0.0.0).json +46 -0
- package/node_modules/fast-stable-stringify/results/libs/Firefox 54.0.0 (Windows 7 0.0.0).json +46 -0
- package/node_modules/fast-stable-stringify/results/libs/IE 10.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/libs/IE 11.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/libs/IE 9.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/libs/Mobile Safari 10.0.0 (iOS 10.3.0).json +46 -0
- package/node_modules/fast-stable-stringify/results/libs/Safari 10.0.1 (Mac OS X 10.12.1).json +46 -0
- package/node_modules/fast-stable-stringify/results/libs.md +15 -0
- package/node_modules/fast-stable-stringify/test/escape-long.js +147 -0
- package/node_modules/fast-stable-stringify/test/escape-short.js +147 -0
- package/node_modules/fast-stable-stringify/test/index.js +6 -0
- package/node_modules/fast-stable-stringify/test/itar-long.js +52 -0
- package/node_modules/fast-stable-stringify/test/itar-short.js +52 -0
- package/node_modules/fast-stable-stringify/test/iter.js +84 -0
- package/node_modules/fast-stable-stringify/test/libs.js +57 -0
- package/node_modules/fast-stable-stringify/test/travis.js +43 -0
- package/node_modules/fast-stable-stringify/test/validate.js +24 -0
- package/node_modules/fast-stable-stringify/util/eachRecursive.js +9 -0
- package/node_modules/fast-stable-stringify/util/get-git-hash-sync.js +21 -0
- package/node_modules/fast-stable-stringify/util/get-lib-info.js +22 -0
- package/node_modules/fast-stable-stringify/util/object-path.js +47 -0
- package/node_modules/fast-stable-stringify/v8-profile/bench.js +8 -0
- package/node_modules/fast-stable-stringify/v8-profile/run.sh +2 -0
- package/node_modules/fast-stable-stringify/zuul-local.sh +2 -0
- package/node_modules/fill-range/LICENSE +21 -0
- package/node_modules/fill-range/README.md +237 -0
- package/node_modules/fill-range/index.js +249 -0
- package/node_modules/fill-range/package.json +117 -0
- package/node_modules/follow-redirects/LICENSE +18 -0
- package/node_modules/follow-redirects/README.md +155 -0
- package/node_modules/follow-redirects/debug.js +15 -0
- package/node_modules/follow-redirects/http.js +1 -0
- package/node_modules/follow-redirects/https.js +1 -0
- package/node_modules/follow-redirects/index.js +598 -0
- package/node_modules/follow-redirects/package.json +98 -0
- package/node_modules/form-data/License +19 -0
- package/node_modules/form-data/README.md.bak +358 -0
- package/node_modules/form-data/Readme.md +358 -0
- package/node_modules/form-data/index.d.ts +62 -0
- package/node_modules/form-data/lib/browser.js +2 -0
- package/node_modules/form-data/lib/form_data.js +501 -0
- package/node_modules/form-data/lib/populate.js +10 -0
- package/node_modules/form-data/package.json +104 -0
- package/node_modules/formidable/LICENSE +7 -0
- package/node_modules/formidable/Readme.md +448 -0
- package/node_modules/formidable/lib/file.js +81 -0
- package/node_modules/formidable/lib/incoming_form.js +564 -0
- package/node_modules/formidable/lib/index.js +3 -0
- package/node_modules/formidable/lib/json_parser.js +30 -0
- package/node_modules/formidable/lib/multipart_parser.js +332 -0
- package/node_modules/formidable/lib/octet_parser.js +20 -0
- package/node_modules/formidable/lib/querystring_parser.js +27 -0
- package/node_modules/formidable/package.json +63 -0
- package/node_modules/fs-minipass/LICENSE +15 -0
- package/node_modules/fs-minipass/README.md +70 -0
- package/node_modules/fs-minipass/index.js +422 -0
- package/node_modules/fs-minipass/package.json +71 -0
- package/node_modules/fs-readdir-recursive/LICENSE +22 -0
- package/node_modules/fs-readdir-recursive/README.md +61 -0
- package/node_modules/fs-readdir-recursive/index.js +29 -0
- package/node_modules/fs-readdir-recursive/package.json +60 -0
- package/node_modules/fs.realpath/LICENSE +43 -0
- package/node_modules/fs.realpath/README.md +33 -0
- package/node_modules/fs.realpath/index.js +66 -0
- package/node_modules/fs.realpath/old.js +303 -0
- package/node_modules/fs.realpath/package.json +62 -0
- package/node_modules/fsevents/LICENSE +22 -0
- package/node_modules/fsevents/README.md +83 -0
- package/node_modules/fsevents/fsevents.d.ts +46 -0
- package/node_modules/fsevents/fsevents.js +82 -0
- package/node_modules/fsevents/fsevents.node +0 -0
- package/node_modules/fsevents/package.json +91 -0
- package/node_modules/ftp-response-parser/.README.md.un~ +0 -0
- package/node_modules/ftp-response-parser/.index.js.un~ +0 -0
- package/node_modules/ftp-response-parser/.package.json.un~ +0 -0
- package/node_modules/ftp-response-parser/.test.js.un~ +0 -0
- package/node_modules/ftp-response-parser/LICENSE +20 -0
- package/node_modules/ftp-response-parser/README.md +104 -0
- package/node_modules/ftp-response-parser/index.js +82 -0
- package/node_modules/ftp-response-parser/node_modules/isarray/README.md +54 -0
- package/node_modules/ftp-response-parser/node_modules/isarray/build/build.js +209 -0
- package/node_modules/ftp-response-parser/node_modules/isarray/component.json +19 -0
- package/node_modules/ftp-response-parser/node_modules/isarray/index.js +3 -0
- package/node_modules/ftp-response-parser/node_modules/isarray/package.json +61 -0
- package/node_modules/ftp-response-parser/node_modules/readable-stream/.npmignore +5 -0
- package/node_modules/ftp-response-parser/node_modules/readable-stream/LICENSE +18 -0
- package/node_modules/ftp-response-parser/node_modules/readable-stream/README.md +15 -0
- package/node_modules/ftp-response-parser/node_modules/readable-stream/duplex.js +1 -0
- package/node_modules/ftp-response-parser/node_modules/readable-stream/float.patch +923 -0
- package/node_modules/ftp-response-parser/node_modules/readable-stream/lib/_stream_duplex.js +89 -0
- package/node_modules/ftp-response-parser/node_modules/readable-stream/lib/_stream_passthrough.js +46 -0
- package/node_modules/ftp-response-parser/node_modules/readable-stream/lib/_stream_readable.js +951 -0
- package/node_modules/ftp-response-parser/node_modules/readable-stream/lib/_stream_transform.js +209 -0
- package/node_modules/ftp-response-parser/node_modules/readable-stream/lib/_stream_writable.js +477 -0
- package/node_modules/ftp-response-parser/node_modules/readable-stream/package.json +69 -0
- package/node_modules/ftp-response-parser/node_modules/readable-stream/passthrough.js +1 -0
- package/node_modules/ftp-response-parser/node_modules/readable-stream/readable.js +10 -0
- package/node_modules/ftp-response-parser/node_modules/readable-stream/transform.js +1 -0
- package/node_modules/ftp-response-parser/node_modules/readable-stream/writable.js +1 -0
- package/node_modules/ftp-response-parser/node_modules/string_decoder/.npmignore +2 -0
- package/node_modules/ftp-response-parser/node_modules/string_decoder/LICENSE +20 -0
- package/node_modules/ftp-response-parser/node_modules/string_decoder/README.md +7 -0
- package/node_modules/ftp-response-parser/node_modules/string_decoder/index.js +221 -0
- package/node_modules/ftp-response-parser/node_modules/string_decoder/package.json +57 -0
- package/node_modules/ftp-response-parser/package.json +80 -0
- package/node_modules/ftp-response-parser/test.js +149 -0
- package/node_modules/function-bind/.editorconfig +20 -0
- package/node_modules/function-bind/.eslintrc +15 -0
- package/node_modules/function-bind/.jscs.json +176 -0
- package/node_modules/function-bind/.npmignore +22 -0
- package/node_modules/function-bind/.travis.yml +168 -0
- package/node_modules/function-bind/LICENSE +20 -0
- package/node_modules/function-bind/README.md +48 -0
- package/node_modules/function-bind/implementation.js +52 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +100 -0
- package/node_modules/function-bind/test/.eslintrc +9 -0
- package/node_modules/function-bind/test/index.js +252 -0
- package/node_modules/gauge/CHANGELOG.md +163 -0
- package/node_modules/gauge/LICENSE +13 -0
- package/node_modules/gauge/README.md +402 -0
- package/node_modules/gauge/base-theme.js +14 -0
- package/node_modules/gauge/error.js +24 -0
- package/node_modules/gauge/has-color.js +4 -0
- package/node_modules/gauge/index.js +233 -0
- package/node_modules/gauge/package.json +97 -0
- package/node_modules/gauge/plumbing.js +48 -0
- package/node_modules/gauge/process.js +3 -0
- package/node_modules/gauge/progress-bar.js +35 -0
- package/node_modules/gauge/render-template.js +178 -0
- package/node_modules/gauge/set-immediate.js +7 -0
- package/node_modules/gauge/set-interval.js +3 -0
- package/node_modules/gauge/spin.js +5 -0
- package/node_modules/gauge/template-item.js +72 -0
- package/node_modules/gauge/theme-set.js +114 -0
- package/node_modules/gauge/themes.js +56 -0
- package/node_modules/gauge/wide-truncate.js +25 -0
- package/node_modules/generate-password/.eslintrc.yml +18 -0
- package/node_modules/generate-password/.github/workflows/nodejs.yml +33 -0
- package/node_modules/generate-password/CHANGELOG.md +79 -0
- package/node_modules/generate-password/LICENSE +21 -0
- package/node_modules/generate-password/README.md +61 -0
- package/node_modules/generate-password/example.js +28 -0
- package/node_modules/generate-password/main.js +1 -0
- package/node_modules/generate-password/package.json +68 -0
- package/node_modules/generate-password/src/generate.d.ts +51 -0
- package/node_modules/generate-password/src/generate.js +152 -0
- package/node_modules/generate-password/test/coverage.sh +17 -0
- package/node_modules/generate-password/test/esm.mjs +13 -0
- package/node_modules/generate-password/test/generator.js +164 -0
- package/node_modules/get-caller-file/LICENSE.md +6 -0
- package/node_modules/get-caller-file/README.md +41 -0
- package/node_modules/get-caller-file/index.d.ts +2 -0
- package/node_modules/get-caller-file/index.js +22 -0
- package/node_modules/get-caller-file/index.js.map +1 -0
- package/node_modules/get-caller-file/package.json +72 -0
- package/node_modules/get-intrinsic/.eslintrc +37 -0
- package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/node_modules/get-intrinsic/.nycrc +9 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +91 -0
- package/node_modules/get-intrinsic/LICENSE +21 -0
- package/node_modules/get-intrinsic/README.md +71 -0
- package/node_modules/get-intrinsic/index.js +334 -0
- package/node_modules/get-intrinsic/package.json +125 -0
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/node_modules/glob/LICENSE +21 -0
- package/node_modules/glob/README.md +378 -0
- package/node_modules/glob/common.js +238 -0
- package/node_modules/glob/glob.js +790 -0
- package/node_modules/glob/package.json +93 -0
- package/node_modules/glob/sync.js +486 -0
- package/node_modules/glob-parent/CHANGELOG.md +110 -0
- package/node_modules/glob-parent/LICENSE +15 -0
- package/node_modules/glob-parent/README.md +137 -0
- package/node_modules/glob-parent/index.js +42 -0
- package/node_modules/glob-parent/package.json +95 -0
- package/node_modules/has/LICENSE-MIT +22 -0
- package/node_modules/has/README.md +18 -0
- package/node_modules/has/package.json +81 -0
- package/node_modules/has/src/index.js +5 -0
- package/node_modules/has/test/index.js +10 -0
- package/node_modules/has-symbols/.eslintrc +11 -0
- package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/node_modules/has-symbols/.nycrc +9 -0
- package/node_modules/has-symbols/CHANGELOG.md +75 -0
- package/node_modules/has-symbols/LICENSE +21 -0
- package/node_modules/has-symbols/README.md +46 -0
- package/node_modules/has-symbols/index.js +13 -0
- package/node_modules/has-symbols/package.json +134 -0
- package/node_modules/has-symbols/shams.js +42 -0
- package/node_modules/has-symbols/test/index.js +22 -0
- package/node_modules/has-symbols/test/shams/core-js.js +28 -0
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +28 -0
- package/node_modules/has-symbols/test/tests.js +56 -0
- package/node_modules/has-unicode/LICENSE +14 -0
- package/node_modules/has-unicode/README.md +43 -0
- package/node_modules/has-unicode/index.js +16 -0
- package/node_modules/has-unicode/package.json +61 -0
- package/node_modules/hkdf/.npmignore +2 -0
- package/node_modules/hkdf/README.md +23 -0
- package/node_modules/hkdf/hkdf.py +171 -0
- package/node_modules/hkdf/hkdf.pyc +0 -0
- package/node_modules/hkdf/index.js +1 -0
- package/node_modules/hkdf/lib/hkdf.js +55 -0
- package/node_modules/hkdf/package.json +55 -0
- package/node_modules/hkdf/scripts/run_all_tests.sh +19 -0
- package/node_modules/hkdf/test/all-test.js +79 -0
- package/node_modules/hkdf/test.py +11 -0
- package/node_modules/https-proxy-agent/README.md +137 -0
- package/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
- package/node_modules/https-proxy-agent/dist/agent.js +177 -0
- package/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
- package/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
- package/node_modules/https-proxy-agent/dist/index.js +14 -0
- package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
- package/node_modules/https-proxy-agent/package.json +89 -0
- package/node_modules/iconv-lite/Changelog.md +162 -0
- package/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/iconv-lite/README.md +156 -0
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
- package/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- package/node_modules/iconv-lite/encodings/index.js +22 -0
- package/node_modules/iconv-lite/encodings/internal.js +188 -0
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/iconv-lite/encodings/utf16.js +177 -0
- package/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/node_modules/iconv-lite/lib/extend-node.js +217 -0
- package/node_modules/iconv-lite/lib/index.d.ts +24 -0
- package/node_modules/iconv-lite/lib/index.js +153 -0
- package/node_modules/iconv-lite/lib/streams.js +121 -0
- package/node_modules/iconv-lite/package.json +79 -0
- package/node_modules/immediate/LICENSE.txt +20 -0
- package/node_modules/immediate/README.md +93 -0
- package/node_modules/immediate/dist/immediate.js +75 -0
- package/node_modules/immediate/dist/immediate.min.js +1 -0
- package/node_modules/immediate/lib/browser.js +69 -0
- package/node_modules/immediate/lib/index.js +73 -0
- package/node_modules/immediate/package.json +86 -0
- package/node_modules/inflight/LICENSE +15 -0
- package/node_modules/inflight/README.md +37 -0
- package/node_modules/inflight/inflight.js +54 -0
- package/node_modules/inflight/package.json +61 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +70 -0
- package/node_modules/is-binary-path/index.d.ts +17 -0
- package/node_modules/is-binary-path/index.js +7 -0
- package/node_modules/is-binary-path/license +9 -0
- package/node_modules/is-binary-path/package.json +76 -0
- package/node_modules/is-binary-path/readme.md +34 -0
- package/node_modules/is-extglob/LICENSE +21 -0
- package/node_modules/is-extglob/README.md +107 -0
- package/node_modules/is-extglob/index.js +20 -0
- package/node_modules/is-extglob/package.json +103 -0
- package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/node_modules/is-fullwidth-code-point/index.js +50 -0
- package/node_modules/is-fullwidth-code-point/license +9 -0
- package/node_modules/is-fullwidth-code-point/package.json +80 -0
- package/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/node_modules/is-glob/LICENSE +21 -0
- package/node_modules/is-glob/README.md +206 -0
- package/node_modules/is-glob/index.js +150 -0
- package/node_modules/is-glob/package.json +127 -0
- package/node_modules/is-number/LICENSE +21 -0
- package/node_modules/is-number/README.md +187 -0
- package/node_modules/is-number/index.js +18 -0
- package/node_modules/is-number/package.json +125 -0
- package/node_modules/isarray/.npmignore +1 -0
- package/node_modules/isarray/.travis.yml +4 -0
- package/node_modules/isarray/Makefile +6 -0
- package/node_modules/isarray/README.md +60 -0
- package/node_modules/isarray/component.json +19 -0
- package/node_modules/isarray/index.js +5 -0
- package/node_modules/isarray/package.json +77 -0
- package/node_modules/isarray/test.js +20 -0
- package/node_modules/jsftp/LICENSE +22 -0
- package/node_modules/jsftp/README.md +329 -0
- package/node_modules/jsftp/index.js +1 -0
- package/node_modules/jsftp/lib/jsftp.js +772 -0
- package/node_modules/jsftp/node_modules/debug/CHANGELOG.md +395 -0
- package/node_modules/jsftp/node_modules/debug/LICENSE +19 -0
- package/node_modules/jsftp/node_modules/debug/README.md +437 -0
- package/node_modules/jsftp/node_modules/debug/node.js +1 -0
- package/node_modules/jsftp/node_modules/debug/package.json +94 -0
- package/node_modules/jsftp/node_modules/debug/src/browser.js +180 -0
- package/node_modules/jsftp/node_modules/debug/src/common.js +249 -0
- package/node_modules/jsftp/node_modules/debug/src/index.js +12 -0
- package/node_modules/jsftp/node_modules/debug/src/node.js +177 -0
- package/node_modules/jsftp/package.json +84 -0
- package/node_modules/json2csv/.eslintrc +7 -0
- package/node_modules/json2csv/.gitattributes +3 -0
- package/node_modules/json2csv/CHANGELOG.md +522 -0
- package/node_modules/json2csv/LICENSE.md +14 -0
- package/node_modules/json2csv/README.md +852 -0
- package/node_modules/json2csv/bin/json2csv.js +239 -0
- package/node_modules/json2csv/bin/utils/TablePrinter.js +96 -0
- package/node_modules/json2csv/bin/utils/parseNdjson.js +11 -0
- package/node_modules/json2csv/dist/json2csv.cjs.js +2286 -0
- package/node_modules/json2csv/dist/json2csv.esm.js +2276 -0
- package/node_modules/json2csv/dist/json2csv.umd.js +7440 -0
- package/node_modules/json2csv/lib/JSON2CSVAsyncParser.js +53 -0
- package/node_modules/json2csv/lib/JSON2CSVBase.js +291 -0
- package/node_modules/json2csv/lib/JSON2CSVParser.js +83 -0
- package/node_modules/json2csv/lib/JSON2CSVTransform.js +204 -0
- package/node_modules/json2csv/lib/json2csv.js +37 -0
- package/node_modules/json2csv/lib/utils.js +46 -0
- package/node_modules/json2csv/node_modules/commander/CHANGELOG.md +419 -0
- package/node_modules/json2csv/node_modules/commander/LICENSE +22 -0
- package/node_modules/json2csv/node_modules/commander/Readme.md +428 -0
- package/node_modules/json2csv/node_modules/commander/index.js +1224 -0
- package/node_modules/json2csv/node_modules/commander/package.json +73 -0
- package/node_modules/json2csv/node_modules/commander/typings/index.d.ts +310 -0
- package/node_modules/json2csv/package.json +96 -0
- package/node_modules/json2csv/rollup.config.js +47 -0
- package/node_modules/jsonparse/.npmignore +1 -0
- package/node_modules/jsonparse/LICENSE +24 -0
- package/node_modules/jsonparse/README.markdown +11 -0
- package/node_modules/jsonparse/bench.js +26 -0
- package/node_modules/jsonparse/examples/twitterfeed.js +30 -0
- package/node_modules/jsonparse/jsonparse.js +413 -0
- package/node_modules/jsonparse/package.json +61 -0
- package/node_modules/jsonparse/samplejson/basic.json +167 -0
- package/node_modules/jsonparse/samplejson/basic2.json +180 -0
- package/node_modules/jsonparse/test/big-token.js +24 -0
- package/node_modules/jsonparse/test/boundary.js +110 -0
- package/node_modules/jsonparse/test/offset.js +67 -0
- package/node_modules/jsonparse/test/primitives.js +57 -0
- package/node_modules/jsonparse/test/surrogate.js +26 -0
- package/node_modules/jsonparse/test/unvalid.js +15 -0
- package/node_modules/jsonparse/test/utf8.js +38 -0
- package/node_modules/jszip/.codeclimate.yml +16 -0
- package/node_modules/jszip/.editorconfig +8 -0
- package/node_modules/jszip/.github/workflows/pr.yaml +41 -0
- package/node_modules/jszip/.jshintignore +1 -0
- package/node_modules/jszip/.jshintrc +21 -0
- package/node_modules/jszip/.travis.yml +17 -0
- package/node_modules/jszip/CHANGES.md +192 -0
- package/node_modules/jszip/LICENSE.markdown +651 -0
- package/node_modules/jszip/README.markdown +33 -0
- package/node_modules/jszip/dist/jszip.js +11583 -0
- package/node_modules/jszip/dist/jszip.min.js +13 -0
- package/node_modules/jszip/index.d.ts +335 -0
- package/node_modules/jszip/lib/base64.js +106 -0
- package/node_modules/jszip/lib/compressedObject.js +74 -0
- package/node_modules/jszip/lib/compressions.js +14 -0
- package/node_modules/jszip/lib/crc32.js +77 -0
- package/node_modules/jszip/lib/defaults.js +11 -0
- package/node_modules/jszip/lib/external.js +19 -0
- package/node_modules/jszip/lib/flate.js +85 -0
- package/node_modules/jszip/lib/generate/ZipFileWorker.js +540 -0
- package/node_modules/jszip/lib/generate/index.js +57 -0
- package/node_modules/jszip/lib/index.js +55 -0
- package/node_modules/jszip/lib/license_header.js +11 -0
- package/node_modules/jszip/lib/load.js +88 -0
- package/node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js +74 -0
- package/node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +42 -0
- package/node_modules/jszip/lib/nodejsUtils.js +57 -0
- package/node_modules/jszip/lib/object.js +389 -0
- package/node_modules/jszip/lib/readable-stream-browser.js +9 -0
- package/node_modules/jszip/lib/reader/ArrayReader.js +57 -0
- package/node_modules/jszip/lib/reader/DataReader.js +116 -0
- package/node_modules/jszip/lib/reader/NodeBufferReader.js +19 -0
- package/node_modules/jszip/lib/reader/StringReader.js +38 -0
- package/node_modules/jszip/lib/reader/Uint8ArrayReader.js +22 -0
- package/node_modules/jszip/lib/reader/readerFor.js +28 -0
- package/node_modules/jszip/lib/signature.js +7 -0
- package/node_modules/jszip/lib/stream/ConvertWorker.js +26 -0
- package/node_modules/jszip/lib/stream/Crc32Probe.js +24 -0
- package/node_modules/jszip/lib/stream/DataLengthProbe.js +29 -0
- package/node_modules/jszip/lib/stream/DataWorker.js +116 -0
- package/node_modules/jszip/lib/stream/GenericWorker.js +263 -0
- package/node_modules/jszip/lib/stream/StreamHelper.js +212 -0
- package/node_modules/jszip/lib/support.js +38 -0
- package/node_modules/jszip/lib/utf8.js +275 -0
- package/node_modules/jszip/lib/utils.js +501 -0
- package/node_modules/jszip/lib/zipEntries.js +262 -0
- package/node_modules/jszip/lib/zipEntry.js +294 -0
- package/node_modules/jszip/lib/zipObject.js +133 -0
- package/node_modules/jszip/package.json +99 -0
- package/node_modules/jszip/tsconfig.json +101 -0
- package/node_modules/jszip/vendor/FileSaver.js +247 -0
- package/node_modules/lie/README.md +62 -0
- package/node_modules/lie/dist/lie.js +350 -0
- package/node_modules/lie/dist/lie.min.js +1 -0
- package/node_modules/lie/dist/lie.polyfill.js +358 -0
- package/node_modules/lie/dist/lie.polyfill.min.js +1 -0
- package/node_modules/lie/lib/browser.js +273 -0
- package/node_modules/lie/lib/index.js +298 -0
- package/node_modules/lie/license.md +7 -0
- package/node_modules/lie/lie.d.ts +244 -0
- package/node_modules/lie/package.json +98 -0
- package/node_modules/lie/polyfill.js +4 -0
- package/node_modules/lodash/LICENSE +47 -0
- package/node_modules/lodash/README.md +39 -0
- package/node_modules/lodash/_DataView.js +7 -0
- package/node_modules/lodash/_Hash.js +32 -0
- package/node_modules/lodash/_LazyWrapper.js +28 -0
- package/node_modules/lodash/_ListCache.js +32 -0
- package/node_modules/lodash/_LodashWrapper.js +22 -0
- package/node_modules/lodash/_Map.js +7 -0
- package/node_modules/lodash/_MapCache.js +32 -0
- package/node_modules/lodash/_Promise.js +7 -0
- package/node_modules/lodash/_Set.js +7 -0
- package/node_modules/lodash/_SetCache.js +27 -0
- package/node_modules/lodash/_Stack.js +27 -0
- package/node_modules/lodash/_Symbol.js +6 -0
- package/node_modules/lodash/_Uint8Array.js +6 -0
- package/node_modules/lodash/_WeakMap.js +7 -0
- package/node_modules/lodash/_apply.js +21 -0
- package/node_modules/lodash/_arrayAggregator.js +22 -0
- package/node_modules/lodash/_arrayEach.js +22 -0
- package/node_modules/lodash/_arrayEachRight.js +21 -0
- package/node_modules/lodash/_arrayEvery.js +23 -0
- package/node_modules/lodash/_arrayFilter.js +25 -0
- package/node_modules/lodash/_arrayIncludes.js +17 -0
- package/node_modules/lodash/_arrayIncludesWith.js +22 -0
- package/node_modules/lodash/_arrayLikeKeys.js +49 -0
- package/node_modules/lodash/_arrayMap.js +21 -0
- package/node_modules/lodash/_arrayPush.js +20 -0
- package/node_modules/lodash/_arrayReduce.js +26 -0
- package/node_modules/lodash/_arrayReduceRight.js +24 -0
- package/node_modules/lodash/_arraySample.js +15 -0
- package/node_modules/lodash/_arraySampleSize.js +17 -0
- package/node_modules/lodash/_arrayShuffle.js +15 -0
- package/node_modules/lodash/_arraySome.js +23 -0
- package/node_modules/lodash/_asciiSize.js +12 -0
- package/node_modules/lodash/_asciiToArray.js +12 -0
- package/node_modules/lodash/_asciiWords.js +15 -0
- package/node_modules/lodash/_assignMergeValue.js +20 -0
- package/node_modules/lodash/_assignValue.js +28 -0
- package/node_modules/lodash/_assocIndexOf.js +21 -0
- package/node_modules/lodash/_baseAggregator.js +21 -0
- package/node_modules/lodash/_baseAssign.js +17 -0
- package/node_modules/lodash/_baseAssignIn.js +17 -0
- package/node_modules/lodash/_baseAssignValue.js +25 -0
- package/node_modules/lodash/_baseAt.js +23 -0
- package/node_modules/lodash/_baseClamp.js +22 -0
- package/node_modules/lodash/_baseClone.js +166 -0
- package/node_modules/lodash/_baseConforms.js +18 -0
- package/node_modules/lodash/_baseConformsTo.js +27 -0
- package/node_modules/lodash/_baseCreate.js +30 -0
- package/node_modules/lodash/_baseDelay.js +21 -0
- package/node_modules/lodash/_baseDifference.js +67 -0
- package/node_modules/lodash/_baseEach.js +14 -0
- package/node_modules/lodash/_baseEachRight.js +14 -0
- package/node_modules/lodash/_baseEvery.js +21 -0
- package/node_modules/lodash/_baseExtremum.js +32 -0
- package/node_modules/lodash/_baseFill.js +32 -0
- package/node_modules/lodash/_baseFilter.js +21 -0
- package/node_modules/lodash/_baseFindIndex.js +24 -0
- package/node_modules/lodash/_baseFindKey.js +23 -0
- package/node_modules/lodash/_baseFlatten.js +38 -0
- package/node_modules/lodash/_baseFor.js +16 -0
- package/node_modules/lodash/_baseForOwn.js +16 -0
- package/node_modules/lodash/_baseForOwnRight.js +16 -0
- package/node_modules/lodash/_baseForRight.js +15 -0
- package/node_modules/lodash/_baseFunctions.js +19 -0
- package/node_modules/lodash/_baseGet.js +24 -0
- package/node_modules/lodash/_baseGetAllKeys.js +20 -0
- package/node_modules/lodash/_baseGetTag.js +28 -0
- package/node_modules/lodash/_baseGt.js +14 -0
- package/node_modules/lodash/_baseHas.js +19 -0
- package/node_modules/lodash/_baseHasIn.js +13 -0
- package/node_modules/lodash/_baseInRange.js +18 -0
- package/node_modules/lodash/_baseIndexOf.js +20 -0
- package/node_modules/lodash/_baseIndexOfWith.js +23 -0
- package/node_modules/lodash/_baseIntersection.js +74 -0
- package/node_modules/lodash/_baseInverter.js +21 -0
- package/node_modules/lodash/_baseInvoke.js +24 -0
- package/node_modules/lodash/_baseIsArguments.js +18 -0
- package/node_modules/lodash/_baseIsArrayBuffer.js +17 -0
- package/node_modules/lodash/_baseIsDate.js +18 -0
- package/node_modules/lodash/_baseIsEqual.js +28 -0
- package/node_modules/lodash/_baseIsEqualDeep.js +83 -0
- package/node_modules/lodash/_baseIsMap.js +18 -0
- package/node_modules/lodash/_baseIsMatch.js +62 -0
- package/node_modules/lodash/_baseIsNaN.js +12 -0
- package/node_modules/lodash/_baseIsNative.js +47 -0
- package/node_modules/lodash/_baseIsRegExp.js +18 -0
- package/node_modules/lodash/_baseIsSet.js +18 -0
- package/node_modules/lodash/_baseIsTypedArray.js +60 -0
- package/node_modules/lodash/_baseIteratee.js +31 -0
- package/node_modules/lodash/_baseKeys.js +30 -0
- package/node_modules/lodash/_baseKeysIn.js +33 -0
- package/node_modules/lodash/_baseLodash.js +10 -0
- package/node_modules/lodash/_baseLt.js +14 -0
- package/node_modules/lodash/_baseMap.js +22 -0
- package/node_modules/lodash/_baseMatches.js +22 -0
- package/node_modules/lodash/_baseMatchesProperty.js +33 -0
- package/node_modules/lodash/_baseMean.js +20 -0
- package/node_modules/lodash/_baseMerge.js +42 -0
- package/node_modules/lodash/_baseMergeDeep.js +94 -0
- package/node_modules/lodash/_baseNth.js +20 -0
- package/node_modules/lodash/_baseOrderBy.js +49 -0
- package/node_modules/lodash/_basePick.js +19 -0
- package/node_modules/lodash/_basePickBy.js +30 -0
- package/node_modules/lodash/_baseProperty.js +14 -0
- package/node_modules/lodash/_basePropertyDeep.js +16 -0
- package/node_modules/lodash/_basePropertyOf.js +14 -0
- package/node_modules/lodash/_basePullAll.js +51 -0
- package/node_modules/lodash/_basePullAt.js +37 -0
- package/node_modules/lodash/_baseRandom.js +18 -0
- package/node_modules/lodash/_baseRange.js +28 -0
- package/node_modules/lodash/_baseReduce.js +23 -0
- package/node_modules/lodash/_baseRepeat.js +35 -0
- package/node_modules/lodash/_baseRest.js +17 -0
- package/node_modules/lodash/_baseSample.js +15 -0
- package/node_modules/lodash/_baseSampleSize.js +18 -0
- package/node_modules/lodash/_baseSet.js +51 -0
- package/node_modules/lodash/_baseSetData.js +17 -0
- package/node_modules/lodash/_baseSetToString.js +22 -0
- package/node_modules/lodash/_baseShuffle.js +15 -0
- package/node_modules/lodash/_baseSlice.js +31 -0
- package/node_modules/lodash/_baseSome.js +22 -0
- package/node_modules/lodash/_baseSortBy.js +21 -0
- package/node_modules/lodash/_baseSortedIndex.js +42 -0
- package/node_modules/lodash/_baseSortedIndexBy.js +67 -0
- package/node_modules/lodash/_baseSortedUniq.js +30 -0
- package/node_modules/lodash/_baseSum.js +24 -0
- package/node_modules/lodash/_baseTimes.js +20 -0
- package/node_modules/lodash/_baseToNumber.js +24 -0
- package/node_modules/lodash/_baseToPairs.js +18 -0
- package/node_modules/lodash/_baseToString.js +37 -0
- package/node_modules/lodash/_baseTrim.js +19 -0
- package/node_modules/lodash/_baseUnary.js +14 -0
- package/node_modules/lodash/_baseUniq.js +72 -0
- package/node_modules/lodash/_baseUnset.js +20 -0
- package/node_modules/lodash/_baseUpdate.js +18 -0
- package/node_modules/lodash/_baseValues.js +19 -0
- package/node_modules/lodash/_baseWhile.js +26 -0
- package/node_modules/lodash/_baseWrapperValue.js +25 -0
- package/node_modules/lodash/_baseXor.js +36 -0
- package/node_modules/lodash/_baseZipObject.js +23 -0
- package/node_modules/lodash/_cacheHas.js +13 -0
- package/node_modules/lodash/_castArrayLikeObject.js +14 -0
- package/node_modules/lodash/_castFunction.js +14 -0
- package/node_modules/lodash/_castPath.js +21 -0
- package/node_modules/lodash/_castRest.js +14 -0
- package/node_modules/lodash/_castSlice.js +18 -0
- package/node_modules/lodash/_charsEndIndex.js +19 -0
- package/node_modules/lodash/_charsStartIndex.js +20 -0
- package/node_modules/lodash/_cloneArrayBuffer.js +16 -0
- package/node_modules/lodash/_cloneBuffer.js +35 -0
- package/node_modules/lodash/_cloneDataView.js +16 -0
- package/node_modules/lodash/_cloneRegExp.js +17 -0
- package/node_modules/lodash/_cloneSymbol.js +18 -0
- package/node_modules/lodash/_cloneTypedArray.js +16 -0
- package/node_modules/lodash/_compareAscending.js +41 -0
- package/node_modules/lodash/_compareMultiple.js +44 -0
- package/node_modules/lodash/_composeArgs.js +39 -0
- package/node_modules/lodash/_composeArgsRight.js +41 -0
- package/node_modules/lodash/_copyArray.js +20 -0
- package/node_modules/lodash/_copyObject.js +40 -0
- package/node_modules/lodash/_copySymbols.js +16 -0
- package/node_modules/lodash/_copySymbolsIn.js +16 -0
- package/node_modules/lodash/_coreJsData.js +6 -0
- package/node_modules/lodash/_countHolders.js +21 -0
- package/node_modules/lodash/_createAggregator.js +23 -0
- package/node_modules/lodash/_createAssigner.js +37 -0
- package/node_modules/lodash/_createBaseEach.js +32 -0
- package/node_modules/lodash/_createBaseFor.js +25 -0
- package/node_modules/lodash/_createBind.js +28 -0
- package/node_modules/lodash/_createCaseFirst.js +33 -0
- package/node_modules/lodash/_createCompounder.js +24 -0
- package/node_modules/lodash/_createCtor.js +37 -0
- package/node_modules/lodash/_createCurry.js +46 -0
- package/node_modules/lodash/_createFind.js +25 -0
- package/node_modules/lodash/_createFlow.js +78 -0
- package/node_modules/lodash/_createHybrid.js +92 -0
- package/node_modules/lodash/_createInverter.js +17 -0
- package/node_modules/lodash/_createMathOperation.js +38 -0
- package/node_modules/lodash/_createOver.js +27 -0
- package/node_modules/lodash/_createPadding.js +33 -0
- package/node_modules/lodash/_createPartial.js +43 -0
- package/node_modules/lodash/_createRange.js +30 -0
- package/node_modules/lodash/_createRecurry.js +56 -0
- package/node_modules/lodash/_createRelationalOperation.js +20 -0
- package/node_modules/lodash/_createRound.js +35 -0
- package/node_modules/lodash/_createSet.js +19 -0
- package/node_modules/lodash/_createToPairs.js +30 -0
- package/node_modules/lodash/_createWrap.js +106 -0
- package/node_modules/lodash/_customDefaultsAssignIn.js +29 -0
- package/node_modules/lodash/_customDefaultsMerge.js +28 -0
- package/node_modules/lodash/_customOmitClone.js +16 -0
- package/node_modules/lodash/_deburrLetter.js +71 -0
- package/node_modules/lodash/_defineProperty.js +11 -0
- package/node_modules/lodash/_equalArrays.js +84 -0
- package/node_modules/lodash/_equalByTag.js +112 -0
- package/node_modules/lodash/_equalObjects.js +90 -0
- package/node_modules/lodash/_escapeHtmlChar.js +21 -0
- package/node_modules/lodash/_escapeStringChar.js +22 -0
- package/node_modules/lodash/_flatRest.js +16 -0
- package/node_modules/lodash/_freeGlobal.js +4 -0
- package/node_modules/lodash/_getAllKeys.js +16 -0
- package/node_modules/lodash/_getAllKeysIn.js +17 -0
- package/node_modules/lodash/_getData.js +15 -0
- package/node_modules/lodash/_getFuncName.js +31 -0
- package/node_modules/lodash/_getHolder.js +13 -0
- package/node_modules/lodash/_getMapData.js +18 -0
- package/node_modules/lodash/_getMatchData.js +24 -0
- package/node_modules/lodash/_getNative.js +17 -0
- package/node_modules/lodash/_getPrototype.js +6 -0
- package/node_modules/lodash/_getRawTag.js +46 -0
- package/node_modules/lodash/_getSymbols.js +30 -0
- package/node_modules/lodash/_getSymbolsIn.js +25 -0
- package/node_modules/lodash/_getTag.js +58 -0
- package/node_modules/lodash/_getValue.js +13 -0
- package/node_modules/lodash/_getView.js +33 -0
- package/node_modules/lodash/_getWrapDetails.js +17 -0
- package/node_modules/lodash/_hasPath.js +39 -0
- package/node_modules/lodash/_hasUnicode.js +26 -0
- package/node_modules/lodash/_hasUnicodeWord.js +15 -0
- package/node_modules/lodash/_hashClear.js +15 -0
- package/node_modules/lodash/_hashDelete.js +17 -0
- package/node_modules/lodash/_hashGet.js +30 -0
- package/node_modules/lodash/_hashHas.js +23 -0
- package/node_modules/lodash/_hashSet.js +23 -0
- package/node_modules/lodash/_initCloneArray.js +26 -0
- package/node_modules/lodash/_initCloneByTag.js +77 -0
- package/node_modules/lodash/_initCloneObject.js +18 -0
- package/node_modules/lodash/_insertWrapDetails.js +23 -0
- package/node_modules/lodash/_isFlattenable.js +20 -0
- package/node_modules/lodash/_isIndex.js +25 -0
- package/node_modules/lodash/_isIterateeCall.js +30 -0
- package/node_modules/lodash/_isKey.js +29 -0
- package/node_modules/lodash/_isKeyable.js +15 -0
- package/node_modules/lodash/_isLaziable.js +28 -0
- package/node_modules/lodash/_isMaskable.js +14 -0
- package/node_modules/lodash/_isMasked.js +20 -0
- package/node_modules/lodash/_isPrototype.js +18 -0
- package/node_modules/lodash/_isStrictComparable.js +15 -0
- package/node_modules/lodash/_iteratorToArray.js +18 -0
- package/node_modules/lodash/_lazyClone.js +23 -0
- package/node_modules/lodash/_lazyReverse.js +23 -0
- package/node_modules/lodash/_lazyValue.js +69 -0
- package/node_modules/lodash/_listCacheClear.js +13 -0
- package/node_modules/lodash/_listCacheDelete.js +35 -0
- package/node_modules/lodash/_listCacheGet.js +19 -0
- package/node_modules/lodash/_listCacheHas.js +16 -0
- package/node_modules/lodash/_listCacheSet.js +26 -0
- package/node_modules/lodash/_mapCacheClear.js +21 -0
- package/node_modules/lodash/_mapCacheDelete.js +18 -0
- package/node_modules/lodash/_mapCacheGet.js +16 -0
- package/node_modules/lodash/_mapCacheHas.js +16 -0
- package/node_modules/lodash/_mapCacheSet.js +22 -0
- package/node_modules/lodash/_mapToArray.js +18 -0
- package/node_modules/lodash/_matchesStrictComparable.js +20 -0
- package/node_modules/lodash/_memoizeCapped.js +26 -0
- package/node_modules/lodash/_mergeData.js +90 -0
- package/node_modules/lodash/_metaMap.js +6 -0
- package/node_modules/lodash/_nativeCreate.js +6 -0
- package/node_modules/lodash/_nativeKeys.js +6 -0
- package/node_modules/lodash/_nativeKeysIn.js +20 -0
- package/node_modules/lodash/_nodeUtil.js +30 -0
- package/node_modules/lodash/_objectToString.js +22 -0
- package/node_modules/lodash/_overArg.js +15 -0
- package/node_modules/lodash/_overRest.js +36 -0
- package/node_modules/lodash/_parent.js +16 -0
- package/node_modules/lodash/_reEscape.js +4 -0
- package/node_modules/lodash/_reEvaluate.js +4 -0
- package/node_modules/lodash/_reInterpolate.js +4 -0
- package/node_modules/lodash/_realNames.js +4 -0
- package/node_modules/lodash/_reorder.js +29 -0
- package/node_modules/lodash/_replaceHolders.js +29 -0
- package/node_modules/lodash/_root.js +9 -0
- package/node_modules/lodash/_safeGet.js +21 -0
- package/node_modules/lodash/_setCacheAdd.js +19 -0
- package/node_modules/lodash/_setCacheHas.js +14 -0
- package/node_modules/lodash/_setData.js +20 -0
- package/node_modules/lodash/_setToArray.js +18 -0
- package/node_modules/lodash/_setToPairs.js +18 -0
- package/node_modules/lodash/_setToString.js +14 -0
- package/node_modules/lodash/_setWrapToString.js +21 -0
- package/node_modules/lodash/_shortOut.js +37 -0
- package/node_modules/lodash/_shuffleSelf.js +28 -0
- package/node_modules/lodash/_stackClear.js +15 -0
- package/node_modules/lodash/_stackDelete.js +18 -0
- package/node_modules/lodash/_stackGet.js +14 -0
- package/node_modules/lodash/_stackHas.js +14 -0
- package/node_modules/lodash/_stackSet.js +34 -0
- package/node_modules/lodash/_strictIndexOf.js +23 -0
- package/node_modules/lodash/_strictLastIndexOf.js +21 -0
- package/node_modules/lodash/_stringSize.js +18 -0
- package/node_modules/lodash/_stringToArray.js +18 -0
- package/node_modules/lodash/_stringToPath.js +27 -0
- package/node_modules/lodash/_toKey.js +21 -0
- package/node_modules/lodash/_toSource.js +26 -0
- package/node_modules/lodash/_trimmedEndIndex.js +19 -0
- package/node_modules/lodash/_unescapeHtmlChar.js +21 -0
- package/node_modules/lodash/_unicodeSize.js +44 -0
- package/node_modules/lodash/_unicodeToArray.js +40 -0
- package/node_modules/lodash/_unicodeWords.js +69 -0
- package/node_modules/lodash/_updateWrapDetails.js +46 -0
- package/node_modules/lodash/_wrapperClone.js +23 -0
- package/node_modules/lodash/add.js +22 -0
- package/node_modules/lodash/after.js +42 -0
- package/node_modules/lodash/array.js +67 -0
- package/node_modules/lodash/ary.js +29 -0
- package/node_modules/lodash/assign.js +58 -0
- package/node_modules/lodash/assignIn.js +40 -0
- package/node_modules/lodash/assignInWith.js +38 -0
- package/node_modules/lodash/assignWith.js +37 -0
- package/node_modules/lodash/at.js +23 -0
- package/node_modules/lodash/attempt.js +35 -0
- package/node_modules/lodash/before.js +40 -0
- package/node_modules/lodash/bind.js +57 -0
- package/node_modules/lodash/bindAll.js +41 -0
- package/node_modules/lodash/bindKey.js +68 -0
- package/node_modules/lodash/camelCase.js +29 -0
- package/node_modules/lodash/capitalize.js +23 -0
- package/node_modules/lodash/castArray.js +44 -0
- package/node_modules/lodash/ceil.js +26 -0
- package/node_modules/lodash/chain.js +38 -0
- package/node_modules/lodash/chunk.js +50 -0
- package/node_modules/lodash/clamp.js +39 -0
- package/node_modules/lodash/clone.js +36 -0
- package/node_modules/lodash/cloneDeep.js +29 -0
- package/node_modules/lodash/cloneDeepWith.js +40 -0
- package/node_modules/lodash/cloneWith.js +42 -0
- package/node_modules/lodash/collection.js +30 -0
- package/node_modules/lodash/commit.js +33 -0
- package/node_modules/lodash/compact.js +31 -0
- package/node_modules/lodash/concat.js +43 -0
- package/node_modules/lodash/cond.js +60 -0
- package/node_modules/lodash/conforms.js +35 -0
- package/node_modules/lodash/conformsTo.js +32 -0
- package/node_modules/lodash/constant.js +26 -0
- package/node_modules/lodash/core.js +3877 -0
- package/node_modules/lodash/core.min.js +29 -0
- package/node_modules/lodash/countBy.js +40 -0
- package/node_modules/lodash/create.js +43 -0
- package/node_modules/lodash/curry.js +57 -0
- package/node_modules/lodash/curryRight.js +54 -0
- package/node_modules/lodash/date.js +3 -0
- package/node_modules/lodash/debounce.js +191 -0
- package/node_modules/lodash/deburr.js +45 -0
- package/node_modules/lodash/defaultTo.js +25 -0
- package/node_modules/lodash/defaults.js +64 -0
- package/node_modules/lodash/defaultsDeep.js +30 -0
- package/node_modules/lodash/defer.js +26 -0
- package/node_modules/lodash/delay.js +28 -0
- package/node_modules/lodash/difference.js +33 -0
- package/node_modules/lodash/differenceBy.js +44 -0
- package/node_modules/lodash/differenceWith.js +40 -0
- package/node_modules/lodash/divide.js +22 -0
- package/node_modules/lodash/drop.js +38 -0
- package/node_modules/lodash/dropRight.js +39 -0
- package/node_modules/lodash/dropRightWhile.js +45 -0
- package/node_modules/lodash/dropWhile.js +45 -0
- package/node_modules/lodash/each.js +1 -0
- package/node_modules/lodash/eachRight.js +1 -0
- package/node_modules/lodash/endsWith.js +43 -0
- package/node_modules/lodash/entries.js +1 -0
- package/node_modules/lodash/entriesIn.js +1 -0
- package/node_modules/lodash/eq.js +37 -0
- package/node_modules/lodash/escape.js +43 -0
- package/node_modules/lodash/escapeRegExp.js +32 -0
- package/node_modules/lodash/every.js +56 -0
- package/node_modules/lodash/extend.js +1 -0
- package/node_modules/lodash/extendWith.js +1 -0
- package/node_modules/lodash/fill.js +45 -0
- package/node_modules/lodash/filter.js +52 -0
- package/node_modules/lodash/find.js +42 -0
- package/node_modules/lodash/findIndex.js +55 -0
- package/node_modules/lodash/findKey.js +44 -0
- package/node_modules/lodash/findLast.js +25 -0
- package/node_modules/lodash/findLastIndex.js +59 -0
- package/node_modules/lodash/findLastKey.js +44 -0
- package/node_modules/lodash/first.js +1 -0
- package/node_modules/lodash/flake.lock +40 -0
- package/node_modules/lodash/flake.nix +20 -0
- package/node_modules/lodash/flatMap.js +29 -0
- package/node_modules/lodash/flatMapDeep.js +31 -0
- package/node_modules/lodash/flatMapDepth.js +31 -0
- package/node_modules/lodash/flatten.js +22 -0
- package/node_modules/lodash/flattenDeep.js +25 -0
- package/node_modules/lodash/flattenDepth.js +33 -0
- package/node_modules/lodash/flip.js +28 -0
- package/node_modules/lodash/floor.js +26 -0
- package/node_modules/lodash/flow.js +27 -0
- package/node_modules/lodash/flowRight.js +26 -0
- package/node_modules/lodash/forEach.js +41 -0
- package/node_modules/lodash/forEachRight.js +31 -0
- package/node_modules/lodash/forIn.js +39 -0
- package/node_modules/lodash/forInRight.js +37 -0
- package/node_modules/lodash/forOwn.js +36 -0
- package/node_modules/lodash/forOwnRight.js +34 -0
- package/node_modules/lodash/fp/F.js +1 -0
- package/node_modules/lodash/fp/T.js +1 -0
- package/node_modules/lodash/fp/__.js +1 -0
- package/node_modules/lodash/fp/_baseConvert.js +569 -0
- package/node_modules/lodash/fp/_convertBrowser.js +18 -0
- package/node_modules/lodash/fp/_falseOptions.js +7 -0
- package/node_modules/lodash/fp/_mapping.js +358 -0
- package/node_modules/lodash/fp/_util.js +16 -0
- package/node_modules/lodash/fp/add.js +5 -0
- package/node_modules/lodash/fp/after.js +5 -0
- package/node_modules/lodash/fp/all.js +1 -0
- package/node_modules/lodash/fp/allPass.js +1 -0
- package/node_modules/lodash/fp/always.js +1 -0
- package/node_modules/lodash/fp/any.js +1 -0
- package/node_modules/lodash/fp/anyPass.js +1 -0
- package/node_modules/lodash/fp/apply.js +1 -0
- package/node_modules/lodash/fp/array.js +2 -0
- package/node_modules/lodash/fp/ary.js +5 -0
- package/node_modules/lodash/fp/assign.js +5 -0
- package/node_modules/lodash/fp/assignAll.js +5 -0
- package/node_modules/lodash/fp/assignAllWith.js +5 -0
- package/node_modules/lodash/fp/assignIn.js +5 -0
- package/node_modules/lodash/fp/assignInAll.js +5 -0
- package/node_modules/lodash/fp/assignInAllWith.js +5 -0
- package/node_modules/lodash/fp/assignInWith.js +5 -0
- package/node_modules/lodash/fp/assignWith.js +5 -0
- package/node_modules/lodash/fp/assoc.js +1 -0
- package/node_modules/lodash/fp/assocPath.js +1 -0
- package/node_modules/lodash/fp/at.js +5 -0
- package/node_modules/lodash/fp/attempt.js +5 -0
- package/node_modules/lodash/fp/before.js +5 -0
- package/node_modules/lodash/fp/bind.js +5 -0
- package/node_modules/lodash/fp/bindAll.js +5 -0
- package/node_modules/lodash/fp/bindKey.js +5 -0
- package/node_modules/lodash/fp/camelCase.js +5 -0
- package/node_modules/lodash/fp/capitalize.js +5 -0
- package/node_modules/lodash/fp/castArray.js +5 -0
- package/node_modules/lodash/fp/ceil.js +5 -0
- package/node_modules/lodash/fp/chain.js +5 -0
- package/node_modules/lodash/fp/chunk.js +5 -0
- package/node_modules/lodash/fp/clamp.js +5 -0
- package/node_modules/lodash/fp/clone.js +5 -0
- package/node_modules/lodash/fp/cloneDeep.js +5 -0
- package/node_modules/lodash/fp/cloneDeepWith.js +5 -0
- package/node_modules/lodash/fp/cloneWith.js +5 -0
- package/node_modules/lodash/fp/collection.js +2 -0
- package/node_modules/lodash/fp/commit.js +5 -0
- package/node_modules/lodash/fp/compact.js +5 -0
- package/node_modules/lodash/fp/complement.js +1 -0
- package/node_modules/lodash/fp/compose.js +1 -0
- package/node_modules/lodash/fp/concat.js +5 -0
- package/node_modules/lodash/fp/cond.js +5 -0
- package/node_modules/lodash/fp/conforms.js +1 -0
- package/node_modules/lodash/fp/conformsTo.js +5 -0
- package/node_modules/lodash/fp/constant.js +5 -0
- package/node_modules/lodash/fp/contains.js +1 -0
- package/node_modules/lodash/fp/convert.js +18 -0
- package/node_modules/lodash/fp/countBy.js +5 -0
- package/node_modules/lodash/fp/create.js +5 -0
- package/node_modules/lodash/fp/curry.js +5 -0
- package/node_modules/lodash/fp/curryN.js +5 -0
- package/node_modules/lodash/fp/curryRight.js +5 -0
- package/node_modules/lodash/fp/curryRightN.js +5 -0
- package/node_modules/lodash/fp/date.js +2 -0
- package/node_modules/lodash/fp/debounce.js +5 -0
- package/node_modules/lodash/fp/deburr.js +5 -0
- package/node_modules/lodash/fp/defaultTo.js +5 -0
- package/node_modules/lodash/fp/defaults.js +5 -0
- package/node_modules/lodash/fp/defaultsAll.js +5 -0
- package/node_modules/lodash/fp/defaultsDeep.js +5 -0
- package/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
- package/node_modules/lodash/fp/defer.js +5 -0
- package/node_modules/lodash/fp/delay.js +5 -0
- package/node_modules/lodash/fp/difference.js +5 -0
- package/node_modules/lodash/fp/differenceBy.js +5 -0
- package/node_modules/lodash/fp/differenceWith.js +5 -0
- package/node_modules/lodash/fp/dissoc.js +1 -0
- package/node_modules/lodash/fp/dissocPath.js +1 -0
- package/node_modules/lodash/fp/divide.js +5 -0
- package/node_modules/lodash/fp/drop.js +5 -0
- package/node_modules/lodash/fp/dropLast.js +1 -0
- package/node_modules/lodash/fp/dropLastWhile.js +1 -0
- package/node_modules/lodash/fp/dropRight.js +5 -0
- package/node_modules/lodash/fp/dropRightWhile.js +5 -0
- package/node_modules/lodash/fp/dropWhile.js +5 -0
- package/node_modules/lodash/fp/each.js +1 -0
- package/node_modules/lodash/fp/eachRight.js +1 -0
- package/node_modules/lodash/fp/endsWith.js +5 -0
- package/node_modules/lodash/fp/entries.js +1 -0
- package/node_modules/lodash/fp/entriesIn.js +1 -0
- package/node_modules/lodash/fp/eq.js +5 -0
- package/node_modules/lodash/fp/equals.js +1 -0
- package/node_modules/lodash/fp/escape.js +5 -0
- package/node_modules/lodash/fp/escapeRegExp.js +5 -0
- package/node_modules/lodash/fp/every.js +5 -0
- package/node_modules/lodash/fp/extend.js +1 -0
- package/node_modules/lodash/fp/extendAll.js +1 -0
- package/node_modules/lodash/fp/extendAllWith.js +1 -0
- package/node_modules/lodash/fp/extendWith.js +1 -0
- package/node_modules/lodash/fp/fill.js +5 -0
- package/node_modules/lodash/fp/filter.js +5 -0
- package/node_modules/lodash/fp/find.js +5 -0
- package/node_modules/lodash/fp/findFrom.js +5 -0
- package/node_modules/lodash/fp/findIndex.js +5 -0
- package/node_modules/lodash/fp/findIndexFrom.js +5 -0
- package/node_modules/lodash/fp/findKey.js +5 -0
- package/node_modules/lodash/fp/findLast.js +5 -0
- package/node_modules/lodash/fp/findLastFrom.js +5 -0
- package/node_modules/lodash/fp/findLastIndex.js +5 -0
- package/node_modules/lodash/fp/findLastIndexFrom.js +5 -0
- package/node_modules/lodash/fp/findLastKey.js +5 -0
- package/node_modules/lodash/fp/first.js +1 -0
- package/node_modules/lodash/fp/flatMap.js +5 -0
- package/node_modules/lodash/fp/flatMapDeep.js +5 -0
- package/node_modules/lodash/fp/flatMapDepth.js +5 -0
- package/node_modules/lodash/fp/flatten.js +5 -0
- package/node_modules/lodash/fp/flattenDeep.js +5 -0
- package/node_modules/lodash/fp/flattenDepth.js +5 -0
- package/node_modules/lodash/fp/flip.js +5 -0
- package/node_modules/lodash/fp/floor.js +5 -0
- package/node_modules/lodash/fp/flow.js +5 -0
- package/node_modules/lodash/fp/flowRight.js +5 -0
- package/node_modules/lodash/fp/forEach.js +5 -0
- package/node_modules/lodash/fp/forEachRight.js +5 -0
- package/node_modules/lodash/fp/forIn.js +5 -0
- package/node_modules/lodash/fp/forInRight.js +5 -0
- package/node_modules/lodash/fp/forOwn.js +5 -0
- package/node_modules/lodash/fp/forOwnRight.js +5 -0
- package/node_modules/lodash/fp/fromPairs.js +5 -0
- package/node_modules/lodash/fp/function.js +2 -0
- package/node_modules/lodash/fp/functions.js +5 -0
- package/node_modules/lodash/fp/functionsIn.js +5 -0
- package/node_modules/lodash/fp/get.js +5 -0
- package/node_modules/lodash/fp/getOr.js +5 -0
- package/node_modules/lodash/fp/groupBy.js +5 -0
- package/node_modules/lodash/fp/gt.js +5 -0
- package/node_modules/lodash/fp/gte.js +5 -0
- package/node_modules/lodash/fp/has.js +5 -0
- package/node_modules/lodash/fp/hasIn.js +5 -0
- package/node_modules/lodash/fp/head.js +5 -0
- package/node_modules/lodash/fp/identical.js +1 -0
- package/node_modules/lodash/fp/identity.js +5 -0
- package/node_modules/lodash/fp/inRange.js +5 -0
- package/node_modules/lodash/fp/includes.js +5 -0
- package/node_modules/lodash/fp/includesFrom.js +5 -0
- package/node_modules/lodash/fp/indexBy.js +1 -0
- package/node_modules/lodash/fp/indexOf.js +5 -0
- package/node_modules/lodash/fp/indexOfFrom.js +5 -0
- package/node_modules/lodash/fp/init.js +1 -0
- package/node_modules/lodash/fp/initial.js +5 -0
- package/node_modules/lodash/fp/intersection.js +5 -0
- package/node_modules/lodash/fp/intersectionBy.js +5 -0
- package/node_modules/lodash/fp/intersectionWith.js +5 -0
- package/node_modules/lodash/fp/invert.js +5 -0
- package/node_modules/lodash/fp/invertBy.js +5 -0
- package/node_modules/lodash/fp/invertObj.js +1 -0
- package/node_modules/lodash/fp/invoke.js +5 -0
- package/node_modules/lodash/fp/invokeArgs.js +5 -0
- package/node_modules/lodash/fp/invokeArgsMap.js +5 -0
- package/node_modules/lodash/fp/invokeMap.js +5 -0
- package/node_modules/lodash/fp/isArguments.js +5 -0
- package/node_modules/lodash/fp/isArray.js +5 -0
- package/node_modules/lodash/fp/isArrayBuffer.js +5 -0
- package/node_modules/lodash/fp/isArrayLike.js +5 -0
- package/node_modules/lodash/fp/isArrayLikeObject.js +5 -0
- package/node_modules/lodash/fp/isBoolean.js +5 -0
- package/node_modules/lodash/fp/isBuffer.js +5 -0
- package/node_modules/lodash/fp/isDate.js +5 -0
- package/node_modules/lodash/fp/isElement.js +5 -0
- package/node_modules/lodash/fp/isEmpty.js +5 -0
- package/node_modules/lodash/fp/isEqual.js +5 -0
- package/node_modules/lodash/fp/isEqualWith.js +5 -0
- package/node_modules/lodash/fp/isError.js +5 -0
- package/node_modules/lodash/fp/isFinite.js +5 -0
- package/node_modules/lodash/fp/isFunction.js +5 -0
- package/node_modules/lodash/fp/isInteger.js +5 -0
- package/node_modules/lodash/fp/isLength.js +5 -0
- package/node_modules/lodash/fp/isMap.js +5 -0
- package/node_modules/lodash/fp/isMatch.js +5 -0
- package/node_modules/lodash/fp/isMatchWith.js +5 -0
- package/node_modules/lodash/fp/isNaN.js +5 -0
- package/node_modules/lodash/fp/isNative.js +5 -0
- package/node_modules/lodash/fp/isNil.js +5 -0
- package/node_modules/lodash/fp/isNull.js +5 -0
- package/node_modules/lodash/fp/isNumber.js +5 -0
- package/node_modules/lodash/fp/isObject.js +5 -0
- package/node_modules/lodash/fp/isObjectLike.js +5 -0
- package/node_modules/lodash/fp/isPlainObject.js +5 -0
- package/node_modules/lodash/fp/isRegExp.js +5 -0
- package/node_modules/lodash/fp/isSafeInteger.js +5 -0
- package/node_modules/lodash/fp/isSet.js +5 -0
- package/node_modules/lodash/fp/isString.js +5 -0
- package/node_modules/lodash/fp/isSymbol.js +5 -0
- package/node_modules/lodash/fp/isTypedArray.js +5 -0
- package/node_modules/lodash/fp/isUndefined.js +5 -0
- package/node_modules/lodash/fp/isWeakMap.js +5 -0
- package/node_modules/lodash/fp/isWeakSet.js +5 -0
- package/node_modules/lodash/fp/iteratee.js +5 -0
- package/node_modules/lodash/fp/join.js +5 -0
- package/node_modules/lodash/fp/juxt.js +1 -0
- package/node_modules/lodash/fp/kebabCase.js +5 -0
- package/node_modules/lodash/fp/keyBy.js +5 -0
- package/node_modules/lodash/fp/keys.js +5 -0
- package/node_modules/lodash/fp/keysIn.js +5 -0
- package/node_modules/lodash/fp/lang.js +2 -0
- package/node_modules/lodash/fp/last.js +5 -0
- package/node_modules/lodash/fp/lastIndexOf.js +5 -0
- package/node_modules/lodash/fp/lastIndexOfFrom.js +5 -0
- package/node_modules/lodash/fp/lowerCase.js +5 -0
- package/node_modules/lodash/fp/lowerFirst.js +5 -0
- package/node_modules/lodash/fp/lt.js +5 -0
- package/node_modules/lodash/fp/lte.js +5 -0
- package/node_modules/lodash/fp/map.js +5 -0
- package/node_modules/lodash/fp/mapKeys.js +5 -0
- package/node_modules/lodash/fp/mapValues.js +5 -0
- package/node_modules/lodash/fp/matches.js +1 -0
- package/node_modules/lodash/fp/matchesProperty.js +5 -0
- package/node_modules/lodash/fp/math.js +2 -0
- package/node_modules/lodash/fp/max.js +5 -0
- package/node_modules/lodash/fp/maxBy.js +5 -0
- package/node_modules/lodash/fp/mean.js +5 -0
- package/node_modules/lodash/fp/meanBy.js +5 -0
- package/node_modules/lodash/fp/memoize.js +5 -0
- package/node_modules/lodash/fp/merge.js +5 -0
- package/node_modules/lodash/fp/mergeAll.js +5 -0
- package/node_modules/lodash/fp/mergeAllWith.js +5 -0
- package/node_modules/lodash/fp/mergeWith.js +5 -0
- package/node_modules/lodash/fp/method.js +5 -0
- package/node_modules/lodash/fp/methodOf.js +5 -0
- package/node_modules/lodash/fp/min.js +5 -0
- package/node_modules/lodash/fp/minBy.js +5 -0
- package/node_modules/lodash/fp/mixin.js +5 -0
- package/node_modules/lodash/fp/multiply.js +5 -0
- package/node_modules/lodash/fp/nAry.js +1 -0
- package/node_modules/lodash/fp/negate.js +5 -0
- package/node_modules/lodash/fp/next.js +5 -0
- package/node_modules/lodash/fp/noop.js +5 -0
- package/node_modules/lodash/fp/now.js +5 -0
- package/node_modules/lodash/fp/nth.js +5 -0
- package/node_modules/lodash/fp/nthArg.js +5 -0
- package/node_modules/lodash/fp/number.js +2 -0
- package/node_modules/lodash/fp/object.js +2 -0
- package/node_modules/lodash/fp/omit.js +5 -0
- package/node_modules/lodash/fp/omitAll.js +1 -0
- package/node_modules/lodash/fp/omitBy.js +5 -0
- package/node_modules/lodash/fp/once.js +5 -0
- package/node_modules/lodash/fp/orderBy.js +5 -0
- package/node_modules/lodash/fp/over.js +5 -0
- package/node_modules/lodash/fp/overArgs.js +5 -0
- package/node_modules/lodash/fp/overEvery.js +5 -0
- package/node_modules/lodash/fp/overSome.js +5 -0
- package/node_modules/lodash/fp/pad.js +5 -0
- package/node_modules/lodash/fp/padChars.js +5 -0
- package/node_modules/lodash/fp/padCharsEnd.js +5 -0
- package/node_modules/lodash/fp/padCharsStart.js +5 -0
- package/node_modules/lodash/fp/padEnd.js +5 -0
- package/node_modules/lodash/fp/padStart.js +5 -0
- package/node_modules/lodash/fp/parseInt.js +5 -0
- package/node_modules/lodash/fp/partial.js +5 -0
- package/node_modules/lodash/fp/partialRight.js +5 -0
- package/node_modules/lodash/fp/partition.js +5 -0
- package/node_modules/lodash/fp/path.js +1 -0
- package/node_modules/lodash/fp/pathEq.js +1 -0
- package/node_modules/lodash/fp/pathOr.js +1 -0
- package/node_modules/lodash/fp/paths.js +1 -0
- package/node_modules/lodash/fp/pick.js +5 -0
- package/node_modules/lodash/fp/pickAll.js +1 -0
- package/node_modules/lodash/fp/pickBy.js +5 -0
- package/node_modules/lodash/fp/pipe.js +1 -0
- package/node_modules/lodash/fp/placeholder.js +6 -0
- package/node_modules/lodash/fp/plant.js +5 -0
- package/node_modules/lodash/fp/pluck.js +1 -0
- package/node_modules/lodash/fp/prop.js +1 -0
- package/node_modules/lodash/fp/propEq.js +1 -0
- package/node_modules/lodash/fp/propOr.js +1 -0
- package/node_modules/lodash/fp/property.js +1 -0
- package/node_modules/lodash/fp/propertyOf.js +5 -0
- package/node_modules/lodash/fp/props.js +1 -0
- package/node_modules/lodash/fp/pull.js +5 -0
- package/node_modules/lodash/fp/pullAll.js +5 -0
- package/node_modules/lodash/fp/pullAllBy.js +5 -0
- package/node_modules/lodash/fp/pullAllWith.js +5 -0
- package/node_modules/lodash/fp/pullAt.js +5 -0
- package/node_modules/lodash/fp/random.js +5 -0
- package/node_modules/lodash/fp/range.js +5 -0
- package/node_modules/lodash/fp/rangeRight.js +5 -0
- package/node_modules/lodash/fp/rangeStep.js +5 -0
- package/node_modules/lodash/fp/rangeStepRight.js +5 -0
- package/node_modules/lodash/fp/rearg.js +5 -0
- package/node_modules/lodash/fp/reduce.js +5 -0
- package/node_modules/lodash/fp/reduceRight.js +5 -0
- package/node_modules/lodash/fp/reject.js +5 -0
- package/node_modules/lodash/fp/remove.js +5 -0
- package/node_modules/lodash/fp/repeat.js +5 -0
- package/node_modules/lodash/fp/replace.js +5 -0
- package/node_modules/lodash/fp/rest.js +5 -0
- package/node_modules/lodash/fp/restFrom.js +5 -0
- package/node_modules/lodash/fp/result.js +5 -0
- package/node_modules/lodash/fp/reverse.js +5 -0
- package/node_modules/lodash/fp/round.js +5 -0
- package/node_modules/lodash/fp/sample.js +5 -0
- package/node_modules/lodash/fp/sampleSize.js +5 -0
- package/node_modules/lodash/fp/seq.js +2 -0
- package/node_modules/lodash/fp/set.js +5 -0
- package/node_modules/lodash/fp/setWith.js +5 -0
- package/node_modules/lodash/fp/shuffle.js +5 -0
- package/node_modules/lodash/fp/size.js +5 -0
- package/node_modules/lodash/fp/slice.js +5 -0
- package/node_modules/lodash/fp/snakeCase.js +5 -0
- package/node_modules/lodash/fp/some.js +5 -0
- package/node_modules/lodash/fp/sortBy.js +5 -0
- package/node_modules/lodash/fp/sortedIndex.js +5 -0
- package/node_modules/lodash/fp/sortedIndexBy.js +5 -0
- package/node_modules/lodash/fp/sortedIndexOf.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndex.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndexBy.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndexOf.js +5 -0
- package/node_modules/lodash/fp/sortedUniq.js +5 -0
- package/node_modules/lodash/fp/sortedUniqBy.js +5 -0
- package/node_modules/lodash/fp/split.js +5 -0
- package/node_modules/lodash/fp/spread.js +5 -0
- package/node_modules/lodash/fp/spreadFrom.js +5 -0
- package/node_modules/lodash/fp/startCase.js +5 -0
- package/node_modules/lodash/fp/startsWith.js +5 -0
- package/node_modules/lodash/fp/string.js +2 -0
- package/node_modules/lodash/fp/stubArray.js +5 -0
- package/node_modules/lodash/fp/stubFalse.js +5 -0
- package/node_modules/lodash/fp/stubObject.js +5 -0
- package/node_modules/lodash/fp/stubString.js +5 -0
- package/node_modules/lodash/fp/stubTrue.js +5 -0
- package/node_modules/lodash/fp/subtract.js +5 -0
- package/node_modules/lodash/fp/sum.js +5 -0
- package/node_modules/lodash/fp/sumBy.js +5 -0
- package/node_modules/lodash/fp/symmetricDifference.js +1 -0
- package/node_modules/lodash/fp/symmetricDifferenceBy.js +1 -0
- package/node_modules/lodash/fp/symmetricDifferenceWith.js +1 -0
- package/node_modules/lodash/fp/tail.js +5 -0
- package/node_modules/lodash/fp/take.js +5 -0
- package/node_modules/lodash/fp/takeLast.js +1 -0
- package/node_modules/lodash/fp/takeLastWhile.js +1 -0
- package/node_modules/lodash/fp/takeRight.js +5 -0
- package/node_modules/lodash/fp/takeRightWhile.js +5 -0
- package/node_modules/lodash/fp/takeWhile.js +5 -0
- package/node_modules/lodash/fp/tap.js +5 -0
- package/node_modules/lodash/fp/template.js +5 -0
- package/node_modules/lodash/fp/templateSettings.js +5 -0
- package/node_modules/lodash/fp/throttle.js +5 -0
- package/node_modules/lodash/fp/thru.js +5 -0
- package/node_modules/lodash/fp/times.js +5 -0
- package/node_modules/lodash/fp/toArray.js +5 -0
- package/node_modules/lodash/fp/toFinite.js +5 -0
- package/node_modules/lodash/fp/toInteger.js +5 -0
- package/node_modules/lodash/fp/toIterator.js +5 -0
- package/node_modules/lodash/fp/toJSON.js +5 -0
- package/node_modules/lodash/fp/toLength.js +5 -0
- package/node_modules/lodash/fp/toLower.js +5 -0
- package/node_modules/lodash/fp/toNumber.js +5 -0
- package/node_modules/lodash/fp/toPairs.js +5 -0
- package/node_modules/lodash/fp/toPairsIn.js +5 -0
- package/node_modules/lodash/fp/toPath.js +5 -0
- package/node_modules/lodash/fp/toPlainObject.js +5 -0
- package/node_modules/lodash/fp/toSafeInteger.js +5 -0
- package/node_modules/lodash/fp/toString.js +5 -0
- package/node_modules/lodash/fp/toUpper.js +5 -0
- package/node_modules/lodash/fp/transform.js +5 -0
- package/node_modules/lodash/fp/trim.js +5 -0
- package/node_modules/lodash/fp/trimChars.js +5 -0
- package/node_modules/lodash/fp/trimCharsEnd.js +5 -0
- package/node_modules/lodash/fp/trimCharsStart.js +5 -0
- package/node_modules/lodash/fp/trimEnd.js +5 -0
- package/node_modules/lodash/fp/trimStart.js +5 -0
- package/node_modules/lodash/fp/truncate.js +5 -0
- package/node_modules/lodash/fp/unapply.js +1 -0
- package/node_modules/lodash/fp/unary.js +5 -0
- package/node_modules/lodash/fp/unescape.js +5 -0
- package/node_modules/lodash/fp/union.js +5 -0
- package/node_modules/lodash/fp/unionBy.js +5 -0
- package/node_modules/lodash/fp/unionWith.js +5 -0
- package/node_modules/lodash/fp/uniq.js +5 -0
- package/node_modules/lodash/fp/uniqBy.js +5 -0
- package/node_modules/lodash/fp/uniqWith.js +5 -0
- package/node_modules/lodash/fp/uniqueId.js +5 -0
- package/node_modules/lodash/fp/unnest.js +1 -0
- package/node_modules/lodash/fp/unset.js +5 -0
- package/node_modules/lodash/fp/unzip.js +5 -0
- package/node_modules/lodash/fp/unzipWith.js +5 -0
- package/node_modules/lodash/fp/update.js +5 -0
- package/node_modules/lodash/fp/updateWith.js +5 -0
- package/node_modules/lodash/fp/upperCase.js +5 -0
- package/node_modules/lodash/fp/upperFirst.js +5 -0
- package/node_modules/lodash/fp/useWith.js +1 -0
- package/node_modules/lodash/fp/util.js +2 -0
- package/node_modules/lodash/fp/value.js +5 -0
- package/node_modules/lodash/fp/valueOf.js +5 -0
- package/node_modules/lodash/fp/values.js +5 -0
- package/node_modules/lodash/fp/valuesIn.js +5 -0
- package/node_modules/lodash/fp/where.js +1 -0
- package/node_modules/lodash/fp/whereEq.js +1 -0
- package/node_modules/lodash/fp/without.js +5 -0
- package/node_modules/lodash/fp/words.js +5 -0
- package/node_modules/lodash/fp/wrap.js +5 -0
- package/node_modules/lodash/fp/wrapperAt.js +5 -0
- package/node_modules/lodash/fp/wrapperChain.js +5 -0
- package/node_modules/lodash/fp/wrapperLodash.js +5 -0
- package/node_modules/lodash/fp/wrapperReverse.js +5 -0
- package/node_modules/lodash/fp/wrapperValue.js +5 -0
- package/node_modules/lodash/fp/xor.js +5 -0
- package/node_modules/lodash/fp/xorBy.js +5 -0
- package/node_modules/lodash/fp/xorWith.js +5 -0
- package/node_modules/lodash/fp/zip.js +5 -0
- package/node_modules/lodash/fp/zipAll.js +5 -0
- package/node_modules/lodash/fp/zipObj.js +1 -0
- package/node_modules/lodash/fp/zipObject.js +5 -0
- package/node_modules/lodash/fp/zipObjectDeep.js +5 -0
- package/node_modules/lodash/fp/zipWith.js +5 -0
- package/node_modules/lodash/fp.js +2 -0
- package/node_modules/lodash/fromPairs.js +28 -0
- package/node_modules/lodash/function.js +25 -0
- package/node_modules/lodash/functions.js +31 -0
- package/node_modules/lodash/functionsIn.js +31 -0
- package/node_modules/lodash/get.js +33 -0
- package/node_modules/lodash/groupBy.js +41 -0
- package/node_modules/lodash/gt.js +29 -0
- package/node_modules/lodash/gte.js +30 -0
- package/node_modules/lodash/has.js +35 -0
- package/node_modules/lodash/hasIn.js +34 -0
- package/node_modules/lodash/head.js +23 -0
- package/node_modules/lodash/identity.js +21 -0
- package/node_modules/lodash/inRange.js +55 -0
- package/node_modules/lodash/includes.js +53 -0
- package/node_modules/lodash/index.js +1 -0
- package/node_modules/lodash/indexOf.js +42 -0
- package/node_modules/lodash/initial.js +22 -0
- package/node_modules/lodash/intersection.js +30 -0
- package/node_modules/lodash/intersectionBy.js +45 -0
- package/node_modules/lodash/intersectionWith.js +41 -0
- package/node_modules/lodash/invert.js +42 -0
- package/node_modules/lodash/invertBy.js +56 -0
- package/node_modules/lodash/invoke.js +24 -0
- package/node_modules/lodash/invokeMap.js +41 -0
- package/node_modules/lodash/isArguments.js +36 -0
- package/node_modules/lodash/isArray.js +26 -0
- package/node_modules/lodash/isArrayBuffer.js +27 -0
- package/node_modules/lodash/isArrayLike.js +33 -0
- package/node_modules/lodash/isArrayLikeObject.js +33 -0
- package/node_modules/lodash/isBoolean.js +29 -0
- package/node_modules/lodash/isBuffer.js +38 -0
- package/node_modules/lodash/isDate.js +27 -0
- package/node_modules/lodash/isElement.js +25 -0
- package/node_modules/lodash/isEmpty.js +77 -0
- package/node_modules/lodash/isEqual.js +35 -0
- package/node_modules/lodash/isEqualWith.js +41 -0
- package/node_modules/lodash/isError.js +36 -0
- package/node_modules/lodash/isFinite.js +36 -0
- package/node_modules/lodash/isFunction.js +37 -0
- package/node_modules/lodash/isInteger.js +33 -0
- package/node_modules/lodash/isLength.js +35 -0
- package/node_modules/lodash/isMap.js +27 -0
- package/node_modules/lodash/isMatch.js +36 -0
- package/node_modules/lodash/isMatchWith.js +41 -0
- package/node_modules/lodash/isNaN.js +38 -0
- package/node_modules/lodash/isNative.js +40 -0
- package/node_modules/lodash/isNil.js +25 -0
- package/node_modules/lodash/isNull.js +22 -0
- package/node_modules/lodash/isNumber.js +38 -0
- package/node_modules/lodash/isObject.js +31 -0
- package/node_modules/lodash/isObjectLike.js +29 -0
- package/node_modules/lodash/isPlainObject.js +62 -0
- package/node_modules/lodash/isRegExp.js +27 -0
- package/node_modules/lodash/isSafeInteger.js +37 -0
- package/node_modules/lodash/isSet.js +27 -0
- package/node_modules/lodash/isString.js +30 -0
- package/node_modules/lodash/isSymbol.js +29 -0
- package/node_modules/lodash/isTypedArray.js +27 -0
- package/node_modules/lodash/isUndefined.js +22 -0
- package/node_modules/lodash/isWeakMap.js +28 -0
- package/node_modules/lodash/isWeakSet.js +28 -0
- package/node_modules/lodash/iteratee.js +53 -0
- package/node_modules/lodash/join.js +26 -0
- package/node_modules/lodash/kebabCase.js +28 -0
- package/node_modules/lodash/keyBy.js +36 -0
- package/node_modules/lodash/keys.js +37 -0
- package/node_modules/lodash/keysIn.js +32 -0
- package/node_modules/lodash/lang.js +58 -0
- package/node_modules/lodash/last.js +20 -0
- package/node_modules/lodash/lastIndexOf.js +46 -0
- package/node_modules/lodash/lodash.js +17209 -0
- package/node_modules/lodash/lodash.min.js +140 -0
- package/node_modules/lodash/lowerCase.js +27 -0
- package/node_modules/lodash/lowerFirst.js +22 -0
- package/node_modules/lodash/lt.js +29 -0
- package/node_modules/lodash/lte.js +30 -0
- package/node_modules/lodash/map.js +53 -0
- package/node_modules/lodash/mapKeys.js +36 -0
- package/node_modules/lodash/mapValues.js +43 -0
- package/node_modules/lodash/matches.js +46 -0
- package/node_modules/lodash/matchesProperty.js +44 -0
- package/node_modules/lodash/math.js +17 -0
- package/node_modules/lodash/max.js +29 -0
- package/node_modules/lodash/maxBy.js +34 -0
- package/node_modules/lodash/mean.js +22 -0
- package/node_modules/lodash/meanBy.js +31 -0
- package/node_modules/lodash/memoize.js +73 -0
- package/node_modules/lodash/merge.js +39 -0
- package/node_modules/lodash/mergeWith.js +39 -0
- package/node_modules/lodash/method.js +34 -0
- package/node_modules/lodash/methodOf.js +33 -0
- package/node_modules/lodash/min.js +29 -0
- package/node_modules/lodash/minBy.js +34 -0
- package/node_modules/lodash/mixin.js +74 -0
- package/node_modules/lodash/multiply.js +22 -0
- package/node_modules/lodash/negate.js +40 -0
- package/node_modules/lodash/next.js +35 -0
- package/node_modules/lodash/noop.js +17 -0
- package/node_modules/lodash/now.js +23 -0
- package/node_modules/lodash/nth.js +29 -0
- package/node_modules/lodash/nthArg.js +32 -0
- package/node_modules/lodash/number.js +5 -0
- package/node_modules/lodash/object.js +49 -0
- package/node_modules/lodash/omit.js +57 -0
- package/node_modules/lodash/omitBy.js +29 -0
- package/node_modules/lodash/once.js +25 -0
- package/node_modules/lodash/orderBy.js +47 -0
- package/node_modules/lodash/over.js +24 -0
- package/node_modules/lodash/overArgs.js +61 -0
- package/node_modules/lodash/overEvery.js +34 -0
- package/node_modules/lodash/overSome.js +37 -0
- package/node_modules/lodash/package.json +67 -0
- package/node_modules/lodash/pad.js +49 -0
- package/node_modules/lodash/padEnd.js +39 -0
- package/node_modules/lodash/padStart.js +39 -0
- package/node_modules/lodash/parseInt.js +43 -0
- package/node_modules/lodash/partial.js +50 -0
- package/node_modules/lodash/partialRight.js +49 -0
- package/node_modules/lodash/partition.js +43 -0
- package/node_modules/lodash/pick.js +25 -0
- package/node_modules/lodash/pickBy.js +37 -0
- package/node_modules/lodash/plant.js +48 -0
- package/node_modules/lodash/property.js +32 -0
- package/node_modules/lodash/propertyOf.js +30 -0
- package/node_modules/lodash/pull.js +29 -0
- package/node_modules/lodash/pullAll.js +29 -0
- package/node_modules/lodash/pullAllBy.js +33 -0
- package/node_modules/lodash/pullAllWith.js +32 -0
- package/node_modules/lodash/pullAt.js +43 -0
- package/node_modules/lodash/random.js +82 -0
- package/node_modules/lodash/range.js +46 -0
- package/node_modules/lodash/rangeRight.js +41 -0
- package/node_modules/lodash/rearg.js +33 -0
- package/node_modules/lodash/reduce.js +51 -0
- package/node_modules/lodash/reduceRight.js +36 -0
- package/node_modules/lodash/reject.js +46 -0
- package/node_modules/lodash/release.md +48 -0
- package/node_modules/lodash/remove.js +53 -0
- package/node_modules/lodash/repeat.js +37 -0
- package/node_modules/lodash/replace.js +29 -0
- package/node_modules/lodash/rest.js +40 -0
- package/node_modules/lodash/result.js +56 -0
- package/node_modules/lodash/reverse.js +34 -0
- package/node_modules/lodash/round.js +26 -0
- package/node_modules/lodash/sample.js +24 -0
- package/node_modules/lodash/sampleSize.js +37 -0
- package/node_modules/lodash/seq.js +16 -0
- package/node_modules/lodash/set.js +35 -0
- package/node_modules/lodash/setWith.js +32 -0
- package/node_modules/lodash/shuffle.js +25 -0
- package/node_modules/lodash/size.js +46 -0
- package/node_modules/lodash/slice.js +37 -0
- package/node_modules/lodash/snakeCase.js +28 -0
- package/node_modules/lodash/some.js +51 -0
- package/node_modules/lodash/sortBy.js +48 -0
- package/node_modules/lodash/sortedIndex.js +24 -0
- package/node_modules/lodash/sortedIndexBy.js +33 -0
- package/node_modules/lodash/sortedIndexOf.js +31 -0
- package/node_modules/lodash/sortedLastIndex.js +25 -0
- package/node_modules/lodash/sortedLastIndexBy.js +33 -0
- package/node_modules/lodash/sortedLastIndexOf.js +31 -0
- package/node_modules/lodash/sortedUniq.js +24 -0
- package/node_modules/lodash/sortedUniqBy.js +26 -0
- package/node_modules/lodash/split.js +52 -0
- package/node_modules/lodash/spread.js +63 -0
- package/node_modules/lodash/startCase.js +29 -0
- package/node_modules/lodash/startsWith.js +39 -0
- package/node_modules/lodash/string.js +33 -0
- package/node_modules/lodash/stubArray.js +23 -0
- package/node_modules/lodash/stubFalse.js +18 -0
- package/node_modules/lodash/stubObject.js +23 -0
- package/node_modules/lodash/stubString.js +18 -0
- package/node_modules/lodash/stubTrue.js +18 -0
- package/node_modules/lodash/subtract.js +22 -0
- package/node_modules/lodash/sum.js +24 -0
- package/node_modules/lodash/sumBy.js +33 -0
- package/node_modules/lodash/tail.js +22 -0
- package/node_modules/lodash/take.js +37 -0
- package/node_modules/lodash/takeRight.js +39 -0
- package/node_modules/lodash/takeRightWhile.js +45 -0
- package/node_modules/lodash/takeWhile.js +45 -0
- package/node_modules/lodash/tap.js +29 -0
- package/node_modules/lodash/template.js +272 -0
- package/node_modules/lodash/templateSettings.js +67 -0
- package/node_modules/lodash/throttle.js +69 -0
- package/node_modules/lodash/thru.js +28 -0
- package/node_modules/lodash/times.js +51 -0
- package/node_modules/lodash/toArray.js +58 -0
- package/node_modules/lodash/toFinite.js +42 -0
- package/node_modules/lodash/toInteger.js +36 -0
- package/node_modules/lodash/toIterator.js +23 -0
- package/node_modules/lodash/toJSON.js +1 -0
- package/node_modules/lodash/toLength.js +38 -0
- package/node_modules/lodash/toLower.js +28 -0
- package/node_modules/lodash/toNumber.js +64 -0
- package/node_modules/lodash/toPairs.js +30 -0
- package/node_modules/lodash/toPairsIn.js +30 -0
- package/node_modules/lodash/toPath.js +33 -0
- package/node_modules/lodash/toPlainObject.js +32 -0
- package/node_modules/lodash/toSafeInteger.js +37 -0
- package/node_modules/lodash/toString.js +28 -0
- package/node_modules/lodash/toUpper.js +28 -0
- package/node_modules/lodash/transform.js +65 -0
- package/node_modules/lodash/trim.js +47 -0
- package/node_modules/lodash/trimEnd.js +41 -0
- package/node_modules/lodash/trimStart.js +43 -0
- package/node_modules/lodash/truncate.js +111 -0
- package/node_modules/lodash/unary.js +22 -0
- package/node_modules/lodash/unescape.js +34 -0
- package/node_modules/lodash/union.js +26 -0
- package/node_modules/lodash/unionBy.js +39 -0
- package/node_modules/lodash/unionWith.js +34 -0
- package/node_modules/lodash/uniq.js +25 -0
- package/node_modules/lodash/uniqBy.js +31 -0
- package/node_modules/lodash/uniqWith.js +28 -0
- package/node_modules/lodash/uniqueId.js +28 -0
- package/node_modules/lodash/unset.js +34 -0
- package/node_modules/lodash/unzip.js +45 -0
- package/node_modules/lodash/unzipWith.js +39 -0
- package/node_modules/lodash/update.js +35 -0
- package/node_modules/lodash/updateWith.js +33 -0
- package/node_modules/lodash/upperCase.js +27 -0
- package/node_modules/lodash/upperFirst.js +22 -0
- package/node_modules/lodash/util.js +34 -0
- package/node_modules/lodash/value.js +1 -0
- package/node_modules/lodash/valueOf.js +1 -0
- package/node_modules/lodash/values.js +34 -0
- package/node_modules/lodash/valuesIn.js +32 -0
- package/node_modules/lodash/without.js +31 -0
- package/node_modules/lodash/words.js +35 -0
- package/node_modules/lodash/wrap.js +30 -0
- package/node_modules/lodash/wrapperAt.js +48 -0
- package/node_modules/lodash/wrapperChain.js +34 -0
- package/node_modules/lodash/wrapperLodash.js +147 -0
- package/node_modules/lodash/wrapperReverse.js +44 -0
- package/node_modules/lodash/wrapperValue.js +21 -0
- package/node_modules/lodash/xor.js +28 -0
- package/node_modules/lodash/xorBy.js +39 -0
- package/node_modules/lodash/xorWith.js +34 -0
- package/node_modules/lodash/zip.js +22 -0
- package/node_modules/lodash/zipObject.js +24 -0
- package/node_modules/lodash/zipObjectDeep.js +23 -0
- package/node_modules/lodash/zipWith.js +32 -0
- package/node_modules/lodash.get/LICENSE +47 -0
- package/node_modules/lodash.get/README.md +18 -0
- package/node_modules/lodash.get/index.js +931 -0
- package/node_modules/lodash.get/package.json +72 -0
- package/node_modules/lru-cache/LICENSE +15 -0
- package/node_modules/lru-cache/README.md +166 -0
- package/node_modules/lru-cache/index.js +334 -0
- package/node_modules/lru-cache/package.json +72 -0
- package/node_modules/make-dir/index.d.ts +66 -0
- package/node_modules/make-dir/index.js +156 -0
- package/node_modules/make-dir/license +9 -0
- package/node_modules/make-dir/node_modules/semver/CHANGELOG.md +70 -0
- package/node_modules/make-dir/node_modules/semver/LICENSE +15 -0
- package/node_modules/make-dir/node_modules/semver/README.md +443 -0
- package/node_modules/make-dir/node_modules/semver/bin/semver.js +174 -0
- package/node_modules/make-dir/node_modules/semver/package.json +63 -0
- package/node_modules/make-dir/node_modules/semver/range.bnf +16 -0
- package/node_modules/make-dir/node_modules/semver/semver.js +1596 -0
- package/node_modules/make-dir/package.json +94 -0
- package/node_modules/make-dir/readme.md +125 -0
- package/node_modules/maplex/README.md +31 -0
- package/node_modules/maplex/maplex.js +116 -0
- package/node_modules/maplex/package-lock.json.2349981881 +2125 -0
- package/node_modules/maplex/package.json +56 -0
- package/node_modules/maplex/test.js +43 -0
- package/node_modules/methods/HISTORY.md +29 -0
- package/node_modules/methods/LICENSE +24 -0
- package/node_modules/methods/README.md +51 -0
- package/node_modules/methods/index.js +69 -0
- package/node_modules/methods/package.json +82 -0
- package/node_modules/mime/CHANGELOG.md +296 -0
- package/node_modules/mime/LICENSE +21 -0
- package/node_modules/mime/Mime.js +97 -0
- package/node_modules/mime/README.md +187 -0
- package/node_modules/mime/cli.js +46 -0
- package/node_modules/mime/index.js +4 -0
- package/node_modules/mime/lite.js +4 -0
- package/node_modules/mime/package.json +84 -0
- package/node_modules/mime/types/other.js +1 -0
- package/node_modules/mime/types/standard.js +1 -0
- package/node_modules/mime-db/HISTORY.md +507 -0
- package/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-db/README.md +100 -0
- package/node_modules/mime-db/db.json +8519 -0
- package/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-db/package.json +106 -0
- package/node_modules/mime-types/HISTORY.md +397 -0
- package/node_modules/mime-types/LICENSE +23 -0
- package/node_modules/mime-types/README.md +113 -0
- package/node_modules/mime-types/index.js +188 -0
- package/node_modules/mime-types/package.json +92 -0
- package/node_modules/mimic-response/index.d.ts +17 -0
- package/node_modules/mimic-response/index.js +38 -0
- package/node_modules/mimic-response/license +9 -0
- package/node_modules/mimic-response/package.json +77 -0
- package/node_modules/mimic-response/readme.md +57 -0
- package/node_modules/minimatch/LICENSE +15 -0
- package/node_modules/minimatch/README.md +230 -0
- package/node_modules/minimatch/minimatch.js +947 -0
- package/node_modules/minimatch/package.json +73 -0
- package/node_modules/minipass/LICENSE +15 -0
- package/node_modules/minipass/README.md +728 -0
- package/node_modules/minipass/index.d.ts +149 -0
- package/node_modules/minipass/index.js +649 -0
- package/node_modules/minipass/package.json +93 -0
- package/node_modules/minizlib/LICENSE +26 -0
- package/node_modules/minizlib/README.md +60 -0
- package/node_modules/minizlib/constants.js +115 -0
- package/node_modules/minizlib/index.js +348 -0
- package/node_modules/minizlib/package.json +78 -0
- package/node_modules/mkdirp/CHANGELOG.md +15 -0
- package/node_modules/mkdirp/LICENSE +21 -0
- package/node_modules/mkdirp/bin/cmd.js +68 -0
- package/node_modules/mkdirp/index.js +31 -0
- package/node_modules/mkdirp/lib/find-made.js +29 -0
- package/node_modules/mkdirp/lib/mkdirp-manual.js +64 -0
- package/node_modules/mkdirp/lib/mkdirp-native.js +39 -0
- package/node_modules/mkdirp/lib/opts-arg.js +23 -0
- package/node_modules/mkdirp/lib/path-arg.js +29 -0
- package/node_modules/mkdirp/lib/use-native.js +10 -0
- package/node_modules/mkdirp/package.json +78 -0
- package/node_modules/mkdirp/readme.markdown +266 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +75 -0
- package/node_modules/ms/readme.md +60 -0
- package/node_modules/multi-progress/.gitattributes +17 -0
- package/node_modules/multi-progress/CHANGELOG.md +56 -0
- package/node_modules/multi-progress/LICENSE.txt +21 -0
- package/node_modules/multi-progress/multi-progress.js +98 -0
- package/node_modules/multi-progress/package.json +58 -0
- package/node_modules/multi-progress/readme.md +33 -0
- package/node_modules/nan/CHANGELOG.md +545 -0
- package/node_modules/nan/LICENSE.md +9 -0
- package/node_modules/nan/README.md +456 -0
- package/node_modules/nan/doc/asyncworker.md +146 -0
- package/node_modules/nan/doc/buffers.md +54 -0
- package/node_modules/nan/doc/callback.md +76 -0
- package/node_modules/nan/doc/converters.md +41 -0
- package/node_modules/nan/doc/errors.md +226 -0
- package/node_modules/nan/doc/json.md +62 -0
- package/node_modules/nan/doc/maybe_types.md +583 -0
- package/node_modules/nan/doc/methods.md +664 -0
- package/node_modules/nan/doc/new.md +147 -0
- package/node_modules/nan/doc/node_misc.md +123 -0
- package/node_modules/nan/doc/object_wrappers.md +263 -0
- package/node_modules/nan/doc/persistent.md +296 -0
- package/node_modules/nan/doc/scopes.md +73 -0
- package/node_modules/nan/doc/script.md +58 -0
- package/node_modules/nan/doc/string_bytes.md +62 -0
- package/node_modules/nan/doc/v8_internals.md +199 -0
- package/node_modules/nan/doc/v8_misc.md +85 -0
- package/node_modules/nan/include_dirs.js +1 -0
- package/node_modules/nan/nan.h +2909 -0
- package/node_modules/nan/nan_callbacks.h +88 -0
- package/node_modules/nan/nan_callbacks_12_inl.h +514 -0
- package/node_modules/nan/nan_callbacks_pre_12_inl.h +520 -0
- package/node_modules/nan/nan_converters.h +72 -0
- package/node_modules/nan/nan_converters_43_inl.h +68 -0
- package/node_modules/nan/nan_converters_pre_43_inl.h +42 -0
- package/node_modules/nan/nan_define_own_property_helper.h +29 -0
- package/node_modules/nan/nan_implementation_12_inl.h +430 -0
- package/node_modules/nan/nan_implementation_pre_12_inl.h +263 -0
- package/node_modules/nan/nan_json.h +166 -0
- package/node_modules/nan/nan_maybe_43_inl.h +356 -0
- package/node_modules/nan/nan_maybe_pre_43_inl.h +268 -0
- package/node_modules/nan/nan_new.h +340 -0
- package/node_modules/nan/nan_object_wrap.h +156 -0
- package/node_modules/nan/nan_persistent_12_inl.h +132 -0
- package/node_modules/nan/nan_persistent_pre_12_inl.h +242 -0
- package/node_modules/nan/nan_private.h +73 -0
- package/node_modules/nan/nan_scriptorigin.h +76 -0
- package/node_modules/nan/nan_string_bytes.h +305 -0
- package/node_modules/nan/nan_typedarray_contents.h +96 -0
- package/node_modules/nan/nan_weak.h +437 -0
- package/node_modules/nan/package.json +101 -0
- package/node_modules/nan/tools/1to2.js +412 -0
- package/node_modules/nan/tools/README.md +14 -0
- package/node_modules/nan/tools/package.json +19 -0
- package/node_modules/node-fetch/LICENSE.md +22 -0
- package/node_modules/node-fetch/README.md +590 -0
- package/node_modules/node-fetch/browser.js +25 -0
- package/node_modules/node-fetch/lib/index.es.js +1688 -0
- package/node_modules/node-fetch/lib/index.js +1697 -0
- package/node_modules/node-fetch/lib/index.mjs +1686 -0
- package/node_modules/node-fetch/package.json +107 -0
- package/node_modules/nopt/CHANGELOG.md +58 -0
- package/node_modules/nopt/LICENSE +15 -0
- package/node_modules/nopt/README.md +213 -0
- package/node_modules/nopt/bin/nopt.js +54 -0
- package/node_modules/nopt/lib/nopt.js +441 -0
- package/node_modules/nopt/package.json +70 -0
- package/node_modules/normalize-path/LICENSE +21 -0
- package/node_modules/normalize-path/README.md +127 -0
- package/node_modules/normalize-path/index.js +35 -0
- package/node_modules/normalize-path/package.json +119 -0
- package/node_modules/npmlog/LICENSE +15 -0
- package/node_modules/npmlog/README.md +216 -0
- package/node_modules/npmlog/log.js +403 -0
- package/node_modules/npmlog/package.json +69 -0
- package/node_modules/object-assign/index.js +90 -0
- package/node_modules/object-assign/license +21 -0
- package/node_modules/object-assign/package.json +77 -0
- package/node_modules/object-assign/readme.md +61 -0
- package/node_modules/object-inspect/.eslintrc +53 -0
- package/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/node_modules/object-inspect/.nycrc +13 -0
- package/node_modules/object-inspect/CHANGELOG.md +360 -0
- package/node_modules/object-inspect/LICENSE +21 -0
- package/node_modules/object-inspect/example/all.js +23 -0
- package/node_modules/object-inspect/example/circular.js +6 -0
- package/node_modules/object-inspect/example/fn.js +5 -0
- package/node_modules/object-inspect/example/inspect.js +10 -0
- package/node_modules/object-inspect/index.js +512 -0
- package/node_modules/object-inspect/package-support.json +20 -0
- package/node_modules/object-inspect/package.json +126 -0
- package/node_modules/object-inspect/readme.markdown +86 -0
- package/node_modules/object-inspect/test/bigint.js +58 -0
- package/node_modules/object-inspect/test/browser/dom.js +15 -0
- package/node_modules/object-inspect/test/circular.js +16 -0
- package/node_modules/object-inspect/test/deep.js +12 -0
- package/node_modules/object-inspect/test/element.js +53 -0
- package/node_modules/object-inspect/test/err.js +48 -0
- package/node_modules/object-inspect/test/fakes.js +29 -0
- package/node_modules/object-inspect/test/fn.js +76 -0
- package/node_modules/object-inspect/test/has.js +15 -0
- package/node_modules/object-inspect/test/holes.js +15 -0
- package/node_modules/object-inspect/test/indent-option.js +271 -0
- package/node_modules/object-inspect/test/inspect.js +139 -0
- package/node_modules/object-inspect/test/lowbyte.js +12 -0
- package/node_modules/object-inspect/test/number.js +58 -0
- package/node_modules/object-inspect/test/quoteStyle.js +17 -0
- package/node_modules/object-inspect/test/toStringTag.js +40 -0
- package/node_modules/object-inspect/test/undef.js +12 -0
- package/node_modules/object-inspect/test/values.js +211 -0
- package/node_modules/object-inspect/test-core-js.js +26 -0
- package/node_modules/object-inspect/util.inspect.js +1 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +74 -0
- package/node_modules/p-finally/index.js +15 -0
- package/node_modules/p-finally/license +21 -0
- package/node_modules/p-finally/package.json +77 -0
- package/node_modules/p-finally/readme.md +47 -0
- package/node_modules/p-retry/index.js +52 -0
- package/node_modules/p-retry/license +9 -0
- package/node_modules/p-retry/package.json +83 -0
- package/node_modules/p-retry/readme.md +109 -0
- package/node_modules/p-timeout/index.d.ts +72 -0
- package/node_modules/p-timeout/index.js +57 -0
- package/node_modules/p-timeout/license +9 -0
- package/node_modules/p-timeout/package.json +80 -0
- package/node_modules/p-timeout/readme.md +87 -0
- package/node_modules/pako/CHANGELOG.md +164 -0
- package/node_modules/pako/LICENSE +21 -0
- package/node_modules/pako/README.md +191 -0
- package/node_modules/pako/dist/pako.js +6818 -0
- package/node_modules/pako/dist/pako.min.js +1 -0
- package/node_modules/pako/dist/pako_deflate.js +3997 -0
- package/node_modules/pako/dist/pako_deflate.min.js +1 -0
- package/node_modules/pako/dist/pako_inflate.js +3300 -0
- package/node_modules/pako/dist/pako_inflate.min.js +1 -0
- package/node_modules/pako/index.js +14 -0
- package/node_modules/pako/lib/deflate.js +400 -0
- package/node_modules/pako/lib/inflate.js +423 -0
- package/node_modules/pako/lib/utils/common.js +105 -0
- package/node_modules/pako/lib/utils/strings.js +187 -0
- package/node_modules/pako/lib/zlib/README +59 -0
- package/node_modules/pako/lib/zlib/adler32.js +51 -0
- package/node_modules/pako/lib/zlib/constants.js +68 -0
- package/node_modules/pako/lib/zlib/crc32.js +59 -0
- package/node_modules/pako/lib/zlib/deflate.js +1874 -0
- package/node_modules/pako/lib/zlib/gzheader.js +58 -0
- package/node_modules/pako/lib/zlib/inffast.js +345 -0
- package/node_modules/pako/lib/zlib/inflate.js +1556 -0
- package/node_modules/pako/lib/zlib/inftrees.js +343 -0
- package/node_modules/pako/lib/zlib/messages.js +32 -0
- package/node_modules/pako/lib/zlib/trees.js +1222 -0
- package/node_modules/pako/lib/zlib/zstream.js +47 -0
- package/node_modules/pako/package.json +94 -0
- package/node_modules/parse-listing/..gitignore.un~ +0 -0
- package/node_modules/parse-listing/..travis.yml.un~ +0 -0
- package/node_modules/parse-listing/.Makefile.un~ +0 -0
- package/node_modules/parse-listing/.README.md.un~ +0 -0
- package/node_modules/parse-listing/.npmignore +4 -0
- package/node_modules/parse-listing/.package.json.un~ +0 -0
- package/node_modules/parse-listing/.parser.js.un~ +0 -0
- package/node_modules/parse-listing/.parset_test.js.un~ +0 -0
- package/node_modules/parse-listing/.travis.yml +7 -0
- package/node_modules/parse-listing/Makefile +30 -0
- package/node_modules/parse-listing/README.md +115 -0
- package/node_modules/parse-listing/_site/Makefile +30 -0
- package/node_modules/parse-listing/_site/README.md +115 -0
- package/node_modules/parse-listing/_site/package.json +41 -0
- package/node_modules/parse-listing/_site/src/ftp-parser.js +456 -0
- package/node_modules/parse-listing/_site/src/parser.js +338 -0
- package/node_modules/parse-listing/_site/test/parser.test.js +707 -0
- package/node_modules/parse-listing/package.json +74 -0
- package/node_modules/parse-listing/src/.parser.js.un~ +0 -0
- package/node_modules/parse-listing/src/ftp-parser.js +456 -0
- package/node_modules/parse-listing/src/parser.js +339 -0
- package/node_modules/parse-listing/test/.parser.test.js.un~ +0 -0
- package/node_modules/parse-listing/test/.parser_test.js.un~ +0 -0
- package/node_modules/parse-listing/test/parser.test.js +714 -0
- package/node_modules/path-is-absolute/index.js +20 -0
- package/node_modules/path-is-absolute/license +21 -0
- package/node_modules/path-is-absolute/package.json +78 -0
- package/node_modules/path-is-absolute/readme.md +59 -0
- package/node_modules/picomatch/CHANGELOG.md +136 -0
- package/node_modules/picomatch/LICENSE +21 -0
- package/node_modules/picomatch/README.md +708 -0
- package/node_modules/picomatch/index.js +3 -0
- package/node_modules/picomatch/lib/constants.js +179 -0
- package/node_modules/picomatch/lib/parse.js +1091 -0
- package/node_modules/picomatch/lib/picomatch.js +342 -0
- package/node_modules/picomatch/lib/scan.js +391 -0
- package/node_modules/picomatch/lib/utils.js +64 -0
- package/node_modules/picomatch/package.json +117 -0
- package/node_modules/process-nextick-args/index.js +45 -0
- package/node_modules/process-nextick-args/license.md +19 -0
- package/node_modules/process-nextick-args/package.json +53 -0
- package/node_modules/process-nextick-args/readme.md +18 -0
- package/node_modules/progress/CHANGELOG.md +115 -0
- package/node_modules/progress/LICENSE +22 -0
- package/node_modules/progress/Makefile +8 -0
- package/node_modules/progress/Readme.md +146 -0
- package/node_modules/progress/index.js +1 -0
- package/node_modules/progress/lib/node-progress.js +236 -0
- package/node_modules/progress/package.json +74 -0
- package/node_modules/qs/.editorconfig +43 -0
- package/node_modules/qs/.eslintrc +38 -0
- package/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/qs/.nycrc +13 -0
- package/node_modules/qs/CHANGELOG.md +546 -0
- package/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/qs/README.md +625 -0
- package/node_modules/qs/dist/qs.js +2054 -0
- package/node_modules/qs/lib/formats.js +23 -0
- package/node_modules/qs/lib/index.js +11 -0
- package/node_modules/qs/lib/parse.js +263 -0
- package/node_modules/qs/lib/stringify.js +326 -0
- package/node_modules/qs/lib/utils.js +252 -0
- package/node_modules/qs/package.json +108 -0
- package/node_modules/qs/test/parse.js +855 -0
- package/node_modules/qs/test/stringify.js +909 -0
- package/node_modules/qs/test/utils.js +136 -0
- package/node_modules/readable-stream/.travis.yml +34 -0
- package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/readable-stream/README.md +58 -0
- package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
- package/node_modules/readable-stream/duplex-browser.js +1 -0
- package/node_modules/readable-stream/duplex.js +1 -0
- package/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
- package/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
- package/node_modules/readable-stream/lib/_stream_transform.js +214 -0
- package/node_modules/readable-stream/lib/_stream_writable.js +687 -0
- package/node_modules/readable-stream/lib/internal/streams/BufferList.js +79 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +74 -0
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/readable-stream/package.json +86 -0
- package/node_modules/readable-stream/passthrough.js +1 -0
- package/node_modules/readable-stream/readable-browser.js +7 -0
- package/node_modules/readable-stream/readable.js +19 -0
- package/node_modules/readable-stream/transform.js +1 -0
- package/node_modules/readable-stream/writable-browser.js +1 -0
- package/node_modules/readable-stream/writable.js +8 -0
- package/node_modules/readdirp/LICENSE +21 -0
- package/node_modules/readdirp/README.md +122 -0
- package/node_modules/readdirp/index.d.ts +43 -0
- package/node_modules/readdirp/index.js +287 -0
- package/node_modules/readdirp/package.json +162 -0
- package/node_modules/require-directory/.jshintrc +67 -0
- package/node_modules/require-directory/.npmignore +1 -0
- package/node_modules/require-directory/.travis.yml +3 -0
- package/node_modules/require-directory/LICENSE +22 -0
- package/node_modules/require-directory/README.markdown +184 -0
- package/node_modules/require-directory/index.js +86 -0
- package/node_modules/require-directory/package.json +72 -0
- package/node_modules/retry/.npmignore +3 -0
- package/node_modules/retry/.travis.yml +15 -0
- package/node_modules/retry/License +21 -0
- package/node_modules/retry/Makefile +18 -0
- package/node_modules/retry/README.md +227 -0
- package/node_modules/retry/equation.gif +0 -0
- package/node_modules/retry/example/dns.js +31 -0
- package/node_modules/retry/example/stop.js +40 -0
- package/node_modules/retry/index.js +1 -0
- package/node_modules/retry/lib/retry.js +100 -0
- package/node_modules/retry/lib/retry_operation.js +158 -0
- package/node_modules/retry/package.json +67 -0
- package/node_modules/retry/test/common.js +10 -0
- package/node_modules/retry/test/integration/test-forever.js +24 -0
- package/node_modules/retry/test/integration/test-retry-operation.js +258 -0
- package/node_modules/retry/test/integration/test-retry-wrap.js +101 -0
- package/node_modules/retry/test/integration/test-timeouts.js +69 -0
- package/node_modules/rimraf/CHANGELOG.md +65 -0
- package/node_modules/rimraf/LICENSE +15 -0
- package/node_modules/rimraf/README.md +101 -0
- package/node_modules/rimraf/bin.js +68 -0
- package/node_modules/rimraf/package.json +74 -0
- package/node_modules/rimraf/rimraf.js +360 -0
- package/node_modules/rw/.eslintrc +5 -0
- package/node_modules/rw/.npmignore +3 -0
- package/node_modules/rw/LICENSE +26 -0
- package/node_modules/rw/README.md +120 -0
- package/node_modules/rw/index.js +5 -0
- package/node_modules/rw/lib/rw/dash.js +14 -0
- package/node_modules/rw/lib/rw/decode.js +23 -0
- package/node_modules/rw/lib/rw/encode.js +7 -0
- package/node_modules/rw/lib/rw/read-file-sync.js +29 -0
- package/node_modules/rw/lib/rw/read-file.js +23 -0
- package/node_modules/rw/lib/rw/write-file-sync.js +32 -0
- package/node_modules/rw/lib/rw/write-file.js +22 -0
- package/node_modules/rw/package.json +63 -0
- package/node_modules/rw/test/cat-async +10 -0
- package/node_modules/rw/test/cat-sync +5 -0
- package/node_modules/rw/test/encode-object-async +7 -0
- package/node_modules/rw/test/encode-object-sync +5 -0
- package/node_modules/rw/test/encode-string-async +7 -0
- package/node_modules/rw/test/encode-string-sync +5 -0
- package/node_modules/rw/test/encoding-async +42 -0
- package/node_modules/rw/test/encoding-sync +20 -0
- package/node_modules/rw/test/run-tests +53 -0
- package/node_modules/rw/test/utf8.txt +1 -0
- package/node_modules/rw/test/wc-async +8 -0
- package/node_modules/rw/test/wc-sync +5 -0
- package/node_modules/rw/test/write-async +7 -0
- package/node_modules/rw/test/write-sync +5 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/safe-buffer/package.json +69 -0
- package/node_modules/safer-buffer/LICENSE +21 -0
- package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules/safer-buffer/Readme.md +156 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +63 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +568 -0
- package/node_modules/semver/bin/semver.js +183 -0
- package/node_modules/semver/classes/comparator.js +136 -0
- package/node_modules/semver/classes/index.js +5 -0
- package/node_modules/semver/classes/range.js +519 -0
- package/node_modules/semver/classes/semver.js +287 -0
- package/node_modules/semver/functions/clean.js +6 -0
- package/node_modules/semver/functions/cmp.js +52 -0
- package/node_modules/semver/functions/coerce.js +52 -0
- package/node_modules/semver/functions/compare-build.js +7 -0
- package/node_modules/semver/functions/compare-loose.js +3 -0
- package/node_modules/semver/functions/compare.js +5 -0
- package/node_modules/semver/functions/diff.js +23 -0
- package/node_modules/semver/functions/eq.js +3 -0
- package/node_modules/semver/functions/gt.js +3 -0
- package/node_modules/semver/functions/gte.js +3 -0
- package/node_modules/semver/functions/inc.js +18 -0
- package/node_modules/semver/functions/lt.js +3 -0
- package/node_modules/semver/functions/lte.js +3 -0
- package/node_modules/semver/functions/major.js +3 -0
- package/node_modules/semver/functions/minor.js +3 -0
- package/node_modules/semver/functions/neq.js +3 -0
- package/node_modules/semver/functions/parse.js +33 -0
- package/node_modules/semver/functions/patch.js +3 -0
- package/node_modules/semver/functions/prerelease.js +6 -0
- package/node_modules/semver/functions/rcompare.js +3 -0
- package/node_modules/semver/functions/rsort.js +3 -0
- package/node_modules/semver/functions/satisfies.js +10 -0
- package/node_modules/semver/functions/sort.js +3 -0
- package/node_modules/semver/functions/valid.js +6 -0
- package/node_modules/semver/index.js +48 -0
- package/node_modules/semver/internal/constants.js +17 -0
- package/node_modules/semver/internal/debug.js +9 -0
- package/node_modules/semver/internal/identifiers.js +23 -0
- package/node_modules/semver/internal/parse-options.js +11 -0
- package/node_modules/semver/internal/re.js +182 -0
- package/node_modules/semver/package.json +113 -0
- package/node_modules/semver/preload.js +2 -0
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/ranges/gtr.js +4 -0
- package/node_modules/semver/ranges/intersects.js +7 -0
- package/node_modules/semver/ranges/ltr.js +4 -0
- package/node_modules/semver/ranges/max-satisfying.js +25 -0
- package/node_modules/semver/ranges/min-satisfying.js +24 -0
- package/node_modules/semver/ranges/min-version.js +61 -0
- package/node_modules/semver/ranges/outside.js +80 -0
- package/node_modules/semver/ranges/simplify.js +47 -0
- package/node_modules/semver/ranges/subset.js +244 -0
- package/node_modules/semver/ranges/to-comparators.js +8 -0
- package/node_modules/semver/ranges/valid.js +11 -0
- package/node_modules/set-blocking/CHANGELOG.md +26 -0
- package/node_modules/set-blocking/LICENSE.txt +14 -0
- package/node_modules/set-blocking/README.md +31 -0
- package/node_modules/set-blocking/index.js +7 -0
- package/node_modules/set-blocking/package.json +73 -0
- package/node_modules/setimmediate/LICENSE.txt +20 -0
- package/node_modules/setimmediate/package.json +77 -0
- package/node_modules/setimmediate/setImmediate.js +186 -0
- package/node_modules/side-channel/.eslintignore +1 -0
- package/node_modules/side-channel/.eslintrc +11 -0
- package/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel/.nycrc +13 -0
- package/node_modules/side-channel/CHANGELOG.md +65 -0
- package/node_modules/side-channel/LICENSE +21 -0
- package/node_modules/side-channel/README.md +2 -0
- package/node_modules/side-channel/index.js +124 -0
- package/node_modules/side-channel/package.json +99 -0
- package/node_modules/side-channel/test/index.js +78 -0
- package/node_modules/sift/MIT-LICENSE.txt +20 -0
- package/node_modules/sift/README.md +465 -0
- package/node_modules/sift/es/index.js +626 -0
- package/node_modules/sift/es/index.js.map +1 -0
- package/node_modules/sift/es5m/index.js +729 -0
- package/node_modules/sift/es5m/index.js.map +1 -0
- package/node_modules/sift/index.d.ts +4 -0
- package/node_modules/sift/index.js +4 -0
- package/node_modules/sift/lib/core.d.ts +119 -0
- package/node_modules/sift/lib/index.d.ts +6 -0
- package/node_modules/sift/lib/index.js +766 -0
- package/node_modules/sift/lib/index.js.map +1 -0
- package/node_modules/sift/lib/operations.d.ts +88 -0
- package/node_modules/sift/lib/utils.d.ts +9 -0
- package/node_modules/sift/package.json +98 -0
- package/node_modules/sift/sift.csp.min.js +763 -0
- package/node_modules/sift/sift.csp.min.js.map +1 -0
- package/node_modules/sift/sift.min.js +16 -0
- package/node_modules/sift/sift.min.js.map +1 -0
- package/node_modules/sift/src/core.d.ts +123 -0
- package/node_modules/sift/src/core.js +270 -0
- package/node_modules/sift/src/core.js.map +1 -0
- package/node_modules/sift/src/core.ts +479 -0
- package/node_modules/sift/src/index.d.ts +6 -0
- package/node_modules/sift/src/index.js +35 -0
- package/node_modules/sift/src/index.js.map +1 -0
- package/node_modules/sift/src/index.ts +42 -0
- package/node_modules/sift/src/operations.d.ts +85 -0
- package/node_modules/sift/src/operations.js +276 -0
- package/node_modules/sift/src/operations.js.map +1 -0
- package/node_modules/sift/src/operations.ts +411 -0
- package/node_modules/sift/src/utils.d.ts +9 -0
- package/node_modules/sift/src/utils.js +70 -0
- package/node_modules/sift/src/utils.js.map +1 -0
- package/node_modules/sift/src/utils.ts +68 -0
- package/node_modules/signal-exit/LICENSE.txt +16 -0
- package/node_modules/signal-exit/README.md +39 -0
- package/node_modules/signal-exit/index.js +202 -0
- package/node_modules/signal-exit/package.json +71 -0
- package/node_modules/signal-exit/signals.js +53 -0
- package/node_modules/simple-concat/.travis.yml +3 -0
- package/node_modules/simple-concat/LICENSE +20 -0
- package/node_modules/simple-concat/README.md +44 -0
- package/node_modules/simple-concat/index.js +15 -0
- package/node_modules/simple-concat/package.json +75 -0
- package/node_modules/simple-concat/test/basic.js +41 -0
- package/node_modules/simple-get/LICENSE +20 -0
- package/node_modules/simple-get/README.md +319 -0
- package/node_modules/simple-get/index.js +107 -0
- package/node_modules/simple-get/package.json +81 -0
- package/node_modules/simple-swizzle/LICENSE +21 -0
- package/node_modules/simple-swizzle/README.md +39 -0
- package/node_modules/simple-swizzle/index.js +29 -0
- package/node_modules/simple-swizzle/node_modules/is-arrayish/LICENSE +21 -0
- package/node_modules/simple-swizzle/node_modules/is-arrayish/README.md +16 -0
- package/node_modules/simple-swizzle/node_modules/is-arrayish/index.js +9 -0
- package/node_modules/simple-swizzle/node_modules/is-arrayish/package.json +80 -0
- package/node_modules/simple-swizzle/node_modules/is-arrayish/yarn-error.log +1443 -0
- package/node_modules/simple-swizzle/package.json +74 -0
- package/node_modules/split/.npmignore +3 -0
- package/node_modules/split/.travis.yml +3 -0
- package/node_modules/split/LICENCE +22 -0
- package/node_modules/split/examples/pretty.js +26 -0
- package/node_modules/split/index.js +63 -0
- package/node_modules/split/package.json +65 -0
- package/node_modules/split/readme.markdown +72 -0
- package/node_modules/split/test/options.asynct.js +46 -0
- package/node_modules/split/test/partitioned_unicode.js +34 -0
- package/node_modules/split/test/split.asynct.js +137 -0
- package/node_modules/split/test/try_catch.asynct.js +51 -0
- package/node_modules/strangler/.travis.yml +21 -0
- package/node_modules/strangler/README.md +191 -0
- package/node_modules/strangler/package-lock.json.2408204802 +289 -0
- package/node_modules/strangler/package.json +69 -0
- package/node_modules/strangler/strangler.js +272 -0
- package/node_modules/strangler/test-utils.js +52 -0
- package/node_modules/strangler/test.js +186 -0
- package/node_modules/stream-combiner/.npmignore +3 -0
- package/node_modules/stream-combiner/.travis.yml +4 -0
- package/node_modules/stream-combiner/LICENSE +22 -0
- package/node_modules/stream-combiner/README.md +55 -0
- package/node_modules/stream-combiner/index.js +45 -0
- package/node_modules/stream-combiner/package.json +59 -0
- package/node_modules/stream-combiner/test/index.js +65 -0
- package/node_modules/stream-shift/.travis.yml +6 -0
- package/node_modules/stream-shift/LICENSE +21 -0
- package/node_modules/stream-shift/README.md +25 -0
- package/node_modules/stream-shift/index.js +20 -0
- package/node_modules/stream-shift/package.json +56 -0
- package/node_modules/stream-shift/test.js +48 -0
- package/node_modules/string-tools/.npmignore +2 -0
- package/node_modules/string-tools/.travis.yml +5 -0
- package/node_modules/string-tools/LICENSE +21 -0
- package/node_modules/string-tools/README.md +101 -0
- package/node_modules/string-tools/jsdoc2md/README.hbs +10 -0
- package/node_modules/string-tools/lib/string-tools.js +119 -0
- package/node_modules/string-tools/package.json +62 -0
- package/node_modules/string-tools/test/test.js +38 -0
- package/node_modules/string-width/index.d.ts +29 -0
- package/node_modules/string-width/index.js +47 -0
- package/node_modules/string-width/license +9 -0
- package/node_modules/string-width/package.json +98 -0
- package/node_modules/string-width/readme.md +50 -0
- package/node_modules/string_decoder/.travis.yml +50 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/package.json +64 -0
- package/node_modules/strip-ansi/index.d.ts +17 -0
- package/node_modules/strip-ansi/index.js +4 -0
- package/node_modules/strip-ansi/license +9 -0
- package/node_modules/strip-ansi/package.json +95 -0
- package/node_modules/strip-ansi/readme.md +46 -0
- package/node_modules/superagent/.browserslistrc +5 -0
- package/node_modules/superagent/.dist.babelrc +10 -0
- package/node_modules/superagent/.dist.eslintrc +35 -0
- package/node_modules/superagent/.editorconfig +9 -0
- package/node_modules/superagent/.gitattributes +1 -0
- package/node_modules/superagent/.lib.babelrc +11 -0
- package/node_modules/superagent/.lib.eslintrc +24 -0
- package/node_modules/superagent/.remarkignore +3 -0
- package/node_modules/superagent/.zuul.yml +16 -0
- package/node_modules/superagent/CONTRIBUTING.md +7 -0
- package/node_modules/superagent/HISTORY.md +692 -0
- package/node_modules/superagent/LICENSE +22 -0
- package/node_modules/superagent/Makefile +60 -0
- package/node_modules/superagent/README.md +266 -0
- package/node_modules/superagent/dist/superagent.js +2418 -0
- package/node_modules/superagent/dist/superagent.min.js +1 -0
- package/node_modules/superagent/docs/head.html +11 -0
- package/node_modules/superagent/docs/images/bg.png +0 -0
- package/node_modules/superagent/docs/index.md +736 -0
- package/node_modules/superagent/docs/style.css +87 -0
- package/node_modules/superagent/docs/tail.html +36 -0
- package/node_modules/superagent/docs/test.html +5072 -0
- package/node_modules/superagent/index.html +47 -0
- package/node_modules/superagent/lib/agent-base.js +42 -0
- package/node_modules/superagent/lib/client.js +1020 -0
- package/node_modules/superagent/lib/is-object.js +17 -0
- package/node_modules/superagent/lib/node/agent.js +113 -0
- package/node_modules/superagent/lib/node/http2wrapper.js +218 -0
- package/node_modules/superagent/lib/node/index.js +1376 -0
- package/node_modules/superagent/lib/node/parsers/image.js +13 -0
- package/node_modules/superagent/lib/node/parsers/index.js +12 -0
- package/node_modules/superagent/lib/node/parsers/json.js +26 -0
- package/node_modules/superagent/lib/node/parsers/text.js +11 -0
- package/node_modules/superagent/lib/node/parsers/urlencoded.js +22 -0
- package/node_modules/superagent/lib/node/response.js +126 -0
- package/node_modules/superagent/lib/node/unzip.js +72 -0
- package/node_modules/superagent/lib/request-base.js +757 -0
- package/node_modules/superagent/lib/response-base.js +131 -0
- package/node_modules/superagent/lib/utils.js +71 -0
- package/node_modules/superagent/node_modules/form-data/License +19 -0
- package/node_modules/superagent/node_modules/form-data/README.md.bak +356 -0
- package/node_modules/superagent/node_modules/form-data/Readme.md +356 -0
- package/node_modules/superagent/node_modules/form-data/index.d.ts +62 -0
- package/node_modules/superagent/node_modules/form-data/lib/browser.js +2 -0
- package/node_modules/superagent/node_modules/form-data/lib/form_data.js +498 -0
- package/node_modules/superagent/node_modules/form-data/lib/populate.js +10 -0
- package/node_modules/superagent/node_modules/form-data/package.json +104 -0
- package/node_modules/superagent/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/superagent/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/superagent/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/superagent/node_modules/readable-stream/README.md +106 -0
- package/node_modules/superagent/node_modules/readable-stream/errors-browser.js +127 -0
- package/node_modules/superagent/node_modules/readable-stream/errors.js +116 -0
- package/node_modules/superagent/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_duplex.js +139 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_passthrough.js +39 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_readable.js +1124 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_transform.js +201 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/_stream_writable.js +697 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/destroy.js +105 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/superagent/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/superagent/node_modules/readable-stream/package.json +100 -0
- package/node_modules/superagent/node_modules/readable-stream/readable-browser.js +9 -0
- package/node_modules/superagent/node_modules/readable-stream/readable.js +16 -0
- package/node_modules/superagent/package.json +272 -0
- package/node_modules/tar/LICENSE +15 -0
- package/node_modules/tar/README.md +1042 -0
- package/node_modules/tar/index.js +18 -0
- package/node_modules/tar/lib/create.js +104 -0
- package/node_modules/tar/lib/extract.js +107 -0
- package/node_modules/tar/lib/get-write-flag.js +20 -0
- package/node_modules/tar/lib/header.js +288 -0
- package/node_modules/tar/lib/high-level-opt.js +29 -0
- package/node_modules/tar/lib/large-numbers.js +99 -0
- package/node_modules/tar/lib/list.js +132 -0
- package/node_modules/tar/lib/mkdir.js +213 -0
- package/node_modules/tar/lib/mode-fix.js +23 -0
- package/node_modules/tar/lib/normalize-unicode.js +11 -0
- package/node_modules/tar/lib/normalize-windows-path.js +8 -0
- package/node_modules/tar/lib/pack.js +397 -0
- package/node_modules/tar/lib/parse.js +481 -0
- package/node_modules/tar/lib/path-reservations.js +148 -0
- package/node_modules/tar/lib/pax.js +143 -0
- package/node_modules/tar/lib/read-entry.js +100 -0
- package/node_modules/tar/lib/replace.js +223 -0
- package/node_modules/tar/lib/strip-absolute-path.js +24 -0
- package/node_modules/tar/lib/strip-trailing-slashes.js +13 -0
- package/node_modules/tar/lib/types.js +44 -0
- package/node_modules/tar/lib/unpack.js +877 -0
- package/node_modules/tar/lib/update.js +36 -0
- package/node_modules/tar/lib/warn-mixin.js +21 -0
- package/node_modules/tar/lib/winchars.js +23 -0
- package/node_modules/tar/lib/write-entry.js +525 -0
- package/node_modules/tar/package.json +95 -0
- package/node_modules/through/.travis.yml +5 -0
- package/node_modules/through/LICENSE.APACHE2 +15 -0
- package/node_modules/through/LICENSE.MIT +24 -0
- package/node_modules/through/index.js +108 -0
- package/node_modules/through/package.json +73 -0
- package/node_modules/through/readme.markdown +64 -0
- package/node_modules/through/test/async.js +28 -0
- package/node_modules/through/test/auto-destroy.js +30 -0
- package/node_modules/through/test/buffering.js +71 -0
- package/node_modules/through/test/end.js +45 -0
- package/node_modules/through/test/index.js +133 -0
- package/node_modules/to-regex-range/LICENSE +21 -0
- package/node_modules/to-regex-range/README.md +305 -0
- package/node_modules/to-regex-range/index.js +288 -0
- package/node_modules/to-regex-range/package.json +128 -0
- package/node_modules/tr46/.npmignore +4 -0
- package/node_modules/tr46/index.js +193 -0
- package/node_modules/tr46/lib/.gitkeep +0 -0
- package/node_modules/tr46/lib/mappingTable.json +1 -0
- package/node_modules/tr46/package.json +62 -0
- package/node_modules/ultron/LICENSE +22 -0
- package/node_modules/ultron/README.md +113 -0
- package/node_modules/ultron/index.js +136 -0
- package/node_modules/ultron/package.json +71 -0
- package/node_modules/unorm/LICENSE.md +42 -0
- package/node_modules/unorm/README.md +118 -0
- package/node_modules/unorm/lib/unorm.js +452 -0
- package/node_modules/unorm/package.json +76 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +61 -0
- package/node_modules/uuid/CHANGELOG.md +229 -0
- package/node_modules/uuid/CONTRIBUTING.md +18 -0
- package/node_modules/uuid/LICENSE.md +9 -0
- package/node_modules/uuid/README.md +505 -0
- package/node_modules/uuid/dist/bin/uuid +2 -0
- package/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/node_modules/uuid/dist/esm-browser/md5.js +215 -0
- package/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/node_modules/uuid/dist/esm-browser/rng.js +19 -0
- package/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
- package/node_modules/uuid/dist/esm-browser/v1.js +95 -0
- package/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/node_modules/uuid/dist/esm-browser/v35.js +64 -0
- package/node_modules/uuid/dist/esm-browser/v4.js +24 -0
- package/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/node_modules/uuid/dist/esm-node/stringify.js +29 -0
- package/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/node_modules/uuid/dist/esm-node/v35.js +64 -0
- package/node_modules/uuid/dist/esm-node/v4.js +24 -0
- package/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/node_modules/uuid/dist/index.js +79 -0
- package/node_modules/uuid/dist/md5-browser.js +223 -0
- package/node_modules/uuid/dist/md5.js +23 -0
- package/node_modules/uuid/dist/nil.js +8 -0
- package/node_modules/uuid/dist/parse.js +45 -0
- package/node_modules/uuid/dist/regex.js +8 -0
- package/node_modules/uuid/dist/rng-browser.js +26 -0
- package/node_modules/uuid/dist/rng.js +24 -0
- package/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/node_modules/uuid/dist/sha1.js +23 -0
- package/node_modules/uuid/dist/stringify.js +39 -0
- package/node_modules/uuid/dist/umd/uuid.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
- package/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/node_modules/uuid/dist/v1.js +107 -0
- package/node_modules/uuid/dist/v3.js +16 -0
- package/node_modules/uuid/dist/v35.js +78 -0
- package/node_modules/uuid/dist/v4.js +37 -0
- package/node_modules/uuid/dist/v5.js +16 -0
- package/node_modules/uuid/dist/validate.js +17 -0
- package/node_modules/uuid/dist/version.js +21 -0
- package/node_modules/uuid/package.json +167 -0
- package/node_modules/uuid/wrapper.mjs +10 -0
- package/node_modules/webidl-conversions/LICENSE.md +12 -0
- package/node_modules/webidl-conversions/README.md +53 -0
- package/node_modules/webidl-conversions/lib/index.js +189 -0
- package/node_modules/webidl-conversions/package.json +62 -0
- package/node_modules/websocket-stream/LICENSE +8 -0
- package/node_modules/websocket-stream/collaborators.md +11 -0
- package/node_modules/websocket-stream/echo-server.js +51 -0
- package/node_modules/websocket-stream/index.d.ts +27 -0
- package/node_modules/websocket-stream/index.js +6 -0
- package/node_modules/websocket-stream/package.json +82 -0
- package/node_modules/websocket-stream/readme.md +148 -0
- package/node_modules/websocket-stream/server.js +29 -0
- package/node_modules/websocket-stream/stream.js +189 -0
- package/node_modules/websocket-stream/test-client.js +74 -0
- package/node_modules/websocket-stream/test-server.js +56 -0
- package/node_modules/websocket-stream/test.js +338 -0
- package/node_modules/websocket-stream/ts-tests.ts +69 -0
- package/node_modules/websocket-stream/ws-fallback.js +12 -0
- package/node_modules/whatwg-url/LICENSE.txt +21 -0
- package/node_modules/whatwg-url/README.md +67 -0
- package/node_modules/whatwg-url/lib/URL-impl.js +200 -0
- package/node_modules/whatwg-url/lib/URL.js +196 -0
- package/node_modules/whatwg-url/lib/public-api.js +11 -0
- package/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
- package/node_modules/whatwg-url/lib/utils.js +20 -0
- package/node_modules/whatwg-url/package.json +70 -0
- package/node_modules/wide-align/LICENSE +14 -0
- package/node_modules/wide-align/README.md +47 -0
- package/node_modules/wide-align/align.js +65 -0
- package/node_modules/wide-align/package.json +69 -0
- package/node_modules/wolfy87-eventemitter/CHANGES.md +47 -0
- package/node_modules/wolfy87-eventemitter/EventEmitter.d.ts +507 -0
- package/node_modules/wolfy87-eventemitter/EventEmitter.js +486 -0
- package/node_modules/wolfy87-eventemitter/EventEmitter.min.js +7 -0
- package/node_modules/wolfy87-eventemitter/README.md +80 -0
- package/node_modules/wolfy87-eventemitter/UNLICENSE +24 -0
- package/node_modules/wolfy87-eventemitter/bower.json +22 -0
- package/node_modules/wolfy87-eventemitter/component.json +10 -0
- package/node_modules/wolfy87-eventemitter/docs/api.dust +17 -0
- package/node_modules/wolfy87-eventemitter/docs/api.md +157 -0
- package/node_modules/wolfy87-eventemitter/docs/guide.md +301 -0
- package/node_modules/wolfy87-eventemitter/docs/render.js +48 -0
- package/node_modules/wolfy87-eventemitter/package.json +67 -0
- package/node_modules/wolfy87-eventemitter/tests/index.html +16 -0
- package/node_modules/wolfy87-eventemitter/tests/tests.js +845 -0
- package/node_modules/wolfy87-eventemitter/tools/dist.sh +6 -0
- package/node_modules/wolfy87-eventemitter/tools/doc.sh +4 -0
- package/node_modules/wolfy87-eventemitter/tools/server-python2.sh +2 -0
- package/node_modules/wolfy87-eventemitter/tools/server.sh +2 -0
- package/node_modules/wrap-ansi/index.js +216 -0
- package/node_modules/wrap-ansi/license +9 -0
- package/node_modules/wrap-ansi/package.json +98 -0
- package/node_modules/wrap-ansi/readme.md +91 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +62 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/ws/LICENSE +21 -0
- package/node_modules/ws/README.md +341 -0
- package/node_modules/ws/index.js +15 -0
- package/node_modules/ws/lib/.DS_Store +0 -0
- package/node_modules/ws/lib/BufferUtil.js +71 -0
- package/node_modules/ws/lib/Constants.js +10 -0
- package/node_modules/ws/lib/ErrorCodes.js +28 -0
- package/node_modules/ws/lib/EventTarget.js +151 -0
- package/node_modules/ws/lib/Extensions.js +203 -0
- package/node_modules/ws/lib/PerMessageDeflate.js +507 -0
- package/node_modules/ws/lib/Receiver.js +553 -0
- package/node_modules/ws/lib/Sender.js +412 -0
- package/node_modules/ws/lib/Validation.js +17 -0
- package/node_modules/ws/lib/WebSocket.js +717 -0
- package/node_modules/ws/lib/WebSocketServer.js +326 -0
- package/node_modules/ws/package.json +83 -0
- package/node_modules/xhr2/CONTRIBUTING.md +33 -0
- package/node_modules/xhr2/Cakefile +131 -0
- package/node_modules/xhr2/LICENSE.txt +19 -0
- package/node_modules/xhr2/README.md +142 -0
- package/node_modules/xhr2/lib/browser.js +1 -0
- package/node_modules/xhr2/lib/xhr2.js +1244 -0
- package/node_modules/xhr2/package.json +103 -0
- package/node_modules/xhr2/src/000-xml_http_request_event_target.coffee +89 -0
- package/node_modules/xhr2/src/001-xml_http_request.coffee +781 -0
- package/node_modules/xhr2/src/errors.coffee +31 -0
- package/node_modules/xhr2/src/progress_event.coffee +39 -0
- package/node_modules/xhr2/src/xml_http_request_upload.coffee +95 -0
- package/node_modules/xhr2/test/fixtures/hello.json +1 -0
- package/node_modules/xhr2/test/fixtures/hello.txt +1 -0
- package/node_modules/xhr2/test/fixtures/xhr2.png +0 -0
- package/node_modules/xhr2/test/html/browser_test.html +30 -0
- package/node_modules/xhr2/test/src/event_target_test.coffee +85 -0
- package/node_modules/xhr2/test/src/events_test.coffee +204 -0
- package/node_modules/xhr2/test/src/headers_test.coffee +168 -0
- package/node_modules/xhr2/test/src/helpers/browser_mocha_runner.coffee +10 -0
- package/node_modules/xhr2/test/src/helpers/browser_mocha_setup.coffee +1 -0
- package/node_modules/xhr2/test/src/helpers/setup.coffee +38 -0
- package/node_modules/xhr2/test/src/helpers/xhr_server.coffee +156 -0
- package/node_modules/xhr2/test/src/nodejs_set_test.coffee +162 -0
- package/node_modules/xhr2/test/src/redirect_test.coffee +57 -0
- package/node_modules/xhr2/test/src/response_type_test.coffee +88 -0
- package/node_modules/xhr2/test/src/responseurl_test.coffee +18 -0
- package/node_modules/xhr2/test/src/send_test.coffee +89 -0
- package/node_modules/xhr2/test/src/status_test.coffee +47 -0
- package/node_modules/xhr2/test/src/xhr_test.coffee +102 -0
- package/node_modules/xtend/.jshintrc +30 -0
- package/node_modules/xtend/LICENSE +20 -0
- package/node_modules/xtend/README.md +32 -0
- package/node_modules/xtend/immutable.js +19 -0
- package/node_modules/xtend/mutable.js +17 -0
- package/node_modules/xtend/package.json +89 -0
- package/node_modules/xtend/test.js +103 -0
- package/node_modules/y18n/CHANGELOG.md +100 -0
- package/node_modules/y18n/LICENSE +13 -0
- package/node_modules/y18n/README.md +127 -0
- package/node_modules/y18n/build/index.cjs +203 -0
- package/node_modules/y18n/build/lib/cjs.js +6 -0
- package/node_modules/y18n/build/lib/index.js +174 -0
- package/node_modules/y18n/build/lib/platform-shims/node.js +19 -0
- package/node_modules/y18n/index.mjs +8 -0
- package/node_modules/y18n/package.json +104 -0
- package/node_modules/yallist/LICENSE +15 -0
- package/node_modules/yallist/README.md +204 -0
- package/node_modules/yallist/iterator.js +8 -0
- package/node_modules/yallist/package.json +68 -0
- package/node_modules/yallist/yallist.js +426 -0
- package/node_modules/yargs/LICENSE +21 -0
- package/node_modules/yargs/README.md +204 -0
- package/node_modules/yargs/browser.mjs +7 -0
- package/node_modules/yargs/build/index.cjs +1 -0
- package/node_modules/yargs/build/lib/argsert.js +62 -0
- package/node_modules/yargs/build/lib/command.js +447 -0
- package/node_modules/yargs/build/lib/completion-templates.js +48 -0
- package/node_modules/yargs/build/lib/completion.js +236 -0
- package/node_modules/yargs/build/lib/middleware.js +88 -0
- package/node_modules/yargs/build/lib/parse-command.js +32 -0
- package/node_modules/yargs/build/lib/typings/common-types.js +9 -0
- package/node_modules/yargs/build/lib/typings/yargs-parser-types.js +1 -0
- package/node_modules/yargs/build/lib/usage.js +579 -0
- package/node_modules/yargs/build/lib/utils/apply-extends.js +59 -0
- package/node_modules/yargs/build/lib/utils/is-promise.js +5 -0
- package/node_modules/yargs/build/lib/utils/levenshtein.js +34 -0
- package/node_modules/yargs/build/lib/utils/maybe-async-result.js +17 -0
- package/node_modules/yargs/build/lib/utils/obj-filter.js +10 -0
- package/node_modules/yargs/build/lib/utils/process-argv.js +17 -0
- package/node_modules/yargs/build/lib/utils/set-blocking.js +12 -0
- package/node_modules/yargs/build/lib/utils/which-module.js +10 -0
- package/node_modules/yargs/build/lib/validation.js +305 -0
- package/node_modules/yargs/build/lib/yargs-factory.js +1497 -0
- package/node_modules/yargs/build/lib/yerror.js +9 -0
- package/node_modules/yargs/helpers/helpers.mjs +10 -0
- package/node_modules/yargs/helpers/index.js +14 -0
- package/node_modules/yargs/helpers/package.json +3 -0
- package/node_modules/yargs/index.cjs +53 -0
- package/node_modules/yargs/index.mjs +8 -0
- package/node_modules/yargs/lib/platform-shims/browser.mjs +95 -0
- package/node_modules/yargs/lib/platform-shims/esm.mjs +73 -0
- package/node_modules/yargs/locales/be.json +46 -0
- package/node_modules/yargs/locales/de.json +46 -0
- package/node_modules/yargs/locales/en.json +51 -0
- package/node_modules/yargs/locales/es.json +46 -0
- package/node_modules/yargs/locales/fi.json +49 -0
- package/node_modules/yargs/locales/fr.json +53 -0
- package/node_modules/yargs/locales/hi.json +49 -0
- package/node_modules/yargs/locales/hu.json +46 -0
- package/node_modules/yargs/locales/id.json +50 -0
- package/node_modules/yargs/locales/it.json +46 -0
- package/node_modules/yargs/locales/ja.json +51 -0
- package/node_modules/yargs/locales/ko.json +49 -0
- package/node_modules/yargs/locales/nb.json +44 -0
- package/node_modules/yargs/locales/nl.json +49 -0
- package/node_modules/yargs/locales/nn.json +44 -0
- package/node_modules/yargs/locales/pirate.json +13 -0
- package/node_modules/yargs/locales/pl.json +49 -0
- package/node_modules/yargs/locales/pt.json +45 -0
- package/node_modules/yargs/locales/pt_BR.json +48 -0
- package/node_modules/yargs/locales/ru.json +51 -0
- package/node_modules/yargs/locales/th.json +46 -0
- package/node_modules/yargs/locales/tr.json +48 -0
- package/node_modules/yargs/locales/uk_UA.json +51 -0
- package/node_modules/yargs/locales/uz.json +52 -0
- package/node_modules/yargs/locales/zh_CN.json +48 -0
- package/node_modules/yargs/locales/zh_TW.json +51 -0
- package/node_modules/yargs/package.json +154 -0
- package/node_modules/yargs/yargs +9 -0
- package/node_modules/yargs/yargs.mjs +10 -0
- package/node_modules/yargs-parser/CHANGELOG.md +287 -0
- package/node_modules/yargs-parser/LICENSE.txt +14 -0
- package/node_modules/yargs-parser/README.md +518 -0
- package/node_modules/yargs-parser/browser.js +29 -0
- package/node_modules/yargs-parser/build/index.cjs +1048 -0
- package/node_modules/yargs-parser/build/lib/index.js +60 -0
- package/node_modules/yargs-parser/build/lib/string-utils.js +65 -0
- package/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +40 -0
- package/node_modules/yargs-parser/build/lib/yargs-parser-types.js +12 -0
- package/node_modules/yargs-parser/build/lib/yargs-parser.js +1045 -0
- package/node_modules/yargs-parser/package.json +123 -0
- package/node_modules/yazl/LICENSE +21 -0
- package/node_modules/yazl/README.md +389 -0
- package/node_modules/yazl/index.js +749 -0
- package/node_modules/yazl/package.json +69 -0
- package/package.json +60 -0
- package/src/commands/Client.js +45 -0
- package/src/commands/CorelliumAPI.js +76 -0
- package/src/commands/agent/Agent.js +46 -0
- package/src/commands/agent/apps.js +54 -0
- package/src/commands/agent/file.js +48 -0
- package/src/commands/agent/index.js +26 -0
- package/src/commands/extensions/delete.js +52 -0
- package/src/commands/extensions/index.js +15 -0
- package/src/commands/extensions/list.js +46 -0
- package/src/commands/extensions/load.js +71 -0
- package/src/commands/extensions/validate.js +62 -0
- package/src/commands/firmware/index.js +13 -0
- package/src/commands/firmware/list.js +62 -0
- package/src/commands/firmware/load.js +57 -0
- package/src/commands/images/create.js +82 -0
- package/src/commands/images/delete.js +39 -0
- package/src/commands/images/index.js +14 -0
- package/src/commands/images/list.js +38 -0
- package/src/commands/index.js +12 -0
- package/src/commands/instances/create.js +66 -0
- package/src/commands/instances/delete.js +39 -0
- package/src/commands/instances/index.js +16 -0
- package/src/commands/instances/list.js +45 -0
- package/src/commands/instances/start.js +48 -0
- package/src/commands/instances/stop.js +48 -0
- package/src/commands/login.js +75 -0
- package/src/commands/logout.js +33 -0
- package/src/commands/projects/create.js +86 -0
- package/src/commands/projects/delete.js +52 -0
- package/src/commands/projects/index.js +14 -0
- package/src/commands/projects/list.js +37 -0
- package/src/commands/signup.js +100 -0
- package/src/commands/webplayer/WebPlayer.js +56 -0
- package/src/commands/webplayer/create.js +61 -0
- package/src/commands/webplayer/destroy.js +43 -0
- package/src/commands/webplayer/index.js +15 -0
- package/src/commands/webplayer/list.js +65 -0
- package/src/commands/webplayer/login.js +45 -0
- package/src/error.js +10 -0
- package/src/logging.js +28 -0
- package/src/profile.js +60 -0
- package/src/subscriberInvite.js +140 -0
- package/src/table.js +36 -0
- package/src/upload.js +34 -0
- package/src/utils.js +147 -0
@@ -0,0 +1,3997 @@
|
|
1
|
+
/* pako 1.0.11 nodeca/pako */(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.pako = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
|
5
|
+
var TYPED_OK = (typeof Uint8Array !== 'undefined') &&
|
6
|
+
(typeof Uint16Array !== 'undefined') &&
|
7
|
+
(typeof Int32Array !== 'undefined');
|
8
|
+
|
9
|
+
function _has(obj, key) {
|
10
|
+
return Object.prototype.hasOwnProperty.call(obj, key);
|
11
|
+
}
|
12
|
+
|
13
|
+
exports.assign = function (obj /*from1, from2, from3, ...*/) {
|
14
|
+
var sources = Array.prototype.slice.call(arguments, 1);
|
15
|
+
while (sources.length) {
|
16
|
+
var source = sources.shift();
|
17
|
+
if (!source) { continue; }
|
18
|
+
|
19
|
+
if (typeof source !== 'object') {
|
20
|
+
throw new TypeError(source + 'must be non-object');
|
21
|
+
}
|
22
|
+
|
23
|
+
for (var p in source) {
|
24
|
+
if (_has(source, p)) {
|
25
|
+
obj[p] = source[p];
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
return obj;
|
31
|
+
};
|
32
|
+
|
33
|
+
|
34
|
+
// reduce buffer size, avoiding mem copy
|
35
|
+
exports.shrinkBuf = function (buf, size) {
|
36
|
+
if (buf.length === size) { return buf; }
|
37
|
+
if (buf.subarray) { return buf.subarray(0, size); }
|
38
|
+
buf.length = size;
|
39
|
+
return buf;
|
40
|
+
};
|
41
|
+
|
42
|
+
|
43
|
+
var fnTyped = {
|
44
|
+
arraySet: function (dest, src, src_offs, len, dest_offs) {
|
45
|
+
if (src.subarray && dest.subarray) {
|
46
|
+
dest.set(src.subarray(src_offs, src_offs + len), dest_offs);
|
47
|
+
return;
|
48
|
+
}
|
49
|
+
// Fallback to ordinary array
|
50
|
+
for (var i = 0; i < len; i++) {
|
51
|
+
dest[dest_offs + i] = src[src_offs + i];
|
52
|
+
}
|
53
|
+
},
|
54
|
+
// Join array of chunks to single array.
|
55
|
+
flattenChunks: function (chunks) {
|
56
|
+
var i, l, len, pos, chunk, result;
|
57
|
+
|
58
|
+
// calculate data length
|
59
|
+
len = 0;
|
60
|
+
for (i = 0, l = chunks.length; i < l; i++) {
|
61
|
+
len += chunks[i].length;
|
62
|
+
}
|
63
|
+
|
64
|
+
// join chunks
|
65
|
+
result = new Uint8Array(len);
|
66
|
+
pos = 0;
|
67
|
+
for (i = 0, l = chunks.length; i < l; i++) {
|
68
|
+
chunk = chunks[i];
|
69
|
+
result.set(chunk, pos);
|
70
|
+
pos += chunk.length;
|
71
|
+
}
|
72
|
+
|
73
|
+
return result;
|
74
|
+
}
|
75
|
+
};
|
76
|
+
|
77
|
+
var fnUntyped = {
|
78
|
+
arraySet: function (dest, src, src_offs, len, dest_offs) {
|
79
|
+
for (var i = 0; i < len; i++) {
|
80
|
+
dest[dest_offs + i] = src[src_offs + i];
|
81
|
+
}
|
82
|
+
},
|
83
|
+
// Join array of chunks to single array.
|
84
|
+
flattenChunks: function (chunks) {
|
85
|
+
return [].concat.apply([], chunks);
|
86
|
+
}
|
87
|
+
};
|
88
|
+
|
89
|
+
|
90
|
+
// Enable/Disable typed arrays use, for testing
|
91
|
+
//
|
92
|
+
exports.setTyped = function (on) {
|
93
|
+
if (on) {
|
94
|
+
exports.Buf8 = Uint8Array;
|
95
|
+
exports.Buf16 = Uint16Array;
|
96
|
+
exports.Buf32 = Int32Array;
|
97
|
+
exports.assign(exports, fnTyped);
|
98
|
+
} else {
|
99
|
+
exports.Buf8 = Array;
|
100
|
+
exports.Buf16 = Array;
|
101
|
+
exports.Buf32 = Array;
|
102
|
+
exports.assign(exports, fnUntyped);
|
103
|
+
}
|
104
|
+
};
|
105
|
+
|
106
|
+
exports.setTyped(TYPED_OK);
|
107
|
+
|
108
|
+
},{}],2:[function(require,module,exports){
|
109
|
+
// String encode/decode helpers
|
110
|
+
'use strict';
|
111
|
+
|
112
|
+
|
113
|
+
var utils = require('./common');
|
114
|
+
|
115
|
+
|
116
|
+
// Quick check if we can use fast array to bin string conversion
|
117
|
+
//
|
118
|
+
// - apply(Array) can fail on Android 2.2
|
119
|
+
// - apply(Uint8Array) can fail on iOS 5.1 Safari
|
120
|
+
//
|
121
|
+
var STR_APPLY_OK = true;
|
122
|
+
var STR_APPLY_UIA_OK = true;
|
123
|
+
|
124
|
+
try { String.fromCharCode.apply(null, [ 0 ]); } catch (__) { STR_APPLY_OK = false; }
|
125
|
+
try { String.fromCharCode.apply(null, new Uint8Array(1)); } catch (__) { STR_APPLY_UIA_OK = false; }
|
126
|
+
|
127
|
+
|
128
|
+
// Table with utf8 lengths (calculated by first byte of sequence)
|
129
|
+
// Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS,
|
130
|
+
// because max possible codepoint is 0x10ffff
|
131
|
+
var _utf8len = new utils.Buf8(256);
|
132
|
+
for (var q = 0; q < 256; q++) {
|
133
|
+
_utf8len[q] = (q >= 252 ? 6 : q >= 248 ? 5 : q >= 240 ? 4 : q >= 224 ? 3 : q >= 192 ? 2 : 1);
|
134
|
+
}
|
135
|
+
_utf8len[254] = _utf8len[254] = 1; // Invalid sequence start
|
136
|
+
|
137
|
+
|
138
|
+
// convert string to array (typed, when possible)
|
139
|
+
exports.string2buf = function (str) {
|
140
|
+
var buf, c, c2, m_pos, i, str_len = str.length, buf_len = 0;
|
141
|
+
|
142
|
+
// count binary size
|
143
|
+
for (m_pos = 0; m_pos < str_len; m_pos++) {
|
144
|
+
c = str.charCodeAt(m_pos);
|
145
|
+
if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) {
|
146
|
+
c2 = str.charCodeAt(m_pos + 1);
|
147
|
+
if ((c2 & 0xfc00) === 0xdc00) {
|
148
|
+
c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);
|
149
|
+
m_pos++;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
buf_len += c < 0x80 ? 1 : c < 0x800 ? 2 : c < 0x10000 ? 3 : 4;
|
153
|
+
}
|
154
|
+
|
155
|
+
// allocate buffer
|
156
|
+
buf = new utils.Buf8(buf_len);
|
157
|
+
|
158
|
+
// convert
|
159
|
+
for (i = 0, m_pos = 0; i < buf_len; m_pos++) {
|
160
|
+
c = str.charCodeAt(m_pos);
|
161
|
+
if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) {
|
162
|
+
c2 = str.charCodeAt(m_pos + 1);
|
163
|
+
if ((c2 & 0xfc00) === 0xdc00) {
|
164
|
+
c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);
|
165
|
+
m_pos++;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
if (c < 0x80) {
|
169
|
+
/* one byte */
|
170
|
+
buf[i++] = c;
|
171
|
+
} else if (c < 0x800) {
|
172
|
+
/* two bytes */
|
173
|
+
buf[i++] = 0xC0 | (c >>> 6);
|
174
|
+
buf[i++] = 0x80 | (c & 0x3f);
|
175
|
+
} else if (c < 0x10000) {
|
176
|
+
/* three bytes */
|
177
|
+
buf[i++] = 0xE0 | (c >>> 12);
|
178
|
+
buf[i++] = 0x80 | (c >>> 6 & 0x3f);
|
179
|
+
buf[i++] = 0x80 | (c & 0x3f);
|
180
|
+
} else {
|
181
|
+
/* four bytes */
|
182
|
+
buf[i++] = 0xf0 | (c >>> 18);
|
183
|
+
buf[i++] = 0x80 | (c >>> 12 & 0x3f);
|
184
|
+
buf[i++] = 0x80 | (c >>> 6 & 0x3f);
|
185
|
+
buf[i++] = 0x80 | (c & 0x3f);
|
186
|
+
}
|
187
|
+
}
|
188
|
+
|
189
|
+
return buf;
|
190
|
+
};
|
191
|
+
|
192
|
+
// Helper (used in 2 places)
|
193
|
+
function buf2binstring(buf, len) {
|
194
|
+
// On Chrome, the arguments in a function call that are allowed is `65534`.
|
195
|
+
// If the length of the buffer is smaller than that, we can use this optimization,
|
196
|
+
// otherwise we will take a slower path.
|
197
|
+
if (len < 65534) {
|
198
|
+
if ((buf.subarray && STR_APPLY_UIA_OK) || (!buf.subarray && STR_APPLY_OK)) {
|
199
|
+
return String.fromCharCode.apply(null, utils.shrinkBuf(buf, len));
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
var result = '';
|
204
|
+
for (var i = 0; i < len; i++) {
|
205
|
+
result += String.fromCharCode(buf[i]);
|
206
|
+
}
|
207
|
+
return result;
|
208
|
+
}
|
209
|
+
|
210
|
+
|
211
|
+
// Convert byte array to binary string
|
212
|
+
exports.buf2binstring = function (buf) {
|
213
|
+
return buf2binstring(buf, buf.length);
|
214
|
+
};
|
215
|
+
|
216
|
+
|
217
|
+
// Convert binary string (typed, when possible)
|
218
|
+
exports.binstring2buf = function (str) {
|
219
|
+
var buf = new utils.Buf8(str.length);
|
220
|
+
for (var i = 0, len = buf.length; i < len; i++) {
|
221
|
+
buf[i] = str.charCodeAt(i);
|
222
|
+
}
|
223
|
+
return buf;
|
224
|
+
};
|
225
|
+
|
226
|
+
|
227
|
+
// convert array to string
|
228
|
+
exports.buf2string = function (buf, max) {
|
229
|
+
var i, out, c, c_len;
|
230
|
+
var len = max || buf.length;
|
231
|
+
|
232
|
+
// Reserve max possible length (2 words per char)
|
233
|
+
// NB: by unknown reasons, Array is significantly faster for
|
234
|
+
// String.fromCharCode.apply than Uint16Array.
|
235
|
+
var utf16buf = new Array(len * 2);
|
236
|
+
|
237
|
+
for (out = 0, i = 0; i < len;) {
|
238
|
+
c = buf[i++];
|
239
|
+
// quick process ascii
|
240
|
+
if (c < 0x80) { utf16buf[out++] = c; continue; }
|
241
|
+
|
242
|
+
c_len = _utf8len[c];
|
243
|
+
// skip 5 & 6 byte codes
|
244
|
+
if (c_len > 4) { utf16buf[out++] = 0xfffd; i += c_len - 1; continue; }
|
245
|
+
|
246
|
+
// apply mask on first byte
|
247
|
+
c &= c_len === 2 ? 0x1f : c_len === 3 ? 0x0f : 0x07;
|
248
|
+
// join the rest
|
249
|
+
while (c_len > 1 && i < len) {
|
250
|
+
c = (c << 6) | (buf[i++] & 0x3f);
|
251
|
+
c_len--;
|
252
|
+
}
|
253
|
+
|
254
|
+
// terminated by end of string?
|
255
|
+
if (c_len > 1) { utf16buf[out++] = 0xfffd; continue; }
|
256
|
+
|
257
|
+
if (c < 0x10000) {
|
258
|
+
utf16buf[out++] = c;
|
259
|
+
} else {
|
260
|
+
c -= 0x10000;
|
261
|
+
utf16buf[out++] = 0xd800 | ((c >> 10) & 0x3ff);
|
262
|
+
utf16buf[out++] = 0xdc00 | (c & 0x3ff);
|
263
|
+
}
|
264
|
+
}
|
265
|
+
|
266
|
+
return buf2binstring(utf16buf, out);
|
267
|
+
};
|
268
|
+
|
269
|
+
|
270
|
+
// Calculate max possible position in utf8 buffer,
|
271
|
+
// that will not break sequence. If that's not possible
|
272
|
+
// - (very small limits) return max size as is.
|
273
|
+
//
|
274
|
+
// buf[] - utf8 bytes array
|
275
|
+
// max - length limit (mandatory);
|
276
|
+
exports.utf8border = function (buf, max) {
|
277
|
+
var pos;
|
278
|
+
|
279
|
+
max = max || buf.length;
|
280
|
+
if (max > buf.length) { max = buf.length; }
|
281
|
+
|
282
|
+
// go back from last position, until start of sequence found
|
283
|
+
pos = max - 1;
|
284
|
+
while (pos >= 0 && (buf[pos] & 0xC0) === 0x80) { pos--; }
|
285
|
+
|
286
|
+
// Very small and broken sequence,
|
287
|
+
// return max, because we should return something anyway.
|
288
|
+
if (pos < 0) { return max; }
|
289
|
+
|
290
|
+
// If we came to start of buffer - that means buffer is too small,
|
291
|
+
// return max too.
|
292
|
+
if (pos === 0) { return max; }
|
293
|
+
|
294
|
+
return (pos + _utf8len[buf[pos]] > max) ? pos : max;
|
295
|
+
};
|
296
|
+
|
297
|
+
},{"./common":1}],3:[function(require,module,exports){
|
298
|
+
'use strict';
|
299
|
+
|
300
|
+
// Note: adler32 takes 12% for level 0 and 2% for level 6.
|
301
|
+
// It isn't worth it to make additional optimizations as in original.
|
302
|
+
// Small size is preferable.
|
303
|
+
|
304
|
+
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
|
305
|
+
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
|
306
|
+
//
|
307
|
+
// This software is provided 'as-is', without any express or implied
|
308
|
+
// warranty. In no event will the authors be held liable for any damages
|
309
|
+
// arising from the use of this software.
|
310
|
+
//
|
311
|
+
// Permission is granted to anyone to use this software for any purpose,
|
312
|
+
// including commercial applications, and to alter it and redistribute it
|
313
|
+
// freely, subject to the following restrictions:
|
314
|
+
//
|
315
|
+
// 1. The origin of this software must not be misrepresented; you must not
|
316
|
+
// claim that you wrote the original software. If you use this software
|
317
|
+
// in a product, an acknowledgment in the product documentation would be
|
318
|
+
// appreciated but is not required.
|
319
|
+
// 2. Altered source versions must be plainly marked as such, and must not be
|
320
|
+
// misrepresented as being the original software.
|
321
|
+
// 3. This notice may not be removed or altered from any source distribution.
|
322
|
+
|
323
|
+
function adler32(adler, buf, len, pos) {
|
324
|
+
var s1 = (adler & 0xffff) |0,
|
325
|
+
s2 = ((adler >>> 16) & 0xffff) |0,
|
326
|
+
n = 0;
|
327
|
+
|
328
|
+
while (len !== 0) {
|
329
|
+
// Set limit ~ twice less than 5552, to keep
|
330
|
+
// s2 in 31-bits, because we force signed ints.
|
331
|
+
// in other case %= will fail.
|
332
|
+
n = len > 2000 ? 2000 : len;
|
333
|
+
len -= n;
|
334
|
+
|
335
|
+
do {
|
336
|
+
s1 = (s1 + buf[pos++]) |0;
|
337
|
+
s2 = (s2 + s1) |0;
|
338
|
+
} while (--n);
|
339
|
+
|
340
|
+
s1 %= 65521;
|
341
|
+
s2 %= 65521;
|
342
|
+
}
|
343
|
+
|
344
|
+
return (s1 | (s2 << 16)) |0;
|
345
|
+
}
|
346
|
+
|
347
|
+
|
348
|
+
module.exports = adler32;
|
349
|
+
|
350
|
+
},{}],4:[function(require,module,exports){
|
351
|
+
'use strict';
|
352
|
+
|
353
|
+
// Note: we can't get significant speed boost here.
|
354
|
+
// So write code to minimize size - no pregenerated tables
|
355
|
+
// and array tools dependencies.
|
356
|
+
|
357
|
+
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
|
358
|
+
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
|
359
|
+
//
|
360
|
+
// This software is provided 'as-is', without any express or implied
|
361
|
+
// warranty. In no event will the authors be held liable for any damages
|
362
|
+
// arising from the use of this software.
|
363
|
+
//
|
364
|
+
// Permission is granted to anyone to use this software for any purpose,
|
365
|
+
// including commercial applications, and to alter it and redistribute it
|
366
|
+
// freely, subject to the following restrictions:
|
367
|
+
//
|
368
|
+
// 1. The origin of this software must not be misrepresented; you must not
|
369
|
+
// claim that you wrote the original software. If you use this software
|
370
|
+
// in a product, an acknowledgment in the product documentation would be
|
371
|
+
// appreciated but is not required.
|
372
|
+
// 2. Altered source versions must be plainly marked as such, and must not be
|
373
|
+
// misrepresented as being the original software.
|
374
|
+
// 3. This notice may not be removed or altered from any source distribution.
|
375
|
+
|
376
|
+
// Use ordinary array, since untyped makes no boost here
|
377
|
+
function makeTable() {
|
378
|
+
var c, table = [];
|
379
|
+
|
380
|
+
for (var n = 0; n < 256; n++) {
|
381
|
+
c = n;
|
382
|
+
for (var k = 0; k < 8; k++) {
|
383
|
+
c = ((c & 1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1));
|
384
|
+
}
|
385
|
+
table[n] = c;
|
386
|
+
}
|
387
|
+
|
388
|
+
return table;
|
389
|
+
}
|
390
|
+
|
391
|
+
// Create table on load. Just 255 signed longs. Not a problem.
|
392
|
+
var crcTable = makeTable();
|
393
|
+
|
394
|
+
|
395
|
+
function crc32(crc, buf, len, pos) {
|
396
|
+
var t = crcTable,
|
397
|
+
end = pos + len;
|
398
|
+
|
399
|
+
crc ^= -1;
|
400
|
+
|
401
|
+
for (var i = pos; i < end; i++) {
|
402
|
+
crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF];
|
403
|
+
}
|
404
|
+
|
405
|
+
return (crc ^ (-1)); // >>> 0;
|
406
|
+
}
|
407
|
+
|
408
|
+
|
409
|
+
module.exports = crc32;
|
410
|
+
|
411
|
+
},{}],5:[function(require,module,exports){
|
412
|
+
'use strict';
|
413
|
+
|
414
|
+
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
|
415
|
+
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
|
416
|
+
//
|
417
|
+
// This software is provided 'as-is', without any express or implied
|
418
|
+
// warranty. In no event will the authors be held liable for any damages
|
419
|
+
// arising from the use of this software.
|
420
|
+
//
|
421
|
+
// Permission is granted to anyone to use this software for any purpose,
|
422
|
+
// including commercial applications, and to alter it and redistribute it
|
423
|
+
// freely, subject to the following restrictions:
|
424
|
+
//
|
425
|
+
// 1. The origin of this software must not be misrepresented; you must not
|
426
|
+
// claim that you wrote the original software. If you use this software
|
427
|
+
// in a product, an acknowledgment in the product documentation would be
|
428
|
+
// appreciated but is not required.
|
429
|
+
// 2. Altered source versions must be plainly marked as such, and must not be
|
430
|
+
// misrepresented as being the original software.
|
431
|
+
// 3. This notice may not be removed or altered from any source distribution.
|
432
|
+
|
433
|
+
var utils = require('../utils/common');
|
434
|
+
var trees = require('./trees');
|
435
|
+
var adler32 = require('./adler32');
|
436
|
+
var crc32 = require('./crc32');
|
437
|
+
var msg = require('./messages');
|
438
|
+
|
439
|
+
/* Public constants ==========================================================*/
|
440
|
+
/* ===========================================================================*/
|
441
|
+
|
442
|
+
|
443
|
+
/* Allowed flush values; see deflate() and inflate() below for details */
|
444
|
+
var Z_NO_FLUSH = 0;
|
445
|
+
var Z_PARTIAL_FLUSH = 1;
|
446
|
+
//var Z_SYNC_FLUSH = 2;
|
447
|
+
var Z_FULL_FLUSH = 3;
|
448
|
+
var Z_FINISH = 4;
|
449
|
+
var Z_BLOCK = 5;
|
450
|
+
//var Z_TREES = 6;
|
451
|
+
|
452
|
+
|
453
|
+
/* Return codes for the compression/decompression functions. Negative values
|
454
|
+
* are errors, positive values are used for special but normal events.
|
455
|
+
*/
|
456
|
+
var Z_OK = 0;
|
457
|
+
var Z_STREAM_END = 1;
|
458
|
+
//var Z_NEED_DICT = 2;
|
459
|
+
//var Z_ERRNO = -1;
|
460
|
+
var Z_STREAM_ERROR = -2;
|
461
|
+
var Z_DATA_ERROR = -3;
|
462
|
+
//var Z_MEM_ERROR = -4;
|
463
|
+
var Z_BUF_ERROR = -5;
|
464
|
+
//var Z_VERSION_ERROR = -6;
|
465
|
+
|
466
|
+
|
467
|
+
/* compression levels */
|
468
|
+
//var Z_NO_COMPRESSION = 0;
|
469
|
+
//var Z_BEST_SPEED = 1;
|
470
|
+
//var Z_BEST_COMPRESSION = 9;
|
471
|
+
var Z_DEFAULT_COMPRESSION = -1;
|
472
|
+
|
473
|
+
|
474
|
+
var Z_FILTERED = 1;
|
475
|
+
var Z_HUFFMAN_ONLY = 2;
|
476
|
+
var Z_RLE = 3;
|
477
|
+
var Z_FIXED = 4;
|
478
|
+
var Z_DEFAULT_STRATEGY = 0;
|
479
|
+
|
480
|
+
/* Possible values of the data_type field (though see inflate()) */
|
481
|
+
//var Z_BINARY = 0;
|
482
|
+
//var Z_TEXT = 1;
|
483
|
+
//var Z_ASCII = 1; // = Z_TEXT
|
484
|
+
var Z_UNKNOWN = 2;
|
485
|
+
|
486
|
+
|
487
|
+
/* The deflate compression method */
|
488
|
+
var Z_DEFLATED = 8;
|
489
|
+
|
490
|
+
/*============================================================================*/
|
491
|
+
|
492
|
+
|
493
|
+
var MAX_MEM_LEVEL = 9;
|
494
|
+
/* Maximum value for memLevel in deflateInit2 */
|
495
|
+
var MAX_WBITS = 15;
|
496
|
+
/* 32K LZ77 window */
|
497
|
+
var DEF_MEM_LEVEL = 8;
|
498
|
+
|
499
|
+
|
500
|
+
var LENGTH_CODES = 29;
|
501
|
+
/* number of length codes, not counting the special END_BLOCK code */
|
502
|
+
var LITERALS = 256;
|
503
|
+
/* number of literal bytes 0..255 */
|
504
|
+
var L_CODES = LITERALS + 1 + LENGTH_CODES;
|
505
|
+
/* number of Literal or Length codes, including the END_BLOCK code */
|
506
|
+
var D_CODES = 30;
|
507
|
+
/* number of distance codes */
|
508
|
+
var BL_CODES = 19;
|
509
|
+
/* number of codes used to transfer the bit lengths */
|
510
|
+
var HEAP_SIZE = 2 * L_CODES + 1;
|
511
|
+
/* maximum heap size */
|
512
|
+
var MAX_BITS = 15;
|
513
|
+
/* All codes must not exceed MAX_BITS bits */
|
514
|
+
|
515
|
+
var MIN_MATCH = 3;
|
516
|
+
var MAX_MATCH = 258;
|
517
|
+
var MIN_LOOKAHEAD = (MAX_MATCH + MIN_MATCH + 1);
|
518
|
+
|
519
|
+
var PRESET_DICT = 0x20;
|
520
|
+
|
521
|
+
var INIT_STATE = 42;
|
522
|
+
var EXTRA_STATE = 69;
|
523
|
+
var NAME_STATE = 73;
|
524
|
+
var COMMENT_STATE = 91;
|
525
|
+
var HCRC_STATE = 103;
|
526
|
+
var BUSY_STATE = 113;
|
527
|
+
var FINISH_STATE = 666;
|
528
|
+
|
529
|
+
var BS_NEED_MORE = 1; /* block not completed, need more input or more output */
|
530
|
+
var BS_BLOCK_DONE = 2; /* block flush performed */
|
531
|
+
var BS_FINISH_STARTED = 3; /* finish started, need only more output at next deflate */
|
532
|
+
var BS_FINISH_DONE = 4; /* finish done, accept no more input or output */
|
533
|
+
|
534
|
+
var OS_CODE = 0x03; // Unix :) . Don't detect, use this default.
|
535
|
+
|
536
|
+
function err(strm, errorCode) {
|
537
|
+
strm.msg = msg[errorCode];
|
538
|
+
return errorCode;
|
539
|
+
}
|
540
|
+
|
541
|
+
function rank(f) {
|
542
|
+
return ((f) << 1) - ((f) > 4 ? 9 : 0);
|
543
|
+
}
|
544
|
+
|
545
|
+
function zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } }
|
546
|
+
|
547
|
+
|
548
|
+
/* =========================================================================
|
549
|
+
* Flush as much pending output as possible. All deflate() output goes
|
550
|
+
* through this function so some applications may wish to modify it
|
551
|
+
* to avoid allocating a large strm->output buffer and copying into it.
|
552
|
+
* (See also read_buf()).
|
553
|
+
*/
|
554
|
+
function flush_pending(strm) {
|
555
|
+
var s = strm.state;
|
556
|
+
|
557
|
+
//_tr_flush_bits(s);
|
558
|
+
var len = s.pending;
|
559
|
+
if (len > strm.avail_out) {
|
560
|
+
len = strm.avail_out;
|
561
|
+
}
|
562
|
+
if (len === 0) { return; }
|
563
|
+
|
564
|
+
utils.arraySet(strm.output, s.pending_buf, s.pending_out, len, strm.next_out);
|
565
|
+
strm.next_out += len;
|
566
|
+
s.pending_out += len;
|
567
|
+
strm.total_out += len;
|
568
|
+
strm.avail_out -= len;
|
569
|
+
s.pending -= len;
|
570
|
+
if (s.pending === 0) {
|
571
|
+
s.pending_out = 0;
|
572
|
+
}
|
573
|
+
}
|
574
|
+
|
575
|
+
|
576
|
+
function flush_block_only(s, last) {
|
577
|
+
trees._tr_flush_block(s, (s.block_start >= 0 ? s.block_start : -1), s.strstart - s.block_start, last);
|
578
|
+
s.block_start = s.strstart;
|
579
|
+
flush_pending(s.strm);
|
580
|
+
}
|
581
|
+
|
582
|
+
|
583
|
+
function put_byte(s, b) {
|
584
|
+
s.pending_buf[s.pending++] = b;
|
585
|
+
}
|
586
|
+
|
587
|
+
|
588
|
+
/* =========================================================================
|
589
|
+
* Put a short in the pending buffer. The 16-bit value is put in MSB order.
|
590
|
+
* IN assertion: the stream state is correct and there is enough room in
|
591
|
+
* pending_buf.
|
592
|
+
*/
|
593
|
+
function putShortMSB(s, b) {
|
594
|
+
// put_byte(s, (Byte)(b >> 8));
|
595
|
+
// put_byte(s, (Byte)(b & 0xff));
|
596
|
+
s.pending_buf[s.pending++] = (b >>> 8) & 0xff;
|
597
|
+
s.pending_buf[s.pending++] = b & 0xff;
|
598
|
+
}
|
599
|
+
|
600
|
+
|
601
|
+
/* ===========================================================================
|
602
|
+
* Read a new buffer from the current input stream, update the adler32
|
603
|
+
* and total number of bytes read. All deflate() input goes through
|
604
|
+
* this function so some applications may wish to modify it to avoid
|
605
|
+
* allocating a large strm->input buffer and copying from it.
|
606
|
+
* (See also flush_pending()).
|
607
|
+
*/
|
608
|
+
function read_buf(strm, buf, start, size) {
|
609
|
+
var len = strm.avail_in;
|
610
|
+
|
611
|
+
if (len > size) { len = size; }
|
612
|
+
if (len === 0) { return 0; }
|
613
|
+
|
614
|
+
strm.avail_in -= len;
|
615
|
+
|
616
|
+
// zmemcpy(buf, strm->next_in, len);
|
617
|
+
utils.arraySet(buf, strm.input, strm.next_in, len, start);
|
618
|
+
if (strm.state.wrap === 1) {
|
619
|
+
strm.adler = adler32(strm.adler, buf, len, start);
|
620
|
+
}
|
621
|
+
|
622
|
+
else if (strm.state.wrap === 2) {
|
623
|
+
strm.adler = crc32(strm.adler, buf, len, start);
|
624
|
+
}
|
625
|
+
|
626
|
+
strm.next_in += len;
|
627
|
+
strm.total_in += len;
|
628
|
+
|
629
|
+
return len;
|
630
|
+
}
|
631
|
+
|
632
|
+
|
633
|
+
/* ===========================================================================
|
634
|
+
* Set match_start to the longest match starting at the given string and
|
635
|
+
* return its length. Matches shorter or equal to prev_length are discarded,
|
636
|
+
* in which case the result is equal to prev_length and match_start is
|
637
|
+
* garbage.
|
638
|
+
* IN assertions: cur_match is the head of the hash chain for the current
|
639
|
+
* string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1
|
640
|
+
* OUT assertion: the match length is not greater than s->lookahead.
|
641
|
+
*/
|
642
|
+
function longest_match(s, cur_match) {
|
643
|
+
var chain_length = s.max_chain_length; /* max hash chain length */
|
644
|
+
var scan = s.strstart; /* current string */
|
645
|
+
var match; /* matched string */
|
646
|
+
var len; /* length of current match */
|
647
|
+
var best_len = s.prev_length; /* best match length so far */
|
648
|
+
var nice_match = s.nice_match; /* stop if match long enough */
|
649
|
+
var limit = (s.strstart > (s.w_size - MIN_LOOKAHEAD)) ?
|
650
|
+
s.strstart - (s.w_size - MIN_LOOKAHEAD) : 0/*NIL*/;
|
651
|
+
|
652
|
+
var _win = s.window; // shortcut
|
653
|
+
|
654
|
+
var wmask = s.w_mask;
|
655
|
+
var prev = s.prev;
|
656
|
+
|
657
|
+
/* Stop when cur_match becomes <= limit. To simplify the code,
|
658
|
+
* we prevent matches with the string of window index 0.
|
659
|
+
*/
|
660
|
+
|
661
|
+
var strend = s.strstart + MAX_MATCH;
|
662
|
+
var scan_end1 = _win[scan + best_len - 1];
|
663
|
+
var scan_end = _win[scan + best_len];
|
664
|
+
|
665
|
+
/* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.
|
666
|
+
* It is easy to get rid of this optimization if necessary.
|
667
|
+
*/
|
668
|
+
// Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");
|
669
|
+
|
670
|
+
/* Do not waste too much time if we already have a good match: */
|
671
|
+
if (s.prev_length >= s.good_match) {
|
672
|
+
chain_length >>= 2;
|
673
|
+
}
|
674
|
+
/* Do not look for matches beyond the end of the input. This is necessary
|
675
|
+
* to make deflate deterministic.
|
676
|
+
*/
|
677
|
+
if (nice_match > s.lookahead) { nice_match = s.lookahead; }
|
678
|
+
|
679
|
+
// Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead");
|
680
|
+
|
681
|
+
do {
|
682
|
+
// Assert(cur_match < s->strstart, "no future");
|
683
|
+
match = cur_match;
|
684
|
+
|
685
|
+
/* Skip to next match if the match length cannot increase
|
686
|
+
* or if the match length is less than 2. Note that the checks below
|
687
|
+
* for insufficient lookahead only occur occasionally for performance
|
688
|
+
* reasons. Therefore uninitialized memory will be accessed, and
|
689
|
+
* conditional jumps will be made that depend on those values.
|
690
|
+
* However the length of the match is limited to the lookahead, so
|
691
|
+
* the output of deflate is not affected by the uninitialized values.
|
692
|
+
*/
|
693
|
+
|
694
|
+
if (_win[match + best_len] !== scan_end ||
|
695
|
+
_win[match + best_len - 1] !== scan_end1 ||
|
696
|
+
_win[match] !== _win[scan] ||
|
697
|
+
_win[++match] !== _win[scan + 1]) {
|
698
|
+
continue;
|
699
|
+
}
|
700
|
+
|
701
|
+
/* The check at best_len-1 can be removed because it will be made
|
702
|
+
* again later. (This heuristic is not always a win.)
|
703
|
+
* It is not necessary to compare scan[2] and match[2] since they
|
704
|
+
* are always equal when the other bytes match, given that
|
705
|
+
* the hash keys are equal and that HASH_BITS >= 8.
|
706
|
+
*/
|
707
|
+
scan += 2;
|
708
|
+
match++;
|
709
|
+
// Assert(*scan == *match, "match[2]?");
|
710
|
+
|
711
|
+
/* We check for insufficient lookahead only every 8th comparison;
|
712
|
+
* the 256th check will be made at strstart+258.
|
713
|
+
*/
|
714
|
+
do {
|
715
|
+
/*jshint noempty:false*/
|
716
|
+
} while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
|
717
|
+
_win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
|
718
|
+
_win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
|
719
|
+
_win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
|
720
|
+
scan < strend);
|
721
|
+
|
722
|
+
// Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
|
723
|
+
|
724
|
+
len = MAX_MATCH - (strend - scan);
|
725
|
+
scan = strend - MAX_MATCH;
|
726
|
+
|
727
|
+
if (len > best_len) {
|
728
|
+
s.match_start = cur_match;
|
729
|
+
best_len = len;
|
730
|
+
if (len >= nice_match) {
|
731
|
+
break;
|
732
|
+
}
|
733
|
+
scan_end1 = _win[scan + best_len - 1];
|
734
|
+
scan_end = _win[scan + best_len];
|
735
|
+
}
|
736
|
+
} while ((cur_match = prev[cur_match & wmask]) > limit && --chain_length !== 0);
|
737
|
+
|
738
|
+
if (best_len <= s.lookahead) {
|
739
|
+
return best_len;
|
740
|
+
}
|
741
|
+
return s.lookahead;
|
742
|
+
}
|
743
|
+
|
744
|
+
|
745
|
+
/* ===========================================================================
|
746
|
+
* Fill the window when the lookahead becomes insufficient.
|
747
|
+
* Updates strstart and lookahead.
|
748
|
+
*
|
749
|
+
* IN assertion: lookahead < MIN_LOOKAHEAD
|
750
|
+
* OUT assertions: strstart <= window_size-MIN_LOOKAHEAD
|
751
|
+
* At least one byte has been read, or avail_in == 0; reads are
|
752
|
+
* performed for at least two bytes (required for the zip translate_eol
|
753
|
+
* option -- not supported here).
|
754
|
+
*/
|
755
|
+
function fill_window(s) {
|
756
|
+
var _w_size = s.w_size;
|
757
|
+
var p, n, m, more, str;
|
758
|
+
|
759
|
+
//Assert(s->lookahead < MIN_LOOKAHEAD, "already enough lookahead");
|
760
|
+
|
761
|
+
do {
|
762
|
+
more = s.window_size - s.lookahead - s.strstart;
|
763
|
+
|
764
|
+
// JS ints have 32 bit, block below not needed
|
765
|
+
/* Deal with !@#$% 64K limit: */
|
766
|
+
//if (sizeof(int) <= 2) {
|
767
|
+
// if (more == 0 && s->strstart == 0 && s->lookahead == 0) {
|
768
|
+
// more = wsize;
|
769
|
+
//
|
770
|
+
// } else if (more == (unsigned)(-1)) {
|
771
|
+
// /* Very unlikely, but possible on 16 bit machine if
|
772
|
+
// * strstart == 0 && lookahead == 1 (input done a byte at time)
|
773
|
+
// */
|
774
|
+
// more--;
|
775
|
+
// }
|
776
|
+
//}
|
777
|
+
|
778
|
+
|
779
|
+
/* If the window is almost full and there is insufficient lookahead,
|
780
|
+
* move the upper half to the lower one to make room in the upper half.
|
781
|
+
*/
|
782
|
+
if (s.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD)) {
|
783
|
+
|
784
|
+
utils.arraySet(s.window, s.window, _w_size, _w_size, 0);
|
785
|
+
s.match_start -= _w_size;
|
786
|
+
s.strstart -= _w_size;
|
787
|
+
/* we now have strstart >= MAX_DIST */
|
788
|
+
s.block_start -= _w_size;
|
789
|
+
|
790
|
+
/* Slide the hash table (could be avoided with 32 bit values
|
791
|
+
at the expense of memory usage). We slide even when level == 0
|
792
|
+
to keep the hash table consistent if we switch back to level > 0
|
793
|
+
later. (Using level 0 permanently is not an optimal usage of
|
794
|
+
zlib, so we don't care about this pathological case.)
|
795
|
+
*/
|
796
|
+
|
797
|
+
n = s.hash_size;
|
798
|
+
p = n;
|
799
|
+
do {
|
800
|
+
m = s.head[--p];
|
801
|
+
s.head[p] = (m >= _w_size ? m - _w_size : 0);
|
802
|
+
} while (--n);
|
803
|
+
|
804
|
+
n = _w_size;
|
805
|
+
p = n;
|
806
|
+
do {
|
807
|
+
m = s.prev[--p];
|
808
|
+
s.prev[p] = (m >= _w_size ? m - _w_size : 0);
|
809
|
+
/* If n is not on any hash chain, prev[n] is garbage but
|
810
|
+
* its value will never be used.
|
811
|
+
*/
|
812
|
+
} while (--n);
|
813
|
+
|
814
|
+
more += _w_size;
|
815
|
+
}
|
816
|
+
if (s.strm.avail_in === 0) {
|
817
|
+
break;
|
818
|
+
}
|
819
|
+
|
820
|
+
/* If there was no sliding:
|
821
|
+
* strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&
|
822
|
+
* more == window_size - lookahead - strstart
|
823
|
+
* => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)
|
824
|
+
* => more >= window_size - 2*WSIZE + 2
|
825
|
+
* In the BIG_MEM or MMAP case (not yet supported),
|
826
|
+
* window_size == input_size + MIN_LOOKAHEAD &&
|
827
|
+
* strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.
|
828
|
+
* Otherwise, window_size == 2*WSIZE so more >= 2.
|
829
|
+
* If there was sliding, more >= WSIZE. So in all cases, more >= 2.
|
830
|
+
*/
|
831
|
+
//Assert(more >= 2, "more < 2");
|
832
|
+
n = read_buf(s.strm, s.window, s.strstart + s.lookahead, more);
|
833
|
+
s.lookahead += n;
|
834
|
+
|
835
|
+
/* Initialize the hash value now that we have some input: */
|
836
|
+
if (s.lookahead + s.insert >= MIN_MATCH) {
|
837
|
+
str = s.strstart - s.insert;
|
838
|
+
s.ins_h = s.window[str];
|
839
|
+
|
840
|
+
/* UPDATE_HASH(s, s->ins_h, s->window[str + 1]); */
|
841
|
+
s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + 1]) & s.hash_mask;
|
842
|
+
//#if MIN_MATCH != 3
|
843
|
+
// Call update_hash() MIN_MATCH-3 more times
|
844
|
+
//#endif
|
845
|
+
while (s.insert) {
|
846
|
+
/* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */
|
847
|
+
s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask;
|
848
|
+
|
849
|
+
s.prev[str & s.w_mask] = s.head[s.ins_h];
|
850
|
+
s.head[s.ins_h] = str;
|
851
|
+
str++;
|
852
|
+
s.insert--;
|
853
|
+
if (s.lookahead + s.insert < MIN_MATCH) {
|
854
|
+
break;
|
855
|
+
}
|
856
|
+
}
|
857
|
+
}
|
858
|
+
/* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,
|
859
|
+
* but this is not important since only literal bytes will be emitted.
|
860
|
+
*/
|
861
|
+
|
862
|
+
} while (s.lookahead < MIN_LOOKAHEAD && s.strm.avail_in !== 0);
|
863
|
+
|
864
|
+
/* If the WIN_INIT bytes after the end of the current data have never been
|
865
|
+
* written, then zero those bytes in order to avoid memory check reports of
|
866
|
+
* the use of uninitialized (or uninitialised as Julian writes) bytes by
|
867
|
+
* the longest match routines. Update the high water mark for the next
|
868
|
+
* time through here. WIN_INIT is set to MAX_MATCH since the longest match
|
869
|
+
* routines allow scanning to strstart + MAX_MATCH, ignoring lookahead.
|
870
|
+
*/
|
871
|
+
// if (s.high_water < s.window_size) {
|
872
|
+
// var curr = s.strstart + s.lookahead;
|
873
|
+
// var init = 0;
|
874
|
+
//
|
875
|
+
// if (s.high_water < curr) {
|
876
|
+
// /* Previous high water mark below current data -- zero WIN_INIT
|
877
|
+
// * bytes or up to end of window, whichever is less.
|
878
|
+
// */
|
879
|
+
// init = s.window_size - curr;
|
880
|
+
// if (init > WIN_INIT)
|
881
|
+
// init = WIN_INIT;
|
882
|
+
// zmemzero(s->window + curr, (unsigned)init);
|
883
|
+
// s->high_water = curr + init;
|
884
|
+
// }
|
885
|
+
// else if (s->high_water < (ulg)curr + WIN_INIT) {
|
886
|
+
// /* High water mark at or above current data, but below current data
|
887
|
+
// * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up
|
888
|
+
// * to end of window, whichever is less.
|
889
|
+
// */
|
890
|
+
// init = (ulg)curr + WIN_INIT - s->high_water;
|
891
|
+
// if (init > s->window_size - s->high_water)
|
892
|
+
// init = s->window_size - s->high_water;
|
893
|
+
// zmemzero(s->window + s->high_water, (unsigned)init);
|
894
|
+
// s->high_water += init;
|
895
|
+
// }
|
896
|
+
// }
|
897
|
+
//
|
898
|
+
// Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD,
|
899
|
+
// "not enough room for search");
|
900
|
+
}
|
901
|
+
|
902
|
+
/* ===========================================================================
|
903
|
+
* Copy without compression as much as possible from the input stream, return
|
904
|
+
* the current block state.
|
905
|
+
* This function does not insert new strings in the dictionary since
|
906
|
+
* uncompressible data is probably not useful. This function is used
|
907
|
+
* only for the level=0 compression option.
|
908
|
+
* NOTE: this function should be optimized to avoid extra copying from
|
909
|
+
* window to pending_buf.
|
910
|
+
*/
|
911
|
+
function deflate_stored(s, flush) {
|
912
|
+
/* Stored blocks are limited to 0xffff bytes, pending_buf is limited
|
913
|
+
* to pending_buf_size, and each stored block has a 5 byte header:
|
914
|
+
*/
|
915
|
+
var max_block_size = 0xffff;
|
916
|
+
|
917
|
+
if (max_block_size > s.pending_buf_size - 5) {
|
918
|
+
max_block_size = s.pending_buf_size - 5;
|
919
|
+
}
|
920
|
+
|
921
|
+
/* Copy as much as possible from input to output: */
|
922
|
+
for (;;) {
|
923
|
+
/* Fill the window as much as possible: */
|
924
|
+
if (s.lookahead <= 1) {
|
925
|
+
|
926
|
+
//Assert(s->strstart < s->w_size+MAX_DIST(s) ||
|
927
|
+
// s->block_start >= (long)s->w_size, "slide too late");
|
928
|
+
// if (!(s.strstart < s.w_size + (s.w_size - MIN_LOOKAHEAD) ||
|
929
|
+
// s.block_start >= s.w_size)) {
|
930
|
+
// throw new Error("slide too late");
|
931
|
+
// }
|
932
|
+
|
933
|
+
fill_window(s);
|
934
|
+
if (s.lookahead === 0 && flush === Z_NO_FLUSH) {
|
935
|
+
return BS_NEED_MORE;
|
936
|
+
}
|
937
|
+
|
938
|
+
if (s.lookahead === 0) {
|
939
|
+
break;
|
940
|
+
}
|
941
|
+
/* flush the current block */
|
942
|
+
}
|
943
|
+
//Assert(s->block_start >= 0L, "block gone");
|
944
|
+
// if (s.block_start < 0) throw new Error("block gone");
|
945
|
+
|
946
|
+
s.strstart += s.lookahead;
|
947
|
+
s.lookahead = 0;
|
948
|
+
|
949
|
+
/* Emit a stored block if pending_buf will be full: */
|
950
|
+
var max_start = s.block_start + max_block_size;
|
951
|
+
|
952
|
+
if (s.strstart === 0 || s.strstart >= max_start) {
|
953
|
+
/* strstart == 0 is possible when wraparound on 16-bit machine */
|
954
|
+
s.lookahead = s.strstart - max_start;
|
955
|
+
s.strstart = max_start;
|
956
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
957
|
+
flush_block_only(s, false);
|
958
|
+
if (s.strm.avail_out === 0) {
|
959
|
+
return BS_NEED_MORE;
|
960
|
+
}
|
961
|
+
/***/
|
962
|
+
|
963
|
+
|
964
|
+
}
|
965
|
+
/* Flush if we may have to slide, otherwise block_start may become
|
966
|
+
* negative and the data will be gone:
|
967
|
+
*/
|
968
|
+
if (s.strstart - s.block_start >= (s.w_size - MIN_LOOKAHEAD)) {
|
969
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
970
|
+
flush_block_only(s, false);
|
971
|
+
if (s.strm.avail_out === 0) {
|
972
|
+
return BS_NEED_MORE;
|
973
|
+
}
|
974
|
+
/***/
|
975
|
+
}
|
976
|
+
}
|
977
|
+
|
978
|
+
s.insert = 0;
|
979
|
+
|
980
|
+
if (flush === Z_FINISH) {
|
981
|
+
/*** FLUSH_BLOCK(s, 1); ***/
|
982
|
+
flush_block_only(s, true);
|
983
|
+
if (s.strm.avail_out === 0) {
|
984
|
+
return BS_FINISH_STARTED;
|
985
|
+
}
|
986
|
+
/***/
|
987
|
+
return BS_FINISH_DONE;
|
988
|
+
}
|
989
|
+
|
990
|
+
if (s.strstart > s.block_start) {
|
991
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
992
|
+
flush_block_only(s, false);
|
993
|
+
if (s.strm.avail_out === 0) {
|
994
|
+
return BS_NEED_MORE;
|
995
|
+
}
|
996
|
+
/***/
|
997
|
+
}
|
998
|
+
|
999
|
+
return BS_NEED_MORE;
|
1000
|
+
}
|
1001
|
+
|
1002
|
+
/* ===========================================================================
|
1003
|
+
* Compress as much as possible from the input stream, return the current
|
1004
|
+
* block state.
|
1005
|
+
* This function does not perform lazy evaluation of matches and inserts
|
1006
|
+
* new strings in the dictionary only for unmatched strings or for short
|
1007
|
+
* matches. It is used only for the fast compression options.
|
1008
|
+
*/
|
1009
|
+
function deflate_fast(s, flush) {
|
1010
|
+
var hash_head; /* head of the hash chain */
|
1011
|
+
var bflush; /* set if current block must be flushed */
|
1012
|
+
|
1013
|
+
for (;;) {
|
1014
|
+
/* Make sure that we always have enough lookahead, except
|
1015
|
+
* at the end of the input file. We need MAX_MATCH bytes
|
1016
|
+
* for the next match, plus MIN_MATCH bytes to insert the
|
1017
|
+
* string following the next match.
|
1018
|
+
*/
|
1019
|
+
if (s.lookahead < MIN_LOOKAHEAD) {
|
1020
|
+
fill_window(s);
|
1021
|
+
if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) {
|
1022
|
+
return BS_NEED_MORE;
|
1023
|
+
}
|
1024
|
+
if (s.lookahead === 0) {
|
1025
|
+
break; /* flush the current block */
|
1026
|
+
}
|
1027
|
+
}
|
1028
|
+
|
1029
|
+
/* Insert the string window[strstart .. strstart+2] in the
|
1030
|
+
* dictionary, and set hash_head to the head of the hash chain:
|
1031
|
+
*/
|
1032
|
+
hash_head = 0/*NIL*/;
|
1033
|
+
if (s.lookahead >= MIN_MATCH) {
|
1034
|
+
/*** INSERT_STRING(s, s.strstart, hash_head); ***/
|
1035
|
+
s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;
|
1036
|
+
hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
|
1037
|
+
s.head[s.ins_h] = s.strstart;
|
1038
|
+
/***/
|
1039
|
+
}
|
1040
|
+
|
1041
|
+
/* Find the longest match, discarding those <= prev_length.
|
1042
|
+
* At this point we have always match_length < MIN_MATCH
|
1043
|
+
*/
|
1044
|
+
if (hash_head !== 0/*NIL*/ && ((s.strstart - hash_head) <= (s.w_size - MIN_LOOKAHEAD))) {
|
1045
|
+
/* To simplify the code, we prevent matches with the string
|
1046
|
+
* of window index 0 (in particular we have to avoid a match
|
1047
|
+
* of the string with itself at the start of the input file).
|
1048
|
+
*/
|
1049
|
+
s.match_length = longest_match(s, hash_head);
|
1050
|
+
/* longest_match() sets match_start */
|
1051
|
+
}
|
1052
|
+
if (s.match_length >= MIN_MATCH) {
|
1053
|
+
// check_match(s, s.strstart, s.match_start, s.match_length); // for debug only
|
1054
|
+
|
1055
|
+
/*** _tr_tally_dist(s, s.strstart - s.match_start,
|
1056
|
+
s.match_length - MIN_MATCH, bflush); ***/
|
1057
|
+
bflush = trees._tr_tally(s, s.strstart - s.match_start, s.match_length - MIN_MATCH);
|
1058
|
+
|
1059
|
+
s.lookahead -= s.match_length;
|
1060
|
+
|
1061
|
+
/* Insert new strings in the hash table only if the match length
|
1062
|
+
* is not too large. This saves time but degrades compression.
|
1063
|
+
*/
|
1064
|
+
if (s.match_length <= s.max_lazy_match/*max_insert_length*/ && s.lookahead >= MIN_MATCH) {
|
1065
|
+
s.match_length--; /* string at strstart already in table */
|
1066
|
+
do {
|
1067
|
+
s.strstart++;
|
1068
|
+
/*** INSERT_STRING(s, s.strstart, hash_head); ***/
|
1069
|
+
s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;
|
1070
|
+
hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
|
1071
|
+
s.head[s.ins_h] = s.strstart;
|
1072
|
+
/***/
|
1073
|
+
/* strstart never exceeds WSIZE-MAX_MATCH, so there are
|
1074
|
+
* always MIN_MATCH bytes ahead.
|
1075
|
+
*/
|
1076
|
+
} while (--s.match_length !== 0);
|
1077
|
+
s.strstart++;
|
1078
|
+
} else
|
1079
|
+
{
|
1080
|
+
s.strstart += s.match_length;
|
1081
|
+
s.match_length = 0;
|
1082
|
+
s.ins_h = s.window[s.strstart];
|
1083
|
+
/* UPDATE_HASH(s, s.ins_h, s.window[s.strstart+1]); */
|
1084
|
+
s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + 1]) & s.hash_mask;
|
1085
|
+
|
1086
|
+
//#if MIN_MATCH != 3
|
1087
|
+
// Call UPDATE_HASH() MIN_MATCH-3 more times
|
1088
|
+
//#endif
|
1089
|
+
/* If lookahead < MIN_MATCH, ins_h is garbage, but it does not
|
1090
|
+
* matter since it will be recomputed at next deflate call.
|
1091
|
+
*/
|
1092
|
+
}
|
1093
|
+
} else {
|
1094
|
+
/* No match, output a literal byte */
|
1095
|
+
//Tracevv((stderr,"%c", s.window[s.strstart]));
|
1096
|
+
/*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
|
1097
|
+
bflush = trees._tr_tally(s, 0, s.window[s.strstart]);
|
1098
|
+
|
1099
|
+
s.lookahead--;
|
1100
|
+
s.strstart++;
|
1101
|
+
}
|
1102
|
+
if (bflush) {
|
1103
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
1104
|
+
flush_block_only(s, false);
|
1105
|
+
if (s.strm.avail_out === 0) {
|
1106
|
+
return BS_NEED_MORE;
|
1107
|
+
}
|
1108
|
+
/***/
|
1109
|
+
}
|
1110
|
+
}
|
1111
|
+
s.insert = ((s.strstart < (MIN_MATCH - 1)) ? s.strstart : MIN_MATCH - 1);
|
1112
|
+
if (flush === Z_FINISH) {
|
1113
|
+
/*** FLUSH_BLOCK(s, 1); ***/
|
1114
|
+
flush_block_only(s, true);
|
1115
|
+
if (s.strm.avail_out === 0) {
|
1116
|
+
return BS_FINISH_STARTED;
|
1117
|
+
}
|
1118
|
+
/***/
|
1119
|
+
return BS_FINISH_DONE;
|
1120
|
+
}
|
1121
|
+
if (s.last_lit) {
|
1122
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
1123
|
+
flush_block_only(s, false);
|
1124
|
+
if (s.strm.avail_out === 0) {
|
1125
|
+
return BS_NEED_MORE;
|
1126
|
+
}
|
1127
|
+
/***/
|
1128
|
+
}
|
1129
|
+
return BS_BLOCK_DONE;
|
1130
|
+
}
|
1131
|
+
|
1132
|
+
/* ===========================================================================
|
1133
|
+
* Same as above, but achieves better compression. We use a lazy
|
1134
|
+
* evaluation for matches: a match is finally adopted only if there is
|
1135
|
+
* no better match at the next window position.
|
1136
|
+
*/
|
1137
|
+
function deflate_slow(s, flush) {
|
1138
|
+
var hash_head; /* head of hash chain */
|
1139
|
+
var bflush; /* set if current block must be flushed */
|
1140
|
+
|
1141
|
+
var max_insert;
|
1142
|
+
|
1143
|
+
/* Process the input block. */
|
1144
|
+
for (;;) {
|
1145
|
+
/* Make sure that we always have enough lookahead, except
|
1146
|
+
* at the end of the input file. We need MAX_MATCH bytes
|
1147
|
+
* for the next match, plus MIN_MATCH bytes to insert the
|
1148
|
+
* string following the next match.
|
1149
|
+
*/
|
1150
|
+
if (s.lookahead < MIN_LOOKAHEAD) {
|
1151
|
+
fill_window(s);
|
1152
|
+
if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) {
|
1153
|
+
return BS_NEED_MORE;
|
1154
|
+
}
|
1155
|
+
if (s.lookahead === 0) { break; } /* flush the current block */
|
1156
|
+
}
|
1157
|
+
|
1158
|
+
/* Insert the string window[strstart .. strstart+2] in the
|
1159
|
+
* dictionary, and set hash_head to the head of the hash chain:
|
1160
|
+
*/
|
1161
|
+
hash_head = 0/*NIL*/;
|
1162
|
+
if (s.lookahead >= MIN_MATCH) {
|
1163
|
+
/*** INSERT_STRING(s, s.strstart, hash_head); ***/
|
1164
|
+
s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;
|
1165
|
+
hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
|
1166
|
+
s.head[s.ins_h] = s.strstart;
|
1167
|
+
/***/
|
1168
|
+
}
|
1169
|
+
|
1170
|
+
/* Find the longest match, discarding those <= prev_length.
|
1171
|
+
*/
|
1172
|
+
s.prev_length = s.match_length;
|
1173
|
+
s.prev_match = s.match_start;
|
1174
|
+
s.match_length = MIN_MATCH - 1;
|
1175
|
+
|
1176
|
+
if (hash_head !== 0/*NIL*/ && s.prev_length < s.max_lazy_match &&
|
1177
|
+
s.strstart - hash_head <= (s.w_size - MIN_LOOKAHEAD)/*MAX_DIST(s)*/) {
|
1178
|
+
/* To simplify the code, we prevent matches with the string
|
1179
|
+
* of window index 0 (in particular we have to avoid a match
|
1180
|
+
* of the string with itself at the start of the input file).
|
1181
|
+
*/
|
1182
|
+
s.match_length = longest_match(s, hash_head);
|
1183
|
+
/* longest_match() sets match_start */
|
1184
|
+
|
1185
|
+
if (s.match_length <= 5 &&
|
1186
|
+
(s.strategy === Z_FILTERED || (s.match_length === MIN_MATCH && s.strstart - s.match_start > 4096/*TOO_FAR*/))) {
|
1187
|
+
|
1188
|
+
/* If prev_match is also MIN_MATCH, match_start is garbage
|
1189
|
+
* but we will ignore the current match anyway.
|
1190
|
+
*/
|
1191
|
+
s.match_length = MIN_MATCH - 1;
|
1192
|
+
}
|
1193
|
+
}
|
1194
|
+
/* If there was a match at the previous step and the current
|
1195
|
+
* match is not better, output the previous match:
|
1196
|
+
*/
|
1197
|
+
if (s.prev_length >= MIN_MATCH && s.match_length <= s.prev_length) {
|
1198
|
+
max_insert = s.strstart + s.lookahead - MIN_MATCH;
|
1199
|
+
/* Do not insert strings in hash table beyond this. */
|
1200
|
+
|
1201
|
+
//check_match(s, s.strstart-1, s.prev_match, s.prev_length);
|
1202
|
+
|
1203
|
+
/***_tr_tally_dist(s, s.strstart - 1 - s.prev_match,
|
1204
|
+
s.prev_length - MIN_MATCH, bflush);***/
|
1205
|
+
bflush = trees._tr_tally(s, s.strstart - 1 - s.prev_match, s.prev_length - MIN_MATCH);
|
1206
|
+
/* Insert in hash table all strings up to the end of the match.
|
1207
|
+
* strstart-1 and strstart are already inserted. If there is not
|
1208
|
+
* enough lookahead, the last two strings are not inserted in
|
1209
|
+
* the hash table.
|
1210
|
+
*/
|
1211
|
+
s.lookahead -= s.prev_length - 1;
|
1212
|
+
s.prev_length -= 2;
|
1213
|
+
do {
|
1214
|
+
if (++s.strstart <= max_insert) {
|
1215
|
+
/*** INSERT_STRING(s, s.strstart, hash_head); ***/
|
1216
|
+
s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;
|
1217
|
+
hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
|
1218
|
+
s.head[s.ins_h] = s.strstart;
|
1219
|
+
/***/
|
1220
|
+
}
|
1221
|
+
} while (--s.prev_length !== 0);
|
1222
|
+
s.match_available = 0;
|
1223
|
+
s.match_length = MIN_MATCH - 1;
|
1224
|
+
s.strstart++;
|
1225
|
+
|
1226
|
+
if (bflush) {
|
1227
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
1228
|
+
flush_block_only(s, false);
|
1229
|
+
if (s.strm.avail_out === 0) {
|
1230
|
+
return BS_NEED_MORE;
|
1231
|
+
}
|
1232
|
+
/***/
|
1233
|
+
}
|
1234
|
+
|
1235
|
+
} else if (s.match_available) {
|
1236
|
+
/* If there was no match at the previous position, output a
|
1237
|
+
* single literal. If there was a match but the current match
|
1238
|
+
* is longer, truncate the previous match to a single literal.
|
1239
|
+
*/
|
1240
|
+
//Tracevv((stderr,"%c", s->window[s->strstart-1]));
|
1241
|
+
/*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/
|
1242
|
+
bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]);
|
1243
|
+
|
1244
|
+
if (bflush) {
|
1245
|
+
/*** FLUSH_BLOCK_ONLY(s, 0) ***/
|
1246
|
+
flush_block_only(s, false);
|
1247
|
+
/***/
|
1248
|
+
}
|
1249
|
+
s.strstart++;
|
1250
|
+
s.lookahead--;
|
1251
|
+
if (s.strm.avail_out === 0) {
|
1252
|
+
return BS_NEED_MORE;
|
1253
|
+
}
|
1254
|
+
} else {
|
1255
|
+
/* There is no previous match to compare with, wait for
|
1256
|
+
* the next step to decide.
|
1257
|
+
*/
|
1258
|
+
s.match_available = 1;
|
1259
|
+
s.strstart++;
|
1260
|
+
s.lookahead--;
|
1261
|
+
}
|
1262
|
+
}
|
1263
|
+
//Assert (flush != Z_NO_FLUSH, "no flush?");
|
1264
|
+
if (s.match_available) {
|
1265
|
+
//Tracevv((stderr,"%c", s->window[s->strstart-1]));
|
1266
|
+
/*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/
|
1267
|
+
bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]);
|
1268
|
+
|
1269
|
+
s.match_available = 0;
|
1270
|
+
}
|
1271
|
+
s.insert = s.strstart < MIN_MATCH - 1 ? s.strstart : MIN_MATCH - 1;
|
1272
|
+
if (flush === Z_FINISH) {
|
1273
|
+
/*** FLUSH_BLOCK(s, 1); ***/
|
1274
|
+
flush_block_only(s, true);
|
1275
|
+
if (s.strm.avail_out === 0) {
|
1276
|
+
return BS_FINISH_STARTED;
|
1277
|
+
}
|
1278
|
+
/***/
|
1279
|
+
return BS_FINISH_DONE;
|
1280
|
+
}
|
1281
|
+
if (s.last_lit) {
|
1282
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
1283
|
+
flush_block_only(s, false);
|
1284
|
+
if (s.strm.avail_out === 0) {
|
1285
|
+
return BS_NEED_MORE;
|
1286
|
+
}
|
1287
|
+
/***/
|
1288
|
+
}
|
1289
|
+
|
1290
|
+
return BS_BLOCK_DONE;
|
1291
|
+
}
|
1292
|
+
|
1293
|
+
|
1294
|
+
/* ===========================================================================
|
1295
|
+
* For Z_RLE, simply look for runs of bytes, generate matches only of distance
|
1296
|
+
* one. Do not maintain a hash table. (It will be regenerated if this run of
|
1297
|
+
* deflate switches away from Z_RLE.)
|
1298
|
+
*/
|
1299
|
+
function deflate_rle(s, flush) {
|
1300
|
+
var bflush; /* set if current block must be flushed */
|
1301
|
+
var prev; /* byte at distance one to match */
|
1302
|
+
var scan, strend; /* scan goes up to strend for length of run */
|
1303
|
+
|
1304
|
+
var _win = s.window;
|
1305
|
+
|
1306
|
+
for (;;) {
|
1307
|
+
/* Make sure that we always have enough lookahead, except
|
1308
|
+
* at the end of the input file. We need MAX_MATCH bytes
|
1309
|
+
* for the longest run, plus one for the unrolled loop.
|
1310
|
+
*/
|
1311
|
+
if (s.lookahead <= MAX_MATCH) {
|
1312
|
+
fill_window(s);
|
1313
|
+
if (s.lookahead <= MAX_MATCH && flush === Z_NO_FLUSH) {
|
1314
|
+
return BS_NEED_MORE;
|
1315
|
+
}
|
1316
|
+
if (s.lookahead === 0) { break; } /* flush the current block */
|
1317
|
+
}
|
1318
|
+
|
1319
|
+
/* See how many times the previous byte repeats */
|
1320
|
+
s.match_length = 0;
|
1321
|
+
if (s.lookahead >= MIN_MATCH && s.strstart > 0) {
|
1322
|
+
scan = s.strstart - 1;
|
1323
|
+
prev = _win[scan];
|
1324
|
+
if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {
|
1325
|
+
strend = s.strstart + MAX_MATCH;
|
1326
|
+
do {
|
1327
|
+
/*jshint noempty:false*/
|
1328
|
+
} while (prev === _win[++scan] && prev === _win[++scan] &&
|
1329
|
+
prev === _win[++scan] && prev === _win[++scan] &&
|
1330
|
+
prev === _win[++scan] && prev === _win[++scan] &&
|
1331
|
+
prev === _win[++scan] && prev === _win[++scan] &&
|
1332
|
+
scan < strend);
|
1333
|
+
s.match_length = MAX_MATCH - (strend - scan);
|
1334
|
+
if (s.match_length > s.lookahead) {
|
1335
|
+
s.match_length = s.lookahead;
|
1336
|
+
}
|
1337
|
+
}
|
1338
|
+
//Assert(scan <= s->window+(uInt)(s->window_size-1), "wild scan");
|
1339
|
+
}
|
1340
|
+
|
1341
|
+
/* Emit match if have run of MIN_MATCH or longer, else emit literal */
|
1342
|
+
if (s.match_length >= MIN_MATCH) {
|
1343
|
+
//check_match(s, s.strstart, s.strstart - 1, s.match_length);
|
1344
|
+
|
1345
|
+
/*** _tr_tally_dist(s, 1, s.match_length - MIN_MATCH, bflush); ***/
|
1346
|
+
bflush = trees._tr_tally(s, 1, s.match_length - MIN_MATCH);
|
1347
|
+
|
1348
|
+
s.lookahead -= s.match_length;
|
1349
|
+
s.strstart += s.match_length;
|
1350
|
+
s.match_length = 0;
|
1351
|
+
} else {
|
1352
|
+
/* No match, output a literal byte */
|
1353
|
+
//Tracevv((stderr,"%c", s->window[s->strstart]));
|
1354
|
+
/*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
|
1355
|
+
bflush = trees._tr_tally(s, 0, s.window[s.strstart]);
|
1356
|
+
|
1357
|
+
s.lookahead--;
|
1358
|
+
s.strstart++;
|
1359
|
+
}
|
1360
|
+
if (bflush) {
|
1361
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
1362
|
+
flush_block_only(s, false);
|
1363
|
+
if (s.strm.avail_out === 0) {
|
1364
|
+
return BS_NEED_MORE;
|
1365
|
+
}
|
1366
|
+
/***/
|
1367
|
+
}
|
1368
|
+
}
|
1369
|
+
s.insert = 0;
|
1370
|
+
if (flush === Z_FINISH) {
|
1371
|
+
/*** FLUSH_BLOCK(s, 1); ***/
|
1372
|
+
flush_block_only(s, true);
|
1373
|
+
if (s.strm.avail_out === 0) {
|
1374
|
+
return BS_FINISH_STARTED;
|
1375
|
+
}
|
1376
|
+
/***/
|
1377
|
+
return BS_FINISH_DONE;
|
1378
|
+
}
|
1379
|
+
if (s.last_lit) {
|
1380
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
1381
|
+
flush_block_only(s, false);
|
1382
|
+
if (s.strm.avail_out === 0) {
|
1383
|
+
return BS_NEED_MORE;
|
1384
|
+
}
|
1385
|
+
/***/
|
1386
|
+
}
|
1387
|
+
return BS_BLOCK_DONE;
|
1388
|
+
}
|
1389
|
+
|
1390
|
+
/* ===========================================================================
|
1391
|
+
* For Z_HUFFMAN_ONLY, do not look for matches. Do not maintain a hash table.
|
1392
|
+
* (It will be regenerated if this run of deflate switches away from Huffman.)
|
1393
|
+
*/
|
1394
|
+
function deflate_huff(s, flush) {
|
1395
|
+
var bflush; /* set if current block must be flushed */
|
1396
|
+
|
1397
|
+
for (;;) {
|
1398
|
+
/* Make sure that we have a literal to write. */
|
1399
|
+
if (s.lookahead === 0) {
|
1400
|
+
fill_window(s);
|
1401
|
+
if (s.lookahead === 0) {
|
1402
|
+
if (flush === Z_NO_FLUSH) {
|
1403
|
+
return BS_NEED_MORE;
|
1404
|
+
}
|
1405
|
+
break; /* flush the current block */
|
1406
|
+
}
|
1407
|
+
}
|
1408
|
+
|
1409
|
+
/* Output a literal byte */
|
1410
|
+
s.match_length = 0;
|
1411
|
+
//Tracevv((stderr,"%c", s->window[s->strstart]));
|
1412
|
+
/*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
|
1413
|
+
bflush = trees._tr_tally(s, 0, s.window[s.strstart]);
|
1414
|
+
s.lookahead--;
|
1415
|
+
s.strstart++;
|
1416
|
+
if (bflush) {
|
1417
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
1418
|
+
flush_block_only(s, false);
|
1419
|
+
if (s.strm.avail_out === 0) {
|
1420
|
+
return BS_NEED_MORE;
|
1421
|
+
}
|
1422
|
+
/***/
|
1423
|
+
}
|
1424
|
+
}
|
1425
|
+
s.insert = 0;
|
1426
|
+
if (flush === Z_FINISH) {
|
1427
|
+
/*** FLUSH_BLOCK(s, 1); ***/
|
1428
|
+
flush_block_only(s, true);
|
1429
|
+
if (s.strm.avail_out === 0) {
|
1430
|
+
return BS_FINISH_STARTED;
|
1431
|
+
}
|
1432
|
+
/***/
|
1433
|
+
return BS_FINISH_DONE;
|
1434
|
+
}
|
1435
|
+
if (s.last_lit) {
|
1436
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
1437
|
+
flush_block_only(s, false);
|
1438
|
+
if (s.strm.avail_out === 0) {
|
1439
|
+
return BS_NEED_MORE;
|
1440
|
+
}
|
1441
|
+
/***/
|
1442
|
+
}
|
1443
|
+
return BS_BLOCK_DONE;
|
1444
|
+
}
|
1445
|
+
|
1446
|
+
/* Values for max_lazy_match, good_match and max_chain_length, depending on
|
1447
|
+
* the desired pack level (0..9). The values given below have been tuned to
|
1448
|
+
* exclude worst case performance for pathological files. Better values may be
|
1449
|
+
* found for specific files.
|
1450
|
+
*/
|
1451
|
+
function Config(good_length, max_lazy, nice_length, max_chain, func) {
|
1452
|
+
this.good_length = good_length;
|
1453
|
+
this.max_lazy = max_lazy;
|
1454
|
+
this.nice_length = nice_length;
|
1455
|
+
this.max_chain = max_chain;
|
1456
|
+
this.func = func;
|
1457
|
+
}
|
1458
|
+
|
1459
|
+
var configuration_table;
|
1460
|
+
|
1461
|
+
configuration_table = [
|
1462
|
+
/* good lazy nice chain */
|
1463
|
+
new Config(0, 0, 0, 0, deflate_stored), /* 0 store only */
|
1464
|
+
new Config(4, 4, 8, 4, deflate_fast), /* 1 max speed, no lazy matches */
|
1465
|
+
new Config(4, 5, 16, 8, deflate_fast), /* 2 */
|
1466
|
+
new Config(4, 6, 32, 32, deflate_fast), /* 3 */
|
1467
|
+
|
1468
|
+
new Config(4, 4, 16, 16, deflate_slow), /* 4 lazy matches */
|
1469
|
+
new Config(8, 16, 32, 32, deflate_slow), /* 5 */
|
1470
|
+
new Config(8, 16, 128, 128, deflate_slow), /* 6 */
|
1471
|
+
new Config(8, 32, 128, 256, deflate_slow), /* 7 */
|
1472
|
+
new Config(32, 128, 258, 1024, deflate_slow), /* 8 */
|
1473
|
+
new Config(32, 258, 258, 4096, deflate_slow) /* 9 max compression */
|
1474
|
+
];
|
1475
|
+
|
1476
|
+
|
1477
|
+
/* ===========================================================================
|
1478
|
+
* Initialize the "longest match" routines for a new zlib stream
|
1479
|
+
*/
|
1480
|
+
function lm_init(s) {
|
1481
|
+
s.window_size = 2 * s.w_size;
|
1482
|
+
|
1483
|
+
/*** CLEAR_HASH(s); ***/
|
1484
|
+
zero(s.head); // Fill with NIL (= 0);
|
1485
|
+
|
1486
|
+
/* Set the default configuration parameters:
|
1487
|
+
*/
|
1488
|
+
s.max_lazy_match = configuration_table[s.level].max_lazy;
|
1489
|
+
s.good_match = configuration_table[s.level].good_length;
|
1490
|
+
s.nice_match = configuration_table[s.level].nice_length;
|
1491
|
+
s.max_chain_length = configuration_table[s.level].max_chain;
|
1492
|
+
|
1493
|
+
s.strstart = 0;
|
1494
|
+
s.block_start = 0;
|
1495
|
+
s.lookahead = 0;
|
1496
|
+
s.insert = 0;
|
1497
|
+
s.match_length = s.prev_length = MIN_MATCH - 1;
|
1498
|
+
s.match_available = 0;
|
1499
|
+
s.ins_h = 0;
|
1500
|
+
}
|
1501
|
+
|
1502
|
+
|
1503
|
+
function DeflateState() {
|
1504
|
+
this.strm = null; /* pointer back to this zlib stream */
|
1505
|
+
this.status = 0; /* as the name implies */
|
1506
|
+
this.pending_buf = null; /* output still pending */
|
1507
|
+
this.pending_buf_size = 0; /* size of pending_buf */
|
1508
|
+
this.pending_out = 0; /* next pending byte to output to the stream */
|
1509
|
+
this.pending = 0; /* nb of bytes in the pending buffer */
|
1510
|
+
this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */
|
1511
|
+
this.gzhead = null; /* gzip header information to write */
|
1512
|
+
this.gzindex = 0; /* where in extra, name, or comment */
|
1513
|
+
this.method = Z_DEFLATED; /* can only be DEFLATED */
|
1514
|
+
this.last_flush = -1; /* value of flush param for previous deflate call */
|
1515
|
+
|
1516
|
+
this.w_size = 0; /* LZ77 window size (32K by default) */
|
1517
|
+
this.w_bits = 0; /* log2(w_size) (8..16) */
|
1518
|
+
this.w_mask = 0; /* w_size - 1 */
|
1519
|
+
|
1520
|
+
this.window = null;
|
1521
|
+
/* Sliding window. Input bytes are read into the second half of the window,
|
1522
|
+
* and move to the first half later to keep a dictionary of at least wSize
|
1523
|
+
* bytes. With this organization, matches are limited to a distance of
|
1524
|
+
* wSize-MAX_MATCH bytes, but this ensures that IO is always
|
1525
|
+
* performed with a length multiple of the block size.
|
1526
|
+
*/
|
1527
|
+
|
1528
|
+
this.window_size = 0;
|
1529
|
+
/* Actual size of window: 2*wSize, except when the user input buffer
|
1530
|
+
* is directly used as sliding window.
|
1531
|
+
*/
|
1532
|
+
|
1533
|
+
this.prev = null;
|
1534
|
+
/* Link to older string with same hash index. To limit the size of this
|
1535
|
+
* array to 64K, this link is maintained only for the last 32K strings.
|
1536
|
+
* An index in this array is thus a window index modulo 32K.
|
1537
|
+
*/
|
1538
|
+
|
1539
|
+
this.head = null; /* Heads of the hash chains or NIL. */
|
1540
|
+
|
1541
|
+
this.ins_h = 0; /* hash index of string to be inserted */
|
1542
|
+
this.hash_size = 0; /* number of elements in hash table */
|
1543
|
+
this.hash_bits = 0; /* log2(hash_size) */
|
1544
|
+
this.hash_mask = 0; /* hash_size-1 */
|
1545
|
+
|
1546
|
+
this.hash_shift = 0;
|
1547
|
+
/* Number of bits by which ins_h must be shifted at each input
|
1548
|
+
* step. It must be such that after MIN_MATCH steps, the oldest
|
1549
|
+
* byte no longer takes part in the hash key, that is:
|
1550
|
+
* hash_shift * MIN_MATCH >= hash_bits
|
1551
|
+
*/
|
1552
|
+
|
1553
|
+
this.block_start = 0;
|
1554
|
+
/* Window position at the beginning of the current output block. Gets
|
1555
|
+
* negative when the window is moved backwards.
|
1556
|
+
*/
|
1557
|
+
|
1558
|
+
this.match_length = 0; /* length of best match */
|
1559
|
+
this.prev_match = 0; /* previous match */
|
1560
|
+
this.match_available = 0; /* set if previous match exists */
|
1561
|
+
this.strstart = 0; /* start of string to insert */
|
1562
|
+
this.match_start = 0; /* start of matching string */
|
1563
|
+
this.lookahead = 0; /* number of valid bytes ahead in window */
|
1564
|
+
|
1565
|
+
this.prev_length = 0;
|
1566
|
+
/* Length of the best match at previous step. Matches not greater than this
|
1567
|
+
* are discarded. This is used in the lazy match evaluation.
|
1568
|
+
*/
|
1569
|
+
|
1570
|
+
this.max_chain_length = 0;
|
1571
|
+
/* To speed up deflation, hash chains are never searched beyond this
|
1572
|
+
* length. A higher limit improves compression ratio but degrades the
|
1573
|
+
* speed.
|
1574
|
+
*/
|
1575
|
+
|
1576
|
+
this.max_lazy_match = 0;
|
1577
|
+
/* Attempt to find a better match only when the current match is strictly
|
1578
|
+
* smaller than this value. This mechanism is used only for compression
|
1579
|
+
* levels >= 4.
|
1580
|
+
*/
|
1581
|
+
// That's alias to max_lazy_match, don't use directly
|
1582
|
+
//this.max_insert_length = 0;
|
1583
|
+
/* Insert new strings in the hash table only if the match length is not
|
1584
|
+
* greater than this length. This saves time but degrades compression.
|
1585
|
+
* max_insert_length is used only for compression levels <= 3.
|
1586
|
+
*/
|
1587
|
+
|
1588
|
+
this.level = 0; /* compression level (1..9) */
|
1589
|
+
this.strategy = 0; /* favor or force Huffman coding*/
|
1590
|
+
|
1591
|
+
this.good_match = 0;
|
1592
|
+
/* Use a faster search when the previous match is longer than this */
|
1593
|
+
|
1594
|
+
this.nice_match = 0; /* Stop searching when current match exceeds this */
|
1595
|
+
|
1596
|
+
/* used by trees.c: */
|
1597
|
+
|
1598
|
+
/* Didn't use ct_data typedef below to suppress compiler warning */
|
1599
|
+
|
1600
|
+
// struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */
|
1601
|
+
// struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */
|
1602
|
+
// struct ct_data_s bl_tree[2*BL_CODES+1]; /* Huffman tree for bit lengths */
|
1603
|
+
|
1604
|
+
// Use flat array of DOUBLE size, with interleaved fata,
|
1605
|
+
// because JS does not support effective
|
1606
|
+
this.dyn_ltree = new utils.Buf16(HEAP_SIZE * 2);
|
1607
|
+
this.dyn_dtree = new utils.Buf16((2 * D_CODES + 1) * 2);
|
1608
|
+
this.bl_tree = new utils.Buf16((2 * BL_CODES + 1) * 2);
|
1609
|
+
zero(this.dyn_ltree);
|
1610
|
+
zero(this.dyn_dtree);
|
1611
|
+
zero(this.bl_tree);
|
1612
|
+
|
1613
|
+
this.l_desc = null; /* desc. for literal tree */
|
1614
|
+
this.d_desc = null; /* desc. for distance tree */
|
1615
|
+
this.bl_desc = null; /* desc. for bit length tree */
|
1616
|
+
|
1617
|
+
//ush bl_count[MAX_BITS+1];
|
1618
|
+
this.bl_count = new utils.Buf16(MAX_BITS + 1);
|
1619
|
+
/* number of codes at each bit length for an optimal tree */
|
1620
|
+
|
1621
|
+
//int heap[2*L_CODES+1]; /* heap used to build the Huffman trees */
|
1622
|
+
this.heap = new utils.Buf16(2 * L_CODES + 1); /* heap used to build the Huffman trees */
|
1623
|
+
zero(this.heap);
|
1624
|
+
|
1625
|
+
this.heap_len = 0; /* number of elements in the heap */
|
1626
|
+
this.heap_max = 0; /* element of largest frequency */
|
1627
|
+
/* The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used.
|
1628
|
+
* The same heap array is used to build all trees.
|
1629
|
+
*/
|
1630
|
+
|
1631
|
+
this.depth = new utils.Buf16(2 * L_CODES + 1); //uch depth[2*L_CODES+1];
|
1632
|
+
zero(this.depth);
|
1633
|
+
/* Depth of each subtree used as tie breaker for trees of equal frequency
|
1634
|
+
*/
|
1635
|
+
|
1636
|
+
this.l_buf = 0; /* buffer index for literals or lengths */
|
1637
|
+
|
1638
|
+
this.lit_bufsize = 0;
|
1639
|
+
/* Size of match buffer for literals/lengths. There are 4 reasons for
|
1640
|
+
* limiting lit_bufsize to 64K:
|
1641
|
+
* - frequencies can be kept in 16 bit counters
|
1642
|
+
* - if compression is not successful for the first block, all input
|
1643
|
+
* data is still in the window so we can still emit a stored block even
|
1644
|
+
* when input comes from standard input. (This can also be done for
|
1645
|
+
* all blocks if lit_bufsize is not greater than 32K.)
|
1646
|
+
* - if compression is not successful for a file smaller than 64K, we can
|
1647
|
+
* even emit a stored file instead of a stored block (saving 5 bytes).
|
1648
|
+
* This is applicable only for zip (not gzip or zlib).
|
1649
|
+
* - creating new Huffman trees less frequently may not provide fast
|
1650
|
+
* adaptation to changes in the input data statistics. (Take for
|
1651
|
+
* example a binary file with poorly compressible code followed by
|
1652
|
+
* a highly compressible string table.) Smaller buffer sizes give
|
1653
|
+
* fast adaptation but have of course the overhead of transmitting
|
1654
|
+
* trees more frequently.
|
1655
|
+
* - I can't count above 4
|
1656
|
+
*/
|
1657
|
+
|
1658
|
+
this.last_lit = 0; /* running index in l_buf */
|
1659
|
+
|
1660
|
+
this.d_buf = 0;
|
1661
|
+
/* Buffer index for distances. To simplify the code, d_buf and l_buf have
|
1662
|
+
* the same number of elements. To use different lengths, an extra flag
|
1663
|
+
* array would be necessary.
|
1664
|
+
*/
|
1665
|
+
|
1666
|
+
this.opt_len = 0; /* bit length of current block with optimal trees */
|
1667
|
+
this.static_len = 0; /* bit length of current block with static trees */
|
1668
|
+
this.matches = 0; /* number of string matches in current block */
|
1669
|
+
this.insert = 0; /* bytes at end of window left to insert */
|
1670
|
+
|
1671
|
+
|
1672
|
+
this.bi_buf = 0;
|
1673
|
+
/* Output buffer. bits are inserted starting at the bottom (least
|
1674
|
+
* significant bits).
|
1675
|
+
*/
|
1676
|
+
this.bi_valid = 0;
|
1677
|
+
/* Number of valid bits in bi_buf. All bits above the last valid bit
|
1678
|
+
* are always zero.
|
1679
|
+
*/
|
1680
|
+
|
1681
|
+
// Used for window memory init. We safely ignore it for JS. That makes
|
1682
|
+
// sense only for pointers and memory check tools.
|
1683
|
+
//this.high_water = 0;
|
1684
|
+
/* High water mark offset in window for initialized bytes -- bytes above
|
1685
|
+
* this are set to zero in order to avoid memory check warnings when
|
1686
|
+
* longest match routines access bytes past the input. This is then
|
1687
|
+
* updated to the new high water mark.
|
1688
|
+
*/
|
1689
|
+
}
|
1690
|
+
|
1691
|
+
|
1692
|
+
function deflateResetKeep(strm) {
|
1693
|
+
var s;
|
1694
|
+
|
1695
|
+
if (!strm || !strm.state) {
|
1696
|
+
return err(strm, Z_STREAM_ERROR);
|
1697
|
+
}
|
1698
|
+
|
1699
|
+
strm.total_in = strm.total_out = 0;
|
1700
|
+
strm.data_type = Z_UNKNOWN;
|
1701
|
+
|
1702
|
+
s = strm.state;
|
1703
|
+
s.pending = 0;
|
1704
|
+
s.pending_out = 0;
|
1705
|
+
|
1706
|
+
if (s.wrap < 0) {
|
1707
|
+
s.wrap = -s.wrap;
|
1708
|
+
/* was made negative by deflate(..., Z_FINISH); */
|
1709
|
+
}
|
1710
|
+
s.status = (s.wrap ? INIT_STATE : BUSY_STATE);
|
1711
|
+
strm.adler = (s.wrap === 2) ?
|
1712
|
+
0 // crc32(0, Z_NULL, 0)
|
1713
|
+
:
|
1714
|
+
1; // adler32(0, Z_NULL, 0)
|
1715
|
+
s.last_flush = Z_NO_FLUSH;
|
1716
|
+
trees._tr_init(s);
|
1717
|
+
return Z_OK;
|
1718
|
+
}
|
1719
|
+
|
1720
|
+
|
1721
|
+
function deflateReset(strm) {
|
1722
|
+
var ret = deflateResetKeep(strm);
|
1723
|
+
if (ret === Z_OK) {
|
1724
|
+
lm_init(strm.state);
|
1725
|
+
}
|
1726
|
+
return ret;
|
1727
|
+
}
|
1728
|
+
|
1729
|
+
|
1730
|
+
function deflateSetHeader(strm, head) {
|
1731
|
+
if (!strm || !strm.state) { return Z_STREAM_ERROR; }
|
1732
|
+
if (strm.state.wrap !== 2) { return Z_STREAM_ERROR; }
|
1733
|
+
strm.state.gzhead = head;
|
1734
|
+
return Z_OK;
|
1735
|
+
}
|
1736
|
+
|
1737
|
+
|
1738
|
+
function deflateInit2(strm, level, method, windowBits, memLevel, strategy) {
|
1739
|
+
if (!strm) { // === Z_NULL
|
1740
|
+
return Z_STREAM_ERROR;
|
1741
|
+
}
|
1742
|
+
var wrap = 1;
|
1743
|
+
|
1744
|
+
if (level === Z_DEFAULT_COMPRESSION) {
|
1745
|
+
level = 6;
|
1746
|
+
}
|
1747
|
+
|
1748
|
+
if (windowBits < 0) { /* suppress zlib wrapper */
|
1749
|
+
wrap = 0;
|
1750
|
+
windowBits = -windowBits;
|
1751
|
+
}
|
1752
|
+
|
1753
|
+
else if (windowBits > 15) {
|
1754
|
+
wrap = 2; /* write gzip wrapper instead */
|
1755
|
+
windowBits -= 16;
|
1756
|
+
}
|
1757
|
+
|
1758
|
+
|
1759
|
+
if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method !== Z_DEFLATED ||
|
1760
|
+
windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||
|
1761
|
+
strategy < 0 || strategy > Z_FIXED) {
|
1762
|
+
return err(strm, Z_STREAM_ERROR);
|
1763
|
+
}
|
1764
|
+
|
1765
|
+
|
1766
|
+
if (windowBits === 8) {
|
1767
|
+
windowBits = 9;
|
1768
|
+
}
|
1769
|
+
/* until 256-byte window bug fixed */
|
1770
|
+
|
1771
|
+
var s = new DeflateState();
|
1772
|
+
|
1773
|
+
strm.state = s;
|
1774
|
+
s.strm = strm;
|
1775
|
+
|
1776
|
+
s.wrap = wrap;
|
1777
|
+
s.gzhead = null;
|
1778
|
+
s.w_bits = windowBits;
|
1779
|
+
s.w_size = 1 << s.w_bits;
|
1780
|
+
s.w_mask = s.w_size - 1;
|
1781
|
+
|
1782
|
+
s.hash_bits = memLevel + 7;
|
1783
|
+
s.hash_size = 1 << s.hash_bits;
|
1784
|
+
s.hash_mask = s.hash_size - 1;
|
1785
|
+
s.hash_shift = ~~((s.hash_bits + MIN_MATCH - 1) / MIN_MATCH);
|
1786
|
+
|
1787
|
+
s.window = new utils.Buf8(s.w_size * 2);
|
1788
|
+
s.head = new utils.Buf16(s.hash_size);
|
1789
|
+
s.prev = new utils.Buf16(s.w_size);
|
1790
|
+
|
1791
|
+
// Don't need mem init magic for JS.
|
1792
|
+
//s.high_water = 0; /* nothing written to s->window yet */
|
1793
|
+
|
1794
|
+
s.lit_bufsize = 1 << (memLevel + 6); /* 16K elements by default */
|
1795
|
+
|
1796
|
+
s.pending_buf_size = s.lit_bufsize * 4;
|
1797
|
+
|
1798
|
+
//overlay = (ushf *) ZALLOC(strm, s->lit_bufsize, sizeof(ush)+2);
|
1799
|
+
//s->pending_buf = (uchf *) overlay;
|
1800
|
+
s.pending_buf = new utils.Buf8(s.pending_buf_size);
|
1801
|
+
|
1802
|
+
// It is offset from `s.pending_buf` (size is `s.lit_bufsize * 2`)
|
1803
|
+
//s->d_buf = overlay + s->lit_bufsize/sizeof(ush);
|
1804
|
+
s.d_buf = 1 * s.lit_bufsize;
|
1805
|
+
|
1806
|
+
//s->l_buf = s->pending_buf + (1+sizeof(ush))*s->lit_bufsize;
|
1807
|
+
s.l_buf = (1 + 2) * s.lit_bufsize;
|
1808
|
+
|
1809
|
+
s.level = level;
|
1810
|
+
s.strategy = strategy;
|
1811
|
+
s.method = method;
|
1812
|
+
|
1813
|
+
return deflateReset(strm);
|
1814
|
+
}
|
1815
|
+
|
1816
|
+
function deflateInit(strm, level) {
|
1817
|
+
return deflateInit2(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY);
|
1818
|
+
}
|
1819
|
+
|
1820
|
+
|
1821
|
+
function deflate(strm, flush) {
|
1822
|
+
var old_flush, s;
|
1823
|
+
var beg, val; // for gzip header write only
|
1824
|
+
|
1825
|
+
if (!strm || !strm.state ||
|
1826
|
+
flush > Z_BLOCK || flush < 0) {
|
1827
|
+
return strm ? err(strm, Z_STREAM_ERROR) : Z_STREAM_ERROR;
|
1828
|
+
}
|
1829
|
+
|
1830
|
+
s = strm.state;
|
1831
|
+
|
1832
|
+
if (!strm.output ||
|
1833
|
+
(!strm.input && strm.avail_in !== 0) ||
|
1834
|
+
(s.status === FINISH_STATE && flush !== Z_FINISH)) {
|
1835
|
+
return err(strm, (strm.avail_out === 0) ? Z_BUF_ERROR : Z_STREAM_ERROR);
|
1836
|
+
}
|
1837
|
+
|
1838
|
+
s.strm = strm; /* just in case */
|
1839
|
+
old_flush = s.last_flush;
|
1840
|
+
s.last_flush = flush;
|
1841
|
+
|
1842
|
+
/* Write the header */
|
1843
|
+
if (s.status === INIT_STATE) {
|
1844
|
+
|
1845
|
+
if (s.wrap === 2) { // GZIP header
|
1846
|
+
strm.adler = 0; //crc32(0L, Z_NULL, 0);
|
1847
|
+
put_byte(s, 31);
|
1848
|
+
put_byte(s, 139);
|
1849
|
+
put_byte(s, 8);
|
1850
|
+
if (!s.gzhead) { // s->gzhead == Z_NULL
|
1851
|
+
put_byte(s, 0);
|
1852
|
+
put_byte(s, 0);
|
1853
|
+
put_byte(s, 0);
|
1854
|
+
put_byte(s, 0);
|
1855
|
+
put_byte(s, 0);
|
1856
|
+
put_byte(s, s.level === 9 ? 2 :
|
1857
|
+
(s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?
|
1858
|
+
4 : 0));
|
1859
|
+
put_byte(s, OS_CODE);
|
1860
|
+
s.status = BUSY_STATE;
|
1861
|
+
}
|
1862
|
+
else {
|
1863
|
+
put_byte(s, (s.gzhead.text ? 1 : 0) +
|
1864
|
+
(s.gzhead.hcrc ? 2 : 0) +
|
1865
|
+
(!s.gzhead.extra ? 0 : 4) +
|
1866
|
+
(!s.gzhead.name ? 0 : 8) +
|
1867
|
+
(!s.gzhead.comment ? 0 : 16)
|
1868
|
+
);
|
1869
|
+
put_byte(s, s.gzhead.time & 0xff);
|
1870
|
+
put_byte(s, (s.gzhead.time >> 8) & 0xff);
|
1871
|
+
put_byte(s, (s.gzhead.time >> 16) & 0xff);
|
1872
|
+
put_byte(s, (s.gzhead.time >> 24) & 0xff);
|
1873
|
+
put_byte(s, s.level === 9 ? 2 :
|
1874
|
+
(s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?
|
1875
|
+
4 : 0));
|
1876
|
+
put_byte(s, s.gzhead.os & 0xff);
|
1877
|
+
if (s.gzhead.extra && s.gzhead.extra.length) {
|
1878
|
+
put_byte(s, s.gzhead.extra.length & 0xff);
|
1879
|
+
put_byte(s, (s.gzhead.extra.length >> 8) & 0xff);
|
1880
|
+
}
|
1881
|
+
if (s.gzhead.hcrc) {
|
1882
|
+
strm.adler = crc32(strm.adler, s.pending_buf, s.pending, 0);
|
1883
|
+
}
|
1884
|
+
s.gzindex = 0;
|
1885
|
+
s.status = EXTRA_STATE;
|
1886
|
+
}
|
1887
|
+
}
|
1888
|
+
else // DEFLATE header
|
1889
|
+
{
|
1890
|
+
var header = (Z_DEFLATED + ((s.w_bits - 8) << 4)) << 8;
|
1891
|
+
var level_flags = -1;
|
1892
|
+
|
1893
|
+
if (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2) {
|
1894
|
+
level_flags = 0;
|
1895
|
+
} else if (s.level < 6) {
|
1896
|
+
level_flags = 1;
|
1897
|
+
} else if (s.level === 6) {
|
1898
|
+
level_flags = 2;
|
1899
|
+
} else {
|
1900
|
+
level_flags = 3;
|
1901
|
+
}
|
1902
|
+
header |= (level_flags << 6);
|
1903
|
+
if (s.strstart !== 0) { header |= PRESET_DICT; }
|
1904
|
+
header += 31 - (header % 31);
|
1905
|
+
|
1906
|
+
s.status = BUSY_STATE;
|
1907
|
+
putShortMSB(s, header);
|
1908
|
+
|
1909
|
+
/* Save the adler32 of the preset dictionary: */
|
1910
|
+
if (s.strstart !== 0) {
|
1911
|
+
putShortMSB(s, strm.adler >>> 16);
|
1912
|
+
putShortMSB(s, strm.adler & 0xffff);
|
1913
|
+
}
|
1914
|
+
strm.adler = 1; // adler32(0L, Z_NULL, 0);
|
1915
|
+
}
|
1916
|
+
}
|
1917
|
+
|
1918
|
+
//#ifdef GZIP
|
1919
|
+
if (s.status === EXTRA_STATE) {
|
1920
|
+
if (s.gzhead.extra/* != Z_NULL*/) {
|
1921
|
+
beg = s.pending; /* start of bytes to update crc */
|
1922
|
+
|
1923
|
+
while (s.gzindex < (s.gzhead.extra.length & 0xffff)) {
|
1924
|
+
if (s.pending === s.pending_buf_size) {
|
1925
|
+
if (s.gzhead.hcrc && s.pending > beg) {
|
1926
|
+
strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
1927
|
+
}
|
1928
|
+
flush_pending(strm);
|
1929
|
+
beg = s.pending;
|
1930
|
+
if (s.pending === s.pending_buf_size) {
|
1931
|
+
break;
|
1932
|
+
}
|
1933
|
+
}
|
1934
|
+
put_byte(s, s.gzhead.extra[s.gzindex] & 0xff);
|
1935
|
+
s.gzindex++;
|
1936
|
+
}
|
1937
|
+
if (s.gzhead.hcrc && s.pending > beg) {
|
1938
|
+
strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
1939
|
+
}
|
1940
|
+
if (s.gzindex === s.gzhead.extra.length) {
|
1941
|
+
s.gzindex = 0;
|
1942
|
+
s.status = NAME_STATE;
|
1943
|
+
}
|
1944
|
+
}
|
1945
|
+
else {
|
1946
|
+
s.status = NAME_STATE;
|
1947
|
+
}
|
1948
|
+
}
|
1949
|
+
if (s.status === NAME_STATE) {
|
1950
|
+
if (s.gzhead.name/* != Z_NULL*/) {
|
1951
|
+
beg = s.pending; /* start of bytes to update crc */
|
1952
|
+
//int val;
|
1953
|
+
|
1954
|
+
do {
|
1955
|
+
if (s.pending === s.pending_buf_size) {
|
1956
|
+
if (s.gzhead.hcrc && s.pending > beg) {
|
1957
|
+
strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
1958
|
+
}
|
1959
|
+
flush_pending(strm);
|
1960
|
+
beg = s.pending;
|
1961
|
+
if (s.pending === s.pending_buf_size) {
|
1962
|
+
val = 1;
|
1963
|
+
break;
|
1964
|
+
}
|
1965
|
+
}
|
1966
|
+
// JS specific: little magic to add zero terminator to end of string
|
1967
|
+
if (s.gzindex < s.gzhead.name.length) {
|
1968
|
+
val = s.gzhead.name.charCodeAt(s.gzindex++) & 0xff;
|
1969
|
+
} else {
|
1970
|
+
val = 0;
|
1971
|
+
}
|
1972
|
+
put_byte(s, val);
|
1973
|
+
} while (val !== 0);
|
1974
|
+
|
1975
|
+
if (s.gzhead.hcrc && s.pending > beg) {
|
1976
|
+
strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
1977
|
+
}
|
1978
|
+
if (val === 0) {
|
1979
|
+
s.gzindex = 0;
|
1980
|
+
s.status = COMMENT_STATE;
|
1981
|
+
}
|
1982
|
+
}
|
1983
|
+
else {
|
1984
|
+
s.status = COMMENT_STATE;
|
1985
|
+
}
|
1986
|
+
}
|
1987
|
+
if (s.status === COMMENT_STATE) {
|
1988
|
+
if (s.gzhead.comment/* != Z_NULL*/) {
|
1989
|
+
beg = s.pending; /* start of bytes to update crc */
|
1990
|
+
//int val;
|
1991
|
+
|
1992
|
+
do {
|
1993
|
+
if (s.pending === s.pending_buf_size) {
|
1994
|
+
if (s.gzhead.hcrc && s.pending > beg) {
|
1995
|
+
strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
1996
|
+
}
|
1997
|
+
flush_pending(strm);
|
1998
|
+
beg = s.pending;
|
1999
|
+
if (s.pending === s.pending_buf_size) {
|
2000
|
+
val = 1;
|
2001
|
+
break;
|
2002
|
+
}
|
2003
|
+
}
|
2004
|
+
// JS specific: little magic to add zero terminator to end of string
|
2005
|
+
if (s.gzindex < s.gzhead.comment.length) {
|
2006
|
+
val = s.gzhead.comment.charCodeAt(s.gzindex++) & 0xff;
|
2007
|
+
} else {
|
2008
|
+
val = 0;
|
2009
|
+
}
|
2010
|
+
put_byte(s, val);
|
2011
|
+
} while (val !== 0);
|
2012
|
+
|
2013
|
+
if (s.gzhead.hcrc && s.pending > beg) {
|
2014
|
+
strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
2015
|
+
}
|
2016
|
+
if (val === 0) {
|
2017
|
+
s.status = HCRC_STATE;
|
2018
|
+
}
|
2019
|
+
}
|
2020
|
+
else {
|
2021
|
+
s.status = HCRC_STATE;
|
2022
|
+
}
|
2023
|
+
}
|
2024
|
+
if (s.status === HCRC_STATE) {
|
2025
|
+
if (s.gzhead.hcrc) {
|
2026
|
+
if (s.pending + 2 > s.pending_buf_size) {
|
2027
|
+
flush_pending(strm);
|
2028
|
+
}
|
2029
|
+
if (s.pending + 2 <= s.pending_buf_size) {
|
2030
|
+
put_byte(s, strm.adler & 0xff);
|
2031
|
+
put_byte(s, (strm.adler >> 8) & 0xff);
|
2032
|
+
strm.adler = 0; //crc32(0L, Z_NULL, 0);
|
2033
|
+
s.status = BUSY_STATE;
|
2034
|
+
}
|
2035
|
+
}
|
2036
|
+
else {
|
2037
|
+
s.status = BUSY_STATE;
|
2038
|
+
}
|
2039
|
+
}
|
2040
|
+
//#endif
|
2041
|
+
|
2042
|
+
/* Flush as much pending output as possible */
|
2043
|
+
if (s.pending !== 0) {
|
2044
|
+
flush_pending(strm);
|
2045
|
+
if (strm.avail_out === 0) {
|
2046
|
+
/* Since avail_out is 0, deflate will be called again with
|
2047
|
+
* more output space, but possibly with both pending and
|
2048
|
+
* avail_in equal to zero. There won't be anything to do,
|
2049
|
+
* but this is not an error situation so make sure we
|
2050
|
+
* return OK instead of BUF_ERROR at next call of deflate:
|
2051
|
+
*/
|
2052
|
+
s.last_flush = -1;
|
2053
|
+
return Z_OK;
|
2054
|
+
}
|
2055
|
+
|
2056
|
+
/* Make sure there is something to do and avoid duplicate consecutive
|
2057
|
+
* flushes. For repeated and useless calls with Z_FINISH, we keep
|
2058
|
+
* returning Z_STREAM_END instead of Z_BUF_ERROR.
|
2059
|
+
*/
|
2060
|
+
} else if (strm.avail_in === 0 && rank(flush) <= rank(old_flush) &&
|
2061
|
+
flush !== Z_FINISH) {
|
2062
|
+
return err(strm, Z_BUF_ERROR);
|
2063
|
+
}
|
2064
|
+
|
2065
|
+
/* User must not provide more input after the first FINISH: */
|
2066
|
+
if (s.status === FINISH_STATE && strm.avail_in !== 0) {
|
2067
|
+
return err(strm, Z_BUF_ERROR);
|
2068
|
+
}
|
2069
|
+
|
2070
|
+
/* Start a new block or continue the current one.
|
2071
|
+
*/
|
2072
|
+
if (strm.avail_in !== 0 || s.lookahead !== 0 ||
|
2073
|
+
(flush !== Z_NO_FLUSH && s.status !== FINISH_STATE)) {
|
2074
|
+
var bstate = (s.strategy === Z_HUFFMAN_ONLY) ? deflate_huff(s, flush) :
|
2075
|
+
(s.strategy === Z_RLE ? deflate_rle(s, flush) :
|
2076
|
+
configuration_table[s.level].func(s, flush));
|
2077
|
+
|
2078
|
+
if (bstate === BS_FINISH_STARTED || bstate === BS_FINISH_DONE) {
|
2079
|
+
s.status = FINISH_STATE;
|
2080
|
+
}
|
2081
|
+
if (bstate === BS_NEED_MORE || bstate === BS_FINISH_STARTED) {
|
2082
|
+
if (strm.avail_out === 0) {
|
2083
|
+
s.last_flush = -1;
|
2084
|
+
/* avoid BUF_ERROR next call, see above */
|
2085
|
+
}
|
2086
|
+
return Z_OK;
|
2087
|
+
/* If flush != Z_NO_FLUSH && avail_out == 0, the next call
|
2088
|
+
* of deflate should use the same flush parameter to make sure
|
2089
|
+
* that the flush is complete. So we don't have to output an
|
2090
|
+
* empty block here, this will be done at next call. This also
|
2091
|
+
* ensures that for a very small output buffer, we emit at most
|
2092
|
+
* one empty block.
|
2093
|
+
*/
|
2094
|
+
}
|
2095
|
+
if (bstate === BS_BLOCK_DONE) {
|
2096
|
+
if (flush === Z_PARTIAL_FLUSH) {
|
2097
|
+
trees._tr_align(s);
|
2098
|
+
}
|
2099
|
+
else if (flush !== Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */
|
2100
|
+
|
2101
|
+
trees._tr_stored_block(s, 0, 0, false);
|
2102
|
+
/* For a full flush, this empty block will be recognized
|
2103
|
+
* as a special marker by inflate_sync().
|
2104
|
+
*/
|
2105
|
+
if (flush === Z_FULL_FLUSH) {
|
2106
|
+
/*** CLEAR_HASH(s); ***/ /* forget history */
|
2107
|
+
zero(s.head); // Fill with NIL (= 0);
|
2108
|
+
|
2109
|
+
if (s.lookahead === 0) {
|
2110
|
+
s.strstart = 0;
|
2111
|
+
s.block_start = 0;
|
2112
|
+
s.insert = 0;
|
2113
|
+
}
|
2114
|
+
}
|
2115
|
+
}
|
2116
|
+
flush_pending(strm);
|
2117
|
+
if (strm.avail_out === 0) {
|
2118
|
+
s.last_flush = -1; /* avoid BUF_ERROR at next call, see above */
|
2119
|
+
return Z_OK;
|
2120
|
+
}
|
2121
|
+
}
|
2122
|
+
}
|
2123
|
+
//Assert(strm->avail_out > 0, "bug2");
|
2124
|
+
//if (strm.avail_out <= 0) { throw new Error("bug2");}
|
2125
|
+
|
2126
|
+
if (flush !== Z_FINISH) { return Z_OK; }
|
2127
|
+
if (s.wrap <= 0) { return Z_STREAM_END; }
|
2128
|
+
|
2129
|
+
/* Write the trailer */
|
2130
|
+
if (s.wrap === 2) {
|
2131
|
+
put_byte(s, strm.adler & 0xff);
|
2132
|
+
put_byte(s, (strm.adler >> 8) & 0xff);
|
2133
|
+
put_byte(s, (strm.adler >> 16) & 0xff);
|
2134
|
+
put_byte(s, (strm.adler >> 24) & 0xff);
|
2135
|
+
put_byte(s, strm.total_in & 0xff);
|
2136
|
+
put_byte(s, (strm.total_in >> 8) & 0xff);
|
2137
|
+
put_byte(s, (strm.total_in >> 16) & 0xff);
|
2138
|
+
put_byte(s, (strm.total_in >> 24) & 0xff);
|
2139
|
+
}
|
2140
|
+
else
|
2141
|
+
{
|
2142
|
+
putShortMSB(s, strm.adler >>> 16);
|
2143
|
+
putShortMSB(s, strm.adler & 0xffff);
|
2144
|
+
}
|
2145
|
+
|
2146
|
+
flush_pending(strm);
|
2147
|
+
/* If avail_out is zero, the application will call deflate again
|
2148
|
+
* to flush the rest.
|
2149
|
+
*/
|
2150
|
+
if (s.wrap > 0) { s.wrap = -s.wrap; }
|
2151
|
+
/* write the trailer only once! */
|
2152
|
+
return s.pending !== 0 ? Z_OK : Z_STREAM_END;
|
2153
|
+
}
|
2154
|
+
|
2155
|
+
function deflateEnd(strm) {
|
2156
|
+
var status;
|
2157
|
+
|
2158
|
+
if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) {
|
2159
|
+
return Z_STREAM_ERROR;
|
2160
|
+
}
|
2161
|
+
|
2162
|
+
status = strm.state.status;
|
2163
|
+
if (status !== INIT_STATE &&
|
2164
|
+
status !== EXTRA_STATE &&
|
2165
|
+
status !== NAME_STATE &&
|
2166
|
+
status !== COMMENT_STATE &&
|
2167
|
+
status !== HCRC_STATE &&
|
2168
|
+
status !== BUSY_STATE &&
|
2169
|
+
status !== FINISH_STATE
|
2170
|
+
) {
|
2171
|
+
return err(strm, Z_STREAM_ERROR);
|
2172
|
+
}
|
2173
|
+
|
2174
|
+
strm.state = null;
|
2175
|
+
|
2176
|
+
return status === BUSY_STATE ? err(strm, Z_DATA_ERROR) : Z_OK;
|
2177
|
+
}
|
2178
|
+
|
2179
|
+
|
2180
|
+
/* =========================================================================
|
2181
|
+
* Initializes the compression dictionary from the given byte
|
2182
|
+
* sequence without producing any compressed output.
|
2183
|
+
*/
|
2184
|
+
function deflateSetDictionary(strm, dictionary) {
|
2185
|
+
var dictLength = dictionary.length;
|
2186
|
+
|
2187
|
+
var s;
|
2188
|
+
var str, n;
|
2189
|
+
var wrap;
|
2190
|
+
var avail;
|
2191
|
+
var next;
|
2192
|
+
var input;
|
2193
|
+
var tmpDict;
|
2194
|
+
|
2195
|
+
if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) {
|
2196
|
+
return Z_STREAM_ERROR;
|
2197
|
+
}
|
2198
|
+
|
2199
|
+
s = strm.state;
|
2200
|
+
wrap = s.wrap;
|
2201
|
+
|
2202
|
+
if (wrap === 2 || (wrap === 1 && s.status !== INIT_STATE) || s.lookahead) {
|
2203
|
+
return Z_STREAM_ERROR;
|
2204
|
+
}
|
2205
|
+
|
2206
|
+
/* when using zlib wrappers, compute Adler-32 for provided dictionary */
|
2207
|
+
if (wrap === 1) {
|
2208
|
+
/* adler32(strm->adler, dictionary, dictLength); */
|
2209
|
+
strm.adler = adler32(strm.adler, dictionary, dictLength, 0);
|
2210
|
+
}
|
2211
|
+
|
2212
|
+
s.wrap = 0; /* avoid computing Adler-32 in read_buf */
|
2213
|
+
|
2214
|
+
/* if dictionary would fill window, just replace the history */
|
2215
|
+
if (dictLength >= s.w_size) {
|
2216
|
+
if (wrap === 0) { /* already empty otherwise */
|
2217
|
+
/*** CLEAR_HASH(s); ***/
|
2218
|
+
zero(s.head); // Fill with NIL (= 0);
|
2219
|
+
s.strstart = 0;
|
2220
|
+
s.block_start = 0;
|
2221
|
+
s.insert = 0;
|
2222
|
+
}
|
2223
|
+
/* use the tail */
|
2224
|
+
// dictionary = dictionary.slice(dictLength - s.w_size);
|
2225
|
+
tmpDict = new utils.Buf8(s.w_size);
|
2226
|
+
utils.arraySet(tmpDict, dictionary, dictLength - s.w_size, s.w_size, 0);
|
2227
|
+
dictionary = tmpDict;
|
2228
|
+
dictLength = s.w_size;
|
2229
|
+
}
|
2230
|
+
/* insert dictionary into window and hash */
|
2231
|
+
avail = strm.avail_in;
|
2232
|
+
next = strm.next_in;
|
2233
|
+
input = strm.input;
|
2234
|
+
strm.avail_in = dictLength;
|
2235
|
+
strm.next_in = 0;
|
2236
|
+
strm.input = dictionary;
|
2237
|
+
fill_window(s);
|
2238
|
+
while (s.lookahead >= MIN_MATCH) {
|
2239
|
+
str = s.strstart;
|
2240
|
+
n = s.lookahead - (MIN_MATCH - 1);
|
2241
|
+
do {
|
2242
|
+
/* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */
|
2243
|
+
s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask;
|
2244
|
+
|
2245
|
+
s.prev[str & s.w_mask] = s.head[s.ins_h];
|
2246
|
+
|
2247
|
+
s.head[s.ins_h] = str;
|
2248
|
+
str++;
|
2249
|
+
} while (--n);
|
2250
|
+
s.strstart = str;
|
2251
|
+
s.lookahead = MIN_MATCH - 1;
|
2252
|
+
fill_window(s);
|
2253
|
+
}
|
2254
|
+
s.strstart += s.lookahead;
|
2255
|
+
s.block_start = s.strstart;
|
2256
|
+
s.insert = s.lookahead;
|
2257
|
+
s.lookahead = 0;
|
2258
|
+
s.match_length = s.prev_length = MIN_MATCH - 1;
|
2259
|
+
s.match_available = 0;
|
2260
|
+
strm.next_in = next;
|
2261
|
+
strm.input = input;
|
2262
|
+
strm.avail_in = avail;
|
2263
|
+
s.wrap = wrap;
|
2264
|
+
return Z_OK;
|
2265
|
+
}
|
2266
|
+
|
2267
|
+
|
2268
|
+
exports.deflateInit = deflateInit;
|
2269
|
+
exports.deflateInit2 = deflateInit2;
|
2270
|
+
exports.deflateReset = deflateReset;
|
2271
|
+
exports.deflateResetKeep = deflateResetKeep;
|
2272
|
+
exports.deflateSetHeader = deflateSetHeader;
|
2273
|
+
exports.deflate = deflate;
|
2274
|
+
exports.deflateEnd = deflateEnd;
|
2275
|
+
exports.deflateSetDictionary = deflateSetDictionary;
|
2276
|
+
exports.deflateInfo = 'pako deflate (from Nodeca project)';
|
2277
|
+
|
2278
|
+
/* Not implemented
|
2279
|
+
exports.deflateBound = deflateBound;
|
2280
|
+
exports.deflateCopy = deflateCopy;
|
2281
|
+
exports.deflateParams = deflateParams;
|
2282
|
+
exports.deflatePending = deflatePending;
|
2283
|
+
exports.deflatePrime = deflatePrime;
|
2284
|
+
exports.deflateTune = deflateTune;
|
2285
|
+
*/
|
2286
|
+
|
2287
|
+
},{"../utils/common":1,"./adler32":3,"./crc32":4,"./messages":6,"./trees":7}],6:[function(require,module,exports){
|
2288
|
+
'use strict';
|
2289
|
+
|
2290
|
+
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
|
2291
|
+
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
|
2292
|
+
//
|
2293
|
+
// This software is provided 'as-is', without any express or implied
|
2294
|
+
// warranty. In no event will the authors be held liable for any damages
|
2295
|
+
// arising from the use of this software.
|
2296
|
+
//
|
2297
|
+
// Permission is granted to anyone to use this software for any purpose,
|
2298
|
+
// including commercial applications, and to alter it and redistribute it
|
2299
|
+
// freely, subject to the following restrictions:
|
2300
|
+
//
|
2301
|
+
// 1. The origin of this software must not be misrepresented; you must not
|
2302
|
+
// claim that you wrote the original software. If you use this software
|
2303
|
+
// in a product, an acknowledgment in the product documentation would be
|
2304
|
+
// appreciated but is not required.
|
2305
|
+
// 2. Altered source versions must be plainly marked as such, and must not be
|
2306
|
+
// misrepresented as being the original software.
|
2307
|
+
// 3. This notice may not be removed or altered from any source distribution.
|
2308
|
+
|
2309
|
+
module.exports = {
|
2310
|
+
2: 'need dictionary', /* Z_NEED_DICT 2 */
|
2311
|
+
1: 'stream end', /* Z_STREAM_END 1 */
|
2312
|
+
0: '', /* Z_OK 0 */
|
2313
|
+
'-1': 'file error', /* Z_ERRNO (-1) */
|
2314
|
+
'-2': 'stream error', /* Z_STREAM_ERROR (-2) */
|
2315
|
+
'-3': 'data error', /* Z_DATA_ERROR (-3) */
|
2316
|
+
'-4': 'insufficient memory', /* Z_MEM_ERROR (-4) */
|
2317
|
+
'-5': 'buffer error', /* Z_BUF_ERROR (-5) */
|
2318
|
+
'-6': 'incompatible version' /* Z_VERSION_ERROR (-6) */
|
2319
|
+
};
|
2320
|
+
|
2321
|
+
},{}],7:[function(require,module,exports){
|
2322
|
+
'use strict';
|
2323
|
+
|
2324
|
+
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
|
2325
|
+
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
|
2326
|
+
//
|
2327
|
+
// This software is provided 'as-is', without any express or implied
|
2328
|
+
// warranty. In no event will the authors be held liable for any damages
|
2329
|
+
// arising from the use of this software.
|
2330
|
+
//
|
2331
|
+
// Permission is granted to anyone to use this software for any purpose,
|
2332
|
+
// including commercial applications, and to alter it and redistribute it
|
2333
|
+
// freely, subject to the following restrictions:
|
2334
|
+
//
|
2335
|
+
// 1. The origin of this software must not be misrepresented; you must not
|
2336
|
+
// claim that you wrote the original software. If you use this software
|
2337
|
+
// in a product, an acknowledgment in the product documentation would be
|
2338
|
+
// appreciated but is not required.
|
2339
|
+
// 2. Altered source versions must be plainly marked as such, and must not be
|
2340
|
+
// misrepresented as being the original software.
|
2341
|
+
// 3. This notice may not be removed or altered from any source distribution.
|
2342
|
+
|
2343
|
+
/* eslint-disable space-unary-ops */
|
2344
|
+
|
2345
|
+
var utils = require('../utils/common');
|
2346
|
+
|
2347
|
+
/* Public constants ==========================================================*/
|
2348
|
+
/* ===========================================================================*/
|
2349
|
+
|
2350
|
+
|
2351
|
+
//var Z_FILTERED = 1;
|
2352
|
+
//var Z_HUFFMAN_ONLY = 2;
|
2353
|
+
//var Z_RLE = 3;
|
2354
|
+
var Z_FIXED = 4;
|
2355
|
+
//var Z_DEFAULT_STRATEGY = 0;
|
2356
|
+
|
2357
|
+
/* Possible values of the data_type field (though see inflate()) */
|
2358
|
+
var Z_BINARY = 0;
|
2359
|
+
var Z_TEXT = 1;
|
2360
|
+
//var Z_ASCII = 1; // = Z_TEXT
|
2361
|
+
var Z_UNKNOWN = 2;
|
2362
|
+
|
2363
|
+
/*============================================================================*/
|
2364
|
+
|
2365
|
+
|
2366
|
+
function zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } }
|
2367
|
+
|
2368
|
+
// From zutil.h
|
2369
|
+
|
2370
|
+
var STORED_BLOCK = 0;
|
2371
|
+
var STATIC_TREES = 1;
|
2372
|
+
var DYN_TREES = 2;
|
2373
|
+
/* The three kinds of block type */
|
2374
|
+
|
2375
|
+
var MIN_MATCH = 3;
|
2376
|
+
var MAX_MATCH = 258;
|
2377
|
+
/* The minimum and maximum match lengths */
|
2378
|
+
|
2379
|
+
// From deflate.h
|
2380
|
+
/* ===========================================================================
|
2381
|
+
* Internal compression state.
|
2382
|
+
*/
|
2383
|
+
|
2384
|
+
var LENGTH_CODES = 29;
|
2385
|
+
/* number of length codes, not counting the special END_BLOCK code */
|
2386
|
+
|
2387
|
+
var LITERALS = 256;
|
2388
|
+
/* number of literal bytes 0..255 */
|
2389
|
+
|
2390
|
+
var L_CODES = LITERALS + 1 + LENGTH_CODES;
|
2391
|
+
/* number of Literal or Length codes, including the END_BLOCK code */
|
2392
|
+
|
2393
|
+
var D_CODES = 30;
|
2394
|
+
/* number of distance codes */
|
2395
|
+
|
2396
|
+
var BL_CODES = 19;
|
2397
|
+
/* number of codes used to transfer the bit lengths */
|
2398
|
+
|
2399
|
+
var HEAP_SIZE = 2 * L_CODES + 1;
|
2400
|
+
/* maximum heap size */
|
2401
|
+
|
2402
|
+
var MAX_BITS = 15;
|
2403
|
+
/* All codes must not exceed MAX_BITS bits */
|
2404
|
+
|
2405
|
+
var Buf_size = 16;
|
2406
|
+
/* size of bit buffer in bi_buf */
|
2407
|
+
|
2408
|
+
|
2409
|
+
/* ===========================================================================
|
2410
|
+
* Constants
|
2411
|
+
*/
|
2412
|
+
|
2413
|
+
var MAX_BL_BITS = 7;
|
2414
|
+
/* Bit length codes must not exceed MAX_BL_BITS bits */
|
2415
|
+
|
2416
|
+
var END_BLOCK = 256;
|
2417
|
+
/* end of block literal code */
|
2418
|
+
|
2419
|
+
var REP_3_6 = 16;
|
2420
|
+
/* repeat previous bit length 3-6 times (2 bits of repeat count) */
|
2421
|
+
|
2422
|
+
var REPZ_3_10 = 17;
|
2423
|
+
/* repeat a zero length 3-10 times (3 bits of repeat count) */
|
2424
|
+
|
2425
|
+
var REPZ_11_138 = 18;
|
2426
|
+
/* repeat a zero length 11-138 times (7 bits of repeat count) */
|
2427
|
+
|
2428
|
+
/* eslint-disable comma-spacing,array-bracket-spacing */
|
2429
|
+
var extra_lbits = /* extra bits for each length code */
|
2430
|
+
[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0];
|
2431
|
+
|
2432
|
+
var extra_dbits = /* extra bits for each distance code */
|
2433
|
+
[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];
|
2434
|
+
|
2435
|
+
var extra_blbits = /* extra bits for each bit length code */
|
2436
|
+
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];
|
2437
|
+
|
2438
|
+
var bl_order =
|
2439
|
+
[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];
|
2440
|
+
/* eslint-enable comma-spacing,array-bracket-spacing */
|
2441
|
+
|
2442
|
+
/* The lengths of the bit length codes are sent in order of decreasing
|
2443
|
+
* probability, to avoid transmitting the lengths for unused bit length codes.
|
2444
|
+
*/
|
2445
|
+
|
2446
|
+
/* ===========================================================================
|
2447
|
+
* Local data. These are initialized only once.
|
2448
|
+
*/
|
2449
|
+
|
2450
|
+
// We pre-fill arrays with 0 to avoid uninitialized gaps
|
2451
|
+
|
2452
|
+
var DIST_CODE_LEN = 512; /* see definition of array dist_code below */
|
2453
|
+
|
2454
|
+
// !!!! Use flat array instead of structure, Freq = i*2, Len = i*2+1
|
2455
|
+
var static_ltree = new Array((L_CODES + 2) * 2);
|
2456
|
+
zero(static_ltree);
|
2457
|
+
/* The static literal tree. Since the bit lengths are imposed, there is no
|
2458
|
+
* need for the L_CODES extra codes used during heap construction. However
|
2459
|
+
* The codes 286 and 287 are needed to build a canonical tree (see _tr_init
|
2460
|
+
* below).
|
2461
|
+
*/
|
2462
|
+
|
2463
|
+
var static_dtree = new Array(D_CODES * 2);
|
2464
|
+
zero(static_dtree);
|
2465
|
+
/* The static distance tree. (Actually a trivial tree since all codes use
|
2466
|
+
* 5 bits.)
|
2467
|
+
*/
|
2468
|
+
|
2469
|
+
var _dist_code = new Array(DIST_CODE_LEN);
|
2470
|
+
zero(_dist_code);
|
2471
|
+
/* Distance codes. The first 256 values correspond to the distances
|
2472
|
+
* 3 .. 258, the last 256 values correspond to the top 8 bits of
|
2473
|
+
* the 15 bit distances.
|
2474
|
+
*/
|
2475
|
+
|
2476
|
+
var _length_code = new Array(MAX_MATCH - MIN_MATCH + 1);
|
2477
|
+
zero(_length_code);
|
2478
|
+
/* length code for each normalized match length (0 == MIN_MATCH) */
|
2479
|
+
|
2480
|
+
var base_length = new Array(LENGTH_CODES);
|
2481
|
+
zero(base_length);
|
2482
|
+
/* First normalized length for each code (0 = MIN_MATCH) */
|
2483
|
+
|
2484
|
+
var base_dist = new Array(D_CODES);
|
2485
|
+
zero(base_dist);
|
2486
|
+
/* First normalized distance for each code (0 = distance of 1) */
|
2487
|
+
|
2488
|
+
|
2489
|
+
function StaticTreeDesc(static_tree, extra_bits, extra_base, elems, max_length) {
|
2490
|
+
|
2491
|
+
this.static_tree = static_tree; /* static tree or NULL */
|
2492
|
+
this.extra_bits = extra_bits; /* extra bits for each code or NULL */
|
2493
|
+
this.extra_base = extra_base; /* base index for extra_bits */
|
2494
|
+
this.elems = elems; /* max number of elements in the tree */
|
2495
|
+
this.max_length = max_length; /* max bit length for the codes */
|
2496
|
+
|
2497
|
+
// show if `static_tree` has data or dummy - needed for monomorphic objects
|
2498
|
+
this.has_stree = static_tree && static_tree.length;
|
2499
|
+
}
|
2500
|
+
|
2501
|
+
|
2502
|
+
var static_l_desc;
|
2503
|
+
var static_d_desc;
|
2504
|
+
var static_bl_desc;
|
2505
|
+
|
2506
|
+
|
2507
|
+
function TreeDesc(dyn_tree, stat_desc) {
|
2508
|
+
this.dyn_tree = dyn_tree; /* the dynamic tree */
|
2509
|
+
this.max_code = 0; /* largest code with non zero frequency */
|
2510
|
+
this.stat_desc = stat_desc; /* the corresponding static tree */
|
2511
|
+
}
|
2512
|
+
|
2513
|
+
|
2514
|
+
|
2515
|
+
function d_code(dist) {
|
2516
|
+
return dist < 256 ? _dist_code[dist] : _dist_code[256 + (dist >>> 7)];
|
2517
|
+
}
|
2518
|
+
|
2519
|
+
|
2520
|
+
/* ===========================================================================
|
2521
|
+
* Output a short LSB first on the stream.
|
2522
|
+
* IN assertion: there is enough room in pendingBuf.
|
2523
|
+
*/
|
2524
|
+
function put_short(s, w) {
|
2525
|
+
// put_byte(s, (uch)((w) & 0xff));
|
2526
|
+
// put_byte(s, (uch)((ush)(w) >> 8));
|
2527
|
+
s.pending_buf[s.pending++] = (w) & 0xff;
|
2528
|
+
s.pending_buf[s.pending++] = (w >>> 8) & 0xff;
|
2529
|
+
}
|
2530
|
+
|
2531
|
+
|
2532
|
+
/* ===========================================================================
|
2533
|
+
* Send a value on a given number of bits.
|
2534
|
+
* IN assertion: length <= 16 and value fits in length bits.
|
2535
|
+
*/
|
2536
|
+
function send_bits(s, value, length) {
|
2537
|
+
if (s.bi_valid > (Buf_size - length)) {
|
2538
|
+
s.bi_buf |= (value << s.bi_valid) & 0xffff;
|
2539
|
+
put_short(s, s.bi_buf);
|
2540
|
+
s.bi_buf = value >> (Buf_size - s.bi_valid);
|
2541
|
+
s.bi_valid += length - Buf_size;
|
2542
|
+
} else {
|
2543
|
+
s.bi_buf |= (value << s.bi_valid) & 0xffff;
|
2544
|
+
s.bi_valid += length;
|
2545
|
+
}
|
2546
|
+
}
|
2547
|
+
|
2548
|
+
|
2549
|
+
function send_code(s, c, tree) {
|
2550
|
+
send_bits(s, tree[c * 2]/*.Code*/, tree[c * 2 + 1]/*.Len*/);
|
2551
|
+
}
|
2552
|
+
|
2553
|
+
|
2554
|
+
/* ===========================================================================
|
2555
|
+
* Reverse the first len bits of a code, using straightforward code (a faster
|
2556
|
+
* method would use a table)
|
2557
|
+
* IN assertion: 1 <= len <= 15
|
2558
|
+
*/
|
2559
|
+
function bi_reverse(code, len) {
|
2560
|
+
var res = 0;
|
2561
|
+
do {
|
2562
|
+
res |= code & 1;
|
2563
|
+
code >>>= 1;
|
2564
|
+
res <<= 1;
|
2565
|
+
} while (--len > 0);
|
2566
|
+
return res >>> 1;
|
2567
|
+
}
|
2568
|
+
|
2569
|
+
|
2570
|
+
/* ===========================================================================
|
2571
|
+
* Flush the bit buffer, keeping at most 7 bits in it.
|
2572
|
+
*/
|
2573
|
+
function bi_flush(s) {
|
2574
|
+
if (s.bi_valid === 16) {
|
2575
|
+
put_short(s, s.bi_buf);
|
2576
|
+
s.bi_buf = 0;
|
2577
|
+
s.bi_valid = 0;
|
2578
|
+
|
2579
|
+
} else if (s.bi_valid >= 8) {
|
2580
|
+
s.pending_buf[s.pending++] = s.bi_buf & 0xff;
|
2581
|
+
s.bi_buf >>= 8;
|
2582
|
+
s.bi_valid -= 8;
|
2583
|
+
}
|
2584
|
+
}
|
2585
|
+
|
2586
|
+
|
2587
|
+
/* ===========================================================================
|
2588
|
+
* Compute the optimal bit lengths for a tree and update the total bit length
|
2589
|
+
* for the current block.
|
2590
|
+
* IN assertion: the fields freq and dad are set, heap[heap_max] and
|
2591
|
+
* above are the tree nodes sorted by increasing frequency.
|
2592
|
+
* OUT assertions: the field len is set to the optimal bit length, the
|
2593
|
+
* array bl_count contains the frequencies for each bit length.
|
2594
|
+
* The length opt_len is updated; static_len is also updated if stree is
|
2595
|
+
* not null.
|
2596
|
+
*/
|
2597
|
+
function gen_bitlen(s, desc)
|
2598
|
+
// deflate_state *s;
|
2599
|
+
// tree_desc *desc; /* the tree descriptor */
|
2600
|
+
{
|
2601
|
+
var tree = desc.dyn_tree;
|
2602
|
+
var max_code = desc.max_code;
|
2603
|
+
var stree = desc.stat_desc.static_tree;
|
2604
|
+
var has_stree = desc.stat_desc.has_stree;
|
2605
|
+
var extra = desc.stat_desc.extra_bits;
|
2606
|
+
var base = desc.stat_desc.extra_base;
|
2607
|
+
var max_length = desc.stat_desc.max_length;
|
2608
|
+
var h; /* heap index */
|
2609
|
+
var n, m; /* iterate over the tree elements */
|
2610
|
+
var bits; /* bit length */
|
2611
|
+
var xbits; /* extra bits */
|
2612
|
+
var f; /* frequency */
|
2613
|
+
var overflow = 0; /* number of elements with bit length too large */
|
2614
|
+
|
2615
|
+
for (bits = 0; bits <= MAX_BITS; bits++) {
|
2616
|
+
s.bl_count[bits] = 0;
|
2617
|
+
}
|
2618
|
+
|
2619
|
+
/* In a first pass, compute the optimal bit lengths (which may
|
2620
|
+
* overflow in the case of the bit length tree).
|
2621
|
+
*/
|
2622
|
+
tree[s.heap[s.heap_max] * 2 + 1]/*.Len*/ = 0; /* root of the heap */
|
2623
|
+
|
2624
|
+
for (h = s.heap_max + 1; h < HEAP_SIZE; h++) {
|
2625
|
+
n = s.heap[h];
|
2626
|
+
bits = tree[tree[n * 2 + 1]/*.Dad*/ * 2 + 1]/*.Len*/ + 1;
|
2627
|
+
if (bits > max_length) {
|
2628
|
+
bits = max_length;
|
2629
|
+
overflow++;
|
2630
|
+
}
|
2631
|
+
tree[n * 2 + 1]/*.Len*/ = bits;
|
2632
|
+
/* We overwrite tree[n].Dad which is no longer needed */
|
2633
|
+
|
2634
|
+
if (n > max_code) { continue; } /* not a leaf node */
|
2635
|
+
|
2636
|
+
s.bl_count[bits]++;
|
2637
|
+
xbits = 0;
|
2638
|
+
if (n >= base) {
|
2639
|
+
xbits = extra[n - base];
|
2640
|
+
}
|
2641
|
+
f = tree[n * 2]/*.Freq*/;
|
2642
|
+
s.opt_len += f * (bits + xbits);
|
2643
|
+
if (has_stree) {
|
2644
|
+
s.static_len += f * (stree[n * 2 + 1]/*.Len*/ + xbits);
|
2645
|
+
}
|
2646
|
+
}
|
2647
|
+
if (overflow === 0) { return; }
|
2648
|
+
|
2649
|
+
// Trace((stderr,"\nbit length overflow\n"));
|
2650
|
+
/* This happens for example on obj2 and pic of the Calgary corpus */
|
2651
|
+
|
2652
|
+
/* Find the first bit length which could increase: */
|
2653
|
+
do {
|
2654
|
+
bits = max_length - 1;
|
2655
|
+
while (s.bl_count[bits] === 0) { bits--; }
|
2656
|
+
s.bl_count[bits]--; /* move one leaf down the tree */
|
2657
|
+
s.bl_count[bits + 1] += 2; /* move one overflow item as its brother */
|
2658
|
+
s.bl_count[max_length]--;
|
2659
|
+
/* The brother of the overflow item also moves one step up,
|
2660
|
+
* but this does not affect bl_count[max_length]
|
2661
|
+
*/
|
2662
|
+
overflow -= 2;
|
2663
|
+
} while (overflow > 0);
|
2664
|
+
|
2665
|
+
/* Now recompute all bit lengths, scanning in increasing frequency.
|
2666
|
+
* h is still equal to HEAP_SIZE. (It is simpler to reconstruct all
|
2667
|
+
* lengths instead of fixing only the wrong ones. This idea is taken
|
2668
|
+
* from 'ar' written by Haruhiko Okumura.)
|
2669
|
+
*/
|
2670
|
+
for (bits = max_length; bits !== 0; bits--) {
|
2671
|
+
n = s.bl_count[bits];
|
2672
|
+
while (n !== 0) {
|
2673
|
+
m = s.heap[--h];
|
2674
|
+
if (m > max_code) { continue; }
|
2675
|
+
if (tree[m * 2 + 1]/*.Len*/ !== bits) {
|
2676
|
+
// Trace((stderr,"code %d bits %d->%d\n", m, tree[m].Len, bits));
|
2677
|
+
s.opt_len += (bits - tree[m * 2 + 1]/*.Len*/) * tree[m * 2]/*.Freq*/;
|
2678
|
+
tree[m * 2 + 1]/*.Len*/ = bits;
|
2679
|
+
}
|
2680
|
+
n--;
|
2681
|
+
}
|
2682
|
+
}
|
2683
|
+
}
|
2684
|
+
|
2685
|
+
|
2686
|
+
/* ===========================================================================
|
2687
|
+
* Generate the codes for a given tree and bit counts (which need not be
|
2688
|
+
* optimal).
|
2689
|
+
* IN assertion: the array bl_count contains the bit length statistics for
|
2690
|
+
* the given tree and the field len is set for all tree elements.
|
2691
|
+
* OUT assertion: the field code is set for all tree elements of non
|
2692
|
+
* zero code length.
|
2693
|
+
*/
|
2694
|
+
function gen_codes(tree, max_code, bl_count)
|
2695
|
+
// ct_data *tree; /* the tree to decorate */
|
2696
|
+
// int max_code; /* largest code with non zero frequency */
|
2697
|
+
// ushf *bl_count; /* number of codes at each bit length */
|
2698
|
+
{
|
2699
|
+
var next_code = new Array(MAX_BITS + 1); /* next code value for each bit length */
|
2700
|
+
var code = 0; /* running code value */
|
2701
|
+
var bits; /* bit index */
|
2702
|
+
var n; /* code index */
|
2703
|
+
|
2704
|
+
/* The distribution counts are first used to generate the code values
|
2705
|
+
* without bit reversal.
|
2706
|
+
*/
|
2707
|
+
for (bits = 1; bits <= MAX_BITS; bits++) {
|
2708
|
+
next_code[bits] = code = (code + bl_count[bits - 1]) << 1;
|
2709
|
+
}
|
2710
|
+
/* Check that the bit counts in bl_count are consistent. The last code
|
2711
|
+
* must be all ones.
|
2712
|
+
*/
|
2713
|
+
//Assert (code + bl_count[MAX_BITS]-1 == (1<<MAX_BITS)-1,
|
2714
|
+
// "inconsistent bit counts");
|
2715
|
+
//Tracev((stderr,"\ngen_codes: max_code %d ", max_code));
|
2716
|
+
|
2717
|
+
for (n = 0; n <= max_code; n++) {
|
2718
|
+
var len = tree[n * 2 + 1]/*.Len*/;
|
2719
|
+
if (len === 0) { continue; }
|
2720
|
+
/* Now reverse the bits */
|
2721
|
+
tree[n * 2]/*.Code*/ = bi_reverse(next_code[len]++, len);
|
2722
|
+
|
2723
|
+
//Tracecv(tree != static_ltree, (stderr,"\nn %3d %c l %2d c %4x (%x) ",
|
2724
|
+
// n, (isgraph(n) ? n : ' '), len, tree[n].Code, next_code[len]-1));
|
2725
|
+
}
|
2726
|
+
}
|
2727
|
+
|
2728
|
+
|
2729
|
+
/* ===========================================================================
|
2730
|
+
* Initialize the various 'constant' tables.
|
2731
|
+
*/
|
2732
|
+
function tr_static_init() {
|
2733
|
+
var n; /* iterates over tree elements */
|
2734
|
+
var bits; /* bit counter */
|
2735
|
+
var length; /* length value */
|
2736
|
+
var code; /* code value */
|
2737
|
+
var dist; /* distance index */
|
2738
|
+
var bl_count = new Array(MAX_BITS + 1);
|
2739
|
+
/* number of codes at each bit length for an optimal tree */
|
2740
|
+
|
2741
|
+
// do check in _tr_init()
|
2742
|
+
//if (static_init_done) return;
|
2743
|
+
|
2744
|
+
/* For some embedded targets, global variables are not initialized: */
|
2745
|
+
/*#ifdef NO_INIT_GLOBAL_POINTERS
|
2746
|
+
static_l_desc.static_tree = static_ltree;
|
2747
|
+
static_l_desc.extra_bits = extra_lbits;
|
2748
|
+
static_d_desc.static_tree = static_dtree;
|
2749
|
+
static_d_desc.extra_bits = extra_dbits;
|
2750
|
+
static_bl_desc.extra_bits = extra_blbits;
|
2751
|
+
#endif*/
|
2752
|
+
|
2753
|
+
/* Initialize the mapping length (0..255) -> length code (0..28) */
|
2754
|
+
length = 0;
|
2755
|
+
for (code = 0; code < LENGTH_CODES - 1; code++) {
|
2756
|
+
base_length[code] = length;
|
2757
|
+
for (n = 0; n < (1 << extra_lbits[code]); n++) {
|
2758
|
+
_length_code[length++] = code;
|
2759
|
+
}
|
2760
|
+
}
|
2761
|
+
//Assert (length == 256, "tr_static_init: length != 256");
|
2762
|
+
/* Note that the length 255 (match length 258) can be represented
|
2763
|
+
* in two different ways: code 284 + 5 bits or code 285, so we
|
2764
|
+
* overwrite length_code[255] to use the best encoding:
|
2765
|
+
*/
|
2766
|
+
_length_code[length - 1] = code;
|
2767
|
+
|
2768
|
+
/* Initialize the mapping dist (0..32K) -> dist code (0..29) */
|
2769
|
+
dist = 0;
|
2770
|
+
for (code = 0; code < 16; code++) {
|
2771
|
+
base_dist[code] = dist;
|
2772
|
+
for (n = 0; n < (1 << extra_dbits[code]); n++) {
|
2773
|
+
_dist_code[dist++] = code;
|
2774
|
+
}
|
2775
|
+
}
|
2776
|
+
//Assert (dist == 256, "tr_static_init: dist != 256");
|
2777
|
+
dist >>= 7; /* from now on, all distances are divided by 128 */
|
2778
|
+
for (; code < D_CODES; code++) {
|
2779
|
+
base_dist[code] = dist << 7;
|
2780
|
+
for (n = 0; n < (1 << (extra_dbits[code] - 7)); n++) {
|
2781
|
+
_dist_code[256 + dist++] = code;
|
2782
|
+
}
|
2783
|
+
}
|
2784
|
+
//Assert (dist == 256, "tr_static_init: 256+dist != 512");
|
2785
|
+
|
2786
|
+
/* Construct the codes of the static literal tree */
|
2787
|
+
for (bits = 0; bits <= MAX_BITS; bits++) {
|
2788
|
+
bl_count[bits] = 0;
|
2789
|
+
}
|
2790
|
+
|
2791
|
+
n = 0;
|
2792
|
+
while (n <= 143) {
|
2793
|
+
static_ltree[n * 2 + 1]/*.Len*/ = 8;
|
2794
|
+
n++;
|
2795
|
+
bl_count[8]++;
|
2796
|
+
}
|
2797
|
+
while (n <= 255) {
|
2798
|
+
static_ltree[n * 2 + 1]/*.Len*/ = 9;
|
2799
|
+
n++;
|
2800
|
+
bl_count[9]++;
|
2801
|
+
}
|
2802
|
+
while (n <= 279) {
|
2803
|
+
static_ltree[n * 2 + 1]/*.Len*/ = 7;
|
2804
|
+
n++;
|
2805
|
+
bl_count[7]++;
|
2806
|
+
}
|
2807
|
+
while (n <= 287) {
|
2808
|
+
static_ltree[n * 2 + 1]/*.Len*/ = 8;
|
2809
|
+
n++;
|
2810
|
+
bl_count[8]++;
|
2811
|
+
}
|
2812
|
+
/* Codes 286 and 287 do not exist, but we must include them in the
|
2813
|
+
* tree construction to get a canonical Huffman tree (longest code
|
2814
|
+
* all ones)
|
2815
|
+
*/
|
2816
|
+
gen_codes(static_ltree, L_CODES + 1, bl_count);
|
2817
|
+
|
2818
|
+
/* The static distance tree is trivial: */
|
2819
|
+
for (n = 0; n < D_CODES; n++) {
|
2820
|
+
static_dtree[n * 2 + 1]/*.Len*/ = 5;
|
2821
|
+
static_dtree[n * 2]/*.Code*/ = bi_reverse(n, 5);
|
2822
|
+
}
|
2823
|
+
|
2824
|
+
// Now data ready and we can init static trees
|
2825
|
+
static_l_desc = new StaticTreeDesc(static_ltree, extra_lbits, LITERALS + 1, L_CODES, MAX_BITS);
|
2826
|
+
static_d_desc = new StaticTreeDesc(static_dtree, extra_dbits, 0, D_CODES, MAX_BITS);
|
2827
|
+
static_bl_desc = new StaticTreeDesc(new Array(0), extra_blbits, 0, BL_CODES, MAX_BL_BITS);
|
2828
|
+
|
2829
|
+
//static_init_done = true;
|
2830
|
+
}
|
2831
|
+
|
2832
|
+
|
2833
|
+
/* ===========================================================================
|
2834
|
+
* Initialize a new block.
|
2835
|
+
*/
|
2836
|
+
function init_block(s) {
|
2837
|
+
var n; /* iterates over tree elements */
|
2838
|
+
|
2839
|
+
/* Initialize the trees. */
|
2840
|
+
for (n = 0; n < L_CODES; n++) { s.dyn_ltree[n * 2]/*.Freq*/ = 0; }
|
2841
|
+
for (n = 0; n < D_CODES; n++) { s.dyn_dtree[n * 2]/*.Freq*/ = 0; }
|
2842
|
+
for (n = 0; n < BL_CODES; n++) { s.bl_tree[n * 2]/*.Freq*/ = 0; }
|
2843
|
+
|
2844
|
+
s.dyn_ltree[END_BLOCK * 2]/*.Freq*/ = 1;
|
2845
|
+
s.opt_len = s.static_len = 0;
|
2846
|
+
s.last_lit = s.matches = 0;
|
2847
|
+
}
|
2848
|
+
|
2849
|
+
|
2850
|
+
/* ===========================================================================
|
2851
|
+
* Flush the bit buffer and align the output on a byte boundary
|
2852
|
+
*/
|
2853
|
+
function bi_windup(s)
|
2854
|
+
{
|
2855
|
+
if (s.bi_valid > 8) {
|
2856
|
+
put_short(s, s.bi_buf);
|
2857
|
+
} else if (s.bi_valid > 0) {
|
2858
|
+
//put_byte(s, (Byte)s->bi_buf);
|
2859
|
+
s.pending_buf[s.pending++] = s.bi_buf;
|
2860
|
+
}
|
2861
|
+
s.bi_buf = 0;
|
2862
|
+
s.bi_valid = 0;
|
2863
|
+
}
|
2864
|
+
|
2865
|
+
/* ===========================================================================
|
2866
|
+
* Copy a stored block, storing first the length and its
|
2867
|
+
* one's complement if requested.
|
2868
|
+
*/
|
2869
|
+
function copy_block(s, buf, len, header)
|
2870
|
+
//DeflateState *s;
|
2871
|
+
//charf *buf; /* the input data */
|
2872
|
+
//unsigned len; /* its length */
|
2873
|
+
//int header; /* true if block header must be written */
|
2874
|
+
{
|
2875
|
+
bi_windup(s); /* align on byte boundary */
|
2876
|
+
|
2877
|
+
if (header) {
|
2878
|
+
put_short(s, len);
|
2879
|
+
put_short(s, ~len);
|
2880
|
+
}
|
2881
|
+
// while (len--) {
|
2882
|
+
// put_byte(s, *buf++);
|
2883
|
+
// }
|
2884
|
+
utils.arraySet(s.pending_buf, s.window, buf, len, s.pending);
|
2885
|
+
s.pending += len;
|
2886
|
+
}
|
2887
|
+
|
2888
|
+
/* ===========================================================================
|
2889
|
+
* Compares to subtrees, using the tree depth as tie breaker when
|
2890
|
+
* the subtrees have equal frequency. This minimizes the worst case length.
|
2891
|
+
*/
|
2892
|
+
function smaller(tree, n, m, depth) {
|
2893
|
+
var _n2 = n * 2;
|
2894
|
+
var _m2 = m * 2;
|
2895
|
+
return (tree[_n2]/*.Freq*/ < tree[_m2]/*.Freq*/ ||
|
2896
|
+
(tree[_n2]/*.Freq*/ === tree[_m2]/*.Freq*/ && depth[n] <= depth[m]));
|
2897
|
+
}
|
2898
|
+
|
2899
|
+
/* ===========================================================================
|
2900
|
+
* Restore the heap property by moving down the tree starting at node k,
|
2901
|
+
* exchanging a node with the smallest of its two sons if necessary, stopping
|
2902
|
+
* when the heap property is re-established (each father smaller than its
|
2903
|
+
* two sons).
|
2904
|
+
*/
|
2905
|
+
function pqdownheap(s, tree, k)
|
2906
|
+
// deflate_state *s;
|
2907
|
+
// ct_data *tree; /* the tree to restore */
|
2908
|
+
// int k; /* node to move down */
|
2909
|
+
{
|
2910
|
+
var v = s.heap[k];
|
2911
|
+
var j = k << 1; /* left son of k */
|
2912
|
+
while (j <= s.heap_len) {
|
2913
|
+
/* Set j to the smallest of the two sons: */
|
2914
|
+
if (j < s.heap_len &&
|
2915
|
+
smaller(tree, s.heap[j + 1], s.heap[j], s.depth)) {
|
2916
|
+
j++;
|
2917
|
+
}
|
2918
|
+
/* Exit if v is smaller than both sons */
|
2919
|
+
if (smaller(tree, v, s.heap[j], s.depth)) { break; }
|
2920
|
+
|
2921
|
+
/* Exchange v with the smallest son */
|
2922
|
+
s.heap[k] = s.heap[j];
|
2923
|
+
k = j;
|
2924
|
+
|
2925
|
+
/* And continue down the tree, setting j to the left son of k */
|
2926
|
+
j <<= 1;
|
2927
|
+
}
|
2928
|
+
s.heap[k] = v;
|
2929
|
+
}
|
2930
|
+
|
2931
|
+
|
2932
|
+
// inlined manually
|
2933
|
+
// var SMALLEST = 1;
|
2934
|
+
|
2935
|
+
/* ===========================================================================
|
2936
|
+
* Send the block data compressed using the given Huffman trees
|
2937
|
+
*/
|
2938
|
+
function compress_block(s, ltree, dtree)
|
2939
|
+
// deflate_state *s;
|
2940
|
+
// const ct_data *ltree; /* literal tree */
|
2941
|
+
// const ct_data *dtree; /* distance tree */
|
2942
|
+
{
|
2943
|
+
var dist; /* distance of matched string */
|
2944
|
+
var lc; /* match length or unmatched char (if dist == 0) */
|
2945
|
+
var lx = 0; /* running index in l_buf */
|
2946
|
+
var code; /* the code to send */
|
2947
|
+
var extra; /* number of extra bits to send */
|
2948
|
+
|
2949
|
+
if (s.last_lit !== 0) {
|
2950
|
+
do {
|
2951
|
+
dist = (s.pending_buf[s.d_buf + lx * 2] << 8) | (s.pending_buf[s.d_buf + lx * 2 + 1]);
|
2952
|
+
lc = s.pending_buf[s.l_buf + lx];
|
2953
|
+
lx++;
|
2954
|
+
|
2955
|
+
if (dist === 0) {
|
2956
|
+
send_code(s, lc, ltree); /* send a literal byte */
|
2957
|
+
//Tracecv(isgraph(lc), (stderr," '%c' ", lc));
|
2958
|
+
} else {
|
2959
|
+
/* Here, lc is the match length - MIN_MATCH */
|
2960
|
+
code = _length_code[lc];
|
2961
|
+
send_code(s, code + LITERALS + 1, ltree); /* send the length code */
|
2962
|
+
extra = extra_lbits[code];
|
2963
|
+
if (extra !== 0) {
|
2964
|
+
lc -= base_length[code];
|
2965
|
+
send_bits(s, lc, extra); /* send the extra length bits */
|
2966
|
+
}
|
2967
|
+
dist--; /* dist is now the match distance - 1 */
|
2968
|
+
code = d_code(dist);
|
2969
|
+
//Assert (code < D_CODES, "bad d_code");
|
2970
|
+
|
2971
|
+
send_code(s, code, dtree); /* send the distance code */
|
2972
|
+
extra = extra_dbits[code];
|
2973
|
+
if (extra !== 0) {
|
2974
|
+
dist -= base_dist[code];
|
2975
|
+
send_bits(s, dist, extra); /* send the extra distance bits */
|
2976
|
+
}
|
2977
|
+
} /* literal or match pair ? */
|
2978
|
+
|
2979
|
+
/* Check that the overlay between pending_buf and d_buf+l_buf is ok: */
|
2980
|
+
//Assert((uInt)(s->pending) < s->lit_bufsize + 2*lx,
|
2981
|
+
// "pendingBuf overflow");
|
2982
|
+
|
2983
|
+
} while (lx < s.last_lit);
|
2984
|
+
}
|
2985
|
+
|
2986
|
+
send_code(s, END_BLOCK, ltree);
|
2987
|
+
}
|
2988
|
+
|
2989
|
+
|
2990
|
+
/* ===========================================================================
|
2991
|
+
* Construct one Huffman tree and assigns the code bit strings and lengths.
|
2992
|
+
* Update the total bit length for the current block.
|
2993
|
+
* IN assertion: the field freq is set for all tree elements.
|
2994
|
+
* OUT assertions: the fields len and code are set to the optimal bit length
|
2995
|
+
* and corresponding code. The length opt_len is updated; static_len is
|
2996
|
+
* also updated if stree is not null. The field max_code is set.
|
2997
|
+
*/
|
2998
|
+
function build_tree(s, desc)
|
2999
|
+
// deflate_state *s;
|
3000
|
+
// tree_desc *desc; /* the tree descriptor */
|
3001
|
+
{
|
3002
|
+
var tree = desc.dyn_tree;
|
3003
|
+
var stree = desc.stat_desc.static_tree;
|
3004
|
+
var has_stree = desc.stat_desc.has_stree;
|
3005
|
+
var elems = desc.stat_desc.elems;
|
3006
|
+
var n, m; /* iterate over heap elements */
|
3007
|
+
var max_code = -1; /* largest code with non zero frequency */
|
3008
|
+
var node; /* new node being created */
|
3009
|
+
|
3010
|
+
/* Construct the initial heap, with least frequent element in
|
3011
|
+
* heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n+1].
|
3012
|
+
* heap[0] is not used.
|
3013
|
+
*/
|
3014
|
+
s.heap_len = 0;
|
3015
|
+
s.heap_max = HEAP_SIZE;
|
3016
|
+
|
3017
|
+
for (n = 0; n < elems; n++) {
|
3018
|
+
if (tree[n * 2]/*.Freq*/ !== 0) {
|
3019
|
+
s.heap[++s.heap_len] = max_code = n;
|
3020
|
+
s.depth[n] = 0;
|
3021
|
+
|
3022
|
+
} else {
|
3023
|
+
tree[n * 2 + 1]/*.Len*/ = 0;
|
3024
|
+
}
|
3025
|
+
}
|
3026
|
+
|
3027
|
+
/* The pkzip format requires that at least one distance code exists,
|
3028
|
+
* and that at least one bit should be sent even if there is only one
|
3029
|
+
* possible code. So to avoid special checks later on we force at least
|
3030
|
+
* two codes of non zero frequency.
|
3031
|
+
*/
|
3032
|
+
while (s.heap_len < 2) {
|
3033
|
+
node = s.heap[++s.heap_len] = (max_code < 2 ? ++max_code : 0);
|
3034
|
+
tree[node * 2]/*.Freq*/ = 1;
|
3035
|
+
s.depth[node] = 0;
|
3036
|
+
s.opt_len--;
|
3037
|
+
|
3038
|
+
if (has_stree) {
|
3039
|
+
s.static_len -= stree[node * 2 + 1]/*.Len*/;
|
3040
|
+
}
|
3041
|
+
/* node is 0 or 1 so it does not have extra bits */
|
3042
|
+
}
|
3043
|
+
desc.max_code = max_code;
|
3044
|
+
|
3045
|
+
/* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,
|
3046
|
+
* establish sub-heaps of increasing lengths:
|
3047
|
+
*/
|
3048
|
+
for (n = (s.heap_len >> 1/*int /2*/); n >= 1; n--) { pqdownheap(s, tree, n); }
|
3049
|
+
|
3050
|
+
/* Construct the Huffman tree by repeatedly combining the least two
|
3051
|
+
* frequent nodes.
|
3052
|
+
*/
|
3053
|
+
node = elems; /* next internal node of the tree */
|
3054
|
+
do {
|
3055
|
+
//pqremove(s, tree, n); /* n = node of least frequency */
|
3056
|
+
/*** pqremove ***/
|
3057
|
+
n = s.heap[1/*SMALLEST*/];
|
3058
|
+
s.heap[1/*SMALLEST*/] = s.heap[s.heap_len--];
|
3059
|
+
pqdownheap(s, tree, 1/*SMALLEST*/);
|
3060
|
+
/***/
|
3061
|
+
|
3062
|
+
m = s.heap[1/*SMALLEST*/]; /* m = node of next least frequency */
|
3063
|
+
|
3064
|
+
s.heap[--s.heap_max] = n; /* keep the nodes sorted by frequency */
|
3065
|
+
s.heap[--s.heap_max] = m;
|
3066
|
+
|
3067
|
+
/* Create a new node father of n and m */
|
3068
|
+
tree[node * 2]/*.Freq*/ = tree[n * 2]/*.Freq*/ + tree[m * 2]/*.Freq*/;
|
3069
|
+
s.depth[node] = (s.depth[n] >= s.depth[m] ? s.depth[n] : s.depth[m]) + 1;
|
3070
|
+
tree[n * 2 + 1]/*.Dad*/ = tree[m * 2 + 1]/*.Dad*/ = node;
|
3071
|
+
|
3072
|
+
/* and insert the new node in the heap */
|
3073
|
+
s.heap[1/*SMALLEST*/] = node++;
|
3074
|
+
pqdownheap(s, tree, 1/*SMALLEST*/);
|
3075
|
+
|
3076
|
+
} while (s.heap_len >= 2);
|
3077
|
+
|
3078
|
+
s.heap[--s.heap_max] = s.heap[1/*SMALLEST*/];
|
3079
|
+
|
3080
|
+
/* At this point, the fields freq and dad are set. We can now
|
3081
|
+
* generate the bit lengths.
|
3082
|
+
*/
|
3083
|
+
gen_bitlen(s, desc);
|
3084
|
+
|
3085
|
+
/* The field len is now set, we can generate the bit codes */
|
3086
|
+
gen_codes(tree, max_code, s.bl_count);
|
3087
|
+
}
|
3088
|
+
|
3089
|
+
|
3090
|
+
/* ===========================================================================
|
3091
|
+
* Scan a literal or distance tree to determine the frequencies of the codes
|
3092
|
+
* in the bit length tree.
|
3093
|
+
*/
|
3094
|
+
function scan_tree(s, tree, max_code)
|
3095
|
+
// deflate_state *s;
|
3096
|
+
// ct_data *tree; /* the tree to be scanned */
|
3097
|
+
// int max_code; /* and its largest code of non zero frequency */
|
3098
|
+
{
|
3099
|
+
var n; /* iterates over all tree elements */
|
3100
|
+
var prevlen = -1; /* last emitted length */
|
3101
|
+
var curlen; /* length of current code */
|
3102
|
+
|
3103
|
+
var nextlen = tree[0 * 2 + 1]/*.Len*/; /* length of next code */
|
3104
|
+
|
3105
|
+
var count = 0; /* repeat count of the current code */
|
3106
|
+
var max_count = 7; /* max repeat count */
|
3107
|
+
var min_count = 4; /* min repeat count */
|
3108
|
+
|
3109
|
+
if (nextlen === 0) {
|
3110
|
+
max_count = 138;
|
3111
|
+
min_count = 3;
|
3112
|
+
}
|
3113
|
+
tree[(max_code + 1) * 2 + 1]/*.Len*/ = 0xffff; /* guard */
|
3114
|
+
|
3115
|
+
for (n = 0; n <= max_code; n++) {
|
3116
|
+
curlen = nextlen;
|
3117
|
+
nextlen = tree[(n + 1) * 2 + 1]/*.Len*/;
|
3118
|
+
|
3119
|
+
if (++count < max_count && curlen === nextlen) {
|
3120
|
+
continue;
|
3121
|
+
|
3122
|
+
} else if (count < min_count) {
|
3123
|
+
s.bl_tree[curlen * 2]/*.Freq*/ += count;
|
3124
|
+
|
3125
|
+
} else if (curlen !== 0) {
|
3126
|
+
|
3127
|
+
if (curlen !== prevlen) { s.bl_tree[curlen * 2]/*.Freq*/++; }
|
3128
|
+
s.bl_tree[REP_3_6 * 2]/*.Freq*/++;
|
3129
|
+
|
3130
|
+
} else if (count <= 10) {
|
3131
|
+
s.bl_tree[REPZ_3_10 * 2]/*.Freq*/++;
|
3132
|
+
|
3133
|
+
} else {
|
3134
|
+
s.bl_tree[REPZ_11_138 * 2]/*.Freq*/++;
|
3135
|
+
}
|
3136
|
+
|
3137
|
+
count = 0;
|
3138
|
+
prevlen = curlen;
|
3139
|
+
|
3140
|
+
if (nextlen === 0) {
|
3141
|
+
max_count = 138;
|
3142
|
+
min_count = 3;
|
3143
|
+
|
3144
|
+
} else if (curlen === nextlen) {
|
3145
|
+
max_count = 6;
|
3146
|
+
min_count = 3;
|
3147
|
+
|
3148
|
+
} else {
|
3149
|
+
max_count = 7;
|
3150
|
+
min_count = 4;
|
3151
|
+
}
|
3152
|
+
}
|
3153
|
+
}
|
3154
|
+
|
3155
|
+
|
3156
|
+
/* ===========================================================================
|
3157
|
+
* Send a literal or distance tree in compressed form, using the codes in
|
3158
|
+
* bl_tree.
|
3159
|
+
*/
|
3160
|
+
function send_tree(s, tree, max_code)
|
3161
|
+
// deflate_state *s;
|
3162
|
+
// ct_data *tree; /* the tree to be scanned */
|
3163
|
+
// int max_code; /* and its largest code of non zero frequency */
|
3164
|
+
{
|
3165
|
+
var n; /* iterates over all tree elements */
|
3166
|
+
var prevlen = -1; /* last emitted length */
|
3167
|
+
var curlen; /* length of current code */
|
3168
|
+
|
3169
|
+
var nextlen = tree[0 * 2 + 1]/*.Len*/; /* length of next code */
|
3170
|
+
|
3171
|
+
var count = 0; /* repeat count of the current code */
|
3172
|
+
var max_count = 7; /* max repeat count */
|
3173
|
+
var min_count = 4; /* min repeat count */
|
3174
|
+
|
3175
|
+
/* tree[max_code+1].Len = -1; */ /* guard already set */
|
3176
|
+
if (nextlen === 0) {
|
3177
|
+
max_count = 138;
|
3178
|
+
min_count = 3;
|
3179
|
+
}
|
3180
|
+
|
3181
|
+
for (n = 0; n <= max_code; n++) {
|
3182
|
+
curlen = nextlen;
|
3183
|
+
nextlen = tree[(n + 1) * 2 + 1]/*.Len*/;
|
3184
|
+
|
3185
|
+
if (++count < max_count && curlen === nextlen) {
|
3186
|
+
continue;
|
3187
|
+
|
3188
|
+
} else if (count < min_count) {
|
3189
|
+
do { send_code(s, curlen, s.bl_tree); } while (--count !== 0);
|
3190
|
+
|
3191
|
+
} else if (curlen !== 0) {
|
3192
|
+
if (curlen !== prevlen) {
|
3193
|
+
send_code(s, curlen, s.bl_tree);
|
3194
|
+
count--;
|
3195
|
+
}
|
3196
|
+
//Assert(count >= 3 && count <= 6, " 3_6?");
|
3197
|
+
send_code(s, REP_3_6, s.bl_tree);
|
3198
|
+
send_bits(s, count - 3, 2);
|
3199
|
+
|
3200
|
+
} else if (count <= 10) {
|
3201
|
+
send_code(s, REPZ_3_10, s.bl_tree);
|
3202
|
+
send_bits(s, count - 3, 3);
|
3203
|
+
|
3204
|
+
} else {
|
3205
|
+
send_code(s, REPZ_11_138, s.bl_tree);
|
3206
|
+
send_bits(s, count - 11, 7);
|
3207
|
+
}
|
3208
|
+
|
3209
|
+
count = 0;
|
3210
|
+
prevlen = curlen;
|
3211
|
+
if (nextlen === 0) {
|
3212
|
+
max_count = 138;
|
3213
|
+
min_count = 3;
|
3214
|
+
|
3215
|
+
} else if (curlen === nextlen) {
|
3216
|
+
max_count = 6;
|
3217
|
+
min_count = 3;
|
3218
|
+
|
3219
|
+
} else {
|
3220
|
+
max_count = 7;
|
3221
|
+
min_count = 4;
|
3222
|
+
}
|
3223
|
+
}
|
3224
|
+
}
|
3225
|
+
|
3226
|
+
|
3227
|
+
/* ===========================================================================
|
3228
|
+
* Construct the Huffman tree for the bit lengths and return the index in
|
3229
|
+
* bl_order of the last bit length code to send.
|
3230
|
+
*/
|
3231
|
+
function build_bl_tree(s) {
|
3232
|
+
var max_blindex; /* index of last bit length code of non zero freq */
|
3233
|
+
|
3234
|
+
/* Determine the bit length frequencies for literal and distance trees */
|
3235
|
+
scan_tree(s, s.dyn_ltree, s.l_desc.max_code);
|
3236
|
+
scan_tree(s, s.dyn_dtree, s.d_desc.max_code);
|
3237
|
+
|
3238
|
+
/* Build the bit length tree: */
|
3239
|
+
build_tree(s, s.bl_desc);
|
3240
|
+
/* opt_len now includes the length of the tree representations, except
|
3241
|
+
* the lengths of the bit lengths codes and the 5+5+4 bits for the counts.
|
3242
|
+
*/
|
3243
|
+
|
3244
|
+
/* Determine the number of bit length codes to send. The pkzip format
|
3245
|
+
* requires that at least 4 bit length codes be sent. (appnote.txt says
|
3246
|
+
* 3 but the actual value used is 4.)
|
3247
|
+
*/
|
3248
|
+
for (max_blindex = BL_CODES - 1; max_blindex >= 3; max_blindex--) {
|
3249
|
+
if (s.bl_tree[bl_order[max_blindex] * 2 + 1]/*.Len*/ !== 0) {
|
3250
|
+
break;
|
3251
|
+
}
|
3252
|
+
}
|
3253
|
+
/* Update opt_len to include the bit length tree and counts */
|
3254
|
+
s.opt_len += 3 * (max_blindex + 1) + 5 + 5 + 4;
|
3255
|
+
//Tracev((stderr, "\ndyn trees: dyn %ld, stat %ld",
|
3256
|
+
// s->opt_len, s->static_len));
|
3257
|
+
|
3258
|
+
return max_blindex;
|
3259
|
+
}
|
3260
|
+
|
3261
|
+
|
3262
|
+
/* ===========================================================================
|
3263
|
+
* Send the header for a block using dynamic Huffman trees: the counts, the
|
3264
|
+
* lengths of the bit length codes, the literal tree and the distance tree.
|
3265
|
+
* IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4.
|
3266
|
+
*/
|
3267
|
+
function send_all_trees(s, lcodes, dcodes, blcodes)
|
3268
|
+
// deflate_state *s;
|
3269
|
+
// int lcodes, dcodes, blcodes; /* number of codes for each tree */
|
3270
|
+
{
|
3271
|
+
var rank; /* index in bl_order */
|
3272
|
+
|
3273
|
+
//Assert (lcodes >= 257 && dcodes >= 1 && blcodes >= 4, "not enough codes");
|
3274
|
+
//Assert (lcodes <= L_CODES && dcodes <= D_CODES && blcodes <= BL_CODES,
|
3275
|
+
// "too many codes");
|
3276
|
+
//Tracev((stderr, "\nbl counts: "));
|
3277
|
+
send_bits(s, lcodes - 257, 5); /* not +255 as stated in appnote.txt */
|
3278
|
+
send_bits(s, dcodes - 1, 5);
|
3279
|
+
send_bits(s, blcodes - 4, 4); /* not -3 as stated in appnote.txt */
|
3280
|
+
for (rank = 0; rank < blcodes; rank++) {
|
3281
|
+
//Tracev((stderr, "\nbl code %2d ", bl_order[rank]));
|
3282
|
+
send_bits(s, s.bl_tree[bl_order[rank] * 2 + 1]/*.Len*/, 3);
|
3283
|
+
}
|
3284
|
+
//Tracev((stderr, "\nbl tree: sent %ld", s->bits_sent));
|
3285
|
+
|
3286
|
+
send_tree(s, s.dyn_ltree, lcodes - 1); /* literal tree */
|
3287
|
+
//Tracev((stderr, "\nlit tree: sent %ld", s->bits_sent));
|
3288
|
+
|
3289
|
+
send_tree(s, s.dyn_dtree, dcodes - 1); /* distance tree */
|
3290
|
+
//Tracev((stderr, "\ndist tree: sent %ld", s->bits_sent));
|
3291
|
+
}
|
3292
|
+
|
3293
|
+
|
3294
|
+
/* ===========================================================================
|
3295
|
+
* Check if the data type is TEXT or BINARY, using the following algorithm:
|
3296
|
+
* - TEXT if the two conditions below are satisfied:
|
3297
|
+
* a) There are no non-portable control characters belonging to the
|
3298
|
+
* "black list" (0..6, 14..25, 28..31).
|
3299
|
+
* b) There is at least one printable character belonging to the
|
3300
|
+
* "white list" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255).
|
3301
|
+
* - BINARY otherwise.
|
3302
|
+
* - The following partially-portable control characters form a
|
3303
|
+
* "gray list" that is ignored in this detection algorithm:
|
3304
|
+
* (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}).
|
3305
|
+
* IN assertion: the fields Freq of dyn_ltree are set.
|
3306
|
+
*/
|
3307
|
+
function detect_data_type(s) {
|
3308
|
+
/* black_mask is the bit mask of black-listed bytes
|
3309
|
+
* set bits 0..6, 14..25, and 28..31
|
3310
|
+
* 0xf3ffc07f = binary 11110011111111111100000001111111
|
3311
|
+
*/
|
3312
|
+
var black_mask = 0xf3ffc07f;
|
3313
|
+
var n;
|
3314
|
+
|
3315
|
+
/* Check for non-textual ("black-listed") bytes. */
|
3316
|
+
for (n = 0; n <= 31; n++, black_mask >>>= 1) {
|
3317
|
+
if ((black_mask & 1) && (s.dyn_ltree[n * 2]/*.Freq*/ !== 0)) {
|
3318
|
+
return Z_BINARY;
|
3319
|
+
}
|
3320
|
+
}
|
3321
|
+
|
3322
|
+
/* Check for textual ("white-listed") bytes. */
|
3323
|
+
if (s.dyn_ltree[9 * 2]/*.Freq*/ !== 0 || s.dyn_ltree[10 * 2]/*.Freq*/ !== 0 ||
|
3324
|
+
s.dyn_ltree[13 * 2]/*.Freq*/ !== 0) {
|
3325
|
+
return Z_TEXT;
|
3326
|
+
}
|
3327
|
+
for (n = 32; n < LITERALS; n++) {
|
3328
|
+
if (s.dyn_ltree[n * 2]/*.Freq*/ !== 0) {
|
3329
|
+
return Z_TEXT;
|
3330
|
+
}
|
3331
|
+
}
|
3332
|
+
|
3333
|
+
/* There are no "black-listed" or "white-listed" bytes:
|
3334
|
+
* this stream either is empty or has tolerated ("gray-listed") bytes only.
|
3335
|
+
*/
|
3336
|
+
return Z_BINARY;
|
3337
|
+
}
|
3338
|
+
|
3339
|
+
|
3340
|
+
var static_init_done = false;
|
3341
|
+
|
3342
|
+
/* ===========================================================================
|
3343
|
+
* Initialize the tree data structures for a new zlib stream.
|
3344
|
+
*/
|
3345
|
+
function _tr_init(s)
|
3346
|
+
{
|
3347
|
+
|
3348
|
+
if (!static_init_done) {
|
3349
|
+
tr_static_init();
|
3350
|
+
static_init_done = true;
|
3351
|
+
}
|
3352
|
+
|
3353
|
+
s.l_desc = new TreeDesc(s.dyn_ltree, static_l_desc);
|
3354
|
+
s.d_desc = new TreeDesc(s.dyn_dtree, static_d_desc);
|
3355
|
+
s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc);
|
3356
|
+
|
3357
|
+
s.bi_buf = 0;
|
3358
|
+
s.bi_valid = 0;
|
3359
|
+
|
3360
|
+
/* Initialize the first block of the first file: */
|
3361
|
+
init_block(s);
|
3362
|
+
}
|
3363
|
+
|
3364
|
+
|
3365
|
+
/* ===========================================================================
|
3366
|
+
* Send a stored block
|
3367
|
+
*/
|
3368
|
+
function _tr_stored_block(s, buf, stored_len, last)
|
3369
|
+
//DeflateState *s;
|
3370
|
+
//charf *buf; /* input block */
|
3371
|
+
//ulg stored_len; /* length of input block */
|
3372
|
+
//int last; /* one if this is the last block for a file */
|
3373
|
+
{
|
3374
|
+
send_bits(s, (STORED_BLOCK << 1) + (last ? 1 : 0), 3); /* send block type */
|
3375
|
+
copy_block(s, buf, stored_len, true); /* with header */
|
3376
|
+
}
|
3377
|
+
|
3378
|
+
|
3379
|
+
/* ===========================================================================
|
3380
|
+
* Send one empty static block to give enough lookahead for inflate.
|
3381
|
+
* This takes 10 bits, of which 7 may remain in the bit buffer.
|
3382
|
+
*/
|
3383
|
+
function _tr_align(s) {
|
3384
|
+
send_bits(s, STATIC_TREES << 1, 3);
|
3385
|
+
send_code(s, END_BLOCK, static_ltree);
|
3386
|
+
bi_flush(s);
|
3387
|
+
}
|
3388
|
+
|
3389
|
+
|
3390
|
+
/* ===========================================================================
|
3391
|
+
* Determine the best encoding for the current block: dynamic trees, static
|
3392
|
+
* trees or store, and output the encoded block to the zip file.
|
3393
|
+
*/
|
3394
|
+
function _tr_flush_block(s, buf, stored_len, last)
|
3395
|
+
//DeflateState *s;
|
3396
|
+
//charf *buf; /* input block, or NULL if too old */
|
3397
|
+
//ulg stored_len; /* length of input block */
|
3398
|
+
//int last; /* one if this is the last block for a file */
|
3399
|
+
{
|
3400
|
+
var opt_lenb, static_lenb; /* opt_len and static_len in bytes */
|
3401
|
+
var max_blindex = 0; /* index of last bit length code of non zero freq */
|
3402
|
+
|
3403
|
+
/* Build the Huffman trees unless a stored block is forced */
|
3404
|
+
if (s.level > 0) {
|
3405
|
+
|
3406
|
+
/* Check if the file is binary or text */
|
3407
|
+
if (s.strm.data_type === Z_UNKNOWN) {
|
3408
|
+
s.strm.data_type = detect_data_type(s);
|
3409
|
+
}
|
3410
|
+
|
3411
|
+
/* Construct the literal and distance trees */
|
3412
|
+
build_tree(s, s.l_desc);
|
3413
|
+
// Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len,
|
3414
|
+
// s->static_len));
|
3415
|
+
|
3416
|
+
build_tree(s, s.d_desc);
|
3417
|
+
// Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len,
|
3418
|
+
// s->static_len));
|
3419
|
+
/* At this point, opt_len and static_len are the total bit lengths of
|
3420
|
+
* the compressed block data, excluding the tree representations.
|
3421
|
+
*/
|
3422
|
+
|
3423
|
+
/* Build the bit length tree for the above two trees, and get the index
|
3424
|
+
* in bl_order of the last bit length code to send.
|
3425
|
+
*/
|
3426
|
+
max_blindex = build_bl_tree(s);
|
3427
|
+
|
3428
|
+
/* Determine the best encoding. Compute the block lengths in bytes. */
|
3429
|
+
opt_lenb = (s.opt_len + 3 + 7) >>> 3;
|
3430
|
+
static_lenb = (s.static_len + 3 + 7) >>> 3;
|
3431
|
+
|
3432
|
+
// Tracev((stderr, "\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u ",
|
3433
|
+
// opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,
|
3434
|
+
// s->last_lit));
|
3435
|
+
|
3436
|
+
if (static_lenb <= opt_lenb) { opt_lenb = static_lenb; }
|
3437
|
+
|
3438
|
+
} else {
|
3439
|
+
// Assert(buf != (char*)0, "lost buf");
|
3440
|
+
opt_lenb = static_lenb = stored_len + 5; /* force a stored block */
|
3441
|
+
}
|
3442
|
+
|
3443
|
+
if ((stored_len + 4 <= opt_lenb) && (buf !== -1)) {
|
3444
|
+
/* 4: two words for the lengths */
|
3445
|
+
|
3446
|
+
/* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.
|
3447
|
+
* Otherwise we can't have processed more than WSIZE input bytes since
|
3448
|
+
* the last block flush, because compression would have been
|
3449
|
+
* successful. If LIT_BUFSIZE <= WSIZE, it is never too late to
|
3450
|
+
* transform a block into a stored block.
|
3451
|
+
*/
|
3452
|
+
_tr_stored_block(s, buf, stored_len, last);
|
3453
|
+
|
3454
|
+
} else if (s.strategy === Z_FIXED || static_lenb === opt_lenb) {
|
3455
|
+
|
3456
|
+
send_bits(s, (STATIC_TREES << 1) + (last ? 1 : 0), 3);
|
3457
|
+
compress_block(s, static_ltree, static_dtree);
|
3458
|
+
|
3459
|
+
} else {
|
3460
|
+
send_bits(s, (DYN_TREES << 1) + (last ? 1 : 0), 3);
|
3461
|
+
send_all_trees(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, max_blindex + 1);
|
3462
|
+
compress_block(s, s.dyn_ltree, s.dyn_dtree);
|
3463
|
+
}
|
3464
|
+
// Assert (s->compressed_len == s->bits_sent, "bad compressed size");
|
3465
|
+
/* The above check is made mod 2^32, for files larger than 512 MB
|
3466
|
+
* and uLong implemented on 32 bits.
|
3467
|
+
*/
|
3468
|
+
init_block(s);
|
3469
|
+
|
3470
|
+
if (last) {
|
3471
|
+
bi_windup(s);
|
3472
|
+
}
|
3473
|
+
// Tracev((stderr,"\ncomprlen %lu(%lu) ", s->compressed_len>>3,
|
3474
|
+
// s->compressed_len-7*last));
|
3475
|
+
}
|
3476
|
+
|
3477
|
+
/* ===========================================================================
|
3478
|
+
* Save the match info and tally the frequency counts. Return true if
|
3479
|
+
* the current block must be flushed.
|
3480
|
+
*/
|
3481
|
+
function _tr_tally(s, dist, lc)
|
3482
|
+
// deflate_state *s;
|
3483
|
+
// unsigned dist; /* distance of matched string */
|
3484
|
+
// unsigned lc; /* match length-MIN_MATCH or unmatched char (if dist==0) */
|
3485
|
+
{
|
3486
|
+
//var out_length, in_length, dcode;
|
3487
|
+
|
3488
|
+
s.pending_buf[s.d_buf + s.last_lit * 2] = (dist >>> 8) & 0xff;
|
3489
|
+
s.pending_buf[s.d_buf + s.last_lit * 2 + 1] = dist & 0xff;
|
3490
|
+
|
3491
|
+
s.pending_buf[s.l_buf + s.last_lit] = lc & 0xff;
|
3492
|
+
s.last_lit++;
|
3493
|
+
|
3494
|
+
if (dist === 0) {
|
3495
|
+
/* lc is the unmatched char */
|
3496
|
+
s.dyn_ltree[lc * 2]/*.Freq*/++;
|
3497
|
+
} else {
|
3498
|
+
s.matches++;
|
3499
|
+
/* Here, lc is the match length - MIN_MATCH */
|
3500
|
+
dist--; /* dist = match distance - 1 */
|
3501
|
+
//Assert((ush)dist < (ush)MAX_DIST(s) &&
|
3502
|
+
// (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&
|
3503
|
+
// (ush)d_code(dist) < (ush)D_CODES, "_tr_tally: bad match");
|
3504
|
+
|
3505
|
+
s.dyn_ltree[(_length_code[lc] + LITERALS + 1) * 2]/*.Freq*/++;
|
3506
|
+
s.dyn_dtree[d_code(dist) * 2]/*.Freq*/++;
|
3507
|
+
}
|
3508
|
+
|
3509
|
+
// (!) This block is disabled in zlib defaults,
|
3510
|
+
// don't enable it for binary compatibility
|
3511
|
+
|
3512
|
+
//#ifdef TRUNCATE_BLOCK
|
3513
|
+
// /* Try to guess if it is profitable to stop the current block here */
|
3514
|
+
// if ((s.last_lit & 0x1fff) === 0 && s.level > 2) {
|
3515
|
+
// /* Compute an upper bound for the compressed length */
|
3516
|
+
// out_length = s.last_lit*8;
|
3517
|
+
// in_length = s.strstart - s.block_start;
|
3518
|
+
//
|
3519
|
+
// for (dcode = 0; dcode < D_CODES; dcode++) {
|
3520
|
+
// out_length += s.dyn_dtree[dcode*2]/*.Freq*/ * (5 + extra_dbits[dcode]);
|
3521
|
+
// }
|
3522
|
+
// out_length >>>= 3;
|
3523
|
+
// //Tracev((stderr,"\nlast_lit %u, in %ld, out ~%ld(%ld%%) ",
|
3524
|
+
// // s->last_lit, in_length, out_length,
|
3525
|
+
// // 100L - out_length*100L/in_length));
|
3526
|
+
// if (s.matches < (s.last_lit>>1)/*int /2*/ && out_length < (in_length>>1)/*int /2*/) {
|
3527
|
+
// return true;
|
3528
|
+
// }
|
3529
|
+
// }
|
3530
|
+
//#endif
|
3531
|
+
|
3532
|
+
return (s.last_lit === s.lit_bufsize - 1);
|
3533
|
+
/* We avoid equality with lit_bufsize because of wraparound at 64K
|
3534
|
+
* on 16 bit machines and because stored blocks are restricted to
|
3535
|
+
* 64K-1 bytes.
|
3536
|
+
*/
|
3537
|
+
}
|
3538
|
+
|
3539
|
+
exports._tr_init = _tr_init;
|
3540
|
+
exports._tr_stored_block = _tr_stored_block;
|
3541
|
+
exports._tr_flush_block = _tr_flush_block;
|
3542
|
+
exports._tr_tally = _tr_tally;
|
3543
|
+
exports._tr_align = _tr_align;
|
3544
|
+
|
3545
|
+
},{"../utils/common":1}],8:[function(require,module,exports){
|
3546
|
+
'use strict';
|
3547
|
+
|
3548
|
+
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
|
3549
|
+
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
|
3550
|
+
//
|
3551
|
+
// This software is provided 'as-is', without any express or implied
|
3552
|
+
// warranty. In no event will the authors be held liable for any damages
|
3553
|
+
// arising from the use of this software.
|
3554
|
+
//
|
3555
|
+
// Permission is granted to anyone to use this software for any purpose,
|
3556
|
+
// including commercial applications, and to alter it and redistribute it
|
3557
|
+
// freely, subject to the following restrictions:
|
3558
|
+
//
|
3559
|
+
// 1. The origin of this software must not be misrepresented; you must not
|
3560
|
+
// claim that you wrote the original software. If you use this software
|
3561
|
+
// in a product, an acknowledgment in the product documentation would be
|
3562
|
+
// appreciated but is not required.
|
3563
|
+
// 2. Altered source versions must be plainly marked as such, and must not be
|
3564
|
+
// misrepresented as being the original software.
|
3565
|
+
// 3. This notice may not be removed or altered from any source distribution.
|
3566
|
+
|
3567
|
+
function ZStream() {
|
3568
|
+
/* next input byte */
|
3569
|
+
this.input = null; // JS specific, because we have no pointers
|
3570
|
+
this.next_in = 0;
|
3571
|
+
/* number of bytes available at input */
|
3572
|
+
this.avail_in = 0;
|
3573
|
+
/* total number of input bytes read so far */
|
3574
|
+
this.total_in = 0;
|
3575
|
+
/* next output byte should be put there */
|
3576
|
+
this.output = null; // JS specific, because we have no pointers
|
3577
|
+
this.next_out = 0;
|
3578
|
+
/* remaining free space at output */
|
3579
|
+
this.avail_out = 0;
|
3580
|
+
/* total number of bytes output so far */
|
3581
|
+
this.total_out = 0;
|
3582
|
+
/* last error message, NULL if no error */
|
3583
|
+
this.msg = ''/*Z_NULL*/;
|
3584
|
+
/* not visible by applications */
|
3585
|
+
this.state = null;
|
3586
|
+
/* best guess about the data type: binary or text */
|
3587
|
+
this.data_type = 2/*Z_UNKNOWN*/;
|
3588
|
+
/* adler32 value of the uncompressed data */
|
3589
|
+
this.adler = 0;
|
3590
|
+
}
|
3591
|
+
|
3592
|
+
module.exports = ZStream;
|
3593
|
+
|
3594
|
+
},{}],"/lib/deflate.js":[function(require,module,exports){
|
3595
|
+
'use strict';
|
3596
|
+
|
3597
|
+
|
3598
|
+
var zlib_deflate = require('./zlib/deflate');
|
3599
|
+
var utils = require('./utils/common');
|
3600
|
+
var strings = require('./utils/strings');
|
3601
|
+
var msg = require('./zlib/messages');
|
3602
|
+
var ZStream = require('./zlib/zstream');
|
3603
|
+
|
3604
|
+
var toString = Object.prototype.toString;
|
3605
|
+
|
3606
|
+
/* Public constants ==========================================================*/
|
3607
|
+
/* ===========================================================================*/
|
3608
|
+
|
3609
|
+
var Z_NO_FLUSH = 0;
|
3610
|
+
var Z_FINISH = 4;
|
3611
|
+
|
3612
|
+
var Z_OK = 0;
|
3613
|
+
var Z_STREAM_END = 1;
|
3614
|
+
var Z_SYNC_FLUSH = 2;
|
3615
|
+
|
3616
|
+
var Z_DEFAULT_COMPRESSION = -1;
|
3617
|
+
|
3618
|
+
var Z_DEFAULT_STRATEGY = 0;
|
3619
|
+
|
3620
|
+
var Z_DEFLATED = 8;
|
3621
|
+
|
3622
|
+
/* ===========================================================================*/
|
3623
|
+
|
3624
|
+
|
3625
|
+
/**
|
3626
|
+
* class Deflate
|
3627
|
+
*
|
3628
|
+
* Generic JS-style wrapper for zlib calls. If you don't need
|
3629
|
+
* streaming behaviour - use more simple functions: [[deflate]],
|
3630
|
+
* [[deflateRaw]] and [[gzip]].
|
3631
|
+
**/
|
3632
|
+
|
3633
|
+
/* internal
|
3634
|
+
* Deflate.chunks -> Array
|
3635
|
+
*
|
3636
|
+
* Chunks of output data, if [[Deflate#onData]] not overridden.
|
3637
|
+
**/
|
3638
|
+
|
3639
|
+
/**
|
3640
|
+
* Deflate.result -> Uint8Array|Array
|
3641
|
+
*
|
3642
|
+
* Compressed result, generated by default [[Deflate#onData]]
|
3643
|
+
* and [[Deflate#onEnd]] handlers. Filled after you push last chunk
|
3644
|
+
* (call [[Deflate#push]] with `Z_FINISH` / `true` param) or if you
|
3645
|
+
* push a chunk with explicit flush (call [[Deflate#push]] with
|
3646
|
+
* `Z_SYNC_FLUSH` param).
|
3647
|
+
**/
|
3648
|
+
|
3649
|
+
/**
|
3650
|
+
* Deflate.err -> Number
|
3651
|
+
*
|
3652
|
+
* Error code after deflate finished. 0 (Z_OK) on success.
|
3653
|
+
* You will not need it in real life, because deflate errors
|
3654
|
+
* are possible only on wrong options or bad `onData` / `onEnd`
|
3655
|
+
* custom handlers.
|
3656
|
+
**/
|
3657
|
+
|
3658
|
+
/**
|
3659
|
+
* Deflate.msg -> String
|
3660
|
+
*
|
3661
|
+
* Error message, if [[Deflate.err]] != 0
|
3662
|
+
**/
|
3663
|
+
|
3664
|
+
|
3665
|
+
/**
|
3666
|
+
* new Deflate(options)
|
3667
|
+
* - options (Object): zlib deflate options.
|
3668
|
+
*
|
3669
|
+
* Creates new deflator instance with specified params. Throws exception
|
3670
|
+
* on bad params. Supported options:
|
3671
|
+
*
|
3672
|
+
* - `level`
|
3673
|
+
* - `windowBits`
|
3674
|
+
* - `memLevel`
|
3675
|
+
* - `strategy`
|
3676
|
+
* - `dictionary`
|
3677
|
+
*
|
3678
|
+
* [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)
|
3679
|
+
* for more information on these.
|
3680
|
+
*
|
3681
|
+
* Additional options, for internal needs:
|
3682
|
+
*
|
3683
|
+
* - `chunkSize` - size of generated data chunks (16K by default)
|
3684
|
+
* - `raw` (Boolean) - do raw deflate
|
3685
|
+
* - `gzip` (Boolean) - create gzip wrapper
|
3686
|
+
* - `to` (String) - if equal to 'string', then result will be "binary string"
|
3687
|
+
* (each char code [0..255])
|
3688
|
+
* - `header` (Object) - custom header for gzip
|
3689
|
+
* - `text` (Boolean) - true if compressed data believed to be text
|
3690
|
+
* - `time` (Number) - modification time, unix timestamp
|
3691
|
+
* - `os` (Number) - operation system code
|
3692
|
+
* - `extra` (Array) - array of bytes with extra data (max 65536)
|
3693
|
+
* - `name` (String) - file name (binary string)
|
3694
|
+
* - `comment` (String) - comment (binary string)
|
3695
|
+
* - `hcrc` (Boolean) - true if header crc should be added
|
3696
|
+
*
|
3697
|
+
* ##### Example:
|
3698
|
+
*
|
3699
|
+
* ```javascript
|
3700
|
+
* var pako = require('pako')
|
3701
|
+
* , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9])
|
3702
|
+
* , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]);
|
3703
|
+
*
|
3704
|
+
* var deflate = new pako.Deflate({ level: 3});
|
3705
|
+
*
|
3706
|
+
* deflate.push(chunk1, false);
|
3707
|
+
* deflate.push(chunk2, true); // true -> last chunk
|
3708
|
+
*
|
3709
|
+
* if (deflate.err) { throw new Error(deflate.err); }
|
3710
|
+
*
|
3711
|
+
* console.log(deflate.result);
|
3712
|
+
* ```
|
3713
|
+
**/
|
3714
|
+
function Deflate(options) {
|
3715
|
+
if (!(this instanceof Deflate)) return new Deflate(options);
|
3716
|
+
|
3717
|
+
this.options = utils.assign({
|
3718
|
+
level: Z_DEFAULT_COMPRESSION,
|
3719
|
+
method: Z_DEFLATED,
|
3720
|
+
chunkSize: 16384,
|
3721
|
+
windowBits: 15,
|
3722
|
+
memLevel: 8,
|
3723
|
+
strategy: Z_DEFAULT_STRATEGY,
|
3724
|
+
to: ''
|
3725
|
+
}, options || {});
|
3726
|
+
|
3727
|
+
var opt = this.options;
|
3728
|
+
|
3729
|
+
if (opt.raw && (opt.windowBits > 0)) {
|
3730
|
+
opt.windowBits = -opt.windowBits;
|
3731
|
+
}
|
3732
|
+
|
3733
|
+
else if (opt.gzip && (opt.windowBits > 0) && (opt.windowBits < 16)) {
|
3734
|
+
opt.windowBits += 16;
|
3735
|
+
}
|
3736
|
+
|
3737
|
+
this.err = 0; // error code, if happens (0 = Z_OK)
|
3738
|
+
this.msg = ''; // error message
|
3739
|
+
this.ended = false; // used to avoid multiple onEnd() calls
|
3740
|
+
this.chunks = []; // chunks of compressed data
|
3741
|
+
|
3742
|
+
this.strm = new ZStream();
|
3743
|
+
this.strm.avail_out = 0;
|
3744
|
+
|
3745
|
+
var status = zlib_deflate.deflateInit2(
|
3746
|
+
this.strm,
|
3747
|
+
opt.level,
|
3748
|
+
opt.method,
|
3749
|
+
opt.windowBits,
|
3750
|
+
opt.memLevel,
|
3751
|
+
opt.strategy
|
3752
|
+
);
|
3753
|
+
|
3754
|
+
if (status !== Z_OK) {
|
3755
|
+
throw new Error(msg[status]);
|
3756
|
+
}
|
3757
|
+
|
3758
|
+
if (opt.header) {
|
3759
|
+
zlib_deflate.deflateSetHeader(this.strm, opt.header);
|
3760
|
+
}
|
3761
|
+
|
3762
|
+
if (opt.dictionary) {
|
3763
|
+
var dict;
|
3764
|
+
// Convert data if needed
|
3765
|
+
if (typeof opt.dictionary === 'string') {
|
3766
|
+
// If we need to compress text, change encoding to utf8.
|
3767
|
+
dict = strings.string2buf(opt.dictionary);
|
3768
|
+
} else if (toString.call(opt.dictionary) === '[object ArrayBuffer]') {
|
3769
|
+
dict = new Uint8Array(opt.dictionary);
|
3770
|
+
} else {
|
3771
|
+
dict = opt.dictionary;
|
3772
|
+
}
|
3773
|
+
|
3774
|
+
status = zlib_deflate.deflateSetDictionary(this.strm, dict);
|
3775
|
+
|
3776
|
+
if (status !== Z_OK) {
|
3777
|
+
throw new Error(msg[status]);
|
3778
|
+
}
|
3779
|
+
|
3780
|
+
this._dict_set = true;
|
3781
|
+
}
|
3782
|
+
}
|
3783
|
+
|
3784
|
+
/**
|
3785
|
+
* Deflate#push(data[, mode]) -> Boolean
|
3786
|
+
* - data (Uint8Array|Array|ArrayBuffer|String): input data. Strings will be
|
3787
|
+
* converted to utf8 byte sequence.
|
3788
|
+
* - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.
|
3789
|
+
* See constants. Skipped or `false` means Z_NO_FLUSH, `true` means Z_FINISH.
|
3790
|
+
*
|
3791
|
+
* Sends input data to deflate pipe, generating [[Deflate#onData]] calls with
|
3792
|
+
* new compressed chunks. Returns `true` on success. The last data block must have
|
3793
|
+
* mode Z_FINISH (or `true`). That will flush internal pending buffers and call
|
3794
|
+
* [[Deflate#onEnd]]. For interim explicit flushes (without ending the stream) you
|
3795
|
+
* can use mode Z_SYNC_FLUSH, keeping the compression context.
|
3796
|
+
*
|
3797
|
+
* On fail call [[Deflate#onEnd]] with error code and return false.
|
3798
|
+
*
|
3799
|
+
* We strongly recommend to use `Uint8Array` on input for best speed (output
|
3800
|
+
* array format is detected automatically). Also, don't skip last param and always
|
3801
|
+
* use the same type in your code (boolean or number). That will improve JS speed.
|
3802
|
+
*
|
3803
|
+
* For regular `Array`-s make sure all elements are [0..255].
|
3804
|
+
*
|
3805
|
+
* ##### Example
|
3806
|
+
*
|
3807
|
+
* ```javascript
|
3808
|
+
* push(chunk, false); // push one of data chunks
|
3809
|
+
* ...
|
3810
|
+
* push(chunk, true); // push last chunk
|
3811
|
+
* ```
|
3812
|
+
**/
|
3813
|
+
Deflate.prototype.push = function (data, mode) {
|
3814
|
+
var strm = this.strm;
|
3815
|
+
var chunkSize = this.options.chunkSize;
|
3816
|
+
var status, _mode;
|
3817
|
+
|
3818
|
+
if (this.ended) { return false; }
|
3819
|
+
|
3820
|
+
_mode = (mode === ~~mode) ? mode : ((mode === true) ? Z_FINISH : Z_NO_FLUSH);
|
3821
|
+
|
3822
|
+
// Convert data if needed
|
3823
|
+
if (typeof data === 'string') {
|
3824
|
+
// If we need to compress text, change encoding to utf8.
|
3825
|
+
strm.input = strings.string2buf(data);
|
3826
|
+
} else if (toString.call(data) === '[object ArrayBuffer]') {
|
3827
|
+
strm.input = new Uint8Array(data);
|
3828
|
+
} else {
|
3829
|
+
strm.input = data;
|
3830
|
+
}
|
3831
|
+
|
3832
|
+
strm.next_in = 0;
|
3833
|
+
strm.avail_in = strm.input.length;
|
3834
|
+
|
3835
|
+
do {
|
3836
|
+
if (strm.avail_out === 0) {
|
3837
|
+
strm.output = new utils.Buf8(chunkSize);
|
3838
|
+
strm.next_out = 0;
|
3839
|
+
strm.avail_out = chunkSize;
|
3840
|
+
}
|
3841
|
+
status = zlib_deflate.deflate(strm, _mode); /* no bad return value */
|
3842
|
+
|
3843
|
+
if (status !== Z_STREAM_END && status !== Z_OK) {
|
3844
|
+
this.onEnd(status);
|
3845
|
+
this.ended = true;
|
3846
|
+
return false;
|
3847
|
+
}
|
3848
|
+
if (strm.avail_out === 0 || (strm.avail_in === 0 && (_mode === Z_FINISH || _mode === Z_SYNC_FLUSH))) {
|
3849
|
+
if (this.options.to === 'string') {
|
3850
|
+
this.onData(strings.buf2binstring(utils.shrinkBuf(strm.output, strm.next_out)));
|
3851
|
+
} else {
|
3852
|
+
this.onData(utils.shrinkBuf(strm.output, strm.next_out));
|
3853
|
+
}
|
3854
|
+
}
|
3855
|
+
} while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== Z_STREAM_END);
|
3856
|
+
|
3857
|
+
// Finalize on the last chunk.
|
3858
|
+
if (_mode === Z_FINISH) {
|
3859
|
+
status = zlib_deflate.deflateEnd(this.strm);
|
3860
|
+
this.onEnd(status);
|
3861
|
+
this.ended = true;
|
3862
|
+
return status === Z_OK;
|
3863
|
+
}
|
3864
|
+
|
3865
|
+
// callback interim results if Z_SYNC_FLUSH.
|
3866
|
+
if (_mode === Z_SYNC_FLUSH) {
|
3867
|
+
this.onEnd(Z_OK);
|
3868
|
+
strm.avail_out = 0;
|
3869
|
+
return true;
|
3870
|
+
}
|
3871
|
+
|
3872
|
+
return true;
|
3873
|
+
};
|
3874
|
+
|
3875
|
+
|
3876
|
+
/**
|
3877
|
+
* Deflate#onData(chunk) -> Void
|
3878
|
+
* - chunk (Uint8Array|Array|String): output data. Type of array depends
|
3879
|
+
* on js engine support. When string output requested, each chunk
|
3880
|
+
* will be string.
|
3881
|
+
*
|
3882
|
+
* By default, stores data blocks in `chunks[]` property and glue
|
3883
|
+
* those in `onEnd`. Override this handler, if you need another behaviour.
|
3884
|
+
**/
|
3885
|
+
Deflate.prototype.onData = function (chunk) {
|
3886
|
+
this.chunks.push(chunk);
|
3887
|
+
};
|
3888
|
+
|
3889
|
+
|
3890
|
+
/**
|
3891
|
+
* Deflate#onEnd(status) -> Void
|
3892
|
+
* - status (Number): deflate status. 0 (Z_OK) on success,
|
3893
|
+
* other if not.
|
3894
|
+
*
|
3895
|
+
* Called once after you tell deflate that the input stream is
|
3896
|
+
* complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)
|
3897
|
+
* or if an error happened. By default - join collected chunks,
|
3898
|
+
* free memory and fill `results` / `err` properties.
|
3899
|
+
**/
|
3900
|
+
Deflate.prototype.onEnd = function (status) {
|
3901
|
+
// On success - join
|
3902
|
+
if (status === Z_OK) {
|
3903
|
+
if (this.options.to === 'string') {
|
3904
|
+
this.result = this.chunks.join('');
|
3905
|
+
} else {
|
3906
|
+
this.result = utils.flattenChunks(this.chunks);
|
3907
|
+
}
|
3908
|
+
}
|
3909
|
+
this.chunks = [];
|
3910
|
+
this.err = status;
|
3911
|
+
this.msg = this.strm.msg;
|
3912
|
+
};
|
3913
|
+
|
3914
|
+
|
3915
|
+
/**
|
3916
|
+
* deflate(data[, options]) -> Uint8Array|Array|String
|
3917
|
+
* - data (Uint8Array|Array|String): input data to compress.
|
3918
|
+
* - options (Object): zlib deflate options.
|
3919
|
+
*
|
3920
|
+
* Compress `data` with deflate algorithm and `options`.
|
3921
|
+
*
|
3922
|
+
* Supported options are:
|
3923
|
+
*
|
3924
|
+
* - level
|
3925
|
+
* - windowBits
|
3926
|
+
* - memLevel
|
3927
|
+
* - strategy
|
3928
|
+
* - dictionary
|
3929
|
+
*
|
3930
|
+
* [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)
|
3931
|
+
* for more information on these.
|
3932
|
+
*
|
3933
|
+
* Sugar (options):
|
3934
|
+
*
|
3935
|
+
* - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify
|
3936
|
+
* negative windowBits implicitly.
|
3937
|
+
* - `to` (String) - if equal to 'string', then result will be "binary string"
|
3938
|
+
* (each char code [0..255])
|
3939
|
+
*
|
3940
|
+
* ##### Example:
|
3941
|
+
*
|
3942
|
+
* ```javascript
|
3943
|
+
* var pako = require('pako')
|
3944
|
+
* , data = Uint8Array([1,2,3,4,5,6,7,8,9]);
|
3945
|
+
*
|
3946
|
+
* console.log(pako.deflate(data));
|
3947
|
+
* ```
|
3948
|
+
**/
|
3949
|
+
function deflate(input, options) {
|
3950
|
+
var deflator = new Deflate(options);
|
3951
|
+
|
3952
|
+
deflator.push(input, true);
|
3953
|
+
|
3954
|
+
// That will never happens, if you don't cheat with options :)
|
3955
|
+
if (deflator.err) { throw deflator.msg || msg[deflator.err]; }
|
3956
|
+
|
3957
|
+
return deflator.result;
|
3958
|
+
}
|
3959
|
+
|
3960
|
+
|
3961
|
+
/**
|
3962
|
+
* deflateRaw(data[, options]) -> Uint8Array|Array|String
|
3963
|
+
* - data (Uint8Array|Array|String): input data to compress.
|
3964
|
+
* - options (Object): zlib deflate options.
|
3965
|
+
*
|
3966
|
+
* The same as [[deflate]], but creates raw data, without wrapper
|
3967
|
+
* (header and adler32 crc).
|
3968
|
+
**/
|
3969
|
+
function deflateRaw(input, options) {
|
3970
|
+
options = options || {};
|
3971
|
+
options.raw = true;
|
3972
|
+
return deflate(input, options);
|
3973
|
+
}
|
3974
|
+
|
3975
|
+
|
3976
|
+
/**
|
3977
|
+
* gzip(data[, options]) -> Uint8Array|Array|String
|
3978
|
+
* - data (Uint8Array|Array|String): input data to compress.
|
3979
|
+
* - options (Object): zlib deflate options.
|
3980
|
+
*
|
3981
|
+
* The same as [[deflate]], but create gzip wrapper instead of
|
3982
|
+
* deflate one.
|
3983
|
+
**/
|
3984
|
+
function gzip(input, options) {
|
3985
|
+
options = options || {};
|
3986
|
+
options.gzip = true;
|
3987
|
+
return deflate(input, options);
|
3988
|
+
}
|
3989
|
+
|
3990
|
+
|
3991
|
+
exports.Deflate = Deflate;
|
3992
|
+
exports.deflate = deflate;
|
3993
|
+
exports.deflateRaw = deflateRaw;
|
3994
|
+
exports.gzip = gzip;
|
3995
|
+
|
3996
|
+
},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js")
|
3997
|
+
});
|