@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.
Files changed (2716) hide show
  1. package/dist/index.d.mts +1201 -322
  2. package/dist/index.d.ts +1201 -322
  3. package/dist/index.js +1009 -332
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +1010 -333
  6. package/dist/index.mjs.map +1 -1
  7. package/node_modules/@babel/runtime/LICENSE +22 -0
  8. package/node_modules/@babel/runtime/README.md +19 -0
  9. package/node_modules/@babel/runtime/helpers/AwaitValue.js +4 -0
  10. package/node_modules/@babel/runtime/helpers/OverloadYield.js +4 -0
  11. package/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +9 -0
  12. package/node_modules/@babel/runtime/helpers/applyDecs.js +236 -0
  13. package/node_modules/@babel/runtime/helpers/applyDecs2203.js +184 -0
  14. package/node_modules/@babel/runtime/helpers/applyDecs2203R.js +191 -0
  15. package/node_modules/@babel/runtime/helpers/applyDecs2301.js +222 -0
  16. package/node_modules/@babel/runtime/helpers/applyDecs2305.js +133 -0
  17. package/node_modules/@babel/runtime/helpers/applyDecs2311.js +124 -0
  18. package/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +6 -0
  19. package/node_modules/@babel/runtime/helpers/arrayWithHoles.js +4 -0
  20. package/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +5 -0
  21. package/node_modules/@babel/runtime/helpers/assertClassBrand.js +5 -0
  22. package/node_modules/@babel/runtime/helpers/assertThisInitialized.js +5 -0
  23. package/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +24 -0
  24. package/node_modules/@babel/runtime/helpers/asyncIterator.js +45 -0
  25. package/node_modules/@babel/runtime/helpers/asyncToGenerator.js +26 -0
  26. package/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +5 -0
  27. package/node_modules/@babel/runtime/helpers/callSuper.js +7 -0
  28. package/node_modules/@babel/runtime/helpers/checkInRHS.js +6 -0
  29. package/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +4 -0
  30. package/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +10 -0
  31. package/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +4 -0
  32. package/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +7 -0
  33. package/node_modules/@babel/runtime/helpers/classCallCheck.js +4 -0
  34. package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +5 -0
  35. package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +4 -0
  36. package/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +5 -0
  37. package/node_modules/@babel/runtime/helpers/classNameTDZError.js +4 -0
  38. package/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +7 -0
  39. package/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +7 -0
  40. package/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js +5 -0
  41. package/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +5 -0
  42. package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +5 -0
  43. package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +5 -0
  44. package/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +7 -0
  45. package/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js +5 -0
  46. package/node_modules/@babel/runtime/helpers/classPrivateGetter.js +5 -0
  47. package/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +5 -0
  48. package/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +5 -0
  49. package/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +4 -0
  50. package/node_modules/@babel/runtime/helpers/classPrivateSetter.js +5 -0
  51. package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +7 -0
  52. package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +7 -0
  53. package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +7 -0
  54. package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +5 -0
  55. package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +4 -0
  56. package/node_modules/@babel/runtime/helpers/construct.js +10 -0
  57. package/node_modules/@babel/runtime/helpers/createClass.js +13 -0
  58. package/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +50 -0
  59. package/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +19 -0
  60. package/node_modules/@babel/runtime/helpers/createSuper.js +16 -0
  61. package/node_modules/@babel/runtime/helpers/decorate.js +250 -0
  62. package/node_modules/@babel/runtime/helpers/defaults.js +9 -0
  63. package/node_modules/@babel/runtime/helpers/defineAccessor.js +8 -0
  64. package/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +12 -0
  65. package/node_modules/@babel/runtime/helpers/defineProperty.js +10 -0
  66. package/node_modules/@babel/runtime/helpers/dispose.js +28 -0
  67. package/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +4 -0
  68. package/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +4 -0
  69. package/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +9 -0
  70. package/node_modules/@babel/runtime/helpers/esm/applyDecs.js +236 -0
  71. package/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +184 -0
  72. package/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +191 -0
  73. package/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +222 -0
  74. package/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js +133 -0
  75. package/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js +124 -0
  76. package/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +6 -0
  77. package/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +4 -0
  78. package/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +5 -0
  79. package/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js +5 -0
  80. package/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +5 -0
  81. package/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +24 -0
  82. package/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +45 -0
  83. package/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +26 -0
  84. package/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +5 -0
  85. package/node_modules/@babel/runtime/helpers/esm/callSuper.js +7 -0
  86. package/node_modules/@babel/runtime/helpers/esm/checkInRHS.js +6 -0
  87. package/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +4 -0
  88. package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +10 -0
  89. package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +4 -0
  90. package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +7 -0
  91. package/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +4 -0
  92. package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +5 -0
  93. package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +4 -0
  94. package/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +5 -0
  95. package/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +4 -0
  96. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +7 -0
  97. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +7 -0
  98. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js +5 -0
  99. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +5 -0
  100. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +5 -0
  101. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +5 -0
  102. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +7 -0
  103. package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js +5 -0
  104. package/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js +5 -0
  105. package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +5 -0
  106. package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +5 -0
  107. package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +4 -0
  108. package/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js +5 -0
  109. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +7 -0
  110. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +7 -0
  111. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +7 -0
  112. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +5 -0
  113. package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +4 -0
  114. package/node_modules/@babel/runtime/helpers/esm/construct.js +10 -0
  115. package/node_modules/@babel/runtime/helpers/esm/createClass.js +13 -0
  116. package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +50 -0
  117. package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +19 -0
  118. package/node_modules/@babel/runtime/helpers/esm/createSuper.js +16 -0
  119. package/node_modules/@babel/runtime/helpers/esm/decorate.js +250 -0
  120. package/node_modules/@babel/runtime/helpers/esm/defaults.js +9 -0
  121. package/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +8 -0
  122. package/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +12 -0
  123. package/node_modules/@babel/runtime/helpers/esm/defineProperty.js +10 -0
  124. package/node_modules/@babel/runtime/helpers/esm/dispose.js +28 -0
  125. package/node_modules/@babel/runtime/helpers/esm/extends.js +10 -0
  126. package/node_modules/@babel/runtime/helpers/esm/get.js +11 -0
  127. package/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +6 -0
  128. package/node_modules/@babel/runtime/helpers/esm/identity.js +4 -0
  129. package/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js +27 -0
  130. package/node_modules/@babel/runtime/helpers/esm/inherits.js +14 -0
  131. package/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +5 -0
  132. package/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +9 -0
  133. package/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +4 -0
  134. package/node_modules/@babel/runtime/helpers/esm/instanceof.js +4 -0
  135. package/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +6 -0
  136. package/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +22 -0
  137. package/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +8 -0
  138. package/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +9 -0
  139. package/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +4 -0
  140. package/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +28 -0
  141. package/node_modules/@babel/runtime/helpers/esm/jsx.js +22 -0
  142. package/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +9 -0
  143. package/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +4 -0
  144. package/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +4 -0
  145. package/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +4 -0
  146. package/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js +4 -0
  147. package/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +4 -0
  148. package/node_modules/@babel/runtime/helpers/esm/objectSpread.js +14 -0
  149. package/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +23 -0
  150. package/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +13 -0
  151. package/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +10 -0
  152. package/node_modules/@babel/runtime/helpers/esm/package.json +3 -0
  153. package/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +8 -0
  154. package/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +4 -0
  155. package/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +272 -0
  156. package/node_modules/@babel/runtime/helpers/esm/set.js +22 -0
  157. package/node_modules/@babel/runtime/helpers/esm/setFunctionName.js +12 -0
  158. package/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +6 -0
  159. package/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +7 -0
  160. package/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +8 -0
  161. package/node_modules/@babel/runtime/helpers/esm/superPropBase.js +6 -0
  162. package/node_modules/@babel/runtime/helpers/esm/superPropGet.js +9 -0
  163. package/node_modules/@babel/runtime/helpers/esm/superPropSet.js +6 -0
  164. package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +8 -0
  165. package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +4 -0
  166. package/node_modules/@babel/runtime/helpers/esm/tdz.js +4 -0
  167. package/node_modules/@babel/runtime/helpers/esm/temporalRef.js +6 -0
  168. package/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +2 -0
  169. package/node_modules/@babel/runtime/helpers/esm/toArray.js +8 -0
  170. package/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +8 -0
  171. package/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +12 -0
  172. package/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +7 -0
  173. package/node_modules/@babel/runtime/helpers/esm/toSetter.js +10 -0
  174. package/node_modules/@babel/runtime/helpers/esm/tsRewriteRelativeImportExtensions.js +6 -0
  175. package/node_modules/@babel/runtime/helpers/esm/typeof.js +10 -0
  176. package/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +9 -0
  177. package/node_modules/@babel/runtime/helpers/esm/using.js +12 -0
  178. package/node_modules/@babel/runtime/helpers/esm/usingCtx.js +59 -0
  179. package/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +69 -0
  180. package/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +27 -0
  181. package/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +52 -0
  182. package/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +4 -0
  183. package/node_modules/@babel/runtime/helpers/extends.js +10 -0
  184. package/node_modules/@babel/runtime/helpers/get.js +11 -0
  185. package/node_modules/@babel/runtime/helpers/getPrototypeOf.js +6 -0
  186. package/node_modules/@babel/runtime/helpers/identity.js +4 -0
  187. package/node_modules/@babel/runtime/helpers/importDeferProxy.js +27 -0
  188. package/node_modules/@babel/runtime/helpers/inherits.js +14 -0
  189. package/node_modules/@babel/runtime/helpers/inheritsLoose.js +5 -0
  190. package/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +9 -0
  191. package/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +4 -0
  192. package/node_modules/@babel/runtime/helpers/instanceof.js +4 -0
  193. package/node_modules/@babel/runtime/helpers/interopRequireDefault.js +6 -0
  194. package/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +22 -0
  195. package/node_modules/@babel/runtime/helpers/isNativeFunction.js +8 -0
  196. package/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +9 -0
  197. package/node_modules/@babel/runtime/helpers/iterableToArray.js +4 -0
  198. package/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +28 -0
  199. package/node_modules/@babel/runtime/helpers/jsx.js +22 -0
  200. package/node_modules/@babel/runtime/helpers/maybeArrayLike.js +9 -0
  201. package/node_modules/@babel/runtime/helpers/newArrowCheck.js +4 -0
  202. package/node_modules/@babel/runtime/helpers/nonIterableRest.js +4 -0
  203. package/node_modules/@babel/runtime/helpers/nonIterableSpread.js +4 -0
  204. package/node_modules/@babel/runtime/helpers/nullishReceiverError.js +4 -0
  205. package/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +4 -0
  206. package/node_modules/@babel/runtime/helpers/objectSpread.js +14 -0
  207. package/node_modules/@babel/runtime/helpers/objectSpread2.js +23 -0
  208. package/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +13 -0
  209. package/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +10 -0
  210. package/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +8 -0
  211. package/node_modules/@babel/runtime/helpers/readOnlyError.js +4 -0
  212. package/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +272 -0
  213. package/node_modules/@babel/runtime/helpers/set.js +22 -0
  214. package/node_modules/@babel/runtime/helpers/setFunctionName.js +12 -0
  215. package/node_modules/@babel/runtime/helpers/setPrototypeOf.js +6 -0
  216. package/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +7 -0
  217. package/node_modules/@babel/runtime/helpers/slicedToArray.js +8 -0
  218. package/node_modules/@babel/runtime/helpers/superPropBase.js +6 -0
  219. package/node_modules/@babel/runtime/helpers/superPropGet.js +9 -0
  220. package/node_modules/@babel/runtime/helpers/superPropSet.js +6 -0
  221. package/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +8 -0
  222. package/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +4 -0
  223. package/node_modules/@babel/runtime/helpers/tdz.js +4 -0
  224. package/node_modules/@babel/runtime/helpers/temporalRef.js +6 -0
  225. package/node_modules/@babel/runtime/helpers/temporalUndefined.js +2 -0
  226. package/node_modules/@babel/runtime/helpers/toArray.js +8 -0
  227. package/node_modules/@babel/runtime/helpers/toConsumableArray.js +8 -0
  228. package/node_modules/@babel/runtime/helpers/toPrimitive.js +12 -0
  229. package/node_modules/@babel/runtime/helpers/toPropertyKey.js +7 -0
  230. package/node_modules/@babel/runtime/helpers/toSetter.js +10 -0
  231. package/node_modules/@babel/runtime/helpers/tsRewriteRelativeImportExtensions.js +6 -0
  232. package/node_modules/@babel/runtime/helpers/typeof.js +10 -0
  233. package/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +9 -0
  234. package/node_modules/@babel/runtime/helpers/using.js +12 -0
  235. package/node_modules/@babel/runtime/helpers/usingCtx.js +59 -0
  236. package/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +69 -0
  237. package/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +27 -0
  238. package/node_modules/@babel/runtime/helpers/wrapRegExp.js +52 -0
  239. package/node_modules/@babel/runtime/helpers/writeOnlyError.js +4 -0
  240. package/node_modules/@babel/runtime/package.json +1062 -0
  241. package/node_modules/@babel/runtime/regenerator/index.js +15 -0
  242. package/node_modules/@coral-xyz/anchor/README.md +10 -0
  243. package/node_modules/@coral-xyz/anchor/dist/browser/index.js +7201 -0
  244. package/node_modules/@coral-xyz/anchor/dist/browser/index.js.map +1 -0
  245. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/accounts.d.ts +27 -0
  246. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/accounts.d.ts.map +1 -0
  247. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/event.d.ts +14 -0
  248. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/event.d.ts.map +1 -0
  249. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/idl.d.ts +32 -0
  250. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/idl.d.ts.map +1 -0
  251. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/index.d.ts +33 -0
  252. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/index.d.ts.map +1 -0
  253. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/instruction.d.ts +42 -0
  254. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/instruction.d.ts.map +1 -0
  255. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/types.d.ts +16 -0
  256. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/borsh/types.d.ts.map +1 -0
  257. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/index.d.ts +43 -0
  258. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/index.d.ts.map +1 -0
  259. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/accounts.d.ts +12 -0
  260. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/accounts.d.ts.map +1 -0
  261. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/events.d.ts +9 -0
  262. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/events.d.ts.map +1 -0
  263. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/index.d.ts +17 -0
  264. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/index.d.ts.map +1 -0
  265. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/instruction.d.ts +8 -0
  266. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/instruction.d.ts.map +1 -0
  267. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/types.d.ts +8 -0
  268. package/node_modules/@coral-xyz/anchor/dist/browser/src/coder/system/types.d.ts.map +1 -0
  269. package/node_modules/@coral-xyz/anchor/dist/browser/src/error.d.ts +131 -0
  270. package/node_modules/@coral-xyz/anchor/dist/browser/src/error.d.ts.map +1 -0
  271. package/node_modules/@coral-xyz/anchor/dist/browser/src/idl.d.ts +215 -0
  272. package/node_modules/@coral-xyz/anchor/dist/browser/src/idl.d.ts.map +1 -0
  273. package/node_modules/@coral-xyz/anchor/dist/browser/src/index.d.ts +16 -0
  274. package/node_modules/@coral-xyz/anchor/dist/browser/src/index.d.ts.map +1 -0
  275. package/node_modules/@coral-xyz/anchor/dist/browser/src/native/index.d.ts +7 -0
  276. package/node_modules/@coral-xyz/anchor/dist/browser/src/native/index.d.ts.map +1 -0
  277. package/node_modules/@coral-xyz/anchor/dist/browser/src/native/system.d.ts +390 -0
  278. package/node_modules/@coral-xyz/anchor/dist/browser/src/native/system.d.ts.map +1 -0
  279. package/node_modules/@coral-xyz/anchor/dist/browser/src/nodewallet.d.ts +14 -0
  280. package/node_modules/@coral-xyz/anchor/dist/browser/src/nodewallet.d.ts.map +1 -0
  281. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/accounts-resolver.d.ts +63 -0
  282. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/accounts-resolver.d.ts.map +1 -0
  283. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/common.d.ts +20 -0
  284. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/common.d.ts.map +1 -0
  285. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/context.d.ts +63 -0
  286. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/context.d.ts.map +1 -0
  287. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/event.d.ts +57 -0
  288. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/event.d.ts.map +1 -0
  289. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/index.d.ts +272 -0
  290. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/index.d.ts.map +1 -0
  291. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/account.d.ts +146 -0
  292. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/account.d.ts.map +1 -0
  293. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/index.d.ts +35 -0
  294. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/index.d.ts.map +1 -0
  295. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/instruction.d.ts +57 -0
  296. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/instruction.d.ts.map +1 -0
  297. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/methods.d.ts +206 -0
  298. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/methods.d.ts.map +1 -0
  299. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/rpc.d.ts +49 -0
  300. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/rpc.d.ts.map +1 -0
  301. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/simulate.d.ts +57 -0
  302. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/simulate.d.ts.map +1 -0
  303. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/transaction.d.ts +42 -0
  304. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/transaction.d.ts.map +1 -0
  305. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/types.d.ts +153 -0
  306. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/types.d.ts.map +1 -0
  307. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/views.d.ts +15 -0
  308. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/namespace/views.d.ts.map +1 -0
  309. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/token-account-layout.d.ts +2 -0
  310. package/node_modules/@coral-xyz/anchor/dist/browser/src/program/token-account-layout.d.ts.map +1 -0
  311. package/node_modules/@coral-xyz/anchor/dist/browser/src/provider.d.ts +104 -0
  312. package/node_modules/@coral-xyz/anchor/dist/browser/src/provider.d.ts.map +1 -0
  313. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/base64.d.ts +4 -0
  314. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/base64.d.ts.map +1 -0
  315. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/bs58.d.ts +3 -0
  316. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/bs58.d.ts.map +1 -0
  317. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/hex.d.ts +4 -0
  318. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/hex.d.ts.map +1 -0
  319. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/index.d.ts +5 -0
  320. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/index.d.ts.map +1 -0
  321. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/utf8.d.ts +3 -0
  322. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/bytes/utf8.d.ts.map +1 -0
  323. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/common.d.ts +22 -0
  324. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/common.d.ts.map +1 -0
  325. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/features.d.ts +3 -0
  326. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/features.d.ts.map +1 -0
  327. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/index.d.ts +8 -0
  328. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/index.d.ts.map +1 -0
  329. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/pubkey.d.ts +3 -0
  330. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/pubkey.d.ts.map +1 -0
  331. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/registry.d.ts +34 -0
  332. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/registry.d.ts.map +1 -0
  333. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/rpc.d.ts +21 -0
  334. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/rpc.d.ts.map +1 -0
  335. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/sha256.d.ts +2 -0
  336. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/sha256.d.ts.map +1 -0
  337. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/token.d.ts +8 -0
  338. package/node_modules/@coral-xyz/anchor/dist/browser/src/utils/token.d.ts.map +1 -0
  339. package/node_modules/@coral-xyz/anchor/dist/browser/src/workspace.d.ts +14 -0
  340. package/node_modules/@coral-xyz/anchor/dist/browser/src/workspace.d.ts.map +1 -0
  341. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/accounts.d.ts +27 -0
  342. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/accounts.d.ts.map +1 -0
  343. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/accounts.js +103 -0
  344. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/accounts.js.map +1 -0
  345. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/event.d.ts +14 -0
  346. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/event.d.ts.map +1 -0
  347. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/event.js +78 -0
  348. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/event.js.map +1 -0
  349. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/idl.d.ts +32 -0
  350. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/idl.d.ts.map +1 -0
  351. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/idl.js +419 -0
  352. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/idl.js.map +1 -0
  353. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/index.d.ts +33 -0
  354. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/index.d.ts.map +1 -0
  355. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/index.js +27 -0
  356. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/index.js.map +1 -0
  357. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/instruction.d.ts +42 -0
  358. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/instruction.d.ts.map +1 -0
  359. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/instruction.js +274 -0
  360. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/instruction.js.map +1 -0
  361. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/types.d.ts +16 -0
  362. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/types.d.ts.map +1 -0
  363. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/types.js +42 -0
  364. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/types.js.map +1 -0
  365. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/index.d.ts +43 -0
  366. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/index.d.ts.map +1 -0
  367. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/index.js +19 -0
  368. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/index.js.map +1 -0
  369. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/accounts.d.ts +12 -0
  370. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/accounts.d.ts.map +1 -0
  371. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/accounts.js +107 -0
  372. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/accounts.js.map +1 -0
  373. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/events.d.ts +9 -0
  374. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/events.d.ts.map +1 -0
  375. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/events.js +11 -0
  376. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/events.js.map +1 -0
  377. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/index.d.ts +17 -0
  378. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/index.d.ts.map +1 -0
  379. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/index.js +20 -0
  380. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/index.js.map +1 -0
  381. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/instruction.d.ts +8 -0
  382. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/instruction.d.ts.map +1 -0
  383. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/instruction.js +242 -0
  384. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/instruction.js.map +1 -0
  385. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/types.d.ts +8 -0
  386. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/types.d.ts.map +1 -0
  387. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/types.js +14 -0
  388. package/node_modules/@coral-xyz/anchor/dist/cjs/coder/system/types.js.map +1 -0
  389. package/node_modules/@coral-xyz/anchor/dist/cjs/error.d.ts +131 -0
  390. package/node_modules/@coral-xyz/anchor/dist/cjs/error.d.ts.map +1 -0
  391. package/node_modules/@coral-xyz/anchor/dist/cjs/error.js +583 -0
  392. package/node_modules/@coral-xyz/anchor/dist/cjs/error.js.map +1 -0
  393. package/node_modules/@coral-xyz/anchor/dist/cjs/idl.d.ts +215 -0
  394. package/node_modules/@coral-xyz/anchor/dist/cjs/idl.d.ts.map +1 -0
  395. package/node_modules/@coral-xyz/anchor/dist/cjs/idl.js +109 -0
  396. package/node_modules/@coral-xyz/anchor/dist/cjs/idl.js.map +1 -0
  397. package/node_modules/@coral-xyz/anchor/dist/cjs/index.d.ts +16 -0
  398. package/node_modules/@coral-xyz/anchor/dist/cjs/index.d.ts.map +1 -0
  399. package/node_modules/@coral-xyz/anchor/dist/cjs/index.js +50 -0
  400. package/node_modules/@coral-xyz/anchor/dist/cjs/index.js.map +1 -0
  401. package/node_modules/@coral-xyz/anchor/dist/cjs/native/index.d.ts +7 -0
  402. package/node_modules/@coral-xyz/anchor/dist/cjs/native/index.d.ts.map +1 -0
  403. package/node_modules/@coral-xyz/anchor/dist/cjs/native/index.js +11 -0
  404. package/node_modules/@coral-xyz/anchor/dist/cjs/native/index.js.map +1 -0
  405. package/node_modules/@coral-xyz/anchor/dist/cjs/native/system.d.ts +390 -0
  406. package/node_modules/@coral-xyz/anchor/dist/cjs/native/system.d.ts.map +1 -0
  407. package/node_modules/@coral-xyz/anchor/dist/cjs/native/system.js +394 -0
  408. package/node_modules/@coral-xyz/anchor/dist/cjs/native/system.js.map +1 -0
  409. package/node_modules/@coral-xyz/anchor/dist/cjs/nodewallet.d.ts +14 -0
  410. package/node_modules/@coral-xyz/anchor/dist/cjs/nodewallet.d.ts.map +1 -0
  411. package/node_modules/@coral-xyz/anchor/dist/cjs/nodewallet.js +48 -0
  412. package/node_modules/@coral-xyz/anchor/dist/cjs/nodewallet.js.map +1 -0
  413. package/node_modules/@coral-xyz/anchor/dist/cjs/program/accounts-resolver.d.ts +63 -0
  414. package/node_modules/@coral-xyz/anchor/dist/cjs/program/accounts-resolver.d.ts.map +1 -0
  415. package/node_modules/@coral-xyz/anchor/dist/cjs/program/accounts-resolver.js +437 -0
  416. package/node_modules/@coral-xyz/anchor/dist/cjs/program/accounts-resolver.js.map +1 -0
  417. package/node_modules/@coral-xyz/anchor/dist/cjs/program/common.d.ts +20 -0
  418. package/node_modules/@coral-xyz/anchor/dist/cjs/program/common.d.ts.map +1 -0
  419. package/node_modules/@coral-xyz/anchor/dist/cjs/program/common.js +49 -0
  420. package/node_modules/@coral-xyz/anchor/dist/cjs/program/common.js.map +1 -0
  421. package/node_modules/@coral-xyz/anchor/dist/cjs/program/context.d.ts +63 -0
  422. package/node_modules/@coral-xyz/anchor/dist/cjs/program/context.d.ts.map +1 -0
  423. package/node_modules/@coral-xyz/anchor/dist/cjs/program/context.js +16 -0
  424. package/node_modules/@coral-xyz/anchor/dist/cjs/program/context.js.map +1 -0
  425. package/node_modules/@coral-xyz/anchor/dist/cjs/program/event.d.ts +57 -0
  426. package/node_modules/@coral-xyz/anchor/dist/cjs/program/event.d.ts.map +1 -0
  427. package/node_modules/@coral-xyz/anchor/dist/cjs/program/event.js +207 -0
  428. package/node_modules/@coral-xyz/anchor/dist/cjs/program/event.js.map +1 -0
  429. package/node_modules/@coral-xyz/anchor/dist/cjs/program/index.d.ts +272 -0
  430. package/node_modules/@coral-xyz/anchor/dist/cjs/program/index.d.ts.map +1 -0
  431. package/node_modules/@coral-xyz/anchor/dist/cjs/program/index.js +177 -0
  432. package/node_modules/@coral-xyz/anchor/dist/cjs/program/index.js.map +1 -0
  433. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/account.d.ts +146 -0
  434. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/account.d.ts.map +1 -0
  435. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/account.js +257 -0
  436. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/account.js.map +1 -0
  437. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/index.d.ts +35 -0
  438. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/index.d.ts.map +1 -0
  439. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/index.js +63 -0
  440. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/index.js.map +1 -0
  441. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/instruction.d.ts +57 -0
  442. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/instruction.d.ts.map +1 -0
  443. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/instruction.js +94 -0
  444. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/instruction.js.map +1 -0
  445. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/methods.d.ts +206 -0
  446. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/methods.d.ts.map +1 -0
  447. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/methods.js +309 -0
  448. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/methods.js.map +1 -0
  449. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/rpc.d.ts +49 -0
  450. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/rpc.d.ts.map +1 -0
  451. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/rpc.js +25 -0
  452. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/rpc.js.map +1 -0
  453. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/simulate.d.ts +57 -0
  454. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/simulate.d.ts.map +1 -0
  455. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/simulate.js +42 -0
  456. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/simulate.js.map +1 -0
  457. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/transaction.d.ts +42 -0
  458. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/transaction.d.ts.map +1 -0
  459. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/transaction.js +24 -0
  460. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/transaction.js.map +1 -0
  461. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/types.d.ts +153 -0
  462. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/types.d.ts.map +1 -0
  463. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/types.js +3 -0
  464. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/types.js.map +1 -0
  465. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/views.d.ts +15 -0
  466. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/views.d.ts.map +1 -0
  467. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/views.js +30 -0
  468. package/node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/views.js.map +1 -0
  469. package/node_modules/@coral-xyz/anchor/dist/cjs/program/token-account-layout.d.ts +2 -0
  470. package/node_modules/@coral-xyz/anchor/dist/cjs/program/token-account-layout.d.ts.map +1 -0
  471. package/node_modules/@coral-xyz/anchor/dist/cjs/program/token-account-layout.js +136 -0
  472. package/node_modules/@coral-xyz/anchor/dist/cjs/program/token-account-layout.js.map +1 -0
  473. package/node_modules/@coral-xyz/anchor/dist/cjs/provider.d.ts +104 -0
  474. package/node_modules/@coral-xyz/anchor/dist/cjs/provider.d.ts.map +1 -0
  475. package/node_modules/@coral-xyz/anchor/dist/cjs/provider.js +309 -0
  476. package/node_modules/@coral-xyz/anchor/dist/cjs/provider.js.map +1 -0
  477. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/base64.d.ts +4 -0
  478. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/base64.d.ts.map +1 -0
  479. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/base64.js +12 -0
  480. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/base64.js.map +1 -0
  481. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/bs58.d.ts +3 -0
  482. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/bs58.d.ts.map +1 -0
  483. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/bs58.js +15 -0
  484. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/bs58.js.map +1 -0
  485. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/hex.d.ts +4 -0
  486. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/hex.d.ts.map +1 -0
  487. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/hex.js +22 -0
  488. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/hex.js.map +1 -0
  489. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/index.d.ts +5 -0
  490. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/index.d.ts.map +1 -0
  491. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/index.js +31 -0
  492. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/index.js.map +1 -0
  493. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/utf8.d.ts +3 -0
  494. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/utf8.d.ts.map +1 -0
  495. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/utf8.js +18 -0
  496. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/utf8.js.map +1 -0
  497. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/common.d.ts +22 -0
  498. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/common.d.ts.map +1 -0
  499. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/common.js +32 -0
  500. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/common.js.map +1 -0
  501. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/features.d.ts +3 -0
  502. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/features.d.ts.map +1 -0
  503. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/features.js +16 -0
  504. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/features.js.map +1 -0
  505. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/index.d.ts +8 -0
  506. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/index.d.ts.map +1 -0
  507. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/index.js +34 -0
  508. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/index.js.map +1 -0
  509. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/pubkey.d.ts +3 -0
  510. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/pubkey.d.ts.map +1 -0
  511. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/pubkey.js +16 -0
  512. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/pubkey.js.map +1 -0
  513. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/registry.d.ts +34 -0
  514. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/registry.d.ts.map +1 -0
  515. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/registry.js +88 -0
  516. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/registry.js.map +1 -0
  517. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/rpc.d.ts +21 -0
  518. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/rpc.d.ts.map +1 -0
  519. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/rpc.js +167 -0
  520. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/rpc.js.map +1 -0
  521. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/sha256.d.ts +2 -0
  522. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/sha256.d.ts.map +1 -0
  523. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/sha256.js +8 -0
  524. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/sha256.js.map +1 -0
  525. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/token.d.ts +8 -0
  526. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/token.d.ts.map +1 -0
  527. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/token.js +11 -0
  528. package/node_modules/@coral-xyz/anchor/dist/cjs/utils/token.js.map +1 -0
  529. package/node_modules/@coral-xyz/anchor/dist/cjs/workspace.d.ts +14 -0
  530. package/node_modules/@coral-xyz/anchor/dist/cjs/workspace.d.ts.map +1 -0
  531. package/node_modules/@coral-xyz/anchor/dist/cjs/workspace.js +98 -0
  532. package/node_modules/@coral-xyz/anchor/dist/cjs/workspace.js.map +1 -0
  533. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/accounts.d.ts +27 -0
  534. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/accounts.d.ts.map +1 -0
  535. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/accounts.js +96 -0
  536. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/accounts.js.map +1 -0
  537. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/event.d.ts +14 -0
  538. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/event.d.ts.map +1 -0
  539. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/event.js +51 -0
  540. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/event.js.map +1 -0
  541. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/idl.d.ts +32 -0
  542. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/idl.d.ts.map +1 -0
  543. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/idl.js +392 -0
  544. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/idl.js.map +1 -0
  545. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/index.d.ts +33 -0
  546. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/index.d.ts.map +1 -0
  547. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/index.js +20 -0
  548. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/index.js.map +1 -0
  549. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/instruction.d.ts +42 -0
  550. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/instruction.d.ts.map +1 -0
  551. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/instruction.js +244 -0
  552. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/instruction.js.map +1 -0
  553. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/types.d.ts +16 -0
  554. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/types.d.ts.map +1 -0
  555. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/types.js +38 -0
  556. package/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/types.js.map +1 -0
  557. package/node_modules/@coral-xyz/anchor/dist/esm/coder/index.d.ts +43 -0
  558. package/node_modules/@coral-xyz/anchor/dist/esm/coder/index.d.ts.map +1 -0
  559. package/node_modules/@coral-xyz/anchor/dist/esm/coder/index.js +3 -0
  560. package/node_modules/@coral-xyz/anchor/dist/esm/coder/index.js.map +1 -0
  561. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/accounts.d.ts +12 -0
  562. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/accounts.d.ts.map +1 -0
  563. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/accounts.js +80 -0
  564. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/accounts.js.map +1 -0
  565. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/events.d.ts +9 -0
  566. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/events.d.ts.map +1 -0
  567. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/events.js +7 -0
  568. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/events.js.map +1 -0
  569. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/index.d.ts +17 -0
  570. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/index.d.ts.map +1 -0
  571. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/index.js +16 -0
  572. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/index.js.map +1 -0
  573. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/instruction.d.ts +8 -0
  574. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/instruction.d.ts.map +1 -0
  575. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/instruction.js +212 -0
  576. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/instruction.js.map +1 -0
  577. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/types.d.ts +8 -0
  578. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/types.d.ts.map +1 -0
  579. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/types.js +10 -0
  580. package/node_modules/@coral-xyz/anchor/dist/esm/coder/system/types.js.map +1 -0
  581. package/node_modules/@coral-xyz/anchor/dist/esm/error.d.ts +131 -0
  582. package/node_modules/@coral-xyz/anchor/dist/esm/error.d.ts.map +1 -0
  583. package/node_modules/@coral-xyz/anchor/dist/esm/error.js +552 -0
  584. package/node_modules/@coral-xyz/anchor/dist/esm/error.js.map +1 -0
  585. package/node_modules/@coral-xyz/anchor/dist/esm/idl.d.ts +215 -0
  586. package/node_modules/@coral-xyz/anchor/dist/esm/idl.d.ts.map +1 -0
  587. package/node_modules/@coral-xyz/anchor/dist/esm/idl.js +74 -0
  588. package/node_modules/@coral-xyz/anchor/dist/esm/idl.js.map +1 -0
  589. package/node_modules/@coral-xyz/anchor/dist/esm/index.d.ts +16 -0
  590. package/node_modules/@coral-xyz/anchor/dist/esm/index.d.ts.map +1 -0
  591. package/node_modules/@coral-xyz/anchor/dist/esm/index.js +14 -0
  592. package/node_modules/@coral-xyz/anchor/dist/esm/index.js.map +1 -0
  593. package/node_modules/@coral-xyz/anchor/dist/esm/native/index.d.ts +7 -0
  594. package/node_modules/@coral-xyz/anchor/dist/esm/native/index.d.ts.map +1 -0
  595. package/node_modules/@coral-xyz/anchor/dist/esm/native/index.js +7 -0
  596. package/node_modules/@coral-xyz/anchor/dist/esm/native/index.js.map +1 -0
  597. package/node_modules/@coral-xyz/anchor/dist/esm/native/system.d.ts +390 -0
  598. package/node_modules/@coral-xyz/anchor/dist/esm/native/system.d.ts.map +1 -0
  599. package/node_modules/@coral-xyz/anchor/dist/esm/native/system.js +389 -0
  600. package/node_modules/@coral-xyz/anchor/dist/esm/native/system.js.map +1 -0
  601. package/node_modules/@coral-xyz/anchor/dist/esm/nodewallet.d.ts +14 -0
  602. package/node_modules/@coral-xyz/anchor/dist/esm/nodewallet.d.ts.map +1 -0
  603. package/node_modules/@coral-xyz/anchor/dist/esm/nodewallet.js +45 -0
  604. package/node_modules/@coral-xyz/anchor/dist/esm/nodewallet.js.map +1 -0
  605. package/node_modules/@coral-xyz/anchor/dist/esm/program/accounts-resolver.d.ts +63 -0
  606. package/node_modules/@coral-xyz/anchor/dist/esm/program/accounts-resolver.d.ts.map +1 -0
  607. package/node_modules/@coral-xyz/anchor/dist/esm/program/accounts-resolver.js +429 -0
  608. package/node_modules/@coral-xyz/anchor/dist/esm/program/accounts-resolver.js.map +1 -0
  609. package/node_modules/@coral-xyz/anchor/dist/esm/program/common.d.ts +20 -0
  610. package/node_modules/@coral-xyz/anchor/dist/esm/program/common.d.ts.map +1 -0
  611. package/node_modules/@coral-xyz/anchor/dist/esm/program/common.js +43 -0
  612. package/node_modules/@coral-xyz/anchor/dist/esm/program/common.js.map +1 -0
  613. package/node_modules/@coral-xyz/anchor/dist/esm/program/context.d.ts +63 -0
  614. package/node_modules/@coral-xyz/anchor/dist/esm/program/context.d.ts.map +1 -0
  615. package/node_modules/@coral-xyz/anchor/dist/esm/program/context.js +13 -0
  616. package/node_modules/@coral-xyz/anchor/dist/esm/program/context.js.map +1 -0
  617. package/node_modules/@coral-xyz/anchor/dist/esm/program/event.d.ts +57 -0
  618. package/node_modules/@coral-xyz/anchor/dist/esm/program/event.d.ts.map +1 -0
  619. package/node_modules/@coral-xyz/anchor/dist/esm/program/event.js +202 -0
  620. package/node_modules/@coral-xyz/anchor/dist/esm/program/event.js.map +1 -0
  621. package/node_modules/@coral-xyz/anchor/dist/esm/program/index.d.ts +272 -0
  622. package/node_modules/@coral-xyz/anchor/dist/esm/program/index.d.ts.map +1 -0
  623. package/node_modules/@coral-xyz/anchor/dist/esm/program/index.js +156 -0
  624. package/node_modules/@coral-xyz/anchor/dist/esm/program/index.js.map +1 -0
  625. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/account.d.ts +146 -0
  626. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/account.d.ts.map +1 -0
  627. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/account.js +226 -0
  628. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/account.js.map +1 -0
  629. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/index.d.ts +35 -0
  630. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/index.d.ts.map +1 -0
  631. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/index.js +54 -0
  632. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/index.js.map +1 -0
  633. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/instruction.d.ts +57 -0
  634. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/instruction.d.ts.map +1 -0
  635. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/instruction.js +68 -0
  636. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/instruction.js.map +1 -0
  637. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/methods.d.ts +206 -0
  638. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/methods.d.ts.map +1 -0
  639. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/methods.js +302 -0
  640. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/methods.js.map +1 -0
  641. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/rpc.d.ts +49 -0
  642. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/rpc.d.ts.map +1 -0
  643. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/rpc.js +22 -0
  644. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/rpc.js.map +1 -0
  645. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/simulate.d.ts +57 -0
  646. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/simulate.d.ts.map +1 -0
  647. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/simulate.js +39 -0
  648. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/simulate.js.map +1 -0
  649. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/transaction.d.ts +42 -0
  650. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/transaction.d.ts.map +1 -0
  651. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/transaction.js +21 -0
  652. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/transaction.js.map +1 -0
  653. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/types.d.ts +153 -0
  654. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/types.d.ts.map +1 -0
  655. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/types.js +2 -0
  656. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/types.js.map +1 -0
  657. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/views.d.ts +15 -0
  658. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/views.d.ts.map +1 -0
  659. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/views.js +27 -0
  660. package/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/views.js.map +1 -0
  661. package/node_modules/@coral-xyz/anchor/dist/esm/program/token-account-layout.d.ts +2 -0
  662. package/node_modules/@coral-xyz/anchor/dist/esm/program/token-account-layout.d.ts.map +1 -0
  663. package/node_modules/@coral-xyz/anchor/dist/esm/program/token-account-layout.js +107 -0
  664. package/node_modules/@coral-xyz/anchor/dist/esm/program/token-account-layout.js.map +1 -0
  665. package/node_modules/@coral-xyz/anchor/dist/esm/provider.d.ts +104 -0
  666. package/node_modules/@coral-xyz/anchor/dist/esm/provider.d.ts.map +1 -0
  667. package/node_modules/@coral-xyz/anchor/dist/esm/provider.js +303 -0
  668. package/node_modules/@coral-xyz/anchor/dist/esm/provider.js.map +1 -0
  669. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/base64.d.ts +4 -0
  670. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/base64.d.ts.map +1 -0
  671. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/base64.js +8 -0
  672. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/base64.js.map +1 -0
  673. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/bs58.d.ts +3 -0
  674. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/bs58.d.ts.map +1 -0
  675. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/bs58.js +8 -0
  676. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/bs58.js.map +1 -0
  677. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/hex.d.ts +4 -0
  678. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/hex.d.ts.map +1 -0
  679. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/hex.js +18 -0
  680. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/hex.js.map +1 -0
  681. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/index.d.ts +5 -0
  682. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/index.d.ts.map +1 -0
  683. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/index.js +5 -0
  684. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/index.js.map +1 -0
  685. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/utf8.d.ts +3 -0
  686. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/utf8.d.ts.map +1 -0
  687. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/utf8.js +14 -0
  688. package/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/utf8.js.map +1 -0
  689. package/node_modules/@coral-xyz/anchor/dist/esm/utils/common.d.ts +22 -0
  690. package/node_modules/@coral-xyz/anchor/dist/esm/utils/common.d.ts.map +1 -0
  691. package/node_modules/@coral-xyz/anchor/dist/esm/utils/common.js +27 -0
  692. package/node_modules/@coral-xyz/anchor/dist/esm/utils/common.js.map +1 -0
  693. package/node_modules/@coral-xyz/anchor/dist/esm/utils/features.d.ts +3 -0
  694. package/node_modules/@coral-xyz/anchor/dist/esm/utils/features.d.ts.map +1 -0
  695. package/node_modules/@coral-xyz/anchor/dist/esm/utils/features.js +12 -0
  696. package/node_modules/@coral-xyz/anchor/dist/esm/utils/features.js.map +1 -0
  697. package/node_modules/@coral-xyz/anchor/dist/esm/utils/index.d.ts +8 -0
  698. package/node_modules/@coral-xyz/anchor/dist/esm/utils/index.d.ts.map +1 -0
  699. package/node_modules/@coral-xyz/anchor/dist/esm/utils/index.js +8 -0
  700. package/node_modules/@coral-xyz/anchor/dist/esm/utils/index.js.map +1 -0
  701. package/node_modules/@coral-xyz/anchor/dist/esm/utils/pubkey.d.ts +3 -0
  702. package/node_modules/@coral-xyz/anchor/dist/esm/utils/pubkey.d.ts.map +1 -0
  703. package/node_modules/@coral-xyz/anchor/dist/esm/utils/pubkey.js +13 -0
  704. package/node_modules/@coral-xyz/anchor/dist/esm/utils/pubkey.js.map +1 -0
  705. package/node_modules/@coral-xyz/anchor/dist/esm/utils/registry.d.ts +34 -0
  706. package/node_modules/@coral-xyz/anchor/dist/esm/utils/registry.d.ts.map +1 -0
  707. package/node_modules/@coral-xyz/anchor/dist/esm/utils/registry.js +57 -0
  708. package/node_modules/@coral-xyz/anchor/dist/esm/utils/registry.js.map +1 -0
  709. package/node_modules/@coral-xyz/anchor/dist/esm/utils/rpc.d.ts +21 -0
  710. package/node_modules/@coral-xyz/anchor/dist/esm/utils/rpc.d.ts.map +1 -0
  711. package/node_modules/@coral-xyz/anchor/dist/esm/utils/rpc.js +161 -0
  712. package/node_modules/@coral-xyz/anchor/dist/esm/utils/rpc.js.map +1 -0
  713. package/node_modules/@coral-xyz/anchor/dist/esm/utils/sha256.d.ts +2 -0
  714. package/node_modules/@coral-xyz/anchor/dist/esm/utils/sha256.d.ts.map +1 -0
  715. package/node_modules/@coral-xyz/anchor/dist/esm/utils/sha256.js +5 -0
  716. package/node_modules/@coral-xyz/anchor/dist/esm/utils/sha256.js.map +1 -0
  717. package/node_modules/@coral-xyz/anchor/dist/esm/utils/token.d.ts +8 -0
  718. package/node_modules/@coral-xyz/anchor/dist/esm/utils/token.d.ts.map +1 -0
  719. package/node_modules/@coral-xyz/anchor/dist/esm/utils/token.js +7 -0
  720. package/node_modules/@coral-xyz/anchor/dist/esm/utils/token.js.map +1 -0
  721. package/node_modules/@coral-xyz/anchor/dist/esm/workspace.d.ts +14 -0
  722. package/node_modules/@coral-xyz/anchor/dist/esm/workspace.d.ts.map +1 -0
  723. package/node_modules/@coral-xyz/anchor/dist/esm/workspace.js +70 -0
  724. package/node_modules/@coral-xyz/anchor/dist/esm/workspace.js.map +1 -0
  725. package/node_modules/@coral-xyz/anchor/dist/tsconfig.cjs.tsbuildinfo +1 -0
  726. package/node_modules/@coral-xyz/anchor/dist/tsconfig.tsbuildinfo +1 -0
  727. package/node_modules/@coral-xyz/anchor/package.json +84 -0
  728. package/node_modules/@coral-xyz/anchor/types/buffer-layout/index.d.ts +88 -0
  729. package/node_modules/@coral-xyz/anchor-errors/dist/index.d.ts +157 -0
  730. package/node_modules/@coral-xyz/anchor-errors/dist/index.d.ts.map +1 -0
  731. package/node_modules/@coral-xyz/anchor-errors/dist/index.js +167 -0
  732. package/node_modules/@coral-xyz/anchor-errors/dist/index.js.map +1 -0
  733. package/node_modules/@coral-xyz/anchor-errors/package.json +32 -0
  734. package/node_modules/@coral-xyz/borsh/dist/index.d.ts +31 -0
  735. package/node_modules/@coral-xyz/borsh/dist/index.d.ts.map +1 -0
  736. package/node_modules/@coral-xyz/borsh/dist/index.js +222 -0
  737. package/node_modules/@coral-xyz/borsh/dist/index.js.map +1 -0
  738. package/node_modules/@coral-xyz/borsh/package.json +35 -0
  739. package/node_modules/@noble/curves/LICENSE +21 -0
  740. package/node_modules/@noble/curves/README.md +998 -0
  741. package/node_modules/@noble/curves/_shortw_utils.d.ts +16 -0
  742. package/node_modules/@noble/curves/_shortw_utils.d.ts.map +1 -0
  743. package/node_modules/@noble/curves/_shortw_utils.js +25 -0
  744. package/node_modules/@noble/curves/_shortw_utils.js.map +1 -0
  745. package/node_modules/@noble/curves/abstract/bls.d.ts +129 -0
  746. package/node_modules/@noble/curves/abstract/bls.d.ts.map +1 -0
  747. package/node_modules/@noble/curves/abstract/bls.js +355 -0
  748. package/node_modules/@noble/curves/abstract/bls.js.map +1 -0
  749. package/node_modules/@noble/curves/abstract/curve.d.ts +109 -0
  750. package/node_modules/@noble/curves/abstract/curve.d.ts.map +1 -0
  751. package/node_modules/@noble/curves/abstract/curve.js +392 -0
  752. package/node_modules/@noble/curves/abstract/curve.js.map +1 -0
  753. package/node_modules/@noble/curves/abstract/edwards.d.ts +92 -0
  754. package/node_modules/@noble/curves/abstract/edwards.d.ts.map +1 -0
  755. package/node_modules/@noble/curves/abstract/edwards.js +452 -0
  756. package/node_modules/@noble/curves/abstract/edwards.js.map +1 -0
  757. package/node_modules/@noble/curves/abstract/fft.d.ts +120 -0
  758. package/node_modules/@noble/curves/abstract/fft.d.ts.map +1 -0
  759. package/node_modules/@noble/curves/abstract/fft.js +439 -0
  760. package/node_modules/@noble/curves/abstract/fft.js.map +1 -0
  761. package/node_modules/@noble/curves/abstract/hash-to-curve.d.ts +84 -0
  762. package/node_modules/@noble/curves/abstract/hash-to-curve.d.ts.map +1 -0
  763. package/node_modules/@noble/curves/abstract/hash-to-curve.js +196 -0
  764. package/node_modules/@noble/curves/abstract/hash-to-curve.js.map +1 -0
  765. package/node_modules/@noble/curves/abstract/modular.d.ts +153 -0
  766. package/node_modules/@noble/curves/abstract/modular.d.ts.map +1 -0
  767. package/node_modules/@noble/curves/abstract/modular.js +481 -0
  768. package/node_modules/@noble/curves/abstract/modular.js.map +1 -0
  769. package/node_modules/@noble/curves/abstract/montgomery.d.ts +21 -0
  770. package/node_modules/@noble/curves/abstract/montgomery.d.ts.map +1 -0
  771. package/node_modules/@noble/curves/abstract/montgomery.js +140 -0
  772. package/node_modules/@noble/curves/abstract/montgomery.js.map +1 -0
  773. package/node_modules/@noble/curves/abstract/poseidon.d.ts +76 -0
  774. package/node_modules/@noble/curves/abstract/poseidon.d.ts.map +1 -0
  775. package/node_modules/@noble/curves/abstract/poseidon.js +300 -0
  776. package/node_modules/@noble/curves/abstract/poseidon.js.map +1 -0
  777. package/node_modules/@noble/curves/abstract/tower.d.ts +119 -0
  778. package/node_modules/@noble/curves/abstract/tower.d.ts.map +1 -0
  779. package/node_modules/@noble/curves/abstract/tower.js +500 -0
  780. package/node_modules/@noble/curves/abstract/tower.js.map +1 -0
  781. package/node_modules/@noble/curves/abstract/utils.d.ts +119 -0
  782. package/node_modules/@noble/curves/abstract/utils.d.ts.map +1 -0
  783. package/node_modules/@noble/curves/abstract/utils.js +377 -0
  784. package/node_modules/@noble/curves/abstract/utils.js.map +1 -0
  785. package/node_modules/@noble/curves/abstract/weierstrass.d.ts +260 -0
  786. package/node_modules/@noble/curves/abstract/weierstrass.d.ts.map +1 -0
  787. package/node_modules/@noble/curves/abstract/weierstrass.js +1226 -0
  788. package/node_modules/@noble/curves/abstract/weierstrass.js.map +1 -0
  789. package/node_modules/@noble/curves/bls12-381.d.ts +14 -0
  790. package/node_modules/@noble/curves/bls12-381.d.ts.map +1 -0
  791. package/node_modules/@noble/curves/bls12-381.js +703 -0
  792. package/node_modules/@noble/curves/bls12-381.js.map +1 -0
  793. package/node_modules/@noble/curves/bn254.d.ts +16 -0
  794. package/node_modules/@noble/curves/bn254.d.ts.map +1 -0
  795. package/node_modules/@noble/curves/bn254.js +238 -0
  796. package/node_modules/@noble/curves/bn254.js.map +1 -0
  797. package/node_modules/@noble/curves/ed25519.d.ts +117 -0
  798. package/node_modules/@noble/curves/ed25519.d.ts.map +1 -0
  799. package/node_modules/@noble/curves/ed25519.js +483 -0
  800. package/node_modules/@noble/curves/ed25519.js.map +1 -0
  801. package/node_modules/@noble/curves/ed448.d.ts +98 -0
  802. package/node_modules/@noble/curves/ed448.d.ts.map +1 -0
  803. package/node_modules/@noble/curves/ed448.js +438 -0
  804. package/node_modules/@noble/curves/ed448.js.map +1 -0
  805. package/node_modules/@noble/curves/esm/_shortw_utils.d.ts +16 -0
  806. package/node_modules/@noble/curves/esm/_shortw_utils.d.ts.map +1 -0
  807. package/node_modules/@noble/curves/esm/_shortw_utils.js +21 -0
  808. package/node_modules/@noble/curves/esm/_shortw_utils.js.map +1 -0
  809. package/node_modules/@noble/curves/esm/abstract/bls.d.ts +129 -0
  810. package/node_modules/@noble/curves/esm/abstract/bls.d.ts.map +1 -0
  811. package/node_modules/@noble/curves/esm/abstract/bls.js +352 -0
  812. package/node_modules/@noble/curves/esm/abstract/bls.js.map +1 -0
  813. package/node_modules/@noble/curves/esm/abstract/curve.d.ts +109 -0
  814. package/node_modules/@noble/curves/esm/abstract/curve.d.ts.map +1 -0
  815. package/node_modules/@noble/curves/esm/abstract/curve.js +386 -0
  816. package/node_modules/@noble/curves/esm/abstract/curve.js.map +1 -0
  817. package/node_modules/@noble/curves/esm/abstract/edwards.d.ts +92 -0
  818. package/node_modules/@noble/curves/esm/abstract/edwards.d.ts.map +1 -0
  819. package/node_modules/@noble/curves/esm/abstract/edwards.js +449 -0
  820. package/node_modules/@noble/curves/esm/abstract/edwards.js.map +1 -0
  821. package/node_modules/@noble/curves/esm/abstract/fft.d.ts +120 -0
  822. package/node_modules/@noble/curves/esm/abstract/fft.d.ts.map +1 -0
  823. package/node_modules/@noble/curves/esm/abstract/fft.js +426 -0
  824. package/node_modules/@noble/curves/esm/abstract/fft.js.map +1 -0
  825. package/node_modules/@noble/curves/esm/abstract/hash-to-curve.d.ts +84 -0
  826. package/node_modules/@noble/curves/esm/abstract/hash-to-curve.d.ts.map +1 -0
  827. package/node_modules/@noble/curves/esm/abstract/hash-to-curve.js +189 -0
  828. package/node_modules/@noble/curves/esm/abstract/hash-to-curve.js.map +1 -0
  829. package/node_modules/@noble/curves/esm/abstract/modular.d.ts +153 -0
  830. package/node_modules/@noble/curves/esm/abstract/modular.d.ts.map +1 -0
  831. package/node_modules/@noble/curves/esm/abstract/modular.js +457 -0
  832. package/node_modules/@noble/curves/esm/abstract/modular.js.map +1 -0
  833. package/node_modules/@noble/curves/esm/abstract/montgomery.d.ts +21 -0
  834. package/node_modules/@noble/curves/esm/abstract/montgomery.d.ts.map +1 -0
  835. package/node_modules/@noble/curves/esm/abstract/montgomery.js +137 -0
  836. package/node_modules/@noble/curves/esm/abstract/montgomery.js.map +1 -0
  837. package/node_modules/@noble/curves/esm/abstract/poseidon.d.ts +76 -0
  838. package/node_modules/@noble/curves/esm/abstract/poseidon.d.ts.map +1 -0
  839. package/node_modules/@noble/curves/esm/abstract/poseidon.js +291 -0
  840. package/node_modules/@noble/curves/esm/abstract/poseidon.js.map +1 -0
  841. package/node_modules/@noble/curves/esm/abstract/tower.d.ts +119 -0
  842. package/node_modules/@noble/curves/esm/abstract/tower.d.ts.map +1 -0
  843. package/node_modules/@noble/curves/esm/abstract/tower.js +496 -0
  844. package/node_modules/@noble/curves/esm/abstract/tower.js.map +1 -0
  845. package/node_modules/@noble/curves/esm/abstract/utils.d.ts +119 -0
  846. package/node_modules/@noble/curves/esm/abstract/utils.d.ts.map +1 -0
  847. package/node_modules/@noble/curves/esm/abstract/utils.js +348 -0
  848. package/node_modules/@noble/curves/esm/abstract/utils.js.map +1 -0
  849. package/node_modules/@noble/curves/esm/abstract/weierstrass.d.ts +260 -0
  850. package/node_modules/@noble/curves/esm/abstract/weierstrass.d.ts.map +1 -0
  851. package/node_modules/@noble/curves/esm/abstract/weierstrass.js +1218 -0
  852. package/node_modules/@noble/curves/esm/abstract/weierstrass.js.map +1 -0
  853. package/node_modules/@noble/curves/esm/bls12-381.d.ts +14 -0
  854. package/node_modules/@noble/curves/esm/bls12-381.d.ts.map +1 -0
  855. package/node_modules/@noble/curves/esm/bls12-381.js +700 -0
  856. package/node_modules/@noble/curves/esm/bls12-381.js.map +1 -0
  857. package/node_modules/@noble/curves/esm/bn254.d.ts +16 -0
  858. package/node_modules/@noble/curves/esm/bn254.d.ts.map +1 -0
  859. package/node_modules/@noble/curves/esm/bn254.js +234 -0
  860. package/node_modules/@noble/curves/esm/bn254.js.map +1 -0
  861. package/node_modules/@noble/curves/esm/ed25519.d.ts +117 -0
  862. package/node_modules/@noble/curves/esm/ed25519.d.ts.map +1 -0
  863. package/node_modules/@noble/curves/esm/ed25519.js +477 -0
  864. package/node_modules/@noble/curves/esm/ed25519.js.map +1 -0
  865. package/node_modules/@noble/curves/esm/ed448.d.ts +98 -0
  866. package/node_modules/@noble/curves/esm/ed448.d.ts.map +1 -0
  867. package/node_modules/@noble/curves/esm/ed448.js +433 -0
  868. package/node_modules/@noble/curves/esm/ed448.js.map +1 -0
  869. package/node_modules/@noble/curves/esm/index.d.ts +2 -0
  870. package/node_modules/@noble/curves/esm/index.d.ts.map +1 -0
  871. package/node_modules/@noble/curves/esm/index.js +19 -0
  872. package/node_modules/@noble/curves/esm/index.js.map +1 -0
  873. package/node_modules/@noble/curves/esm/jubjub.d.ts +12 -0
  874. package/node_modules/@noble/curves/esm/jubjub.d.ts.map +1 -0
  875. package/node_modules/@noble/curves/esm/jubjub.js +12 -0
  876. package/node_modules/@noble/curves/esm/jubjub.js.map +1 -0
  877. package/node_modules/@noble/curves/esm/misc.d.ts +21 -0
  878. package/node_modules/@noble/curves/esm/misc.d.ts.map +1 -0
  879. package/node_modules/@noble/curves/esm/misc.js +107 -0
  880. package/node_modules/@noble/curves/esm/misc.js.map +1 -0
  881. package/node_modules/@noble/curves/esm/nist.d.ts +30 -0
  882. package/node_modules/@noble/curves/esm/nist.d.ts.map +1 -0
  883. package/node_modules/@noble/curves/esm/nist.js +121 -0
  884. package/node_modules/@noble/curves/esm/nist.js.map +1 -0
  885. package/node_modules/@noble/curves/esm/p256.d.ts +12 -0
  886. package/node_modules/@noble/curves/esm/p256.d.ts.map +1 -0
  887. package/node_modules/@noble/curves/esm/p256.js +12 -0
  888. package/node_modules/@noble/curves/esm/p256.js.map +1 -0
  889. package/node_modules/@noble/curves/esm/p384.d.ts +13 -0
  890. package/node_modules/@noble/curves/esm/p384.d.ts.map +1 -0
  891. package/node_modules/@noble/curves/esm/p384.js +13 -0
  892. package/node_modules/@noble/curves/esm/p384.js.map +1 -0
  893. package/node_modules/@noble/curves/esm/p521.d.ts +12 -0
  894. package/node_modules/@noble/curves/esm/p521.d.ts.map +1 -0
  895. package/node_modules/@noble/curves/esm/p521.js +12 -0
  896. package/node_modules/@noble/curves/esm/p521.js.map +1 -0
  897. package/node_modules/@noble/curves/esm/package.json +4 -0
  898. package/node_modules/@noble/curves/esm/pasta.d.ts +10 -0
  899. package/node_modules/@noble/curves/esm/pasta.d.ts.map +1 -0
  900. package/node_modules/@noble/curves/esm/pasta.js +10 -0
  901. package/node_modules/@noble/curves/esm/pasta.js.map +1 -0
  902. package/node_modules/@noble/curves/esm/secp256k1.d.ts +76 -0
  903. package/node_modules/@noble/curves/esm/secp256k1.d.ts.map +1 -0
  904. package/node_modules/@noble/curves/esm/secp256k1.js +287 -0
  905. package/node_modules/@noble/curves/esm/secp256k1.js.map +1 -0
  906. package/node_modules/@noble/curves/index.d.ts +1 -0
  907. package/node_modules/@noble/curves/index.d.ts.map +1 -0
  908. package/node_modules/@noble/curves/index.js +19 -0
  909. package/node_modules/@noble/curves/index.js.map +1 -0
  910. package/node_modules/@noble/curves/jubjub.d.ts +12 -0
  911. package/node_modules/@noble/curves/jubjub.d.ts.map +1 -0
  912. package/node_modules/@noble/curves/jubjub.js +15 -0
  913. package/node_modules/@noble/curves/jubjub.js.map +1 -0
  914. package/node_modules/@noble/curves/misc.d.ts +21 -0
  915. package/node_modules/@noble/curves/misc.d.ts.map +1 -0
  916. package/node_modules/@noble/curves/misc.js +112 -0
  917. package/node_modules/@noble/curves/misc.js.map +1 -0
  918. package/node_modules/@noble/curves/nist.d.ts +30 -0
  919. package/node_modules/@noble/curves/nist.d.ts.map +1 -0
  920. package/node_modules/@noble/curves/nist.js +124 -0
  921. package/node_modules/@noble/curves/nist.js.map +1 -0
  922. package/node_modules/@noble/curves/p256.d.ts +12 -0
  923. package/node_modules/@noble/curves/p256.d.ts.map +1 -0
  924. package/node_modules/@noble/curves/p256.js +9 -0
  925. package/node_modules/@noble/curves/p256.js.map +1 -0
  926. package/node_modules/@noble/curves/p384.d.ts +13 -0
  927. package/node_modules/@noble/curves/p384.d.ts.map +1 -0
  928. package/node_modules/@noble/curves/p384.js +10 -0
  929. package/node_modules/@noble/curves/p384.js.map +1 -0
  930. package/node_modules/@noble/curves/p521.d.ts +12 -0
  931. package/node_modules/@noble/curves/p521.d.ts.map +1 -0
  932. package/node_modules/@noble/curves/p521.js +9 -0
  933. package/node_modules/@noble/curves/p521.js.map +1 -0
  934. package/node_modules/@noble/curves/package.json +284 -0
  935. package/node_modules/@noble/curves/pasta.d.ts +10 -0
  936. package/node_modules/@noble/curves/pasta.d.ts.map +1 -0
  937. package/node_modules/@noble/curves/pasta.js +13 -0
  938. package/node_modules/@noble/curves/pasta.js.map +1 -0
  939. package/node_modules/@noble/curves/secp256k1.d.ts +76 -0
  940. package/node_modules/@noble/curves/secp256k1.d.ts.map +1 -0
  941. package/node_modules/@noble/curves/secp256k1.js +290 -0
  942. package/node_modules/@noble/curves/secp256k1.js.map +1 -0
  943. package/node_modules/@noble/curves/src/_shortw_utils.ts +30 -0
  944. package/node_modules/@noble/curves/src/abstract/bls.ts +570 -0
  945. package/node_modules/@noble/curves/src/abstract/curve.ts +471 -0
  946. package/node_modules/@noble/curves/src/abstract/edwards.ts +569 -0
  947. package/node_modules/@noble/curves/src/abstract/fft.ts +508 -0
  948. package/node_modules/@noble/curves/src/abstract/hash-to-curve.ts +265 -0
  949. package/node_modules/@noble/curves/src/abstract/modular.ts +533 -0
  950. package/node_modules/@noble/curves/src/abstract/montgomery.ts +165 -0
  951. package/node_modules/@noble/curves/src/abstract/poseidon.ts +331 -0
  952. package/node_modules/@noble/curves/src/abstract/tower.ts +650 -0
  953. package/node_modules/@noble/curves/src/abstract/utils.ts +382 -0
  954. package/node_modules/@noble/curves/src/abstract/weierstrass.ts +1437 -0
  955. package/node_modules/@noble/curves/src/bls12-381.ts +754 -0
  956. package/node_modules/@noble/curves/src/bn254.ts +262 -0
  957. package/node_modules/@noble/curves/src/ed25519.ts +552 -0
  958. package/node_modules/@noble/curves/src/ed448.ts +524 -0
  959. package/node_modules/@noble/curves/src/index.ts +17 -0
  960. package/node_modules/@noble/curves/src/jubjub.ts +12 -0
  961. package/node_modules/@noble/curves/src/misc.ts +123 -0
  962. package/node_modules/@noble/curves/src/nist.ts +155 -0
  963. package/node_modules/@noble/curves/src/p256.ts +11 -0
  964. package/node_modules/@noble/curves/src/p384.ts +13 -0
  965. package/node_modules/@noble/curves/src/p521.ts +11 -0
  966. package/node_modules/@noble/curves/src/package.json +3 -0
  967. package/node_modules/@noble/curves/src/pasta.ts +9 -0
  968. package/node_modules/@noble/curves/src/secp256k1.ts +333 -0
  969. package/node_modules/@noble/hashes/LICENSE +21 -0
  970. package/node_modules/@noble/hashes/README.md +521 -0
  971. package/node_modules/@noble/hashes/_assert.d.ts +17 -0
  972. package/node_modules/@noble/hashes/_assert.d.ts.map +1 -0
  973. package/node_modules/@noble/hashes/_assert.js +18 -0
  974. package/node_modules/@noble/hashes/_assert.js.map +1 -0
  975. package/node_modules/@noble/hashes/_blake.d.ts +14 -0
  976. package/node_modules/@noble/hashes/_blake.d.ts.map +1 -0
  977. package/node_modules/@noble/hashes/_blake.js +50 -0
  978. package/node_modules/@noble/hashes/_blake.js.map +1 -0
  979. package/node_modules/@noble/hashes/_md.d.ts +51 -0
  980. package/node_modules/@noble/hashes/_md.d.ts.map +1 -0
  981. package/node_modules/@noble/hashes/_md.js +162 -0
  982. package/node_modules/@noble/hashes/_md.js.map +1 -0
  983. package/node_modules/@noble/hashes/_u64.d.ts +55 -0
  984. package/node_modules/@noble/hashes/_u64.d.ts.map +1 -0
  985. package/node_modules/@noble/hashes/_u64.js +90 -0
  986. package/node_modules/@noble/hashes/_u64.js.map +1 -0
  987. package/node_modules/@noble/hashes/argon2.d.ts +32 -0
  988. package/node_modules/@noble/hashes/argon2.d.ts.map +1 -0
  989. package/node_modules/@noble/hashes/argon2.js +401 -0
  990. package/node_modules/@noble/hashes/argon2.js.map +1 -0
  991. package/node_modules/@noble/hashes/blake1.d.ts +106 -0
  992. package/node_modules/@noble/hashes/blake1.d.ts.map +1 -0
  993. package/node_modules/@noble/hashes/blake1.js +459 -0
  994. package/node_modules/@noble/hashes/blake1.js.map +1 -0
  995. package/node_modules/@noble/hashes/blake2.d.ts +116 -0
  996. package/node_modules/@noble/hashes/blake2.d.ts.map +1 -0
  997. package/node_modules/@noble/hashes/blake2.js +420 -0
  998. package/node_modules/@noble/hashes/blake2.js.map +1 -0
  999. package/node_modules/@noble/hashes/blake2b.d.ts +11 -0
  1000. package/node_modules/@noble/hashes/blake2b.d.ts.map +1 -0
  1001. package/node_modules/@noble/hashes/blake2b.js +14 -0
  1002. package/node_modules/@noble/hashes/blake2b.js.map +1 -0
  1003. package/node_modules/@noble/hashes/blake2s.d.ts +20 -0
  1004. package/node_modules/@noble/hashes/blake2s.d.ts.map +1 -0
  1005. package/node_modules/@noble/hashes/blake2s.js +24 -0
  1006. package/node_modules/@noble/hashes/blake2s.js.map +1 -0
  1007. package/node_modules/@noble/hashes/blake3.d.ts +54 -0
  1008. package/node_modules/@noble/hashes/blake3.d.ts.map +1 -0
  1009. package/node_modules/@noble/hashes/blake3.js +255 -0
  1010. package/node_modules/@noble/hashes/blake3.js.map +1 -0
  1011. package/node_modules/@noble/hashes/crypto.d.ts +2 -0
  1012. package/node_modules/@noble/hashes/crypto.d.ts.map +1 -0
  1013. package/node_modules/@noble/hashes/crypto.js +5 -0
  1014. package/node_modules/@noble/hashes/crypto.js.map +1 -0
  1015. package/node_modules/@noble/hashes/cryptoNode.d.ts +2 -0
  1016. package/node_modules/@noble/hashes/cryptoNode.d.ts.map +1 -0
  1017. package/node_modules/@noble/hashes/cryptoNode.js +18 -0
  1018. package/node_modules/@noble/hashes/cryptoNode.js.map +1 -0
  1019. package/node_modules/@noble/hashes/eskdf.d.ts +47 -0
  1020. package/node_modules/@noble/hashes/eskdf.d.ts.map +1 -0
  1021. package/node_modules/@noble/hashes/eskdf.js +166 -0
  1022. package/node_modules/@noble/hashes/eskdf.js.map +1 -0
  1023. package/node_modules/@noble/hashes/esm/_assert.d.ts +17 -0
  1024. package/node_modules/@noble/hashes/esm/_assert.d.ts.map +1 -0
  1025. package/node_modules/@noble/hashes/esm/_assert.js +15 -0
  1026. package/node_modules/@noble/hashes/esm/_assert.js.map +1 -0
  1027. package/node_modules/@noble/hashes/esm/_blake.d.ts +14 -0
  1028. package/node_modules/@noble/hashes/esm/_blake.d.ts.map +1 -0
  1029. package/node_modules/@noble/hashes/esm/_blake.js +45 -0
  1030. package/node_modules/@noble/hashes/esm/_blake.js.map +1 -0
  1031. package/node_modules/@noble/hashes/esm/_md.d.ts +51 -0
  1032. package/node_modules/@noble/hashes/esm/_md.d.ts.map +1 -0
  1033. package/node_modules/@noble/hashes/esm/_md.js +155 -0
  1034. package/node_modules/@noble/hashes/esm/_md.js.map +1 -0
  1035. package/node_modules/@noble/hashes/esm/_u64.d.ts +55 -0
  1036. package/node_modules/@noble/hashes/esm/_u64.d.ts.map +1 -0
  1037. package/node_modules/@noble/hashes/esm/_u64.js +67 -0
  1038. package/node_modules/@noble/hashes/esm/_u64.js.map +1 -0
  1039. package/node_modules/@noble/hashes/esm/argon2.d.ts +32 -0
  1040. package/node_modules/@noble/hashes/esm/argon2.d.ts.map +1 -0
  1041. package/node_modules/@noble/hashes/esm/argon2.js +392 -0
  1042. package/node_modules/@noble/hashes/esm/argon2.js.map +1 -0
  1043. package/node_modules/@noble/hashes/esm/blake1.d.ts +106 -0
  1044. package/node_modules/@noble/hashes/esm/blake1.d.ts.map +1 -0
  1045. package/node_modules/@noble/hashes/esm/blake1.js +452 -0
  1046. package/node_modules/@noble/hashes/esm/blake1.js.map +1 -0
  1047. package/node_modules/@noble/hashes/esm/blake2.d.ts +116 -0
  1048. package/node_modules/@noble/hashes/esm/blake2.d.ts.map +1 -0
  1049. package/node_modules/@noble/hashes/esm/blake2.js +413 -0
  1050. package/node_modules/@noble/hashes/esm/blake2.js.map +1 -0
  1051. package/node_modules/@noble/hashes/esm/blake2b.d.ts +11 -0
  1052. package/node_modules/@noble/hashes/esm/blake2b.d.ts.map +1 -0
  1053. package/node_modules/@noble/hashes/esm/blake2b.js +11 -0
  1054. package/node_modules/@noble/hashes/esm/blake2b.js.map +1 -0
  1055. package/node_modules/@noble/hashes/esm/blake2s.d.ts +20 -0
  1056. package/node_modules/@noble/hashes/esm/blake2s.d.ts.map +1 -0
  1057. package/node_modules/@noble/hashes/esm/blake2s.js +21 -0
  1058. package/node_modules/@noble/hashes/esm/blake2s.js.map +1 -0
  1059. package/node_modules/@noble/hashes/esm/blake3.d.ts +54 -0
  1060. package/node_modules/@noble/hashes/esm/blake3.d.ts.map +1 -0
  1061. package/node_modules/@noble/hashes/esm/blake3.js +251 -0
  1062. package/node_modules/@noble/hashes/esm/blake3.js.map +1 -0
  1063. package/node_modules/@noble/hashes/esm/crypto.d.ts +2 -0
  1064. package/node_modules/@noble/hashes/esm/crypto.d.ts.map +1 -0
  1065. package/node_modules/@noble/hashes/esm/crypto.js +2 -0
  1066. package/node_modules/@noble/hashes/esm/crypto.js.map +1 -0
  1067. package/node_modules/@noble/hashes/esm/cryptoNode.d.ts +2 -0
  1068. package/node_modules/@noble/hashes/esm/cryptoNode.d.ts.map +1 -0
  1069. package/node_modules/@noble/hashes/esm/cryptoNode.js +15 -0
  1070. package/node_modules/@noble/hashes/esm/cryptoNode.js.map +1 -0
  1071. package/node_modules/@noble/hashes/esm/eskdf.d.ts +47 -0
  1072. package/node_modules/@noble/hashes/esm/eskdf.d.ts.map +1 -0
  1073. package/node_modules/@noble/hashes/esm/eskdf.js +160 -0
  1074. package/node_modules/@noble/hashes/esm/eskdf.js.map +1 -0
  1075. package/node_modules/@noble/hashes/esm/hkdf.d.ts +36 -0
  1076. package/node_modules/@noble/hashes/esm/hkdf.d.ts.map +1 -0
  1077. package/node_modules/@noble/hashes/esm/hkdf.js +82 -0
  1078. package/node_modules/@noble/hashes/esm/hkdf.js.map +1 -0
  1079. package/node_modules/@noble/hashes/esm/hmac.d.ts +35 -0
  1080. package/node_modules/@noble/hashes/esm/hmac.d.ts.map +1 -0
  1081. package/node_modules/@noble/hashes/esm/hmac.js +86 -0
  1082. package/node_modules/@noble/hashes/esm/hmac.js.map +1 -0
  1083. package/node_modules/@noble/hashes/esm/index.d.ts +2 -0
  1084. package/node_modules/@noble/hashes/esm/index.d.ts.map +1 -0
  1085. package/node_modules/@noble/hashes/esm/index.js +33 -0
  1086. package/node_modules/@noble/hashes/esm/index.js.map +1 -0
  1087. package/node_modules/@noble/hashes/esm/legacy.d.ts +71 -0
  1088. package/node_modules/@noble/hashes/esm/legacy.d.ts.map +1 -0
  1089. package/node_modules/@noble/hashes/esm/legacy.js +281 -0
  1090. package/node_modules/@noble/hashes/esm/legacy.js.map +1 -0
  1091. package/node_modules/@noble/hashes/esm/package.json +10 -0
  1092. package/node_modules/@noble/hashes/esm/pbkdf2.d.ts +23 -0
  1093. package/node_modules/@noble/hashes/esm/pbkdf2.d.ts.map +1 -0
  1094. package/node_modules/@noble/hashes/esm/pbkdf2.js +97 -0
  1095. package/node_modules/@noble/hashes/esm/pbkdf2.js.map +1 -0
  1096. package/node_modules/@noble/hashes/esm/ripemd160.d.ts +13 -0
  1097. package/node_modules/@noble/hashes/esm/ripemd160.d.ts.map +1 -0
  1098. package/node_modules/@noble/hashes/esm/ripemd160.js +13 -0
  1099. package/node_modules/@noble/hashes/esm/ripemd160.js.map +1 -0
  1100. package/node_modules/@noble/hashes/esm/scrypt.d.ts +34 -0
  1101. package/node_modules/@noble/hashes/esm/scrypt.d.ts.map +1 -0
  1102. package/node_modules/@noble/hashes/esm/scrypt.js +228 -0
  1103. package/node_modules/@noble/hashes/esm/scrypt.js.map +1 -0
  1104. package/node_modules/@noble/hashes/esm/sha1.d.ts +11 -0
  1105. package/node_modules/@noble/hashes/esm/sha1.d.ts.map +1 -0
  1106. package/node_modules/@noble/hashes/esm/sha1.js +11 -0
  1107. package/node_modules/@noble/hashes/esm/sha1.js.map +1 -0
  1108. package/node_modules/@noble/hashes/esm/sha2.d.ts +159 -0
  1109. package/node_modules/@noble/hashes/esm/sha2.d.ts.map +1 -0
  1110. package/node_modules/@noble/hashes/esm/sha2.js +375 -0
  1111. package/node_modules/@noble/hashes/esm/sha2.js.map +1 -0
  1112. package/node_modules/@noble/hashes/esm/sha256.d.ts +20 -0
  1113. package/node_modules/@noble/hashes/esm/sha256.d.ts.map +1 -0
  1114. package/node_modules/@noble/hashes/esm/sha256.js +20 -0
  1115. package/node_modules/@noble/hashes/esm/sha256.js.map +1 -0
  1116. package/node_modules/@noble/hashes/esm/sha3-addons.d.ts +142 -0
  1117. package/node_modules/@noble/hashes/esm/sha3-addons.d.ts.map +1 -0
  1118. package/node_modules/@noble/hashes/esm/sha3-addons.js +393 -0
  1119. package/node_modules/@noble/hashes/esm/sha3-addons.js.map +1 -0
  1120. package/node_modules/@noble/hashes/esm/sha3.d.ts +53 -0
  1121. package/node_modules/@noble/hashes/esm/sha3.d.ts.map +1 -0
  1122. package/node_modules/@noble/hashes/esm/sha3.js +234 -0
  1123. package/node_modules/@noble/hashes/esm/sha3.js.map +1 -0
  1124. package/node_modules/@noble/hashes/esm/sha512.d.ts +26 -0
  1125. package/node_modules/@noble/hashes/esm/sha512.d.ts.map +1 -0
  1126. package/node_modules/@noble/hashes/esm/sha512.js +26 -0
  1127. package/node_modules/@noble/hashes/esm/sha512.js.map +1 -0
  1128. package/node_modules/@noble/hashes/esm/utils.d.ts +161 -0
  1129. package/node_modules/@noble/hashes/esm/utils.d.ts.map +1 -0
  1130. package/node_modules/@noble/hashes/esm/utils.js +281 -0
  1131. package/node_modules/@noble/hashes/esm/utils.js.map +1 -0
  1132. package/node_modules/@noble/hashes/hkdf.d.ts +36 -0
  1133. package/node_modules/@noble/hashes/hkdf.d.ts.map +1 -0
  1134. package/node_modules/@noble/hashes/hkdf.js +88 -0
  1135. package/node_modules/@noble/hashes/hkdf.js.map +1 -0
  1136. package/node_modules/@noble/hashes/hmac.d.ts +35 -0
  1137. package/node_modules/@noble/hashes/hmac.d.ts.map +1 -0
  1138. package/node_modules/@noble/hashes/hmac.js +91 -0
  1139. package/node_modules/@noble/hashes/hmac.js.map +1 -0
  1140. package/node_modules/@noble/hashes/index.d.ts +1 -0
  1141. package/node_modules/@noble/hashes/index.d.ts.map +1 -0
  1142. package/node_modules/@noble/hashes/index.js +33 -0
  1143. package/node_modules/@noble/hashes/index.js.map +1 -0
  1144. package/node_modules/@noble/hashes/legacy.d.ts +71 -0
  1145. package/node_modules/@noble/hashes/legacy.d.ts.map +1 -0
  1146. package/node_modules/@noble/hashes/legacy.js +287 -0
  1147. package/node_modules/@noble/hashes/legacy.js.map +1 -0
  1148. package/node_modules/@noble/hashes/package.json +266 -0
  1149. package/node_modules/@noble/hashes/pbkdf2.d.ts +23 -0
  1150. package/node_modules/@noble/hashes/pbkdf2.d.ts.map +1 -0
  1151. package/node_modules/@noble/hashes/pbkdf2.js +101 -0
  1152. package/node_modules/@noble/hashes/pbkdf2.js.map +1 -0
  1153. package/node_modules/@noble/hashes/ripemd160.d.ts +13 -0
  1154. package/node_modules/@noble/hashes/ripemd160.d.ts.map +1 -0
  1155. package/node_modules/@noble/hashes/ripemd160.js +16 -0
  1156. package/node_modules/@noble/hashes/ripemd160.js.map +1 -0
  1157. package/node_modules/@noble/hashes/scrypt.d.ts +34 -0
  1158. package/node_modules/@noble/hashes/scrypt.d.ts.map +1 -0
  1159. package/node_modules/@noble/hashes/scrypt.js +232 -0
  1160. package/node_modules/@noble/hashes/scrypt.js.map +1 -0
  1161. package/node_modules/@noble/hashes/sha1.d.ts +11 -0
  1162. package/node_modules/@noble/hashes/sha1.d.ts.map +1 -0
  1163. package/node_modules/@noble/hashes/sha1.js +14 -0
  1164. package/node_modules/@noble/hashes/sha1.js.map +1 -0
  1165. package/node_modules/@noble/hashes/sha2.d.ts +159 -0
  1166. package/node_modules/@noble/hashes/sha2.d.ts.map +1 -0
  1167. package/node_modules/@noble/hashes/sha2.js +384 -0
  1168. package/node_modules/@noble/hashes/sha2.js.map +1 -0
  1169. package/node_modules/@noble/hashes/sha256.d.ts +20 -0
  1170. package/node_modules/@noble/hashes/sha256.d.ts.map +1 -0
  1171. package/node_modules/@noble/hashes/sha256.js +23 -0
  1172. package/node_modules/@noble/hashes/sha256.js.map +1 -0
  1173. package/node_modules/@noble/hashes/sha3-addons.d.ts +142 -0
  1174. package/node_modules/@noble/hashes/sha3-addons.d.ts.map +1 -0
  1175. package/node_modules/@noble/hashes/sha3-addons.js +402 -0
  1176. package/node_modules/@noble/hashes/sha3-addons.js.map +1 -0
  1177. package/node_modules/@noble/hashes/sha3.d.ts +53 -0
  1178. package/node_modules/@noble/hashes/sha3.d.ts.map +1 -0
  1179. package/node_modules/@noble/hashes/sha3.js +239 -0
  1180. package/node_modules/@noble/hashes/sha3.js.map +1 -0
  1181. package/node_modules/@noble/hashes/sha512.d.ts +26 -0
  1182. package/node_modules/@noble/hashes/sha512.d.ts.map +1 -0
  1183. package/node_modules/@noble/hashes/sha512.js +29 -0
  1184. package/node_modules/@noble/hashes/sha512.js.map +1 -0
  1185. package/node_modules/@noble/hashes/src/_assert.ts +22 -0
  1186. package/node_modules/@noble/hashes/src/_blake.ts +50 -0
  1187. package/node_modules/@noble/hashes/src/_md.ts +176 -0
  1188. package/node_modules/@noble/hashes/src/_u64.ts +91 -0
  1189. package/node_modules/@noble/hashes/src/argon2.ts +497 -0
  1190. package/node_modules/@noble/hashes/src/blake1.ts +534 -0
  1191. package/node_modules/@noble/hashes/src/blake2.ts +486 -0
  1192. package/node_modules/@noble/hashes/src/blake2b.ts +10 -0
  1193. package/node_modules/@noble/hashes/src/blake2s.ts +20 -0
  1194. package/node_modules/@noble/hashes/src/blake3.ts +272 -0
  1195. package/node_modules/@noble/hashes/src/crypto.ts +9 -0
  1196. package/node_modules/@noble/hashes/src/cryptoNode.ts +15 -0
  1197. package/node_modules/@noble/hashes/src/eskdf.ts +187 -0
  1198. package/node_modules/@noble/hashes/src/hkdf.ts +88 -0
  1199. package/node_modules/@noble/hashes/src/hmac.ts +94 -0
  1200. package/node_modules/@noble/hashes/src/index.ts +31 -0
  1201. package/node_modules/@noble/hashes/src/legacy.ts +293 -0
  1202. package/node_modules/@noble/hashes/src/pbkdf2.ts +122 -0
  1203. package/node_modules/@noble/hashes/src/ripemd160.ts +12 -0
  1204. package/node_modules/@noble/hashes/src/scrypt.ts +257 -0
  1205. package/node_modules/@noble/hashes/src/sha1.ts +10 -0
  1206. package/node_modules/@noble/hashes/src/sha2.ts +402 -0
  1207. package/node_modules/@noble/hashes/src/sha256.ts +24 -0
  1208. package/node_modules/@noble/hashes/src/sha3-addons.ts +499 -0
  1209. package/node_modules/@noble/hashes/src/sha3.ts +258 -0
  1210. package/node_modules/@noble/hashes/src/sha512.ts +34 -0
  1211. package/node_modules/@noble/hashes/src/utils.ts +395 -0
  1212. package/node_modules/@noble/hashes/utils.d.ts +161 -0
  1213. package/node_modules/@noble/hashes/utils.d.ts.map +1 -0
  1214. package/node_modules/@noble/hashes/utils.js +313 -0
  1215. package/node_modules/@noble/hashes/utils.js.map +1 -0
  1216. package/node_modules/@solana/buffer-layout/LICENSE +21 -0
  1217. package/node_modules/@solana/buffer-layout/README.md +403 -0
  1218. package/node_modules/@solana/buffer-layout/lib/Layout.d.ts +1191 -0
  1219. package/node_modules/@solana/buffer-layout/lib/Layout.js +2390 -0
  1220. package/node_modules/@solana/buffer-layout/lib/Layout.js.map +1 -0
  1221. package/node_modules/@solana/buffer-layout/package.json +55 -0
  1222. package/node_modules/@solana/codecs-core/LICENSE +20 -0
  1223. package/node_modules/@solana/codecs-core/README.md +662 -0
  1224. package/node_modules/@solana/codecs-core/dist/index.browser.cjs +504 -0
  1225. package/node_modules/@solana/codecs-core/dist/index.browser.cjs.map +1 -0
  1226. package/node_modules/@solana/codecs-core/dist/index.browser.mjs +460 -0
  1227. package/node_modules/@solana/codecs-core/dist/index.browser.mjs.map +1 -0
  1228. package/node_modules/@solana/codecs-core/dist/index.native.mjs +460 -0
  1229. package/node_modules/@solana/codecs-core/dist/index.native.mjs.map +1 -0
  1230. package/node_modules/@solana/codecs-core/dist/index.node.cjs +504 -0
  1231. package/node_modules/@solana/codecs-core/dist/index.node.cjs.map +1 -0
  1232. package/node_modules/@solana/codecs-core/dist/index.node.mjs +460 -0
  1233. package/node_modules/@solana/codecs-core/dist/index.node.mjs.map +1 -0
  1234. package/node_modules/@solana/codecs-core/dist/types/add-codec-sentinel.d.ts +70 -0
  1235. package/node_modules/@solana/codecs-core/dist/types/add-codec-sentinel.d.ts.map +1 -0
  1236. package/node_modules/@solana/codecs-core/dist/types/add-codec-size-prefix.d.ts +67 -0
  1237. package/node_modules/@solana/codecs-core/dist/types/add-codec-size-prefix.d.ts.map +1 -0
  1238. package/node_modules/@solana/codecs-core/dist/types/assertions.d.ts +62 -0
  1239. package/node_modules/@solana/codecs-core/dist/types/assertions.d.ts.map +1 -0
  1240. package/node_modules/@solana/codecs-core/dist/types/bytes.d.ts +92 -0
  1241. package/node_modules/@solana/codecs-core/dist/types/bytes.d.ts.map +1 -0
  1242. package/node_modules/@solana/codecs-core/dist/types/codec.d.ts +827 -0
  1243. package/node_modules/@solana/codecs-core/dist/types/codec.d.ts.map +1 -0
  1244. package/node_modules/@solana/codecs-core/dist/types/combine-codec.d.ts +75 -0
  1245. package/node_modules/@solana/codecs-core/dist/types/combine-codec.d.ts.map +1 -0
  1246. package/node_modules/@solana/codecs-core/dist/types/fix-codec-size.d.ts +111 -0
  1247. package/node_modules/@solana/codecs-core/dist/types/fix-codec-size.d.ts.map +1 -0
  1248. package/node_modules/@solana/codecs-core/dist/types/index.d.ts +667 -0
  1249. package/node_modules/@solana/codecs-core/dist/types/index.d.ts.map +1 -0
  1250. package/node_modules/@solana/codecs-core/dist/types/offset-codec.d.ts +328 -0
  1251. package/node_modules/@solana/codecs-core/dist/types/offset-codec.d.ts.map +1 -0
  1252. package/node_modules/@solana/codecs-core/dist/types/pad-codec.d.ts +162 -0
  1253. package/node_modules/@solana/codecs-core/dist/types/pad-codec.d.ts.map +1 -0
  1254. package/node_modules/@solana/codecs-core/dist/types/readonly-uint8array.d.ts +19 -0
  1255. package/node_modules/@solana/codecs-core/dist/types/readonly-uint8array.d.ts.map +1 -0
  1256. package/node_modules/@solana/codecs-core/dist/types/resize-codec.d.ts +129 -0
  1257. package/node_modules/@solana/codecs-core/dist/types/resize-codec.d.ts.map +1 -0
  1258. package/node_modules/@solana/codecs-core/dist/types/reverse-codec.d.ts +92 -0
  1259. package/node_modules/@solana/codecs-core/dist/types/reverse-codec.d.ts.map +1 -0
  1260. package/node_modules/@solana/codecs-core/dist/types/transform-codec.d.ts +114 -0
  1261. package/node_modules/@solana/codecs-core/dist/types/transform-codec.d.ts.map +1 -0
  1262. package/node_modules/@solana/codecs-core/package.json +83 -0
  1263. package/node_modules/@solana/codecs-numbers/LICENSE +20 -0
  1264. package/node_modules/@solana/codecs-numbers/README.md +130 -0
  1265. package/node_modules/@solana/codecs-numbers/dist/index.browser.cjs +331 -0
  1266. package/node_modules/@solana/codecs-numbers/dist/index.browser.cjs.map +1 -0
  1267. package/node_modules/@solana/codecs-numbers/dist/index.browser.mjs +289 -0
  1268. package/node_modules/@solana/codecs-numbers/dist/index.browser.mjs.map +1 -0
  1269. package/node_modules/@solana/codecs-numbers/dist/index.native.mjs +289 -0
  1270. package/node_modules/@solana/codecs-numbers/dist/index.native.mjs.map +1 -0
  1271. package/node_modules/@solana/codecs-numbers/dist/index.node.cjs +331 -0
  1272. package/node_modules/@solana/codecs-numbers/dist/index.node.cjs.map +1 -0
  1273. package/node_modules/@solana/codecs-numbers/dist/index.node.mjs +289 -0
  1274. package/node_modules/@solana/codecs-numbers/dist/index.node.mjs.map +1 -0
  1275. package/node_modules/@solana/codecs-numbers/dist/types/assertions.d.ts +27 -0
  1276. package/node_modules/@solana/codecs-numbers/dist/types/assertions.d.ts.map +1 -0
  1277. package/node_modules/@solana/codecs-numbers/dist/types/common.d.ts +84 -0
  1278. package/node_modules/@solana/codecs-numbers/dist/types/common.d.ts.map +1 -0
  1279. package/node_modules/@solana/codecs-numbers/dist/types/f32.d.ts +87 -0
  1280. package/node_modules/@solana/codecs-numbers/dist/types/f32.d.ts.map +1 -0
  1281. package/node_modules/@solana/codecs-numbers/dist/types/f64.d.ts +87 -0
  1282. package/node_modules/@solana/codecs-numbers/dist/types/f64.d.ts.map +1 -0
  1283. package/node_modules/@solana/codecs-numbers/dist/types/i128.d.ts +91 -0
  1284. package/node_modules/@solana/codecs-numbers/dist/types/i128.d.ts.map +1 -0
  1285. package/node_modules/@solana/codecs-numbers/dist/types/i16.d.ts +87 -0
  1286. package/node_modules/@solana/codecs-numbers/dist/types/i16.d.ts.map +1 -0
  1287. package/node_modules/@solana/codecs-numbers/dist/types/i32.d.ts +87 -0
  1288. package/node_modules/@solana/codecs-numbers/dist/types/i32.d.ts.map +1 -0
  1289. package/node_modules/@solana/codecs-numbers/dist/types/i64.d.ts +90 -0
  1290. package/node_modules/@solana/codecs-numbers/dist/types/i64.d.ts.map +1 -0
  1291. package/node_modules/@solana/codecs-numbers/dist/types/i8.d.ts +75 -0
  1292. package/node_modules/@solana/codecs-numbers/dist/types/i8.d.ts.map +1 -0
  1293. package/node_modules/@solana/codecs-numbers/dist/types/index.d.ts +26 -0
  1294. package/node_modules/@solana/codecs-numbers/dist/types/index.d.ts.map +1 -0
  1295. package/node_modules/@solana/codecs-numbers/dist/types/short-u16.d.ts +96 -0
  1296. package/node_modules/@solana/codecs-numbers/dist/types/short-u16.d.ts.map +1 -0
  1297. package/node_modules/@solana/codecs-numbers/dist/types/u128.d.ts +87 -0
  1298. package/node_modules/@solana/codecs-numbers/dist/types/u128.d.ts.map +1 -0
  1299. package/node_modules/@solana/codecs-numbers/dist/types/u16.d.ts +85 -0
  1300. package/node_modules/@solana/codecs-numbers/dist/types/u16.d.ts.map +1 -0
  1301. package/node_modules/@solana/codecs-numbers/dist/types/u32.d.ts +85 -0
  1302. package/node_modules/@solana/codecs-numbers/dist/types/u32.d.ts.map +1 -0
  1303. package/node_modules/@solana/codecs-numbers/dist/types/u64.d.ts +88 -0
  1304. package/node_modules/@solana/codecs-numbers/dist/types/u64.d.ts.map +1 -0
  1305. package/node_modules/@solana/codecs-numbers/dist/types/u8.d.ts +71 -0
  1306. package/node_modules/@solana/codecs-numbers/dist/types/u8.d.ts.map +1 -0
  1307. package/node_modules/@solana/codecs-numbers/dist/types/utils.d.ts +18 -0
  1308. package/node_modules/@solana/codecs-numbers/dist/types/utils.d.ts.map +1 -0
  1309. package/node_modules/@solana/codecs-numbers/package.json +83 -0
  1310. package/node_modules/@solana/errors/LICENSE +20 -0
  1311. package/node_modules/@solana/errors/README.md +87 -0
  1312. package/node_modules/@solana/errors/bin/cli.mjs +7 -0
  1313. package/node_modules/@solana/errors/dist/cli.mjs +570 -0
  1314. package/node_modules/@solana/errors/dist/index.browser.cjs +1084 -0
  1315. package/node_modules/@solana/errors/dist/index.browser.cjs.map +1 -0
  1316. package/node_modules/@solana/errors/dist/index.browser.mjs +852 -0
  1317. package/node_modules/@solana/errors/dist/index.browser.mjs.map +1 -0
  1318. package/node_modules/@solana/errors/dist/index.native.mjs +852 -0
  1319. package/node_modules/@solana/errors/dist/index.native.mjs.map +1 -0
  1320. package/node_modules/@solana/errors/dist/index.node.cjs +1084 -0
  1321. package/node_modules/@solana/errors/dist/index.node.cjs.map +1 -0
  1322. package/node_modules/@solana/errors/dist/index.node.mjs +852 -0
  1323. package/node_modules/@solana/errors/dist/index.node.mjs.map +1 -0
  1324. package/node_modules/@solana/errors/dist/types/codes.d.ts +275 -0
  1325. package/node_modules/@solana/errors/dist/types/codes.d.ts.map +1 -0
  1326. package/node_modules/@solana/errors/dist/types/context.d.ts +398 -0
  1327. package/node_modules/@solana/errors/dist/types/context.d.ts.map +1 -0
  1328. package/node_modules/@solana/errors/dist/types/error.d.ts +75 -0
  1329. package/node_modules/@solana/errors/dist/types/error.d.ts.map +1 -0
  1330. package/node_modules/@solana/errors/dist/types/index.d.ts +72 -0
  1331. package/node_modules/@solana/errors/dist/types/index.d.ts.map +1 -0
  1332. package/node_modules/@solana/errors/dist/types/instruction-error.d.ts +9 -0
  1333. package/node_modules/@solana/errors/dist/types/instruction-error.d.ts.map +1 -0
  1334. package/node_modules/@solana/errors/dist/types/json-rpc-error.d.ts +51 -0
  1335. package/node_modules/@solana/errors/dist/types/json-rpc-error.d.ts.map +1 -0
  1336. package/node_modules/@solana/errors/dist/types/message-formatter.d.ts +4 -0
  1337. package/node_modules/@solana/errors/dist/types/message-formatter.d.ts.map +1 -0
  1338. package/node_modules/@solana/errors/dist/types/messages.d.ts +16 -0
  1339. package/node_modules/@solana/errors/dist/types/messages.d.ts.map +1 -0
  1340. package/node_modules/@solana/errors/dist/types/rpc-enum-errors.d.ts +31 -0
  1341. package/node_modules/@solana/errors/dist/types/rpc-enum-errors.d.ts.map +1 -0
  1342. package/node_modules/@solana/errors/dist/types/stack-trace.d.ts +2 -0
  1343. package/node_modules/@solana/errors/dist/types/stack-trace.d.ts.map +1 -0
  1344. package/node_modules/@solana/errors/dist/types/transaction-error.d.ts +5 -0
  1345. package/node_modules/@solana/errors/dist/types/transaction-error.d.ts.map +1 -0
  1346. package/node_modules/@solana/errors/node_modules/chalk/license +9 -0
  1347. package/node_modules/@solana/errors/node_modules/chalk/package.json +83 -0
  1348. package/node_modules/@solana/errors/node_modules/chalk/readme.md +297 -0
  1349. package/node_modules/@solana/errors/node_modules/chalk/source/index.d.ts +325 -0
  1350. package/node_modules/@solana/errors/node_modules/chalk/source/index.js +225 -0
  1351. package/node_modules/@solana/errors/node_modules/chalk/source/utilities.js +33 -0
  1352. package/node_modules/@solana/errors/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
  1353. package/node_modules/@solana/errors/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
  1354. package/node_modules/@solana/errors/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
  1355. package/node_modules/@solana/errors/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
  1356. package/node_modules/@solana/errors/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
  1357. package/node_modules/@solana/errors/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
  1358. package/node_modules/@solana/errors/node_modules/commander/LICENSE +22 -0
  1359. package/node_modules/@solana/errors/node_modules/commander/Readme.md +1149 -0
  1360. package/node_modules/@solana/errors/node_modules/commander/esm.mjs +16 -0
  1361. package/node_modules/@solana/errors/node_modules/commander/index.js +24 -0
  1362. package/node_modules/@solana/errors/node_modules/commander/lib/argument.js +149 -0
  1363. package/node_modules/@solana/errors/node_modules/commander/lib/command.js +2662 -0
  1364. package/node_modules/@solana/errors/node_modules/commander/lib/error.js +39 -0
  1365. package/node_modules/@solana/errors/node_modules/commander/lib/help.js +709 -0
  1366. package/node_modules/@solana/errors/node_modules/commander/lib/option.js +367 -0
  1367. package/node_modules/@solana/errors/node_modules/commander/lib/suggestSimilar.js +101 -0
  1368. package/node_modules/@solana/errors/node_modules/commander/package-support.json +16 -0
  1369. package/node_modules/@solana/errors/node_modules/commander/package.json +82 -0
  1370. package/node_modules/@solana/errors/node_modules/commander/typings/esm.d.mts +3 -0
  1371. package/node_modules/@solana/errors/node_modules/commander/typings/index.d.ts +1045 -0
  1372. package/node_modules/@solana/errors/package.json +84 -0
  1373. package/node_modules/@solana/web3.js/LICENSE +20 -0
  1374. package/node_modules/@solana/web3.js/README.md +145 -0
  1375. package/node_modules/@solana/web3.js/lib/index.browser.cjs.js +10562 -0
  1376. package/node_modules/@solana/web3.js/lib/index.browser.cjs.js.map +1 -0
  1377. package/node_modules/@solana/web3.js/lib/index.browser.esm.js +10461 -0
  1378. package/node_modules/@solana/web3.js/lib/index.browser.esm.js.map +1 -0
  1379. package/node_modules/@solana/web3.js/lib/index.cjs.js +11311 -0
  1380. package/node_modules/@solana/web3.js/lib/index.cjs.js.map +1 -0
  1381. package/node_modules/@solana/web3.js/lib/index.d.ts +4021 -0
  1382. package/node_modules/@solana/web3.js/lib/index.esm.js +11206 -0
  1383. package/node_modules/@solana/web3.js/lib/index.esm.js.map +1 -0
  1384. package/node_modules/@solana/web3.js/lib/index.iife.js +26083 -0
  1385. package/node_modules/@solana/web3.js/lib/index.iife.js.map +1 -0
  1386. package/node_modules/@solana/web3.js/lib/index.iife.min.js +20 -0
  1387. package/node_modules/@solana/web3.js/lib/index.iife.min.js.map +1 -0
  1388. package/node_modules/@solana/web3.js/lib/index.native.js +10562 -0
  1389. package/node_modules/@solana/web3.js/lib/index.native.js.map +1 -0
  1390. package/node_modules/@solana/web3.js/node_modules/superstruct/License.md +9 -0
  1391. package/node_modules/@solana/web3.js/node_modules/superstruct/Readme.md +230 -0
  1392. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/error.d.ts +33 -0
  1393. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/error.d.ts.map +1 -0
  1394. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/index.cjs +1084 -0
  1395. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/index.cjs.map +1 -0
  1396. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/index.d.ts +7 -0
  1397. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/index.d.ts.map +1 -0
  1398. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/index.mjs +1026 -0
  1399. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/index.mjs.map +1 -0
  1400. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/struct.d.ts +119 -0
  1401. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/struct.d.ts.map +1 -0
  1402. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/structs/coercions.d.ts +29 -0
  1403. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/structs/coercions.d.ts.map +1 -0
  1404. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/structs/refinements.d.ts +38 -0
  1405. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/structs/refinements.d.ts.map +1 -0
  1406. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/structs/types.d.ts +142 -0
  1407. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/structs/types.d.ts.map +1 -0
  1408. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/structs/utilities.d.ts +66 -0
  1409. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/structs/utilities.d.ts.map +1 -0
  1410. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/utils.d.ts +144 -0
  1411. package/node_modules/@solana/web3.js/node_modules/superstruct/dist/utils.d.ts.map +1 -0
  1412. package/node_modules/@solana/web3.js/node_modules/superstruct/package.json +85 -0
  1413. package/node_modules/@solana/web3.js/package.json +75 -0
  1414. package/node_modules/@solana/web3.js/src/__forks__/browser/fetch-impl.ts +4 -0
  1415. package/node_modules/@solana/web3.js/src/__forks__/react-native/fetch-impl.ts +4 -0
  1416. package/node_modules/@solana/web3.js/src/account-data.ts +39 -0
  1417. package/node_modules/@solana/web3.js/src/account.ts +55 -0
  1418. package/node_modules/@solana/web3.js/src/blockhash.ts +4 -0
  1419. package/node_modules/@solana/web3.js/src/bpf-loader-deprecated.ts +5 -0
  1420. package/node_modules/@solana/web3.js/src/bpf-loader.ts +50 -0
  1421. package/node_modules/@solana/web3.js/src/connection.ts +6955 -0
  1422. package/node_modules/@solana/web3.js/src/epoch-schedule.ts +102 -0
  1423. package/node_modules/@solana/web3.js/src/errors.ts +133 -0
  1424. package/node_modules/@solana/web3.js/src/fee-calculator.ts +18 -0
  1425. package/node_modules/@solana/web3.js/src/fetch-impl.ts +16 -0
  1426. package/node_modules/@solana/web3.js/src/index.ts +24 -0
  1427. package/node_modules/@solana/web3.js/src/instruction.ts +58 -0
  1428. package/node_modules/@solana/web3.js/src/keypair.ts +102 -0
  1429. package/node_modules/@solana/web3.js/src/layout.ts +188 -0
  1430. package/node_modules/@solana/web3.js/src/loader.ts +267 -0
  1431. package/node_modules/@solana/web3.js/src/message/account-keys.ts +79 -0
  1432. package/node_modules/@solana/web3.js/src/message/compiled-keys.ts +165 -0
  1433. package/node_modules/@solana/web3.js/src/message/index.ts +47 -0
  1434. package/node_modules/@solana/web3.js/src/message/legacy.ts +323 -0
  1435. package/node_modules/@solana/web3.js/src/message/v0.ts +513 -0
  1436. package/node_modules/@solana/web3.js/src/message/versioned.ts +36 -0
  1437. package/node_modules/@solana/web3.js/src/nonce-account.ts +82 -0
  1438. package/node_modules/@solana/web3.js/src/programs/address-lookup-table/index.ts +438 -0
  1439. package/node_modules/@solana/web3.js/src/programs/address-lookup-table/state.ts +84 -0
  1440. package/node_modules/@solana/web3.js/src/programs/compute-budget.ts +281 -0
  1441. package/node_modules/@solana/web3.js/src/programs/ed25519.ts +157 -0
  1442. package/node_modules/@solana/web3.js/src/programs/index.ts +7 -0
  1443. package/node_modules/@solana/web3.js/src/programs/secp256k1.ts +228 -0
  1444. package/node_modules/@solana/web3.js/src/programs/stake.ts +952 -0
  1445. package/node_modules/@solana/web3.js/src/programs/system.ts +1048 -0
  1446. package/node_modules/@solana/web3.js/src/programs/vote.ts +586 -0
  1447. package/node_modules/@solana/web3.js/src/publickey.ts +259 -0
  1448. package/node_modules/@solana/web3.js/src/rpc-websocket.ts +75 -0
  1449. package/node_modules/@solana/web3.js/src/sysvar.ts +37 -0
  1450. package/node_modules/@solana/web3.js/src/timing.ts +23 -0
  1451. package/node_modules/@solana/web3.js/src/transaction/constants.ts +12 -0
  1452. package/node_modules/@solana/web3.js/src/transaction/expiry-custom-errors.ts +48 -0
  1453. package/node_modules/@solana/web3.js/src/transaction/index.ts +5 -0
  1454. package/node_modules/@solana/web3.js/src/transaction/legacy.ts +970 -0
  1455. package/node_modules/@solana/web3.js/src/transaction/message.ts +140 -0
  1456. package/node_modules/@solana/web3.js/src/transaction/versioned.ts +127 -0
  1457. package/node_modules/@solana/web3.js/src/utils/assert.ts +8 -0
  1458. package/node_modules/@solana/web3.js/src/utils/bigint.ts +24 -0
  1459. package/node_modules/@solana/web3.js/src/utils/borsh-schema.ts +38 -0
  1460. package/node_modules/@solana/web3.js/src/utils/cluster.ts +35 -0
  1461. package/node_modules/@solana/web3.js/src/utils/ed25519.ts +43 -0
  1462. package/node_modules/@solana/web3.js/src/utils/guarded-array-utils.ts +34 -0
  1463. package/node_modules/@solana/web3.js/src/utils/index.ts +5 -0
  1464. package/node_modules/@solana/web3.js/src/utils/makeWebsocketUrl.ts +26 -0
  1465. package/node_modules/@solana/web3.js/src/utils/promise-timeout.ts +14 -0
  1466. package/node_modules/@solana/web3.js/src/utils/secp256k1.ts +11 -0
  1467. package/node_modules/@solana/web3.js/src/utils/send-and-confirm-raw-transaction.ts +110 -0
  1468. package/node_modules/@solana/web3.js/src/utils/send-and-confirm-transaction.ts +106 -0
  1469. package/node_modules/@solana/web3.js/src/utils/shortvec-encoding.ts +28 -0
  1470. package/node_modules/@solana/web3.js/src/utils/sleep.ts +4 -0
  1471. package/node_modules/@solana/web3.js/src/utils/to-buffer.ts +11 -0
  1472. package/node_modules/@solana/web3.js/src/validator-info.ts +108 -0
  1473. package/node_modules/@solana/web3.js/src/vote-account.ts +236 -0
  1474. package/node_modules/@swc/helpers/LICENSE +201 -0
  1475. package/node_modules/@swc/helpers/_/_apply_decorated_descriptor/package.json +4 -0
  1476. package/node_modules/@swc/helpers/_/_apply_decs_2203_r/package.json +4 -0
  1477. package/node_modules/@swc/helpers/_/_array_like_to_array/package.json +4 -0
  1478. package/node_modules/@swc/helpers/_/_array_with_holes/package.json +4 -0
  1479. package/node_modules/@swc/helpers/_/_array_without_holes/package.json +4 -0
  1480. package/node_modules/@swc/helpers/_/_assert_this_initialized/package.json +4 -0
  1481. package/node_modules/@swc/helpers/_/_async_generator/package.json +4 -0
  1482. package/node_modules/@swc/helpers/_/_async_generator_delegate/package.json +4 -0
  1483. package/node_modules/@swc/helpers/_/_async_iterator/package.json +4 -0
  1484. package/node_modules/@swc/helpers/_/_async_to_generator/package.json +4 -0
  1485. package/node_modules/@swc/helpers/_/_await_async_generator/package.json +4 -0
  1486. package/node_modules/@swc/helpers/_/_await_value/package.json +4 -0
  1487. package/node_modules/@swc/helpers/_/_call_super/package.json +4 -0
  1488. package/node_modules/@swc/helpers/_/_check_private_redeclaration/package.json +4 -0
  1489. package/node_modules/@swc/helpers/_/_class_apply_descriptor_destructure/package.json +4 -0
  1490. package/node_modules/@swc/helpers/_/_class_apply_descriptor_get/package.json +4 -0
  1491. package/node_modules/@swc/helpers/_/_class_apply_descriptor_set/package.json +4 -0
  1492. package/node_modules/@swc/helpers/_/_class_apply_descriptor_update/package.json +4 -0
  1493. package/node_modules/@swc/helpers/_/_class_call_check/package.json +4 -0
  1494. package/node_modules/@swc/helpers/_/_class_check_private_static_access/package.json +4 -0
  1495. package/node_modules/@swc/helpers/_/_class_check_private_static_field_descriptor/package.json +4 -0
  1496. package/node_modules/@swc/helpers/_/_class_extract_field_descriptor/package.json +4 -0
  1497. package/node_modules/@swc/helpers/_/_class_name_tdz_error/package.json +4 -0
  1498. package/node_modules/@swc/helpers/_/_class_private_field_destructure/package.json +4 -0
  1499. package/node_modules/@swc/helpers/_/_class_private_field_get/package.json +4 -0
  1500. package/node_modules/@swc/helpers/_/_class_private_field_init/package.json +4 -0
  1501. package/node_modules/@swc/helpers/_/_class_private_field_loose_base/package.json +4 -0
  1502. package/node_modules/@swc/helpers/_/_class_private_field_loose_key/package.json +4 -0
  1503. package/node_modules/@swc/helpers/_/_class_private_field_set/package.json +4 -0
  1504. package/node_modules/@swc/helpers/_/_class_private_field_update/package.json +4 -0
  1505. package/node_modules/@swc/helpers/_/_class_private_method_get/package.json +4 -0
  1506. package/node_modules/@swc/helpers/_/_class_private_method_init/package.json +4 -0
  1507. package/node_modules/@swc/helpers/_/_class_private_method_set/package.json +4 -0
  1508. package/node_modules/@swc/helpers/_/_class_static_private_field_destructure/package.json +4 -0
  1509. package/node_modules/@swc/helpers/_/_class_static_private_field_spec_get/package.json +4 -0
  1510. package/node_modules/@swc/helpers/_/_class_static_private_field_spec_set/package.json +4 -0
  1511. package/node_modules/@swc/helpers/_/_class_static_private_field_update/package.json +4 -0
  1512. package/node_modules/@swc/helpers/_/_class_static_private_method_get/package.json +4 -0
  1513. package/node_modules/@swc/helpers/_/_construct/package.json +4 -0
  1514. package/node_modules/@swc/helpers/_/_create_class/package.json +4 -0
  1515. package/node_modules/@swc/helpers/_/_create_for_of_iterator_helper_loose/package.json +4 -0
  1516. package/node_modules/@swc/helpers/_/_create_super/package.json +4 -0
  1517. package/node_modules/@swc/helpers/_/_decorate/package.json +4 -0
  1518. package/node_modules/@swc/helpers/_/_defaults/package.json +4 -0
  1519. package/node_modules/@swc/helpers/_/_define_enumerable_properties/package.json +4 -0
  1520. package/node_modules/@swc/helpers/_/_define_property/package.json +4 -0
  1521. package/node_modules/@swc/helpers/_/_dispose/package.json +4 -0
  1522. package/node_modules/@swc/helpers/_/_export_star/package.json +4 -0
  1523. package/node_modules/@swc/helpers/_/_extends/package.json +4 -0
  1524. package/node_modules/@swc/helpers/_/_get/package.json +4 -0
  1525. package/node_modules/@swc/helpers/_/_get_prototype_of/package.json +4 -0
  1526. package/node_modules/@swc/helpers/_/_identity/package.json +4 -0
  1527. package/node_modules/@swc/helpers/_/_inherits/package.json +4 -0
  1528. package/node_modules/@swc/helpers/_/_inherits_loose/package.json +4 -0
  1529. package/node_modules/@swc/helpers/_/_initializer_define_property/package.json +4 -0
  1530. package/node_modules/@swc/helpers/_/_initializer_warning_helper/package.json +4 -0
  1531. package/node_modules/@swc/helpers/_/_instanceof/package.json +4 -0
  1532. package/node_modules/@swc/helpers/_/_interop_require_default/package.json +4 -0
  1533. package/node_modules/@swc/helpers/_/_interop_require_wildcard/package.json +4 -0
  1534. package/node_modules/@swc/helpers/_/_is_native_function/package.json +4 -0
  1535. package/node_modules/@swc/helpers/_/_is_native_reflect_construct/package.json +4 -0
  1536. package/node_modules/@swc/helpers/_/_iterable_to_array/package.json +4 -0
  1537. package/node_modules/@swc/helpers/_/_iterable_to_array_limit/package.json +4 -0
  1538. package/node_modules/@swc/helpers/_/_iterable_to_array_limit_loose/package.json +4 -0
  1539. package/node_modules/@swc/helpers/_/_jsx/package.json +4 -0
  1540. package/node_modules/@swc/helpers/_/_new_arrow_check/package.json +4 -0
  1541. package/node_modules/@swc/helpers/_/_non_iterable_rest/package.json +4 -0
  1542. package/node_modules/@swc/helpers/_/_non_iterable_spread/package.json +4 -0
  1543. package/node_modules/@swc/helpers/_/_object_destructuring_empty/package.json +4 -0
  1544. package/node_modules/@swc/helpers/_/_object_spread/package.json +4 -0
  1545. package/node_modules/@swc/helpers/_/_object_spread_props/package.json +4 -0
  1546. package/node_modules/@swc/helpers/_/_object_without_properties/package.json +4 -0
  1547. package/node_modules/@swc/helpers/_/_object_without_properties_loose/package.json +4 -0
  1548. package/node_modules/@swc/helpers/_/_overload_yield/package.json +4 -0
  1549. package/node_modules/@swc/helpers/_/_possible_constructor_return/package.json +4 -0
  1550. package/node_modules/@swc/helpers/_/_read_only_error/package.json +4 -0
  1551. package/node_modules/@swc/helpers/_/_set/package.json +4 -0
  1552. package/node_modules/@swc/helpers/_/_set_prototype_of/package.json +4 -0
  1553. package/node_modules/@swc/helpers/_/_skip_first_generator_next/package.json +4 -0
  1554. package/node_modules/@swc/helpers/_/_sliced_to_array/package.json +4 -0
  1555. package/node_modules/@swc/helpers/_/_sliced_to_array_loose/package.json +4 -0
  1556. package/node_modules/@swc/helpers/_/_super_prop_base/package.json +4 -0
  1557. package/node_modules/@swc/helpers/_/_tagged_template_literal/package.json +4 -0
  1558. package/node_modules/@swc/helpers/_/_tagged_template_literal_loose/package.json +4 -0
  1559. package/node_modules/@swc/helpers/_/_throw/package.json +4 -0
  1560. package/node_modules/@swc/helpers/_/_to_array/package.json +4 -0
  1561. package/node_modules/@swc/helpers/_/_to_consumable_array/package.json +4 -0
  1562. package/node_modules/@swc/helpers/_/_to_primitive/package.json +4 -0
  1563. package/node_modules/@swc/helpers/_/_to_property_key/package.json +4 -0
  1564. package/node_modules/@swc/helpers/_/_ts_add_disposable_resource/package.json +4 -0
  1565. package/node_modules/@swc/helpers/_/_ts_decorate/package.json +4 -0
  1566. package/node_modules/@swc/helpers/_/_ts_dispose_resources/package.json +4 -0
  1567. package/node_modules/@swc/helpers/_/_ts_generator/package.json +4 -0
  1568. package/node_modules/@swc/helpers/_/_ts_metadata/package.json +4 -0
  1569. package/node_modules/@swc/helpers/_/_ts_param/package.json +4 -0
  1570. package/node_modules/@swc/helpers/_/_ts_values/package.json +4 -0
  1571. package/node_modules/@swc/helpers/_/_type_of/package.json +4 -0
  1572. package/node_modules/@swc/helpers/_/_unsupported_iterable_to_array/package.json +4 -0
  1573. package/node_modules/@swc/helpers/_/_update/package.json +4 -0
  1574. package/node_modules/@swc/helpers/_/_using/package.json +4 -0
  1575. package/node_modules/@swc/helpers/_/_using_ctx/package.json +4 -0
  1576. package/node_modules/@swc/helpers/_/_wrap_async_generator/package.json +4 -0
  1577. package/node_modules/@swc/helpers/_/_wrap_native_super/package.json +4 -0
  1578. package/node_modules/@swc/helpers/_/_write_only_error/package.json +4 -0
  1579. package/node_modules/@swc/helpers/_/index/package.json +4 -0
  1580. package/node_modules/@swc/helpers/cjs/_apply_decorated_descriptor.cjs +35 -0
  1581. package/node_modules/@swc/helpers/cjs/_apply_decs_2203_r.cjs +550 -0
  1582. package/node_modules/@swc/helpers/cjs/_array_like_to_array.cjs +10 -0
  1583. package/node_modules/@swc/helpers/cjs/_array_with_holes.cjs +6 -0
  1584. package/node_modules/@swc/helpers/cjs/_array_without_holes.cjs +8 -0
  1585. package/node_modules/@swc/helpers/cjs/_assert_this_initialized.cjs +8 -0
  1586. package/node_modules/@swc/helpers/cjs/_async_generator.cjs +76 -0
  1587. package/node_modules/@swc/helpers/cjs/_async_generator_delegate.cjs +53 -0
  1588. package/node_modules/@swc/helpers/cjs/_async_iterator.cjs +46 -0
  1589. package/node_modules/@swc/helpers/cjs/_async_to_generator.cjs +33 -0
  1590. package/node_modules/@swc/helpers/cjs/_await_async_generator.cjs +8 -0
  1591. package/node_modules/@swc/helpers/cjs/_await_value.cjs +6 -0
  1592. package/node_modules/@swc/helpers/cjs/_call_super.cjs +19 -0
  1593. package/node_modules/@swc/helpers/cjs/_check_private_redeclaration.cjs +8 -0
  1594. package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_destructure.cjs +25 -0
  1595. package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_get.cjs +8 -0
  1596. package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_set.cjs +15 -0
  1597. package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_update.cjs +30 -0
  1598. package/node_modules/@swc/helpers/cjs/_class_call_check.cjs +6 -0
  1599. package/node_modules/@swc/helpers/cjs/_class_check_private_static_access.cjs +6 -0
  1600. package/node_modules/@swc/helpers/cjs/_class_check_private_static_field_descriptor.cjs +8 -0
  1601. package/node_modules/@swc/helpers/cjs/_class_extract_field_descriptor.cjs +8 -0
  1602. package/node_modules/@swc/helpers/cjs/_class_name_tdz_error.cjs +6 -0
  1603. package/node_modules/@swc/helpers/cjs/_class_private_field_destructure.cjs +10 -0
  1604. package/node_modules/@swc/helpers/cjs/_class_private_field_get.cjs +10 -0
  1605. package/node_modules/@swc/helpers/cjs/_class_private_field_init.cjs +9 -0
  1606. package/node_modules/@swc/helpers/cjs/_class_private_field_loose_base.cjs +10 -0
  1607. package/node_modules/@swc/helpers/cjs/_class_private_field_loose_key.cjs +8 -0
  1608. package/node_modules/@swc/helpers/cjs/_class_private_field_set.cjs +11 -0
  1609. package/node_modules/@swc/helpers/cjs/_class_private_field_update.cjs +10 -0
  1610. package/node_modules/@swc/helpers/cjs/_class_private_method_get.cjs +8 -0
  1611. package/node_modules/@swc/helpers/cjs/_class_private_method_init.cjs +9 -0
  1612. package/node_modules/@swc/helpers/cjs/_class_private_method_set.cjs +6 -0
  1613. package/node_modules/@swc/helpers/cjs/_class_static_private_field_destructure.cjs +13 -0
  1614. package/node_modules/@swc/helpers/cjs/_class_static_private_field_spec_get.cjs +13 -0
  1615. package/node_modules/@swc/helpers/cjs/_class_static_private_field_spec_set.cjs +14 -0
  1616. package/node_modules/@swc/helpers/cjs/_class_static_private_field_update.cjs +13 -0
  1617. package/node_modules/@swc/helpers/cjs/_class_static_private_method_get.cjs +10 -0
  1618. package/node_modules/@swc/helpers/cjs/_construct.cjs +22 -0
  1619. package/node_modules/@swc/helpers/cjs/_create_class.cjs +20 -0
  1620. package/node_modules/@swc/helpers/cjs/_create_for_of_iterator_helper_loose.cjs +24 -0
  1621. package/node_modules/@swc/helpers/cjs/_create_super.cjs +23 -0
  1622. package/node_modules/@swc/helpers/cjs/_decorate.cjs +270 -0
  1623. package/node_modules/@swc/helpers/cjs/_defaults.cjs +15 -0
  1624. package/node_modules/@swc/helpers/cjs/_define_enumerable_properties.cjs +26 -0
  1625. package/node_modules/@swc/helpers/cjs/_define_property.cjs +10 -0
  1626. package/node_modules/@swc/helpers/cjs/_dispose.cjs +43 -0
  1627. package/node_modules/@swc/helpers/cjs/_export_star.cjs +17 -0
  1628. package/node_modules/@swc/helpers/cjs/_extends.cjs +15 -0
  1629. package/node_modules/@swc/helpers/cjs/_get.cjs +23 -0
  1630. package/node_modules/@swc/helpers/cjs/_get_prototype_of.cjs +10 -0
  1631. package/node_modules/@swc/helpers/cjs/_identity.cjs +7 -0
  1632. package/node_modules/@swc/helpers/cjs/_inherits.cjs +14 -0
  1633. package/node_modules/@swc/helpers/cjs/_inherits_loose.cjs +8 -0
  1634. package/node_modules/@swc/helpers/cjs/_initializer_define_property.cjs +13 -0
  1635. package/node_modules/@swc/helpers/cjs/_initializer_warning_helper.cjs +11 -0
  1636. package/node_modules/@swc/helpers/cjs/_instanceof.cjs +8 -0
  1637. package/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +6 -0
  1638. package/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +38 -0
  1639. package/node_modules/@swc/helpers/cjs/_is_native_function.cjs +6 -0
  1640. package/node_modules/@swc/helpers/cjs/_is_native_reflect_construct.cjs +18 -0
  1641. package/node_modules/@swc/helpers/cjs/_iterable_to_array.cjs +8 -0
  1642. package/node_modules/@swc/helpers/cjs/_iterable_to_array_limit.cjs +31 -0
  1643. package/node_modules/@swc/helpers/cjs/_iterable_to_array_limit_loose.cjs +17 -0
  1644. package/node_modules/@swc/helpers/cjs/_jsx.cjs +28 -0
  1645. package/node_modules/@swc/helpers/cjs/_new_arrow_check.cjs +6 -0
  1646. package/node_modules/@swc/helpers/cjs/_non_iterable_rest.cjs +6 -0
  1647. package/node_modules/@swc/helpers/cjs/_non_iterable_spread.cjs +6 -0
  1648. package/node_modules/@swc/helpers/cjs/_object_destructuring_empty.cjs +8 -0
  1649. package/node_modules/@swc/helpers/cjs/_object_spread.cjs +25 -0
  1650. package/node_modules/@swc/helpers/cjs/_object_spread_props.cjs +30 -0
  1651. package/node_modules/@swc/helpers/cjs/_object_without_properties.cjs +23 -0
  1652. package/node_modules/@swc/helpers/cjs/_object_without_properties_loose.cjs +18 -0
  1653. package/node_modules/@swc/helpers/cjs/_overload_yield.cjs +8 -0
  1654. package/node_modules/@swc/helpers/cjs/_possible_constructor_return.cjs +11 -0
  1655. package/node_modules/@swc/helpers/cjs/_read_only_error.cjs +6 -0
  1656. package/node_modules/@swc/helpers/cjs/_set.cjs +44 -0
  1657. package/node_modules/@swc/helpers/cjs/_set_prototype_of.cjs +12 -0
  1658. package/node_modules/@swc/helpers/cjs/_skip_first_generator_next.cjs +11 -0
  1659. package/node_modules/@swc/helpers/cjs/_sliced_to_array.cjs +11 -0
  1660. package/node_modules/@swc/helpers/cjs/_sliced_to_array_loose.cjs +11 -0
  1661. package/node_modules/@swc/helpers/cjs/_super_prop_base.cjs +13 -0
  1662. package/node_modules/@swc/helpers/cjs/_tagged_template_literal.cjs +8 -0
  1663. package/node_modules/@swc/helpers/cjs/_tagged_template_literal_loose.cjs +10 -0
  1664. package/node_modules/@swc/helpers/cjs/_throw.cjs +6 -0
  1665. package/node_modules/@swc/helpers/cjs/_to_array.cjs +11 -0
  1666. package/node_modules/@swc/helpers/cjs/_to_consumable_array.cjs +11 -0
  1667. package/node_modules/@swc/helpers/cjs/_to_primitive.cjs +18 -0
  1668. package/node_modules/@swc/helpers/cjs/_to_property_key.cjs +11 -0
  1669. package/node_modules/@swc/helpers/cjs/_ts_add_disposable_resource.cjs +3 -0
  1670. package/node_modules/@swc/helpers/cjs/_ts_decorate.cjs +3 -0
  1671. package/node_modules/@swc/helpers/cjs/_ts_dispose_resources.cjs +3 -0
  1672. package/node_modules/@swc/helpers/cjs/_ts_generator.cjs +3 -0
  1673. package/node_modules/@swc/helpers/cjs/_ts_metadata.cjs +3 -0
  1674. package/node_modules/@swc/helpers/cjs/_ts_param.cjs +3 -0
  1675. package/node_modules/@swc/helpers/cjs/_ts_values.cjs +3 -0
  1676. package/node_modules/@swc/helpers/cjs/_type_of.cjs +8 -0
  1677. package/node_modules/@swc/helpers/cjs/_unsupported_iterable_to_array.cjs +15 -0
  1678. package/node_modules/@swc/helpers/cjs/_update.cjs +16 -0
  1679. package/node_modules/@swc/helpers/cjs/_using.cjs +24 -0
  1680. package/node_modules/@swc/helpers/cjs/_using_ctx.cjs +75 -0
  1681. package/node_modules/@swc/helpers/cjs/_wrap_async_generator.cjs +10 -0
  1682. package/node_modules/@swc/helpers/cjs/_wrap_native_super.cjs +28 -0
  1683. package/node_modules/@swc/helpers/cjs/_write_only_error.cjs +6 -0
  1684. package/node_modules/@swc/helpers/cjs/index.cjs +427 -0
  1685. package/node_modules/@swc/helpers/esm/_apply_decorated_descriptor.js +33 -0
  1686. package/node_modules/@swc/helpers/esm/_apply_decs_2203_r.js +548 -0
  1687. package/node_modules/@swc/helpers/esm/_array_like_to_array.js +8 -0
  1688. package/node_modules/@swc/helpers/esm/_array_with_holes.js +4 -0
  1689. package/node_modules/@swc/helpers/esm/_array_without_holes.js +6 -0
  1690. package/node_modules/@swc/helpers/esm/_assert_this_initialized.js +6 -0
  1691. package/node_modules/@swc/helpers/esm/_async_generator.js +74 -0
  1692. package/node_modules/@swc/helpers/esm/_async_generator_delegate.js +51 -0
  1693. package/node_modules/@swc/helpers/esm/_async_iterator.js +44 -0
  1694. package/node_modules/@swc/helpers/esm/_async_to_generator.js +31 -0
  1695. package/node_modules/@swc/helpers/esm/_await_async_generator.js +6 -0
  1696. package/node_modules/@swc/helpers/esm/_await_value.js +4 -0
  1697. package/node_modules/@swc/helpers/esm/_call_super.js +17 -0
  1698. package/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +6 -0
  1699. package/node_modules/@swc/helpers/esm/_class_apply_descriptor_destructure.js +23 -0
  1700. package/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.js +6 -0
  1701. package/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.js +13 -0
  1702. package/node_modules/@swc/helpers/esm/_class_apply_descriptor_update.js +28 -0
  1703. package/node_modules/@swc/helpers/esm/_class_call_check.js +4 -0
  1704. package/node_modules/@swc/helpers/esm/_class_check_private_static_access.js +4 -0
  1705. package/node_modules/@swc/helpers/esm/_class_check_private_static_field_descriptor.js +6 -0
  1706. package/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.js +6 -0
  1707. package/node_modules/@swc/helpers/esm/_class_name_tdz_error.js +4 -0
  1708. package/node_modules/@swc/helpers/esm/_class_private_field_destructure.js +8 -0
  1709. package/node_modules/@swc/helpers/esm/_class_private_field_get.js +8 -0
  1710. package/node_modules/@swc/helpers/esm/_class_private_field_init.js +7 -0
  1711. package/node_modules/@swc/helpers/esm/_class_private_field_loose_base.js +8 -0
  1712. package/node_modules/@swc/helpers/esm/_class_private_field_loose_key.js +6 -0
  1713. package/node_modules/@swc/helpers/esm/_class_private_field_set.js +9 -0
  1714. package/node_modules/@swc/helpers/esm/_class_private_field_update.js +8 -0
  1715. package/node_modules/@swc/helpers/esm/_class_private_method_get.js +6 -0
  1716. package/node_modules/@swc/helpers/esm/_class_private_method_init.js +7 -0
  1717. package/node_modules/@swc/helpers/esm/_class_private_method_set.js +4 -0
  1718. package/node_modules/@swc/helpers/esm/_class_static_private_field_destructure.js +11 -0
  1719. package/node_modules/@swc/helpers/esm/_class_static_private_field_spec_get.js +11 -0
  1720. package/node_modules/@swc/helpers/esm/_class_static_private_field_spec_set.js +12 -0
  1721. package/node_modules/@swc/helpers/esm/_class_static_private_field_update.js +11 -0
  1722. package/node_modules/@swc/helpers/esm/_class_static_private_method_get.js +8 -0
  1723. package/node_modules/@swc/helpers/esm/_construct.js +20 -0
  1724. package/node_modules/@swc/helpers/esm/_create_class.js +18 -0
  1725. package/node_modules/@swc/helpers/esm/_create_for_of_iterator_helper_loose.js +22 -0
  1726. package/node_modules/@swc/helpers/esm/_create_super.js +21 -0
  1727. package/node_modules/@swc/helpers/esm/_decorate.js +268 -0
  1728. package/node_modules/@swc/helpers/esm/_defaults.js +13 -0
  1729. package/node_modules/@swc/helpers/esm/_define_enumerable_properties.js +24 -0
  1730. package/node_modules/@swc/helpers/esm/_define_property.js +8 -0
  1731. package/node_modules/@swc/helpers/esm/_dispose.js +41 -0
  1732. package/node_modules/@swc/helpers/esm/_export_star.js +15 -0
  1733. package/node_modules/@swc/helpers/esm/_extends.js +13 -0
  1734. package/node_modules/@swc/helpers/esm/_get.js +21 -0
  1735. package/node_modules/@swc/helpers/esm/_get_prototype_of.js +8 -0
  1736. package/node_modules/@swc/helpers/esm/_identity.js +5 -0
  1737. package/node_modules/@swc/helpers/esm/_inherits.js +12 -0
  1738. package/node_modules/@swc/helpers/esm/_inherits_loose.js +6 -0
  1739. package/node_modules/@swc/helpers/esm/_initializer_define_property.js +11 -0
  1740. package/node_modules/@swc/helpers/esm/_initializer_warning_helper.js +9 -0
  1741. package/node_modules/@swc/helpers/esm/_instanceof.js +6 -0
  1742. package/node_modules/@swc/helpers/esm/_interop_require_default.js +4 -0
  1743. package/node_modules/@swc/helpers/esm/_interop_require_wildcard.js +36 -0
  1744. package/node_modules/@swc/helpers/esm/_is_native_function.js +4 -0
  1745. package/node_modules/@swc/helpers/esm/_is_native_reflect_construct.js +16 -0
  1746. package/node_modules/@swc/helpers/esm/_iterable_to_array.js +6 -0
  1747. package/node_modules/@swc/helpers/esm/_iterable_to_array_limit.js +29 -0
  1748. package/node_modules/@swc/helpers/esm/_iterable_to_array_limit_loose.js +15 -0
  1749. package/node_modules/@swc/helpers/esm/_jsx.js +26 -0
  1750. package/node_modules/@swc/helpers/esm/_new_arrow_check.js +4 -0
  1751. package/node_modules/@swc/helpers/esm/_non_iterable_rest.js +4 -0
  1752. package/node_modules/@swc/helpers/esm/_non_iterable_spread.js +4 -0
  1753. package/node_modules/@swc/helpers/esm/_object_destructuring_empty.js +6 -0
  1754. package/node_modules/@swc/helpers/esm/_object_spread.js +23 -0
  1755. package/node_modules/@swc/helpers/esm/_object_spread_props.js +28 -0
  1756. package/node_modules/@swc/helpers/esm/_object_without_properties.js +21 -0
  1757. package/node_modules/@swc/helpers/esm/_object_without_properties_loose.js +16 -0
  1758. package/node_modules/@swc/helpers/esm/_overload_yield.js +6 -0
  1759. package/node_modules/@swc/helpers/esm/_possible_constructor_return.js +9 -0
  1760. package/node_modules/@swc/helpers/esm/_read_only_error.js +4 -0
  1761. package/node_modules/@swc/helpers/esm/_set.js +42 -0
  1762. package/node_modules/@swc/helpers/esm/_set_prototype_of.js +10 -0
  1763. package/node_modules/@swc/helpers/esm/_skip_first_generator_next.js +9 -0
  1764. package/node_modules/@swc/helpers/esm/_sliced_to_array.js +9 -0
  1765. package/node_modules/@swc/helpers/esm/_sliced_to_array_loose.js +9 -0
  1766. package/node_modules/@swc/helpers/esm/_super_prop_base.js +11 -0
  1767. package/node_modules/@swc/helpers/esm/_tagged_template_literal.js +6 -0
  1768. package/node_modules/@swc/helpers/esm/_tagged_template_literal_loose.js +8 -0
  1769. package/node_modules/@swc/helpers/esm/_throw.js +4 -0
  1770. package/node_modules/@swc/helpers/esm/_to_array.js +9 -0
  1771. package/node_modules/@swc/helpers/esm/_to_consumable_array.js +9 -0
  1772. package/node_modules/@swc/helpers/esm/_to_primitive.js +16 -0
  1773. package/node_modules/@swc/helpers/esm/_to_property_key.js +9 -0
  1774. package/node_modules/@swc/helpers/esm/_ts_add_disposable_resource.js +1 -0
  1775. package/node_modules/@swc/helpers/esm/_ts_decorate.js +1 -0
  1776. package/node_modules/@swc/helpers/esm/_ts_dispose_resources.js +1 -0
  1777. package/node_modules/@swc/helpers/esm/_ts_generator.js +1 -0
  1778. package/node_modules/@swc/helpers/esm/_ts_metadata.js +1 -0
  1779. package/node_modules/@swc/helpers/esm/_ts_param.js +1 -0
  1780. package/node_modules/@swc/helpers/esm/_ts_values.js +1 -0
  1781. package/node_modules/@swc/helpers/esm/_type_of.js +6 -0
  1782. package/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js +13 -0
  1783. package/node_modules/@swc/helpers/esm/_update.js +14 -0
  1784. package/node_modules/@swc/helpers/esm/_using.js +22 -0
  1785. package/node_modules/@swc/helpers/esm/_using_ctx.js +73 -0
  1786. package/node_modules/@swc/helpers/esm/_wrap_async_generator.js +8 -0
  1787. package/node_modules/@swc/helpers/esm/_wrap_native_super.js +26 -0
  1788. package/node_modules/@swc/helpers/esm/_write_only_error.js +4 -0
  1789. package/node_modules/@swc/helpers/esm/index.js +107 -0
  1790. package/node_modules/@swc/helpers/package.json +689 -0
  1791. package/node_modules/@swc/helpers/scripts/ast_grep.js +229 -0
  1792. package/node_modules/@swc/helpers/scripts/build.js +133 -0
  1793. package/node_modules/@swc/helpers/scripts/errors.js +1 -0
  1794. package/node_modules/@swc/helpers/scripts/utils.js +3 -0
  1795. package/node_modules/@swc/helpers/src/_apply_decorated_descriptor.mjs +1 -0
  1796. package/node_modules/@swc/helpers/src/_apply_decs_2203_r.mjs +1 -0
  1797. package/node_modules/@swc/helpers/src/_array_like_to_array.mjs +1 -0
  1798. package/node_modules/@swc/helpers/src/_array_with_holes.mjs +1 -0
  1799. package/node_modules/@swc/helpers/src/_array_without_holes.mjs +1 -0
  1800. package/node_modules/@swc/helpers/src/_assert_this_initialized.mjs +1 -0
  1801. package/node_modules/@swc/helpers/src/_async_generator.mjs +1 -0
  1802. package/node_modules/@swc/helpers/src/_async_generator_delegate.mjs +1 -0
  1803. package/node_modules/@swc/helpers/src/_async_iterator.mjs +1 -0
  1804. package/node_modules/@swc/helpers/src/_async_to_generator.mjs +1 -0
  1805. package/node_modules/@swc/helpers/src/_await_async_generator.mjs +1 -0
  1806. package/node_modules/@swc/helpers/src/_await_value.mjs +1 -0
  1807. package/node_modules/@swc/helpers/src/_call_super.mjs +1 -0
  1808. package/node_modules/@swc/helpers/src/_check_private_redeclaration.mjs +1 -0
  1809. package/node_modules/@swc/helpers/src/_class_apply_descriptor_destructure.mjs +1 -0
  1810. package/node_modules/@swc/helpers/src/_class_apply_descriptor_get.mjs +1 -0
  1811. package/node_modules/@swc/helpers/src/_class_apply_descriptor_set.mjs +1 -0
  1812. package/node_modules/@swc/helpers/src/_class_apply_descriptor_update.mjs +1 -0
  1813. package/node_modules/@swc/helpers/src/_class_call_check.mjs +1 -0
  1814. package/node_modules/@swc/helpers/src/_class_check_private_static_access.mjs +1 -0
  1815. package/node_modules/@swc/helpers/src/_class_check_private_static_field_descriptor.mjs +1 -0
  1816. package/node_modules/@swc/helpers/src/_class_extract_field_descriptor.mjs +1 -0
  1817. package/node_modules/@swc/helpers/src/_class_name_tdz_error.mjs +1 -0
  1818. package/node_modules/@swc/helpers/src/_class_private_field_destructure.mjs +1 -0
  1819. package/node_modules/@swc/helpers/src/_class_private_field_get.mjs +1 -0
  1820. package/node_modules/@swc/helpers/src/_class_private_field_init.mjs +1 -0
  1821. package/node_modules/@swc/helpers/src/_class_private_field_loose_base.mjs +1 -0
  1822. package/node_modules/@swc/helpers/src/_class_private_field_loose_key.mjs +1 -0
  1823. package/node_modules/@swc/helpers/src/_class_private_field_set.mjs +1 -0
  1824. package/node_modules/@swc/helpers/src/_class_private_field_update.mjs +1 -0
  1825. package/node_modules/@swc/helpers/src/_class_private_method_get.mjs +1 -0
  1826. package/node_modules/@swc/helpers/src/_class_private_method_init.mjs +1 -0
  1827. package/node_modules/@swc/helpers/src/_class_private_method_set.mjs +1 -0
  1828. package/node_modules/@swc/helpers/src/_class_static_private_field_destructure.mjs +1 -0
  1829. package/node_modules/@swc/helpers/src/_class_static_private_field_spec_get.mjs +1 -0
  1830. package/node_modules/@swc/helpers/src/_class_static_private_field_spec_set.mjs +1 -0
  1831. package/node_modules/@swc/helpers/src/_class_static_private_field_update.mjs +1 -0
  1832. package/node_modules/@swc/helpers/src/_class_static_private_method_get.mjs +1 -0
  1833. package/node_modules/@swc/helpers/src/_construct.mjs +1 -0
  1834. package/node_modules/@swc/helpers/src/_create_class.mjs +1 -0
  1835. package/node_modules/@swc/helpers/src/_create_for_of_iterator_helper_loose.mjs +1 -0
  1836. package/node_modules/@swc/helpers/src/_create_super.mjs +1 -0
  1837. package/node_modules/@swc/helpers/src/_decorate.mjs +1 -0
  1838. package/node_modules/@swc/helpers/src/_defaults.mjs +1 -0
  1839. package/node_modules/@swc/helpers/src/_define_enumerable_properties.mjs +1 -0
  1840. package/node_modules/@swc/helpers/src/_define_property.mjs +1 -0
  1841. package/node_modules/@swc/helpers/src/_dispose.mjs +1 -0
  1842. package/node_modules/@swc/helpers/src/_export_star.mjs +1 -0
  1843. package/node_modules/@swc/helpers/src/_extends.mjs +1 -0
  1844. package/node_modules/@swc/helpers/src/_get.mjs +1 -0
  1845. package/node_modules/@swc/helpers/src/_get_prototype_of.mjs +1 -0
  1846. package/node_modules/@swc/helpers/src/_identity.mjs +1 -0
  1847. package/node_modules/@swc/helpers/src/_inherits.mjs +1 -0
  1848. package/node_modules/@swc/helpers/src/_inherits_loose.mjs +1 -0
  1849. package/node_modules/@swc/helpers/src/_initializer_define_property.mjs +1 -0
  1850. package/node_modules/@swc/helpers/src/_initializer_warning_helper.mjs +1 -0
  1851. package/node_modules/@swc/helpers/src/_instanceof.mjs +1 -0
  1852. package/node_modules/@swc/helpers/src/_interop_require_default.mjs +1 -0
  1853. package/node_modules/@swc/helpers/src/_interop_require_wildcard.mjs +1 -0
  1854. package/node_modules/@swc/helpers/src/_is_native_function.mjs +1 -0
  1855. package/node_modules/@swc/helpers/src/_is_native_reflect_construct.mjs +1 -0
  1856. package/node_modules/@swc/helpers/src/_iterable_to_array.mjs +1 -0
  1857. package/node_modules/@swc/helpers/src/_iterable_to_array_limit.mjs +1 -0
  1858. package/node_modules/@swc/helpers/src/_iterable_to_array_limit_loose.mjs +1 -0
  1859. package/node_modules/@swc/helpers/src/_jsx.mjs +1 -0
  1860. package/node_modules/@swc/helpers/src/_new_arrow_check.mjs +1 -0
  1861. package/node_modules/@swc/helpers/src/_non_iterable_rest.mjs +1 -0
  1862. package/node_modules/@swc/helpers/src/_non_iterable_spread.mjs +1 -0
  1863. package/node_modules/@swc/helpers/src/_object_destructuring_empty.mjs +1 -0
  1864. package/node_modules/@swc/helpers/src/_object_spread.mjs +1 -0
  1865. package/node_modules/@swc/helpers/src/_object_spread_props.mjs +1 -0
  1866. package/node_modules/@swc/helpers/src/_object_without_properties.mjs +1 -0
  1867. package/node_modules/@swc/helpers/src/_object_without_properties_loose.mjs +1 -0
  1868. package/node_modules/@swc/helpers/src/_overload_yield.mjs +1 -0
  1869. package/node_modules/@swc/helpers/src/_possible_constructor_return.mjs +1 -0
  1870. package/node_modules/@swc/helpers/src/_read_only_error.mjs +1 -0
  1871. package/node_modules/@swc/helpers/src/_set.mjs +1 -0
  1872. package/node_modules/@swc/helpers/src/_set_prototype_of.mjs +1 -0
  1873. package/node_modules/@swc/helpers/src/_skip_first_generator_next.mjs +1 -0
  1874. package/node_modules/@swc/helpers/src/_sliced_to_array.mjs +1 -0
  1875. package/node_modules/@swc/helpers/src/_sliced_to_array_loose.mjs +1 -0
  1876. package/node_modules/@swc/helpers/src/_super_prop_base.mjs +1 -0
  1877. package/node_modules/@swc/helpers/src/_tagged_template_literal.mjs +1 -0
  1878. package/node_modules/@swc/helpers/src/_tagged_template_literal_loose.mjs +1 -0
  1879. package/node_modules/@swc/helpers/src/_throw.mjs +1 -0
  1880. package/node_modules/@swc/helpers/src/_to_array.mjs +1 -0
  1881. package/node_modules/@swc/helpers/src/_to_consumable_array.mjs +1 -0
  1882. package/node_modules/@swc/helpers/src/_to_primitive.mjs +1 -0
  1883. package/node_modules/@swc/helpers/src/_to_property_key.mjs +1 -0
  1884. package/node_modules/@swc/helpers/src/_ts_add_disposable_resource.mjs +1 -0
  1885. package/node_modules/@swc/helpers/src/_ts_decorate.mjs +1 -0
  1886. package/node_modules/@swc/helpers/src/_ts_dispose_resources.mjs +1 -0
  1887. package/node_modules/@swc/helpers/src/_ts_generator.mjs +1 -0
  1888. package/node_modules/@swc/helpers/src/_ts_metadata.mjs +1 -0
  1889. package/node_modules/@swc/helpers/src/_ts_param.mjs +1 -0
  1890. package/node_modules/@swc/helpers/src/_ts_values.mjs +1 -0
  1891. package/node_modules/@swc/helpers/src/_type_of.mjs +1 -0
  1892. package/node_modules/@swc/helpers/src/_unsupported_iterable_to_array.mjs +1 -0
  1893. package/node_modules/@swc/helpers/src/_update.mjs +1 -0
  1894. package/node_modules/@swc/helpers/src/_using.mjs +1 -0
  1895. package/node_modules/@swc/helpers/src/_using_ctx.mjs +1 -0
  1896. package/node_modules/@swc/helpers/src/_wrap_async_generator.mjs +1 -0
  1897. package/node_modules/@swc/helpers/src/_wrap_native_super.mjs +1 -0
  1898. package/node_modules/@swc/helpers/src/_write_only_error.mjs +1 -0
  1899. package/node_modules/@swc/helpers/src/index.mjs +1 -0
  1900. package/node_modules/@types/connect/LICENSE +21 -0
  1901. package/node_modules/@types/connect/README.md +15 -0
  1902. package/node_modules/@types/connect/index.d.ts +91 -0
  1903. package/node_modules/@types/connect/package.json +32 -0
  1904. package/node_modules/@types/node/LICENSE +21 -0
  1905. package/node_modules/@types/node/README.md +15 -0
  1906. package/node_modules/@types/node/assert/strict.d.ts +8 -0
  1907. package/node_modules/@types/node/assert.d.ts +1054 -0
  1908. package/node_modules/@types/node/async_hooks.d.ts +603 -0
  1909. package/node_modules/@types/node/buffer.buffer.d.ts +463 -0
  1910. package/node_modules/@types/node/buffer.d.ts +1926 -0
  1911. package/node_modules/@types/node/child_process.d.ts +1549 -0
  1912. package/node_modules/@types/node/cluster.d.ts +579 -0
  1913. package/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  1914. package/node_modules/@types/node/compatibility/index.d.ts +9 -0
  1915. package/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
  1916. package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  1917. package/node_modules/@types/node/console.d.ts +452 -0
  1918. package/node_modules/@types/node/constants.d.ts +21 -0
  1919. package/node_modules/@types/node/crypto.d.ts +4509 -0
  1920. package/node_modules/@types/node/dgram.d.ts +599 -0
  1921. package/node_modules/@types/node/diagnostics_channel.d.ts +573 -0
  1922. package/node_modules/@types/node/dns/promises.d.ts +476 -0
  1923. package/node_modules/@types/node/dns.d.ts +865 -0
  1924. package/node_modules/@types/node/dom-events.d.ts +124 -0
  1925. package/node_modules/@types/node/domain.d.ts +170 -0
  1926. package/node_modules/@types/node/events.d.ts +931 -0
  1927. package/node_modules/@types/node/fs/promises.d.ts +1272 -0
  1928. package/node_modules/@types/node/fs.d.ts +4437 -0
  1929. package/node_modules/@types/node/globals.d.ts +371 -0
  1930. package/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  1931. package/node_modules/@types/node/http.d.ts +1980 -0
  1932. package/node_modules/@types/node/http2.d.ts +2557 -0
  1933. package/node_modules/@types/node/https.d.ts +545 -0
  1934. package/node_modules/@types/node/index.d.ts +92 -0
  1935. package/node_modules/@types/node/inspector.d.ts +4002 -0
  1936. package/node_modules/@types/node/module.d.ts +772 -0
  1937. package/node_modules/@types/node/net.d.ts +1035 -0
  1938. package/node_modules/@types/node/os.d.ts +495 -0
  1939. package/node_modules/@types/node/package.json +225 -0
  1940. package/node_modules/@types/node/path.d.ts +200 -0
  1941. package/node_modules/@types/node/perf_hooks.d.ts +970 -0
  1942. package/node_modules/@types/node/process.d.ts +2063 -0
  1943. package/node_modules/@types/node/punycode.d.ts +117 -0
  1944. package/node_modules/@types/node/querystring.d.ts +152 -0
  1945. package/node_modules/@types/node/readline/promises.d.ts +162 -0
  1946. package/node_modules/@types/node/readline.d.ts +594 -0
  1947. package/node_modules/@types/node/repl.d.ts +430 -0
  1948. package/node_modules/@types/node/sea.d.ts +153 -0
  1949. package/node_modules/@types/node/sqlite.d.ts +508 -0
  1950. package/node_modules/@types/node/stream/consumers.d.ts +38 -0
  1951. package/node_modules/@types/node/stream/promises.d.ts +90 -0
  1952. package/node_modules/@types/node/stream/web.d.ts +614 -0
  1953. package/node_modules/@types/node/stream.d.ts +1662 -0
  1954. package/node_modules/@types/node/string_decoder.d.ts +67 -0
  1955. package/node_modules/@types/node/test.d.ts +2280 -0
  1956. package/node_modules/@types/node/timers/promises.d.ts +108 -0
  1957. package/node_modules/@types/node/timers.d.ts +287 -0
  1958. package/node_modules/@types/node/tls.d.ts +1259 -0
  1959. package/node_modules/@types/node/trace_events.d.ts +197 -0
  1960. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +460 -0
  1961. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  1962. package/node_modules/@types/node/ts5.6/index.d.ts +92 -0
  1963. package/node_modules/@types/node/tty.d.ts +208 -0
  1964. package/node_modules/@types/node/url.d.ts +972 -0
  1965. package/node_modules/@types/node/util.d.ts +2584 -0
  1966. package/node_modules/@types/node/v8.d.ts +889 -0
  1967. package/node_modules/@types/node/vm.d.ts +991 -0
  1968. package/node_modules/@types/node/wasi.d.ts +181 -0
  1969. package/node_modules/@types/node/worker_threads.d.ts +746 -0
  1970. package/node_modules/@types/node/zlib.d.ts +670 -0
  1971. package/node_modules/@types/uuid/LICENSE +21 -0
  1972. package/node_modules/@types/uuid/README.md +16 -0
  1973. package/node_modules/@types/uuid/index.d.mts +10 -0
  1974. package/node_modules/@types/uuid/index.d.ts +80 -0
  1975. package/node_modules/@types/uuid/package.json +54 -0
  1976. package/node_modules/@types/ws/LICENSE +21 -0
  1977. package/node_modules/@types/ws/README.md +16 -0
  1978. package/node_modules/@types/ws/index.d.ts +353 -0
  1979. package/node_modules/@types/ws/package.json +57 -0
  1980. package/node_modules/agentkeepalive/LICENSE +23 -0
  1981. package/node_modules/agentkeepalive/README.md +256 -0
  1982. package/node_modules/agentkeepalive/browser.js +5 -0
  1983. package/node_modules/agentkeepalive/index.d.ts +69 -0
  1984. package/node_modules/agentkeepalive/index.js +7 -0
  1985. package/node_modules/agentkeepalive/lib/agent.js +402 -0
  1986. package/node_modules/agentkeepalive/lib/constants.js +14 -0
  1987. package/node_modules/agentkeepalive/lib/https_agent.js +51 -0
  1988. package/node_modules/agentkeepalive/package.json +56 -0
  1989. package/node_modules/base-x/LICENSE.md +22 -0
  1990. package/node_modules/base-x/README.md +67 -0
  1991. package/node_modules/base-x/package.json +49 -0
  1992. package/node_modules/base-x/src/index.d.ts +10 -0
  1993. package/node_modules/base-x/src/index.js +123 -0
  1994. package/node_modules/base64-js/LICENSE +21 -0
  1995. package/node_modules/base64-js/README.md +34 -0
  1996. package/node_modules/base64-js/base64js.min.js +1 -0
  1997. package/node_modules/base64-js/index.d.ts +3 -0
  1998. package/node_modules/base64-js/index.js +150 -0
  1999. package/node_modules/base64-js/package.json +47 -0
  2000. package/node_modules/bn.js/LICENSE +19 -0
  2001. package/node_modules/bn.js/README.md +214 -0
  2002. package/node_modules/bn.js/lib/bn.js +3548 -0
  2003. package/node_modules/bn.js/package.json +39 -0
  2004. package/node_modules/borsh/LICENSE-APACHE +201 -0
  2005. package/node_modules/borsh/LICENSE-MIT.txt +23 -0
  2006. package/node_modules/borsh/README.md +83 -0
  2007. package/node_modules/borsh/lib/index.d.ts +52 -0
  2008. package/node_modules/borsh/lib/index.js +440 -0
  2009. package/node_modules/borsh/package.json +61 -0
  2010. package/node_modules/bs58/README.md +71 -0
  2011. package/node_modules/bs58/index.js +4 -0
  2012. package/node_modules/bs58/package.json +37 -0
  2013. package/node_modules/buffer/AUTHORS.md +73 -0
  2014. package/node_modules/buffer/LICENSE +21 -0
  2015. package/node_modules/buffer/README.md +410 -0
  2016. package/node_modules/buffer/index.d.ts +194 -0
  2017. package/node_modules/buffer/index.js +2106 -0
  2018. package/node_modules/buffer/package.json +93 -0
  2019. package/node_modules/buffer-layout/.eslintrc.js +45 -0
  2020. package/node_modules/buffer-layout/.travis.yml +9 -0
  2021. package/node_modules/buffer-layout/CHANGELOG.md +222 -0
  2022. package/node_modules/buffer-layout/LICENSE +21 -0
  2023. package/node_modules/buffer-layout/README.md +397 -0
  2024. package/node_modules/buffer-layout/jsdoc/conf.json +10 -0
  2025. package/node_modules/buffer-layout/jsdoc/custom/local.js +75 -0
  2026. package/node_modules/buffer-layout/lib/Layout.js +2712 -0
  2027. package/node_modules/buffer-layout/package.json +40 -0
  2028. package/node_modules/buffer-layout/test/LayoutTest.js +2162 -0
  2029. package/node_modules/buffer-layout/test/examples.c +112 -0
  2030. package/node_modules/buffer-layout/test/examples.js +259 -0
  2031. package/node_modules/buffer-layout/test/n64.c +71 -0
  2032. package/node_modules/buffer-layout/x.js +36 -0
  2033. package/node_modules/bufferutil/LICENSE +20 -0
  2034. package/node_modules/bufferutil/README.md +79 -0
  2035. package/node_modules/bufferutil/binding.gyp +32 -0
  2036. package/node_modules/bufferutil/fallback.js +34 -0
  2037. package/node_modules/bufferutil/index.js +7 -0
  2038. package/node_modules/bufferutil/package.json +36 -0
  2039. package/node_modules/bufferutil/prebuilds/darwin-x64+arm64/bufferutil.node +0 -0
  2040. package/node_modules/bufferutil/prebuilds/linux-x64/bufferutil.node +0 -0
  2041. package/node_modules/bufferutil/prebuilds/win32-ia32/bufferutil.node +0 -0
  2042. package/node_modules/bufferutil/prebuilds/win32-x64/bufferutil.node +0 -0
  2043. package/node_modules/bufferutil/src/bufferutil.c +171 -0
  2044. package/node_modules/camelcase/index.d.ts +103 -0
  2045. package/node_modules/camelcase/index.js +113 -0
  2046. package/node_modules/camelcase/license +9 -0
  2047. package/node_modules/camelcase/package.json +44 -0
  2048. package/node_modules/camelcase/readme.md +144 -0
  2049. package/node_modules/commander/LICENSE +22 -0
  2050. package/node_modules/commander/Readme.md +428 -0
  2051. package/node_modules/commander/index.js +1224 -0
  2052. package/node_modules/commander/package.json +38 -0
  2053. package/node_modules/commander/typings/index.d.ts +310 -0
  2054. package/node_modules/cross-fetch/LICENSE +21 -0
  2055. package/node_modules/cross-fetch/README.md +169 -0
  2056. package/node_modules/cross-fetch/dist/browser-polyfill.js +658 -0
  2057. package/node_modules/cross-fetch/dist/browser-ponyfill.js +686 -0
  2058. package/node_modules/cross-fetch/dist/cross-fetch.js +2 -0
  2059. package/node_modules/cross-fetch/dist/cross-fetch.js.map +1 -0
  2060. package/node_modules/cross-fetch/dist/node-polyfill.js +11 -0
  2061. package/node_modules/cross-fetch/dist/node-ponyfill.js +22 -0
  2062. package/node_modules/cross-fetch/dist/react-native-polyfill.js +12 -0
  2063. package/node_modules/cross-fetch/dist/react-native-ponyfill.js +6 -0
  2064. package/node_modules/cross-fetch/index.d.ts +14 -0
  2065. package/node_modules/cross-fetch/package.json +127 -0
  2066. package/node_modules/cross-fetch/polyfill/package.json +8 -0
  2067. package/node_modules/delay/index.d.ts +107 -0
  2068. package/node_modules/delay/index.js +72 -0
  2069. package/node_modules/delay/license +9 -0
  2070. package/node_modules/delay/package.json +54 -0
  2071. package/node_modules/delay/readme.md +173 -0
  2072. package/node_modules/es6-promise/LICENSE +19 -0
  2073. package/node_modules/es6-promise/README.md +97 -0
  2074. package/node_modules/es6-promise/auto.js +4 -0
  2075. package/node_modules/es6-promise/dist/es6-promise.auto.js +1176 -0
  2076. package/node_modules/es6-promise/dist/es6-promise.auto.map +1 -0
  2077. package/node_modules/es6-promise/dist/es6-promise.auto.min.js +1 -0
  2078. package/node_modules/es6-promise/dist/es6-promise.auto.min.map +1 -0
  2079. package/node_modules/es6-promise/dist/es6-promise.js +1174 -0
  2080. package/node_modules/es6-promise/dist/es6-promise.map +1 -0
  2081. package/node_modules/es6-promise/dist/es6-promise.min.js +1 -0
  2082. package/node_modules/es6-promise/dist/es6-promise.min.map +1 -0
  2083. package/node_modules/es6-promise/es6-promise.d.ts +85 -0
  2084. package/node_modules/es6-promise/lib/es6-promise/-internal.js +243 -0
  2085. package/node_modules/es6-promise/lib/es6-promise/asap.js +119 -0
  2086. package/node_modules/es6-promise/lib/es6-promise/enumerator.js +124 -0
  2087. package/node_modules/es6-promise/lib/es6-promise/polyfill.js +35 -0
  2088. package/node_modules/es6-promise/lib/es6-promise/promise/all.js +52 -0
  2089. package/node_modules/es6-promise/lib/es6-promise/promise/race.js +84 -0
  2090. package/node_modules/es6-promise/lib/es6-promise/promise/reject.js +46 -0
  2091. package/node_modules/es6-promise/lib/es6-promise/promise/resolve.js +48 -0
  2092. package/node_modules/es6-promise/lib/es6-promise/promise.js +431 -0
  2093. package/node_modules/es6-promise/lib/es6-promise/then.js +32 -0
  2094. package/node_modules/es6-promise/lib/es6-promise/utils.js +21 -0
  2095. package/node_modules/es6-promise/lib/es6-promise.auto.js +3 -0
  2096. package/node_modules/es6-promise/lib/es6-promise.js +7 -0
  2097. package/node_modules/es6-promise/package.json +78 -0
  2098. package/node_modules/es6-promisify/README.md +89 -0
  2099. package/node_modules/es6-promisify/dist/promise.js +73 -0
  2100. package/node_modules/es6-promisify/dist/promisify.js +85 -0
  2101. package/node_modules/es6-promisify/package.json +41 -0
  2102. package/node_modules/eventemitter3/LICENSE +21 -0
  2103. package/node_modules/eventemitter3/README.md +94 -0
  2104. package/node_modules/eventemitter3/index.d.ts +134 -0
  2105. package/node_modules/eventemitter3/index.js +336 -0
  2106. package/node_modules/eventemitter3/package.json +56 -0
  2107. package/node_modules/eventemitter3/umd/eventemitter3.js +340 -0
  2108. package/node_modules/eventemitter3/umd/eventemitter3.min.js +1 -0
  2109. package/node_modules/eventemitter3/umd/eventemitter3.min.js.map +1 -0
  2110. package/node_modules/eyes/LICENSE +20 -0
  2111. package/node_modules/eyes/Makefile +4 -0
  2112. package/node_modules/eyes/README.md +73 -0
  2113. package/node_modules/eyes/lib/eyes.js +236 -0
  2114. package/node_modules/eyes/package.json +14 -0
  2115. package/node_modules/eyes/test/eyes-test.js +56 -0
  2116. package/node_modules/fast-stable-stringify/.npmignore +4 -0
  2117. package/node_modules/fast-stable-stringify/.travis.yml +10 -0
  2118. package/node_modules/fast-stable-stringify/LICENSE +21 -0
  2119. package/node_modules/fast-stable-stringify/README.md +81 -0
  2120. package/node_modules/fast-stable-stringify/cli/files-to-comparison-results.js +67 -0
  2121. package/node_modules/fast-stable-stringify/cli/format-table.js +70 -0
  2122. package/node_modules/fast-stable-stringify/cli/index.js +19 -0
  2123. package/node_modules/fast-stable-stringify/fixtures/index.js +5 -0
  2124. package/node_modules/fast-stable-stringify/fixtures/input-data-types.js +191 -0
  2125. package/node_modules/fast-stable-stringify/fixtures/log-result.json +22 -0
  2126. package/node_modules/fast-stable-stringify/fixtures/log.txt +24 -0
  2127. package/node_modules/fast-stable-stringify/index.js +73 -0
  2128. package/node_modules/fast-stable-stringify/karma.conf.js +124 -0
  2129. package/node_modules/fast-stable-stringify/karma.conf.travis.js +95 -0
  2130. package/node_modules/fast-stable-stringify/package.json +47 -0
  2131. package/node_modules/fast-stable-stringify/results/escape-long/Chrome 60.0.3112 (Windows 7 0.0.0).json +57 -0
  2132. package/node_modules/fast-stable-stringify/results/escape-long/Chrome Mobile 55.0.2883 (Android 6.0.0).json +57 -0
  2133. package/node_modules/fast-stable-stringify/results/escape-long/Edge 14.14393.0 (Windows 10 0.0.0).json +57 -0
  2134. package/node_modules/fast-stable-stringify/results/escape-long/Firefox 54.0.0 (Windows 7 0.0.0).json +57 -0
  2135. package/node_modules/fast-stable-stringify/results/escape-long/IE 10.0.0 (Windows 7 0.0.0).json +57 -0
  2136. package/node_modules/fast-stable-stringify/results/escape-long/IE 11.0.0 (Windows 7 0.0.0).json +57 -0
  2137. package/node_modules/fast-stable-stringify/results/escape-long/IE 9.0.0 (Windows 7 0.0.0).json +57 -0
  2138. package/node_modules/fast-stable-stringify/results/escape-long/Mobile Safari 10.0.0 (iOS 10.3.0).json +57 -0
  2139. package/node_modules/fast-stable-stringify/results/escape-long/Safari 10.0.1 (Mac OS X 10.12.1).json +57 -0
  2140. package/node_modules/fast-stable-stringify/results/escape-short/Chrome 60.0.3112 (Windows 7 0.0.0).json +57 -0
  2141. package/node_modules/fast-stable-stringify/results/escape-short/Chrome Mobile 55.0.2883 (Android 6.0.0).json +57 -0
  2142. package/node_modules/fast-stable-stringify/results/escape-short/Edge 14.14393.0 (Windows 10 0.0.0).json +57 -0
  2143. package/node_modules/fast-stable-stringify/results/escape-short/Firefox 54.0.0 (Windows 7 0.0.0).json +57 -0
  2144. package/node_modules/fast-stable-stringify/results/escape-short/IE 10.0.0 (Windows 7 0.0.0).json +57 -0
  2145. package/node_modules/fast-stable-stringify/results/escape-short/IE 11.0.0 (Windows 7 0.0.0).json +57 -0
  2146. package/node_modules/fast-stable-stringify/results/escape-short/IE 9.0.0 (Windows 7 0.0.0).json +57 -0
  2147. package/node_modules/fast-stable-stringify/results/escape-short/Mobile Safari 10.0.0 (iOS 10.3.0).json +57 -0
  2148. package/node_modules/fast-stable-stringify/results/escape-short/Safari 10.0.1 (Mac OS X 10.12.1).json +57 -0
  2149. package/node_modules/fast-stable-stringify/results/escape.md +20 -0
  2150. package/node_modules/fast-stable-stringify/results/itar-long/Chrome 60.0.3112 (Windows 7 0.0.0).json +35 -0
  2151. package/node_modules/fast-stable-stringify/results/itar-long/Chrome Mobile 55.0.2883 (Android 6.0.0).json +35 -0
  2152. package/node_modules/fast-stable-stringify/results/itar-long/Edge 14.14393.0 (Windows 10 0.0.0).json +35 -0
  2153. package/node_modules/fast-stable-stringify/results/itar-long/Firefox 54.0.0 (Windows 7 0.0.0).json +35 -0
  2154. package/node_modules/fast-stable-stringify/results/itar-long/IE 10.0.0 (Windows 7 0.0.0).json +35 -0
  2155. package/node_modules/fast-stable-stringify/results/itar-long/IE 11.0.0 (Windows 7 0.0.0).json +35 -0
  2156. package/node_modules/fast-stable-stringify/results/itar-long/IE 9.0.0 (Windows 7 0.0.0).json +35 -0
  2157. package/node_modules/fast-stable-stringify/results/itar-long/Mobile Safari 10.0.0 (iOS 10.3.0).json +35 -0
  2158. package/node_modules/fast-stable-stringify/results/itar-long/Safari 10.0.1 (Mac OS X 10.12.1).json +35 -0
  2159. package/node_modules/fast-stable-stringify/results/itar-short/Chrome 60.0.3112 (Windows 7 0.0.0).json +35 -0
  2160. package/node_modules/fast-stable-stringify/results/itar-short/Chrome Mobile 55.0.2883 (Android 6.0.0).json +35 -0
  2161. package/node_modules/fast-stable-stringify/results/itar-short/Edge 14.14393.0 (Windows 10 0.0.0).json +35 -0
  2162. package/node_modules/fast-stable-stringify/results/itar-short/Firefox 54.0.0 (Windows 7 0.0.0).json +35 -0
  2163. package/node_modules/fast-stable-stringify/results/itar-short/IE 10.0.0 (Windows 7 0.0.0).json +35 -0
  2164. package/node_modules/fast-stable-stringify/results/itar-short/IE 11.0.0 (Windows 7 0.0.0).json +35 -0
  2165. package/node_modules/fast-stable-stringify/results/itar-short/IE 9.0.0 (Windows 7 0.0.0).json +35 -0
  2166. package/node_modules/fast-stable-stringify/results/itar-short/Mobile Safari 10.0.0 (iOS 10.3.0).json +35 -0
  2167. package/node_modules/fast-stable-stringify/results/itar-short/Safari 10.0.1 (Mac OS X 10.12.1).json +35 -0
  2168. package/node_modules/fast-stable-stringify/results/itar.md +20 -0
  2169. package/node_modules/fast-stable-stringify/results/iter/Chrome 60.0.3112 (Windows 7 0.0.0).json +35 -0
  2170. package/node_modules/fast-stable-stringify/results/iter/Chrome Mobile 39.0.0 (Android 5.1.1).json +35 -0
  2171. package/node_modules/fast-stable-stringify/results/iter/Chrome Mobile 55.0.2883 (Android 6.0.0).json +35 -0
  2172. package/node_modules/fast-stable-stringify/results/iter/Edge 14.14393.0 (Windows 10 0.0.0).json +35 -0
  2173. package/node_modules/fast-stable-stringify/results/iter/Firefox 54.0.0 (Windows 7 0.0.0).json +35 -0
  2174. package/node_modules/fast-stable-stringify/results/iter/IE 10.0.0 (Windows 7 0.0.0).json +35 -0
  2175. package/node_modules/fast-stable-stringify/results/iter/IE 11.0.0 (Windows 7 0.0.0).json +35 -0
  2176. package/node_modules/fast-stable-stringify/results/iter/IE 9.0.0 (Windows 7 0.0.0).json +35 -0
  2177. package/node_modules/fast-stable-stringify/results/iter/Mobile Safari 10.0.0 (iOS 10.3.0).json +35 -0
  2178. package/node_modules/fast-stable-stringify/results/iter/Mobile Safari 9.0.0 (iOS 9.2.0).json +35 -0
  2179. package/node_modules/fast-stable-stringify/results/iter/Safari 10.0.1 (Mac OS X 10.12.1).json +35 -0
  2180. package/node_modules/fast-stable-stringify/results/iter/Safari 9.1.2 (Mac OS X 10.11.6).json +35 -0
  2181. package/node_modules/fast-stable-stringify/results/iter.md +14 -0
  2182. package/node_modules/fast-stable-stringify/results/libs/Chrome 60.0.3112 (Windows 7 0.0.0).json +46 -0
  2183. package/node_modules/fast-stable-stringify/results/libs/Chrome Mobile 55.0.2883 (Android 6.0.0).json +46 -0
  2184. package/node_modules/fast-stable-stringify/results/libs/Edge 14.14393.0 (Windows 10 0.0.0).json +46 -0
  2185. package/node_modules/fast-stable-stringify/results/libs/Firefox 54.0.0 (Windows 7 0.0.0).json +46 -0
  2186. package/node_modules/fast-stable-stringify/results/libs/IE 10.0.0 (Windows 7 0.0.0).json +35 -0
  2187. package/node_modules/fast-stable-stringify/results/libs/IE 11.0.0 (Windows 7 0.0.0).json +35 -0
  2188. package/node_modules/fast-stable-stringify/results/libs/IE 9.0.0 (Windows 7 0.0.0).json +35 -0
  2189. package/node_modules/fast-stable-stringify/results/libs/Mobile Safari 10.0.0 (iOS 10.3.0).json +46 -0
  2190. package/node_modules/fast-stable-stringify/results/libs/Safari 10.0.1 (Mac OS X 10.12.1).json +46 -0
  2191. package/node_modules/fast-stable-stringify/results/libs.md +15 -0
  2192. package/node_modules/fast-stable-stringify/test/escape-long.js +147 -0
  2193. package/node_modules/fast-stable-stringify/test/escape-short.js +147 -0
  2194. package/node_modules/fast-stable-stringify/test/index.js +6 -0
  2195. package/node_modules/fast-stable-stringify/test/itar-long.js +52 -0
  2196. package/node_modules/fast-stable-stringify/test/itar-short.js +52 -0
  2197. package/node_modules/fast-stable-stringify/test/iter.js +84 -0
  2198. package/node_modules/fast-stable-stringify/test/libs.js +57 -0
  2199. package/node_modules/fast-stable-stringify/test/travis.js +43 -0
  2200. package/node_modules/fast-stable-stringify/test/validate.js +24 -0
  2201. package/node_modules/fast-stable-stringify/util/eachRecursive.js +9 -0
  2202. package/node_modules/fast-stable-stringify/util/get-git-hash-sync.js +21 -0
  2203. package/node_modules/fast-stable-stringify/util/get-lib-info.js +22 -0
  2204. package/node_modules/fast-stable-stringify/util/object-path.js +47 -0
  2205. package/node_modules/fast-stable-stringify/v8-profile/bench.js +8 -0
  2206. package/node_modules/fast-stable-stringify/v8-profile/run.sh +2 -0
  2207. package/node_modules/fast-stable-stringify/zuul-local.sh +2 -0
  2208. package/node_modules/humanize-ms/LICENSE +17 -0
  2209. package/node_modules/humanize-ms/README.md +40 -0
  2210. package/node_modules/humanize-ms/index.js +24 -0
  2211. package/node_modules/humanize-ms/package.json +37 -0
  2212. package/node_modules/ieee754/LICENSE +11 -0
  2213. package/node_modules/ieee754/README.md +51 -0
  2214. package/node_modules/ieee754/index.d.ts +10 -0
  2215. package/node_modules/ieee754/index.js +85 -0
  2216. package/node_modules/ieee754/package.json +52 -0
  2217. package/node_modules/isomorphic-ws/LICENSE +21 -0
  2218. package/node_modules/isomorphic-ws/README.md +58 -0
  2219. package/node_modules/isomorphic-ws/browser.js +17 -0
  2220. package/node_modules/isomorphic-ws/index.d.ts +8 -0
  2221. package/node_modules/isomorphic-ws/node.js +3 -0
  2222. package/node_modules/isomorphic-ws/package.json +34 -0
  2223. package/node_modules/jayson/.gitignore +8 -0
  2224. package/node_modules/jayson/LICENSE +22 -0
  2225. package/node_modules/jayson/README.md +1387 -0
  2226. package/node_modules/jayson/bin/jayson.js +111 -0
  2227. package/node_modules/jayson/index.d.ts +370 -0
  2228. package/node_modules/jayson/index.js +1 -0
  2229. package/node_modules/jayson/lib/client/browser/index.d.ts +14 -0
  2230. package/node_modules/jayson/lib/client/browser/index.js +163 -0
  2231. package/node_modules/jayson/lib/client/http.js +116 -0
  2232. package/node_modules/jayson/lib/client/https.js +34 -0
  2233. package/node_modules/jayson/lib/client/index.js +220 -0
  2234. package/node_modules/jayson/lib/client/tcp.js +90 -0
  2235. package/node_modules/jayson/lib/client/tls.js +89 -0
  2236. package/node_modules/jayson/lib/client/websocket.js +135 -0
  2237. package/node_modules/jayson/lib/generateRequest.js +63 -0
  2238. package/node_modules/jayson/lib/index.js +31 -0
  2239. package/node_modules/jayson/lib/method.js +120 -0
  2240. package/node_modules/jayson/lib/server/http.js +26 -0
  2241. package/node_modules/jayson/lib/server/https.js +26 -0
  2242. package/node_modules/jayson/lib/server/index.js +475 -0
  2243. package/node_modules/jayson/lib/server/middleware.js +75 -0
  2244. package/node_modules/jayson/lib/server/tcp.js +72 -0
  2245. package/node_modules/jayson/lib/server/tls.js +72 -0
  2246. package/node_modules/jayson/lib/server/websocket.js +62 -0
  2247. package/node_modules/jayson/lib/utils.js +514 -0
  2248. package/node_modules/jayson/node_modules/@types/node/LICENSE +21 -0
  2249. package/node_modules/jayson/node_modules/@types/node/README.md +16 -0
  2250. package/node_modules/jayson/node_modules/@types/node/assert.d.ts +117 -0
  2251. package/node_modules/jayson/node_modules/@types/node/async_hooks.d.ts +246 -0
  2252. package/node_modules/jayson/node_modules/@types/node/buffer.d.ts +22 -0
  2253. package/node_modules/jayson/node_modules/@types/node/child_process.d.ts +507 -0
  2254. package/node_modules/jayson/node_modules/@types/node/cluster.d.ts +260 -0
  2255. package/node_modules/jayson/node_modules/@types/node/console.d.ts +3 -0
  2256. package/node_modules/jayson/node_modules/@types/node/constants.d.ts +448 -0
  2257. package/node_modules/jayson/node_modules/@types/node/crypto.d.ts +1183 -0
  2258. package/node_modules/jayson/node_modules/@types/node/dgram.d.ts +118 -0
  2259. package/node_modules/jayson/node_modules/@types/node/dns.d.ts +372 -0
  2260. package/node_modules/jayson/node_modules/@types/node/domain.d.ts +16 -0
  2261. package/node_modules/jayson/node_modules/@types/node/events.d.ts +47 -0
  2262. package/node_modules/jayson/node_modules/@types/node/fs.d.ts +2567 -0
  2263. package/node_modules/jayson/node_modules/@types/node/globals.d.ts +1351 -0
  2264. package/node_modules/jayson/node_modules/@types/node/globals.global.d.ts +1 -0
  2265. package/node_modules/jayson/node_modules/@types/node/http.d.ts +456 -0
  2266. package/node_modules/jayson/node_modules/@types/node/http2.d.ts +952 -0
  2267. package/node_modules/jayson/node_modules/@types/node/https.d.ts +156 -0
  2268. package/node_modules/jayson/node_modules/@types/node/index.d.ts +91 -0
  2269. package/node_modules/jayson/node_modules/@types/node/inspector.d.ts +3040 -0
  2270. package/node_modules/jayson/node_modules/@types/node/module.d.ts +3 -0
  2271. package/node_modules/jayson/node_modules/@types/node/net.d.ts +290 -0
  2272. package/node_modules/jayson/node_modules/@types/node/os.d.ts +263 -0
  2273. package/node_modules/jayson/node_modules/@types/node/package.json +195 -0
  2274. package/node_modules/jayson/node_modules/@types/node/path.d.ts +159 -0
  2275. package/node_modules/jayson/node_modules/@types/node/perf_hooks.d.ts +259 -0
  2276. package/node_modules/jayson/node_modules/@types/node/process.d.ts +15 -0
  2277. package/node_modules/jayson/node_modules/@types/node/punycode.d.ts +75 -0
  2278. package/node_modules/jayson/node_modules/@types/node/querystring.d.ts +29 -0
  2279. package/node_modules/jayson/node_modules/@types/node/readline.d.ts +158 -0
  2280. package/node_modules/jayson/node_modules/@types/node/repl.d.ts +390 -0
  2281. package/node_modules/jayson/node_modules/@types/node/stream.d.ts +334 -0
  2282. package/node_modules/jayson/node_modules/@types/node/string_decoder.d.ts +7 -0
  2283. package/node_modules/jayson/node_modules/@types/node/timers.d.ts +16 -0
  2284. package/node_modules/jayson/node_modules/@types/node/tls.d.ts +713 -0
  2285. package/node_modules/jayson/node_modules/@types/node/trace_events.d.ts +61 -0
  2286. package/node_modules/jayson/node_modules/@types/node/tty.d.ts +66 -0
  2287. package/node_modules/jayson/node_modules/@types/node/url.d.ts +147 -0
  2288. package/node_modules/jayson/node_modules/@types/node/util.d.ts +200 -0
  2289. package/node_modules/jayson/node_modules/@types/node/v8.d.ts +197 -0
  2290. package/node_modules/jayson/node_modules/@types/node/vm.d.ts +112 -0
  2291. package/node_modules/jayson/node_modules/@types/node/wasi.d.ts +55 -0
  2292. package/node_modules/jayson/node_modules/@types/node/worker_threads.d.ts +207 -0
  2293. package/node_modules/jayson/node_modules/@types/node/zlib.d.ts +356 -0
  2294. package/node_modules/jayson/package.json +89 -0
  2295. package/node_modules/jayson/promise/index.d.ts +367 -0
  2296. package/node_modules/jayson/promise/index.js +3 -0
  2297. package/node_modules/jayson/promise/lib/client/browser/index.d.ts +12 -0
  2298. package/node_modules/jayson/promise/lib/client/browser/index.js +28 -0
  2299. package/node_modules/jayson/promise/lib/client/http.js +23 -0
  2300. package/node_modules/jayson/promise/lib/client/https.js +24 -0
  2301. package/node_modules/jayson/promise/lib/client/index.js +53 -0
  2302. package/node_modules/jayson/promise/lib/client/tcp.js +23 -0
  2303. package/node_modules/jayson/promise/lib/client/tls.js +23 -0
  2304. package/node_modules/jayson/promise/lib/client/websocket.js +23 -0
  2305. package/node_modules/jayson/promise/lib/index.js +33 -0
  2306. package/node_modules/jayson/promise/lib/method.js +54 -0
  2307. package/node_modules/jayson/promise/lib/server.js +23 -0
  2308. package/node_modules/jayson/promise/lib/utils.js +23 -0
  2309. package/node_modules/json-stringify-safe/.npmignore +1 -0
  2310. package/node_modules/json-stringify-safe/CHANGELOG.md +14 -0
  2311. package/node_modules/json-stringify-safe/LICENSE +15 -0
  2312. package/node_modules/json-stringify-safe/Makefile +35 -0
  2313. package/node_modules/json-stringify-safe/README.md +52 -0
  2314. package/node_modules/json-stringify-safe/package.json +31 -0
  2315. package/node_modules/json-stringify-safe/stringify.js +27 -0
  2316. package/node_modules/json-stringify-safe/test/mocha.opts +2 -0
  2317. package/node_modules/json-stringify-safe/test/stringify_test.js +246 -0
  2318. package/node_modules/ms/index.js +162 -0
  2319. package/node_modules/ms/license.md +21 -0
  2320. package/node_modules/ms/package.json +38 -0
  2321. package/node_modules/ms/readme.md +59 -0
  2322. package/node_modules/node-fetch/LICENSE.md +22 -0
  2323. package/node_modules/node-fetch/README.md +634 -0
  2324. package/node_modules/node-fetch/browser.js +25 -0
  2325. package/node_modules/node-fetch/lib/index.es.js +1777 -0
  2326. package/node_modules/node-fetch/lib/index.js +1787 -0
  2327. package/node_modules/node-fetch/lib/index.mjs +1775 -0
  2328. package/node_modules/node-fetch/package.json +89 -0
  2329. package/node_modules/node-gyp-build/LICENSE +21 -0
  2330. package/node_modules/node-gyp-build/README.md +58 -0
  2331. package/node_modules/node-gyp-build/SECURITY.md +5 -0
  2332. package/node_modules/node-gyp-build/bin.js +84 -0
  2333. package/node_modules/node-gyp-build/build-test.js +19 -0
  2334. package/node_modules/node-gyp-build/index.js +6 -0
  2335. package/node_modules/node-gyp-build/node-gyp-build.js +207 -0
  2336. package/node_modules/node-gyp-build/optional.js +7 -0
  2337. package/node_modules/node-gyp-build/package.json +43 -0
  2338. package/node_modules/pako/LICENSE +21 -0
  2339. package/node_modules/pako/README.md +177 -0
  2340. package/node_modules/pako/dist/pako.es5.js +6688 -0
  2341. package/node_modules/pako/dist/pako.es5.min.js +2 -0
  2342. package/node_modules/pako/dist/pako.esm.mjs +6877 -0
  2343. package/node_modules/pako/dist/pako.js +6896 -0
  2344. package/node_modules/pako/dist/pako.min.js +2 -0
  2345. package/node_modules/pako/dist/pako_deflate.es5.js +3924 -0
  2346. package/node_modules/pako/dist/pako_deflate.es5.min.js +2 -0
  2347. package/node_modules/pako/dist/pako_deflate.js +4126 -0
  2348. package/node_modules/pako/dist/pako_deflate.min.js +2 -0
  2349. package/node_modules/pako/dist/pako_inflate.es5.js +3229 -0
  2350. package/node_modules/pako/dist/pako_inflate.es5.min.js +2 -0
  2351. package/node_modules/pako/dist/pako_inflate.js +3239 -0
  2352. package/node_modules/pako/dist/pako_inflate.min.js +2 -0
  2353. package/node_modules/pako/index.js +18 -0
  2354. package/node_modules/pako/lib/deflate.js +380 -0
  2355. package/node_modules/pako/lib/inflate.js +419 -0
  2356. package/node_modules/pako/lib/utils/common.js +48 -0
  2357. package/node_modules/pako/lib/utils/strings.js +174 -0
  2358. package/node_modules/pako/lib/zlib/README +59 -0
  2359. package/node_modules/pako/lib/zlib/adler32.js +51 -0
  2360. package/node_modules/pako/lib/zlib/constants.js +68 -0
  2361. package/node_modules/pako/lib/zlib/crc32.js +59 -0
  2362. package/node_modules/pako/lib/zlib/deflate.js +2048 -0
  2363. package/node_modules/pako/lib/zlib/gzheader.js +58 -0
  2364. package/node_modules/pako/lib/zlib/inffast.js +344 -0
  2365. package/node_modules/pako/lib/zlib/inflate.js +1572 -0
  2366. package/node_modules/pako/lib/zlib/inftrees.js +340 -0
  2367. package/node_modules/pako/lib/zlib/messages.js +32 -0
  2368. package/node_modules/pako/lib/zlib/trees.js +1179 -0
  2369. package/node_modules/pako/lib/zlib/zstream.js +47 -0
  2370. package/node_modules/pako/package.json +64 -0
  2371. package/node_modules/rpc-websockets/LICENSE +10 -0
  2372. package/node_modules/rpc-websockets/README.md +156 -0
  2373. package/node_modules/rpc-websockets/dist/index.browser-bundle.js +14 -0
  2374. package/node_modules/rpc-websockets/dist/index.browser.cjs +389 -0
  2375. package/node_modules/rpc-websockets/dist/index.browser.cjs.map +1 -0
  2376. package/node_modules/rpc-websockets/dist/index.browser.d.mts +225 -0
  2377. package/node_modules/rpc-websockets/dist/index.browser.d.ts +225 -0
  2378. package/node_modules/rpc-websockets/dist/index.browser.mjs +384 -0
  2379. package/node_modules/rpc-websockets/dist/index.browser.mjs.map +1 -0
  2380. package/node_modules/rpc-websockets/dist/index.cjs +898 -0
  2381. package/node_modules/rpc-websockets/dist/index.cjs.map +1 -0
  2382. package/node_modules/rpc-websockets/dist/index.d.mts +415 -0
  2383. package/node_modules/rpc-websockets/dist/index.d.ts +415 -0
  2384. package/node_modules/rpc-websockets/dist/index.mjs +886 -0
  2385. package/node_modules/rpc-websockets/dist/index.mjs.map +1 -0
  2386. package/node_modules/rpc-websockets/node_modules/@types/ws/LICENSE +21 -0
  2387. package/node_modules/rpc-websockets/node_modules/@types/ws/README.md +15 -0
  2388. package/node_modules/rpc-websockets/node_modules/@types/ws/index.d.mts +451 -0
  2389. package/node_modules/rpc-websockets/node_modules/@types/ws/index.d.ts +445 -0
  2390. package/node_modules/rpc-websockets/node_modules/@types/ws/package.json +72 -0
  2391. package/node_modules/rpc-websockets/node_modules/eventemitter3/LICENSE +21 -0
  2392. package/node_modules/rpc-websockets/node_modules/eventemitter3/README.md +94 -0
  2393. package/node_modules/rpc-websockets/node_modules/eventemitter3/dist/eventemitter3.esm.js +347 -0
  2394. package/node_modules/rpc-websockets/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +1 -0
  2395. package/node_modules/rpc-websockets/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +1 -0
  2396. package/node_modules/rpc-websockets/node_modules/eventemitter3/dist/eventemitter3.umd.js +355 -0
  2397. package/node_modules/rpc-websockets/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +1 -0
  2398. package/node_modules/rpc-websockets/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +1 -0
  2399. package/node_modules/rpc-websockets/node_modules/eventemitter3/index.d.ts +135 -0
  2400. package/node_modules/rpc-websockets/node_modules/eventemitter3/index.js +336 -0
  2401. package/node_modules/rpc-websockets/node_modules/eventemitter3/index.mjs +4 -0
  2402. package/node_modules/rpc-websockets/node_modules/eventemitter3/package.json +67 -0
  2403. package/node_modules/rpc-websockets/node_modules/ws/LICENSE +20 -0
  2404. package/node_modules/rpc-websockets/node_modules/ws/README.md +548 -0
  2405. package/node_modules/rpc-websockets/node_modules/ws/browser.js +8 -0
  2406. package/node_modules/rpc-websockets/node_modules/ws/index.js +13 -0
  2407. package/node_modules/rpc-websockets/node_modules/ws/lib/buffer-util.js +131 -0
  2408. package/node_modules/rpc-websockets/node_modules/ws/lib/constants.js +18 -0
  2409. package/node_modules/rpc-websockets/node_modules/ws/lib/event-target.js +292 -0
  2410. package/node_modules/rpc-websockets/node_modules/ws/lib/extension.js +203 -0
  2411. package/node_modules/rpc-websockets/node_modules/ws/lib/limiter.js +55 -0
  2412. package/node_modules/rpc-websockets/node_modules/ws/lib/permessage-deflate.js +528 -0
  2413. package/node_modules/rpc-websockets/node_modules/ws/lib/receiver.js +706 -0
  2414. package/node_modules/rpc-websockets/node_modules/ws/lib/sender.js +602 -0
  2415. package/node_modules/rpc-websockets/node_modules/ws/lib/stream.js +161 -0
  2416. package/node_modules/rpc-websockets/node_modules/ws/lib/subprotocol.js +62 -0
  2417. package/node_modules/rpc-websockets/node_modules/ws/lib/validation.js +152 -0
  2418. package/node_modules/rpc-websockets/node_modules/ws/lib/websocket-server.js +540 -0
  2419. package/node_modules/rpc-websockets/node_modules/ws/lib/websocket.js +1388 -0
  2420. package/node_modules/rpc-websockets/node_modules/ws/package.json +69 -0
  2421. package/node_modules/rpc-websockets/node_modules/ws/wrapper.mjs +8 -0
  2422. package/node_modules/rpc-websockets/package.json +90 -0
  2423. package/node_modules/safe-buffer/LICENSE +21 -0
  2424. package/node_modules/safe-buffer/README.md +584 -0
  2425. package/node_modules/safe-buffer/index.d.ts +187 -0
  2426. package/node_modules/safe-buffer/index.js +65 -0
  2427. package/node_modules/safe-buffer/package.json +51 -0
  2428. package/node_modules/stream-chain/LICENSE +11 -0
  2429. package/node_modules/stream-chain/README.md +334 -0
  2430. package/node_modules/stream-chain/defs.js +22 -0
  2431. package/node_modules/stream-chain/index.js +203 -0
  2432. package/node_modules/stream-chain/package.json +31 -0
  2433. package/node_modules/stream-chain/utils/FromIterable.js +94 -0
  2434. package/node_modules/stream-chain/utils/Reduce.js +40 -0
  2435. package/node_modules/stream-chain/utils/asFun.js +85 -0
  2436. package/node_modules/stream-chain/utils/asGen.js +77 -0
  2437. package/node_modules/stream-chain/utils/comp.js +20 -0
  2438. package/node_modules/stream-chain/utils/fold.js +43 -0
  2439. package/node_modules/stream-chain/utils/gen.js +24 -0
  2440. package/node_modules/stream-chain/utils/scan.js +41 -0
  2441. package/node_modules/stream-chain/utils/skip.js +32 -0
  2442. package/node_modules/stream-chain/utils/skipWhile.js +46 -0
  2443. package/node_modules/stream-chain/utils/take.js +39 -0
  2444. package/node_modules/stream-chain/utils/takeWhile.js +47 -0
  2445. package/node_modules/stream-json/Assembler.js +154 -0
  2446. package/node_modules/stream-json/Disassembler.js +209 -0
  2447. package/node_modules/stream-json/Emitter.js +22 -0
  2448. package/node_modules/stream-json/LICENSE +34 -0
  2449. package/node_modules/stream-json/Parser.js +545 -0
  2450. package/node_modules/stream-json/README.md +128 -0
  2451. package/node_modules/stream-json/Stringer.js +153 -0
  2452. package/node_modules/stream-json/filters/Filter.js +130 -0
  2453. package/node_modules/stream-json/filters/FilterBase.js +201 -0
  2454. package/node_modules/stream-json/filters/Ignore.js +24 -0
  2455. package/node_modules/stream-json/filters/Pick.js +58 -0
  2456. package/node_modules/stream-json/filters/Replace.js +115 -0
  2457. package/node_modules/stream-json/index.js +11 -0
  2458. package/node_modules/stream-json/jsonl/Parser.js +131 -0
  2459. package/node_modules/stream-json/jsonl/Stringer.js +29 -0
  2460. package/node_modules/stream-json/package.json +45 -0
  2461. package/node_modules/stream-json/streamers/StreamArray.js +44 -0
  2462. package/node_modules/stream-json/streamers/StreamBase.js +101 -0
  2463. package/node_modules/stream-json/streamers/StreamObject.js +43 -0
  2464. package/node_modules/stream-json/streamers/StreamValues.js +33 -0
  2465. package/node_modules/stream-json/utils/Batch.js +44 -0
  2466. package/node_modules/stream-json/utils/Utf8Stream.js +53 -0
  2467. package/node_modules/stream-json/utils/Verifier.js +485 -0
  2468. package/node_modules/stream-json/utils/emit.js +5 -0
  2469. package/node_modules/stream-json/utils/withParser.js +10 -0
  2470. package/node_modules/superstruct/License.md +9 -0
  2471. package/node_modules/superstruct/Readme.md +228 -0
  2472. package/node_modules/superstruct/lib/coercions.d.ts +19 -0
  2473. package/node_modules/superstruct/lib/coercions.d.ts.map +1 -0
  2474. package/node_modules/superstruct/lib/error.d.ts +32 -0
  2475. package/node_modules/superstruct/lib/error.d.ts.map +1 -0
  2476. package/node_modules/superstruct/lib/index.cjs +1257 -0
  2477. package/node_modules/superstruct/lib/index.cjs.d.ts +579 -0
  2478. package/node_modules/superstruct/lib/index.cjs.map +1 -0
  2479. package/node_modules/superstruct/lib/index.d.cts +579 -0
  2480. package/node_modules/superstruct/lib/index.d.ts +7 -0
  2481. package/node_modules/superstruct/lib/index.d.ts.map +1 -0
  2482. package/node_modules/superstruct/lib/index.es.d.ts +579 -0
  2483. package/node_modules/superstruct/lib/index.es.js +1203 -0
  2484. package/node_modules/superstruct/lib/index.es.js.map +1 -0
  2485. package/node_modules/superstruct/lib/refinements.d.ts +19 -0
  2486. package/node_modules/superstruct/lib/refinements.d.ts.map +1 -0
  2487. package/node_modules/superstruct/lib/struct.d.ts +110 -0
  2488. package/node_modules/superstruct/lib/struct.d.ts.map +1 -0
  2489. package/node_modules/superstruct/lib/structs/coercions.d.ts +29 -0
  2490. package/node_modules/superstruct/lib/structs/coercions.d.ts.map +1 -0
  2491. package/node_modules/superstruct/lib/structs/refinements.d.ts +38 -0
  2492. package/node_modules/superstruct/lib/structs/refinements.d.ts.map +1 -0
  2493. package/node_modules/superstruct/lib/structs/types.d.ts +142 -0
  2494. package/node_modules/superstruct/lib/structs/types.d.ts.map +1 -0
  2495. package/node_modules/superstruct/lib/structs/utilities.d.ts +66 -0
  2496. package/node_modules/superstruct/lib/structs/utilities.d.ts.map +1 -0
  2497. package/node_modules/superstruct/lib/types.d.ts +200 -0
  2498. package/node_modules/superstruct/lib/types.d.ts.map +1 -0
  2499. package/node_modules/superstruct/lib/typings.d.ts +36 -0
  2500. package/node_modules/superstruct/lib/typings.d.ts.map +1 -0
  2501. package/node_modules/superstruct/lib/utilities.d.ts +56 -0
  2502. package/node_modules/superstruct/lib/utilities.d.ts.map +1 -0
  2503. package/node_modules/superstruct/lib/utils.d.ts +139 -0
  2504. package/node_modules/superstruct/lib/utils.d.ts.map +1 -0
  2505. package/node_modules/superstruct/lib/xtras.d.ts +56 -0
  2506. package/node_modules/superstruct/lib/xtras.d.ts.map +1 -0
  2507. package/node_modules/superstruct/package.json +110 -0
  2508. package/node_modules/superstruct/umd/coercions.d.ts +18 -0
  2509. package/node_modules/superstruct/umd/index.d.ts +4 -0
  2510. package/node_modules/superstruct/umd/refinements.d.ts +14 -0
  2511. package/node_modules/superstruct/umd/struct.d.ts +80 -0
  2512. package/node_modules/superstruct/umd/superstruct.d.ts +579 -0
  2513. package/node_modules/superstruct/umd/superstruct.js +1262 -0
  2514. package/node_modules/superstruct/umd/superstruct.min.d.ts +579 -0
  2515. package/node_modules/superstruct/umd/superstruct.min.js +1 -0
  2516. package/node_modules/superstruct/umd/types.d.ts +127 -0
  2517. package/node_modules/superstruct/umd/utils.d.ts +9 -0
  2518. package/node_modules/text-encoding-utf-8/LICENSE.md +29 -0
  2519. package/node_modules/text-encoding-utf-8/README.md +63 -0
  2520. package/node_modules/text-encoding-utf-8/lib/encoding.js +655 -0
  2521. package/node_modules/text-encoding-utf-8/lib/encoding.lib.js +642 -0
  2522. package/node_modules/text-encoding-utf-8/lib/encoding.lib.mjs +665 -0
  2523. package/node_modules/text-encoding-utf-8/package.json +26 -0
  2524. package/node_modules/text-encoding-utf-8/src/encoding.js +665 -0
  2525. package/node_modules/text-encoding-utf-8/src/polyfill.js +21 -0
  2526. package/node_modules/toml/.jshintrc +18 -0
  2527. package/node_modules/toml/.travis.yml +7 -0
  2528. package/node_modules/toml/CHANGELOG.md +116 -0
  2529. package/node_modules/toml/LICENSE +22 -0
  2530. package/node_modules/toml/README.md +93 -0
  2531. package/node_modules/toml/benchmark.js +12 -0
  2532. package/node_modules/toml/index.d.ts +3 -0
  2533. package/node_modules/toml/index.js +9 -0
  2534. package/node_modules/toml/lib/compiler.js +195 -0
  2535. package/node_modules/toml/lib/parser.js +3841 -0
  2536. package/node_modules/toml/package.json +24 -0
  2537. package/node_modules/toml/src/toml.pegjs +231 -0
  2538. package/node_modules/toml/test/bad.toml +5 -0
  2539. package/node_modules/toml/test/example.toml +32 -0
  2540. package/node_modules/toml/test/hard_example.toml +33 -0
  2541. package/node_modules/toml/test/inline_tables.toml +10 -0
  2542. package/node_modules/toml/test/literal_strings.toml +5 -0
  2543. package/node_modules/toml/test/multiline_eat_whitespace.toml +15 -0
  2544. package/node_modules/toml/test/multiline_literal_strings.toml +7 -0
  2545. package/node_modules/toml/test/multiline_strings.toml +6 -0
  2546. package/node_modules/toml/test/smoke.js +22 -0
  2547. package/node_modules/toml/test/table_arrays_easy.toml +10 -0
  2548. package/node_modules/toml/test/table_arrays_hard.toml +31 -0
  2549. package/node_modules/toml/test/test_toml.js +596 -0
  2550. package/node_modules/tslib/CopyrightNotice.txt +15 -0
  2551. package/node_modules/tslib/LICENSE.txt +12 -0
  2552. package/node_modules/tslib/README.md +164 -0
  2553. package/node_modules/tslib/SECURITY.md +41 -0
  2554. package/node_modules/tslib/modules/index.d.ts +38 -0
  2555. package/node_modules/tslib/modules/index.js +70 -0
  2556. package/node_modules/tslib/modules/package.json +3 -0
  2557. package/node_modules/tslib/package.json +47 -0
  2558. package/node_modules/tslib/tslib.d.ts +460 -0
  2559. package/node_modules/tslib/tslib.es6.html +1 -0
  2560. package/node_modules/tslib/tslib.es6.js +402 -0
  2561. package/node_modules/tslib/tslib.es6.mjs +401 -0
  2562. package/node_modules/tslib/tslib.html +1 -0
  2563. package/node_modules/tslib/tslib.js +484 -0
  2564. package/node_modules/undici-types/LICENSE +21 -0
  2565. package/node_modules/undici-types/README.md +6 -0
  2566. package/node_modules/undici-types/agent.d.ts +31 -0
  2567. package/node_modules/undici-types/api.d.ts +43 -0
  2568. package/node_modules/undici-types/balanced-pool.d.ts +29 -0
  2569. package/node_modules/undici-types/cache.d.ts +36 -0
  2570. package/node_modules/undici-types/client.d.ts +108 -0
  2571. package/node_modules/undici-types/connector.d.ts +34 -0
  2572. package/node_modules/undici-types/content-type.d.ts +21 -0
  2573. package/node_modules/undici-types/cookies.d.ts +28 -0
  2574. package/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
  2575. package/node_modules/undici-types/dispatcher.d.ts +256 -0
  2576. package/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  2577. package/node_modules/undici-types/errors.d.ts +149 -0
  2578. package/node_modules/undici-types/eventsource.d.ts +61 -0
  2579. package/node_modules/undici-types/fetch.d.ts +209 -0
  2580. package/node_modules/undici-types/file.d.ts +39 -0
  2581. package/node_modules/undici-types/filereader.d.ts +54 -0
  2582. package/node_modules/undici-types/formdata.d.ts +108 -0
  2583. package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  2584. package/node_modules/undici-types/global-origin.d.ts +7 -0
  2585. package/node_modules/undici-types/handlers.d.ts +15 -0
  2586. package/node_modules/undici-types/header.d.ts +4 -0
  2587. package/node_modules/undici-types/index.d.ts +71 -0
  2588. package/node_modules/undici-types/interceptors.d.ts +17 -0
  2589. package/node_modules/undici-types/mock-agent.d.ts +50 -0
  2590. package/node_modules/undici-types/mock-client.d.ts +25 -0
  2591. package/node_modules/undici-types/mock-errors.d.ts +12 -0
  2592. package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  2593. package/node_modules/undici-types/mock-pool.d.ts +25 -0
  2594. package/node_modules/undici-types/package.json +55 -0
  2595. package/node_modules/undici-types/patch.d.ts +33 -0
  2596. package/node_modules/undici-types/pool-stats.d.ts +19 -0
  2597. package/node_modules/undici-types/pool.d.ts +39 -0
  2598. package/node_modules/undici-types/proxy-agent.d.ts +28 -0
  2599. package/node_modules/undici-types/readable.d.ts +65 -0
  2600. package/node_modules/undici-types/retry-agent.d.ts +8 -0
  2601. package/node_modules/undici-types/retry-handler.d.ts +116 -0
  2602. package/node_modules/undici-types/util.d.ts +18 -0
  2603. package/node_modules/undici-types/webidl.d.ts +228 -0
  2604. package/node_modules/undici-types/websocket.d.ts +150 -0
  2605. package/node_modules/utf-8-validate/LICENSE +30 -0
  2606. package/node_modules/utf-8-validate/README.md +50 -0
  2607. package/node_modules/utf-8-validate/binding.gyp +18 -0
  2608. package/node_modules/utf-8-validate/fallback.js +62 -0
  2609. package/node_modules/utf-8-validate/index.js +7 -0
  2610. package/node_modules/utf-8-validate/package.json +36 -0
  2611. package/node_modules/utf-8-validate/prebuilds/darwin-x64+arm64/node.napi.node +0 -0
  2612. package/node_modules/utf-8-validate/prebuilds/linux-x64/node.napi.node +0 -0
  2613. package/node_modules/utf-8-validate/prebuilds/win32-ia32/node.napi.node +0 -0
  2614. package/node_modules/utf-8-validate/prebuilds/win32-x64/node.napi.node +0 -0
  2615. package/node_modules/utf-8-validate/src/validation.c +109 -0
  2616. package/node_modules/uuid/CHANGELOG.md +229 -0
  2617. package/node_modules/uuid/CONTRIBUTING.md +18 -0
  2618. package/node_modules/uuid/LICENSE.md +9 -0
  2619. package/node_modules/uuid/README.md +505 -0
  2620. package/node_modules/uuid/dist/bin/uuid +2 -0
  2621. package/node_modules/uuid/dist/esm-browser/index.js +9 -0
  2622. package/node_modules/uuid/dist/esm-browser/md5.js +215 -0
  2623. package/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  2624. package/node_modules/uuid/dist/esm-browser/parse.js +35 -0
  2625. package/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  2626. package/node_modules/uuid/dist/esm-browser/rng.js +19 -0
  2627. package/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
  2628. package/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
  2629. package/node_modules/uuid/dist/esm-browser/v1.js +95 -0
  2630. package/node_modules/uuid/dist/esm-browser/v3.js +4 -0
  2631. package/node_modules/uuid/dist/esm-browser/v35.js +64 -0
  2632. package/node_modules/uuid/dist/esm-browser/v4.js +24 -0
  2633. package/node_modules/uuid/dist/esm-browser/v5.js +4 -0
  2634. package/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  2635. package/node_modules/uuid/dist/esm-browser/version.js +11 -0
  2636. package/node_modules/uuid/dist/esm-node/index.js +9 -0
  2637. package/node_modules/uuid/dist/esm-node/md5.js +13 -0
  2638. package/node_modules/uuid/dist/esm-node/nil.js +1 -0
  2639. package/node_modules/uuid/dist/esm-node/parse.js +35 -0
  2640. package/node_modules/uuid/dist/esm-node/regex.js +1 -0
  2641. package/node_modules/uuid/dist/esm-node/rng.js +12 -0
  2642. package/node_modules/uuid/dist/esm-node/sha1.js +13 -0
  2643. package/node_modules/uuid/dist/esm-node/stringify.js +29 -0
  2644. package/node_modules/uuid/dist/esm-node/v1.js +95 -0
  2645. package/node_modules/uuid/dist/esm-node/v3.js +4 -0
  2646. package/node_modules/uuid/dist/esm-node/v35.js +64 -0
  2647. package/node_modules/uuid/dist/esm-node/v4.js +24 -0
  2648. package/node_modules/uuid/dist/esm-node/v5.js +4 -0
  2649. package/node_modules/uuid/dist/esm-node/validate.js +7 -0
  2650. package/node_modules/uuid/dist/esm-node/version.js +11 -0
  2651. package/node_modules/uuid/dist/index.js +79 -0
  2652. package/node_modules/uuid/dist/md5-browser.js +223 -0
  2653. package/node_modules/uuid/dist/md5.js +23 -0
  2654. package/node_modules/uuid/dist/nil.js +8 -0
  2655. package/node_modules/uuid/dist/parse.js +45 -0
  2656. package/node_modules/uuid/dist/regex.js +8 -0
  2657. package/node_modules/uuid/dist/rng-browser.js +26 -0
  2658. package/node_modules/uuid/dist/rng.js +24 -0
  2659. package/node_modules/uuid/dist/sha1-browser.js +104 -0
  2660. package/node_modules/uuid/dist/sha1.js +23 -0
  2661. package/node_modules/uuid/dist/stringify.js +39 -0
  2662. package/node_modules/uuid/dist/umd/uuid.min.js +1 -0
  2663. package/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
  2664. package/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
  2665. package/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
  2666. package/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
  2667. package/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
  2668. package/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
  2669. package/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
  2670. package/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
  2671. package/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
  2672. package/node_modules/uuid/dist/uuid-bin.js +85 -0
  2673. package/node_modules/uuid/dist/v1.js +107 -0
  2674. package/node_modules/uuid/dist/v3.js +16 -0
  2675. package/node_modules/uuid/dist/v35.js +78 -0
  2676. package/node_modules/uuid/dist/v4.js +37 -0
  2677. package/node_modules/uuid/dist/v5.js +16 -0
  2678. package/node_modules/uuid/dist/validate.js +17 -0
  2679. package/node_modules/uuid/dist/version.js +21 -0
  2680. package/node_modules/uuid/package.json +135 -0
  2681. package/node_modules/uuid/wrapper.mjs +10 -0
  2682. package/node_modules/webidl-conversions/LICENSE.md +12 -0
  2683. package/node_modules/webidl-conversions/README.md +53 -0
  2684. package/node_modules/webidl-conversions/lib/index.js +189 -0
  2685. package/node_modules/webidl-conversions/package.json +23 -0
  2686. package/node_modules/whatwg-url/LICENSE.txt +21 -0
  2687. package/node_modules/whatwg-url/README.md +67 -0
  2688. package/node_modules/whatwg-url/lib/URL-impl.js +200 -0
  2689. package/node_modules/whatwg-url/lib/URL.js +196 -0
  2690. package/node_modules/whatwg-url/lib/public-api.js +11 -0
  2691. package/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
  2692. package/node_modules/whatwg-url/lib/utils.js +20 -0
  2693. package/node_modules/whatwg-url/node_modules/tr46/.npmignore +4 -0
  2694. package/node_modules/whatwg-url/node_modules/tr46/index.js +193 -0
  2695. package/node_modules/whatwg-url/node_modules/tr46/lib/.gitkeep +0 -0
  2696. package/node_modules/whatwg-url/node_modules/tr46/lib/mappingTable.json +1 -0
  2697. package/node_modules/whatwg-url/node_modules/tr46/package.json +31 -0
  2698. package/node_modules/whatwg-url/package.json +32 -0
  2699. package/node_modules/ws/LICENSE +21 -0
  2700. package/node_modules/ws/README.md +495 -0
  2701. package/node_modules/ws/browser.js +8 -0
  2702. package/node_modules/ws/index.js +10 -0
  2703. package/node_modules/ws/lib/buffer-util.js +129 -0
  2704. package/node_modules/ws/lib/constants.js +10 -0
  2705. package/node_modules/ws/lib/event-target.js +184 -0
  2706. package/node_modules/ws/lib/extension.js +223 -0
  2707. package/node_modules/ws/lib/limiter.js +55 -0
  2708. package/node_modules/ws/lib/permessage-deflate.js +518 -0
  2709. package/node_modules/ws/lib/receiver.js +607 -0
  2710. package/node_modules/ws/lib/sender.js +409 -0
  2711. package/node_modules/ws/lib/stream.js +180 -0
  2712. package/node_modules/ws/lib/validation.js +104 -0
  2713. package/node_modules/ws/lib/websocket-server.js +449 -0
  2714. package/node_modules/ws/lib/websocket.js +1197 -0
  2715. package/node_modules/ws/package.json +56 -0
  2716. package/package.json +4 -1
@@ -0,0 +1,3924 @@
1
+
2
+ /*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
3
+ (function (global, factory) {
4
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
5
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
6
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.pako = {}));
7
+ })(this, (function (exports) { 'use strict';
8
+
9
+ // (C) 1995-2013 Jean-loup Gailly and Mark Adler
10
+ // (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
11
+ //
12
+ // This software is provided 'as-is', without any express or implied
13
+ // warranty. In no event will the authors be held liable for any damages
14
+ // arising from the use of this software.
15
+ //
16
+ // Permission is granted to anyone to use this software for any purpose,
17
+ // including commercial applications, and to alter it and redistribute it
18
+ // freely, subject to the following restrictions:
19
+ //
20
+ // 1. The origin of this software must not be misrepresented; you must not
21
+ // claim that you wrote the original software. If you use this software
22
+ // in a product, an acknowledgment in the product documentation would be
23
+ // appreciated but is not required.
24
+ // 2. Altered source versions must be plainly marked as such, and must not be
25
+ // misrepresented as being the original software.
26
+ // 3. This notice may not be removed or altered from any source distribution.
27
+
28
+ /* eslint-disable space-unary-ops */
29
+
30
+ /* Public constants ==========================================================*/
31
+ /* ===========================================================================*/
32
+
33
+ //const Z_FILTERED = 1;
34
+ //const Z_HUFFMAN_ONLY = 2;
35
+ //const Z_RLE = 3;
36
+ var Z_FIXED$1 = 4;
37
+ //const Z_DEFAULT_STRATEGY = 0;
38
+
39
+ /* Possible values of the data_type field (though see inflate()) */
40
+ var Z_BINARY = 0;
41
+ var Z_TEXT = 1;
42
+ //const Z_ASCII = 1; // = Z_TEXT
43
+ var Z_UNKNOWN$1 = 2;
44
+
45
+ /*============================================================================*/
46
+
47
+ function zero$1(buf) {
48
+ var len = buf.length;
49
+ while (--len >= 0) {
50
+ buf[len] = 0;
51
+ }
52
+ }
53
+
54
+ // From zutil.h
55
+
56
+ var STORED_BLOCK = 0;
57
+ var STATIC_TREES = 1;
58
+ var DYN_TREES = 2;
59
+ /* The three kinds of block type */
60
+
61
+ var MIN_MATCH$1 = 3;
62
+ var MAX_MATCH$1 = 258;
63
+ /* The minimum and maximum match lengths */
64
+
65
+ // From deflate.h
66
+ /* ===========================================================================
67
+ * Internal compression state.
68
+ */
69
+
70
+ var LENGTH_CODES$1 = 29;
71
+ /* number of length codes, not counting the special END_BLOCK code */
72
+
73
+ var LITERALS$1 = 256;
74
+ /* number of literal bytes 0..255 */
75
+
76
+ var L_CODES$1 = LITERALS$1 + 1 + LENGTH_CODES$1;
77
+ /* number of Literal or Length codes, including the END_BLOCK code */
78
+
79
+ var D_CODES$1 = 30;
80
+ /* number of distance codes */
81
+
82
+ var BL_CODES$1 = 19;
83
+ /* number of codes used to transfer the bit lengths */
84
+
85
+ var HEAP_SIZE$1 = 2 * L_CODES$1 + 1;
86
+ /* maximum heap size */
87
+
88
+ var MAX_BITS$1 = 15;
89
+ /* All codes must not exceed MAX_BITS bits */
90
+
91
+ var Buf_size = 16;
92
+ /* size of bit buffer in bi_buf */
93
+
94
+ /* ===========================================================================
95
+ * Constants
96
+ */
97
+
98
+ var MAX_BL_BITS = 7;
99
+ /* Bit length codes must not exceed MAX_BL_BITS bits */
100
+
101
+ var END_BLOCK = 256;
102
+ /* end of block literal code */
103
+
104
+ var REP_3_6 = 16;
105
+ /* repeat previous bit length 3-6 times (2 bits of repeat count) */
106
+
107
+ var REPZ_3_10 = 17;
108
+ /* repeat a zero length 3-10 times (3 bits of repeat count) */
109
+
110
+ var REPZ_11_138 = 18;
111
+ /* repeat a zero length 11-138 times (7 bits of repeat count) */
112
+
113
+ /* eslint-disable comma-spacing,array-bracket-spacing */
114
+ var extra_lbits = /* extra bits for each length code */
115
+ new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]);
116
+ var extra_dbits = /* extra bits for each distance code */
117
+ new Uint8Array([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]);
118
+ var extra_blbits = /* extra bits for each bit length code */
119
+ new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]);
120
+ var bl_order = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]);
121
+ /* eslint-enable comma-spacing,array-bracket-spacing */
122
+
123
+ /* The lengths of the bit length codes are sent in order of decreasing
124
+ * probability, to avoid transmitting the lengths for unused bit length codes.
125
+ */
126
+
127
+ /* ===========================================================================
128
+ * Local data. These are initialized only once.
129
+ */
130
+
131
+ // We pre-fill arrays with 0 to avoid uninitialized gaps
132
+
133
+ var DIST_CODE_LEN = 512; /* see definition of array dist_code below */
134
+
135
+ // !!!! Use flat array instead of structure, Freq = i*2, Len = i*2+1
136
+ var static_ltree = new Array((L_CODES$1 + 2) * 2);
137
+ zero$1(static_ltree);
138
+ /* The static literal tree. Since the bit lengths are imposed, there is no
139
+ * need for the L_CODES extra codes used during heap construction. However
140
+ * The codes 286 and 287 are needed to build a canonical tree (see _tr_init
141
+ * below).
142
+ */
143
+
144
+ var static_dtree = new Array(D_CODES$1 * 2);
145
+ zero$1(static_dtree);
146
+ /* The static distance tree. (Actually a trivial tree since all codes use
147
+ * 5 bits.)
148
+ */
149
+
150
+ var _dist_code = new Array(DIST_CODE_LEN);
151
+ zero$1(_dist_code);
152
+ /* Distance codes. The first 256 values correspond to the distances
153
+ * 3 .. 258, the last 256 values correspond to the top 8 bits of
154
+ * the 15 bit distances.
155
+ */
156
+
157
+ var _length_code = new Array(MAX_MATCH$1 - MIN_MATCH$1 + 1);
158
+ zero$1(_length_code);
159
+ /* length code for each normalized match length (0 == MIN_MATCH) */
160
+
161
+ var base_length = new Array(LENGTH_CODES$1);
162
+ zero$1(base_length);
163
+ /* First normalized length for each code (0 = MIN_MATCH) */
164
+
165
+ var base_dist = new Array(D_CODES$1);
166
+ zero$1(base_dist);
167
+ /* First normalized distance for each code (0 = distance of 1) */
168
+
169
+ function StaticTreeDesc(static_tree, extra_bits, extra_base, elems, max_length) {
170
+ this.static_tree = static_tree; /* static tree or NULL */
171
+ this.extra_bits = extra_bits; /* extra bits for each code or NULL */
172
+ this.extra_base = extra_base; /* base index for extra_bits */
173
+ this.elems = elems; /* max number of elements in the tree */
174
+ this.max_length = max_length; /* max bit length for the codes */
175
+
176
+ // show if `static_tree` has data or dummy - needed for monomorphic objects
177
+ this.has_stree = static_tree && static_tree.length;
178
+ }
179
+ var static_l_desc;
180
+ var static_d_desc;
181
+ var static_bl_desc;
182
+ function TreeDesc(dyn_tree, stat_desc) {
183
+ this.dyn_tree = dyn_tree; /* the dynamic tree */
184
+ this.max_code = 0; /* largest code with non zero frequency */
185
+ this.stat_desc = stat_desc; /* the corresponding static tree */
186
+ }
187
+
188
+ var d_code = function d_code(dist) {
189
+ return dist < 256 ? _dist_code[dist] : _dist_code[256 + (dist >>> 7)];
190
+ };
191
+
192
+ /* ===========================================================================
193
+ * Output a short LSB first on the stream.
194
+ * IN assertion: there is enough room in pendingBuf.
195
+ */
196
+ var put_short = function put_short(s, w) {
197
+ // put_byte(s, (uch)((w) & 0xff));
198
+ // put_byte(s, (uch)((ush)(w) >> 8));
199
+ s.pending_buf[s.pending++] = w & 0xff;
200
+ s.pending_buf[s.pending++] = w >>> 8 & 0xff;
201
+ };
202
+
203
+ /* ===========================================================================
204
+ * Send a value on a given number of bits.
205
+ * IN assertion: length <= 16 and value fits in length bits.
206
+ */
207
+ var send_bits = function send_bits(s, value, length) {
208
+ if (s.bi_valid > Buf_size - length) {
209
+ s.bi_buf |= value << s.bi_valid & 0xffff;
210
+ put_short(s, s.bi_buf);
211
+ s.bi_buf = value >> Buf_size - s.bi_valid;
212
+ s.bi_valid += length - Buf_size;
213
+ } else {
214
+ s.bi_buf |= value << s.bi_valid & 0xffff;
215
+ s.bi_valid += length;
216
+ }
217
+ };
218
+ var send_code = function send_code(s, c, tree) {
219
+ send_bits(s, tree[c * 2] /*.Code*/, tree[c * 2 + 1] /*.Len*/);
220
+ };
221
+
222
+ /* ===========================================================================
223
+ * Reverse the first len bits of a code, using straightforward code (a faster
224
+ * method would use a table)
225
+ * IN assertion: 1 <= len <= 15
226
+ */
227
+ var bi_reverse = function bi_reverse(code, len) {
228
+ var res = 0;
229
+ do {
230
+ res |= code & 1;
231
+ code >>>= 1;
232
+ res <<= 1;
233
+ } while (--len > 0);
234
+ return res >>> 1;
235
+ };
236
+
237
+ /* ===========================================================================
238
+ * Flush the bit buffer, keeping at most 7 bits in it.
239
+ */
240
+ var bi_flush = function bi_flush(s) {
241
+ if (s.bi_valid === 16) {
242
+ put_short(s, s.bi_buf);
243
+ s.bi_buf = 0;
244
+ s.bi_valid = 0;
245
+ } else if (s.bi_valid >= 8) {
246
+ s.pending_buf[s.pending++] = s.bi_buf & 0xff;
247
+ s.bi_buf >>= 8;
248
+ s.bi_valid -= 8;
249
+ }
250
+ };
251
+
252
+ /* ===========================================================================
253
+ * Compute the optimal bit lengths for a tree and update the total bit length
254
+ * for the current block.
255
+ * IN assertion: the fields freq and dad are set, heap[heap_max] and
256
+ * above are the tree nodes sorted by increasing frequency.
257
+ * OUT assertions: the field len is set to the optimal bit length, the
258
+ * array bl_count contains the frequencies for each bit length.
259
+ * The length opt_len is updated; static_len is also updated if stree is
260
+ * not null.
261
+ */
262
+ var gen_bitlen = function gen_bitlen(s, desc) {
263
+ // deflate_state *s;
264
+ // tree_desc *desc; /* the tree descriptor */
265
+
266
+ var tree = desc.dyn_tree;
267
+ var max_code = desc.max_code;
268
+ var stree = desc.stat_desc.static_tree;
269
+ var has_stree = desc.stat_desc.has_stree;
270
+ var extra = desc.stat_desc.extra_bits;
271
+ var base = desc.stat_desc.extra_base;
272
+ var max_length = desc.stat_desc.max_length;
273
+ var h; /* heap index */
274
+ var n, m; /* iterate over the tree elements */
275
+ var bits; /* bit length */
276
+ var xbits; /* extra bits */
277
+ var f; /* frequency */
278
+ var overflow = 0; /* number of elements with bit length too large */
279
+
280
+ for (bits = 0; bits <= MAX_BITS$1; bits++) {
281
+ s.bl_count[bits] = 0;
282
+ }
283
+
284
+ /* In a first pass, compute the optimal bit lengths (which may
285
+ * overflow in the case of the bit length tree).
286
+ */
287
+ tree[s.heap[s.heap_max] * 2 + 1] /*.Len*/ = 0; /* root of the heap */
288
+
289
+ for (h = s.heap_max + 1; h < HEAP_SIZE$1; h++) {
290
+ n = s.heap[h];
291
+ bits = tree[tree[n * 2 + 1] /*.Dad*/ * 2 + 1] /*.Len*/ + 1;
292
+ if (bits > max_length) {
293
+ bits = max_length;
294
+ overflow++;
295
+ }
296
+ tree[n * 2 + 1] /*.Len*/ = bits;
297
+ /* We overwrite tree[n].Dad which is no longer needed */
298
+
299
+ if (n > max_code) {
300
+ continue;
301
+ } /* not a leaf node */
302
+
303
+ s.bl_count[bits]++;
304
+ xbits = 0;
305
+ if (n >= base) {
306
+ xbits = extra[n - base];
307
+ }
308
+ f = tree[n * 2] /*.Freq*/;
309
+ s.opt_len += f * (bits + xbits);
310
+ if (has_stree) {
311
+ s.static_len += f * (stree[n * 2 + 1] /*.Len*/ + xbits);
312
+ }
313
+ }
314
+ if (overflow === 0) {
315
+ return;
316
+ }
317
+
318
+ // Tracev((stderr,"\nbit length overflow\n"));
319
+ /* This happens for example on obj2 and pic of the Calgary corpus */
320
+
321
+ /* Find the first bit length which could increase: */
322
+ do {
323
+ bits = max_length - 1;
324
+ while (s.bl_count[bits] === 0) {
325
+ bits--;
326
+ }
327
+ s.bl_count[bits]--; /* move one leaf down the tree */
328
+ s.bl_count[bits + 1] += 2; /* move one overflow item as its brother */
329
+ s.bl_count[max_length]--;
330
+ /* The brother of the overflow item also moves one step up,
331
+ * but this does not affect bl_count[max_length]
332
+ */
333
+ overflow -= 2;
334
+ } while (overflow > 0);
335
+
336
+ /* Now recompute all bit lengths, scanning in increasing frequency.
337
+ * h is still equal to HEAP_SIZE. (It is simpler to reconstruct all
338
+ * lengths instead of fixing only the wrong ones. This idea is taken
339
+ * from 'ar' written by Haruhiko Okumura.)
340
+ */
341
+ for (bits = max_length; bits !== 0; bits--) {
342
+ n = s.bl_count[bits];
343
+ while (n !== 0) {
344
+ m = s.heap[--h];
345
+ if (m > max_code) {
346
+ continue;
347
+ }
348
+ if (tree[m * 2 + 1] /*.Len*/ !== bits) {
349
+ // Tracev((stderr,"code %d bits %d->%d\n", m, tree[m].Len, bits));
350
+ s.opt_len += (bits - tree[m * 2 + 1] /*.Len*/) * tree[m * 2] /*.Freq*/;
351
+ tree[m * 2 + 1] /*.Len*/ = bits;
352
+ }
353
+ n--;
354
+ }
355
+ }
356
+ };
357
+
358
+ /* ===========================================================================
359
+ * Generate the codes for a given tree and bit counts (which need not be
360
+ * optimal).
361
+ * IN assertion: the array bl_count contains the bit length statistics for
362
+ * the given tree and the field len is set for all tree elements.
363
+ * OUT assertion: the field code is set for all tree elements of non
364
+ * zero code length.
365
+ */
366
+ var gen_codes = function gen_codes(tree, max_code, bl_count) {
367
+ // ct_data *tree; /* the tree to decorate */
368
+ // int max_code; /* largest code with non zero frequency */
369
+ // ushf *bl_count; /* number of codes at each bit length */
370
+
371
+ var next_code = new Array(MAX_BITS$1 + 1); /* next code value for each bit length */
372
+ var code = 0; /* running code value */
373
+ var bits; /* bit index */
374
+ var n; /* code index */
375
+
376
+ /* The distribution counts are first used to generate the code values
377
+ * without bit reversal.
378
+ */
379
+ for (bits = 1; bits <= MAX_BITS$1; bits++) {
380
+ code = code + bl_count[bits - 1] << 1;
381
+ next_code[bits] = code;
382
+ }
383
+ /* Check that the bit counts in bl_count are consistent. The last code
384
+ * must be all ones.
385
+ */
386
+ //Assert (code + bl_count[MAX_BITS]-1 == (1<<MAX_BITS)-1,
387
+ // "inconsistent bit counts");
388
+ //Tracev((stderr,"\ngen_codes: max_code %d ", max_code));
389
+
390
+ for (n = 0; n <= max_code; n++) {
391
+ var len = tree[n * 2 + 1] /*.Len*/;
392
+ if (len === 0) {
393
+ continue;
394
+ }
395
+ /* Now reverse the bits */
396
+ tree[n * 2] /*.Code*/ = bi_reverse(next_code[len]++, len);
397
+
398
+ //Tracecv(tree != static_ltree, (stderr,"\nn %3d %c l %2d c %4x (%x) ",
399
+ // n, (isgraph(n) ? n : ' '), len, tree[n].Code, next_code[len]-1));
400
+ }
401
+ };
402
+
403
+ /* ===========================================================================
404
+ * Initialize the various 'constant' tables.
405
+ */
406
+ var tr_static_init = function tr_static_init() {
407
+ var n; /* iterates over tree elements */
408
+ var bits; /* bit counter */
409
+ var length; /* length value */
410
+ var code; /* code value */
411
+ var dist; /* distance index */
412
+ var bl_count = new Array(MAX_BITS$1 + 1);
413
+ /* number of codes at each bit length for an optimal tree */
414
+
415
+ // do check in _tr_init()
416
+ //if (static_init_done) return;
417
+
418
+ /* For some embedded targets, global variables are not initialized: */
419
+ /*#ifdef NO_INIT_GLOBAL_POINTERS
420
+ static_l_desc.static_tree = static_ltree;
421
+ static_l_desc.extra_bits = extra_lbits;
422
+ static_d_desc.static_tree = static_dtree;
423
+ static_d_desc.extra_bits = extra_dbits;
424
+ static_bl_desc.extra_bits = extra_blbits;
425
+ #endif*/
426
+
427
+ /* Initialize the mapping length (0..255) -> length code (0..28) */
428
+ length = 0;
429
+ for (code = 0; code < LENGTH_CODES$1 - 1; code++) {
430
+ base_length[code] = length;
431
+ for (n = 0; n < 1 << extra_lbits[code]; n++) {
432
+ _length_code[length++] = code;
433
+ }
434
+ }
435
+ //Assert (length == 256, "tr_static_init: length != 256");
436
+ /* Note that the length 255 (match length 258) can be represented
437
+ * in two different ways: code 284 + 5 bits or code 285, so we
438
+ * overwrite length_code[255] to use the best encoding:
439
+ */
440
+ _length_code[length - 1] = code;
441
+
442
+ /* Initialize the mapping dist (0..32K) -> dist code (0..29) */
443
+ dist = 0;
444
+ for (code = 0; code < 16; code++) {
445
+ base_dist[code] = dist;
446
+ for (n = 0; n < 1 << extra_dbits[code]; n++) {
447
+ _dist_code[dist++] = code;
448
+ }
449
+ }
450
+ //Assert (dist == 256, "tr_static_init: dist != 256");
451
+ dist >>= 7; /* from now on, all distances are divided by 128 */
452
+ for (; code < D_CODES$1; code++) {
453
+ base_dist[code] = dist << 7;
454
+ for (n = 0; n < 1 << extra_dbits[code] - 7; n++) {
455
+ _dist_code[256 + dist++] = code;
456
+ }
457
+ }
458
+ //Assert (dist == 256, "tr_static_init: 256+dist != 512");
459
+
460
+ /* Construct the codes of the static literal tree */
461
+ for (bits = 0; bits <= MAX_BITS$1; bits++) {
462
+ bl_count[bits] = 0;
463
+ }
464
+ n = 0;
465
+ while (n <= 143) {
466
+ static_ltree[n * 2 + 1] /*.Len*/ = 8;
467
+ n++;
468
+ bl_count[8]++;
469
+ }
470
+ while (n <= 255) {
471
+ static_ltree[n * 2 + 1] /*.Len*/ = 9;
472
+ n++;
473
+ bl_count[9]++;
474
+ }
475
+ while (n <= 279) {
476
+ static_ltree[n * 2 + 1] /*.Len*/ = 7;
477
+ n++;
478
+ bl_count[7]++;
479
+ }
480
+ while (n <= 287) {
481
+ static_ltree[n * 2 + 1] /*.Len*/ = 8;
482
+ n++;
483
+ bl_count[8]++;
484
+ }
485
+ /* Codes 286 and 287 do not exist, but we must include them in the
486
+ * tree construction to get a canonical Huffman tree (longest code
487
+ * all ones)
488
+ */
489
+ gen_codes(static_ltree, L_CODES$1 + 1, bl_count);
490
+
491
+ /* The static distance tree is trivial: */
492
+ for (n = 0; n < D_CODES$1; n++) {
493
+ static_dtree[n * 2 + 1] /*.Len*/ = 5;
494
+ static_dtree[n * 2] /*.Code*/ = bi_reverse(n, 5);
495
+ }
496
+
497
+ // Now data ready and we can init static trees
498
+ static_l_desc = new StaticTreeDesc(static_ltree, extra_lbits, LITERALS$1 + 1, L_CODES$1, MAX_BITS$1);
499
+ static_d_desc = new StaticTreeDesc(static_dtree, extra_dbits, 0, D_CODES$1, MAX_BITS$1);
500
+ static_bl_desc = new StaticTreeDesc(new Array(0), extra_blbits, 0, BL_CODES$1, MAX_BL_BITS);
501
+
502
+ //static_init_done = true;
503
+ };
504
+
505
+ /* ===========================================================================
506
+ * Initialize a new block.
507
+ */
508
+ var init_block = function init_block(s) {
509
+ var n; /* iterates over tree elements */
510
+
511
+ /* Initialize the trees. */
512
+ for (n = 0; n < L_CODES$1; n++) {
513
+ s.dyn_ltree[n * 2] /*.Freq*/ = 0;
514
+ }
515
+ for (n = 0; n < D_CODES$1; n++) {
516
+ s.dyn_dtree[n * 2] /*.Freq*/ = 0;
517
+ }
518
+ for (n = 0; n < BL_CODES$1; n++) {
519
+ s.bl_tree[n * 2] /*.Freq*/ = 0;
520
+ }
521
+ s.dyn_ltree[END_BLOCK * 2] /*.Freq*/ = 1;
522
+ s.opt_len = s.static_len = 0;
523
+ s.sym_next = s.matches = 0;
524
+ };
525
+
526
+ /* ===========================================================================
527
+ * Flush the bit buffer and align the output on a byte boundary
528
+ */
529
+ var bi_windup = function bi_windup(s) {
530
+ if (s.bi_valid > 8) {
531
+ put_short(s, s.bi_buf);
532
+ } else if (s.bi_valid > 0) {
533
+ //put_byte(s, (Byte)s->bi_buf);
534
+ s.pending_buf[s.pending++] = s.bi_buf;
535
+ }
536
+ s.bi_buf = 0;
537
+ s.bi_valid = 0;
538
+ };
539
+
540
+ /* ===========================================================================
541
+ * Compares to subtrees, using the tree depth as tie breaker when
542
+ * the subtrees have equal frequency. This minimizes the worst case length.
543
+ */
544
+ var smaller = function smaller(tree, n, m, depth) {
545
+ var _n2 = n * 2;
546
+ var _m2 = m * 2;
547
+ return tree[_n2] /*.Freq*/ < tree[_m2] /*.Freq*/ || tree[_n2] /*.Freq*/ === tree[_m2] /*.Freq*/ && depth[n] <= depth[m];
548
+ };
549
+
550
+ /* ===========================================================================
551
+ * Restore the heap property by moving down the tree starting at node k,
552
+ * exchanging a node with the smallest of its two sons if necessary, stopping
553
+ * when the heap property is re-established (each father smaller than its
554
+ * two sons).
555
+ */
556
+ var pqdownheap = function pqdownheap(s, tree, k) {
557
+ // deflate_state *s;
558
+ // ct_data *tree; /* the tree to restore */
559
+ // int k; /* node to move down */
560
+
561
+ var v = s.heap[k];
562
+ var j = k << 1; /* left son of k */
563
+ while (j <= s.heap_len) {
564
+ /* Set j to the smallest of the two sons: */
565
+ if (j < s.heap_len && smaller(tree, s.heap[j + 1], s.heap[j], s.depth)) {
566
+ j++;
567
+ }
568
+ /* Exit if v is smaller than both sons */
569
+ if (smaller(tree, v, s.heap[j], s.depth)) {
570
+ break;
571
+ }
572
+
573
+ /* Exchange v with the smallest son */
574
+ s.heap[k] = s.heap[j];
575
+ k = j;
576
+
577
+ /* And continue down the tree, setting j to the left son of k */
578
+ j <<= 1;
579
+ }
580
+ s.heap[k] = v;
581
+ };
582
+
583
+ // inlined manually
584
+ // const SMALLEST = 1;
585
+
586
+ /* ===========================================================================
587
+ * Send the block data compressed using the given Huffman trees
588
+ */
589
+ var compress_block = function compress_block(s, ltree, dtree) {
590
+ // deflate_state *s;
591
+ // const ct_data *ltree; /* literal tree */
592
+ // const ct_data *dtree; /* distance tree */
593
+
594
+ var dist; /* distance of matched string */
595
+ var lc; /* match length or unmatched char (if dist == 0) */
596
+ var sx = 0; /* running index in sym_buf */
597
+ var code; /* the code to send */
598
+ var extra; /* number of extra bits to send */
599
+
600
+ if (s.sym_next !== 0) {
601
+ do {
602
+ dist = s.pending_buf[s.sym_buf + sx++] & 0xff;
603
+ dist += (s.pending_buf[s.sym_buf + sx++] & 0xff) << 8;
604
+ lc = s.pending_buf[s.sym_buf + sx++];
605
+ if (dist === 0) {
606
+ send_code(s, lc, ltree); /* send a literal byte */
607
+ //Tracecv(isgraph(lc), (stderr," '%c' ", lc));
608
+ } else {
609
+ /* Here, lc is the match length - MIN_MATCH */
610
+ code = _length_code[lc];
611
+ send_code(s, code + LITERALS$1 + 1, ltree); /* send the length code */
612
+ extra = extra_lbits[code];
613
+ if (extra !== 0) {
614
+ lc -= base_length[code];
615
+ send_bits(s, lc, extra); /* send the extra length bits */
616
+ }
617
+
618
+ dist--; /* dist is now the match distance - 1 */
619
+ code = d_code(dist);
620
+ //Assert (code < D_CODES, "bad d_code");
621
+
622
+ send_code(s, code, dtree); /* send the distance code */
623
+ extra = extra_dbits[code];
624
+ if (extra !== 0) {
625
+ dist -= base_dist[code];
626
+ send_bits(s, dist, extra); /* send the extra distance bits */
627
+ }
628
+ } /* literal or match pair ? */
629
+
630
+ /* Check that the overlay between pending_buf and sym_buf is ok: */
631
+ //Assert(s->pending < s->lit_bufsize + sx, "pendingBuf overflow");
632
+ } while (sx < s.sym_next);
633
+ }
634
+ send_code(s, END_BLOCK, ltree);
635
+ };
636
+
637
+ /* ===========================================================================
638
+ * Construct one Huffman tree and assigns the code bit strings and lengths.
639
+ * Update the total bit length for the current block.
640
+ * IN assertion: the field freq is set for all tree elements.
641
+ * OUT assertions: the fields len and code are set to the optimal bit length
642
+ * and corresponding code. The length opt_len is updated; static_len is
643
+ * also updated if stree is not null. The field max_code is set.
644
+ */
645
+ var build_tree = function build_tree(s, desc) {
646
+ // deflate_state *s;
647
+ // tree_desc *desc; /* the tree descriptor */
648
+
649
+ var tree = desc.dyn_tree;
650
+ var stree = desc.stat_desc.static_tree;
651
+ var has_stree = desc.stat_desc.has_stree;
652
+ var elems = desc.stat_desc.elems;
653
+ var n, m; /* iterate over heap elements */
654
+ var max_code = -1; /* largest code with non zero frequency */
655
+ var node; /* new node being created */
656
+
657
+ /* Construct the initial heap, with least frequent element in
658
+ * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n+1].
659
+ * heap[0] is not used.
660
+ */
661
+ s.heap_len = 0;
662
+ s.heap_max = HEAP_SIZE$1;
663
+ for (n = 0; n < elems; n++) {
664
+ if (tree[n * 2] /*.Freq*/ !== 0) {
665
+ s.heap[++s.heap_len] = max_code = n;
666
+ s.depth[n] = 0;
667
+ } else {
668
+ tree[n * 2 + 1] /*.Len*/ = 0;
669
+ }
670
+ }
671
+
672
+ /* The pkzip format requires that at least one distance code exists,
673
+ * and that at least one bit should be sent even if there is only one
674
+ * possible code. So to avoid special checks later on we force at least
675
+ * two codes of non zero frequency.
676
+ */
677
+ while (s.heap_len < 2) {
678
+ node = s.heap[++s.heap_len] = max_code < 2 ? ++max_code : 0;
679
+ tree[node * 2] /*.Freq*/ = 1;
680
+ s.depth[node] = 0;
681
+ s.opt_len--;
682
+ if (has_stree) {
683
+ s.static_len -= stree[node * 2 + 1] /*.Len*/;
684
+ }
685
+ /* node is 0 or 1 so it does not have extra bits */
686
+ }
687
+
688
+ desc.max_code = max_code;
689
+
690
+ /* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,
691
+ * establish sub-heaps of increasing lengths:
692
+ */
693
+ for (n = s.heap_len >> 1 /*int /2*/; n >= 1; n--) {
694
+ pqdownheap(s, tree, n);
695
+ }
696
+
697
+ /* Construct the Huffman tree by repeatedly combining the least two
698
+ * frequent nodes.
699
+ */
700
+ node = elems; /* next internal node of the tree */
701
+ do {
702
+ //pqremove(s, tree, n); /* n = node of least frequency */
703
+ /*** pqremove ***/
704
+ n = s.heap[1 /*SMALLEST*/];
705
+ s.heap[1 /*SMALLEST*/] = s.heap[s.heap_len--];
706
+ pqdownheap(s, tree, 1 /*SMALLEST*/);
707
+ /***/
708
+
709
+ m = s.heap[1 /*SMALLEST*/]; /* m = node of next least frequency */
710
+
711
+ s.heap[--s.heap_max] = n; /* keep the nodes sorted by frequency */
712
+ s.heap[--s.heap_max] = m;
713
+
714
+ /* Create a new node father of n and m */
715
+ tree[node * 2] /*.Freq*/ = tree[n * 2] /*.Freq*/ + tree[m * 2] /*.Freq*/;
716
+ s.depth[node] = (s.depth[n] >= s.depth[m] ? s.depth[n] : s.depth[m]) + 1;
717
+ tree[n * 2 + 1] /*.Dad*/ = tree[m * 2 + 1] /*.Dad*/ = node;
718
+
719
+ /* and insert the new node in the heap */
720
+ s.heap[1 /*SMALLEST*/] = node++;
721
+ pqdownheap(s, tree, 1 /*SMALLEST*/);
722
+ } while (s.heap_len >= 2);
723
+ s.heap[--s.heap_max] = s.heap[1 /*SMALLEST*/];
724
+
725
+ /* At this point, the fields freq and dad are set. We can now
726
+ * generate the bit lengths.
727
+ */
728
+ gen_bitlen(s, desc);
729
+
730
+ /* The field len is now set, we can generate the bit codes */
731
+ gen_codes(tree, max_code, s.bl_count);
732
+ };
733
+
734
+ /* ===========================================================================
735
+ * Scan a literal or distance tree to determine the frequencies of the codes
736
+ * in the bit length tree.
737
+ */
738
+ var scan_tree = function scan_tree(s, tree, max_code) {
739
+ // deflate_state *s;
740
+ // ct_data *tree; /* the tree to be scanned */
741
+ // int max_code; /* and its largest code of non zero frequency */
742
+
743
+ var n; /* iterates over all tree elements */
744
+ var prevlen = -1; /* last emitted length */
745
+ var curlen; /* length of current code */
746
+
747
+ var nextlen = tree[0 * 2 + 1] /*.Len*/; /* length of next code */
748
+
749
+ var count = 0; /* repeat count of the current code */
750
+ var max_count = 7; /* max repeat count */
751
+ var min_count = 4; /* min repeat count */
752
+
753
+ if (nextlen === 0) {
754
+ max_count = 138;
755
+ min_count = 3;
756
+ }
757
+ tree[(max_code + 1) * 2 + 1] /*.Len*/ = 0xffff; /* guard */
758
+
759
+ for (n = 0; n <= max_code; n++) {
760
+ curlen = nextlen;
761
+ nextlen = tree[(n + 1) * 2 + 1] /*.Len*/;
762
+
763
+ if (++count < max_count && curlen === nextlen) {
764
+ continue;
765
+ } else if (count < min_count) {
766
+ s.bl_tree[curlen * 2] /*.Freq*/ += count;
767
+ } else if (curlen !== 0) {
768
+ if (curlen !== prevlen) {
769
+ s.bl_tree[curlen * 2] /*.Freq*/++;
770
+ }
771
+ s.bl_tree[REP_3_6 * 2] /*.Freq*/++;
772
+ } else if (count <= 10) {
773
+ s.bl_tree[REPZ_3_10 * 2] /*.Freq*/++;
774
+ } else {
775
+ s.bl_tree[REPZ_11_138 * 2] /*.Freq*/++;
776
+ }
777
+
778
+ count = 0;
779
+ prevlen = curlen;
780
+ if (nextlen === 0) {
781
+ max_count = 138;
782
+ min_count = 3;
783
+ } else if (curlen === nextlen) {
784
+ max_count = 6;
785
+ min_count = 3;
786
+ } else {
787
+ max_count = 7;
788
+ min_count = 4;
789
+ }
790
+ }
791
+ };
792
+
793
+ /* ===========================================================================
794
+ * Send a literal or distance tree in compressed form, using the codes in
795
+ * bl_tree.
796
+ */
797
+ var send_tree = function send_tree(s, tree, max_code) {
798
+ // deflate_state *s;
799
+ // ct_data *tree; /* the tree to be scanned */
800
+ // int max_code; /* and its largest code of non zero frequency */
801
+
802
+ var n; /* iterates over all tree elements */
803
+ var prevlen = -1; /* last emitted length */
804
+ var curlen; /* length of current code */
805
+
806
+ var nextlen = tree[0 * 2 + 1] /*.Len*/; /* length of next code */
807
+
808
+ var count = 0; /* repeat count of the current code */
809
+ var max_count = 7; /* max repeat count */
810
+ var min_count = 4; /* min repeat count */
811
+
812
+ /* tree[max_code+1].Len = -1; */ /* guard already set */
813
+ if (nextlen === 0) {
814
+ max_count = 138;
815
+ min_count = 3;
816
+ }
817
+ for (n = 0; n <= max_code; n++) {
818
+ curlen = nextlen;
819
+ nextlen = tree[(n + 1) * 2 + 1] /*.Len*/;
820
+
821
+ if (++count < max_count && curlen === nextlen) {
822
+ continue;
823
+ } else if (count < min_count) {
824
+ do {
825
+ send_code(s, curlen, s.bl_tree);
826
+ } while (--count !== 0);
827
+ } else if (curlen !== 0) {
828
+ if (curlen !== prevlen) {
829
+ send_code(s, curlen, s.bl_tree);
830
+ count--;
831
+ }
832
+ //Assert(count >= 3 && count <= 6, " 3_6?");
833
+ send_code(s, REP_3_6, s.bl_tree);
834
+ send_bits(s, count - 3, 2);
835
+ } else if (count <= 10) {
836
+ send_code(s, REPZ_3_10, s.bl_tree);
837
+ send_bits(s, count - 3, 3);
838
+ } else {
839
+ send_code(s, REPZ_11_138, s.bl_tree);
840
+ send_bits(s, count - 11, 7);
841
+ }
842
+ count = 0;
843
+ prevlen = curlen;
844
+ if (nextlen === 0) {
845
+ max_count = 138;
846
+ min_count = 3;
847
+ } else if (curlen === nextlen) {
848
+ max_count = 6;
849
+ min_count = 3;
850
+ } else {
851
+ max_count = 7;
852
+ min_count = 4;
853
+ }
854
+ }
855
+ };
856
+
857
+ /* ===========================================================================
858
+ * Construct the Huffman tree for the bit lengths and return the index in
859
+ * bl_order of the last bit length code to send.
860
+ */
861
+ var build_bl_tree = function build_bl_tree(s) {
862
+ var max_blindex; /* index of last bit length code of non zero freq */
863
+
864
+ /* Determine the bit length frequencies for literal and distance trees */
865
+ scan_tree(s, s.dyn_ltree, s.l_desc.max_code);
866
+ scan_tree(s, s.dyn_dtree, s.d_desc.max_code);
867
+
868
+ /* Build the bit length tree: */
869
+ build_tree(s, s.bl_desc);
870
+ /* opt_len now includes the length of the tree representations, except
871
+ * the lengths of the bit lengths codes and the 5+5+4 bits for the counts.
872
+ */
873
+
874
+ /* Determine the number of bit length codes to send. The pkzip format
875
+ * requires that at least 4 bit length codes be sent. (appnote.txt says
876
+ * 3 but the actual value used is 4.)
877
+ */
878
+ for (max_blindex = BL_CODES$1 - 1; max_blindex >= 3; max_blindex--) {
879
+ if (s.bl_tree[bl_order[max_blindex] * 2 + 1] /*.Len*/ !== 0) {
880
+ break;
881
+ }
882
+ }
883
+ /* Update opt_len to include the bit length tree and counts */
884
+ s.opt_len += 3 * (max_blindex + 1) + 5 + 5 + 4;
885
+ //Tracev((stderr, "\ndyn trees: dyn %ld, stat %ld",
886
+ // s->opt_len, s->static_len));
887
+
888
+ return max_blindex;
889
+ };
890
+
891
+ /* ===========================================================================
892
+ * Send the header for a block using dynamic Huffman trees: the counts, the
893
+ * lengths of the bit length codes, the literal tree and the distance tree.
894
+ * IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4.
895
+ */
896
+ var send_all_trees = function send_all_trees(s, lcodes, dcodes, blcodes) {
897
+ // deflate_state *s;
898
+ // int lcodes, dcodes, blcodes; /* number of codes for each tree */
899
+
900
+ var rank; /* index in bl_order */
901
+
902
+ //Assert (lcodes >= 257 && dcodes >= 1 && blcodes >= 4, "not enough codes");
903
+ //Assert (lcodes <= L_CODES && dcodes <= D_CODES && blcodes <= BL_CODES,
904
+ // "too many codes");
905
+ //Tracev((stderr, "\nbl counts: "));
906
+ send_bits(s, lcodes - 257, 5); /* not +255 as stated in appnote.txt */
907
+ send_bits(s, dcodes - 1, 5);
908
+ send_bits(s, blcodes - 4, 4); /* not -3 as stated in appnote.txt */
909
+ for (rank = 0; rank < blcodes; rank++) {
910
+ //Tracev((stderr, "\nbl code %2d ", bl_order[rank]));
911
+ send_bits(s, s.bl_tree[bl_order[rank] * 2 + 1] /*.Len*/, 3);
912
+ }
913
+ //Tracev((stderr, "\nbl tree: sent %ld", s->bits_sent));
914
+
915
+ send_tree(s, s.dyn_ltree, lcodes - 1); /* literal tree */
916
+ //Tracev((stderr, "\nlit tree: sent %ld", s->bits_sent));
917
+
918
+ send_tree(s, s.dyn_dtree, dcodes - 1); /* distance tree */
919
+ //Tracev((stderr, "\ndist tree: sent %ld", s->bits_sent));
920
+ };
921
+
922
+ /* ===========================================================================
923
+ * Check if the data type is TEXT or BINARY, using the following algorithm:
924
+ * - TEXT if the two conditions below are satisfied:
925
+ * a) There are no non-portable control characters belonging to the
926
+ * "block list" (0..6, 14..25, 28..31).
927
+ * b) There is at least one printable character belonging to the
928
+ * "allow list" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255).
929
+ * - BINARY otherwise.
930
+ * - The following partially-portable control characters form a
931
+ * "gray list" that is ignored in this detection algorithm:
932
+ * (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}).
933
+ * IN assertion: the fields Freq of dyn_ltree are set.
934
+ */
935
+ var detect_data_type = function detect_data_type(s) {
936
+ /* block_mask is the bit mask of block-listed bytes
937
+ * set bits 0..6, 14..25, and 28..31
938
+ * 0xf3ffc07f = binary 11110011111111111100000001111111
939
+ */
940
+ var block_mask = 0xf3ffc07f;
941
+ var n;
942
+
943
+ /* Check for non-textual ("block-listed") bytes. */
944
+ for (n = 0; n <= 31; n++, block_mask >>>= 1) {
945
+ if (block_mask & 1 && s.dyn_ltree[n * 2] /*.Freq*/ !== 0) {
946
+ return Z_BINARY;
947
+ }
948
+ }
949
+
950
+ /* Check for textual ("allow-listed") bytes. */
951
+ if (s.dyn_ltree[9 * 2] /*.Freq*/ !== 0 || s.dyn_ltree[10 * 2] /*.Freq*/ !== 0 || s.dyn_ltree[13 * 2] /*.Freq*/ !== 0) {
952
+ return Z_TEXT;
953
+ }
954
+ for (n = 32; n < LITERALS$1; n++) {
955
+ if (s.dyn_ltree[n * 2] /*.Freq*/ !== 0) {
956
+ return Z_TEXT;
957
+ }
958
+ }
959
+
960
+ /* There are no "block-listed" or "allow-listed" bytes:
961
+ * this stream either is empty or has tolerated ("gray-listed") bytes only.
962
+ */
963
+ return Z_BINARY;
964
+ };
965
+ var static_init_done = false;
966
+
967
+ /* ===========================================================================
968
+ * Initialize the tree data structures for a new zlib stream.
969
+ */
970
+ var _tr_init$1 = function _tr_init(s) {
971
+ if (!static_init_done) {
972
+ tr_static_init();
973
+ static_init_done = true;
974
+ }
975
+ s.l_desc = new TreeDesc(s.dyn_ltree, static_l_desc);
976
+ s.d_desc = new TreeDesc(s.dyn_dtree, static_d_desc);
977
+ s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc);
978
+ s.bi_buf = 0;
979
+ s.bi_valid = 0;
980
+
981
+ /* Initialize the first block of the first file: */
982
+ init_block(s);
983
+ };
984
+
985
+ /* ===========================================================================
986
+ * Send a stored block
987
+ */
988
+ var _tr_stored_block$1 = function _tr_stored_block(s, buf, stored_len, last) {
989
+ //DeflateState *s;
990
+ //charf *buf; /* input block */
991
+ //ulg stored_len; /* length of input block */
992
+ //int last; /* one if this is the last block for a file */
993
+
994
+ send_bits(s, (STORED_BLOCK << 1) + (last ? 1 : 0), 3); /* send block type */
995
+ bi_windup(s); /* align on byte boundary */
996
+ put_short(s, stored_len);
997
+ put_short(s, ~stored_len);
998
+ if (stored_len) {
999
+ s.pending_buf.set(s.window.subarray(buf, buf + stored_len), s.pending);
1000
+ }
1001
+ s.pending += stored_len;
1002
+ };
1003
+
1004
+ /* ===========================================================================
1005
+ * Send one empty static block to give enough lookahead for inflate.
1006
+ * This takes 10 bits, of which 7 may remain in the bit buffer.
1007
+ */
1008
+ var _tr_align$1 = function _tr_align(s) {
1009
+ send_bits(s, STATIC_TREES << 1, 3);
1010
+ send_code(s, END_BLOCK, static_ltree);
1011
+ bi_flush(s);
1012
+ };
1013
+
1014
+ /* ===========================================================================
1015
+ * Determine the best encoding for the current block: dynamic trees, static
1016
+ * trees or store, and write out the encoded block.
1017
+ */
1018
+ var _tr_flush_block$1 = function _tr_flush_block(s, buf, stored_len, last) {
1019
+ //DeflateState *s;
1020
+ //charf *buf; /* input block, or NULL if too old */
1021
+ //ulg stored_len; /* length of input block */
1022
+ //int last; /* one if this is the last block for a file */
1023
+
1024
+ var opt_lenb, static_lenb; /* opt_len and static_len in bytes */
1025
+ var max_blindex = 0; /* index of last bit length code of non zero freq */
1026
+
1027
+ /* Build the Huffman trees unless a stored block is forced */
1028
+ if (s.level > 0) {
1029
+ /* Check if the file is binary or text */
1030
+ if (s.strm.data_type === Z_UNKNOWN$1) {
1031
+ s.strm.data_type = detect_data_type(s);
1032
+ }
1033
+
1034
+ /* Construct the literal and distance trees */
1035
+ build_tree(s, s.l_desc);
1036
+ // Tracev((stderr, "\nlit data: dyn %ld, stat %ld", s->opt_len,
1037
+ // s->static_len));
1038
+
1039
+ build_tree(s, s.d_desc);
1040
+ // Tracev((stderr, "\ndist data: dyn %ld, stat %ld", s->opt_len,
1041
+ // s->static_len));
1042
+ /* At this point, opt_len and static_len are the total bit lengths of
1043
+ * the compressed block data, excluding the tree representations.
1044
+ */
1045
+
1046
+ /* Build the bit length tree for the above two trees, and get the index
1047
+ * in bl_order of the last bit length code to send.
1048
+ */
1049
+ max_blindex = build_bl_tree(s);
1050
+
1051
+ /* Determine the best encoding. Compute the block lengths in bytes. */
1052
+ opt_lenb = s.opt_len + 3 + 7 >>> 3;
1053
+ static_lenb = s.static_len + 3 + 7 >>> 3;
1054
+
1055
+ // Tracev((stderr, "\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u ",
1056
+ // opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,
1057
+ // s->sym_next / 3));
1058
+
1059
+ if (static_lenb <= opt_lenb) {
1060
+ opt_lenb = static_lenb;
1061
+ }
1062
+ } else {
1063
+ // Assert(buf != (char*)0, "lost buf");
1064
+ opt_lenb = static_lenb = stored_len + 5; /* force a stored block */
1065
+ }
1066
+
1067
+ if (stored_len + 4 <= opt_lenb && buf !== -1) {
1068
+ /* 4: two words for the lengths */
1069
+
1070
+ /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.
1071
+ * Otherwise we can't have processed more than WSIZE input bytes since
1072
+ * the last block flush, because compression would have been
1073
+ * successful. If LIT_BUFSIZE <= WSIZE, it is never too late to
1074
+ * transform a block into a stored block.
1075
+ */
1076
+ _tr_stored_block$1(s, buf, stored_len, last);
1077
+ } else if (s.strategy === Z_FIXED$1 || static_lenb === opt_lenb) {
1078
+ send_bits(s, (STATIC_TREES << 1) + (last ? 1 : 0), 3);
1079
+ compress_block(s, static_ltree, static_dtree);
1080
+ } else {
1081
+ send_bits(s, (DYN_TREES << 1) + (last ? 1 : 0), 3);
1082
+ send_all_trees(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, max_blindex + 1);
1083
+ compress_block(s, s.dyn_ltree, s.dyn_dtree);
1084
+ }
1085
+ // Assert (s->compressed_len == s->bits_sent, "bad compressed size");
1086
+ /* The above check is made mod 2^32, for files larger than 512 MB
1087
+ * and uLong implemented on 32 bits.
1088
+ */
1089
+ init_block(s);
1090
+ if (last) {
1091
+ bi_windup(s);
1092
+ }
1093
+ // Tracev((stderr,"\ncomprlen %lu(%lu) ", s->compressed_len>>3,
1094
+ // s->compressed_len-7*last));
1095
+ };
1096
+
1097
+ /* ===========================================================================
1098
+ * Save the match info and tally the frequency counts. Return true if
1099
+ * the current block must be flushed.
1100
+ */
1101
+ var _tr_tally$1 = function _tr_tally(s, dist, lc) {
1102
+ // deflate_state *s;
1103
+ // unsigned dist; /* distance of matched string */
1104
+ // unsigned lc; /* match length-MIN_MATCH or unmatched char (if dist==0) */
1105
+
1106
+ s.pending_buf[s.sym_buf + s.sym_next++] = dist;
1107
+ s.pending_buf[s.sym_buf + s.sym_next++] = dist >> 8;
1108
+ s.pending_buf[s.sym_buf + s.sym_next++] = lc;
1109
+ if (dist === 0) {
1110
+ /* lc is the unmatched char */
1111
+ s.dyn_ltree[lc * 2] /*.Freq*/++;
1112
+ } else {
1113
+ s.matches++;
1114
+ /* Here, lc is the match length - MIN_MATCH */
1115
+ dist--; /* dist = match distance - 1 */
1116
+ //Assert((ush)dist < (ush)MAX_DIST(s) &&
1117
+ // (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&
1118
+ // (ush)d_code(dist) < (ush)D_CODES, "_tr_tally: bad match");
1119
+
1120
+ s.dyn_ltree[(_length_code[lc] + LITERALS$1 + 1) * 2] /*.Freq*/++;
1121
+ s.dyn_dtree[d_code(dist) * 2] /*.Freq*/++;
1122
+ }
1123
+
1124
+ return s.sym_next === s.sym_end;
1125
+ };
1126
+ var _tr_init_1 = _tr_init$1;
1127
+ var _tr_stored_block_1 = _tr_stored_block$1;
1128
+ var _tr_flush_block_1 = _tr_flush_block$1;
1129
+ var _tr_tally_1 = _tr_tally$1;
1130
+ var _tr_align_1 = _tr_align$1;
1131
+ var trees = {
1132
+ _tr_init: _tr_init_1,
1133
+ _tr_stored_block: _tr_stored_block_1,
1134
+ _tr_flush_block: _tr_flush_block_1,
1135
+ _tr_tally: _tr_tally_1,
1136
+ _tr_align: _tr_align_1
1137
+ };
1138
+
1139
+ // Note: adler32 takes 12% for level 0 and 2% for level 6.
1140
+ // It isn't worth it to make additional optimizations as in original.
1141
+ // Small size is preferable.
1142
+
1143
+ // (C) 1995-2013 Jean-loup Gailly and Mark Adler
1144
+ // (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
1145
+ //
1146
+ // This software is provided 'as-is', without any express or implied
1147
+ // warranty. In no event will the authors be held liable for any damages
1148
+ // arising from the use of this software.
1149
+ //
1150
+ // Permission is granted to anyone to use this software for any purpose,
1151
+ // including commercial applications, and to alter it and redistribute it
1152
+ // freely, subject to the following restrictions:
1153
+ //
1154
+ // 1. The origin of this software must not be misrepresented; you must not
1155
+ // claim that you wrote the original software. If you use this software
1156
+ // in a product, an acknowledgment in the product documentation would be
1157
+ // appreciated but is not required.
1158
+ // 2. Altered source versions must be plainly marked as such, and must not be
1159
+ // misrepresented as being the original software.
1160
+ // 3. This notice may not be removed or altered from any source distribution.
1161
+ var adler32 = function adler32(adler, buf, len, pos) {
1162
+ var s1 = adler & 0xffff | 0,
1163
+ s2 = adler >>> 16 & 0xffff | 0,
1164
+ n = 0;
1165
+ while (len !== 0) {
1166
+ // Set limit ~ twice less than 5552, to keep
1167
+ // s2 in 31-bits, because we force signed ints.
1168
+ // in other case %= will fail.
1169
+ n = len > 2000 ? 2000 : len;
1170
+ len -= n;
1171
+ do {
1172
+ s1 = s1 + buf[pos++] | 0;
1173
+ s2 = s2 + s1 | 0;
1174
+ } while (--n);
1175
+ s1 %= 65521;
1176
+ s2 %= 65521;
1177
+ }
1178
+ return s1 | s2 << 16 | 0;
1179
+ };
1180
+ var adler32_1 = adler32;
1181
+
1182
+ // Note: we can't get significant speed boost here.
1183
+ // So write code to minimize size - no pregenerated tables
1184
+ // and array tools dependencies.
1185
+
1186
+ // (C) 1995-2013 Jean-loup Gailly and Mark Adler
1187
+ // (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
1188
+ //
1189
+ // This software is provided 'as-is', without any express or implied
1190
+ // warranty. In no event will the authors be held liable for any damages
1191
+ // arising from the use of this software.
1192
+ //
1193
+ // Permission is granted to anyone to use this software for any purpose,
1194
+ // including commercial applications, and to alter it and redistribute it
1195
+ // freely, subject to the following restrictions:
1196
+ //
1197
+ // 1. The origin of this software must not be misrepresented; you must not
1198
+ // claim that you wrote the original software. If you use this software
1199
+ // in a product, an acknowledgment in the product documentation would be
1200
+ // appreciated but is not required.
1201
+ // 2. Altered source versions must be plainly marked as such, and must not be
1202
+ // misrepresented as being the original software.
1203
+ // 3. This notice may not be removed or altered from any source distribution.
1204
+
1205
+ // Use ordinary array, since untyped makes no boost here
1206
+ var makeTable = function makeTable() {
1207
+ var c,
1208
+ table = [];
1209
+ for (var n = 0; n < 256; n++) {
1210
+ c = n;
1211
+ for (var k = 0; k < 8; k++) {
1212
+ c = c & 1 ? 0xEDB88320 ^ c >>> 1 : c >>> 1;
1213
+ }
1214
+ table[n] = c;
1215
+ }
1216
+ return table;
1217
+ };
1218
+
1219
+ // Create table on load. Just 255 signed longs. Not a problem.
1220
+ var crcTable = new Uint32Array(makeTable());
1221
+ var crc32 = function crc32(crc, buf, len, pos) {
1222
+ var t = crcTable;
1223
+ var end = pos + len;
1224
+ crc ^= -1;
1225
+ for (var i = pos; i < end; i++) {
1226
+ crc = crc >>> 8 ^ t[(crc ^ buf[i]) & 0xFF];
1227
+ }
1228
+ return crc ^ -1; // >>> 0;
1229
+ };
1230
+
1231
+ var crc32_1 = crc32;
1232
+
1233
+ // (C) 1995-2013 Jean-loup Gailly and Mark Adler
1234
+ // (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
1235
+ //
1236
+ // This software is provided 'as-is', without any express or implied
1237
+ // warranty. In no event will the authors be held liable for any damages
1238
+ // arising from the use of this software.
1239
+ //
1240
+ // Permission is granted to anyone to use this software for any purpose,
1241
+ // including commercial applications, and to alter it and redistribute it
1242
+ // freely, subject to the following restrictions:
1243
+ //
1244
+ // 1. The origin of this software must not be misrepresented; you must not
1245
+ // claim that you wrote the original software. If you use this software
1246
+ // in a product, an acknowledgment in the product documentation would be
1247
+ // appreciated but is not required.
1248
+ // 2. Altered source versions must be plainly marked as such, and must not be
1249
+ // misrepresented as being the original software.
1250
+ // 3. This notice may not be removed or altered from any source distribution.
1251
+ var messages = {
1252
+ 2: 'need dictionary',
1253
+ /* Z_NEED_DICT 2 */
1254
+ 1: 'stream end',
1255
+ /* Z_STREAM_END 1 */
1256
+ 0: '',
1257
+ /* Z_OK 0 */
1258
+ '-1': 'file error',
1259
+ /* Z_ERRNO (-1) */
1260
+ '-2': 'stream error',
1261
+ /* Z_STREAM_ERROR (-2) */
1262
+ '-3': 'data error',
1263
+ /* Z_DATA_ERROR (-3) */
1264
+ '-4': 'insufficient memory',
1265
+ /* Z_MEM_ERROR (-4) */
1266
+ '-5': 'buffer error',
1267
+ /* Z_BUF_ERROR (-5) */
1268
+ '-6': 'incompatible version' /* Z_VERSION_ERROR (-6) */
1269
+ };
1270
+
1271
+ // (C) 1995-2013 Jean-loup Gailly and Mark Adler
1272
+ // (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
1273
+ //
1274
+ // This software is provided 'as-is', without any express or implied
1275
+ // warranty. In no event will the authors be held liable for any damages
1276
+ // arising from the use of this software.
1277
+ //
1278
+ // Permission is granted to anyone to use this software for any purpose,
1279
+ // including commercial applications, and to alter it and redistribute it
1280
+ // freely, subject to the following restrictions:
1281
+ //
1282
+ // 1. The origin of this software must not be misrepresented; you must not
1283
+ // claim that you wrote the original software. If you use this software
1284
+ // in a product, an acknowledgment in the product documentation would be
1285
+ // appreciated but is not required.
1286
+ // 2. Altered source versions must be plainly marked as such, and must not be
1287
+ // misrepresented as being the original software.
1288
+ // 3. This notice may not be removed or altered from any source distribution.
1289
+ var constants$1 = {
1290
+ /* Allowed flush values; see deflate() and inflate() below for details */
1291
+ Z_NO_FLUSH: 0,
1292
+ Z_PARTIAL_FLUSH: 1,
1293
+ Z_SYNC_FLUSH: 2,
1294
+ Z_FULL_FLUSH: 3,
1295
+ Z_FINISH: 4,
1296
+ Z_BLOCK: 5,
1297
+ Z_TREES: 6,
1298
+ /* Return codes for the compression/decompression functions. Negative values
1299
+ * are errors, positive values are used for special but normal events.
1300
+ */
1301
+ Z_OK: 0,
1302
+ Z_STREAM_END: 1,
1303
+ Z_NEED_DICT: 2,
1304
+ Z_ERRNO: -1,
1305
+ Z_STREAM_ERROR: -2,
1306
+ Z_DATA_ERROR: -3,
1307
+ Z_MEM_ERROR: -4,
1308
+ Z_BUF_ERROR: -5,
1309
+ //Z_VERSION_ERROR: -6,
1310
+
1311
+ /* compression levels */
1312
+ Z_NO_COMPRESSION: 0,
1313
+ Z_BEST_SPEED: 1,
1314
+ Z_BEST_COMPRESSION: 9,
1315
+ Z_DEFAULT_COMPRESSION: -1,
1316
+ Z_FILTERED: 1,
1317
+ Z_HUFFMAN_ONLY: 2,
1318
+ Z_RLE: 3,
1319
+ Z_FIXED: 4,
1320
+ Z_DEFAULT_STRATEGY: 0,
1321
+ /* Possible values of the data_type field (though see inflate()) */
1322
+ Z_BINARY: 0,
1323
+ Z_TEXT: 1,
1324
+ //Z_ASCII: 1, // = Z_TEXT (deprecated)
1325
+ Z_UNKNOWN: 2,
1326
+ /* The deflate compression method */
1327
+ Z_DEFLATED: 8
1328
+ //Z_NULL: null // Use -1 or null inline, depending on var type
1329
+ };
1330
+
1331
+ // (C) 1995-2013 Jean-loup Gailly and Mark Adler
1332
+ // (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
1333
+ //
1334
+ // This software is provided 'as-is', without any express or implied
1335
+ // warranty. In no event will the authors be held liable for any damages
1336
+ // arising from the use of this software.
1337
+ //
1338
+ // Permission is granted to anyone to use this software for any purpose,
1339
+ // including commercial applications, and to alter it and redistribute it
1340
+ // freely, subject to the following restrictions:
1341
+ //
1342
+ // 1. The origin of this software must not be misrepresented; you must not
1343
+ // claim that you wrote the original software. If you use this software
1344
+ // in a product, an acknowledgment in the product documentation would be
1345
+ // appreciated but is not required.
1346
+ // 2. Altered source versions must be plainly marked as such, and must not be
1347
+ // misrepresented as being the original software.
1348
+ // 3. This notice may not be removed or altered from any source distribution.
1349
+
1350
+ var _tr_init = trees._tr_init,
1351
+ _tr_stored_block = trees._tr_stored_block,
1352
+ _tr_flush_block = trees._tr_flush_block,
1353
+ _tr_tally = trees._tr_tally,
1354
+ _tr_align = trees._tr_align;
1355
+
1356
+ /* Public constants ==========================================================*/
1357
+ /* ===========================================================================*/
1358
+
1359
+ var Z_NO_FLUSH$1 = constants$1.Z_NO_FLUSH,
1360
+ Z_PARTIAL_FLUSH = constants$1.Z_PARTIAL_FLUSH,
1361
+ Z_FULL_FLUSH$1 = constants$1.Z_FULL_FLUSH,
1362
+ Z_FINISH$1 = constants$1.Z_FINISH,
1363
+ Z_BLOCK = constants$1.Z_BLOCK,
1364
+ Z_OK$1 = constants$1.Z_OK,
1365
+ Z_STREAM_END$1 = constants$1.Z_STREAM_END,
1366
+ Z_STREAM_ERROR = constants$1.Z_STREAM_ERROR,
1367
+ Z_DATA_ERROR = constants$1.Z_DATA_ERROR,
1368
+ Z_BUF_ERROR = constants$1.Z_BUF_ERROR,
1369
+ Z_DEFAULT_COMPRESSION$1 = constants$1.Z_DEFAULT_COMPRESSION,
1370
+ Z_FILTERED = constants$1.Z_FILTERED,
1371
+ Z_HUFFMAN_ONLY = constants$1.Z_HUFFMAN_ONLY,
1372
+ Z_RLE = constants$1.Z_RLE,
1373
+ Z_FIXED = constants$1.Z_FIXED,
1374
+ Z_DEFAULT_STRATEGY$1 = constants$1.Z_DEFAULT_STRATEGY,
1375
+ Z_UNKNOWN = constants$1.Z_UNKNOWN,
1376
+ Z_DEFLATED$1 = constants$1.Z_DEFLATED;
1377
+
1378
+ /*============================================================================*/
1379
+
1380
+ var MAX_MEM_LEVEL = 9;
1381
+ /* Maximum value for memLevel in deflateInit2 */
1382
+ var MAX_WBITS = 15;
1383
+ /* 32K LZ77 window */
1384
+ var DEF_MEM_LEVEL = 8;
1385
+ var LENGTH_CODES = 29;
1386
+ /* number of length codes, not counting the special END_BLOCK code */
1387
+ var LITERALS = 256;
1388
+ /* number of literal bytes 0..255 */
1389
+ var L_CODES = LITERALS + 1 + LENGTH_CODES;
1390
+ /* number of Literal or Length codes, including the END_BLOCK code */
1391
+ var D_CODES = 30;
1392
+ /* number of distance codes */
1393
+ var BL_CODES = 19;
1394
+ /* number of codes used to transfer the bit lengths */
1395
+ var HEAP_SIZE = 2 * L_CODES + 1;
1396
+ /* maximum heap size */
1397
+ var MAX_BITS = 15;
1398
+ /* All codes must not exceed MAX_BITS bits */
1399
+
1400
+ var MIN_MATCH = 3;
1401
+ var MAX_MATCH = 258;
1402
+ var MIN_LOOKAHEAD = MAX_MATCH + MIN_MATCH + 1;
1403
+ var PRESET_DICT = 0x20;
1404
+ var INIT_STATE = 42; /* zlib header -> BUSY_STATE */
1405
+ //#ifdef GZIP
1406
+ var GZIP_STATE = 57; /* gzip header -> BUSY_STATE | EXTRA_STATE */
1407
+ //#endif
1408
+ var EXTRA_STATE = 69; /* gzip extra block -> NAME_STATE */
1409
+ var NAME_STATE = 73; /* gzip file name -> COMMENT_STATE */
1410
+ var COMMENT_STATE = 91; /* gzip comment -> HCRC_STATE */
1411
+ var HCRC_STATE = 103; /* gzip header CRC -> BUSY_STATE */
1412
+ var BUSY_STATE = 113; /* deflate -> FINISH_STATE */
1413
+ var FINISH_STATE = 666; /* stream complete */
1414
+
1415
+ var BS_NEED_MORE = 1; /* block not completed, need more input or more output */
1416
+ var BS_BLOCK_DONE = 2; /* block flush performed */
1417
+ var BS_FINISH_STARTED = 3; /* finish started, need only more output at next deflate */
1418
+ var BS_FINISH_DONE = 4; /* finish done, accept no more input or output */
1419
+
1420
+ var OS_CODE = 0x03; // Unix :) . Don't detect, use this default.
1421
+
1422
+ var err = function err(strm, errorCode) {
1423
+ strm.msg = messages[errorCode];
1424
+ return errorCode;
1425
+ };
1426
+ var rank = function rank(f) {
1427
+ return f * 2 - (f > 4 ? 9 : 0);
1428
+ };
1429
+ var zero = function zero(buf) {
1430
+ var len = buf.length;
1431
+ while (--len >= 0) {
1432
+ buf[len] = 0;
1433
+ }
1434
+ };
1435
+
1436
+ /* ===========================================================================
1437
+ * Slide the hash table when sliding the window down (could be avoided with 32
1438
+ * bit values at the expense of memory usage). We slide even when level == 0 to
1439
+ * keep the hash table consistent if we switch back to level > 0 later.
1440
+ */
1441
+ var slide_hash = function slide_hash(s) {
1442
+ var n, m;
1443
+ var p;
1444
+ var wsize = s.w_size;
1445
+ n = s.hash_size;
1446
+ p = n;
1447
+ do {
1448
+ m = s.head[--p];
1449
+ s.head[p] = m >= wsize ? m - wsize : 0;
1450
+ } while (--n);
1451
+ n = wsize;
1452
+ //#ifndef FASTEST
1453
+ p = n;
1454
+ do {
1455
+ m = s.prev[--p];
1456
+ s.prev[p] = m >= wsize ? m - wsize : 0;
1457
+ /* If n is not on any hash chain, prev[n] is garbage but
1458
+ * its value will never be used.
1459
+ */
1460
+ } while (--n);
1461
+ //#endif
1462
+ };
1463
+
1464
+ /* eslint-disable new-cap */
1465
+ var HASH_ZLIB = function HASH_ZLIB(s, prev, data) {
1466
+ return (prev << s.hash_shift ^ data) & s.hash_mask;
1467
+ };
1468
+ // This hash causes less collisions, https://github.com/nodeca/pako/issues/135
1469
+ // But breaks binary compatibility
1470
+ //let HASH_FAST = (s, prev, data) => ((prev << 8) + (prev >> 8) + (data << 4)) & s.hash_mask;
1471
+ var HASH = HASH_ZLIB;
1472
+
1473
+ /* =========================================================================
1474
+ * Flush as much pending output as possible. All deflate() output, except for
1475
+ * some deflate_stored() output, goes through this function so some
1476
+ * applications may wish to modify it to avoid allocating a large
1477
+ * strm->next_out buffer and copying into it. (See also read_buf()).
1478
+ */
1479
+ var flush_pending = function flush_pending(strm) {
1480
+ var s = strm.state;
1481
+
1482
+ //_tr_flush_bits(s);
1483
+ var len = s.pending;
1484
+ if (len > strm.avail_out) {
1485
+ len = strm.avail_out;
1486
+ }
1487
+ if (len === 0) {
1488
+ return;
1489
+ }
1490
+ strm.output.set(s.pending_buf.subarray(s.pending_out, s.pending_out + len), strm.next_out);
1491
+ strm.next_out += len;
1492
+ s.pending_out += len;
1493
+ strm.total_out += len;
1494
+ strm.avail_out -= len;
1495
+ s.pending -= len;
1496
+ if (s.pending === 0) {
1497
+ s.pending_out = 0;
1498
+ }
1499
+ };
1500
+ var flush_block_only = function flush_block_only(s, last) {
1501
+ _tr_flush_block(s, s.block_start >= 0 ? s.block_start : -1, s.strstart - s.block_start, last);
1502
+ s.block_start = s.strstart;
1503
+ flush_pending(s.strm);
1504
+ };
1505
+ var put_byte = function put_byte(s, b) {
1506
+ s.pending_buf[s.pending++] = b;
1507
+ };
1508
+
1509
+ /* =========================================================================
1510
+ * Put a short in the pending buffer. The 16-bit value is put in MSB order.
1511
+ * IN assertion: the stream state is correct and there is enough room in
1512
+ * pending_buf.
1513
+ */
1514
+ var putShortMSB = function putShortMSB(s, b) {
1515
+ // put_byte(s, (Byte)(b >> 8));
1516
+ // put_byte(s, (Byte)(b & 0xff));
1517
+ s.pending_buf[s.pending++] = b >>> 8 & 0xff;
1518
+ s.pending_buf[s.pending++] = b & 0xff;
1519
+ };
1520
+
1521
+ /* ===========================================================================
1522
+ * Read a new buffer from the current input stream, update the adler32
1523
+ * and total number of bytes read. All deflate() input goes through
1524
+ * this function so some applications may wish to modify it to avoid
1525
+ * allocating a large strm->input buffer and copying from it.
1526
+ * (See also flush_pending()).
1527
+ */
1528
+ var read_buf = function read_buf(strm, buf, start, size) {
1529
+ var len = strm.avail_in;
1530
+ if (len > size) {
1531
+ len = size;
1532
+ }
1533
+ if (len === 0) {
1534
+ return 0;
1535
+ }
1536
+ strm.avail_in -= len;
1537
+
1538
+ // zmemcpy(buf, strm->next_in, len);
1539
+ buf.set(strm.input.subarray(strm.next_in, strm.next_in + len), start);
1540
+ if (strm.state.wrap === 1) {
1541
+ strm.adler = adler32_1(strm.adler, buf, len, start);
1542
+ } else if (strm.state.wrap === 2) {
1543
+ strm.adler = crc32_1(strm.adler, buf, len, start);
1544
+ }
1545
+ strm.next_in += len;
1546
+ strm.total_in += len;
1547
+ return len;
1548
+ };
1549
+
1550
+ /* ===========================================================================
1551
+ * Set match_start to the longest match starting at the given string and
1552
+ * return its length. Matches shorter or equal to prev_length are discarded,
1553
+ * in which case the result is equal to prev_length and match_start is
1554
+ * garbage.
1555
+ * IN assertions: cur_match is the head of the hash chain for the current
1556
+ * string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1
1557
+ * OUT assertion: the match length is not greater than s->lookahead.
1558
+ */
1559
+ var longest_match = function longest_match(s, cur_match) {
1560
+ var chain_length = s.max_chain_length; /* max hash chain length */
1561
+ var scan = s.strstart; /* current string */
1562
+ var match; /* matched string */
1563
+ var len; /* length of current match */
1564
+ var best_len = s.prev_length; /* best match length so far */
1565
+ var nice_match = s.nice_match; /* stop if match long enough */
1566
+ var limit = s.strstart > s.w_size - MIN_LOOKAHEAD ? s.strstart - (s.w_size - MIN_LOOKAHEAD) : 0 /*NIL*/;
1567
+
1568
+ var _win = s.window; // shortcut
1569
+
1570
+ var wmask = s.w_mask;
1571
+ var prev = s.prev;
1572
+
1573
+ /* Stop when cur_match becomes <= limit. To simplify the code,
1574
+ * we prevent matches with the string of window index 0.
1575
+ */
1576
+
1577
+ var strend = s.strstart + MAX_MATCH;
1578
+ var scan_end1 = _win[scan + best_len - 1];
1579
+ var scan_end = _win[scan + best_len];
1580
+
1581
+ /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.
1582
+ * It is easy to get rid of this optimization if necessary.
1583
+ */
1584
+ // Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");
1585
+
1586
+ /* Do not waste too much time if we already have a good match: */
1587
+ if (s.prev_length >= s.good_match) {
1588
+ chain_length >>= 2;
1589
+ }
1590
+ /* Do not look for matches beyond the end of the input. This is necessary
1591
+ * to make deflate deterministic.
1592
+ */
1593
+ if (nice_match > s.lookahead) {
1594
+ nice_match = s.lookahead;
1595
+ }
1596
+
1597
+ // Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead");
1598
+
1599
+ do {
1600
+ // Assert(cur_match < s->strstart, "no future");
1601
+ match = cur_match;
1602
+
1603
+ /* Skip to next match if the match length cannot increase
1604
+ * or if the match length is less than 2. Note that the checks below
1605
+ * for insufficient lookahead only occur occasionally for performance
1606
+ * reasons. Therefore uninitialized memory will be accessed, and
1607
+ * conditional jumps will be made that depend on those values.
1608
+ * However the length of the match is limited to the lookahead, so
1609
+ * the output of deflate is not affected by the uninitialized values.
1610
+ */
1611
+
1612
+ if (_win[match + best_len] !== scan_end || _win[match + best_len - 1] !== scan_end1 || _win[match] !== _win[scan] || _win[++match] !== _win[scan + 1]) {
1613
+ continue;
1614
+ }
1615
+
1616
+ /* The check at best_len-1 can be removed because it will be made
1617
+ * again later. (This heuristic is not always a win.)
1618
+ * It is not necessary to compare scan[2] and match[2] since they
1619
+ * are always equal when the other bytes match, given that
1620
+ * the hash keys are equal and that HASH_BITS >= 8.
1621
+ */
1622
+ scan += 2;
1623
+ match++;
1624
+ // Assert(*scan == *match, "match[2]?");
1625
+
1626
+ /* We check for insufficient lookahead only every 8th comparison;
1627
+ * the 256th check will be made at strstart+258.
1628
+ */
1629
+ do {
1630
+ /*jshint noempty:false*/
1631
+ } while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend);
1632
+
1633
+ // Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
1634
+
1635
+ len = MAX_MATCH - (strend - scan);
1636
+ scan = strend - MAX_MATCH;
1637
+ if (len > best_len) {
1638
+ s.match_start = cur_match;
1639
+ best_len = len;
1640
+ if (len >= nice_match) {
1641
+ break;
1642
+ }
1643
+ scan_end1 = _win[scan + best_len - 1];
1644
+ scan_end = _win[scan + best_len];
1645
+ }
1646
+ } while ((cur_match = prev[cur_match & wmask]) > limit && --chain_length !== 0);
1647
+ if (best_len <= s.lookahead) {
1648
+ return best_len;
1649
+ }
1650
+ return s.lookahead;
1651
+ };
1652
+
1653
+ /* ===========================================================================
1654
+ * Fill the window when the lookahead becomes insufficient.
1655
+ * Updates strstart and lookahead.
1656
+ *
1657
+ * IN assertion: lookahead < MIN_LOOKAHEAD
1658
+ * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD
1659
+ * At least one byte has been read, or avail_in == 0; reads are
1660
+ * performed for at least two bytes (required for the zip translate_eol
1661
+ * option -- not supported here).
1662
+ */
1663
+ var fill_window = function fill_window(s) {
1664
+ var _w_size = s.w_size;
1665
+ var n, more, str;
1666
+
1667
+ //Assert(s->lookahead < MIN_LOOKAHEAD, "already enough lookahead");
1668
+
1669
+ do {
1670
+ more = s.window_size - s.lookahead - s.strstart;
1671
+
1672
+ // JS ints have 32 bit, block below not needed
1673
+ /* Deal with !@#$% 64K limit: */
1674
+ //if (sizeof(int) <= 2) {
1675
+ // if (more == 0 && s->strstart == 0 && s->lookahead == 0) {
1676
+ // more = wsize;
1677
+ //
1678
+ // } else if (more == (unsigned)(-1)) {
1679
+ // /* Very unlikely, but possible on 16 bit machine if
1680
+ // * strstart == 0 && lookahead == 1 (input done a byte at time)
1681
+ // */
1682
+ // more--;
1683
+ // }
1684
+ //}
1685
+
1686
+ /* If the window is almost full and there is insufficient lookahead,
1687
+ * move the upper half to the lower one to make room in the upper half.
1688
+ */
1689
+ if (s.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD)) {
1690
+ s.window.set(s.window.subarray(_w_size, _w_size + _w_size - more), 0);
1691
+ s.match_start -= _w_size;
1692
+ s.strstart -= _w_size;
1693
+ /* we now have strstart >= MAX_DIST */
1694
+ s.block_start -= _w_size;
1695
+ if (s.insert > s.strstart) {
1696
+ s.insert = s.strstart;
1697
+ }
1698
+ slide_hash(s);
1699
+ more += _w_size;
1700
+ }
1701
+ if (s.strm.avail_in === 0) {
1702
+ break;
1703
+ }
1704
+
1705
+ /* If there was no sliding:
1706
+ * strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&
1707
+ * more == window_size - lookahead - strstart
1708
+ * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)
1709
+ * => more >= window_size - 2*WSIZE + 2
1710
+ * In the BIG_MEM or MMAP case (not yet supported),
1711
+ * window_size == input_size + MIN_LOOKAHEAD &&
1712
+ * strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.
1713
+ * Otherwise, window_size == 2*WSIZE so more >= 2.
1714
+ * If there was sliding, more >= WSIZE. So in all cases, more >= 2.
1715
+ */
1716
+ //Assert(more >= 2, "more < 2");
1717
+ n = read_buf(s.strm, s.window, s.strstart + s.lookahead, more);
1718
+ s.lookahead += n;
1719
+
1720
+ /* Initialize the hash value now that we have some input: */
1721
+ if (s.lookahead + s.insert >= MIN_MATCH) {
1722
+ str = s.strstart - s.insert;
1723
+ s.ins_h = s.window[str];
1724
+
1725
+ /* UPDATE_HASH(s, s->ins_h, s->window[str + 1]); */
1726
+ s.ins_h = HASH(s, s.ins_h, s.window[str + 1]);
1727
+ //#if MIN_MATCH != 3
1728
+ // Call update_hash() MIN_MATCH-3 more times
1729
+ //#endif
1730
+ while (s.insert) {
1731
+ /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */
1732
+ s.ins_h = HASH(s, s.ins_h, s.window[str + MIN_MATCH - 1]);
1733
+ s.prev[str & s.w_mask] = s.head[s.ins_h];
1734
+ s.head[s.ins_h] = str;
1735
+ str++;
1736
+ s.insert--;
1737
+ if (s.lookahead + s.insert < MIN_MATCH) {
1738
+ break;
1739
+ }
1740
+ }
1741
+ }
1742
+ /* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,
1743
+ * but this is not important since only literal bytes will be emitted.
1744
+ */
1745
+ } while (s.lookahead < MIN_LOOKAHEAD && s.strm.avail_in !== 0);
1746
+
1747
+ /* If the WIN_INIT bytes after the end of the current data have never been
1748
+ * written, then zero those bytes in order to avoid memory check reports of
1749
+ * the use of uninitialized (or uninitialised as Julian writes) bytes by
1750
+ * the longest match routines. Update the high water mark for the next
1751
+ * time through here. WIN_INIT is set to MAX_MATCH since the longest match
1752
+ * routines allow scanning to strstart + MAX_MATCH, ignoring lookahead.
1753
+ */
1754
+ // if (s.high_water < s.window_size) {
1755
+ // const curr = s.strstart + s.lookahead;
1756
+ // let init = 0;
1757
+ //
1758
+ // if (s.high_water < curr) {
1759
+ // /* Previous high water mark below current data -- zero WIN_INIT
1760
+ // * bytes or up to end of window, whichever is less.
1761
+ // */
1762
+ // init = s.window_size - curr;
1763
+ // if (init > WIN_INIT)
1764
+ // init = WIN_INIT;
1765
+ // zmemzero(s->window + curr, (unsigned)init);
1766
+ // s->high_water = curr + init;
1767
+ // }
1768
+ // else if (s->high_water < (ulg)curr + WIN_INIT) {
1769
+ // /* High water mark at or above current data, but below current data
1770
+ // * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up
1771
+ // * to end of window, whichever is less.
1772
+ // */
1773
+ // init = (ulg)curr + WIN_INIT - s->high_water;
1774
+ // if (init > s->window_size - s->high_water)
1775
+ // init = s->window_size - s->high_water;
1776
+ // zmemzero(s->window + s->high_water, (unsigned)init);
1777
+ // s->high_water += init;
1778
+ // }
1779
+ // }
1780
+ //
1781
+ // Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD,
1782
+ // "not enough room for search");
1783
+ };
1784
+
1785
+ /* ===========================================================================
1786
+ * Copy without compression as much as possible from the input stream, return
1787
+ * the current block state.
1788
+ *
1789
+ * In case deflateParams() is used to later switch to a non-zero compression
1790
+ * level, s->matches (otherwise unused when storing) keeps track of the number
1791
+ * of hash table slides to perform. If s->matches is 1, then one hash table
1792
+ * slide will be done when switching. If s->matches is 2, the maximum value
1793
+ * allowed here, then the hash table will be cleared, since two or more slides
1794
+ * is the same as a clear.
1795
+ *
1796
+ * deflate_stored() is written to minimize the number of times an input byte is
1797
+ * copied. It is most efficient with large input and output buffers, which
1798
+ * maximizes the opportunites to have a single copy from next_in to next_out.
1799
+ */
1800
+ var deflate_stored = function deflate_stored(s, flush) {
1801
+ /* Smallest worthy block size when not flushing or finishing. By default
1802
+ * this is 32K. This can be as small as 507 bytes for memLevel == 1. For
1803
+ * large input and output buffers, the stored block size will be larger.
1804
+ */
1805
+ var min_block = s.pending_buf_size - 5 > s.w_size ? s.w_size : s.pending_buf_size - 5;
1806
+
1807
+ /* Copy as many min_block or larger stored blocks directly to next_out as
1808
+ * possible. If flushing, copy the remaining available input to next_out as
1809
+ * stored blocks, if there is enough space.
1810
+ */
1811
+ var len,
1812
+ left,
1813
+ have,
1814
+ last = 0;
1815
+ var used = s.strm.avail_in;
1816
+ do {
1817
+ /* Set len to the maximum size block that we can copy directly with the
1818
+ * available input data and output space. Set left to how much of that
1819
+ * would be copied from what's left in the window.
1820
+ */
1821
+ len = 65535 /* MAX_STORED */; /* maximum deflate stored block length */
1822
+ have = s.bi_valid + 42 >> 3; /* number of header bytes */
1823
+ if (s.strm.avail_out < have) {
1824
+ /* need room for header */
1825
+ break;
1826
+ }
1827
+ /* maximum stored block length that will fit in avail_out: */
1828
+ have = s.strm.avail_out - have;
1829
+ left = s.strstart - s.block_start; /* bytes left in window */
1830
+ if (len > left + s.strm.avail_in) {
1831
+ len = left + s.strm.avail_in; /* limit len to the input */
1832
+ }
1833
+
1834
+ if (len > have) {
1835
+ len = have; /* limit len to the output */
1836
+ }
1837
+
1838
+ /* If the stored block would be less than min_block in length, or if
1839
+ * unable to copy all of the available input when flushing, then try
1840
+ * copying to the window and the pending buffer instead. Also don't
1841
+ * write an empty block when flushing -- deflate() does that.
1842
+ */
1843
+ if (len < min_block && (len === 0 && flush !== Z_FINISH$1 || flush === Z_NO_FLUSH$1 || len !== left + s.strm.avail_in)) {
1844
+ break;
1845
+ }
1846
+
1847
+ /* Make a dummy stored block in pending to get the header bytes,
1848
+ * including any pending bits. This also updates the debugging counts.
1849
+ */
1850
+ last = flush === Z_FINISH$1 && len === left + s.strm.avail_in ? 1 : 0;
1851
+ _tr_stored_block(s, 0, 0, last);
1852
+
1853
+ /* Replace the lengths in the dummy stored block with len. */
1854
+ s.pending_buf[s.pending - 4] = len;
1855
+ s.pending_buf[s.pending - 3] = len >> 8;
1856
+ s.pending_buf[s.pending - 2] = ~len;
1857
+ s.pending_buf[s.pending - 1] = ~len >> 8;
1858
+
1859
+ /* Write the stored block header bytes. */
1860
+ flush_pending(s.strm);
1861
+
1862
+ //#ifdef ZLIB_DEBUG
1863
+ // /* Update debugging counts for the data about to be copied. */
1864
+ // s->compressed_len += len << 3;
1865
+ // s->bits_sent += len << 3;
1866
+ //#endif
1867
+
1868
+ /* Copy uncompressed bytes from the window to next_out. */
1869
+ if (left) {
1870
+ if (left > len) {
1871
+ left = len;
1872
+ }
1873
+ //zmemcpy(s->strm->next_out, s->window + s->block_start, left);
1874
+ s.strm.output.set(s.window.subarray(s.block_start, s.block_start + left), s.strm.next_out);
1875
+ s.strm.next_out += left;
1876
+ s.strm.avail_out -= left;
1877
+ s.strm.total_out += left;
1878
+ s.block_start += left;
1879
+ len -= left;
1880
+ }
1881
+
1882
+ /* Copy uncompressed bytes directly from next_in to next_out, updating
1883
+ * the check value.
1884
+ */
1885
+ if (len) {
1886
+ read_buf(s.strm, s.strm.output, s.strm.next_out, len);
1887
+ s.strm.next_out += len;
1888
+ s.strm.avail_out -= len;
1889
+ s.strm.total_out += len;
1890
+ }
1891
+ } while (last === 0);
1892
+
1893
+ /* Update the sliding window with the last s->w_size bytes of the copied
1894
+ * data, or append all of the copied data to the existing window if less
1895
+ * than s->w_size bytes were copied. Also update the number of bytes to
1896
+ * insert in the hash tables, in the event that deflateParams() switches to
1897
+ * a non-zero compression level.
1898
+ */
1899
+ used -= s.strm.avail_in; /* number of input bytes directly copied */
1900
+ if (used) {
1901
+ /* If any input was used, then no unused input remains in the window,
1902
+ * therefore s->block_start == s->strstart.
1903
+ */
1904
+ if (used >= s.w_size) {
1905
+ /* supplant the previous history */
1906
+ s.matches = 2; /* clear hash */
1907
+ //zmemcpy(s->window, s->strm->next_in - s->w_size, s->w_size);
1908
+ s.window.set(s.strm.input.subarray(s.strm.next_in - s.w_size, s.strm.next_in), 0);
1909
+ s.strstart = s.w_size;
1910
+ s.insert = s.strstart;
1911
+ } else {
1912
+ if (s.window_size - s.strstart <= used) {
1913
+ /* Slide the window down. */
1914
+ s.strstart -= s.w_size;
1915
+ //zmemcpy(s->window, s->window + s->w_size, s->strstart);
1916
+ s.window.set(s.window.subarray(s.w_size, s.w_size + s.strstart), 0);
1917
+ if (s.matches < 2) {
1918
+ s.matches++; /* add a pending slide_hash() */
1919
+ }
1920
+
1921
+ if (s.insert > s.strstart) {
1922
+ s.insert = s.strstart;
1923
+ }
1924
+ }
1925
+ //zmemcpy(s->window + s->strstart, s->strm->next_in - used, used);
1926
+ s.window.set(s.strm.input.subarray(s.strm.next_in - used, s.strm.next_in), s.strstart);
1927
+ s.strstart += used;
1928
+ s.insert += used > s.w_size - s.insert ? s.w_size - s.insert : used;
1929
+ }
1930
+ s.block_start = s.strstart;
1931
+ }
1932
+ if (s.high_water < s.strstart) {
1933
+ s.high_water = s.strstart;
1934
+ }
1935
+
1936
+ /* If the last block was written to next_out, then done. */
1937
+ if (last) {
1938
+ return BS_FINISH_DONE;
1939
+ }
1940
+
1941
+ /* If flushing and all input has been consumed, then done. */
1942
+ if (flush !== Z_NO_FLUSH$1 && flush !== Z_FINISH$1 && s.strm.avail_in === 0 && s.strstart === s.block_start) {
1943
+ return BS_BLOCK_DONE;
1944
+ }
1945
+
1946
+ /* Fill the window with any remaining input. */
1947
+ have = s.window_size - s.strstart;
1948
+ if (s.strm.avail_in > have && s.block_start >= s.w_size) {
1949
+ /* Slide the window down. */
1950
+ s.block_start -= s.w_size;
1951
+ s.strstart -= s.w_size;
1952
+ //zmemcpy(s->window, s->window + s->w_size, s->strstart);
1953
+ s.window.set(s.window.subarray(s.w_size, s.w_size + s.strstart), 0);
1954
+ if (s.matches < 2) {
1955
+ s.matches++; /* add a pending slide_hash() */
1956
+ }
1957
+
1958
+ have += s.w_size; /* more space now */
1959
+ if (s.insert > s.strstart) {
1960
+ s.insert = s.strstart;
1961
+ }
1962
+ }
1963
+ if (have > s.strm.avail_in) {
1964
+ have = s.strm.avail_in;
1965
+ }
1966
+ if (have) {
1967
+ read_buf(s.strm, s.window, s.strstart, have);
1968
+ s.strstart += have;
1969
+ s.insert += have > s.w_size - s.insert ? s.w_size - s.insert : have;
1970
+ }
1971
+ if (s.high_water < s.strstart) {
1972
+ s.high_water = s.strstart;
1973
+ }
1974
+
1975
+ /* There was not enough avail_out to write a complete worthy or flushed
1976
+ * stored block to next_out. Write a stored block to pending instead, if we
1977
+ * have enough input for a worthy block, or if flushing and there is enough
1978
+ * room for the remaining input as a stored block in the pending buffer.
1979
+ */
1980
+ have = s.bi_valid + 42 >> 3; /* number of header bytes */
1981
+ /* maximum stored block length that will fit in pending: */
1982
+ have = s.pending_buf_size - have > 65535 /* MAX_STORED */ ? 65535 /* MAX_STORED */ : s.pending_buf_size - have;
1983
+ min_block = have > s.w_size ? s.w_size : have;
1984
+ left = s.strstart - s.block_start;
1985
+ if (left >= min_block || (left || flush === Z_FINISH$1) && flush !== Z_NO_FLUSH$1 && s.strm.avail_in === 0 && left <= have) {
1986
+ len = left > have ? have : left;
1987
+ last = flush === Z_FINISH$1 && s.strm.avail_in === 0 && len === left ? 1 : 0;
1988
+ _tr_stored_block(s, s.block_start, len, last);
1989
+ s.block_start += len;
1990
+ flush_pending(s.strm);
1991
+ }
1992
+
1993
+ /* We've done all we can with the available input and output. */
1994
+ return last ? BS_FINISH_STARTED : BS_NEED_MORE;
1995
+ };
1996
+
1997
+ /* ===========================================================================
1998
+ * Compress as much as possible from the input stream, return the current
1999
+ * block state.
2000
+ * This function does not perform lazy evaluation of matches and inserts
2001
+ * new strings in the dictionary only for unmatched strings or for short
2002
+ * matches. It is used only for the fast compression options.
2003
+ */
2004
+ var deflate_fast = function deflate_fast(s, flush) {
2005
+ var hash_head; /* head of the hash chain */
2006
+ var bflush; /* set if current block must be flushed */
2007
+
2008
+ for (;;) {
2009
+ /* Make sure that we always have enough lookahead, except
2010
+ * at the end of the input file. We need MAX_MATCH bytes
2011
+ * for the next match, plus MIN_MATCH bytes to insert the
2012
+ * string following the next match.
2013
+ */
2014
+ if (s.lookahead < MIN_LOOKAHEAD) {
2015
+ fill_window(s);
2016
+ if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH$1) {
2017
+ return BS_NEED_MORE;
2018
+ }
2019
+ if (s.lookahead === 0) {
2020
+ break; /* flush the current block */
2021
+ }
2022
+ }
2023
+
2024
+ /* Insert the string window[strstart .. strstart+2] in the
2025
+ * dictionary, and set hash_head to the head of the hash chain:
2026
+ */
2027
+ hash_head = 0 /*NIL*/;
2028
+ if (s.lookahead >= MIN_MATCH) {
2029
+ /*** INSERT_STRING(s, s.strstart, hash_head); ***/
2030
+ s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH - 1]);
2031
+ hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
2032
+ s.head[s.ins_h] = s.strstart;
2033
+ /***/
2034
+ }
2035
+
2036
+ /* Find the longest match, discarding those <= prev_length.
2037
+ * At this point we have always match_length < MIN_MATCH
2038
+ */
2039
+ if (hash_head !== 0 /*NIL*/ && s.strstart - hash_head <= s.w_size - MIN_LOOKAHEAD) {
2040
+ /* To simplify the code, we prevent matches with the string
2041
+ * of window index 0 (in particular we have to avoid a match
2042
+ * of the string with itself at the start of the input file).
2043
+ */
2044
+ s.match_length = longest_match(s, hash_head);
2045
+ /* longest_match() sets match_start */
2046
+ }
2047
+
2048
+ if (s.match_length >= MIN_MATCH) {
2049
+ // check_match(s, s.strstart, s.match_start, s.match_length); // for debug only
2050
+
2051
+ /*** _tr_tally_dist(s, s.strstart - s.match_start,
2052
+ s.match_length - MIN_MATCH, bflush); ***/
2053
+ bflush = _tr_tally(s, s.strstart - s.match_start, s.match_length - MIN_MATCH);
2054
+ s.lookahead -= s.match_length;
2055
+
2056
+ /* Insert new strings in the hash table only if the match length
2057
+ * is not too large. This saves time but degrades compression.
2058
+ */
2059
+ if (s.match_length <= s.max_lazy_match /*max_insert_length*/ && s.lookahead >= MIN_MATCH) {
2060
+ s.match_length--; /* string at strstart already in table */
2061
+ do {
2062
+ s.strstart++;
2063
+ /*** INSERT_STRING(s, s.strstart, hash_head); ***/
2064
+ s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH - 1]);
2065
+ hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
2066
+ s.head[s.ins_h] = s.strstart;
2067
+ /***/
2068
+ /* strstart never exceeds WSIZE-MAX_MATCH, so there are
2069
+ * always MIN_MATCH bytes ahead.
2070
+ */
2071
+ } while (--s.match_length !== 0);
2072
+ s.strstart++;
2073
+ } else {
2074
+ s.strstart += s.match_length;
2075
+ s.match_length = 0;
2076
+ s.ins_h = s.window[s.strstart];
2077
+ /* UPDATE_HASH(s, s.ins_h, s.window[s.strstart+1]); */
2078
+ s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + 1]);
2079
+
2080
+ //#if MIN_MATCH != 3
2081
+ // Call UPDATE_HASH() MIN_MATCH-3 more times
2082
+ //#endif
2083
+ /* If lookahead < MIN_MATCH, ins_h is garbage, but it does not
2084
+ * matter since it will be recomputed at next deflate call.
2085
+ */
2086
+ }
2087
+ } else {
2088
+ /* No match, output a literal byte */
2089
+ //Tracevv((stderr,"%c", s.window[s.strstart]));
2090
+ /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
2091
+ bflush = _tr_tally(s, 0, s.window[s.strstart]);
2092
+ s.lookahead--;
2093
+ s.strstart++;
2094
+ }
2095
+ if (bflush) {
2096
+ /*** FLUSH_BLOCK(s, 0); ***/
2097
+ flush_block_only(s, false);
2098
+ if (s.strm.avail_out === 0) {
2099
+ return BS_NEED_MORE;
2100
+ }
2101
+ /***/
2102
+ }
2103
+ }
2104
+
2105
+ s.insert = s.strstart < MIN_MATCH - 1 ? s.strstart : MIN_MATCH - 1;
2106
+ if (flush === Z_FINISH$1) {
2107
+ /*** FLUSH_BLOCK(s, 1); ***/
2108
+ flush_block_only(s, true);
2109
+ if (s.strm.avail_out === 0) {
2110
+ return BS_FINISH_STARTED;
2111
+ }
2112
+ /***/
2113
+ return BS_FINISH_DONE;
2114
+ }
2115
+ if (s.sym_next) {
2116
+ /*** FLUSH_BLOCK(s, 0); ***/
2117
+ flush_block_only(s, false);
2118
+ if (s.strm.avail_out === 0) {
2119
+ return BS_NEED_MORE;
2120
+ }
2121
+ /***/
2122
+ }
2123
+
2124
+ return BS_BLOCK_DONE;
2125
+ };
2126
+
2127
+ /* ===========================================================================
2128
+ * Same as above, but achieves better compression. We use a lazy
2129
+ * evaluation for matches: a match is finally adopted only if there is
2130
+ * no better match at the next window position.
2131
+ */
2132
+ var deflate_slow = function deflate_slow(s, flush) {
2133
+ var hash_head; /* head of hash chain */
2134
+ var bflush; /* set if current block must be flushed */
2135
+
2136
+ var max_insert;
2137
+
2138
+ /* Process the input block. */
2139
+ for (;;) {
2140
+ /* Make sure that we always have enough lookahead, except
2141
+ * at the end of the input file. We need MAX_MATCH bytes
2142
+ * for the next match, plus MIN_MATCH bytes to insert the
2143
+ * string following the next match.
2144
+ */
2145
+ if (s.lookahead < MIN_LOOKAHEAD) {
2146
+ fill_window(s);
2147
+ if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH$1) {
2148
+ return BS_NEED_MORE;
2149
+ }
2150
+ if (s.lookahead === 0) {
2151
+ break;
2152
+ } /* flush the current block */
2153
+ }
2154
+
2155
+ /* Insert the string window[strstart .. strstart+2] in the
2156
+ * dictionary, and set hash_head to the head of the hash chain:
2157
+ */
2158
+ hash_head = 0 /*NIL*/;
2159
+ if (s.lookahead >= MIN_MATCH) {
2160
+ /*** INSERT_STRING(s, s.strstart, hash_head); ***/
2161
+ s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH - 1]);
2162
+ hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
2163
+ s.head[s.ins_h] = s.strstart;
2164
+ /***/
2165
+ }
2166
+
2167
+ /* Find the longest match, discarding those <= prev_length.
2168
+ */
2169
+ s.prev_length = s.match_length;
2170
+ s.prev_match = s.match_start;
2171
+ s.match_length = MIN_MATCH - 1;
2172
+ if (hash_head !== 0 /*NIL*/ && s.prev_length < s.max_lazy_match && s.strstart - hash_head <= s.w_size - MIN_LOOKAHEAD /*MAX_DIST(s)*/) {
2173
+ /* To simplify the code, we prevent matches with the string
2174
+ * of window index 0 (in particular we have to avoid a match
2175
+ * of the string with itself at the start of the input file).
2176
+ */
2177
+ s.match_length = longest_match(s, hash_head);
2178
+ /* longest_match() sets match_start */
2179
+
2180
+ if (s.match_length <= 5 && (s.strategy === Z_FILTERED || s.match_length === MIN_MATCH && s.strstart - s.match_start > 4096 /*TOO_FAR*/)) {
2181
+ /* If prev_match is also MIN_MATCH, match_start is garbage
2182
+ * but we will ignore the current match anyway.
2183
+ */
2184
+ s.match_length = MIN_MATCH - 1;
2185
+ }
2186
+ }
2187
+ /* If there was a match at the previous step and the current
2188
+ * match is not better, output the previous match:
2189
+ */
2190
+ if (s.prev_length >= MIN_MATCH && s.match_length <= s.prev_length) {
2191
+ max_insert = s.strstart + s.lookahead - MIN_MATCH;
2192
+ /* Do not insert strings in hash table beyond this. */
2193
+
2194
+ //check_match(s, s.strstart-1, s.prev_match, s.prev_length);
2195
+
2196
+ /***_tr_tally_dist(s, s.strstart - 1 - s.prev_match,
2197
+ s.prev_length - MIN_MATCH, bflush);***/
2198
+ bflush = _tr_tally(s, s.strstart - 1 - s.prev_match, s.prev_length - MIN_MATCH);
2199
+ /* Insert in hash table all strings up to the end of the match.
2200
+ * strstart-1 and strstart are already inserted. If there is not
2201
+ * enough lookahead, the last two strings are not inserted in
2202
+ * the hash table.
2203
+ */
2204
+ s.lookahead -= s.prev_length - 1;
2205
+ s.prev_length -= 2;
2206
+ do {
2207
+ if (++s.strstart <= max_insert) {
2208
+ /*** INSERT_STRING(s, s.strstart, hash_head); ***/
2209
+ s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH - 1]);
2210
+ hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
2211
+ s.head[s.ins_h] = s.strstart;
2212
+ /***/
2213
+ }
2214
+ } while (--s.prev_length !== 0);
2215
+ s.match_available = 0;
2216
+ s.match_length = MIN_MATCH - 1;
2217
+ s.strstart++;
2218
+ if (bflush) {
2219
+ /*** FLUSH_BLOCK(s, 0); ***/
2220
+ flush_block_only(s, false);
2221
+ if (s.strm.avail_out === 0) {
2222
+ return BS_NEED_MORE;
2223
+ }
2224
+ /***/
2225
+ }
2226
+ } else if (s.match_available) {
2227
+ /* If there was no match at the previous position, output a
2228
+ * single literal. If there was a match but the current match
2229
+ * is longer, truncate the previous match to a single literal.
2230
+ */
2231
+ //Tracevv((stderr,"%c", s->window[s->strstart-1]));
2232
+ /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/
2233
+ bflush = _tr_tally(s, 0, s.window[s.strstart - 1]);
2234
+ if (bflush) {
2235
+ /*** FLUSH_BLOCK_ONLY(s, 0) ***/
2236
+ flush_block_only(s, false);
2237
+ /***/
2238
+ }
2239
+
2240
+ s.strstart++;
2241
+ s.lookahead--;
2242
+ if (s.strm.avail_out === 0) {
2243
+ return BS_NEED_MORE;
2244
+ }
2245
+ } else {
2246
+ /* There is no previous match to compare with, wait for
2247
+ * the next step to decide.
2248
+ */
2249
+ s.match_available = 1;
2250
+ s.strstart++;
2251
+ s.lookahead--;
2252
+ }
2253
+ }
2254
+ //Assert (flush != Z_NO_FLUSH, "no flush?");
2255
+ if (s.match_available) {
2256
+ //Tracevv((stderr,"%c", s->window[s->strstart-1]));
2257
+ /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/
2258
+ bflush = _tr_tally(s, 0, s.window[s.strstart - 1]);
2259
+ s.match_available = 0;
2260
+ }
2261
+ s.insert = s.strstart < MIN_MATCH - 1 ? s.strstart : MIN_MATCH - 1;
2262
+ if (flush === Z_FINISH$1) {
2263
+ /*** FLUSH_BLOCK(s, 1); ***/
2264
+ flush_block_only(s, true);
2265
+ if (s.strm.avail_out === 0) {
2266
+ return BS_FINISH_STARTED;
2267
+ }
2268
+ /***/
2269
+ return BS_FINISH_DONE;
2270
+ }
2271
+ if (s.sym_next) {
2272
+ /*** FLUSH_BLOCK(s, 0); ***/
2273
+ flush_block_only(s, false);
2274
+ if (s.strm.avail_out === 0) {
2275
+ return BS_NEED_MORE;
2276
+ }
2277
+ /***/
2278
+ }
2279
+
2280
+ return BS_BLOCK_DONE;
2281
+ };
2282
+
2283
+ /* ===========================================================================
2284
+ * For Z_RLE, simply look for runs of bytes, generate matches only of distance
2285
+ * one. Do not maintain a hash table. (It will be regenerated if this run of
2286
+ * deflate switches away from Z_RLE.)
2287
+ */
2288
+ var deflate_rle = function deflate_rle(s, flush) {
2289
+ var bflush; /* set if current block must be flushed */
2290
+ var prev; /* byte at distance one to match */
2291
+ var scan, strend; /* scan goes up to strend for length of run */
2292
+
2293
+ var _win = s.window;
2294
+ for (;;) {
2295
+ /* Make sure that we always have enough lookahead, except
2296
+ * at the end of the input file. We need MAX_MATCH bytes
2297
+ * for the longest run, plus one for the unrolled loop.
2298
+ */
2299
+ if (s.lookahead <= MAX_MATCH) {
2300
+ fill_window(s);
2301
+ if (s.lookahead <= MAX_MATCH && flush === Z_NO_FLUSH$1) {
2302
+ return BS_NEED_MORE;
2303
+ }
2304
+ if (s.lookahead === 0) {
2305
+ break;
2306
+ } /* flush the current block */
2307
+ }
2308
+
2309
+ /* See how many times the previous byte repeats */
2310
+ s.match_length = 0;
2311
+ if (s.lookahead >= MIN_MATCH && s.strstart > 0) {
2312
+ scan = s.strstart - 1;
2313
+ prev = _win[scan];
2314
+ if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {
2315
+ strend = s.strstart + MAX_MATCH;
2316
+ do {
2317
+ /*jshint noempty:false*/
2318
+ } while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && scan < strend);
2319
+ s.match_length = MAX_MATCH - (strend - scan);
2320
+ if (s.match_length > s.lookahead) {
2321
+ s.match_length = s.lookahead;
2322
+ }
2323
+ }
2324
+ //Assert(scan <= s->window+(uInt)(s->window_size-1), "wild scan");
2325
+ }
2326
+
2327
+ /* Emit match if have run of MIN_MATCH or longer, else emit literal */
2328
+ if (s.match_length >= MIN_MATCH) {
2329
+ //check_match(s, s.strstart, s.strstart - 1, s.match_length);
2330
+
2331
+ /*** _tr_tally_dist(s, 1, s.match_length - MIN_MATCH, bflush); ***/
2332
+ bflush = _tr_tally(s, 1, s.match_length - MIN_MATCH);
2333
+ s.lookahead -= s.match_length;
2334
+ s.strstart += s.match_length;
2335
+ s.match_length = 0;
2336
+ } else {
2337
+ /* No match, output a literal byte */
2338
+ //Tracevv((stderr,"%c", s->window[s->strstart]));
2339
+ /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
2340
+ bflush = _tr_tally(s, 0, s.window[s.strstart]);
2341
+ s.lookahead--;
2342
+ s.strstart++;
2343
+ }
2344
+ if (bflush) {
2345
+ /*** FLUSH_BLOCK(s, 0); ***/
2346
+ flush_block_only(s, false);
2347
+ if (s.strm.avail_out === 0) {
2348
+ return BS_NEED_MORE;
2349
+ }
2350
+ /***/
2351
+ }
2352
+ }
2353
+
2354
+ s.insert = 0;
2355
+ if (flush === Z_FINISH$1) {
2356
+ /*** FLUSH_BLOCK(s, 1); ***/
2357
+ flush_block_only(s, true);
2358
+ if (s.strm.avail_out === 0) {
2359
+ return BS_FINISH_STARTED;
2360
+ }
2361
+ /***/
2362
+ return BS_FINISH_DONE;
2363
+ }
2364
+ if (s.sym_next) {
2365
+ /*** FLUSH_BLOCK(s, 0); ***/
2366
+ flush_block_only(s, false);
2367
+ if (s.strm.avail_out === 0) {
2368
+ return BS_NEED_MORE;
2369
+ }
2370
+ /***/
2371
+ }
2372
+
2373
+ return BS_BLOCK_DONE;
2374
+ };
2375
+
2376
+ /* ===========================================================================
2377
+ * For Z_HUFFMAN_ONLY, do not look for matches. Do not maintain a hash table.
2378
+ * (It will be regenerated if this run of deflate switches away from Huffman.)
2379
+ */
2380
+ var deflate_huff = function deflate_huff(s, flush) {
2381
+ var bflush; /* set if current block must be flushed */
2382
+
2383
+ for (;;) {
2384
+ /* Make sure that we have a literal to write. */
2385
+ if (s.lookahead === 0) {
2386
+ fill_window(s);
2387
+ if (s.lookahead === 0) {
2388
+ if (flush === Z_NO_FLUSH$1) {
2389
+ return BS_NEED_MORE;
2390
+ }
2391
+ break; /* flush the current block */
2392
+ }
2393
+ }
2394
+
2395
+ /* Output a literal byte */
2396
+ s.match_length = 0;
2397
+ //Tracevv((stderr,"%c", s->window[s->strstart]));
2398
+ /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
2399
+ bflush = _tr_tally(s, 0, s.window[s.strstart]);
2400
+ s.lookahead--;
2401
+ s.strstart++;
2402
+ if (bflush) {
2403
+ /*** FLUSH_BLOCK(s, 0); ***/
2404
+ flush_block_only(s, false);
2405
+ if (s.strm.avail_out === 0) {
2406
+ return BS_NEED_MORE;
2407
+ }
2408
+ /***/
2409
+ }
2410
+ }
2411
+
2412
+ s.insert = 0;
2413
+ if (flush === Z_FINISH$1) {
2414
+ /*** FLUSH_BLOCK(s, 1); ***/
2415
+ flush_block_only(s, true);
2416
+ if (s.strm.avail_out === 0) {
2417
+ return BS_FINISH_STARTED;
2418
+ }
2419
+ /***/
2420
+ return BS_FINISH_DONE;
2421
+ }
2422
+ if (s.sym_next) {
2423
+ /*** FLUSH_BLOCK(s, 0); ***/
2424
+ flush_block_only(s, false);
2425
+ if (s.strm.avail_out === 0) {
2426
+ return BS_NEED_MORE;
2427
+ }
2428
+ /***/
2429
+ }
2430
+
2431
+ return BS_BLOCK_DONE;
2432
+ };
2433
+
2434
+ /* Values for max_lazy_match, good_match and max_chain_length, depending on
2435
+ * the desired pack level (0..9). The values given below have been tuned to
2436
+ * exclude worst case performance for pathological files. Better values may be
2437
+ * found for specific files.
2438
+ */
2439
+ function Config(good_length, max_lazy, nice_length, max_chain, func) {
2440
+ this.good_length = good_length;
2441
+ this.max_lazy = max_lazy;
2442
+ this.nice_length = nice_length;
2443
+ this.max_chain = max_chain;
2444
+ this.func = func;
2445
+ }
2446
+ var configuration_table = [/* good lazy nice chain */
2447
+ new Config(0, 0, 0, 0, deflate_stored), /* 0 store only */
2448
+ new Config(4, 4, 8, 4, deflate_fast), /* 1 max speed, no lazy matches */
2449
+ new Config(4, 5, 16, 8, deflate_fast), /* 2 */
2450
+ new Config(4, 6, 32, 32, deflate_fast), /* 3 */
2451
+
2452
+ new Config(4, 4, 16, 16, deflate_slow), /* 4 lazy matches */
2453
+ new Config(8, 16, 32, 32, deflate_slow), /* 5 */
2454
+ new Config(8, 16, 128, 128, deflate_slow), /* 6 */
2455
+ new Config(8, 32, 128, 256, deflate_slow), /* 7 */
2456
+ new Config(32, 128, 258, 1024, deflate_slow), /* 8 */
2457
+ new Config(32, 258, 258, 4096, deflate_slow) /* 9 max compression */];
2458
+
2459
+ /* ===========================================================================
2460
+ * Initialize the "longest match" routines for a new zlib stream
2461
+ */
2462
+ var lm_init = function lm_init(s) {
2463
+ s.window_size = 2 * s.w_size;
2464
+
2465
+ /*** CLEAR_HASH(s); ***/
2466
+ zero(s.head); // Fill with NIL (= 0);
2467
+
2468
+ /* Set the default configuration parameters:
2469
+ */
2470
+ s.max_lazy_match = configuration_table[s.level].max_lazy;
2471
+ s.good_match = configuration_table[s.level].good_length;
2472
+ s.nice_match = configuration_table[s.level].nice_length;
2473
+ s.max_chain_length = configuration_table[s.level].max_chain;
2474
+ s.strstart = 0;
2475
+ s.block_start = 0;
2476
+ s.lookahead = 0;
2477
+ s.insert = 0;
2478
+ s.match_length = s.prev_length = MIN_MATCH - 1;
2479
+ s.match_available = 0;
2480
+ s.ins_h = 0;
2481
+ };
2482
+ function DeflateState() {
2483
+ this.strm = null; /* pointer back to this zlib stream */
2484
+ this.status = 0; /* as the name implies */
2485
+ this.pending_buf = null; /* output still pending */
2486
+ this.pending_buf_size = 0; /* size of pending_buf */
2487
+ this.pending_out = 0; /* next pending byte to output to the stream */
2488
+ this.pending = 0; /* nb of bytes in the pending buffer */
2489
+ this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */
2490
+ this.gzhead = null; /* gzip header information to write */
2491
+ this.gzindex = 0; /* where in extra, name, or comment */
2492
+ this.method = Z_DEFLATED$1; /* can only be DEFLATED */
2493
+ this.last_flush = -1; /* value of flush param for previous deflate call */
2494
+
2495
+ this.w_size = 0; /* LZ77 window size (32K by default) */
2496
+ this.w_bits = 0; /* log2(w_size) (8..16) */
2497
+ this.w_mask = 0; /* w_size - 1 */
2498
+
2499
+ this.window = null;
2500
+ /* Sliding window. Input bytes are read into the second half of the window,
2501
+ * and move to the first half later to keep a dictionary of at least wSize
2502
+ * bytes. With this organization, matches are limited to a distance of
2503
+ * wSize-MAX_MATCH bytes, but this ensures that IO is always
2504
+ * performed with a length multiple of the block size.
2505
+ */
2506
+
2507
+ this.window_size = 0;
2508
+ /* Actual size of window: 2*wSize, except when the user input buffer
2509
+ * is directly used as sliding window.
2510
+ */
2511
+
2512
+ this.prev = null;
2513
+ /* Link to older string with same hash index. To limit the size of this
2514
+ * array to 64K, this link is maintained only for the last 32K strings.
2515
+ * An index in this array is thus a window index modulo 32K.
2516
+ */
2517
+
2518
+ this.head = null; /* Heads of the hash chains or NIL. */
2519
+
2520
+ this.ins_h = 0; /* hash index of string to be inserted */
2521
+ this.hash_size = 0; /* number of elements in hash table */
2522
+ this.hash_bits = 0; /* log2(hash_size) */
2523
+ this.hash_mask = 0; /* hash_size-1 */
2524
+
2525
+ this.hash_shift = 0;
2526
+ /* Number of bits by which ins_h must be shifted at each input
2527
+ * step. It must be such that after MIN_MATCH steps, the oldest
2528
+ * byte no longer takes part in the hash key, that is:
2529
+ * hash_shift * MIN_MATCH >= hash_bits
2530
+ */
2531
+
2532
+ this.block_start = 0;
2533
+ /* Window position at the beginning of the current output block. Gets
2534
+ * negative when the window is moved backwards.
2535
+ */
2536
+
2537
+ this.match_length = 0; /* length of best match */
2538
+ this.prev_match = 0; /* previous match */
2539
+ this.match_available = 0; /* set if previous match exists */
2540
+ this.strstart = 0; /* start of string to insert */
2541
+ this.match_start = 0; /* start of matching string */
2542
+ this.lookahead = 0; /* number of valid bytes ahead in window */
2543
+
2544
+ this.prev_length = 0;
2545
+ /* Length of the best match at previous step. Matches not greater than this
2546
+ * are discarded. This is used in the lazy match evaluation.
2547
+ */
2548
+
2549
+ this.max_chain_length = 0;
2550
+ /* To speed up deflation, hash chains are never searched beyond this
2551
+ * length. A higher limit improves compression ratio but degrades the
2552
+ * speed.
2553
+ */
2554
+
2555
+ this.max_lazy_match = 0;
2556
+ /* Attempt to find a better match only when the current match is strictly
2557
+ * smaller than this value. This mechanism is used only for compression
2558
+ * levels >= 4.
2559
+ */
2560
+ // That's alias to max_lazy_match, don't use directly
2561
+ //this.max_insert_length = 0;
2562
+ /* Insert new strings in the hash table only if the match length is not
2563
+ * greater than this length. This saves time but degrades compression.
2564
+ * max_insert_length is used only for compression levels <= 3.
2565
+ */
2566
+
2567
+ this.level = 0; /* compression level (1..9) */
2568
+ this.strategy = 0; /* favor or force Huffman coding*/
2569
+
2570
+ this.good_match = 0;
2571
+ /* Use a faster search when the previous match is longer than this */
2572
+
2573
+ this.nice_match = 0; /* Stop searching when current match exceeds this */
2574
+
2575
+ /* used by trees.c: */
2576
+
2577
+ /* Didn't use ct_data typedef below to suppress compiler warning */
2578
+
2579
+ // struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */
2580
+ // struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */
2581
+ // struct ct_data_s bl_tree[2*BL_CODES+1]; /* Huffman tree for bit lengths */
2582
+
2583
+ // Use flat array of DOUBLE size, with interleaved fata,
2584
+ // because JS does not support effective
2585
+ this.dyn_ltree = new Uint16Array(HEAP_SIZE * 2);
2586
+ this.dyn_dtree = new Uint16Array((2 * D_CODES + 1) * 2);
2587
+ this.bl_tree = new Uint16Array((2 * BL_CODES + 1) * 2);
2588
+ zero(this.dyn_ltree);
2589
+ zero(this.dyn_dtree);
2590
+ zero(this.bl_tree);
2591
+ this.l_desc = null; /* desc. for literal tree */
2592
+ this.d_desc = null; /* desc. for distance tree */
2593
+ this.bl_desc = null; /* desc. for bit length tree */
2594
+
2595
+ //ush bl_count[MAX_BITS+1];
2596
+ this.bl_count = new Uint16Array(MAX_BITS + 1);
2597
+ /* number of codes at each bit length for an optimal tree */
2598
+
2599
+ //int heap[2*L_CODES+1]; /* heap used to build the Huffman trees */
2600
+ this.heap = new Uint16Array(2 * L_CODES + 1); /* heap used to build the Huffman trees */
2601
+ zero(this.heap);
2602
+ this.heap_len = 0; /* number of elements in the heap */
2603
+ this.heap_max = 0; /* element of largest frequency */
2604
+ /* The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used.
2605
+ * The same heap array is used to build all trees.
2606
+ */
2607
+
2608
+ this.depth = new Uint16Array(2 * L_CODES + 1); //uch depth[2*L_CODES+1];
2609
+ zero(this.depth);
2610
+ /* Depth of each subtree used as tie breaker for trees of equal frequency
2611
+ */
2612
+
2613
+ this.sym_buf = 0; /* buffer for distances and literals/lengths */
2614
+
2615
+ this.lit_bufsize = 0;
2616
+ /* Size of match buffer for literals/lengths. There are 4 reasons for
2617
+ * limiting lit_bufsize to 64K:
2618
+ * - frequencies can be kept in 16 bit counters
2619
+ * - if compression is not successful for the first block, all input
2620
+ * data is still in the window so we can still emit a stored block even
2621
+ * when input comes from standard input. (This can also be done for
2622
+ * all blocks if lit_bufsize is not greater than 32K.)
2623
+ * - if compression is not successful for a file smaller than 64K, we can
2624
+ * even emit a stored file instead of a stored block (saving 5 bytes).
2625
+ * This is applicable only for zip (not gzip or zlib).
2626
+ * - creating new Huffman trees less frequently may not provide fast
2627
+ * adaptation to changes in the input data statistics. (Take for
2628
+ * example a binary file with poorly compressible code followed by
2629
+ * a highly compressible string table.) Smaller buffer sizes give
2630
+ * fast adaptation but have of course the overhead of transmitting
2631
+ * trees more frequently.
2632
+ * - I can't count above 4
2633
+ */
2634
+
2635
+ this.sym_next = 0; /* running index in sym_buf */
2636
+ this.sym_end = 0; /* symbol table full when sym_next reaches this */
2637
+
2638
+ this.opt_len = 0; /* bit length of current block with optimal trees */
2639
+ this.static_len = 0; /* bit length of current block with static trees */
2640
+ this.matches = 0; /* number of string matches in current block */
2641
+ this.insert = 0; /* bytes at end of window left to insert */
2642
+
2643
+ this.bi_buf = 0;
2644
+ /* Output buffer. bits are inserted starting at the bottom (least
2645
+ * significant bits).
2646
+ */
2647
+ this.bi_valid = 0;
2648
+ /* Number of valid bits in bi_buf. All bits above the last valid bit
2649
+ * are always zero.
2650
+ */
2651
+
2652
+ // Used for window memory init. We safely ignore it for JS. That makes
2653
+ // sense only for pointers and memory check tools.
2654
+ //this.high_water = 0;
2655
+ /* High water mark offset in window for initialized bytes -- bytes above
2656
+ * this are set to zero in order to avoid memory check warnings when
2657
+ * longest match routines access bytes past the input. This is then
2658
+ * updated to the new high water mark.
2659
+ */
2660
+ }
2661
+
2662
+ /* =========================================================================
2663
+ * Check for a valid deflate stream state. Return 0 if ok, 1 if not.
2664
+ */
2665
+ var deflateStateCheck = function deflateStateCheck(strm) {
2666
+ if (!strm) {
2667
+ return 1;
2668
+ }
2669
+ var s = strm.state;
2670
+ if (!s || s.strm !== strm || s.status !== INIT_STATE &&
2671
+ //#ifdef GZIP
2672
+ s.status !== GZIP_STATE &&
2673
+ //#endif
2674
+ s.status !== EXTRA_STATE && s.status !== NAME_STATE && s.status !== COMMENT_STATE && s.status !== HCRC_STATE && s.status !== BUSY_STATE && s.status !== FINISH_STATE) {
2675
+ return 1;
2676
+ }
2677
+ return 0;
2678
+ };
2679
+ var deflateResetKeep = function deflateResetKeep(strm) {
2680
+ if (deflateStateCheck(strm)) {
2681
+ return err(strm, Z_STREAM_ERROR);
2682
+ }
2683
+ strm.total_in = strm.total_out = 0;
2684
+ strm.data_type = Z_UNKNOWN;
2685
+ var s = strm.state;
2686
+ s.pending = 0;
2687
+ s.pending_out = 0;
2688
+ if (s.wrap < 0) {
2689
+ s.wrap = -s.wrap;
2690
+ /* was made negative by deflate(..., Z_FINISH); */
2691
+ }
2692
+
2693
+ s.status =
2694
+ //#ifdef GZIP
2695
+ s.wrap === 2 ? GZIP_STATE :
2696
+ //#endif
2697
+ s.wrap ? INIT_STATE : BUSY_STATE;
2698
+ strm.adler = s.wrap === 2 ? 0 // crc32(0, Z_NULL, 0)
2699
+ : 1; // adler32(0, Z_NULL, 0)
2700
+ s.last_flush = -2;
2701
+ _tr_init(s);
2702
+ return Z_OK$1;
2703
+ };
2704
+ var deflateReset = function deflateReset(strm) {
2705
+ var ret = deflateResetKeep(strm);
2706
+ if (ret === Z_OK$1) {
2707
+ lm_init(strm.state);
2708
+ }
2709
+ return ret;
2710
+ };
2711
+ var deflateSetHeader = function deflateSetHeader(strm, head) {
2712
+ if (deflateStateCheck(strm) || strm.state.wrap !== 2) {
2713
+ return Z_STREAM_ERROR;
2714
+ }
2715
+ strm.state.gzhead = head;
2716
+ return Z_OK$1;
2717
+ };
2718
+ var deflateInit2 = function deflateInit2(strm, level, method, windowBits, memLevel, strategy) {
2719
+ if (!strm) {
2720
+ // === Z_NULL
2721
+ return Z_STREAM_ERROR;
2722
+ }
2723
+ var wrap = 1;
2724
+ if (level === Z_DEFAULT_COMPRESSION$1) {
2725
+ level = 6;
2726
+ }
2727
+ if (windowBits < 0) {
2728
+ /* suppress zlib wrapper */
2729
+ wrap = 0;
2730
+ windowBits = -windowBits;
2731
+ } else if (windowBits > 15) {
2732
+ wrap = 2; /* write gzip wrapper instead */
2733
+ windowBits -= 16;
2734
+ }
2735
+ if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method !== Z_DEFLATED$1 || windowBits < 8 || windowBits > 15 || level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED || windowBits === 8 && wrap !== 1) {
2736
+ return err(strm, Z_STREAM_ERROR);
2737
+ }
2738
+ if (windowBits === 8) {
2739
+ windowBits = 9;
2740
+ }
2741
+ /* until 256-byte window bug fixed */
2742
+
2743
+ var s = new DeflateState();
2744
+ strm.state = s;
2745
+ s.strm = strm;
2746
+ s.status = INIT_STATE; /* to pass state test in deflateReset() */
2747
+
2748
+ s.wrap = wrap;
2749
+ s.gzhead = null;
2750
+ s.w_bits = windowBits;
2751
+ s.w_size = 1 << s.w_bits;
2752
+ s.w_mask = s.w_size - 1;
2753
+ s.hash_bits = memLevel + 7;
2754
+ s.hash_size = 1 << s.hash_bits;
2755
+ s.hash_mask = s.hash_size - 1;
2756
+ s.hash_shift = ~~((s.hash_bits + MIN_MATCH - 1) / MIN_MATCH);
2757
+ s.window = new Uint8Array(s.w_size * 2);
2758
+ s.head = new Uint16Array(s.hash_size);
2759
+ s.prev = new Uint16Array(s.w_size);
2760
+
2761
+ // Don't need mem init magic for JS.
2762
+ //s.high_water = 0; /* nothing written to s->window yet */
2763
+
2764
+ s.lit_bufsize = 1 << memLevel + 6; /* 16K elements by default */
2765
+
2766
+ /* We overlay pending_buf and sym_buf. This works since the average size
2767
+ * for length/distance pairs over any compressed block is assured to be 31
2768
+ * bits or less.
2769
+ *
2770
+ * Analysis: The longest fixed codes are a length code of 8 bits plus 5
2771
+ * extra bits, for lengths 131 to 257. The longest fixed distance codes are
2772
+ * 5 bits plus 13 extra bits, for distances 16385 to 32768. The longest
2773
+ * possible fixed-codes length/distance pair is then 31 bits total.
2774
+ *
2775
+ * sym_buf starts one-fourth of the way into pending_buf. So there are
2776
+ * three bytes in sym_buf for every four bytes in pending_buf. Each symbol
2777
+ * in sym_buf is three bytes -- two for the distance and one for the
2778
+ * literal/length. As each symbol is consumed, the pointer to the next
2779
+ * sym_buf value to read moves forward three bytes. From that symbol, up to
2780
+ * 31 bits are written to pending_buf. The closest the written pending_buf
2781
+ * bits gets to the next sym_buf symbol to read is just before the last
2782
+ * code is written. At that time, 31*(n-2) bits have been written, just
2783
+ * after 24*(n-2) bits have been consumed from sym_buf. sym_buf starts at
2784
+ * 8*n bits into pending_buf. (Note that the symbol buffer fills when n-1
2785
+ * symbols are written.) The closest the writing gets to what is unread is
2786
+ * then n+14 bits. Here n is lit_bufsize, which is 16384 by default, and
2787
+ * can range from 128 to 32768.
2788
+ *
2789
+ * Therefore, at a minimum, there are 142 bits of space between what is
2790
+ * written and what is read in the overlain buffers, so the symbols cannot
2791
+ * be overwritten by the compressed data. That space is actually 139 bits,
2792
+ * due to the three-bit fixed-code block header.
2793
+ *
2794
+ * That covers the case where either Z_FIXED is specified, forcing fixed
2795
+ * codes, or when the use of fixed codes is chosen, because that choice
2796
+ * results in a smaller compressed block than dynamic codes. That latter
2797
+ * condition then assures that the above analysis also covers all dynamic
2798
+ * blocks. A dynamic-code block will only be chosen to be emitted if it has
2799
+ * fewer bits than a fixed-code block would for the same set of symbols.
2800
+ * Therefore its average symbol length is assured to be less than 31. So
2801
+ * the compressed data for a dynamic block also cannot overwrite the
2802
+ * symbols from which it is being constructed.
2803
+ */
2804
+
2805
+ s.pending_buf_size = s.lit_bufsize * 4;
2806
+ s.pending_buf = new Uint8Array(s.pending_buf_size);
2807
+
2808
+ // It is offset from `s.pending_buf` (size is `s.lit_bufsize * 2`)
2809
+ //s->sym_buf = s->pending_buf + s->lit_bufsize;
2810
+ s.sym_buf = s.lit_bufsize;
2811
+
2812
+ //s->sym_end = (s->lit_bufsize - 1) * 3;
2813
+ s.sym_end = (s.lit_bufsize - 1) * 3;
2814
+ /* We avoid equality with lit_bufsize*3 because of wraparound at 64K
2815
+ * on 16 bit machines and because stored blocks are restricted to
2816
+ * 64K-1 bytes.
2817
+ */
2818
+
2819
+ s.level = level;
2820
+ s.strategy = strategy;
2821
+ s.method = method;
2822
+ return deflateReset(strm);
2823
+ };
2824
+ var deflateInit = function deflateInit(strm, level) {
2825
+ return deflateInit2(strm, level, Z_DEFLATED$1, MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY$1);
2826
+ };
2827
+
2828
+ /* ========================================================================= */
2829
+ var deflate$1 = function deflate(strm, flush) {
2830
+ if (deflateStateCheck(strm) || flush > Z_BLOCK || flush < 0) {
2831
+ return strm ? err(strm, Z_STREAM_ERROR) : Z_STREAM_ERROR;
2832
+ }
2833
+ var s = strm.state;
2834
+ if (!strm.output || strm.avail_in !== 0 && !strm.input || s.status === FINISH_STATE && flush !== Z_FINISH$1) {
2835
+ return err(strm, strm.avail_out === 0 ? Z_BUF_ERROR : Z_STREAM_ERROR);
2836
+ }
2837
+ var old_flush = s.last_flush;
2838
+ s.last_flush = flush;
2839
+
2840
+ /* Flush as much pending output as possible */
2841
+ if (s.pending !== 0) {
2842
+ flush_pending(strm);
2843
+ if (strm.avail_out === 0) {
2844
+ /* Since avail_out is 0, deflate will be called again with
2845
+ * more output space, but possibly with both pending and
2846
+ * avail_in equal to zero. There won't be anything to do,
2847
+ * but this is not an error situation so make sure we
2848
+ * return OK instead of BUF_ERROR at next call of deflate:
2849
+ */
2850
+ s.last_flush = -1;
2851
+ return Z_OK$1;
2852
+ }
2853
+
2854
+ /* Make sure there is something to do and avoid duplicate consecutive
2855
+ * flushes. For repeated and useless calls with Z_FINISH, we keep
2856
+ * returning Z_STREAM_END instead of Z_BUF_ERROR.
2857
+ */
2858
+ } else if (strm.avail_in === 0 && rank(flush) <= rank(old_flush) && flush !== Z_FINISH$1) {
2859
+ return err(strm, Z_BUF_ERROR);
2860
+ }
2861
+
2862
+ /* User must not provide more input after the first FINISH: */
2863
+ if (s.status === FINISH_STATE && strm.avail_in !== 0) {
2864
+ return err(strm, Z_BUF_ERROR);
2865
+ }
2866
+
2867
+ /* Write the header */
2868
+ if (s.status === INIT_STATE && s.wrap === 0) {
2869
+ s.status = BUSY_STATE;
2870
+ }
2871
+ if (s.status === INIT_STATE) {
2872
+ /* zlib header */
2873
+ var header = Z_DEFLATED$1 + (s.w_bits - 8 << 4) << 8;
2874
+ var level_flags = -1;
2875
+ if (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2) {
2876
+ level_flags = 0;
2877
+ } else if (s.level < 6) {
2878
+ level_flags = 1;
2879
+ } else if (s.level === 6) {
2880
+ level_flags = 2;
2881
+ } else {
2882
+ level_flags = 3;
2883
+ }
2884
+ header |= level_flags << 6;
2885
+ if (s.strstart !== 0) {
2886
+ header |= PRESET_DICT;
2887
+ }
2888
+ header += 31 - header % 31;
2889
+ putShortMSB(s, header);
2890
+
2891
+ /* Save the adler32 of the preset dictionary: */
2892
+ if (s.strstart !== 0) {
2893
+ putShortMSB(s, strm.adler >>> 16);
2894
+ putShortMSB(s, strm.adler & 0xffff);
2895
+ }
2896
+ strm.adler = 1; // adler32(0L, Z_NULL, 0);
2897
+ s.status = BUSY_STATE;
2898
+
2899
+ /* Compression must start with an empty pending buffer */
2900
+ flush_pending(strm);
2901
+ if (s.pending !== 0) {
2902
+ s.last_flush = -1;
2903
+ return Z_OK$1;
2904
+ }
2905
+ }
2906
+ //#ifdef GZIP
2907
+ if (s.status === GZIP_STATE) {
2908
+ /* gzip header */
2909
+ strm.adler = 0; //crc32(0L, Z_NULL, 0);
2910
+ put_byte(s, 31);
2911
+ put_byte(s, 139);
2912
+ put_byte(s, 8);
2913
+ if (!s.gzhead) {
2914
+ // s->gzhead == Z_NULL
2915
+ put_byte(s, 0);
2916
+ put_byte(s, 0);
2917
+ put_byte(s, 0);
2918
+ put_byte(s, 0);
2919
+ put_byte(s, 0);
2920
+ put_byte(s, s.level === 9 ? 2 : s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0);
2921
+ put_byte(s, OS_CODE);
2922
+ s.status = BUSY_STATE;
2923
+
2924
+ /* Compression must start with an empty pending buffer */
2925
+ flush_pending(strm);
2926
+ if (s.pending !== 0) {
2927
+ s.last_flush = -1;
2928
+ return Z_OK$1;
2929
+ }
2930
+ } else {
2931
+ put_byte(s, (s.gzhead.text ? 1 : 0) + (s.gzhead.hcrc ? 2 : 0) + (!s.gzhead.extra ? 0 : 4) + (!s.gzhead.name ? 0 : 8) + (!s.gzhead.comment ? 0 : 16));
2932
+ put_byte(s, s.gzhead.time & 0xff);
2933
+ put_byte(s, s.gzhead.time >> 8 & 0xff);
2934
+ put_byte(s, s.gzhead.time >> 16 & 0xff);
2935
+ put_byte(s, s.gzhead.time >> 24 & 0xff);
2936
+ put_byte(s, s.level === 9 ? 2 : s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0);
2937
+ put_byte(s, s.gzhead.os & 0xff);
2938
+ if (s.gzhead.extra && s.gzhead.extra.length) {
2939
+ put_byte(s, s.gzhead.extra.length & 0xff);
2940
+ put_byte(s, s.gzhead.extra.length >> 8 & 0xff);
2941
+ }
2942
+ if (s.gzhead.hcrc) {
2943
+ strm.adler = crc32_1(strm.adler, s.pending_buf, s.pending, 0);
2944
+ }
2945
+ s.gzindex = 0;
2946
+ s.status = EXTRA_STATE;
2947
+ }
2948
+ }
2949
+ if (s.status === EXTRA_STATE) {
2950
+ if (s.gzhead.extra /* != Z_NULL*/) {
2951
+ var beg = s.pending; /* start of bytes to update crc */
2952
+ var left = (s.gzhead.extra.length & 0xffff) - s.gzindex;
2953
+ while (s.pending + left > s.pending_buf_size) {
2954
+ var copy = s.pending_buf_size - s.pending;
2955
+ // zmemcpy(s.pending_buf + s.pending,
2956
+ // s.gzhead.extra + s.gzindex, copy);
2957
+ s.pending_buf.set(s.gzhead.extra.subarray(s.gzindex, s.gzindex + copy), s.pending);
2958
+ s.pending = s.pending_buf_size;
2959
+ //--- HCRC_UPDATE(beg) ---//
2960
+ if (s.gzhead.hcrc && s.pending > beg) {
2961
+ strm.adler = crc32_1(strm.adler, s.pending_buf, s.pending - beg, beg);
2962
+ }
2963
+ //---//
2964
+ s.gzindex += copy;
2965
+ flush_pending(strm);
2966
+ if (s.pending !== 0) {
2967
+ s.last_flush = -1;
2968
+ return Z_OK$1;
2969
+ }
2970
+ beg = 0;
2971
+ left -= copy;
2972
+ }
2973
+ // JS specific: s.gzhead.extra may be TypedArray or Array for backward compatibility
2974
+ // TypedArray.slice and TypedArray.from don't exist in IE10-IE11
2975
+ var gzhead_extra = new Uint8Array(s.gzhead.extra);
2976
+ // zmemcpy(s->pending_buf + s->pending,
2977
+ // s->gzhead->extra + s->gzindex, left);
2978
+ s.pending_buf.set(gzhead_extra.subarray(s.gzindex, s.gzindex + left), s.pending);
2979
+ s.pending += left;
2980
+ //--- HCRC_UPDATE(beg) ---//
2981
+ if (s.gzhead.hcrc && s.pending > beg) {
2982
+ strm.adler = crc32_1(strm.adler, s.pending_buf, s.pending - beg, beg);
2983
+ }
2984
+ //---//
2985
+ s.gzindex = 0;
2986
+ }
2987
+ s.status = NAME_STATE;
2988
+ }
2989
+ if (s.status === NAME_STATE) {
2990
+ if (s.gzhead.name /* != Z_NULL*/) {
2991
+ var _beg = s.pending; /* start of bytes to update crc */
2992
+ var val;
2993
+ do {
2994
+ if (s.pending === s.pending_buf_size) {
2995
+ //--- HCRC_UPDATE(beg) ---//
2996
+ if (s.gzhead.hcrc && s.pending > _beg) {
2997
+ strm.adler = crc32_1(strm.adler, s.pending_buf, s.pending - _beg, _beg);
2998
+ }
2999
+ //---//
3000
+ flush_pending(strm);
3001
+ if (s.pending !== 0) {
3002
+ s.last_flush = -1;
3003
+ return Z_OK$1;
3004
+ }
3005
+ _beg = 0;
3006
+ }
3007
+ // JS specific: little magic to add zero terminator to end of string
3008
+ if (s.gzindex < s.gzhead.name.length) {
3009
+ val = s.gzhead.name.charCodeAt(s.gzindex++) & 0xff;
3010
+ } else {
3011
+ val = 0;
3012
+ }
3013
+ put_byte(s, val);
3014
+ } while (val !== 0);
3015
+ //--- HCRC_UPDATE(beg) ---//
3016
+ if (s.gzhead.hcrc && s.pending > _beg) {
3017
+ strm.adler = crc32_1(strm.adler, s.pending_buf, s.pending - _beg, _beg);
3018
+ }
3019
+ //---//
3020
+ s.gzindex = 0;
3021
+ }
3022
+ s.status = COMMENT_STATE;
3023
+ }
3024
+ if (s.status === COMMENT_STATE) {
3025
+ if (s.gzhead.comment /* != Z_NULL*/) {
3026
+ var _beg2 = s.pending; /* start of bytes to update crc */
3027
+ var _val;
3028
+ do {
3029
+ if (s.pending === s.pending_buf_size) {
3030
+ //--- HCRC_UPDATE(beg) ---//
3031
+ if (s.gzhead.hcrc && s.pending > _beg2) {
3032
+ strm.adler = crc32_1(strm.adler, s.pending_buf, s.pending - _beg2, _beg2);
3033
+ }
3034
+ //---//
3035
+ flush_pending(strm);
3036
+ if (s.pending !== 0) {
3037
+ s.last_flush = -1;
3038
+ return Z_OK$1;
3039
+ }
3040
+ _beg2 = 0;
3041
+ }
3042
+ // JS specific: little magic to add zero terminator to end of string
3043
+ if (s.gzindex < s.gzhead.comment.length) {
3044
+ _val = s.gzhead.comment.charCodeAt(s.gzindex++) & 0xff;
3045
+ } else {
3046
+ _val = 0;
3047
+ }
3048
+ put_byte(s, _val);
3049
+ } while (_val !== 0);
3050
+ //--- HCRC_UPDATE(beg) ---//
3051
+ if (s.gzhead.hcrc && s.pending > _beg2) {
3052
+ strm.adler = crc32_1(strm.adler, s.pending_buf, s.pending - _beg2, _beg2);
3053
+ }
3054
+ //---//
3055
+ }
3056
+
3057
+ s.status = HCRC_STATE;
3058
+ }
3059
+ if (s.status === HCRC_STATE) {
3060
+ if (s.gzhead.hcrc) {
3061
+ if (s.pending + 2 > s.pending_buf_size) {
3062
+ flush_pending(strm);
3063
+ if (s.pending !== 0) {
3064
+ s.last_flush = -1;
3065
+ return Z_OK$1;
3066
+ }
3067
+ }
3068
+ put_byte(s, strm.adler & 0xff);
3069
+ put_byte(s, strm.adler >> 8 & 0xff);
3070
+ strm.adler = 0; //crc32(0L, Z_NULL, 0);
3071
+ }
3072
+
3073
+ s.status = BUSY_STATE;
3074
+
3075
+ /* Compression must start with an empty pending buffer */
3076
+ flush_pending(strm);
3077
+ if (s.pending !== 0) {
3078
+ s.last_flush = -1;
3079
+ return Z_OK$1;
3080
+ }
3081
+ }
3082
+ //#endif
3083
+
3084
+ /* Start a new block or continue the current one.
3085
+ */
3086
+ if (strm.avail_in !== 0 || s.lookahead !== 0 || flush !== Z_NO_FLUSH$1 && s.status !== FINISH_STATE) {
3087
+ var bstate = s.level === 0 ? deflate_stored(s, flush) : s.strategy === Z_HUFFMAN_ONLY ? deflate_huff(s, flush) : s.strategy === Z_RLE ? deflate_rle(s, flush) : configuration_table[s.level].func(s, flush);
3088
+ if (bstate === BS_FINISH_STARTED || bstate === BS_FINISH_DONE) {
3089
+ s.status = FINISH_STATE;
3090
+ }
3091
+ if (bstate === BS_NEED_MORE || bstate === BS_FINISH_STARTED) {
3092
+ if (strm.avail_out === 0) {
3093
+ s.last_flush = -1;
3094
+ /* avoid BUF_ERROR next call, see above */
3095
+ }
3096
+
3097
+ return Z_OK$1;
3098
+ /* If flush != Z_NO_FLUSH && avail_out == 0, the next call
3099
+ * of deflate should use the same flush parameter to make sure
3100
+ * that the flush is complete. So we don't have to output an
3101
+ * empty block here, this will be done at next call. This also
3102
+ * ensures that for a very small output buffer, we emit at most
3103
+ * one empty block.
3104
+ */
3105
+ }
3106
+
3107
+ if (bstate === BS_BLOCK_DONE) {
3108
+ if (flush === Z_PARTIAL_FLUSH) {
3109
+ _tr_align(s);
3110
+ } else if (flush !== Z_BLOCK) {
3111
+ /* FULL_FLUSH or SYNC_FLUSH */
3112
+
3113
+ _tr_stored_block(s, 0, 0, false);
3114
+ /* For a full flush, this empty block will be recognized
3115
+ * as a special marker by inflate_sync().
3116
+ */
3117
+ if (flush === Z_FULL_FLUSH$1) {
3118
+ /*** CLEAR_HASH(s); ***/ /* forget history */
3119
+ zero(s.head); // Fill with NIL (= 0);
3120
+
3121
+ if (s.lookahead === 0) {
3122
+ s.strstart = 0;
3123
+ s.block_start = 0;
3124
+ s.insert = 0;
3125
+ }
3126
+ }
3127
+ }
3128
+ flush_pending(strm);
3129
+ if (strm.avail_out === 0) {
3130
+ s.last_flush = -1; /* avoid BUF_ERROR at next call, see above */
3131
+ return Z_OK$1;
3132
+ }
3133
+ }
3134
+ }
3135
+ if (flush !== Z_FINISH$1) {
3136
+ return Z_OK$1;
3137
+ }
3138
+ if (s.wrap <= 0) {
3139
+ return Z_STREAM_END$1;
3140
+ }
3141
+
3142
+ /* Write the trailer */
3143
+ if (s.wrap === 2) {
3144
+ put_byte(s, strm.adler & 0xff);
3145
+ put_byte(s, strm.adler >> 8 & 0xff);
3146
+ put_byte(s, strm.adler >> 16 & 0xff);
3147
+ put_byte(s, strm.adler >> 24 & 0xff);
3148
+ put_byte(s, strm.total_in & 0xff);
3149
+ put_byte(s, strm.total_in >> 8 & 0xff);
3150
+ put_byte(s, strm.total_in >> 16 & 0xff);
3151
+ put_byte(s, strm.total_in >> 24 & 0xff);
3152
+ } else {
3153
+ putShortMSB(s, strm.adler >>> 16);
3154
+ putShortMSB(s, strm.adler & 0xffff);
3155
+ }
3156
+ flush_pending(strm);
3157
+ /* If avail_out is zero, the application will call deflate again
3158
+ * to flush the rest.
3159
+ */
3160
+ if (s.wrap > 0) {
3161
+ s.wrap = -s.wrap;
3162
+ }
3163
+ /* write the trailer only once! */
3164
+ return s.pending !== 0 ? Z_OK$1 : Z_STREAM_END$1;
3165
+ };
3166
+ var deflateEnd = function deflateEnd(strm) {
3167
+ if (deflateStateCheck(strm)) {
3168
+ return Z_STREAM_ERROR;
3169
+ }
3170
+ var status = strm.state.status;
3171
+ strm.state = null;
3172
+ return status === BUSY_STATE ? err(strm, Z_DATA_ERROR) : Z_OK$1;
3173
+ };
3174
+
3175
+ /* =========================================================================
3176
+ * Initializes the compression dictionary from the given byte
3177
+ * sequence without producing any compressed output.
3178
+ */
3179
+ var deflateSetDictionary = function deflateSetDictionary(strm, dictionary) {
3180
+ var dictLength = dictionary.length;
3181
+ if (deflateStateCheck(strm)) {
3182
+ return Z_STREAM_ERROR;
3183
+ }
3184
+ var s = strm.state;
3185
+ var wrap = s.wrap;
3186
+ if (wrap === 2 || wrap === 1 && s.status !== INIT_STATE || s.lookahead) {
3187
+ return Z_STREAM_ERROR;
3188
+ }
3189
+
3190
+ /* when using zlib wrappers, compute Adler-32 for provided dictionary */
3191
+ if (wrap === 1) {
3192
+ /* adler32(strm->adler, dictionary, dictLength); */
3193
+ strm.adler = adler32_1(strm.adler, dictionary, dictLength, 0);
3194
+ }
3195
+ s.wrap = 0; /* avoid computing Adler-32 in read_buf */
3196
+
3197
+ /* if dictionary would fill window, just replace the history */
3198
+ if (dictLength >= s.w_size) {
3199
+ if (wrap === 0) {
3200
+ /* already empty otherwise */
3201
+ /*** CLEAR_HASH(s); ***/
3202
+ zero(s.head); // Fill with NIL (= 0);
3203
+ s.strstart = 0;
3204
+ s.block_start = 0;
3205
+ s.insert = 0;
3206
+ }
3207
+ /* use the tail */
3208
+ // dictionary = dictionary.slice(dictLength - s.w_size);
3209
+ var tmpDict = new Uint8Array(s.w_size);
3210
+ tmpDict.set(dictionary.subarray(dictLength - s.w_size, dictLength), 0);
3211
+ dictionary = tmpDict;
3212
+ dictLength = s.w_size;
3213
+ }
3214
+ /* insert dictionary into window and hash */
3215
+ var avail = strm.avail_in;
3216
+ var next = strm.next_in;
3217
+ var input = strm.input;
3218
+ strm.avail_in = dictLength;
3219
+ strm.next_in = 0;
3220
+ strm.input = dictionary;
3221
+ fill_window(s);
3222
+ while (s.lookahead >= MIN_MATCH) {
3223
+ var str = s.strstart;
3224
+ var n = s.lookahead - (MIN_MATCH - 1);
3225
+ do {
3226
+ /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */
3227
+ s.ins_h = HASH(s, s.ins_h, s.window[str + MIN_MATCH - 1]);
3228
+ s.prev[str & s.w_mask] = s.head[s.ins_h];
3229
+ s.head[s.ins_h] = str;
3230
+ str++;
3231
+ } while (--n);
3232
+ s.strstart = str;
3233
+ s.lookahead = MIN_MATCH - 1;
3234
+ fill_window(s);
3235
+ }
3236
+ s.strstart += s.lookahead;
3237
+ s.block_start = s.strstart;
3238
+ s.insert = s.lookahead;
3239
+ s.lookahead = 0;
3240
+ s.match_length = s.prev_length = MIN_MATCH - 1;
3241
+ s.match_available = 0;
3242
+ strm.next_in = next;
3243
+ strm.input = input;
3244
+ strm.avail_in = avail;
3245
+ s.wrap = wrap;
3246
+ return Z_OK$1;
3247
+ };
3248
+ var deflateInit_1 = deflateInit;
3249
+ var deflateInit2_1 = deflateInit2;
3250
+ var deflateReset_1 = deflateReset;
3251
+ var deflateResetKeep_1 = deflateResetKeep;
3252
+ var deflateSetHeader_1 = deflateSetHeader;
3253
+ var deflate_2$1 = deflate$1;
3254
+ var deflateEnd_1 = deflateEnd;
3255
+ var deflateSetDictionary_1 = deflateSetDictionary;
3256
+ var deflateInfo = 'pako deflate (from Nodeca project)';
3257
+
3258
+ /* Not implemented
3259
+ module.exports.deflateBound = deflateBound;
3260
+ module.exports.deflateCopy = deflateCopy;
3261
+ module.exports.deflateGetDictionary = deflateGetDictionary;
3262
+ module.exports.deflateParams = deflateParams;
3263
+ module.exports.deflatePending = deflatePending;
3264
+ module.exports.deflatePrime = deflatePrime;
3265
+ module.exports.deflateTune = deflateTune;
3266
+ */
3267
+
3268
+ var deflate_1$1 = {
3269
+ deflateInit: deflateInit_1,
3270
+ deflateInit2: deflateInit2_1,
3271
+ deflateReset: deflateReset_1,
3272
+ deflateResetKeep: deflateResetKeep_1,
3273
+ deflateSetHeader: deflateSetHeader_1,
3274
+ deflate: deflate_2$1,
3275
+ deflateEnd: deflateEnd_1,
3276
+ deflateSetDictionary: deflateSetDictionary_1,
3277
+ deflateInfo: deflateInfo
3278
+ };
3279
+
3280
+ function _typeof(obj) {
3281
+ "@babel/helpers - typeof";
3282
+
3283
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
3284
+ return typeof obj;
3285
+ } : function (obj) {
3286
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
3287
+ }, _typeof(obj);
3288
+ }
3289
+
3290
+ var _has = function _has(obj, key) {
3291
+ return Object.prototype.hasOwnProperty.call(obj, key);
3292
+ };
3293
+ var assign = function assign(obj /*from1, from2, from3, ...*/) {
3294
+ var sources = Array.prototype.slice.call(arguments, 1);
3295
+ while (sources.length) {
3296
+ var source = sources.shift();
3297
+ if (!source) {
3298
+ continue;
3299
+ }
3300
+ if (_typeof(source) !== 'object') {
3301
+ throw new TypeError(source + 'must be non-object');
3302
+ }
3303
+ for (var p in source) {
3304
+ if (_has(source, p)) {
3305
+ obj[p] = source[p];
3306
+ }
3307
+ }
3308
+ }
3309
+ return obj;
3310
+ };
3311
+
3312
+ // Join array of chunks to single array.
3313
+ var flattenChunks = function flattenChunks(chunks) {
3314
+ // calculate data length
3315
+ var len = 0;
3316
+ for (var i = 0, l = chunks.length; i < l; i++) {
3317
+ len += chunks[i].length;
3318
+ }
3319
+
3320
+ // join chunks
3321
+ var result = new Uint8Array(len);
3322
+ for (var _i = 0, pos = 0, _l = chunks.length; _i < _l; _i++) {
3323
+ var chunk = chunks[_i];
3324
+ result.set(chunk, pos);
3325
+ pos += chunk.length;
3326
+ }
3327
+ return result;
3328
+ };
3329
+ var common = {
3330
+ assign: assign,
3331
+ flattenChunks: flattenChunks
3332
+ };
3333
+
3334
+ // String encode/decode helpers
3335
+
3336
+ // Quick check if we can use fast array to bin string conversion
3337
+ //
3338
+ // - apply(Array) can fail on Android 2.2
3339
+ // - apply(Uint8Array) can fail on iOS 5.1 Safari
3340
+ //
3341
+ var STR_APPLY_UIA_OK = true;
3342
+ try {
3343
+ String.fromCharCode.apply(null, new Uint8Array(1));
3344
+ } catch (__) {
3345
+ STR_APPLY_UIA_OK = false;
3346
+ }
3347
+
3348
+ // Table with utf8 lengths (calculated by first byte of sequence)
3349
+ // Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS,
3350
+ // because max possible codepoint is 0x10ffff
3351
+ var _utf8len = new Uint8Array(256);
3352
+ for (var q = 0; q < 256; q++) {
3353
+ _utf8len[q] = q >= 252 ? 6 : q >= 248 ? 5 : q >= 240 ? 4 : q >= 224 ? 3 : q >= 192 ? 2 : 1;
3354
+ }
3355
+ _utf8len[254] = _utf8len[254] = 1; // Invalid sequence start
3356
+
3357
+ // convert string to array (typed, when possible)
3358
+ var string2buf = function string2buf(str) {
3359
+ if (typeof TextEncoder === 'function' && TextEncoder.prototype.encode) {
3360
+ return new TextEncoder().encode(str);
3361
+ }
3362
+ var buf,
3363
+ c,
3364
+ c2,
3365
+ m_pos,
3366
+ i,
3367
+ str_len = str.length,
3368
+ buf_len = 0;
3369
+
3370
+ // count binary size
3371
+ for (m_pos = 0; m_pos < str_len; m_pos++) {
3372
+ c = str.charCodeAt(m_pos);
3373
+ if ((c & 0xfc00) === 0xd800 && m_pos + 1 < str_len) {
3374
+ c2 = str.charCodeAt(m_pos + 1);
3375
+ if ((c2 & 0xfc00) === 0xdc00) {
3376
+ c = 0x10000 + (c - 0xd800 << 10) + (c2 - 0xdc00);
3377
+ m_pos++;
3378
+ }
3379
+ }
3380
+ buf_len += c < 0x80 ? 1 : c < 0x800 ? 2 : c < 0x10000 ? 3 : 4;
3381
+ }
3382
+
3383
+ // allocate buffer
3384
+ buf = new Uint8Array(buf_len);
3385
+
3386
+ // convert
3387
+ for (i = 0, m_pos = 0; i < buf_len; m_pos++) {
3388
+ c = str.charCodeAt(m_pos);
3389
+ if ((c & 0xfc00) === 0xd800 && m_pos + 1 < str_len) {
3390
+ c2 = str.charCodeAt(m_pos + 1);
3391
+ if ((c2 & 0xfc00) === 0xdc00) {
3392
+ c = 0x10000 + (c - 0xd800 << 10) + (c2 - 0xdc00);
3393
+ m_pos++;
3394
+ }
3395
+ }
3396
+ if (c < 0x80) {
3397
+ /* one byte */
3398
+ buf[i++] = c;
3399
+ } else if (c < 0x800) {
3400
+ /* two bytes */
3401
+ buf[i++] = 0xC0 | c >>> 6;
3402
+ buf[i++] = 0x80 | c & 0x3f;
3403
+ } else if (c < 0x10000) {
3404
+ /* three bytes */
3405
+ buf[i++] = 0xE0 | c >>> 12;
3406
+ buf[i++] = 0x80 | c >>> 6 & 0x3f;
3407
+ buf[i++] = 0x80 | c & 0x3f;
3408
+ } else {
3409
+ /* four bytes */
3410
+ buf[i++] = 0xf0 | c >>> 18;
3411
+ buf[i++] = 0x80 | c >>> 12 & 0x3f;
3412
+ buf[i++] = 0x80 | c >>> 6 & 0x3f;
3413
+ buf[i++] = 0x80 | c & 0x3f;
3414
+ }
3415
+ }
3416
+ return buf;
3417
+ };
3418
+
3419
+ // Helper
3420
+ var buf2binstring = function buf2binstring(buf, len) {
3421
+ // On Chrome, the arguments in a function call that are allowed is `65534`.
3422
+ // If the length of the buffer is smaller than that, we can use this optimization,
3423
+ // otherwise we will take a slower path.
3424
+ if (len < 65534) {
3425
+ if (buf.subarray && STR_APPLY_UIA_OK) {
3426
+ return String.fromCharCode.apply(null, buf.length === len ? buf : buf.subarray(0, len));
3427
+ }
3428
+ }
3429
+ var result = '';
3430
+ for (var i = 0; i < len; i++) {
3431
+ result += String.fromCharCode(buf[i]);
3432
+ }
3433
+ return result;
3434
+ };
3435
+
3436
+ // convert array to string
3437
+ var buf2string = function buf2string(buf, max) {
3438
+ var len = max || buf.length;
3439
+ if (typeof TextDecoder === 'function' && TextDecoder.prototype.decode) {
3440
+ return new TextDecoder().decode(buf.subarray(0, max));
3441
+ }
3442
+ var i, out;
3443
+
3444
+ // Reserve max possible length (2 words per char)
3445
+ // NB: by unknown reasons, Array is significantly faster for
3446
+ // String.fromCharCode.apply than Uint16Array.
3447
+ var utf16buf = new Array(len * 2);
3448
+ for (out = 0, i = 0; i < len;) {
3449
+ var c = buf[i++];
3450
+ // quick process ascii
3451
+ if (c < 0x80) {
3452
+ utf16buf[out++] = c;
3453
+ continue;
3454
+ }
3455
+ var c_len = _utf8len[c];
3456
+ // skip 5 & 6 byte codes
3457
+ if (c_len > 4) {
3458
+ utf16buf[out++] = 0xfffd;
3459
+ i += c_len - 1;
3460
+ continue;
3461
+ }
3462
+
3463
+ // apply mask on first byte
3464
+ c &= c_len === 2 ? 0x1f : c_len === 3 ? 0x0f : 0x07;
3465
+ // join the rest
3466
+ while (c_len > 1 && i < len) {
3467
+ c = c << 6 | buf[i++] & 0x3f;
3468
+ c_len--;
3469
+ }
3470
+
3471
+ // terminated by end of string?
3472
+ if (c_len > 1) {
3473
+ utf16buf[out++] = 0xfffd;
3474
+ continue;
3475
+ }
3476
+ if (c < 0x10000) {
3477
+ utf16buf[out++] = c;
3478
+ } else {
3479
+ c -= 0x10000;
3480
+ utf16buf[out++] = 0xd800 | c >> 10 & 0x3ff;
3481
+ utf16buf[out++] = 0xdc00 | c & 0x3ff;
3482
+ }
3483
+ }
3484
+ return buf2binstring(utf16buf, out);
3485
+ };
3486
+
3487
+ // Calculate max possible position in utf8 buffer,
3488
+ // that will not break sequence. If that's not possible
3489
+ // - (very small limits) return max size as is.
3490
+ //
3491
+ // buf[] - utf8 bytes array
3492
+ // max - length limit (mandatory);
3493
+ var utf8border = function utf8border(buf, max) {
3494
+ max = max || buf.length;
3495
+ if (max > buf.length) {
3496
+ max = buf.length;
3497
+ }
3498
+
3499
+ // go back from last position, until start of sequence found
3500
+ var pos = max - 1;
3501
+ while (pos >= 0 && (buf[pos] & 0xC0) === 0x80) {
3502
+ pos--;
3503
+ }
3504
+
3505
+ // Very small and broken sequence,
3506
+ // return max, because we should return something anyway.
3507
+ if (pos < 0) {
3508
+ return max;
3509
+ }
3510
+
3511
+ // If we came to start of buffer - that means buffer is too small,
3512
+ // return max too.
3513
+ if (pos === 0) {
3514
+ return max;
3515
+ }
3516
+ return pos + _utf8len[buf[pos]] > max ? pos : max;
3517
+ };
3518
+ var strings = {
3519
+ string2buf: string2buf,
3520
+ buf2string: buf2string,
3521
+ utf8border: utf8border
3522
+ };
3523
+
3524
+ // (C) 1995-2013 Jean-loup Gailly and Mark Adler
3525
+ // (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
3526
+ //
3527
+ // This software is provided 'as-is', without any express or implied
3528
+ // warranty. In no event will the authors be held liable for any damages
3529
+ // arising from the use of this software.
3530
+ //
3531
+ // Permission is granted to anyone to use this software for any purpose,
3532
+ // including commercial applications, and to alter it and redistribute it
3533
+ // freely, subject to the following restrictions:
3534
+ //
3535
+ // 1. The origin of this software must not be misrepresented; you must not
3536
+ // claim that you wrote the original software. If you use this software
3537
+ // in a product, an acknowledgment in the product documentation would be
3538
+ // appreciated but is not required.
3539
+ // 2. Altered source versions must be plainly marked as such, and must not be
3540
+ // misrepresented as being the original software.
3541
+ // 3. This notice may not be removed or altered from any source distribution.
3542
+ function ZStream() {
3543
+ /* next input byte */
3544
+ this.input = null; // JS specific, because we have no pointers
3545
+ this.next_in = 0;
3546
+ /* number of bytes available at input */
3547
+ this.avail_in = 0;
3548
+ /* total number of input bytes read so far */
3549
+ this.total_in = 0;
3550
+ /* next output byte should be put there */
3551
+ this.output = null; // JS specific, because we have no pointers
3552
+ this.next_out = 0;
3553
+ /* remaining free space at output */
3554
+ this.avail_out = 0;
3555
+ /* total number of bytes output so far */
3556
+ this.total_out = 0;
3557
+ /* last error message, NULL if no error */
3558
+ this.msg = '' /*Z_NULL*/;
3559
+ /* not visible by applications */
3560
+ this.state = null;
3561
+ /* best guess about the data type: binary or text */
3562
+ this.data_type = 2 /*Z_UNKNOWN*/;
3563
+ /* adler32 value of the uncompressed data */
3564
+ this.adler = 0;
3565
+ }
3566
+ var zstream = ZStream;
3567
+
3568
+ var toString = Object.prototype.toString;
3569
+
3570
+ /* Public constants ==========================================================*/
3571
+ /* ===========================================================================*/
3572
+
3573
+ var Z_NO_FLUSH = constants$1.Z_NO_FLUSH,
3574
+ Z_SYNC_FLUSH = constants$1.Z_SYNC_FLUSH,
3575
+ Z_FULL_FLUSH = constants$1.Z_FULL_FLUSH,
3576
+ Z_FINISH = constants$1.Z_FINISH,
3577
+ Z_OK = constants$1.Z_OK,
3578
+ Z_STREAM_END = constants$1.Z_STREAM_END,
3579
+ Z_DEFAULT_COMPRESSION = constants$1.Z_DEFAULT_COMPRESSION,
3580
+ Z_DEFAULT_STRATEGY = constants$1.Z_DEFAULT_STRATEGY,
3581
+ Z_DEFLATED = constants$1.Z_DEFLATED;
3582
+
3583
+ /* ===========================================================================*/
3584
+
3585
+ /**
3586
+ * class Deflate
3587
+ *
3588
+ * Generic JS-style wrapper for zlib calls. If you don't need
3589
+ * streaming behaviour - use more simple functions: [[deflate]],
3590
+ * [[deflateRaw]] and [[gzip]].
3591
+ **/
3592
+
3593
+ /* internal
3594
+ * Deflate.chunks -> Array
3595
+ *
3596
+ * Chunks of output data, if [[Deflate#onData]] not overridden.
3597
+ **/
3598
+
3599
+ /**
3600
+ * Deflate.result -> Uint8Array
3601
+ *
3602
+ * Compressed result, generated by default [[Deflate#onData]]
3603
+ * and [[Deflate#onEnd]] handlers. Filled after you push last chunk
3604
+ * (call [[Deflate#push]] with `Z_FINISH` / `true` param).
3605
+ **/
3606
+
3607
+ /**
3608
+ * Deflate.err -> Number
3609
+ *
3610
+ * Error code after deflate finished. 0 (Z_OK) on success.
3611
+ * You will not need it in real life, because deflate errors
3612
+ * are possible only on wrong options or bad `onData` / `onEnd`
3613
+ * custom handlers.
3614
+ **/
3615
+
3616
+ /**
3617
+ * Deflate.msg -> String
3618
+ *
3619
+ * Error message, if [[Deflate.err]] != 0
3620
+ **/
3621
+
3622
+ /**
3623
+ * new Deflate(options)
3624
+ * - options (Object): zlib deflate options.
3625
+ *
3626
+ * Creates new deflator instance with specified params. Throws exception
3627
+ * on bad params. Supported options:
3628
+ *
3629
+ * - `level`
3630
+ * - `windowBits`
3631
+ * - `memLevel`
3632
+ * - `strategy`
3633
+ * - `dictionary`
3634
+ *
3635
+ * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)
3636
+ * for more information on these.
3637
+ *
3638
+ * Additional options, for internal needs:
3639
+ *
3640
+ * - `chunkSize` - size of generated data chunks (16K by default)
3641
+ * - `raw` (Boolean) - do raw deflate
3642
+ * - `gzip` (Boolean) - create gzip wrapper
3643
+ * - `header` (Object) - custom header for gzip
3644
+ * - `text` (Boolean) - true if compressed data believed to be text
3645
+ * - `time` (Number) - modification time, unix timestamp
3646
+ * - `os` (Number) - operation system code
3647
+ * - `extra` (Array) - array of bytes with extra data (max 65536)
3648
+ * - `name` (String) - file name (binary string)
3649
+ * - `comment` (String) - comment (binary string)
3650
+ * - `hcrc` (Boolean) - true if header crc should be added
3651
+ *
3652
+ * ##### Example:
3653
+ *
3654
+ * ```javascript
3655
+ * const pako = require('pako')
3656
+ * , chunk1 = new Uint8Array([1,2,3,4,5,6,7,8,9])
3657
+ * , chunk2 = new Uint8Array([10,11,12,13,14,15,16,17,18,19]);
3658
+ *
3659
+ * const deflate = new pako.Deflate({ level: 3});
3660
+ *
3661
+ * deflate.push(chunk1, false);
3662
+ * deflate.push(chunk2, true); // true -> last chunk
3663
+ *
3664
+ * if (deflate.err) { throw new Error(deflate.err); }
3665
+ *
3666
+ * console.log(deflate.result);
3667
+ * ```
3668
+ **/
3669
+ function Deflate(options) {
3670
+ this.options = common.assign({
3671
+ level: Z_DEFAULT_COMPRESSION,
3672
+ method: Z_DEFLATED,
3673
+ chunkSize: 16384,
3674
+ windowBits: 15,
3675
+ memLevel: 8,
3676
+ strategy: Z_DEFAULT_STRATEGY
3677
+ }, options || {});
3678
+ var opt = this.options;
3679
+ if (opt.raw && opt.windowBits > 0) {
3680
+ opt.windowBits = -opt.windowBits;
3681
+ } else if (opt.gzip && opt.windowBits > 0 && opt.windowBits < 16) {
3682
+ opt.windowBits += 16;
3683
+ }
3684
+ this.err = 0; // error code, if happens (0 = Z_OK)
3685
+ this.msg = ''; // error message
3686
+ this.ended = false; // used to avoid multiple onEnd() calls
3687
+ this.chunks = []; // chunks of compressed data
3688
+
3689
+ this.strm = new zstream();
3690
+ this.strm.avail_out = 0;
3691
+ var status = deflate_1$1.deflateInit2(this.strm, opt.level, opt.method, opt.windowBits, opt.memLevel, opt.strategy);
3692
+ if (status !== Z_OK) {
3693
+ throw new Error(messages[status]);
3694
+ }
3695
+ if (opt.header) {
3696
+ deflate_1$1.deflateSetHeader(this.strm, opt.header);
3697
+ }
3698
+ if (opt.dictionary) {
3699
+ var dict;
3700
+ // Convert data if needed
3701
+ if (typeof opt.dictionary === 'string') {
3702
+ // If we need to compress text, change encoding to utf8.
3703
+ dict = strings.string2buf(opt.dictionary);
3704
+ } else if (toString.call(opt.dictionary) === '[object ArrayBuffer]') {
3705
+ dict = new Uint8Array(opt.dictionary);
3706
+ } else {
3707
+ dict = opt.dictionary;
3708
+ }
3709
+ status = deflate_1$1.deflateSetDictionary(this.strm, dict);
3710
+ if (status !== Z_OK) {
3711
+ throw new Error(messages[status]);
3712
+ }
3713
+ this._dict_set = true;
3714
+ }
3715
+ }
3716
+
3717
+ /**
3718
+ * Deflate#push(data[, flush_mode]) -> Boolean
3719
+ * - data (Uint8Array|ArrayBuffer|String): input data. Strings will be
3720
+ * converted to utf8 byte sequence.
3721
+ * - flush_mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.
3722
+ * See constants. Skipped or `false` means Z_NO_FLUSH, `true` means Z_FINISH.
3723
+ *
3724
+ * Sends input data to deflate pipe, generating [[Deflate#onData]] calls with
3725
+ * new compressed chunks. Returns `true` on success. The last data block must
3726
+ * have `flush_mode` Z_FINISH (or `true`). That will flush internal pending
3727
+ * buffers and call [[Deflate#onEnd]].
3728
+ *
3729
+ * On fail call [[Deflate#onEnd]] with error code and return false.
3730
+ *
3731
+ * ##### Example
3732
+ *
3733
+ * ```javascript
3734
+ * push(chunk, false); // push one of data chunks
3735
+ * ...
3736
+ * push(chunk, true); // push last chunk
3737
+ * ```
3738
+ **/
3739
+ Deflate.prototype.push = function (data, flush_mode) {
3740
+ var strm = this.strm;
3741
+ var chunkSize = this.options.chunkSize;
3742
+ var status, _flush_mode;
3743
+ if (this.ended) {
3744
+ return false;
3745
+ }
3746
+ if (flush_mode === ~~flush_mode) _flush_mode = flush_mode;else _flush_mode = flush_mode === true ? Z_FINISH : Z_NO_FLUSH;
3747
+
3748
+ // Convert data if needed
3749
+ if (typeof data === 'string') {
3750
+ // If we need to compress text, change encoding to utf8.
3751
+ strm.input = strings.string2buf(data);
3752
+ } else if (toString.call(data) === '[object ArrayBuffer]') {
3753
+ strm.input = new Uint8Array(data);
3754
+ } else {
3755
+ strm.input = data;
3756
+ }
3757
+ strm.next_in = 0;
3758
+ strm.avail_in = strm.input.length;
3759
+ for (;;) {
3760
+ if (strm.avail_out === 0) {
3761
+ strm.output = new Uint8Array(chunkSize);
3762
+ strm.next_out = 0;
3763
+ strm.avail_out = chunkSize;
3764
+ }
3765
+
3766
+ // Make sure avail_out > 6 to avoid repeating markers
3767
+ if ((_flush_mode === Z_SYNC_FLUSH || _flush_mode === Z_FULL_FLUSH) && strm.avail_out <= 6) {
3768
+ this.onData(strm.output.subarray(0, strm.next_out));
3769
+ strm.avail_out = 0;
3770
+ continue;
3771
+ }
3772
+ status = deflate_1$1.deflate(strm, _flush_mode);
3773
+
3774
+ // Ended => flush and finish
3775
+ if (status === Z_STREAM_END) {
3776
+ if (strm.next_out > 0) {
3777
+ this.onData(strm.output.subarray(0, strm.next_out));
3778
+ }
3779
+ status = deflate_1$1.deflateEnd(this.strm);
3780
+ this.onEnd(status);
3781
+ this.ended = true;
3782
+ return status === Z_OK;
3783
+ }
3784
+
3785
+ // Flush if out buffer full
3786
+ if (strm.avail_out === 0) {
3787
+ this.onData(strm.output);
3788
+ continue;
3789
+ }
3790
+
3791
+ // Flush if requested and has data
3792
+ if (_flush_mode > 0 && strm.next_out > 0) {
3793
+ this.onData(strm.output.subarray(0, strm.next_out));
3794
+ strm.avail_out = 0;
3795
+ continue;
3796
+ }
3797
+ if (strm.avail_in === 0) break;
3798
+ }
3799
+ return true;
3800
+ };
3801
+
3802
+ /**
3803
+ * Deflate#onData(chunk) -> Void
3804
+ * - chunk (Uint8Array): output data.
3805
+ *
3806
+ * By default, stores data blocks in `chunks[]` property and glue
3807
+ * those in `onEnd`. Override this handler, if you need another behaviour.
3808
+ **/
3809
+ Deflate.prototype.onData = function (chunk) {
3810
+ this.chunks.push(chunk);
3811
+ };
3812
+
3813
+ /**
3814
+ * Deflate#onEnd(status) -> Void
3815
+ * - status (Number): deflate status. 0 (Z_OK) on success,
3816
+ * other if not.
3817
+ *
3818
+ * Called once after you tell deflate that the input stream is
3819
+ * complete (Z_FINISH). By default - join collected chunks,
3820
+ * free memory and fill `results` / `err` properties.
3821
+ **/
3822
+ Deflate.prototype.onEnd = function (status) {
3823
+ // On success - join
3824
+ if (status === Z_OK) {
3825
+ this.result = common.flattenChunks(this.chunks);
3826
+ }
3827
+ this.chunks = [];
3828
+ this.err = status;
3829
+ this.msg = this.strm.msg;
3830
+ };
3831
+
3832
+ /**
3833
+ * deflate(data[, options]) -> Uint8Array
3834
+ * - data (Uint8Array|ArrayBuffer|String): input data to compress.
3835
+ * - options (Object): zlib deflate options.
3836
+ *
3837
+ * Compress `data` with deflate algorithm and `options`.
3838
+ *
3839
+ * Supported options are:
3840
+ *
3841
+ * - level
3842
+ * - windowBits
3843
+ * - memLevel
3844
+ * - strategy
3845
+ * - dictionary
3846
+ *
3847
+ * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)
3848
+ * for more information on these.
3849
+ *
3850
+ * Sugar (options):
3851
+ *
3852
+ * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify
3853
+ * negative windowBits implicitly.
3854
+ *
3855
+ * ##### Example:
3856
+ *
3857
+ * ```javascript
3858
+ * const pako = require('pako')
3859
+ * const data = new Uint8Array([1,2,3,4,5,6,7,8,9]);
3860
+ *
3861
+ * console.log(pako.deflate(data));
3862
+ * ```
3863
+ **/
3864
+ function deflate(input, options) {
3865
+ var deflator = new Deflate(options);
3866
+ deflator.push(input, true);
3867
+
3868
+ // That will never happens, if you don't cheat with options :)
3869
+ if (deflator.err) {
3870
+ throw deflator.msg || messages[deflator.err];
3871
+ }
3872
+ return deflator.result;
3873
+ }
3874
+
3875
+ /**
3876
+ * deflateRaw(data[, options]) -> Uint8Array
3877
+ * - data (Uint8Array|ArrayBuffer|String): input data to compress.
3878
+ * - options (Object): zlib deflate options.
3879
+ *
3880
+ * The same as [[deflate]], but creates raw data, without wrapper
3881
+ * (header and adler32 crc).
3882
+ **/
3883
+ function deflateRaw(input, options) {
3884
+ options = options || {};
3885
+ options.raw = true;
3886
+ return deflate(input, options);
3887
+ }
3888
+
3889
+ /**
3890
+ * gzip(data[, options]) -> Uint8Array
3891
+ * - data (Uint8Array|ArrayBuffer|String): input data to compress.
3892
+ * - options (Object): zlib deflate options.
3893
+ *
3894
+ * The same as [[deflate]], but create gzip wrapper instead of
3895
+ * deflate one.
3896
+ **/
3897
+ function gzip(input, options) {
3898
+ options = options || {};
3899
+ options.gzip = true;
3900
+ return deflate(input, options);
3901
+ }
3902
+ var Deflate_1 = Deflate;
3903
+ var deflate_2 = deflate;
3904
+ var deflateRaw_1 = deflateRaw;
3905
+ var gzip_1 = gzip;
3906
+ var constants = constants$1;
3907
+ var deflate_1 = {
3908
+ Deflate: Deflate_1,
3909
+ deflate: deflate_2,
3910
+ deflateRaw: deflateRaw_1,
3911
+ gzip: gzip_1,
3912
+ constants: constants
3913
+ };
3914
+
3915
+ exports.Deflate = Deflate_1;
3916
+ exports.constants = constants;
3917
+ exports["default"] = deflate_1;
3918
+ exports.deflate = deflate_2;
3919
+ exports.deflateRaw = deflateRaw_1;
3920
+ exports.gzip = gzip_1;
3921
+
3922
+ Object.defineProperty(exports, '__esModule', { value: true });
3923
+
3924
+ }));