@kitware/vtk.js 19.2.13 → 19.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Common/Core/Base64.js +1 -1
- package/Common/Core/CellArray.js +2 -3
- package/Common/Core/ClassHierarchy.js +1 -1
- package/Common/Core/DataArray/Constants.js +1 -2
- package/Common/Core/DataArray.js +3 -4
- package/Common/Core/Endian.js +1 -2
- package/Common/Core/ImageHelper.js +1 -1
- package/Common/Core/LookupTable.js +1 -2
- package/Common/Core/MatrixBuilder.js +1 -1
- package/Common/Core/Points.js +1 -2
- package/Common/Core/PriorityQueue.js +1 -2
- package/Common/Core/ProgressHandler.js +1 -2
- package/Common/Core/ScalarsToColors/Constants.js +1 -2
- package/Common/Core/ScalarsToColors.js +2 -3
- package/Common/Core/StringArray.js +1 -2
- package/Common/Core/URLExtract.js +1 -1
- package/Common/Core/VariantArray.js +1 -2
- package/Common/Core.js +1 -1
- package/Common/DataModel/BoundingBox.js +2 -3
- package/Common/DataModel/Box.js +2 -3
- package/Common/DataModel/CardinalSpline1D.js +1 -2
- package/Common/DataModel/Cell.js +1 -2
- package/Common/DataModel/CellLinks.js +26 -27
- package/Common/DataModel/CellTypes/Constants.js +1 -2
- package/Common/DataModel/CellTypes.js +2 -3
- package/Common/DataModel/Cone.js +1 -2
- package/Common/DataModel/Cylinder.js +2 -3
- package/Common/DataModel/DataSet/Constants.js +1 -2
- package/Common/DataModel/DataSet.js +2 -3
- package/Common/DataModel/DataSetAttributes/Constants.js +1 -2
- package/Common/DataModel/DataSetAttributes/FieldData.js +1 -2
- package/Common/DataModel/DataSetAttributes.js +2 -3
- package/Common/DataModel/ITKHelper.js +1 -1
- package/Common/DataModel/ImageData.js +1 -2
- package/Common/DataModel/ImplicitBoolean/Constants.js +1 -2
- package/Common/DataModel/ImplicitBoolean.js +2 -3
- package/Common/DataModel/KochanekSpline1D.js +1 -2
- package/Common/DataModel/Line/Constants.js +1 -2
- package/Common/DataModel/Line.js +2 -3
- package/Common/DataModel/Molecule.js +1 -2
- package/Common/DataModel/PiecewiseFunction.js +1 -2
- package/Common/DataModel/Plane.js +2 -3
- package/Common/DataModel/PointSet.js +1 -2
- package/Common/DataModel/PolyData/Constants.js +1 -2
- package/Common/DataModel/PolyData.js +1 -2
- package/Common/DataModel/Polygon.js +1 -2
- package/Common/DataModel/SelectionNode/Constants.js +1 -2
- package/Common/DataModel/SelectionNode.js +2 -3
- package/Common/DataModel/Sphere.js +2 -3
- package/Common/DataModel/Spline1D.js +1 -2
- package/Common/DataModel/Spline3D/Constants.js +1 -2
- package/Common/DataModel/Spline3D.js +1 -2
- package/Common/DataModel/StructuredData/Constants.js +1 -2
- package/Common/DataModel/StructuredData.js +2 -3
- package/Common/DataModel/Triangle.js +2 -3
- package/Common/DataModel.js +1 -1
- package/Common/System/MobileVR/headsets.js +1 -1
- package/Common/System/MobileVR.js +1 -1
- package/Common/System/TimerLog.js +1 -2
- package/Common/System.js +1 -1
- package/Common/Transform/LandmarkTransform/Constants.js +1 -2
- package/Common/Transform/LandmarkTransform.js +2 -3
- package/Common/Transform.js +1 -1
- package/Common/index.js +1 -1
- package/Filters/Core/Cutter.js +3 -4
- package/Filters/Core.js +1 -1
- package/Filters/Cornerstone/ImageDataToCornerstoneImage.js +1 -2
- package/Filters/Cornerstone.js +1 -1
- package/Filters/General/AppendPolyData.js +1 -2
- package/Filters/General/Calculator.js +2 -3
- package/Filters/General/ClosedPolyLineToSurfaceFilter.js +1 -2
- package/Filters/General/ImageCropFilter.js +1 -2
- package/Filters/General/ImageMarchingCubes/caseTable.js +1 -1
- package/Filters/General/ImageMarchingCubes.js +1 -2
- package/Filters/General/ImageMarchingSquares/caseTable.js +1 -1
- package/Filters/General/ImageMarchingSquares.js +1 -2
- package/Filters/General/ImageOutlineFilter.js +1 -2
- package/Filters/General/ImageSliceFilter.js +1 -2
- package/Filters/General/ImageStreamline.js +1 -2
- package/Filters/General/LineFilter.js +1 -2
- package/Filters/General/MoleculeToRepresentation.js +1 -2
- package/Filters/General/OutlineFilter.js +1 -2
- package/Filters/General/PaintFilter/PaintFilter.worker.js +3 -3
- package/Filters/General/PaintFilter.js +3 -4
- package/Filters/General/ScalarToRGBA.js +1 -2
- package/Filters/General/TriangleFilter.js +1 -2
- package/Filters/General/TubeFilter/Constants.js +1 -2
- package/Filters/General/TubeFilter.js +1 -2
- package/Filters/General/WarpScalar.js +1 -2
- package/Filters/General/WindowedSincPolyDataFilter.js +43 -44
- package/Filters/General.js +1 -1
- package/Filters/Sources/Arrow2DSource/Constants.js +1 -2
- package/Filters/Sources/Arrow2DSource.js +2 -3
- package/Filters/Sources/ArrowSource.js +1 -2
- package/Filters/Sources/CircleSource.js +2 -3
- package/Filters/Sources/ConcentricCylinderSource.js +1 -2
- package/Filters/Sources/ConeSource.js +1 -2
- package/Filters/Sources/CubeSource.js +1 -2
- package/Filters/Sources/Cursor3D.js +12 -13
- package/Filters/Sources/CylinderSource.js +1 -2
- package/Filters/Sources/ImageGridSource.js +1 -2
- package/Filters/Sources/LineSource.js +1 -2
- package/Filters/Sources/PlaneSource.js +1 -2
- package/Filters/Sources/PointSource.js +1 -2
- package/Filters/Sources/RTAnalyticSource.js +1 -2
- package/Filters/Sources/SLICSource.js +1 -2
- package/Filters/Sources/SphereSource.js +1 -2
- package/Filters/Sources/ViewFinderSource.js +1 -2
- package/Filters/Sources.js +1 -1
- package/Filters/Texture/TextureMapToPlane.js +1 -2
- package/Filters/Texture/TextureMapToSphere.js +1 -2
- package/Filters/Texture.js +1 -1
- package/Filters/index.js +1 -1
- package/IO/Core/BinaryHelper.js +1 -1
- package/IO/Core/DataAccessHelper/HtmlDataAccessHelper.js +1 -1
- package/IO/Core/DataAccessHelper/HttpDataAccessHelper.js +1 -1
- package/IO/Core/DataAccessHelper/JSZipDataAccessHelper.js +3 -3
- package/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper.js +1 -1
- package/IO/Core/DataAccessHelper.js +1 -2
- package/IO/Core/HttpDataSetReader.js +1 -2
- package/IO/Core/HttpDataSetSeriesReader.js +1 -2
- package/IO/Core/HttpSceneLoader.js +2 -3
- package/IO/Core/ImageStream/DefaultProtocol.js +1 -1
- package/IO/Core/ImageStream/ViewStream.js +1 -2
- package/IO/Core/ImageStream.js +1 -2
- package/IO/Core/ResourceLoader.js +1 -2
- package/IO/Core/Serializer/ArraySerializer.js +1 -2
- package/IO/Core/Serializer/FieldDataSerializer.js +1 -1
- package/IO/Core/Serializer/ImageDataSerializer.js +1 -1
- package/IO/Core/Serializer/PolyDataSerializer.js +1 -1
- package/IO/Core/Serializer.js +1 -1
- package/IO/Core/WSLinkClient.js +1 -2
- package/IO/Core/ZipMultiDataSetReader.js +3 -4
- package/IO/Core/ZipMultiDataSetWriter.js +3 -4
- package/IO/Core.js +1 -1
- package/IO/Geometry/DracoReader.js +1 -2
- package/IO/Geometry/PLYReader.js +1 -2
- package/IO/Geometry/STLReader.js +1 -2
- package/IO/Geometry/STLWriter/Constants.js +1 -2
- package/IO/Geometry/STLWriter.js +2 -3
- package/IO/Geometry.js +1 -1
- package/IO/Legacy/LegacyAsciiParser.js +1 -1
- package/IO/Legacy/PolyDataReader.js +1 -2
- package/IO/Legacy.js +1 -1
- package/IO/Misc/ElevationReader.js +1 -2
- package/IO/Misc/HttpDataSetLODsLoader.js +1 -2
- package/IO/Misc/ITKImageReader.js +1 -2
- package/IO/Misc/ITKPolyDataReader.js +1 -2
- package/IO/Misc/JSONNucleoReader.js +1 -2
- package/IO/Misc/JSONReader.js +1 -2
- package/IO/Misc/MTLReader.js +2 -3
- package/IO/Misc/OBJReader.js +1 -2
- package/IO/Misc/PDBReader.js +1 -2
- package/IO/Misc/SkyboxReader.js +3 -4
- package/IO/Misc.js +1 -1
- package/IO/XML/XMLImageDataReader.js +1 -2
- package/IO/XML/XMLImageDataWriter.js +2 -3
- package/IO/XML/XMLPolyDataReader.js +1 -2
- package/IO/XML/XMLPolyDataWriter.js +2 -3
- package/IO/XML/XMLReader.js +1 -2
- package/IO/XML/XMLWriter/Constants.js +1 -2
- package/IO/XML/XMLWriter.js +4 -4
- package/IO/XML.js +1 -1
- package/IO/index.js +1 -1
- package/Imaging/Core/AbstractImageInterpolator/Constants.js +1 -2
- package/Imaging/Core/AbstractImageInterpolator/InterpolationInfo.js +2 -3
- package/Imaging/Core/AbstractImageInterpolator.js +2 -3
- package/Imaging/Core/ImageInterpolator.js +2 -3
- package/Imaging/Core/ImagePointDataIterator.js +1 -2
- package/Imaging/Core/ImageReslice/Constants.js +1 -2
- package/Imaging/Core/ImageReslice.js +2 -3
- package/Imaging/Core.js +1 -1
- package/Imaging/Hybrid/SampleFunction.js +2 -3
- package/Imaging/Hybrid.js +1 -1
- package/Imaging/index.js +1 -1
- package/Interaction/Animations/TimeStepBasedAnimationHandler.js +2 -3
- package/Interaction/Manipulators/CompositeCameraManipulator.js +1 -2
- package/Interaction/Manipulators/CompositeGestureManipulator.js +1 -2
- package/Interaction/Manipulators/CompositeKeyboardManipulator.js +1 -2
- package/Interaction/Manipulators/CompositeMouseManipulator.js +1 -2
- package/Interaction/Manipulators/CompositeVRManipulator.js +1 -2
- package/Interaction/Manipulators/GestureCameraManipulator.js +1 -2
- package/Interaction/Manipulators/KeyboardCameraManipulator.js +1 -2
- package/Interaction/Manipulators/MouseBoxSelectorManipulator.js +3 -4
- package/Interaction/Manipulators/MouseCameraAxisRotateManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraSliceManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballFirstPersonManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballMultiRotateManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballPanManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballRollManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballRotateManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballZoomManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraTrackballZoomToMouseManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraUnicamManipulator.js +1 -2
- package/Interaction/Manipulators/MouseCameraUnicamRotateManipulator.js +1 -2
- package/Interaction/Manipulators/MouseRangeManipulator.js +1 -2
- package/Interaction/Manipulators/VRButtonPanManipulator.js +1 -2
- package/Interaction/Manipulators.js +1 -1
- package/Interaction/Misc/DeviceOrientationToCamera.js +1 -1
- package/Interaction/Misc.js +1 -1
- package/Interaction/Style/InteractorStyleImage.js +1 -2
- package/Interaction/Style/InteractorStyleMPRSlice.js +1 -2
- package/Interaction/Style/InteractorStyleManipulator/Presets.js +1 -1
- package/Interaction/Style/InteractorStyleManipulator.js +2 -3
- package/Interaction/Style/InteractorStyleRemoteMouse.js +2 -3
- package/Interaction/Style/InteractorStyleTrackballCamera.js +1 -2
- package/Interaction/Style/InteractorStyleUnicam.js +1 -2
- package/Interaction/Style.js +1 -1
- package/Interaction/UI/CornerAnnotation.js +1 -2
- package/Interaction/UI/FPSMonitor.js +2 -3
- package/Interaction/UI/Icons.js +1 -1
- package/Interaction/UI/Slider/Constants.js +1 -2
- package/Interaction/UI/Slider.js +2 -3
- package/Interaction/UI/VolumeController.js +1 -2
- package/Interaction/UI.js +1 -1
- package/Interaction/Widgets/AbstractWidget.js +2 -3
- package/Interaction/Widgets/DistanceRepresentation.js +2 -3
- package/Interaction/Widgets/DistanceWidget.js +2 -3
- package/Interaction/Widgets/HandleRepresentation/Constants.js +1 -2
- package/Interaction/Widgets/HandleRepresentation.js +2 -3
- package/Interaction/Widgets/HandleWidget/Constants.js +1 -2
- package/Interaction/Widgets/HandleWidget.js +2 -3
- package/Interaction/Widgets/ImageCroppingRegionsRepresentation.js +1 -2
- package/Interaction/Widgets/ImageCroppingRegionsWidget/Constants.js +1 -1
- package/Interaction/Widgets/ImageCroppingRegionsWidget.js +2 -3
- package/Interaction/Widgets/LabelRepresentation/Constants.js +1 -2
- package/Interaction/Widgets/LabelRepresentation.js +3 -4
- package/Interaction/Widgets/LabelWidget.js +2 -3
- package/Interaction/Widgets/LineRepresentation/Constants.js +1 -2
- package/Interaction/Widgets/LineRepresentation.js +2 -3
- package/Interaction/Widgets/LineWidget/Constants.js +1 -2
- package/Interaction/Widgets/LineWidget.js +2 -3
- package/Interaction/Widgets/OrientationMarkerWidget/Constants.js +1 -1
- package/Interaction/Widgets/OrientationMarkerWidget.js +2 -3
- package/Interaction/Widgets/PiecewiseGaussianWidget/ComputeHistogram.worker.js +3 -3
- package/Interaction/Widgets/PiecewiseGaussianWidget.js +15 -16
- package/Interaction/Widgets/PointPlacer.js +1 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursor/Constants.js +1 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursor.js +2 -3
- package/Interaction/Widgets/ResliceCursor/ResliceCursorActor/Constants.js +1 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursorActor.js +2 -3
- package/Interaction/Widgets/ResliceCursor/ResliceCursorLineRepresentation.js +1 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursorPolyDataAlgorithm.js +2 -3
- package/Interaction/Widgets/ResliceCursor/ResliceCursorRepresentation.js +1 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursorWidget/Constants.js +1 -2
- package/Interaction/Widgets/ResliceCursor/ResliceCursorWidget.js +2 -3
- package/Interaction/Widgets/SphereHandleRepresentation.js +2 -3
- package/Interaction/Widgets/WidgetRepresentation.js +1 -2
- package/Interaction/Widgets.js +1 -1
- package/Interaction/index.js +1 -1
- package/Proxy/Animation/AbstractAnimationProxy.js +1 -2
- package/Proxy/Animation/AnimationProxyManager.js +1 -2
- package/Proxy/Animation/TimeStepBasedAnimationHandlerProxy.js +1 -2
- package/Proxy/Core/AbstractRepresentationProxy.js +1 -1
- package/Proxy/Core/LookupTableProxy/Constants.js +1 -1
- package/Proxy/Core/LookupTableProxy.js +1 -2
- package/Proxy/Core/PiecewiseFunctionProxy/Constants.js +1 -1
- package/Proxy/Core/PiecewiseFunctionProxy.js +2 -3
- package/Proxy/Core/ProxyManager/core.js +2 -2
- package/Proxy/Core/ProxyManager/properties.js +2 -2
- package/Proxy/Core/ProxyManager/state.js +2 -2
- package/Proxy/Core/ProxyManager/view.js +1 -1
- package/Proxy/Core/ProxyManager.js +1 -2
- package/Proxy/Core/SourceProxy.js +1 -2
- package/Proxy/Core/View2DProxy.js +1 -2
- package/Proxy/Core/ViewProxy.js +4 -4
- package/Proxy/Core.js +1 -1
- package/Proxy/Representations/GeometryRepresentationProxy.js +1 -2
- package/Proxy/Representations/GlyphRepresentationProxy.js +1 -2
- package/Proxy/Representations/MoleculeRepresentationProxy.js +1 -2
- package/Proxy/Representations/SkyboxRepresentationProxy.js +1 -2
- package/Proxy/Representations/SliceRepresentationProxy.js +2 -3
- package/Proxy/Representations/SlicedGeometryRepresentationProxy.js +1 -2
- package/Proxy/Representations/VolumeRepresentationProxy.js +1 -2
- package/Proxy/Representations.js +1 -1
- package/Proxy/index.js +1 -1
- package/Rendering/Core/AbstractMapper.js +1 -2
- package/Rendering/Core/AbstractMapper3D.js +1 -2
- package/Rendering/Core/AbstractPicker.js +1 -2
- package/Rendering/Core/Actor.js +2 -3
- package/Rendering/Core/Actor2D.js +1 -2
- package/Rendering/Core/AnnotatedCubeActor/Presets.js +1 -1
- package/Rendering/Core/AnnotatedCubeActor.js +2 -3
- package/Rendering/Core/AxesActor.js +2 -3
- package/Rendering/Core/Camera.js +1 -2
- package/Rendering/Core/CellPicker.js +2 -3
- package/Rendering/Core/ColorTransferFunction/ColorMaps.js +1 -1
- package/Rendering/Core/ColorTransferFunction/ColorMapsLite.js +1 -1
- package/Rendering/Core/ColorTransferFunction/Constants.js +1 -2
- package/Rendering/Core/ColorTransferFunction.js +2 -3
- package/Rendering/Core/Coordinate/Constants.js +1 -2
- package/Rendering/Core/Coordinate.js +2 -3
- package/Rendering/Core/CubeAxesActor.js +2 -3
- package/Rendering/Core/Follower.js +2 -3
- package/Rendering/Core/Glyph3DMapper/Constants.js +1 -2
- package/Rendering/Core/Glyph3DMapper.js +2 -3
- package/Rendering/Core/HardwareSelector.js +1 -2
- package/Rendering/Core/ImageMapper/Constants.js +1 -2
- package/Rendering/Core/ImageMapper.js +2 -3
- package/Rendering/Core/ImageProperty/Constants.js +1 -2
- package/Rendering/Core/ImageProperty.js +1 -2
- package/Rendering/Core/ImageSlice.js +1 -2
- package/Rendering/Core/InteractorObserver.js +2 -3
- package/Rendering/Core/InteractorStyle/Constants.js +1 -2
- package/Rendering/Core/InteractorStyle.js +2 -3
- package/Rendering/Core/Light.js +1 -2
- package/Rendering/Core/Mapper/CoincidentTopologyHelper.js +1 -2
- package/Rendering/Core/Mapper/Constants.js +1 -2
- package/Rendering/Core/Mapper/Static.js +1 -2
- package/Rendering/Core/Mapper.js +2 -3
- package/Rendering/Core/Picker.js +2 -3
- package/Rendering/Core/PixelSpaceCallbackMapper.js +1 -2
- package/Rendering/Core/PointPicker.js +1 -9
- package/Rendering/Core/Prop.js +1 -2
- package/Rendering/Core/Prop3D.js +1 -2
- package/Rendering/Core/Property/Constants.js +1 -2
- package/Rendering/Core/Property.js +2 -3
- package/Rendering/Core/Property2D.js +1 -2
- package/Rendering/Core/RenderWindow.js +1 -2
- package/Rendering/Core/RenderWindowInteractor/Constants.js +1 -2
- package/Rendering/Core/RenderWindowInteractor.js +2 -3
- package/Rendering/Core/Renderer.js +2 -3
- package/Rendering/Core/ScalarBarActor.js +2 -3
- package/Rendering/Core/Skybox.js +1 -2
- package/Rendering/Core/SphereMapper.js +1 -2
- package/Rendering/Core/StickMapper.js +1 -2
- package/Rendering/Core/SurfaceLICInterface/Constants.js +1 -2
- package/Rendering/Core/SurfaceLICInterface.js +1 -2
- package/Rendering/Core/SurfaceLICMapper.js +1 -2
- package/Rendering/Core/Texture.js +1 -2
- package/Rendering/Core/Viewport.js +1 -2
- package/Rendering/Core/Volume.js +1 -2
- package/Rendering/Core/VolumeMapper/Constants.js +1 -2
- package/Rendering/Core/VolumeMapper.js +1 -2
- package/Rendering/Core/VolumeProperty/Constants.js +1 -2
- package/Rendering/Core/VolumeProperty.js +2 -3
- package/Rendering/Core.js +2 -2
- package/Rendering/Misc/CanvasView.js +1 -2
- package/Rendering/Misc/FullScreenRenderWindow.js +1 -2
- package/Rendering/Misc/GenericRenderWindow.js +1 -2
- package/Rendering/Misc/RemoteView.js +1 -2
- package/Rendering/Misc/RenderWindowWithControlBar.js +2 -3
- package/Rendering/Misc/SynchronizableRenderWindow/vtkObjectManager.js +2 -2
- package/Rendering/Misc/SynchronizableRenderWindow.js +3 -4
- package/Rendering/Misc/TextureLODsDownloader.js +1 -2
- package/Rendering/Misc.js +1 -1
- package/Rendering/OpenGL/Actor.js +2 -3
- package/Rendering/OpenGL/Actor2D.js +2 -3
- package/Rendering/OpenGL/BufferObject/Constants.js +1 -2
- package/Rendering/OpenGL/BufferObject.js +2 -3
- package/Rendering/OpenGL/Camera.js +2 -3
- package/Rendering/OpenGL/CellArrayBufferObject.js +2 -4
- package/Rendering/OpenGL/Convolution2DPass.js +1 -2
- package/Rendering/OpenGL/ForwardPass.js +1 -2
- package/Rendering/OpenGL/Framebuffer.js +2 -3
- package/Rendering/OpenGL/Glyph3DMapper.js +3 -4
- package/Rendering/OpenGL/HardwareSelector/Constants.js +1 -2
- package/Rendering/OpenGL/HardwareSelector.js +2 -3
- package/Rendering/OpenGL/Helper.js +1 -2
- package/Rendering/OpenGL/ImageMapper.js +2 -3
- package/Rendering/OpenGL/ImageSlice.js +2 -3
- package/Rendering/OpenGL/PixelSpaceCallbackMapper.js +1 -2
- package/Rendering/OpenGL/PolyDataMapper.js +2 -3
- package/Rendering/OpenGL/RadialDistortionPass.js +1 -2
- package/Rendering/OpenGL/RenderWindow.js +1 -2
- package/Rendering/OpenGL/Renderer.js +2 -3
- package/Rendering/OpenGL/ReplacementShaderMapper.js +1 -1
- package/Rendering/OpenGL/Shader.js +1 -2
- package/Rendering/OpenGL/ShaderCache.js +1 -2
- package/Rendering/OpenGL/ShaderProgram.js +1 -1
- package/Rendering/OpenGL/Skybox.js +2 -3
- package/Rendering/OpenGL/SphereMapper.js +2 -3
- package/Rendering/OpenGL/StickMapper.js +2 -3
- package/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D/pingpong.js +1 -2
- package/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D.js +1 -2
- package/Rendering/OpenGL/SurfaceLIC/SurfaceLICInterface.js +1 -2
- package/Rendering/OpenGL/SurfaceLIC/SurfaceLICMapper.js +3 -4
- package/Rendering/OpenGL/SurfaceLIC.js +1 -1
- package/Rendering/OpenGL/Texture/Constants.js +1 -2
- package/Rendering/OpenGL/Texture.js +3 -4
- package/Rendering/OpenGL/TextureUnitManager.js +1 -2
- package/Rendering/OpenGL/VertexArrayObject.js +1 -2
- package/Rendering/OpenGL/ViewNodeFactory.js +1 -2
- package/Rendering/OpenGL/Volume.js +2 -3
- package/Rendering/OpenGL/VolumeMapper.js +3 -4
- package/Rendering/OpenGL.js +1 -1
- package/Rendering/SceneGraph/RenderPass.js +1 -2
- package/Rendering/SceneGraph/RenderWindowViewNode.js +1 -2
- package/Rendering/SceneGraph/ViewNode.js +1 -1
- package/Rendering/SceneGraph/ViewNodeFactory.js +1 -2
- package/Rendering/SceneGraph.js +1 -1
- package/Rendering/WebGPU/Actor.js +1 -2
- package/Rendering/WebGPU/BindGroup.js +1 -2
- package/Rendering/WebGPU/Buffer.js +2 -3
- package/Rendering/WebGPU/BufferManager/Constants.js +1 -2
- package/Rendering/WebGPU/BufferManager.js +3 -4
- package/Rendering/WebGPU/Camera.js +1 -2
- package/Rendering/WebGPU/Device.js +2 -3
- package/Rendering/WebGPU/ForwardPass.js +1 -2
- package/Rendering/WebGPU/FullScreenQuad.js +1 -2
- package/Rendering/WebGPU/Glyph3DMapper.js +3 -4
- package/Rendering/WebGPU/HardwareSelectionPass.js +1 -2
- package/Rendering/WebGPU/HardwareSelector.js +1 -2
- package/Rendering/WebGPU/MapperHelper.js +1 -2
- package/Rendering/WebGPU/OpaquePass.js +2 -4
- package/Rendering/WebGPU/OrderIndependentTranslucentPass.js +1 -2
- package/Rendering/WebGPU/Pipeline.js +2 -3
- package/Rendering/WebGPU/PixelSpaceCallbackMapper.js +1 -2
- package/Rendering/WebGPU/PolyDataMapper.js +3 -4
- package/Rendering/WebGPU/RenderEncoder.js +2 -3
- package/Rendering/WebGPU/RenderWindow.js +11 -3
- package/Rendering/WebGPU/Renderer.js +2 -3
- package/Rendering/WebGPU/Sampler.js +1 -2
- package/Rendering/WebGPU/ShaderCache.js +1 -2
- package/Rendering/WebGPU/ShaderDescription.js +1 -2
- package/Rendering/WebGPU/ShaderModule.js +1 -1
- package/Rendering/WebGPU/SphereMapper.js +1 -2
- package/Rendering/WebGPU/StickMapper.js +1 -2
- package/Rendering/WebGPU/StorageBuffer.js +1 -2
- package/Rendering/WebGPU/Texture.js +2 -3
- package/Rendering/WebGPU/TextureManager.js +24 -7
- package/Rendering/WebGPU/TextureView.js +19 -4
- package/Rendering/WebGPU/Types.js +83 -42
- package/Rendering/WebGPU/UniformBuffer.js +1 -2
- package/Rendering/WebGPU/VertexInput.js +2 -3
- package/Rendering/WebGPU/ViewNodeFactory.js +1 -2
- package/Rendering/WebGPU/Volume.js +1 -2
- package/Rendering/WebGPU/VolumePass.js +2 -3
- package/Rendering/WebGPU/VolumePassFSQ.js +4 -4
- package/Rendering/WebGPU.js +1 -1
- package/Rendering/index.js +1 -1
- package/ThirdParty/index.js +2 -2
- package/Utilities/DataGenerator/convert-cli.js +10 -8
- package/Utilities/ExampleRunner/example-runner-cli.js +2 -1
- package/Utilities/ExampleRunner/template-config.js +8 -6
- package/Utilities/TestResults/TESTS-Chrome_Headless_93.0.4577.63_(Linux_x86_64).xml +1058 -1058
- package/Utilities/XMLConverter/xml2json-cli.js +5 -4
- package/Widgets/Core/AbstractWidget/Constants.js +1 -2
- package/Widgets/Core/AbstractWidget.js +1 -2
- package/Widgets/Core/AbstractWidgetFactory.js +2 -3
- package/Widgets/Core/StateBuilder/boundsMixin.js +1 -2
- package/Widgets/Core/StateBuilder/colorMixin.js +1 -2
- package/Widgets/Core/StateBuilder/cornerMixin.js +1 -2
- package/Widgets/Core/StateBuilder/directionMixin.js +1 -2
- package/Widgets/Core/StateBuilder/manipulatorMixin.js +1 -2
- package/Widgets/Core/StateBuilder/nameMixin.js +1 -2
- package/Widgets/Core/StateBuilder/orientationMixin.js +1 -2
- package/Widgets/Core/StateBuilder/originMixin.js +1 -2
- package/Widgets/Core/StateBuilder/scale1Mixin.js +1 -2
- package/Widgets/Core/StateBuilder/scale3Mixin.js +1 -2
- package/Widgets/Core/StateBuilder/shapeMixin.js +1 -2
- package/Widgets/Core/StateBuilder/textMixin.js +1 -2
- package/Widgets/Core/StateBuilder/visibleMixin.js +1 -2
- package/Widgets/Core/StateBuilder.js +1 -2
- package/Widgets/Core/WidgetManager/Constants.js +1 -2
- package/Widgets/Core/WidgetManager.js +1 -2
- package/Widgets/Core/WidgetState.js +1 -2
- package/Widgets/Core.js +1 -1
- package/Widgets/Manipulators/LineManipulator.js +1 -2
- package/Widgets/Manipulators/PlaneManipulator.js +1 -2
- package/Widgets/Manipulators/TrackballManipulator.js +1 -2
- package/Widgets/Manipulators.js +1 -1
- package/Widgets/Representations/ArrowHandleRepresentation.js +2 -3
- package/Widgets/Representations/CircleContextRepresentation.js +1 -2
- package/Widgets/Representations/ContextRepresentation.js +2 -3
- package/Widgets/Representations/ConvexFaceContextRepresentation.js +1 -2
- package/Widgets/Representations/CroppingOutlineRepresentation.js +1 -2
- package/Widgets/Representations/CubeHandleRepresentation.js +1 -2
- package/Widgets/Representations/HandleRepresentation.js +2 -3
- package/Widgets/Representations/ImplicitPlaneRepresentation.js +1 -2
- package/Widgets/Representations/OutlineContextRepresentation.js +1 -2
- package/Widgets/Representations/PolyLineRepresentation.js +2 -3
- package/Widgets/Representations/RectangleContextRepresentation.js +1 -2
- package/Widgets/Representations/ResliceCursorContextRepresentation.js +2 -3
- package/Widgets/Representations/SphereHandleRepresentation.js +1 -2
- package/Widgets/Representations/SplineContextRepresentation.js +1 -2
- package/Widgets/Representations/WidgetRepresentation/Constants.js +1 -2
- package/Widgets/Representations/WidgetRepresentation.js +1 -2
- package/Widgets/Representations.js +1 -1
- package/Widgets/SVG/SVGLandmarkRepresentation.js +2 -3
- package/Widgets/SVG/SVGRepresentation.js +3 -2
- package/Widgets/Widgets3D/AngleWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/AngleWidget/state.js +1 -1
- package/Widgets/Widgets3D/AngleWidget.js +1 -2
- package/Widgets/Widgets3D/DistanceWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/DistanceWidget/state.js +1 -1
- package/Widgets/Widgets3D/DistanceWidget.js +1 -2
- package/Widgets/Widgets3D/EllipseWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/EllipseWidget/state.js +1 -1
- package/Widgets/Widgets3D/EllipseWidget.js +2 -3
- package/Widgets/Widgets3D/ImageCroppingWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/ImageCroppingWidget/state.js +1 -1
- package/Widgets/Widgets3D/ImageCroppingWidget.js +1 -2
- package/Widgets/Widgets3D/ImplicitPlaneWidget.js +1 -2
- package/Widgets/Widgets3D/InteractiveOrientationWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/InteractiveOrientationWidget/state.js +1 -2
- package/Widgets/Widgets3D/InteractiveOrientationWidget.js +1 -2
- package/Widgets/Widgets3D/LineWidget/Constants.js +1 -2
- package/Widgets/Widgets3D/LineWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/LineWidget/state.js +1 -1
- package/Widgets/Widgets3D/LineWidget.js +1 -2
- package/Widgets/Widgets3D/PaintWidget.js +1 -2
- package/Widgets/Widgets3D/PolyLineWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/PolyLineWidget/state.js +1 -1
- package/Widgets/Widgets3D/PolyLineWidget.js +1 -2
- package/Widgets/Widgets3D/RectangleWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/RectangleWidget/state.js +1 -1
- package/Widgets/Widgets3D/RectangleWidget.js +2 -3
- package/Widgets/Widgets3D/ResliceCursorWidget/Constants.js +1 -2
- package/Widgets/Widgets3D/ResliceCursorWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/ResliceCursorWidget/state.js +1 -1
- package/Widgets/Widgets3D/ResliceCursorWidget.js +1 -2
- package/Widgets/Widgets3D/ShapeWidget/Constants.js +1 -2
- package/Widgets/Widgets3D/ShapeWidget/behavior.js +2 -2
- package/Widgets/Widgets3D/ShapeWidget.js +1 -2
- package/Widgets/Widgets3D/SplineWidget/behavior.js +1 -1
- package/Widgets/Widgets3D/SplineWidget/state.js +1 -1
- package/Widgets/Widgets3D/SplineWidget.js +1 -2
- package/Widgets/Widgets3D.js +1 -1
- package/Widgets/index.js +1 -1
- package/_vendor/base64-js/index.js_commonjs-exports +1 -0
- package/_vendor/blueimp-md5/js/md5.js_commonjs-module +3 -0
- package/_vendor/define-properties/index.js_commonjs-proxy +1 -1
- package/_vendor/globalthis/implementation.browser.js_commonjs-module +3 -0
- package/_vendor/globalthis/implementation.browser.js_commonjs-proxy +1 -1
- package/_vendor/globalthis/polyfill.js_commonjs-proxy +1 -1
- package/_vendor/globalthis/shim.js_commonjs-proxy +2 -1
- package/_vendor/jszip/dist/jszip.min.js_commonjs-module +3 -0
- package/_vendor/object-keys/implementation.js_commonjs-proxy +1 -1
- package/_vendor/object-keys/index.js_commonjs-proxy +1 -1
- package/_vendor/object-keys/isArguments.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/lib/alea.js_commonjs-module +3 -0
- package/_vendor/seedrandom/lib/alea.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/lib/tychei.js_commonjs-module +3 -0
- package/_vendor/seedrandom/lib/tychei.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/lib/xor128.js_commonjs-module +3 -0
- package/_vendor/seedrandom/lib/xor128.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/lib/xor4096.js_commonjs-module +3 -0
- package/_vendor/seedrandom/lib/xor4096.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/lib/xorshift7.js_commonjs-module +3 -0
- package/_vendor/seedrandom/lib/xorshift7.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/lib/xorwow.js_commonjs-module +3 -0
- package/_vendor/seedrandom/lib/xorwow.js_commonjs-proxy +1 -1
- package/_vendor/seedrandom/seedrandom.js_commonjs-module +3 -0
- package/_vendor/seedrandom/seedrandom.js_commonjs-proxy +1 -1
- package/_vendor/webworker-promise/lib/register.js_commonjs-module +3 -0
- package/_vendor/webworker-promise/lib/tiny-emitter.js_commonjs-proxy +1 -1
- package/_vendor/webworker-promise/src/tiny-emitter.js_commonjs-proxy +1 -0
- package/_vendor/xmlbuilder2/lib/xmlbuilder2.min.js_commonjs-module +3 -0
- package/_virtual/commonjsHelpers.js +3 -4
- package/_virtual/{polyfill-node_buffer.js → polyfill-node.buffer.js} +1 -1
- package/_virtual/{polyfill-node_global.js → polyfill-node.global.js} +0 -0
- package/_virtual/rollup-plugin-worker-loader__module_Sources/Filters/General/PaintFilter/PaintFilter.worker.js +1 -1
- package/_virtual/rollup-plugin-worker-loader__module_Sources/Interaction/Widgets/PiecewiseGaussianWidget/ComputeHistogram.worker.js +1 -1
- package/macros.js +4 -5
- package/package.json +54 -55
- package/vendor/base64-js/index.js +1 -87
- package/vendor/blueimp-md5/js/md5.js +6 -3
- package/vendor/d3-array/src/ascending.js +1 -1
- package/vendor/d3-array/src/bisect.js +2 -1
- package/vendor/d3-array/src/bisector.js +21 -23
- package/vendor/d3-array/src/mode.js +1 -0
- package/vendor/d3-scale/src/continuous.js +2 -2
- package/vendor/d3-time/src/ticks.js +1 -0
- package/vendor/define-properties/index.js +2 -1
- package/vendor/globalthis/implementation.browser.js +4 -9
- package/vendor/globalthis/index.js +13 -6
- package/vendor/globalthis/polyfill.js +6 -3
- package/vendor/globalthis/shim.js +12 -9
- package/vendor/jszip/dist/jszip.min.js +11 -0
- package/vendor/object-keys/index.js +2 -2
- package/vendor/pako/dist/pako.esm.mjs +397 -388
- package/vendor/seedrandom/index.js +28 -21
- package/vendor/seedrandom/lib/alea.js +4 -5
- package/vendor/seedrandom/lib/tychei.js +4 -5
- package/vendor/seedrandom/lib/xor128.js +4 -5
- package/vendor/seedrandom/lib/xor4096.js +4 -5
- package/vendor/seedrandom/lib/xorshift7.js +4 -5
- package/vendor/seedrandom/lib/xorwow.js +4 -5
- package/vendor/seedrandom/seedrandom.js +4 -5
- package/vendor/webworker-promise/lib/register.js +14 -8
- package/vendor/webworker-promise/src/index.js +110 -0
- package/vendor/webworker-promise/src/tiny-emitter.js +51 -0
- package/vendor/xmlbuilder2/lib/xmlbuilder2.min.js +6 -7
- package/vtk.js +2 -3
- package/_vendor/base64-js/index.js_commonjs-proxy +0 -1
- package/_vendor/buffer/index.js_commonjs-proxy +0 -1
- package/_vendor/ieee754/index.js_commonjs-proxy +0 -1
- package/_vendor/immediate/lib/browser.js_commonjs-proxy +0 -1
- package/_vendor/inherits/inherits_browser.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/base64.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/compressedObject.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/compressions.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/crc32.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/defaults.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/external.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/flate.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/generate/ZipFileWorker.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/generate/index.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/load.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/nodejs/NodejsStreamInputAdapter.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/nodejs/NodejsStreamOutputAdapter.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/nodejsUtils.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/object.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/readable-stream-browser.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/reader/ArrayReader.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/reader/DataReader.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/reader/NodeBufferReader.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/reader/StringReader.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/reader/Uint8ArrayReader.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/reader/readerFor.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/signature.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/stream/ConvertWorker.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/stream/Crc32Probe.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/stream/DataLengthProbe.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/stream/DataWorker.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/stream/GenericWorker.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/stream/StreamHelper.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/support.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/utf8.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/utils.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/zipEntries.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/zipEntry.js_commonjs-proxy +0 -1
- package/_vendor/jszip/lib/zipObject.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/index.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/deflate.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/inflate.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/utils/common.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/utils/strings.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/adler32.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/constants.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/crc32.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/deflate.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/gzheader.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/inffast.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/inflate.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/inftrees.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/messages.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/trees.js_commonjs-proxy +0 -1
- package/_vendor/jszip/node_modules/pako/lib/zlib/zstream.js_commonjs-proxy +0 -1
- package/_vendor/lie/lib/browser.js_commonjs-proxy +0 -1
- package/_vendor/safe-buffer/index.js_commonjs-proxy +0 -1
- package/_vendor/set-immediate-shim/index.js_commonjs-proxy +0 -1
- package/_vendor/util/support/isBufferBrowser.js_commonjs-proxy +0 -1
- package/_virtual/_polyfill-node_stream.js_commonjs-proxy.js +0 -6
- package/_virtual/polyfill-node__buffer_list.js +0 -59
- package/_virtual/polyfill-node__stream_duplex.js +0 -44
- package/_virtual/polyfill-node__stream_passthrough.js +0 -15
- package/_virtual/polyfill-node__stream_readable.js +0 -896
- package/_virtual/polyfill-node__stream_transform.js +0 -132
- package/_virtual/polyfill-node__stream_writable.js +0 -480
- package/_virtual/polyfill-node_process.js +0 -225
- package/_virtual/polyfill-node_stream.js +0 -120
- package/vendor/buffer/index.js +0 -2112
- package/vendor/events/events.js +0 -457
- package/vendor/ieee754/index.js +0 -92
- package/vendor/immediate/lib/browser.js +0 -72
- package/vendor/inherits/inherits_browser.js +0 -29
- package/vendor/jszip/lib/base64.js +0 -113
- package/vendor/jszip/lib/compressedObject.js +0 -74
- package/vendor/jszip/lib/compressions.js +0 -20
- package/vendor/jszip/lib/crc32.js +0 -77
- package/vendor/jszip/lib/defaults.js +0 -25
- package/vendor/jszip/lib/external.js +0 -22
- package/vendor/jszip/lib/flate.js +0 -96
- package/vendor/jszip/lib/generate/ZipFileWorker.js +0 -540
- package/vendor/jszip/lib/generate/index.js +0 -61
- package/vendor/jszip/lib/index.js +0 -58
- package/vendor/jszip/lib/load.js +0 -82
- package/vendor/jszip/lib/nodejs/NodejsStreamInputAdapter.js +0 -74
- package/vendor/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +0 -45
- package/vendor/jszip/lib/nodejsUtils.js +0 -59
- package/vendor/jszip/lib/object.js +0 -389
- package/vendor/jszip/lib/readable-stream-browser.js +0 -14
- package/vendor/jszip/lib/reader/ArrayReader.js +0 -58
- package/vendor/jszip/lib/reader/DataReader.js +0 -117
- package/vendor/jszip/lib/reader/NodeBufferReader.js +0 -20
- package/vendor/jszip/lib/reader/StringReader.js +0 -39
- package/vendor/jszip/lib/reader/Uint8ArrayReader.js +0 -23
- package/vendor/jszip/lib/reader/readerFor.js +0 -28
- package/vendor/jszip/lib/signature.js +0 -17
- package/vendor/jszip/lib/stream/ConvertWorker.js +0 -26
- package/vendor/jszip/lib/stream/Crc32Probe.js +0 -24
- package/vendor/jszip/lib/stream/DataLengthProbe.js +0 -28
- package/vendor/jszip/lib/stream/DataWorker.js +0 -116
- package/vendor/jszip/lib/stream/GenericWorker.js +0 -263
- package/vendor/jszip/lib/stream/StreamHelper.js +0 -214
- package/vendor/jszip/lib/support.js +0 -45
- package/vendor/jszip/lib/utf8.js +0 -284
- package/vendor/jszip/lib/utils.js +0 -486
- package/vendor/jszip/lib/zipEntries.js +0 -257
- package/vendor/jszip/lib/zipEntry.js +0 -293
- package/vendor/jszip/lib/zipObject.js +0 -133
- package/vendor/jszip/node_modules/pako/index.js +0 -18
- package/vendor/jszip/node_modules/pako/lib/deflate.js +0 -406
- package/vendor/jszip/node_modules/pako/lib/inflate.js +0 -429
- package/vendor/jszip/node_modules/pako/lib/utils/common.js +0 -110
- package/vendor/jszip/node_modules/pako/lib/utils/strings.js +0 -192
- package/vendor/jszip/node_modules/pako/lib/zlib/adler32.js +0 -51
- package/vendor/jszip/node_modules/pako/lib/zlib/constants.js +0 -68
- package/vendor/jszip/node_modules/pako/lib/zlib/crc32.js +0 -59
- package/vendor/jszip/node_modules/pako/lib/zlib/deflate.js +0 -1892
- package/vendor/jszip/node_modules/pako/lib/zlib/gzheader.js +0 -58
- package/vendor/jszip/node_modules/pako/lib/zlib/inffast.js +0 -345
- package/vendor/jszip/node_modules/pako/lib/zlib/inflate.js +0 -1572
- package/vendor/jszip/node_modules/pako/lib/zlib/inftrees.js +0 -345
- package/vendor/jszip/node_modules/pako/lib/zlib/messages.js +0 -32
- package/vendor/jszip/node_modules/pako/lib/zlib/trees.js +0 -1232
- package/vendor/jszip/node_modules/pako/lib/zlib/zstream.js +0 -47
- package/vendor/lie/lib/browser.js +0 -274
- package/vendor/process/browser.js +0 -190
- package/vendor/safe-buffer/index.js +0 -69
- package/vendor/set-immediate-shim/index.js +0 -8
- package/vendor/string_decoder/lib/string_decoder.js +0 -276
- package/vendor/util/support/isBufferBrowser.js +0 -8
- package/vendor/util/util.js +0 -706
- package/vendor/webworker-promise/lib/index.js +0 -172
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! pako 2.0.
|
|
1
|
+
/*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */
|
|
2
2
|
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
|
|
3
3
|
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
|
|
4
4
|
//
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
//const Z_FILTERED = 1;
|
|
28
28
|
//const Z_HUFFMAN_ONLY = 2;
|
|
29
29
|
//const Z_RLE = 3;
|
|
30
|
-
const Z_FIXED = 4;
|
|
30
|
+
const Z_FIXED$1 = 4;
|
|
31
31
|
//const Z_DEFAULT_STRATEGY = 0;
|
|
32
32
|
|
|
33
33
|
/* Possible values of the data_type field (though see inflate()) */
|
|
34
34
|
const Z_BINARY = 0;
|
|
35
35
|
const Z_TEXT = 1;
|
|
36
36
|
//const Z_ASCII = 1; // = Z_TEXT
|
|
37
|
-
const Z_UNKNOWN = 2;
|
|
37
|
+
const Z_UNKNOWN$1 = 2;
|
|
38
38
|
|
|
39
39
|
/*============================================================================*/
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
function zero(buf) { let len = buf.length; while (--len >= 0) { buf[len] = 0; } }
|
|
42
|
+
function zero$1(buf) { let len = buf.length; while (--len >= 0) { buf[len] = 0; } }
|
|
43
43
|
|
|
44
44
|
// From zutil.h
|
|
45
45
|
|
|
@@ -48,8 +48,8 @@ const STATIC_TREES = 1;
|
|
|
48
48
|
const DYN_TREES = 2;
|
|
49
49
|
/* The three kinds of block type */
|
|
50
50
|
|
|
51
|
-
const MIN_MATCH = 3;
|
|
52
|
-
const MAX_MATCH = 258;
|
|
51
|
+
const MIN_MATCH$1 = 3;
|
|
52
|
+
const MAX_MATCH$1 = 258;
|
|
53
53
|
/* The minimum and maximum match lengths */
|
|
54
54
|
|
|
55
55
|
// From deflate.h
|
|
@@ -57,25 +57,25 @@ const MAX_MATCH = 258;
|
|
|
57
57
|
* Internal compression state.
|
|
58
58
|
*/
|
|
59
59
|
|
|
60
|
-
const LENGTH_CODES = 29;
|
|
60
|
+
const LENGTH_CODES$1 = 29;
|
|
61
61
|
/* number of length codes, not counting the special END_BLOCK code */
|
|
62
62
|
|
|
63
|
-
const LITERALS = 256;
|
|
63
|
+
const LITERALS$1 = 256;
|
|
64
64
|
/* number of literal bytes 0..255 */
|
|
65
65
|
|
|
66
|
-
const L_CODES = LITERALS + 1 + LENGTH_CODES;
|
|
66
|
+
const L_CODES$1 = LITERALS$1 + 1 + LENGTH_CODES$1;
|
|
67
67
|
/* number of Literal or Length codes, including the END_BLOCK code */
|
|
68
68
|
|
|
69
|
-
const D_CODES = 30;
|
|
69
|
+
const D_CODES$1 = 30;
|
|
70
70
|
/* number of distance codes */
|
|
71
71
|
|
|
72
|
-
const BL_CODES = 19;
|
|
72
|
+
const BL_CODES$1 = 19;
|
|
73
73
|
/* number of codes used to transfer the bit lengths */
|
|
74
74
|
|
|
75
|
-
const HEAP_SIZE = 2 * L_CODES + 1;
|
|
75
|
+
const HEAP_SIZE$1 = 2 * L_CODES$1 + 1;
|
|
76
76
|
/* maximum heap size */
|
|
77
77
|
|
|
78
|
-
const MAX_BITS = 15;
|
|
78
|
+
const MAX_BITS$1 = 15;
|
|
79
79
|
/* All codes must not exceed MAX_BITS bits */
|
|
80
80
|
|
|
81
81
|
const Buf_size = 16;
|
|
@@ -128,37 +128,37 @@ const bl_order =
|
|
|
128
128
|
const DIST_CODE_LEN = 512; /* see definition of array dist_code below */
|
|
129
129
|
|
|
130
130
|
// !!!! Use flat array instead of structure, Freq = i*2, Len = i*2+1
|
|
131
|
-
const static_ltree = new Array((L_CODES + 2) * 2);
|
|
132
|
-
zero(static_ltree);
|
|
131
|
+
const static_ltree = new Array((L_CODES$1 + 2) * 2);
|
|
132
|
+
zero$1(static_ltree);
|
|
133
133
|
/* The static literal tree. Since the bit lengths are imposed, there is no
|
|
134
134
|
* need for the L_CODES extra codes used during heap construction. However
|
|
135
135
|
* The codes 286 and 287 are needed to build a canonical tree (see _tr_init
|
|
136
136
|
* below).
|
|
137
137
|
*/
|
|
138
138
|
|
|
139
|
-
const static_dtree = new Array(D_CODES * 2);
|
|
140
|
-
zero(static_dtree);
|
|
139
|
+
const static_dtree = new Array(D_CODES$1 * 2);
|
|
140
|
+
zero$1(static_dtree);
|
|
141
141
|
/* The static distance tree. (Actually a trivial tree since all codes use
|
|
142
142
|
* 5 bits.)
|
|
143
143
|
*/
|
|
144
144
|
|
|
145
145
|
const _dist_code = new Array(DIST_CODE_LEN);
|
|
146
|
-
zero(_dist_code);
|
|
146
|
+
zero$1(_dist_code);
|
|
147
147
|
/* Distance codes. The first 256 values correspond to the distances
|
|
148
148
|
* 3 .. 258, the last 256 values correspond to the top 8 bits of
|
|
149
149
|
* the 15 bit distances.
|
|
150
150
|
*/
|
|
151
151
|
|
|
152
|
-
const _length_code = new Array(MAX_MATCH - MIN_MATCH + 1);
|
|
153
|
-
zero(_length_code);
|
|
152
|
+
const _length_code = new Array(MAX_MATCH$1 - MIN_MATCH$1 + 1);
|
|
153
|
+
zero$1(_length_code);
|
|
154
154
|
/* length code for each normalized match length (0 == MIN_MATCH) */
|
|
155
155
|
|
|
156
|
-
const base_length = new Array(LENGTH_CODES);
|
|
157
|
-
zero(base_length);
|
|
156
|
+
const base_length = new Array(LENGTH_CODES$1);
|
|
157
|
+
zero$1(base_length);
|
|
158
158
|
/* First normalized length for each code (0 = MIN_MATCH) */
|
|
159
159
|
|
|
160
|
-
const base_dist = new Array(D_CODES);
|
|
161
|
-
zero(base_dist);
|
|
160
|
+
const base_dist = new Array(D_CODES$1);
|
|
161
|
+
zero$1(base_dist);
|
|
162
162
|
/* First normalized distance for each code (0 = distance of 1) */
|
|
163
163
|
|
|
164
164
|
|
|
@@ -293,7 +293,7 @@ const gen_bitlen = (s, desc) =>
|
|
|
293
293
|
let f; /* frequency */
|
|
294
294
|
let overflow = 0; /* number of elements with bit length too large */
|
|
295
295
|
|
|
296
|
-
for (bits = 0; bits <= MAX_BITS; bits++) {
|
|
296
|
+
for (bits = 0; bits <= MAX_BITS$1; bits++) {
|
|
297
297
|
s.bl_count[bits] = 0;
|
|
298
298
|
}
|
|
299
299
|
|
|
@@ -302,7 +302,7 @@ const gen_bitlen = (s, desc) =>
|
|
|
302
302
|
*/
|
|
303
303
|
tree[s.heap[s.heap_max] * 2 + 1]/*.Len*/ = 0; /* root of the heap */
|
|
304
304
|
|
|
305
|
-
for (h = s.heap_max + 1; h < HEAP_SIZE; h++) {
|
|
305
|
+
for (h = s.heap_max + 1; h < HEAP_SIZE$1; h++) {
|
|
306
306
|
n = s.heap[h];
|
|
307
307
|
bits = tree[tree[n * 2 + 1]/*.Dad*/ * 2 + 1]/*.Len*/ + 1;
|
|
308
308
|
if (bits > max_length) {
|
|
@@ -377,7 +377,7 @@ const gen_codes = (tree, max_code, bl_count) =>
|
|
|
377
377
|
// int max_code; /* largest code with non zero frequency */
|
|
378
378
|
// ushf *bl_count; /* number of codes at each bit length */
|
|
379
379
|
{
|
|
380
|
-
const next_code = new Array(MAX_BITS + 1); /* next code value for each bit length */
|
|
380
|
+
const next_code = new Array(MAX_BITS$1 + 1); /* next code value for each bit length */
|
|
381
381
|
let code = 0; /* running code value */
|
|
382
382
|
let bits; /* bit index */
|
|
383
383
|
let n; /* code index */
|
|
@@ -385,7 +385,7 @@ const gen_codes = (tree, max_code, bl_count) =>
|
|
|
385
385
|
/* The distribution counts are first used to generate the code values
|
|
386
386
|
* without bit reversal.
|
|
387
387
|
*/
|
|
388
|
-
for (bits = 1; bits <= MAX_BITS; bits++) {
|
|
388
|
+
for (bits = 1; bits <= MAX_BITS$1; bits++) {
|
|
389
389
|
next_code[bits] = code = (code + bl_count[bits - 1]) << 1;
|
|
390
390
|
}
|
|
391
391
|
/* Check that the bit counts in bl_count are consistent. The last code
|
|
@@ -417,7 +417,7 @@ const tr_static_init = () => {
|
|
|
417
417
|
let length; /* length value */
|
|
418
418
|
let code; /* code value */
|
|
419
419
|
let dist; /* distance index */
|
|
420
|
-
const bl_count = new Array(MAX_BITS + 1);
|
|
420
|
+
const bl_count = new Array(MAX_BITS$1 + 1);
|
|
421
421
|
/* number of codes at each bit length for an optimal tree */
|
|
422
422
|
|
|
423
423
|
// do check in _tr_init()
|
|
@@ -434,7 +434,7 @@ const tr_static_init = () => {
|
|
|
434
434
|
|
|
435
435
|
/* Initialize the mapping length (0..255) -> length code (0..28) */
|
|
436
436
|
length = 0;
|
|
437
|
-
for (code = 0; code < LENGTH_CODES - 1; code++) {
|
|
437
|
+
for (code = 0; code < LENGTH_CODES$1 - 1; code++) {
|
|
438
438
|
base_length[code] = length;
|
|
439
439
|
for (n = 0; n < (1 << extra_lbits[code]); n++) {
|
|
440
440
|
_length_code[length++] = code;
|
|
@@ -457,7 +457,7 @@ const tr_static_init = () => {
|
|
|
457
457
|
}
|
|
458
458
|
//Assert (dist == 256, "tr_static_init: dist != 256");
|
|
459
459
|
dist >>= 7; /* from now on, all distances are divided by 128 */
|
|
460
|
-
for (; code < D_CODES; code++) {
|
|
460
|
+
for (; code < D_CODES$1; code++) {
|
|
461
461
|
base_dist[code] = dist << 7;
|
|
462
462
|
for (n = 0; n < (1 << (extra_dbits[code] - 7)); n++) {
|
|
463
463
|
_dist_code[256 + dist++] = code;
|
|
@@ -466,7 +466,7 @@ const tr_static_init = () => {
|
|
|
466
466
|
//Assert (dist == 256, "tr_static_init: 256+dist != 512");
|
|
467
467
|
|
|
468
468
|
/* Construct the codes of the static literal tree */
|
|
469
|
-
for (bits = 0; bits <= MAX_BITS; bits++) {
|
|
469
|
+
for (bits = 0; bits <= MAX_BITS$1; bits++) {
|
|
470
470
|
bl_count[bits] = 0;
|
|
471
471
|
}
|
|
472
472
|
|
|
@@ -495,18 +495,18 @@ const tr_static_init = () => {
|
|
|
495
495
|
* tree construction to get a canonical Huffman tree (longest code
|
|
496
496
|
* all ones)
|
|
497
497
|
*/
|
|
498
|
-
gen_codes(static_ltree, L_CODES + 1, bl_count);
|
|
498
|
+
gen_codes(static_ltree, L_CODES$1 + 1, bl_count);
|
|
499
499
|
|
|
500
500
|
/* The static distance tree is trivial: */
|
|
501
|
-
for (n = 0; n < D_CODES; n++) {
|
|
501
|
+
for (n = 0; n < D_CODES$1; n++) {
|
|
502
502
|
static_dtree[n * 2 + 1]/*.Len*/ = 5;
|
|
503
503
|
static_dtree[n * 2]/*.Code*/ = bi_reverse(n, 5);
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
// Now data ready and we can init static trees
|
|
507
|
-
static_l_desc = new StaticTreeDesc(static_ltree, extra_lbits, LITERALS + 1, L_CODES, MAX_BITS);
|
|
508
|
-
static_d_desc = new StaticTreeDesc(static_dtree, extra_dbits, 0, D_CODES, MAX_BITS);
|
|
509
|
-
static_bl_desc = new StaticTreeDesc(new Array(0), extra_blbits, 0, BL_CODES, MAX_BL_BITS);
|
|
507
|
+
static_l_desc = new StaticTreeDesc(static_ltree, extra_lbits, LITERALS$1 + 1, L_CODES$1, MAX_BITS$1);
|
|
508
|
+
static_d_desc = new StaticTreeDesc(static_dtree, extra_dbits, 0, D_CODES$1, MAX_BITS$1);
|
|
509
|
+
static_bl_desc = new StaticTreeDesc(new Array(0), extra_blbits, 0, BL_CODES$1, MAX_BL_BITS);
|
|
510
510
|
|
|
511
511
|
//static_init_done = true;
|
|
512
512
|
};
|
|
@@ -520,9 +520,9 @@ const init_block = (s) => {
|
|
|
520
520
|
let n; /* iterates over tree elements */
|
|
521
521
|
|
|
522
522
|
/* Initialize the trees. */
|
|
523
|
-
for (n = 0; n < L_CODES; n++) { s.dyn_ltree[n * 2]/*.Freq*/ = 0; }
|
|
524
|
-
for (n = 0; n < D_CODES; n++) { s.dyn_dtree[n * 2]/*.Freq*/ = 0; }
|
|
525
|
-
for (n = 0; n < BL_CODES; n++) { s.bl_tree[n * 2]/*.Freq*/ = 0; }
|
|
523
|
+
for (n = 0; n < L_CODES$1; n++) { s.dyn_ltree[n * 2]/*.Freq*/ = 0; }
|
|
524
|
+
for (n = 0; n < D_CODES$1; n++) { s.dyn_dtree[n * 2]/*.Freq*/ = 0; }
|
|
525
|
+
for (n = 0; n < BL_CODES$1; n++) { s.bl_tree[n * 2]/*.Freq*/ = 0; }
|
|
526
526
|
|
|
527
527
|
s.dyn_ltree[END_BLOCK * 2]/*.Freq*/ = 1;
|
|
528
528
|
s.opt_len = s.static_len = 0;
|
|
@@ -642,7 +642,7 @@ const compress_block = (s, ltree, dtree) =>
|
|
|
642
642
|
} else {
|
|
643
643
|
/* Here, lc is the match length - MIN_MATCH */
|
|
644
644
|
code = _length_code[lc];
|
|
645
|
-
send_code(s, code + LITERALS + 1, ltree); /* send the length code */
|
|
645
|
+
send_code(s, code + LITERALS$1 + 1, ltree); /* send the length code */
|
|
646
646
|
extra = extra_lbits[code];
|
|
647
647
|
if (extra !== 0) {
|
|
648
648
|
lc -= base_length[code];
|
|
@@ -696,7 +696,7 @@ const build_tree = (s, desc) =>
|
|
|
696
696
|
* heap[0] is not used.
|
|
697
697
|
*/
|
|
698
698
|
s.heap_len = 0;
|
|
699
|
-
s.heap_max = HEAP_SIZE;
|
|
699
|
+
s.heap_max = HEAP_SIZE$1;
|
|
700
700
|
|
|
701
701
|
for (n = 0; n < elems; n++) {
|
|
702
702
|
if (tree[n * 2]/*.Freq*/ !== 0) {
|
|
@@ -930,7 +930,7 @@ const build_bl_tree = (s) => {
|
|
|
930
930
|
* requires that at least 4 bit length codes be sent. (appnote.txt says
|
|
931
931
|
* 3 but the actual value used is 4.)
|
|
932
932
|
*/
|
|
933
|
-
for (max_blindex = BL_CODES - 1; max_blindex >= 3; max_blindex--) {
|
|
933
|
+
for (max_blindex = BL_CODES$1 - 1; max_blindex >= 3; max_blindex--) {
|
|
934
934
|
if (s.bl_tree[bl_order[max_blindex] * 2 + 1]/*.Len*/ !== 0) {
|
|
935
935
|
break;
|
|
936
936
|
}
|
|
@@ -1009,7 +1009,7 @@ const detect_data_type = (s) => {
|
|
|
1009
1009
|
s.dyn_ltree[13 * 2]/*.Freq*/ !== 0) {
|
|
1010
1010
|
return Z_TEXT;
|
|
1011
1011
|
}
|
|
1012
|
-
for (n = 32; n < LITERALS; n++) {
|
|
1012
|
+
for (n = 32; n < LITERALS$1; n++) {
|
|
1013
1013
|
if (s.dyn_ltree[n * 2]/*.Freq*/ !== 0) {
|
|
1014
1014
|
return Z_TEXT;
|
|
1015
1015
|
}
|
|
@@ -1027,7 +1027,7 @@ let static_init_done = false;
|
|
|
1027
1027
|
/* ===========================================================================
|
|
1028
1028
|
* Initialize the tree data structures for a new zlib stream.
|
|
1029
1029
|
*/
|
|
1030
|
-
const _tr_init = (s) =>
|
|
1030
|
+
const _tr_init$1 = (s) =>
|
|
1031
1031
|
{
|
|
1032
1032
|
|
|
1033
1033
|
if (!static_init_done) {
|
|
@@ -1050,7 +1050,7 @@ const _tr_init = (s) =>
|
|
|
1050
1050
|
/* ===========================================================================
|
|
1051
1051
|
* Send a stored block
|
|
1052
1052
|
*/
|
|
1053
|
-
const _tr_stored_block = (s, buf, stored_len, last) =>
|
|
1053
|
+
const _tr_stored_block$1 = (s, buf, stored_len, last) =>
|
|
1054
1054
|
//DeflateState *s;
|
|
1055
1055
|
//charf *buf; /* input block */
|
|
1056
1056
|
//ulg stored_len; /* length of input block */
|
|
@@ -1065,7 +1065,7 @@ const _tr_stored_block = (s, buf, stored_len, last) =>
|
|
|
1065
1065
|
* Send one empty static block to give enough lookahead for inflate.
|
|
1066
1066
|
* This takes 10 bits, of which 7 may remain in the bit buffer.
|
|
1067
1067
|
*/
|
|
1068
|
-
const _tr_align = (s) => {
|
|
1068
|
+
const _tr_align$1 = (s) => {
|
|
1069
1069
|
send_bits(s, STATIC_TREES << 1, 3);
|
|
1070
1070
|
send_code(s, END_BLOCK, static_ltree);
|
|
1071
1071
|
bi_flush(s);
|
|
@@ -1076,7 +1076,7 @@ const _tr_align = (s) => {
|
|
|
1076
1076
|
* Determine the best encoding for the current block: dynamic trees, static
|
|
1077
1077
|
* trees or store, and output the encoded block to the zip file.
|
|
1078
1078
|
*/
|
|
1079
|
-
const _tr_flush_block = (s, buf, stored_len, last) =>
|
|
1079
|
+
const _tr_flush_block$1 = (s, buf, stored_len, last) =>
|
|
1080
1080
|
//DeflateState *s;
|
|
1081
1081
|
//charf *buf; /* input block, or NULL if too old */
|
|
1082
1082
|
//ulg stored_len; /* length of input block */
|
|
@@ -1089,7 +1089,7 @@ const _tr_flush_block = (s, buf, stored_len, last) =>
|
|
|
1089
1089
|
if (s.level > 0) {
|
|
1090
1090
|
|
|
1091
1091
|
/* Check if the file is binary or text */
|
|
1092
|
-
if (s.strm.data_type === Z_UNKNOWN) {
|
|
1092
|
+
if (s.strm.data_type === Z_UNKNOWN$1) {
|
|
1093
1093
|
s.strm.data_type = detect_data_type(s);
|
|
1094
1094
|
}
|
|
1095
1095
|
|
|
@@ -1134,9 +1134,9 @@ const _tr_flush_block = (s, buf, stored_len, last) =>
|
|
|
1134
1134
|
* successful. If LIT_BUFSIZE <= WSIZE, it is never too late to
|
|
1135
1135
|
* transform a block into a stored block.
|
|
1136
1136
|
*/
|
|
1137
|
-
_tr_stored_block(s, buf, stored_len, last);
|
|
1137
|
+
_tr_stored_block$1(s, buf, stored_len, last);
|
|
1138
1138
|
|
|
1139
|
-
} else if (s.strategy === Z_FIXED || static_lenb === opt_lenb) {
|
|
1139
|
+
} else if (s.strategy === Z_FIXED$1 || static_lenb === opt_lenb) {
|
|
1140
1140
|
|
|
1141
1141
|
send_bits(s, (STATIC_TREES << 1) + (last ? 1 : 0), 3);
|
|
1142
1142
|
compress_block(s, static_ltree, static_dtree);
|
|
@@ -1163,7 +1163,7 @@ const _tr_flush_block = (s, buf, stored_len, last) =>
|
|
|
1163
1163
|
* Save the match info and tally the frequency counts. Return true if
|
|
1164
1164
|
* the current block must be flushed.
|
|
1165
1165
|
*/
|
|
1166
|
-
const _tr_tally = (s, dist, lc) =>
|
|
1166
|
+
const _tr_tally$1 = (s, dist, lc) =>
|
|
1167
1167
|
// deflate_state *s;
|
|
1168
1168
|
// unsigned dist; /* distance of matched string */
|
|
1169
1169
|
// unsigned lc; /* match length-MIN_MATCH or unmatched char (if dist==0) */
|
|
@@ -1187,7 +1187,7 @@ const _tr_tally = (s, dist, lc) =>
|
|
|
1187
1187
|
// (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&
|
|
1188
1188
|
// (ush)d_code(dist) < (ush)D_CODES, "_tr_tally: bad match");
|
|
1189
1189
|
|
|
1190
|
-
s.dyn_ltree[(_length_code[lc] + LITERALS + 1) * 2]/*.Freq*/++;
|
|
1190
|
+
s.dyn_ltree[(_length_code[lc] + LITERALS$1 + 1) * 2]/*.Freq*/++;
|
|
1191
1191
|
s.dyn_dtree[d_code(dist) * 2]/*.Freq*/++;
|
|
1192
1192
|
}
|
|
1193
1193
|
|
|
@@ -1221,11 +1221,11 @@ const _tr_tally = (s, dist, lc) =>
|
|
|
1221
1221
|
*/
|
|
1222
1222
|
};
|
|
1223
1223
|
|
|
1224
|
-
var _tr_init_1 = _tr_init;
|
|
1225
|
-
var _tr_stored_block_1 = _tr_stored_block;
|
|
1226
|
-
var _tr_flush_block_1 = _tr_flush_block;
|
|
1227
|
-
var _tr_tally_1 = _tr_tally;
|
|
1228
|
-
var _tr_align_1 = _tr_align;
|
|
1224
|
+
var _tr_init_1 = _tr_init$1;
|
|
1225
|
+
var _tr_stored_block_1 = _tr_stored_block$1;
|
|
1226
|
+
var _tr_flush_block_1 = _tr_flush_block$1;
|
|
1227
|
+
var _tr_tally_1 = _tr_tally$1;
|
|
1228
|
+
var _tr_align_1 = _tr_align$1;
|
|
1229
1229
|
|
|
1230
1230
|
var trees = {
|
|
1231
1231
|
_tr_init: _tr_init_1,
|
|
@@ -1393,7 +1393,7 @@ var messages = {
|
|
|
1393
1393
|
// misrepresented as being the original software.
|
|
1394
1394
|
// 3. This notice may not be removed or altered from any source distribution.
|
|
1395
1395
|
|
|
1396
|
-
var constants = {
|
|
1396
|
+
var constants$2 = {
|
|
1397
1397
|
|
|
1398
1398
|
/* Allowed flush values; see deflate() and inflate() below for details */
|
|
1399
1399
|
Z_NO_FLUSH: 0,
|
|
@@ -1460,7 +1460,7 @@ var constants = {
|
|
|
1460
1460
|
// misrepresented as being the original software.
|
|
1461
1461
|
// 3. This notice may not be removed or altered from any source distribution.
|
|
1462
1462
|
|
|
1463
|
-
const { _tr_init
|
|
1463
|
+
const { _tr_init, _tr_stored_block, _tr_flush_block, _tr_tally, _tr_align } = trees;
|
|
1464
1464
|
|
|
1465
1465
|
|
|
1466
1466
|
|
|
@@ -1469,42 +1469,42 @@ const { _tr_init: _tr_init$1, _tr_stored_block: _tr_stored_block$1, _tr_flush_bl
|
|
|
1469
1469
|
/* ===========================================================================*/
|
|
1470
1470
|
|
|
1471
1471
|
const {
|
|
1472
|
-
Z_NO_FLUSH, Z_PARTIAL_FLUSH, Z_FULL_FLUSH, Z_FINISH, Z_BLOCK,
|
|
1473
|
-
Z_OK, Z_STREAM_END, Z_STREAM_ERROR, Z_DATA_ERROR, Z_BUF_ERROR,
|
|
1474
|
-
Z_DEFAULT_COMPRESSION,
|
|
1475
|
-
Z_FILTERED, Z_HUFFMAN_ONLY, Z_RLE, Z_FIXED:
|
|
1476
|
-
Z_UNKNOWN
|
|
1477
|
-
Z_DEFLATED
|
|
1478
|
-
} = constants;
|
|
1472
|
+
Z_NO_FLUSH: Z_NO_FLUSH$2, Z_PARTIAL_FLUSH, Z_FULL_FLUSH: Z_FULL_FLUSH$1, Z_FINISH: Z_FINISH$3, Z_BLOCK: Z_BLOCK$1,
|
|
1473
|
+
Z_OK: Z_OK$3, Z_STREAM_END: Z_STREAM_END$3, Z_STREAM_ERROR: Z_STREAM_ERROR$2, Z_DATA_ERROR: Z_DATA_ERROR$2, Z_BUF_ERROR: Z_BUF_ERROR$1,
|
|
1474
|
+
Z_DEFAULT_COMPRESSION: Z_DEFAULT_COMPRESSION$1,
|
|
1475
|
+
Z_FILTERED, Z_HUFFMAN_ONLY, Z_RLE, Z_FIXED, Z_DEFAULT_STRATEGY: Z_DEFAULT_STRATEGY$1,
|
|
1476
|
+
Z_UNKNOWN,
|
|
1477
|
+
Z_DEFLATED: Z_DEFLATED$2
|
|
1478
|
+
} = constants$2;
|
|
1479
1479
|
|
|
1480
1480
|
/*============================================================================*/
|
|
1481
1481
|
|
|
1482
1482
|
|
|
1483
1483
|
const MAX_MEM_LEVEL = 9;
|
|
1484
1484
|
/* Maximum value for memLevel in deflateInit2 */
|
|
1485
|
-
const MAX_WBITS = 15;
|
|
1485
|
+
const MAX_WBITS$1 = 15;
|
|
1486
1486
|
/* 32K LZ77 window */
|
|
1487
1487
|
const DEF_MEM_LEVEL = 8;
|
|
1488
1488
|
|
|
1489
1489
|
|
|
1490
|
-
const LENGTH_CODES
|
|
1490
|
+
const LENGTH_CODES = 29;
|
|
1491
1491
|
/* number of length codes, not counting the special END_BLOCK code */
|
|
1492
|
-
const LITERALS
|
|
1492
|
+
const LITERALS = 256;
|
|
1493
1493
|
/* number of literal bytes 0..255 */
|
|
1494
|
-
const L_CODES
|
|
1494
|
+
const L_CODES = LITERALS + 1 + LENGTH_CODES;
|
|
1495
1495
|
/* number of Literal or Length codes, including the END_BLOCK code */
|
|
1496
|
-
const D_CODES
|
|
1496
|
+
const D_CODES = 30;
|
|
1497
1497
|
/* number of distance codes */
|
|
1498
|
-
const BL_CODES
|
|
1498
|
+
const BL_CODES = 19;
|
|
1499
1499
|
/* number of codes used to transfer the bit lengths */
|
|
1500
|
-
const HEAP_SIZE
|
|
1500
|
+
const HEAP_SIZE = 2 * L_CODES + 1;
|
|
1501
1501
|
/* maximum heap size */
|
|
1502
|
-
const MAX_BITS
|
|
1502
|
+
const MAX_BITS = 15;
|
|
1503
1503
|
/* All codes must not exceed MAX_BITS bits */
|
|
1504
1504
|
|
|
1505
|
-
const MIN_MATCH
|
|
1506
|
-
const MAX_MATCH
|
|
1507
|
-
const MIN_LOOKAHEAD = (MAX_MATCH
|
|
1505
|
+
const MIN_MATCH = 3;
|
|
1506
|
+
const MAX_MATCH = 258;
|
|
1507
|
+
const MIN_LOOKAHEAD = (MAX_MATCH + MIN_MATCH + 1);
|
|
1508
1508
|
|
|
1509
1509
|
const PRESET_DICT = 0x20;
|
|
1510
1510
|
|
|
@@ -1532,7 +1532,7 @@ const rank = (f) => {
|
|
|
1532
1532
|
return ((f) << 1) - ((f) > 4 ? 9 : 0);
|
|
1533
1533
|
};
|
|
1534
1534
|
|
|
1535
|
-
const zero
|
|
1535
|
+
const zero = (buf) => {
|
|
1536
1536
|
let len = buf.length; while (--len >= 0) { buf[len] = 0; }
|
|
1537
1537
|
};
|
|
1538
1538
|
|
|
@@ -1573,7 +1573,7 @@ const flush_pending = (strm) => {
|
|
|
1573
1573
|
|
|
1574
1574
|
|
|
1575
1575
|
const flush_block_only = (s, last) => {
|
|
1576
|
-
_tr_flush_block
|
|
1576
|
+
_tr_flush_block(s, (s.block_start >= 0 ? s.block_start : -1), s.strstart - s.block_start, last);
|
|
1577
1577
|
s.block_start = s.strstart;
|
|
1578
1578
|
flush_pending(s.strm);
|
|
1579
1579
|
};
|
|
@@ -1660,7 +1660,7 @@ const longest_match = (s, cur_match) => {
|
|
|
1660
1660
|
* we prevent matches with the string of window index 0.
|
|
1661
1661
|
*/
|
|
1662
1662
|
|
|
1663
|
-
const strend = s.strstart + MAX_MATCH
|
|
1663
|
+
const strend = s.strstart + MAX_MATCH;
|
|
1664
1664
|
let scan_end1 = _win[scan + best_len - 1];
|
|
1665
1665
|
let scan_end = _win[scan + best_len];
|
|
1666
1666
|
|
|
@@ -1723,8 +1723,8 @@ const longest_match = (s, cur_match) => {
|
|
|
1723
1723
|
|
|
1724
1724
|
// Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
|
|
1725
1725
|
|
|
1726
|
-
len = MAX_MATCH
|
|
1727
|
-
scan = strend - MAX_MATCH
|
|
1726
|
+
len = MAX_MATCH - (strend - scan);
|
|
1727
|
+
scan = strend - MAX_MATCH;
|
|
1728
1728
|
|
|
1729
1729
|
if (len > best_len) {
|
|
1730
1730
|
s.match_start = cur_match;
|
|
@@ -1838,7 +1838,7 @@ const fill_window = (s) => {
|
|
|
1838
1838
|
s.lookahead += n;
|
|
1839
1839
|
|
|
1840
1840
|
/* Initialize the hash value now that we have some input: */
|
|
1841
|
-
if (s.lookahead + s.insert >= MIN_MATCH
|
|
1841
|
+
if (s.lookahead + s.insert >= MIN_MATCH) {
|
|
1842
1842
|
str = s.strstart - s.insert;
|
|
1843
1843
|
s.ins_h = s.window[str];
|
|
1844
1844
|
|
|
@@ -1849,13 +1849,13 @@ const fill_window = (s) => {
|
|
|
1849
1849
|
//#endif
|
|
1850
1850
|
while (s.insert) {
|
|
1851
1851
|
/* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */
|
|
1852
|
-
s.ins_h = HASH(s, s.ins_h, s.window[str + MIN_MATCH
|
|
1852
|
+
s.ins_h = HASH(s, s.ins_h, s.window[str + MIN_MATCH - 1]);
|
|
1853
1853
|
|
|
1854
1854
|
s.prev[str & s.w_mask] = s.head[s.ins_h];
|
|
1855
1855
|
s.head[s.ins_h] = str;
|
|
1856
1856
|
str++;
|
|
1857
1857
|
s.insert--;
|
|
1858
|
-
if (s.lookahead + s.insert < MIN_MATCH
|
|
1858
|
+
if (s.lookahead + s.insert < MIN_MATCH) {
|
|
1859
1859
|
break;
|
|
1860
1860
|
}
|
|
1861
1861
|
}
|
|
@@ -1937,7 +1937,7 @@ const deflate_stored = (s, flush) => {
|
|
|
1937
1937
|
// }
|
|
1938
1938
|
|
|
1939
1939
|
fill_window(s);
|
|
1940
|
-
if (s.lookahead === 0 && flush === Z_NO_FLUSH) {
|
|
1940
|
+
if (s.lookahead === 0 && flush === Z_NO_FLUSH$2) {
|
|
1941
1941
|
return BS_NEED_MORE;
|
|
1942
1942
|
}
|
|
1943
1943
|
|
|
@@ -1983,7 +1983,7 @@ const deflate_stored = (s, flush) => {
|
|
|
1983
1983
|
|
|
1984
1984
|
s.insert = 0;
|
|
1985
1985
|
|
|
1986
|
-
if (flush === Z_FINISH) {
|
|
1986
|
+
if (flush === Z_FINISH$3) {
|
|
1987
1987
|
/*** FLUSH_BLOCK(s, 1); ***/
|
|
1988
1988
|
flush_block_only(s, true);
|
|
1989
1989
|
if (s.strm.avail_out === 0) {
|
|
@@ -2025,7 +2025,7 @@ const deflate_fast = (s, flush) => {
|
|
|
2025
2025
|
*/
|
|
2026
2026
|
if (s.lookahead < MIN_LOOKAHEAD) {
|
|
2027
2027
|
fill_window(s);
|
|
2028
|
-
if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) {
|
|
2028
|
+
if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH$2) {
|
|
2029
2029
|
return BS_NEED_MORE;
|
|
2030
2030
|
}
|
|
2031
2031
|
if (s.lookahead === 0) {
|
|
@@ -2037,9 +2037,9 @@ const deflate_fast = (s, flush) => {
|
|
|
2037
2037
|
* dictionary, and set hash_head to the head of the hash chain:
|
|
2038
2038
|
*/
|
|
2039
2039
|
hash_head = 0/*NIL*/;
|
|
2040
|
-
if (s.lookahead >= MIN_MATCH
|
|
2040
|
+
if (s.lookahead >= MIN_MATCH) {
|
|
2041
2041
|
/*** INSERT_STRING(s, s.strstart, hash_head); ***/
|
|
2042
|
-
s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH
|
|
2042
|
+
s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH - 1]);
|
|
2043
2043
|
hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
|
|
2044
2044
|
s.head[s.ins_h] = s.strstart;
|
|
2045
2045
|
/***/
|
|
@@ -2056,24 +2056,24 @@ const deflate_fast = (s, flush) => {
|
|
|
2056
2056
|
s.match_length = longest_match(s, hash_head);
|
|
2057
2057
|
/* longest_match() sets match_start */
|
|
2058
2058
|
}
|
|
2059
|
-
if (s.match_length >= MIN_MATCH
|
|
2059
|
+
if (s.match_length >= MIN_MATCH) {
|
|
2060
2060
|
// check_match(s, s.strstart, s.match_start, s.match_length); // for debug only
|
|
2061
2061
|
|
|
2062
2062
|
/*** _tr_tally_dist(s, s.strstart - s.match_start,
|
|
2063
2063
|
s.match_length - MIN_MATCH, bflush); ***/
|
|
2064
|
-
bflush = _tr_tally
|
|
2064
|
+
bflush = _tr_tally(s, s.strstart - s.match_start, s.match_length - MIN_MATCH);
|
|
2065
2065
|
|
|
2066
2066
|
s.lookahead -= s.match_length;
|
|
2067
2067
|
|
|
2068
2068
|
/* Insert new strings in the hash table only if the match length
|
|
2069
2069
|
* is not too large. This saves time but degrades compression.
|
|
2070
2070
|
*/
|
|
2071
|
-
if (s.match_length <= s.max_lazy_match/*max_insert_length*/ && s.lookahead >= MIN_MATCH
|
|
2071
|
+
if (s.match_length <= s.max_lazy_match/*max_insert_length*/ && s.lookahead >= MIN_MATCH) {
|
|
2072
2072
|
s.match_length--; /* string at strstart already in table */
|
|
2073
2073
|
do {
|
|
2074
2074
|
s.strstart++;
|
|
2075
2075
|
/*** INSERT_STRING(s, s.strstart, hash_head); ***/
|
|
2076
|
-
s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH
|
|
2076
|
+
s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH - 1]);
|
|
2077
2077
|
hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
|
|
2078
2078
|
s.head[s.ins_h] = s.strstart;
|
|
2079
2079
|
/***/
|
|
@@ -2101,7 +2101,7 @@ const deflate_fast = (s, flush) => {
|
|
|
2101
2101
|
/* No match, output a literal byte */
|
|
2102
2102
|
//Tracevv((stderr,"%c", s.window[s.strstart]));
|
|
2103
2103
|
/*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
|
|
2104
|
-
bflush = _tr_tally
|
|
2104
|
+
bflush = _tr_tally(s, 0, s.window[s.strstart]);
|
|
2105
2105
|
|
|
2106
2106
|
s.lookahead--;
|
|
2107
2107
|
s.strstart++;
|
|
@@ -2115,8 +2115,8 @@ const deflate_fast = (s, flush) => {
|
|
|
2115
2115
|
/***/
|
|
2116
2116
|
}
|
|
2117
2117
|
}
|
|
2118
|
-
s.insert = ((s.strstart < (MIN_MATCH
|
|
2119
|
-
if (flush === Z_FINISH) {
|
|
2118
|
+
s.insert = ((s.strstart < (MIN_MATCH - 1)) ? s.strstart : MIN_MATCH - 1);
|
|
2119
|
+
if (flush === Z_FINISH$3) {
|
|
2120
2120
|
/*** FLUSH_BLOCK(s, 1); ***/
|
|
2121
2121
|
flush_block_only(s, true);
|
|
2122
2122
|
if (s.strm.avail_out === 0) {
|
|
@@ -2157,7 +2157,7 @@ const deflate_slow = (s, flush) => {
|
|
|
2157
2157
|
*/
|
|
2158
2158
|
if (s.lookahead < MIN_LOOKAHEAD) {
|
|
2159
2159
|
fill_window(s);
|
|
2160
|
-
if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) {
|
|
2160
|
+
if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH$2) {
|
|
2161
2161
|
return BS_NEED_MORE;
|
|
2162
2162
|
}
|
|
2163
2163
|
if (s.lookahead === 0) { break; } /* flush the current block */
|
|
@@ -2167,9 +2167,9 @@ const deflate_slow = (s, flush) => {
|
|
|
2167
2167
|
* dictionary, and set hash_head to the head of the hash chain:
|
|
2168
2168
|
*/
|
|
2169
2169
|
hash_head = 0/*NIL*/;
|
|
2170
|
-
if (s.lookahead >= MIN_MATCH
|
|
2170
|
+
if (s.lookahead >= MIN_MATCH) {
|
|
2171
2171
|
/*** INSERT_STRING(s, s.strstart, hash_head); ***/
|
|
2172
|
-
s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH
|
|
2172
|
+
s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH - 1]);
|
|
2173
2173
|
hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
|
|
2174
2174
|
s.head[s.ins_h] = s.strstart;
|
|
2175
2175
|
/***/
|
|
@@ -2179,7 +2179,7 @@ const deflate_slow = (s, flush) => {
|
|
|
2179
2179
|
*/
|
|
2180
2180
|
s.prev_length = s.match_length;
|
|
2181
2181
|
s.prev_match = s.match_start;
|
|
2182
|
-
s.match_length = MIN_MATCH
|
|
2182
|
+
s.match_length = MIN_MATCH - 1;
|
|
2183
2183
|
|
|
2184
2184
|
if (hash_head !== 0/*NIL*/ && s.prev_length < s.max_lazy_match &&
|
|
2185
2185
|
s.strstart - hash_head <= (s.w_size - MIN_LOOKAHEAD)/*MAX_DIST(s)*/) {
|
|
@@ -2191,26 +2191,26 @@ const deflate_slow = (s, flush) => {
|
|
|
2191
2191
|
/* longest_match() sets match_start */
|
|
2192
2192
|
|
|
2193
2193
|
if (s.match_length <= 5 &&
|
|
2194
|
-
(s.strategy === Z_FILTERED || (s.match_length === MIN_MATCH
|
|
2194
|
+
(s.strategy === Z_FILTERED || (s.match_length === MIN_MATCH && s.strstart - s.match_start > 4096/*TOO_FAR*/))) {
|
|
2195
2195
|
|
|
2196
2196
|
/* If prev_match is also MIN_MATCH, match_start is garbage
|
|
2197
2197
|
* but we will ignore the current match anyway.
|
|
2198
2198
|
*/
|
|
2199
|
-
s.match_length = MIN_MATCH
|
|
2199
|
+
s.match_length = MIN_MATCH - 1;
|
|
2200
2200
|
}
|
|
2201
2201
|
}
|
|
2202
2202
|
/* If there was a match at the previous step and the current
|
|
2203
2203
|
* match is not better, output the previous match:
|
|
2204
2204
|
*/
|
|
2205
|
-
if (s.prev_length >= MIN_MATCH
|
|
2206
|
-
max_insert = s.strstart + s.lookahead - MIN_MATCH
|
|
2205
|
+
if (s.prev_length >= MIN_MATCH && s.match_length <= s.prev_length) {
|
|
2206
|
+
max_insert = s.strstart + s.lookahead - MIN_MATCH;
|
|
2207
2207
|
/* Do not insert strings in hash table beyond this. */
|
|
2208
2208
|
|
|
2209
2209
|
//check_match(s, s.strstart-1, s.prev_match, s.prev_length);
|
|
2210
2210
|
|
|
2211
2211
|
/***_tr_tally_dist(s, s.strstart - 1 - s.prev_match,
|
|
2212
2212
|
s.prev_length - MIN_MATCH, bflush);***/
|
|
2213
|
-
bflush = _tr_tally
|
|
2213
|
+
bflush = _tr_tally(s, s.strstart - 1 - s.prev_match, s.prev_length - MIN_MATCH);
|
|
2214
2214
|
/* Insert in hash table all strings up to the end of the match.
|
|
2215
2215
|
* strstart-1 and strstart are already inserted. If there is not
|
|
2216
2216
|
* enough lookahead, the last two strings are not inserted in
|
|
@@ -2221,14 +2221,14 @@ const deflate_slow = (s, flush) => {
|
|
|
2221
2221
|
do {
|
|
2222
2222
|
if (++s.strstart <= max_insert) {
|
|
2223
2223
|
/*** INSERT_STRING(s, s.strstart, hash_head); ***/
|
|
2224
|
-
s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH
|
|
2224
|
+
s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH - 1]);
|
|
2225
2225
|
hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];
|
|
2226
2226
|
s.head[s.ins_h] = s.strstart;
|
|
2227
2227
|
/***/
|
|
2228
2228
|
}
|
|
2229
2229
|
} while (--s.prev_length !== 0);
|
|
2230
2230
|
s.match_available = 0;
|
|
2231
|
-
s.match_length = MIN_MATCH
|
|
2231
|
+
s.match_length = MIN_MATCH - 1;
|
|
2232
2232
|
s.strstart++;
|
|
2233
2233
|
|
|
2234
2234
|
if (bflush) {
|
|
@@ -2247,7 +2247,7 @@ const deflate_slow = (s, flush) => {
|
|
|
2247
2247
|
*/
|
|
2248
2248
|
//Tracevv((stderr,"%c", s->window[s->strstart-1]));
|
|
2249
2249
|
/*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/
|
|
2250
|
-
bflush = _tr_tally
|
|
2250
|
+
bflush = _tr_tally(s, 0, s.window[s.strstart - 1]);
|
|
2251
2251
|
|
|
2252
2252
|
if (bflush) {
|
|
2253
2253
|
/*** FLUSH_BLOCK_ONLY(s, 0) ***/
|
|
@@ -2272,12 +2272,12 @@ const deflate_slow = (s, flush) => {
|
|
|
2272
2272
|
if (s.match_available) {
|
|
2273
2273
|
//Tracevv((stderr,"%c", s->window[s->strstart-1]));
|
|
2274
2274
|
/*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/
|
|
2275
|
-
bflush = _tr_tally
|
|
2275
|
+
bflush = _tr_tally(s, 0, s.window[s.strstart - 1]);
|
|
2276
2276
|
|
|
2277
2277
|
s.match_available = 0;
|
|
2278
2278
|
}
|
|
2279
|
-
s.insert = s.strstart < MIN_MATCH
|
|
2280
|
-
if (flush === Z_FINISH) {
|
|
2279
|
+
s.insert = s.strstart < MIN_MATCH - 1 ? s.strstart : MIN_MATCH - 1;
|
|
2280
|
+
if (flush === Z_FINISH$3) {
|
|
2281
2281
|
/*** FLUSH_BLOCK(s, 1); ***/
|
|
2282
2282
|
flush_block_only(s, true);
|
|
2283
2283
|
if (s.strm.avail_out === 0) {
|
|
@@ -2317,9 +2317,9 @@ const deflate_rle = (s, flush) => {
|
|
|
2317
2317
|
* at the end of the input file. We need MAX_MATCH bytes
|
|
2318
2318
|
* for the longest run, plus one for the unrolled loop.
|
|
2319
2319
|
*/
|
|
2320
|
-
if (s.lookahead <= MAX_MATCH
|
|
2320
|
+
if (s.lookahead <= MAX_MATCH) {
|
|
2321
2321
|
fill_window(s);
|
|
2322
|
-
if (s.lookahead <= MAX_MATCH
|
|
2322
|
+
if (s.lookahead <= MAX_MATCH && flush === Z_NO_FLUSH$2) {
|
|
2323
2323
|
return BS_NEED_MORE;
|
|
2324
2324
|
}
|
|
2325
2325
|
if (s.lookahead === 0) { break; } /* flush the current block */
|
|
@@ -2327,11 +2327,11 @@ const deflate_rle = (s, flush) => {
|
|
|
2327
2327
|
|
|
2328
2328
|
/* See how many times the previous byte repeats */
|
|
2329
2329
|
s.match_length = 0;
|
|
2330
|
-
if (s.lookahead >= MIN_MATCH
|
|
2330
|
+
if (s.lookahead >= MIN_MATCH && s.strstart > 0) {
|
|
2331
2331
|
scan = s.strstart - 1;
|
|
2332
2332
|
prev = _win[scan];
|
|
2333
2333
|
if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {
|
|
2334
|
-
strend = s.strstart + MAX_MATCH
|
|
2334
|
+
strend = s.strstart + MAX_MATCH;
|
|
2335
2335
|
do {
|
|
2336
2336
|
/*jshint noempty:false*/
|
|
2337
2337
|
} while (prev === _win[++scan] && prev === _win[++scan] &&
|
|
@@ -2339,7 +2339,7 @@ const deflate_rle = (s, flush) => {
|
|
|
2339
2339
|
prev === _win[++scan] && prev === _win[++scan] &&
|
|
2340
2340
|
prev === _win[++scan] && prev === _win[++scan] &&
|
|
2341
2341
|
scan < strend);
|
|
2342
|
-
s.match_length = MAX_MATCH
|
|
2342
|
+
s.match_length = MAX_MATCH - (strend - scan);
|
|
2343
2343
|
if (s.match_length > s.lookahead) {
|
|
2344
2344
|
s.match_length = s.lookahead;
|
|
2345
2345
|
}
|
|
@@ -2348,11 +2348,11 @@ const deflate_rle = (s, flush) => {
|
|
|
2348
2348
|
}
|
|
2349
2349
|
|
|
2350
2350
|
/* Emit match if have run of MIN_MATCH or longer, else emit literal */
|
|
2351
|
-
if (s.match_length >= MIN_MATCH
|
|
2351
|
+
if (s.match_length >= MIN_MATCH) {
|
|
2352
2352
|
//check_match(s, s.strstart, s.strstart - 1, s.match_length);
|
|
2353
2353
|
|
|
2354
2354
|
/*** _tr_tally_dist(s, 1, s.match_length - MIN_MATCH, bflush); ***/
|
|
2355
|
-
bflush = _tr_tally
|
|
2355
|
+
bflush = _tr_tally(s, 1, s.match_length - MIN_MATCH);
|
|
2356
2356
|
|
|
2357
2357
|
s.lookahead -= s.match_length;
|
|
2358
2358
|
s.strstart += s.match_length;
|
|
@@ -2361,7 +2361,7 @@ const deflate_rle = (s, flush) => {
|
|
|
2361
2361
|
/* No match, output a literal byte */
|
|
2362
2362
|
//Tracevv((stderr,"%c", s->window[s->strstart]));
|
|
2363
2363
|
/*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
|
|
2364
|
-
bflush = _tr_tally
|
|
2364
|
+
bflush = _tr_tally(s, 0, s.window[s.strstart]);
|
|
2365
2365
|
|
|
2366
2366
|
s.lookahead--;
|
|
2367
2367
|
s.strstart++;
|
|
@@ -2376,7 +2376,7 @@ const deflate_rle = (s, flush) => {
|
|
|
2376
2376
|
}
|
|
2377
2377
|
}
|
|
2378
2378
|
s.insert = 0;
|
|
2379
|
-
if (flush === Z_FINISH) {
|
|
2379
|
+
if (flush === Z_FINISH$3) {
|
|
2380
2380
|
/*** FLUSH_BLOCK(s, 1); ***/
|
|
2381
2381
|
flush_block_only(s, true);
|
|
2382
2382
|
if (s.strm.avail_out === 0) {
|
|
@@ -2409,7 +2409,7 @@ const deflate_huff = (s, flush) => {
|
|
|
2409
2409
|
if (s.lookahead === 0) {
|
|
2410
2410
|
fill_window(s);
|
|
2411
2411
|
if (s.lookahead === 0) {
|
|
2412
|
-
if (flush === Z_NO_FLUSH) {
|
|
2412
|
+
if (flush === Z_NO_FLUSH$2) {
|
|
2413
2413
|
return BS_NEED_MORE;
|
|
2414
2414
|
}
|
|
2415
2415
|
break; /* flush the current block */
|
|
@@ -2420,7 +2420,7 @@ const deflate_huff = (s, flush) => {
|
|
|
2420
2420
|
s.match_length = 0;
|
|
2421
2421
|
//Tracevv((stderr,"%c", s->window[s->strstart]));
|
|
2422
2422
|
/*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/
|
|
2423
|
-
bflush = _tr_tally
|
|
2423
|
+
bflush = _tr_tally(s, 0, s.window[s.strstart]);
|
|
2424
2424
|
s.lookahead--;
|
|
2425
2425
|
s.strstart++;
|
|
2426
2426
|
if (bflush) {
|
|
@@ -2433,7 +2433,7 @@ const deflate_huff = (s, flush) => {
|
|
|
2433
2433
|
}
|
|
2434
2434
|
}
|
|
2435
2435
|
s.insert = 0;
|
|
2436
|
-
if (flush === Z_FINISH) {
|
|
2436
|
+
if (flush === Z_FINISH$3) {
|
|
2437
2437
|
/*** FLUSH_BLOCK(s, 1); ***/
|
|
2438
2438
|
flush_block_only(s, true);
|
|
2439
2439
|
if (s.strm.avail_out === 0) {
|
|
@@ -2491,7 +2491,7 @@ const lm_init = (s) => {
|
|
|
2491
2491
|
s.window_size = 2 * s.w_size;
|
|
2492
2492
|
|
|
2493
2493
|
/*** CLEAR_HASH(s); ***/
|
|
2494
|
-
zero
|
|
2494
|
+
zero(s.head); // Fill with NIL (= 0);
|
|
2495
2495
|
|
|
2496
2496
|
/* Set the default configuration parameters:
|
|
2497
2497
|
*/
|
|
@@ -2504,7 +2504,7 @@ const lm_init = (s) => {
|
|
|
2504
2504
|
s.block_start = 0;
|
|
2505
2505
|
s.lookahead = 0;
|
|
2506
2506
|
s.insert = 0;
|
|
2507
|
-
s.match_length = s.prev_length = MIN_MATCH
|
|
2507
|
+
s.match_length = s.prev_length = MIN_MATCH - 1;
|
|
2508
2508
|
s.match_available = 0;
|
|
2509
2509
|
s.ins_h = 0;
|
|
2510
2510
|
};
|
|
@@ -2520,7 +2520,7 @@ function DeflateState() {
|
|
|
2520
2520
|
this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */
|
|
2521
2521
|
this.gzhead = null; /* gzip header information to write */
|
|
2522
2522
|
this.gzindex = 0; /* where in extra, name, or comment */
|
|
2523
|
-
this.method = Z_DEFLATED; /* can only be DEFLATED */
|
|
2523
|
+
this.method = Z_DEFLATED$2; /* can only be DEFLATED */
|
|
2524
2524
|
this.last_flush = -1; /* value of flush param for previous deflate call */
|
|
2525
2525
|
|
|
2526
2526
|
this.w_size = 0; /* LZ77 window size (32K by default) */
|
|
@@ -2613,24 +2613,24 @@ function DeflateState() {
|
|
|
2613
2613
|
|
|
2614
2614
|
// Use flat array of DOUBLE size, with interleaved fata,
|
|
2615
2615
|
// because JS does not support effective
|
|
2616
|
-
this.dyn_ltree = new Uint16Array(HEAP_SIZE
|
|
2617
|
-
this.dyn_dtree = new Uint16Array((2 * D_CODES
|
|
2618
|
-
this.bl_tree = new Uint16Array((2 * BL_CODES
|
|
2619
|
-
zero
|
|
2620
|
-
zero
|
|
2621
|
-
zero
|
|
2616
|
+
this.dyn_ltree = new Uint16Array(HEAP_SIZE * 2);
|
|
2617
|
+
this.dyn_dtree = new Uint16Array((2 * D_CODES + 1) * 2);
|
|
2618
|
+
this.bl_tree = new Uint16Array((2 * BL_CODES + 1) * 2);
|
|
2619
|
+
zero(this.dyn_ltree);
|
|
2620
|
+
zero(this.dyn_dtree);
|
|
2621
|
+
zero(this.bl_tree);
|
|
2622
2622
|
|
|
2623
2623
|
this.l_desc = null; /* desc. for literal tree */
|
|
2624
2624
|
this.d_desc = null; /* desc. for distance tree */
|
|
2625
2625
|
this.bl_desc = null; /* desc. for bit length tree */
|
|
2626
2626
|
|
|
2627
2627
|
//ush bl_count[MAX_BITS+1];
|
|
2628
|
-
this.bl_count = new Uint16Array(MAX_BITS
|
|
2628
|
+
this.bl_count = new Uint16Array(MAX_BITS + 1);
|
|
2629
2629
|
/* number of codes at each bit length for an optimal tree */
|
|
2630
2630
|
|
|
2631
2631
|
//int heap[2*L_CODES+1]; /* heap used to build the Huffman trees */
|
|
2632
|
-
this.heap = new Uint16Array(2 * L_CODES
|
|
2633
|
-
zero
|
|
2632
|
+
this.heap = new Uint16Array(2 * L_CODES + 1); /* heap used to build the Huffman trees */
|
|
2633
|
+
zero(this.heap);
|
|
2634
2634
|
|
|
2635
2635
|
this.heap_len = 0; /* number of elements in the heap */
|
|
2636
2636
|
this.heap_max = 0; /* element of largest frequency */
|
|
@@ -2638,8 +2638,8 @@ function DeflateState() {
|
|
|
2638
2638
|
* The same heap array is used to build all trees.
|
|
2639
2639
|
*/
|
|
2640
2640
|
|
|
2641
|
-
this.depth = new Uint16Array(2 * L_CODES
|
|
2642
|
-
zero
|
|
2641
|
+
this.depth = new Uint16Array(2 * L_CODES + 1); //uch depth[2*L_CODES+1];
|
|
2642
|
+
zero(this.depth);
|
|
2643
2643
|
/* Depth of each subtree used as tie breaker for trees of equal frequency
|
|
2644
2644
|
*/
|
|
2645
2645
|
|
|
@@ -2702,11 +2702,11 @@ function DeflateState() {
|
|
|
2702
2702
|
const deflateResetKeep = (strm) => {
|
|
2703
2703
|
|
|
2704
2704
|
if (!strm || !strm.state) {
|
|
2705
|
-
return err(strm, Z_STREAM_ERROR);
|
|
2705
|
+
return err(strm, Z_STREAM_ERROR$2);
|
|
2706
2706
|
}
|
|
2707
2707
|
|
|
2708
2708
|
strm.total_in = strm.total_out = 0;
|
|
2709
|
-
strm.data_type = Z_UNKNOWN
|
|
2709
|
+
strm.data_type = Z_UNKNOWN;
|
|
2710
2710
|
|
|
2711
2711
|
const s = strm.state;
|
|
2712
2712
|
s.pending = 0;
|
|
@@ -2721,16 +2721,16 @@ const deflateResetKeep = (strm) => {
|
|
|
2721
2721
|
0 // crc32(0, Z_NULL, 0)
|
|
2722
2722
|
:
|
|
2723
2723
|
1; // adler32(0, Z_NULL, 0)
|
|
2724
|
-
s.last_flush = Z_NO_FLUSH;
|
|
2725
|
-
_tr_init
|
|
2726
|
-
return Z_OK;
|
|
2724
|
+
s.last_flush = Z_NO_FLUSH$2;
|
|
2725
|
+
_tr_init(s);
|
|
2726
|
+
return Z_OK$3;
|
|
2727
2727
|
};
|
|
2728
2728
|
|
|
2729
2729
|
|
|
2730
2730
|
const deflateReset = (strm) => {
|
|
2731
2731
|
|
|
2732
2732
|
const ret = deflateResetKeep(strm);
|
|
2733
|
-
if (ret === Z_OK) {
|
|
2733
|
+
if (ret === Z_OK$3) {
|
|
2734
2734
|
lm_init(strm.state);
|
|
2735
2735
|
}
|
|
2736
2736
|
return ret;
|
|
@@ -2739,21 +2739,21 @@ const deflateReset = (strm) => {
|
|
|
2739
2739
|
|
|
2740
2740
|
const deflateSetHeader = (strm, head) => {
|
|
2741
2741
|
|
|
2742
|
-
if (!strm || !strm.state) { return Z_STREAM_ERROR; }
|
|
2743
|
-
if (strm.state.wrap !== 2) { return Z_STREAM_ERROR; }
|
|
2742
|
+
if (!strm || !strm.state) { return Z_STREAM_ERROR$2; }
|
|
2743
|
+
if (strm.state.wrap !== 2) { return Z_STREAM_ERROR$2; }
|
|
2744
2744
|
strm.state.gzhead = head;
|
|
2745
|
-
return Z_OK;
|
|
2745
|
+
return Z_OK$3;
|
|
2746
2746
|
};
|
|
2747
2747
|
|
|
2748
2748
|
|
|
2749
2749
|
const deflateInit2 = (strm, level, method, windowBits, memLevel, strategy) => {
|
|
2750
2750
|
|
|
2751
2751
|
if (!strm) { // === Z_NULL
|
|
2752
|
-
return Z_STREAM_ERROR;
|
|
2752
|
+
return Z_STREAM_ERROR$2;
|
|
2753
2753
|
}
|
|
2754
2754
|
let wrap = 1;
|
|
2755
2755
|
|
|
2756
|
-
if (level === Z_DEFAULT_COMPRESSION) {
|
|
2756
|
+
if (level === Z_DEFAULT_COMPRESSION$1) {
|
|
2757
2757
|
level = 6;
|
|
2758
2758
|
}
|
|
2759
2759
|
|
|
@@ -2768,10 +2768,10 @@ const deflateInit2 = (strm, level, method, windowBits, memLevel, strategy) => {
|
|
|
2768
2768
|
}
|
|
2769
2769
|
|
|
2770
2770
|
|
|
2771
|
-
if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method !== Z_DEFLATED ||
|
|
2771
|
+
if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method !== Z_DEFLATED$2 ||
|
|
2772
2772
|
windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||
|
|
2773
|
-
strategy < 0 || strategy > Z_FIXED
|
|
2774
|
-
return err(strm, Z_STREAM_ERROR);
|
|
2773
|
+
strategy < 0 || strategy > Z_FIXED) {
|
|
2774
|
+
return err(strm, Z_STREAM_ERROR$2);
|
|
2775
2775
|
}
|
|
2776
2776
|
|
|
2777
2777
|
|
|
@@ -2794,7 +2794,7 @@ const deflateInit2 = (strm, level, method, windowBits, memLevel, strategy) => {
|
|
|
2794
2794
|
s.hash_bits = memLevel + 7;
|
|
2795
2795
|
s.hash_size = 1 << s.hash_bits;
|
|
2796
2796
|
s.hash_mask = s.hash_size - 1;
|
|
2797
|
-
s.hash_shift = ~~((s.hash_bits + MIN_MATCH
|
|
2797
|
+
s.hash_shift = ~~((s.hash_bits + MIN_MATCH - 1) / MIN_MATCH);
|
|
2798
2798
|
|
|
2799
2799
|
s.window = new Uint8Array(s.w_size * 2);
|
|
2800
2800
|
s.head = new Uint16Array(s.hash_size);
|
|
@@ -2827,25 +2827,25 @@ const deflateInit2 = (strm, level, method, windowBits, memLevel, strategy) => {
|
|
|
2827
2827
|
|
|
2828
2828
|
const deflateInit = (strm, level) => {
|
|
2829
2829
|
|
|
2830
|
-
return deflateInit2(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY);
|
|
2830
|
+
return deflateInit2(strm, level, Z_DEFLATED$2, MAX_WBITS$1, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY$1);
|
|
2831
2831
|
};
|
|
2832
2832
|
|
|
2833
2833
|
|
|
2834
|
-
const deflate = (strm, flush) => {
|
|
2834
|
+
const deflate$2 = (strm, flush) => {
|
|
2835
2835
|
|
|
2836
2836
|
let beg, val; // for gzip header write only
|
|
2837
2837
|
|
|
2838
2838
|
if (!strm || !strm.state ||
|
|
2839
|
-
flush > Z_BLOCK || flush < 0) {
|
|
2840
|
-
return strm ? err(strm, Z_STREAM_ERROR) : Z_STREAM_ERROR;
|
|
2839
|
+
flush > Z_BLOCK$1 || flush < 0) {
|
|
2840
|
+
return strm ? err(strm, Z_STREAM_ERROR$2) : Z_STREAM_ERROR$2;
|
|
2841
2841
|
}
|
|
2842
2842
|
|
|
2843
2843
|
const s = strm.state;
|
|
2844
2844
|
|
|
2845
2845
|
if (!strm.output ||
|
|
2846
2846
|
(!strm.input && strm.avail_in !== 0) ||
|
|
2847
|
-
(s.status === FINISH_STATE && flush !== Z_FINISH)) {
|
|
2848
|
-
return err(strm, (strm.avail_out === 0) ? Z_BUF_ERROR : Z_STREAM_ERROR);
|
|
2847
|
+
(s.status === FINISH_STATE && flush !== Z_FINISH$3)) {
|
|
2848
|
+
return err(strm, (strm.avail_out === 0) ? Z_BUF_ERROR$1 : Z_STREAM_ERROR$2);
|
|
2849
2849
|
}
|
|
2850
2850
|
|
|
2851
2851
|
s.strm = strm; /* just in case */
|
|
@@ -2900,7 +2900,7 @@ const deflate = (strm, flush) => {
|
|
|
2900
2900
|
}
|
|
2901
2901
|
else // DEFLATE header
|
|
2902
2902
|
{
|
|
2903
|
-
let header = (Z_DEFLATED + ((s.w_bits - 8) << 4)) << 8;
|
|
2903
|
+
let header = (Z_DEFLATED$2 + ((s.w_bits - 8) << 4)) << 8;
|
|
2904
2904
|
let level_flags = -1;
|
|
2905
2905
|
|
|
2906
2906
|
if (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2) {
|
|
@@ -3063,7 +3063,7 @@ const deflate = (strm, flush) => {
|
|
|
3063
3063
|
* return OK instead of BUF_ERROR at next call of deflate:
|
|
3064
3064
|
*/
|
|
3065
3065
|
s.last_flush = -1;
|
|
3066
|
-
return Z_OK;
|
|
3066
|
+
return Z_OK$3;
|
|
3067
3067
|
}
|
|
3068
3068
|
|
|
3069
3069
|
/* Make sure there is something to do and avoid duplicate consecutive
|
|
@@ -3071,19 +3071,19 @@ const deflate = (strm, flush) => {
|
|
|
3071
3071
|
* returning Z_STREAM_END instead of Z_BUF_ERROR.
|
|
3072
3072
|
*/
|
|
3073
3073
|
} else if (strm.avail_in === 0 && rank(flush) <= rank(old_flush) &&
|
|
3074
|
-
flush !== Z_FINISH) {
|
|
3075
|
-
return err(strm, Z_BUF_ERROR);
|
|
3074
|
+
flush !== Z_FINISH$3) {
|
|
3075
|
+
return err(strm, Z_BUF_ERROR$1);
|
|
3076
3076
|
}
|
|
3077
3077
|
|
|
3078
3078
|
/* User must not provide more input after the first FINISH: */
|
|
3079
3079
|
if (s.status === FINISH_STATE && strm.avail_in !== 0) {
|
|
3080
|
-
return err(strm, Z_BUF_ERROR);
|
|
3080
|
+
return err(strm, Z_BUF_ERROR$1);
|
|
3081
3081
|
}
|
|
3082
3082
|
|
|
3083
3083
|
/* Start a new block or continue the current one.
|
|
3084
3084
|
*/
|
|
3085
3085
|
if (strm.avail_in !== 0 || s.lookahead !== 0 ||
|
|
3086
|
-
(flush !== Z_NO_FLUSH && s.status !== FINISH_STATE)) {
|
|
3086
|
+
(flush !== Z_NO_FLUSH$2 && s.status !== FINISH_STATE)) {
|
|
3087
3087
|
let bstate = (s.strategy === Z_HUFFMAN_ONLY) ? deflate_huff(s, flush) :
|
|
3088
3088
|
(s.strategy === Z_RLE ? deflate_rle(s, flush) :
|
|
3089
3089
|
configuration_table[s.level].func(s, flush));
|
|
@@ -3096,7 +3096,7 @@ const deflate = (strm, flush) => {
|
|
|
3096
3096
|
s.last_flush = -1;
|
|
3097
3097
|
/* avoid BUF_ERROR next call, see above */
|
|
3098
3098
|
}
|
|
3099
|
-
return Z_OK;
|
|
3099
|
+
return Z_OK$3;
|
|
3100
3100
|
/* If flush != Z_NO_FLUSH && avail_out == 0, the next call
|
|
3101
3101
|
* of deflate should use the same flush parameter to make sure
|
|
3102
3102
|
* that the flush is complete. So we don't have to output an
|
|
@@ -3107,17 +3107,17 @@ const deflate = (strm, flush) => {
|
|
|
3107
3107
|
}
|
|
3108
3108
|
if (bstate === BS_BLOCK_DONE) {
|
|
3109
3109
|
if (flush === Z_PARTIAL_FLUSH) {
|
|
3110
|
-
_tr_align
|
|
3110
|
+
_tr_align(s);
|
|
3111
3111
|
}
|
|
3112
|
-
else if (flush !== Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */
|
|
3112
|
+
else if (flush !== Z_BLOCK$1) { /* FULL_FLUSH or SYNC_FLUSH */
|
|
3113
3113
|
|
|
3114
|
-
_tr_stored_block
|
|
3114
|
+
_tr_stored_block(s, 0, 0, false);
|
|
3115
3115
|
/* For a full flush, this empty block will be recognized
|
|
3116
3116
|
* as a special marker by inflate_sync().
|
|
3117
3117
|
*/
|
|
3118
|
-
if (flush === Z_FULL_FLUSH) {
|
|
3118
|
+
if (flush === Z_FULL_FLUSH$1) {
|
|
3119
3119
|
/*** CLEAR_HASH(s); ***/ /* forget history */
|
|
3120
|
-
zero
|
|
3120
|
+
zero(s.head); // Fill with NIL (= 0);
|
|
3121
3121
|
|
|
3122
3122
|
if (s.lookahead === 0) {
|
|
3123
3123
|
s.strstart = 0;
|
|
@@ -3129,15 +3129,15 @@ const deflate = (strm, flush) => {
|
|
|
3129
3129
|
flush_pending(strm);
|
|
3130
3130
|
if (strm.avail_out === 0) {
|
|
3131
3131
|
s.last_flush = -1; /* avoid BUF_ERROR at next call, see above */
|
|
3132
|
-
return Z_OK;
|
|
3132
|
+
return Z_OK$3;
|
|
3133
3133
|
}
|
|
3134
3134
|
}
|
|
3135
3135
|
}
|
|
3136
3136
|
//Assert(strm->avail_out > 0, "bug2");
|
|
3137
3137
|
//if (strm.avail_out <= 0) { throw new Error("bug2");}
|
|
3138
3138
|
|
|
3139
|
-
if (flush !== Z_FINISH) { return Z_OK; }
|
|
3140
|
-
if (s.wrap <= 0) { return Z_STREAM_END; }
|
|
3139
|
+
if (flush !== Z_FINISH$3) { return Z_OK$3; }
|
|
3140
|
+
if (s.wrap <= 0) { return Z_STREAM_END$3; }
|
|
3141
3141
|
|
|
3142
3142
|
/* Write the trailer */
|
|
3143
3143
|
if (s.wrap === 2) {
|
|
@@ -3162,14 +3162,14 @@ const deflate = (strm, flush) => {
|
|
|
3162
3162
|
*/
|
|
3163
3163
|
if (s.wrap > 0) { s.wrap = -s.wrap; }
|
|
3164
3164
|
/* write the trailer only once! */
|
|
3165
|
-
return s.pending !== 0 ? Z_OK : Z_STREAM_END;
|
|
3165
|
+
return s.pending !== 0 ? Z_OK$3 : Z_STREAM_END$3;
|
|
3166
3166
|
};
|
|
3167
3167
|
|
|
3168
3168
|
|
|
3169
3169
|
const deflateEnd = (strm) => {
|
|
3170
3170
|
|
|
3171
3171
|
if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) {
|
|
3172
|
-
return Z_STREAM_ERROR;
|
|
3172
|
+
return Z_STREAM_ERROR$2;
|
|
3173
3173
|
}
|
|
3174
3174
|
|
|
3175
3175
|
const status = strm.state.status;
|
|
@@ -3181,12 +3181,12 @@ const deflateEnd = (strm) => {
|
|
|
3181
3181
|
status !== BUSY_STATE &&
|
|
3182
3182
|
status !== FINISH_STATE
|
|
3183
3183
|
) {
|
|
3184
|
-
return err(strm, Z_STREAM_ERROR);
|
|
3184
|
+
return err(strm, Z_STREAM_ERROR$2);
|
|
3185
3185
|
}
|
|
3186
3186
|
|
|
3187
3187
|
strm.state = null;
|
|
3188
3188
|
|
|
3189
|
-
return status === BUSY_STATE ? err(strm, Z_DATA_ERROR) : Z_OK;
|
|
3189
|
+
return status === BUSY_STATE ? err(strm, Z_DATA_ERROR$2) : Z_OK$3;
|
|
3190
3190
|
};
|
|
3191
3191
|
|
|
3192
3192
|
|
|
@@ -3199,14 +3199,14 @@ const deflateSetDictionary = (strm, dictionary) => {
|
|
|
3199
3199
|
let dictLength = dictionary.length;
|
|
3200
3200
|
|
|
3201
3201
|
if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) {
|
|
3202
|
-
return Z_STREAM_ERROR;
|
|
3202
|
+
return Z_STREAM_ERROR$2;
|
|
3203
3203
|
}
|
|
3204
3204
|
|
|
3205
3205
|
const s = strm.state;
|
|
3206
3206
|
const wrap = s.wrap;
|
|
3207
3207
|
|
|
3208
3208
|
if (wrap === 2 || (wrap === 1 && s.status !== INIT_STATE) || s.lookahead) {
|
|
3209
|
-
return Z_STREAM_ERROR;
|
|
3209
|
+
return Z_STREAM_ERROR$2;
|
|
3210
3210
|
}
|
|
3211
3211
|
|
|
3212
3212
|
/* when using zlib wrappers, compute Adler-32 for provided dictionary */
|
|
@@ -3221,7 +3221,7 @@ const deflateSetDictionary = (strm, dictionary) => {
|
|
|
3221
3221
|
if (dictLength >= s.w_size) {
|
|
3222
3222
|
if (wrap === 0) { /* already empty otherwise */
|
|
3223
3223
|
/*** CLEAR_HASH(s); ***/
|
|
3224
|
-
zero
|
|
3224
|
+
zero(s.head); // Fill with NIL (= 0);
|
|
3225
3225
|
s.strstart = 0;
|
|
3226
3226
|
s.block_start = 0;
|
|
3227
3227
|
s.insert = 0;
|
|
@@ -3241,12 +3241,12 @@ const deflateSetDictionary = (strm, dictionary) => {
|
|
|
3241
3241
|
strm.next_in = 0;
|
|
3242
3242
|
strm.input = dictionary;
|
|
3243
3243
|
fill_window(s);
|
|
3244
|
-
while (s.lookahead >= MIN_MATCH
|
|
3244
|
+
while (s.lookahead >= MIN_MATCH) {
|
|
3245
3245
|
let str = s.strstart;
|
|
3246
|
-
let n = s.lookahead - (MIN_MATCH
|
|
3246
|
+
let n = s.lookahead - (MIN_MATCH - 1);
|
|
3247
3247
|
do {
|
|
3248
3248
|
/* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */
|
|
3249
|
-
s.ins_h = HASH(s, s.ins_h, s.window[str + MIN_MATCH
|
|
3249
|
+
s.ins_h = HASH(s, s.ins_h, s.window[str + MIN_MATCH - 1]);
|
|
3250
3250
|
|
|
3251
3251
|
s.prev[str & s.w_mask] = s.head[s.ins_h];
|
|
3252
3252
|
|
|
@@ -3254,20 +3254,20 @@ const deflateSetDictionary = (strm, dictionary) => {
|
|
|
3254
3254
|
str++;
|
|
3255
3255
|
} while (--n);
|
|
3256
3256
|
s.strstart = str;
|
|
3257
|
-
s.lookahead = MIN_MATCH
|
|
3257
|
+
s.lookahead = MIN_MATCH - 1;
|
|
3258
3258
|
fill_window(s);
|
|
3259
3259
|
}
|
|
3260
3260
|
s.strstart += s.lookahead;
|
|
3261
3261
|
s.block_start = s.strstart;
|
|
3262
3262
|
s.insert = s.lookahead;
|
|
3263
3263
|
s.lookahead = 0;
|
|
3264
|
-
s.match_length = s.prev_length = MIN_MATCH
|
|
3264
|
+
s.match_length = s.prev_length = MIN_MATCH - 1;
|
|
3265
3265
|
s.match_available = 0;
|
|
3266
3266
|
strm.next_in = next;
|
|
3267
3267
|
strm.input = input;
|
|
3268
3268
|
strm.avail_in = avail;
|
|
3269
3269
|
s.wrap = wrap;
|
|
3270
|
-
return Z_OK;
|
|
3270
|
+
return Z_OK$3;
|
|
3271
3271
|
};
|
|
3272
3272
|
|
|
3273
3273
|
|
|
@@ -3276,7 +3276,7 @@ var deflateInit2_1 = deflateInit2;
|
|
|
3276
3276
|
var deflateReset_1 = deflateReset;
|
|
3277
3277
|
var deflateResetKeep_1 = deflateResetKeep;
|
|
3278
3278
|
var deflateSetHeader_1 = deflateSetHeader;
|
|
3279
|
-
var deflate_2 = deflate;
|
|
3279
|
+
var deflate_2$1 = deflate$2;
|
|
3280
3280
|
var deflateEnd_1 = deflateEnd;
|
|
3281
3281
|
var deflateSetDictionary_1 = deflateSetDictionary;
|
|
3282
3282
|
var deflateInfo = 'pako deflate (from Nodeca project)';
|
|
@@ -3290,13 +3290,13 @@ module.exports.deflatePrime = deflatePrime;
|
|
|
3290
3290
|
module.exports.deflateTune = deflateTune;
|
|
3291
3291
|
*/
|
|
3292
3292
|
|
|
3293
|
-
var deflate_1 = {
|
|
3293
|
+
var deflate_1$2 = {
|
|
3294
3294
|
deflateInit: deflateInit_1,
|
|
3295
3295
|
deflateInit2: deflateInit2_1,
|
|
3296
3296
|
deflateReset: deflateReset_1,
|
|
3297
3297
|
deflateResetKeep: deflateResetKeep_1,
|
|
3298
3298
|
deflateSetHeader: deflateSetHeader_1,
|
|
3299
|
-
deflate: deflate_2,
|
|
3299
|
+
deflate: deflate_2$1,
|
|
3300
3300
|
deflateEnd: deflateEnd_1,
|
|
3301
3301
|
deflateSetDictionary: deflateSetDictionary_1,
|
|
3302
3302
|
deflateInfo: deflateInfo
|
|
@@ -3378,6 +3378,10 @@ _utf8len[254] = _utf8len[254] = 1; // Invalid sequence start
|
|
|
3378
3378
|
|
|
3379
3379
|
// convert string to array (typed, when possible)
|
|
3380
3380
|
var string2buf = (str) => {
|
|
3381
|
+
if (typeof TextEncoder === 'function' && TextEncoder.prototype.encode) {
|
|
3382
|
+
return new TextEncoder().encode(str);
|
|
3383
|
+
}
|
|
3384
|
+
|
|
3381
3385
|
let buf, c, c2, m_pos, i, str_len = str.length, buf_len = 0;
|
|
3382
3386
|
|
|
3383
3387
|
// count binary size
|
|
@@ -3451,9 +3455,14 @@ const buf2binstring = (buf, len) => {
|
|
|
3451
3455
|
|
|
3452
3456
|
// convert array to string
|
|
3453
3457
|
var buf2string = (buf, max) => {
|
|
3454
|
-
let i, out;
|
|
3455
3458
|
const len = max || buf.length;
|
|
3456
3459
|
|
|
3460
|
+
if (typeof TextDecoder === 'function' && TextDecoder.prototype.decode) {
|
|
3461
|
+
return new TextDecoder().decode(buf.subarray(0, max));
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3464
|
+
let i, out;
|
|
3465
|
+
|
|
3457
3466
|
// Reserve max possible length (2 words per char)
|
|
3458
3467
|
// NB: by unknown reasons, Array is significantly faster for
|
|
3459
3468
|
// String.fromCharCode.apply than Uint16Array.
|
|
@@ -3570,18 +3579,18 @@ function ZStream() {
|
|
|
3570
3579
|
|
|
3571
3580
|
var zstream = ZStream;
|
|
3572
3581
|
|
|
3573
|
-
const toString = Object.prototype.toString;
|
|
3582
|
+
const toString$1 = Object.prototype.toString;
|
|
3574
3583
|
|
|
3575
3584
|
/* Public constants ==========================================================*/
|
|
3576
3585
|
/* ===========================================================================*/
|
|
3577
3586
|
|
|
3578
3587
|
const {
|
|
3579
|
-
Z_NO_FLUSH: Z_NO_FLUSH$1, Z_SYNC_FLUSH, Z_FULL_FLUSH
|
|
3580
|
-
Z_OK: Z_OK$
|
|
3581
|
-
Z_DEFAULT_COMPRESSION
|
|
3582
|
-
Z_DEFAULT_STRATEGY
|
|
3588
|
+
Z_NO_FLUSH: Z_NO_FLUSH$1, Z_SYNC_FLUSH, Z_FULL_FLUSH, Z_FINISH: Z_FINISH$2,
|
|
3589
|
+
Z_OK: Z_OK$2, Z_STREAM_END: Z_STREAM_END$2,
|
|
3590
|
+
Z_DEFAULT_COMPRESSION,
|
|
3591
|
+
Z_DEFAULT_STRATEGY,
|
|
3583
3592
|
Z_DEFLATED: Z_DEFLATED$1
|
|
3584
|
-
} = constants;
|
|
3593
|
+
} = constants$2;
|
|
3585
3594
|
|
|
3586
3595
|
/* ===========================================================================*/
|
|
3587
3596
|
|
|
@@ -3671,14 +3680,14 @@ const {
|
|
|
3671
3680
|
* console.log(deflate.result);
|
|
3672
3681
|
* ```
|
|
3673
3682
|
**/
|
|
3674
|
-
function Deflate(options) {
|
|
3683
|
+
function Deflate$1(options) {
|
|
3675
3684
|
this.options = common.assign({
|
|
3676
|
-
level: Z_DEFAULT_COMPRESSION
|
|
3685
|
+
level: Z_DEFAULT_COMPRESSION,
|
|
3677
3686
|
method: Z_DEFLATED$1,
|
|
3678
3687
|
chunkSize: 16384,
|
|
3679
3688
|
windowBits: 15,
|
|
3680
3689
|
memLevel: 8,
|
|
3681
|
-
strategy: Z_DEFAULT_STRATEGY
|
|
3690
|
+
strategy: Z_DEFAULT_STRATEGY
|
|
3682
3691
|
}, options || {});
|
|
3683
3692
|
|
|
3684
3693
|
let opt = this.options;
|
|
@@ -3699,7 +3708,7 @@ function Deflate(options) {
|
|
|
3699
3708
|
this.strm = new zstream();
|
|
3700
3709
|
this.strm.avail_out = 0;
|
|
3701
3710
|
|
|
3702
|
-
let status = deflate_1.deflateInit2(
|
|
3711
|
+
let status = deflate_1$2.deflateInit2(
|
|
3703
3712
|
this.strm,
|
|
3704
3713
|
opt.level,
|
|
3705
3714
|
opt.method,
|
|
@@ -3708,12 +3717,12 @@ function Deflate(options) {
|
|
|
3708
3717
|
opt.strategy
|
|
3709
3718
|
);
|
|
3710
3719
|
|
|
3711
|
-
if (status !== Z_OK$
|
|
3720
|
+
if (status !== Z_OK$2) {
|
|
3712
3721
|
throw new Error(messages[status]);
|
|
3713
3722
|
}
|
|
3714
3723
|
|
|
3715
3724
|
if (opt.header) {
|
|
3716
|
-
deflate_1.deflateSetHeader(this.strm, opt.header);
|
|
3725
|
+
deflate_1$2.deflateSetHeader(this.strm, opt.header);
|
|
3717
3726
|
}
|
|
3718
3727
|
|
|
3719
3728
|
if (opt.dictionary) {
|
|
@@ -3722,15 +3731,15 @@ function Deflate(options) {
|
|
|
3722
3731
|
if (typeof opt.dictionary === 'string') {
|
|
3723
3732
|
// If we need to compress text, change encoding to utf8.
|
|
3724
3733
|
dict = strings.string2buf(opt.dictionary);
|
|
3725
|
-
} else if (toString.call(opt.dictionary) === '[object ArrayBuffer]') {
|
|
3734
|
+
} else if (toString$1.call(opt.dictionary) === '[object ArrayBuffer]') {
|
|
3726
3735
|
dict = new Uint8Array(opt.dictionary);
|
|
3727
3736
|
} else {
|
|
3728
3737
|
dict = opt.dictionary;
|
|
3729
3738
|
}
|
|
3730
3739
|
|
|
3731
|
-
status = deflate_1.deflateSetDictionary(this.strm, dict);
|
|
3740
|
+
status = deflate_1$2.deflateSetDictionary(this.strm, dict);
|
|
3732
3741
|
|
|
3733
|
-
if (status !== Z_OK$
|
|
3742
|
+
if (status !== Z_OK$2) {
|
|
3734
3743
|
throw new Error(messages[status]);
|
|
3735
3744
|
}
|
|
3736
3745
|
|
|
@@ -3760,7 +3769,7 @@ function Deflate(options) {
|
|
|
3760
3769
|
* push(chunk, true); // push last chunk
|
|
3761
3770
|
* ```
|
|
3762
3771
|
**/
|
|
3763
|
-
Deflate.prototype.push = function (data, flush_mode) {
|
|
3772
|
+
Deflate$1.prototype.push = function (data, flush_mode) {
|
|
3764
3773
|
const strm = this.strm;
|
|
3765
3774
|
const chunkSize = this.options.chunkSize;
|
|
3766
3775
|
let status, _flush_mode;
|
|
@@ -3768,13 +3777,13 @@ Deflate.prototype.push = function (data, flush_mode) {
|
|
|
3768
3777
|
if (this.ended) { return false; }
|
|
3769
3778
|
|
|
3770
3779
|
if (flush_mode === ~~flush_mode) _flush_mode = flush_mode;
|
|
3771
|
-
else _flush_mode = flush_mode === true ? Z_FINISH$
|
|
3780
|
+
else _flush_mode = flush_mode === true ? Z_FINISH$2 : Z_NO_FLUSH$1;
|
|
3772
3781
|
|
|
3773
3782
|
// Convert data if needed
|
|
3774
3783
|
if (typeof data === 'string') {
|
|
3775
3784
|
// If we need to compress text, change encoding to utf8.
|
|
3776
3785
|
strm.input = strings.string2buf(data);
|
|
3777
|
-
} else if (toString.call(data) === '[object ArrayBuffer]') {
|
|
3786
|
+
} else if (toString$1.call(data) === '[object ArrayBuffer]') {
|
|
3778
3787
|
strm.input = new Uint8Array(data);
|
|
3779
3788
|
} else {
|
|
3780
3789
|
strm.input = data;
|
|
@@ -3791,23 +3800,23 @@ Deflate.prototype.push = function (data, flush_mode) {
|
|
|
3791
3800
|
}
|
|
3792
3801
|
|
|
3793
3802
|
// Make sure avail_out > 6 to avoid repeating markers
|
|
3794
|
-
if ((_flush_mode === Z_SYNC_FLUSH || _flush_mode === Z_FULL_FLUSH
|
|
3803
|
+
if ((_flush_mode === Z_SYNC_FLUSH || _flush_mode === Z_FULL_FLUSH) && strm.avail_out <= 6) {
|
|
3795
3804
|
this.onData(strm.output.subarray(0, strm.next_out));
|
|
3796
3805
|
strm.avail_out = 0;
|
|
3797
3806
|
continue;
|
|
3798
3807
|
}
|
|
3799
3808
|
|
|
3800
|
-
status = deflate_1.deflate(strm, _flush_mode);
|
|
3809
|
+
status = deflate_1$2.deflate(strm, _flush_mode);
|
|
3801
3810
|
|
|
3802
3811
|
// Ended => flush and finish
|
|
3803
|
-
if (status === Z_STREAM_END$
|
|
3812
|
+
if (status === Z_STREAM_END$2) {
|
|
3804
3813
|
if (strm.next_out > 0) {
|
|
3805
3814
|
this.onData(strm.output.subarray(0, strm.next_out));
|
|
3806
3815
|
}
|
|
3807
|
-
status = deflate_1.deflateEnd(this.strm);
|
|
3816
|
+
status = deflate_1$2.deflateEnd(this.strm);
|
|
3808
3817
|
this.onEnd(status);
|
|
3809
3818
|
this.ended = true;
|
|
3810
|
-
return status === Z_OK$
|
|
3819
|
+
return status === Z_OK$2;
|
|
3811
3820
|
}
|
|
3812
3821
|
|
|
3813
3822
|
// Flush if out buffer full
|
|
@@ -3837,7 +3846,7 @@ Deflate.prototype.push = function (data, flush_mode) {
|
|
|
3837
3846
|
* By default, stores data blocks in `chunks[]` property and glue
|
|
3838
3847
|
* those in `onEnd`. Override this handler, if you need another behaviour.
|
|
3839
3848
|
**/
|
|
3840
|
-
Deflate.prototype.onData = function (chunk) {
|
|
3849
|
+
Deflate$1.prototype.onData = function (chunk) {
|
|
3841
3850
|
this.chunks.push(chunk);
|
|
3842
3851
|
};
|
|
3843
3852
|
|
|
@@ -3851,9 +3860,9 @@ Deflate.prototype.onData = function (chunk) {
|
|
|
3851
3860
|
* complete (Z_FINISH). By default - join collected chunks,
|
|
3852
3861
|
* free memory and fill `results` / `err` properties.
|
|
3853
3862
|
**/
|
|
3854
|
-
Deflate.prototype.onEnd = function (status) {
|
|
3863
|
+
Deflate$1.prototype.onEnd = function (status) {
|
|
3855
3864
|
// On success - join
|
|
3856
|
-
if (status === Z_OK$
|
|
3865
|
+
if (status === Z_OK$2) {
|
|
3857
3866
|
this.result = common.flattenChunks(this.chunks);
|
|
3858
3867
|
}
|
|
3859
3868
|
this.chunks = [];
|
|
@@ -3895,7 +3904,7 @@ Deflate.prototype.onEnd = function (status) {
|
|
|
3895
3904
|
* ```
|
|
3896
3905
|
**/
|
|
3897
3906
|
function deflate$1(input, options) {
|
|
3898
|
-
const deflator = new Deflate(options);
|
|
3907
|
+
const deflator = new Deflate$1(options);
|
|
3899
3908
|
|
|
3900
3909
|
deflator.push(input, true);
|
|
3901
3910
|
|
|
@@ -3914,7 +3923,7 @@ function deflate$1(input, options) {
|
|
|
3914
3923
|
* The same as [[deflate]], but creates raw data, without wrapper
|
|
3915
3924
|
* (header and adler32 crc).
|
|
3916
3925
|
**/
|
|
3917
|
-
function deflateRaw(input, options) {
|
|
3926
|
+
function deflateRaw$1(input, options) {
|
|
3918
3927
|
options = options || {};
|
|
3919
3928
|
options.raw = true;
|
|
3920
3929
|
return deflate$1(input, options);
|
|
@@ -3929,24 +3938,24 @@ function deflateRaw(input, options) {
|
|
|
3929
3938
|
* The same as [[deflate]], but create gzip wrapper instead of
|
|
3930
3939
|
* deflate one.
|
|
3931
3940
|
**/
|
|
3932
|
-
function gzip(input, options) {
|
|
3941
|
+
function gzip$1(input, options) {
|
|
3933
3942
|
options = options || {};
|
|
3934
3943
|
options.gzip = true;
|
|
3935
3944
|
return deflate$1(input, options);
|
|
3936
3945
|
}
|
|
3937
3946
|
|
|
3938
3947
|
|
|
3939
|
-
var Deflate_1 = Deflate;
|
|
3940
|
-
var deflate_2
|
|
3941
|
-
var deflateRaw_1 = deflateRaw;
|
|
3942
|
-
var gzip_1 = gzip;
|
|
3943
|
-
var constants$1 = constants;
|
|
3948
|
+
var Deflate_1$1 = Deflate$1;
|
|
3949
|
+
var deflate_2 = deflate$1;
|
|
3950
|
+
var deflateRaw_1$1 = deflateRaw$1;
|
|
3951
|
+
var gzip_1$1 = gzip$1;
|
|
3952
|
+
var constants$1 = constants$2;
|
|
3944
3953
|
|
|
3945
3954
|
var deflate_1$1 = {
|
|
3946
|
-
Deflate: Deflate_1,
|
|
3947
|
-
deflate: deflate_2
|
|
3948
|
-
deflateRaw: deflateRaw_1,
|
|
3949
|
-
gzip: gzip_1,
|
|
3955
|
+
Deflate: Deflate_1$1,
|
|
3956
|
+
deflate: deflate_2,
|
|
3957
|
+
deflateRaw: deflateRaw_1$1,
|
|
3958
|
+
gzip: gzip_1$1,
|
|
3950
3959
|
constants: constants$1
|
|
3951
3960
|
};
|
|
3952
3961
|
|
|
@@ -3970,8 +3979,8 @@ var deflate_1$1 = {
|
|
|
3970
3979
|
// 3. This notice may not be removed or altered from any source distribution.
|
|
3971
3980
|
|
|
3972
3981
|
// See state defs from inflate.js
|
|
3973
|
-
const BAD = 30; /* got a data error -- remain here until reset */
|
|
3974
|
-
const TYPE = 12; /* i: waiting for type bits, including last-flag bit */
|
|
3982
|
+
const BAD$1 = 30; /* got a data error -- remain here until reset */
|
|
3983
|
+
const TYPE$1 = 12; /* i: waiting for type bits, including last-flag bit */
|
|
3975
3984
|
|
|
3976
3985
|
/*
|
|
3977
3986
|
Decode literal, length, and distance codes and write out the resulting
|
|
@@ -4133,7 +4142,7 @@ var inffast = function inflate_fast(strm, start) {
|
|
|
4133
4142
|
//#ifdef INFLATE_STRICT
|
|
4134
4143
|
if (dist > dmax) {
|
|
4135
4144
|
strm.msg = 'invalid distance too far back';
|
|
4136
|
-
state.mode = BAD;
|
|
4145
|
+
state.mode = BAD$1;
|
|
4137
4146
|
break top;
|
|
4138
4147
|
}
|
|
4139
4148
|
//#endif
|
|
@@ -4146,7 +4155,7 @@ var inffast = function inflate_fast(strm, start) {
|
|
|
4146
4155
|
if (op > whave) {
|
|
4147
4156
|
if (state.sane) {
|
|
4148
4157
|
strm.msg = 'invalid distance too far back';
|
|
4149
|
-
state.mode = BAD;
|
|
4158
|
+
state.mode = BAD$1;
|
|
4150
4159
|
break top;
|
|
4151
4160
|
}
|
|
4152
4161
|
|
|
@@ -4251,7 +4260,7 @@ var inffast = function inflate_fast(strm, start) {
|
|
|
4251
4260
|
}
|
|
4252
4261
|
else {
|
|
4253
4262
|
strm.msg = 'invalid distance code';
|
|
4254
|
-
state.mode = BAD;
|
|
4263
|
+
state.mode = BAD$1;
|
|
4255
4264
|
break top;
|
|
4256
4265
|
}
|
|
4257
4266
|
|
|
@@ -4264,12 +4273,12 @@ var inffast = function inflate_fast(strm, start) {
|
|
|
4264
4273
|
}
|
|
4265
4274
|
else if (op & 32) { /* end-of-block */
|
|
4266
4275
|
//Tracevv((stderr, "inflate: end of block\n"));
|
|
4267
|
-
state.mode = TYPE;
|
|
4276
|
+
state.mode = TYPE$1;
|
|
4268
4277
|
break top;
|
|
4269
4278
|
}
|
|
4270
4279
|
else {
|
|
4271
4280
|
strm.msg = 'invalid literal/length code';
|
|
4272
|
-
state.mode = BAD;
|
|
4281
|
+
state.mode = BAD$1;
|
|
4273
4282
|
break top;
|
|
4274
4283
|
}
|
|
4275
4284
|
|
|
@@ -4313,13 +4322,13 @@ var inffast = function inflate_fast(strm, start) {
|
|
|
4313
4322
|
// 3. This notice may not be removed or altered from any source distribution.
|
|
4314
4323
|
|
|
4315
4324
|
const MAXBITS = 15;
|
|
4316
|
-
const ENOUGH_LENS = 852;
|
|
4317
|
-
const ENOUGH_DISTS = 592;
|
|
4325
|
+
const ENOUGH_LENS$1 = 852;
|
|
4326
|
+
const ENOUGH_DISTS$1 = 592;
|
|
4318
4327
|
//const ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);
|
|
4319
4328
|
|
|
4320
|
-
const CODES = 0;
|
|
4321
|
-
const LENS = 1;
|
|
4322
|
-
const DISTS = 2;
|
|
4329
|
+
const CODES$1 = 0;
|
|
4330
|
+
const LENS$1 = 1;
|
|
4331
|
+
const DISTS$1 = 2;
|
|
4323
4332
|
|
|
4324
4333
|
const lbase = new Uint16Array([ /* Length codes 257..285 base */
|
|
4325
4334
|
3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,
|
|
@@ -4451,7 +4460,7 @@ const inflate_table = (type, lens, lens_index, codes, table, table_index, work,
|
|
|
4451
4460
|
return -1;
|
|
4452
4461
|
} /* over-subscribed */
|
|
4453
4462
|
}
|
|
4454
|
-
if (left > 0 && (type === CODES || max !== 1)) {
|
|
4463
|
+
if (left > 0 && (type === CODES$1 || max !== 1)) {
|
|
4455
4464
|
return -1; /* incomplete set */
|
|
4456
4465
|
}
|
|
4457
4466
|
|
|
@@ -4502,11 +4511,11 @@ const inflate_table = (type, lens, lens_index, codes, table, table_index, work,
|
|
|
4502
4511
|
/* set up for code type */
|
|
4503
4512
|
// poor man optimization - use if-else instead of switch,
|
|
4504
4513
|
// to avoid deopts in old v8
|
|
4505
|
-
if (type === CODES) {
|
|
4514
|
+
if (type === CODES$1) {
|
|
4506
4515
|
base = extra = work; /* dummy value--not used */
|
|
4507
4516
|
end = 19;
|
|
4508
4517
|
|
|
4509
|
-
} else if (type === LENS) {
|
|
4518
|
+
} else if (type === LENS$1) {
|
|
4510
4519
|
base = lbase;
|
|
4511
4520
|
base_index -= 257;
|
|
4512
4521
|
extra = lext;
|
|
@@ -4531,8 +4540,8 @@ const inflate_table = (type, lens, lens_index, codes, table, table_index, work,
|
|
|
4531
4540
|
mask = used - 1; /* mask for comparing low */
|
|
4532
4541
|
|
|
4533
4542
|
/* check available table space */
|
|
4534
|
-
if ((type === LENS && used > ENOUGH_LENS) ||
|
|
4535
|
-
(type === DISTS && used > ENOUGH_DISTS)) {
|
|
4543
|
+
if ((type === LENS$1 && used > ENOUGH_LENS$1) ||
|
|
4544
|
+
(type === DISTS$1 && used > ENOUGH_DISTS$1)) {
|
|
4536
4545
|
return 1;
|
|
4537
4546
|
}
|
|
4538
4547
|
|
|
@@ -4603,8 +4612,8 @@ const inflate_table = (type, lens, lens_index, codes, table, table_index, work,
|
|
|
4603
4612
|
|
|
4604
4613
|
/* check for enough space */
|
|
4605
4614
|
used += 1 << curr;
|
|
4606
|
-
if ((type === LENS && used > ENOUGH_LENS) ||
|
|
4607
|
-
(type === DISTS && used > ENOUGH_DISTS)) {
|
|
4615
|
+
if ((type === LENS$1 && used > ENOUGH_LENS$1) ||
|
|
4616
|
+
(type === DISTS$1 && used > ENOUGH_DISTS$1)) {
|
|
4608
4617
|
return 1;
|
|
4609
4618
|
}
|
|
4610
4619
|
|
|
@@ -4660,18 +4669,18 @@ var inftrees = inflate_table;
|
|
|
4660
4669
|
|
|
4661
4670
|
|
|
4662
4671
|
|
|
4663
|
-
const CODES
|
|
4664
|
-
const LENS
|
|
4665
|
-
const DISTS
|
|
4672
|
+
const CODES = 0;
|
|
4673
|
+
const LENS = 1;
|
|
4674
|
+
const DISTS = 2;
|
|
4666
4675
|
|
|
4667
4676
|
/* Public constants ==========================================================*/
|
|
4668
4677
|
/* ===========================================================================*/
|
|
4669
4678
|
|
|
4670
4679
|
const {
|
|
4671
|
-
Z_FINISH: Z_FINISH$
|
|
4672
|
-
Z_OK: Z_OK$
|
|
4673
|
-
Z_DEFLATED
|
|
4674
|
-
} = constants;
|
|
4680
|
+
Z_FINISH: Z_FINISH$1, Z_BLOCK, Z_TREES,
|
|
4681
|
+
Z_OK: Z_OK$1, Z_STREAM_END: Z_STREAM_END$1, Z_NEED_DICT: Z_NEED_DICT$1, Z_STREAM_ERROR: Z_STREAM_ERROR$1, Z_DATA_ERROR: Z_DATA_ERROR$1, Z_MEM_ERROR: Z_MEM_ERROR$1, Z_BUF_ERROR,
|
|
4682
|
+
Z_DEFLATED
|
|
4683
|
+
} = constants$2;
|
|
4675
4684
|
|
|
4676
4685
|
|
|
4677
4686
|
/* STATES ====================================================================*/
|
|
@@ -4689,7 +4698,7 @@ const COMMENT = 8; /* i: waiting for end of comment (gzip) */
|
|
|
4689
4698
|
const HCRC = 9; /* i: waiting for header crc (gzip) */
|
|
4690
4699
|
const DICTID = 10; /* i: waiting for dictionary check value */
|
|
4691
4700
|
const DICT = 11; /* waiting for inflateSetDictionary() call */
|
|
4692
|
-
const TYPE
|
|
4701
|
+
const TYPE = 12; /* i: waiting for type bits, including last-flag bit */
|
|
4693
4702
|
const TYPEDO = 13; /* i: same, but skip check to exit inflate on new block */
|
|
4694
4703
|
const STORED = 14; /* i: waiting for stored size (length and complement) */
|
|
4695
4704
|
const COPY_ = 15; /* i/o: same as COPY below, but only first time in */
|
|
@@ -4707,7 +4716,7 @@ const LIT = 26; /* o: waiting for output space to write literal
|
|
|
4707
4716
|
const CHECK = 27; /* i: waiting for 32-bit check value */
|
|
4708
4717
|
const LENGTH = 28; /* i: waiting for 32-bit length (gzip) */
|
|
4709
4718
|
const DONE = 29; /* finished check, done -- remain here until reset */
|
|
4710
|
-
const BAD
|
|
4719
|
+
const BAD = 30; /* got a data error -- remain here until reset */
|
|
4711
4720
|
const MEM = 31; /* got an inflate() memory error -- remain here until reset */
|
|
4712
4721
|
const SYNC = 32; /* looking for synchronization bytes to restart inflate() */
|
|
4713
4722
|
|
|
@@ -4715,13 +4724,13 @@ const SYNC = 32; /* looking for synchronization bytes to restart inflate
|
|
|
4715
4724
|
|
|
4716
4725
|
|
|
4717
4726
|
|
|
4718
|
-
const ENOUGH_LENS
|
|
4719
|
-
const ENOUGH_DISTS
|
|
4727
|
+
const ENOUGH_LENS = 852;
|
|
4728
|
+
const ENOUGH_DISTS = 592;
|
|
4720
4729
|
//const ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);
|
|
4721
4730
|
|
|
4722
|
-
const MAX_WBITS
|
|
4731
|
+
const MAX_WBITS = 15;
|
|
4723
4732
|
/* 32K LZ77 window */
|
|
4724
|
-
const DEF_WBITS = MAX_WBITS
|
|
4733
|
+
const DEF_WBITS = MAX_WBITS;
|
|
4725
4734
|
|
|
4726
4735
|
|
|
4727
4736
|
const zswap32 = (q) => {
|
|
@@ -4809,13 +4818,13 @@ const inflateResetKeep = (strm) => {
|
|
|
4809
4818
|
state.hold = 0;
|
|
4810
4819
|
state.bits = 0;
|
|
4811
4820
|
//state.lencode = state.distcode = state.next = state.codes;
|
|
4812
|
-
state.lencode = state.lendyn = new Int32Array(ENOUGH_LENS
|
|
4813
|
-
state.distcode = state.distdyn = new Int32Array(ENOUGH_DISTS
|
|
4821
|
+
state.lencode = state.lendyn = new Int32Array(ENOUGH_LENS);
|
|
4822
|
+
state.distcode = state.distdyn = new Int32Array(ENOUGH_DISTS);
|
|
4814
4823
|
|
|
4815
4824
|
state.sane = 1;
|
|
4816
4825
|
state.back = -1;
|
|
4817
4826
|
//Tracev((stderr, "inflate: reset\n"));
|
|
4818
|
-
return Z_OK$
|
|
4827
|
+
return Z_OK$1;
|
|
4819
4828
|
};
|
|
4820
4829
|
|
|
4821
4830
|
|
|
@@ -4877,7 +4886,7 @@ const inflateInit2 = (strm, windowBits) => {
|
|
|
4877
4886
|
strm.state = state;
|
|
4878
4887
|
state.window = null/*Z_NULL*/;
|
|
4879
4888
|
const ret = inflateReset2(strm, windowBits);
|
|
4880
|
-
if (ret !== Z_OK$
|
|
4889
|
+
if (ret !== Z_OK$1) {
|
|
4881
4890
|
strm.state = null/*Z_NULL*/;
|
|
4882
4891
|
}
|
|
4883
4892
|
return ret;
|
|
@@ -4919,13 +4928,13 @@ const fixedtables = (state) => {
|
|
|
4919
4928
|
while (sym < 280) { state.lens[sym++] = 7; }
|
|
4920
4929
|
while (sym < 288) { state.lens[sym++] = 8; }
|
|
4921
4930
|
|
|
4922
|
-
inftrees(LENS
|
|
4931
|
+
inftrees(LENS, state.lens, 0, 288, lenfix, 0, state.work, { bits: 9 });
|
|
4923
4932
|
|
|
4924
4933
|
/* distance table */
|
|
4925
4934
|
sym = 0;
|
|
4926
4935
|
while (sym < 32) { state.lens[sym++] = 5; }
|
|
4927
4936
|
|
|
4928
|
-
inftrees(DISTS
|
|
4937
|
+
inftrees(DISTS, state.lens, 0, 32, distfix, 0, state.work, { bits: 5 });
|
|
4929
4938
|
|
|
4930
4939
|
/* do this just once */
|
|
4931
4940
|
virgin = false;
|
|
@@ -4996,7 +5005,7 @@ const updatewindow = (strm, src, end, copy) => {
|
|
|
4996
5005
|
};
|
|
4997
5006
|
|
|
4998
5007
|
|
|
4999
|
-
const inflate = (strm, flush) => {
|
|
5008
|
+
const inflate$2 = (strm, flush) => {
|
|
5000
5009
|
|
|
5001
5010
|
let state;
|
|
5002
5011
|
let input, output; // input/output buffers
|
|
@@ -5030,7 +5039,7 @@ const inflate = (strm, flush) => {
|
|
|
5030
5039
|
}
|
|
5031
5040
|
|
|
5032
5041
|
state = strm.state;
|
|
5033
|
-
if (state.mode === TYPE
|
|
5042
|
+
if (state.mode === TYPE) { state.mode = TYPEDO; } /* skip check */
|
|
5034
5043
|
|
|
5035
5044
|
|
|
5036
5045
|
//--- LOAD() ---
|
|
@@ -5046,7 +5055,7 @@ const inflate = (strm, flush) => {
|
|
|
5046
5055
|
|
|
5047
5056
|
_in = have;
|
|
5048
5057
|
_out = left;
|
|
5049
|
-
ret = Z_OK$
|
|
5058
|
+
ret = Z_OK$1;
|
|
5050
5059
|
|
|
5051
5060
|
inf_leave: // goto emulation
|
|
5052
5061
|
for (;;) {
|
|
@@ -5086,12 +5095,12 @@ const inflate = (strm, flush) => {
|
|
|
5086
5095
|
if (!(state.wrap & 1) || /* check if zlib header allowed */
|
|
5087
5096
|
(((hold & 0xff)/*BITS(8)*/ << 8) + (hold >> 8)) % 31) {
|
|
5088
5097
|
strm.msg = 'incorrect header check';
|
|
5089
|
-
state.mode = BAD
|
|
5098
|
+
state.mode = BAD;
|
|
5090
5099
|
break;
|
|
5091
5100
|
}
|
|
5092
|
-
if ((hold & 0x0f)/*BITS(4)*/ !== Z_DEFLATED
|
|
5101
|
+
if ((hold & 0x0f)/*BITS(4)*/ !== Z_DEFLATED) {
|
|
5093
5102
|
strm.msg = 'unknown compression method';
|
|
5094
|
-
state.mode = BAD
|
|
5103
|
+
state.mode = BAD;
|
|
5095
5104
|
break;
|
|
5096
5105
|
}
|
|
5097
5106
|
//--- DROPBITS(4) ---//
|
|
@@ -5104,7 +5113,7 @@ const inflate = (strm, flush) => {
|
|
|
5104
5113
|
}
|
|
5105
5114
|
else if (len > state.wbits) {
|
|
5106
5115
|
strm.msg = 'invalid window size';
|
|
5107
|
-
state.mode = BAD
|
|
5116
|
+
state.mode = BAD;
|
|
5108
5117
|
break;
|
|
5109
5118
|
}
|
|
5110
5119
|
|
|
@@ -5115,7 +5124,7 @@ const inflate = (strm, flush) => {
|
|
|
5115
5124
|
|
|
5116
5125
|
//Tracev((stderr, "inflate: zlib header ok\n"));
|
|
5117
5126
|
strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;
|
|
5118
|
-
state.mode = hold & 0x200 ? DICTID : TYPE
|
|
5127
|
+
state.mode = hold & 0x200 ? DICTID : TYPE;
|
|
5119
5128
|
//=== INITBITS();
|
|
5120
5129
|
hold = 0;
|
|
5121
5130
|
bits = 0;
|
|
@@ -5131,14 +5140,14 @@ const inflate = (strm, flush) => {
|
|
|
5131
5140
|
}
|
|
5132
5141
|
//===//
|
|
5133
5142
|
state.flags = hold;
|
|
5134
|
-
if ((state.flags & 0xff) !== Z_DEFLATED
|
|
5143
|
+
if ((state.flags & 0xff) !== Z_DEFLATED) {
|
|
5135
5144
|
strm.msg = 'unknown compression method';
|
|
5136
|
-
state.mode = BAD
|
|
5145
|
+
state.mode = BAD;
|
|
5137
5146
|
break;
|
|
5138
5147
|
}
|
|
5139
5148
|
if (state.flags & 0xe000) {
|
|
5140
5149
|
strm.msg = 'unknown header flags set';
|
|
5141
|
-
state.mode = BAD
|
|
5150
|
+
state.mode = BAD;
|
|
5142
5151
|
break;
|
|
5143
5152
|
}
|
|
5144
5153
|
if (state.head) {
|
|
@@ -5341,7 +5350,7 @@ const inflate = (strm, flush) => {
|
|
|
5341
5350
|
//===//
|
|
5342
5351
|
if (hold !== (state.check & 0xffff)) {
|
|
5343
5352
|
strm.msg = 'header crc mismatch';
|
|
5344
|
-
state.mode = BAD
|
|
5353
|
+
state.mode = BAD;
|
|
5345
5354
|
break;
|
|
5346
5355
|
}
|
|
5347
5356
|
//=== INITBITS();
|
|
@@ -5354,7 +5363,7 @@ const inflate = (strm, flush) => {
|
|
|
5354
5363
|
state.head.done = true;
|
|
5355
5364
|
}
|
|
5356
5365
|
strm.adler = state.check = 0;
|
|
5357
|
-
state.mode = TYPE
|
|
5366
|
+
state.mode = TYPE;
|
|
5358
5367
|
break;
|
|
5359
5368
|
case DICTID:
|
|
5360
5369
|
//=== NEEDBITS(32); */
|
|
@@ -5382,13 +5391,13 @@ const inflate = (strm, flush) => {
|
|
|
5382
5391
|
state.hold = hold;
|
|
5383
5392
|
state.bits = bits;
|
|
5384
5393
|
//---
|
|
5385
|
-
return Z_NEED_DICT;
|
|
5394
|
+
return Z_NEED_DICT$1;
|
|
5386
5395
|
}
|
|
5387
5396
|
strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;
|
|
5388
|
-
state.mode = TYPE
|
|
5397
|
+
state.mode = TYPE;
|
|
5389
5398
|
/* falls through */
|
|
5390
|
-
case TYPE
|
|
5391
|
-
if (flush === Z_BLOCK
|
|
5399
|
+
case TYPE:
|
|
5400
|
+
if (flush === Z_BLOCK || flush === Z_TREES) { break inf_leave; }
|
|
5392
5401
|
/* falls through */
|
|
5393
5402
|
case TYPEDO:
|
|
5394
5403
|
if (state.last) {
|
|
@@ -5439,7 +5448,7 @@ const inflate = (strm, flush) => {
|
|
|
5439
5448
|
break;
|
|
5440
5449
|
case 3:
|
|
5441
5450
|
strm.msg = 'invalid block type';
|
|
5442
|
-
state.mode = BAD
|
|
5451
|
+
state.mode = BAD;
|
|
5443
5452
|
}
|
|
5444
5453
|
//--- DROPBITS(2) ---//
|
|
5445
5454
|
hold >>>= 2;
|
|
@@ -5461,7 +5470,7 @@ const inflate = (strm, flush) => {
|
|
|
5461
5470
|
//===//
|
|
5462
5471
|
if ((hold & 0xffff) !== ((hold >>> 16) ^ 0xffff)) {
|
|
5463
5472
|
strm.msg = 'invalid stored block lengths';
|
|
5464
|
-
state.mode = BAD
|
|
5473
|
+
state.mode = BAD;
|
|
5465
5474
|
break;
|
|
5466
5475
|
}
|
|
5467
5476
|
state.length = hold & 0xffff;
|
|
@@ -5494,7 +5503,7 @@ const inflate = (strm, flush) => {
|
|
|
5494
5503
|
break;
|
|
5495
5504
|
}
|
|
5496
5505
|
//Tracev((stderr, "inflate: stored end\n"));
|
|
5497
|
-
state.mode = TYPE
|
|
5506
|
+
state.mode = TYPE;
|
|
5498
5507
|
break;
|
|
5499
5508
|
case TABLE:
|
|
5500
5509
|
//=== NEEDBITS(14); */
|
|
@@ -5523,7 +5532,7 @@ const inflate = (strm, flush) => {
|
|
|
5523
5532
|
//#ifndef PKZIP_BUG_WORKAROUND
|
|
5524
5533
|
if (state.nlen > 286 || state.ndist > 30) {
|
|
5525
5534
|
strm.msg = 'too many length or distance symbols';
|
|
5526
|
-
state.mode = BAD
|
|
5535
|
+
state.mode = BAD;
|
|
5527
5536
|
break;
|
|
5528
5537
|
}
|
|
5529
5538
|
//#endif
|
|
@@ -5558,12 +5567,12 @@ const inflate = (strm, flush) => {
|
|
|
5558
5567
|
state.lenbits = 7;
|
|
5559
5568
|
|
|
5560
5569
|
opts = { bits: state.lenbits };
|
|
5561
|
-
ret = inftrees(CODES
|
|
5570
|
+
ret = inftrees(CODES, state.lens, 0, 19, state.lencode, 0, state.work, opts);
|
|
5562
5571
|
state.lenbits = opts.bits;
|
|
5563
5572
|
|
|
5564
5573
|
if (ret) {
|
|
5565
5574
|
strm.msg = 'invalid code lengths set';
|
|
5566
|
-
state.mode = BAD
|
|
5575
|
+
state.mode = BAD;
|
|
5567
5576
|
break;
|
|
5568
5577
|
}
|
|
5569
5578
|
//Tracev((stderr, "inflate: code lengths ok\n"));
|
|
@@ -5610,7 +5619,7 @@ const inflate = (strm, flush) => {
|
|
|
5610
5619
|
//---//
|
|
5611
5620
|
if (state.have === 0) {
|
|
5612
5621
|
strm.msg = 'invalid bit length repeat';
|
|
5613
|
-
state.mode = BAD
|
|
5622
|
+
state.mode = BAD;
|
|
5614
5623
|
break;
|
|
5615
5624
|
}
|
|
5616
5625
|
len = state.lens[state.have - 1];
|
|
@@ -5664,7 +5673,7 @@ const inflate = (strm, flush) => {
|
|
|
5664
5673
|
}
|
|
5665
5674
|
if (state.have + copy > state.nlen + state.ndist) {
|
|
5666
5675
|
strm.msg = 'invalid bit length repeat';
|
|
5667
|
-
state.mode = BAD
|
|
5676
|
+
state.mode = BAD;
|
|
5668
5677
|
break;
|
|
5669
5678
|
}
|
|
5670
5679
|
while (copy--) {
|
|
@@ -5674,12 +5683,12 @@ const inflate = (strm, flush) => {
|
|
|
5674
5683
|
}
|
|
5675
5684
|
|
|
5676
5685
|
/* handle error breaks in while */
|
|
5677
|
-
if (state.mode === BAD
|
|
5686
|
+
if (state.mode === BAD) { break; }
|
|
5678
5687
|
|
|
5679
5688
|
/* check for end-of-block code (better have one) */
|
|
5680
5689
|
if (state.lens[256] === 0) {
|
|
5681
5690
|
strm.msg = 'invalid code -- missing end-of-block';
|
|
5682
|
-
state.mode = BAD
|
|
5691
|
+
state.mode = BAD;
|
|
5683
5692
|
break;
|
|
5684
5693
|
}
|
|
5685
5694
|
|
|
@@ -5689,7 +5698,7 @@ const inflate = (strm, flush) => {
|
|
|
5689
5698
|
state.lenbits = 9;
|
|
5690
5699
|
|
|
5691
5700
|
opts = { bits: state.lenbits };
|
|
5692
|
-
ret = inftrees(LENS
|
|
5701
|
+
ret = inftrees(LENS, state.lens, 0, state.nlen, state.lencode, 0, state.work, opts);
|
|
5693
5702
|
// We have separate tables & no pointers. 2 commented lines below not needed.
|
|
5694
5703
|
// state.next_index = opts.table_index;
|
|
5695
5704
|
state.lenbits = opts.bits;
|
|
@@ -5697,7 +5706,7 @@ const inflate = (strm, flush) => {
|
|
|
5697
5706
|
|
|
5698
5707
|
if (ret) {
|
|
5699
5708
|
strm.msg = 'invalid literal/lengths set';
|
|
5700
|
-
state.mode = BAD
|
|
5709
|
+
state.mode = BAD;
|
|
5701
5710
|
break;
|
|
5702
5711
|
}
|
|
5703
5712
|
|
|
@@ -5706,7 +5715,7 @@ const inflate = (strm, flush) => {
|
|
|
5706
5715
|
// Switch to use dynamic table
|
|
5707
5716
|
state.distcode = state.distdyn;
|
|
5708
5717
|
opts = { bits: state.distbits };
|
|
5709
|
-
ret = inftrees(DISTS
|
|
5718
|
+
ret = inftrees(DISTS, state.lens, state.nlen, state.ndist, state.distcode, 0, state.work, opts);
|
|
5710
5719
|
// We have separate tables & no pointers. 2 commented lines below not needed.
|
|
5711
5720
|
// state.next_index = opts.table_index;
|
|
5712
5721
|
state.distbits = opts.bits;
|
|
@@ -5714,7 +5723,7 @@ const inflate = (strm, flush) => {
|
|
|
5714
5723
|
|
|
5715
5724
|
if (ret) {
|
|
5716
5725
|
strm.msg = 'invalid distances set';
|
|
5717
|
-
state.mode = BAD
|
|
5726
|
+
state.mode = BAD;
|
|
5718
5727
|
break;
|
|
5719
5728
|
}
|
|
5720
5729
|
//Tracev((stderr, 'inflate: codes ok\n'));
|
|
@@ -5746,7 +5755,7 @@ const inflate = (strm, flush) => {
|
|
|
5746
5755
|
bits = state.bits;
|
|
5747
5756
|
//---
|
|
5748
5757
|
|
|
5749
|
-
if (state.mode === TYPE
|
|
5758
|
+
if (state.mode === TYPE) {
|
|
5750
5759
|
state.back = -1;
|
|
5751
5760
|
}
|
|
5752
5761
|
break;
|
|
@@ -5807,12 +5816,12 @@ const inflate = (strm, flush) => {
|
|
|
5807
5816
|
if (here_op & 32) {
|
|
5808
5817
|
//Tracevv((stderr, "inflate: end of block\n"));
|
|
5809
5818
|
state.back = -1;
|
|
5810
|
-
state.mode = TYPE
|
|
5819
|
+
state.mode = TYPE;
|
|
5811
5820
|
break;
|
|
5812
5821
|
}
|
|
5813
5822
|
if (here_op & 64) {
|
|
5814
5823
|
strm.msg = 'invalid literal/length code';
|
|
5815
|
-
state.mode = BAD
|
|
5824
|
+
state.mode = BAD;
|
|
5816
5825
|
break;
|
|
5817
5826
|
}
|
|
5818
5827
|
state.extra = here_op & 15;
|
|
@@ -5887,7 +5896,7 @@ const inflate = (strm, flush) => {
|
|
|
5887
5896
|
state.back += here_bits;
|
|
5888
5897
|
if (here_op & 64) {
|
|
5889
5898
|
strm.msg = 'invalid distance code';
|
|
5890
|
-
state.mode = BAD
|
|
5899
|
+
state.mode = BAD;
|
|
5891
5900
|
break;
|
|
5892
5901
|
}
|
|
5893
5902
|
state.offset = here_val;
|
|
@@ -5915,7 +5924,7 @@ const inflate = (strm, flush) => {
|
|
|
5915
5924
|
//#ifdef INFLATE_STRICT
|
|
5916
5925
|
if (state.offset > state.dmax) {
|
|
5917
5926
|
strm.msg = 'invalid distance too far back';
|
|
5918
|
-
state.mode = BAD
|
|
5927
|
+
state.mode = BAD;
|
|
5919
5928
|
break;
|
|
5920
5929
|
}
|
|
5921
5930
|
//#endif
|
|
@@ -5930,7 +5939,7 @@ const inflate = (strm, flush) => {
|
|
|
5930
5939
|
if (copy > state.whave) {
|
|
5931
5940
|
if (state.sane) {
|
|
5932
5941
|
strm.msg = 'invalid distance too far back';
|
|
5933
|
-
state.mode = BAD
|
|
5942
|
+
state.mode = BAD;
|
|
5934
5943
|
break;
|
|
5935
5944
|
}
|
|
5936
5945
|
// (!) This block is disabled in zlib defaults,
|
|
@@ -6002,7 +6011,7 @@ const inflate = (strm, flush) => {
|
|
|
6002
6011
|
// NB: crc32 stored as signed 32-bit int, zswap32 returns signed too
|
|
6003
6012
|
if ((state.flags ? hold : zswap32(hold)) !== state.check) {
|
|
6004
6013
|
strm.msg = 'incorrect data check';
|
|
6005
|
-
state.mode = BAD
|
|
6014
|
+
state.mode = BAD;
|
|
6006
6015
|
break;
|
|
6007
6016
|
}
|
|
6008
6017
|
//=== INITBITS();
|
|
@@ -6025,7 +6034,7 @@ const inflate = (strm, flush) => {
|
|
|
6025
6034
|
//===//
|
|
6026
6035
|
if (hold !== (state.total & 0xffffffff)) {
|
|
6027
6036
|
strm.msg = 'incorrect length check';
|
|
6028
|
-
state.mode = BAD
|
|
6037
|
+
state.mode = BAD;
|
|
6029
6038
|
break;
|
|
6030
6039
|
}
|
|
6031
6040
|
//=== INITBITS();
|
|
@@ -6037,13 +6046,13 @@ const inflate = (strm, flush) => {
|
|
|
6037
6046
|
state.mode = DONE;
|
|
6038
6047
|
/* falls through */
|
|
6039
6048
|
case DONE:
|
|
6040
|
-
ret = Z_STREAM_END$
|
|
6049
|
+
ret = Z_STREAM_END$1;
|
|
6041
6050
|
break inf_leave;
|
|
6042
|
-
case BAD
|
|
6051
|
+
case BAD:
|
|
6043
6052
|
ret = Z_DATA_ERROR$1;
|
|
6044
6053
|
break inf_leave;
|
|
6045
6054
|
case MEM:
|
|
6046
|
-
return Z_MEM_ERROR;
|
|
6055
|
+
return Z_MEM_ERROR$1;
|
|
6047
6056
|
case SYNC:
|
|
6048
6057
|
/* falls through */
|
|
6049
6058
|
default:
|
|
@@ -6069,8 +6078,8 @@ const inflate = (strm, flush) => {
|
|
|
6069
6078
|
state.bits = bits;
|
|
6070
6079
|
//---
|
|
6071
6080
|
|
|
6072
|
-
if (state.wsize || (_out !== strm.avail_out && state.mode < BAD
|
|
6073
|
-
(state.mode < CHECK || flush !== Z_FINISH$
|
|
6081
|
+
if (state.wsize || (_out !== strm.avail_out && state.mode < BAD &&
|
|
6082
|
+
(state.mode < CHECK || flush !== Z_FINISH$1))) {
|
|
6074
6083
|
if (updatewindow(strm, strm.output, strm.next_out, _out - strm.avail_out)) ;
|
|
6075
6084
|
}
|
|
6076
6085
|
_in -= strm.avail_in;
|
|
@@ -6083,10 +6092,10 @@ const inflate = (strm, flush) => {
|
|
|
6083
6092
|
(state.flags ? crc32_1(state.check, output, _out, strm.next_out - _out) : adler32_1(state.check, output, _out, strm.next_out - _out));
|
|
6084
6093
|
}
|
|
6085
6094
|
strm.data_type = state.bits + (state.last ? 64 : 0) +
|
|
6086
|
-
(state.mode === TYPE
|
|
6095
|
+
(state.mode === TYPE ? 128 : 0) +
|
|
6087
6096
|
(state.mode === LEN_ || state.mode === COPY_ ? 256 : 0);
|
|
6088
|
-
if (((_in === 0 && _out === 0) || flush === Z_FINISH$
|
|
6089
|
-
ret = Z_BUF_ERROR
|
|
6097
|
+
if (((_in === 0 && _out === 0) || flush === Z_FINISH$1) && ret === Z_OK$1) {
|
|
6098
|
+
ret = Z_BUF_ERROR;
|
|
6090
6099
|
}
|
|
6091
6100
|
return ret;
|
|
6092
6101
|
};
|
|
@@ -6103,7 +6112,7 @@ const inflateEnd = (strm) => {
|
|
|
6103
6112
|
state.window = null;
|
|
6104
6113
|
}
|
|
6105
6114
|
strm.state = null;
|
|
6106
|
-
return Z_OK$
|
|
6115
|
+
return Z_OK$1;
|
|
6107
6116
|
};
|
|
6108
6117
|
|
|
6109
6118
|
|
|
@@ -6117,7 +6126,7 @@ const inflateGetHeader = (strm, head) => {
|
|
|
6117
6126
|
/* save header structure */
|
|
6118
6127
|
state.head = head;
|
|
6119
6128
|
head.done = false;
|
|
6120
|
-
return Z_OK$
|
|
6129
|
+
return Z_OK$1;
|
|
6121
6130
|
};
|
|
6122
6131
|
|
|
6123
6132
|
|
|
@@ -6150,11 +6159,11 @@ const inflateSetDictionary = (strm, dictionary) => {
|
|
|
6150
6159
|
ret = updatewindow(strm, dictionary, dictLength, dictLength);
|
|
6151
6160
|
if (ret) {
|
|
6152
6161
|
state.mode = MEM;
|
|
6153
|
-
return Z_MEM_ERROR;
|
|
6162
|
+
return Z_MEM_ERROR$1;
|
|
6154
6163
|
}
|
|
6155
6164
|
state.havedict = 1;
|
|
6156
6165
|
// Tracev((stderr, "inflate: dictionary set\n"));
|
|
6157
|
-
return Z_OK$
|
|
6166
|
+
return Z_OK$1;
|
|
6158
6167
|
};
|
|
6159
6168
|
|
|
6160
6169
|
|
|
@@ -6163,7 +6172,7 @@ var inflateReset2_1 = inflateReset2;
|
|
|
6163
6172
|
var inflateResetKeep_1 = inflateResetKeep;
|
|
6164
6173
|
var inflateInit_1 = inflateInit;
|
|
6165
6174
|
var inflateInit2_1 = inflateInit2;
|
|
6166
|
-
var inflate_2 = inflate;
|
|
6175
|
+
var inflate_2$1 = inflate$2;
|
|
6167
6176
|
var inflateEnd_1 = inflateEnd;
|
|
6168
6177
|
var inflateGetHeader_1 = inflateGetHeader;
|
|
6169
6178
|
var inflateSetDictionary_1 = inflateSetDictionary;
|
|
@@ -6179,13 +6188,13 @@ module.exports.inflateSyncPoint = inflateSyncPoint;
|
|
|
6179
6188
|
module.exports.inflateUndermine = inflateUndermine;
|
|
6180
6189
|
*/
|
|
6181
6190
|
|
|
6182
|
-
var inflate_1 = {
|
|
6191
|
+
var inflate_1$2 = {
|
|
6183
6192
|
inflateReset: inflateReset_1,
|
|
6184
6193
|
inflateReset2: inflateReset2_1,
|
|
6185
6194
|
inflateResetKeep: inflateResetKeep_1,
|
|
6186
6195
|
inflateInit: inflateInit_1,
|
|
6187
6196
|
inflateInit2: inflateInit2_1,
|
|
6188
|
-
inflate: inflate_2,
|
|
6197
|
+
inflate: inflate_2$1,
|
|
6189
6198
|
inflateEnd: inflateEnd_1,
|
|
6190
6199
|
inflateGetHeader: inflateGetHeader_1,
|
|
6191
6200
|
inflateSetDictionary: inflateSetDictionary_1,
|
|
@@ -6249,15 +6258,15 @@ function GZheader() {
|
|
|
6249
6258
|
|
|
6250
6259
|
var gzheader = GZheader;
|
|
6251
6260
|
|
|
6252
|
-
const toString
|
|
6261
|
+
const toString = Object.prototype.toString;
|
|
6253
6262
|
|
|
6254
6263
|
/* Public constants ==========================================================*/
|
|
6255
6264
|
/* ===========================================================================*/
|
|
6256
6265
|
|
|
6257
6266
|
const {
|
|
6258
|
-
Z_NO_FLUSH
|
|
6259
|
-
Z_OK
|
|
6260
|
-
} = constants;
|
|
6267
|
+
Z_NO_FLUSH, Z_FINISH,
|
|
6268
|
+
Z_OK, Z_STREAM_END, Z_NEED_DICT, Z_STREAM_ERROR, Z_DATA_ERROR, Z_MEM_ERROR
|
|
6269
|
+
} = constants$2;
|
|
6261
6270
|
|
|
6262
6271
|
/* ===========================================================================*/
|
|
6263
6272
|
|
|
@@ -6339,7 +6348,7 @@ const {
|
|
|
6339
6348
|
* console.log(inflate.result);
|
|
6340
6349
|
* ```
|
|
6341
6350
|
**/
|
|
6342
|
-
function Inflate(options) {
|
|
6351
|
+
function Inflate$1(options) {
|
|
6343
6352
|
this.options = common.assign({
|
|
6344
6353
|
chunkSize: 1024 * 64,
|
|
6345
6354
|
windowBits: 15,
|
|
@@ -6379,30 +6388,30 @@ function Inflate(options) {
|
|
|
6379
6388
|
this.strm = new zstream();
|
|
6380
6389
|
this.strm.avail_out = 0;
|
|
6381
6390
|
|
|
6382
|
-
let status = inflate_1.inflateInit2(
|
|
6391
|
+
let status = inflate_1$2.inflateInit2(
|
|
6383
6392
|
this.strm,
|
|
6384
6393
|
opt.windowBits
|
|
6385
6394
|
);
|
|
6386
6395
|
|
|
6387
|
-
if (status !== Z_OK
|
|
6396
|
+
if (status !== Z_OK) {
|
|
6388
6397
|
throw new Error(messages[status]);
|
|
6389
6398
|
}
|
|
6390
6399
|
|
|
6391
6400
|
this.header = new gzheader();
|
|
6392
6401
|
|
|
6393
|
-
inflate_1.inflateGetHeader(this.strm, this.header);
|
|
6402
|
+
inflate_1$2.inflateGetHeader(this.strm, this.header);
|
|
6394
6403
|
|
|
6395
6404
|
// Setup dictionary
|
|
6396
6405
|
if (opt.dictionary) {
|
|
6397
6406
|
// Convert data if needed
|
|
6398
6407
|
if (typeof opt.dictionary === 'string') {
|
|
6399
6408
|
opt.dictionary = strings.string2buf(opt.dictionary);
|
|
6400
|
-
} else if (toString
|
|
6409
|
+
} else if (toString.call(opt.dictionary) === '[object ArrayBuffer]') {
|
|
6401
6410
|
opt.dictionary = new Uint8Array(opt.dictionary);
|
|
6402
6411
|
}
|
|
6403
6412
|
if (opt.raw) { //In raw mode we need to set the dictionary early
|
|
6404
|
-
status = inflate_1.inflateSetDictionary(this.strm, opt.dictionary);
|
|
6405
|
-
if (status !== Z_OK
|
|
6413
|
+
status = inflate_1$2.inflateSetDictionary(this.strm, opt.dictionary);
|
|
6414
|
+
if (status !== Z_OK) {
|
|
6406
6415
|
throw new Error(messages[status]);
|
|
6407
6416
|
}
|
|
6408
6417
|
}
|
|
@@ -6434,7 +6443,7 @@ function Inflate(options) {
|
|
|
6434
6443
|
* push(chunk, true); // push last chunk
|
|
6435
6444
|
* ```
|
|
6436
6445
|
**/
|
|
6437
|
-
Inflate.prototype.push = function (data, flush_mode) {
|
|
6446
|
+
Inflate$1.prototype.push = function (data, flush_mode) {
|
|
6438
6447
|
const strm = this.strm;
|
|
6439
6448
|
const chunkSize = this.options.chunkSize;
|
|
6440
6449
|
const dictionary = this.options.dictionary;
|
|
@@ -6443,10 +6452,10 @@ Inflate.prototype.push = function (data, flush_mode) {
|
|
|
6443
6452
|
if (this.ended) return false;
|
|
6444
6453
|
|
|
6445
6454
|
if (flush_mode === ~~flush_mode) _flush_mode = flush_mode;
|
|
6446
|
-
else _flush_mode = flush_mode === true ? Z_FINISH
|
|
6455
|
+
else _flush_mode = flush_mode === true ? Z_FINISH : Z_NO_FLUSH;
|
|
6447
6456
|
|
|
6448
6457
|
// Convert data if needed
|
|
6449
|
-
if (toString
|
|
6458
|
+
if (toString.call(data) === '[object ArrayBuffer]') {
|
|
6450
6459
|
strm.input = new Uint8Array(data);
|
|
6451
6460
|
} else {
|
|
6452
6461
|
strm.input = data;
|
|
@@ -6462,34 +6471,34 @@ Inflate.prototype.push = function (data, flush_mode) {
|
|
|
6462
6471
|
strm.avail_out = chunkSize;
|
|
6463
6472
|
}
|
|
6464
6473
|
|
|
6465
|
-
status = inflate_1.inflate(strm, _flush_mode);
|
|
6474
|
+
status = inflate_1$2.inflate(strm, _flush_mode);
|
|
6466
6475
|
|
|
6467
|
-
if (status === Z_NEED_DICT
|
|
6468
|
-
status = inflate_1.inflateSetDictionary(strm, dictionary);
|
|
6476
|
+
if (status === Z_NEED_DICT && dictionary) {
|
|
6477
|
+
status = inflate_1$2.inflateSetDictionary(strm, dictionary);
|
|
6469
6478
|
|
|
6470
|
-
if (status === Z_OK
|
|
6471
|
-
status = inflate_1.inflate(strm, _flush_mode);
|
|
6472
|
-
} else if (status === Z_DATA_ERROR
|
|
6479
|
+
if (status === Z_OK) {
|
|
6480
|
+
status = inflate_1$2.inflate(strm, _flush_mode);
|
|
6481
|
+
} else if (status === Z_DATA_ERROR) {
|
|
6473
6482
|
// Replace code with more verbose
|
|
6474
|
-
status = Z_NEED_DICT
|
|
6483
|
+
status = Z_NEED_DICT;
|
|
6475
6484
|
}
|
|
6476
6485
|
}
|
|
6477
6486
|
|
|
6478
6487
|
// Skip snyc markers if more data follows and not raw mode
|
|
6479
6488
|
while (strm.avail_in > 0 &&
|
|
6480
|
-
status === Z_STREAM_END
|
|
6489
|
+
status === Z_STREAM_END &&
|
|
6481
6490
|
strm.state.wrap > 0 &&
|
|
6482
6491
|
data[strm.next_in] !== 0)
|
|
6483
6492
|
{
|
|
6484
|
-
inflate_1.inflateReset(strm);
|
|
6485
|
-
status = inflate_1.inflate(strm, _flush_mode);
|
|
6493
|
+
inflate_1$2.inflateReset(strm);
|
|
6494
|
+
status = inflate_1$2.inflate(strm, _flush_mode);
|
|
6486
6495
|
}
|
|
6487
6496
|
|
|
6488
6497
|
switch (status) {
|
|
6489
|
-
case Z_STREAM_ERROR
|
|
6490
|
-
case Z_DATA_ERROR
|
|
6491
|
-
case Z_NEED_DICT
|
|
6492
|
-
case Z_MEM_ERROR
|
|
6498
|
+
case Z_STREAM_ERROR:
|
|
6499
|
+
case Z_DATA_ERROR:
|
|
6500
|
+
case Z_NEED_DICT:
|
|
6501
|
+
case Z_MEM_ERROR:
|
|
6493
6502
|
this.onEnd(status);
|
|
6494
6503
|
this.ended = true;
|
|
6495
6504
|
return false;
|
|
@@ -6500,7 +6509,7 @@ Inflate.prototype.push = function (data, flush_mode) {
|
|
|
6500
6509
|
last_avail_out = strm.avail_out;
|
|
6501
6510
|
|
|
6502
6511
|
if (strm.next_out) {
|
|
6503
|
-
if (strm.avail_out === 0 || status === Z_STREAM_END
|
|
6512
|
+
if (strm.avail_out === 0 || status === Z_STREAM_END) {
|
|
6504
6513
|
|
|
6505
6514
|
if (this.options.to === 'string') {
|
|
6506
6515
|
|
|
@@ -6523,11 +6532,11 @@ Inflate.prototype.push = function (data, flush_mode) {
|
|
|
6523
6532
|
}
|
|
6524
6533
|
|
|
6525
6534
|
// Must repeat iteration if out buffer is full
|
|
6526
|
-
if (status === Z_OK
|
|
6535
|
+
if (status === Z_OK && last_avail_out === 0) continue;
|
|
6527
6536
|
|
|
6528
6537
|
// Finalize if end of stream reached.
|
|
6529
|
-
if (status === Z_STREAM_END
|
|
6530
|
-
status = inflate_1.inflateEnd(this.strm);
|
|
6538
|
+
if (status === Z_STREAM_END) {
|
|
6539
|
+
status = inflate_1$2.inflateEnd(this.strm);
|
|
6531
6540
|
this.onEnd(status);
|
|
6532
6541
|
this.ended = true;
|
|
6533
6542
|
return true;
|
|
@@ -6548,7 +6557,7 @@ Inflate.prototype.push = function (data, flush_mode) {
|
|
|
6548
6557
|
* By default, stores data blocks in `chunks[]` property and glue
|
|
6549
6558
|
* those in `onEnd`. Override this handler, if you need another behaviour.
|
|
6550
6559
|
**/
|
|
6551
|
-
Inflate.prototype.onData = function (chunk) {
|
|
6560
|
+
Inflate$1.prototype.onData = function (chunk) {
|
|
6552
6561
|
this.chunks.push(chunk);
|
|
6553
6562
|
};
|
|
6554
6563
|
|
|
@@ -6562,9 +6571,9 @@ Inflate.prototype.onData = function (chunk) {
|
|
|
6562
6571
|
* complete (Z_FINISH). By default - join collected chunks,
|
|
6563
6572
|
* free memory and fill `results` / `err` properties.
|
|
6564
6573
|
**/
|
|
6565
|
-
Inflate.prototype.onEnd = function (status) {
|
|
6574
|
+
Inflate$1.prototype.onEnd = function (status) {
|
|
6566
6575
|
// On success - join
|
|
6567
|
-
if (status === Z_OK
|
|
6576
|
+
if (status === Z_OK) {
|
|
6568
6577
|
if (this.options.to === 'string') {
|
|
6569
6578
|
this.result = this.chunks.join('');
|
|
6570
6579
|
} else {
|
|
@@ -6611,13 +6620,13 @@ Inflate.prototype.onEnd = function (status) {
|
|
|
6611
6620
|
*
|
|
6612
6621
|
* try {
|
|
6613
6622
|
* output = pako.inflate(input);
|
|
6614
|
-
* } catch (err)
|
|
6623
|
+
* } catch (err) {
|
|
6615
6624
|
* console.log(err);
|
|
6616
6625
|
* }
|
|
6617
6626
|
* ```
|
|
6618
6627
|
**/
|
|
6619
6628
|
function inflate$1(input, options) {
|
|
6620
|
-
const inflator = new Inflate(options);
|
|
6629
|
+
const inflator = new Inflate$1(options);
|
|
6621
6630
|
|
|
6622
6631
|
inflator.push(input);
|
|
6623
6632
|
|
|
@@ -6636,7 +6645,7 @@ function inflate$1(input, options) {
|
|
|
6636
6645
|
* The same as [[inflate]], but creates raw data, without wrapper
|
|
6637
6646
|
* (header and adler32 crc).
|
|
6638
6647
|
**/
|
|
6639
|
-
function inflateRaw(input, options) {
|
|
6648
|
+
function inflateRaw$1(input, options) {
|
|
6640
6649
|
options = options || {};
|
|
6641
6650
|
options.raw = true;
|
|
6642
6651
|
return inflate$1(input, options);
|
|
@@ -6653,44 +6662,44 @@ function inflateRaw(input, options) {
|
|
|
6653
6662
|
**/
|
|
6654
6663
|
|
|
6655
6664
|
|
|
6656
|
-
var Inflate_1 = Inflate;
|
|
6657
|
-
var inflate_2
|
|
6658
|
-
var inflateRaw_1 = inflateRaw;
|
|
6659
|
-
var ungzip = inflate$1;
|
|
6660
|
-
var constants
|
|
6665
|
+
var Inflate_1$1 = Inflate$1;
|
|
6666
|
+
var inflate_2 = inflate$1;
|
|
6667
|
+
var inflateRaw_1$1 = inflateRaw$1;
|
|
6668
|
+
var ungzip$1 = inflate$1;
|
|
6669
|
+
var constants = constants$2;
|
|
6661
6670
|
|
|
6662
6671
|
var inflate_1$1 = {
|
|
6663
|
-
Inflate: Inflate_1,
|
|
6664
|
-
inflate: inflate_2
|
|
6665
|
-
inflateRaw: inflateRaw_1,
|
|
6666
|
-
ungzip: ungzip,
|
|
6667
|
-
constants: constants
|
|
6672
|
+
Inflate: Inflate_1$1,
|
|
6673
|
+
inflate: inflate_2,
|
|
6674
|
+
inflateRaw: inflateRaw_1$1,
|
|
6675
|
+
ungzip: ungzip$1,
|
|
6676
|
+
constants: constants
|
|
6668
6677
|
};
|
|
6669
6678
|
|
|
6670
|
-
const { Deflate
|
|
6679
|
+
const { Deflate, deflate, deflateRaw, gzip } = deflate_1$1;
|
|
6671
6680
|
|
|
6672
|
-
const { Inflate
|
|
6681
|
+
const { Inflate, inflate, inflateRaw, ungzip } = inflate_1$1;
|
|
6673
6682
|
|
|
6674
6683
|
|
|
6675
6684
|
|
|
6676
|
-
var Deflate_1
|
|
6677
|
-
var deflate_1
|
|
6678
|
-
var deflateRaw_1
|
|
6679
|
-
var gzip_1
|
|
6680
|
-
var Inflate_1
|
|
6681
|
-
var inflate_1
|
|
6682
|
-
var inflateRaw_1
|
|
6683
|
-
var ungzip_1 = ungzip
|
|
6684
|
-
var constants_1 = constants;
|
|
6685
|
+
var Deflate_1 = Deflate;
|
|
6686
|
+
var deflate_1 = deflate;
|
|
6687
|
+
var deflateRaw_1 = deflateRaw;
|
|
6688
|
+
var gzip_1 = gzip;
|
|
6689
|
+
var Inflate_1 = Inflate;
|
|
6690
|
+
var inflate_1 = inflate;
|
|
6691
|
+
var inflateRaw_1 = inflateRaw;
|
|
6692
|
+
var ungzip_1 = ungzip;
|
|
6693
|
+
var constants_1 = constants$2;
|
|
6685
6694
|
|
|
6686
6695
|
var pako = {
|
|
6687
|
-
Deflate: Deflate_1
|
|
6688
|
-
deflate: deflate_1
|
|
6689
|
-
deflateRaw: deflateRaw_1
|
|
6690
|
-
gzip: gzip_1
|
|
6691
|
-
Inflate: Inflate_1
|
|
6692
|
-
inflate: inflate_1
|
|
6693
|
-
inflateRaw: inflateRaw_1
|
|
6696
|
+
Deflate: Deflate_1,
|
|
6697
|
+
deflate: deflate_1,
|
|
6698
|
+
deflateRaw: deflateRaw_1,
|
|
6699
|
+
gzip: gzip_1,
|
|
6700
|
+
Inflate: Inflate_1,
|
|
6701
|
+
inflate: inflate_1,
|
|
6702
|
+
inflateRaw: inflateRaw_1,
|
|
6694
6703
|
ungzip: ungzip_1,
|
|
6695
6704
|
constants: constants_1
|
|
6696
6705
|
};
|