dune-react 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -0
- package/dist/_virtual/_commonjsHelpers.js +8 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/sha1.js +4 -0
- package/dist/_virtual/util.js +4 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/ui-custom/background.d.ts +8 -0
- package/dist/components/ui-custom/background.js +51 -0
- package/dist/components/ui-custom/cover.d.ts +17 -0
- package/dist/components/ui-custom/cover.js +231 -0
- package/dist/components/ui-custom/sparkles.d.ts +13 -0
- package/dist/components/ui-custom/sparkles.js +418 -0
- package/dist/components/ui-custom/spotlight-new.d.ts +13 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +40 -0
- package/dist/node_modules/.pnpm/@fluid-tailwind_tailwind-merge@0.0.3_tailwind-merge@3.3.1/node_modules/@fluid-tailwind/tailwind-merge/dist/index.js +50 -0
- package/dist/node_modules/.pnpm/@tsparticles_basic@3.9.1/node_modules/@tsparticles/basic/browser/index.js +25 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Canvas.js +510 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Container.js +463 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Engine.js +293 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Particle.js +355 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Particles.js +326 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Retina.js +37 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Constants.js +105 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/EventListeners.js +309 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/ExternalInteractorBase.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/InteractionManager.js +64 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/ParticlesInteractorBase.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Point.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/QuadTree.js +60 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Ranges.js +57 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Vectors.js +120 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/AnimationStatus.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/MoveDirection.js +17 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/OutModeDirection.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/RotateDirection.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/InteractivityDetect.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/AnimationMode.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/CollisionMode.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/LimitMode.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/OutMode.js +11 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/PixelMode.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/ResponsiveMode.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/ThemeMode.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/AlterType.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/DestroyType.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/DivType.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/EasingType.js +33 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/EventType.js +18 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/GradientType.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/InteractorType.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/ParticleOutType.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/StartValueType.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/AnimatableColor.js +38 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/AnimationOptions.js +60 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Background/Background.js +39 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/BackgroundMask/BackgroundMask.js +27 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.js +24 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ColorAnimation.js +22 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/FullScreen/FullScreen.js +21 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/HslAnimation.js +20 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/ClickEvent.js +21 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/DivEvent.js +30 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/Events.js +33 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/HoverEvent.js +24 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/Parallax.js +25 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/ResizeEvent.js +21 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Interactivity.js +25 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Modes/Modes.js +28 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ManualParticle.js +24 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Options.js +163 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/OptionsColor.js +29 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Bounce/ParticlesBounce.js +18 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/Collisions.js +36 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/CollisionsAbsorb.js +17 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/CollisionsOverlap.js +21 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Effect/Effect.js +36 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Move.js +95 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveAngle.js +22 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveAttract.js +36 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveCenter.js +30 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveGravity.js +30 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveTrail.js +26 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveTrailFill.js +18 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/OutModes.js +22 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Path/MovePath.js +30 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Spin.js +26 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesDensity.js +27 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesNumber.js +23 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesNumberLimit.js +22 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Opacity/Opacity.js +23 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +22 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/ParticlesOptions.js +97 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Shadow.js +38 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Shape/Shape.js +36 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Size/Size.js +23 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Size/SizeAnimation.js +22 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Stroke.js +25 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/ZIndex/ZIndex.js +28 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Responsive.js +31 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Theme/Theme.js +24 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Theme/ThemeDefault.js +26 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ValueWithRandom.js +46 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Types/RangeType.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/CanvasUtils.js +168 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/ColorUtils.js +316 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/EventDispatcher.js +47 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js +135 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/OptionsUtils.js +15 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/TypeUtils.js +26 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/Utils.js +475 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/index.js +82 -0
- package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/init.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/Attractor.js +81 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/Options/Classes/Attract.js +38 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/Utils.js +50 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/Bouncer.js +45 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/Options/Classes/Bounce.js +17 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/Utils.js +47 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Bubbler.js +274 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Enums.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Options/Classes/Bubble.js +20 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Options/Classes/BubbleBase.js +39 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Options/Classes/BubbleDiv.js +20 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Utils.js +13 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Connector.js +59 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Options/Classes/Connect.js +24 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Options/Classes/ConnectLinks.js +17 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Utils.js +44 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Grabber.js +76 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Options/Classes/Grab.js +20 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Options/Classes/GrabLinks.js +29 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Utils.js +19 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-pause@3.9.1/node_modules/@tsparticles/interaction-external-pause/browser/Pauser.js +32 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-pause@3.9.1/node_modules/@tsparticles/interaction-external-pause/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-push@3.9.1/node_modules/@tsparticles/interaction-external-push/browser/Options/Classes/Push.js +34 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-push@3.9.1/node_modules/@tsparticles/interaction-external-push/browser/Pusher.js +47 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-push@3.9.1/node_modules/@tsparticles/interaction-external-push/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-remove@3.9.1/node_modules/@tsparticles/interaction-external-remove/browser/Options/Classes/Remove.js +19 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-remove@3.9.1/node_modules/@tsparticles/interaction-external-remove/browser/Remover.js +39 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-remove@3.9.1/node_modules/@tsparticles/interaction-external-remove/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Options/Classes/Repulse.js +20 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Options/Classes/RepulseBase.js +38 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Options/Classes/RepulseDiv.js +20 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Repulser.js +160 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-slow@3.9.1/node_modules/@tsparticles/interaction-external-slow/browser/Options/Classes/Slow.js +21 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-slow@3.9.1/node_modules/@tsparticles/interaction-external-slow/browser/Slower.js +53 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-external-slow@3.9.1/node_modules/@tsparticles/interaction-external-slow/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-attract@3.9.1/node_modules/@tsparticles/interaction-particles-attract/browser/Attractor.js +37 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-attract@3.9.1/node_modules/@tsparticles/interaction-particles-attract/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Absorb.js +28 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Bounce.js +18 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Collider.js +41 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Destroy.js +17 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/ResolveCollision.js +23 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/CircleWarp.js +33 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/LinkInstance.js +152 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Linker.js +109 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/LinksPlugin.js +18 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Options/Classes/Links.js +58 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Options/Classes/LinksShadow.js +25 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Options/Classes/LinksTriangle.js +28 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Utils.js +106 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/interaction.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/plugin.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_move-base@3.9.1/node_modules/@tsparticles/move-base/browser/BaseMover.js +37 -0
- package/dist/node_modules/.pnpm/@tsparticles_move-base@3.9.1/node_modules/@tsparticles/move-base/browser/Utils.js +128 -0
- package/dist/node_modules/.pnpm/@tsparticles_move-base@3.9.1/node_modules/@tsparticles/move-base/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_move-parallax@3.9.1/node_modules/@tsparticles/move-parallax/browser/ParallaxMover.js +31 -0
- package/dist/node_modules/.pnpm/@tsparticles_move-parallax@3.9.1/node_modules/@tsparticles/move-parallax/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_plugin-easing-quad@3.9.1/node_modules/@tsparticles/plugin-easing-quad/browser/index.js +11 -0
- package/dist/node_modules/.pnpm/@tsparticles_plugin-hex-color@3.9.1/node_modules/@tsparticles/plugin-hex-color/browser/HexColorManager.js +43 -0
- package/dist/node_modules/.pnpm/@tsparticles_plugin-hex-color@3.9.1/node_modules/@tsparticles/plugin-hex-color/browser/index.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_plugin-hsl-color@3.9.1/node_modules/@tsparticles/plugin-hsl-color/browser/HslColorManager.js +46 -0
- package/dist/node_modules/.pnpm/@tsparticles_plugin-hsl-color@3.9.1/node_modules/@tsparticles/plugin-hsl-color/browser/index.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_plugin-rgb-color@3.9.1/node_modules/@tsparticles/plugin-rgb-color/browser/RgbColorManager.js +45 -0
- package/dist/node_modules/.pnpm/@tsparticles_plugin-rgb-color@3.9.1/node_modules/@tsparticles/plugin-rgb-color/browser/index.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_react@3.0.0_@tsparticles_engine@3.9.1_react-dom@18.3.1_react@18.3.1/node_modules/@tsparticles/react/dist/Particles.js +18 -0
- package/dist/node_modules/.pnpm/@tsparticles_react@3.0.0_@tsparticles_engine@3.9.1_react-dom@18.3.1_react@18.3.1/node_modules/@tsparticles/react/dist/index.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-circle@3.9.1/node_modules/@tsparticles/shape-circle/browser/CircleDrawer.js +28 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-circle@3.9.1/node_modules/@tsparticles/shape-circle/browser/Utils.js +12 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-circle@3.9.1/node_modules/@tsparticles/shape-circle/browser/index.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-emoji@3.9.1/node_modules/@tsparticles/shape-emoji/browser/EmojiDrawer.js +103 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-emoji@3.9.1/node_modules/@tsparticles/shape-emoji/browser/Utils.js +13 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-emoji@3.9.1/node_modules/@tsparticles/shape-emoji/browser/index.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/ByteStream.js +51 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Constants.js +6 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Enums/DisposalMethod.js +14 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Types/GIFDataHeaders.js +13 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Utils.js +419 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/ImageDrawer.js +130 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/ImagePreloader.js +36 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/Options/Classes/Preload.js +33 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/Utils.js +94 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/index.js +54 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-line@3.9.1/node_modules/@tsparticles/shape-line/browser/LineDrawer.js +16 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-line@3.9.1/node_modules/@tsparticles/shape-line/browser/Utils.js +9 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-line@3.9.1/node_modules/@tsparticles/shape-line/browser/index.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/PolygonDrawer.js +27 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/PolygonDrawerBase.js +16 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/TriangleDrawer.js +30 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/Utils.js +19 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/index.js +20 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-square@3.9.1/node_modules/@tsparticles/shape-square/browser/SquareDrawer.js +16 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-square@3.9.1/node_modules/@tsparticles/shape-square/browser/Utils.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-square@3.9.1/node_modules/@tsparticles/shape-square/browser/index.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-star@3.9.1/node_modules/@tsparticles/shape-star/browser/StarDrawer.js +22 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-star@3.9.1/node_modules/@tsparticles/shape-star/browser/Utils.js +14 -0
- package/dist/node_modules/.pnpm/@tsparticles_shape-star@3.9.1/node_modules/@tsparticles/shape-star/browser/index.js +8 -0
- package/dist/node_modules/.pnpm/@tsparticles_slim@3.9.1/node_modules/@tsparticles/slim/browser/index.js +56 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-color@3.9.1/node_modules/@tsparticles/updater-color/browser/ColorUpdater.js +23 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-color@3.9.1/node_modules/@tsparticles/updater-color/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/LifeUpdater.js +52 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Options/Classes/Life.js +23 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDelay.js +20 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDuration.js +20 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Utils.js +58 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-opacity@3.9.1/node_modules/@tsparticles/updater-opacity/browser/OpacityUpdater.js +38 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-opacity@3.9.1/node_modules/@tsparticles/updater-opacity/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/BounceOutMode.js +36 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/DestroyOutMode.js +37 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/NoneOutMode.js +36 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/OutOfCanvasUpdater.js +45 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/OutOutMode.js +110 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/Utils.js +66 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/Options/Classes/Rotate.js +29 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/Options/Classes/RotateAnimation.js +30 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/RotateUpdater.js +77 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-size@3.9.1/node_modules/@tsparticles/updater-size/browser/SizeUpdater.js +30 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-size@3.9.1/node_modules/@tsparticles/updater-size/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-stroke-color@3.9.1/node_modules/@tsparticles/updater-stroke-color/browser/StrokeColorUpdater.js +35 -0
- package/dist/node_modules/.pnpm/@tsparticles_updater-stroke-color@3.9.1/node_modules/@tsparticles/updater-stroke-color/browser/index.js +10 -0
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
- package/dist/node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/index.js +826 -0
- package/dist/node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/supported.js +242 -0
- package/dist/node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/util.js +64 -0
- package/dist/node_modules/.pnpm/js-sha1@0.6.0/node_modules/js-sha1/src/sha1.js +311 -0
- package/dist/node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/index.browser.js +22 -0
- package/dist/node_modules/.pnpm/tailwind-merge@3.3.1/node_modules/tailwind-merge/dist/bundle-mjs.js +3007 -0
- package/dist/utils/css-utils.d.ts +10 -0
- package/dist/utils/css-utils.js +17 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/storage-qetag.d.ts +22 -0
- package/dist/utils/storage-qetag.js +3 -0
- package/dist/utils/utils-api.d.ts +17 -0
- package/dist/utils/utils-api.js +31 -0
- package/dist/utils/utils-canvas.d.ts +30 -0
- package/dist/utils/utils-canvas.js +54 -0
- package/dist/utils/utils-common.d.ts +6 -0
- package/dist/utils/utils-common.js +15 -0
- package/dist/utils/utils-image.d.ts +33 -0
- package/dist/utils/utils-image.js +57 -0
- package/dist/utils/utils-random.d.ts +1 -0
- package/dist/utils/utils-random.js +6 -0
- package/dist/utils/utils-time.d.ts +49 -0
- package/dist/utils/utils-time.js +112 -0
- package/package.json +81 -0
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
var supported = {
|
|
2
|
+
extensions: [
|
|
3
|
+
"jpg",
|
|
4
|
+
"png",
|
|
5
|
+
"apng",
|
|
6
|
+
"gif",
|
|
7
|
+
"webp",
|
|
8
|
+
"flif",
|
|
9
|
+
"cr2",
|
|
10
|
+
"orf",
|
|
11
|
+
"arw",
|
|
12
|
+
"dng",
|
|
13
|
+
"nef",
|
|
14
|
+
"rw2",
|
|
15
|
+
"raf",
|
|
16
|
+
"tif",
|
|
17
|
+
"bmp",
|
|
18
|
+
"jxr",
|
|
19
|
+
"psd",
|
|
20
|
+
"zip",
|
|
21
|
+
"tar",
|
|
22
|
+
"rar",
|
|
23
|
+
"gz",
|
|
24
|
+
"bz2",
|
|
25
|
+
"7z",
|
|
26
|
+
"dmg",
|
|
27
|
+
"mp4",
|
|
28
|
+
"mid",
|
|
29
|
+
"mkv",
|
|
30
|
+
"webm",
|
|
31
|
+
"mov",
|
|
32
|
+
"avi",
|
|
33
|
+
"mpg",
|
|
34
|
+
"mp2",
|
|
35
|
+
"mp3",
|
|
36
|
+
"m4a",
|
|
37
|
+
"oga",
|
|
38
|
+
"ogg",
|
|
39
|
+
"ogv",
|
|
40
|
+
"opus",
|
|
41
|
+
"flac",
|
|
42
|
+
"wav",
|
|
43
|
+
"spx",
|
|
44
|
+
"amr",
|
|
45
|
+
"pdf",
|
|
46
|
+
"epub",
|
|
47
|
+
"exe",
|
|
48
|
+
"swf",
|
|
49
|
+
"rtf",
|
|
50
|
+
"wasm",
|
|
51
|
+
"woff",
|
|
52
|
+
"woff2",
|
|
53
|
+
"eot",
|
|
54
|
+
"ttf",
|
|
55
|
+
"otf",
|
|
56
|
+
"ico",
|
|
57
|
+
"flv",
|
|
58
|
+
"ps",
|
|
59
|
+
"xz",
|
|
60
|
+
"sqlite",
|
|
61
|
+
"nes",
|
|
62
|
+
"crx",
|
|
63
|
+
"xpi",
|
|
64
|
+
"cab",
|
|
65
|
+
"deb",
|
|
66
|
+
"ar",
|
|
67
|
+
"rpm",
|
|
68
|
+
"Z",
|
|
69
|
+
"lz",
|
|
70
|
+
"msi",
|
|
71
|
+
"mxf",
|
|
72
|
+
"mts",
|
|
73
|
+
"blend",
|
|
74
|
+
"bpg",
|
|
75
|
+
"docx",
|
|
76
|
+
"pptx",
|
|
77
|
+
"xlsx",
|
|
78
|
+
"3gp",
|
|
79
|
+
"3g2",
|
|
80
|
+
"jp2",
|
|
81
|
+
"jpm",
|
|
82
|
+
"jpx",
|
|
83
|
+
"mj2",
|
|
84
|
+
"aif",
|
|
85
|
+
"qcp",
|
|
86
|
+
"odt",
|
|
87
|
+
"ods",
|
|
88
|
+
"odp",
|
|
89
|
+
"xml",
|
|
90
|
+
"mobi",
|
|
91
|
+
"heic",
|
|
92
|
+
"cur",
|
|
93
|
+
"ktx",
|
|
94
|
+
"ape",
|
|
95
|
+
"wv",
|
|
96
|
+
"wmv",
|
|
97
|
+
"wma",
|
|
98
|
+
"dcm",
|
|
99
|
+
"ics",
|
|
100
|
+
"glb",
|
|
101
|
+
"pcap",
|
|
102
|
+
"dsf",
|
|
103
|
+
"lnk",
|
|
104
|
+
"alias",
|
|
105
|
+
"voc",
|
|
106
|
+
"ac3",
|
|
107
|
+
"m4v",
|
|
108
|
+
"m4p",
|
|
109
|
+
"m4b",
|
|
110
|
+
"f4v",
|
|
111
|
+
"f4p",
|
|
112
|
+
"f4b",
|
|
113
|
+
"f4a",
|
|
114
|
+
"mie",
|
|
115
|
+
"asf",
|
|
116
|
+
"ogm",
|
|
117
|
+
"ogx",
|
|
118
|
+
"mpc",
|
|
119
|
+
"arrow",
|
|
120
|
+
"shp"
|
|
121
|
+
],
|
|
122
|
+
mimeTypes: [
|
|
123
|
+
"image/jpeg",
|
|
124
|
+
"image/png",
|
|
125
|
+
"image/gif",
|
|
126
|
+
"image/webp",
|
|
127
|
+
"image/flif",
|
|
128
|
+
"image/x-canon-cr2",
|
|
129
|
+
"image/tiff",
|
|
130
|
+
"image/bmp",
|
|
131
|
+
"image/vnd.ms-photo",
|
|
132
|
+
"image/vnd.adobe.photoshop",
|
|
133
|
+
"application/epub+zip",
|
|
134
|
+
"application/x-xpinstall",
|
|
135
|
+
"application/vnd.oasis.opendocument.text",
|
|
136
|
+
"application/vnd.oasis.opendocument.spreadsheet",
|
|
137
|
+
"application/vnd.oasis.opendocument.presentation",
|
|
138
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
139
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
140
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
141
|
+
"application/zip",
|
|
142
|
+
"application/x-tar",
|
|
143
|
+
"application/x-rar-compressed",
|
|
144
|
+
"application/gzip",
|
|
145
|
+
"application/x-bzip2",
|
|
146
|
+
"application/x-7z-compressed",
|
|
147
|
+
"application/x-apple-diskimage",
|
|
148
|
+
"application/x-apache-arrow",
|
|
149
|
+
"video/mp4",
|
|
150
|
+
"audio/midi",
|
|
151
|
+
"video/x-matroska",
|
|
152
|
+
"video/webm",
|
|
153
|
+
"video/quicktime",
|
|
154
|
+
"video/vnd.avi",
|
|
155
|
+
"audio/vnd.wave",
|
|
156
|
+
"audio/qcelp",
|
|
157
|
+
"audio/x-ms-wma",
|
|
158
|
+
"video/x-ms-asf",
|
|
159
|
+
"application/vnd.ms-asf",
|
|
160
|
+
"video/mpeg",
|
|
161
|
+
"video/3gpp",
|
|
162
|
+
"audio/mpeg",
|
|
163
|
+
"audio/mp4",
|
|
164
|
+
// RFC 4337
|
|
165
|
+
"audio/opus",
|
|
166
|
+
"video/ogg",
|
|
167
|
+
"audio/ogg",
|
|
168
|
+
"application/ogg",
|
|
169
|
+
"audio/x-flac",
|
|
170
|
+
"audio/ape",
|
|
171
|
+
"audio/wavpack",
|
|
172
|
+
"audio/amr",
|
|
173
|
+
"application/pdf",
|
|
174
|
+
"application/x-msdownload",
|
|
175
|
+
"application/x-shockwave-flash",
|
|
176
|
+
"application/rtf",
|
|
177
|
+
"application/wasm",
|
|
178
|
+
"font/woff",
|
|
179
|
+
"font/woff2",
|
|
180
|
+
"application/vnd.ms-fontobject",
|
|
181
|
+
"font/ttf",
|
|
182
|
+
"font/otf",
|
|
183
|
+
"image/x-icon",
|
|
184
|
+
"video/x-flv",
|
|
185
|
+
"application/postscript",
|
|
186
|
+
"application/x-xz",
|
|
187
|
+
"application/x-sqlite3",
|
|
188
|
+
"application/x-nintendo-nes-rom",
|
|
189
|
+
"application/x-google-chrome-extension",
|
|
190
|
+
"application/vnd.ms-cab-compressed",
|
|
191
|
+
"application/x-deb",
|
|
192
|
+
"application/x-unix-archive",
|
|
193
|
+
"application/x-rpm",
|
|
194
|
+
"application/x-compress",
|
|
195
|
+
"application/x-lzip",
|
|
196
|
+
"application/x-msi",
|
|
197
|
+
"application/x-mie",
|
|
198
|
+
"application/mxf",
|
|
199
|
+
"video/mp2t",
|
|
200
|
+
"application/x-blender",
|
|
201
|
+
"image/bpg",
|
|
202
|
+
"image/jp2",
|
|
203
|
+
"image/jpx",
|
|
204
|
+
"image/jpm",
|
|
205
|
+
"image/mj2",
|
|
206
|
+
"audio/aiff",
|
|
207
|
+
"application/xml",
|
|
208
|
+
"application/x-mobipocket-ebook",
|
|
209
|
+
"image/heif",
|
|
210
|
+
"image/heif-sequence",
|
|
211
|
+
"image/heic",
|
|
212
|
+
"image/heic-sequence",
|
|
213
|
+
"image/ktx",
|
|
214
|
+
"application/dicom",
|
|
215
|
+
"audio/x-musepack",
|
|
216
|
+
"text/calendar",
|
|
217
|
+
"model/gltf-binary",
|
|
218
|
+
"application/vnd.tcpdump.pcap",
|
|
219
|
+
"audio/x-dsf",
|
|
220
|
+
// Non-standard
|
|
221
|
+
"application/x.ms.shortcut",
|
|
222
|
+
// Invented by us
|
|
223
|
+
"application/x.apple.alias",
|
|
224
|
+
// Invented by us
|
|
225
|
+
"audio/x-voc",
|
|
226
|
+
"audio/vnd.dolby.dd-raw",
|
|
227
|
+
"audio/x-m4a",
|
|
228
|
+
"image/apng",
|
|
229
|
+
"image/x-olympus-orf",
|
|
230
|
+
"image/x-sony-arw",
|
|
231
|
+
"image/x-adobe-dng",
|
|
232
|
+
"image/x-nikon-nef",
|
|
233
|
+
"image/x-panasonic-rw2",
|
|
234
|
+
"image/x-fujifilm-raf",
|
|
235
|
+
"video/x-m4v",
|
|
236
|
+
"video/3gpp2",
|
|
237
|
+
"application/x-esri-shape"
|
|
238
|
+
]
|
|
239
|
+
};
|
|
240
|
+
export {
|
|
241
|
+
supported as s
|
|
242
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { __exports as util } from "../../../../../_virtual/util.js";
|
|
2
|
+
util.stringToBytes = (string) => [...string].map((character) => character.charCodeAt(0));
|
|
3
|
+
const uint8ArrayUtf8ByteString = (array, start, end) => {
|
|
4
|
+
return String.fromCharCode(...array.slice(start, end));
|
|
5
|
+
};
|
|
6
|
+
util.readUInt64LE = (buffer, offset = 0) => {
|
|
7
|
+
let n = buffer[offset];
|
|
8
|
+
let mul = 1;
|
|
9
|
+
let i = 0;
|
|
10
|
+
while (++i < 8) {
|
|
11
|
+
mul *= 256;
|
|
12
|
+
n += buffer[offset + i] * mul;
|
|
13
|
+
}
|
|
14
|
+
return n;
|
|
15
|
+
};
|
|
16
|
+
util.tarHeaderChecksumMatches = (buffer) => {
|
|
17
|
+
if (buffer.length < 512) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
const MASK_8TH_BIT = 128;
|
|
21
|
+
let sum = 256;
|
|
22
|
+
let signedBitSum = 0;
|
|
23
|
+
for (let i = 0; i < 148; i++) {
|
|
24
|
+
const byte = buffer[i];
|
|
25
|
+
sum += byte;
|
|
26
|
+
signedBitSum += byte & MASK_8TH_BIT;
|
|
27
|
+
}
|
|
28
|
+
for (let i = 156; i < 512; i++) {
|
|
29
|
+
const byte = buffer[i];
|
|
30
|
+
sum += byte;
|
|
31
|
+
signedBitSum += byte & MASK_8TH_BIT;
|
|
32
|
+
}
|
|
33
|
+
const readSum = parseInt(uint8ArrayUtf8ByteString(buffer, 148, 154), 8);
|
|
34
|
+
return (
|
|
35
|
+
// Checksum in header equals the sum we calculated
|
|
36
|
+
readSum === sum || // Checksum in header equals sum we calculated plus signed-to-unsigned delta
|
|
37
|
+
readSum === sum - (signedBitSum << 1)
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
util.multiByteIndexOf = (buffer, bytesToSearch, startAt = 0) => {
|
|
41
|
+
if (Buffer && Buffer.isBuffer(buffer)) {
|
|
42
|
+
return buffer.indexOf(Buffer.from(bytesToSearch), startAt);
|
|
43
|
+
}
|
|
44
|
+
const nextBytesMatch = (buffer2, bytes, startIndex) => {
|
|
45
|
+
for (let i = 1; i < bytes.length; i++) {
|
|
46
|
+
if (bytes[i] !== buffer2[startIndex + i]) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return true;
|
|
51
|
+
};
|
|
52
|
+
let index = buffer.indexOf(bytesToSearch[0], startAt);
|
|
53
|
+
while (index >= 0) {
|
|
54
|
+
if (nextBytesMatch(buffer, bytesToSearch, index)) {
|
|
55
|
+
return index;
|
|
56
|
+
}
|
|
57
|
+
index = buffer.indexOf(bytesToSearch[0], index + 1);
|
|
58
|
+
}
|
|
59
|
+
return -1;
|
|
60
|
+
};
|
|
61
|
+
util.uint8ArrayUtf8ByteString = uint8ArrayUtf8ByteString;
|
|
62
|
+
export {
|
|
63
|
+
util as default
|
|
64
|
+
};
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { commonjsGlobal, getDefaultExportFromCjs } from "../../../../../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
import { __module as sha1 } from "../../../../../../_virtual/sha1.js";
|
|
3
|
+
/*
|
|
4
|
+
* [js-sha1]{@link https://github.com/emn178/js-sha1}
|
|
5
|
+
*
|
|
6
|
+
* @version 0.6.0
|
|
7
|
+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
8
|
+
* @copyright Chen, Yi-Cyuan 2014-2017
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
|
+
(function(module) {
|
|
12
|
+
(function() {
|
|
13
|
+
var root = typeof window === "object" ? window : {};
|
|
14
|
+
var NODE_JS = !root.JS_SHA1_NO_NODE_JS && typeof process === "object" && process.versions && process.versions.node;
|
|
15
|
+
if (NODE_JS) {
|
|
16
|
+
root = commonjsGlobal;
|
|
17
|
+
}
|
|
18
|
+
var COMMON_JS = !root.JS_SHA1_NO_COMMON_JS && true && module.exports;
|
|
19
|
+
var HEX_CHARS = "0123456789abcdef".split("");
|
|
20
|
+
var EXTRA = [-2147483648, 8388608, 32768, 128];
|
|
21
|
+
var SHIFT = [24, 16, 8, 0];
|
|
22
|
+
var OUTPUT_TYPES = ["hex", "array", "digest", "arrayBuffer"];
|
|
23
|
+
var blocks = [];
|
|
24
|
+
var createOutputMethod = function(outputType) {
|
|
25
|
+
return function(message) {
|
|
26
|
+
return new Sha1(true).update(message)[outputType]();
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
var createMethod = function() {
|
|
30
|
+
var method2 = createOutputMethod("hex");
|
|
31
|
+
if (NODE_JS) {
|
|
32
|
+
method2 = nodeWrap(method2);
|
|
33
|
+
}
|
|
34
|
+
method2.create = function() {
|
|
35
|
+
return new Sha1();
|
|
36
|
+
};
|
|
37
|
+
method2.update = function(message) {
|
|
38
|
+
return method2.create().update(message);
|
|
39
|
+
};
|
|
40
|
+
for (var i = 0; i < OUTPUT_TYPES.length; ++i) {
|
|
41
|
+
var type = OUTPUT_TYPES[i];
|
|
42
|
+
method2[type] = createOutputMethod(type);
|
|
43
|
+
}
|
|
44
|
+
return method2;
|
|
45
|
+
};
|
|
46
|
+
var nodeWrap = function(method) {
|
|
47
|
+
var crypto = eval("require('crypto')");
|
|
48
|
+
var Buffer = eval("require('buffer').Buffer");
|
|
49
|
+
var nodeMethod = function(message) {
|
|
50
|
+
if (typeof message === "string") {
|
|
51
|
+
return crypto.createHash("sha1").update(message, "utf8").digest("hex");
|
|
52
|
+
} else if (message.constructor === ArrayBuffer) {
|
|
53
|
+
message = new Uint8Array(message);
|
|
54
|
+
} else if (message.length === void 0) {
|
|
55
|
+
return method(message);
|
|
56
|
+
}
|
|
57
|
+
return crypto.createHash("sha1").update(new Buffer(message)).digest("hex");
|
|
58
|
+
};
|
|
59
|
+
return nodeMethod;
|
|
60
|
+
};
|
|
61
|
+
function Sha1(sharedMemory) {
|
|
62
|
+
if (sharedMemory) {
|
|
63
|
+
blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;
|
|
64
|
+
this.blocks = blocks;
|
|
65
|
+
} else {
|
|
66
|
+
this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
67
|
+
}
|
|
68
|
+
this.h0 = 1732584193;
|
|
69
|
+
this.h1 = 4023233417;
|
|
70
|
+
this.h2 = 2562383102;
|
|
71
|
+
this.h3 = 271733878;
|
|
72
|
+
this.h4 = 3285377520;
|
|
73
|
+
this.block = this.start = this.bytes = this.hBytes = 0;
|
|
74
|
+
this.finalized = this.hashed = false;
|
|
75
|
+
this.first = true;
|
|
76
|
+
}
|
|
77
|
+
Sha1.prototype.update = function(message) {
|
|
78
|
+
if (this.finalized) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
var notString = typeof message !== "string";
|
|
82
|
+
if (notString && message.constructor === root.ArrayBuffer) {
|
|
83
|
+
message = new Uint8Array(message);
|
|
84
|
+
}
|
|
85
|
+
var code, index = 0, i, length = message.length || 0, blocks2 = this.blocks;
|
|
86
|
+
while (index < length) {
|
|
87
|
+
if (this.hashed) {
|
|
88
|
+
this.hashed = false;
|
|
89
|
+
blocks2[0] = this.block;
|
|
90
|
+
blocks2[16] = blocks2[1] = blocks2[2] = blocks2[3] = blocks2[4] = blocks2[5] = blocks2[6] = blocks2[7] = blocks2[8] = blocks2[9] = blocks2[10] = blocks2[11] = blocks2[12] = blocks2[13] = blocks2[14] = blocks2[15] = 0;
|
|
91
|
+
}
|
|
92
|
+
if (notString) {
|
|
93
|
+
for (i = this.start; index < length && i < 64; ++index) {
|
|
94
|
+
blocks2[i >> 2] |= message[index] << SHIFT[i++ & 3];
|
|
95
|
+
}
|
|
96
|
+
} else {
|
|
97
|
+
for (i = this.start; index < length && i < 64; ++index) {
|
|
98
|
+
code = message.charCodeAt(index);
|
|
99
|
+
if (code < 128) {
|
|
100
|
+
blocks2[i >> 2] |= code << SHIFT[i++ & 3];
|
|
101
|
+
} else if (code < 2048) {
|
|
102
|
+
blocks2[i >> 2] |= (192 | code >> 6) << SHIFT[i++ & 3];
|
|
103
|
+
blocks2[i >> 2] |= (128 | code & 63) << SHIFT[i++ & 3];
|
|
104
|
+
} else if (code < 55296 || code >= 57344) {
|
|
105
|
+
blocks2[i >> 2] |= (224 | code >> 12) << SHIFT[i++ & 3];
|
|
106
|
+
blocks2[i >> 2] |= (128 | code >> 6 & 63) << SHIFT[i++ & 3];
|
|
107
|
+
blocks2[i >> 2] |= (128 | code & 63) << SHIFT[i++ & 3];
|
|
108
|
+
} else {
|
|
109
|
+
code = 65536 + ((code & 1023) << 10 | message.charCodeAt(++index) & 1023);
|
|
110
|
+
blocks2[i >> 2] |= (240 | code >> 18) << SHIFT[i++ & 3];
|
|
111
|
+
blocks2[i >> 2] |= (128 | code >> 12 & 63) << SHIFT[i++ & 3];
|
|
112
|
+
blocks2[i >> 2] |= (128 | code >> 6 & 63) << SHIFT[i++ & 3];
|
|
113
|
+
blocks2[i >> 2] |= (128 | code & 63) << SHIFT[i++ & 3];
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
this.lastByteIndex = i;
|
|
118
|
+
this.bytes += i - this.start;
|
|
119
|
+
if (i >= 64) {
|
|
120
|
+
this.block = blocks2[16];
|
|
121
|
+
this.start = i - 64;
|
|
122
|
+
this.hash();
|
|
123
|
+
this.hashed = true;
|
|
124
|
+
} else {
|
|
125
|
+
this.start = i;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
if (this.bytes > 4294967295) {
|
|
129
|
+
this.hBytes += this.bytes / 4294967296 << 0;
|
|
130
|
+
this.bytes = this.bytes % 4294967296;
|
|
131
|
+
}
|
|
132
|
+
return this;
|
|
133
|
+
};
|
|
134
|
+
Sha1.prototype.finalize = function() {
|
|
135
|
+
if (this.finalized) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
this.finalized = true;
|
|
139
|
+
var blocks2 = this.blocks, i = this.lastByteIndex;
|
|
140
|
+
blocks2[16] = this.block;
|
|
141
|
+
blocks2[i >> 2] |= EXTRA[i & 3];
|
|
142
|
+
this.block = blocks2[16];
|
|
143
|
+
if (i >= 56) {
|
|
144
|
+
if (!this.hashed) {
|
|
145
|
+
this.hash();
|
|
146
|
+
}
|
|
147
|
+
blocks2[0] = this.block;
|
|
148
|
+
blocks2[16] = blocks2[1] = blocks2[2] = blocks2[3] = blocks2[4] = blocks2[5] = blocks2[6] = blocks2[7] = blocks2[8] = blocks2[9] = blocks2[10] = blocks2[11] = blocks2[12] = blocks2[13] = blocks2[14] = blocks2[15] = 0;
|
|
149
|
+
}
|
|
150
|
+
blocks2[14] = this.hBytes << 3 | this.bytes >>> 29;
|
|
151
|
+
blocks2[15] = this.bytes << 3;
|
|
152
|
+
this.hash();
|
|
153
|
+
};
|
|
154
|
+
Sha1.prototype.hash = function() {
|
|
155
|
+
var a = this.h0, b = this.h1, c = this.h2, d = this.h3, e = this.h4;
|
|
156
|
+
var f, j, t, blocks2 = this.blocks;
|
|
157
|
+
for (j = 16; j < 80; ++j) {
|
|
158
|
+
t = blocks2[j - 3] ^ blocks2[j - 8] ^ blocks2[j - 14] ^ blocks2[j - 16];
|
|
159
|
+
blocks2[j] = t << 1 | t >>> 31;
|
|
160
|
+
}
|
|
161
|
+
for (j = 0; j < 20; j += 5) {
|
|
162
|
+
f = b & c | ~b & d;
|
|
163
|
+
t = a << 5 | a >>> 27;
|
|
164
|
+
e = t + f + e + 1518500249 + blocks2[j] << 0;
|
|
165
|
+
b = b << 30 | b >>> 2;
|
|
166
|
+
f = a & b | ~a & c;
|
|
167
|
+
t = e << 5 | e >>> 27;
|
|
168
|
+
d = t + f + d + 1518500249 + blocks2[j + 1] << 0;
|
|
169
|
+
a = a << 30 | a >>> 2;
|
|
170
|
+
f = e & a | ~e & b;
|
|
171
|
+
t = d << 5 | d >>> 27;
|
|
172
|
+
c = t + f + c + 1518500249 + blocks2[j + 2] << 0;
|
|
173
|
+
e = e << 30 | e >>> 2;
|
|
174
|
+
f = d & e | ~d & a;
|
|
175
|
+
t = c << 5 | c >>> 27;
|
|
176
|
+
b = t + f + b + 1518500249 + blocks2[j + 3] << 0;
|
|
177
|
+
d = d << 30 | d >>> 2;
|
|
178
|
+
f = c & d | ~c & e;
|
|
179
|
+
t = b << 5 | b >>> 27;
|
|
180
|
+
a = t + f + a + 1518500249 + blocks2[j + 4] << 0;
|
|
181
|
+
c = c << 30 | c >>> 2;
|
|
182
|
+
}
|
|
183
|
+
for (; j < 40; j += 5) {
|
|
184
|
+
f = b ^ c ^ d;
|
|
185
|
+
t = a << 5 | a >>> 27;
|
|
186
|
+
e = t + f + e + 1859775393 + blocks2[j] << 0;
|
|
187
|
+
b = b << 30 | b >>> 2;
|
|
188
|
+
f = a ^ b ^ c;
|
|
189
|
+
t = e << 5 | e >>> 27;
|
|
190
|
+
d = t + f + d + 1859775393 + blocks2[j + 1] << 0;
|
|
191
|
+
a = a << 30 | a >>> 2;
|
|
192
|
+
f = e ^ a ^ b;
|
|
193
|
+
t = d << 5 | d >>> 27;
|
|
194
|
+
c = t + f + c + 1859775393 + blocks2[j + 2] << 0;
|
|
195
|
+
e = e << 30 | e >>> 2;
|
|
196
|
+
f = d ^ e ^ a;
|
|
197
|
+
t = c << 5 | c >>> 27;
|
|
198
|
+
b = t + f + b + 1859775393 + blocks2[j + 3] << 0;
|
|
199
|
+
d = d << 30 | d >>> 2;
|
|
200
|
+
f = c ^ d ^ e;
|
|
201
|
+
t = b << 5 | b >>> 27;
|
|
202
|
+
a = t + f + a + 1859775393 + blocks2[j + 4] << 0;
|
|
203
|
+
c = c << 30 | c >>> 2;
|
|
204
|
+
}
|
|
205
|
+
for (; j < 60; j += 5) {
|
|
206
|
+
f = b & c | b & d | c & d;
|
|
207
|
+
t = a << 5 | a >>> 27;
|
|
208
|
+
e = t + f + e - 1894007588 + blocks2[j] << 0;
|
|
209
|
+
b = b << 30 | b >>> 2;
|
|
210
|
+
f = a & b | a & c | b & c;
|
|
211
|
+
t = e << 5 | e >>> 27;
|
|
212
|
+
d = t + f + d - 1894007588 + blocks2[j + 1] << 0;
|
|
213
|
+
a = a << 30 | a >>> 2;
|
|
214
|
+
f = e & a | e & b | a & b;
|
|
215
|
+
t = d << 5 | d >>> 27;
|
|
216
|
+
c = t + f + c - 1894007588 + blocks2[j + 2] << 0;
|
|
217
|
+
e = e << 30 | e >>> 2;
|
|
218
|
+
f = d & e | d & a | e & a;
|
|
219
|
+
t = c << 5 | c >>> 27;
|
|
220
|
+
b = t + f + b - 1894007588 + blocks2[j + 3] << 0;
|
|
221
|
+
d = d << 30 | d >>> 2;
|
|
222
|
+
f = c & d | c & e | d & e;
|
|
223
|
+
t = b << 5 | b >>> 27;
|
|
224
|
+
a = t + f + a - 1894007588 + blocks2[j + 4] << 0;
|
|
225
|
+
c = c << 30 | c >>> 2;
|
|
226
|
+
}
|
|
227
|
+
for (; j < 80; j += 5) {
|
|
228
|
+
f = b ^ c ^ d;
|
|
229
|
+
t = a << 5 | a >>> 27;
|
|
230
|
+
e = t + f + e - 899497514 + blocks2[j] << 0;
|
|
231
|
+
b = b << 30 | b >>> 2;
|
|
232
|
+
f = a ^ b ^ c;
|
|
233
|
+
t = e << 5 | e >>> 27;
|
|
234
|
+
d = t + f + d - 899497514 + blocks2[j + 1] << 0;
|
|
235
|
+
a = a << 30 | a >>> 2;
|
|
236
|
+
f = e ^ a ^ b;
|
|
237
|
+
t = d << 5 | d >>> 27;
|
|
238
|
+
c = t + f + c - 899497514 + blocks2[j + 2] << 0;
|
|
239
|
+
e = e << 30 | e >>> 2;
|
|
240
|
+
f = d ^ e ^ a;
|
|
241
|
+
t = c << 5 | c >>> 27;
|
|
242
|
+
b = t + f + b - 899497514 + blocks2[j + 3] << 0;
|
|
243
|
+
d = d << 30 | d >>> 2;
|
|
244
|
+
f = c ^ d ^ e;
|
|
245
|
+
t = b << 5 | b >>> 27;
|
|
246
|
+
a = t + f + a - 899497514 + blocks2[j + 4] << 0;
|
|
247
|
+
c = c << 30 | c >>> 2;
|
|
248
|
+
}
|
|
249
|
+
this.h0 = this.h0 + a << 0;
|
|
250
|
+
this.h1 = this.h1 + b << 0;
|
|
251
|
+
this.h2 = this.h2 + c << 0;
|
|
252
|
+
this.h3 = this.h3 + d << 0;
|
|
253
|
+
this.h4 = this.h4 + e << 0;
|
|
254
|
+
};
|
|
255
|
+
Sha1.prototype.hex = function() {
|
|
256
|
+
this.finalize();
|
|
257
|
+
var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3, h4 = this.h4;
|
|
258
|
+
return HEX_CHARS[h0 >> 28 & 15] + HEX_CHARS[h0 >> 24 & 15] + HEX_CHARS[h0 >> 20 & 15] + HEX_CHARS[h0 >> 16 & 15] + HEX_CHARS[h0 >> 12 & 15] + HEX_CHARS[h0 >> 8 & 15] + HEX_CHARS[h0 >> 4 & 15] + HEX_CHARS[h0 & 15] + HEX_CHARS[h1 >> 28 & 15] + HEX_CHARS[h1 >> 24 & 15] + HEX_CHARS[h1 >> 20 & 15] + HEX_CHARS[h1 >> 16 & 15] + HEX_CHARS[h1 >> 12 & 15] + HEX_CHARS[h1 >> 8 & 15] + HEX_CHARS[h1 >> 4 & 15] + HEX_CHARS[h1 & 15] + HEX_CHARS[h2 >> 28 & 15] + HEX_CHARS[h2 >> 24 & 15] + HEX_CHARS[h2 >> 20 & 15] + HEX_CHARS[h2 >> 16 & 15] + HEX_CHARS[h2 >> 12 & 15] + HEX_CHARS[h2 >> 8 & 15] + HEX_CHARS[h2 >> 4 & 15] + HEX_CHARS[h2 & 15] + HEX_CHARS[h3 >> 28 & 15] + HEX_CHARS[h3 >> 24 & 15] + HEX_CHARS[h3 >> 20 & 15] + HEX_CHARS[h3 >> 16 & 15] + HEX_CHARS[h3 >> 12 & 15] + HEX_CHARS[h3 >> 8 & 15] + HEX_CHARS[h3 >> 4 & 15] + HEX_CHARS[h3 & 15] + HEX_CHARS[h4 >> 28 & 15] + HEX_CHARS[h4 >> 24 & 15] + HEX_CHARS[h4 >> 20 & 15] + HEX_CHARS[h4 >> 16 & 15] + HEX_CHARS[h4 >> 12 & 15] + HEX_CHARS[h4 >> 8 & 15] + HEX_CHARS[h4 >> 4 & 15] + HEX_CHARS[h4 & 15];
|
|
259
|
+
};
|
|
260
|
+
Sha1.prototype.toString = Sha1.prototype.hex;
|
|
261
|
+
Sha1.prototype.digest = function() {
|
|
262
|
+
this.finalize();
|
|
263
|
+
var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3, h4 = this.h4;
|
|
264
|
+
return [
|
|
265
|
+
h0 >> 24 & 255,
|
|
266
|
+
h0 >> 16 & 255,
|
|
267
|
+
h0 >> 8 & 255,
|
|
268
|
+
h0 & 255,
|
|
269
|
+
h1 >> 24 & 255,
|
|
270
|
+
h1 >> 16 & 255,
|
|
271
|
+
h1 >> 8 & 255,
|
|
272
|
+
h1 & 255,
|
|
273
|
+
h2 >> 24 & 255,
|
|
274
|
+
h2 >> 16 & 255,
|
|
275
|
+
h2 >> 8 & 255,
|
|
276
|
+
h2 & 255,
|
|
277
|
+
h3 >> 24 & 255,
|
|
278
|
+
h3 >> 16 & 255,
|
|
279
|
+
h3 >> 8 & 255,
|
|
280
|
+
h3 & 255,
|
|
281
|
+
h4 >> 24 & 255,
|
|
282
|
+
h4 >> 16 & 255,
|
|
283
|
+
h4 >> 8 & 255,
|
|
284
|
+
h4 & 255
|
|
285
|
+
];
|
|
286
|
+
};
|
|
287
|
+
Sha1.prototype.array = Sha1.prototype.digest;
|
|
288
|
+
Sha1.prototype.arrayBuffer = function() {
|
|
289
|
+
this.finalize();
|
|
290
|
+
var buffer = new ArrayBuffer(20);
|
|
291
|
+
var dataView = new DataView(buffer);
|
|
292
|
+
dataView.setUint32(0, this.h0);
|
|
293
|
+
dataView.setUint32(4, this.h1);
|
|
294
|
+
dataView.setUint32(8, this.h2);
|
|
295
|
+
dataView.setUint32(12, this.h3);
|
|
296
|
+
dataView.setUint32(16, this.h4);
|
|
297
|
+
return buffer;
|
|
298
|
+
};
|
|
299
|
+
var exports = createMethod();
|
|
300
|
+
if (COMMON_JS) {
|
|
301
|
+
module.exports = exports;
|
|
302
|
+
} else {
|
|
303
|
+
root.sha1 = exports;
|
|
304
|
+
}
|
|
305
|
+
})();
|
|
306
|
+
})(sha1);
|
|
307
|
+
var sha1Exports = sha1.exports;
|
|
308
|
+
const hash = /* @__PURE__ */ getDefaultExportFromCjs(sha1Exports);
|
|
309
|
+
export {
|
|
310
|
+
hash as default
|
|
311
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
let random = (bytes) => crypto.getRandomValues(new Uint8Array(bytes));
|
|
2
|
+
let customRandom = (alphabet, defaultSize, getRandom) => {
|
|
3
|
+
let mask = (2 << Math.log2(alphabet.length - 1)) - 1;
|
|
4
|
+
let step = -~(1.6 * mask * defaultSize / alphabet.length);
|
|
5
|
+
return (size = defaultSize) => {
|
|
6
|
+
let id = "";
|
|
7
|
+
while (true) {
|
|
8
|
+
let bytes = getRandom(step);
|
|
9
|
+
let j = step | 0;
|
|
10
|
+
while (j--) {
|
|
11
|
+
id += alphabet[bytes[j] & mask] || "";
|
|
12
|
+
if (id.length >= size) return id;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
let customAlphabet = (alphabet, size = 21) => customRandom(alphabet, size | 0, random);
|
|
18
|
+
export {
|
|
19
|
+
customAlphabet,
|
|
20
|
+
customRandom,
|
|
21
|
+
random
|
|
22
|
+
};
|