@contrail/cli 3.4.4-alpha.1 → 3.4.4-alpha.7adb62a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -38
- package/node_modules/@contrail/entity-types/.github/pull_request_template.md +31 -0
- package/node_modules/@contrail/entity-types/.github/workflows/empty.yml +10 -0
- package/node_modules/@contrail/entity-types/.github/workflows/generate-entity-types-docs.yml +32 -0
- package/node_modules/@contrail/entity-types/.prettierrc.yaml +2 -0
- package/node_modules/@contrail/entity-types/README.md +13 -0
- package/node_modules/@contrail/entity-types/home-hero.svg +11 -0
- package/node_modules/@contrail/entity-types/lib/action-definition-config.d.ts +6 -0
- package/node_modules/@contrail/entity-types/lib/action-definition-config.js +2 -0
- package/node_modules/@contrail/entity-types/lib/app-access-grant.d.ts +15 -0
- package/node_modules/@contrail/entity-types/lib/app-access-grant.js +7 -0
- package/node_modules/@contrail/entity-types/lib/app-api-key.d.ts +15 -0
- package/node_modules/@contrail/entity-types/lib/app-api-key.js +2 -0
- package/node_modules/@contrail/entity-types/lib/app-code-package.d.ts +17 -0
- package/node_modules/@contrail/entity-types/lib/app-code-package.js +2 -0
- package/node_modules/@contrail/entity-types/lib/app-extension-definition.d.ts +53 -0
- package/node_modules/@contrail/entity-types/lib/app-extension-definition.js +18 -0
- package/node_modules/@contrail/entity-types/lib/app-extension.d.ts +24 -0
- package/node_modules/@contrail/entity-types/lib/app-extension.js +2 -0
- package/node_modules/@contrail/entity-types/lib/app-org.d.ts +20 -0
- package/node_modules/@contrail/entity-types/lib/app-org.js +11 -0
- package/node_modules/@contrail/entity-types/lib/app-version.d.ts +57 -0
- package/node_modules/@contrail/entity-types/lib/app-version.js +21 -0
- package/node_modules/@contrail/entity-types/lib/app.d.ts +25 -0
- package/node_modules/@contrail/entity-types/lib/app.js +2 -0
- package/node_modules/@contrail/entity-types/lib/asset.d.ts +16 -0
- package/node_modules/@contrail/entity-types/lib/asset.js +2 -0
- package/node_modules/@contrail/entity-types/lib/assortment-item.d.ts +27 -0
- package/node_modules/@contrail/entity-types/lib/assortment-item.js +2 -0
- package/node_modules/@contrail/entity-types/lib/assortment-publish-change.d.ts +48 -0
- package/node_modules/@contrail/entity-types/lib/assortment-publish-change.js +2 -0
- package/node_modules/@contrail/entity-types/lib/assortment-summary.d.ts +15 -0
- package/node_modules/@contrail/entity-types/lib/assortment-summary.js +2 -0
- package/node_modules/@contrail/entity-types/lib/assortment.d.ts +39 -0
- package/node_modules/@contrail/entity-types/lib/assortment.js +11 -0
- package/node_modules/@contrail/entity-types/lib/base-managed-entity.d.ts +8 -0
- package/node_modules/@contrail/entity-types/lib/base-managed-entity.js +2 -0
- package/node_modules/@contrail/entity-types/lib/batch-fetch-response.d.ts +11 -0
- package/node_modules/@contrail/entity-types/lib/batch-fetch-response.js +2 -0
- package/node_modules/@contrail/entity-types/lib/client.d.ts +107 -0
- package/node_modules/@contrail/entity-types/lib/client.js +114 -0
- package/node_modules/@contrail/entity-types/lib/color.d.ts +14 -0
- package/node_modules/@contrail/entity-types/lib/color.js +2 -0
- package/node_modules/@contrail/entity-types/lib/composite-plans-summary.d.ts +15 -0
- package/node_modules/@contrail/entity-types/lib/composite-plans-summary.js +2 -0
- package/node_modules/@contrail/entity-types/lib/content-custom-size.d.ts +14 -0
- package/node_modules/@contrail/entity-types/lib/content-custom-size.js +2 -0
- package/node_modules/@contrail/entity-types/lib/content.d.ts +25 -0
- package/node_modules/@contrail/entity-types/lib/content.js +2 -0
- package/node_modules/@contrail/entity-types/lib/contentholder-content.d.ts +5 -0
- package/node_modules/@contrail/entity-types/lib/contentholder-content.js +2 -0
- package/node_modules/@contrail/entity-types/lib/event-workflow-action-definition.d.ts +21 -0
- package/node_modules/@contrail/entity-types/lib/event-workflow-action-definition.js +2 -0
- package/node_modules/@contrail/entity-types/lib/event-workflow-process.d.ts +27 -0
- package/node_modules/@contrail/entity-types/lib/event-workflow-process.js +11 -0
- package/node_modules/@contrail/entity-types/lib/event-workflow-task.d.ts +30 -0
- package/node_modules/@contrail/entity-types/lib/event-workflow-task.js +2 -0
- package/node_modules/@contrail/entity-types/lib/file.d.ts +13 -0
- package/node_modules/@contrail/entity-types/lib/file.js +2 -0
- package/node_modules/@contrail/entity-types/lib/index.d.ts +40 -0
- package/node_modules/@contrail/entity-types/lib/index.js +56 -0
- package/node_modules/@contrail/entity-types/lib/item.d.ts +20 -0
- package/node_modules/@contrail/entity-types/lib/item.js +2 -0
- package/node_modules/@contrail/entity-types/lib/loader.d.ts +234 -0
- package/node_modules/@contrail/entity-types/lib/loader.js +134 -0
- package/node_modules/@contrail/entity-types/lib/log-level.d.ts +8 -0
- package/node_modules/@contrail/entity-types/lib/log-level.js +12 -0
- package/node_modules/@contrail/entity-types/lib/org-managed-entity.d.ts +5 -0
- package/node_modules/@contrail/entity-types/lib/org-managed-entity.js +2 -0
- package/node_modules/@contrail/entity-types/lib/org.d.ts +11 -0
- package/node_modules/@contrail/entity-types/lib/org.js +2 -0
- package/node_modules/@contrail/entity-types/lib/project-configuration.d.ts +39 -0
- package/node_modules/@contrail/entity-types/lib/project-configuration.js +9 -0
- package/node_modules/@contrail/entity-types/lib/project-item.d.ts +9 -0
- package/node_modules/@contrail/entity-types/lib/project-item.js +2 -0
- package/node_modules/@contrail/entity-types/lib/project.d.ts +4 -0
- package/node_modules/@contrail/entity-types/lib/project.js +2 -0
- package/node_modules/@contrail/entity-types/lib/property-type.d.ts +32 -0
- package/node_modules/@contrail/entity-types/lib/property-type.js +31 -0
- package/node_modules/@contrail/entity-types/lib/shared-links.d.ts +46 -0
- package/node_modules/@contrail/entity-types/lib/shared-links.js +11 -0
- package/node_modules/@contrail/entity-types/lib/subscription.d.ts +38 -0
- package/node_modules/@contrail/entity-types/lib/subscription.js +22 -0
- package/node_modules/@contrail/entity-types/lib/type-managed-entity.d.ts +8 -0
- package/node_modules/@contrail/entity-types/lib/type-managed-entity.js +2 -0
- package/node_modules/@contrail/entity-types/lib/user.d.ts +79 -0
- package/node_modules/@contrail/entity-types/lib/user.js +20 -0
- package/node_modules/@contrail/entity-types/lib/workspace-managed-entity.d.ts +5 -0
- package/node_modules/@contrail/entity-types/lib/workspace-managed-entity.js +2 -0
- package/node_modules/@contrail/entity-types/lib/workspace-principal.d.ts +24 -0
- package/node_modules/@contrail/entity-types/lib/workspace-principal.js +9 -0
- package/node_modules/@contrail/entity-types/lib/workspace.d.ts +32 -0
- package/node_modules/@contrail/entity-types/lib/workspace.js +9 -0
- package/node_modules/@contrail/entity-types/package.json +56 -0
- package/node_modules/@contrail/org-config-migration/.husky/pre-commit +10 -0
- package/node_modules/@contrail/org-config-migration/.lintstagedrc-check.json +3 -0
- package/node_modules/@contrail/org-config-migration/.lintstagedrc-format.json +3 -0
- package/node_modules/@contrail/org-config-migration/.prettierrc.yaml +2 -0
- package/node_modules/@contrail/org-config-migration/lib/index.d.ts +3 -0
- package/node_modules/@contrail/org-config-migration/lib/index.js +19 -0
- package/node_modules/@contrail/org-config-migration/lib/interfaces.d.ts +97 -0
- package/node_modules/@contrail/org-config-migration/lib/interfaces.js +2 -0
- package/node_modules/@contrail/org-config-migration/lib/services/index.d.ts +1 -0
- package/node_modules/@contrail/org-config-migration/lib/services/index.js +17 -0
- package/node_modules/@contrail/org-config-migration/lib/services/types.d.ts +17 -0
- package/node_modules/@contrail/org-config-migration/lib/services/types.js +155 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportAll.d.ts +2 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportAll.js +40 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSet.d.ts +2 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSet.js +20 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSetHierarchies.d.ts +3 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportOptionSetHierarchies.js +47 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportOverrides.d.ts +2 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportOverrides.js +8 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportRuleSets.d.ts +3 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportRuleSets.js +39 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportTypePolicies.d.ts +3 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportTypePolicies.js +56 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportTypePropertyPolicies.d.ts +3 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportTypePropertyPolicies.js +71 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportTypes.d.ts +2 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportTypes.js +85 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportUsageInfo.d.ts +2 -0
- package/node_modules/@contrail/org-config-migration/lib/types/exportUsageInfo.js +39 -0
- package/node_modules/@contrail/org-config-migration/lib/types/importAll.d.ts +2 -0
- package/node_modules/@contrail/org-config-migration/lib/types/importAll.js +451 -0
- package/node_modules/@contrail/org-config-migration/lib/types/index.d.ts +9 -0
- package/node_modules/@contrail/org-config-migration/lib/types/index.js +25 -0
- package/node_modules/@contrail/org-config-migration/lib/types/parseOptionSetHierarchy.d.ts +3 -0
- package/node_modules/@contrail/org-config-migration/lib/types/parseOptionSetHierarchy.js +210 -0
- package/node_modules/@contrail/org-config-migration/lib/users/export.d.ts +2 -0
- package/node_modules/@contrail/org-config-migration/lib/users/export.js +40 -0
- package/node_modules/@contrail/org-config-migration/lib/users/import.d.ts +2 -0
- package/node_modules/@contrail/org-config-migration/lib/users/import.js +41 -0
- package/node_modules/@contrail/org-config-migration/lib/users/index.d.ts +2 -0
- package/node_modules/@contrail/org-config-migration/lib/users/index.js +18 -0
- package/node_modules/@contrail/org-config-migration/node_modules/commander/CHANGELOG.md +361 -0
- package/node_modules/@contrail/org-config-migration/node_modules/commander/LICENSE +22 -0
- package/node_modules/@contrail/org-config-migration/node_modules/commander/Readme.md +791 -0
- package/node_modules/@contrail/org-config-migration/node_modules/commander/index.js +1881 -0
- package/node_modules/@contrail/org-config-migration/node_modules/commander/package.json +51 -0
- package/node_modules/@contrail/org-config-migration/node_modules/commander/typings/index.d.ts +410 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/.eslintrc +10 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/.gitattributes +3 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/.prettierrc.js +3 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/LICENSE.md +14 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/README.md +15 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/bin/json2csv.js +192 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/bin/utils/TablePrinter.js +117 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/bin/utils/parseNdjson.js +11 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/docs/cli-examples.md +73 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/docs/parser-examples.md +488 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/JSON2CSVAsyncParser.js +35 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/JSON2CSVBase.js +175 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/JSON2CSVParser.js +72 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/JSON2CSVStreamParser.js +150 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/JSON2CSVTransform.js +74 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/default.js +7 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/number.js +26 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/object.js +17 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/string.js +18 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/stringExcel.js +8 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/stringQuoteOnlyIfNecessary.js +21 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/formatters/symbol.js +7 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/json2csv.js +43 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/transforms/flatten.js +37 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/transforms/unwind.js +60 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/lib/utils.js +86 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/package.json +73 -0
- package/node_modules/@contrail/org-config-migration/node_modules/json2csv/rollup.config.js +44 -0
- package/node_modules/@contrail/org-config-migration/package.json +50 -0
- package/node_modules/@contrail/policies/README.md +0 -0
- package/node_modules/@contrail/policies/lib/index.d.ts +1 -0
- package/node_modules/@contrail/policies/lib/index.js +17 -0
- package/node_modules/@contrail/policies/lib/policies/index.d.ts +1 -0
- package/node_modules/@contrail/policies/lib/policies/index.js +17 -0
- package/node_modules/@contrail/policies/lib/policies/policies.d.ts +41 -0
- package/node_modules/@contrail/policies/lib/policies/policies.js +132 -0
- package/node_modules/@contrail/policies/package.json +40 -0
- package/node_modules/@contrail/sdk/.github/pull_request_template.md +31 -0
- package/node_modules/@contrail/sdk/.github/workflows/check-code-formatting.yml +34 -0
- package/node_modules/@contrail/sdk/.github/workflows/empty.yml +10 -0
- package/node_modules/@contrail/sdk/.github/workflows/generate-sdk-docs.yml +32 -0
- package/node_modules/@contrail/sdk/.github/workflows/sdk-lib.yml +27 -0
- package/node_modules/@contrail/sdk/.prettierrc.yaml +2 -0
- package/node_modules/@contrail/sdk/README.md +72 -0
- package/node_modules/@contrail/sdk/home-hero.svg +11 -0
- package/node_modules/@contrail/sdk/lib/assets/assets.d.ts +9 -0
- package/node_modules/@contrail/sdk/lib/assets/assets.js +54 -0
- package/node_modules/@contrail/sdk/lib/assets/index.d.ts +1 -0
- package/node_modules/@contrail/sdk/lib/assets/index.js +17 -0
- package/node_modules/@contrail/sdk/lib/auth/auth.d.ts +10 -0
- package/node_modules/@contrail/sdk/lib/auth/auth.js +6 -0
- package/node_modules/@contrail/sdk/lib/auth/index.d.ts +2 -0
- package/node_modules/@contrail/sdk/lib/auth/index.js +18 -0
- package/node_modules/@contrail/sdk/lib/auth/login.d.ts +10 -0
- package/node_modules/@contrail/sdk/lib/auth/login.js +170 -0
- package/node_modules/@contrail/sdk/lib/config/config.d.ts +45 -0
- package/node_modules/@contrail/sdk/lib/config/config.js +36 -0
- package/node_modules/@contrail/sdk/lib/config/index.d.ts +1 -0
- package/node_modules/@contrail/sdk/lib/config/index.js +17 -0
- package/node_modules/@contrail/sdk/lib/content/content.d.ts +12 -0
- package/node_modules/@contrail/sdk/lib/content/content.js +70 -0
- package/node_modules/@contrail/sdk/lib/content/index.d.ts +1 -0
- package/node_modules/@contrail/sdk/lib/content/index.js +17 -0
- package/node_modules/@contrail/sdk/lib/core/index.d.ts +1 -0
- package/node_modules/@contrail/sdk/lib/core/index.js +17 -0
- package/node_modules/@contrail/sdk/lib/core/request.d.ts +12 -0
- package/node_modules/@contrail/sdk/lib/core/request.js +145 -0
- package/node_modules/@contrail/sdk/lib/entities/entities.client.d.ts +101 -0
- package/node_modules/@contrail/sdk/lib/entities/entities.client.js +306 -0
- package/node_modules/@contrail/sdk/lib/entities/entity-reference-expander.d.ts +9 -0
- package/node_modules/@contrail/sdk/lib/entities/entity-reference-expander.js +86 -0
- package/node_modules/@contrail/sdk/lib/entities/entity-reference.d.ts +6 -0
- package/node_modules/@contrail/sdk/lib/entities/entity-reference.js +19 -0
- package/node_modules/@contrail/sdk/lib/entities/entity.resource.registry.d.ts +5 -0
- package/node_modules/@contrail/sdk/lib/entities/entity.resource.registry.js +57 -0
- package/node_modules/@contrail/sdk/lib/entities/index.d.ts +3 -0
- package/node_modules/@contrail/sdk/lib/entities/index.js +19 -0
- package/node_modules/@contrail/sdk/lib/files/file-type-helper.d.ts +3 -0
- package/node_modules/@contrail/sdk/lib/files/file-type-helper.js +24 -0
- package/node_modules/@contrail/sdk/lib/files/files.d.ts +9 -0
- package/node_modules/@contrail/sdk/lib/files/files.js +110 -0
- package/node_modules/@contrail/sdk/lib/files/index.d.ts +1 -0
- package/node_modules/@contrail/sdk/lib/files/index.js +17 -0
- package/node_modules/@contrail/sdk/lib/index.d.ts +10 -0
- package/node_modules/@contrail/sdk/lib/index.js +26 -0
- package/node_modules/@contrail/sdk/lib/notifications/index.d.ts +1 -0
- package/node_modules/@contrail/sdk/lib/notifications/index.js +17 -0
- package/node_modules/@contrail/sdk/lib/notifications/notifications-dispatcher.d.ts +16 -0
- package/node_modules/@contrail/sdk/lib/notifications/notifications-dispatcher.js +37 -0
- package/node_modules/@contrail/sdk/lib/policies/index.d.ts +1 -0
- package/node_modules/@contrail/sdk/lib/policies/index.js +17 -0
- package/node_modules/@contrail/sdk/lib/policies/policies-cache.d.ts +12 -0
- package/node_modules/@contrail/sdk/lib/policies/policies-cache.js +55 -0
- package/node_modules/@contrail/sdk/lib/policies/policies.client.d.ts +9 -0
- package/node_modules/@contrail/sdk/lib/policies/policies.client.js +74 -0
- package/node_modules/@contrail/sdk/lib/types/index.d.ts +2 -0
- package/node_modules/@contrail/sdk/lib/types/index.js +18 -0
- package/node_modules/@contrail/sdk/lib/types/sub-types-helper.d.ts +18 -0
- package/node_modules/@contrail/sdk/lib/types/sub-types-helper.js +98 -0
- package/node_modules/@contrail/sdk/lib/types/types-cache.d.ts +19 -0
- package/node_modules/@contrail/sdk/lib/types/types-cache.js +73 -0
- package/node_modules/@contrail/sdk/lib/types/types.client.d.ts +42 -0
- package/node_modules/@contrail/sdk/lib/types/types.client.js +217 -0
- package/node_modules/@contrail/sdk/package.json +61 -0
- package/node_modules/@contrail/types/README.md +1 -0
- package/node_modules/@contrail/types/lib/copy/copy-helper.d.ts +16 -0
- package/node_modules/@contrail/types/lib/copy/copy-helper.js +103 -0
- package/node_modules/@contrail/types/lib/copy/index.d.ts +1 -0
- package/node_modules/@contrail/types/lib/copy/index.js +17 -0
- package/node_modules/@contrail/types/lib/formatter/formatDate.d.ts +3 -0
- package/node_modules/@contrail/types/lib/formatter/formatDate.js +77 -0
- package/node_modules/@contrail/types/lib/formatter/formatDateCache.d.ts +6 -0
- package/node_modules/@contrail/types/lib/formatter/formatDateCache.js +19 -0
- package/node_modules/@contrail/types/lib/formatter/formatNumber.d.ts +3 -0
- package/node_modules/@contrail/types/lib/formatter/formatNumber.js +40 -0
- package/node_modules/@contrail/types/lib/formatter/formatNumberCache.d.ts +6 -0
- package/node_modules/@contrail/types/lib/formatter/formatNumberCache.js +19 -0
- package/node_modules/@contrail/types/lib/formatter/formatSizeRange.d.ts +1 -0
- package/node_modules/@contrail/types/lib/formatter/formatSizeRange.js +25 -0
- package/node_modules/@contrail/types/lib/formatter/index.d.ts +1 -0
- package/node_modules/@contrail/types/lib/formatter/index.js +17 -0
- package/node_modules/@contrail/types/lib/formatter/property-value-formatter.d.ts +37 -0
- package/node_modules/@contrail/types/lib/formatter/property-value-formatter.js +332 -0
- package/node_modules/@contrail/types/lib/index.d.ts +11 -0
- package/node_modules/@contrail/types/lib/index.js +27 -0
- package/node_modules/@contrail/types/lib/mocks/type-mocks.d.ts +3 -0
- package/node_modules/@contrail/types/lib/mocks/type-mocks.js +5466 -0
- package/node_modules/@contrail/types/lib/relations/relation.d.ts +6 -0
- package/node_modules/@contrail/types/lib/relations/relation.js +2 -0
- package/node_modules/@contrail/types/lib/type-interfaces/index.d.ts +1 -0
- package/node_modules/@contrail/types/lib/type-interfaces/index.js +17 -0
- package/node_modules/@contrail/types/lib/type-interfaces/type-interface.d.ts +4 -0
- package/node_modules/@contrail/types/lib/type-interfaces/type-interface.js +2 -0
- package/node_modules/@contrail/types/lib/type-option-set-hierarchies/index.d.ts +2 -0
- package/node_modules/@contrail/types/lib/type-option-set-hierarchies/index.js +18 -0
- package/node_modules/@contrail/types/lib/type-option-set-hierarchies/option-set-hierarchy-helper.d.ts +10 -0
- package/node_modules/@contrail/types/lib/type-option-set-hierarchies/option-set-hierarchy-helper.js +37 -0
- package/node_modules/@contrail/types/lib/type-option-set-hierarchies/option-set-hierarchy.d.ts +20 -0
- package/node_modules/@contrail/types/lib/type-option-set-hierarchies/option-set-hierarchy.js +2 -0
- package/node_modules/@contrail/types/lib/type-policies/index.d.ts +1 -0
- package/node_modules/@contrail/types/lib/type-policies/index.js +17 -0
- package/node_modules/@contrail/types/lib/type-policies/type-policy.d.ts +9 -0
- package/node_modules/@contrail/types/lib/type-policies/type-policy.js +2 -0
- package/node_modules/@contrail/types/lib/type-properties/index.d.ts +3 -0
- package/node_modules/@contrail/types/lib/type-properties/index.js +19 -0
- package/node_modules/@contrail/types/lib/type-properties/property-types.d.ts +35 -0
- package/node_modules/@contrail/types/lib/type-properties/property-types.js +66 -0
- package/node_modules/@contrail/types/lib/type-properties/size-range/size-range.d.ts +12 -0
- package/node_modules/@contrail/types/lib/type-properties/size-range/size-range.js +2 -0
- package/node_modules/@contrail/types/lib/type-properties/type-property.d.ts +103 -0
- package/node_modules/@contrail/types/lib/type-properties/type-property.js +39 -0
- package/node_modules/@contrail/types/lib/type-property-policies/index.d.ts +1 -0
- package/node_modules/@contrail/types/lib/type-property-policies/index.js +17 -0
- package/node_modules/@contrail/types/lib/type-property-policies/type-property-policy.d.ts +9 -0
- package/node_modules/@contrail/types/lib/type-property-policies/type-property-policy.js +2 -0
- package/node_modules/@contrail/types/lib/type-roots/index.d.ts +1 -0
- package/node_modules/@contrail/types/lib/type-roots/index.js +17 -0
- package/node_modules/@contrail/types/lib/type-roots/type-root.d.ts +7 -0
- package/node_modules/@contrail/types/lib/type-roots/type-root.js +2 -0
- package/node_modules/@contrail/types/lib/type-rule-sets/index.d.ts +1 -0
- package/node_modules/@contrail/types/lib/type-rule-sets/index.js +17 -0
- package/node_modules/@contrail/types/lib/type-rule-sets/type-rules.d.ts +18 -0
- package/node_modules/@contrail/types/lib/type-rule-sets/type-rules.js +2 -0
- package/node_modules/@contrail/types/lib/types/index.d.ts +1 -0
- package/node_modules/@contrail/types/lib/types/index.js +17 -0
- package/node_modules/@contrail/types/lib/types/type.d.ts +28 -0
- package/node_modules/@contrail/types/lib/types/type.js +2 -0
- package/node_modules/@contrail/types/lib/types-processor/index.d.ts +3 -0
- package/node_modules/@contrail/types/lib/types-processor/index.js +19 -0
- package/node_modules/@contrail/types/lib/types-processor/interfaces.d.ts +32 -0
- package/node_modules/@contrail/types/lib/types-processor/interfaces.js +2 -0
- package/node_modules/@contrail/types/lib/types-processor/parse-optionSet.d.ts +3 -0
- package/node_modules/@contrail/types/lib/types-processor/parse-optionSet.js +57 -0
- package/node_modules/@contrail/types/lib/types-processor/process-orchestrator.d.ts +13 -0
- package/node_modules/@contrail/types/lib/types-processor/process-orchestrator.js +300 -0
- package/node_modules/@contrail/types/lib/types-processor/type-creation-helper.d.ts +10 -0
- package/node_modules/@contrail/types/lib/types-processor/type-creation-helper.js +147 -0
- package/node_modules/@contrail/types/package.json +46 -0
- package/node_modules/@contrail/util/CHANGELOG.md +17 -0
- package/node_modules/@contrail/util/README.md +1 -0
- package/node_modules/@contrail/util/lib/app-util/app-util.d.ts +25 -0
- package/node_modules/@contrail/util/lib/app-util/app-util.js +72 -0
- package/node_modules/@contrail/util/lib/compression-util/compression.d.ts +2 -0
- package/node_modules/@contrail/util/lib/compression-util/compression.js +25 -0
- package/node_modules/@contrail/util/lib/compression-util/index.d.ts +1 -0
- package/node_modules/@contrail/util/lib/compression-util/index.js +17 -0
- package/node_modules/@contrail/util/lib/date-util/date-util.d.ts +4 -0
- package/node_modules/@contrail/util/lib/date-util/date-util.js +8 -0
- package/node_modules/@contrail/util/lib/date-util/getIsoDatePart/getIsoDatePart.d.ts +1 -0
- package/node_modules/@contrail/util/lib/date-util/getIsoDatePart/getIsoDatePart.js +16 -0
- package/node_modules/@contrail/util/lib/index.d.ts +11 -0
- package/node_modules/@contrail/util/lib/index.js +27 -0
- package/node_modules/@contrail/util/lib/map-util/map-util.d.ts +3 -0
- package/node_modules/@contrail/util/lib/map-util/map-util.js +18 -0
- package/node_modules/@contrail/util/lib/object-util/applyChangesIfEqual/applyChangesIfEqual.d.ts +4 -0
- package/node_modules/@contrail/util/lib/object-util/applyChangesIfEqual/applyChangesIfEqual.js +83 -0
- package/node_modules/@contrail/util/lib/object-util/cloneDeep/cloneDeep.d.ts +9 -0
- package/node_modules/@contrail/util/lib/object-util/cloneDeep/cloneDeep.js +8 -0
- package/node_modules/@contrail/util/lib/object-util/cloneDeepPreserveDates/cloneDeepPreserveDates.d.ts +6 -0
- package/node_modules/@contrail/util/lib/object-util/cloneDeepPreserveDates/cloneDeepPreserveDates.js +37 -0
- package/node_modules/@contrail/util/lib/object-util/compareDeep/compareDeep.d.ts +7 -0
- package/node_modules/@contrail/util/lib/object-util/compareDeep/compareDeep.js +96 -0
- package/node_modules/@contrail/util/lib/object-util/compareDeep/mockData.d.ts +88 -0
- package/node_modules/@contrail/util/lib/object-util/compareDeep/mockData.js +91 -0
- package/node_modules/@contrail/util/lib/object-util/flattenObject/flattenObject.d.ts +4 -0
- package/node_modules/@contrail/util/lib/object-util/flattenObject/flattenObject.js +60 -0
- package/node_modules/@contrail/util/lib/object-util/isObject/isObject.d.ts +1 -0
- package/node_modules/@contrail/util/lib/object-util/isObject/isObject.js +6 -0
- package/node_modules/@contrail/util/lib/object-util/mergeDeep/mergeDeep.d.ts +1 -0
- package/node_modules/@contrail/util/lib/object-util/mergeDeep/mergeDeep.js +25 -0
- package/node_modules/@contrail/util/lib/object-util/object-util.d.ts +26 -0
- package/node_modules/@contrail/util/lib/object-util/object-util.js +91 -0
- package/node_modules/@contrail/util/lib/object-util/retainOnlyProperties/retainOnlyProperties.d.ts +8 -0
- package/node_modules/@contrail/util/lib/object-util/retainOnlyProperties/retainOnlyProperties.js +30 -0
- package/node_modules/@contrail/util/lib/order-util/order-util.d.ts +3 -0
- package/node_modules/@contrail/util/lib/order-util/order-util.js +13 -0
- package/node_modules/@contrail/util/lib/performance-util/example-usage.d.ts +1 -0
- package/node_modules/@contrail/util/lib/performance-util/example-usage.js +298 -0
- package/node_modules/@contrail/util/lib/performance-util/performance-util.d.ts +35 -0
- package/node_modules/@contrail/util/lib/performance-util/performance-util.js +257 -0
- package/node_modules/@contrail/util/lib/promise-util/promise-util.d.ts +4 -0
- package/node_modules/@contrail/util/lib/promise-util/promise-util.js +34 -0
- package/node_modules/@contrail/util/lib/retry-util/retry-util.d.ts +6 -0
- package/node_modules/@contrail/util/lib/retry-util/retry-util.js +41 -0
- package/node_modules/@contrail/util/lib/string-util/string-util.d.ts +10 -0
- package/node_modules/@contrail/util/lib/string-util/string-util.js +85 -0
- package/node_modules/@contrail/util/lib/timer-util/timer-util.d.ts +32 -0
- package/node_modules/@contrail/util/lib/timer-util/timer-util.js +119 -0
- package/node_modules/@contrail/util/package.json +46 -0
- package/node_modules/@streamparser/json/.eslintrc.js +16 -0
- package/node_modules/@streamparser/json/.github/workflows/on-push.yaml +33 -0
- package/node_modules/@streamparser/json/.github/workflows/on-release.yaml +19 -0
- package/node_modules/@streamparser/json/LICENSE +21 -0
- package/node_modules/@streamparser/json/README.md +329 -0
- package/node_modules/@streamparser/json/build.deno.js +57 -0
- package/node_modules/@streamparser/json/build.mjs.js +35 -0
- package/node_modules/@streamparser/json/dist/cjs/index.d.ts +5 -0
- package/node_modules/@streamparser/json/dist/cjs/index.js +12 -0
- package/node_modules/@streamparser/json/dist/cjs/jsonparser.d.ts +18 -0
- package/node_modules/@streamparser/json/dist/cjs/jsonparser.js +46 -0
- package/node_modules/@streamparser/json/dist/cjs/tokenizer.d.ts +45 -0
- package/node_modules/@streamparser/json/dist/cjs/tokenizer.js +517 -0
- package/node_modules/@streamparser/json/dist/cjs/tokenparser.d.ts +55 -0
- package/node_modules/@streamparser/json/dist/cjs/tokenparser.js +269 -0
- package/node_modules/@streamparser/json/dist/cjs/utils/bufferedString.d.ts +29 -0
- package/node_modules/@streamparser/json/dist/cjs/utils/bufferedString.js +63 -0
- package/node_modules/@streamparser/json/dist/cjs/utils/constants.d.ts +14 -0
- package/node_modules/@streamparser/json/dist/cjs/utils/constants.js +18 -0
- package/node_modules/@streamparser/json/dist/cjs/utils/types.d.ts +7 -0
- package/node_modules/@streamparser/json/dist/cjs/utils/types.js +2 -0
- package/node_modules/@streamparser/json/dist/cjs/utils/utf-8.d.ts +105 -0
- package/node_modules/@streamparser/json/dist/cjs/utils/utf-8.js +116 -0
- package/node_modules/@streamparser/json/dist/deno/README.md +329 -0
- package/node_modules/@streamparser/json/dist/deno/index.ts +5 -0
- package/node_modules/@streamparser/json/dist/deno/jsonparser.ts +65 -0
- package/node_modules/@streamparser/json/dist/deno/tokenizer.ts +678 -0
- package/node_modules/@streamparser/json/dist/deno/tokenparser.ts +390 -0
- package/node_modules/@streamparser/json/dist/deno/utils/bufferedString.ts +75 -0
- package/node_modules/@streamparser/json/dist/deno/utils/constants.ts +14 -0
- package/node_modules/@streamparser/json/dist/deno/utils/types.ts +5 -0
- package/node_modules/@streamparser/json/dist/deno/utils/utf-8.ts +113 -0
- package/node_modules/@streamparser/json/dist/mjs/index.d.ts +5 -0
- package/node_modules/@streamparser/json/dist/mjs/jsonparser.d.ts +18 -0
- package/node_modules/@streamparser/json/dist/mjs/tokenizer.d.ts +45 -0
- package/node_modules/@streamparser/json/dist/mjs/tokenparser.d.ts +55 -0
- package/node_modules/@streamparser/json/dist/mjs/utils/bufferedString.d.ts +29 -0
- package/node_modules/@streamparser/json/dist/mjs/utils/constants.d.ts +14 -0
- package/node_modules/@streamparser/json/dist/mjs/utils/types.d.ts +7 -0
- package/node_modules/@streamparser/json/dist/mjs/utils/utf-8.d.ts +105 -0
- package/node_modules/@streamparser/json/dist/umd/index.d.ts +5 -0
- package/node_modules/@streamparser/json/dist/umd/index.js +1111 -0
- package/node_modules/@streamparser/json/dist/umd/jsonparser.d.ts +18 -0
- package/node_modules/@streamparser/json/dist/umd/tokenizer.d.ts +45 -0
- package/node_modules/@streamparser/json/dist/umd/tokenparser.d.ts +55 -0
- package/node_modules/@streamparser/json/dist/umd/utils/bufferedString.d.ts +29 -0
- package/node_modules/@streamparser/json/dist/umd/utils/constants.d.ts +14 -0
- package/node_modules/@streamparser/json/dist/umd/utils/types.d.ts +7 -0
- package/node_modules/@streamparser/json/dist/umd/utils/utf-8.d.ts +105 -0
- package/node_modules/@streamparser/json/package.json +45 -0
- package/node_modules/@streamparser/json/performance/index.deno.ts +61 -0
- package/node_modules/@streamparser/json/performance/index.node.mjs +62 -0
- package/node_modules/@streamparser/json/performance/package-lock.json +32 -0
- package/node_modules/@streamparser/json/performance/package.json +17 -0
- package/node_modules/@streamparser/json/rollup.config.js +22 -0
- package/node_modules/@streamparser/json/samplejson/basic-no-numbers.json +353 -0
- package/node_modules/@streamparser/json/samplejson/basic.json +353 -0
- package/node_modules/@streamparser/json/src/index.ts +5 -0
- package/node_modules/@streamparser/json/src/jsonparser.ts +65 -0
- package/node_modules/@streamparser/json/src/tokenizer.ts +678 -0
- package/node_modules/@streamparser/json/src/tokenparser.ts +390 -0
- package/node_modules/@streamparser/json/src/utils/bufferedString.ts +75 -0
- package/node_modules/@streamparser/json/src/utils/constants.ts +14 -0
- package/node_modules/@streamparser/json/src/utils/types.ts +5 -0
- package/node_modules/@streamparser/json/src/utils/utf-8.ts +113 -0
- package/node_modules/@streamparser/json/test/callbacks.ts +89 -0
- package/node_modules/@streamparser/json/test/end.ts +127 -0
- package/node_modules/@streamparser/json/test/inputs.ts +89 -0
- package/node_modules/@streamparser/json/test/keepStack.ts +45 -0
- package/node_modules/@streamparser/json/test/offset.ts +89 -0
- package/node_modules/@streamparser/json/test/performance.ts +151 -0
- package/node_modules/@streamparser/json/test/selectors.ts +87 -0
- package/node_modules/@streamparser/json/test/separator.ts +106 -0
- package/node_modules/@streamparser/json/test/types/arrays.ts +108 -0
- package/node_modules/@streamparser/json/test/types/booleans.ts +75 -0
- package/node_modules/@streamparser/json/test/types/null.ts +67 -0
- package/node_modules/@streamparser/json/test/types/numbers.ts +117 -0
- package/node_modules/@streamparser/json/test/types/objects.ts +134 -0
- package/node_modules/@streamparser/json/test/types/strings.ts +233 -0
- package/node_modules/@streamparser/json/tsconfig.json +18 -0
- package/node_modules/amazon-cognito-identity-js/.eslintignore +1 -0
- package/node_modules/amazon-cognito-identity-js/.eslintrc.yaml +30 -0
- package/node_modules/amazon-cognito-identity-js/CHANGELOG.md +1756 -0
- package/node_modules/amazon-cognito-identity-js/LICENSE.txt +73 -0
- package/node_modules/amazon-cognito-identity-js/NOTICE.txt +63 -0
- package/node_modules/amazon-cognito-identity-js/README.md +1121 -0
- package/node_modules/amazon-cognito-identity-js/RNAWSCognito.podspec +23 -0
- package/node_modules/amazon-cognito-identity-js/__mocks__/mocks.js +73 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/AuthenticationDetails.test.js +32 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/AuthenticationHelper.test.js +893 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/BigInteger.test.js +17 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/Client.test.js +108 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/CognitoAccessToken.test.js +16 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/CognitoIdToken.test.js +8 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/CognitoJwtToken.test.js +40 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/CognitoRefreshToken.test.js +13 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/CognitoUser.test.js +1660 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/CognitoUserAttribute.test.js +57 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/CognitoUserPool.test.js +92 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/CognitoUserSession.test.js +78 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/CookieStorage.test.js +72 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/DateHelper.test.js +12 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/StorageHelper.test.js +65 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/StorageHelperRN.test.js +120 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/UserAgent.test.js +42 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/UserAgentDefault.test.js +9 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/constants.js +122 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/cryptoSecureRandomInt.test.js +59 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/index.test.js +23 -0
- package/node_modules/amazon-cognito-identity-js/__tests__/util.js +24 -0
- package/node_modules/amazon-cognito-identity-js/android/.gradle/5.4/fileChanges/last-build.bin +0 -0
- package/node_modules/amazon-cognito-identity-js/android/.gradle/5.4/fileHashes/fileHashes.lock +0 -0
- package/node_modules/amazon-cognito-identity-js/android/.gradle/5.4/gc.properties +0 -0
- package/node_modules/amazon-cognito-identity-js/android/.gradle/vcs-1/gc.properties +0 -0
- package/node_modules/amazon-cognito-identity-js/android/.project +17 -0
- package/node_modules/amazon-cognito-identity-js/android/.settings/org.eclipse.buildship.core.prefs +13 -0
- package/node_modules/amazon-cognito-identity-js/android/build.gradle +38 -0
- package/node_modules/amazon-cognito-identity-js/android/src/main/AndroidManifest.xml +4 -0
- package/node_modules/amazon-cognito-identity-js/android/src/main/java/com/amazonaws/RNAWSCognitoModule.java +88 -0
- package/node_modules/amazon-cognito-identity-js/android/src/main/java/com/amazonaws/RNAWSCognitoPackage.java +27 -0
- package/node_modules/amazon-cognito-identity-js/dist/amazon-cognito-identity.js +8036 -0
- package/node_modules/amazon-cognito-identity-js/dist/amazon-cognito-identity.min.js +40 -0
- package/node_modules/amazon-cognito-identity-js/dist/amazon-cognito-identity.min.js.gz +0 -0
- package/node_modules/amazon-cognito-identity-js/enhance-rn.js +50 -0
- package/node_modules/amazon-cognito-identity-js/es/AuthenticationDetails.js +66 -0
- package/node_modules/amazon-cognito-identity-js/es/AuthenticationHelper.js +343 -0
- package/node_modules/amazon-cognito-identity-js/es/BigInteger.js +758 -0
- package/node_modules/amazon-cognito-identity-js/es/Client.js +215 -0
- package/node_modules/amazon-cognito-identity-js/es/CognitoAccessToken.js +24 -0
- package/node_modules/amazon-cognito-identity-js/es/CognitoIdToken.js +24 -0
- package/node_modules/amazon-cognito-identity-js/es/CognitoJwtToken.js +55 -0
- package/node_modules/amazon-cognito-identity-js/es/CognitoRefreshToken.js +27 -0
- package/node_modules/amazon-cognito-identity-js/es/CognitoUser.js +1807 -0
- package/node_modules/amazon-cognito-identity-js/es/CognitoUserAttribute.js +73 -0
- package/node_modules/amazon-cognito-identity-js/es/CognitoUserPool.js +174 -0
- package/node_modules/amazon-cognito-identity-js/es/CognitoUserSession.js +79 -0
- package/node_modules/amazon-cognito-identity-js/es/CookieStorage.js +112 -0
- package/node_modules/amazon-cognito-identity-js/es/DateHelper.js +41 -0
- package/node_modules/amazon-cognito-identity-js/es/Platform/index.js +34 -0
- package/node_modules/amazon-cognito-identity-js/es/Platform/version.js +2 -0
- package/node_modules/amazon-cognito-identity-js/es/StorageHelper-rn.js +102 -0
- package/node_modules/amazon-cognito-identity-js/es/StorageHelper.js +78 -0
- package/node_modules/amazon-cognito-identity-js/es/UserAgent.js +19 -0
- package/node_modules/amazon-cognito-identity-js/es/index.js +18 -0
- package/node_modules/amazon-cognito-identity-js/es/utils/WordArray.js +46 -0
- package/node_modules/amazon-cognito-identity-js/es/utils/cryptoSecureRandomInt.js +46 -0
- package/node_modules/amazon-cognito-identity-js/es/utils/cryptoSecureRandomInt.native.js +9 -0
- package/node_modules/amazon-cognito-identity-js/es/utils/cryptoSecureRandomInt.web.js +34 -0
- package/node_modules/amazon-cognito-identity-js/es/utils/getRandomBase64.native.js +5 -0
- package/node_modules/amazon-cognito-identity-js/es/utils/getRandomValues.native.js +58 -0
- package/node_modules/amazon-cognito-identity-js/index.d.ts +426 -0
- package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/JKBigDecimal.h +40 -0
- package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/JKBigDecimal.m +224 -0
- package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/JKBigInteger.h +58 -0
- package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/JKBigInteger.m +419 -0
- package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/LICENSE.txt +18 -0
- package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/LibTomMath/tommath.c +6925 -0
- package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/LibTomMath/tommath.h +584 -0
- package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/LibTomMath/tommath_class.h +999 -0
- package/node_modules/amazon-cognito-identity-js/ios/JKBigInteger/LibTomMath/tommath_superclass.h +76 -0
- package/node_modules/amazon-cognito-identity-js/ios/RNAWSCognito.h +9 -0
- package/node_modules/amazon-cognito-identity-js/ios/RNAWSCognito.m +59 -0
- package/node_modules/amazon-cognito-identity-js/ios/RNAWSCognito.xcodeproj/project.pbxproj +295 -0
- package/node_modules/amazon-cognito-identity-js/ios/RNAWSCognito.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/node_modules/amazon-cognito-identity-js/jest.config.js +41 -0
- package/node_modules/amazon-cognito-identity-js/lib/AuthenticationDetails.js +70 -0
- package/node_modules/amazon-cognito-identity-js/lib/AuthenticationHelper.js +348 -0
- package/node_modules/amazon-cognito-identity-js/lib/BigInteger.js +760 -0
- package/node_modules/amazon-cognito-identity-js/lib/Client.js +220 -0
- package/node_modules/amazon-cognito-identity-js/lib/CognitoAccessToken.js +23 -0
- package/node_modules/amazon-cognito-identity-js/lib/CognitoIdToken.js +23 -0
- package/node_modules/amazon-cognito-identity-js/lib/CognitoJwtToken.js +57 -0
- package/node_modules/amazon-cognito-identity-js/lib/CognitoRefreshToken.js +31 -0
- package/node_modules/amazon-cognito-identity-js/lib/CognitoUser.js +1813 -0
- package/node_modules/amazon-cognito-identity-js/lib/CognitoUserAttribute.js +77 -0
- package/node_modules/amazon-cognito-identity-js/lib/CognitoUserPool.js +179 -0
- package/node_modules/amazon-cognito-identity-js/lib/CognitoUserSession.js +83 -0
- package/node_modules/amazon-cognito-identity-js/lib/CookieStorage.js +117 -0
- package/node_modules/amazon-cognito-identity-js/lib/DateHelper.js +45 -0
- package/node_modules/amazon-cognito-identity-js/lib/Platform/index.js +42 -0
- package/node_modules/amazon-cognito-identity-js/lib/Platform/version.js +7 -0
- package/node_modules/amazon-cognito-identity-js/lib/StorageHelper-rn.js +107 -0
- package/node_modules/amazon-cognito-identity-js/lib/StorageHelper.js +82 -0
- package/node_modules/amazon-cognito-identity-js/lib/UserAgent.js +25 -0
- package/node_modules/amazon-cognito-identity-js/lib/index.js +31 -0
- package/node_modules/amazon-cognito-identity-js/lib/utils/WordArray.js +50 -0
- package/node_modules/amazon-cognito-identity-js/lib/utils/cryptoSecureRandomInt.js +50 -0
- package/node_modules/amazon-cognito-identity-js/lib/utils/cryptoSecureRandomInt.native.js +13 -0
- package/node_modules/amazon-cognito-identity-js/lib/utils/cryptoSecureRandomInt.web.js +38 -0
- package/node_modules/amazon-cognito-identity-js/lib/utils/getRandomBase64.native.js +10 -0
- package/node_modules/amazon-cognito-identity-js/lib/utils/getRandomValues.native.js +63 -0
- package/node_modules/amazon-cognito-identity-js/package.json +94 -0
- package/node_modules/amazon-cognito-identity-js/src/AuthenticationDetails.js +65 -0
- package/node_modules/amazon-cognito-identity-js/src/AuthenticationHelper.js +416 -0
- package/node_modules/amazon-cognito-identity-js/src/BigInteger.js +809 -0
- package/node_modules/amazon-cognito-identity-js/src/Client.js +224 -0
- package/node_modules/amazon-cognito-identity-js/src/CognitoAccessToken.js +17 -0
- package/node_modules/amazon-cognito-identity-js/src/CognitoIdToken.js +17 -0
- package/node_modules/amazon-cognito-identity-js/src/CognitoJwtToken.js +52 -0
- package/node_modules/amazon-cognito-identity-js/src/CognitoRefreshToken.js +23 -0
- package/node_modules/amazon-cognito-identity-js/src/CognitoUser.js +2205 -0
- package/node_modules/amazon-cognito-identity-js/src/CognitoUserAttribute.js +68 -0
- package/node_modules/amazon-cognito-identity-js/src/CognitoUserPool.js +194 -0
- package/node_modules/amazon-cognito-identity-js/src/CognitoUserSession.js +82 -0
- package/node_modules/amazon-cognito-identity-js/src/CookieStorage.js +117 -0
- package/node_modules/amazon-cognito-identity-js/src/DateHelper.js +56 -0
- package/node_modules/amazon-cognito-identity-js/src/Platform/index.js +38 -0
- package/node_modules/amazon-cognito-identity-js/src/Platform/version.js +2 -0
- package/node_modules/amazon-cognito-identity-js/src/StorageHelper-rn.js +99 -0
- package/node_modules/amazon-cognito-identity-js/src/StorageHelper.js +75 -0
- package/node_modules/amazon-cognito-identity-js/src/UserAgent.js +26 -0
- package/node_modules/amazon-cognito-identity-js/src/index.js +18 -0
- package/node_modules/amazon-cognito-identity-js/src/utils/WordArray.js +50 -0
- package/node_modules/amazon-cognito-identity-js/src/utils/cryptoSecureRandomInt.js +49 -0
- package/node_modules/amazon-cognito-identity-js/src/utils/cryptoSecureRandomInt.native.js +9 -0
- package/node_modules/amazon-cognito-identity-js/src/utils/cryptoSecureRandomInt.web.js +37 -0
- package/node_modules/amazon-cognito-identity-js/src/utils/getRandomBase64.native.js +12 -0
- package/node_modules/amazon-cognito-identity-js/src/utils/getRandomValues.native.js +61 -0
- package/node_modules/amazon-cognito-identity-js/webpack.config.js +58 -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 +63 -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/base64-js/LICENSE +21 -0
- package/node_modules/base64-js/README.md +34 -0
- package/node_modules/base64-js/base64js.min.js +1 -0
- package/node_modules/base64-js/index.d.ts +3 -0
- package/node_modules/base64-js/index.js +150 -0
- package/node_modules/base64-js/package.json +47 -0
- package/node_modules/buffer/.travis.yml +8 -0
- package/node_modules/buffer/AUTHORS.md +44 -0
- package/node_modules/buffer/LICENSE +21 -0
- package/node_modules/buffer/README.md +378 -0
- package/node_modules/buffer/bin/download-node-tests.js +106 -0
- package/node_modules/buffer/bin/test.js +41 -0
- package/node_modules/buffer/bin/update-authors.sh +21 -0
- package/node_modules/buffer/bin/zuul-es5.yml +14 -0
- package/node_modules/buffer/bin/zuul-es6.yml +6 -0
- package/node_modules/buffer/index.js +1789 -0
- package/node_modules/buffer/package.json +77 -0
- package/node_modules/buffer/test/_polyfill.js +150 -0
- package/node_modules/buffer/test/base64.js +47 -0
- package/node_modules/buffer/test/basic.js +85 -0
- package/node_modules/buffer/test/compare.js +59 -0
- package/node_modules/buffer/test/constructor.js +193 -0
- package/node_modules/buffer/test/from-string.js +132 -0
- package/node_modules/buffer/test/is-buffer.js +22 -0
- package/node_modules/buffer/test/methods.js +127 -0
- package/node_modules/buffer/test/node/test-buffer-alloc.js +1501 -0
- package/node_modules/buffer/test/node/test-buffer-arraybuffer.js +112 -0
- package/node_modules/buffer/test/node/test-buffer-ascii.js +28 -0
- package/node_modules/buffer/test/node/test-buffer-bad-overload.js +18 -0
- package/node_modules/buffer/test/node/test-buffer-badhex.js +46 -0
- package/node_modules/buffer/test/node/test-buffer-bytelength.js +90 -0
- package/node_modules/buffer/test/node/test-buffer-compare-offset.js +66 -0
- package/node_modules/buffer/test/node/test-buffer-concat.js +40 -0
- package/node_modules/buffer/test/node/test-buffer-fill.js +272 -0
- package/node_modules/buffer/test/node/test-buffer-includes.js +305 -0
- package/node_modules/buffer/test/node/test-buffer-indexof.js +523 -0
- package/node_modules/buffer/test/node/test-buffer-inheritance.js +42 -0
- package/node_modules/buffer/test/node/test-buffer-inspect.js +41 -0
- package/node_modules/buffer/test/node/test-buffer-iterator.js +65 -0
- package/node_modules/buffer/test/node/test-buffer-safe-unsafe.js +27 -0
- package/node_modules/buffer/test/node/test-buffer-slow.js +63 -0
- package/node_modules/buffer/test/node/test-buffer-swap.js +141 -0
- package/node_modules/buffer/test/node/test-buffer-zero-fill-cli.js +35 -0
- package/node_modules/buffer/test/node/test-buffer-zero-fill-reset.js +22 -0
- package/node_modules/buffer/test/node/test-buffer.js +1534 -0
- package/node_modules/buffer/test/slice.js +37 -0
- package/node_modules/buffer/test/static.js +17 -0
- package/node_modules/buffer/test/to-string.js +233 -0
- package/node_modules/buffer/test/write.js +131 -0
- package/node_modules/buffer/test/write_infinity.js +45 -0
- package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -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 +25 -0
- package/node_modules/crypto-js/CONTRIBUTING.md +28 -0
- package/node_modules/crypto-js/LICENSE +24 -0
- package/node_modules/crypto-js/README.md +275 -0
- package/node_modules/crypto-js/aes.js +234 -0
- package/node_modules/crypto-js/blowfish.js +471 -0
- package/node_modules/crypto-js/bower.json +39 -0
- package/node_modules/crypto-js/cipher-core.js +895 -0
- package/node_modules/crypto-js/core.js +807 -0
- package/node_modules/crypto-js/crypto-js.js +6657 -0
- package/node_modules/crypto-js/docs/QuickStartGuide.wiki +470 -0
- package/node_modules/crypto-js/enc-base64.js +136 -0
- package/node_modules/crypto-js/enc-base64url.js +148 -0
- package/node_modules/crypto-js/enc-hex.js +18 -0
- package/node_modules/crypto-js/enc-latin1.js +18 -0
- package/node_modules/crypto-js/enc-utf16.js +149 -0
- package/node_modules/crypto-js/enc-utf8.js +18 -0
- package/node_modules/crypto-js/evpkdf.js +134 -0
- package/node_modules/crypto-js/format-hex.js +66 -0
- package/node_modules/crypto-js/format-openssl.js +18 -0
- package/node_modules/crypto-js/hmac-md5.js +18 -0
- package/node_modules/crypto-js/hmac-ripemd160.js +18 -0
- package/node_modules/crypto-js/hmac-sha1.js +18 -0
- package/node_modules/crypto-js/hmac-sha224.js +18 -0
- package/node_modules/crypto-js/hmac-sha256.js +18 -0
- package/node_modules/crypto-js/hmac-sha3.js +18 -0
- package/node_modules/crypto-js/hmac-sha384.js +18 -0
- package/node_modules/crypto-js/hmac-sha512.js +18 -0
- package/node_modules/crypto-js/hmac.js +143 -0
- package/node_modules/crypto-js/index.js +18 -0
- package/node_modules/crypto-js/lib-typedarrays.js +76 -0
- package/node_modules/crypto-js/md5.js +268 -0
- package/node_modules/crypto-js/mode-cfb.js +80 -0
- package/node_modules/crypto-js/mode-ctr-gladman.js +116 -0
- package/node_modules/crypto-js/mode-ctr.js +58 -0
- package/node_modules/crypto-js/mode-ecb.js +40 -0
- package/node_modules/crypto-js/mode-ofb.js +54 -0
- package/node_modules/crypto-js/package.json +42 -0
- package/node_modules/crypto-js/pad-ansix923.js +49 -0
- package/node_modules/crypto-js/pad-iso10126.js +44 -0
- package/node_modules/crypto-js/pad-iso97971.js +40 -0
- package/node_modules/crypto-js/pad-nopadding.js +30 -0
- package/node_modules/crypto-js/pad-pkcs7.js +18 -0
- package/node_modules/crypto-js/pad-zeropadding.js +47 -0
- package/node_modules/crypto-js/pbkdf2.js +145 -0
- package/node_modules/crypto-js/rabbit-legacy.js +190 -0
- package/node_modules/crypto-js/rabbit.js +192 -0
- package/node_modules/crypto-js/rc4.js +139 -0
- package/node_modules/crypto-js/ripemd160.js +267 -0
- package/node_modules/crypto-js/sha1.js +150 -0
- package/node_modules/crypto-js/sha224.js +80 -0
- package/node_modules/crypto-js/sha256.js +199 -0
- package/node_modules/crypto-js/sha3.js +326 -0
- package/node_modules/crypto-js/sha384.js +83 -0
- package/node_modules/crypto-js/sha512.js +326 -0
- package/node_modules/crypto-js/tripledes.js +779 -0
- package/node_modules/crypto-js/x64-core.js +304 -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 +27 -0
- package/node_modules/dunder-proto/.eslintrc +5 -0
- package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/node_modules/dunder-proto/.nycrc +13 -0
- package/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/node_modules/dunder-proto/LICENSE +21 -0
- package/node_modules/dunder-proto/README.md +54 -0
- package/node_modules/dunder-proto/get.d.ts +5 -0
- package/node_modules/dunder-proto/get.js +30 -0
- package/node_modules/dunder-proto/package.json +76 -0
- package/node_modules/dunder-proto/set.d.ts +5 -0
- package/node_modules/dunder-proto/set.js +35 -0
- package/node_modules/dunder-proto/test/get.js +34 -0
- package/node_modules/dunder-proto/test/index.js +4 -0
- package/node_modules/dunder-proto/test/set.js +50 -0
- package/node_modules/dunder-proto/tsconfig.json +9 -0
- package/node_modules/es-define-property/.eslintrc +13 -0
- package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/node_modules/es-define-property/.nycrc +9 -0
- package/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/node_modules/es-define-property/LICENSE +21 -0
- package/node_modules/es-define-property/README.md +49 -0
- package/node_modules/es-define-property/index.d.ts +3 -0
- package/node_modules/es-define-property/index.js +14 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/test/index.js +56 -0
- package/node_modules/es-define-property/tsconfig.json +10 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/test/index.js +19 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/es-object-atoms/.eslintrc +16 -0
- package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/node_modules/es-object-atoms/LICENSE +21 -0
- package/node_modules/es-object-atoms/README.md +63 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/node_modules/es-object-atoms/ToObject.js +10 -0
- package/node_modules/es-object-atoms/index.d.ts +3 -0
- package/node_modules/es-object-atoms/index.js +4 -0
- package/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/node_modules/es-object-atoms/isObject.js +6 -0
- package/node_modules/es-object-atoms/package.json +80 -0
- package/node_modules/es-object-atoms/test/index.js +38 -0
- package/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/node_modules/es-set-tostringtag/.eslintrc +13 -0
- package/node_modules/es-set-tostringtag/.nycrc +9 -0
- package/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
- package/node_modules/es-set-tostringtag/LICENSE +21 -0
- package/node_modules/es-set-tostringtag/README.md +53 -0
- package/node_modules/es-set-tostringtag/index.d.ts +10 -0
- package/node_modules/es-set-tostringtag/index.js +35 -0
- package/node_modules/es-set-tostringtag/package.json +78 -0
- package/node_modules/es-set-tostringtag/test/index.js +85 -0
- package/node_modules/es-set-tostringtag/tsconfig.json +9 -0
- package/node_modules/es6-promisify/LICENSE +19 -0
- package/node_modules/es6-promisify/README.md +99 -0
- package/node_modules/es6-promisify/dist/promisify.js +76 -0
- package/node_modules/es6-promisify/package.json +41 -0
- package/node_modules/fast-base64-decode/index.d.ts +2 -0
- package/node_modules/fast-base64-decode/index.js +33 -0
- package/node_modules/fast-base64-decode/package.json +21 -0
- package/node_modules/fast-base64-decode/readme.md +21 -0
- package/node_modules/fflate/CHANGELOG.md +115 -0
- package/node_modules/fflate/LICENSE +21 -0
- package/node_modules/fflate/README.md +558 -0
- package/node_modules/fflate/esm/browser.d.ts +1501 -0
- package/node_modules/fflate/esm/browser.js +2665 -0
- package/node_modules/fflate/esm/index.d.mts +1501 -0
- package/node_modules/fflate/esm/index.mjs +2679 -0
- package/node_modules/fflate/lib/browser.cjs +2688 -0
- package/node_modules/fflate/lib/browser.d.cts +1501 -0
- package/node_modules/fflate/lib/index.cjs +2668 -0
- package/node_modules/fflate/lib/index.d.ts +1501 -0
- package/node_modules/fflate/lib/node-worker.cjs +32 -0
- package/node_modules/fflate/lib/node.cjs +2700 -0
- package/node_modules/fflate/lib/node.d.cts +1501 -0
- package/node_modules/fflate/lib/worker.cjs +20 -0
- package/node_modules/fflate/package.json +127 -0
- package/node_modules/fflate/umd/index.js +1 -0
- package/node_modules/form-data/CHANGELOG.md +601 -0
- package/node_modules/form-data/License +19 -0
- package/node_modules/form-data/README.md +355 -0
- package/node_modules/form-data/index.d.ts +62 -0
- package/node_modules/form-data/lib/browser.js +4 -0
- package/node_modules/form-data/lib/form_data.js +494 -0
- package/node_modules/form-data/lib/populate.js +10 -0
- package/node_modules/form-data/package.json +82 -0
- package/node_modules/function-bind/.eslintrc +21 -0
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/LICENSE +20 -0
- package/node_modules/function-bind/README.md +46 -0
- package/node_modules/function-bind/implementation.js +84 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +87 -0
- package/node_modules/function-bind/test/.eslintrc +9 -0
- package/node_modules/function-bind/test/index.js +252 -0
- package/node_modules/get-intrinsic/.eslintrc +42 -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 +186 -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 +378 -0
- package/node_modules/get-intrinsic/package.json +97 -0
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/node_modules/get-proto/.eslintrc +10 -0
- package/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/CHANGELOG.md +21 -0
- package/node_modules/get-proto/LICENSE +21 -0
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/node_modules/get-proto/README.md +50 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/node_modules/get-proto/index.d.ts +5 -0
- package/node_modules/get-proto/index.js +27 -0
- package/node_modules/get-proto/package.json +81 -0
- package/node_modules/get-proto/test/index.js +68 -0
- package/node_modules/get-proto/tsconfig.json +9 -0
- package/node_modules/gopd/.eslintrc +16 -0
- package/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/node_modules/gopd/CHANGELOG.md +45 -0
- package/node_modules/gopd/LICENSE +21 -0
- package/node_modules/gopd/README.md +40 -0
- package/node_modules/gopd/gOPD.d.ts +1 -0
- package/node_modules/gopd/gOPD.js +4 -0
- package/node_modules/gopd/index.d.ts +5 -0
- package/node_modules/gopd/index.js +15 -0
- package/node_modules/gopd/package.json +77 -0
- package/node_modules/gopd/test/index.js +36 -0
- package/node_modules/gopd/tsconfig.json +9 -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 +91 -0
- package/node_modules/has-symbols/LICENSE +21 -0
- package/node_modules/has-symbols/README.md +46 -0
- package/node_modules/has-symbols/index.d.ts +3 -0
- package/node_modules/has-symbols/index.js +14 -0
- package/node_modules/has-symbols/package.json +111 -0
- package/node_modules/has-symbols/shams.d.ts +3 -0
- package/node_modules/has-symbols/shams.js +45 -0
- package/node_modules/has-symbols/test/index.js +22 -0
- package/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/node_modules/has-symbols/test/tests.js +58 -0
- package/node_modules/has-symbols/tsconfig.json +10 -0
- package/node_modules/has-tostringtag/.eslintrc +5 -0
- package/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
- package/node_modules/has-tostringtag/.nycrc +13 -0
- package/node_modules/has-tostringtag/CHANGELOG.md +42 -0
- package/node_modules/has-tostringtag/LICENSE +21 -0
- package/node_modules/has-tostringtag/README.md +46 -0
- package/node_modules/has-tostringtag/index.d.ts +3 -0
- package/node_modules/has-tostringtag/index.js +8 -0
- package/node_modules/has-tostringtag/package.json +108 -0
- package/node_modules/has-tostringtag/shams.d.ts +3 -0
- package/node_modules/has-tostringtag/shams.js +8 -0
- package/node_modules/has-tostringtag/test/index.js +21 -0
- package/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
- package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
- package/node_modules/has-tostringtag/test/tests.js +15 -0
- package/node_modules/has-tostringtag/tsconfig.json +49 -0
- package/node_modules/hasown/.eslintrc +5 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +40 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +92 -0
- package/node_modules/hasown/tsconfig.json +6 -0
- package/node_modules/ieee754/LICENSE +11 -0
- package/node_modules/ieee754/README.md +53 -0
- package/node_modules/ieee754/index.js +84 -0
- package/node_modules/ieee754/package.json +37 -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 +45 -0
- package/node_modules/isarray/test.js +20 -0
- package/node_modules/isomorphic-unfetch/browser.js +1 -0
- package/node_modules/isomorphic-unfetch/index.d.ts +19 -0
- package/node_modules/isomorphic-unfetch/index.js +6 -0
- package/node_modules/isomorphic-unfetch/package.json +19 -0
- package/node_modules/isomorphic-unfetch/readme.md +53 -0
- package/node_modules/js-cookie/CONTRIBUTING.md +79 -0
- package/node_modules/js-cookie/LICENSE +21 -0
- package/node_modules/js-cookie/README.md +327 -0
- package/node_modules/js-cookie/SERVER_SIDE.md +107 -0
- package/node_modules/js-cookie/package.json +47 -0
- package/node_modules/js-cookie/src/js.cookie.js +163 -0
- package/node_modules/jsurl/.npmignore +2 -0
- package/node_modules/jsurl/.travis.yml +6 -0
- package/node_modules/jsurl/AUTHORS +3 -0
- package/node_modules/jsurl/README.md +76 -0
- package/node_modules/jsurl/bower.json +18 -0
- package/node_modules/jsurl/examples/demo.css +40 -0
- package/node_modules/jsurl/examples/demo.html +52 -0
- package/node_modules/jsurl/examples/simple.js +12 -0
- package/node_modules/jsurl/index.js +1 -0
- package/node_modules/jsurl/lib/jsurl.js +169 -0
- package/node_modules/jsurl/package.json +22 -0
- package/node_modules/jsurl/test/common/jsurlTest.js +83 -0
- package/node_modules/jsurl/test/index.js +25 -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 +17 -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 +17 -0
- package/node_modules/math-intrinsics/.eslintrc +16 -0
- package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/node_modules/math-intrinsics/LICENSE +21 -0
- package/node_modules/math-intrinsics/README.md +50 -0
- package/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/node_modules/math-intrinsics/abs.js +4 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/node_modules/math-intrinsics/floor.js +4 -0
- package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/node_modules/math-intrinsics/isFinite.js +12 -0
- package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/isInteger.js +16 -0
- package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/node_modules/math-intrinsics/isNaN.js +6 -0
- package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/node_modules/math-intrinsics/max.d.ts +1 -0
- package/node_modules/math-intrinsics/max.js +4 -0
- package/node_modules/math-intrinsics/min.d.ts +1 -0
- package/node_modules/math-intrinsics/min.js +4 -0
- package/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/node_modules/math-intrinsics/mod.js +9 -0
- package/node_modules/math-intrinsics/package.json +86 -0
- package/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/node_modules/math-intrinsics/pow.js +4 -0
- package/node_modules/math-intrinsics/round.d.ts +1 -0
- package/node_modules/math-intrinsics/round.js +4 -0
- package/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/node_modules/math-intrinsics/sign.js +11 -0
- package/node_modules/math-intrinsics/test/index.js +192 -0
- package/node_modules/math-intrinsics/tsconfig.json +3 -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 +60 -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 +44 -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 +76 -0
- package/node_modules/p-limit/index.d.ts +42 -0
- package/node_modules/p-limit/index.js +71 -0
- package/node_modules/p-limit/license +9 -0
- package/node_modules/p-limit/package.json +52 -0
- package/node_modules/p-limit/readme.md +101 -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 +31 -0
- package/node_modules/unfetch/LICENSE.md +21 -0
- package/node_modules/unfetch/README.md +247 -0
- package/node_modules/unfetch/dist/unfetch.es.js +2 -0
- package/node_modules/unfetch/dist/unfetch.js +2 -0
- package/node_modules/unfetch/dist/unfetch.js.map +1 -0
- package/node_modules/unfetch/dist/unfetch.module.js +2 -0
- package/node_modules/unfetch/dist/unfetch.module.js.map +1 -0
- package/node_modules/unfetch/dist/unfetch.umd.js +2 -0
- package/node_modules/unfetch/dist/unfetch.umd.js.map +1 -0
- package/node_modules/unfetch/package.json +67 -0
- package/node_modules/unfetch/polyfill/index.js +1 -0
- package/node_modules/unfetch/polyfill/package.json +5 -0
- package/node_modules/unfetch/polyfill/polyfill.mjs +2 -0
- package/node_modules/unfetch/src/index.d.ts +46 -0
- package/node_modules/unfetch/src/index.mjs +47 -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 +23 -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 +32 -0
- package/node_modules/yocto-queue/index.d.ts +56 -0
- package/node_modules/yocto-queue/index.js +68 -0
- package/node_modules/yocto-queue/license +9 -0
- package/node_modules/yocto-queue/package.json +43 -0
- package/node_modules/yocto-queue/readme.md +64 -0
- package/oclif.manifest.json +1 -85
- package/package.json +10 -8
- package/dist/commands/load-local/index.d.ts +0 -17
- package/dist/commands/load-local/index.js +0 -156
- package/dist/helpers/pipeline/formatters.d.ts +0 -6
- package/dist/helpers/pipeline/formatters.js +0 -219
|
@@ -0,0 +1,2665 @@
|
|
|
1
|
+
// DEFLATE is a complex format; to read this code, you should probably check the RFC first:
|
|
2
|
+
// https://tools.ietf.org/html/rfc1951
|
|
3
|
+
// You may also wish to take a look at the guide I made about this program:
|
|
4
|
+
// https://gist.github.com/101arrowz/253f31eb5abc3d9275ab943003ffecad
|
|
5
|
+
// Some of the following code is similar to that of UZIP.js:
|
|
6
|
+
// https://github.com/photopea/UZIP.js
|
|
7
|
+
// However, the vast majority of the codebase has diverged from UZIP.js to increase performance and reduce bundle size.
|
|
8
|
+
// Sometimes 0 will appear where -1 would be more appropriate. This is because using a uint
|
|
9
|
+
// is better for memory in most engines (I *think*).
|
|
10
|
+
var ch2 = {};
|
|
11
|
+
var wk = (function (c, id, msg, transfer, cb) {
|
|
12
|
+
var w = new Worker(ch2[id] || (ch2[id] = URL.createObjectURL(new Blob([
|
|
13
|
+
c + ';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'
|
|
14
|
+
], { type: 'text/javascript' }))));
|
|
15
|
+
w.onmessage = function (e) {
|
|
16
|
+
var d = e.data, ed = d.$e$;
|
|
17
|
+
if (ed) {
|
|
18
|
+
var err = new Error(ed[0]);
|
|
19
|
+
err['code'] = ed[1];
|
|
20
|
+
err.stack = ed[2];
|
|
21
|
+
cb(err, null);
|
|
22
|
+
}
|
|
23
|
+
else
|
|
24
|
+
cb(null, d);
|
|
25
|
+
};
|
|
26
|
+
w.postMessage(msg, transfer);
|
|
27
|
+
return w;
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
// aliases for shorter compressed code (most minifers don't do this)
|
|
31
|
+
var u8 = Uint8Array, u16 = Uint16Array, i32 = Int32Array;
|
|
32
|
+
// fixed length extra bits
|
|
33
|
+
var fleb = new u8([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, /* unused */ 0, 0, /* impossible */ 0]);
|
|
34
|
+
// fixed distance extra bits
|
|
35
|
+
var fdeb = new u8([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, /* unused */ 0, 0]);
|
|
36
|
+
// code length index map
|
|
37
|
+
var clim = new u8([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]);
|
|
38
|
+
// get base, reverse index map from extra bits
|
|
39
|
+
var freb = function (eb, start) {
|
|
40
|
+
var b = new u16(31);
|
|
41
|
+
for (var i = 0; i < 31; ++i) {
|
|
42
|
+
b[i] = start += 1 << eb[i - 1];
|
|
43
|
+
}
|
|
44
|
+
// numbers here are at max 18 bits
|
|
45
|
+
var r = new i32(b[30]);
|
|
46
|
+
for (var i = 1; i < 30; ++i) {
|
|
47
|
+
for (var j = b[i]; j < b[i + 1]; ++j) {
|
|
48
|
+
r[j] = ((j - b[i]) << 5) | i;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return { b: b, r: r };
|
|
52
|
+
};
|
|
53
|
+
var _a = freb(fleb, 2), fl = _a.b, revfl = _a.r;
|
|
54
|
+
// we can ignore the fact that the other numbers are wrong; they never happen anyway
|
|
55
|
+
fl[28] = 258, revfl[258] = 28;
|
|
56
|
+
var _b = freb(fdeb, 0), fd = _b.b, revfd = _b.r;
|
|
57
|
+
// map of value to reverse (assuming 16 bits)
|
|
58
|
+
var rev = new u16(32768);
|
|
59
|
+
for (var i = 0; i < 32768; ++i) {
|
|
60
|
+
// reverse table algorithm from SO
|
|
61
|
+
var x = ((i & 0xAAAA) >> 1) | ((i & 0x5555) << 1);
|
|
62
|
+
x = ((x & 0xCCCC) >> 2) | ((x & 0x3333) << 2);
|
|
63
|
+
x = ((x & 0xF0F0) >> 4) | ((x & 0x0F0F) << 4);
|
|
64
|
+
rev[i] = (((x & 0xFF00) >> 8) | ((x & 0x00FF) << 8)) >> 1;
|
|
65
|
+
}
|
|
66
|
+
// create huffman tree from u8 "map": index -> code length for code index
|
|
67
|
+
// mb (max bits) must be at most 15
|
|
68
|
+
// TODO: optimize/split up?
|
|
69
|
+
var hMap = (function (cd, mb, r) {
|
|
70
|
+
var s = cd.length;
|
|
71
|
+
// index
|
|
72
|
+
var i = 0;
|
|
73
|
+
// u16 "map": index -> # of codes with bit length = index
|
|
74
|
+
var l = new u16(mb);
|
|
75
|
+
// length of cd must be 288 (total # of codes)
|
|
76
|
+
for (; i < s; ++i) {
|
|
77
|
+
if (cd[i])
|
|
78
|
+
++l[cd[i] - 1];
|
|
79
|
+
}
|
|
80
|
+
// u16 "map": index -> minimum code for bit length = index
|
|
81
|
+
var le = new u16(mb);
|
|
82
|
+
for (i = 1; i < mb; ++i) {
|
|
83
|
+
le[i] = (le[i - 1] + l[i - 1]) << 1;
|
|
84
|
+
}
|
|
85
|
+
var co;
|
|
86
|
+
if (r) {
|
|
87
|
+
// u16 "map": index -> number of actual bits, symbol for code
|
|
88
|
+
co = new u16(1 << mb);
|
|
89
|
+
// bits to remove for reverser
|
|
90
|
+
var rvb = 15 - mb;
|
|
91
|
+
for (i = 0; i < s; ++i) {
|
|
92
|
+
// ignore 0 lengths
|
|
93
|
+
if (cd[i]) {
|
|
94
|
+
// num encoding both symbol and bits read
|
|
95
|
+
var sv = (i << 4) | cd[i];
|
|
96
|
+
// free bits
|
|
97
|
+
var r_1 = mb - cd[i];
|
|
98
|
+
// start value
|
|
99
|
+
var v = le[cd[i] - 1]++ << r_1;
|
|
100
|
+
// m is end value
|
|
101
|
+
for (var m = v | ((1 << r_1) - 1); v <= m; ++v) {
|
|
102
|
+
// every 16 bit value starting with the code yields the same result
|
|
103
|
+
co[rev[v] >> rvb] = sv;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
co = new u16(s);
|
|
110
|
+
for (i = 0; i < s; ++i) {
|
|
111
|
+
if (cd[i]) {
|
|
112
|
+
co[i] = rev[le[cd[i] - 1]++] >> (15 - cd[i]);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return co;
|
|
117
|
+
});
|
|
118
|
+
// fixed length tree
|
|
119
|
+
var flt = new u8(288);
|
|
120
|
+
for (var i = 0; i < 144; ++i)
|
|
121
|
+
flt[i] = 8;
|
|
122
|
+
for (var i = 144; i < 256; ++i)
|
|
123
|
+
flt[i] = 9;
|
|
124
|
+
for (var i = 256; i < 280; ++i)
|
|
125
|
+
flt[i] = 7;
|
|
126
|
+
for (var i = 280; i < 288; ++i)
|
|
127
|
+
flt[i] = 8;
|
|
128
|
+
// fixed distance tree
|
|
129
|
+
var fdt = new u8(32);
|
|
130
|
+
for (var i = 0; i < 32; ++i)
|
|
131
|
+
fdt[i] = 5;
|
|
132
|
+
// fixed length map
|
|
133
|
+
var flm = /*#__PURE__*/ hMap(flt, 9, 0), flrm = /*#__PURE__*/ hMap(flt, 9, 1);
|
|
134
|
+
// fixed distance map
|
|
135
|
+
var fdm = /*#__PURE__*/ hMap(fdt, 5, 0), fdrm = /*#__PURE__*/ hMap(fdt, 5, 1);
|
|
136
|
+
// find max of array
|
|
137
|
+
var max = function (a) {
|
|
138
|
+
var m = a[0];
|
|
139
|
+
for (var i = 1; i < a.length; ++i) {
|
|
140
|
+
if (a[i] > m)
|
|
141
|
+
m = a[i];
|
|
142
|
+
}
|
|
143
|
+
return m;
|
|
144
|
+
};
|
|
145
|
+
// read d, starting at bit p and mask with m
|
|
146
|
+
var bits = function (d, p, m) {
|
|
147
|
+
var o = (p / 8) | 0;
|
|
148
|
+
return ((d[o] | (d[o + 1] << 8)) >> (p & 7)) & m;
|
|
149
|
+
};
|
|
150
|
+
// read d, starting at bit p continuing for at least 16 bits
|
|
151
|
+
var bits16 = function (d, p) {
|
|
152
|
+
var o = (p / 8) | 0;
|
|
153
|
+
return ((d[o] | (d[o + 1] << 8) | (d[o + 2] << 16)) >> (p & 7));
|
|
154
|
+
};
|
|
155
|
+
// get end of byte
|
|
156
|
+
var shft = function (p) { return ((p + 7) / 8) | 0; };
|
|
157
|
+
// typed array slice - allows garbage collector to free original reference,
|
|
158
|
+
// while being more compatible than .slice
|
|
159
|
+
var slc = function (v, s, e) {
|
|
160
|
+
if (s == null || s < 0)
|
|
161
|
+
s = 0;
|
|
162
|
+
if (e == null || e > v.length)
|
|
163
|
+
e = v.length;
|
|
164
|
+
// can't use .constructor in case user-supplied
|
|
165
|
+
return new u8(v.subarray(s, e));
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Codes for errors generated within this library
|
|
169
|
+
*/
|
|
170
|
+
export var FlateErrorCode = {
|
|
171
|
+
UnexpectedEOF: 0,
|
|
172
|
+
InvalidBlockType: 1,
|
|
173
|
+
InvalidLengthLiteral: 2,
|
|
174
|
+
InvalidDistance: 3,
|
|
175
|
+
StreamFinished: 4,
|
|
176
|
+
NoStreamHandler: 5,
|
|
177
|
+
InvalidHeader: 6,
|
|
178
|
+
NoCallback: 7,
|
|
179
|
+
InvalidUTF8: 8,
|
|
180
|
+
ExtraFieldTooLong: 9,
|
|
181
|
+
InvalidDate: 10,
|
|
182
|
+
FilenameTooLong: 11,
|
|
183
|
+
StreamFinishing: 12,
|
|
184
|
+
InvalidZipData: 13,
|
|
185
|
+
UnknownCompressionMethod: 14
|
|
186
|
+
};
|
|
187
|
+
// error codes
|
|
188
|
+
var ec = [
|
|
189
|
+
'unexpected EOF',
|
|
190
|
+
'invalid block type',
|
|
191
|
+
'invalid length/literal',
|
|
192
|
+
'invalid distance',
|
|
193
|
+
'stream finished',
|
|
194
|
+
'no stream handler',
|
|
195
|
+
,
|
|
196
|
+
'no callback',
|
|
197
|
+
'invalid UTF-8 data',
|
|
198
|
+
'extra field too long',
|
|
199
|
+
'date not in range 1980-2099',
|
|
200
|
+
'filename too long',
|
|
201
|
+
'stream finishing',
|
|
202
|
+
'invalid zip data'
|
|
203
|
+
// determined by unknown compression method
|
|
204
|
+
];
|
|
205
|
+
;
|
|
206
|
+
var err = function (ind, msg, nt) {
|
|
207
|
+
var e = new Error(msg || ec[ind]);
|
|
208
|
+
e.code = ind;
|
|
209
|
+
if (Error.captureStackTrace)
|
|
210
|
+
Error.captureStackTrace(e, err);
|
|
211
|
+
if (!nt)
|
|
212
|
+
throw e;
|
|
213
|
+
return e;
|
|
214
|
+
};
|
|
215
|
+
// expands raw DEFLATE data
|
|
216
|
+
var inflt = function (dat, st, buf, dict) {
|
|
217
|
+
// source length dict length
|
|
218
|
+
var sl = dat.length, dl = dict ? dict.length : 0;
|
|
219
|
+
if (!sl || st.f && !st.l)
|
|
220
|
+
return buf || new u8(0);
|
|
221
|
+
var noBuf = !buf;
|
|
222
|
+
// have to estimate size
|
|
223
|
+
var resize = noBuf || st.i != 2;
|
|
224
|
+
// no state
|
|
225
|
+
var noSt = st.i;
|
|
226
|
+
// Assumes roughly 33% compression ratio average
|
|
227
|
+
if (noBuf)
|
|
228
|
+
buf = new u8(sl * 3);
|
|
229
|
+
// ensure buffer can fit at least l elements
|
|
230
|
+
var cbuf = function (l) {
|
|
231
|
+
var bl = buf.length;
|
|
232
|
+
// need to increase size to fit
|
|
233
|
+
if (l > bl) {
|
|
234
|
+
// Double or set to necessary, whichever is greater
|
|
235
|
+
var nbuf = new u8(Math.max(bl * 2, l));
|
|
236
|
+
nbuf.set(buf);
|
|
237
|
+
buf = nbuf;
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
// last chunk bitpos bytes
|
|
241
|
+
var final = st.f || 0, pos = st.p || 0, bt = st.b || 0, lm = st.l, dm = st.d, lbt = st.m, dbt = st.n;
|
|
242
|
+
// total bits
|
|
243
|
+
var tbts = sl * 8;
|
|
244
|
+
do {
|
|
245
|
+
if (!lm) {
|
|
246
|
+
// BFINAL - this is only 1 when last chunk is next
|
|
247
|
+
final = bits(dat, pos, 1);
|
|
248
|
+
// type: 0 = no compression, 1 = fixed huffman, 2 = dynamic huffman
|
|
249
|
+
var type = bits(dat, pos + 1, 3);
|
|
250
|
+
pos += 3;
|
|
251
|
+
if (!type) {
|
|
252
|
+
// go to end of byte boundary
|
|
253
|
+
var s = shft(pos) + 4, l = dat[s - 4] | (dat[s - 3] << 8), t = s + l;
|
|
254
|
+
if (t > sl) {
|
|
255
|
+
if (noSt)
|
|
256
|
+
err(0);
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
// ensure size
|
|
260
|
+
if (resize)
|
|
261
|
+
cbuf(bt + l);
|
|
262
|
+
// Copy over uncompressed data
|
|
263
|
+
buf.set(dat.subarray(s, t), bt);
|
|
264
|
+
// Get new bitpos, update byte count
|
|
265
|
+
st.b = bt += l, st.p = pos = t * 8, st.f = final;
|
|
266
|
+
continue;
|
|
267
|
+
}
|
|
268
|
+
else if (type == 1)
|
|
269
|
+
lm = flrm, dm = fdrm, lbt = 9, dbt = 5;
|
|
270
|
+
else if (type == 2) {
|
|
271
|
+
// literal lengths
|
|
272
|
+
var hLit = bits(dat, pos, 31) + 257, hcLen = bits(dat, pos + 10, 15) + 4;
|
|
273
|
+
var tl = hLit + bits(dat, pos + 5, 31) + 1;
|
|
274
|
+
pos += 14;
|
|
275
|
+
// length+distance tree
|
|
276
|
+
var ldt = new u8(tl);
|
|
277
|
+
// code length tree
|
|
278
|
+
var clt = new u8(19);
|
|
279
|
+
for (var i = 0; i < hcLen; ++i) {
|
|
280
|
+
// use index map to get real code
|
|
281
|
+
clt[clim[i]] = bits(dat, pos + i * 3, 7);
|
|
282
|
+
}
|
|
283
|
+
pos += hcLen * 3;
|
|
284
|
+
// code lengths bits
|
|
285
|
+
var clb = max(clt), clbmsk = (1 << clb) - 1;
|
|
286
|
+
// code lengths map
|
|
287
|
+
var clm = hMap(clt, clb, 1);
|
|
288
|
+
for (var i = 0; i < tl;) {
|
|
289
|
+
var r = clm[bits(dat, pos, clbmsk)];
|
|
290
|
+
// bits read
|
|
291
|
+
pos += r & 15;
|
|
292
|
+
// symbol
|
|
293
|
+
var s = r >> 4;
|
|
294
|
+
// code length to copy
|
|
295
|
+
if (s < 16) {
|
|
296
|
+
ldt[i++] = s;
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
// copy count
|
|
300
|
+
var c = 0, n = 0;
|
|
301
|
+
if (s == 16)
|
|
302
|
+
n = 3 + bits(dat, pos, 3), pos += 2, c = ldt[i - 1];
|
|
303
|
+
else if (s == 17)
|
|
304
|
+
n = 3 + bits(dat, pos, 7), pos += 3;
|
|
305
|
+
else if (s == 18)
|
|
306
|
+
n = 11 + bits(dat, pos, 127), pos += 7;
|
|
307
|
+
while (n--)
|
|
308
|
+
ldt[i++] = c;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
// length tree distance tree
|
|
312
|
+
var lt = ldt.subarray(0, hLit), dt = ldt.subarray(hLit);
|
|
313
|
+
// max length bits
|
|
314
|
+
lbt = max(lt);
|
|
315
|
+
// max dist bits
|
|
316
|
+
dbt = max(dt);
|
|
317
|
+
lm = hMap(lt, lbt, 1);
|
|
318
|
+
dm = hMap(dt, dbt, 1);
|
|
319
|
+
}
|
|
320
|
+
else
|
|
321
|
+
err(1);
|
|
322
|
+
if (pos > tbts) {
|
|
323
|
+
if (noSt)
|
|
324
|
+
err(0);
|
|
325
|
+
break;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
// Make sure the buffer can hold this + the largest possible addition
|
|
329
|
+
// Maximum chunk size (practically, theoretically infinite) is 2^17
|
|
330
|
+
if (resize)
|
|
331
|
+
cbuf(bt + 131072);
|
|
332
|
+
var lms = (1 << lbt) - 1, dms = (1 << dbt) - 1;
|
|
333
|
+
var lpos = pos;
|
|
334
|
+
for (;; lpos = pos) {
|
|
335
|
+
// bits read, code
|
|
336
|
+
var c = lm[bits16(dat, pos) & lms], sym = c >> 4;
|
|
337
|
+
pos += c & 15;
|
|
338
|
+
if (pos > tbts) {
|
|
339
|
+
if (noSt)
|
|
340
|
+
err(0);
|
|
341
|
+
break;
|
|
342
|
+
}
|
|
343
|
+
if (!c)
|
|
344
|
+
err(2);
|
|
345
|
+
if (sym < 256)
|
|
346
|
+
buf[bt++] = sym;
|
|
347
|
+
else if (sym == 256) {
|
|
348
|
+
lpos = pos, lm = null;
|
|
349
|
+
break;
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
var add = sym - 254;
|
|
353
|
+
// no extra bits needed if less
|
|
354
|
+
if (sym > 264) {
|
|
355
|
+
// index
|
|
356
|
+
var i = sym - 257, b = fleb[i];
|
|
357
|
+
add = bits(dat, pos, (1 << b) - 1) + fl[i];
|
|
358
|
+
pos += b;
|
|
359
|
+
}
|
|
360
|
+
// dist
|
|
361
|
+
var d = dm[bits16(dat, pos) & dms], dsym = d >> 4;
|
|
362
|
+
if (!d)
|
|
363
|
+
err(3);
|
|
364
|
+
pos += d & 15;
|
|
365
|
+
var dt = fd[dsym];
|
|
366
|
+
if (dsym > 3) {
|
|
367
|
+
var b = fdeb[dsym];
|
|
368
|
+
dt += bits16(dat, pos) & (1 << b) - 1, pos += b;
|
|
369
|
+
}
|
|
370
|
+
if (pos > tbts) {
|
|
371
|
+
if (noSt)
|
|
372
|
+
err(0);
|
|
373
|
+
break;
|
|
374
|
+
}
|
|
375
|
+
if (resize)
|
|
376
|
+
cbuf(bt + 131072);
|
|
377
|
+
var end = bt + add;
|
|
378
|
+
if (bt < dt) {
|
|
379
|
+
var shift = dl - dt, dend = Math.min(dt, end);
|
|
380
|
+
if (shift + bt < 0)
|
|
381
|
+
err(3);
|
|
382
|
+
for (; bt < dend; ++bt)
|
|
383
|
+
buf[bt] = dict[shift + bt];
|
|
384
|
+
}
|
|
385
|
+
for (; bt < end; ++bt)
|
|
386
|
+
buf[bt] = buf[bt - dt];
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
st.l = lm, st.p = lpos, st.b = bt, st.f = final;
|
|
390
|
+
if (lm)
|
|
391
|
+
final = 1, st.m = lbt, st.d = dm, st.n = dbt;
|
|
392
|
+
} while (!final);
|
|
393
|
+
// don't reallocate for streams or user buffers
|
|
394
|
+
return bt != buf.length && noBuf ? slc(buf, 0, bt) : buf.subarray(0, bt);
|
|
395
|
+
};
|
|
396
|
+
// starting at p, write the minimum number of bits that can hold v to d
|
|
397
|
+
var wbits = function (d, p, v) {
|
|
398
|
+
v <<= p & 7;
|
|
399
|
+
var o = (p / 8) | 0;
|
|
400
|
+
d[o] |= v;
|
|
401
|
+
d[o + 1] |= v >> 8;
|
|
402
|
+
};
|
|
403
|
+
// starting at p, write the minimum number of bits (>8) that can hold v to d
|
|
404
|
+
var wbits16 = function (d, p, v) {
|
|
405
|
+
v <<= p & 7;
|
|
406
|
+
var o = (p / 8) | 0;
|
|
407
|
+
d[o] |= v;
|
|
408
|
+
d[o + 1] |= v >> 8;
|
|
409
|
+
d[o + 2] |= v >> 16;
|
|
410
|
+
};
|
|
411
|
+
// creates code lengths from a frequency table
|
|
412
|
+
var hTree = function (d, mb) {
|
|
413
|
+
// Need extra info to make a tree
|
|
414
|
+
var t = [];
|
|
415
|
+
for (var i = 0; i < d.length; ++i) {
|
|
416
|
+
if (d[i])
|
|
417
|
+
t.push({ s: i, f: d[i] });
|
|
418
|
+
}
|
|
419
|
+
var s = t.length;
|
|
420
|
+
var t2 = t.slice();
|
|
421
|
+
if (!s)
|
|
422
|
+
return { t: et, l: 0 };
|
|
423
|
+
if (s == 1) {
|
|
424
|
+
var v = new u8(t[0].s + 1);
|
|
425
|
+
v[t[0].s] = 1;
|
|
426
|
+
return { t: v, l: 1 };
|
|
427
|
+
}
|
|
428
|
+
t.sort(function (a, b) { return a.f - b.f; });
|
|
429
|
+
// after i2 reaches last ind, will be stopped
|
|
430
|
+
// freq must be greater than largest possible number of symbols
|
|
431
|
+
t.push({ s: -1, f: 25001 });
|
|
432
|
+
var l = t[0], r = t[1], i0 = 0, i1 = 1, i2 = 2;
|
|
433
|
+
t[0] = { s: -1, f: l.f + r.f, l: l, r: r };
|
|
434
|
+
// efficient algorithm from UZIP.js
|
|
435
|
+
// i0 is lookbehind, i2 is lookahead - after processing two low-freq
|
|
436
|
+
// symbols that combined have high freq, will start processing i2 (high-freq,
|
|
437
|
+
// non-composite) symbols instead
|
|
438
|
+
// see https://reddit.com/r/photopea/comments/ikekht/uzipjs_questions/
|
|
439
|
+
while (i1 != s - 1) {
|
|
440
|
+
l = t[t[i0].f < t[i2].f ? i0++ : i2++];
|
|
441
|
+
r = t[i0 != i1 && t[i0].f < t[i2].f ? i0++ : i2++];
|
|
442
|
+
t[i1++] = { s: -1, f: l.f + r.f, l: l, r: r };
|
|
443
|
+
}
|
|
444
|
+
var maxSym = t2[0].s;
|
|
445
|
+
for (var i = 1; i < s; ++i) {
|
|
446
|
+
if (t2[i].s > maxSym)
|
|
447
|
+
maxSym = t2[i].s;
|
|
448
|
+
}
|
|
449
|
+
// code lengths
|
|
450
|
+
var tr = new u16(maxSym + 1);
|
|
451
|
+
// max bits in tree
|
|
452
|
+
var mbt = ln(t[i1 - 1], tr, 0);
|
|
453
|
+
if (mbt > mb) {
|
|
454
|
+
// more algorithms from UZIP.js
|
|
455
|
+
// TODO: find out how this code works (debt)
|
|
456
|
+
// ind debt
|
|
457
|
+
var i = 0, dt = 0;
|
|
458
|
+
// left cost
|
|
459
|
+
var lft = mbt - mb, cst = 1 << lft;
|
|
460
|
+
t2.sort(function (a, b) { return tr[b.s] - tr[a.s] || a.f - b.f; });
|
|
461
|
+
for (; i < s; ++i) {
|
|
462
|
+
var i2_1 = t2[i].s;
|
|
463
|
+
if (tr[i2_1] > mb) {
|
|
464
|
+
dt += cst - (1 << (mbt - tr[i2_1]));
|
|
465
|
+
tr[i2_1] = mb;
|
|
466
|
+
}
|
|
467
|
+
else
|
|
468
|
+
break;
|
|
469
|
+
}
|
|
470
|
+
dt >>= lft;
|
|
471
|
+
while (dt > 0) {
|
|
472
|
+
var i2_2 = t2[i].s;
|
|
473
|
+
if (tr[i2_2] < mb)
|
|
474
|
+
dt -= 1 << (mb - tr[i2_2]++ - 1);
|
|
475
|
+
else
|
|
476
|
+
++i;
|
|
477
|
+
}
|
|
478
|
+
for (; i >= 0 && dt; --i) {
|
|
479
|
+
var i2_3 = t2[i].s;
|
|
480
|
+
if (tr[i2_3] == mb) {
|
|
481
|
+
--tr[i2_3];
|
|
482
|
+
++dt;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
mbt = mb;
|
|
486
|
+
}
|
|
487
|
+
return { t: new u8(tr), l: mbt };
|
|
488
|
+
};
|
|
489
|
+
// get the max length and assign length codes
|
|
490
|
+
var ln = function (n, l, d) {
|
|
491
|
+
return n.s == -1
|
|
492
|
+
? Math.max(ln(n.l, l, d + 1), ln(n.r, l, d + 1))
|
|
493
|
+
: (l[n.s] = d);
|
|
494
|
+
};
|
|
495
|
+
// length codes generation
|
|
496
|
+
var lc = function (c) {
|
|
497
|
+
var s = c.length;
|
|
498
|
+
// Note that the semicolon was intentional
|
|
499
|
+
while (s && !c[--s])
|
|
500
|
+
;
|
|
501
|
+
var cl = new u16(++s);
|
|
502
|
+
// ind num streak
|
|
503
|
+
var cli = 0, cln = c[0], cls = 1;
|
|
504
|
+
var w = function (v) { cl[cli++] = v; };
|
|
505
|
+
for (var i = 1; i <= s; ++i) {
|
|
506
|
+
if (c[i] == cln && i != s)
|
|
507
|
+
++cls;
|
|
508
|
+
else {
|
|
509
|
+
if (!cln && cls > 2) {
|
|
510
|
+
for (; cls > 138; cls -= 138)
|
|
511
|
+
w(32754);
|
|
512
|
+
if (cls > 2) {
|
|
513
|
+
w(cls > 10 ? ((cls - 11) << 5) | 28690 : ((cls - 3) << 5) | 12305);
|
|
514
|
+
cls = 0;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
else if (cls > 3) {
|
|
518
|
+
w(cln), --cls;
|
|
519
|
+
for (; cls > 6; cls -= 6)
|
|
520
|
+
w(8304);
|
|
521
|
+
if (cls > 2)
|
|
522
|
+
w(((cls - 3) << 5) | 8208), cls = 0;
|
|
523
|
+
}
|
|
524
|
+
while (cls--)
|
|
525
|
+
w(cln);
|
|
526
|
+
cls = 1;
|
|
527
|
+
cln = c[i];
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
return { c: cl.subarray(0, cli), n: s };
|
|
531
|
+
};
|
|
532
|
+
// calculate the length of output from tree, code lengths
|
|
533
|
+
var clen = function (cf, cl) {
|
|
534
|
+
var l = 0;
|
|
535
|
+
for (var i = 0; i < cl.length; ++i)
|
|
536
|
+
l += cf[i] * cl[i];
|
|
537
|
+
return l;
|
|
538
|
+
};
|
|
539
|
+
// writes a fixed block
|
|
540
|
+
// returns the new bit pos
|
|
541
|
+
var wfblk = function (out, pos, dat) {
|
|
542
|
+
// no need to write 00 as type: TypedArray defaults to 0
|
|
543
|
+
var s = dat.length;
|
|
544
|
+
var o = shft(pos + 2);
|
|
545
|
+
out[o] = s & 255;
|
|
546
|
+
out[o + 1] = s >> 8;
|
|
547
|
+
out[o + 2] = out[o] ^ 255;
|
|
548
|
+
out[o + 3] = out[o + 1] ^ 255;
|
|
549
|
+
for (var i = 0; i < s; ++i)
|
|
550
|
+
out[o + i + 4] = dat[i];
|
|
551
|
+
return (o + 4 + s) * 8;
|
|
552
|
+
};
|
|
553
|
+
// writes a block
|
|
554
|
+
var wblk = function (dat, out, final, syms, lf, df, eb, li, bs, bl, p) {
|
|
555
|
+
wbits(out, p++, final);
|
|
556
|
+
++lf[256];
|
|
557
|
+
var _a = hTree(lf, 15), dlt = _a.t, mlb = _a.l;
|
|
558
|
+
var _b = hTree(df, 15), ddt = _b.t, mdb = _b.l;
|
|
559
|
+
var _c = lc(dlt), lclt = _c.c, nlc = _c.n;
|
|
560
|
+
var _d = lc(ddt), lcdt = _d.c, ndc = _d.n;
|
|
561
|
+
var lcfreq = new u16(19);
|
|
562
|
+
for (var i = 0; i < lclt.length; ++i)
|
|
563
|
+
++lcfreq[lclt[i] & 31];
|
|
564
|
+
for (var i = 0; i < lcdt.length; ++i)
|
|
565
|
+
++lcfreq[lcdt[i] & 31];
|
|
566
|
+
var _e = hTree(lcfreq, 7), lct = _e.t, mlcb = _e.l;
|
|
567
|
+
var nlcc = 19;
|
|
568
|
+
for (; nlcc > 4 && !lct[clim[nlcc - 1]]; --nlcc)
|
|
569
|
+
;
|
|
570
|
+
var flen = (bl + 5) << 3;
|
|
571
|
+
var ftlen = clen(lf, flt) + clen(df, fdt) + eb;
|
|
572
|
+
var dtlen = clen(lf, dlt) + clen(df, ddt) + eb + 14 + 3 * nlcc + clen(lcfreq, lct) + 2 * lcfreq[16] + 3 * lcfreq[17] + 7 * lcfreq[18];
|
|
573
|
+
if (bs >= 0 && flen <= ftlen && flen <= dtlen)
|
|
574
|
+
return wfblk(out, p, dat.subarray(bs, bs + bl));
|
|
575
|
+
var lm, ll, dm, dl;
|
|
576
|
+
wbits(out, p, 1 + (dtlen < ftlen)), p += 2;
|
|
577
|
+
if (dtlen < ftlen) {
|
|
578
|
+
lm = hMap(dlt, mlb, 0), ll = dlt, dm = hMap(ddt, mdb, 0), dl = ddt;
|
|
579
|
+
var llm = hMap(lct, mlcb, 0);
|
|
580
|
+
wbits(out, p, nlc - 257);
|
|
581
|
+
wbits(out, p + 5, ndc - 1);
|
|
582
|
+
wbits(out, p + 10, nlcc - 4);
|
|
583
|
+
p += 14;
|
|
584
|
+
for (var i = 0; i < nlcc; ++i)
|
|
585
|
+
wbits(out, p + 3 * i, lct[clim[i]]);
|
|
586
|
+
p += 3 * nlcc;
|
|
587
|
+
var lcts = [lclt, lcdt];
|
|
588
|
+
for (var it = 0; it < 2; ++it) {
|
|
589
|
+
var clct = lcts[it];
|
|
590
|
+
for (var i = 0; i < clct.length; ++i) {
|
|
591
|
+
var len = clct[i] & 31;
|
|
592
|
+
wbits(out, p, llm[len]), p += lct[len];
|
|
593
|
+
if (len > 15)
|
|
594
|
+
wbits(out, p, (clct[i] >> 5) & 127), p += clct[i] >> 12;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
else {
|
|
599
|
+
lm = flm, ll = flt, dm = fdm, dl = fdt;
|
|
600
|
+
}
|
|
601
|
+
for (var i = 0; i < li; ++i) {
|
|
602
|
+
var sym = syms[i];
|
|
603
|
+
if (sym > 255) {
|
|
604
|
+
var len = (sym >> 18) & 31;
|
|
605
|
+
wbits16(out, p, lm[len + 257]), p += ll[len + 257];
|
|
606
|
+
if (len > 7)
|
|
607
|
+
wbits(out, p, (sym >> 23) & 31), p += fleb[len];
|
|
608
|
+
var dst = sym & 31;
|
|
609
|
+
wbits16(out, p, dm[dst]), p += dl[dst];
|
|
610
|
+
if (dst > 3)
|
|
611
|
+
wbits16(out, p, (sym >> 5) & 8191), p += fdeb[dst];
|
|
612
|
+
}
|
|
613
|
+
else {
|
|
614
|
+
wbits16(out, p, lm[sym]), p += ll[sym];
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
wbits16(out, p, lm[256]);
|
|
618
|
+
return p + ll[256];
|
|
619
|
+
};
|
|
620
|
+
// deflate options (nice << 13) | chain
|
|
621
|
+
var deo = /*#__PURE__*/ new i32([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]);
|
|
622
|
+
// empty
|
|
623
|
+
var et = /*#__PURE__*/ new u8(0);
|
|
624
|
+
// compresses data into a raw DEFLATE buffer
|
|
625
|
+
var dflt = function (dat, lvl, plvl, pre, post, st) {
|
|
626
|
+
var s = st.z || dat.length;
|
|
627
|
+
var o = new u8(pre + s + 5 * (1 + Math.ceil(s / 7000)) + post);
|
|
628
|
+
// writing to this writes to the output buffer
|
|
629
|
+
var w = o.subarray(pre, o.length - post);
|
|
630
|
+
var lst = st.l;
|
|
631
|
+
var pos = (st.r || 0) & 7;
|
|
632
|
+
if (lvl) {
|
|
633
|
+
if (pos)
|
|
634
|
+
w[0] = st.r >> 3;
|
|
635
|
+
var opt = deo[lvl - 1];
|
|
636
|
+
var n = opt >> 13, c = opt & 8191;
|
|
637
|
+
var msk_1 = (1 << plvl) - 1;
|
|
638
|
+
// prev 2-byte val map curr 2-byte val map
|
|
639
|
+
var prev = st.p || new u16(32768), head = st.h || new u16(msk_1 + 1);
|
|
640
|
+
var bs1_1 = Math.ceil(plvl / 3), bs2_1 = 2 * bs1_1;
|
|
641
|
+
var hsh = function (i) { return (dat[i] ^ (dat[i + 1] << bs1_1) ^ (dat[i + 2] << bs2_1)) & msk_1; };
|
|
642
|
+
// 24576 is an arbitrary number of maximum symbols per block
|
|
643
|
+
// 424 buffer for last block
|
|
644
|
+
var syms = new i32(25000);
|
|
645
|
+
// length/literal freq distance freq
|
|
646
|
+
var lf = new u16(288), df = new u16(32);
|
|
647
|
+
// l/lcnt exbits index l/lind waitdx blkpos
|
|
648
|
+
var lc_1 = 0, eb = 0, i = st.i || 0, li = 0, wi = st.w || 0, bs = 0;
|
|
649
|
+
for (; i + 2 < s; ++i) {
|
|
650
|
+
// hash value
|
|
651
|
+
var hv = hsh(i);
|
|
652
|
+
// index mod 32768 previous index mod
|
|
653
|
+
var imod = i & 32767, pimod = head[hv];
|
|
654
|
+
prev[imod] = pimod;
|
|
655
|
+
head[hv] = imod;
|
|
656
|
+
// We always should modify head and prev, but only add symbols if
|
|
657
|
+
// this data is not yet processed ("wait" for wait index)
|
|
658
|
+
if (wi <= i) {
|
|
659
|
+
// bytes remaining
|
|
660
|
+
var rem = s - i;
|
|
661
|
+
if ((lc_1 > 7000 || li > 24576) && (rem > 423 || !lst)) {
|
|
662
|
+
pos = wblk(dat, w, 0, syms, lf, df, eb, li, bs, i - bs, pos);
|
|
663
|
+
li = lc_1 = eb = 0, bs = i;
|
|
664
|
+
for (var j = 0; j < 286; ++j)
|
|
665
|
+
lf[j] = 0;
|
|
666
|
+
for (var j = 0; j < 30; ++j)
|
|
667
|
+
df[j] = 0;
|
|
668
|
+
}
|
|
669
|
+
// len dist chain
|
|
670
|
+
var l = 2, d = 0, ch_1 = c, dif = imod - pimod & 32767;
|
|
671
|
+
if (rem > 2 && hv == hsh(i - dif)) {
|
|
672
|
+
var maxn = Math.min(n, rem) - 1;
|
|
673
|
+
var maxd = Math.min(32767, i);
|
|
674
|
+
// max possible length
|
|
675
|
+
// not capped at dif because decompressors implement "rolling" index population
|
|
676
|
+
var ml = Math.min(258, rem);
|
|
677
|
+
while (dif <= maxd && --ch_1 && imod != pimod) {
|
|
678
|
+
if (dat[i + l] == dat[i + l - dif]) {
|
|
679
|
+
var nl = 0;
|
|
680
|
+
for (; nl < ml && dat[i + nl] == dat[i + nl - dif]; ++nl)
|
|
681
|
+
;
|
|
682
|
+
if (nl > l) {
|
|
683
|
+
l = nl, d = dif;
|
|
684
|
+
// break out early when we reach "nice" (we are satisfied enough)
|
|
685
|
+
if (nl > maxn)
|
|
686
|
+
break;
|
|
687
|
+
// now, find the rarest 2-byte sequence within this
|
|
688
|
+
// length of literals and search for that instead.
|
|
689
|
+
// Much faster than just using the start
|
|
690
|
+
var mmd = Math.min(dif, nl - 2);
|
|
691
|
+
var md = 0;
|
|
692
|
+
for (var j = 0; j < mmd; ++j) {
|
|
693
|
+
var ti = i - dif + j & 32767;
|
|
694
|
+
var pti = prev[ti];
|
|
695
|
+
var cd = ti - pti & 32767;
|
|
696
|
+
if (cd > md)
|
|
697
|
+
md = cd, pimod = ti;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
// check the previous match
|
|
702
|
+
imod = pimod, pimod = prev[imod];
|
|
703
|
+
dif += imod - pimod & 32767;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
// d will be nonzero only when a match was found
|
|
707
|
+
if (d) {
|
|
708
|
+
// store both dist and len data in one int32
|
|
709
|
+
// Make sure this is recognized as a len/dist with 28th bit (2^28)
|
|
710
|
+
syms[li++] = 268435456 | (revfl[l] << 18) | revfd[d];
|
|
711
|
+
var lin = revfl[l] & 31, din = revfd[d] & 31;
|
|
712
|
+
eb += fleb[lin] + fdeb[din];
|
|
713
|
+
++lf[257 + lin];
|
|
714
|
+
++df[din];
|
|
715
|
+
wi = i + l;
|
|
716
|
+
++lc_1;
|
|
717
|
+
}
|
|
718
|
+
else {
|
|
719
|
+
syms[li++] = dat[i];
|
|
720
|
+
++lf[dat[i]];
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
for (i = Math.max(i, wi); i < s; ++i) {
|
|
725
|
+
syms[li++] = dat[i];
|
|
726
|
+
++lf[dat[i]];
|
|
727
|
+
}
|
|
728
|
+
pos = wblk(dat, w, lst, syms, lf, df, eb, li, bs, i - bs, pos);
|
|
729
|
+
if (!lst) {
|
|
730
|
+
st.r = (pos & 7) | w[(pos / 8) | 0] << 3;
|
|
731
|
+
// shft(pos) now 1 less if pos & 7 != 0
|
|
732
|
+
pos -= 7;
|
|
733
|
+
st.h = head, st.p = prev, st.i = i, st.w = wi;
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
else {
|
|
737
|
+
for (var i = st.w || 0; i < s + lst; i += 65535) {
|
|
738
|
+
// end
|
|
739
|
+
var e = i + 65535;
|
|
740
|
+
if (e >= s) {
|
|
741
|
+
// write final block
|
|
742
|
+
w[(pos / 8) | 0] = lst;
|
|
743
|
+
e = s;
|
|
744
|
+
}
|
|
745
|
+
pos = wfblk(w, pos + 1, dat.subarray(i, e));
|
|
746
|
+
}
|
|
747
|
+
st.i = s;
|
|
748
|
+
}
|
|
749
|
+
return slc(o, 0, pre + shft(pos) + post);
|
|
750
|
+
};
|
|
751
|
+
// CRC32 table
|
|
752
|
+
var crct = /*#__PURE__*/ (function () {
|
|
753
|
+
var t = new Int32Array(256);
|
|
754
|
+
for (var i = 0; i < 256; ++i) {
|
|
755
|
+
var c = i, k = 9;
|
|
756
|
+
while (--k)
|
|
757
|
+
c = ((c & 1) && -306674912) ^ (c >>> 1);
|
|
758
|
+
t[i] = c;
|
|
759
|
+
}
|
|
760
|
+
return t;
|
|
761
|
+
})();
|
|
762
|
+
// CRC32
|
|
763
|
+
var crc = function () {
|
|
764
|
+
var c = -1;
|
|
765
|
+
return {
|
|
766
|
+
p: function (d) {
|
|
767
|
+
// closures have awful performance
|
|
768
|
+
var cr = c;
|
|
769
|
+
for (var i = 0; i < d.length; ++i)
|
|
770
|
+
cr = crct[(cr & 255) ^ d[i]] ^ (cr >>> 8);
|
|
771
|
+
c = cr;
|
|
772
|
+
},
|
|
773
|
+
d: function () { return ~c; }
|
|
774
|
+
};
|
|
775
|
+
};
|
|
776
|
+
// Adler32
|
|
777
|
+
var adler = function () {
|
|
778
|
+
var a = 1, b = 0;
|
|
779
|
+
return {
|
|
780
|
+
p: function (d) {
|
|
781
|
+
// closures have awful performance
|
|
782
|
+
var n = a, m = b;
|
|
783
|
+
var l = d.length | 0;
|
|
784
|
+
for (var i = 0; i != l;) {
|
|
785
|
+
var e = Math.min(i + 2655, l);
|
|
786
|
+
for (; i < e; ++i)
|
|
787
|
+
m += n += d[i];
|
|
788
|
+
n = (n & 65535) + 15 * (n >> 16), m = (m & 65535) + 15 * (m >> 16);
|
|
789
|
+
}
|
|
790
|
+
a = n, b = m;
|
|
791
|
+
},
|
|
792
|
+
d: function () {
|
|
793
|
+
a %= 65521, b %= 65521;
|
|
794
|
+
return (a & 255) << 24 | (a & 0xFF00) << 8 | (b & 255) << 8 | (b >> 8);
|
|
795
|
+
}
|
|
796
|
+
};
|
|
797
|
+
};
|
|
798
|
+
;
|
|
799
|
+
// deflate with opts
|
|
800
|
+
var dopt = function (dat, opt, pre, post, st) {
|
|
801
|
+
if (!st) {
|
|
802
|
+
st = { l: 1 };
|
|
803
|
+
if (opt.dictionary) {
|
|
804
|
+
var dict = opt.dictionary.subarray(-32768);
|
|
805
|
+
var newDat = new u8(dict.length + dat.length);
|
|
806
|
+
newDat.set(dict);
|
|
807
|
+
newDat.set(dat, dict.length);
|
|
808
|
+
dat = newDat;
|
|
809
|
+
st.w = dict.length;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? (st.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : 20) : (12 + opt.mem), pre, post, st);
|
|
813
|
+
};
|
|
814
|
+
// Walmart object spread
|
|
815
|
+
var mrg = function (a, b) {
|
|
816
|
+
var o = {};
|
|
817
|
+
for (var k in a)
|
|
818
|
+
o[k] = a[k];
|
|
819
|
+
for (var k in b)
|
|
820
|
+
o[k] = b[k];
|
|
821
|
+
return o;
|
|
822
|
+
};
|
|
823
|
+
// worker clone
|
|
824
|
+
// This is possibly the craziest part of the entire codebase, despite how simple it may seem.
|
|
825
|
+
// The only parameter to this function is a closure that returns an array of variables outside of the function scope.
|
|
826
|
+
// We're going to try to figure out the variable names used in the closure as strings because that is crucial for workerization.
|
|
827
|
+
// We will return an object mapping of true variable name to value (basically, the current scope as a JS object).
|
|
828
|
+
// The reason we can't just use the original variable names is minifiers mangling the toplevel scope.
|
|
829
|
+
// This took me three weeks to figure out how to do.
|
|
830
|
+
var wcln = function (fn, fnStr, td) {
|
|
831
|
+
var dt = fn();
|
|
832
|
+
var st = fn.toString();
|
|
833
|
+
var ks = st.slice(st.indexOf('[') + 1, st.lastIndexOf(']')).replace(/\s+/g, '').split(',');
|
|
834
|
+
for (var i = 0; i < dt.length; ++i) {
|
|
835
|
+
var v = dt[i], k = ks[i];
|
|
836
|
+
if (typeof v == 'function') {
|
|
837
|
+
fnStr += ';' + k + '=';
|
|
838
|
+
var st_1 = v.toString();
|
|
839
|
+
if (v.prototype) {
|
|
840
|
+
// for global objects
|
|
841
|
+
if (st_1.indexOf('[native code]') != -1) {
|
|
842
|
+
var spInd = st_1.indexOf(' ', 8) + 1;
|
|
843
|
+
fnStr += st_1.slice(spInd, st_1.indexOf('(', spInd));
|
|
844
|
+
}
|
|
845
|
+
else {
|
|
846
|
+
fnStr += st_1;
|
|
847
|
+
for (var t in v.prototype)
|
|
848
|
+
fnStr += ';' + k + '.prototype.' + t + '=' + v.prototype[t].toString();
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
else
|
|
852
|
+
fnStr += st_1;
|
|
853
|
+
}
|
|
854
|
+
else
|
|
855
|
+
td[k] = v;
|
|
856
|
+
}
|
|
857
|
+
return fnStr;
|
|
858
|
+
};
|
|
859
|
+
var ch = [];
|
|
860
|
+
// clone bufs
|
|
861
|
+
var cbfs = function (v) {
|
|
862
|
+
var tl = [];
|
|
863
|
+
for (var k in v) {
|
|
864
|
+
if (v[k].buffer) {
|
|
865
|
+
tl.push((v[k] = new v[k].constructor(v[k])).buffer);
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
return tl;
|
|
869
|
+
};
|
|
870
|
+
// use a worker to execute code
|
|
871
|
+
var wrkr = function (fns, init, id, cb) {
|
|
872
|
+
if (!ch[id]) {
|
|
873
|
+
var fnStr = '', td_1 = {}, m = fns.length - 1;
|
|
874
|
+
for (var i = 0; i < m; ++i)
|
|
875
|
+
fnStr = wcln(fns[i], fnStr, td_1);
|
|
876
|
+
ch[id] = { c: wcln(fns[m], fnStr, td_1), e: td_1 };
|
|
877
|
+
}
|
|
878
|
+
var td = mrg({}, ch[id].e);
|
|
879
|
+
return wk(ch[id].c + ';onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage=' + init.toString() + '}', id, td, cbfs(td), cb);
|
|
880
|
+
};
|
|
881
|
+
// base async inflate fn
|
|
882
|
+
var bInflt = function () { return [u8, u16, i32, fleb, fdeb, clim, fl, fd, flrm, fdrm, rev, ec, hMap, max, bits, bits16, shft, slc, err, inflt, inflateSync, pbf, gopt]; };
|
|
883
|
+
var bDflt = function () { return [u8, u16, i32, fleb, fdeb, clim, revfl, revfd, flm, flt, fdm, fdt, rev, deo, et, hMap, wbits, wbits16, hTree, ln, lc, clen, wfblk, wblk, shft, slc, dflt, dopt, deflateSync, pbf]; };
|
|
884
|
+
// gzip extra
|
|
885
|
+
var gze = function () { return [gzh, gzhl, wbytes, crc, crct]; };
|
|
886
|
+
// gunzip extra
|
|
887
|
+
var guze = function () { return [gzs, gzl]; };
|
|
888
|
+
// zlib extra
|
|
889
|
+
var zle = function () { return [zlh, wbytes, adler]; };
|
|
890
|
+
// unzlib extra
|
|
891
|
+
var zule = function () { return [zls]; };
|
|
892
|
+
// post buf
|
|
893
|
+
var pbf = function (msg) { return postMessage(msg, [msg.buffer]); };
|
|
894
|
+
// get opts
|
|
895
|
+
var gopt = function (o) { return o && {
|
|
896
|
+
out: o.size && new u8(o.size),
|
|
897
|
+
dictionary: o.dictionary
|
|
898
|
+
}; };
|
|
899
|
+
// async helper
|
|
900
|
+
var cbify = function (dat, opts, fns, init, id, cb) {
|
|
901
|
+
var w = wrkr(fns, init, id, function (err, dat) {
|
|
902
|
+
w.terminate();
|
|
903
|
+
cb(err, dat);
|
|
904
|
+
});
|
|
905
|
+
w.postMessage([dat, opts], opts.consume ? [dat.buffer] : []);
|
|
906
|
+
return function () { w.terminate(); };
|
|
907
|
+
};
|
|
908
|
+
// auto stream
|
|
909
|
+
var astrm = function (strm) {
|
|
910
|
+
strm.ondata = function (dat, final) { return postMessage([dat, final], [dat.buffer]); };
|
|
911
|
+
return function (ev) {
|
|
912
|
+
if (ev.data.length) {
|
|
913
|
+
strm.push(ev.data[0], ev.data[1]);
|
|
914
|
+
postMessage([ev.data[0].length]);
|
|
915
|
+
}
|
|
916
|
+
else
|
|
917
|
+
strm.flush();
|
|
918
|
+
};
|
|
919
|
+
};
|
|
920
|
+
// async stream attach
|
|
921
|
+
var astrmify = function (fns, strm, opts, init, id, flush, ext) {
|
|
922
|
+
var t;
|
|
923
|
+
var w = wrkr(fns, init, id, function (err, dat) {
|
|
924
|
+
if (err)
|
|
925
|
+
w.terminate(), strm.ondata.call(strm, err);
|
|
926
|
+
else if (!Array.isArray(dat))
|
|
927
|
+
ext(dat);
|
|
928
|
+
else if (dat.length == 1) {
|
|
929
|
+
strm.queuedSize -= dat[0];
|
|
930
|
+
if (strm.ondrain)
|
|
931
|
+
strm.ondrain(dat[0]);
|
|
932
|
+
}
|
|
933
|
+
else {
|
|
934
|
+
if (dat[1])
|
|
935
|
+
w.terminate();
|
|
936
|
+
strm.ondata.call(strm, err, dat[0], dat[1]);
|
|
937
|
+
}
|
|
938
|
+
});
|
|
939
|
+
w.postMessage(opts);
|
|
940
|
+
strm.queuedSize = 0;
|
|
941
|
+
strm.push = function (d, f) {
|
|
942
|
+
if (!strm.ondata)
|
|
943
|
+
err(5);
|
|
944
|
+
if (t)
|
|
945
|
+
strm.ondata(err(4, 0, 1), null, !!f);
|
|
946
|
+
strm.queuedSize += d.length;
|
|
947
|
+
w.postMessage([d, t = f], [d.buffer]);
|
|
948
|
+
};
|
|
949
|
+
strm.terminate = function () { w.terminate(); };
|
|
950
|
+
if (flush) {
|
|
951
|
+
strm.flush = function () { w.postMessage([]); };
|
|
952
|
+
}
|
|
953
|
+
};
|
|
954
|
+
// read 2 bytes
|
|
955
|
+
var b2 = function (d, b) { return d[b] | (d[b + 1] << 8); };
|
|
956
|
+
// read 4 bytes
|
|
957
|
+
var b4 = function (d, b) { return (d[b] | (d[b + 1] << 8) | (d[b + 2] << 16) | (d[b + 3] << 24)) >>> 0; };
|
|
958
|
+
var b8 = function (d, b) { return b4(d, b) + (b4(d, b + 4) * 4294967296); };
|
|
959
|
+
// write bytes
|
|
960
|
+
var wbytes = function (d, b, v) {
|
|
961
|
+
for (; v; ++b)
|
|
962
|
+
d[b] = v, v >>>= 8;
|
|
963
|
+
};
|
|
964
|
+
// gzip header
|
|
965
|
+
var gzh = function (c, o) {
|
|
966
|
+
var fn = o.filename;
|
|
967
|
+
c[0] = 31, c[1] = 139, c[2] = 8, c[8] = o.level < 2 ? 4 : o.level == 9 ? 2 : 0, c[9] = 3; // assume Unix
|
|
968
|
+
if (o.mtime != 0)
|
|
969
|
+
wbytes(c, 4, Math.floor(new Date(o.mtime || Date.now()) / 1000));
|
|
970
|
+
if (fn) {
|
|
971
|
+
c[3] = 8;
|
|
972
|
+
for (var i = 0; i <= fn.length; ++i)
|
|
973
|
+
c[i + 10] = fn.charCodeAt(i);
|
|
974
|
+
}
|
|
975
|
+
};
|
|
976
|
+
// gzip footer: -8 to -4 = CRC, -4 to -0 is length
|
|
977
|
+
// gzip start
|
|
978
|
+
var gzs = function (d) {
|
|
979
|
+
if (d[0] != 31 || d[1] != 139 || d[2] != 8)
|
|
980
|
+
err(6, 'invalid gzip data');
|
|
981
|
+
var flg = d[3];
|
|
982
|
+
var st = 10;
|
|
983
|
+
if (flg & 4)
|
|
984
|
+
st += (d[10] | d[11] << 8) + 2;
|
|
985
|
+
for (var zs = (flg >> 3 & 1) + (flg >> 4 & 1); zs > 0; zs -= !d[st++])
|
|
986
|
+
;
|
|
987
|
+
return st + (flg & 2);
|
|
988
|
+
};
|
|
989
|
+
// gzip length
|
|
990
|
+
var gzl = function (d) {
|
|
991
|
+
var l = d.length;
|
|
992
|
+
return (d[l - 4] | d[l - 3] << 8 | d[l - 2] << 16 | d[l - 1] << 24) >>> 0;
|
|
993
|
+
};
|
|
994
|
+
// gzip header length
|
|
995
|
+
var gzhl = function (o) { return 10 + (o.filename ? o.filename.length + 1 : 0); };
|
|
996
|
+
// zlib header
|
|
997
|
+
var zlh = function (c, o) {
|
|
998
|
+
var lv = o.level, fl = lv == 0 ? 0 : lv < 6 ? 1 : lv == 9 ? 3 : 2;
|
|
999
|
+
c[0] = 120, c[1] = (fl << 6) | (o.dictionary && 32);
|
|
1000
|
+
c[1] |= 31 - ((c[0] << 8) | c[1]) % 31;
|
|
1001
|
+
if (o.dictionary) {
|
|
1002
|
+
var h = adler();
|
|
1003
|
+
h.p(o.dictionary);
|
|
1004
|
+
wbytes(c, 2, h.d());
|
|
1005
|
+
}
|
|
1006
|
+
};
|
|
1007
|
+
// zlib start
|
|
1008
|
+
var zls = function (d, dict) {
|
|
1009
|
+
if ((d[0] & 15) != 8 || (d[0] >> 4) > 7 || ((d[0] << 8 | d[1]) % 31))
|
|
1010
|
+
err(6, 'invalid zlib data');
|
|
1011
|
+
if ((d[1] >> 5 & 1) == +!dict)
|
|
1012
|
+
err(6, 'invalid zlib data: ' + (d[1] & 32 ? 'need' : 'unexpected') + ' dictionary');
|
|
1013
|
+
return (d[1] >> 3 & 4) + 2;
|
|
1014
|
+
};
|
|
1015
|
+
function StrmOpt(opts, cb) {
|
|
1016
|
+
if (typeof opts == 'function')
|
|
1017
|
+
cb = opts, opts = {};
|
|
1018
|
+
this.ondata = cb;
|
|
1019
|
+
return opts;
|
|
1020
|
+
}
|
|
1021
|
+
/**
|
|
1022
|
+
* Streaming DEFLATE compression
|
|
1023
|
+
*/
|
|
1024
|
+
var Deflate = /*#__PURE__*/ (function () {
|
|
1025
|
+
function Deflate(opts, cb) {
|
|
1026
|
+
if (typeof opts == 'function')
|
|
1027
|
+
cb = opts, opts = {};
|
|
1028
|
+
this.ondata = cb;
|
|
1029
|
+
this.o = opts || {};
|
|
1030
|
+
this.s = { l: 0, i: 32768, w: 32768, z: 32768 };
|
|
1031
|
+
// Buffer length must always be 0 mod 32768 for index calculations to be correct when modifying head and prev
|
|
1032
|
+
// 98304 = 32768 (lookback) + 65536 (common chunk size)
|
|
1033
|
+
this.b = new u8(98304);
|
|
1034
|
+
if (this.o.dictionary) {
|
|
1035
|
+
var dict = this.o.dictionary.subarray(-32768);
|
|
1036
|
+
this.b.set(dict, 32768 - dict.length);
|
|
1037
|
+
this.s.i = 32768 - dict.length;
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
Deflate.prototype.p = function (c, f) {
|
|
1041
|
+
this.ondata(dopt(c, this.o, 0, 0, this.s), f);
|
|
1042
|
+
};
|
|
1043
|
+
/**
|
|
1044
|
+
* Pushes a chunk to be deflated
|
|
1045
|
+
* @param chunk The chunk to push
|
|
1046
|
+
* @param final Whether this is the last chunk
|
|
1047
|
+
*/
|
|
1048
|
+
Deflate.prototype.push = function (chunk, final) {
|
|
1049
|
+
if (!this.ondata)
|
|
1050
|
+
err(5);
|
|
1051
|
+
if (this.s.l)
|
|
1052
|
+
err(4);
|
|
1053
|
+
var endLen = chunk.length + this.s.z;
|
|
1054
|
+
if (endLen > this.b.length) {
|
|
1055
|
+
if (endLen > 2 * this.b.length - 32768) {
|
|
1056
|
+
var newBuf = new u8(endLen & -32768);
|
|
1057
|
+
newBuf.set(this.b.subarray(0, this.s.z));
|
|
1058
|
+
this.b = newBuf;
|
|
1059
|
+
}
|
|
1060
|
+
var split = this.b.length - this.s.z;
|
|
1061
|
+
this.b.set(chunk.subarray(0, split), this.s.z);
|
|
1062
|
+
this.s.z = this.b.length;
|
|
1063
|
+
this.p(this.b, false);
|
|
1064
|
+
this.b.set(this.b.subarray(-32768));
|
|
1065
|
+
this.b.set(chunk.subarray(split), 32768);
|
|
1066
|
+
this.s.z = chunk.length - split + 32768;
|
|
1067
|
+
this.s.i = 32766, this.s.w = 32768;
|
|
1068
|
+
}
|
|
1069
|
+
else {
|
|
1070
|
+
this.b.set(chunk, this.s.z);
|
|
1071
|
+
this.s.z += chunk.length;
|
|
1072
|
+
}
|
|
1073
|
+
this.s.l = final & 1;
|
|
1074
|
+
if (this.s.z > this.s.w + 8191 || final) {
|
|
1075
|
+
this.p(this.b, final || false);
|
|
1076
|
+
this.s.w = this.s.i, this.s.i -= 2;
|
|
1077
|
+
}
|
|
1078
|
+
};
|
|
1079
|
+
/**
|
|
1080
|
+
* Flushes buffered uncompressed data. Useful to immediately retrieve the
|
|
1081
|
+
* deflated output for small inputs.
|
|
1082
|
+
*/
|
|
1083
|
+
Deflate.prototype.flush = function () {
|
|
1084
|
+
if (!this.ondata)
|
|
1085
|
+
err(5);
|
|
1086
|
+
if (this.s.l)
|
|
1087
|
+
err(4);
|
|
1088
|
+
this.p(this.b, false);
|
|
1089
|
+
this.s.w = this.s.i, this.s.i -= 2;
|
|
1090
|
+
};
|
|
1091
|
+
return Deflate;
|
|
1092
|
+
}());
|
|
1093
|
+
export { Deflate };
|
|
1094
|
+
/**
|
|
1095
|
+
* Asynchronous streaming DEFLATE compression
|
|
1096
|
+
*/
|
|
1097
|
+
var AsyncDeflate = /*#__PURE__*/ (function () {
|
|
1098
|
+
function AsyncDeflate(opts, cb) {
|
|
1099
|
+
astrmify([
|
|
1100
|
+
bDflt,
|
|
1101
|
+
function () { return [astrm, Deflate]; }
|
|
1102
|
+
], this, StrmOpt.call(this, opts, cb), function (ev) {
|
|
1103
|
+
var strm = new Deflate(ev.data);
|
|
1104
|
+
onmessage = astrm(strm);
|
|
1105
|
+
}, 6, 1);
|
|
1106
|
+
}
|
|
1107
|
+
return AsyncDeflate;
|
|
1108
|
+
}());
|
|
1109
|
+
export { AsyncDeflate };
|
|
1110
|
+
export function deflate(data, opts, cb) {
|
|
1111
|
+
if (!cb)
|
|
1112
|
+
cb = opts, opts = {};
|
|
1113
|
+
if (typeof cb != 'function')
|
|
1114
|
+
err(7);
|
|
1115
|
+
return cbify(data, opts, [
|
|
1116
|
+
bDflt,
|
|
1117
|
+
], function (ev) { return pbf(deflateSync(ev.data[0], ev.data[1])); }, 0, cb);
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* Compresses data with DEFLATE without any wrapper
|
|
1121
|
+
* @param data The data to compress
|
|
1122
|
+
* @param opts The compression options
|
|
1123
|
+
* @returns The deflated version of the data
|
|
1124
|
+
*/
|
|
1125
|
+
export function deflateSync(data, opts) {
|
|
1126
|
+
return dopt(data, opts || {}, 0, 0);
|
|
1127
|
+
}
|
|
1128
|
+
/**
|
|
1129
|
+
* Streaming DEFLATE decompression
|
|
1130
|
+
*/
|
|
1131
|
+
var Inflate = /*#__PURE__*/ (function () {
|
|
1132
|
+
function Inflate(opts, cb) {
|
|
1133
|
+
// no StrmOpt here to avoid adding to workerizer
|
|
1134
|
+
if (typeof opts == 'function')
|
|
1135
|
+
cb = opts, opts = {};
|
|
1136
|
+
this.ondata = cb;
|
|
1137
|
+
var dict = opts && opts.dictionary && opts.dictionary.subarray(-32768);
|
|
1138
|
+
this.s = { i: 0, b: dict ? dict.length : 0 };
|
|
1139
|
+
this.o = new u8(32768);
|
|
1140
|
+
this.p = new u8(0);
|
|
1141
|
+
if (dict)
|
|
1142
|
+
this.o.set(dict);
|
|
1143
|
+
}
|
|
1144
|
+
Inflate.prototype.e = function (c) {
|
|
1145
|
+
if (!this.ondata)
|
|
1146
|
+
err(5);
|
|
1147
|
+
if (this.d)
|
|
1148
|
+
err(4);
|
|
1149
|
+
if (!this.p.length)
|
|
1150
|
+
this.p = c;
|
|
1151
|
+
else if (c.length) {
|
|
1152
|
+
var n = new u8(this.p.length + c.length);
|
|
1153
|
+
n.set(this.p), n.set(c, this.p.length), this.p = n;
|
|
1154
|
+
}
|
|
1155
|
+
};
|
|
1156
|
+
Inflate.prototype.c = function (final) {
|
|
1157
|
+
this.s.i = +(this.d = final || false);
|
|
1158
|
+
var bts = this.s.b;
|
|
1159
|
+
var dt = inflt(this.p, this.s, this.o);
|
|
1160
|
+
this.ondata(slc(dt, bts, this.s.b), this.d);
|
|
1161
|
+
this.o = slc(dt, this.s.b - 32768), this.s.b = this.o.length;
|
|
1162
|
+
this.p = slc(this.p, (this.s.p / 8) | 0), this.s.p &= 7;
|
|
1163
|
+
};
|
|
1164
|
+
/**
|
|
1165
|
+
* Pushes a chunk to be inflated
|
|
1166
|
+
* @param chunk The chunk to push
|
|
1167
|
+
* @param final Whether this is the final chunk
|
|
1168
|
+
*/
|
|
1169
|
+
Inflate.prototype.push = function (chunk, final) {
|
|
1170
|
+
this.e(chunk), this.c(final);
|
|
1171
|
+
};
|
|
1172
|
+
return Inflate;
|
|
1173
|
+
}());
|
|
1174
|
+
export { Inflate };
|
|
1175
|
+
/**
|
|
1176
|
+
* Asynchronous streaming DEFLATE decompression
|
|
1177
|
+
*/
|
|
1178
|
+
var AsyncInflate = /*#__PURE__*/ (function () {
|
|
1179
|
+
function AsyncInflate(opts, cb) {
|
|
1180
|
+
astrmify([
|
|
1181
|
+
bInflt,
|
|
1182
|
+
function () { return [astrm, Inflate]; }
|
|
1183
|
+
], this, StrmOpt.call(this, opts, cb), function (ev) {
|
|
1184
|
+
var strm = new Inflate(ev.data);
|
|
1185
|
+
onmessage = astrm(strm);
|
|
1186
|
+
}, 7, 0);
|
|
1187
|
+
}
|
|
1188
|
+
return AsyncInflate;
|
|
1189
|
+
}());
|
|
1190
|
+
export { AsyncInflate };
|
|
1191
|
+
export function inflate(data, opts, cb) {
|
|
1192
|
+
if (!cb)
|
|
1193
|
+
cb = opts, opts = {};
|
|
1194
|
+
if (typeof cb != 'function')
|
|
1195
|
+
err(7);
|
|
1196
|
+
return cbify(data, opts, [
|
|
1197
|
+
bInflt
|
|
1198
|
+
], function (ev) { return pbf(inflateSync(ev.data[0], gopt(ev.data[1]))); }, 1, cb);
|
|
1199
|
+
}
|
|
1200
|
+
/**
|
|
1201
|
+
* Expands DEFLATE data with no wrapper
|
|
1202
|
+
* @param data The data to decompress
|
|
1203
|
+
* @param opts The decompression options
|
|
1204
|
+
* @returns The decompressed version of the data
|
|
1205
|
+
*/
|
|
1206
|
+
export function inflateSync(data, opts) {
|
|
1207
|
+
return inflt(data, { i: 2 }, opts && opts.out, opts && opts.dictionary);
|
|
1208
|
+
}
|
|
1209
|
+
// before you yell at me for not just using extends, my reason is that TS inheritance is hard to workerize.
|
|
1210
|
+
/**
|
|
1211
|
+
* Streaming GZIP compression
|
|
1212
|
+
*/
|
|
1213
|
+
var Gzip = /*#__PURE__*/ (function () {
|
|
1214
|
+
function Gzip(opts, cb) {
|
|
1215
|
+
this.c = crc();
|
|
1216
|
+
this.l = 0;
|
|
1217
|
+
this.v = 1;
|
|
1218
|
+
Deflate.call(this, opts, cb);
|
|
1219
|
+
}
|
|
1220
|
+
/**
|
|
1221
|
+
* Pushes a chunk to be GZIPped
|
|
1222
|
+
* @param chunk The chunk to push
|
|
1223
|
+
* @param final Whether this is the last chunk
|
|
1224
|
+
*/
|
|
1225
|
+
Gzip.prototype.push = function (chunk, final) {
|
|
1226
|
+
this.c.p(chunk);
|
|
1227
|
+
this.l += chunk.length;
|
|
1228
|
+
Deflate.prototype.push.call(this, chunk, final);
|
|
1229
|
+
};
|
|
1230
|
+
Gzip.prototype.p = function (c, f) {
|
|
1231
|
+
var raw = dopt(c, this.o, this.v && gzhl(this.o), f && 8, this.s);
|
|
1232
|
+
if (this.v)
|
|
1233
|
+
gzh(raw, this.o), this.v = 0;
|
|
1234
|
+
if (f)
|
|
1235
|
+
wbytes(raw, raw.length - 8, this.c.d()), wbytes(raw, raw.length - 4, this.l);
|
|
1236
|
+
this.ondata(raw, f);
|
|
1237
|
+
};
|
|
1238
|
+
/**
|
|
1239
|
+
* Flushes buffered uncompressed data. Useful to immediately retrieve the
|
|
1240
|
+
* GZIPped output for small inputs.
|
|
1241
|
+
*/
|
|
1242
|
+
Gzip.prototype.flush = function () {
|
|
1243
|
+
Deflate.prototype.flush.call(this);
|
|
1244
|
+
};
|
|
1245
|
+
return Gzip;
|
|
1246
|
+
}());
|
|
1247
|
+
export { Gzip };
|
|
1248
|
+
/**
|
|
1249
|
+
* Asynchronous streaming GZIP compression
|
|
1250
|
+
*/
|
|
1251
|
+
var AsyncGzip = /*#__PURE__*/ (function () {
|
|
1252
|
+
function AsyncGzip(opts, cb) {
|
|
1253
|
+
astrmify([
|
|
1254
|
+
bDflt,
|
|
1255
|
+
gze,
|
|
1256
|
+
function () { return [astrm, Deflate, Gzip]; }
|
|
1257
|
+
], this, StrmOpt.call(this, opts, cb), function (ev) {
|
|
1258
|
+
var strm = new Gzip(ev.data);
|
|
1259
|
+
onmessage = astrm(strm);
|
|
1260
|
+
}, 8, 1);
|
|
1261
|
+
}
|
|
1262
|
+
return AsyncGzip;
|
|
1263
|
+
}());
|
|
1264
|
+
export { AsyncGzip };
|
|
1265
|
+
export function gzip(data, opts, cb) {
|
|
1266
|
+
if (!cb)
|
|
1267
|
+
cb = opts, opts = {};
|
|
1268
|
+
if (typeof cb != 'function')
|
|
1269
|
+
err(7);
|
|
1270
|
+
return cbify(data, opts, [
|
|
1271
|
+
bDflt,
|
|
1272
|
+
gze,
|
|
1273
|
+
function () { return [gzipSync]; }
|
|
1274
|
+
], function (ev) { return pbf(gzipSync(ev.data[0], ev.data[1])); }, 2, cb);
|
|
1275
|
+
}
|
|
1276
|
+
/**
|
|
1277
|
+
* Compresses data with GZIP
|
|
1278
|
+
* @param data The data to compress
|
|
1279
|
+
* @param opts The compression options
|
|
1280
|
+
* @returns The gzipped version of the data
|
|
1281
|
+
*/
|
|
1282
|
+
export function gzipSync(data, opts) {
|
|
1283
|
+
if (!opts)
|
|
1284
|
+
opts = {};
|
|
1285
|
+
var c = crc(), l = data.length;
|
|
1286
|
+
c.p(data);
|
|
1287
|
+
var d = dopt(data, opts, gzhl(opts), 8), s = d.length;
|
|
1288
|
+
return gzh(d, opts), wbytes(d, s - 8, c.d()), wbytes(d, s - 4, l), d;
|
|
1289
|
+
}
|
|
1290
|
+
/**
|
|
1291
|
+
* Streaming single or multi-member GZIP decompression
|
|
1292
|
+
*/
|
|
1293
|
+
var Gunzip = /*#__PURE__*/ (function () {
|
|
1294
|
+
function Gunzip(opts, cb) {
|
|
1295
|
+
this.v = 1;
|
|
1296
|
+
this.r = 0;
|
|
1297
|
+
Inflate.call(this, opts, cb);
|
|
1298
|
+
}
|
|
1299
|
+
/**
|
|
1300
|
+
* Pushes a chunk to be GUNZIPped
|
|
1301
|
+
* @param chunk The chunk to push
|
|
1302
|
+
* @param final Whether this is the last chunk
|
|
1303
|
+
*/
|
|
1304
|
+
Gunzip.prototype.push = function (chunk, final) {
|
|
1305
|
+
Inflate.prototype.e.call(this, chunk);
|
|
1306
|
+
this.r += chunk.length;
|
|
1307
|
+
if (this.v) {
|
|
1308
|
+
var p = this.p.subarray(this.v - 1);
|
|
1309
|
+
var s = p.length > 3 ? gzs(p) : 4;
|
|
1310
|
+
if (s > p.length) {
|
|
1311
|
+
if (!final)
|
|
1312
|
+
return;
|
|
1313
|
+
}
|
|
1314
|
+
else if (this.v > 1 && this.onmember) {
|
|
1315
|
+
this.onmember(this.r - p.length);
|
|
1316
|
+
}
|
|
1317
|
+
this.p = p.subarray(s), this.v = 0;
|
|
1318
|
+
}
|
|
1319
|
+
// necessary to prevent TS from using the closure value
|
|
1320
|
+
// This allows for workerization to function correctly
|
|
1321
|
+
Inflate.prototype.c.call(this, final);
|
|
1322
|
+
// process concatenated GZIP
|
|
1323
|
+
if (this.s.f && !this.s.l && !final) {
|
|
1324
|
+
this.v = shft(this.s.p) + 9;
|
|
1325
|
+
this.s = { i: 0 };
|
|
1326
|
+
this.o = new u8(0);
|
|
1327
|
+
this.push(new u8(0), final);
|
|
1328
|
+
}
|
|
1329
|
+
};
|
|
1330
|
+
return Gunzip;
|
|
1331
|
+
}());
|
|
1332
|
+
export { Gunzip };
|
|
1333
|
+
/**
|
|
1334
|
+
* Asynchronous streaming single or multi-member GZIP decompression
|
|
1335
|
+
*/
|
|
1336
|
+
var AsyncGunzip = /*#__PURE__*/ (function () {
|
|
1337
|
+
function AsyncGunzip(opts, cb) {
|
|
1338
|
+
var _this = this;
|
|
1339
|
+
astrmify([
|
|
1340
|
+
bInflt,
|
|
1341
|
+
guze,
|
|
1342
|
+
function () { return [astrm, Inflate, Gunzip]; }
|
|
1343
|
+
], this, StrmOpt.call(this, opts, cb), function (ev) {
|
|
1344
|
+
var strm = new Gunzip(ev.data);
|
|
1345
|
+
strm.onmember = function (offset) { return postMessage(offset); };
|
|
1346
|
+
onmessage = astrm(strm);
|
|
1347
|
+
}, 9, 0, function (offset) { return _this.onmember && _this.onmember(offset); });
|
|
1348
|
+
}
|
|
1349
|
+
return AsyncGunzip;
|
|
1350
|
+
}());
|
|
1351
|
+
export { AsyncGunzip };
|
|
1352
|
+
export function gunzip(data, opts, cb) {
|
|
1353
|
+
if (!cb)
|
|
1354
|
+
cb = opts, opts = {};
|
|
1355
|
+
if (typeof cb != 'function')
|
|
1356
|
+
err(7);
|
|
1357
|
+
return cbify(data, opts, [
|
|
1358
|
+
bInflt,
|
|
1359
|
+
guze,
|
|
1360
|
+
function () { return [gunzipSync]; }
|
|
1361
|
+
], function (ev) { return pbf(gunzipSync(ev.data[0], ev.data[1])); }, 3, cb);
|
|
1362
|
+
}
|
|
1363
|
+
/**
|
|
1364
|
+
* Expands GZIP data
|
|
1365
|
+
* @param data The data to decompress
|
|
1366
|
+
* @param opts The decompression options
|
|
1367
|
+
* @returns The decompressed version of the data
|
|
1368
|
+
*/
|
|
1369
|
+
export function gunzipSync(data, opts) {
|
|
1370
|
+
var st = gzs(data);
|
|
1371
|
+
if (st + 8 > data.length)
|
|
1372
|
+
err(6, 'invalid gzip data');
|
|
1373
|
+
return inflt(data.subarray(st, -8), { i: 2 }, opts && opts.out || new u8(gzl(data)), opts && opts.dictionary);
|
|
1374
|
+
}
|
|
1375
|
+
/**
|
|
1376
|
+
* Streaming Zlib compression
|
|
1377
|
+
*/
|
|
1378
|
+
var Zlib = /*#__PURE__*/ (function () {
|
|
1379
|
+
function Zlib(opts, cb) {
|
|
1380
|
+
this.c = adler();
|
|
1381
|
+
this.v = 1;
|
|
1382
|
+
Deflate.call(this, opts, cb);
|
|
1383
|
+
}
|
|
1384
|
+
/**
|
|
1385
|
+
* Pushes a chunk to be zlibbed
|
|
1386
|
+
* @param chunk The chunk to push
|
|
1387
|
+
* @param final Whether this is the last chunk
|
|
1388
|
+
*/
|
|
1389
|
+
Zlib.prototype.push = function (chunk, final) {
|
|
1390
|
+
this.c.p(chunk);
|
|
1391
|
+
Deflate.prototype.push.call(this, chunk, final);
|
|
1392
|
+
};
|
|
1393
|
+
Zlib.prototype.p = function (c, f) {
|
|
1394
|
+
var raw = dopt(c, this.o, this.v && (this.o.dictionary ? 6 : 2), f && 4, this.s);
|
|
1395
|
+
if (this.v)
|
|
1396
|
+
zlh(raw, this.o), this.v = 0;
|
|
1397
|
+
if (f)
|
|
1398
|
+
wbytes(raw, raw.length - 4, this.c.d());
|
|
1399
|
+
this.ondata(raw, f);
|
|
1400
|
+
};
|
|
1401
|
+
/**
|
|
1402
|
+
* Flushes buffered uncompressed data. Useful to immediately retrieve the
|
|
1403
|
+
* zlibbed output for small inputs.
|
|
1404
|
+
*/
|
|
1405
|
+
Zlib.prototype.flush = function () {
|
|
1406
|
+
Deflate.prototype.flush.call(this);
|
|
1407
|
+
};
|
|
1408
|
+
return Zlib;
|
|
1409
|
+
}());
|
|
1410
|
+
export { Zlib };
|
|
1411
|
+
/**
|
|
1412
|
+
* Asynchronous streaming Zlib compression
|
|
1413
|
+
*/
|
|
1414
|
+
var AsyncZlib = /*#__PURE__*/ (function () {
|
|
1415
|
+
function AsyncZlib(opts, cb) {
|
|
1416
|
+
astrmify([
|
|
1417
|
+
bDflt,
|
|
1418
|
+
zle,
|
|
1419
|
+
function () { return [astrm, Deflate, Zlib]; }
|
|
1420
|
+
], this, StrmOpt.call(this, opts, cb), function (ev) {
|
|
1421
|
+
var strm = new Zlib(ev.data);
|
|
1422
|
+
onmessage = astrm(strm);
|
|
1423
|
+
}, 10, 1);
|
|
1424
|
+
}
|
|
1425
|
+
return AsyncZlib;
|
|
1426
|
+
}());
|
|
1427
|
+
export { AsyncZlib };
|
|
1428
|
+
export function zlib(data, opts, cb) {
|
|
1429
|
+
if (!cb)
|
|
1430
|
+
cb = opts, opts = {};
|
|
1431
|
+
if (typeof cb != 'function')
|
|
1432
|
+
err(7);
|
|
1433
|
+
return cbify(data, opts, [
|
|
1434
|
+
bDflt,
|
|
1435
|
+
zle,
|
|
1436
|
+
function () { return [zlibSync]; }
|
|
1437
|
+
], function (ev) { return pbf(zlibSync(ev.data[0], ev.data[1])); }, 4, cb);
|
|
1438
|
+
}
|
|
1439
|
+
/**
|
|
1440
|
+
* Compress data with Zlib
|
|
1441
|
+
* @param data The data to compress
|
|
1442
|
+
* @param opts The compression options
|
|
1443
|
+
* @returns The zlib-compressed version of the data
|
|
1444
|
+
*/
|
|
1445
|
+
export function zlibSync(data, opts) {
|
|
1446
|
+
if (!opts)
|
|
1447
|
+
opts = {};
|
|
1448
|
+
var a = adler();
|
|
1449
|
+
a.p(data);
|
|
1450
|
+
var d = dopt(data, opts, opts.dictionary ? 6 : 2, 4);
|
|
1451
|
+
return zlh(d, opts), wbytes(d, d.length - 4, a.d()), d;
|
|
1452
|
+
}
|
|
1453
|
+
/**
|
|
1454
|
+
* Streaming Zlib decompression
|
|
1455
|
+
*/
|
|
1456
|
+
var Unzlib = /*#__PURE__*/ (function () {
|
|
1457
|
+
function Unzlib(opts, cb) {
|
|
1458
|
+
Inflate.call(this, opts, cb);
|
|
1459
|
+
this.v = opts && opts.dictionary ? 2 : 1;
|
|
1460
|
+
}
|
|
1461
|
+
/**
|
|
1462
|
+
* Pushes a chunk to be unzlibbed
|
|
1463
|
+
* @param chunk The chunk to push
|
|
1464
|
+
* @param final Whether this is the last chunk
|
|
1465
|
+
*/
|
|
1466
|
+
Unzlib.prototype.push = function (chunk, final) {
|
|
1467
|
+
Inflate.prototype.e.call(this, chunk);
|
|
1468
|
+
if (this.v) {
|
|
1469
|
+
if (this.p.length < 6 && !final)
|
|
1470
|
+
return;
|
|
1471
|
+
this.p = this.p.subarray(zls(this.p, this.v - 1)), this.v = 0;
|
|
1472
|
+
}
|
|
1473
|
+
if (final) {
|
|
1474
|
+
if (this.p.length < 4)
|
|
1475
|
+
err(6, 'invalid zlib data');
|
|
1476
|
+
this.p = this.p.subarray(0, -4);
|
|
1477
|
+
}
|
|
1478
|
+
// necessary to prevent TS from using the closure value
|
|
1479
|
+
// This allows for workerization to function correctly
|
|
1480
|
+
Inflate.prototype.c.call(this, final);
|
|
1481
|
+
};
|
|
1482
|
+
return Unzlib;
|
|
1483
|
+
}());
|
|
1484
|
+
export { Unzlib };
|
|
1485
|
+
/**
|
|
1486
|
+
* Asynchronous streaming Zlib decompression
|
|
1487
|
+
*/
|
|
1488
|
+
var AsyncUnzlib = /*#__PURE__*/ (function () {
|
|
1489
|
+
function AsyncUnzlib(opts, cb) {
|
|
1490
|
+
astrmify([
|
|
1491
|
+
bInflt,
|
|
1492
|
+
zule,
|
|
1493
|
+
function () { return [astrm, Inflate, Unzlib]; }
|
|
1494
|
+
], this, StrmOpt.call(this, opts, cb), function (ev) {
|
|
1495
|
+
var strm = new Unzlib(ev.data);
|
|
1496
|
+
onmessage = astrm(strm);
|
|
1497
|
+
}, 11, 0);
|
|
1498
|
+
}
|
|
1499
|
+
return AsyncUnzlib;
|
|
1500
|
+
}());
|
|
1501
|
+
export { AsyncUnzlib };
|
|
1502
|
+
export function unzlib(data, opts, cb) {
|
|
1503
|
+
if (!cb)
|
|
1504
|
+
cb = opts, opts = {};
|
|
1505
|
+
if (typeof cb != 'function')
|
|
1506
|
+
err(7);
|
|
1507
|
+
return cbify(data, opts, [
|
|
1508
|
+
bInflt,
|
|
1509
|
+
zule,
|
|
1510
|
+
function () { return [unzlibSync]; }
|
|
1511
|
+
], function (ev) { return pbf(unzlibSync(ev.data[0], gopt(ev.data[1]))); }, 5, cb);
|
|
1512
|
+
}
|
|
1513
|
+
/**
|
|
1514
|
+
* Expands Zlib data
|
|
1515
|
+
* @param data The data to decompress
|
|
1516
|
+
* @param opts The decompression options
|
|
1517
|
+
* @returns The decompressed version of the data
|
|
1518
|
+
*/
|
|
1519
|
+
export function unzlibSync(data, opts) {
|
|
1520
|
+
return inflt(data.subarray(zls(data, opts && opts.dictionary), -4), { i: 2 }, opts && opts.out, opts && opts.dictionary);
|
|
1521
|
+
}
|
|
1522
|
+
// Default algorithm for compression (used because having a known output size allows faster decompression)
|
|
1523
|
+
export { gzip as compress, AsyncGzip as AsyncCompress };
|
|
1524
|
+
export { gzipSync as compressSync, Gzip as Compress };
|
|
1525
|
+
/**
|
|
1526
|
+
* Streaming GZIP, Zlib, or raw DEFLATE decompression
|
|
1527
|
+
*/
|
|
1528
|
+
var Decompress = /*#__PURE__*/ (function () {
|
|
1529
|
+
function Decompress(opts, cb) {
|
|
1530
|
+
this.o = StrmOpt.call(this, opts, cb) || {};
|
|
1531
|
+
this.G = Gunzip;
|
|
1532
|
+
this.I = Inflate;
|
|
1533
|
+
this.Z = Unzlib;
|
|
1534
|
+
}
|
|
1535
|
+
// init substream
|
|
1536
|
+
// overriden by AsyncDecompress
|
|
1537
|
+
Decompress.prototype.i = function () {
|
|
1538
|
+
var _this = this;
|
|
1539
|
+
this.s.ondata = function (dat, final) {
|
|
1540
|
+
_this.ondata(dat, final);
|
|
1541
|
+
};
|
|
1542
|
+
};
|
|
1543
|
+
/**
|
|
1544
|
+
* Pushes a chunk to be decompressed
|
|
1545
|
+
* @param chunk The chunk to push
|
|
1546
|
+
* @param final Whether this is the last chunk
|
|
1547
|
+
*/
|
|
1548
|
+
Decompress.prototype.push = function (chunk, final) {
|
|
1549
|
+
if (!this.ondata)
|
|
1550
|
+
err(5);
|
|
1551
|
+
if (!this.s) {
|
|
1552
|
+
if (this.p && this.p.length) {
|
|
1553
|
+
var n = new u8(this.p.length + chunk.length);
|
|
1554
|
+
n.set(this.p), n.set(chunk, this.p.length);
|
|
1555
|
+
}
|
|
1556
|
+
else
|
|
1557
|
+
this.p = chunk;
|
|
1558
|
+
if (this.p.length > 2) {
|
|
1559
|
+
this.s = (this.p[0] == 31 && this.p[1] == 139 && this.p[2] == 8)
|
|
1560
|
+
? new this.G(this.o)
|
|
1561
|
+
: ((this.p[0] & 15) != 8 || (this.p[0] >> 4) > 7 || ((this.p[0] << 8 | this.p[1]) % 31))
|
|
1562
|
+
? new this.I(this.o)
|
|
1563
|
+
: new this.Z(this.o);
|
|
1564
|
+
this.i();
|
|
1565
|
+
this.s.push(this.p, final);
|
|
1566
|
+
this.p = null;
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
else
|
|
1570
|
+
this.s.push(chunk, final);
|
|
1571
|
+
};
|
|
1572
|
+
return Decompress;
|
|
1573
|
+
}());
|
|
1574
|
+
export { Decompress };
|
|
1575
|
+
/**
|
|
1576
|
+
* Asynchronous streaming GZIP, Zlib, or raw DEFLATE decompression
|
|
1577
|
+
*/
|
|
1578
|
+
var AsyncDecompress = /*#__PURE__*/ (function () {
|
|
1579
|
+
function AsyncDecompress(opts, cb) {
|
|
1580
|
+
Decompress.call(this, opts, cb);
|
|
1581
|
+
this.queuedSize = 0;
|
|
1582
|
+
this.G = AsyncGunzip;
|
|
1583
|
+
this.I = AsyncInflate;
|
|
1584
|
+
this.Z = AsyncUnzlib;
|
|
1585
|
+
}
|
|
1586
|
+
AsyncDecompress.prototype.i = function () {
|
|
1587
|
+
var _this = this;
|
|
1588
|
+
this.s.ondata = function (err, dat, final) {
|
|
1589
|
+
_this.ondata(err, dat, final);
|
|
1590
|
+
};
|
|
1591
|
+
this.s.ondrain = function (size) {
|
|
1592
|
+
_this.queuedSize -= size;
|
|
1593
|
+
if (_this.ondrain)
|
|
1594
|
+
_this.ondrain(size);
|
|
1595
|
+
};
|
|
1596
|
+
};
|
|
1597
|
+
/**
|
|
1598
|
+
* Pushes a chunk to be decompressed
|
|
1599
|
+
* @param chunk The chunk to push
|
|
1600
|
+
* @param final Whether this is the last chunk
|
|
1601
|
+
*/
|
|
1602
|
+
AsyncDecompress.prototype.push = function (chunk, final) {
|
|
1603
|
+
this.queuedSize += chunk.length;
|
|
1604
|
+
Decompress.prototype.push.call(this, chunk, final);
|
|
1605
|
+
};
|
|
1606
|
+
return AsyncDecompress;
|
|
1607
|
+
}());
|
|
1608
|
+
export { AsyncDecompress };
|
|
1609
|
+
export function decompress(data, opts, cb) {
|
|
1610
|
+
if (!cb)
|
|
1611
|
+
cb = opts, opts = {};
|
|
1612
|
+
if (typeof cb != 'function')
|
|
1613
|
+
err(7);
|
|
1614
|
+
return (data[0] == 31 && data[1] == 139 && data[2] == 8)
|
|
1615
|
+
? gunzip(data, opts, cb)
|
|
1616
|
+
: ((data[0] & 15) != 8 || (data[0] >> 4) > 7 || ((data[0] << 8 | data[1]) % 31))
|
|
1617
|
+
? inflate(data, opts, cb)
|
|
1618
|
+
: unzlib(data, opts, cb);
|
|
1619
|
+
}
|
|
1620
|
+
/**
|
|
1621
|
+
* Expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format
|
|
1622
|
+
* @param data The data to decompress
|
|
1623
|
+
* @param opts The decompression options
|
|
1624
|
+
* @returns The decompressed version of the data
|
|
1625
|
+
*/
|
|
1626
|
+
export function decompressSync(data, opts) {
|
|
1627
|
+
return (data[0] == 31 && data[1] == 139 && data[2] == 8)
|
|
1628
|
+
? gunzipSync(data, opts)
|
|
1629
|
+
: ((data[0] & 15) != 8 || (data[0] >> 4) > 7 || ((data[0] << 8 | data[1]) % 31))
|
|
1630
|
+
? inflateSync(data, opts)
|
|
1631
|
+
: unzlibSync(data, opts);
|
|
1632
|
+
}
|
|
1633
|
+
// flatten a directory structure
|
|
1634
|
+
var fltn = function (d, p, t, o) {
|
|
1635
|
+
for (var k in d) {
|
|
1636
|
+
var val = d[k], n = p + k, op = o;
|
|
1637
|
+
if (Array.isArray(val))
|
|
1638
|
+
op = mrg(o, val[1]), val = val[0];
|
|
1639
|
+
if (val instanceof u8)
|
|
1640
|
+
t[n] = [val, op];
|
|
1641
|
+
else {
|
|
1642
|
+
t[n += '/'] = [new u8(0), op];
|
|
1643
|
+
fltn(val, n, t, o);
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
};
|
|
1647
|
+
// text encoder
|
|
1648
|
+
var te = typeof TextEncoder != 'undefined' && /*#__PURE__*/ new TextEncoder();
|
|
1649
|
+
// text decoder
|
|
1650
|
+
var td = typeof TextDecoder != 'undefined' && /*#__PURE__*/ new TextDecoder();
|
|
1651
|
+
// text decoder stream
|
|
1652
|
+
var tds = 0;
|
|
1653
|
+
try {
|
|
1654
|
+
td.decode(et, { stream: true });
|
|
1655
|
+
tds = 1;
|
|
1656
|
+
}
|
|
1657
|
+
catch (e) { }
|
|
1658
|
+
// decode UTF8
|
|
1659
|
+
var dutf8 = function (d) {
|
|
1660
|
+
for (var r = '', i = 0;;) {
|
|
1661
|
+
var c = d[i++];
|
|
1662
|
+
var eb = (c > 127) + (c > 223) + (c > 239);
|
|
1663
|
+
if (i + eb > d.length)
|
|
1664
|
+
return { s: r, r: slc(d, i - 1) };
|
|
1665
|
+
if (!eb)
|
|
1666
|
+
r += String.fromCharCode(c);
|
|
1667
|
+
else if (eb == 3) {
|
|
1668
|
+
c = ((c & 15) << 18 | (d[i++] & 63) << 12 | (d[i++] & 63) << 6 | (d[i++] & 63)) - 65536,
|
|
1669
|
+
r += String.fromCharCode(55296 | (c >> 10), 56320 | (c & 1023));
|
|
1670
|
+
}
|
|
1671
|
+
else if (eb & 1)
|
|
1672
|
+
r += String.fromCharCode((c & 31) << 6 | (d[i++] & 63));
|
|
1673
|
+
else
|
|
1674
|
+
r += String.fromCharCode((c & 15) << 12 | (d[i++] & 63) << 6 | (d[i++] & 63));
|
|
1675
|
+
}
|
|
1676
|
+
};
|
|
1677
|
+
/**
|
|
1678
|
+
* Streaming UTF-8 decoding
|
|
1679
|
+
*/
|
|
1680
|
+
var DecodeUTF8 = /*#__PURE__*/ (function () {
|
|
1681
|
+
/**
|
|
1682
|
+
* Creates a UTF-8 decoding stream
|
|
1683
|
+
* @param cb The callback to call whenever data is decoded
|
|
1684
|
+
*/
|
|
1685
|
+
function DecodeUTF8(cb) {
|
|
1686
|
+
this.ondata = cb;
|
|
1687
|
+
if (tds)
|
|
1688
|
+
this.t = new TextDecoder();
|
|
1689
|
+
else
|
|
1690
|
+
this.p = et;
|
|
1691
|
+
}
|
|
1692
|
+
/**
|
|
1693
|
+
* Pushes a chunk to be decoded from UTF-8 binary
|
|
1694
|
+
* @param chunk The chunk to push
|
|
1695
|
+
* @param final Whether this is the last chunk
|
|
1696
|
+
*/
|
|
1697
|
+
DecodeUTF8.prototype.push = function (chunk, final) {
|
|
1698
|
+
if (!this.ondata)
|
|
1699
|
+
err(5);
|
|
1700
|
+
final = !!final;
|
|
1701
|
+
if (this.t) {
|
|
1702
|
+
this.ondata(this.t.decode(chunk, { stream: true }), final);
|
|
1703
|
+
if (final) {
|
|
1704
|
+
if (this.t.decode().length)
|
|
1705
|
+
err(8);
|
|
1706
|
+
this.t = null;
|
|
1707
|
+
}
|
|
1708
|
+
return;
|
|
1709
|
+
}
|
|
1710
|
+
if (!this.p)
|
|
1711
|
+
err(4);
|
|
1712
|
+
var dat = new u8(this.p.length + chunk.length);
|
|
1713
|
+
dat.set(this.p);
|
|
1714
|
+
dat.set(chunk, this.p.length);
|
|
1715
|
+
var _a = dutf8(dat), s = _a.s, r = _a.r;
|
|
1716
|
+
if (final) {
|
|
1717
|
+
if (r.length)
|
|
1718
|
+
err(8);
|
|
1719
|
+
this.p = null;
|
|
1720
|
+
}
|
|
1721
|
+
else
|
|
1722
|
+
this.p = r;
|
|
1723
|
+
this.ondata(s, final);
|
|
1724
|
+
};
|
|
1725
|
+
return DecodeUTF8;
|
|
1726
|
+
}());
|
|
1727
|
+
export { DecodeUTF8 };
|
|
1728
|
+
/**
|
|
1729
|
+
* Streaming UTF-8 encoding
|
|
1730
|
+
*/
|
|
1731
|
+
var EncodeUTF8 = /*#__PURE__*/ (function () {
|
|
1732
|
+
/**
|
|
1733
|
+
* Creates a UTF-8 decoding stream
|
|
1734
|
+
* @param cb The callback to call whenever data is encoded
|
|
1735
|
+
*/
|
|
1736
|
+
function EncodeUTF8(cb) {
|
|
1737
|
+
this.ondata = cb;
|
|
1738
|
+
}
|
|
1739
|
+
/**
|
|
1740
|
+
* Pushes a chunk to be encoded to UTF-8
|
|
1741
|
+
* @param chunk The string data to push
|
|
1742
|
+
* @param final Whether this is the last chunk
|
|
1743
|
+
*/
|
|
1744
|
+
EncodeUTF8.prototype.push = function (chunk, final) {
|
|
1745
|
+
if (!this.ondata)
|
|
1746
|
+
err(5);
|
|
1747
|
+
if (this.d)
|
|
1748
|
+
err(4);
|
|
1749
|
+
this.ondata(strToU8(chunk), this.d = final || false);
|
|
1750
|
+
};
|
|
1751
|
+
return EncodeUTF8;
|
|
1752
|
+
}());
|
|
1753
|
+
export { EncodeUTF8 };
|
|
1754
|
+
/**
|
|
1755
|
+
* Converts a string into a Uint8Array for use with compression/decompression methods
|
|
1756
|
+
* @param str The string to encode
|
|
1757
|
+
* @param latin1 Whether or not to interpret the data as Latin-1. This should
|
|
1758
|
+
* not need to be true unless decoding a binary string.
|
|
1759
|
+
* @returns The string encoded in UTF-8/Latin-1 binary
|
|
1760
|
+
*/
|
|
1761
|
+
export function strToU8(str, latin1) {
|
|
1762
|
+
if (latin1) {
|
|
1763
|
+
var ar_1 = new u8(str.length);
|
|
1764
|
+
for (var i = 0; i < str.length; ++i)
|
|
1765
|
+
ar_1[i] = str.charCodeAt(i);
|
|
1766
|
+
return ar_1;
|
|
1767
|
+
}
|
|
1768
|
+
if (te)
|
|
1769
|
+
return te.encode(str);
|
|
1770
|
+
var l = str.length;
|
|
1771
|
+
var ar = new u8(str.length + (str.length >> 1));
|
|
1772
|
+
var ai = 0;
|
|
1773
|
+
var w = function (v) { ar[ai++] = v; };
|
|
1774
|
+
for (var i = 0; i < l; ++i) {
|
|
1775
|
+
if (ai + 5 > ar.length) {
|
|
1776
|
+
var n = new u8(ai + 8 + ((l - i) << 1));
|
|
1777
|
+
n.set(ar);
|
|
1778
|
+
ar = n;
|
|
1779
|
+
}
|
|
1780
|
+
var c = str.charCodeAt(i);
|
|
1781
|
+
if (c < 128 || latin1)
|
|
1782
|
+
w(c);
|
|
1783
|
+
else if (c < 2048)
|
|
1784
|
+
w(192 | (c >> 6)), w(128 | (c & 63));
|
|
1785
|
+
else if (c > 55295 && c < 57344)
|
|
1786
|
+
c = 65536 + (c & 1023 << 10) | (str.charCodeAt(++i) & 1023),
|
|
1787
|
+
w(240 | (c >> 18)), w(128 | ((c >> 12) & 63)), w(128 | ((c >> 6) & 63)), w(128 | (c & 63));
|
|
1788
|
+
else
|
|
1789
|
+
w(224 | (c >> 12)), w(128 | ((c >> 6) & 63)), w(128 | (c & 63));
|
|
1790
|
+
}
|
|
1791
|
+
return slc(ar, 0, ai);
|
|
1792
|
+
}
|
|
1793
|
+
/**
|
|
1794
|
+
* Converts a Uint8Array to a string
|
|
1795
|
+
* @param dat The data to decode to string
|
|
1796
|
+
* @param latin1 Whether or not to interpret the data as Latin-1. This should
|
|
1797
|
+
* not need to be true unless encoding to binary string.
|
|
1798
|
+
* @returns The original UTF-8/Latin-1 string
|
|
1799
|
+
*/
|
|
1800
|
+
export function strFromU8(dat, latin1) {
|
|
1801
|
+
if (latin1) {
|
|
1802
|
+
var r = '';
|
|
1803
|
+
for (var i = 0; i < dat.length; i += 16384)
|
|
1804
|
+
r += String.fromCharCode.apply(null, dat.subarray(i, i + 16384));
|
|
1805
|
+
return r;
|
|
1806
|
+
}
|
|
1807
|
+
else if (td) {
|
|
1808
|
+
return td.decode(dat);
|
|
1809
|
+
}
|
|
1810
|
+
else {
|
|
1811
|
+
var _a = dutf8(dat), s = _a.s, r = _a.r;
|
|
1812
|
+
if (r.length)
|
|
1813
|
+
err(8);
|
|
1814
|
+
return s;
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
;
|
|
1818
|
+
// deflate bit flag
|
|
1819
|
+
var dbf = function (l) { return l == 1 ? 3 : l < 6 ? 2 : l == 9 ? 1 : 0; };
|
|
1820
|
+
// skip local zip header
|
|
1821
|
+
var slzh = function (d, b) { return b + 30 + b2(d, b + 26) + b2(d, b + 28); };
|
|
1822
|
+
// read zip header
|
|
1823
|
+
var zh = function (d, b, z) {
|
|
1824
|
+
var fnl = b2(d, b + 28), fn = strFromU8(d.subarray(b + 46, b + 46 + fnl), !(b2(d, b + 8) & 2048)), es = b + 46 + fnl, bs = b4(d, b + 20);
|
|
1825
|
+
var _a = z && bs == 4294967295 ? z64e(d, es) : [bs, b4(d, b + 24), b4(d, b + 42)], sc = _a[0], su = _a[1], off = _a[2];
|
|
1826
|
+
return [b2(d, b + 10), sc, su, fn, es + b2(d, b + 30) + b2(d, b + 32), off];
|
|
1827
|
+
};
|
|
1828
|
+
// read zip64 extra field
|
|
1829
|
+
var z64e = function (d, b) {
|
|
1830
|
+
for (; b2(d, b) != 1; b += 4 + b2(d, b + 2))
|
|
1831
|
+
;
|
|
1832
|
+
return [b8(d, b + 12), b8(d, b + 4), b8(d, b + 20)];
|
|
1833
|
+
};
|
|
1834
|
+
// extra field length
|
|
1835
|
+
var exfl = function (ex) {
|
|
1836
|
+
var le = 0;
|
|
1837
|
+
if (ex) {
|
|
1838
|
+
for (var k in ex) {
|
|
1839
|
+
var l = ex[k].length;
|
|
1840
|
+
if (l > 65535)
|
|
1841
|
+
err(9);
|
|
1842
|
+
le += l + 4;
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
return le;
|
|
1846
|
+
};
|
|
1847
|
+
// write zip header
|
|
1848
|
+
var wzh = function (d, b, f, fn, u, c, ce, co) {
|
|
1849
|
+
var fl = fn.length, ex = f.extra, col = co && co.length;
|
|
1850
|
+
var exl = exfl(ex);
|
|
1851
|
+
wbytes(d, b, ce != null ? 0x2014B50 : 0x4034B50), b += 4;
|
|
1852
|
+
if (ce != null)
|
|
1853
|
+
d[b++] = 20, d[b++] = f.os;
|
|
1854
|
+
d[b] = 20, b += 2; // spec compliance? what's that?
|
|
1855
|
+
d[b++] = (f.flag << 1) | (c < 0 && 8), d[b++] = u && 8;
|
|
1856
|
+
d[b++] = f.compression & 255, d[b++] = f.compression >> 8;
|
|
1857
|
+
var dt = new Date(f.mtime == null ? Date.now() : f.mtime), y = dt.getFullYear() - 1980;
|
|
1858
|
+
if (y < 0 || y > 119)
|
|
1859
|
+
err(10);
|
|
1860
|
+
wbytes(d, b, (y << 25) | ((dt.getMonth() + 1) << 21) | (dt.getDate() << 16) | (dt.getHours() << 11) | (dt.getMinutes() << 5) | (dt.getSeconds() >> 1)), b += 4;
|
|
1861
|
+
if (c != -1) {
|
|
1862
|
+
wbytes(d, b, f.crc);
|
|
1863
|
+
wbytes(d, b + 4, c < 0 ? -c - 2 : c);
|
|
1864
|
+
wbytes(d, b + 8, f.size);
|
|
1865
|
+
}
|
|
1866
|
+
wbytes(d, b + 12, fl);
|
|
1867
|
+
wbytes(d, b + 14, exl), b += 16;
|
|
1868
|
+
if (ce != null) {
|
|
1869
|
+
wbytes(d, b, col);
|
|
1870
|
+
wbytes(d, b + 6, f.attrs);
|
|
1871
|
+
wbytes(d, b + 10, ce), b += 14;
|
|
1872
|
+
}
|
|
1873
|
+
d.set(fn, b);
|
|
1874
|
+
b += fl;
|
|
1875
|
+
if (exl) {
|
|
1876
|
+
for (var k in ex) {
|
|
1877
|
+
var exf = ex[k], l = exf.length;
|
|
1878
|
+
wbytes(d, b, +k);
|
|
1879
|
+
wbytes(d, b + 2, l);
|
|
1880
|
+
d.set(exf, b + 4), b += 4 + l;
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
if (col)
|
|
1884
|
+
d.set(co, b), b += col;
|
|
1885
|
+
return b;
|
|
1886
|
+
};
|
|
1887
|
+
// write zip footer (end of central directory)
|
|
1888
|
+
var wzf = function (o, b, c, d, e) {
|
|
1889
|
+
wbytes(o, b, 0x6054B50); // skip disk
|
|
1890
|
+
wbytes(o, b + 8, c);
|
|
1891
|
+
wbytes(o, b + 10, c);
|
|
1892
|
+
wbytes(o, b + 12, d);
|
|
1893
|
+
wbytes(o, b + 16, e);
|
|
1894
|
+
};
|
|
1895
|
+
/**
|
|
1896
|
+
* A pass-through stream to keep data uncompressed in a ZIP archive.
|
|
1897
|
+
*/
|
|
1898
|
+
var ZipPassThrough = /*#__PURE__*/ (function () {
|
|
1899
|
+
/**
|
|
1900
|
+
* Creates a pass-through stream that can be added to ZIP archives
|
|
1901
|
+
* @param filename The filename to associate with this data stream
|
|
1902
|
+
*/
|
|
1903
|
+
function ZipPassThrough(filename) {
|
|
1904
|
+
this.filename = filename;
|
|
1905
|
+
this.c = crc();
|
|
1906
|
+
this.size = 0;
|
|
1907
|
+
this.compression = 0;
|
|
1908
|
+
}
|
|
1909
|
+
/**
|
|
1910
|
+
* Processes a chunk and pushes to the output stream. You can override this
|
|
1911
|
+
* method in a subclass for custom behavior, but by default this passes
|
|
1912
|
+
* the data through. You must call this.ondata(err, chunk, final) at some
|
|
1913
|
+
* point in this method.
|
|
1914
|
+
* @param chunk The chunk to process
|
|
1915
|
+
* @param final Whether this is the last chunk
|
|
1916
|
+
*/
|
|
1917
|
+
ZipPassThrough.prototype.process = function (chunk, final) {
|
|
1918
|
+
this.ondata(null, chunk, final);
|
|
1919
|
+
};
|
|
1920
|
+
/**
|
|
1921
|
+
* Pushes a chunk to be added. If you are subclassing this with a custom
|
|
1922
|
+
* compression algorithm, note that you must push data from the source
|
|
1923
|
+
* file only, pre-compression.
|
|
1924
|
+
* @param chunk The chunk to push
|
|
1925
|
+
* @param final Whether this is the last chunk
|
|
1926
|
+
*/
|
|
1927
|
+
ZipPassThrough.prototype.push = function (chunk, final) {
|
|
1928
|
+
if (!this.ondata)
|
|
1929
|
+
err(5);
|
|
1930
|
+
this.c.p(chunk);
|
|
1931
|
+
this.size += chunk.length;
|
|
1932
|
+
if (final)
|
|
1933
|
+
this.crc = this.c.d();
|
|
1934
|
+
this.process(chunk, final || false);
|
|
1935
|
+
};
|
|
1936
|
+
return ZipPassThrough;
|
|
1937
|
+
}());
|
|
1938
|
+
export { ZipPassThrough };
|
|
1939
|
+
// I don't extend because TypeScript extension adds 1kB of runtime bloat
|
|
1940
|
+
/**
|
|
1941
|
+
* Streaming DEFLATE compression for ZIP archives. Prefer using AsyncZipDeflate
|
|
1942
|
+
* for better performance
|
|
1943
|
+
*/
|
|
1944
|
+
var ZipDeflate = /*#__PURE__*/ (function () {
|
|
1945
|
+
/**
|
|
1946
|
+
* Creates a DEFLATE stream that can be added to ZIP archives
|
|
1947
|
+
* @param filename The filename to associate with this data stream
|
|
1948
|
+
* @param opts The compression options
|
|
1949
|
+
*/
|
|
1950
|
+
function ZipDeflate(filename, opts) {
|
|
1951
|
+
var _this = this;
|
|
1952
|
+
if (!opts)
|
|
1953
|
+
opts = {};
|
|
1954
|
+
ZipPassThrough.call(this, filename);
|
|
1955
|
+
this.d = new Deflate(opts, function (dat, final) {
|
|
1956
|
+
_this.ondata(null, dat, final);
|
|
1957
|
+
});
|
|
1958
|
+
this.compression = 8;
|
|
1959
|
+
this.flag = dbf(opts.level);
|
|
1960
|
+
}
|
|
1961
|
+
ZipDeflate.prototype.process = function (chunk, final) {
|
|
1962
|
+
try {
|
|
1963
|
+
this.d.push(chunk, final);
|
|
1964
|
+
}
|
|
1965
|
+
catch (e) {
|
|
1966
|
+
this.ondata(e, null, final);
|
|
1967
|
+
}
|
|
1968
|
+
};
|
|
1969
|
+
/**
|
|
1970
|
+
* Pushes a chunk to be deflated
|
|
1971
|
+
* @param chunk The chunk to push
|
|
1972
|
+
* @param final Whether this is the last chunk
|
|
1973
|
+
*/
|
|
1974
|
+
ZipDeflate.prototype.push = function (chunk, final) {
|
|
1975
|
+
ZipPassThrough.prototype.push.call(this, chunk, final);
|
|
1976
|
+
};
|
|
1977
|
+
return ZipDeflate;
|
|
1978
|
+
}());
|
|
1979
|
+
export { ZipDeflate };
|
|
1980
|
+
/**
|
|
1981
|
+
* Asynchronous streaming DEFLATE compression for ZIP archives
|
|
1982
|
+
*/
|
|
1983
|
+
var AsyncZipDeflate = /*#__PURE__*/ (function () {
|
|
1984
|
+
/**
|
|
1985
|
+
* Creates an asynchronous DEFLATE stream that can be added to ZIP archives
|
|
1986
|
+
* @param filename The filename to associate with this data stream
|
|
1987
|
+
* @param opts The compression options
|
|
1988
|
+
*/
|
|
1989
|
+
function AsyncZipDeflate(filename, opts) {
|
|
1990
|
+
var _this = this;
|
|
1991
|
+
if (!opts)
|
|
1992
|
+
opts = {};
|
|
1993
|
+
ZipPassThrough.call(this, filename);
|
|
1994
|
+
this.d = new AsyncDeflate(opts, function (err, dat, final) {
|
|
1995
|
+
_this.ondata(err, dat, final);
|
|
1996
|
+
});
|
|
1997
|
+
this.compression = 8;
|
|
1998
|
+
this.flag = dbf(opts.level);
|
|
1999
|
+
this.terminate = this.d.terminate;
|
|
2000
|
+
}
|
|
2001
|
+
AsyncZipDeflate.prototype.process = function (chunk, final) {
|
|
2002
|
+
this.d.push(chunk, final);
|
|
2003
|
+
};
|
|
2004
|
+
/**
|
|
2005
|
+
* Pushes a chunk to be deflated
|
|
2006
|
+
* @param chunk The chunk to push
|
|
2007
|
+
* @param final Whether this is the last chunk
|
|
2008
|
+
*/
|
|
2009
|
+
AsyncZipDeflate.prototype.push = function (chunk, final) {
|
|
2010
|
+
ZipPassThrough.prototype.push.call(this, chunk, final);
|
|
2011
|
+
};
|
|
2012
|
+
return AsyncZipDeflate;
|
|
2013
|
+
}());
|
|
2014
|
+
export { AsyncZipDeflate };
|
|
2015
|
+
// TODO: Better tree shaking
|
|
2016
|
+
/**
|
|
2017
|
+
* A zippable archive to which files can incrementally be added
|
|
2018
|
+
*/
|
|
2019
|
+
var Zip = /*#__PURE__*/ (function () {
|
|
2020
|
+
/**
|
|
2021
|
+
* Creates an empty ZIP archive to which files can be added
|
|
2022
|
+
* @param cb The callback to call whenever data for the generated ZIP archive
|
|
2023
|
+
* is available
|
|
2024
|
+
*/
|
|
2025
|
+
function Zip(cb) {
|
|
2026
|
+
this.ondata = cb;
|
|
2027
|
+
this.u = [];
|
|
2028
|
+
this.d = 1;
|
|
2029
|
+
}
|
|
2030
|
+
/**
|
|
2031
|
+
* Adds a file to the ZIP archive
|
|
2032
|
+
* @param file The file stream to add
|
|
2033
|
+
*/
|
|
2034
|
+
Zip.prototype.add = function (file) {
|
|
2035
|
+
var _this = this;
|
|
2036
|
+
if (!this.ondata)
|
|
2037
|
+
err(5);
|
|
2038
|
+
// finishing or finished
|
|
2039
|
+
if (this.d & 2)
|
|
2040
|
+
this.ondata(err(4 + (this.d & 1) * 8, 0, 1), null, false);
|
|
2041
|
+
else {
|
|
2042
|
+
var f = strToU8(file.filename), fl_1 = f.length;
|
|
2043
|
+
var com = file.comment, o = com && strToU8(com);
|
|
2044
|
+
var u = fl_1 != file.filename.length || (o && (com.length != o.length));
|
|
2045
|
+
var hl_1 = fl_1 + exfl(file.extra) + 30;
|
|
2046
|
+
if (fl_1 > 65535)
|
|
2047
|
+
this.ondata(err(11, 0, 1), null, false);
|
|
2048
|
+
var header = new u8(hl_1);
|
|
2049
|
+
wzh(header, 0, file, f, u, -1);
|
|
2050
|
+
var chks_1 = [header];
|
|
2051
|
+
var pAll_1 = function () {
|
|
2052
|
+
for (var _i = 0, chks_2 = chks_1; _i < chks_2.length; _i++) {
|
|
2053
|
+
var chk = chks_2[_i];
|
|
2054
|
+
_this.ondata(null, chk, false);
|
|
2055
|
+
}
|
|
2056
|
+
chks_1 = [];
|
|
2057
|
+
};
|
|
2058
|
+
var tr_1 = this.d;
|
|
2059
|
+
this.d = 0;
|
|
2060
|
+
var ind_1 = this.u.length;
|
|
2061
|
+
var uf_1 = mrg(file, {
|
|
2062
|
+
f: f,
|
|
2063
|
+
u: u,
|
|
2064
|
+
o: o,
|
|
2065
|
+
t: function () {
|
|
2066
|
+
if (file.terminate)
|
|
2067
|
+
file.terminate();
|
|
2068
|
+
},
|
|
2069
|
+
r: function () {
|
|
2070
|
+
pAll_1();
|
|
2071
|
+
if (tr_1) {
|
|
2072
|
+
var nxt = _this.u[ind_1 + 1];
|
|
2073
|
+
if (nxt)
|
|
2074
|
+
nxt.r();
|
|
2075
|
+
else
|
|
2076
|
+
_this.d = 1;
|
|
2077
|
+
}
|
|
2078
|
+
tr_1 = 1;
|
|
2079
|
+
}
|
|
2080
|
+
});
|
|
2081
|
+
var cl_1 = 0;
|
|
2082
|
+
file.ondata = function (err, dat, final) {
|
|
2083
|
+
if (err) {
|
|
2084
|
+
_this.ondata(err, dat, final);
|
|
2085
|
+
_this.terminate();
|
|
2086
|
+
}
|
|
2087
|
+
else {
|
|
2088
|
+
cl_1 += dat.length;
|
|
2089
|
+
chks_1.push(dat);
|
|
2090
|
+
if (final) {
|
|
2091
|
+
var dd = new u8(16);
|
|
2092
|
+
wbytes(dd, 0, 0x8074B50);
|
|
2093
|
+
wbytes(dd, 4, file.crc);
|
|
2094
|
+
wbytes(dd, 8, cl_1);
|
|
2095
|
+
wbytes(dd, 12, file.size);
|
|
2096
|
+
chks_1.push(dd);
|
|
2097
|
+
uf_1.c = cl_1, uf_1.b = hl_1 + cl_1 + 16, uf_1.crc = file.crc, uf_1.size = file.size;
|
|
2098
|
+
if (tr_1)
|
|
2099
|
+
uf_1.r();
|
|
2100
|
+
tr_1 = 1;
|
|
2101
|
+
}
|
|
2102
|
+
else if (tr_1)
|
|
2103
|
+
pAll_1();
|
|
2104
|
+
}
|
|
2105
|
+
};
|
|
2106
|
+
this.u.push(uf_1);
|
|
2107
|
+
}
|
|
2108
|
+
};
|
|
2109
|
+
/**
|
|
2110
|
+
* Ends the process of adding files and prepares to emit the final chunks.
|
|
2111
|
+
* This *must* be called after adding all desired files for the resulting
|
|
2112
|
+
* ZIP file to work properly.
|
|
2113
|
+
*/
|
|
2114
|
+
Zip.prototype.end = function () {
|
|
2115
|
+
var _this = this;
|
|
2116
|
+
if (this.d & 2) {
|
|
2117
|
+
this.ondata(err(4 + (this.d & 1) * 8, 0, 1), null, true);
|
|
2118
|
+
return;
|
|
2119
|
+
}
|
|
2120
|
+
if (this.d)
|
|
2121
|
+
this.e();
|
|
2122
|
+
else
|
|
2123
|
+
this.u.push({
|
|
2124
|
+
r: function () {
|
|
2125
|
+
if (!(_this.d & 1))
|
|
2126
|
+
return;
|
|
2127
|
+
_this.u.splice(-1, 1);
|
|
2128
|
+
_this.e();
|
|
2129
|
+
},
|
|
2130
|
+
t: function () { }
|
|
2131
|
+
});
|
|
2132
|
+
this.d = 3;
|
|
2133
|
+
};
|
|
2134
|
+
Zip.prototype.e = function () {
|
|
2135
|
+
var bt = 0, l = 0, tl = 0;
|
|
2136
|
+
for (var _i = 0, _a = this.u; _i < _a.length; _i++) {
|
|
2137
|
+
var f = _a[_i];
|
|
2138
|
+
tl += 46 + f.f.length + exfl(f.extra) + (f.o ? f.o.length : 0);
|
|
2139
|
+
}
|
|
2140
|
+
var out = new u8(tl + 22);
|
|
2141
|
+
for (var _b = 0, _c = this.u; _b < _c.length; _b++) {
|
|
2142
|
+
var f = _c[_b];
|
|
2143
|
+
wzh(out, bt, f, f.f, f.u, -f.c - 2, l, f.o);
|
|
2144
|
+
bt += 46 + f.f.length + exfl(f.extra) + (f.o ? f.o.length : 0), l += f.b;
|
|
2145
|
+
}
|
|
2146
|
+
wzf(out, bt, this.u.length, tl, l);
|
|
2147
|
+
this.ondata(null, out, true);
|
|
2148
|
+
this.d = 2;
|
|
2149
|
+
};
|
|
2150
|
+
/**
|
|
2151
|
+
* A method to terminate any internal workers used by the stream. Subsequent
|
|
2152
|
+
* calls to add() will fail.
|
|
2153
|
+
*/
|
|
2154
|
+
Zip.prototype.terminate = function () {
|
|
2155
|
+
for (var _i = 0, _a = this.u; _i < _a.length; _i++) {
|
|
2156
|
+
var f = _a[_i];
|
|
2157
|
+
f.t();
|
|
2158
|
+
}
|
|
2159
|
+
this.d = 2;
|
|
2160
|
+
};
|
|
2161
|
+
return Zip;
|
|
2162
|
+
}());
|
|
2163
|
+
export { Zip };
|
|
2164
|
+
export function zip(data, opts, cb) {
|
|
2165
|
+
if (!cb)
|
|
2166
|
+
cb = opts, opts = {};
|
|
2167
|
+
if (typeof cb != 'function')
|
|
2168
|
+
err(7);
|
|
2169
|
+
var r = {};
|
|
2170
|
+
fltn(data, '', r, opts);
|
|
2171
|
+
var k = Object.keys(r);
|
|
2172
|
+
var lft = k.length, o = 0, tot = 0;
|
|
2173
|
+
var slft = lft, files = new Array(lft);
|
|
2174
|
+
var term = [];
|
|
2175
|
+
var tAll = function () {
|
|
2176
|
+
for (var i = 0; i < term.length; ++i)
|
|
2177
|
+
term[i]();
|
|
2178
|
+
};
|
|
2179
|
+
var cbd = function (a, b) {
|
|
2180
|
+
mt(function () { cb(a, b); });
|
|
2181
|
+
};
|
|
2182
|
+
mt(function () { cbd = cb; });
|
|
2183
|
+
var cbf = function () {
|
|
2184
|
+
var out = new u8(tot + 22), oe = o, cdl = tot - o;
|
|
2185
|
+
tot = 0;
|
|
2186
|
+
for (var i = 0; i < slft; ++i) {
|
|
2187
|
+
var f = files[i];
|
|
2188
|
+
try {
|
|
2189
|
+
var l = f.c.length;
|
|
2190
|
+
wzh(out, tot, f, f.f, f.u, l);
|
|
2191
|
+
var badd = 30 + f.f.length + exfl(f.extra);
|
|
2192
|
+
var loc = tot + badd;
|
|
2193
|
+
out.set(f.c, loc);
|
|
2194
|
+
wzh(out, o, f, f.f, f.u, l, tot, f.m), o += 16 + badd + (f.m ? f.m.length : 0), tot = loc + l;
|
|
2195
|
+
}
|
|
2196
|
+
catch (e) {
|
|
2197
|
+
return cbd(e, null);
|
|
2198
|
+
}
|
|
2199
|
+
}
|
|
2200
|
+
wzf(out, o, files.length, cdl, oe);
|
|
2201
|
+
cbd(null, out);
|
|
2202
|
+
};
|
|
2203
|
+
if (!lft)
|
|
2204
|
+
cbf();
|
|
2205
|
+
var _loop_1 = function (i) {
|
|
2206
|
+
var fn = k[i];
|
|
2207
|
+
var _a = r[fn], file = _a[0], p = _a[1];
|
|
2208
|
+
var c = crc(), size = file.length;
|
|
2209
|
+
c.p(file);
|
|
2210
|
+
var f = strToU8(fn), s = f.length;
|
|
2211
|
+
var com = p.comment, m = com && strToU8(com), ms = m && m.length;
|
|
2212
|
+
var exl = exfl(p.extra);
|
|
2213
|
+
var compression = p.level == 0 ? 0 : 8;
|
|
2214
|
+
var cbl = function (e, d) {
|
|
2215
|
+
if (e) {
|
|
2216
|
+
tAll();
|
|
2217
|
+
cbd(e, null);
|
|
2218
|
+
}
|
|
2219
|
+
else {
|
|
2220
|
+
var l = d.length;
|
|
2221
|
+
files[i] = mrg(p, {
|
|
2222
|
+
size: size,
|
|
2223
|
+
crc: c.d(),
|
|
2224
|
+
c: d,
|
|
2225
|
+
f: f,
|
|
2226
|
+
m: m,
|
|
2227
|
+
u: s != fn.length || (m && (com.length != ms)),
|
|
2228
|
+
compression: compression
|
|
2229
|
+
});
|
|
2230
|
+
o += 30 + s + exl + l;
|
|
2231
|
+
tot += 76 + 2 * (s + exl) + (ms || 0) + l;
|
|
2232
|
+
if (!--lft)
|
|
2233
|
+
cbf();
|
|
2234
|
+
}
|
|
2235
|
+
};
|
|
2236
|
+
if (s > 65535)
|
|
2237
|
+
cbl(err(11, 0, 1), null);
|
|
2238
|
+
if (!compression)
|
|
2239
|
+
cbl(null, file);
|
|
2240
|
+
else if (size < 160000) {
|
|
2241
|
+
try {
|
|
2242
|
+
cbl(null, deflateSync(file, p));
|
|
2243
|
+
}
|
|
2244
|
+
catch (e) {
|
|
2245
|
+
cbl(e, null);
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
else
|
|
2249
|
+
term.push(deflate(file, p, cbl));
|
|
2250
|
+
};
|
|
2251
|
+
// Cannot use lft because it can decrease
|
|
2252
|
+
for (var i = 0; i < slft; ++i) {
|
|
2253
|
+
_loop_1(i);
|
|
2254
|
+
}
|
|
2255
|
+
return tAll;
|
|
2256
|
+
}
|
|
2257
|
+
/**
|
|
2258
|
+
* Synchronously creates a ZIP file. Prefer using `zip` for better performance
|
|
2259
|
+
* with more than one file.
|
|
2260
|
+
* @param data The directory structure for the ZIP archive
|
|
2261
|
+
* @param opts The main options, merged with per-file options
|
|
2262
|
+
* @returns The generated ZIP archive
|
|
2263
|
+
*/
|
|
2264
|
+
export function zipSync(data, opts) {
|
|
2265
|
+
if (!opts)
|
|
2266
|
+
opts = {};
|
|
2267
|
+
var r = {};
|
|
2268
|
+
var files = [];
|
|
2269
|
+
fltn(data, '', r, opts);
|
|
2270
|
+
var o = 0;
|
|
2271
|
+
var tot = 0;
|
|
2272
|
+
for (var fn in r) {
|
|
2273
|
+
var _a = r[fn], file = _a[0], p = _a[1];
|
|
2274
|
+
var compression = p.level == 0 ? 0 : 8;
|
|
2275
|
+
var f = strToU8(fn), s = f.length;
|
|
2276
|
+
var com = p.comment, m = com && strToU8(com), ms = m && m.length;
|
|
2277
|
+
var exl = exfl(p.extra);
|
|
2278
|
+
if (s > 65535)
|
|
2279
|
+
err(11);
|
|
2280
|
+
var d = compression ? deflateSync(file, p) : file, l = d.length;
|
|
2281
|
+
var c = crc();
|
|
2282
|
+
c.p(file);
|
|
2283
|
+
files.push(mrg(p, {
|
|
2284
|
+
size: file.length,
|
|
2285
|
+
crc: c.d(),
|
|
2286
|
+
c: d,
|
|
2287
|
+
f: f,
|
|
2288
|
+
m: m,
|
|
2289
|
+
u: s != fn.length || (m && (com.length != ms)),
|
|
2290
|
+
o: o,
|
|
2291
|
+
compression: compression
|
|
2292
|
+
}));
|
|
2293
|
+
o += 30 + s + exl + l;
|
|
2294
|
+
tot += 76 + 2 * (s + exl) + (ms || 0) + l;
|
|
2295
|
+
}
|
|
2296
|
+
var out = new u8(tot + 22), oe = o, cdl = tot - o;
|
|
2297
|
+
for (var i = 0; i < files.length; ++i) {
|
|
2298
|
+
var f = files[i];
|
|
2299
|
+
wzh(out, f.o, f, f.f, f.u, f.c.length);
|
|
2300
|
+
var badd = 30 + f.f.length + exfl(f.extra);
|
|
2301
|
+
out.set(f.c, f.o + badd);
|
|
2302
|
+
wzh(out, o, f, f.f, f.u, f.c.length, f.o, f.m), o += 16 + badd + (f.m ? f.m.length : 0);
|
|
2303
|
+
}
|
|
2304
|
+
wzf(out, o, files.length, cdl, oe);
|
|
2305
|
+
return out;
|
|
2306
|
+
}
|
|
2307
|
+
/**
|
|
2308
|
+
* Streaming pass-through decompression for ZIP archives
|
|
2309
|
+
*/
|
|
2310
|
+
var UnzipPassThrough = /*#__PURE__*/ (function () {
|
|
2311
|
+
function UnzipPassThrough() {
|
|
2312
|
+
}
|
|
2313
|
+
UnzipPassThrough.prototype.push = function (data, final) {
|
|
2314
|
+
this.ondata(null, data, final);
|
|
2315
|
+
};
|
|
2316
|
+
UnzipPassThrough.compression = 0;
|
|
2317
|
+
return UnzipPassThrough;
|
|
2318
|
+
}());
|
|
2319
|
+
export { UnzipPassThrough };
|
|
2320
|
+
/**
|
|
2321
|
+
* Streaming DEFLATE decompression for ZIP archives. Prefer AsyncZipInflate for
|
|
2322
|
+
* better performance.
|
|
2323
|
+
*/
|
|
2324
|
+
var UnzipInflate = /*#__PURE__*/ (function () {
|
|
2325
|
+
/**
|
|
2326
|
+
* Creates a DEFLATE decompression that can be used in ZIP archives
|
|
2327
|
+
*/
|
|
2328
|
+
function UnzipInflate() {
|
|
2329
|
+
var _this = this;
|
|
2330
|
+
this.i = new Inflate(function (dat, final) {
|
|
2331
|
+
_this.ondata(null, dat, final);
|
|
2332
|
+
});
|
|
2333
|
+
}
|
|
2334
|
+
UnzipInflate.prototype.push = function (data, final) {
|
|
2335
|
+
try {
|
|
2336
|
+
this.i.push(data, final);
|
|
2337
|
+
}
|
|
2338
|
+
catch (e) {
|
|
2339
|
+
this.ondata(e, null, final);
|
|
2340
|
+
}
|
|
2341
|
+
};
|
|
2342
|
+
UnzipInflate.compression = 8;
|
|
2343
|
+
return UnzipInflate;
|
|
2344
|
+
}());
|
|
2345
|
+
export { UnzipInflate };
|
|
2346
|
+
/**
|
|
2347
|
+
* Asynchronous streaming DEFLATE decompression for ZIP archives
|
|
2348
|
+
*/
|
|
2349
|
+
var AsyncUnzipInflate = /*#__PURE__*/ (function () {
|
|
2350
|
+
/**
|
|
2351
|
+
* Creates a DEFLATE decompression that can be used in ZIP archives
|
|
2352
|
+
*/
|
|
2353
|
+
function AsyncUnzipInflate(_, sz) {
|
|
2354
|
+
var _this = this;
|
|
2355
|
+
if (sz < 320000) {
|
|
2356
|
+
this.i = new Inflate(function (dat, final) {
|
|
2357
|
+
_this.ondata(null, dat, final);
|
|
2358
|
+
});
|
|
2359
|
+
}
|
|
2360
|
+
else {
|
|
2361
|
+
this.i = new AsyncInflate(function (err, dat, final) {
|
|
2362
|
+
_this.ondata(err, dat, final);
|
|
2363
|
+
});
|
|
2364
|
+
this.terminate = this.i.terminate;
|
|
2365
|
+
}
|
|
2366
|
+
}
|
|
2367
|
+
AsyncUnzipInflate.prototype.push = function (data, final) {
|
|
2368
|
+
if (this.i.terminate)
|
|
2369
|
+
data = slc(data, 0);
|
|
2370
|
+
this.i.push(data, final);
|
|
2371
|
+
};
|
|
2372
|
+
AsyncUnzipInflate.compression = 8;
|
|
2373
|
+
return AsyncUnzipInflate;
|
|
2374
|
+
}());
|
|
2375
|
+
export { AsyncUnzipInflate };
|
|
2376
|
+
/**
|
|
2377
|
+
* A ZIP archive decompression stream that emits files as they are discovered
|
|
2378
|
+
*/
|
|
2379
|
+
var Unzip = /*#__PURE__*/ (function () {
|
|
2380
|
+
/**
|
|
2381
|
+
* Creates a ZIP decompression stream
|
|
2382
|
+
* @param cb The callback to call whenever a file in the ZIP archive is found
|
|
2383
|
+
*/
|
|
2384
|
+
function Unzip(cb) {
|
|
2385
|
+
this.onfile = cb;
|
|
2386
|
+
this.k = [];
|
|
2387
|
+
this.o = {
|
|
2388
|
+
0: UnzipPassThrough
|
|
2389
|
+
};
|
|
2390
|
+
this.p = et;
|
|
2391
|
+
}
|
|
2392
|
+
/**
|
|
2393
|
+
* Pushes a chunk to be unzipped
|
|
2394
|
+
* @param chunk The chunk to push
|
|
2395
|
+
* @param final Whether this is the last chunk
|
|
2396
|
+
*/
|
|
2397
|
+
Unzip.prototype.push = function (chunk, final) {
|
|
2398
|
+
var _this = this;
|
|
2399
|
+
if (!this.onfile)
|
|
2400
|
+
err(5);
|
|
2401
|
+
if (!this.p)
|
|
2402
|
+
err(4);
|
|
2403
|
+
if (this.c > 0) {
|
|
2404
|
+
var len = Math.min(this.c, chunk.length);
|
|
2405
|
+
var toAdd = chunk.subarray(0, len);
|
|
2406
|
+
this.c -= len;
|
|
2407
|
+
if (this.d)
|
|
2408
|
+
this.d.push(toAdd, !this.c);
|
|
2409
|
+
else
|
|
2410
|
+
this.k[0].push(toAdd);
|
|
2411
|
+
chunk = chunk.subarray(len);
|
|
2412
|
+
if (chunk.length)
|
|
2413
|
+
return this.push(chunk, final);
|
|
2414
|
+
}
|
|
2415
|
+
else {
|
|
2416
|
+
var f = 0, i = 0, is = void 0, buf = void 0;
|
|
2417
|
+
if (!this.p.length)
|
|
2418
|
+
buf = chunk;
|
|
2419
|
+
else if (!chunk.length)
|
|
2420
|
+
buf = this.p;
|
|
2421
|
+
else {
|
|
2422
|
+
buf = new u8(this.p.length + chunk.length);
|
|
2423
|
+
buf.set(this.p), buf.set(chunk, this.p.length);
|
|
2424
|
+
}
|
|
2425
|
+
var l = buf.length, oc = this.c, add = oc && this.d;
|
|
2426
|
+
var _loop_2 = function () {
|
|
2427
|
+
var _a;
|
|
2428
|
+
var sig = b4(buf, i);
|
|
2429
|
+
if (sig == 0x4034B50) {
|
|
2430
|
+
f = 1, is = i;
|
|
2431
|
+
this_1.d = null;
|
|
2432
|
+
this_1.c = 0;
|
|
2433
|
+
var bf = b2(buf, i + 6), cmp_1 = b2(buf, i + 8), u = bf & 2048, dd = bf & 8, fnl = b2(buf, i + 26), es = b2(buf, i + 28);
|
|
2434
|
+
if (l > i + 30 + fnl + es) {
|
|
2435
|
+
var chks_3 = [];
|
|
2436
|
+
this_1.k.unshift(chks_3);
|
|
2437
|
+
f = 2;
|
|
2438
|
+
var sc_1 = b4(buf, i + 18), su_1 = b4(buf, i + 22);
|
|
2439
|
+
var fn_1 = strFromU8(buf.subarray(i + 30, i += 30 + fnl), !u);
|
|
2440
|
+
if (sc_1 == 4294967295) {
|
|
2441
|
+
_a = dd ? [-2] : z64e(buf, i), sc_1 = _a[0], su_1 = _a[1];
|
|
2442
|
+
}
|
|
2443
|
+
else if (dd)
|
|
2444
|
+
sc_1 = -1;
|
|
2445
|
+
i += es;
|
|
2446
|
+
this_1.c = sc_1;
|
|
2447
|
+
var d_1;
|
|
2448
|
+
var file_1 = {
|
|
2449
|
+
name: fn_1,
|
|
2450
|
+
compression: cmp_1,
|
|
2451
|
+
start: function () {
|
|
2452
|
+
if (!file_1.ondata)
|
|
2453
|
+
err(5);
|
|
2454
|
+
if (!sc_1)
|
|
2455
|
+
file_1.ondata(null, et, true);
|
|
2456
|
+
else {
|
|
2457
|
+
var ctr = _this.o[cmp_1];
|
|
2458
|
+
if (!ctr)
|
|
2459
|
+
file_1.ondata(err(14, 'unknown compression type ' + cmp_1, 1), null, false);
|
|
2460
|
+
d_1 = sc_1 < 0 ? new ctr(fn_1) : new ctr(fn_1, sc_1, su_1);
|
|
2461
|
+
d_1.ondata = function (err, dat, final) { file_1.ondata(err, dat, final); };
|
|
2462
|
+
for (var _i = 0, chks_4 = chks_3; _i < chks_4.length; _i++) {
|
|
2463
|
+
var dat = chks_4[_i];
|
|
2464
|
+
d_1.push(dat, false);
|
|
2465
|
+
}
|
|
2466
|
+
if (_this.k[0] == chks_3 && _this.c)
|
|
2467
|
+
_this.d = d_1;
|
|
2468
|
+
else
|
|
2469
|
+
d_1.push(et, true);
|
|
2470
|
+
}
|
|
2471
|
+
},
|
|
2472
|
+
terminate: function () {
|
|
2473
|
+
if (d_1 && d_1.terminate)
|
|
2474
|
+
d_1.terminate();
|
|
2475
|
+
}
|
|
2476
|
+
};
|
|
2477
|
+
if (sc_1 >= 0)
|
|
2478
|
+
file_1.size = sc_1, file_1.originalSize = su_1;
|
|
2479
|
+
this_1.onfile(file_1);
|
|
2480
|
+
}
|
|
2481
|
+
return "break";
|
|
2482
|
+
}
|
|
2483
|
+
else if (oc) {
|
|
2484
|
+
if (sig == 0x8074B50) {
|
|
2485
|
+
is = i += 12 + (oc == -2 && 8), f = 3, this_1.c = 0;
|
|
2486
|
+
return "break";
|
|
2487
|
+
}
|
|
2488
|
+
else if (sig == 0x2014B50) {
|
|
2489
|
+
is = i -= 4, f = 3, this_1.c = 0;
|
|
2490
|
+
return "break";
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
};
|
|
2494
|
+
var this_1 = this;
|
|
2495
|
+
for (; i < l - 4; ++i) {
|
|
2496
|
+
var state_1 = _loop_2();
|
|
2497
|
+
if (state_1 === "break")
|
|
2498
|
+
break;
|
|
2499
|
+
}
|
|
2500
|
+
this.p = et;
|
|
2501
|
+
if (oc < 0) {
|
|
2502
|
+
var dat = f ? buf.subarray(0, is - 12 - (oc == -2 && 8) - (b4(buf, is - 16) == 0x8074B50 && 4)) : buf.subarray(0, i);
|
|
2503
|
+
if (add)
|
|
2504
|
+
add.push(dat, !!f);
|
|
2505
|
+
else
|
|
2506
|
+
this.k[+(f == 2)].push(dat);
|
|
2507
|
+
}
|
|
2508
|
+
if (f & 2)
|
|
2509
|
+
return this.push(buf.subarray(i), final);
|
|
2510
|
+
this.p = buf.subarray(i);
|
|
2511
|
+
}
|
|
2512
|
+
if (final) {
|
|
2513
|
+
if (this.c)
|
|
2514
|
+
err(13);
|
|
2515
|
+
this.p = null;
|
|
2516
|
+
}
|
|
2517
|
+
};
|
|
2518
|
+
/**
|
|
2519
|
+
* Registers a decoder with the stream, allowing for files compressed with
|
|
2520
|
+
* the compression type provided to be expanded correctly
|
|
2521
|
+
* @param decoder The decoder constructor
|
|
2522
|
+
*/
|
|
2523
|
+
Unzip.prototype.register = function (decoder) {
|
|
2524
|
+
this.o[decoder.compression] = decoder;
|
|
2525
|
+
};
|
|
2526
|
+
return Unzip;
|
|
2527
|
+
}());
|
|
2528
|
+
export { Unzip };
|
|
2529
|
+
var mt = typeof queueMicrotask == 'function' ? queueMicrotask : typeof setTimeout == 'function' ? setTimeout : function (fn) { fn(); };
|
|
2530
|
+
export function unzip(data, opts, cb) {
|
|
2531
|
+
if (!cb)
|
|
2532
|
+
cb = opts, opts = {};
|
|
2533
|
+
if (typeof cb != 'function')
|
|
2534
|
+
err(7);
|
|
2535
|
+
var term = [];
|
|
2536
|
+
var tAll = function () {
|
|
2537
|
+
for (var i = 0; i < term.length; ++i)
|
|
2538
|
+
term[i]();
|
|
2539
|
+
};
|
|
2540
|
+
var files = {};
|
|
2541
|
+
var cbd = function (a, b) {
|
|
2542
|
+
mt(function () { cb(a, b); });
|
|
2543
|
+
};
|
|
2544
|
+
mt(function () { cbd = cb; });
|
|
2545
|
+
var e = data.length - 22;
|
|
2546
|
+
for (; b4(data, e) != 0x6054B50; --e) {
|
|
2547
|
+
if (!e || data.length - e > 65558) {
|
|
2548
|
+
cbd(err(13, 0, 1), null);
|
|
2549
|
+
return tAll;
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
;
|
|
2553
|
+
var lft = b2(data, e + 8);
|
|
2554
|
+
if (lft) {
|
|
2555
|
+
var c = lft;
|
|
2556
|
+
var o = b4(data, e + 16);
|
|
2557
|
+
var z = o == 4294967295 || c == 65535;
|
|
2558
|
+
if (z) {
|
|
2559
|
+
var ze = b4(data, e - 12);
|
|
2560
|
+
z = b4(data, ze) == 0x6064B50;
|
|
2561
|
+
if (z) {
|
|
2562
|
+
c = lft = b4(data, ze + 32);
|
|
2563
|
+
o = b4(data, ze + 48);
|
|
2564
|
+
}
|
|
2565
|
+
}
|
|
2566
|
+
var fltr = opts && opts.filter;
|
|
2567
|
+
var _loop_3 = function (i) {
|
|
2568
|
+
var _a = zh(data, o, z), c_1 = _a[0], sc = _a[1], su = _a[2], fn = _a[3], no = _a[4], off = _a[5], b = slzh(data, off);
|
|
2569
|
+
o = no;
|
|
2570
|
+
var cbl = function (e, d) {
|
|
2571
|
+
if (e) {
|
|
2572
|
+
tAll();
|
|
2573
|
+
cbd(e, null);
|
|
2574
|
+
}
|
|
2575
|
+
else {
|
|
2576
|
+
if (d)
|
|
2577
|
+
files[fn] = d;
|
|
2578
|
+
if (!--lft)
|
|
2579
|
+
cbd(null, files);
|
|
2580
|
+
}
|
|
2581
|
+
};
|
|
2582
|
+
if (!fltr || fltr({
|
|
2583
|
+
name: fn,
|
|
2584
|
+
size: sc,
|
|
2585
|
+
originalSize: su,
|
|
2586
|
+
compression: c_1
|
|
2587
|
+
})) {
|
|
2588
|
+
if (!c_1)
|
|
2589
|
+
cbl(null, slc(data, b, b + sc));
|
|
2590
|
+
else if (c_1 == 8) {
|
|
2591
|
+
var infl = data.subarray(b, b + sc);
|
|
2592
|
+
// Synchronously decompress under 512KB, or barely-compressed data
|
|
2593
|
+
if (su < 524288 || sc > 0.8 * su) {
|
|
2594
|
+
try {
|
|
2595
|
+
cbl(null, inflateSync(infl, { out: new u8(su) }));
|
|
2596
|
+
}
|
|
2597
|
+
catch (e) {
|
|
2598
|
+
cbl(e, null);
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2601
|
+
else
|
|
2602
|
+
term.push(inflate(infl, { size: su }, cbl));
|
|
2603
|
+
}
|
|
2604
|
+
else
|
|
2605
|
+
cbl(err(14, 'unknown compression type ' + c_1, 1), null);
|
|
2606
|
+
}
|
|
2607
|
+
else
|
|
2608
|
+
cbl(null, null);
|
|
2609
|
+
};
|
|
2610
|
+
for (var i = 0; i < c; ++i) {
|
|
2611
|
+
_loop_3(i);
|
|
2612
|
+
}
|
|
2613
|
+
}
|
|
2614
|
+
else
|
|
2615
|
+
cbd(null, {});
|
|
2616
|
+
return tAll;
|
|
2617
|
+
}
|
|
2618
|
+
/**
|
|
2619
|
+
* Synchronously decompresses a ZIP archive. Prefer using `unzip` for better
|
|
2620
|
+
* performance with more than one file.
|
|
2621
|
+
* @param data The raw compressed ZIP file
|
|
2622
|
+
* @param opts The ZIP extraction options
|
|
2623
|
+
* @returns The decompressed files
|
|
2624
|
+
*/
|
|
2625
|
+
export function unzipSync(data, opts) {
|
|
2626
|
+
var files = {};
|
|
2627
|
+
var e = data.length - 22;
|
|
2628
|
+
for (; b4(data, e) != 0x6054B50; --e) {
|
|
2629
|
+
if (!e || data.length - e > 65558)
|
|
2630
|
+
err(13);
|
|
2631
|
+
}
|
|
2632
|
+
;
|
|
2633
|
+
var c = b2(data, e + 8);
|
|
2634
|
+
if (!c)
|
|
2635
|
+
return {};
|
|
2636
|
+
var o = b4(data, e + 16);
|
|
2637
|
+
var z = o == 4294967295 || c == 65535;
|
|
2638
|
+
if (z) {
|
|
2639
|
+
var ze = b4(data, e - 12);
|
|
2640
|
+
z = b4(data, ze) == 0x6064B50;
|
|
2641
|
+
if (z) {
|
|
2642
|
+
c = b4(data, ze + 32);
|
|
2643
|
+
o = b4(data, ze + 48);
|
|
2644
|
+
}
|
|
2645
|
+
}
|
|
2646
|
+
var fltr = opts && opts.filter;
|
|
2647
|
+
for (var i = 0; i < c; ++i) {
|
|
2648
|
+
var _a = zh(data, o, z), c_2 = _a[0], sc = _a[1], su = _a[2], fn = _a[3], no = _a[4], off = _a[5], b = slzh(data, off);
|
|
2649
|
+
o = no;
|
|
2650
|
+
if (!fltr || fltr({
|
|
2651
|
+
name: fn,
|
|
2652
|
+
size: sc,
|
|
2653
|
+
originalSize: su,
|
|
2654
|
+
compression: c_2
|
|
2655
|
+
})) {
|
|
2656
|
+
if (!c_2)
|
|
2657
|
+
files[fn] = slc(data, b, b + sc);
|
|
2658
|
+
else if (c_2 == 8)
|
|
2659
|
+
files[fn] = inflateSync(data.subarray(b, b + sc), { out: new u8(su) });
|
|
2660
|
+
else
|
|
2661
|
+
err(14, 'unknown compression type ' + c_2);
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
return files;
|
|
2665
|
+
}
|