@meteora-ag/cp-amm-sdk 1.0.2 → 1.0.4
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/dist/index.d.mts +1201 -322
- package/dist/index.d.ts +1201 -322
- package/dist/index.js +1009 -332
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1010 -333
- package/dist/index.mjs.map +1 -1
- package/node_modules/@babel/runtime/LICENSE +22 -0
- package/node_modules/@babel/runtime/README.md +19 -0
- package/node_modules/@babel/runtime/helpers/AwaitValue.js +4 -0
- package/node_modules/@babel/runtime/helpers/OverloadYield.js +4 -0
- package/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +9 -0
- package/node_modules/@babel/runtime/helpers/applyDecs.js +236 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2203.js +184 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2203R.js +191 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2301.js +222 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2305.js +133 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2311.js +124 -0
- package/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +6 -0
- package/node_modules/@babel/runtime/helpers/arrayWithHoles.js +4 -0
- package/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +5 -0
- package/node_modules/@babel/runtime/helpers/assertClassBrand.js +5 -0
- package/node_modules/@babel/runtime/helpers/assertThisInitialized.js +5 -0
- package/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +24 -0
- package/node_modules/@babel/runtime/helpers/asyncIterator.js +45 -0
- package/node_modules/@babel/runtime/helpers/asyncToGenerator.js +26 -0
- package/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +5 -0
- package/node_modules/@babel/runtime/helpers/callSuper.js +7 -0
- package/node_modules/@babel/runtime/helpers/checkInRHS.js +6 -0
- package/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +4 -0
- package/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +10 -0
- package/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +4 -0
- package/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classCallCheck.js +4 -0
- package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +5 -0
- package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +4 -0
- package/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +5 -0
- package/node_modules/@babel/runtime/helpers/classNameTDZError.js +4 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateGetter.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +4 -0
- package/node_modules/@babel/runtime/helpers/classPrivateSetter.js +5 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +5 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +4 -0
- package/node_modules/@babel/runtime/helpers/construct.js +10 -0
- package/node_modules/@babel/runtime/helpers/createClass.js +13 -0
- package/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +50 -0
- package/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +19 -0
- package/node_modules/@babel/runtime/helpers/createSuper.js +16 -0
- package/node_modules/@babel/runtime/helpers/decorate.js +250 -0
- package/node_modules/@babel/runtime/helpers/defaults.js +9 -0
- package/node_modules/@babel/runtime/helpers/defineAccessor.js +8 -0
- package/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +12 -0
- package/node_modules/@babel/runtime/helpers/defineProperty.js +10 -0
- package/node_modules/@babel/runtime/helpers/dispose.js +28 -0
- package/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs.js +236 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +184 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +191 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +222 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js +133 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js +124 -0
- package/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +24 -0
- package/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +45 -0
- package/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +26 -0
- package/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/callSuper.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/checkInRHS.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/construct.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/createClass.js +13 -0
- package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +50 -0
- package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +19 -0
- package/node_modules/@babel/runtime/helpers/esm/createSuper.js +16 -0
- package/node_modules/@babel/runtime/helpers/esm/decorate.js +250 -0
- package/node_modules/@babel/runtime/helpers/esm/defaults.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +12 -0
- package/node_modules/@babel/runtime/helpers/esm/defineProperty.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/dispose.js +28 -0
- package/node_modules/@babel/runtime/helpers/esm/extends.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/get.js +11 -0
- package/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/identity.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js +27 -0
- package/node_modules/@babel/runtime/helpers/esm/inherits.js +14 -0
- package/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/instanceof.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +22 -0
- package/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +28 -0
- package/node_modules/@babel/runtime/helpers/esm/jsx.js +22 -0
- package/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/objectSpread.js +14 -0
- package/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +23 -0
- package/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +13 -0
- package/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/package.json +3 -0
- package/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +272 -0
- package/node_modules/@babel/runtime/helpers/esm/set.js +22 -0
- package/node_modules/@babel/runtime/helpers/esm/setFunctionName.js +12 -0
- package/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/superPropBase.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/superPropGet.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/superPropSet.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/tdz.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/temporalRef.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +2 -0
- package/node_modules/@babel/runtime/helpers/esm/toArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +12 -0
- package/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/toSetter.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/tsRewriteRelativeImportExtensions.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/typeof.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/using.js +12 -0
- package/node_modules/@babel/runtime/helpers/esm/usingCtx.js +59 -0
- package/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +69 -0
- package/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +27 -0
- package/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +52 -0
- package/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +4 -0
- package/node_modules/@babel/runtime/helpers/extends.js +10 -0
- package/node_modules/@babel/runtime/helpers/get.js +11 -0
- package/node_modules/@babel/runtime/helpers/getPrototypeOf.js +6 -0
- package/node_modules/@babel/runtime/helpers/identity.js +4 -0
- package/node_modules/@babel/runtime/helpers/importDeferProxy.js +27 -0
- package/node_modules/@babel/runtime/helpers/inherits.js +14 -0
- package/node_modules/@babel/runtime/helpers/inheritsLoose.js +5 -0
- package/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +9 -0
- package/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +4 -0
- package/node_modules/@babel/runtime/helpers/instanceof.js +4 -0
- package/node_modules/@babel/runtime/helpers/interopRequireDefault.js +6 -0
- package/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +22 -0
- package/node_modules/@babel/runtime/helpers/isNativeFunction.js +8 -0
- package/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +9 -0
- package/node_modules/@babel/runtime/helpers/iterableToArray.js +4 -0
- package/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +28 -0
- package/node_modules/@babel/runtime/helpers/jsx.js +22 -0
- package/node_modules/@babel/runtime/helpers/maybeArrayLike.js +9 -0
- package/node_modules/@babel/runtime/helpers/newArrowCheck.js +4 -0
- package/node_modules/@babel/runtime/helpers/nonIterableRest.js +4 -0
- package/node_modules/@babel/runtime/helpers/nonIterableSpread.js +4 -0
- package/node_modules/@babel/runtime/helpers/nullishReceiverError.js +4 -0
- package/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +4 -0
- package/node_modules/@babel/runtime/helpers/objectSpread.js +14 -0
- package/node_modules/@babel/runtime/helpers/objectSpread2.js +23 -0
- package/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +13 -0
- package/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +10 -0
- package/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +8 -0
- package/node_modules/@babel/runtime/helpers/readOnlyError.js +4 -0
- package/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +272 -0
- package/node_modules/@babel/runtime/helpers/set.js +22 -0
- package/node_modules/@babel/runtime/helpers/setFunctionName.js +12 -0
- package/node_modules/@babel/runtime/helpers/setPrototypeOf.js +6 -0
- package/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +7 -0
- package/node_modules/@babel/runtime/helpers/slicedToArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/superPropBase.js +6 -0
- package/node_modules/@babel/runtime/helpers/superPropGet.js +9 -0
- package/node_modules/@babel/runtime/helpers/superPropSet.js +6 -0
- package/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +8 -0
- package/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +4 -0
- package/node_modules/@babel/runtime/helpers/tdz.js +4 -0
- package/node_modules/@babel/runtime/helpers/temporalRef.js +6 -0
- package/node_modules/@babel/runtime/helpers/temporalUndefined.js +2 -0
- package/node_modules/@babel/runtime/helpers/toArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/toConsumableArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/toPrimitive.js +12 -0
- package/node_modules/@babel/runtime/helpers/toPropertyKey.js +7 -0
- package/node_modules/@babel/runtime/helpers/toSetter.js +10 -0
- package/node_modules/@babel/runtime/helpers/tsRewriteRelativeImportExtensions.js +6 -0
- package/node_modules/@babel/runtime/helpers/typeof.js +10 -0
- package/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +9 -0
- package/node_modules/@babel/runtime/helpers/using.js +12 -0
- package/node_modules/@babel/runtime/helpers/usingCtx.js +59 -0
- package/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +69 -0
- package/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +27 -0
- package/node_modules/@babel/runtime/helpers/wrapRegExp.js +52 -0
- package/node_modules/@babel/runtime/helpers/writeOnlyError.js +4 -0
- package/node_modules/@babel/runtime/package.json +1062 -0
- package/node_modules/@babel/runtime/regenerator/index.js +15 -0
- package/node_modules/@coral-xyz/anchor/README.md +10 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/index.js +7201 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/accounts.d.ts +27 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/accounts.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/event.d.ts +14 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/event.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/idl.d.ts +32 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/idl.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/index.d.ts +33 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/instruction.d.ts +42 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/instruction.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/types.d.ts +16 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/types.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/index.d.ts +43 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/accounts.d.ts +12 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/accounts.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/events.d.ts +9 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/events.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/index.d.ts +17 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/instruction.d.ts +8 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/instruction.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/types.d.ts +8 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/types.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/error.d.ts +131 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/error.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/idl.d.ts +215 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/idl.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/index.d.ts +16 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/native/index.d.ts +7 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/native/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/native/system.d.ts +390 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/native/system.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/nodewallet.d.ts +14 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/nodewallet.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/accounts-resolver.d.ts +63 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/accounts-resolver.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/common.d.ts +20 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/common.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/context.d.ts +63 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/context.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/event.d.ts +57 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/event.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/index.d.ts +272 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/account.d.ts +146 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/account.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/index.d.ts +35 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/instruction.d.ts +57 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/instruction.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/methods.d.ts +206 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/methods.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/rpc.d.ts +49 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/rpc.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/simulate.d.ts +57 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/simulate.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/transaction.d.ts +42 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/transaction.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/types.d.ts +153 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/types.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/views.d.ts +15 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/views.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/token-account-layout.d.ts +2 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/program/token-account-layout.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/provider.d.ts +104 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/provider.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/base64.d.ts +4 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/base64.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/bs58.d.ts +3 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/bs58.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/hex.d.ts +4 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/hex.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/index.d.ts +5 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/utf8.d.ts +3 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/utf8.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/common.d.ts +22 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/common.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/features.d.ts +3 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/features.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/index.d.ts +8 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/pubkey.d.ts +3 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/pubkey.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/registry.d.ts +34 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/registry.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/rpc.d.ts +21 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/rpc.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/sha256.d.ts +2 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/sha256.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/token.d.ts +8 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/token.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/workspace.d.ts +14 -0
- package/node_modules/@coral-xyz/anchor/dist/browser/src/workspace.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/accounts.d.ts +27 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/accounts.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/accounts.js +103 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/accounts.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/event.d.ts +14 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/event.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/event.js +78 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/event.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/idl.d.ts +32 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/idl.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/idl.js +419 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/idl.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/index.d.ts +33 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/index.js +27 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/instruction.d.ts +42 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/instruction.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/instruction.js +274 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/instruction.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/types.d.ts +16 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/types.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/types.js +42 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/types.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/index.d.ts +43 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/index.js +19 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/accounts.d.ts +12 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/accounts.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/accounts.js +107 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/accounts.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/events.d.ts +9 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/events.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/events.js +11 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/events.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/index.d.ts +17 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/index.js +20 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/instruction.d.ts +8 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/instruction.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/instruction.js +242 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/instruction.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/types.d.ts +8 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/types.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/types.js +14 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/types.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/error.d.ts +131 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/error.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/error.js +583 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/error.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/idl.d.ts +215 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/idl.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/idl.js +109 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/idl.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/index.d.ts +16 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/index.js +50 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/native/index.d.ts +7 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/native/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/native/index.js +11 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/native/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/native/system.d.ts +390 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/native/system.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/native/system.js +394 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/native/system.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/nodewallet.d.ts +14 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/nodewallet.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/nodewallet.js +48 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/nodewallet.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/accounts-resolver.d.ts +63 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/accounts-resolver.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/accounts-resolver.js +437 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/accounts-resolver.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/common.d.ts +20 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/common.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/common.js +49 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/common.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/context.d.ts +63 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/context.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/context.js +16 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/context.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/event.d.ts +57 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/event.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/event.js +207 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/event.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/index.d.ts +272 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/index.js +177 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/account.d.ts +146 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/account.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/account.js +257 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/account.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/index.d.ts +35 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/index.js +63 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/instruction.d.ts +57 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/instruction.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/instruction.js +94 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/instruction.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/methods.d.ts +206 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/methods.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/methods.js +309 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/methods.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/rpc.d.ts +49 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/rpc.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/rpc.js +25 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/rpc.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/simulate.d.ts +57 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/simulate.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/simulate.js +42 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/simulate.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/transaction.d.ts +42 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/transaction.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/transaction.js +24 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/transaction.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/types.d.ts +153 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/types.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/types.js +3 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/types.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/views.d.ts +15 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/views.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/views.js +30 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/views.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/token-account-layout.d.ts +2 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/token-account-layout.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/token-account-layout.js +136 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/program/token-account-layout.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/provider.d.ts +104 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/provider.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/provider.js +309 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/provider.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/base64.d.ts +4 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/base64.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/base64.js +12 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/base64.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/bs58.d.ts +3 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/bs58.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/bs58.js +15 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/bs58.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/hex.d.ts +4 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/hex.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/hex.js +22 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/hex.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/index.d.ts +5 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/index.js +31 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/utf8.d.ts +3 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/utf8.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/utf8.js +18 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/utf8.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/common.d.ts +22 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/common.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/common.js +32 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/common.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/features.d.ts +3 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/features.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/features.js +16 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/features.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/index.d.ts +8 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/index.js +34 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/pubkey.d.ts +3 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/pubkey.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/pubkey.js +16 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/pubkey.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/registry.d.ts +34 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/registry.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/registry.js +88 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/registry.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/rpc.d.ts +21 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/rpc.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/rpc.js +167 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/rpc.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/sha256.d.ts +2 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/sha256.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/sha256.js +8 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/sha256.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/token.d.ts +8 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/token.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/token.js +11 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/utils/token.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/workspace.d.ts +14 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/workspace.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/workspace.js +98 -0
- package/node_modules/@coral-xyz/anchor/dist/cjs/workspace.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/accounts.d.ts +27 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/accounts.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/accounts.js +96 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/accounts.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/event.d.ts +14 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/event.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/event.js +51 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/event.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/idl.d.ts +32 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/idl.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/idl.js +392 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/idl.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/index.d.ts +33 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/index.js +20 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/instruction.d.ts +42 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/instruction.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/instruction.js +244 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/instruction.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/types.d.ts +16 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/types.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/types.js +38 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/types.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/index.d.ts +43 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/index.js +3 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/accounts.d.ts +12 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/accounts.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/accounts.js +80 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/accounts.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/events.d.ts +9 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/events.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/events.js +7 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/events.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/index.d.ts +17 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/index.js +16 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/instruction.d.ts +8 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/instruction.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/instruction.js +212 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/instruction.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/types.d.ts +8 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/types.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/types.js +10 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/types.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/error.d.ts +131 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/error.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/error.js +552 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/error.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/idl.d.ts +215 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/idl.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/idl.js +74 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/idl.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/index.d.ts +16 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/index.js +14 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/native/index.d.ts +7 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/native/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/native/index.js +7 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/native/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/native/system.d.ts +390 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/native/system.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/native/system.js +389 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/native/system.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/nodewallet.d.ts +14 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/nodewallet.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/nodewallet.js +45 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/nodewallet.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/accounts-resolver.d.ts +63 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/accounts-resolver.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/accounts-resolver.js +429 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/accounts-resolver.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/common.d.ts +20 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/common.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/common.js +43 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/common.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/context.d.ts +63 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/context.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/context.js +13 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/context.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/event.d.ts +57 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/event.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/event.js +202 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/event.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/index.d.ts +272 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/index.js +156 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/account.d.ts +146 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/account.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/account.js +226 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/account.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/index.d.ts +35 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/index.js +54 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/instruction.d.ts +57 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/instruction.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/instruction.js +68 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/instruction.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/methods.d.ts +206 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/methods.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/methods.js +302 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/methods.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/rpc.d.ts +49 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/rpc.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/rpc.js +22 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/rpc.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/simulate.d.ts +57 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/simulate.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/simulate.js +39 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/simulate.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/transaction.d.ts +42 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/transaction.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/transaction.js +21 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/transaction.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/types.d.ts +153 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/types.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/types.js +2 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/types.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/views.d.ts +15 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/views.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/views.js +27 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/views.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/token-account-layout.d.ts +2 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/token-account-layout.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/token-account-layout.js +107 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/program/token-account-layout.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/provider.d.ts +104 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/provider.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/provider.js +303 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/provider.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/base64.d.ts +4 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/base64.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/base64.js +8 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/base64.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/bs58.d.ts +3 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/bs58.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/bs58.js +8 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/bs58.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/hex.d.ts +4 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/hex.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/hex.js +18 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/hex.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/index.d.ts +5 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/index.js +5 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/utf8.d.ts +3 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/utf8.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/utf8.js +14 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/utf8.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/common.d.ts +22 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/common.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/common.js +27 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/common.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/features.d.ts +3 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/features.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/features.js +12 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/features.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/index.d.ts +8 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/index.js +8 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/pubkey.d.ts +3 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/pubkey.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/pubkey.js +13 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/pubkey.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/registry.d.ts +34 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/registry.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/registry.js +57 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/registry.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/rpc.d.ts +21 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/rpc.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/rpc.js +161 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/rpc.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/sha256.d.ts +2 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/sha256.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/sha256.js +5 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/sha256.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/token.d.ts +8 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/token.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/token.js +7 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/utils/token.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/workspace.d.ts +14 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/workspace.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/workspace.js +70 -0
- package/node_modules/@coral-xyz/anchor/dist/esm/workspace.js.map +1 -0
- package/node_modules/@coral-xyz/anchor/dist/tsconfig.cjs.tsbuildinfo +1 -0
- package/node_modules/@coral-xyz/anchor/dist/tsconfig.tsbuildinfo +1 -0
- package/node_modules/@coral-xyz/anchor/package.json +84 -0
- package/node_modules/@coral-xyz/anchor/types/buffer-layout/index.d.ts +88 -0
- package/node_modules/@coral-xyz/anchor-errors/dist/index.d.ts +157 -0
- package/node_modules/@coral-xyz/anchor-errors/dist/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/anchor-errors/dist/index.js +167 -0
- package/node_modules/@coral-xyz/anchor-errors/dist/index.js.map +1 -0
- package/node_modules/@coral-xyz/anchor-errors/package.json +32 -0
- package/node_modules/@coral-xyz/borsh/dist/index.d.ts +31 -0
- package/node_modules/@coral-xyz/borsh/dist/index.d.ts.map +1 -0
- package/node_modules/@coral-xyz/borsh/dist/index.js +222 -0
- package/node_modules/@coral-xyz/borsh/dist/index.js.map +1 -0
- package/node_modules/@coral-xyz/borsh/package.json +35 -0
- package/node_modules/@noble/curves/LICENSE +21 -0
- package/node_modules/@noble/curves/README.md +998 -0
- package/node_modules/@noble/curves/_shortw_utils.d.ts +16 -0
- package/node_modules/@noble/curves/_shortw_utils.d.ts.map +1 -0
- package/node_modules/@noble/curves/_shortw_utils.js +25 -0
- package/node_modules/@noble/curves/_shortw_utils.js.map +1 -0
- package/node_modules/@noble/curves/abstract/bls.d.ts +129 -0
- package/node_modules/@noble/curves/abstract/bls.d.ts.map +1 -0
- package/node_modules/@noble/curves/abstract/bls.js +355 -0
- package/node_modules/@noble/curves/abstract/bls.js.map +1 -0
- package/node_modules/@noble/curves/abstract/curve.d.ts +109 -0
- package/node_modules/@noble/curves/abstract/curve.d.ts.map +1 -0
- package/node_modules/@noble/curves/abstract/curve.js +392 -0
- package/node_modules/@noble/curves/abstract/curve.js.map +1 -0
- package/node_modules/@noble/curves/abstract/edwards.d.ts +92 -0
- package/node_modules/@noble/curves/abstract/edwards.d.ts.map +1 -0
- package/node_modules/@noble/curves/abstract/edwards.js +452 -0
- package/node_modules/@noble/curves/abstract/edwards.js.map +1 -0
- package/node_modules/@noble/curves/abstract/fft.d.ts +120 -0
- package/node_modules/@noble/curves/abstract/fft.d.ts.map +1 -0
- package/node_modules/@noble/curves/abstract/fft.js +439 -0
- package/node_modules/@noble/curves/abstract/fft.js.map +1 -0
- package/node_modules/@noble/curves/abstract/hash-to-curve.d.ts +84 -0
- package/node_modules/@noble/curves/abstract/hash-to-curve.d.ts.map +1 -0
- package/node_modules/@noble/curves/abstract/hash-to-curve.js +196 -0
- package/node_modules/@noble/curves/abstract/hash-to-curve.js.map +1 -0
- package/node_modules/@noble/curves/abstract/modular.d.ts +153 -0
- package/node_modules/@noble/curves/abstract/modular.d.ts.map +1 -0
- package/node_modules/@noble/curves/abstract/modular.js +481 -0
- package/node_modules/@noble/curves/abstract/modular.js.map +1 -0
- package/node_modules/@noble/curves/abstract/montgomery.d.ts +21 -0
- package/node_modules/@noble/curves/abstract/montgomery.d.ts.map +1 -0
- package/node_modules/@noble/curves/abstract/montgomery.js +140 -0
- package/node_modules/@noble/curves/abstract/montgomery.js.map +1 -0
- package/node_modules/@noble/curves/abstract/poseidon.d.ts +76 -0
- package/node_modules/@noble/curves/abstract/poseidon.d.ts.map +1 -0
- package/node_modules/@noble/curves/abstract/poseidon.js +300 -0
- package/node_modules/@noble/curves/abstract/poseidon.js.map +1 -0
- package/node_modules/@noble/curves/abstract/tower.d.ts +119 -0
- package/node_modules/@noble/curves/abstract/tower.d.ts.map +1 -0
- package/node_modules/@noble/curves/abstract/tower.js +500 -0
- package/node_modules/@noble/curves/abstract/tower.js.map +1 -0
- package/node_modules/@noble/curves/abstract/utils.d.ts +119 -0
- package/node_modules/@noble/curves/abstract/utils.d.ts.map +1 -0
- package/node_modules/@noble/curves/abstract/utils.js +377 -0
- package/node_modules/@noble/curves/abstract/utils.js.map +1 -0
- package/node_modules/@noble/curves/abstract/weierstrass.d.ts +260 -0
- package/node_modules/@noble/curves/abstract/weierstrass.d.ts.map +1 -0
- package/node_modules/@noble/curves/abstract/weierstrass.js +1226 -0
- package/node_modules/@noble/curves/abstract/weierstrass.js.map +1 -0
- package/node_modules/@noble/curves/bls12-381.d.ts +14 -0
- package/node_modules/@noble/curves/bls12-381.d.ts.map +1 -0
- package/node_modules/@noble/curves/bls12-381.js +703 -0
- package/node_modules/@noble/curves/bls12-381.js.map +1 -0
- package/node_modules/@noble/curves/bn254.d.ts +16 -0
- package/node_modules/@noble/curves/bn254.d.ts.map +1 -0
- package/node_modules/@noble/curves/bn254.js +238 -0
- package/node_modules/@noble/curves/bn254.js.map +1 -0
- package/node_modules/@noble/curves/ed25519.d.ts +117 -0
- package/node_modules/@noble/curves/ed25519.d.ts.map +1 -0
- package/node_modules/@noble/curves/ed25519.js +483 -0
- package/node_modules/@noble/curves/ed25519.js.map +1 -0
- package/node_modules/@noble/curves/ed448.d.ts +98 -0
- package/node_modules/@noble/curves/ed448.d.ts.map +1 -0
- package/node_modules/@noble/curves/ed448.js +438 -0
- package/node_modules/@noble/curves/ed448.js.map +1 -0
- package/node_modules/@noble/curves/esm/_shortw_utils.d.ts +16 -0
- package/node_modules/@noble/curves/esm/_shortw_utils.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/_shortw_utils.js +21 -0
- package/node_modules/@noble/curves/esm/_shortw_utils.js.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/bls.d.ts +129 -0
- package/node_modules/@noble/curves/esm/abstract/bls.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/bls.js +352 -0
- package/node_modules/@noble/curves/esm/abstract/bls.js.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/curve.d.ts +109 -0
- package/node_modules/@noble/curves/esm/abstract/curve.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/curve.js +386 -0
- package/node_modules/@noble/curves/esm/abstract/curve.js.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/edwards.d.ts +92 -0
- package/node_modules/@noble/curves/esm/abstract/edwards.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/edwards.js +449 -0
- package/node_modules/@noble/curves/esm/abstract/edwards.js.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/fft.d.ts +120 -0
- package/node_modules/@noble/curves/esm/abstract/fft.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/fft.js +426 -0
- package/node_modules/@noble/curves/esm/abstract/fft.js.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/hash-to-curve.d.ts +84 -0
- package/node_modules/@noble/curves/esm/abstract/hash-to-curve.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/hash-to-curve.js +189 -0
- package/node_modules/@noble/curves/esm/abstract/hash-to-curve.js.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/modular.d.ts +153 -0
- package/node_modules/@noble/curves/esm/abstract/modular.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/modular.js +457 -0
- package/node_modules/@noble/curves/esm/abstract/modular.js.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/montgomery.d.ts +21 -0
- package/node_modules/@noble/curves/esm/abstract/montgomery.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/montgomery.js +137 -0
- package/node_modules/@noble/curves/esm/abstract/montgomery.js.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/poseidon.d.ts +76 -0
- package/node_modules/@noble/curves/esm/abstract/poseidon.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/poseidon.js +291 -0
- package/node_modules/@noble/curves/esm/abstract/poseidon.js.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/tower.d.ts +119 -0
- package/node_modules/@noble/curves/esm/abstract/tower.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/tower.js +496 -0
- package/node_modules/@noble/curves/esm/abstract/tower.js.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/utils.d.ts +119 -0
- package/node_modules/@noble/curves/esm/abstract/utils.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/utils.js +348 -0
- package/node_modules/@noble/curves/esm/abstract/utils.js.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/weierstrass.d.ts +260 -0
- package/node_modules/@noble/curves/esm/abstract/weierstrass.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/abstract/weierstrass.js +1218 -0
- package/node_modules/@noble/curves/esm/abstract/weierstrass.js.map +1 -0
- package/node_modules/@noble/curves/esm/bls12-381.d.ts +14 -0
- package/node_modules/@noble/curves/esm/bls12-381.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/bls12-381.js +700 -0
- package/node_modules/@noble/curves/esm/bls12-381.js.map +1 -0
- package/node_modules/@noble/curves/esm/bn254.d.ts +16 -0
- package/node_modules/@noble/curves/esm/bn254.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/bn254.js +234 -0
- package/node_modules/@noble/curves/esm/bn254.js.map +1 -0
- package/node_modules/@noble/curves/esm/ed25519.d.ts +117 -0
- package/node_modules/@noble/curves/esm/ed25519.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/ed25519.js +477 -0
- package/node_modules/@noble/curves/esm/ed25519.js.map +1 -0
- package/node_modules/@noble/curves/esm/ed448.d.ts +98 -0
- package/node_modules/@noble/curves/esm/ed448.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/ed448.js +433 -0
- package/node_modules/@noble/curves/esm/ed448.js.map +1 -0
- package/node_modules/@noble/curves/esm/index.d.ts +2 -0
- package/node_modules/@noble/curves/esm/index.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/index.js +19 -0
- package/node_modules/@noble/curves/esm/index.js.map +1 -0
- package/node_modules/@noble/curves/esm/jubjub.d.ts +12 -0
- package/node_modules/@noble/curves/esm/jubjub.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/jubjub.js +12 -0
- package/node_modules/@noble/curves/esm/jubjub.js.map +1 -0
- package/node_modules/@noble/curves/esm/misc.d.ts +21 -0
- package/node_modules/@noble/curves/esm/misc.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/misc.js +107 -0
- package/node_modules/@noble/curves/esm/misc.js.map +1 -0
- package/node_modules/@noble/curves/esm/nist.d.ts +30 -0
- package/node_modules/@noble/curves/esm/nist.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/nist.js +121 -0
- package/node_modules/@noble/curves/esm/nist.js.map +1 -0
- package/node_modules/@noble/curves/esm/p256.d.ts +12 -0
- package/node_modules/@noble/curves/esm/p256.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/p256.js +12 -0
- package/node_modules/@noble/curves/esm/p256.js.map +1 -0
- package/node_modules/@noble/curves/esm/p384.d.ts +13 -0
- package/node_modules/@noble/curves/esm/p384.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/p384.js +13 -0
- package/node_modules/@noble/curves/esm/p384.js.map +1 -0
- package/node_modules/@noble/curves/esm/p521.d.ts +12 -0
- package/node_modules/@noble/curves/esm/p521.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/p521.js +12 -0
- package/node_modules/@noble/curves/esm/p521.js.map +1 -0
- package/node_modules/@noble/curves/esm/package.json +4 -0
- package/node_modules/@noble/curves/esm/pasta.d.ts +10 -0
- package/node_modules/@noble/curves/esm/pasta.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/pasta.js +10 -0
- package/node_modules/@noble/curves/esm/pasta.js.map +1 -0
- package/node_modules/@noble/curves/esm/secp256k1.d.ts +76 -0
- package/node_modules/@noble/curves/esm/secp256k1.d.ts.map +1 -0
- package/node_modules/@noble/curves/esm/secp256k1.js +287 -0
- package/node_modules/@noble/curves/esm/secp256k1.js.map +1 -0
- package/node_modules/@noble/curves/index.d.ts +1 -0
- package/node_modules/@noble/curves/index.d.ts.map +1 -0
- package/node_modules/@noble/curves/index.js +19 -0
- package/node_modules/@noble/curves/index.js.map +1 -0
- package/node_modules/@noble/curves/jubjub.d.ts +12 -0
- package/node_modules/@noble/curves/jubjub.d.ts.map +1 -0
- package/node_modules/@noble/curves/jubjub.js +15 -0
- package/node_modules/@noble/curves/jubjub.js.map +1 -0
- package/node_modules/@noble/curves/misc.d.ts +21 -0
- package/node_modules/@noble/curves/misc.d.ts.map +1 -0
- package/node_modules/@noble/curves/misc.js +112 -0
- package/node_modules/@noble/curves/misc.js.map +1 -0
- package/node_modules/@noble/curves/nist.d.ts +30 -0
- package/node_modules/@noble/curves/nist.d.ts.map +1 -0
- package/node_modules/@noble/curves/nist.js +124 -0
- package/node_modules/@noble/curves/nist.js.map +1 -0
- package/node_modules/@noble/curves/p256.d.ts +12 -0
- package/node_modules/@noble/curves/p256.d.ts.map +1 -0
- package/node_modules/@noble/curves/p256.js +9 -0
- package/node_modules/@noble/curves/p256.js.map +1 -0
- package/node_modules/@noble/curves/p384.d.ts +13 -0
- package/node_modules/@noble/curves/p384.d.ts.map +1 -0
- package/node_modules/@noble/curves/p384.js +10 -0
- package/node_modules/@noble/curves/p384.js.map +1 -0
- package/node_modules/@noble/curves/p521.d.ts +12 -0
- package/node_modules/@noble/curves/p521.d.ts.map +1 -0
- package/node_modules/@noble/curves/p521.js +9 -0
- package/node_modules/@noble/curves/p521.js.map +1 -0
- package/node_modules/@noble/curves/package.json +284 -0
- package/node_modules/@noble/curves/pasta.d.ts +10 -0
- package/node_modules/@noble/curves/pasta.d.ts.map +1 -0
- package/node_modules/@noble/curves/pasta.js +13 -0
- package/node_modules/@noble/curves/pasta.js.map +1 -0
- package/node_modules/@noble/curves/secp256k1.d.ts +76 -0
- package/node_modules/@noble/curves/secp256k1.d.ts.map +1 -0
- package/node_modules/@noble/curves/secp256k1.js +290 -0
- package/node_modules/@noble/curves/secp256k1.js.map +1 -0
- package/node_modules/@noble/curves/src/_shortw_utils.ts +30 -0
- package/node_modules/@noble/curves/src/abstract/bls.ts +570 -0
- package/node_modules/@noble/curves/src/abstract/curve.ts +471 -0
- package/node_modules/@noble/curves/src/abstract/edwards.ts +569 -0
- package/node_modules/@noble/curves/src/abstract/fft.ts +508 -0
- package/node_modules/@noble/curves/src/abstract/hash-to-curve.ts +265 -0
- package/node_modules/@noble/curves/src/abstract/modular.ts +533 -0
- package/node_modules/@noble/curves/src/abstract/montgomery.ts +165 -0
- package/node_modules/@noble/curves/src/abstract/poseidon.ts +331 -0
- package/node_modules/@noble/curves/src/abstract/tower.ts +650 -0
- package/node_modules/@noble/curves/src/abstract/utils.ts +382 -0
- package/node_modules/@noble/curves/src/abstract/weierstrass.ts +1437 -0
- package/node_modules/@noble/curves/src/bls12-381.ts +754 -0
- package/node_modules/@noble/curves/src/bn254.ts +262 -0
- package/node_modules/@noble/curves/src/ed25519.ts +552 -0
- package/node_modules/@noble/curves/src/ed448.ts +524 -0
- package/node_modules/@noble/curves/src/index.ts +17 -0
- package/node_modules/@noble/curves/src/jubjub.ts +12 -0
- package/node_modules/@noble/curves/src/misc.ts +123 -0
- package/node_modules/@noble/curves/src/nist.ts +155 -0
- package/node_modules/@noble/curves/src/p256.ts +11 -0
- package/node_modules/@noble/curves/src/p384.ts +13 -0
- package/node_modules/@noble/curves/src/p521.ts +11 -0
- package/node_modules/@noble/curves/src/package.json +3 -0
- package/node_modules/@noble/curves/src/pasta.ts +9 -0
- package/node_modules/@noble/curves/src/secp256k1.ts +333 -0
- package/node_modules/@noble/hashes/LICENSE +21 -0
- package/node_modules/@noble/hashes/README.md +521 -0
- package/node_modules/@noble/hashes/_assert.d.ts +17 -0
- package/node_modules/@noble/hashes/_assert.d.ts.map +1 -0
- package/node_modules/@noble/hashes/_assert.js +18 -0
- package/node_modules/@noble/hashes/_assert.js.map +1 -0
- package/node_modules/@noble/hashes/_blake.d.ts +14 -0
- package/node_modules/@noble/hashes/_blake.d.ts.map +1 -0
- package/node_modules/@noble/hashes/_blake.js +50 -0
- package/node_modules/@noble/hashes/_blake.js.map +1 -0
- package/node_modules/@noble/hashes/_md.d.ts +51 -0
- package/node_modules/@noble/hashes/_md.d.ts.map +1 -0
- package/node_modules/@noble/hashes/_md.js +162 -0
- package/node_modules/@noble/hashes/_md.js.map +1 -0
- package/node_modules/@noble/hashes/_u64.d.ts +55 -0
- package/node_modules/@noble/hashes/_u64.d.ts.map +1 -0
- package/node_modules/@noble/hashes/_u64.js +90 -0
- package/node_modules/@noble/hashes/_u64.js.map +1 -0
- package/node_modules/@noble/hashes/argon2.d.ts +32 -0
- package/node_modules/@noble/hashes/argon2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/argon2.js +401 -0
- package/node_modules/@noble/hashes/argon2.js.map +1 -0
- package/node_modules/@noble/hashes/blake1.d.ts +106 -0
- package/node_modules/@noble/hashes/blake1.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake1.js +459 -0
- package/node_modules/@noble/hashes/blake1.js.map +1 -0
- package/node_modules/@noble/hashes/blake2.d.ts +116 -0
- package/node_modules/@noble/hashes/blake2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake2.js +420 -0
- package/node_modules/@noble/hashes/blake2.js.map +1 -0
- package/node_modules/@noble/hashes/blake2b.d.ts +11 -0
- package/node_modules/@noble/hashes/blake2b.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake2b.js +14 -0
- package/node_modules/@noble/hashes/blake2b.js.map +1 -0
- package/node_modules/@noble/hashes/blake2s.d.ts +20 -0
- package/node_modules/@noble/hashes/blake2s.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake2s.js +24 -0
- package/node_modules/@noble/hashes/blake2s.js.map +1 -0
- package/node_modules/@noble/hashes/blake3.d.ts +54 -0
- package/node_modules/@noble/hashes/blake3.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake3.js +255 -0
- package/node_modules/@noble/hashes/blake3.js.map +1 -0
- package/node_modules/@noble/hashes/crypto.d.ts +2 -0
- package/node_modules/@noble/hashes/crypto.d.ts.map +1 -0
- package/node_modules/@noble/hashes/crypto.js +5 -0
- package/node_modules/@noble/hashes/crypto.js.map +1 -0
- package/node_modules/@noble/hashes/cryptoNode.d.ts +2 -0
- package/node_modules/@noble/hashes/cryptoNode.d.ts.map +1 -0
- package/node_modules/@noble/hashes/cryptoNode.js +18 -0
- package/node_modules/@noble/hashes/cryptoNode.js.map +1 -0
- package/node_modules/@noble/hashes/eskdf.d.ts +47 -0
- package/node_modules/@noble/hashes/eskdf.d.ts.map +1 -0
- package/node_modules/@noble/hashes/eskdf.js +166 -0
- package/node_modules/@noble/hashes/eskdf.js.map +1 -0
- package/node_modules/@noble/hashes/esm/_assert.d.ts +17 -0
- package/node_modules/@noble/hashes/esm/_assert.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/_assert.js +15 -0
- package/node_modules/@noble/hashes/esm/_assert.js.map +1 -0
- package/node_modules/@noble/hashes/esm/_blake.d.ts +14 -0
- package/node_modules/@noble/hashes/esm/_blake.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/_blake.js +45 -0
- package/node_modules/@noble/hashes/esm/_blake.js.map +1 -0
- package/node_modules/@noble/hashes/esm/_md.d.ts +51 -0
- package/node_modules/@noble/hashes/esm/_md.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/_md.js +155 -0
- package/node_modules/@noble/hashes/esm/_md.js.map +1 -0
- package/node_modules/@noble/hashes/esm/_u64.d.ts +55 -0
- package/node_modules/@noble/hashes/esm/_u64.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/_u64.js +67 -0
- package/node_modules/@noble/hashes/esm/_u64.js.map +1 -0
- package/node_modules/@noble/hashes/esm/argon2.d.ts +32 -0
- package/node_modules/@noble/hashes/esm/argon2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/argon2.js +392 -0
- package/node_modules/@noble/hashes/esm/argon2.js.map +1 -0
- package/node_modules/@noble/hashes/esm/blake1.d.ts +106 -0
- package/node_modules/@noble/hashes/esm/blake1.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/blake1.js +452 -0
- package/node_modules/@noble/hashes/esm/blake1.js.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2.d.ts +116 -0
- package/node_modules/@noble/hashes/esm/blake2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2.js +413 -0
- package/node_modules/@noble/hashes/esm/blake2.js.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2b.d.ts +11 -0
- package/node_modules/@noble/hashes/esm/blake2b.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2b.js +11 -0
- package/node_modules/@noble/hashes/esm/blake2b.js.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2s.d.ts +20 -0
- package/node_modules/@noble/hashes/esm/blake2s.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2s.js +21 -0
- package/node_modules/@noble/hashes/esm/blake2s.js.map +1 -0
- package/node_modules/@noble/hashes/esm/blake3.d.ts +54 -0
- package/node_modules/@noble/hashes/esm/blake3.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/blake3.js +251 -0
- package/node_modules/@noble/hashes/esm/blake3.js.map +1 -0
- package/node_modules/@noble/hashes/esm/crypto.d.ts +2 -0
- package/node_modules/@noble/hashes/esm/crypto.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/crypto.js +2 -0
- package/node_modules/@noble/hashes/esm/crypto.js.map +1 -0
- package/node_modules/@noble/hashes/esm/cryptoNode.d.ts +2 -0
- package/node_modules/@noble/hashes/esm/cryptoNode.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/cryptoNode.js +15 -0
- package/node_modules/@noble/hashes/esm/cryptoNode.js.map +1 -0
- package/node_modules/@noble/hashes/esm/eskdf.d.ts +47 -0
- package/node_modules/@noble/hashes/esm/eskdf.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/eskdf.js +160 -0
- package/node_modules/@noble/hashes/esm/eskdf.js.map +1 -0
- package/node_modules/@noble/hashes/esm/hkdf.d.ts +36 -0
- package/node_modules/@noble/hashes/esm/hkdf.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/hkdf.js +82 -0
- package/node_modules/@noble/hashes/esm/hkdf.js.map +1 -0
- package/node_modules/@noble/hashes/esm/hmac.d.ts +35 -0
- package/node_modules/@noble/hashes/esm/hmac.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/hmac.js +86 -0
- package/node_modules/@noble/hashes/esm/hmac.js.map +1 -0
- package/node_modules/@noble/hashes/esm/index.d.ts +2 -0
- package/node_modules/@noble/hashes/esm/index.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/index.js +33 -0
- package/node_modules/@noble/hashes/esm/index.js.map +1 -0
- package/node_modules/@noble/hashes/esm/legacy.d.ts +71 -0
- package/node_modules/@noble/hashes/esm/legacy.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/legacy.js +281 -0
- package/node_modules/@noble/hashes/esm/legacy.js.map +1 -0
- package/node_modules/@noble/hashes/esm/package.json +10 -0
- package/node_modules/@noble/hashes/esm/pbkdf2.d.ts +23 -0
- package/node_modules/@noble/hashes/esm/pbkdf2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/pbkdf2.js +97 -0
- package/node_modules/@noble/hashes/esm/pbkdf2.js.map +1 -0
- package/node_modules/@noble/hashes/esm/ripemd160.d.ts +13 -0
- package/node_modules/@noble/hashes/esm/ripemd160.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/ripemd160.js +13 -0
- package/node_modules/@noble/hashes/esm/ripemd160.js.map +1 -0
- package/node_modules/@noble/hashes/esm/scrypt.d.ts +34 -0
- package/node_modules/@noble/hashes/esm/scrypt.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/scrypt.js +228 -0
- package/node_modules/@noble/hashes/esm/scrypt.js.map +1 -0
- package/node_modules/@noble/hashes/esm/sha1.d.ts +11 -0
- package/node_modules/@noble/hashes/esm/sha1.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/sha1.js +11 -0
- package/node_modules/@noble/hashes/esm/sha1.js.map +1 -0
- package/node_modules/@noble/hashes/esm/sha2.d.ts +159 -0
- package/node_modules/@noble/hashes/esm/sha2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/sha2.js +375 -0
- package/node_modules/@noble/hashes/esm/sha2.js.map +1 -0
- package/node_modules/@noble/hashes/esm/sha256.d.ts +20 -0
- package/node_modules/@noble/hashes/esm/sha256.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/sha256.js +20 -0
- package/node_modules/@noble/hashes/esm/sha256.js.map +1 -0
- package/node_modules/@noble/hashes/esm/sha3-addons.d.ts +142 -0
- package/node_modules/@noble/hashes/esm/sha3-addons.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/sha3-addons.js +393 -0
- package/node_modules/@noble/hashes/esm/sha3-addons.js.map +1 -0
- package/node_modules/@noble/hashes/esm/sha3.d.ts +53 -0
- package/node_modules/@noble/hashes/esm/sha3.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/sha3.js +234 -0
- package/node_modules/@noble/hashes/esm/sha3.js.map +1 -0
- package/node_modules/@noble/hashes/esm/sha512.d.ts +26 -0
- package/node_modules/@noble/hashes/esm/sha512.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/sha512.js +26 -0
- package/node_modules/@noble/hashes/esm/sha512.js.map +1 -0
- package/node_modules/@noble/hashes/esm/utils.d.ts +161 -0
- package/node_modules/@noble/hashes/esm/utils.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/utils.js +281 -0
- package/node_modules/@noble/hashes/esm/utils.js.map +1 -0
- package/node_modules/@noble/hashes/hkdf.d.ts +36 -0
- package/node_modules/@noble/hashes/hkdf.d.ts.map +1 -0
- package/node_modules/@noble/hashes/hkdf.js +88 -0
- package/node_modules/@noble/hashes/hkdf.js.map +1 -0
- package/node_modules/@noble/hashes/hmac.d.ts +35 -0
- package/node_modules/@noble/hashes/hmac.d.ts.map +1 -0
- package/node_modules/@noble/hashes/hmac.js +91 -0
- package/node_modules/@noble/hashes/hmac.js.map +1 -0
- package/node_modules/@noble/hashes/index.d.ts +1 -0
- package/node_modules/@noble/hashes/index.d.ts.map +1 -0
- package/node_modules/@noble/hashes/index.js +33 -0
- package/node_modules/@noble/hashes/index.js.map +1 -0
- package/node_modules/@noble/hashes/legacy.d.ts +71 -0
- package/node_modules/@noble/hashes/legacy.d.ts.map +1 -0
- package/node_modules/@noble/hashes/legacy.js +287 -0
- package/node_modules/@noble/hashes/legacy.js.map +1 -0
- package/node_modules/@noble/hashes/package.json +266 -0
- package/node_modules/@noble/hashes/pbkdf2.d.ts +23 -0
- package/node_modules/@noble/hashes/pbkdf2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/pbkdf2.js +101 -0
- package/node_modules/@noble/hashes/pbkdf2.js.map +1 -0
- package/node_modules/@noble/hashes/ripemd160.d.ts +13 -0
- package/node_modules/@noble/hashes/ripemd160.d.ts.map +1 -0
- package/node_modules/@noble/hashes/ripemd160.js +16 -0
- package/node_modules/@noble/hashes/ripemd160.js.map +1 -0
- package/node_modules/@noble/hashes/scrypt.d.ts +34 -0
- package/node_modules/@noble/hashes/scrypt.d.ts.map +1 -0
- package/node_modules/@noble/hashes/scrypt.js +232 -0
- package/node_modules/@noble/hashes/scrypt.js.map +1 -0
- package/node_modules/@noble/hashes/sha1.d.ts +11 -0
- package/node_modules/@noble/hashes/sha1.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha1.js +14 -0
- package/node_modules/@noble/hashes/sha1.js.map +1 -0
- package/node_modules/@noble/hashes/sha2.d.ts +159 -0
- package/node_modules/@noble/hashes/sha2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha2.js +384 -0
- package/node_modules/@noble/hashes/sha2.js.map +1 -0
- package/node_modules/@noble/hashes/sha256.d.ts +20 -0
- package/node_modules/@noble/hashes/sha256.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha256.js +23 -0
- package/node_modules/@noble/hashes/sha256.js.map +1 -0
- package/node_modules/@noble/hashes/sha3-addons.d.ts +142 -0
- package/node_modules/@noble/hashes/sha3-addons.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha3-addons.js +402 -0
- package/node_modules/@noble/hashes/sha3-addons.js.map +1 -0
- package/node_modules/@noble/hashes/sha3.d.ts +53 -0
- package/node_modules/@noble/hashes/sha3.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha3.js +239 -0
- package/node_modules/@noble/hashes/sha3.js.map +1 -0
- package/node_modules/@noble/hashes/sha512.d.ts +26 -0
- package/node_modules/@noble/hashes/sha512.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha512.js +29 -0
- package/node_modules/@noble/hashes/sha512.js.map +1 -0
- package/node_modules/@noble/hashes/src/_assert.ts +22 -0
- package/node_modules/@noble/hashes/src/_blake.ts +50 -0
- package/node_modules/@noble/hashes/src/_md.ts +176 -0
- package/node_modules/@noble/hashes/src/_u64.ts +91 -0
- package/node_modules/@noble/hashes/src/argon2.ts +497 -0
- package/node_modules/@noble/hashes/src/blake1.ts +534 -0
- package/node_modules/@noble/hashes/src/blake2.ts +486 -0
- package/node_modules/@noble/hashes/src/blake2b.ts +10 -0
- package/node_modules/@noble/hashes/src/blake2s.ts +20 -0
- package/node_modules/@noble/hashes/src/blake3.ts +272 -0
- package/node_modules/@noble/hashes/src/crypto.ts +9 -0
- package/node_modules/@noble/hashes/src/cryptoNode.ts +15 -0
- package/node_modules/@noble/hashes/src/eskdf.ts +187 -0
- package/node_modules/@noble/hashes/src/hkdf.ts +88 -0
- package/node_modules/@noble/hashes/src/hmac.ts +94 -0
- package/node_modules/@noble/hashes/src/index.ts +31 -0
- package/node_modules/@noble/hashes/src/legacy.ts +293 -0
- package/node_modules/@noble/hashes/src/pbkdf2.ts +122 -0
- package/node_modules/@noble/hashes/src/ripemd160.ts +12 -0
- package/node_modules/@noble/hashes/src/scrypt.ts +257 -0
- package/node_modules/@noble/hashes/src/sha1.ts +10 -0
- package/node_modules/@noble/hashes/src/sha2.ts +402 -0
- package/node_modules/@noble/hashes/src/sha256.ts +24 -0
- package/node_modules/@noble/hashes/src/sha3-addons.ts +499 -0
- package/node_modules/@noble/hashes/src/sha3.ts +258 -0
- package/node_modules/@noble/hashes/src/sha512.ts +34 -0
- package/node_modules/@noble/hashes/src/utils.ts +395 -0
- package/node_modules/@noble/hashes/utils.d.ts +161 -0
- package/node_modules/@noble/hashes/utils.d.ts.map +1 -0
- package/node_modules/@noble/hashes/utils.js +313 -0
- package/node_modules/@noble/hashes/utils.js.map +1 -0
- package/node_modules/@solana/buffer-layout/LICENSE +21 -0
- package/node_modules/@solana/buffer-layout/README.md +403 -0
- package/node_modules/@solana/buffer-layout/lib/Layout.d.ts +1191 -0
- package/node_modules/@solana/buffer-layout/lib/Layout.js +2390 -0
- package/node_modules/@solana/buffer-layout/lib/Layout.js.map +1 -0
- package/node_modules/@solana/buffer-layout/package.json +55 -0
- package/node_modules/@solana/codecs-core/LICENSE +20 -0
- package/node_modules/@solana/codecs-core/README.md +662 -0
- package/node_modules/@solana/codecs-core/dist/index.browser.cjs +504 -0
- package/node_modules/@solana/codecs-core/dist/index.browser.cjs.map +1 -0
- package/node_modules/@solana/codecs-core/dist/index.browser.mjs +460 -0
- package/node_modules/@solana/codecs-core/dist/index.browser.mjs.map +1 -0
- package/node_modules/@solana/codecs-core/dist/index.native.mjs +460 -0
- package/node_modules/@solana/codecs-core/dist/index.native.mjs.map +1 -0
- package/node_modules/@solana/codecs-core/dist/index.node.cjs +504 -0
- package/node_modules/@solana/codecs-core/dist/index.node.cjs.map +1 -0
- package/node_modules/@solana/codecs-core/dist/index.node.mjs +460 -0
- package/node_modules/@solana/codecs-core/dist/index.node.mjs.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/add-codec-sentinel.d.ts +70 -0
- package/node_modules/@solana/codecs-core/dist/types/add-codec-sentinel.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/add-codec-size-prefix.d.ts +67 -0
- package/node_modules/@solana/codecs-core/dist/types/add-codec-size-prefix.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/assertions.d.ts +62 -0
- package/node_modules/@solana/codecs-core/dist/types/assertions.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/bytes.d.ts +92 -0
- package/node_modules/@solana/codecs-core/dist/types/bytes.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/codec.d.ts +827 -0
- package/node_modules/@solana/codecs-core/dist/types/codec.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/combine-codec.d.ts +75 -0
- package/node_modules/@solana/codecs-core/dist/types/combine-codec.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/fix-codec-size.d.ts +111 -0
- package/node_modules/@solana/codecs-core/dist/types/fix-codec-size.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/index.d.ts +667 -0
- package/node_modules/@solana/codecs-core/dist/types/index.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/offset-codec.d.ts +328 -0
- package/node_modules/@solana/codecs-core/dist/types/offset-codec.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/pad-codec.d.ts +162 -0
- package/node_modules/@solana/codecs-core/dist/types/pad-codec.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/readonly-uint8array.d.ts +19 -0
- package/node_modules/@solana/codecs-core/dist/types/readonly-uint8array.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/resize-codec.d.ts +129 -0
- package/node_modules/@solana/codecs-core/dist/types/resize-codec.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/reverse-codec.d.ts +92 -0
- package/node_modules/@solana/codecs-core/dist/types/reverse-codec.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/dist/types/transform-codec.d.ts +114 -0
- package/node_modules/@solana/codecs-core/dist/types/transform-codec.d.ts.map +1 -0
- package/node_modules/@solana/codecs-core/package.json +83 -0
- package/node_modules/@solana/codecs-numbers/LICENSE +20 -0
- package/node_modules/@solana/codecs-numbers/README.md +130 -0
- package/node_modules/@solana/codecs-numbers/dist/index.browser.cjs +331 -0
- package/node_modules/@solana/codecs-numbers/dist/index.browser.cjs.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/index.browser.mjs +289 -0
- package/node_modules/@solana/codecs-numbers/dist/index.browser.mjs.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/index.native.mjs +289 -0
- package/node_modules/@solana/codecs-numbers/dist/index.native.mjs.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/index.node.cjs +331 -0
- package/node_modules/@solana/codecs-numbers/dist/index.node.cjs.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/index.node.mjs +289 -0
- package/node_modules/@solana/codecs-numbers/dist/index.node.mjs.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/assertions.d.ts +27 -0
- package/node_modules/@solana/codecs-numbers/dist/types/assertions.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/common.d.ts +84 -0
- package/node_modules/@solana/codecs-numbers/dist/types/common.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/f32.d.ts +87 -0
- package/node_modules/@solana/codecs-numbers/dist/types/f32.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/f64.d.ts +87 -0
- package/node_modules/@solana/codecs-numbers/dist/types/f64.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i128.d.ts +91 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i128.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i16.d.ts +87 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i16.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i32.d.ts +87 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i32.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i64.d.ts +90 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i64.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i8.d.ts +75 -0
- package/node_modules/@solana/codecs-numbers/dist/types/i8.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/index.d.ts +26 -0
- package/node_modules/@solana/codecs-numbers/dist/types/index.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/short-u16.d.ts +96 -0
- package/node_modules/@solana/codecs-numbers/dist/types/short-u16.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u128.d.ts +87 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u128.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u16.d.ts +85 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u16.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u32.d.ts +85 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u32.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u64.d.ts +88 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u64.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u8.d.ts +71 -0
- package/node_modules/@solana/codecs-numbers/dist/types/u8.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/dist/types/utils.d.ts +18 -0
- package/node_modules/@solana/codecs-numbers/dist/types/utils.d.ts.map +1 -0
- package/node_modules/@solana/codecs-numbers/package.json +83 -0
- package/node_modules/@solana/errors/LICENSE +20 -0
- package/node_modules/@solana/errors/README.md +87 -0
- package/node_modules/@solana/errors/bin/cli.mjs +7 -0
- package/node_modules/@solana/errors/dist/cli.mjs +570 -0
- package/node_modules/@solana/errors/dist/index.browser.cjs +1084 -0
- package/node_modules/@solana/errors/dist/index.browser.cjs.map +1 -0
- package/node_modules/@solana/errors/dist/index.browser.mjs +852 -0
- package/node_modules/@solana/errors/dist/index.browser.mjs.map +1 -0
- package/node_modules/@solana/errors/dist/index.native.mjs +852 -0
- package/node_modules/@solana/errors/dist/index.native.mjs.map +1 -0
- package/node_modules/@solana/errors/dist/index.node.cjs +1084 -0
- package/node_modules/@solana/errors/dist/index.node.cjs.map +1 -0
- package/node_modules/@solana/errors/dist/index.node.mjs +852 -0
- package/node_modules/@solana/errors/dist/index.node.mjs.map +1 -0
- package/node_modules/@solana/errors/dist/types/codes.d.ts +275 -0
- package/node_modules/@solana/errors/dist/types/codes.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/context.d.ts +398 -0
- package/node_modules/@solana/errors/dist/types/context.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/error.d.ts +75 -0
- package/node_modules/@solana/errors/dist/types/error.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/index.d.ts +72 -0
- package/node_modules/@solana/errors/dist/types/index.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/instruction-error.d.ts +9 -0
- package/node_modules/@solana/errors/dist/types/instruction-error.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/json-rpc-error.d.ts +51 -0
- package/node_modules/@solana/errors/dist/types/json-rpc-error.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/message-formatter.d.ts +4 -0
- package/node_modules/@solana/errors/dist/types/message-formatter.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/messages.d.ts +16 -0
- package/node_modules/@solana/errors/dist/types/messages.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/rpc-enum-errors.d.ts +31 -0
- package/node_modules/@solana/errors/dist/types/rpc-enum-errors.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/stack-trace.d.ts +2 -0
- package/node_modules/@solana/errors/dist/types/stack-trace.d.ts.map +1 -0
- package/node_modules/@solana/errors/dist/types/transaction-error.d.ts +5 -0
- package/node_modules/@solana/errors/dist/types/transaction-error.d.ts.map +1 -0
- package/node_modules/@solana/errors/node_modules/chalk/license +9 -0
- package/node_modules/@solana/errors/node_modules/chalk/package.json +83 -0
- package/node_modules/@solana/errors/node_modules/chalk/readme.md +297 -0
- package/node_modules/@solana/errors/node_modules/chalk/source/index.d.ts +325 -0
- package/node_modules/@solana/errors/node_modules/chalk/source/index.js +225 -0
- package/node_modules/@solana/errors/node_modules/chalk/source/utilities.js +33 -0
- package/node_modules/@solana/errors/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/node_modules/@solana/errors/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/node_modules/@solana/errors/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/node_modules/@solana/errors/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
- package/node_modules/@solana/errors/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/node_modules/@solana/errors/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/node_modules/@solana/errors/node_modules/commander/LICENSE +22 -0
- package/node_modules/@solana/errors/node_modules/commander/Readme.md +1149 -0
- package/node_modules/@solana/errors/node_modules/commander/esm.mjs +16 -0
- package/node_modules/@solana/errors/node_modules/commander/index.js +24 -0
- package/node_modules/@solana/errors/node_modules/commander/lib/argument.js +149 -0
- package/node_modules/@solana/errors/node_modules/commander/lib/command.js +2662 -0
- package/node_modules/@solana/errors/node_modules/commander/lib/error.js +39 -0
- package/node_modules/@solana/errors/node_modules/commander/lib/help.js +709 -0
- package/node_modules/@solana/errors/node_modules/commander/lib/option.js +367 -0
- package/node_modules/@solana/errors/node_modules/commander/lib/suggestSimilar.js +101 -0
- package/node_modules/@solana/errors/node_modules/commander/package-support.json +16 -0
- package/node_modules/@solana/errors/node_modules/commander/package.json +82 -0
- package/node_modules/@solana/errors/node_modules/commander/typings/esm.d.mts +3 -0
- package/node_modules/@solana/errors/node_modules/commander/typings/index.d.ts +1045 -0
- package/node_modules/@solana/errors/package.json +84 -0
- package/node_modules/@solana/web3.js/LICENSE +20 -0
- package/node_modules/@solana/web3.js/README.md +145 -0
- package/node_modules/@solana/web3.js/lib/index.browser.cjs.js +10562 -0
- package/node_modules/@solana/web3.js/lib/index.browser.cjs.js.map +1 -0
- package/node_modules/@solana/web3.js/lib/index.browser.esm.js +10461 -0
- package/node_modules/@solana/web3.js/lib/index.browser.esm.js.map +1 -0
- package/node_modules/@solana/web3.js/lib/index.cjs.js +11311 -0
- package/node_modules/@solana/web3.js/lib/index.cjs.js.map +1 -0
- package/node_modules/@solana/web3.js/lib/index.d.ts +4021 -0
- package/node_modules/@solana/web3.js/lib/index.esm.js +11206 -0
- package/node_modules/@solana/web3.js/lib/index.esm.js.map +1 -0
- package/node_modules/@solana/web3.js/lib/index.iife.js +26083 -0
- package/node_modules/@solana/web3.js/lib/index.iife.js.map +1 -0
- package/node_modules/@solana/web3.js/lib/index.iife.min.js +20 -0
- package/node_modules/@solana/web3.js/lib/index.iife.min.js.map +1 -0
- package/node_modules/@solana/web3.js/lib/index.native.js +10562 -0
- package/node_modules/@solana/web3.js/lib/index.native.js.map +1 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/License.md +9 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/Readme.md +230 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/error.d.ts +33 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/error.d.ts.map +1 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/index.cjs +1084 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/index.cjs.map +1 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/index.d.ts +7 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/index.d.ts.map +1 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/index.mjs +1026 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/index.mjs.map +1 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/struct.d.ts +119 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/struct.d.ts.map +1 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/structs/coercions.d.ts +29 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/structs/coercions.d.ts.map +1 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/structs/refinements.d.ts +38 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/structs/refinements.d.ts.map +1 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/structs/types.d.ts +142 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/structs/types.d.ts.map +1 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/structs/utilities.d.ts +66 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/structs/utilities.d.ts.map +1 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/utils.d.ts +144 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/dist/utils.d.ts.map +1 -0
- package/node_modules/@solana/web3.js/node_modules/superstruct/package.json +85 -0
- package/node_modules/@solana/web3.js/package.json +75 -0
- package/node_modules/@solana/web3.js/src/__forks__/browser/fetch-impl.ts +4 -0
- package/node_modules/@solana/web3.js/src/__forks__/react-native/fetch-impl.ts +4 -0
- package/node_modules/@solana/web3.js/src/account-data.ts +39 -0
- package/node_modules/@solana/web3.js/src/account.ts +55 -0
- package/node_modules/@solana/web3.js/src/blockhash.ts +4 -0
- package/node_modules/@solana/web3.js/src/bpf-loader-deprecated.ts +5 -0
- package/node_modules/@solana/web3.js/src/bpf-loader.ts +50 -0
- package/node_modules/@solana/web3.js/src/connection.ts +6955 -0
- package/node_modules/@solana/web3.js/src/epoch-schedule.ts +102 -0
- package/node_modules/@solana/web3.js/src/errors.ts +133 -0
- package/node_modules/@solana/web3.js/src/fee-calculator.ts +18 -0
- package/node_modules/@solana/web3.js/src/fetch-impl.ts +16 -0
- package/node_modules/@solana/web3.js/src/index.ts +24 -0
- package/node_modules/@solana/web3.js/src/instruction.ts +58 -0
- package/node_modules/@solana/web3.js/src/keypair.ts +102 -0
- package/node_modules/@solana/web3.js/src/layout.ts +188 -0
- package/node_modules/@solana/web3.js/src/loader.ts +267 -0
- package/node_modules/@solana/web3.js/src/message/account-keys.ts +79 -0
- package/node_modules/@solana/web3.js/src/message/compiled-keys.ts +165 -0
- package/node_modules/@solana/web3.js/src/message/index.ts +47 -0
- package/node_modules/@solana/web3.js/src/message/legacy.ts +323 -0
- package/node_modules/@solana/web3.js/src/message/v0.ts +513 -0
- package/node_modules/@solana/web3.js/src/message/versioned.ts +36 -0
- package/node_modules/@solana/web3.js/src/nonce-account.ts +82 -0
- package/node_modules/@solana/web3.js/src/programs/address-lookup-table/index.ts +438 -0
- package/node_modules/@solana/web3.js/src/programs/address-lookup-table/state.ts +84 -0
- package/node_modules/@solana/web3.js/src/programs/compute-budget.ts +281 -0
- package/node_modules/@solana/web3.js/src/programs/ed25519.ts +157 -0
- package/node_modules/@solana/web3.js/src/programs/index.ts +7 -0
- package/node_modules/@solana/web3.js/src/programs/secp256k1.ts +228 -0
- package/node_modules/@solana/web3.js/src/programs/stake.ts +952 -0
- package/node_modules/@solana/web3.js/src/programs/system.ts +1048 -0
- package/node_modules/@solana/web3.js/src/programs/vote.ts +586 -0
- package/node_modules/@solana/web3.js/src/publickey.ts +259 -0
- package/node_modules/@solana/web3.js/src/rpc-websocket.ts +75 -0
- package/node_modules/@solana/web3.js/src/sysvar.ts +37 -0
- package/node_modules/@solana/web3.js/src/timing.ts +23 -0
- package/node_modules/@solana/web3.js/src/transaction/constants.ts +12 -0
- package/node_modules/@solana/web3.js/src/transaction/expiry-custom-errors.ts +48 -0
- package/node_modules/@solana/web3.js/src/transaction/index.ts +5 -0
- package/node_modules/@solana/web3.js/src/transaction/legacy.ts +970 -0
- package/node_modules/@solana/web3.js/src/transaction/message.ts +140 -0
- package/node_modules/@solana/web3.js/src/transaction/versioned.ts +127 -0
- package/node_modules/@solana/web3.js/src/utils/assert.ts +8 -0
- package/node_modules/@solana/web3.js/src/utils/bigint.ts +24 -0
- package/node_modules/@solana/web3.js/src/utils/borsh-schema.ts +38 -0
- package/node_modules/@solana/web3.js/src/utils/cluster.ts +35 -0
- package/node_modules/@solana/web3.js/src/utils/ed25519.ts +43 -0
- package/node_modules/@solana/web3.js/src/utils/guarded-array-utils.ts +34 -0
- package/node_modules/@solana/web3.js/src/utils/index.ts +5 -0
- package/node_modules/@solana/web3.js/src/utils/makeWebsocketUrl.ts +26 -0
- package/node_modules/@solana/web3.js/src/utils/promise-timeout.ts +14 -0
- package/node_modules/@solana/web3.js/src/utils/secp256k1.ts +11 -0
- package/node_modules/@solana/web3.js/src/utils/send-and-confirm-raw-transaction.ts +110 -0
- package/node_modules/@solana/web3.js/src/utils/send-and-confirm-transaction.ts +106 -0
- package/node_modules/@solana/web3.js/src/utils/shortvec-encoding.ts +28 -0
- package/node_modules/@solana/web3.js/src/utils/sleep.ts +4 -0
- package/node_modules/@solana/web3.js/src/utils/to-buffer.ts +11 -0
- package/node_modules/@solana/web3.js/src/validator-info.ts +108 -0
- package/node_modules/@solana/web3.js/src/vote-account.ts +236 -0
- package/node_modules/@swc/helpers/LICENSE +201 -0
- package/node_modules/@swc/helpers/_/_apply_decorated_descriptor/package.json +4 -0
- package/node_modules/@swc/helpers/_/_apply_decs_2203_r/package.json +4 -0
- package/node_modules/@swc/helpers/_/_array_like_to_array/package.json +4 -0
- package/node_modules/@swc/helpers/_/_array_with_holes/package.json +4 -0
- package/node_modules/@swc/helpers/_/_array_without_holes/package.json +4 -0
- package/node_modules/@swc/helpers/_/_assert_this_initialized/package.json +4 -0
- package/node_modules/@swc/helpers/_/_async_generator/package.json +4 -0
- package/node_modules/@swc/helpers/_/_async_generator_delegate/package.json +4 -0
- package/node_modules/@swc/helpers/_/_async_iterator/package.json +4 -0
- package/node_modules/@swc/helpers/_/_async_to_generator/package.json +4 -0
- package/node_modules/@swc/helpers/_/_await_async_generator/package.json +4 -0
- package/node_modules/@swc/helpers/_/_await_value/package.json +4 -0
- package/node_modules/@swc/helpers/_/_call_super/package.json +4 -0
- package/node_modules/@swc/helpers/_/_check_private_redeclaration/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_apply_descriptor_destructure/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_apply_descriptor_get/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_apply_descriptor_set/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_apply_descriptor_update/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_call_check/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_check_private_static_access/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_check_private_static_field_descriptor/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_extract_field_descriptor/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_name_tdz_error/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_field_destructure/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_field_get/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_field_init/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_field_loose_base/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_field_loose_key/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_field_set/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_field_update/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_method_get/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_method_init/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_private_method_set/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_static_private_field_destructure/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_static_private_field_spec_get/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_static_private_field_spec_set/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_static_private_field_update/package.json +4 -0
- package/node_modules/@swc/helpers/_/_class_static_private_method_get/package.json +4 -0
- package/node_modules/@swc/helpers/_/_construct/package.json +4 -0
- package/node_modules/@swc/helpers/_/_create_class/package.json +4 -0
- package/node_modules/@swc/helpers/_/_create_for_of_iterator_helper_loose/package.json +4 -0
- package/node_modules/@swc/helpers/_/_create_super/package.json +4 -0
- package/node_modules/@swc/helpers/_/_decorate/package.json +4 -0
- package/node_modules/@swc/helpers/_/_defaults/package.json +4 -0
- package/node_modules/@swc/helpers/_/_define_enumerable_properties/package.json +4 -0
- package/node_modules/@swc/helpers/_/_define_property/package.json +4 -0
- package/node_modules/@swc/helpers/_/_dispose/package.json +4 -0
- package/node_modules/@swc/helpers/_/_export_star/package.json +4 -0
- package/node_modules/@swc/helpers/_/_extends/package.json +4 -0
- package/node_modules/@swc/helpers/_/_get/package.json +4 -0
- package/node_modules/@swc/helpers/_/_get_prototype_of/package.json +4 -0
- package/node_modules/@swc/helpers/_/_identity/package.json +4 -0
- package/node_modules/@swc/helpers/_/_inherits/package.json +4 -0
- package/node_modules/@swc/helpers/_/_inherits_loose/package.json +4 -0
- package/node_modules/@swc/helpers/_/_initializer_define_property/package.json +4 -0
- package/node_modules/@swc/helpers/_/_initializer_warning_helper/package.json +4 -0
- package/node_modules/@swc/helpers/_/_instanceof/package.json +4 -0
- package/node_modules/@swc/helpers/_/_interop_require_default/package.json +4 -0
- package/node_modules/@swc/helpers/_/_interop_require_wildcard/package.json +4 -0
- package/node_modules/@swc/helpers/_/_is_native_function/package.json +4 -0
- package/node_modules/@swc/helpers/_/_is_native_reflect_construct/package.json +4 -0
- package/node_modules/@swc/helpers/_/_iterable_to_array/package.json +4 -0
- package/node_modules/@swc/helpers/_/_iterable_to_array_limit/package.json +4 -0
- package/node_modules/@swc/helpers/_/_iterable_to_array_limit_loose/package.json +4 -0
- package/node_modules/@swc/helpers/_/_jsx/package.json +4 -0
- package/node_modules/@swc/helpers/_/_new_arrow_check/package.json +4 -0
- package/node_modules/@swc/helpers/_/_non_iterable_rest/package.json +4 -0
- package/node_modules/@swc/helpers/_/_non_iterable_spread/package.json +4 -0
- package/node_modules/@swc/helpers/_/_object_destructuring_empty/package.json +4 -0
- package/node_modules/@swc/helpers/_/_object_spread/package.json +4 -0
- package/node_modules/@swc/helpers/_/_object_spread_props/package.json +4 -0
- package/node_modules/@swc/helpers/_/_object_without_properties/package.json +4 -0
- package/node_modules/@swc/helpers/_/_object_without_properties_loose/package.json +4 -0
- package/node_modules/@swc/helpers/_/_overload_yield/package.json +4 -0
- package/node_modules/@swc/helpers/_/_possible_constructor_return/package.json +4 -0
- package/node_modules/@swc/helpers/_/_read_only_error/package.json +4 -0
- package/node_modules/@swc/helpers/_/_set/package.json +4 -0
- package/node_modules/@swc/helpers/_/_set_prototype_of/package.json +4 -0
- package/node_modules/@swc/helpers/_/_skip_first_generator_next/package.json +4 -0
- package/node_modules/@swc/helpers/_/_sliced_to_array/package.json +4 -0
- package/node_modules/@swc/helpers/_/_sliced_to_array_loose/package.json +4 -0
- package/node_modules/@swc/helpers/_/_super_prop_base/package.json +4 -0
- package/node_modules/@swc/helpers/_/_tagged_template_literal/package.json +4 -0
- package/node_modules/@swc/helpers/_/_tagged_template_literal_loose/package.json +4 -0
- package/node_modules/@swc/helpers/_/_throw/package.json +4 -0
- package/node_modules/@swc/helpers/_/_to_array/package.json +4 -0
- package/node_modules/@swc/helpers/_/_to_consumable_array/package.json +4 -0
- package/node_modules/@swc/helpers/_/_to_primitive/package.json +4 -0
- package/node_modules/@swc/helpers/_/_to_property_key/package.json +4 -0
- package/node_modules/@swc/helpers/_/_ts_add_disposable_resource/package.json +4 -0
- package/node_modules/@swc/helpers/_/_ts_decorate/package.json +4 -0
- package/node_modules/@swc/helpers/_/_ts_dispose_resources/package.json +4 -0
- package/node_modules/@swc/helpers/_/_ts_generator/package.json +4 -0
- package/node_modules/@swc/helpers/_/_ts_metadata/package.json +4 -0
- package/node_modules/@swc/helpers/_/_ts_param/package.json +4 -0
- package/node_modules/@swc/helpers/_/_ts_values/package.json +4 -0
- package/node_modules/@swc/helpers/_/_type_of/package.json +4 -0
- package/node_modules/@swc/helpers/_/_unsupported_iterable_to_array/package.json +4 -0
- package/node_modules/@swc/helpers/_/_update/package.json +4 -0
- package/node_modules/@swc/helpers/_/_using/package.json +4 -0
- package/node_modules/@swc/helpers/_/_using_ctx/package.json +4 -0
- package/node_modules/@swc/helpers/_/_wrap_async_generator/package.json +4 -0
- package/node_modules/@swc/helpers/_/_wrap_native_super/package.json +4 -0
- package/node_modules/@swc/helpers/_/_write_only_error/package.json +4 -0
- package/node_modules/@swc/helpers/_/index/package.json +4 -0
- package/node_modules/@swc/helpers/cjs/_apply_decorated_descriptor.cjs +35 -0
- package/node_modules/@swc/helpers/cjs/_apply_decs_2203_r.cjs +550 -0
- package/node_modules/@swc/helpers/cjs/_array_like_to_array.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_array_with_holes.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_array_without_holes.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_assert_this_initialized.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_async_generator.cjs +76 -0
- package/node_modules/@swc/helpers/cjs/_async_generator_delegate.cjs +53 -0
- package/node_modules/@swc/helpers/cjs/_async_iterator.cjs +46 -0
- package/node_modules/@swc/helpers/cjs/_async_to_generator.cjs +33 -0
- package/node_modules/@swc/helpers/cjs/_await_async_generator.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_await_value.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_call_super.cjs +19 -0
- package/node_modules/@swc/helpers/cjs/_check_private_redeclaration.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_destructure.cjs +25 -0
- package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_get.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_set.cjs +15 -0
- package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_update.cjs +30 -0
- package/node_modules/@swc/helpers/cjs/_class_call_check.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_class_check_private_static_access.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_class_check_private_static_field_descriptor.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_class_extract_field_descriptor.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_class_name_tdz_error.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_class_private_field_destructure.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_class_private_field_get.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_class_private_field_init.cjs +9 -0
- package/node_modules/@swc/helpers/cjs/_class_private_field_loose_base.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_class_private_field_loose_key.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_class_private_field_set.cjs +11 -0
- package/node_modules/@swc/helpers/cjs/_class_private_field_update.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_class_private_method_get.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_class_private_method_init.cjs +9 -0
- package/node_modules/@swc/helpers/cjs/_class_private_method_set.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_class_static_private_field_destructure.cjs +13 -0
- package/node_modules/@swc/helpers/cjs/_class_static_private_field_spec_get.cjs +13 -0
- package/node_modules/@swc/helpers/cjs/_class_static_private_field_spec_set.cjs +14 -0
- package/node_modules/@swc/helpers/cjs/_class_static_private_field_update.cjs +13 -0
- package/node_modules/@swc/helpers/cjs/_class_static_private_method_get.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_construct.cjs +22 -0
- package/node_modules/@swc/helpers/cjs/_create_class.cjs +20 -0
- package/node_modules/@swc/helpers/cjs/_create_for_of_iterator_helper_loose.cjs +24 -0
- package/node_modules/@swc/helpers/cjs/_create_super.cjs +23 -0
- package/node_modules/@swc/helpers/cjs/_decorate.cjs +270 -0
- package/node_modules/@swc/helpers/cjs/_defaults.cjs +15 -0
- package/node_modules/@swc/helpers/cjs/_define_enumerable_properties.cjs +26 -0
- package/node_modules/@swc/helpers/cjs/_define_property.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_dispose.cjs +43 -0
- package/node_modules/@swc/helpers/cjs/_export_star.cjs +17 -0
- package/node_modules/@swc/helpers/cjs/_extends.cjs +15 -0
- package/node_modules/@swc/helpers/cjs/_get.cjs +23 -0
- package/node_modules/@swc/helpers/cjs/_get_prototype_of.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_identity.cjs +7 -0
- package/node_modules/@swc/helpers/cjs/_inherits.cjs +14 -0
- package/node_modules/@swc/helpers/cjs/_inherits_loose.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_initializer_define_property.cjs +13 -0
- package/node_modules/@swc/helpers/cjs/_initializer_warning_helper.cjs +11 -0
- package/node_modules/@swc/helpers/cjs/_instanceof.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +38 -0
- package/node_modules/@swc/helpers/cjs/_is_native_function.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_is_native_reflect_construct.cjs +18 -0
- package/node_modules/@swc/helpers/cjs/_iterable_to_array.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_iterable_to_array_limit.cjs +31 -0
- package/node_modules/@swc/helpers/cjs/_iterable_to_array_limit_loose.cjs +17 -0
- package/node_modules/@swc/helpers/cjs/_jsx.cjs +28 -0
- package/node_modules/@swc/helpers/cjs/_new_arrow_check.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_non_iterable_rest.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_non_iterable_spread.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_object_destructuring_empty.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_object_spread.cjs +25 -0
- package/node_modules/@swc/helpers/cjs/_object_spread_props.cjs +30 -0
- package/node_modules/@swc/helpers/cjs/_object_without_properties.cjs +23 -0
- package/node_modules/@swc/helpers/cjs/_object_without_properties_loose.cjs +18 -0
- package/node_modules/@swc/helpers/cjs/_overload_yield.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_possible_constructor_return.cjs +11 -0
- package/node_modules/@swc/helpers/cjs/_read_only_error.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_set.cjs +44 -0
- package/node_modules/@swc/helpers/cjs/_set_prototype_of.cjs +12 -0
- package/node_modules/@swc/helpers/cjs/_skip_first_generator_next.cjs +11 -0
- package/node_modules/@swc/helpers/cjs/_sliced_to_array.cjs +11 -0
- package/node_modules/@swc/helpers/cjs/_sliced_to_array_loose.cjs +11 -0
- package/node_modules/@swc/helpers/cjs/_super_prop_base.cjs +13 -0
- package/node_modules/@swc/helpers/cjs/_tagged_template_literal.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_tagged_template_literal_loose.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_throw.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/_to_array.cjs +11 -0
- package/node_modules/@swc/helpers/cjs/_to_consumable_array.cjs +11 -0
- package/node_modules/@swc/helpers/cjs/_to_primitive.cjs +18 -0
- package/node_modules/@swc/helpers/cjs/_to_property_key.cjs +11 -0
- package/node_modules/@swc/helpers/cjs/_ts_add_disposable_resource.cjs +3 -0
- package/node_modules/@swc/helpers/cjs/_ts_decorate.cjs +3 -0
- package/node_modules/@swc/helpers/cjs/_ts_dispose_resources.cjs +3 -0
- package/node_modules/@swc/helpers/cjs/_ts_generator.cjs +3 -0
- package/node_modules/@swc/helpers/cjs/_ts_metadata.cjs +3 -0
- package/node_modules/@swc/helpers/cjs/_ts_param.cjs +3 -0
- package/node_modules/@swc/helpers/cjs/_ts_values.cjs +3 -0
- package/node_modules/@swc/helpers/cjs/_type_of.cjs +8 -0
- package/node_modules/@swc/helpers/cjs/_unsupported_iterable_to_array.cjs +15 -0
- package/node_modules/@swc/helpers/cjs/_update.cjs +16 -0
- package/node_modules/@swc/helpers/cjs/_using.cjs +24 -0
- package/node_modules/@swc/helpers/cjs/_using_ctx.cjs +75 -0
- package/node_modules/@swc/helpers/cjs/_wrap_async_generator.cjs +10 -0
- package/node_modules/@swc/helpers/cjs/_wrap_native_super.cjs +28 -0
- package/node_modules/@swc/helpers/cjs/_write_only_error.cjs +6 -0
- package/node_modules/@swc/helpers/cjs/index.cjs +427 -0
- package/node_modules/@swc/helpers/esm/_apply_decorated_descriptor.js +33 -0
- package/node_modules/@swc/helpers/esm/_apply_decs_2203_r.js +548 -0
- package/node_modules/@swc/helpers/esm/_array_like_to_array.js +8 -0
- package/node_modules/@swc/helpers/esm/_array_with_holes.js +4 -0
- package/node_modules/@swc/helpers/esm/_array_without_holes.js +6 -0
- package/node_modules/@swc/helpers/esm/_assert_this_initialized.js +6 -0
- package/node_modules/@swc/helpers/esm/_async_generator.js +74 -0
- package/node_modules/@swc/helpers/esm/_async_generator_delegate.js +51 -0
- package/node_modules/@swc/helpers/esm/_async_iterator.js +44 -0
- package/node_modules/@swc/helpers/esm/_async_to_generator.js +31 -0
- package/node_modules/@swc/helpers/esm/_await_async_generator.js +6 -0
- package/node_modules/@swc/helpers/esm/_await_value.js +4 -0
- package/node_modules/@swc/helpers/esm/_call_super.js +17 -0
- package/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +6 -0
- package/node_modules/@swc/helpers/esm/_class_apply_descriptor_destructure.js +23 -0
- package/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.js +6 -0
- package/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.js +13 -0
- package/node_modules/@swc/helpers/esm/_class_apply_descriptor_update.js +28 -0
- package/node_modules/@swc/helpers/esm/_class_call_check.js +4 -0
- package/node_modules/@swc/helpers/esm/_class_check_private_static_access.js +4 -0
- package/node_modules/@swc/helpers/esm/_class_check_private_static_field_descriptor.js +6 -0
- package/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.js +6 -0
- package/node_modules/@swc/helpers/esm/_class_name_tdz_error.js +4 -0
- package/node_modules/@swc/helpers/esm/_class_private_field_destructure.js +8 -0
- package/node_modules/@swc/helpers/esm/_class_private_field_get.js +8 -0
- package/node_modules/@swc/helpers/esm/_class_private_field_init.js +7 -0
- package/node_modules/@swc/helpers/esm/_class_private_field_loose_base.js +8 -0
- package/node_modules/@swc/helpers/esm/_class_private_field_loose_key.js +6 -0
- package/node_modules/@swc/helpers/esm/_class_private_field_set.js +9 -0
- package/node_modules/@swc/helpers/esm/_class_private_field_update.js +8 -0
- package/node_modules/@swc/helpers/esm/_class_private_method_get.js +6 -0
- package/node_modules/@swc/helpers/esm/_class_private_method_init.js +7 -0
- package/node_modules/@swc/helpers/esm/_class_private_method_set.js +4 -0
- package/node_modules/@swc/helpers/esm/_class_static_private_field_destructure.js +11 -0
- package/node_modules/@swc/helpers/esm/_class_static_private_field_spec_get.js +11 -0
- package/node_modules/@swc/helpers/esm/_class_static_private_field_spec_set.js +12 -0
- package/node_modules/@swc/helpers/esm/_class_static_private_field_update.js +11 -0
- package/node_modules/@swc/helpers/esm/_class_static_private_method_get.js +8 -0
- package/node_modules/@swc/helpers/esm/_construct.js +20 -0
- package/node_modules/@swc/helpers/esm/_create_class.js +18 -0
- package/node_modules/@swc/helpers/esm/_create_for_of_iterator_helper_loose.js +22 -0
- package/node_modules/@swc/helpers/esm/_create_super.js +21 -0
- package/node_modules/@swc/helpers/esm/_decorate.js +268 -0
- package/node_modules/@swc/helpers/esm/_defaults.js +13 -0
- package/node_modules/@swc/helpers/esm/_define_enumerable_properties.js +24 -0
- package/node_modules/@swc/helpers/esm/_define_property.js +8 -0
- package/node_modules/@swc/helpers/esm/_dispose.js +41 -0
- package/node_modules/@swc/helpers/esm/_export_star.js +15 -0
- package/node_modules/@swc/helpers/esm/_extends.js +13 -0
- package/node_modules/@swc/helpers/esm/_get.js +21 -0
- package/node_modules/@swc/helpers/esm/_get_prototype_of.js +8 -0
- package/node_modules/@swc/helpers/esm/_identity.js +5 -0
- package/node_modules/@swc/helpers/esm/_inherits.js +12 -0
- package/node_modules/@swc/helpers/esm/_inherits_loose.js +6 -0
- package/node_modules/@swc/helpers/esm/_initializer_define_property.js +11 -0
- package/node_modules/@swc/helpers/esm/_initializer_warning_helper.js +9 -0
- package/node_modules/@swc/helpers/esm/_instanceof.js +6 -0
- package/node_modules/@swc/helpers/esm/_interop_require_default.js +4 -0
- package/node_modules/@swc/helpers/esm/_interop_require_wildcard.js +36 -0
- package/node_modules/@swc/helpers/esm/_is_native_function.js +4 -0
- package/node_modules/@swc/helpers/esm/_is_native_reflect_construct.js +16 -0
- package/node_modules/@swc/helpers/esm/_iterable_to_array.js +6 -0
- package/node_modules/@swc/helpers/esm/_iterable_to_array_limit.js +29 -0
- package/node_modules/@swc/helpers/esm/_iterable_to_array_limit_loose.js +15 -0
- package/node_modules/@swc/helpers/esm/_jsx.js +26 -0
- package/node_modules/@swc/helpers/esm/_new_arrow_check.js +4 -0
- package/node_modules/@swc/helpers/esm/_non_iterable_rest.js +4 -0
- package/node_modules/@swc/helpers/esm/_non_iterable_spread.js +4 -0
- package/node_modules/@swc/helpers/esm/_object_destructuring_empty.js +6 -0
- package/node_modules/@swc/helpers/esm/_object_spread.js +23 -0
- package/node_modules/@swc/helpers/esm/_object_spread_props.js +28 -0
- package/node_modules/@swc/helpers/esm/_object_without_properties.js +21 -0
- package/node_modules/@swc/helpers/esm/_object_without_properties_loose.js +16 -0
- package/node_modules/@swc/helpers/esm/_overload_yield.js +6 -0
- package/node_modules/@swc/helpers/esm/_possible_constructor_return.js +9 -0
- package/node_modules/@swc/helpers/esm/_read_only_error.js +4 -0
- package/node_modules/@swc/helpers/esm/_set.js +42 -0
- package/node_modules/@swc/helpers/esm/_set_prototype_of.js +10 -0
- package/node_modules/@swc/helpers/esm/_skip_first_generator_next.js +9 -0
- package/node_modules/@swc/helpers/esm/_sliced_to_array.js +9 -0
- package/node_modules/@swc/helpers/esm/_sliced_to_array_loose.js +9 -0
- package/node_modules/@swc/helpers/esm/_super_prop_base.js +11 -0
- package/node_modules/@swc/helpers/esm/_tagged_template_literal.js +6 -0
- package/node_modules/@swc/helpers/esm/_tagged_template_literal_loose.js +8 -0
- package/node_modules/@swc/helpers/esm/_throw.js +4 -0
- package/node_modules/@swc/helpers/esm/_to_array.js +9 -0
- package/node_modules/@swc/helpers/esm/_to_consumable_array.js +9 -0
- package/node_modules/@swc/helpers/esm/_to_primitive.js +16 -0
- package/node_modules/@swc/helpers/esm/_to_property_key.js +9 -0
- package/node_modules/@swc/helpers/esm/_ts_add_disposable_resource.js +1 -0
- package/node_modules/@swc/helpers/esm/_ts_decorate.js +1 -0
- package/node_modules/@swc/helpers/esm/_ts_dispose_resources.js +1 -0
- package/node_modules/@swc/helpers/esm/_ts_generator.js +1 -0
- package/node_modules/@swc/helpers/esm/_ts_metadata.js +1 -0
- package/node_modules/@swc/helpers/esm/_ts_param.js +1 -0
- package/node_modules/@swc/helpers/esm/_ts_values.js +1 -0
- package/node_modules/@swc/helpers/esm/_type_of.js +6 -0
- package/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js +13 -0
- package/node_modules/@swc/helpers/esm/_update.js +14 -0
- package/node_modules/@swc/helpers/esm/_using.js +22 -0
- package/node_modules/@swc/helpers/esm/_using_ctx.js +73 -0
- package/node_modules/@swc/helpers/esm/_wrap_async_generator.js +8 -0
- package/node_modules/@swc/helpers/esm/_wrap_native_super.js +26 -0
- package/node_modules/@swc/helpers/esm/_write_only_error.js +4 -0
- package/node_modules/@swc/helpers/esm/index.js +107 -0
- package/node_modules/@swc/helpers/package.json +689 -0
- package/node_modules/@swc/helpers/scripts/ast_grep.js +229 -0
- package/node_modules/@swc/helpers/scripts/build.js +133 -0
- package/node_modules/@swc/helpers/scripts/errors.js +1 -0
- package/node_modules/@swc/helpers/scripts/utils.js +3 -0
- package/node_modules/@swc/helpers/src/_apply_decorated_descriptor.mjs +1 -0
- package/node_modules/@swc/helpers/src/_apply_decs_2203_r.mjs +1 -0
- package/node_modules/@swc/helpers/src/_array_like_to_array.mjs +1 -0
- package/node_modules/@swc/helpers/src/_array_with_holes.mjs +1 -0
- package/node_modules/@swc/helpers/src/_array_without_holes.mjs +1 -0
- package/node_modules/@swc/helpers/src/_assert_this_initialized.mjs +1 -0
- package/node_modules/@swc/helpers/src/_async_generator.mjs +1 -0
- package/node_modules/@swc/helpers/src/_async_generator_delegate.mjs +1 -0
- package/node_modules/@swc/helpers/src/_async_iterator.mjs +1 -0
- package/node_modules/@swc/helpers/src/_async_to_generator.mjs +1 -0
- package/node_modules/@swc/helpers/src/_await_async_generator.mjs +1 -0
- package/node_modules/@swc/helpers/src/_await_value.mjs +1 -0
- package/node_modules/@swc/helpers/src/_call_super.mjs +1 -0
- package/node_modules/@swc/helpers/src/_check_private_redeclaration.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_apply_descriptor_destructure.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_apply_descriptor_get.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_apply_descriptor_set.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_apply_descriptor_update.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_call_check.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_check_private_static_access.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_check_private_static_field_descriptor.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_extract_field_descriptor.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_name_tdz_error.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_field_destructure.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_field_get.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_field_init.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_field_loose_base.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_field_loose_key.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_field_set.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_field_update.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_method_get.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_method_init.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_private_method_set.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_static_private_field_destructure.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_static_private_field_spec_get.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_static_private_field_spec_set.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_static_private_field_update.mjs +1 -0
- package/node_modules/@swc/helpers/src/_class_static_private_method_get.mjs +1 -0
- package/node_modules/@swc/helpers/src/_construct.mjs +1 -0
- package/node_modules/@swc/helpers/src/_create_class.mjs +1 -0
- package/node_modules/@swc/helpers/src/_create_for_of_iterator_helper_loose.mjs +1 -0
- package/node_modules/@swc/helpers/src/_create_super.mjs +1 -0
- package/node_modules/@swc/helpers/src/_decorate.mjs +1 -0
- package/node_modules/@swc/helpers/src/_defaults.mjs +1 -0
- package/node_modules/@swc/helpers/src/_define_enumerable_properties.mjs +1 -0
- package/node_modules/@swc/helpers/src/_define_property.mjs +1 -0
- package/node_modules/@swc/helpers/src/_dispose.mjs +1 -0
- package/node_modules/@swc/helpers/src/_export_star.mjs +1 -0
- package/node_modules/@swc/helpers/src/_extends.mjs +1 -0
- package/node_modules/@swc/helpers/src/_get.mjs +1 -0
- package/node_modules/@swc/helpers/src/_get_prototype_of.mjs +1 -0
- package/node_modules/@swc/helpers/src/_identity.mjs +1 -0
- package/node_modules/@swc/helpers/src/_inherits.mjs +1 -0
- package/node_modules/@swc/helpers/src/_inherits_loose.mjs +1 -0
- package/node_modules/@swc/helpers/src/_initializer_define_property.mjs +1 -0
- package/node_modules/@swc/helpers/src/_initializer_warning_helper.mjs +1 -0
- package/node_modules/@swc/helpers/src/_instanceof.mjs +1 -0
- package/node_modules/@swc/helpers/src/_interop_require_default.mjs +1 -0
- package/node_modules/@swc/helpers/src/_interop_require_wildcard.mjs +1 -0
- package/node_modules/@swc/helpers/src/_is_native_function.mjs +1 -0
- package/node_modules/@swc/helpers/src/_is_native_reflect_construct.mjs +1 -0
- package/node_modules/@swc/helpers/src/_iterable_to_array.mjs +1 -0
- package/node_modules/@swc/helpers/src/_iterable_to_array_limit.mjs +1 -0
- package/node_modules/@swc/helpers/src/_iterable_to_array_limit_loose.mjs +1 -0
- package/node_modules/@swc/helpers/src/_jsx.mjs +1 -0
- package/node_modules/@swc/helpers/src/_new_arrow_check.mjs +1 -0
- package/node_modules/@swc/helpers/src/_non_iterable_rest.mjs +1 -0
- package/node_modules/@swc/helpers/src/_non_iterable_spread.mjs +1 -0
- package/node_modules/@swc/helpers/src/_object_destructuring_empty.mjs +1 -0
- package/node_modules/@swc/helpers/src/_object_spread.mjs +1 -0
- package/node_modules/@swc/helpers/src/_object_spread_props.mjs +1 -0
- package/node_modules/@swc/helpers/src/_object_without_properties.mjs +1 -0
- package/node_modules/@swc/helpers/src/_object_without_properties_loose.mjs +1 -0
- package/node_modules/@swc/helpers/src/_overload_yield.mjs +1 -0
- package/node_modules/@swc/helpers/src/_possible_constructor_return.mjs +1 -0
- package/node_modules/@swc/helpers/src/_read_only_error.mjs +1 -0
- package/node_modules/@swc/helpers/src/_set.mjs +1 -0
- package/node_modules/@swc/helpers/src/_set_prototype_of.mjs +1 -0
- package/node_modules/@swc/helpers/src/_skip_first_generator_next.mjs +1 -0
- package/node_modules/@swc/helpers/src/_sliced_to_array.mjs +1 -0
- package/node_modules/@swc/helpers/src/_sliced_to_array_loose.mjs +1 -0
- package/node_modules/@swc/helpers/src/_super_prop_base.mjs +1 -0
- package/node_modules/@swc/helpers/src/_tagged_template_literal.mjs +1 -0
- package/node_modules/@swc/helpers/src/_tagged_template_literal_loose.mjs +1 -0
- package/node_modules/@swc/helpers/src/_throw.mjs +1 -0
- package/node_modules/@swc/helpers/src/_to_array.mjs +1 -0
- package/node_modules/@swc/helpers/src/_to_consumable_array.mjs +1 -0
- package/node_modules/@swc/helpers/src/_to_primitive.mjs +1 -0
- package/node_modules/@swc/helpers/src/_to_property_key.mjs +1 -0
- package/node_modules/@swc/helpers/src/_ts_add_disposable_resource.mjs +1 -0
- package/node_modules/@swc/helpers/src/_ts_decorate.mjs +1 -0
- package/node_modules/@swc/helpers/src/_ts_dispose_resources.mjs +1 -0
- package/node_modules/@swc/helpers/src/_ts_generator.mjs +1 -0
- package/node_modules/@swc/helpers/src/_ts_metadata.mjs +1 -0
- package/node_modules/@swc/helpers/src/_ts_param.mjs +1 -0
- package/node_modules/@swc/helpers/src/_ts_values.mjs +1 -0
- package/node_modules/@swc/helpers/src/_type_of.mjs +1 -0
- package/node_modules/@swc/helpers/src/_unsupported_iterable_to_array.mjs +1 -0
- package/node_modules/@swc/helpers/src/_update.mjs +1 -0
- package/node_modules/@swc/helpers/src/_using.mjs +1 -0
- package/node_modules/@swc/helpers/src/_using_ctx.mjs +1 -0
- package/node_modules/@swc/helpers/src/_wrap_async_generator.mjs +1 -0
- package/node_modules/@swc/helpers/src/_wrap_native_super.mjs +1 -0
- package/node_modules/@swc/helpers/src/_write_only_error.mjs +1 -0
- package/node_modules/@swc/helpers/src/index.mjs +1 -0
- package/node_modules/@types/connect/LICENSE +21 -0
- package/node_modules/@types/connect/README.md +15 -0
- package/node_modules/@types/connect/index.d.ts +91 -0
- package/node_modules/@types/connect/package.json +32 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +15 -0
- package/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/node_modules/@types/node/assert.d.ts +1054 -0
- package/node_modules/@types/node/async_hooks.d.ts +603 -0
- package/node_modules/@types/node/buffer.buffer.d.ts +463 -0
- package/node_modules/@types/node/buffer.d.ts +1926 -0
- package/node_modules/@types/node/child_process.d.ts +1549 -0
- package/node_modules/@types/node/cluster.d.ts +579 -0
- package/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@types/node/console.d.ts +452 -0
- package/node_modules/@types/node/constants.d.ts +21 -0
- package/node_modules/@types/node/crypto.d.ts +4509 -0
- package/node_modules/@types/node/dgram.d.ts +599 -0
- package/node_modules/@types/node/diagnostics_channel.d.ts +573 -0
- package/node_modules/@types/node/dns/promises.d.ts +476 -0
- package/node_modules/@types/node/dns.d.ts +865 -0
- package/node_modules/@types/node/dom-events.d.ts +124 -0
- package/node_modules/@types/node/domain.d.ts +170 -0
- package/node_modules/@types/node/events.d.ts +931 -0
- package/node_modules/@types/node/fs/promises.d.ts +1272 -0
- package/node_modules/@types/node/fs.d.ts +4437 -0
- package/node_modules/@types/node/globals.d.ts +371 -0
- package/node_modules/@types/node/globals.typedarray.d.ts +21 -0
- package/node_modules/@types/node/http.d.ts +1980 -0
- package/node_modules/@types/node/http2.d.ts +2557 -0
- package/node_modules/@types/node/https.d.ts +545 -0
- package/node_modules/@types/node/index.d.ts +92 -0
- package/node_modules/@types/node/inspector.d.ts +4002 -0
- package/node_modules/@types/node/module.d.ts +772 -0
- package/node_modules/@types/node/net.d.ts +1035 -0
- package/node_modules/@types/node/os.d.ts +495 -0
- package/node_modules/@types/node/package.json +225 -0
- package/node_modules/@types/node/path.d.ts +200 -0
- package/node_modules/@types/node/perf_hooks.d.ts +970 -0
- package/node_modules/@types/node/process.d.ts +2063 -0
- package/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@types/node/querystring.d.ts +152 -0
- package/node_modules/@types/node/readline/promises.d.ts +162 -0
- package/node_modules/@types/node/readline.d.ts +594 -0
- package/node_modules/@types/node/repl.d.ts +430 -0
- package/node_modules/@types/node/sea.d.ts +153 -0
- package/node_modules/@types/node/sqlite.d.ts +508 -0
- package/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/node_modules/@types/node/stream/web.d.ts +614 -0
- package/node_modules/@types/node/stream.d.ts +1662 -0
- package/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@types/node/test.d.ts +2280 -0
- package/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/node_modules/@types/node/timers.d.ts +287 -0
- package/node_modules/@types/node/tls.d.ts +1259 -0
- package/node_modules/@types/node/trace_events.d.ts +197 -0
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +460 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +92 -0
- package/node_modules/@types/node/tty.d.ts +208 -0
- package/node_modules/@types/node/url.d.ts +972 -0
- package/node_modules/@types/node/util.d.ts +2584 -0
- package/node_modules/@types/node/v8.d.ts +889 -0
- package/node_modules/@types/node/vm.d.ts +991 -0
- package/node_modules/@types/node/wasi.d.ts +181 -0
- package/node_modules/@types/node/worker_threads.d.ts +746 -0
- package/node_modules/@types/node/zlib.d.ts +670 -0
- package/node_modules/@types/uuid/LICENSE +21 -0
- package/node_modules/@types/uuid/README.md +16 -0
- package/node_modules/@types/uuid/index.d.mts +10 -0
- package/node_modules/@types/uuid/index.d.ts +80 -0
- package/node_modules/@types/uuid/package.json +54 -0
- package/node_modules/@types/ws/LICENSE +21 -0
- package/node_modules/@types/ws/README.md +16 -0
- package/node_modules/@types/ws/index.d.ts +353 -0
- package/node_modules/@types/ws/package.json +57 -0
- package/node_modules/agentkeepalive/LICENSE +23 -0
- package/node_modules/agentkeepalive/README.md +256 -0
- package/node_modules/agentkeepalive/browser.js +5 -0
- package/node_modules/agentkeepalive/index.d.ts +69 -0
- package/node_modules/agentkeepalive/index.js +7 -0
- package/node_modules/agentkeepalive/lib/agent.js +402 -0
- package/node_modules/agentkeepalive/lib/constants.js +14 -0
- package/node_modules/agentkeepalive/lib/https_agent.js +51 -0
- package/node_modules/agentkeepalive/package.json +56 -0
- package/node_modules/base-x/LICENSE.md +22 -0
- package/node_modules/base-x/README.md +67 -0
- package/node_modules/base-x/package.json +49 -0
- package/node_modules/base-x/src/index.d.ts +10 -0
- package/node_modules/base-x/src/index.js +123 -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/bn.js/LICENSE +19 -0
- package/node_modules/bn.js/README.md +214 -0
- package/node_modules/bn.js/lib/bn.js +3548 -0
- package/node_modules/bn.js/package.json +39 -0
- package/node_modules/borsh/LICENSE-APACHE +201 -0
- package/node_modules/borsh/LICENSE-MIT.txt +23 -0
- package/node_modules/borsh/README.md +83 -0
- package/node_modules/borsh/lib/index.d.ts +52 -0
- package/node_modules/borsh/lib/index.js +440 -0
- package/node_modules/borsh/package.json +61 -0
- package/node_modules/bs58/README.md +71 -0
- package/node_modules/bs58/index.js +4 -0
- package/node_modules/bs58/package.json +37 -0
- package/node_modules/buffer/AUTHORS.md +73 -0
- package/node_modules/buffer/LICENSE +21 -0
- package/node_modules/buffer/README.md +410 -0
- package/node_modules/buffer/index.d.ts +194 -0
- package/node_modules/buffer/index.js +2106 -0
- package/node_modules/buffer/package.json +93 -0
- package/node_modules/buffer-layout/.eslintrc.js +45 -0
- package/node_modules/buffer-layout/.travis.yml +9 -0
- package/node_modules/buffer-layout/CHANGELOG.md +222 -0
- package/node_modules/buffer-layout/LICENSE +21 -0
- package/node_modules/buffer-layout/README.md +397 -0
- package/node_modules/buffer-layout/jsdoc/conf.json +10 -0
- package/node_modules/buffer-layout/jsdoc/custom/local.js +75 -0
- package/node_modules/buffer-layout/lib/Layout.js +2712 -0
- package/node_modules/buffer-layout/package.json +40 -0
- package/node_modules/buffer-layout/test/LayoutTest.js +2162 -0
- package/node_modules/buffer-layout/test/examples.c +112 -0
- package/node_modules/buffer-layout/test/examples.js +259 -0
- package/node_modules/buffer-layout/test/n64.c +71 -0
- package/node_modules/buffer-layout/x.js +36 -0
- package/node_modules/bufferutil/LICENSE +20 -0
- package/node_modules/bufferutil/README.md +79 -0
- package/node_modules/bufferutil/binding.gyp +32 -0
- package/node_modules/bufferutil/fallback.js +34 -0
- package/node_modules/bufferutil/index.js +7 -0
- package/node_modules/bufferutil/package.json +36 -0
- package/node_modules/bufferutil/prebuilds/darwin-x64+arm64/bufferutil.node +0 -0
- package/node_modules/bufferutil/prebuilds/linux-x64/bufferutil.node +0 -0
- package/node_modules/bufferutil/prebuilds/win32-ia32/bufferutil.node +0 -0
- package/node_modules/bufferutil/prebuilds/win32-x64/bufferutil.node +0 -0
- package/node_modules/bufferutil/src/bufferutil.c +171 -0
- package/node_modules/camelcase/index.d.ts +103 -0
- package/node_modules/camelcase/index.js +113 -0
- package/node_modules/camelcase/license +9 -0
- package/node_modules/camelcase/package.json +44 -0
- package/node_modules/camelcase/readme.md +144 -0
- package/node_modules/commander/LICENSE +22 -0
- package/node_modules/commander/Readme.md +428 -0
- package/node_modules/commander/index.js +1224 -0
- package/node_modules/commander/package.json +38 -0
- package/node_modules/commander/typings/index.d.ts +310 -0
- package/node_modules/cross-fetch/LICENSE +21 -0
- package/node_modules/cross-fetch/README.md +169 -0
- package/node_modules/cross-fetch/dist/browser-polyfill.js +658 -0
- package/node_modules/cross-fetch/dist/browser-ponyfill.js +686 -0
- package/node_modules/cross-fetch/dist/cross-fetch.js +2 -0
- package/node_modules/cross-fetch/dist/cross-fetch.js.map +1 -0
- package/node_modules/cross-fetch/dist/node-polyfill.js +11 -0
- package/node_modules/cross-fetch/dist/node-ponyfill.js +22 -0
- package/node_modules/cross-fetch/dist/react-native-polyfill.js +12 -0
- package/node_modules/cross-fetch/dist/react-native-ponyfill.js +6 -0
- package/node_modules/cross-fetch/index.d.ts +14 -0
- package/node_modules/cross-fetch/package.json +127 -0
- package/node_modules/cross-fetch/polyfill/package.json +8 -0
- package/node_modules/delay/index.d.ts +107 -0
- package/node_modules/delay/index.js +72 -0
- package/node_modules/delay/license +9 -0
- package/node_modules/delay/package.json +54 -0
- package/node_modules/delay/readme.md +173 -0
- package/node_modules/es6-promise/LICENSE +19 -0
- package/node_modules/es6-promise/README.md +97 -0
- package/node_modules/es6-promise/auto.js +4 -0
- package/node_modules/es6-promise/dist/es6-promise.auto.js +1176 -0
- package/node_modules/es6-promise/dist/es6-promise.auto.map +1 -0
- package/node_modules/es6-promise/dist/es6-promise.auto.min.js +1 -0
- package/node_modules/es6-promise/dist/es6-promise.auto.min.map +1 -0
- package/node_modules/es6-promise/dist/es6-promise.js +1174 -0
- package/node_modules/es6-promise/dist/es6-promise.map +1 -0
- package/node_modules/es6-promise/dist/es6-promise.min.js +1 -0
- package/node_modules/es6-promise/dist/es6-promise.min.map +1 -0
- package/node_modules/es6-promise/es6-promise.d.ts +85 -0
- package/node_modules/es6-promise/lib/es6-promise/-internal.js +243 -0
- package/node_modules/es6-promise/lib/es6-promise/asap.js +119 -0
- package/node_modules/es6-promise/lib/es6-promise/enumerator.js +124 -0
- package/node_modules/es6-promise/lib/es6-promise/polyfill.js +35 -0
- package/node_modules/es6-promise/lib/es6-promise/promise/all.js +52 -0
- package/node_modules/es6-promise/lib/es6-promise/promise/race.js +84 -0
- package/node_modules/es6-promise/lib/es6-promise/promise/reject.js +46 -0
- package/node_modules/es6-promise/lib/es6-promise/promise/resolve.js +48 -0
- package/node_modules/es6-promise/lib/es6-promise/promise.js +431 -0
- package/node_modules/es6-promise/lib/es6-promise/then.js +32 -0
- package/node_modules/es6-promise/lib/es6-promise/utils.js +21 -0
- package/node_modules/es6-promise/lib/es6-promise.auto.js +3 -0
- package/node_modules/es6-promise/lib/es6-promise.js +7 -0
- package/node_modules/es6-promise/package.json +78 -0
- package/node_modules/es6-promisify/README.md +89 -0
- package/node_modules/es6-promisify/dist/promise.js +73 -0
- package/node_modules/es6-promisify/dist/promisify.js +85 -0
- package/node_modules/es6-promisify/package.json +41 -0
- package/node_modules/eventemitter3/LICENSE +21 -0
- package/node_modules/eventemitter3/README.md +94 -0
- package/node_modules/eventemitter3/index.d.ts +134 -0
- package/node_modules/eventemitter3/index.js +336 -0
- package/node_modules/eventemitter3/package.json +56 -0
- package/node_modules/eventemitter3/umd/eventemitter3.js +340 -0
- package/node_modules/eventemitter3/umd/eventemitter3.min.js +1 -0
- package/node_modules/eventemitter3/umd/eventemitter3.min.js.map +1 -0
- package/node_modules/eyes/LICENSE +20 -0
- package/node_modules/eyes/Makefile +4 -0
- package/node_modules/eyes/README.md +73 -0
- package/node_modules/eyes/lib/eyes.js +236 -0
- package/node_modules/eyes/package.json +14 -0
- package/node_modules/eyes/test/eyes-test.js +56 -0
- package/node_modules/fast-stable-stringify/.npmignore +4 -0
- package/node_modules/fast-stable-stringify/.travis.yml +10 -0
- package/node_modules/fast-stable-stringify/LICENSE +21 -0
- package/node_modules/fast-stable-stringify/README.md +81 -0
- package/node_modules/fast-stable-stringify/cli/files-to-comparison-results.js +67 -0
- package/node_modules/fast-stable-stringify/cli/format-table.js +70 -0
- package/node_modules/fast-stable-stringify/cli/index.js +19 -0
- package/node_modules/fast-stable-stringify/fixtures/index.js +5 -0
- package/node_modules/fast-stable-stringify/fixtures/input-data-types.js +191 -0
- package/node_modules/fast-stable-stringify/fixtures/log-result.json +22 -0
- package/node_modules/fast-stable-stringify/fixtures/log.txt +24 -0
- package/node_modules/fast-stable-stringify/index.js +73 -0
- package/node_modules/fast-stable-stringify/karma.conf.js +124 -0
- package/node_modules/fast-stable-stringify/karma.conf.travis.js +95 -0
- package/node_modules/fast-stable-stringify/package.json +47 -0
- package/node_modules/fast-stable-stringify/results/escape-long/Chrome 60.0.3112 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-long/Chrome Mobile 55.0.2883 (Android 6.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-long/Edge 14.14393.0 (Windows 10 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-long/Firefox 54.0.0 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-long/IE 10.0.0 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-long/IE 11.0.0 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-long/IE 9.0.0 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-long/Mobile Safari 10.0.0 (iOS 10.3.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-long/Safari 10.0.1 (Mac OS X 10.12.1).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-short/Chrome 60.0.3112 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-short/Chrome Mobile 55.0.2883 (Android 6.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-short/Edge 14.14393.0 (Windows 10 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-short/Firefox 54.0.0 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-short/IE 10.0.0 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-short/IE 11.0.0 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-short/IE 9.0.0 (Windows 7 0.0.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-short/Mobile Safari 10.0.0 (iOS 10.3.0).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape-short/Safari 10.0.1 (Mac OS X 10.12.1).json +57 -0
- package/node_modules/fast-stable-stringify/results/escape.md +20 -0
- package/node_modules/fast-stable-stringify/results/itar-long/Chrome 60.0.3112 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-long/Chrome Mobile 55.0.2883 (Android 6.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-long/Edge 14.14393.0 (Windows 10 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-long/Firefox 54.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-long/IE 10.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-long/IE 11.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-long/IE 9.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-long/Mobile Safari 10.0.0 (iOS 10.3.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-long/Safari 10.0.1 (Mac OS X 10.12.1).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-short/Chrome 60.0.3112 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-short/Chrome Mobile 55.0.2883 (Android 6.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-short/Edge 14.14393.0 (Windows 10 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-short/Firefox 54.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-short/IE 10.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-short/IE 11.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-short/IE 9.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-short/Mobile Safari 10.0.0 (iOS 10.3.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar-short/Safari 10.0.1 (Mac OS X 10.12.1).json +35 -0
- package/node_modules/fast-stable-stringify/results/itar.md +20 -0
- package/node_modules/fast-stable-stringify/results/iter/Chrome 60.0.3112 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/Chrome Mobile 39.0.0 (Android 5.1.1).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/Chrome Mobile 55.0.2883 (Android 6.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/Edge 14.14393.0 (Windows 10 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/Firefox 54.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/IE 10.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/IE 11.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/IE 9.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/Mobile Safari 10.0.0 (iOS 10.3.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/Mobile Safari 9.0.0 (iOS 9.2.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/Safari 10.0.1 (Mac OS X 10.12.1).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter/Safari 9.1.2 (Mac OS X 10.11.6).json +35 -0
- package/node_modules/fast-stable-stringify/results/iter.md +14 -0
- package/node_modules/fast-stable-stringify/results/libs/Chrome 60.0.3112 (Windows 7 0.0.0).json +46 -0
- package/node_modules/fast-stable-stringify/results/libs/Chrome Mobile 55.0.2883 (Android 6.0.0).json +46 -0
- package/node_modules/fast-stable-stringify/results/libs/Edge 14.14393.0 (Windows 10 0.0.0).json +46 -0
- package/node_modules/fast-stable-stringify/results/libs/Firefox 54.0.0 (Windows 7 0.0.0).json +46 -0
- package/node_modules/fast-stable-stringify/results/libs/IE 10.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/libs/IE 11.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/libs/IE 9.0.0 (Windows 7 0.0.0).json +35 -0
- package/node_modules/fast-stable-stringify/results/libs/Mobile Safari 10.0.0 (iOS 10.3.0).json +46 -0
- package/node_modules/fast-stable-stringify/results/libs/Safari 10.0.1 (Mac OS X 10.12.1).json +46 -0
- package/node_modules/fast-stable-stringify/results/libs.md +15 -0
- package/node_modules/fast-stable-stringify/test/escape-long.js +147 -0
- package/node_modules/fast-stable-stringify/test/escape-short.js +147 -0
- package/node_modules/fast-stable-stringify/test/index.js +6 -0
- package/node_modules/fast-stable-stringify/test/itar-long.js +52 -0
- package/node_modules/fast-stable-stringify/test/itar-short.js +52 -0
- package/node_modules/fast-stable-stringify/test/iter.js +84 -0
- package/node_modules/fast-stable-stringify/test/libs.js +57 -0
- package/node_modules/fast-stable-stringify/test/travis.js +43 -0
- package/node_modules/fast-stable-stringify/test/validate.js +24 -0
- package/node_modules/fast-stable-stringify/util/eachRecursive.js +9 -0
- package/node_modules/fast-stable-stringify/util/get-git-hash-sync.js +21 -0
- package/node_modules/fast-stable-stringify/util/get-lib-info.js +22 -0
- package/node_modules/fast-stable-stringify/util/object-path.js +47 -0
- package/node_modules/fast-stable-stringify/v8-profile/bench.js +8 -0
- package/node_modules/fast-stable-stringify/v8-profile/run.sh +2 -0
- package/node_modules/fast-stable-stringify/zuul-local.sh +2 -0
- package/node_modules/humanize-ms/LICENSE +17 -0
- package/node_modules/humanize-ms/README.md +40 -0
- package/node_modules/humanize-ms/index.js +24 -0
- package/node_modules/humanize-ms/package.json +37 -0
- package/node_modules/ieee754/LICENSE +11 -0
- package/node_modules/ieee754/README.md +51 -0
- package/node_modules/ieee754/index.d.ts +10 -0
- package/node_modules/ieee754/index.js +85 -0
- package/node_modules/ieee754/package.json +52 -0
- package/node_modules/isomorphic-ws/LICENSE +21 -0
- package/node_modules/isomorphic-ws/README.md +58 -0
- package/node_modules/isomorphic-ws/browser.js +17 -0
- package/node_modules/isomorphic-ws/index.d.ts +8 -0
- package/node_modules/isomorphic-ws/node.js +3 -0
- package/node_modules/isomorphic-ws/package.json +34 -0
- package/node_modules/jayson/.gitignore +8 -0
- package/node_modules/jayson/LICENSE +22 -0
- package/node_modules/jayson/README.md +1387 -0
- package/node_modules/jayson/bin/jayson.js +111 -0
- package/node_modules/jayson/index.d.ts +370 -0
- package/node_modules/jayson/index.js +1 -0
- package/node_modules/jayson/lib/client/browser/index.d.ts +14 -0
- package/node_modules/jayson/lib/client/browser/index.js +163 -0
- package/node_modules/jayson/lib/client/http.js +116 -0
- package/node_modules/jayson/lib/client/https.js +34 -0
- package/node_modules/jayson/lib/client/index.js +220 -0
- package/node_modules/jayson/lib/client/tcp.js +90 -0
- package/node_modules/jayson/lib/client/tls.js +89 -0
- package/node_modules/jayson/lib/client/websocket.js +135 -0
- package/node_modules/jayson/lib/generateRequest.js +63 -0
- package/node_modules/jayson/lib/index.js +31 -0
- package/node_modules/jayson/lib/method.js +120 -0
- package/node_modules/jayson/lib/server/http.js +26 -0
- package/node_modules/jayson/lib/server/https.js +26 -0
- package/node_modules/jayson/lib/server/index.js +475 -0
- package/node_modules/jayson/lib/server/middleware.js +75 -0
- package/node_modules/jayson/lib/server/tcp.js +72 -0
- package/node_modules/jayson/lib/server/tls.js +72 -0
- package/node_modules/jayson/lib/server/websocket.js +62 -0
- package/node_modules/jayson/lib/utils.js +514 -0
- package/node_modules/jayson/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/jayson/node_modules/@types/node/README.md +16 -0
- package/node_modules/jayson/node_modules/@types/node/assert.d.ts +117 -0
- package/node_modules/jayson/node_modules/@types/node/async_hooks.d.ts +246 -0
- package/node_modules/jayson/node_modules/@types/node/buffer.d.ts +22 -0
- package/node_modules/jayson/node_modules/@types/node/child_process.d.ts +507 -0
- package/node_modules/jayson/node_modules/@types/node/cluster.d.ts +260 -0
- package/node_modules/jayson/node_modules/@types/node/console.d.ts +3 -0
- package/node_modules/jayson/node_modules/@types/node/constants.d.ts +448 -0
- package/node_modules/jayson/node_modules/@types/node/crypto.d.ts +1183 -0
- package/node_modules/jayson/node_modules/@types/node/dgram.d.ts +118 -0
- package/node_modules/jayson/node_modules/@types/node/dns.d.ts +372 -0
- package/node_modules/jayson/node_modules/@types/node/domain.d.ts +16 -0
- package/node_modules/jayson/node_modules/@types/node/events.d.ts +47 -0
- package/node_modules/jayson/node_modules/@types/node/fs.d.ts +2567 -0
- package/node_modules/jayson/node_modules/@types/node/globals.d.ts +1351 -0
- package/node_modules/jayson/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/jayson/node_modules/@types/node/http.d.ts +456 -0
- package/node_modules/jayson/node_modules/@types/node/http2.d.ts +952 -0
- package/node_modules/jayson/node_modules/@types/node/https.d.ts +156 -0
- package/node_modules/jayson/node_modules/@types/node/index.d.ts +91 -0
- package/node_modules/jayson/node_modules/@types/node/inspector.d.ts +3040 -0
- package/node_modules/jayson/node_modules/@types/node/module.d.ts +3 -0
- package/node_modules/jayson/node_modules/@types/node/net.d.ts +290 -0
- package/node_modules/jayson/node_modules/@types/node/os.d.ts +263 -0
- package/node_modules/jayson/node_modules/@types/node/package.json +195 -0
- package/node_modules/jayson/node_modules/@types/node/path.d.ts +159 -0
- package/node_modules/jayson/node_modules/@types/node/perf_hooks.d.ts +259 -0
- package/node_modules/jayson/node_modules/@types/node/process.d.ts +15 -0
- package/node_modules/jayson/node_modules/@types/node/punycode.d.ts +75 -0
- package/node_modules/jayson/node_modules/@types/node/querystring.d.ts +29 -0
- package/node_modules/jayson/node_modules/@types/node/readline.d.ts +158 -0
- package/node_modules/jayson/node_modules/@types/node/repl.d.ts +390 -0
- package/node_modules/jayson/node_modules/@types/node/stream.d.ts +334 -0
- package/node_modules/jayson/node_modules/@types/node/string_decoder.d.ts +7 -0
- package/node_modules/jayson/node_modules/@types/node/timers.d.ts +16 -0
- package/node_modules/jayson/node_modules/@types/node/tls.d.ts +713 -0
- package/node_modules/jayson/node_modules/@types/node/trace_events.d.ts +61 -0
- package/node_modules/jayson/node_modules/@types/node/tty.d.ts +66 -0
- package/node_modules/jayson/node_modules/@types/node/url.d.ts +147 -0
- package/node_modules/jayson/node_modules/@types/node/util.d.ts +200 -0
- package/node_modules/jayson/node_modules/@types/node/v8.d.ts +197 -0
- package/node_modules/jayson/node_modules/@types/node/vm.d.ts +112 -0
- package/node_modules/jayson/node_modules/@types/node/wasi.d.ts +55 -0
- package/node_modules/jayson/node_modules/@types/node/worker_threads.d.ts +207 -0
- package/node_modules/jayson/node_modules/@types/node/zlib.d.ts +356 -0
- package/node_modules/jayson/package.json +89 -0
- package/node_modules/jayson/promise/index.d.ts +367 -0
- package/node_modules/jayson/promise/index.js +3 -0
- package/node_modules/jayson/promise/lib/client/browser/index.d.ts +12 -0
- package/node_modules/jayson/promise/lib/client/browser/index.js +28 -0
- package/node_modules/jayson/promise/lib/client/http.js +23 -0
- package/node_modules/jayson/promise/lib/client/https.js +24 -0
- package/node_modules/jayson/promise/lib/client/index.js +53 -0
- package/node_modules/jayson/promise/lib/client/tcp.js +23 -0
- package/node_modules/jayson/promise/lib/client/tls.js +23 -0
- package/node_modules/jayson/promise/lib/client/websocket.js +23 -0
- package/node_modules/jayson/promise/lib/index.js +33 -0
- package/node_modules/jayson/promise/lib/method.js +54 -0
- package/node_modules/jayson/promise/lib/server.js +23 -0
- package/node_modules/jayson/promise/lib/utils.js +23 -0
- package/node_modules/json-stringify-safe/.npmignore +1 -0
- package/node_modules/json-stringify-safe/CHANGELOG.md +14 -0
- package/node_modules/json-stringify-safe/LICENSE +15 -0
- package/node_modules/json-stringify-safe/Makefile +35 -0
- package/node_modules/json-stringify-safe/README.md +52 -0
- package/node_modules/json-stringify-safe/package.json +31 -0
- package/node_modules/json-stringify-safe/stringify.js +27 -0
- package/node_modules/json-stringify-safe/test/mocha.opts +2 -0
- package/node_modules/json-stringify-safe/test/stringify_test.js +246 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/node-fetch/LICENSE.md +22 -0
- package/node_modules/node-fetch/README.md +634 -0
- package/node_modules/node-fetch/browser.js +25 -0
- package/node_modules/node-fetch/lib/index.es.js +1777 -0
- package/node_modules/node-fetch/lib/index.js +1787 -0
- package/node_modules/node-fetch/lib/index.mjs +1775 -0
- package/node_modules/node-fetch/package.json +89 -0
- package/node_modules/node-gyp-build/LICENSE +21 -0
- package/node_modules/node-gyp-build/README.md +58 -0
- package/node_modules/node-gyp-build/SECURITY.md +5 -0
- package/node_modules/node-gyp-build/bin.js +84 -0
- package/node_modules/node-gyp-build/build-test.js +19 -0
- package/node_modules/node-gyp-build/index.js +6 -0
- package/node_modules/node-gyp-build/node-gyp-build.js +207 -0
- package/node_modules/node-gyp-build/optional.js +7 -0
- package/node_modules/node-gyp-build/package.json +43 -0
- package/node_modules/pako/LICENSE +21 -0
- package/node_modules/pako/README.md +177 -0
- package/node_modules/pako/dist/pako.es5.js +6688 -0
- package/node_modules/pako/dist/pako.es5.min.js +2 -0
- package/node_modules/pako/dist/pako.esm.mjs +6877 -0
- package/node_modules/pako/dist/pako.js +6896 -0
- package/node_modules/pako/dist/pako.min.js +2 -0
- package/node_modules/pako/dist/pako_deflate.es5.js +3924 -0
- package/node_modules/pako/dist/pako_deflate.es5.min.js +2 -0
- package/node_modules/pako/dist/pako_deflate.js +4126 -0
- package/node_modules/pako/dist/pako_deflate.min.js +2 -0
- package/node_modules/pako/dist/pako_inflate.es5.js +3229 -0
- package/node_modules/pako/dist/pako_inflate.es5.min.js +2 -0
- package/node_modules/pako/dist/pako_inflate.js +3239 -0
- package/node_modules/pako/dist/pako_inflate.min.js +2 -0
- package/node_modules/pako/index.js +18 -0
- package/node_modules/pako/lib/deflate.js +380 -0
- package/node_modules/pako/lib/inflate.js +419 -0
- package/node_modules/pako/lib/utils/common.js +48 -0
- package/node_modules/pako/lib/utils/strings.js +174 -0
- package/node_modules/pako/lib/zlib/README +59 -0
- package/node_modules/pako/lib/zlib/adler32.js +51 -0
- package/node_modules/pako/lib/zlib/constants.js +68 -0
- package/node_modules/pako/lib/zlib/crc32.js +59 -0
- package/node_modules/pako/lib/zlib/deflate.js +2048 -0
- package/node_modules/pako/lib/zlib/gzheader.js +58 -0
- package/node_modules/pako/lib/zlib/inffast.js +344 -0
- package/node_modules/pako/lib/zlib/inflate.js +1572 -0
- package/node_modules/pako/lib/zlib/inftrees.js +340 -0
- package/node_modules/pako/lib/zlib/messages.js +32 -0
- package/node_modules/pako/lib/zlib/trees.js +1179 -0
- package/node_modules/pako/lib/zlib/zstream.js +47 -0
- package/node_modules/pako/package.json +64 -0
- package/node_modules/rpc-websockets/LICENSE +10 -0
- package/node_modules/rpc-websockets/README.md +156 -0
- package/node_modules/rpc-websockets/dist/index.browser-bundle.js +14 -0
- package/node_modules/rpc-websockets/dist/index.browser.cjs +389 -0
- package/node_modules/rpc-websockets/dist/index.browser.cjs.map +1 -0
- package/node_modules/rpc-websockets/dist/index.browser.d.mts +225 -0
- package/node_modules/rpc-websockets/dist/index.browser.d.ts +225 -0
- package/node_modules/rpc-websockets/dist/index.browser.mjs +384 -0
- package/node_modules/rpc-websockets/dist/index.browser.mjs.map +1 -0
- package/node_modules/rpc-websockets/dist/index.cjs +898 -0
- package/node_modules/rpc-websockets/dist/index.cjs.map +1 -0
- package/node_modules/rpc-websockets/dist/index.d.mts +415 -0
- package/node_modules/rpc-websockets/dist/index.d.ts +415 -0
- package/node_modules/rpc-websockets/dist/index.mjs +886 -0
- package/node_modules/rpc-websockets/dist/index.mjs.map +1 -0
- package/node_modules/rpc-websockets/node_modules/@types/ws/LICENSE +21 -0
- package/node_modules/rpc-websockets/node_modules/@types/ws/README.md +15 -0
- package/node_modules/rpc-websockets/node_modules/@types/ws/index.d.mts +451 -0
- package/node_modules/rpc-websockets/node_modules/@types/ws/index.d.ts +445 -0
- package/node_modules/rpc-websockets/node_modules/@types/ws/package.json +72 -0
- package/node_modules/rpc-websockets/node_modules/eventemitter3/LICENSE +21 -0
- package/node_modules/rpc-websockets/node_modules/eventemitter3/README.md +94 -0
- package/node_modules/rpc-websockets/node_modules/eventemitter3/dist/eventemitter3.esm.js +347 -0
- package/node_modules/rpc-websockets/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +1 -0
- package/node_modules/rpc-websockets/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +1 -0
- package/node_modules/rpc-websockets/node_modules/eventemitter3/dist/eventemitter3.umd.js +355 -0
- package/node_modules/rpc-websockets/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +1 -0
- package/node_modules/rpc-websockets/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +1 -0
- package/node_modules/rpc-websockets/node_modules/eventemitter3/index.d.ts +135 -0
- package/node_modules/rpc-websockets/node_modules/eventemitter3/index.js +336 -0
- package/node_modules/rpc-websockets/node_modules/eventemitter3/index.mjs +4 -0
- package/node_modules/rpc-websockets/node_modules/eventemitter3/package.json +67 -0
- package/node_modules/rpc-websockets/node_modules/ws/LICENSE +20 -0
- package/node_modules/rpc-websockets/node_modules/ws/README.md +548 -0
- package/node_modules/rpc-websockets/node_modules/ws/browser.js +8 -0
- package/node_modules/rpc-websockets/node_modules/ws/index.js +13 -0
- package/node_modules/rpc-websockets/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/rpc-websockets/node_modules/ws/lib/constants.js +18 -0
- package/node_modules/rpc-websockets/node_modules/ws/lib/event-target.js +292 -0
- package/node_modules/rpc-websockets/node_modules/ws/lib/extension.js +203 -0
- package/node_modules/rpc-websockets/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/rpc-websockets/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/node_modules/rpc-websockets/node_modules/ws/lib/receiver.js +706 -0
- package/node_modules/rpc-websockets/node_modules/ws/lib/sender.js +602 -0
- package/node_modules/rpc-websockets/node_modules/ws/lib/stream.js +161 -0
- package/node_modules/rpc-websockets/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/rpc-websockets/node_modules/ws/lib/validation.js +152 -0
- package/node_modules/rpc-websockets/node_modules/ws/lib/websocket-server.js +540 -0
- package/node_modules/rpc-websockets/node_modules/ws/lib/websocket.js +1388 -0
- package/node_modules/rpc-websockets/node_modules/ws/package.json +69 -0
- package/node_modules/rpc-websockets/node_modules/ws/wrapper.mjs +8 -0
- package/node_modules/rpc-websockets/package.json +90 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/safe-buffer/package.json +51 -0
- package/node_modules/stream-chain/LICENSE +11 -0
- package/node_modules/stream-chain/README.md +334 -0
- package/node_modules/stream-chain/defs.js +22 -0
- package/node_modules/stream-chain/index.js +203 -0
- package/node_modules/stream-chain/package.json +31 -0
- package/node_modules/stream-chain/utils/FromIterable.js +94 -0
- package/node_modules/stream-chain/utils/Reduce.js +40 -0
- package/node_modules/stream-chain/utils/asFun.js +85 -0
- package/node_modules/stream-chain/utils/asGen.js +77 -0
- package/node_modules/stream-chain/utils/comp.js +20 -0
- package/node_modules/stream-chain/utils/fold.js +43 -0
- package/node_modules/stream-chain/utils/gen.js +24 -0
- package/node_modules/stream-chain/utils/scan.js +41 -0
- package/node_modules/stream-chain/utils/skip.js +32 -0
- package/node_modules/stream-chain/utils/skipWhile.js +46 -0
- package/node_modules/stream-chain/utils/take.js +39 -0
- package/node_modules/stream-chain/utils/takeWhile.js +47 -0
- package/node_modules/stream-json/Assembler.js +154 -0
- package/node_modules/stream-json/Disassembler.js +209 -0
- package/node_modules/stream-json/Emitter.js +22 -0
- package/node_modules/stream-json/LICENSE +34 -0
- package/node_modules/stream-json/Parser.js +545 -0
- package/node_modules/stream-json/README.md +128 -0
- package/node_modules/stream-json/Stringer.js +153 -0
- package/node_modules/stream-json/filters/Filter.js +130 -0
- package/node_modules/stream-json/filters/FilterBase.js +201 -0
- package/node_modules/stream-json/filters/Ignore.js +24 -0
- package/node_modules/stream-json/filters/Pick.js +58 -0
- package/node_modules/stream-json/filters/Replace.js +115 -0
- package/node_modules/stream-json/index.js +11 -0
- package/node_modules/stream-json/jsonl/Parser.js +131 -0
- package/node_modules/stream-json/jsonl/Stringer.js +29 -0
- package/node_modules/stream-json/package.json +45 -0
- package/node_modules/stream-json/streamers/StreamArray.js +44 -0
- package/node_modules/stream-json/streamers/StreamBase.js +101 -0
- package/node_modules/stream-json/streamers/StreamObject.js +43 -0
- package/node_modules/stream-json/streamers/StreamValues.js +33 -0
- package/node_modules/stream-json/utils/Batch.js +44 -0
- package/node_modules/stream-json/utils/Utf8Stream.js +53 -0
- package/node_modules/stream-json/utils/Verifier.js +485 -0
- package/node_modules/stream-json/utils/emit.js +5 -0
- package/node_modules/stream-json/utils/withParser.js +10 -0
- package/node_modules/superstruct/License.md +9 -0
- package/node_modules/superstruct/Readme.md +228 -0
- package/node_modules/superstruct/lib/coercions.d.ts +19 -0
- package/node_modules/superstruct/lib/coercions.d.ts.map +1 -0
- package/node_modules/superstruct/lib/error.d.ts +32 -0
- package/node_modules/superstruct/lib/error.d.ts.map +1 -0
- package/node_modules/superstruct/lib/index.cjs +1257 -0
- package/node_modules/superstruct/lib/index.cjs.d.ts +579 -0
- package/node_modules/superstruct/lib/index.cjs.map +1 -0
- package/node_modules/superstruct/lib/index.d.cts +579 -0
- package/node_modules/superstruct/lib/index.d.ts +7 -0
- package/node_modules/superstruct/lib/index.d.ts.map +1 -0
- package/node_modules/superstruct/lib/index.es.d.ts +579 -0
- package/node_modules/superstruct/lib/index.es.js +1203 -0
- package/node_modules/superstruct/lib/index.es.js.map +1 -0
- package/node_modules/superstruct/lib/refinements.d.ts +19 -0
- package/node_modules/superstruct/lib/refinements.d.ts.map +1 -0
- package/node_modules/superstruct/lib/struct.d.ts +110 -0
- package/node_modules/superstruct/lib/struct.d.ts.map +1 -0
- package/node_modules/superstruct/lib/structs/coercions.d.ts +29 -0
- package/node_modules/superstruct/lib/structs/coercions.d.ts.map +1 -0
- package/node_modules/superstruct/lib/structs/refinements.d.ts +38 -0
- package/node_modules/superstruct/lib/structs/refinements.d.ts.map +1 -0
- package/node_modules/superstruct/lib/structs/types.d.ts +142 -0
- package/node_modules/superstruct/lib/structs/types.d.ts.map +1 -0
- package/node_modules/superstruct/lib/structs/utilities.d.ts +66 -0
- package/node_modules/superstruct/lib/structs/utilities.d.ts.map +1 -0
- package/node_modules/superstruct/lib/types.d.ts +200 -0
- package/node_modules/superstruct/lib/types.d.ts.map +1 -0
- package/node_modules/superstruct/lib/typings.d.ts +36 -0
- package/node_modules/superstruct/lib/typings.d.ts.map +1 -0
- package/node_modules/superstruct/lib/utilities.d.ts +56 -0
- package/node_modules/superstruct/lib/utilities.d.ts.map +1 -0
- package/node_modules/superstruct/lib/utils.d.ts +139 -0
- package/node_modules/superstruct/lib/utils.d.ts.map +1 -0
- package/node_modules/superstruct/lib/xtras.d.ts +56 -0
- package/node_modules/superstruct/lib/xtras.d.ts.map +1 -0
- package/node_modules/superstruct/package.json +110 -0
- package/node_modules/superstruct/umd/coercions.d.ts +18 -0
- package/node_modules/superstruct/umd/index.d.ts +4 -0
- package/node_modules/superstruct/umd/refinements.d.ts +14 -0
- package/node_modules/superstruct/umd/struct.d.ts +80 -0
- package/node_modules/superstruct/umd/superstruct.d.ts +579 -0
- package/node_modules/superstruct/umd/superstruct.js +1262 -0
- package/node_modules/superstruct/umd/superstruct.min.d.ts +579 -0
- package/node_modules/superstruct/umd/superstruct.min.js +1 -0
- package/node_modules/superstruct/umd/types.d.ts +127 -0
- package/node_modules/superstruct/umd/utils.d.ts +9 -0
- package/node_modules/text-encoding-utf-8/LICENSE.md +29 -0
- package/node_modules/text-encoding-utf-8/README.md +63 -0
- package/node_modules/text-encoding-utf-8/lib/encoding.js +655 -0
- package/node_modules/text-encoding-utf-8/lib/encoding.lib.js +642 -0
- package/node_modules/text-encoding-utf-8/lib/encoding.lib.mjs +665 -0
- package/node_modules/text-encoding-utf-8/package.json +26 -0
- package/node_modules/text-encoding-utf-8/src/encoding.js +665 -0
- package/node_modules/text-encoding-utf-8/src/polyfill.js +21 -0
- package/node_modules/toml/.jshintrc +18 -0
- package/node_modules/toml/.travis.yml +7 -0
- package/node_modules/toml/CHANGELOG.md +116 -0
- package/node_modules/toml/LICENSE +22 -0
- package/node_modules/toml/README.md +93 -0
- package/node_modules/toml/benchmark.js +12 -0
- package/node_modules/toml/index.d.ts +3 -0
- package/node_modules/toml/index.js +9 -0
- package/node_modules/toml/lib/compiler.js +195 -0
- package/node_modules/toml/lib/parser.js +3841 -0
- package/node_modules/toml/package.json +24 -0
- package/node_modules/toml/src/toml.pegjs +231 -0
- package/node_modules/toml/test/bad.toml +5 -0
- package/node_modules/toml/test/example.toml +32 -0
- package/node_modules/toml/test/hard_example.toml +33 -0
- package/node_modules/toml/test/inline_tables.toml +10 -0
- package/node_modules/toml/test/literal_strings.toml +5 -0
- package/node_modules/toml/test/multiline_eat_whitespace.toml +15 -0
- package/node_modules/toml/test/multiline_literal_strings.toml +7 -0
- package/node_modules/toml/test/multiline_strings.toml +6 -0
- package/node_modules/toml/test/smoke.js +22 -0
- package/node_modules/toml/test/table_arrays_easy.toml +10 -0
- package/node_modules/toml/test/table_arrays_hard.toml +31 -0
- package/node_modules/toml/test/test_toml.js +596 -0
- package/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/tslib/README.md +164 -0
- package/node_modules/tslib/SECURITY.md +41 -0
- package/node_modules/tslib/modules/index.d.ts +38 -0
- package/node_modules/tslib/modules/index.js +70 -0
- package/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/tslib/package.json +47 -0
- package/node_modules/tslib/tslib.d.ts +460 -0
- package/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/tslib/tslib.es6.js +402 -0
- package/node_modules/tslib/tslib.es6.mjs +401 -0
- package/node_modules/tslib/tslib.html +1 -0
- package/node_modules/tslib/tslib.js +484 -0
- package/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client.d.ts +108 -0
- package/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/node_modules/undici-types/errors.d.ts +149 -0
- package/node_modules/undici-types/eventsource.d.ts +61 -0
- package/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/undici-types/index.d.ts +71 -0
- package/node_modules/undici-types/interceptors.d.ts +17 -0
- package/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +33 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +39 -0
- package/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/node_modules/undici-types/readable.d.ts +65 -0
- package/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/undici-types/webidl.d.ts +228 -0
- package/node_modules/undici-types/websocket.d.ts +150 -0
- package/node_modules/utf-8-validate/LICENSE +30 -0
- package/node_modules/utf-8-validate/README.md +50 -0
- package/node_modules/utf-8-validate/binding.gyp +18 -0
- package/node_modules/utf-8-validate/fallback.js +62 -0
- package/node_modules/utf-8-validate/index.js +7 -0
- package/node_modules/utf-8-validate/package.json +36 -0
- package/node_modules/utf-8-validate/prebuilds/darwin-x64+arm64/node.napi.node +0 -0
- package/node_modules/utf-8-validate/prebuilds/linux-x64/node.napi.node +0 -0
- package/node_modules/utf-8-validate/prebuilds/win32-ia32/node.napi.node +0 -0
- package/node_modules/utf-8-validate/prebuilds/win32-x64/node.napi.node +0 -0
- package/node_modules/utf-8-validate/src/validation.c +109 -0
- package/node_modules/uuid/CHANGELOG.md +229 -0
- package/node_modules/uuid/CONTRIBUTING.md +18 -0
- package/node_modules/uuid/LICENSE.md +9 -0
- package/node_modules/uuid/README.md +505 -0
- package/node_modules/uuid/dist/bin/uuid +2 -0
- package/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/node_modules/uuid/dist/esm-browser/md5.js +215 -0
- package/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/node_modules/uuid/dist/esm-browser/rng.js +19 -0
- package/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
- package/node_modules/uuid/dist/esm-browser/v1.js +95 -0
- package/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/node_modules/uuid/dist/esm-browser/v35.js +64 -0
- package/node_modules/uuid/dist/esm-browser/v4.js +24 -0
- package/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/node_modules/uuid/dist/esm-node/stringify.js +29 -0
- package/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/node_modules/uuid/dist/esm-node/v35.js +64 -0
- package/node_modules/uuid/dist/esm-node/v4.js +24 -0
- package/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/node_modules/uuid/dist/index.js +79 -0
- package/node_modules/uuid/dist/md5-browser.js +223 -0
- package/node_modules/uuid/dist/md5.js +23 -0
- package/node_modules/uuid/dist/nil.js +8 -0
- package/node_modules/uuid/dist/parse.js +45 -0
- package/node_modules/uuid/dist/regex.js +8 -0
- package/node_modules/uuid/dist/rng-browser.js +26 -0
- package/node_modules/uuid/dist/rng.js +24 -0
- package/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/node_modules/uuid/dist/sha1.js +23 -0
- package/node_modules/uuid/dist/stringify.js +39 -0
- package/node_modules/uuid/dist/umd/uuid.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
- package/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
- package/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/node_modules/uuid/dist/v1.js +107 -0
- package/node_modules/uuid/dist/v3.js +16 -0
- package/node_modules/uuid/dist/v35.js +78 -0
- package/node_modules/uuid/dist/v4.js +37 -0
- package/node_modules/uuid/dist/v5.js +16 -0
- package/node_modules/uuid/dist/validate.js +17 -0
- package/node_modules/uuid/dist/version.js +21 -0
- package/node_modules/uuid/package.json +135 -0
- package/node_modules/uuid/wrapper.mjs +10 -0
- package/node_modules/webidl-conversions/LICENSE.md +12 -0
- package/node_modules/webidl-conversions/README.md +53 -0
- package/node_modules/webidl-conversions/lib/index.js +189 -0
- package/node_modules/webidl-conversions/package.json +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/node_modules/tr46/.npmignore +4 -0
- package/node_modules/whatwg-url/node_modules/tr46/index.js +193 -0
- package/node_modules/whatwg-url/node_modules/tr46/lib/.gitkeep +0 -0
- package/node_modules/whatwg-url/node_modules/tr46/lib/mappingTable.json +1 -0
- package/node_modules/whatwg-url/node_modules/tr46/package.json +31 -0
- package/node_modules/whatwg-url/package.json +32 -0
- package/node_modules/ws/LICENSE +21 -0
- package/node_modules/ws/README.md +495 -0
- package/node_modules/ws/browser.js +8 -0
- package/node_modules/ws/index.js +10 -0
- package/node_modules/ws/lib/buffer-util.js +129 -0
- package/node_modules/ws/lib/constants.js +10 -0
- package/node_modules/ws/lib/event-target.js +184 -0
- package/node_modules/ws/lib/extension.js +223 -0
- package/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/ws/lib/permessage-deflate.js +518 -0
- package/node_modules/ws/lib/receiver.js +607 -0
- package/node_modules/ws/lib/sender.js +409 -0
- package/node_modules/ws/lib/stream.js +180 -0
- package/node_modules/ws/lib/validation.js +104 -0
- package/node_modules/ws/lib/websocket-server.js +449 -0
- package/node_modules/ws/lib/websocket.js +1197 -0
- package/node_modules/ws/package.json +56 -0
- package/package.json +4 -1
|
@@ -0,0 +1,2048 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
|
|
4
|
+
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
|
|
5
|
+
//
|
|
6
|
+
// This software is provided 'as-is', without any express or implied
|
|
7
|
+
// warranty. In no event will the authors be held liable for any damages
|
|
8
|
+
// arising from the use of this software.
|
|
9
|
+
//
|
|
10
|
+
// Permission is granted to anyone to use this software for any purpose,
|
|
11
|
+
// including commercial applications, and to alter it and redistribute it
|
|
12
|
+
// freely, subject to the following restrictions:
|
|
13
|
+
//
|
|
14
|
+
// 1. The origin of this software must not be misrepresented; you must not
|
|
15
|
+
// claim that you wrote the original software. If you use this software
|
|
16
|
+
// in a product, an acknowledgment in the product documentation would be
|
|
17
|
+
// appreciated but is not required.
|
|
18
|
+
// 2. Altered source versions must be plainly marked as such, and must not be
|
|
19
|
+
// misrepresented as being the original software.
|
|
20
|
+
// 3. This notice may not be removed or altered from any source distribution.
|
|
21
|
+
|
|
22
|
+
const { _tr_init, _tr_stored_block, _tr_flush_block, _tr_tally, _tr_align } = require('./trees');
|
|
23
|
+
const adler32 = require('./adler32');
|
|
24
|
+
const crc32 = require('./crc32');
|
|
25
|
+
const msg = require('./messages');
|
|
26
|
+
|
|
27
|
+
/* Public constants ==========================================================*/
|
|
28
|
+
/* ===========================================================================*/
|
|
29
|
+
|
|
30
|
+
const {
|
|
31
|
+
Z_NO_FLUSH, Z_PARTIAL_FLUSH, Z_FULL_FLUSH, Z_FINISH, Z_BLOCK,
|
|
32
|
+
Z_OK, Z_STREAM_END, Z_STREAM_ERROR, Z_DATA_ERROR, Z_BUF_ERROR,
|
|
33
|
+
Z_DEFAULT_COMPRESSION,
|
|
34
|
+
Z_FILTERED, Z_HUFFMAN_ONLY, Z_RLE, Z_FIXED, Z_DEFAULT_STRATEGY,
|
|
35
|
+
Z_UNKNOWN,
|
|
36
|
+
Z_DEFLATED
|
|
37
|
+
} = require('./constants');
|
|
38
|
+
|
|
39
|
+
/*============================================================================*/
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
const MAX_MEM_LEVEL = 9;
|
|
43
|
+
/* Maximum value for memLevel in deflateInit2 */
|
|
44
|
+
const MAX_WBITS = 15;
|
|
45
|
+
/* 32K LZ77 window */
|
|
46
|
+
const DEF_MEM_LEVEL = 8;
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
const LENGTH_CODES = 29;
|
|
50
|
+
/* number of length codes, not counting the special END_BLOCK code */
|
|
51
|
+
const LITERALS = 256;
|
|
52
|
+
/* number of literal bytes 0..255 */
|
|
53
|
+
const L_CODES = LITERALS + 1 + LENGTH_CODES;
|
|
54
|
+
/* number of Literal or Length codes, including the END_BLOCK code */
|
|
55
|
+
const D_CODES = 30;
|
|
56
|
+
/* number of distance codes */
|
|
57
|
+
const BL_CODES = 19;
|
|
58
|
+
/* number of codes used to transfer the bit lengths */
|
|
59
|
+
const HEAP_SIZE = 2 * L_CODES + 1;
|
|
60
|
+
/* maximum heap size */
|
|
61
|
+
const MAX_BITS = 15;
|
|
62
|
+
/* All codes must not exceed MAX_BITS bits */
|
|
63
|
+
|
|
64
|
+
const MIN_MATCH = 3;
|
|
65
|
+
const MAX_MATCH = 258;
|
|
66
|
+
const MIN_LOOKAHEAD = (MAX_MATCH + MIN_MATCH + 1);
|
|
67
|
+
|
|
68
|
+
const PRESET_DICT = 0x20;
|
|
69
|
+
|
|
70
|
+
const INIT_STATE = 42; /* zlib header -> BUSY_STATE */
|
|
71
|
+
//#ifdef GZIP
|
|
72
|
+
const GZIP_STATE = 57; /* gzip header -> BUSY_STATE | EXTRA_STATE */
|
|
73
|
+
//#endif
|
|
74
|
+
const EXTRA_STATE = 69; /* gzip extra block -> NAME_STATE */
|
|
75
|
+
const NAME_STATE = 73; /* gzip file name -> COMMENT_STATE */
|
|
76
|
+
const COMMENT_STATE = 91; /* gzip comment -> HCRC_STATE */
|
|
77
|
+
const HCRC_STATE = 103; /* gzip header CRC -> BUSY_STATE */
|
|
78
|
+
const BUSY_STATE = 113; /* deflate -> FINISH_STATE */
|
|
79
|
+
const FINISH_STATE = 666; /* stream complete */
|
|
80
|
+
|
|
81
|
+
const BS_NEED_MORE = 1; /* block not completed, need more input or more output */
|
|
82
|
+
const BS_BLOCK_DONE = 2; /* block flush performed */
|
|
83
|
+
const BS_FINISH_STARTED = 3; /* finish started, need only more output at next deflate */
|
|
84
|
+
const BS_FINISH_DONE = 4; /* finish done, accept no more input or output */
|
|
85
|
+
|
|
86
|
+
const OS_CODE = 0x03; // Unix :) . Don't detect, use this default.
|
|
87
|
+
|
|
88
|
+
const err = (strm, errorCode) => {
|
|
89
|
+
strm.msg = msg[errorCode];
|
|
90
|
+
return errorCode;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const rank = (f) => {
|
|
94
|
+
return ((f) * 2) - ((f) > 4 ? 9 : 0);
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
const zero = (buf) => {
|
|
98
|
+
let len = buf.length; while (--len >= 0) { buf[len] = 0; }
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
/* ===========================================================================
|
|
102
|
+
* Slide the hash table when sliding the window down (could be avoided with 32
|
|
103
|
+
* bit values at the expense of memory usage). We slide even when level == 0 to
|
|
104
|
+
* keep the hash table consistent if we switch back to level > 0 later.
|
|
105
|
+
*/
|
|
106
|
+
const slide_hash = (s) => {
|
|
107
|
+
let n, m;
|
|
108
|
+
let p;
|
|
109
|
+
let wsize = s.w_size;
|
|
110
|
+
|
|
111
|
+
n = s.hash_size;
|
|
112
|
+
p = n;
|
|
113
|
+
do {
|
|
114
|
+
m = s.head[--p];
|
|
115
|
+
s.head[p] = (m >= wsize ? m - wsize : 0);
|
|
116
|
+
} while (--n);
|
|
117
|
+
n = wsize;
|
|
118
|
+
//#ifndef FASTEST
|
|
119
|
+
p = n;
|
|
120
|
+
do {
|
|
121
|
+
m = s.prev[--p];
|
|
122
|
+
s.prev[p] = (m >= wsize ? m - wsize : 0);
|
|
123
|
+
/* If n is not on any hash chain, prev[n] is garbage but
|
|
124
|
+
* its value will never be used.
|
|
125
|
+
*/
|
|
126
|
+
} while (--n);
|
|
127
|
+
//#endif
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/* eslint-disable new-cap */
|
|
131
|
+
let HASH_ZLIB = (s, prev, data) => ((prev << s.hash_shift) ^ data) & s.hash_mask;
|
|
132
|
+
// This hash causes less collisions, https://github.com/nodeca/pako/issues/135
|
|
133
|
+
// But breaks binary compatibility
|
|
134
|
+
//let HASH_FAST = (s, prev, data) => ((prev << 8) + (prev >> 8) + (data << 4)) & s.hash_mask;
|
|
135
|
+
let HASH = HASH_ZLIB;
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
/* =========================================================================
|
|
139
|
+
* Flush as much pending output as possible. All deflate() output, except for
|
|
140
|
+
* some deflate_stored() output, goes through this function so some
|
|
141
|
+
* applications may wish to modify it to avoid allocating a large
|
|
142
|
+
* strm->next_out buffer and copying into it. (See also read_buf()).
|
|
143
|
+
*/
|
|
144
|
+
const flush_pending = (strm) => {
|
|
145
|
+
const s = strm.state;
|
|
146
|
+
|
|
147
|
+
//_tr_flush_bits(s);
|
|
148
|
+
let len = s.pending;
|
|
149
|
+
if (len > strm.avail_out) {
|
|
150
|
+
len = strm.avail_out;
|
|
151
|
+
}
|
|
152
|
+
if (len === 0) { return; }
|
|
153
|
+
|
|
154
|
+
strm.output.set(s.pending_buf.subarray(s.pending_out, s.pending_out + len), strm.next_out);
|
|
155
|
+
strm.next_out += len;
|
|
156
|
+
s.pending_out += len;
|
|
157
|
+
strm.total_out += len;
|
|
158
|
+
strm.avail_out -= len;
|
|
159
|
+
s.pending -= len;
|
|
160
|
+
if (s.pending === 0) {
|
|
161
|
+
s.pending_out = 0;
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
const flush_block_only = (s, last) => {
|
|
167
|
+
_tr_flush_block(s, (s.block_start >= 0 ? s.block_start : -1), s.strstart - s.block_start, last);
|
|
168
|
+
s.block_start = s.strstart;
|
|
169
|
+
flush_pending(s.strm);
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
const put_byte = (s, b) => {
|
|
174
|
+
s.pending_buf[s.pending++] = b;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
/* =========================================================================
|
|
179
|
+
* Put a short in the pending buffer. The 16-bit value is put in MSB order.
|
|
180
|
+
* IN assertion: the stream state is correct and there is enough room in
|
|
181
|
+
* pending_buf.
|
|
182
|
+
*/
|
|
183
|
+
const putShortMSB = (s, b) => {
|
|
184
|
+
|
|
185
|
+
// put_byte(s, (Byte)(b >> 8));
|
|
186
|
+
// put_byte(s, (Byte)(b & 0xff));
|
|
187
|
+
s.pending_buf[s.pending++] = (b >>> 8) & 0xff;
|
|
188
|
+
s.pending_buf[s.pending++] = b & 0xff;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
/* ===========================================================================
|
|
193
|
+
* Read a new buffer from the current input stream, update the adler32
|
|
194
|
+
* and total number of bytes read. All deflate() input goes through
|
|
195
|
+
* this function so some applications may wish to modify it to avoid
|
|
196
|
+
* allocating a large strm->input buffer and copying from it.
|
|
197
|
+
* (See also flush_pending()).
|
|
198
|
+
*/
|
|
199
|
+
const read_buf = (strm, buf, start, size) => {
|
|
200
|
+
|
|
201
|
+
let len = strm.avail_in;
|
|
202
|
+
|
|
203
|
+
if (len > size) { len = size; }
|
|
204
|
+
if (len === 0) { return 0; }
|
|
205
|
+
|
|
206
|
+
strm.avail_in -= len;
|
|
207
|
+
|
|
208
|
+
// zmemcpy(buf, strm->next_in, len);
|
|
209
|
+
buf.set(strm.input.subarray(strm.next_in, strm.next_in + len), start);
|
|
210
|
+
if (strm.state.wrap === 1) {
|
|
211
|
+
strm.adler = adler32(strm.adler, buf, len, start);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
else if (strm.state.wrap === 2) {
|
|
215
|
+
strm.adler = crc32(strm.adler, buf, len, start);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
strm.next_in += len;
|
|
219
|
+
strm.total_in += len;
|
|
220
|
+
|
|
221
|
+
return len;
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
/* ===========================================================================
|
|
226
|
+
* Set match_start to the longest match starting at the given string and
|
|
227
|
+
* return its length. Matches shorter or equal to prev_length are discarded,
|
|
228
|
+
* in which case the result is equal to prev_length and match_start is
|
|
229
|
+
* garbage.
|
|
230
|
+
* IN assertions: cur_match is the head of the hash chain for the current
|
|
231
|
+
* string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1
|
|
232
|
+
* OUT assertion: the match length is not greater than s->lookahead.
|
|
233
|
+
*/
|
|
234
|
+
const longest_match = (s, cur_match) => {
|
|
235
|
+
|
|
236
|
+
let chain_length = s.max_chain_length; /* max hash chain length */
|
|
237
|
+
let scan = s.strstart; /* current string */
|
|
238
|
+
let match; /* matched string */
|
|
239
|
+
let len; /* length of current match */
|
|
240
|
+
let best_len = s.prev_length; /* best match length so far */
|
|
241
|
+
let nice_match = s.nice_match; /* stop if match long enough */
|
|
242
|
+
const limit = (s.strstart > (s.w_size - MIN_LOOKAHEAD)) ?
|
|
243
|
+
s.strstart - (s.w_size - MIN_LOOKAHEAD) : 0/*NIL*/;
|
|
244
|
+
|
|
245
|
+
const _win = s.window; // shortcut
|
|
246
|
+
|
|
247
|
+
const wmask = s.w_mask;
|
|
248
|
+
const prev = s.prev;
|
|
249
|
+
|
|
250
|
+
/* Stop when cur_match becomes <= limit. To simplify the code,
|
|
251
|
+
* we prevent matches with the string of window index 0.
|
|
252
|
+
*/
|
|
253
|
+
|
|
254
|
+
const strend = s.strstart + MAX_MATCH;
|
|
255
|
+
let scan_end1 = _win[scan + best_len - 1];
|
|
256
|
+
let scan_end = _win[scan + best_len];
|
|
257
|
+
|
|
258
|
+
/* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.
|
|
259
|
+
* It is easy to get rid of this optimization if necessary.
|
|
260
|
+
*/
|
|
261
|
+
// Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");
|
|
262
|
+
|
|
263
|
+
/* Do not waste too much time if we already have a good match: */
|
|
264
|
+
if (s.prev_length >= s.good_match) {
|
|
265
|
+
chain_length >>= 2;
|
|
266
|
+
}
|
|
267
|
+
/* Do not look for matches beyond the end of the input. This is necessary
|
|
268
|
+
* to make deflate deterministic.
|
|
269
|
+
*/
|
|
270
|
+
if (nice_match > s.lookahead) { nice_match = s.lookahead; }
|
|
271
|
+
|
|
272
|
+
// Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead");
|
|
273
|
+
|
|
274
|
+
do {
|
|
275
|
+
// Assert(cur_match < s->strstart, "no future");
|
|
276
|
+
match = cur_match;
|
|
277
|
+
|
|
278
|
+
/* Skip to next match if the match length cannot increase
|
|
279
|
+
* or if the match length is less than 2. Note that the checks below
|
|
280
|
+
* for insufficient lookahead only occur occasionally for performance
|
|
281
|
+
* reasons. Therefore uninitialized memory will be accessed, and
|
|
282
|
+
* conditional jumps will be made that depend on those values.
|
|
283
|
+
* However the length of the match is limited to the lookahead, so
|
|
284
|
+
* the output of deflate is not affected by the uninitialized values.
|
|
285
|
+
*/
|
|
286
|
+
|
|
287
|
+
if (_win[match + best_len] !== scan_end ||
|
|
288
|
+
_win[match + best_len - 1] !== scan_end1 ||
|
|
289
|
+
_win[match] !== _win[scan] ||
|
|
290
|
+
_win[++match] !== _win[scan + 1]) {
|
|
291
|
+
continue;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/* The check at best_len-1 can be removed because it will be made
|
|
295
|
+
* again later. (This heuristic is not always a win.)
|
|
296
|
+
* It is not necessary to compare scan[2] and match[2] since they
|
|
297
|
+
* are always equal when the other bytes match, given that
|
|
298
|
+
* the hash keys are equal and that HASH_BITS >= 8.
|
|
299
|
+
*/
|
|
300
|
+
scan += 2;
|
|
301
|
+
match++;
|
|
302
|
+
// Assert(*scan == *match, "match[2]?");
|
|
303
|
+
|
|
304
|
+
/* We check for insufficient lookahead only every 8th comparison;
|
|
305
|
+
* the 256th check will be made at strstart+258.
|
|
306
|
+
*/
|
|
307
|
+
do {
|
|
308
|
+
/*jshint noempty:false*/
|
|
309
|
+
} while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
|
|
310
|
+
_win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
|
|
311
|
+
_win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
|
|
312
|
+
_win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
|
|
313
|
+
scan < strend);
|
|
314
|
+
|
|
315
|
+
// Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
|
|
316
|
+
|
|
317
|
+
len = MAX_MATCH - (strend - scan);
|
|
318
|
+
scan = strend - MAX_MATCH;
|
|
319
|
+
|
|
320
|
+
if (len > best_len) {
|
|
321
|
+
s.match_start = cur_match;
|
|
322
|
+
best_len = len;
|
|
323
|
+
if (len >= nice_match) {
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
scan_end1 = _win[scan + best_len - 1];
|
|
327
|
+
scan_end = _win[scan + best_len];
|
|
328
|
+
}
|
|
329
|
+
} while ((cur_match = prev[cur_match & wmask]) > limit && --chain_length !== 0);
|
|
330
|
+
|
|
331
|
+
if (best_len <= s.lookahead) {
|
|
332
|
+
return best_len;
|
|
333
|
+
}
|
|
334
|
+
return s.lookahead;
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
/* ===========================================================================
|
|
339
|
+
* Fill the window when the lookahead becomes insufficient.
|
|
340
|
+
* Updates strstart and lookahead.
|
|
341
|
+
*
|
|
342
|
+
* IN assertion: lookahead < MIN_LOOKAHEAD
|
|
343
|
+
* OUT assertions: strstart <= window_size-MIN_LOOKAHEAD
|
|
344
|
+
* At least one byte has been read, or avail_in == 0; reads are
|
|
345
|
+
* performed for at least two bytes (required for the zip translate_eol
|
|
346
|
+
* option -- not supported here).
|
|
347
|
+
*/
|
|
348
|
+
const fill_window = (s) => {
|
|
349
|
+
|
|
350
|
+
const _w_size = s.w_size;
|
|
351
|
+
let n, more, str;
|
|
352
|
+
|
|
353
|
+
//Assert(s->lookahead < MIN_LOOKAHEAD, "already enough lookahead");
|
|
354
|
+
|
|
355
|
+
do {
|
|
356
|
+
more = s.window_size - s.lookahead - s.strstart;
|
|
357
|
+
|
|
358
|
+
// JS ints have 32 bit, block below not needed
|
|
359
|
+
/* Deal with !@#$% 64K limit: */
|
|
360
|
+
//if (sizeof(int) <= 2) {
|
|
361
|
+
// if (more == 0 && s->strstart == 0 && s->lookahead == 0) {
|
|
362
|
+
// more = wsize;
|
|
363
|
+
//
|
|
364
|
+
// } else if (more == (unsigned)(-1)) {
|
|
365
|
+
// /* Very unlikely, but possible on 16 bit machine if
|
|
366
|
+
// * strstart == 0 && lookahead == 1 (input done a byte at time)
|
|
367
|
+
// */
|
|
368
|
+
// more--;
|
|
369
|
+
// }
|
|
370
|
+
//}
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
/* If the window is almost full and there is insufficient lookahead,
|
|
374
|
+
* move the upper half to the lower one to make room in the upper half.
|
|
375
|
+
*/
|
|
376
|
+
if (s.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD)) {
|
|
377
|
+
|
|
378
|
+
s.window.set(s.window.subarray(_w_size, _w_size + _w_size - more), 0);
|
|
379
|
+
s.match_start -= _w_size;
|
|
380
|
+
s.strstart -= _w_size;
|
|
381
|
+
/* we now have strstart >= MAX_DIST */
|
|
382
|
+
s.block_start -= _w_size;
|
|
383
|
+
if (s.insert > s.strstart) {
|
|
384
|
+
s.insert = s.strstart;
|
|
385
|
+
}
|
|
386
|
+
slide_hash(s);
|
|
387
|
+
more += _w_size;
|
|
388
|
+
}
|
|
389
|
+
if (s.strm.avail_in === 0) {
|
|
390
|
+
break;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/* If there was no sliding:
|
|
394
|
+
* strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&
|
|
395
|
+
* more == window_size - lookahead - strstart
|
|
396
|
+
* => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)
|
|
397
|
+
* => more >= window_size - 2*WSIZE + 2
|
|
398
|
+
* In the BIG_MEM or MMAP case (not yet supported),
|
|
399
|
+
* window_size == input_size + MIN_LOOKAHEAD &&
|
|
400
|
+
* strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.
|
|
401
|
+
* Otherwise, window_size == 2*WSIZE so more >= 2.
|
|
402
|
+
* If there was sliding, more >= WSIZE. So in all cases, more >= 2.
|
|
403
|
+
*/
|
|
404
|
+
//Assert(more >= 2, "more < 2");
|
|
405
|
+
n = read_buf(s.strm, s.window, s.strstart + s.lookahead, more);
|
|
406
|
+
s.lookahead += n;
|
|
407
|
+
|
|
408
|
+
/* Initialize the hash value now that we have some input: */
|
|
409
|
+
if (s.lookahead + s.insert >= MIN_MATCH) {
|
|
410
|
+
str = s.strstart - s.insert;
|
|
411
|
+
s.ins_h = s.window[str];
|
|
412
|
+
|
|
413
|
+
/* UPDATE_HASH(s, s->ins_h, s->window[str + 1]); */
|
|
414
|
+
s.ins_h = HASH(s, s.ins_h, s.window[str + 1]);
|
|
415
|
+
//#if MIN_MATCH != 3
|
|
416
|
+
// Call update_hash() MIN_MATCH-3 more times
|
|
417
|
+
//#endif
|
|
418
|
+
while (s.insert) {
|
|
419
|
+
/* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */
|
|
420
|
+
s.ins_h = HASH(s, s.ins_h, s.window[str + MIN_MATCH - 1]);
|
|
421
|
+
|
|
422
|
+
s.prev[str & s.w_mask] = s.head[s.ins_h];
|
|
423
|
+
s.head[s.ins_h] = str;
|
|
424
|
+
str++;
|
|
425
|
+
s.insert--;
|
|
426
|
+
if (s.lookahead + s.insert < MIN_MATCH) {
|
|
427
|
+
break;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
/* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,
|
|
432
|
+
* but this is not important since only literal bytes will be emitted.
|
|
433
|
+
*/
|
|
434
|
+
|
|
435
|
+
} while (s.lookahead < MIN_LOOKAHEAD && s.strm.avail_in !== 0);
|
|
436
|
+
|
|
437
|
+
/* If the WIN_INIT bytes after the end of the current data have never been
|
|
438
|
+
* written, then zero those bytes in order to avoid memory check reports of
|
|
439
|
+
* the use of uninitialized (or uninitialised as Julian writes) bytes by
|
|
440
|
+
* the longest match routines. Update the high water mark for the next
|
|
441
|
+
* time through here. WIN_INIT is set to MAX_MATCH since the longest match
|
|
442
|
+
* routines allow scanning to strstart + MAX_MATCH, ignoring lookahead.
|
|
443
|
+
*/
|
|
444
|
+
// if (s.high_water < s.window_size) {
|
|
445
|
+
// const curr = s.strstart + s.lookahead;
|
|
446
|
+
// let init = 0;
|
|
447
|
+
//
|
|
448
|
+
// if (s.high_water < curr) {
|
|
449
|
+
// /* Previous high water mark below current data -- zero WIN_INIT
|
|
450
|
+
// * bytes or up to end of window, whichever is less.
|
|
451
|
+
// */
|
|
452
|
+
// init = s.window_size - curr;
|
|
453
|
+
// if (init > WIN_INIT)
|
|
454
|
+
// init = WIN_INIT;
|
|
455
|
+
// zmemzero(s->window + curr, (unsigned)init);
|
|
456
|
+
// s->high_water = curr + init;
|
|
457
|
+
// }
|
|
458
|
+
// else if (s->high_water < (ulg)curr + WIN_INIT) {
|
|
459
|
+
// /* High water mark at or above current data, but below current data
|
|
460
|
+
// * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up
|
|
461
|
+
// * to end of window, whichever is less.
|
|
462
|
+
// */
|
|
463
|
+
// init = (ulg)curr + WIN_INIT - s->high_water;
|
|
464
|
+
// if (init > s->window_size - s->high_water)
|
|
465
|
+
// init = s->window_size - s->high_water;
|
|
466
|
+
// zmemzero(s->window + s->high_water, (unsigned)init);
|
|
467
|
+
// s->high_water += init;
|
|
468
|
+
// }
|
|
469
|
+
// }
|
|
470
|
+
//
|
|
471
|
+
// Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD,
|
|
472
|
+
// "not enough room for search");
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
/* ===========================================================================
|
|
476
|
+
* Copy without compression as much as possible from the input stream, return
|
|
477
|
+
* the current block state.
|
|
478
|
+
*
|
|
479
|
+
* In case deflateParams() is used to later switch to a non-zero compression
|
|
480
|
+
* level, s->matches (otherwise unused when storing) keeps track of the number
|
|
481
|
+
* of hash table slides to perform. If s->matches is 1, then one hash table
|
|
482
|
+
* slide will be done when switching. If s->matches is 2, the maximum value
|
|
483
|
+
* allowed here, then the hash table will be cleared, since two or more slides
|
|
484
|
+
* is the same as a clear.
|
|
485
|
+
*
|
|
486
|
+
* deflate_stored() is written to minimize the number of times an input byte is
|
|
487
|
+
* copied. It is most efficient with large input and output buffers, which
|
|
488
|
+
* maximizes the opportunites to have a single copy from next_in to next_out.
|
|
489
|
+
*/
|
|
490
|
+
const deflate_stored = (s, flush) => {
|
|
491
|
+
|
|
492
|
+
/* Smallest worthy block size when not flushing or finishing. By default
|
|
493
|
+
* this is 32K. This can be as small as 507 bytes for memLevel == 1. For
|
|
494
|
+
* large input and output buffers, the stored block size will be larger.
|
|
495
|
+
*/
|
|
496
|
+
let min_block = s.pending_buf_size - 5 > s.w_size ? s.w_size : s.pending_buf_size - 5;
|
|
497
|
+
|
|
498
|
+
/* Copy as many min_block or larger stored blocks directly to next_out as
|
|
499
|
+
* possible. If flushing, copy the remaining available input to next_out as
|
|
500
|
+
* stored blocks, if there is enough space.
|
|
501
|
+
*/
|
|
502
|
+
let len, left, have, last = 0;
|
|
503
|
+
let used = s.strm.avail_in;
|
|
504
|
+
do {
|
|
505
|
+
/* Set len to the maximum size block that we can copy directly with the
|
|
506
|
+
* available input data and output space. Set left to how much of that
|
|
507
|
+
* would be copied from what's left in the window.
|
|
508
|
+
*/
|
|
509
|
+
len = 65535/* MAX_STORED */; /* maximum deflate stored block length */
|
|
510
|
+
have = (s.bi_valid + 42) >> 3; /* number of header bytes */
|
|
511
|
+
if (s.strm.avail_out < have) { /* need room for header */
|
|
512
|
+
break;
|
|
513
|
+
}
|
|
514
|
+
/* maximum stored block length that will fit in avail_out: */
|
|
515
|
+
have = s.strm.avail_out - have;
|
|
516
|
+
left = s.strstart - s.block_start; /* bytes left in window */
|
|
517
|
+
if (len > left + s.strm.avail_in) {
|
|
518
|
+
len = left + s.strm.avail_in; /* limit len to the input */
|
|
519
|
+
}
|
|
520
|
+
if (len > have) {
|
|
521
|
+
len = have; /* limit len to the output */
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/* If the stored block would be less than min_block in length, or if
|
|
525
|
+
* unable to copy all of the available input when flushing, then try
|
|
526
|
+
* copying to the window and the pending buffer instead. Also don't
|
|
527
|
+
* write an empty block when flushing -- deflate() does that.
|
|
528
|
+
*/
|
|
529
|
+
if (len < min_block && ((len === 0 && flush !== Z_FINISH) ||
|
|
530
|
+
flush === Z_NO_FLUSH ||
|
|
531
|
+
len !== left + s.strm.avail_in)) {
|
|
532
|
+
break;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/* Make a dummy stored block in pending to get the header bytes,
|
|
536
|
+
* including any pending bits. This also updates the debugging counts.
|
|
537
|
+
*/
|
|
538
|
+
last = flush === Z_FINISH && len === left + s.strm.avail_in ? 1 : 0;
|
|
539
|
+
_tr_stored_block(s, 0, 0, last);
|
|
540
|
+
|
|
541
|
+
/* Replace the lengths in the dummy stored block with len. */
|
|
542
|
+
s.pending_buf[s.pending - 4] = len;
|
|
543
|
+
s.pending_buf[s.pending - 3] = len >> 8;
|
|
544
|
+
s.pending_buf[s.pending - 2] = ~len;
|
|
545
|
+
s.pending_buf[s.pending - 1] = ~len >> 8;
|
|
546
|
+
|
|
547
|
+
/* Write the stored block header bytes. */
|
|
548
|
+
flush_pending(s.strm);
|
|
549
|
+
|
|
550
|
+
//#ifdef ZLIB_DEBUG
|
|
551
|
+
// /* Update debugging counts for the data about to be copied. */
|
|
552
|
+
// s->compressed_len += len << 3;
|
|
553
|
+
// s->bits_sent += len << 3;
|
|
554
|
+
//#endif
|
|
555
|
+
|
|
556
|
+
/* Copy uncompressed bytes from the window to next_out. */
|
|
557
|
+
if (left) {
|
|
558
|
+
if (left > len) {
|
|
559
|
+
left = len;
|
|
560
|
+
}
|
|
561
|
+
//zmemcpy(s->strm->next_out, s->window + s->block_start, left);
|
|
562
|
+
s.strm.output.set(s.window.subarray(s.block_start, s.block_start + left), s.strm.next_out);
|
|
563
|
+
s.strm.next_out += left;
|
|
564
|
+
s.strm.avail_out -= left;
|
|
565
|
+
s.strm.total_out += left;
|
|
566
|
+
s.block_start += left;
|
|
567
|
+
len -= left;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/* Copy uncompressed bytes directly from next_in to next_out, updating
|
|
571
|
+
* the check value.
|
|
572
|
+
*/
|
|
573
|
+
if (len) {
|
|
574
|
+
read_buf(s.strm, s.strm.output, s.strm.next_out, len);
|
|
575
|
+
s.strm.next_out += len;
|
|
576
|
+
s.strm.avail_out -= len;
|
|
577
|
+
s.strm.total_out += len;
|
|
578
|
+
}
|
|
579
|
+
} while (last === 0);
|
|
580
|
+
|
|
581
|
+
/* Update the sliding window with the last s->w_size bytes of the copied
|
|
582
|
+
* data, or append all of the copied data to the existing window if less
|
|
583
|
+
* than s->w_size bytes were copied. Also update the number of bytes to
|
|
584
|
+
* insert in the hash tables, in the event that deflateParams() switches to
|
|
585
|
+
* a non-zero compression level.
|
|
586
|
+
*/
|
|
587
|
+
used -= s.strm.avail_in; /* number of input bytes directly copied */
|
|
588
|
+
if (used) {
|
|
589
|
+
/* If any input was used, then no unused input remains in the window,
|
|
590
|
+
* therefore s->block_start == s->strstart.
|
|
591
|
+
*/
|
|
592
|
+
if (used >= s.w_size) { /* supplant the previous history */
|
|
593
|
+
s.matches = 2; /* clear hash */
|
|
594
|
+
//zmemcpy(s->window, s->strm->next_in - s->w_size, s->w_size);
|
|
595
|
+
s.window.set(s.strm.input.subarray(s.strm.next_in - s.w_size, s.strm.next_in), 0);
|
|
596
|
+
s.strstart = s.w_size;
|
|
597
|
+
s.insert = s.strstart;
|
|
598
|
+
}
|
|
599
|
+
else {
|
|
600
|
+
if (s.window_size - s.strstart <= used) {
|
|
601
|
+
/* Slide the window down. */
|
|
602
|
+
s.strstart -= s.w_size;
|
|
603
|
+
//zmemcpy(s->window, s->window + s->w_size, s->strstart);
|
|
604
|
+
s.window.set(s.window.subarray(s.w_size, s.w_size + s.strstart), 0);
|
|
605
|
+
if (s.matches < 2) {
|
|
606
|
+
s.matches++; /* add a pending slide_hash() */
|
|
607
|
+
}
|
|
608
|
+
if (s.insert > s.strstart) {
|
|
609
|
+
s.insert = s.strstart;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
//zmemcpy(s->window + s->strstart, s->strm->next_in - used, used);
|
|
613
|
+
s.window.set(s.strm.input.subarray(s.strm.next_in - used, s.strm.next_in), s.strstart);
|
|
614
|
+
s.strstart += used;
|
|
615
|
+
s.insert += used > s.w_size - s.insert ? s.w_size - s.insert : used;
|
|
616
|
+
}
|
|
617
|
+
s.block_start = s.strstart;
|
|
618
|
+
}
|
|
619
|
+
if (s.high_water < s.strstart) {
|
|
620
|
+
s.high_water = s.strstart;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/* If the last block was written to next_out, then done. */
|
|
624
|
+
if (last) {
|
|
625
|
+
return BS_FINISH_DONE;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
/* If flushing and all input has been consumed, then done. */
|
|
629
|
+
if (flush !== Z_NO_FLUSH && flush !== Z_FINISH &&
|
|
630
|
+
s.strm.avail_in === 0 && s.strstart === s.block_start) {
|
|
631
|
+
return BS_BLOCK_DONE;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/* Fill the window with any remaining input. */
|
|
635
|
+
have = s.window_size - s.strstart;
|
|
636
|
+
if (s.strm.avail_in > have && s.block_start >= s.w_size) {
|
|
637
|
+
/* Slide the window down. */
|
|
638
|
+
s.block_start -= s.w_size;
|
|
639
|
+
s.strstart -= s.w_size;
|
|
640
|
+
//zmemcpy(s->window, s->window + s->w_size, s->strstart);
|
|
641
|
+
s.window.set(s.window.subarray(s.w_size, s.w_size + s.strstart), 0);
|
|
642
|
+
if (s.matches < 2) {
|
|
643
|
+
s.matches++; /* add a pending slide_hash() */
|
|
644
|
+
}
|
|
645
|
+
have += s.w_size; /* more space now */
|
|
646
|
+
if (s.insert > s.strstart) {
|
|
647
|
+
s.insert = s.strstart;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
if (have > s.strm.avail_in) {
|
|
651
|
+
have = s.strm.avail_in;
|
|
652
|
+
}
|
|
653
|
+
if (have) {
|
|
654
|
+
read_buf(s.strm, s.window, s.strstart, have);
|
|
655
|
+
s.strstart += have;
|
|
656
|
+
s.insert += have > s.w_size - s.insert ? s.w_size - s.insert : have;
|
|
657
|
+
}
|
|
658
|
+
if (s.high_water < s.strstart) {
|
|
659
|
+
s.high_water = s.strstart;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
/* There was not enough avail_out to write a complete worthy or flushed
|
|
663
|
+
* stored block to next_out. Write a stored block to pending instead, if we
|
|
664
|
+
* have enough input for a worthy block, or if flushing and there is enough
|
|
665
|
+
* room for the remaining input as a stored block in the pending buffer.
|
|
666
|
+
*/
|
|
667
|
+
have = (s.bi_valid + 42) >> 3; /* number of header bytes */
|
|
668
|
+
/* maximum stored block length that will fit in pending: */
|
|
669
|
+
have = s.pending_buf_size - have > 65535/* MAX_STORED */ ? 65535/* MAX_STORED */ : s.pending_buf_size - have;
|
|
670
|
+
min_block = have > s.w_size ? s.w_size : have;
|
|
671
|
+
left = s.strstart - s.block_start;
|
|
672
|
+
if (left >= min_block ||
|
|
673
|
+
((left || flush === Z_FINISH) && flush !== Z_NO_FLUSH &&
|
|
674
|
+
s.strm.avail_in === 0 && left <= have)) {
|
|
675
|
+
len = left > have ? have : left;
|
|
676
|
+
last = flush === Z_FINISH && s.strm.avail_in === 0 &&
|
|
677
|
+
len === left ? 1 : 0;
|
|
678
|
+
_tr_stored_block(s, s.block_start, len, last);
|
|
679
|
+
s.block_start += len;
|
|
680
|
+
flush_pending(s.strm);
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
/* We've done all we can with the available input and output. */
|
|
684
|
+
return last ? BS_FINISH_STARTED : BS_NEED_MORE;
|
|
685
|
+
};
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
/* ===========================================================================
|
|
689
|
+
* Compress as much as possible from the input stream, return the current
|
|
690
|
+
* block state.
|
|
691
|
+
* This function does not perform lazy evaluation of matches and inserts
|
|
692
|
+
* new strings in the dictionary only for unmatched strings or for short
|
|
693
|
+
* matches. It is used only for the fast compression options.
|
|
694
|
+
*/
|
|
695
|
+
const deflate_fast = (s, flush) => {
|
|
696
|
+
|
|
697
|
+
let hash_head; /* head of the hash chain */
|
|
698
|
+
let bflush; /* set if current block must be flushed */
|
|
699
|
+
|
|
700
|
+
for (;;) {
|
|
701
|
+
/* Make sure that we always have enough lookahead, except
|
|
702
|
+
* at the end of the input file. We need MAX_MATCH bytes
|
|
703
|
+
* for the next match, plus MIN_MATCH bytes to insert the
|
|
704
|
+
* string following the next match.
|
|
705
|
+
*/
|
|
706
|
+
if (s.lookahead < MIN_LOOKAHEAD) {
|
|
707
|
+
fill_window(s);
|
|
708
|
+
if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) {
|
|
709
|
+
return BS_NEED_MORE;
|
|
710
|
+
}
|
|
711
|
+
if (s.lookahead === 0) {
|
|
712
|
+
break; /* flush the current block */
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
/* Insert the string window[strstart .. strstart+2] in the
|
|
717
|
+
* dictionary, and set hash_head to the head of the hash chain:
|
|
718
|
+
*/
|
|
719
|
+
hash_head = 0/*NIL*/;
|
|
720
|
+
if (s.lookahead >= MIN_MATCH) {
|
|
721
|
+
/*** INSERT_STRING(s, s.strstart, hash_head); ***/
|
|
722
|
+
s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH - 1]);
|
|
723
|
+
hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
|
|
724
|
+
s.head[s.ins_h] = s.strstart;
|
|
725
|
+
/***/
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/* Find the longest match, discarding those <= prev_length.
|
|
729
|
+
* At this point we have always match_length < MIN_MATCH
|
|
730
|
+
*/
|
|
731
|
+
if (hash_head !== 0/*NIL*/ && ((s.strstart - hash_head) <= (s.w_size - MIN_LOOKAHEAD))) {
|
|
732
|
+
/* To simplify the code, we prevent matches with the string
|
|
733
|
+
* of window index 0 (in particular we have to avoid a match
|
|
734
|
+
* of the string with itself at the start of the input file).
|
|
735
|
+
*/
|
|
736
|
+
s.match_length = longest_match(s, hash_head);
|
|
737
|
+
/* longest_match() sets match_start */
|
|
738
|
+
}
|
|
739
|
+
if (s.match_length >= MIN_MATCH) {
|
|
740
|
+
// check_match(s, s.strstart, s.match_start, s.match_length); // for debug only
|
|
741
|
+
|
|
742
|
+
/*** _tr_tally_dist(s, s.strstart - s.match_start,
|
|
743
|
+
s.match_length - MIN_MATCH, bflush); ***/
|
|
744
|
+
bflush = _tr_tally(s, s.strstart - s.match_start, s.match_length - MIN_MATCH);
|
|
745
|
+
|
|
746
|
+
s.lookahead -= s.match_length;
|
|
747
|
+
|
|
748
|
+
/* Insert new strings in the hash table only if the match length
|
|
749
|
+
* is not too large. This saves time but degrades compression.
|
|
750
|
+
*/
|
|
751
|
+
if (s.match_length <= s.max_lazy_match/*max_insert_length*/ && s.lookahead >= MIN_MATCH) {
|
|
752
|
+
s.match_length--; /* string at strstart already in table */
|
|
753
|
+
do {
|
|
754
|
+
s.strstart++;
|
|
755
|
+
/*** INSERT_STRING(s, s.strstart, hash_head); ***/
|
|
756
|
+
s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH - 1]);
|
|
757
|
+
hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
|
|
758
|
+
s.head[s.ins_h] = s.strstart;
|
|
759
|
+
/***/
|
|
760
|
+
/* strstart never exceeds WSIZE-MAX_MATCH, so there are
|
|
761
|
+
* always MIN_MATCH bytes ahead.
|
|
762
|
+
*/
|
|
763
|
+
} while (--s.match_length !== 0);
|
|
764
|
+
s.strstart++;
|
|
765
|
+
} else
|
|
766
|
+
{
|
|
767
|
+
s.strstart += s.match_length;
|
|
768
|
+
s.match_length = 0;
|
|
769
|
+
s.ins_h = s.window[s.strstart];
|
|
770
|
+
/* UPDATE_HASH(s, s.ins_h, s.window[s.strstart+1]); */
|
|
771
|
+
s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + 1]);
|
|
772
|
+
|
|
773
|
+
//#if MIN_MATCH != 3
|
|
774
|
+
// Call UPDATE_HASH() MIN_MATCH-3 more times
|
|
775
|
+
//#endif
|
|
776
|
+
/* If lookahead < MIN_MATCH, ins_h is garbage, but it does not
|
|
777
|
+
* matter since it will be recomputed at next deflate call.
|
|
778
|
+
*/
|
|
779
|
+
}
|
|
780
|
+
} else {
|
|
781
|
+
/* No match, output a literal byte */
|
|
782
|
+
//Tracevv((stderr,"%c", s.window[s.strstart]));
|
|
783
|
+
/*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
|
|
784
|
+
bflush = _tr_tally(s, 0, s.window[s.strstart]);
|
|
785
|
+
|
|
786
|
+
s.lookahead--;
|
|
787
|
+
s.strstart++;
|
|
788
|
+
}
|
|
789
|
+
if (bflush) {
|
|
790
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
|
791
|
+
flush_block_only(s, false);
|
|
792
|
+
if (s.strm.avail_out === 0) {
|
|
793
|
+
return BS_NEED_MORE;
|
|
794
|
+
}
|
|
795
|
+
/***/
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
s.insert = ((s.strstart < (MIN_MATCH - 1)) ? s.strstart : MIN_MATCH - 1);
|
|
799
|
+
if (flush === Z_FINISH) {
|
|
800
|
+
/*** FLUSH_BLOCK(s, 1); ***/
|
|
801
|
+
flush_block_only(s, true);
|
|
802
|
+
if (s.strm.avail_out === 0) {
|
|
803
|
+
return BS_FINISH_STARTED;
|
|
804
|
+
}
|
|
805
|
+
/***/
|
|
806
|
+
return BS_FINISH_DONE;
|
|
807
|
+
}
|
|
808
|
+
if (s.sym_next) {
|
|
809
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
|
810
|
+
flush_block_only(s, false);
|
|
811
|
+
if (s.strm.avail_out === 0) {
|
|
812
|
+
return BS_NEED_MORE;
|
|
813
|
+
}
|
|
814
|
+
/***/
|
|
815
|
+
}
|
|
816
|
+
return BS_BLOCK_DONE;
|
|
817
|
+
};
|
|
818
|
+
|
|
819
|
+
/* ===========================================================================
|
|
820
|
+
* Same as above, but achieves better compression. We use a lazy
|
|
821
|
+
* evaluation for matches: a match is finally adopted only if there is
|
|
822
|
+
* no better match at the next window position.
|
|
823
|
+
*/
|
|
824
|
+
const deflate_slow = (s, flush) => {
|
|
825
|
+
|
|
826
|
+
let hash_head; /* head of hash chain */
|
|
827
|
+
let bflush; /* set if current block must be flushed */
|
|
828
|
+
|
|
829
|
+
let max_insert;
|
|
830
|
+
|
|
831
|
+
/* Process the input block. */
|
|
832
|
+
for (;;) {
|
|
833
|
+
/* Make sure that we always have enough lookahead, except
|
|
834
|
+
* at the end of the input file. We need MAX_MATCH bytes
|
|
835
|
+
* for the next match, plus MIN_MATCH bytes to insert the
|
|
836
|
+
* string following the next match.
|
|
837
|
+
*/
|
|
838
|
+
if (s.lookahead < MIN_LOOKAHEAD) {
|
|
839
|
+
fill_window(s);
|
|
840
|
+
if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) {
|
|
841
|
+
return BS_NEED_MORE;
|
|
842
|
+
}
|
|
843
|
+
if (s.lookahead === 0) { break; } /* flush the current block */
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
/* Insert the string window[strstart .. strstart+2] in the
|
|
847
|
+
* dictionary, and set hash_head to the head of the hash chain:
|
|
848
|
+
*/
|
|
849
|
+
hash_head = 0/*NIL*/;
|
|
850
|
+
if (s.lookahead >= MIN_MATCH) {
|
|
851
|
+
/*** INSERT_STRING(s, s.strstart, hash_head); ***/
|
|
852
|
+
s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH - 1]);
|
|
853
|
+
hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
|
|
854
|
+
s.head[s.ins_h] = s.strstart;
|
|
855
|
+
/***/
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
/* Find the longest match, discarding those <= prev_length.
|
|
859
|
+
*/
|
|
860
|
+
s.prev_length = s.match_length;
|
|
861
|
+
s.prev_match = s.match_start;
|
|
862
|
+
s.match_length = MIN_MATCH - 1;
|
|
863
|
+
|
|
864
|
+
if (hash_head !== 0/*NIL*/ && s.prev_length < s.max_lazy_match &&
|
|
865
|
+
s.strstart - hash_head <= (s.w_size - MIN_LOOKAHEAD)/*MAX_DIST(s)*/) {
|
|
866
|
+
/* To simplify the code, we prevent matches with the string
|
|
867
|
+
* of window index 0 (in particular we have to avoid a match
|
|
868
|
+
* of the string with itself at the start of the input file).
|
|
869
|
+
*/
|
|
870
|
+
s.match_length = longest_match(s, hash_head);
|
|
871
|
+
/* longest_match() sets match_start */
|
|
872
|
+
|
|
873
|
+
if (s.match_length <= 5 &&
|
|
874
|
+
(s.strategy === Z_FILTERED || (s.match_length === MIN_MATCH && s.strstart - s.match_start > 4096/*TOO_FAR*/))) {
|
|
875
|
+
|
|
876
|
+
/* If prev_match is also MIN_MATCH, match_start is garbage
|
|
877
|
+
* but we will ignore the current match anyway.
|
|
878
|
+
*/
|
|
879
|
+
s.match_length = MIN_MATCH - 1;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
/* If there was a match at the previous step and the current
|
|
883
|
+
* match is not better, output the previous match:
|
|
884
|
+
*/
|
|
885
|
+
if (s.prev_length >= MIN_MATCH && s.match_length <= s.prev_length) {
|
|
886
|
+
max_insert = s.strstart + s.lookahead - MIN_MATCH;
|
|
887
|
+
/* Do not insert strings in hash table beyond this. */
|
|
888
|
+
|
|
889
|
+
//check_match(s, s.strstart-1, s.prev_match, s.prev_length);
|
|
890
|
+
|
|
891
|
+
/***_tr_tally_dist(s, s.strstart - 1 - s.prev_match,
|
|
892
|
+
s.prev_length - MIN_MATCH, bflush);***/
|
|
893
|
+
bflush = _tr_tally(s, s.strstart - 1 - s.prev_match, s.prev_length - MIN_MATCH);
|
|
894
|
+
/* Insert in hash table all strings up to the end of the match.
|
|
895
|
+
* strstart-1 and strstart are already inserted. If there is not
|
|
896
|
+
* enough lookahead, the last two strings are not inserted in
|
|
897
|
+
* the hash table.
|
|
898
|
+
*/
|
|
899
|
+
s.lookahead -= s.prev_length - 1;
|
|
900
|
+
s.prev_length -= 2;
|
|
901
|
+
do {
|
|
902
|
+
if (++s.strstart <= max_insert) {
|
|
903
|
+
/*** INSERT_STRING(s, s.strstart, hash_head); ***/
|
|
904
|
+
s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH - 1]);
|
|
905
|
+
hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
|
|
906
|
+
s.head[s.ins_h] = s.strstart;
|
|
907
|
+
/***/
|
|
908
|
+
}
|
|
909
|
+
} while (--s.prev_length !== 0);
|
|
910
|
+
s.match_available = 0;
|
|
911
|
+
s.match_length = MIN_MATCH - 1;
|
|
912
|
+
s.strstart++;
|
|
913
|
+
|
|
914
|
+
if (bflush) {
|
|
915
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
|
916
|
+
flush_block_only(s, false);
|
|
917
|
+
if (s.strm.avail_out === 0) {
|
|
918
|
+
return BS_NEED_MORE;
|
|
919
|
+
}
|
|
920
|
+
/***/
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
} else if (s.match_available) {
|
|
924
|
+
/* If there was no match at the previous position, output a
|
|
925
|
+
* single literal. If there was a match but the current match
|
|
926
|
+
* is longer, truncate the previous match to a single literal.
|
|
927
|
+
*/
|
|
928
|
+
//Tracevv((stderr,"%c", s->window[s->strstart-1]));
|
|
929
|
+
/*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/
|
|
930
|
+
bflush = _tr_tally(s, 0, s.window[s.strstart - 1]);
|
|
931
|
+
|
|
932
|
+
if (bflush) {
|
|
933
|
+
/*** FLUSH_BLOCK_ONLY(s, 0) ***/
|
|
934
|
+
flush_block_only(s, false);
|
|
935
|
+
/***/
|
|
936
|
+
}
|
|
937
|
+
s.strstart++;
|
|
938
|
+
s.lookahead--;
|
|
939
|
+
if (s.strm.avail_out === 0) {
|
|
940
|
+
return BS_NEED_MORE;
|
|
941
|
+
}
|
|
942
|
+
} else {
|
|
943
|
+
/* There is no previous match to compare with, wait for
|
|
944
|
+
* the next step to decide.
|
|
945
|
+
*/
|
|
946
|
+
s.match_available = 1;
|
|
947
|
+
s.strstart++;
|
|
948
|
+
s.lookahead--;
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
//Assert (flush != Z_NO_FLUSH, "no flush?");
|
|
952
|
+
if (s.match_available) {
|
|
953
|
+
//Tracevv((stderr,"%c", s->window[s->strstart-1]));
|
|
954
|
+
/*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/
|
|
955
|
+
bflush = _tr_tally(s, 0, s.window[s.strstart - 1]);
|
|
956
|
+
|
|
957
|
+
s.match_available = 0;
|
|
958
|
+
}
|
|
959
|
+
s.insert = s.strstart < MIN_MATCH - 1 ? s.strstart : MIN_MATCH - 1;
|
|
960
|
+
if (flush === Z_FINISH) {
|
|
961
|
+
/*** FLUSH_BLOCK(s, 1); ***/
|
|
962
|
+
flush_block_only(s, true);
|
|
963
|
+
if (s.strm.avail_out === 0) {
|
|
964
|
+
return BS_FINISH_STARTED;
|
|
965
|
+
}
|
|
966
|
+
/***/
|
|
967
|
+
return BS_FINISH_DONE;
|
|
968
|
+
}
|
|
969
|
+
if (s.sym_next) {
|
|
970
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
|
971
|
+
flush_block_only(s, false);
|
|
972
|
+
if (s.strm.avail_out === 0) {
|
|
973
|
+
return BS_NEED_MORE;
|
|
974
|
+
}
|
|
975
|
+
/***/
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
return BS_BLOCK_DONE;
|
|
979
|
+
};
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
/* ===========================================================================
|
|
983
|
+
* For Z_RLE, simply look for runs of bytes, generate matches only of distance
|
|
984
|
+
* one. Do not maintain a hash table. (It will be regenerated if this run of
|
|
985
|
+
* deflate switches away from Z_RLE.)
|
|
986
|
+
*/
|
|
987
|
+
const deflate_rle = (s, flush) => {
|
|
988
|
+
|
|
989
|
+
let bflush; /* set if current block must be flushed */
|
|
990
|
+
let prev; /* byte at distance one to match */
|
|
991
|
+
let scan, strend; /* scan goes up to strend for length of run */
|
|
992
|
+
|
|
993
|
+
const _win = s.window;
|
|
994
|
+
|
|
995
|
+
for (;;) {
|
|
996
|
+
/* Make sure that we always have enough lookahead, except
|
|
997
|
+
* at the end of the input file. We need MAX_MATCH bytes
|
|
998
|
+
* for the longest run, plus one for the unrolled loop.
|
|
999
|
+
*/
|
|
1000
|
+
if (s.lookahead <= MAX_MATCH) {
|
|
1001
|
+
fill_window(s);
|
|
1002
|
+
if (s.lookahead <= MAX_MATCH && flush === Z_NO_FLUSH) {
|
|
1003
|
+
return BS_NEED_MORE;
|
|
1004
|
+
}
|
|
1005
|
+
if (s.lookahead === 0) { break; } /* flush the current block */
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
/* See how many times the previous byte repeats */
|
|
1009
|
+
s.match_length = 0;
|
|
1010
|
+
if (s.lookahead >= MIN_MATCH && s.strstart > 0) {
|
|
1011
|
+
scan = s.strstart - 1;
|
|
1012
|
+
prev = _win[scan];
|
|
1013
|
+
if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {
|
|
1014
|
+
strend = s.strstart + MAX_MATCH;
|
|
1015
|
+
do {
|
|
1016
|
+
/*jshint noempty:false*/
|
|
1017
|
+
} while (prev === _win[++scan] && prev === _win[++scan] &&
|
|
1018
|
+
prev === _win[++scan] && prev === _win[++scan] &&
|
|
1019
|
+
prev === _win[++scan] && prev === _win[++scan] &&
|
|
1020
|
+
prev === _win[++scan] && prev === _win[++scan] &&
|
|
1021
|
+
scan < strend);
|
|
1022
|
+
s.match_length = MAX_MATCH - (strend - scan);
|
|
1023
|
+
if (s.match_length > s.lookahead) {
|
|
1024
|
+
s.match_length = s.lookahead;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
//Assert(scan <= s->window+(uInt)(s->window_size-1), "wild scan");
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
/* Emit match if have run of MIN_MATCH or longer, else emit literal */
|
|
1031
|
+
if (s.match_length >= MIN_MATCH) {
|
|
1032
|
+
//check_match(s, s.strstart, s.strstart - 1, s.match_length);
|
|
1033
|
+
|
|
1034
|
+
/*** _tr_tally_dist(s, 1, s.match_length - MIN_MATCH, bflush); ***/
|
|
1035
|
+
bflush = _tr_tally(s, 1, s.match_length - MIN_MATCH);
|
|
1036
|
+
|
|
1037
|
+
s.lookahead -= s.match_length;
|
|
1038
|
+
s.strstart += s.match_length;
|
|
1039
|
+
s.match_length = 0;
|
|
1040
|
+
} else {
|
|
1041
|
+
/* No match, output a literal byte */
|
|
1042
|
+
//Tracevv((stderr,"%c", s->window[s->strstart]));
|
|
1043
|
+
/*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
|
|
1044
|
+
bflush = _tr_tally(s, 0, s.window[s.strstart]);
|
|
1045
|
+
|
|
1046
|
+
s.lookahead--;
|
|
1047
|
+
s.strstart++;
|
|
1048
|
+
}
|
|
1049
|
+
if (bflush) {
|
|
1050
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
|
1051
|
+
flush_block_only(s, false);
|
|
1052
|
+
if (s.strm.avail_out === 0) {
|
|
1053
|
+
return BS_NEED_MORE;
|
|
1054
|
+
}
|
|
1055
|
+
/***/
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
s.insert = 0;
|
|
1059
|
+
if (flush === Z_FINISH) {
|
|
1060
|
+
/*** FLUSH_BLOCK(s, 1); ***/
|
|
1061
|
+
flush_block_only(s, true);
|
|
1062
|
+
if (s.strm.avail_out === 0) {
|
|
1063
|
+
return BS_FINISH_STARTED;
|
|
1064
|
+
}
|
|
1065
|
+
/***/
|
|
1066
|
+
return BS_FINISH_DONE;
|
|
1067
|
+
}
|
|
1068
|
+
if (s.sym_next) {
|
|
1069
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
|
1070
|
+
flush_block_only(s, false);
|
|
1071
|
+
if (s.strm.avail_out === 0) {
|
|
1072
|
+
return BS_NEED_MORE;
|
|
1073
|
+
}
|
|
1074
|
+
/***/
|
|
1075
|
+
}
|
|
1076
|
+
return BS_BLOCK_DONE;
|
|
1077
|
+
};
|
|
1078
|
+
|
|
1079
|
+
/* ===========================================================================
|
|
1080
|
+
* For Z_HUFFMAN_ONLY, do not look for matches. Do not maintain a hash table.
|
|
1081
|
+
* (It will be regenerated if this run of deflate switches away from Huffman.)
|
|
1082
|
+
*/
|
|
1083
|
+
const deflate_huff = (s, flush) => {
|
|
1084
|
+
|
|
1085
|
+
let bflush; /* set if current block must be flushed */
|
|
1086
|
+
|
|
1087
|
+
for (;;) {
|
|
1088
|
+
/* Make sure that we have a literal to write. */
|
|
1089
|
+
if (s.lookahead === 0) {
|
|
1090
|
+
fill_window(s);
|
|
1091
|
+
if (s.lookahead === 0) {
|
|
1092
|
+
if (flush === Z_NO_FLUSH) {
|
|
1093
|
+
return BS_NEED_MORE;
|
|
1094
|
+
}
|
|
1095
|
+
break; /* flush the current block */
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
/* Output a literal byte */
|
|
1100
|
+
s.match_length = 0;
|
|
1101
|
+
//Tracevv((stderr,"%c", s->window[s->strstart]));
|
|
1102
|
+
/*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
|
|
1103
|
+
bflush = _tr_tally(s, 0, s.window[s.strstart]);
|
|
1104
|
+
s.lookahead--;
|
|
1105
|
+
s.strstart++;
|
|
1106
|
+
if (bflush) {
|
|
1107
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
|
1108
|
+
flush_block_only(s, false);
|
|
1109
|
+
if (s.strm.avail_out === 0) {
|
|
1110
|
+
return BS_NEED_MORE;
|
|
1111
|
+
}
|
|
1112
|
+
/***/
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
s.insert = 0;
|
|
1116
|
+
if (flush === Z_FINISH) {
|
|
1117
|
+
/*** FLUSH_BLOCK(s, 1); ***/
|
|
1118
|
+
flush_block_only(s, true);
|
|
1119
|
+
if (s.strm.avail_out === 0) {
|
|
1120
|
+
return BS_FINISH_STARTED;
|
|
1121
|
+
}
|
|
1122
|
+
/***/
|
|
1123
|
+
return BS_FINISH_DONE;
|
|
1124
|
+
}
|
|
1125
|
+
if (s.sym_next) {
|
|
1126
|
+
/*** FLUSH_BLOCK(s, 0); ***/
|
|
1127
|
+
flush_block_only(s, false);
|
|
1128
|
+
if (s.strm.avail_out === 0) {
|
|
1129
|
+
return BS_NEED_MORE;
|
|
1130
|
+
}
|
|
1131
|
+
/***/
|
|
1132
|
+
}
|
|
1133
|
+
return BS_BLOCK_DONE;
|
|
1134
|
+
};
|
|
1135
|
+
|
|
1136
|
+
/* Values for max_lazy_match, good_match and max_chain_length, depending on
|
|
1137
|
+
* the desired pack level (0..9). The values given below have been tuned to
|
|
1138
|
+
* exclude worst case performance for pathological files. Better values may be
|
|
1139
|
+
* found for specific files.
|
|
1140
|
+
*/
|
|
1141
|
+
function Config(good_length, max_lazy, nice_length, max_chain, func) {
|
|
1142
|
+
|
|
1143
|
+
this.good_length = good_length;
|
|
1144
|
+
this.max_lazy = max_lazy;
|
|
1145
|
+
this.nice_length = nice_length;
|
|
1146
|
+
this.max_chain = max_chain;
|
|
1147
|
+
this.func = func;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
const configuration_table = [
|
|
1151
|
+
/* good lazy nice chain */
|
|
1152
|
+
new Config(0, 0, 0, 0, deflate_stored), /* 0 store only */
|
|
1153
|
+
new Config(4, 4, 8, 4, deflate_fast), /* 1 max speed, no lazy matches */
|
|
1154
|
+
new Config(4, 5, 16, 8, deflate_fast), /* 2 */
|
|
1155
|
+
new Config(4, 6, 32, 32, deflate_fast), /* 3 */
|
|
1156
|
+
|
|
1157
|
+
new Config(4, 4, 16, 16, deflate_slow), /* 4 lazy matches */
|
|
1158
|
+
new Config(8, 16, 32, 32, deflate_slow), /* 5 */
|
|
1159
|
+
new Config(8, 16, 128, 128, deflate_slow), /* 6 */
|
|
1160
|
+
new Config(8, 32, 128, 256, deflate_slow), /* 7 */
|
|
1161
|
+
new Config(32, 128, 258, 1024, deflate_slow), /* 8 */
|
|
1162
|
+
new Config(32, 258, 258, 4096, deflate_slow) /* 9 max compression */
|
|
1163
|
+
];
|
|
1164
|
+
|
|
1165
|
+
|
|
1166
|
+
/* ===========================================================================
|
|
1167
|
+
* Initialize the "longest match" routines for a new zlib stream
|
|
1168
|
+
*/
|
|
1169
|
+
const lm_init = (s) => {
|
|
1170
|
+
|
|
1171
|
+
s.window_size = 2 * s.w_size;
|
|
1172
|
+
|
|
1173
|
+
/*** CLEAR_HASH(s); ***/
|
|
1174
|
+
zero(s.head); // Fill with NIL (= 0);
|
|
1175
|
+
|
|
1176
|
+
/* Set the default configuration parameters:
|
|
1177
|
+
*/
|
|
1178
|
+
s.max_lazy_match = configuration_table[s.level].max_lazy;
|
|
1179
|
+
s.good_match = configuration_table[s.level].good_length;
|
|
1180
|
+
s.nice_match = configuration_table[s.level].nice_length;
|
|
1181
|
+
s.max_chain_length = configuration_table[s.level].max_chain;
|
|
1182
|
+
|
|
1183
|
+
s.strstart = 0;
|
|
1184
|
+
s.block_start = 0;
|
|
1185
|
+
s.lookahead = 0;
|
|
1186
|
+
s.insert = 0;
|
|
1187
|
+
s.match_length = s.prev_length = MIN_MATCH - 1;
|
|
1188
|
+
s.match_available = 0;
|
|
1189
|
+
s.ins_h = 0;
|
|
1190
|
+
};
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
function DeflateState() {
|
|
1194
|
+
this.strm = null; /* pointer back to this zlib stream */
|
|
1195
|
+
this.status = 0; /* as the name implies */
|
|
1196
|
+
this.pending_buf = null; /* output still pending */
|
|
1197
|
+
this.pending_buf_size = 0; /* size of pending_buf */
|
|
1198
|
+
this.pending_out = 0; /* next pending byte to output to the stream */
|
|
1199
|
+
this.pending = 0; /* nb of bytes in the pending buffer */
|
|
1200
|
+
this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */
|
|
1201
|
+
this.gzhead = null; /* gzip header information to write */
|
|
1202
|
+
this.gzindex = 0; /* where in extra, name, or comment */
|
|
1203
|
+
this.method = Z_DEFLATED; /* can only be DEFLATED */
|
|
1204
|
+
this.last_flush = -1; /* value of flush param for previous deflate call */
|
|
1205
|
+
|
|
1206
|
+
this.w_size = 0; /* LZ77 window size (32K by default) */
|
|
1207
|
+
this.w_bits = 0; /* log2(w_size) (8..16) */
|
|
1208
|
+
this.w_mask = 0; /* w_size - 1 */
|
|
1209
|
+
|
|
1210
|
+
this.window = null;
|
|
1211
|
+
/* Sliding window. Input bytes are read into the second half of the window,
|
|
1212
|
+
* and move to the first half later to keep a dictionary of at least wSize
|
|
1213
|
+
* bytes. With this organization, matches are limited to a distance of
|
|
1214
|
+
* wSize-MAX_MATCH bytes, but this ensures that IO is always
|
|
1215
|
+
* performed with a length multiple of the block size.
|
|
1216
|
+
*/
|
|
1217
|
+
|
|
1218
|
+
this.window_size = 0;
|
|
1219
|
+
/* Actual size of window: 2*wSize, except when the user input buffer
|
|
1220
|
+
* is directly used as sliding window.
|
|
1221
|
+
*/
|
|
1222
|
+
|
|
1223
|
+
this.prev = null;
|
|
1224
|
+
/* Link to older string with same hash index. To limit the size of this
|
|
1225
|
+
* array to 64K, this link is maintained only for the last 32K strings.
|
|
1226
|
+
* An index in this array is thus a window index modulo 32K.
|
|
1227
|
+
*/
|
|
1228
|
+
|
|
1229
|
+
this.head = null; /* Heads of the hash chains or NIL. */
|
|
1230
|
+
|
|
1231
|
+
this.ins_h = 0; /* hash index of string to be inserted */
|
|
1232
|
+
this.hash_size = 0; /* number of elements in hash table */
|
|
1233
|
+
this.hash_bits = 0; /* log2(hash_size) */
|
|
1234
|
+
this.hash_mask = 0; /* hash_size-1 */
|
|
1235
|
+
|
|
1236
|
+
this.hash_shift = 0;
|
|
1237
|
+
/* Number of bits by which ins_h must be shifted at each input
|
|
1238
|
+
* step. It must be such that after MIN_MATCH steps, the oldest
|
|
1239
|
+
* byte no longer takes part in the hash key, that is:
|
|
1240
|
+
* hash_shift * MIN_MATCH >= hash_bits
|
|
1241
|
+
*/
|
|
1242
|
+
|
|
1243
|
+
this.block_start = 0;
|
|
1244
|
+
/* Window position at the beginning of the current output block. Gets
|
|
1245
|
+
* negative when the window is moved backwards.
|
|
1246
|
+
*/
|
|
1247
|
+
|
|
1248
|
+
this.match_length = 0; /* length of best match */
|
|
1249
|
+
this.prev_match = 0; /* previous match */
|
|
1250
|
+
this.match_available = 0; /* set if previous match exists */
|
|
1251
|
+
this.strstart = 0; /* start of string to insert */
|
|
1252
|
+
this.match_start = 0; /* start of matching string */
|
|
1253
|
+
this.lookahead = 0; /* number of valid bytes ahead in window */
|
|
1254
|
+
|
|
1255
|
+
this.prev_length = 0;
|
|
1256
|
+
/* Length of the best match at previous step. Matches not greater than this
|
|
1257
|
+
* are discarded. This is used in the lazy match evaluation.
|
|
1258
|
+
*/
|
|
1259
|
+
|
|
1260
|
+
this.max_chain_length = 0;
|
|
1261
|
+
/* To speed up deflation, hash chains are never searched beyond this
|
|
1262
|
+
* length. A higher limit improves compression ratio but degrades the
|
|
1263
|
+
* speed.
|
|
1264
|
+
*/
|
|
1265
|
+
|
|
1266
|
+
this.max_lazy_match = 0;
|
|
1267
|
+
/* Attempt to find a better match only when the current match is strictly
|
|
1268
|
+
* smaller than this value. This mechanism is used only for compression
|
|
1269
|
+
* levels >= 4.
|
|
1270
|
+
*/
|
|
1271
|
+
// That's alias to max_lazy_match, don't use directly
|
|
1272
|
+
//this.max_insert_length = 0;
|
|
1273
|
+
/* Insert new strings in the hash table only if the match length is not
|
|
1274
|
+
* greater than this length. This saves time but degrades compression.
|
|
1275
|
+
* max_insert_length is used only for compression levels <= 3.
|
|
1276
|
+
*/
|
|
1277
|
+
|
|
1278
|
+
this.level = 0; /* compression level (1..9) */
|
|
1279
|
+
this.strategy = 0; /* favor or force Huffman coding*/
|
|
1280
|
+
|
|
1281
|
+
this.good_match = 0;
|
|
1282
|
+
/* Use a faster search when the previous match is longer than this */
|
|
1283
|
+
|
|
1284
|
+
this.nice_match = 0; /* Stop searching when current match exceeds this */
|
|
1285
|
+
|
|
1286
|
+
/* used by trees.c: */
|
|
1287
|
+
|
|
1288
|
+
/* Didn't use ct_data typedef below to suppress compiler warning */
|
|
1289
|
+
|
|
1290
|
+
// struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */
|
|
1291
|
+
// struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */
|
|
1292
|
+
// struct ct_data_s bl_tree[2*BL_CODES+1]; /* Huffman tree for bit lengths */
|
|
1293
|
+
|
|
1294
|
+
// Use flat array of DOUBLE size, with interleaved fata,
|
|
1295
|
+
// because JS does not support effective
|
|
1296
|
+
this.dyn_ltree = new Uint16Array(HEAP_SIZE * 2);
|
|
1297
|
+
this.dyn_dtree = new Uint16Array((2 * D_CODES + 1) * 2);
|
|
1298
|
+
this.bl_tree = new Uint16Array((2 * BL_CODES + 1) * 2);
|
|
1299
|
+
zero(this.dyn_ltree);
|
|
1300
|
+
zero(this.dyn_dtree);
|
|
1301
|
+
zero(this.bl_tree);
|
|
1302
|
+
|
|
1303
|
+
this.l_desc = null; /* desc. for literal tree */
|
|
1304
|
+
this.d_desc = null; /* desc. for distance tree */
|
|
1305
|
+
this.bl_desc = null; /* desc. for bit length tree */
|
|
1306
|
+
|
|
1307
|
+
//ush bl_count[MAX_BITS+1];
|
|
1308
|
+
this.bl_count = new Uint16Array(MAX_BITS + 1);
|
|
1309
|
+
/* number of codes at each bit length for an optimal tree */
|
|
1310
|
+
|
|
1311
|
+
//int heap[2*L_CODES+1]; /* heap used to build the Huffman trees */
|
|
1312
|
+
this.heap = new Uint16Array(2 * L_CODES + 1); /* heap used to build the Huffman trees */
|
|
1313
|
+
zero(this.heap);
|
|
1314
|
+
|
|
1315
|
+
this.heap_len = 0; /* number of elements in the heap */
|
|
1316
|
+
this.heap_max = 0; /* element of largest frequency */
|
|
1317
|
+
/* The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used.
|
|
1318
|
+
* The same heap array is used to build all trees.
|
|
1319
|
+
*/
|
|
1320
|
+
|
|
1321
|
+
this.depth = new Uint16Array(2 * L_CODES + 1); //uch depth[2*L_CODES+1];
|
|
1322
|
+
zero(this.depth);
|
|
1323
|
+
/* Depth of each subtree used as tie breaker for trees of equal frequency
|
|
1324
|
+
*/
|
|
1325
|
+
|
|
1326
|
+
this.sym_buf = 0; /* buffer for distances and literals/lengths */
|
|
1327
|
+
|
|
1328
|
+
this.lit_bufsize = 0;
|
|
1329
|
+
/* Size of match buffer for literals/lengths. There are 4 reasons for
|
|
1330
|
+
* limiting lit_bufsize to 64K:
|
|
1331
|
+
* - frequencies can be kept in 16 bit counters
|
|
1332
|
+
* - if compression is not successful for the first block, all input
|
|
1333
|
+
* data is still in the window so we can still emit a stored block even
|
|
1334
|
+
* when input comes from standard input. (This can also be done for
|
|
1335
|
+
* all blocks if lit_bufsize is not greater than 32K.)
|
|
1336
|
+
* - if compression is not successful for a file smaller than 64K, we can
|
|
1337
|
+
* even emit a stored file instead of a stored block (saving 5 bytes).
|
|
1338
|
+
* This is applicable only for zip (not gzip or zlib).
|
|
1339
|
+
* - creating new Huffman trees less frequently may not provide fast
|
|
1340
|
+
* adaptation to changes in the input data statistics. (Take for
|
|
1341
|
+
* example a binary file with poorly compressible code followed by
|
|
1342
|
+
* a highly compressible string table.) Smaller buffer sizes give
|
|
1343
|
+
* fast adaptation but have of course the overhead of transmitting
|
|
1344
|
+
* trees more frequently.
|
|
1345
|
+
* - I can't count above 4
|
|
1346
|
+
*/
|
|
1347
|
+
|
|
1348
|
+
this.sym_next = 0; /* running index in sym_buf */
|
|
1349
|
+
this.sym_end = 0; /* symbol table full when sym_next reaches this */
|
|
1350
|
+
|
|
1351
|
+
this.opt_len = 0; /* bit length of current block with optimal trees */
|
|
1352
|
+
this.static_len = 0; /* bit length of current block with static trees */
|
|
1353
|
+
this.matches = 0; /* number of string matches in current block */
|
|
1354
|
+
this.insert = 0; /* bytes at end of window left to insert */
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
this.bi_buf = 0;
|
|
1358
|
+
/* Output buffer. bits are inserted starting at the bottom (least
|
|
1359
|
+
* significant bits).
|
|
1360
|
+
*/
|
|
1361
|
+
this.bi_valid = 0;
|
|
1362
|
+
/* Number of valid bits in bi_buf. All bits above the last valid bit
|
|
1363
|
+
* are always zero.
|
|
1364
|
+
*/
|
|
1365
|
+
|
|
1366
|
+
// Used for window memory init. We safely ignore it for JS. That makes
|
|
1367
|
+
// sense only for pointers and memory check tools.
|
|
1368
|
+
//this.high_water = 0;
|
|
1369
|
+
/* High water mark offset in window for initialized bytes -- bytes above
|
|
1370
|
+
* this are set to zero in order to avoid memory check warnings when
|
|
1371
|
+
* longest match routines access bytes past the input. This is then
|
|
1372
|
+
* updated to the new high water mark.
|
|
1373
|
+
*/
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
/* =========================================================================
|
|
1378
|
+
* Check for a valid deflate stream state. Return 0 if ok, 1 if not.
|
|
1379
|
+
*/
|
|
1380
|
+
const deflateStateCheck = (strm) => {
|
|
1381
|
+
|
|
1382
|
+
if (!strm) {
|
|
1383
|
+
return 1;
|
|
1384
|
+
}
|
|
1385
|
+
const s = strm.state;
|
|
1386
|
+
if (!s || s.strm !== strm || (s.status !== INIT_STATE &&
|
|
1387
|
+
//#ifdef GZIP
|
|
1388
|
+
s.status !== GZIP_STATE &&
|
|
1389
|
+
//#endif
|
|
1390
|
+
s.status !== EXTRA_STATE &&
|
|
1391
|
+
s.status !== NAME_STATE &&
|
|
1392
|
+
s.status !== COMMENT_STATE &&
|
|
1393
|
+
s.status !== HCRC_STATE &&
|
|
1394
|
+
s.status !== BUSY_STATE &&
|
|
1395
|
+
s.status !== FINISH_STATE)) {
|
|
1396
|
+
return 1;
|
|
1397
|
+
}
|
|
1398
|
+
return 0;
|
|
1399
|
+
};
|
|
1400
|
+
|
|
1401
|
+
|
|
1402
|
+
const deflateResetKeep = (strm) => {
|
|
1403
|
+
|
|
1404
|
+
if (deflateStateCheck(strm)) {
|
|
1405
|
+
return err(strm, Z_STREAM_ERROR);
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
strm.total_in = strm.total_out = 0;
|
|
1409
|
+
strm.data_type = Z_UNKNOWN;
|
|
1410
|
+
|
|
1411
|
+
const s = strm.state;
|
|
1412
|
+
s.pending = 0;
|
|
1413
|
+
s.pending_out = 0;
|
|
1414
|
+
|
|
1415
|
+
if (s.wrap < 0) {
|
|
1416
|
+
s.wrap = -s.wrap;
|
|
1417
|
+
/* was made negative by deflate(..., Z_FINISH); */
|
|
1418
|
+
}
|
|
1419
|
+
s.status =
|
|
1420
|
+
//#ifdef GZIP
|
|
1421
|
+
s.wrap === 2 ? GZIP_STATE :
|
|
1422
|
+
//#endif
|
|
1423
|
+
s.wrap ? INIT_STATE : BUSY_STATE;
|
|
1424
|
+
strm.adler = (s.wrap === 2) ?
|
|
1425
|
+
0 // crc32(0, Z_NULL, 0)
|
|
1426
|
+
:
|
|
1427
|
+
1; // adler32(0, Z_NULL, 0)
|
|
1428
|
+
s.last_flush = -2;
|
|
1429
|
+
_tr_init(s);
|
|
1430
|
+
return Z_OK;
|
|
1431
|
+
};
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
const deflateReset = (strm) => {
|
|
1435
|
+
|
|
1436
|
+
const ret = deflateResetKeep(strm);
|
|
1437
|
+
if (ret === Z_OK) {
|
|
1438
|
+
lm_init(strm.state);
|
|
1439
|
+
}
|
|
1440
|
+
return ret;
|
|
1441
|
+
};
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
const deflateSetHeader = (strm, head) => {
|
|
1445
|
+
|
|
1446
|
+
if (deflateStateCheck(strm) || strm.state.wrap !== 2) {
|
|
1447
|
+
return Z_STREAM_ERROR;
|
|
1448
|
+
}
|
|
1449
|
+
strm.state.gzhead = head;
|
|
1450
|
+
return Z_OK;
|
|
1451
|
+
};
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
const deflateInit2 = (strm, level, method, windowBits, memLevel, strategy) => {
|
|
1455
|
+
|
|
1456
|
+
if (!strm) { // === Z_NULL
|
|
1457
|
+
return Z_STREAM_ERROR;
|
|
1458
|
+
}
|
|
1459
|
+
let wrap = 1;
|
|
1460
|
+
|
|
1461
|
+
if (level === Z_DEFAULT_COMPRESSION) {
|
|
1462
|
+
level = 6;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
if (windowBits < 0) { /* suppress zlib wrapper */
|
|
1466
|
+
wrap = 0;
|
|
1467
|
+
windowBits = -windowBits;
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
else if (windowBits > 15) {
|
|
1471
|
+
wrap = 2; /* write gzip wrapper instead */
|
|
1472
|
+
windowBits -= 16;
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
|
|
1476
|
+
if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method !== Z_DEFLATED ||
|
|
1477
|
+
windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||
|
|
1478
|
+
strategy < 0 || strategy > Z_FIXED || (windowBits === 8 && wrap !== 1)) {
|
|
1479
|
+
return err(strm, Z_STREAM_ERROR);
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
|
|
1483
|
+
if (windowBits === 8) {
|
|
1484
|
+
windowBits = 9;
|
|
1485
|
+
}
|
|
1486
|
+
/* until 256-byte window bug fixed */
|
|
1487
|
+
|
|
1488
|
+
const s = new DeflateState();
|
|
1489
|
+
|
|
1490
|
+
strm.state = s;
|
|
1491
|
+
s.strm = strm;
|
|
1492
|
+
s.status = INIT_STATE; /* to pass state test in deflateReset() */
|
|
1493
|
+
|
|
1494
|
+
s.wrap = wrap;
|
|
1495
|
+
s.gzhead = null;
|
|
1496
|
+
s.w_bits = windowBits;
|
|
1497
|
+
s.w_size = 1 << s.w_bits;
|
|
1498
|
+
s.w_mask = s.w_size - 1;
|
|
1499
|
+
|
|
1500
|
+
s.hash_bits = memLevel + 7;
|
|
1501
|
+
s.hash_size = 1 << s.hash_bits;
|
|
1502
|
+
s.hash_mask = s.hash_size - 1;
|
|
1503
|
+
s.hash_shift = ~~((s.hash_bits + MIN_MATCH - 1) / MIN_MATCH);
|
|
1504
|
+
|
|
1505
|
+
s.window = new Uint8Array(s.w_size * 2);
|
|
1506
|
+
s.head = new Uint16Array(s.hash_size);
|
|
1507
|
+
s.prev = new Uint16Array(s.w_size);
|
|
1508
|
+
|
|
1509
|
+
// Don't need mem init magic for JS.
|
|
1510
|
+
//s.high_water = 0; /* nothing written to s->window yet */
|
|
1511
|
+
|
|
1512
|
+
s.lit_bufsize = 1 << (memLevel + 6); /* 16K elements by default */
|
|
1513
|
+
|
|
1514
|
+
/* We overlay pending_buf and sym_buf. This works since the average size
|
|
1515
|
+
* for length/distance pairs over any compressed block is assured to be 31
|
|
1516
|
+
* bits or less.
|
|
1517
|
+
*
|
|
1518
|
+
* Analysis: The longest fixed codes are a length code of 8 bits plus 5
|
|
1519
|
+
* extra bits, for lengths 131 to 257. The longest fixed distance codes are
|
|
1520
|
+
* 5 bits plus 13 extra bits, for distances 16385 to 32768. The longest
|
|
1521
|
+
* possible fixed-codes length/distance pair is then 31 bits total.
|
|
1522
|
+
*
|
|
1523
|
+
* sym_buf starts one-fourth of the way into pending_buf. So there are
|
|
1524
|
+
* three bytes in sym_buf for every four bytes in pending_buf. Each symbol
|
|
1525
|
+
* in sym_buf is three bytes -- two for the distance and one for the
|
|
1526
|
+
* literal/length. As each symbol is consumed, the pointer to the next
|
|
1527
|
+
* sym_buf value to read moves forward three bytes. From that symbol, up to
|
|
1528
|
+
* 31 bits are written to pending_buf. The closest the written pending_buf
|
|
1529
|
+
* bits gets to the next sym_buf symbol to read is just before the last
|
|
1530
|
+
* code is written. At that time, 31*(n-2) bits have been written, just
|
|
1531
|
+
* after 24*(n-2) bits have been consumed from sym_buf. sym_buf starts at
|
|
1532
|
+
* 8*n bits into pending_buf. (Note that the symbol buffer fills when n-1
|
|
1533
|
+
* symbols are written.) The closest the writing gets to what is unread is
|
|
1534
|
+
* then n+14 bits. Here n is lit_bufsize, which is 16384 by default, and
|
|
1535
|
+
* can range from 128 to 32768.
|
|
1536
|
+
*
|
|
1537
|
+
* Therefore, at a minimum, there are 142 bits of space between what is
|
|
1538
|
+
* written and what is read in the overlain buffers, so the symbols cannot
|
|
1539
|
+
* be overwritten by the compressed data. That space is actually 139 bits,
|
|
1540
|
+
* due to the three-bit fixed-code block header.
|
|
1541
|
+
*
|
|
1542
|
+
* That covers the case where either Z_FIXED is specified, forcing fixed
|
|
1543
|
+
* codes, or when the use of fixed codes is chosen, because that choice
|
|
1544
|
+
* results in a smaller compressed block than dynamic codes. That latter
|
|
1545
|
+
* condition then assures that the above analysis also covers all dynamic
|
|
1546
|
+
* blocks. A dynamic-code block will only be chosen to be emitted if it has
|
|
1547
|
+
* fewer bits than a fixed-code block would for the same set of symbols.
|
|
1548
|
+
* Therefore its average symbol length is assured to be less than 31. So
|
|
1549
|
+
* the compressed data for a dynamic block also cannot overwrite the
|
|
1550
|
+
* symbols from which it is being constructed.
|
|
1551
|
+
*/
|
|
1552
|
+
|
|
1553
|
+
s.pending_buf_size = s.lit_bufsize * 4;
|
|
1554
|
+
s.pending_buf = new Uint8Array(s.pending_buf_size);
|
|
1555
|
+
|
|
1556
|
+
// It is offset from `s.pending_buf` (size is `s.lit_bufsize * 2`)
|
|
1557
|
+
//s->sym_buf = s->pending_buf + s->lit_bufsize;
|
|
1558
|
+
s.sym_buf = s.lit_bufsize;
|
|
1559
|
+
|
|
1560
|
+
//s->sym_end = (s->lit_bufsize - 1) * 3;
|
|
1561
|
+
s.sym_end = (s.lit_bufsize - 1) * 3;
|
|
1562
|
+
/* We avoid equality with lit_bufsize*3 because of wraparound at 64K
|
|
1563
|
+
* on 16 bit machines and because stored blocks are restricted to
|
|
1564
|
+
* 64K-1 bytes.
|
|
1565
|
+
*/
|
|
1566
|
+
|
|
1567
|
+
s.level = level;
|
|
1568
|
+
s.strategy = strategy;
|
|
1569
|
+
s.method = method;
|
|
1570
|
+
|
|
1571
|
+
return deflateReset(strm);
|
|
1572
|
+
};
|
|
1573
|
+
|
|
1574
|
+
const deflateInit = (strm, level) => {
|
|
1575
|
+
|
|
1576
|
+
return deflateInit2(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY);
|
|
1577
|
+
};
|
|
1578
|
+
|
|
1579
|
+
|
|
1580
|
+
/* ========================================================================= */
|
|
1581
|
+
const deflate = (strm, flush) => {
|
|
1582
|
+
|
|
1583
|
+
if (deflateStateCheck(strm) || flush > Z_BLOCK || flush < 0) {
|
|
1584
|
+
return strm ? err(strm, Z_STREAM_ERROR) : Z_STREAM_ERROR;
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
const s = strm.state;
|
|
1588
|
+
|
|
1589
|
+
if (!strm.output ||
|
|
1590
|
+
(strm.avail_in !== 0 && !strm.input) ||
|
|
1591
|
+
(s.status === FINISH_STATE && flush !== Z_FINISH)) {
|
|
1592
|
+
return err(strm, (strm.avail_out === 0) ? Z_BUF_ERROR : Z_STREAM_ERROR);
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
const old_flush = s.last_flush;
|
|
1596
|
+
s.last_flush = flush;
|
|
1597
|
+
|
|
1598
|
+
/* Flush as much pending output as possible */
|
|
1599
|
+
if (s.pending !== 0) {
|
|
1600
|
+
flush_pending(strm);
|
|
1601
|
+
if (strm.avail_out === 0) {
|
|
1602
|
+
/* Since avail_out is 0, deflate will be called again with
|
|
1603
|
+
* more output space, but possibly with both pending and
|
|
1604
|
+
* avail_in equal to zero. There won't be anything to do,
|
|
1605
|
+
* but this is not an error situation so make sure we
|
|
1606
|
+
* return OK instead of BUF_ERROR at next call of deflate:
|
|
1607
|
+
*/
|
|
1608
|
+
s.last_flush = -1;
|
|
1609
|
+
return Z_OK;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
/* Make sure there is something to do and avoid duplicate consecutive
|
|
1613
|
+
* flushes. For repeated and useless calls with Z_FINISH, we keep
|
|
1614
|
+
* returning Z_STREAM_END instead of Z_BUF_ERROR.
|
|
1615
|
+
*/
|
|
1616
|
+
} else if (strm.avail_in === 0 && rank(flush) <= rank(old_flush) &&
|
|
1617
|
+
flush !== Z_FINISH) {
|
|
1618
|
+
return err(strm, Z_BUF_ERROR);
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
/* User must not provide more input after the first FINISH: */
|
|
1622
|
+
if (s.status === FINISH_STATE && strm.avail_in !== 0) {
|
|
1623
|
+
return err(strm, Z_BUF_ERROR);
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
/* Write the header */
|
|
1627
|
+
if (s.status === INIT_STATE && s.wrap === 0) {
|
|
1628
|
+
s.status = BUSY_STATE;
|
|
1629
|
+
}
|
|
1630
|
+
if (s.status === INIT_STATE) {
|
|
1631
|
+
/* zlib header */
|
|
1632
|
+
let header = (Z_DEFLATED + ((s.w_bits - 8) << 4)) << 8;
|
|
1633
|
+
let level_flags = -1;
|
|
1634
|
+
|
|
1635
|
+
if (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2) {
|
|
1636
|
+
level_flags = 0;
|
|
1637
|
+
} else if (s.level < 6) {
|
|
1638
|
+
level_flags = 1;
|
|
1639
|
+
} else if (s.level === 6) {
|
|
1640
|
+
level_flags = 2;
|
|
1641
|
+
} else {
|
|
1642
|
+
level_flags = 3;
|
|
1643
|
+
}
|
|
1644
|
+
header |= (level_flags << 6);
|
|
1645
|
+
if (s.strstart !== 0) { header |= PRESET_DICT; }
|
|
1646
|
+
header += 31 - (header % 31);
|
|
1647
|
+
|
|
1648
|
+
putShortMSB(s, header);
|
|
1649
|
+
|
|
1650
|
+
/* Save the adler32 of the preset dictionary: */
|
|
1651
|
+
if (s.strstart !== 0) {
|
|
1652
|
+
putShortMSB(s, strm.adler >>> 16);
|
|
1653
|
+
putShortMSB(s, strm.adler & 0xffff);
|
|
1654
|
+
}
|
|
1655
|
+
strm.adler = 1; // adler32(0L, Z_NULL, 0);
|
|
1656
|
+
s.status = BUSY_STATE;
|
|
1657
|
+
|
|
1658
|
+
/* Compression must start with an empty pending buffer */
|
|
1659
|
+
flush_pending(strm);
|
|
1660
|
+
if (s.pending !== 0) {
|
|
1661
|
+
s.last_flush = -1;
|
|
1662
|
+
return Z_OK;
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
//#ifdef GZIP
|
|
1666
|
+
if (s.status === GZIP_STATE) {
|
|
1667
|
+
/* gzip header */
|
|
1668
|
+
strm.adler = 0; //crc32(0L, Z_NULL, 0);
|
|
1669
|
+
put_byte(s, 31);
|
|
1670
|
+
put_byte(s, 139);
|
|
1671
|
+
put_byte(s, 8);
|
|
1672
|
+
if (!s.gzhead) { // s->gzhead == Z_NULL
|
|
1673
|
+
put_byte(s, 0);
|
|
1674
|
+
put_byte(s, 0);
|
|
1675
|
+
put_byte(s, 0);
|
|
1676
|
+
put_byte(s, 0);
|
|
1677
|
+
put_byte(s, 0);
|
|
1678
|
+
put_byte(s, s.level === 9 ? 2 :
|
|
1679
|
+
(s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?
|
|
1680
|
+
4 : 0));
|
|
1681
|
+
put_byte(s, OS_CODE);
|
|
1682
|
+
s.status = BUSY_STATE;
|
|
1683
|
+
|
|
1684
|
+
/* Compression must start with an empty pending buffer */
|
|
1685
|
+
flush_pending(strm);
|
|
1686
|
+
if (s.pending !== 0) {
|
|
1687
|
+
s.last_flush = -1;
|
|
1688
|
+
return Z_OK;
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
else {
|
|
1692
|
+
put_byte(s, (s.gzhead.text ? 1 : 0) +
|
|
1693
|
+
(s.gzhead.hcrc ? 2 : 0) +
|
|
1694
|
+
(!s.gzhead.extra ? 0 : 4) +
|
|
1695
|
+
(!s.gzhead.name ? 0 : 8) +
|
|
1696
|
+
(!s.gzhead.comment ? 0 : 16)
|
|
1697
|
+
);
|
|
1698
|
+
put_byte(s, s.gzhead.time & 0xff);
|
|
1699
|
+
put_byte(s, (s.gzhead.time >> 8) & 0xff);
|
|
1700
|
+
put_byte(s, (s.gzhead.time >> 16) & 0xff);
|
|
1701
|
+
put_byte(s, (s.gzhead.time >> 24) & 0xff);
|
|
1702
|
+
put_byte(s, s.level === 9 ? 2 :
|
|
1703
|
+
(s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?
|
|
1704
|
+
4 : 0));
|
|
1705
|
+
put_byte(s, s.gzhead.os & 0xff);
|
|
1706
|
+
if (s.gzhead.extra && s.gzhead.extra.length) {
|
|
1707
|
+
put_byte(s, s.gzhead.extra.length & 0xff);
|
|
1708
|
+
put_byte(s, (s.gzhead.extra.length >> 8) & 0xff);
|
|
1709
|
+
}
|
|
1710
|
+
if (s.gzhead.hcrc) {
|
|
1711
|
+
strm.adler = crc32(strm.adler, s.pending_buf, s.pending, 0);
|
|
1712
|
+
}
|
|
1713
|
+
s.gzindex = 0;
|
|
1714
|
+
s.status = EXTRA_STATE;
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
if (s.status === EXTRA_STATE) {
|
|
1718
|
+
if (s.gzhead.extra/* != Z_NULL*/) {
|
|
1719
|
+
let beg = s.pending; /* start of bytes to update crc */
|
|
1720
|
+
let left = (s.gzhead.extra.length & 0xffff) - s.gzindex;
|
|
1721
|
+
while (s.pending + left > s.pending_buf_size) {
|
|
1722
|
+
let copy = s.pending_buf_size - s.pending;
|
|
1723
|
+
// zmemcpy(s.pending_buf + s.pending,
|
|
1724
|
+
// s.gzhead.extra + s.gzindex, copy);
|
|
1725
|
+
s.pending_buf.set(s.gzhead.extra.subarray(s.gzindex, s.gzindex + copy), s.pending);
|
|
1726
|
+
s.pending = s.pending_buf_size;
|
|
1727
|
+
//--- HCRC_UPDATE(beg) ---//
|
|
1728
|
+
if (s.gzhead.hcrc && s.pending > beg) {
|
|
1729
|
+
strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
|
1730
|
+
}
|
|
1731
|
+
//---//
|
|
1732
|
+
s.gzindex += copy;
|
|
1733
|
+
flush_pending(strm);
|
|
1734
|
+
if (s.pending !== 0) {
|
|
1735
|
+
s.last_flush = -1;
|
|
1736
|
+
return Z_OK;
|
|
1737
|
+
}
|
|
1738
|
+
beg = 0;
|
|
1739
|
+
left -= copy;
|
|
1740
|
+
}
|
|
1741
|
+
// JS specific: s.gzhead.extra may be TypedArray or Array for backward compatibility
|
|
1742
|
+
// TypedArray.slice and TypedArray.from don't exist in IE10-IE11
|
|
1743
|
+
let gzhead_extra = new Uint8Array(s.gzhead.extra);
|
|
1744
|
+
// zmemcpy(s->pending_buf + s->pending,
|
|
1745
|
+
// s->gzhead->extra + s->gzindex, left);
|
|
1746
|
+
s.pending_buf.set(gzhead_extra.subarray(s.gzindex, s.gzindex + left), s.pending);
|
|
1747
|
+
s.pending += left;
|
|
1748
|
+
//--- HCRC_UPDATE(beg) ---//
|
|
1749
|
+
if (s.gzhead.hcrc && s.pending > beg) {
|
|
1750
|
+
strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
|
1751
|
+
}
|
|
1752
|
+
//---//
|
|
1753
|
+
s.gzindex = 0;
|
|
1754
|
+
}
|
|
1755
|
+
s.status = NAME_STATE;
|
|
1756
|
+
}
|
|
1757
|
+
if (s.status === NAME_STATE) {
|
|
1758
|
+
if (s.gzhead.name/* != Z_NULL*/) {
|
|
1759
|
+
let beg = s.pending; /* start of bytes to update crc */
|
|
1760
|
+
let val;
|
|
1761
|
+
do {
|
|
1762
|
+
if (s.pending === s.pending_buf_size) {
|
|
1763
|
+
//--- HCRC_UPDATE(beg) ---//
|
|
1764
|
+
if (s.gzhead.hcrc && s.pending > beg) {
|
|
1765
|
+
strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
|
1766
|
+
}
|
|
1767
|
+
//---//
|
|
1768
|
+
flush_pending(strm);
|
|
1769
|
+
if (s.pending !== 0) {
|
|
1770
|
+
s.last_flush = -1;
|
|
1771
|
+
return Z_OK;
|
|
1772
|
+
}
|
|
1773
|
+
beg = 0;
|
|
1774
|
+
}
|
|
1775
|
+
// JS specific: little magic to add zero terminator to end of string
|
|
1776
|
+
if (s.gzindex < s.gzhead.name.length) {
|
|
1777
|
+
val = s.gzhead.name.charCodeAt(s.gzindex++) & 0xff;
|
|
1778
|
+
} else {
|
|
1779
|
+
val = 0;
|
|
1780
|
+
}
|
|
1781
|
+
put_byte(s, val);
|
|
1782
|
+
} while (val !== 0);
|
|
1783
|
+
//--- HCRC_UPDATE(beg) ---//
|
|
1784
|
+
if (s.gzhead.hcrc && s.pending > beg) {
|
|
1785
|
+
strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
|
1786
|
+
}
|
|
1787
|
+
//---//
|
|
1788
|
+
s.gzindex = 0;
|
|
1789
|
+
}
|
|
1790
|
+
s.status = COMMENT_STATE;
|
|
1791
|
+
}
|
|
1792
|
+
if (s.status === COMMENT_STATE) {
|
|
1793
|
+
if (s.gzhead.comment/* != Z_NULL*/) {
|
|
1794
|
+
let beg = s.pending; /* start of bytes to update crc */
|
|
1795
|
+
let val;
|
|
1796
|
+
do {
|
|
1797
|
+
if (s.pending === s.pending_buf_size) {
|
|
1798
|
+
//--- HCRC_UPDATE(beg) ---//
|
|
1799
|
+
if (s.gzhead.hcrc && s.pending > beg) {
|
|
1800
|
+
strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
|
1801
|
+
}
|
|
1802
|
+
//---//
|
|
1803
|
+
flush_pending(strm);
|
|
1804
|
+
if (s.pending !== 0) {
|
|
1805
|
+
s.last_flush = -1;
|
|
1806
|
+
return Z_OK;
|
|
1807
|
+
}
|
|
1808
|
+
beg = 0;
|
|
1809
|
+
}
|
|
1810
|
+
// JS specific: little magic to add zero terminator to end of string
|
|
1811
|
+
if (s.gzindex < s.gzhead.comment.length) {
|
|
1812
|
+
val = s.gzhead.comment.charCodeAt(s.gzindex++) & 0xff;
|
|
1813
|
+
} else {
|
|
1814
|
+
val = 0;
|
|
1815
|
+
}
|
|
1816
|
+
put_byte(s, val);
|
|
1817
|
+
} while (val !== 0);
|
|
1818
|
+
//--- HCRC_UPDATE(beg) ---//
|
|
1819
|
+
if (s.gzhead.hcrc && s.pending > beg) {
|
|
1820
|
+
strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
|
1821
|
+
}
|
|
1822
|
+
//---//
|
|
1823
|
+
}
|
|
1824
|
+
s.status = HCRC_STATE;
|
|
1825
|
+
}
|
|
1826
|
+
if (s.status === HCRC_STATE) {
|
|
1827
|
+
if (s.gzhead.hcrc) {
|
|
1828
|
+
if (s.pending + 2 > s.pending_buf_size) {
|
|
1829
|
+
flush_pending(strm);
|
|
1830
|
+
if (s.pending !== 0) {
|
|
1831
|
+
s.last_flush = -1;
|
|
1832
|
+
return Z_OK;
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
put_byte(s, strm.adler & 0xff);
|
|
1836
|
+
put_byte(s, (strm.adler >> 8) & 0xff);
|
|
1837
|
+
strm.adler = 0; //crc32(0L, Z_NULL, 0);
|
|
1838
|
+
}
|
|
1839
|
+
s.status = BUSY_STATE;
|
|
1840
|
+
|
|
1841
|
+
/* Compression must start with an empty pending buffer */
|
|
1842
|
+
flush_pending(strm);
|
|
1843
|
+
if (s.pending !== 0) {
|
|
1844
|
+
s.last_flush = -1;
|
|
1845
|
+
return Z_OK;
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
//#endif
|
|
1849
|
+
|
|
1850
|
+
/* Start a new block or continue the current one.
|
|
1851
|
+
*/
|
|
1852
|
+
if (strm.avail_in !== 0 || s.lookahead !== 0 ||
|
|
1853
|
+
(flush !== Z_NO_FLUSH && s.status !== FINISH_STATE)) {
|
|
1854
|
+
let bstate = s.level === 0 ? deflate_stored(s, flush) :
|
|
1855
|
+
s.strategy === Z_HUFFMAN_ONLY ? deflate_huff(s, flush) :
|
|
1856
|
+
s.strategy === Z_RLE ? deflate_rle(s, flush) :
|
|
1857
|
+
configuration_table[s.level].func(s, flush);
|
|
1858
|
+
|
|
1859
|
+
if (bstate === BS_FINISH_STARTED || bstate === BS_FINISH_DONE) {
|
|
1860
|
+
s.status = FINISH_STATE;
|
|
1861
|
+
}
|
|
1862
|
+
if (bstate === BS_NEED_MORE || bstate === BS_FINISH_STARTED) {
|
|
1863
|
+
if (strm.avail_out === 0) {
|
|
1864
|
+
s.last_flush = -1;
|
|
1865
|
+
/* avoid BUF_ERROR next call, see above */
|
|
1866
|
+
}
|
|
1867
|
+
return Z_OK;
|
|
1868
|
+
/* If flush != Z_NO_FLUSH && avail_out == 0, the next call
|
|
1869
|
+
* of deflate should use the same flush parameter to make sure
|
|
1870
|
+
* that the flush is complete. So we don't have to output an
|
|
1871
|
+
* empty block here, this will be done at next call. This also
|
|
1872
|
+
* ensures that for a very small output buffer, we emit at most
|
|
1873
|
+
* one empty block.
|
|
1874
|
+
*/
|
|
1875
|
+
}
|
|
1876
|
+
if (bstate === BS_BLOCK_DONE) {
|
|
1877
|
+
if (flush === Z_PARTIAL_FLUSH) {
|
|
1878
|
+
_tr_align(s);
|
|
1879
|
+
}
|
|
1880
|
+
else if (flush !== Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */
|
|
1881
|
+
|
|
1882
|
+
_tr_stored_block(s, 0, 0, false);
|
|
1883
|
+
/* For a full flush, this empty block will be recognized
|
|
1884
|
+
* as a special marker by inflate_sync().
|
|
1885
|
+
*/
|
|
1886
|
+
if (flush === Z_FULL_FLUSH) {
|
|
1887
|
+
/*** CLEAR_HASH(s); ***/ /* forget history */
|
|
1888
|
+
zero(s.head); // Fill with NIL (= 0);
|
|
1889
|
+
|
|
1890
|
+
if (s.lookahead === 0) {
|
|
1891
|
+
s.strstart = 0;
|
|
1892
|
+
s.block_start = 0;
|
|
1893
|
+
s.insert = 0;
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
flush_pending(strm);
|
|
1898
|
+
if (strm.avail_out === 0) {
|
|
1899
|
+
s.last_flush = -1; /* avoid BUF_ERROR at next call, see above */
|
|
1900
|
+
return Z_OK;
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
if (flush !== Z_FINISH) { return Z_OK; }
|
|
1906
|
+
if (s.wrap <= 0) { return Z_STREAM_END; }
|
|
1907
|
+
|
|
1908
|
+
/* Write the trailer */
|
|
1909
|
+
if (s.wrap === 2) {
|
|
1910
|
+
put_byte(s, strm.adler & 0xff);
|
|
1911
|
+
put_byte(s, (strm.adler >> 8) & 0xff);
|
|
1912
|
+
put_byte(s, (strm.adler >> 16) & 0xff);
|
|
1913
|
+
put_byte(s, (strm.adler >> 24) & 0xff);
|
|
1914
|
+
put_byte(s, strm.total_in & 0xff);
|
|
1915
|
+
put_byte(s, (strm.total_in >> 8) & 0xff);
|
|
1916
|
+
put_byte(s, (strm.total_in >> 16) & 0xff);
|
|
1917
|
+
put_byte(s, (strm.total_in >> 24) & 0xff);
|
|
1918
|
+
}
|
|
1919
|
+
else
|
|
1920
|
+
{
|
|
1921
|
+
putShortMSB(s, strm.adler >>> 16);
|
|
1922
|
+
putShortMSB(s, strm.adler & 0xffff);
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
flush_pending(strm);
|
|
1926
|
+
/* If avail_out is zero, the application will call deflate again
|
|
1927
|
+
* to flush the rest.
|
|
1928
|
+
*/
|
|
1929
|
+
if (s.wrap > 0) { s.wrap = -s.wrap; }
|
|
1930
|
+
/* write the trailer only once! */
|
|
1931
|
+
return s.pending !== 0 ? Z_OK : Z_STREAM_END;
|
|
1932
|
+
};
|
|
1933
|
+
|
|
1934
|
+
|
|
1935
|
+
const deflateEnd = (strm) => {
|
|
1936
|
+
|
|
1937
|
+
if (deflateStateCheck(strm)) {
|
|
1938
|
+
return Z_STREAM_ERROR;
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
const status = strm.state.status;
|
|
1942
|
+
|
|
1943
|
+
strm.state = null;
|
|
1944
|
+
|
|
1945
|
+
return status === BUSY_STATE ? err(strm, Z_DATA_ERROR) : Z_OK;
|
|
1946
|
+
};
|
|
1947
|
+
|
|
1948
|
+
|
|
1949
|
+
/* =========================================================================
|
|
1950
|
+
* Initializes the compression dictionary from the given byte
|
|
1951
|
+
* sequence without producing any compressed output.
|
|
1952
|
+
*/
|
|
1953
|
+
const deflateSetDictionary = (strm, dictionary) => {
|
|
1954
|
+
|
|
1955
|
+
let dictLength = dictionary.length;
|
|
1956
|
+
|
|
1957
|
+
if (deflateStateCheck(strm)) {
|
|
1958
|
+
return Z_STREAM_ERROR;
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
const s = strm.state;
|
|
1962
|
+
const wrap = s.wrap;
|
|
1963
|
+
|
|
1964
|
+
if (wrap === 2 || (wrap === 1 && s.status !== INIT_STATE) || s.lookahead) {
|
|
1965
|
+
return Z_STREAM_ERROR;
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
/* when using zlib wrappers, compute Adler-32 for provided dictionary */
|
|
1969
|
+
if (wrap === 1) {
|
|
1970
|
+
/* adler32(strm->adler, dictionary, dictLength); */
|
|
1971
|
+
strm.adler = adler32(strm.adler, dictionary, dictLength, 0);
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1974
|
+
s.wrap = 0; /* avoid computing Adler-32 in read_buf */
|
|
1975
|
+
|
|
1976
|
+
/* if dictionary would fill window, just replace the history */
|
|
1977
|
+
if (dictLength >= s.w_size) {
|
|
1978
|
+
if (wrap === 0) { /* already empty otherwise */
|
|
1979
|
+
/*** CLEAR_HASH(s); ***/
|
|
1980
|
+
zero(s.head); // Fill with NIL (= 0);
|
|
1981
|
+
s.strstart = 0;
|
|
1982
|
+
s.block_start = 0;
|
|
1983
|
+
s.insert = 0;
|
|
1984
|
+
}
|
|
1985
|
+
/* use the tail */
|
|
1986
|
+
// dictionary = dictionary.slice(dictLength - s.w_size);
|
|
1987
|
+
let tmpDict = new Uint8Array(s.w_size);
|
|
1988
|
+
tmpDict.set(dictionary.subarray(dictLength - s.w_size, dictLength), 0);
|
|
1989
|
+
dictionary = tmpDict;
|
|
1990
|
+
dictLength = s.w_size;
|
|
1991
|
+
}
|
|
1992
|
+
/* insert dictionary into window and hash */
|
|
1993
|
+
const avail = strm.avail_in;
|
|
1994
|
+
const next = strm.next_in;
|
|
1995
|
+
const input = strm.input;
|
|
1996
|
+
strm.avail_in = dictLength;
|
|
1997
|
+
strm.next_in = 0;
|
|
1998
|
+
strm.input = dictionary;
|
|
1999
|
+
fill_window(s);
|
|
2000
|
+
while (s.lookahead >= MIN_MATCH) {
|
|
2001
|
+
let str = s.strstart;
|
|
2002
|
+
let n = s.lookahead - (MIN_MATCH - 1);
|
|
2003
|
+
do {
|
|
2004
|
+
/* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */
|
|
2005
|
+
s.ins_h = HASH(s, s.ins_h, s.window[str + MIN_MATCH - 1]);
|
|
2006
|
+
|
|
2007
|
+
s.prev[str & s.w_mask] = s.head[s.ins_h];
|
|
2008
|
+
|
|
2009
|
+
s.head[s.ins_h] = str;
|
|
2010
|
+
str++;
|
|
2011
|
+
} while (--n);
|
|
2012
|
+
s.strstart = str;
|
|
2013
|
+
s.lookahead = MIN_MATCH - 1;
|
|
2014
|
+
fill_window(s);
|
|
2015
|
+
}
|
|
2016
|
+
s.strstart += s.lookahead;
|
|
2017
|
+
s.block_start = s.strstart;
|
|
2018
|
+
s.insert = s.lookahead;
|
|
2019
|
+
s.lookahead = 0;
|
|
2020
|
+
s.match_length = s.prev_length = MIN_MATCH - 1;
|
|
2021
|
+
s.match_available = 0;
|
|
2022
|
+
strm.next_in = next;
|
|
2023
|
+
strm.input = input;
|
|
2024
|
+
strm.avail_in = avail;
|
|
2025
|
+
s.wrap = wrap;
|
|
2026
|
+
return Z_OK;
|
|
2027
|
+
};
|
|
2028
|
+
|
|
2029
|
+
|
|
2030
|
+
module.exports.deflateInit = deflateInit;
|
|
2031
|
+
module.exports.deflateInit2 = deflateInit2;
|
|
2032
|
+
module.exports.deflateReset = deflateReset;
|
|
2033
|
+
module.exports.deflateResetKeep = deflateResetKeep;
|
|
2034
|
+
module.exports.deflateSetHeader = deflateSetHeader;
|
|
2035
|
+
module.exports.deflate = deflate;
|
|
2036
|
+
module.exports.deflateEnd = deflateEnd;
|
|
2037
|
+
module.exports.deflateSetDictionary = deflateSetDictionary;
|
|
2038
|
+
module.exports.deflateInfo = 'pako deflate (from Nodeca project)';
|
|
2039
|
+
|
|
2040
|
+
/* Not implemented
|
|
2041
|
+
module.exports.deflateBound = deflateBound;
|
|
2042
|
+
module.exports.deflateCopy = deflateCopy;
|
|
2043
|
+
module.exports.deflateGetDictionary = deflateGetDictionary;
|
|
2044
|
+
module.exports.deflateParams = deflateParams;
|
|
2045
|
+
module.exports.deflatePending = deflatePending;
|
|
2046
|
+
module.exports.deflatePrime = deflatePrime;
|
|
2047
|
+
module.exports.deflateTune = deflateTune;
|
|
2048
|
+
*/
|