@siberiacancode/reactuse 0.0.102 → 0.0.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/dist/cjs/{_rollupPluginBabelHelpers-D8Uk4ZYd.js → _rollupPluginBabelHelpers-DfeGfroh.js} +2 -2
  2. package/dist/cjs/_rollupPluginBabelHelpers-DfeGfroh.js.map +1 -0
  3. package/dist/cjs/hooks/index.js +2 -2
  4. package/dist/cjs/hooks/useActiveElement/useActiveElement.js +2 -2
  5. package/dist/cjs/hooks/useAsync/useAsync.js +2 -2
  6. package/dist/cjs/hooks/useBattery/useBattery.js +2 -2
  7. package/dist/cjs/hooks/useBluetooth/useBluetooth.js +2 -2
  8. package/dist/cjs/hooks/useBoolean/useBoolean.js +2 -2
  9. package/dist/cjs/hooks/useBreakpoints/useBreakpoints.js +2 -2
  10. package/dist/cjs/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  11. package/dist/cjs/hooks/useClickOutside/useClickOutside.js +2 -2
  12. package/dist/cjs/hooks/useClipboard/useClipboard.js +2 -2
  13. package/dist/cjs/hooks/useConst/useConst.js +1 -1
  14. package/dist/cjs/hooks/useCookie/useCookie.js +2 -2
  15. package/dist/cjs/hooks/useCookies/useCookies.js +2 -2
  16. package/dist/cjs/hooks/useCopy/useCopy.js +2 -2
  17. package/dist/cjs/hooks/useCounter/useCounter.js +2 -2
  18. package/dist/cjs/hooks/useCssVar/useCssVar.js +2 -2
  19. package/dist/cjs/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  20. package/dist/cjs/hooks/useDebounceValue/useDebounceValue.js +2 -2
  21. package/dist/cjs/hooks/useDefault/useDefault.js +2 -2
  22. package/dist/cjs/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
  23. package/dist/cjs/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
  24. package/dist/cjs/hooks/useDevicePixelRatio/useDevicePixelRatio.js +2 -2
  25. package/dist/cjs/hooks/useDidUpdate/useDidUpdate.js +1 -1
  26. package/dist/cjs/hooks/useDisclosure/useDisclosure.js +2 -2
  27. package/dist/cjs/hooks/useDisplayMedia/useDisplayMedia.js +2 -2
  28. package/dist/cjs/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
  29. package/dist/cjs/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  30. package/dist/cjs/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  31. package/dist/cjs/hooks/useElementSize/useElementSize.js +2 -2
  32. package/dist/cjs/hooks/useEvent/useEvent.js +1 -1
  33. package/dist/cjs/hooks/useEventListener/useEventListener.js +2 -2
  34. package/dist/cjs/hooks/useEyeDropper/useEyeDropper.js +2 -2
  35. package/dist/cjs/hooks/useFavicon/useFavicon.js +2 -2
  36. package/dist/cjs/hooks/useField/useField.js +2 -2
  37. package/dist/cjs/hooks/useFileDialog/useFileDialog.js +2 -2
  38. package/dist/cjs/hooks/useFocus/useFocus.js +2 -2
  39. package/dist/cjs/hooks/useFps/useFps.js +2 -2
  40. package/dist/cjs/hooks/useFullscreen/useFullscreen.js +2 -2
  41. package/dist/cjs/hooks/useGamepad/useGamepad.js +2 -2
  42. package/dist/cjs/hooks/useGeolocation/useGeolocation.js +2 -2
  43. package/dist/cjs/hooks/useHash/useHash.js +2 -2
  44. package/dist/cjs/hooks/useHotkeys/useHotkeys.js +2 -2
  45. package/dist/cjs/hooks/useHover/useHover.js +2 -2
  46. package/dist/cjs/hooks/useIdle/useIdle.js +2 -2
  47. package/dist/cjs/hooks/useImage/useImage.js +2 -2
  48. package/dist/cjs/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
  49. package/dist/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  50. package/dist/cjs/hooks/useInterval/useInterval.js +2 -2
  51. package/dist/cjs/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  52. package/dist/cjs/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  53. package/dist/cjs/hooks/useKeyPress/useKeyPress.js +2 -2
  54. package/dist/cjs/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
  55. package/dist/cjs/hooks/useKeyboard/useKeyboard.js +2 -2
  56. package/dist/cjs/hooks/useKeysPressed/useKeysPressed.js +2 -2
  57. package/dist/cjs/hooks/useLastChanged/useLastChanged.js +2 -2
  58. package/dist/cjs/hooks/useLatest/useLatest.js +1 -1
  59. package/dist/cjs/hooks/useLess/useLess.js +1 -1
  60. package/dist/cjs/hooks/useList/useList.js +2 -2
  61. package/dist/cjs/hooks/useLocalStorage/useLocalStorage.js +2 -2
  62. package/dist/cjs/hooks/useLogger/useLogger.js +2 -2
  63. package/dist/cjs/hooks/useLongPress/useLongPress.js +2 -2
  64. package/dist/cjs/hooks/useMap/useMap.js +2 -2
  65. package/dist/cjs/hooks/useMeasure/useMeasure.js +2 -2
  66. package/dist/cjs/hooks/useMediaQuery/useMediaQuery.js +1 -1
  67. package/dist/cjs/hooks/useMemory/useMemory.js +2 -2
  68. package/dist/cjs/hooks/useMount/useMount.js +1 -1
  69. package/dist/cjs/hooks/useMouse/useMouse.js +2 -2
  70. package/dist/cjs/hooks/useMutation/useMutation.js +2 -2
  71. package/dist/cjs/hooks/useMutationObserver/useMutationObserver.js +2 -2
  72. package/dist/cjs/hooks/useNetwork/useNetwork.js +2 -2
  73. package/dist/cjs/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
  74. package/dist/cjs/hooks/useOnline/useOnline.js +1 -1
  75. package/dist/cjs/hooks/useOperatingSystem/useOperatingSystem.js +2 -2
  76. package/dist/cjs/hooks/useOptimistic/useOptimistic.js +2 -2
  77. package/dist/cjs/hooks/useOrientation/useOrientation.js +2 -2
  78. package/dist/cjs/hooks/useOtpCredential/useOtpCredential.js +2 -2
  79. package/dist/cjs/hooks/usePageLeave/usePageLeave.js +2 -2
  80. package/dist/cjs/hooks/usePaint/usePaint.js +2 -2
  81. package/dist/cjs/hooks/useParallax/useParallax.js +2 -2
  82. package/dist/cjs/hooks/usePerformanceObserver/usePerformanceObserver.js +2 -2
  83. package/dist/cjs/hooks/usePermission/usePermission.js +2 -2
  84. package/dist/cjs/hooks/usePointerLock/usePointerLock.js +2 -2
  85. package/dist/cjs/hooks/usePostMessage/usePostMessage.js +1 -1
  86. package/dist/cjs/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  87. package/dist/cjs/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
  88. package/dist/cjs/hooks/usePreferredDark/usePreferredDark.js +1 -1
  89. package/dist/cjs/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  90. package/dist/cjs/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
  91. package/dist/cjs/hooks/usePrevious/usePrevious.js +1 -1
  92. package/dist/cjs/hooks/useQuery/useQuery.js +2 -2
  93. package/dist/cjs/hooks/useQueue/useQueue.js +2 -2
  94. package/dist/cjs/hooks/useRaf/useRaf.js +2 -2
  95. package/dist/cjs/hooks/useRafValue/useRafValue.js +2 -2
  96. package/dist/cjs/hooks/useRefState/useRefState.js +2 -2
  97. package/dist/cjs/hooks/useRenderCount/useRenderCount.js +1 -1
  98. package/dist/cjs/hooks/useRenderInfo/useRenderInfo.js +1 -1
  99. package/dist/cjs/hooks/useRerender/useRerender.js +1 -1
  100. package/dist/cjs/hooks/useResizeObserver/useResizeObserver.js +2 -2
  101. package/dist/cjs/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
  102. package/dist/cjs/hooks/useScript/useScript.js +2 -2
  103. package/dist/cjs/hooks/useScroll/useScroll.js +2 -2
  104. package/dist/cjs/hooks/useScrollIntoView/useScrollIntoView.js +2 -2
  105. package/dist/cjs/hooks/useScrollTo/useScrollTo.js +2 -2
  106. package/dist/cjs/hooks/useSessionStorage/useSessionStorage.js +2 -2
  107. package/dist/cjs/hooks/useSet/useSet.js +2 -2
  108. package/dist/cjs/hooks/useShare/useShare.js +2 -2
  109. package/dist/cjs/hooks/useStateHistory/useStateHistory.js +2 -2
  110. package/dist/cjs/hooks/useStep/useStep.js +2 -2
  111. package/dist/cjs/hooks/useStopwatch/useStopwatch.js +2 -2
  112. package/dist/cjs/hooks/useStorage/useStorage.js +2 -2
  113. package/dist/cjs/hooks/useTextDirection/useTextDirection.js +2 -2
  114. package/dist/cjs/hooks/useTextSelection/useTextSelection.js +2 -2
  115. package/dist/cjs/hooks/useThrottleCallback/useThrottleCallback.js +1 -1
  116. package/dist/cjs/hooks/useThrottleValue/useThrottleValue.js +2 -2
  117. package/dist/cjs/hooks/useTime/useTime.js +2 -2
  118. package/dist/cjs/hooks/useTimeout/useTimeout.js +2 -2
  119. package/dist/cjs/hooks/useTimer/useTimer.js +2 -2
  120. package/dist/cjs/hooks/useToggle/useToggle.js +2 -2
  121. package/dist/cjs/hooks/useUnmount/useUnmount.js +1 -1
  122. package/dist/cjs/hooks/useVibrate/useVibrate.js +2 -2
  123. package/dist/cjs/hooks/useWebSocket/useWebSocket.js +2 -2
  124. package/dist/cjs/hooks/useWindowEvent/useWindowEvent.js +2 -2
  125. package/dist/cjs/hooks/useWindowFocus/useWindowFocus.js +2 -2
  126. package/dist/cjs/hooks/useWindowScroll/useWindowScroll.js +2 -2
  127. package/dist/cjs/hooks/useWindowSize/useWindowSize.js +2 -2
  128. package/dist/cjs/hooks/useWizard/useWizard.js +2 -2
  129. package/dist/cjs/index.js +2 -2
  130. package/dist/cjs/utils/helpers/copy.js +2 -2
  131. package/dist/cjs/utils/helpers/debounce.js +1 -1
  132. package/dist/cjs/utils/helpers/getDate.js +1 -1
  133. package/dist/cjs/utils/helpers/getElement.js +1 -1
  134. package/dist/cjs/utils/helpers/getRetry.js +1 -1
  135. package/dist/cjs/utils/helpers/index.js +2 -2
  136. package/dist/cjs/utils/helpers/isTarget.js +2 -2
  137. package/dist/cjs/utils/helpers/throttle.js +1 -1
  138. package/dist/esm/{_rollupPluginBabelHelpers-Bd7qYWzu.js → _rollupPluginBabelHelpers-Bd20Ji7y.js} +2 -2
  139. package/dist/esm/_rollupPluginBabelHelpers-Bd20Ji7y.js.map +1 -0
  140. package/dist/esm/hooks/index.js +2 -2
  141. package/dist/esm/hooks/useActiveElement/useActiveElement.js +2 -2
  142. package/dist/esm/hooks/useAsync/useAsync.js +2 -2
  143. package/dist/esm/hooks/useBattery/useBattery.js +2 -2
  144. package/dist/esm/hooks/useBluetooth/useBluetooth.js +2 -2
  145. package/dist/esm/hooks/useBoolean/useBoolean.js +2 -2
  146. package/dist/esm/hooks/useBreakpoints/useBreakpoints.js +2 -2
  147. package/dist/esm/hooks/useBrowserLanguage/useBrowserLanguage.js +1 -1
  148. package/dist/esm/hooks/useClickOutside/useClickOutside.js +2 -2
  149. package/dist/esm/hooks/useClipboard/useClipboard.js +2 -2
  150. package/dist/esm/hooks/useConst/useConst.js +1 -1
  151. package/dist/esm/hooks/useCookie/useCookie.js +2 -2
  152. package/dist/esm/hooks/useCookies/useCookies.js +2 -2
  153. package/dist/esm/hooks/useCopy/useCopy.js +2 -2
  154. package/dist/esm/hooks/useCounter/useCounter.js +2 -2
  155. package/dist/esm/hooks/useCssVar/useCssVar.js +2 -2
  156. package/dist/esm/hooks/useDebounceCallback/useDebounceCallback.js +1 -1
  157. package/dist/esm/hooks/useDebounceValue/useDebounceValue.js +2 -2
  158. package/dist/esm/hooks/useDefault/useDefault.js +2 -2
  159. package/dist/esm/hooks/useDeviceMotion/useDeviceMotion.js +2 -2
  160. package/dist/esm/hooks/useDeviceOrientation/useDeviceOrientation.js +2 -2
  161. package/dist/esm/hooks/useDevicePixelRatio/useDevicePixelRatio.js +2 -2
  162. package/dist/esm/hooks/useDidUpdate/useDidUpdate.js +1 -1
  163. package/dist/esm/hooks/useDisclosure/useDisclosure.js +2 -2
  164. package/dist/esm/hooks/useDisplayMedia/useDisplayMedia.js +2 -2
  165. package/dist/esm/hooks/useDocumentEvent/useDocumentEvent.js +2 -2
  166. package/dist/esm/hooks/useDocumentTitle/useDocumentTitle.js +2 -2
  167. package/dist/esm/hooks/useDocumentVisibility/useDocumentVisibility.js +1 -1
  168. package/dist/esm/hooks/useElementSize/useElementSize.js +2 -2
  169. package/dist/esm/hooks/useEvent/useEvent.js +1 -1
  170. package/dist/esm/hooks/useEventListener/useEventListener.js +2 -2
  171. package/dist/esm/hooks/useEyeDropper/useEyeDropper.js +2 -2
  172. package/dist/esm/hooks/useFavicon/useFavicon.js +2 -2
  173. package/dist/esm/hooks/useField/useField.js +2 -2
  174. package/dist/esm/hooks/useFileDialog/useFileDialog.js +2 -2
  175. package/dist/esm/hooks/useFocus/useFocus.js +2 -2
  176. package/dist/esm/hooks/useFps/useFps.js +2 -2
  177. package/dist/esm/hooks/useFullscreen/useFullscreen.js +2 -2
  178. package/dist/esm/hooks/useGamepad/useGamepad.js +2 -2
  179. package/dist/esm/hooks/useGeolocation/useGeolocation.js +2 -2
  180. package/dist/esm/hooks/useHash/useHash.js +2 -2
  181. package/dist/esm/hooks/useHotkeys/useHotkeys.js +2 -2
  182. package/dist/esm/hooks/useHover/useHover.js +2 -2
  183. package/dist/esm/hooks/useIdle/useIdle.js +2 -2
  184. package/dist/esm/hooks/useImage/useImage.js +2 -2
  185. package/dist/esm/hooks/useInfiniteScroll/useInfiniteScroll.js +2 -2
  186. package/dist/esm/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -2
  187. package/dist/esm/hooks/useInterval/useInterval.js +2 -2
  188. package/dist/esm/hooks/useIsFirstRender/useIsFirstRender.js +1 -1
  189. package/dist/esm/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
  190. package/dist/esm/hooks/useKeyPress/useKeyPress.js +2 -2
  191. package/dist/esm/hooks/useKeyPressEvent/useKeyPressEvent.js +2 -2
  192. package/dist/esm/hooks/useKeyboard/useKeyboard.js +2 -2
  193. package/dist/esm/hooks/useKeysPressed/useKeysPressed.js +2 -2
  194. package/dist/esm/hooks/useLastChanged/useLastChanged.js +2 -2
  195. package/dist/esm/hooks/useLatest/useLatest.js +1 -1
  196. package/dist/esm/hooks/useLess/useLess.js +1 -1
  197. package/dist/esm/hooks/useList/useList.js +2 -2
  198. package/dist/esm/hooks/useLocalStorage/useLocalStorage.js +2 -2
  199. package/dist/esm/hooks/useLogger/useLogger.js +2 -2
  200. package/dist/esm/hooks/useLongPress/useLongPress.js +2 -2
  201. package/dist/esm/hooks/useMap/useMap.js +2 -2
  202. package/dist/esm/hooks/useMeasure/useMeasure.js +2 -2
  203. package/dist/esm/hooks/useMediaQuery/useMediaQuery.js +1 -1
  204. package/dist/esm/hooks/useMemory/useMemory.js +2 -2
  205. package/dist/esm/hooks/useMount/useMount.js +1 -1
  206. package/dist/esm/hooks/useMouse/useMouse.js +2 -2
  207. package/dist/esm/hooks/useMutation/useMutation.js +2 -2
  208. package/dist/esm/hooks/useMutationObserver/useMutationObserver.js +2 -2
  209. package/dist/esm/hooks/useNetwork/useNetwork.js +2 -2
  210. package/dist/esm/hooks/useOffsetPagination/useOffsetPagination.js +2 -2
  211. package/dist/esm/hooks/useOnline/useOnline.js +1 -1
  212. package/dist/esm/hooks/useOperatingSystem/useOperatingSystem.js +2 -2
  213. package/dist/esm/hooks/useOptimistic/useOptimistic.js +2 -2
  214. package/dist/esm/hooks/useOrientation/useOrientation.js +2 -2
  215. package/dist/esm/hooks/useOtpCredential/useOtpCredential.js +2 -2
  216. package/dist/esm/hooks/usePageLeave/usePageLeave.js +2 -2
  217. package/dist/esm/hooks/usePaint/usePaint.js +2 -2
  218. package/dist/esm/hooks/useParallax/useParallax.js +2 -2
  219. package/dist/esm/hooks/usePerformanceObserver/usePerformanceObserver.js +2 -2
  220. package/dist/esm/hooks/usePermission/usePermission.js +2 -2
  221. package/dist/esm/hooks/usePointerLock/usePointerLock.js +2 -2
  222. package/dist/esm/hooks/usePostMessage/usePostMessage.js +1 -1
  223. package/dist/esm/hooks/usePreferredColorScheme/usePreferredColorScheme.js +1 -1
  224. package/dist/esm/hooks/usePreferredContrast/usePreferredContrast.js +1 -1
  225. package/dist/esm/hooks/usePreferredDark/usePreferredDark.js +1 -1
  226. package/dist/esm/hooks/usePreferredLanguages/usePreferredLanguages.js +1 -1
  227. package/dist/esm/hooks/usePreferredReducedMotion/usePreferredReducedMotion.js +1 -1
  228. package/dist/esm/hooks/usePrevious/usePrevious.js +1 -1
  229. package/dist/esm/hooks/useQuery/useQuery.js +2 -2
  230. package/dist/esm/hooks/useQueue/useQueue.js +2 -2
  231. package/dist/esm/hooks/useRaf/useRaf.js +2 -2
  232. package/dist/esm/hooks/useRafValue/useRafValue.js +2 -2
  233. package/dist/esm/hooks/useRefState/useRefState.js +2 -2
  234. package/dist/esm/hooks/useRenderCount/useRenderCount.js +1 -1
  235. package/dist/esm/hooks/useRenderInfo/useRenderInfo.js +1 -1
  236. package/dist/esm/hooks/useRerender/useRerender.js +1 -1
  237. package/dist/esm/hooks/useResizeObserver/useResizeObserver.js +2 -2
  238. package/dist/esm/hooks/useScreenOrientation/useScreenOrientation.js +2 -2
  239. package/dist/esm/hooks/useScript/useScript.js +2 -2
  240. package/dist/esm/hooks/useScroll/useScroll.js +2 -2
  241. package/dist/esm/hooks/useScrollIntoView/useScrollIntoView.js +2 -2
  242. package/dist/esm/hooks/useScrollTo/useScrollTo.js +2 -2
  243. package/dist/esm/hooks/useSessionStorage/useSessionStorage.js +2 -2
  244. package/dist/esm/hooks/useSet/useSet.js +2 -2
  245. package/dist/esm/hooks/useShare/useShare.js +2 -2
  246. package/dist/esm/hooks/useStateHistory/useStateHistory.js +2 -2
  247. package/dist/esm/hooks/useStep/useStep.js +2 -2
  248. package/dist/esm/hooks/useStopwatch/useStopwatch.js +2 -2
  249. package/dist/esm/hooks/useStorage/useStorage.js +2 -2
  250. package/dist/esm/hooks/useTextDirection/useTextDirection.js +2 -2
  251. package/dist/esm/hooks/useTextSelection/useTextSelection.js +2 -2
  252. package/dist/esm/hooks/useThrottleCallback/useThrottleCallback.js +1 -1
  253. package/dist/esm/hooks/useThrottleValue/useThrottleValue.js +2 -2
  254. package/dist/esm/hooks/useTime/useTime.js +2 -2
  255. package/dist/esm/hooks/useTimeout/useTimeout.js +2 -2
  256. package/dist/esm/hooks/useTimer/useTimer.js +2 -2
  257. package/dist/esm/hooks/useToggle/useToggle.js +2 -2
  258. package/dist/esm/hooks/useUnmount/useUnmount.js +1 -1
  259. package/dist/esm/hooks/useVibrate/useVibrate.js +2 -2
  260. package/dist/esm/hooks/useWebSocket/useWebSocket.js +2 -2
  261. package/dist/esm/hooks/useWindowEvent/useWindowEvent.js +2 -2
  262. package/dist/esm/hooks/useWindowFocus/useWindowFocus.js +2 -2
  263. package/dist/esm/hooks/useWindowScroll/useWindowScroll.js +2 -2
  264. package/dist/esm/hooks/useWindowSize/useWindowSize.js +2 -2
  265. package/dist/esm/hooks/useWizard/useWizard.js +2 -2
  266. package/dist/esm/index.js +2 -2
  267. package/dist/esm/utils/helpers/copy.js +2 -2
  268. package/dist/esm/utils/helpers/debounce.js +1 -1
  269. package/dist/esm/utils/helpers/getDate.js +1 -1
  270. package/dist/esm/utils/helpers/getElement.js +1 -1
  271. package/dist/esm/utils/helpers/getRetry.js +1 -1
  272. package/dist/esm/utils/helpers/index.js +2 -2
  273. package/dist/esm/utils/helpers/isTarget.js +2 -2
  274. package/dist/esm/utils/helpers/throttle.js +1 -1
  275. package/dist/types/index.d.ts +30 -1
  276. package/package.json +1 -1
  277. package/dist/cjs/_rollupPluginBabelHelpers-D8Uk4ZYd.js.map +0 -1
  278. package/dist/esm/_rollupPluginBabelHelpers-Bd7qYWzu.js.map +0 -1
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as o,useEffect as i}from"react";var n=function(n,t){var a=o(!0),c=r(a,2),e=c[0],f=c[1],u=o(!1),l=r(u,2),d=l[0],p=l[1],s=o(void 0),v=r(s,2),m=v[0],g=v[1],h=o(void 0),_=r(h,2),b=_[0],j=_[1];return i((function(){f(!0),n().then((function(r){j(r),g(void 0),p(!1)})).catch((function(r){g(r),p(!0)})).finally((function(){f(!1)}))}),t),{data:b,isLoading:e,isError:d,error:m}};export{n as useAsync};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as o,useEffect as i}from"react";var n=function(n,t){var a=o(!0),c=r(a,2),e=c[0],f=c[1],u=o(!1),l=r(u,2),d=l[0],p=l[1],s=o(void 0),v=r(s,2),m=v[0],g=v[1],h=o(void 0),_=r(h,2),b=_[0],j=_[1];return i((function(){f(!0),n().then((function(r){j(r),g(void 0),p(!1)})).catch((function(r){g(r),p(!0)})).finally((function(){f(!1)}))}),t),{data:b,isLoading:e,isError:d,error:m}};export{n as useAsync};
3
3
  //# sourceMappingURL=useAsync.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as e,c as n}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as i,useEffect as r}from"react";var t=function(){var t="undefined"!=typeof navigator&&"getBattery"in navigator&&"function"==typeof navigator.getBattery,a=i({loading:!0,level:0,charging:!1,chargingTime:0,dischargingTime:0}),g=e(a,2),o=g[0],v=g[1];return r((function(){if(!t)return v(n(n({},o),{},{loading:!1}));var e,i=function(){var n,i,r,t,a,g,o,l;return v({loading:!1,level:null!==(n=null===(i=e)||void 0===i?void 0:i.level)&&void 0!==n?n:0,charging:null!==(r=null===(t=e)||void 0===t?void 0:t.charging)&&void 0!==r&&r,dischargingTime:null!==(a=null===(g=e)||void 0===g?void 0:g.dischargingTime)&&void 0!==a?a:0,chargingTime:null!==(o=null===(l=e)||void 0===l?void 0:l.chargingTime)&&void 0!==o?o:0})};return navigator.getBattery().then((function(n){e=n,i(),e.addEventListener("levelchange",i),e.addEventListener("chargingchange",i),e.addEventListener("chargingtimechange",i),e.addEventListener("dischargingtimechange",i)})),function(){e&&(e.removeEventListener("levelchange",i),e.removeEventListener("chargingchange",i),e.removeEventListener("chargingtimechange",i),e.removeEventListener("dischargingtimechange",i))}}),[]),{supported:t,value:o}};export{t as useBattery};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as e,c as n}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as i,useEffect as r}from"react";var t=function(){var t="undefined"!=typeof navigator&&"getBattery"in navigator&&"function"==typeof navigator.getBattery,a=i({loading:!0,level:0,charging:!1,chargingTime:0,dischargingTime:0}),g=e(a,2),o=g[0],v=g[1];return r((function(){if(!t)return v(n(n({},o),{},{loading:!1}));var e,i=function(){var n,i,r,t,a,g,o,l;return v({loading:!1,level:null!==(n=null===(i=e)||void 0===i?void 0:i.level)&&void 0!==n?n:0,charging:null!==(r=null===(t=e)||void 0===t?void 0:t.charging)&&void 0!==r&&r,dischargingTime:null!==(a=null===(g=e)||void 0===g?void 0:g.dischargingTime)&&void 0!==a?a:0,chargingTime:null!==(o=null===(l=e)||void 0===l?void 0:l.chargingTime)&&void 0!==o?o:0})};return navigator.getBattery().then((function(n){e=n,i(),e.addEventListener("levelchange",i),e.addEventListener("chargingchange",i),e.addEventListener("chargingtimechange",i),e.addEventListener("dischargingtimechange",i)})),function(){e&&(e.removeEventListener("levelchange",i),e.removeEventListener("chargingchange",i),e.removeEventListener("chargingtimechange",i),e.removeEventListener("dischargingtimechange",i))}}),[]),{supported:t,value:o}};export{t as useBattery};
3
3
  //# sourceMappingURL=useBattery.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as e,d as t,e as r,c as n}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as a,useEffect as c}from"react";var i=function(i){var o="undefined"!=typeof navigator&&"bluetooth"in navigator,s=null!=i?i:{},u=s.acceptAllDevices,v=void 0!==u&&u,p=s.filters,f=s.optionalServices,l=a(!1),d=e(l,2),g=d[0],b=d[1],m=a(void 0),x=e(m,2),h=x[0],D=x[1],k=a(void 0),w=e(k,2),y=w[0],A=w[1],q=function(){var e=t(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,navigator.bluetooth.requestDevice(n({acceptAllDevices:v,optionalServices:f},p&&{filters:p,acceptAllDevices:!1}));case 4:t=e.sent,D(t);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return c((function(){if(h&&h.gatt){var e=function(){var e=t(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h.gatt){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,h.gatt.connect();case 4:t=e.sent,A(t),b(t.connected);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),n=function(){A(void 0),D(void 0),b(!1)};return h.addEventListener("gattserverdisconnected",n),e(),function(){var e;h.removeEventListener("gattserverdisconnected",n),null===(e=h.gatt)||void 0===e||e.disconnect()}}}),[h]),{supported:o,connected:g,device:h,requestDevice:q,server:y}};export{i as useBluetooth};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as e,d as t,e as r,c as n}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as a,useEffect as c}from"react";var i=function(i){var o="undefined"!=typeof navigator&&"bluetooth"in navigator,s=null!=i?i:{},u=s.acceptAllDevices,v=void 0!==u&&u,p=s.filters,f=s.optionalServices,l=a(!1),d=e(l,2),g=d[0],b=d[1],m=a(void 0),x=e(m,2),h=x[0],D=x[1],k=a(void 0),w=e(k,2),y=w[0],A=w[1],q=function(){var e=t(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,navigator.bluetooth.requestDevice(n({acceptAllDevices:v,optionalServices:f},p&&{filters:p,acceptAllDevices:!1}));case 4:t=e.sent,D(t);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return c((function(){if(h&&h.gatt){var e=function(){var e=t(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h.gatt){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,h.gatt.connect();case 4:t=e.sent,A(t),b(t.connected);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),n=function(){A(void 0),D(void 0),b(!1)};return h.addEventListener("gattserverdisconnected",n),e(),function(){var e;h.removeEventListener("gattserverdisconnected",n),null===(e=h.gatt)||void 0===e||e.disconnect()}}}),[h]),{supported:o,connected:g,device:h,requestDevice:q,server:y}};export{i as useBluetooth};
3
3
  //# sourceMappingURL=useBluetooth.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as n}from"react";var t=function(){var t=n(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),o=r(t,2),e=o[0],u=o[1];return[e,function(r){return u((function(n){return null!=r?r:!n}))}]};export{t as useBoolean};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as n}from"react";var t=function(){var t=n(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),o=r(t,2),e=o[0],u=o[1];return[e,function(r){return u((function(n){return null!=r?r:!n}))}]};export{t as useBoolean};
3
3
  //# sourceMappingURL=useBoolean.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{c as e,_ as r}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useEffect as t}from"react";import{useRerender as n}from"../useRerender/useRerender.js";var i=function(e){return window.matchMedia(e).matches},l=function(l){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mobile-first",a=n(),u=function(e,r){return"".concat(r?Number(l[e])+r:l[e],"px")};t((function(){var e=function(){return a()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]);var m=function(e){return i("(min-width: ".concat(u(e),")"))},c=function(e){return i("(max-width: ".concat(u(e),")"))},s=function(){return Object.keys(l).map((function(e){return[e,m(e)]})).filter((function(e){return r(e,2)[1]})).map((function(e){return r(e,1)[0]}))},x=function(e){return i("(min-width: ".concat(u(e,.1),")"))},d=function(e){return i("(max-width: ".concat(u(e,-.1),")"))},f=function(e,r){return i("(min-width: ".concat(u(e),") and (max-width: ").concat(u(r,-.1),")"))},p=Object.keys(l).reduce((function(e,r){var t="mobile-first"===o?m(r):c(r);return e[r]=t,e}),{});return e({current:s,greaterOrEqual:m,smallerOrEqual:c,active:function(){var e=s();return e.length?e.at(-1):void 0},greater:x,smaller:d,between:f,isGreater:x,isGreaterOrEqual:m,isSmaller:d,isSmallerOrEqual:c,isInBetween:f},p)},o={xs:0,sm:600,md:900,lg:1200,xl:1536},a={xs:576,sm:768,md:992,lg:1200,xl:1408},u={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},m={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},c={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},s={xs:0,sm:600,md:1024,lg:1440,xl:1920},x={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},d={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},f={sm:576,md:768,lg:992,xl:1200};export{c as BREAKPOINTS_ANT_DESIGN,m as BREAKPOINTS_BOOTSTRAP_V5,a as BREAKPOINTS_MANTINE,d as BREAKPOINTS_MASTER_CSS,o as BREAKPOINTS_MATERIAL_UI,f as BREAKPOINTS_PRIME_FLEX,s as BREAKPOINTS_QUASAR_V2,x as BREAKPOINTS_SEMANTIC,u as BREAKPOINTS_TAILWIND,l as useBreakpoints};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{c as e,_ as r}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useEffect as t}from"react";import{useRerender as n}from"../useRerender/useRerender.js";var i=function(e){return window.matchMedia(e).matches},l=function(l){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mobile-first",a=n(),u=function(e,r){return"".concat(r?Number(l[e])+r:l[e],"px")};t((function(){var e=function(){return a()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]);var m=function(e){return i("(min-width: ".concat(u(e),")"))},c=function(e){return i("(max-width: ".concat(u(e),")"))},s=function(){return Object.keys(l).map((function(e){return[e,m(e)]})).filter((function(e){return r(e,2)[1]})).map((function(e){return r(e,1)[0]}))},x=function(e){return i("(min-width: ".concat(u(e,.1),")"))},d=function(e){return i("(max-width: ".concat(u(e,-.1),")"))},f=function(e,r){return i("(min-width: ".concat(u(e),") and (max-width: ").concat(u(r,-.1),")"))},p=Object.keys(l).reduce((function(e,r){var t="mobile-first"===o?m(r):c(r);return e[r]=t,e}),{});return e({current:s,greaterOrEqual:m,smallerOrEqual:c,active:function(){var e=s();return e.length?e.at(-1):void 0},greater:x,smaller:d,between:f,isGreater:x,isGreaterOrEqual:m,isSmaller:d,isSmallerOrEqual:c,isInBetween:f},p)},o={xs:0,sm:600,md:900,lg:1200,xl:1536},a={xs:576,sm:768,md:992,lg:1200,xl:1408},u={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},m={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},c={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},s={xs:0,sm:600,md:1024,lg:1440,xl:1920},x={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},d={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},f={sm:576,md:768,lg:992,xl:1200};export{c as BREAKPOINTS_ANT_DESIGN,m as BREAKPOINTS_BOOTSTRAP_V5,a as BREAKPOINTS_MANTINE,d as BREAKPOINTS_MASTER_CSS,o as BREAKPOINTS_MATERIAL_UI,f as BREAKPOINTS_PRIME_FLEX,s as BREAKPOINTS_QUASAR_V2,x as BREAKPOINTS_SEMANTIC,u as BREAKPOINTS_TAILWIND,l as useBreakpoints};
3
3
  //# sourceMappingURL=useBreakpoints.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
2
  import{useSyncExternalStore as n}from"react";var e=function(){return navigator.language},r=function(){return"undetermined"},t=function(n){return window.addEventListener("languagechange",n),function(){return window.removeEventListener("languagechange",n)}},u=function(){return n(t,e,r)};export{u as useBrowserLanguage};
3
3
  //# sourceMappingURL=useBrowserLanguage.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{useRef as t,useEffect as e}from"react";import{getElement as r}from"../../utils/helpers/getElement.js";import{isTarget as n}from"../../utils/helpers/isTarget.js";import{useRefState as i}from"../useRefState/useRefState.js";import"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";var o=function(){var o=n(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,l=(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],s=i(),u=t(l);if(u.current=l,e((function(){if(o||s.state){var t=function(t){var e=o?r(o):s.current;e&&!e.contains(t.target)&&u.current(t)};return document.addEventListener("click",t),function(){document.removeEventListener("click",t)}}}),[o,s.state]),!o)return s};export{o as useClickOutside};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{useRef as t,useEffect as e}from"react";import{getElement as r}from"../../utils/helpers/getElement.js";import{isTarget as n}from"../../utils/helpers/isTarget.js";import{useRefState as i}from"../useRefState/useRefState.js";import"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";var o=function(){var o=n(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,l=(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],s=i(),u=t(l);if(u.current=l,e((function(){if(o||s.state){var t=function(t){var e=o?r(o):s.current;e&&!e.contains(t.target)&&u.current(t)};return document.addEventListener("click",t),function(){document.removeEventListener("click",t)}}}),[o,s.state]),!o)return s};export{o as useClickOutside};
3
3
  //# sourceMappingURL=useClickOutside.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as e,d as n,e as t}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as r,useEffect as o}from"react";import{copy as u}from"../../utils/helpers/copy.js";var c=function(c){var a,i=r(null),l=e(i,2),s=l[0],p=l[1],v=null!==(a=null==c?void 0:c.enabled)&&void 0!==a&&a,d=function(){var e=n(t().mark((function e(){var n,r,o,u;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.clipboard.readText();case 3:n=e.sent,p(n),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),p(null!==(r=null===(o=(u=document).getSelection)||void 0===o||null===(o=o.call(u))||void 0===o?void 0:o.toString())&&void 0!==r?r:"");case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();o((function(){if(v)return document.addEventListener("copy",d),document.addEventListener("cut",d),function(){document.removeEventListener("copy",d),document.removeEventListener("cut",d)}}),[v]);var f=function(){var e=n(t().mark((function e(n){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u(n),p(n);case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return{value:s,copy:f}};export{c as useClipboard};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as e,d as n,e as t}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as r,useEffect as o}from"react";import{copy as u}from"../../utils/helpers/copy.js";var c=function(c){var a,i=r(null),l=e(i,2),s=l[0],p=l[1],v=null!==(a=null==c?void 0:c.enabled)&&void 0!==a&&a,d=function(){var e=n(t().mark((function e(){var n,r,o,u;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.clipboard.readText();case 3:n=e.sent,p(n),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),p(null!==(r=null===(o=(u=document).getSelection)||void 0===o||null===(o=o.call(u))||void 0===o?void 0:o.toString())&&void 0!==r?r:"");case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();o((function(){if(v)return document.addEventListener("copy",d),document.addEventListener("cut",d),function(){document.removeEventListener("copy",d),document.removeEventListener("cut",d)}}),[v]);var f=function(){var e=n(t().mark((function e(n){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u(n),p(n);case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return{value:s,copy:f}};export{c as useClipboard};
3
3
  //# sourceMappingURL=useClipboard.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
2
  import{useRef as r}from"react";var n=function(n){return r(n instanceof Function?n():n).current};export{n as useConst};
3
3
  //# sourceMappingURL=useConst.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{f as n,b as e,_ as t,c as i}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as o,useEffect as r}from"react";var a=function(){return Object.fromEntries(document.cookie.split("; ").map((function(e){var t=e.split("="),i=n(t),o=i[0],r=i.slice(1);return[o,decodeURIComponent(r.join("="))]})))},c=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};document.cookie="".concat(encodeURIComponent(n),"=; expires=Thu, 01 Jan 1970 00:00:00 GMT").concat(e.path?"; path=".concat(e.path):"").concat(e.domain?"; domain=".concat(e.domain):"").concat(e.maxAge?"; max-age=0":"").concat(e.expires?"; expires=Thu, 01 Jan 1970 00:00:00 GMT":"").concat(e.secure?"; secure":"").concat(e.sameSite?"; samesite=".concat(e.sameSite):"")},u=function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=["".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(e))];t.path&&i.push("path=".concat(t.path)),t.domain&&i.push("domain=".concat(t.domain)),"number"==typeof t.maxAge&&i.push("max-age=".concat(t.maxAge)),t.expires&&i.push("expires=".concat(t.expires.toUTCString())),t.secure&&i.push("secure"),t.httpOnly&&i.push("httpOnly"),t.sameSite&&i.push("samesite=".concat(t.sameSite)),document.cookie=i.join("; ")},s="reactuse-cookie",p=function(){return window.dispatchEvent(new Event(s))},d=function(n,e,t){u(n,e,t),p()},m=function(n){return a()[n]},f=function(n,a){var u="object"===e(a)&&a&&("serializer"in a||"deserializer"in a||"initialValue"in a)?a:void 0,f=u?null==u?void 0:u.initialValue:a;if("undefined"==typeof document)return{value:f instanceof Function?f():f};var l=function(n){return null!=u&&u.serializer?u.serializer(n):"string"==typeof n?n:JSON.stringify(n)},v=function(n){if(null!=u&&u.deserializer)return u.deserializer(n);if("undefined"!==n)try{return JSON.parse(n)}catch(e){return n}},h=o((function(){var e=m(n);if(void 0===e&&void 0!==f){var t=f instanceof Function?f():f;return d(n,l(t),u),t}return e?v(e):void 0})),x=t(h,2),g=x[0],w=x[1];r((function(){var e=function(){var e=m(n);w(e?v(e):void 0)};return window.addEventListener(s,e),function(){return window.removeEventListener(s,e)}}),[n]);return{value:g,set:function(e,t){return d(n,l(e),i(i({},u),t))},remove:function(e){return function(n,e){c(n,e),p()}(n,i(i({},u),e))}}};export{s as COOKIE_EVENT,p as dispatchCookieEvent,a as getCookies,c as removeCookie,u as setCookie,f as useCookie};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{f as n,b as e,_ as t,c as i}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as o,useEffect as r}from"react";var a=function(){return Object.fromEntries(document.cookie.split("; ").map((function(e){var t=e.split("="),i=n(t),o=i[0],r=i.slice(1);return[o,decodeURIComponent(r.join("="))]})))},c=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};document.cookie="".concat(encodeURIComponent(n),"=; expires=Thu, 01 Jan 1970 00:00:00 GMT").concat(e.path?"; path=".concat(e.path):"").concat(e.domain?"; domain=".concat(e.domain):"").concat(e.maxAge?"; max-age=0":"").concat(e.expires?"; expires=Thu, 01 Jan 1970 00:00:00 GMT":"").concat(e.secure?"; secure":"").concat(e.sameSite?"; samesite=".concat(e.sameSite):"")},u=function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=["".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(e))];t.path&&i.push("path=".concat(t.path)),t.domain&&i.push("domain=".concat(t.domain)),"number"==typeof t.maxAge&&i.push("max-age=".concat(t.maxAge)),t.expires&&i.push("expires=".concat(t.expires.toUTCString())),t.secure&&i.push("secure"),t.httpOnly&&i.push("httpOnly"),t.sameSite&&i.push("samesite=".concat(t.sameSite)),document.cookie=i.join("; ")},s="reactuse-cookie",p=function(){return window.dispatchEvent(new Event(s))},d=function(n,e,t){u(n,e,t),p()},m=function(n){return a()[n]},f=function(n,a){var u="object"===e(a)&&a&&("serializer"in a||"deserializer"in a||"initialValue"in a)?a:void 0,f=u?null==u?void 0:u.initialValue:a;if("undefined"==typeof document)return{value:f instanceof Function?f():f};var l=function(n){return null!=u&&u.serializer?u.serializer(n):"string"==typeof n?n:JSON.stringify(n)},v=function(n){if(null!=u&&u.deserializer)return u.deserializer(n);if("undefined"!==n)try{return JSON.parse(n)}catch(e){return n}},h=o((function(){var e=m(n);if(void 0===e&&void 0!==f){var t=f instanceof Function?f():f;return d(n,l(t),u),t}return e?v(e):void 0})),x=t(h,2),g=x[0],w=x[1];r((function(){var e=function(){var e=m(n);w(e?v(e):void 0)};return window.addEventListener(s,e),function(){return window.removeEventListener(s,e)}}),[n]);return{value:g,set:function(e,t){return d(n,l(e),i(i({},u),t))},remove:function(e){return function(n,e){c(n,e),p()}(n,i(i({},u),e))}}};export{s as COOKIE_EVENT,p as dispatchCookieEvent,a as getCookies,c as removeCookie,u as setCookie,f as useCookie};
3
3
  //# sourceMappingURL=useCookie.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{f as n,_ as e}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as t,useEffect as o}from"react";import{removeCookie as r,COOKIE_EVENT as i,dispatchCookieEvent as u,setCookie as c}from"../useCookie/useCookie.js";var f=function(){return Object.fromEntries(document.cookie.split("; ").map((function(e){var t=e.split("="),o=n(t),r=o[0],i=o.slice(1),u=decodeURIComponent(i.join("="));try{return[r,JSON.parse(u)]}catch(n){return[r,u]}})))},s=function(){document.cookie.split("; ").forEach((function(n){var t=n.split("="),o=e(t,1)[0];r(o)}))},a=function(n,e){r(n,e),u()},l=function(){var n=t("undefined"!=typeof window?f():{}),r=e(n,2),l=r[0],p=r[1];o((function(){var n=function(){return p(f())};return window.addEventListener(i,n),function(){window.removeEventListener(i,n)}}),[]);return{value:l,set:function(n,e,t){if(null===e)return a(n);!function(n,e,t){c(n,e,t),u()}(n,e,t)},remove:function(n,e){return a(n,e)},getAll:function(){return f()},clear:function(){return s(),void u()}}};export{s as clearCookies,f as getParsedCookies,l as useCookies};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{f as n,_ as e}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as t,useEffect as o}from"react";import{removeCookie as r,COOKIE_EVENT as i,dispatchCookieEvent as u,setCookie as c}from"../useCookie/useCookie.js";var f=function(){return Object.fromEntries(document.cookie.split("; ").map((function(e){var t=e.split("="),o=n(t),r=o[0],i=o.slice(1),u=decodeURIComponent(i.join("="));try{return[r,JSON.parse(u)]}catch(n){return[r,u]}})))},s=function(){document.cookie.split("; ").forEach((function(n){var t=n.split("="),o=e(t,1)[0];r(o)}))},a=function(n,e){r(n,e),u()},l=function(){var n=t("undefined"!=typeof window?f():{}),r=e(n,2),l=r[0],p=r[1];o((function(){var n=function(){return p(f())};return window.addEventListener(i,n),function(){window.removeEventListener(i,n)}}),[]);return{value:l,set:function(n,e,t){if(null===e)return a(n);!function(n,e,t){c(n,e,t),u()}(n,e,t)},remove:function(n,e){return a(n,e)},getAll:function(){return f()},clear:function(){return s(),void u()}}};export{s as clearCookies,f as getParsedCookies,l as useCookies};
3
3
  //# sourceMappingURL=useCookies.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as r,d as e,e as t}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as n}from"react";import{copy as o}from"../../utils/helpers/copy.js";var u=function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3,a=n(null),i=r(a,2),s=i[0],c=i[1],p=n(!1),l=r(p,2),f=l[0],m=l[1],v=function(){var r=e(t().mark((function r(e){return t().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o(e);case 2:c(e),m(!0),setTimeout((function(){return m(!1)}),u);case 5:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}();return{value:s,copied:f,copy:v}};export{u as useCopy};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as r,d as e,e as t}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as n}from"react";import{copy as o}from"../../utils/helpers/copy.js";var u=function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3,a=n(null),i=r(a,2),s=i[0],c=i[1],p=n(!1),l=r(p,2),f=l[0],m=l[1],v=function(){var r=e(t().mark((function r(e){return t().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o(e);case 2:c(e),m(!0),setTimeout((function(){return m(!1)}),u);case 5:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}();return{value:s,copied:f,copy:v}};export{u as useCopy};
3
3
  //# sourceMappingURL=useCopy.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as r}from"react";var e=function(){for(var e,t,o,u=arguments.length,i=new Array(u),a=0;a<u;a++)i[a]=arguments[a];var l="number"==typeof i[0]?i[0]:null===(e=i[0])||void 0===e?void 0:e.initialValue,m="number"==typeof i[0]?null!==(t=i[1])&&void 0!==t?t:{}:null!==(o=i[0])&&void 0!==o?o:{},f=m.max,v=void 0===f?Number.POSITIVE_INFINITY:f,p=m.min,c=void 0===p?Number.NEGATIVE_INFINITY:p,b=r(null!=l?l:0),d=n(b,2),h=d[0],I=d[1];return{value:h,set:function(n){I((function(r){return Math.max(c,Math.min(v,"number"==typeof n?n:n(r)))}))},inc:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;I((function(r){return"number"==typeof v&&r===v?r:Math.max(Math.min(v,r+n),c)}))},dec:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;I((function(r){return"number"==typeof c&&r===c?r:Math.min(Math.max(c,r-n),v)}))},reset:function(){var n=null!=l?l:0;return"number"==typeof v&&n>v?I(v):"number"==typeof c&&n<c?I(c):void I(n)}}};export{e as useCounter};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as r}from"react";var e=function(){for(var e,t,o,u=arguments.length,i=new Array(u),a=0;a<u;a++)i[a]=arguments[a];var l="number"==typeof i[0]?i[0]:null===(e=i[0])||void 0===e?void 0:e.initialValue,m="number"==typeof i[0]?null!==(t=i[1])&&void 0!==t?t:{}:null!==(o=i[0])&&void 0!==o?o:{},f=m.max,v=void 0===f?Number.POSITIVE_INFINITY:f,p=m.min,c=void 0===p?Number.NEGATIVE_INFINITY:p,b=r(null!=l?l:0),d=n(b,2),h=d[0],I=d[1];return{value:h,set:function(n){I((function(r){return Math.max(c,Math.min(v,"number"==typeof n?n:n(r)))}))},inc:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;I((function(r){return"number"==typeof v&&r===v?r:Math.max(Math.min(v,r+n),c)}))},dec:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;I((function(r){return"number"==typeof c&&r===c?r:Math.min(Math.max(c,r-n),v)}))},reset:function(){var n=null!=l?l:0;return"number"==typeof v&&n>v?I(v):"number"==typeof c&&n<c?I(c):void I(n)}}};export{e as useCounter};
3
3
  //# sourceMappingURL=useCounter.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{b as e,_ as t}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as r,useEffect as o}from"react";import{getElement as n}from"../../utils/helpers/getElement.js";import{useRefState as i}from"../useRefState/useRefState.js";var l=function(){var l="object"===e(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,u=l?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],s=l?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],v=r(null!=s?s:""),a=t(v,2),d=a[0],f=a[1],c=i(window.document.documentElement),m=function(e){var t=l?n(l):c.current;if(t&&t.style){if(!e)return t.style.removeProperty(u),void f(e);t.style.setProperty(u,e),f(e)}};return o((function(){s&&m(s)}),[]),o((function(){if(l||c.state){var e=l?n(l):c.current;if(e){var t=new MutationObserver((function(){var t,r=null===(t=window.getComputedStyle(e).getPropertyValue(u))||void 0===t?void 0:t.trim();f(null!=r?r:s)}));return t.observe(e,{attributeFilter:["style","class"]}),function(){t.disconnect()}}}}),[l,c.state]),{value:d,set:m}};export{l as useCssVar};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{b as e,_ as t}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as r,useEffect as o}from"react";import{getElement as n}from"../../utils/helpers/getElement.js";import{useRefState as i}from"../useRefState/useRefState.js";var l=function(){var l="object"===e(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,u=l?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],s=l?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],v=r(null!=s?s:""),a=t(v,2),d=a[0],f=a[1],c=i(window.document.documentElement),m=function(e){var t=l?n(l):c.current;if(t&&t.style){if(!e)return t.style.removeProperty(u),void f(e);t.style.setProperty(u,e),f(e)}};return o((function(){s&&m(s)}),[]),o((function(){if(l||c.state){var e=l?n(l):c.current;if(e){var t=new MutationObserver((function(){var t,r=null===(t=window.getComputedStyle(e).getPropertyValue(u))||void 0===t?void 0:t.trim();f(null!=r?r:s)}));return t.observe(e,{attributeFilter:["style","class"]}),function(){t.disconnect()}}}}),[l,c.state]),{value:d,set:m}};export{l as useCssVar};
3
3
  //# sourceMappingURL=useCssVar.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
2
  import{useMemo as r}from"react";import{debounce as e}from"../../utils/helpers/debounce.js";import{useEvent as t}from"../useEvent/useEvent.js";var o=function(o,n){var u=t(o);return r((function(){return e(u,n)}),[n])};export{o as useDebounceCallback};
3
3
  //# sourceMappingURL=useDebounceCallback.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useRef as r,useState as o,useEffect as t}from"react";import{useDebounceCallback as u}from"../useDebounceCallback/useDebounceCallback.js";import"../../utils/helpers/debounce.js";import"../useEvent/useEvent.js";var n=function(n,s){var l=r(n),c=o(n),a=e(c,2),i=a[0],p=a[1],m=u(p,s);return t((function(){l.current!==n&&(m(n),l.current=n)}),[n]),i};export{n as useDebounceValue};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useRef as r,useState as o,useEffect as t}from"react";import{useDebounceCallback as u}from"../useDebounceCallback/useDebounceCallback.js";import"../../utils/helpers/debounce.js";import"../useEvent/useEvent.js";var n=function(n,s){var l=r(n),c=o(n),a=e(c,2),i=a[0],p=a[1],m=u(p,s);return t((function(){l.current!==n&&(m(n),l.current=n)}),[n]),i};export{n as useDebounceValue};
3
3
  //# sourceMappingURL=useDebounceValue.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as l}from"react";var o=function(o,e){var t=l(o),a=r(t,2),n=a[0];return[null==n?e:n,a[1]]};export{o as useDefault};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as l}from"react";var o=function(o,e){var t=l(o),a=r(t,2),n=a[0];return[null==n?e:n,a[1]]};export{o as useDefault};
3
3
  //# sourceMappingURL=useDefault.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as l,c as n}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as a,useRef as e,useEffect as t}from"react";import{throttle as i}from"../../utils/helpers/throttle.js";var r=function(r){var o,c,u=null===(o=null==r?void 0:r.enabled)||void 0===o||o,v=null!==(c=null==r?void 0:r.delay)&&void 0!==c?c:1e3,d=a({interval:0,rotationRate:{alpha:null,beta:null,gamma:null},acceleration:{x:null,y:null,z:null},accelerationIncludingGravity:{x:null,y:null,z:null}}),m=l(d,2),s=m[0],f=m[1],p=e(null==r?void 0:r.callback);return p.current=null==r?void 0:r.callback,t((function(){if(u){var l=i((function(l){var a;null===(a=p.current)||void 0===a||a.call(p,l),f({interval:l.interval,rotationRate:n(n({},s.rotationRate),l.rotationRate),acceleration:n(n({},s.acceleration),l.acceleration),accelerationIncludingGravity:n(n({},s.accelerationIncludingGravity),l.accelerationIncludingGravity)})}),v);return window.addEventListener("devicemotion",l),function(){window.removeEventListener("devicemotion",l)}}}),[v,u]),s};export{r as useDeviceMotion};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as l,c as n}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as a,useRef as e,useEffect as t}from"react";import{throttle as i}from"../../utils/helpers/throttle.js";var r=function(r){var o,c,u=null===(o=null==r?void 0:r.enabled)||void 0===o||o,v=null!==(c=null==r?void 0:r.delay)&&void 0!==c?c:1e3,d=a({interval:0,rotationRate:{alpha:null,beta:null,gamma:null},acceleration:{x:null,y:null,z:null},accelerationIncludingGravity:{x:null,y:null,z:null}}),m=l(d,2),s=m[0],f=m[1],p=e(null==r?void 0:r.callback);return p.current=null==r?void 0:r.callback,t((function(){if(u){var l=i((function(l){var a;null===(a=p.current)||void 0===a||a.call(p,l),f({interval:l.interval,rotationRate:n(n({},s.rotationRate),l.rotationRate),acceleration:n(n({},s.acceleration),l.acceleration),accelerationIncludingGravity:n(n({},s.accelerationIncludingGravity),l.accelerationIncludingGravity)})}),v);return window.addEventListener("devicemotion",l),function(){window.removeEventListener("devicemotion",l)}}}),[v,u]),s};export{r as useDeviceMotion};
3
3
  //# sourceMappingURL=useDeviceMotion.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as n,useEffect as t}from"react";var a=function(){var a="undefined"!=typeof window&&"DeviceOrientationEvent"in window,i=n({alpha:null,beta:null,gamma:null,absolute:!1}),o=e(i,2),r=o[0],l=o[1];return t((function(){if(a){var e=function(e){return l({alpha:e.alpha,beta:e.beta,gamma:e.gamma,absolute:e.absolute})};return window.addEventListener("deviceorientation",e),function(){window.removeEventListener("deviceorientation",e)}}}),[]),{supported:a,value:r}};export{a as useDeviceOrientation};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as n,useEffect as t}from"react";var a=function(){var a="undefined"!=typeof window&&"DeviceOrientationEvent"in window,i=n({alpha:null,beta:null,gamma:null,absolute:!1}),o=e(i,2),r=o[0],l=o[1];return t((function(){if(a){var e=function(e){return l({alpha:e.alpha,beta:e.beta,gamma:e.gamma,absolute:e.absolute})};return window.addEventListener("deviceorientation",e),function(){window.removeEventListener("deviceorientation",e)}}}),[]),{supported:a,value:r}};export{a as useDeviceOrientation};
3
3
  //# sourceMappingURL=useDeviceOrientation.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as i,useEffect as n}from"react";var o=function(){var o,t="undefined"!=typeof window&&"function"==typeof window.matchMedia&&"number"==typeof window.devicePixelRatio,r=i(null!==(o=window.devicePixelRatio)&&void 0!==o?o:1),d=e(r,2),a=d[0],c=d[1];return n((function(){if(t){var e=function(){return c(window.devicePixelRatio)},i=window.matchMedia("(resolution: ".concat(window.devicePixelRatio,"dppx)"));return i.addEventListener("change",e),function(){i.removeEventListener("change",e)}}}),[a]),{supported:t,ratio:a}};export{o as useDevicePixelRatio};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as i,useEffect as n}from"react";var o=function(){var o,t="undefined"!=typeof window&&"function"==typeof window.matchMedia&&"number"==typeof window.devicePixelRatio,r=i(null!==(o=window.devicePixelRatio)&&void 0!==o?o:1),d=e(r,2),a=d[0],c=d[1];return n((function(){if(t){var e=function(){return c(window.devicePixelRatio)},i=window.matchMedia("(resolution: ".concat(window.devicePixelRatio,"dppx)"));return i.addEventListener("change",e),function(){i.removeEventListener("change",e)}}}),[a]),{supported:t,ratio:a}};export{o as useDevicePixelRatio};
3
3
  //# sourceMappingURL=useDevicePixelRatio.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
2
  import{useRef as r}from"react";import{useIsomorphicLayoutEffect as o}from"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var t=function(t,f){var c=r(!0);o((function(){if(!c.current){var r=t();return r&&"function"==typeof r?r:void 0}c.current=!1}),f)};export{t as useDidUpdate};
3
3
  //# sourceMappingURL=useDidUpdate.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as r}from"react";var o=function(){var o=arguments.length>1?arguments[1]:void 0,l=r(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),e=n(l,2),t=e[0],u=e[1],i=function(){return u((function(n){var r;return n||(null==o||null===(r=o.onOpen)||void 0===r||r.call(o),!0)}))},c=function(){return u((function(n){var r;return n?(null==o||null===(r=o.onClose)||void 0===r||r.call(o),!1):n}))};return{opened:t,open:i,close:c,toggle:function(){return t?c():i()}}};export{o as useDisclosure};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as r}from"react";var o=function(){var o=arguments.length>1?arguments[1]:void 0,l=r(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),e=n(l,2),t=e[0],u=e[1],i=function(){return u((function(n){var r;return n||(null==o||null===(r=o.onOpen)||void 0===r||r.call(o),!0)}))},c=function(){return u((function(n){var r;return n?(null==o||null===(r=o.onClose)||void 0===r||r.call(o),!1):n}))};return{opened:t,open:i,close:c,toggle:function(){return t?c():i()}}};export{o as useDisclosure};
3
3
  //# sourceMappingURL=useDisclosure.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as e,d as r,e as t}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as n,useRef as i,useEffect as a}from"react";import{getElement as u}from"../../utils/helpers/getElement.js";import{isTarget as o}from"../../utils/helpers/isTarget.js";import{useRefState as s}from"../useRefState/useRefState.js";var c=function(){var c,l="undefined"!=typeof navigator&&"mediaDevices"in navigator&&!!navigator.mediaDevices&&"getDisplayMedia"in navigator.mediaDevices,d=o(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,p=(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],f=null!==(c=null==p?void 0:p.enabled)&&void 0!==c&&c,v=n(!1),g=e(v,2),m=g[0],h=g[1],b=i(null),j=s(),D=function(){if(b.current&&l){var e=d?u(d):j.current;e&&(h(!1),e.srcObject=null,b.current.getTracks().forEach((function(e){return e.stop()})),b.current=null)}},k=function(){var e=r(t().mark((function e(){var r,n;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l){e.next=2;break}return e.abrupt("return");case 2:if(r=d?u(d):j.current){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,navigator.mediaDevices.getDisplayMedia({video:null==p?void 0:p.video,audio:null==p?void 0:p.audio});case 7:return n=e.sent,h(!0),b.current=n,r.srcObject=n,n.getTracks().forEach((function(e){return e.onended=D})),e.abrupt("return",n);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return a((function(){if(l&&f&&((d||j.state)&&(d?u(d):j.current)))return k(),function(){D()}}),[d,j.state]),d?{stream:b.current,sharing:m,supported:l,start:k,stop:D}:{stream:b.current,sharing:m,supported:l,start:k,stop:D,ref:j}};export{c as useDisplayMedia};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as e,d as r,e as t}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as n,useRef as i,useEffect as a}from"react";import{getElement as u}from"../../utils/helpers/getElement.js";import{isTarget as o}from"../../utils/helpers/isTarget.js";import{useRefState as s}from"../useRefState/useRefState.js";var c=function(){var c,l="undefined"!=typeof navigator&&"mediaDevices"in navigator&&!!navigator.mediaDevices&&"getDisplayMedia"in navigator.mediaDevices,d=o(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,p=(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],f=null!==(c=null==p?void 0:p.enabled)&&void 0!==c&&c,v=n(!1),g=e(v,2),m=g[0],h=g[1],b=i(null),j=s(),D=function(){if(b.current&&l){var e=d?u(d):j.current;e&&(h(!1),e.srcObject=null,b.current.getTracks().forEach((function(e){return e.stop()})),b.current=null)}},k=function(){var e=r(t().mark((function e(){var r,n;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l){e.next=2;break}return e.abrupt("return");case 2:if(r=d?u(d):j.current){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,navigator.mediaDevices.getDisplayMedia({video:null==p?void 0:p.video,audio:null==p?void 0:p.audio});case 7:return n=e.sent,h(!0),b.current=n,r.srcObject=n,n.getTracks().forEach((function(e){return e.onended=D})),e.abrupt("return",n);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return a((function(){if(l&&f&&((d||j.state)&&(d?u(d):j.current)))return k(),function(){D()}}),[d,j.state]),d?{stream:b.current,sharing:m,supported:l,start:k,stop:D}:{stream:b.current,sharing:m,supported:l,start:k,stop:D,ref:j}};export{c as useDisplayMedia};
3
3
  //# sourceMappingURL=useDisplayMedia.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{useEventListener as e}from"../useEventListener/useEventListener.js";import"react";import"../../utils/helpers/getElement.js";import"../useEvent/useEvent.js";import"../useRefState/useRefState.js";import"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";var t=function(t,r,s){return e(document,t,r,s)};export{t as useDocumentEvent};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{useEventListener as e}from"../useEventListener/useEventListener.js";import"react";import"../../utils/helpers/getElement.js";import"../useEvent/useEvent.js";import"../useRefState/useRefState.js";import"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";var t=function(t,r,s){return e(document,t,r,s)};export{t as useDocumentEvent};
3
3
  //# sourceMappingURL=useDocumentEvent.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as t}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useRef as n,useState as e,useEffect as o}from"react";function r(r,u){var i=n(document.title),c=e(null!=r?r:document.title),l=t(c,2),m=l[0],f=l[1],d=function(t){var n=t.trim();n.length>0&&(document.title=n)};return o((function(){"string"==typeof m&&d(m)}),[m]),o((function(){var t=new MutationObserver((function(){f((function(t){return document&&document.title!==t?document.title:t}))}));return t.observe(document.head.querySelector("title"),{childList:!0}),function(){t.disconnect()}}),[]),o((function(){if(null!=u&&u.restoreOnUnmount)return function(){document.title=i.current}}),[]),{value:m,set:d}}export{r as useDocumentTitle};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as t}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useRef as n,useState as e,useEffect as o}from"react";function r(r,u){var i=n(document.title),c=e(null!=r?r:document.title),l=t(c,2),m=l[0],f=l[1],d=function(t){var n=t.trim();n.length>0&&(document.title=n)};return o((function(){"string"==typeof m&&d(m)}),[m]),o((function(){var t=new MutationObserver((function(){f((function(t){return document&&document.title!==t?document.title:t}))}));return t.observe(document.head.querySelector("title"),{childList:!0}),function(){t.disconnect()}}),[]),o((function(){if(null!=u&&u.restoreOnUnmount)return function(){document.title=i.current}}),[]),{value:m,set:d}}export{r as useDocumentTitle};
3
3
  //# sourceMappingURL=useDocumentTitle.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
2
  import{useSyncExternalStore as n}from"react";var t=function(){return document.visibilityState},e=function(){return"hidden"},i=function(n){return document.addEventListener("visibilitychange",n),function(){document.removeEventListener("visibilitychange",n)}},r=function(){return n(i,t,e)};export{r as useDocumentVisibility};
3
3
  //# sourceMappingURL=useDocumentVisibility.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as t}from"react";import{getElement as r}from"../../utils/helpers/getElement.js";import{isTarget as i}from"../../utils/helpers/isTarget.js";import{useIsomorphicLayoutEffect as o}from"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import{useRefState as n}from"../useRefState/useRefState.js";var s=function(){var s=i(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,u=t({width:0,height:0}),h=e(u,2),f=h[0],a=h[1],l=n();return o((function(){var e=s?r(s):l.current;if(e){var t=e.getBoundingClientRect(),i=t.width,o=t.height;a({width:i,height:o});var n=new ResizeObserver((function(){var t=e.getBoundingClientRect(),r=t.width,i=t.height;a({width:r,height:i})}));return n.observe(e),function(){n.disconnect()}}}),[l.current,s]),s?{value:f}:{ref:l,value:f}};export{s as useElementSize};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as t}from"react";import{getElement as r}from"../../utils/helpers/getElement.js";import{isTarget as i}from"../../utils/helpers/isTarget.js";import{useIsomorphicLayoutEffect as o}from"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import{useRefState as n}from"../useRefState/useRefState.js";var s=function(){var s=i(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,u=t({width:0,height:0}),h=e(u,2),f=h[0],a=h[1],l=n();return o((function(){var e=s?r(s):l.current;if(e){var t=e.getBoundingClientRect(),i=t.width,o=t.height;a({width:i,height:o});var n=new ResizeObserver((function(){var t=e.getBoundingClientRect(),r=t.width,i=t.height;a({width:r,height:i})}));return n.observe(e),function(){n.disconnect()}}}),[l.current,s]),s?{value:f}:{ref:l,value:f}};export{s as useElementSize};
3
3
  //# sourceMappingURL=useElementSize.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
2
  import{useRef as r,useCallback as t}from"react";var n=function(n){var e=r(n);return e.current=n,t((function(){return e.current.apply(void 0,arguments)}),[])};export{n as useEvent};
3
3
  //# sourceMappingURL=useEvent.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{useEffect as e}from"react";import{getElement as t}from"../../utils/helpers/getElement.js";import{useEvent as n}from"../useEvent/useEvent.js";import{useRefState as r}from"../useRefState/useRefState.js";import"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";var o=function(){var o=(arguments.length<=1?void 0:arguments[1])instanceof Function||arguments.length<=0?void 0:arguments[0],i=o?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],u=Array.isArray(i)?i:[i],f=o?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],v=o?arguments.length<=3?void 0:arguments[3]:arguments.length<=2?void 0:arguments[2],l=r(window),s=n(f);if(e((function(){var e=o?t(o):l.current;if(e){var n=function(e){return s(e)};return u.forEach((function(t){return e.addEventListener(t,n,v)})),function(){u.forEach((function(t){return e.removeEventListener(t,n,v)}))}}}),[o,l.state,i,v]),!o)return l};export{o as useEventListener};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{useEffect as e}from"react";import{getElement as t}from"../../utils/helpers/getElement.js";import{useEvent as n}from"../useEvent/useEvent.js";import{useRefState as r}from"../useRefState/useRefState.js";import"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";var o=function(){var o=(arguments.length<=1?void 0:arguments[1])instanceof Function||arguments.length<=0?void 0:arguments[0],i=o?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],u=Array.isArray(i)?i:[i],f=o?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],v=o?arguments.length<=3?void 0:arguments[3]:arguments.length<=2?void 0:arguments[2],l=r(window),s=n(f);if(e((function(){var e=o?t(o):l.current;if(e){var n=function(e){return s(e)};return u.forEach((function(t){return e.addEventListener(t,n,v)})),function(){u.forEach((function(t){return e.removeEventListener(t,n,v)}))}}}),[o,l.state,i,v]),!o)return l};export{o as useEventListener};
3
3
  //# sourceMappingURL=useEventListener.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as r,d as e,e as n}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as o}from"react";var t=function(){var t="undefined"!=typeof window&&"EyeDropper"in window,p=o(arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0),a=r(p,2),i=a[0],u=a[1],s=function(){var r=e(n().mark((function r(e){var o,t;return n().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(window.EyeDropper){r.next=2;break}throw new Error("EyeDropper is not supported");case 2:return o=new window.EyeDropper,r.next=5,o.open(e);case 5:return t=r.sent,u(t.sRGBHex),r.abrupt("return",t);case 8:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}();return{supported:t,value:i,open:s}};export{t as useEyeDropper};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as r,d as e,e as n}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as o}from"react";var t=function(){var t="undefined"!=typeof window&&"EyeDropper"in window,p=o(arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0),a=r(p,2),i=a[0],u=a[1],s=function(){var r=e(n().mark((function r(e){var o,t;return n().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(window.EyeDropper){r.next=2;break}throw new Error("EyeDropper is not supported");case 2:return o=new window.EyeDropper,r.next=5,o.open(e);case 5:return t=r.sent,u(t.sRGBHex),r.abrupt("return",t);case 8:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}();return{supported:t,value:i,open:s}};export{t as useEyeDropper};
3
3
  //# sourceMappingURL=useEyeDropper.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as o}from"react";import{useDidUpdate as t}from"../useDidUpdate/useDidUpdate.js";import{useMount as r}from"../useMount/useMount.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var n=function(n){var u,i=o(null!=n?n:null===(u=document.querySelector('link[rel*="icon"]'))||void 0===u?void 0:u.href),c=e(i,2),l=c[0],p=c[1],m=function(e){var o=document.querySelector('link[rel*="icon"]')||document.createElement("link");o.rel="icon",o.href=e,o.type="image/".concat(e.split(".").pop()),document.head.append(o)};return r((function(){n&&m(n)})),t((function(){n&&(p(n),m(n))}),[n]),{href:l,set:function(e){p(e),m(e)}}};export{n as useFavicon};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as o}from"react";import{useDidUpdate as t}from"../useDidUpdate/useDidUpdate.js";import{useMount as r}from"../useMount/useMount.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";var n=function(n){var u,i=o(null!=n?n:null===(u=document.querySelector('link[rel*="icon"]'))||void 0===u?void 0:u.href),c=e(i,2),l=c[0],p=c[1],m=function(e){var o=document.querySelector('link[rel*="icon"]')||document.createElement("link");o.rel="icon",o.href=e,o.type="image/".concat(e.split(".").pop()),document.head.append(o)};return r((function(){n&&m(n)})),t((function(){n&&(p(n),m(n))}),[n]),{href:l,set:function(e){p(e),m(e)}}};export{n as useFavicon};
3
3
  //# sourceMappingURL=useFavicon.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as e,d as r,e as n}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useRef as t,useState as u}from"react";import{useRerender as i}from"../useRerender/useRerender.js";var a=function(a){var l,c,o=null!==(l=null==a?void 0:a.initialValue)&&void 0!==l?l:"",v=t(null),d=t(!1),f=i(),s=u(!1),m=e(s,2),p=m[0],h=m[1],g=u(null!==(c=null==a?void 0:a.initialTouched)&&void 0!==c&&c),x=e(g,2),k=x[0],b=x[1],y=u(void 0),L=e(y,2),V=L[0],w=L[1],B=function(){var e,r,n,t;return"radio"===(null===(e=v.current)||void 0===e?void 0:e.type)||"checkbox"===(null===(r=v.current)||void 0===r?void 0:r.type)?v.current.checked:null!==(n=null===(t=v.current)||void 0===t?void 0:t.value)&&void 0!==n?n:o},C=function(e){var r,n;return"radio"===(null===(r=v.current)||void 0===r?void 0:r.type)||"checkbox"===(null===(n=v.current)||void 0===n?void 0:n.type)?(v.current.checked=e,d.current?f():void 0):(v.current.value=e,d.current?f():void 0)},O=function(e){if(e.required&&!v.current.value)return w(e.required);if(e.minLength&&v.current.value.length<e.minLength.value)return w(e.minLength.message);if(e.maxLength&&v.current.value.length>e.maxLength.value)return w(e.maxLength.message);if(e.min&&Number(v.current.value)<e.min.value)return w(e.min.message);if(e.max&&Number(v.current.value)>e.max.value)return w(e.max.message);if(e.pattern&&!e.pattern.value.test(v.current.value))return w(e.pattern.message);if(e.validate){var r=e.validate(v.current.value);if("string"==typeof r)return w(r)}w(void 0)};return{register:function(e){return{ref:function(r){if(!v.current&&r){if(null!=a&&a.autoFocus&&r.focus(),v.current=r,"radio"===v.current.type)return void(v.current.defaultChecked=(null==a?void 0:a.initialValue)===r.value);if("checkbox"===v.current.type)return void(v.current.defaultChecked=!(null==a||!a.initialValue));v.current.defaultValue=String(o),e&&null!=a&&a.validateOnMount&&O(e)}},onChange:(u=r(n().mark((function r(){return n().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!d.current){r.next=2;break}return r.abrupt("return",f());case 2:if(v.current.value!==o&&h(!0),p&&v.current.value===o&&h(!1),!e||null==a||!a.validateOnChange){r.next=7;break}return r.next=7,O(e);case 7:e&&null!=a&&a.validateOnBlur&&w(void 0);case 8:case"end":return r.stop()}}),r)}))),function(){return u.apply(this,arguments)}),onBlur:(t=r(n().mark((function r(){return n().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e||null==a||!a.validateOnBlur){r.next=3;break}return r.next=3,O(e);case 3:b(!0);case 4:case"end":return r.stop()}}),r)}))),function(){return t.apply(this,arguments)})};var t,u},dirty:p,touched:k,error:V,setError:w,clearError:function(){return w(void 0)},getValue:B,setValue:C,reset:function(){C(o),h(!1),b(!1),w(void 0)},watch:function(){return d.current=!0,B()},focus:function(){v.current.focus()}}};export{a as useField};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as e,d as r,e as n}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useRef as t,useState as u}from"react";import{useRerender as i}from"../useRerender/useRerender.js";var a=function(a){var l,c,o=null!==(l=null==a?void 0:a.initialValue)&&void 0!==l?l:"",v=t(null),d=t(!1),f=i(),s=u(!1),m=e(s,2),p=m[0],h=m[1],g=u(null!==(c=null==a?void 0:a.initialTouched)&&void 0!==c&&c),x=e(g,2),k=x[0],b=x[1],y=u(void 0),L=e(y,2),V=L[0],w=L[1],B=function(){var e,r,n,t;return"radio"===(null===(e=v.current)||void 0===e?void 0:e.type)||"checkbox"===(null===(r=v.current)||void 0===r?void 0:r.type)?v.current.checked:null!==(n=null===(t=v.current)||void 0===t?void 0:t.value)&&void 0!==n?n:o},C=function(e){var r,n;return"radio"===(null===(r=v.current)||void 0===r?void 0:r.type)||"checkbox"===(null===(n=v.current)||void 0===n?void 0:n.type)?(v.current.checked=e,d.current?f():void 0):(v.current.value=e,d.current?f():void 0)},O=function(e){if(e.required&&!v.current.value)return w(e.required);if(e.minLength&&v.current.value.length<e.minLength.value)return w(e.minLength.message);if(e.maxLength&&v.current.value.length>e.maxLength.value)return w(e.maxLength.message);if(e.min&&Number(v.current.value)<e.min.value)return w(e.min.message);if(e.max&&Number(v.current.value)>e.max.value)return w(e.max.message);if(e.pattern&&!e.pattern.value.test(v.current.value))return w(e.pattern.message);if(e.validate){var r=e.validate(v.current.value);if("string"==typeof r)return w(r)}w(void 0)};return{register:function(e){return{ref:function(r){if(!v.current&&r){if(null!=a&&a.autoFocus&&r.focus(),v.current=r,"radio"===v.current.type)return void(v.current.defaultChecked=(null==a?void 0:a.initialValue)===r.value);if("checkbox"===v.current.type)return void(v.current.defaultChecked=!(null==a||!a.initialValue));v.current.defaultValue=String(o),e&&null!=a&&a.validateOnMount&&O(e)}},onChange:(u=r(n().mark((function r(){return n().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!d.current){r.next=2;break}return r.abrupt("return",f());case 2:if(v.current.value!==o&&h(!0),p&&v.current.value===o&&h(!1),!e||null==a||!a.validateOnChange){r.next=7;break}return r.next=7,O(e);case 7:e&&null!=a&&a.validateOnBlur&&w(void 0);case 8:case"end":return r.stop()}}),r)}))),function(){return u.apply(this,arguments)}),onBlur:(t=r(n().mark((function r(){return n().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e||null==a||!a.validateOnBlur){r.next=3;break}return r.next=3,O(e);case 3:b(!0);case 4:case"end":return r.stop()}}),r)}))),function(){return t.apply(this,arguments)})};var t,u},dirty:p,touched:k,error:V,setError:w,clearError:function(){return w(void 0)},getValue:B,setValue:C,reset:function(){C(o),h(!1),b(!1),w(void 0)},watch:function(){return d.current=!0,B()},focus:function(){v.current.focus()}}};export{a as useField};
3
3
  //# sourceMappingURL=useField.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as l}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as n,useRef as u,useEffect as e}from"react";var r=!0,t="*",i=!1,o=function(){var o="function"==typeof(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,c=o?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1],v=n(null),d=l(v,2),a=d[0],p=d[1],f=u(null),m=u(o);m.current=o;var s=function(){var l;p(null),null===(l=m.current)||void 0===l||l.call(m,null),f.current&&(f.current.value="")};return e((function(){var l;return f.current=((l=document.createElement("input")).type="file",l.onchange=function(l){var n,u=l.target.files;p(u),null===(n=m.current)||void 0===n||n.call(m,u)},l),function(){var l;null===(l=f.current)||void 0===l||l.remove()}}),[null==c?void 0:c.multiple,null==c?void 0:c.accept,null==c?void 0:c.capture,null==c?void 0:c.reset]),{value:a,open:function(l){var n,u,e,o,v,d,a;if(f.current){f.current.multiple=null!==(n=null!==(u=null==l?void 0:l.multiple)&&void 0!==u?u:null==c?void 0:c.multiple)&&void 0!==n?n:r,f.current.accept=null!==(e=null!==(o=null==l?void 0:l.accept)&&void 0!==o?o:null==c?void 0:c.accept)&&void 0!==e?e:t;var p=null!==(v=null==l?void 0:l.capture)&&void 0!==v?v:null==c?void 0:c.capture;p&&(f.current.capture=p),(null!==(d=null!==(a=null==l?void 0:l.reset)&&void 0!==a?a:null==c?void 0:c.reset)&&void 0!==d?d:i)&&s(),f.current.click()}},reset:s}};export{o as useFileDialog};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as l}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as n,useRef as u,useEffect as e}from"react";var r=!0,t="*",i=!1,o=function(){var o="function"==typeof(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,c=o?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1],v=n(null),d=l(v,2),a=d[0],p=d[1],f=u(null),m=u(o);m.current=o;var s=function(){var l;p(null),null===(l=m.current)||void 0===l||l.call(m,null),f.current&&(f.current.value="")};return e((function(){var l;return f.current=((l=document.createElement("input")).type="file",l.onchange=function(l){var n,u=l.target.files;p(u),null===(n=m.current)||void 0===n||n.call(m,u)},l),function(){var l;null===(l=f.current)||void 0===l||l.remove()}}),[null==c?void 0:c.multiple,null==c?void 0:c.accept,null==c?void 0:c.capture,null==c?void 0:c.reset]),{value:a,open:function(l){var n,u,e,o,v,d,a;if(f.current){f.current.multiple=null!==(n=null!==(u=null==l?void 0:l.multiple)&&void 0!==u?u:null==c?void 0:c.multiple)&&void 0!==n?n:r,f.current.accept=null!==(e=null!==(o=null==l?void 0:l.accept)&&void 0!==o?o:null==c?void 0:c.accept)&&void 0!==e?e:t;var p=null!==(v=null==l?void 0:l.capture)&&void 0!==v?v:null==c?void 0:c.capture;p&&(f.current.capture=p),(null!==(d=null!==(a=null==l?void 0:l.reset)&&void 0!==a?a:null==c?void 0:c.reset)&&void 0!==d?d:i)&&s(),f.current.click()}},reset:s}};export{o as useFileDialog};
3
3
  //# sourceMappingURL=useFileDialog.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as r,useRef as t,useEffect as n}from"react";import{getElement as u}from"../../utils/helpers/getElement.js";import{isTarget as o}from"../../utils/helpers/isTarget.js";import{useRefState as i}from"../useRefState/useRefState.js";var l=function(){var l,s,f=o(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,v=null!==(s=(null!==(l=f?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0])&&void 0!==l?l:{}).initialValue)&&void 0!==s&&s,c=r(v),a=e(c,2),d=a[0],m=a[1],p=i(),g=t(null),b=function(){var e;return null===(e=g.current)||void 0===e?void 0:e.focus()},h=function(){var e;return null===(e=g.current)||void 0===e?void 0:e.blur()};return n((function(){if(f||p.state){var e=f?u(f):p.current;if(e){g.current=e;var r=function(e){var r,t;(!b||null!==(r=(t=e.target).matches)&&void 0!==r&&r.call(t,":focus-visible"))&&m(!0)},t=function(){return m(!1)};return v&&e.focus(),e.addEventListener("focus",r),e.addEventListener("blur",t),function(){e.removeEventListener("focus",r),e.removeEventListener("blur",t)}}}}),[f,p.state]),f?{focus:b,blur:h,focused:d}:{ref:p,focus:b,blur:h,focused:d}};export{l as useFocus};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as r,useRef as t,useEffect as n}from"react";import{getElement as u}from"../../utils/helpers/getElement.js";import{isTarget as o}from"../../utils/helpers/isTarget.js";import{useRefState as i}from"../useRefState/useRefState.js";var l=function(){var l,s,f=o(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,v=null!==(s=(null!==(l=f?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0])&&void 0!==l?l:{}).initialValue)&&void 0!==s&&s,c=r(v),a=e(c,2),d=a[0],m=a[1],p=i(),g=t(null),b=function(){var e;return null===(e=g.current)||void 0===e?void 0:e.focus()},h=function(){var e;return null===(e=g.current)||void 0===e?void 0:e.blur()};return n((function(){if(f||p.state){var e=f?u(f):p.current;if(e){g.current=e;var r=function(e){var r,t;(!b||null!==(r=(t=e.target).matches)&&void 0!==r&&r.call(t,":focus-visible"))&&m(!0)},t=function(){return m(!1)};return v&&e.focus(),e.addEventListener("focus",r),e.addEventListener("blur",t),function(){e.removeEventListener("focus",r),e.removeEventListener("blur",t)}}}}),[f,p.state]),f?{focus:b,blur:h,focused:d}:{ref:p,focus:b,blur:h,focused:d}};export{l as useFocus};
3
3
  //# sourceMappingURL=useFocus.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as r}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as n,useEffect as e}from"react";var a=function(){var a=n(0),o=r(a,2),t=o[0],i=o[1];return e((function(){var r,n=0,e=performance.now(),a=function(){n+=1;var o=performance.now(),t=o-e;if(t>=1e3){var m=Math.round(1e3*n/t);i(m),n=0,e=o}r=requestAnimationFrame(a)};return r=requestAnimationFrame(a),function(){cancelAnimationFrame(r)}}),[]),t};export{a as useFps};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as r}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as n,useEffect as e}from"react";var a=function(){var a=n(0),o=r(a,2),t=o[0],i=o[1];return e((function(){var r,n=0,e=performance.now(),a=function(){n+=1;var o=performance.now(),t=o-e;if(t>=1e3){var m=Math.round(1e3*n/t);i(m),n=0,e=o}r=requestAnimationFrame(a)};return r=requestAnimationFrame(a),function(){cancelAnimationFrame(r)}}),[]),t};export{a as useFps};
3
3
  //# sourceMappingURL=useFps.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as n,useEffect as l}from"react";import{getElement as r}from"../../utils/helpers/getElement.js";import{isTarget as t}from"../../utils/helpers/isTarget.js";import{useRefState as o}from"../useRefState/useRefState.js";const c=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],u=(()=>{if("undefined"==typeof document)return!1;const e=c[0],n={};for(const l of c){const r=l?.[1];if(r in document){for(const[r,t]of l.entries())n[e[r]]=t;return n}}return!1})(),s={change:u.fullscreenchange,error:u.fullscreenerror};let i={request:(e=document.documentElement,n)=>new Promise(((l,r)=>{const t=()=>{i.off("change",t),l()};i.on("change",t);const o=e[u.requestFullscreen](n);o instanceof Promise&&o.then(t).catch(r)})),exit:()=>new Promise(((e,n)=>{if(!i.isFullscreen)return void e();const l=()=>{i.off("change",l),e()};i.on("change",l);const r=document[u.exitFullscreen]();r instanceof Promise&&r.then(l).catch(n)})),toggle:(e,n)=>i.isFullscreen?i.exit():i.request(e,n),onchange(e){i.on("change",e)},onerror(e){i.on("error",e)},on(e,n){const l=s[e];l&&document.addEventListener(l,n,!1)},off(e,n){const l=s[e];l&&document.removeEventListener(l,n,!1)},raw:u};Object.defineProperties(i,{isFullscreen:{get:()=>Boolean(document[u.fullscreenElement])},element:{enumerable:!0,get:()=>document[u.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>Boolean(document[u.fullscreenEnabled])}}),u||(i={isEnabled:!1});var a=i,f=function(){var c,u=t(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,s=u?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],i=n(null!==(c=null==s?void 0:s.initialValue)&&void 0!==c&&c),f=e(i,2),m=f[0],d=f[1],g=o(),b=function(){if(a.isEnabled){var e,n;if(a.isFullscreen)null==s||null===(e=s.onEnter)||void 0===e||e.call(s);else a.off("change",b),null==s||null===(n=s.onExit)||void 0===n||n.call(s);d(a.isFullscreen)}},h=function(){var e=u?r(u):g.current;if(e&&a.isEnabled)try{a.request(e),a.on("change",b)}catch(e){console.error(e)}},E=function(){a.isEnabled&&a.exit()},F=function(){if(m)return E();h()};return l((function(){return function(){a.isEnabled&&a.off("change",b)}}),[]),u?{enter:h,exit:E,toggle:F,value:m}:{ref:g,enter:h,exit:E,toggle:F,value:m}};export{f as useFullscreen};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as n,useEffect as l}from"react";import{getElement as r}from"../../utils/helpers/getElement.js";import{isTarget as t}from"../../utils/helpers/isTarget.js";import{useRefState as o}from"../useRefState/useRefState.js";const c=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],u=(()=>{if("undefined"==typeof document)return!1;const e=c[0],n={};for(const l of c){const r=l?.[1];if(r in document){for(const[r,t]of l.entries())n[e[r]]=t;return n}}return!1})(),s={change:u.fullscreenchange,error:u.fullscreenerror};let i={request:(e=document.documentElement,n)=>new Promise(((l,r)=>{const t=()=>{i.off("change",t),l()};i.on("change",t);const o=e[u.requestFullscreen](n);o instanceof Promise&&o.then(t).catch(r)})),exit:()=>new Promise(((e,n)=>{if(!i.isFullscreen)return void e();const l=()=>{i.off("change",l),e()};i.on("change",l);const r=document[u.exitFullscreen]();r instanceof Promise&&r.then(l).catch(n)})),toggle:(e,n)=>i.isFullscreen?i.exit():i.request(e,n),onchange(e){i.on("change",e)},onerror(e){i.on("error",e)},on(e,n){const l=s[e];l&&document.addEventListener(l,n,!1)},off(e,n){const l=s[e];l&&document.removeEventListener(l,n,!1)},raw:u};Object.defineProperties(i,{isFullscreen:{get:()=>Boolean(document[u.fullscreenElement])},element:{enumerable:!0,get:()=>document[u.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>Boolean(document[u.fullscreenEnabled])}}),u||(i={isEnabled:!1});var a=i,f=function(){var c,u=t(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,s=u?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],i=n(null!==(c=null==s?void 0:s.initialValue)&&void 0!==c&&c),f=e(i,2),m=f[0],d=f[1],g=o(),b=function(){if(a.isEnabled){var e,n;if(a.isFullscreen)null==s||null===(e=s.onEnter)||void 0===e||e.call(s);else a.off("change",b),null==s||null===(n=s.onExit)||void 0===n||n.call(s);d(a.isFullscreen)}},h=function(){var e=u?r(u):g.current;if(e&&a.isEnabled)try{a.request(e),a.on("change",b)}catch(e){console.error(e)}},E=function(){a.isEnabled&&a.exit()},F=function(){if(m)return E();h()};return l((function(){return function(){a.isEnabled&&a.off("change",b)}}),[]),u?{enter:h,exit:E,toggle:F,value:m}:{ref:g,enter:h,exit:E,toggle:F,value:m}};export{f as useFullscreen};
3
3
  //# sourceMappingURL=useFullscreen.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as t,c as e,g as n,h as a,a as o}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as r,useEffect as u}from"react";import{useRaf as i}from"../useRaf/useRaf.js";var s=function(){var s="undefined"!=typeof navigator&&"getGamepads"in navigator,c=r({}),d=t(c,2),p=d[0],b=d[1],v=function(t){var n=[],a="vibrationActuator"in t?t.vibrationActuator:null;return a&&n.push(a),t.hapticActuators&&n.push.apply(n,o(t.hapticActuators)),e(e({},t),{},{hapticActuators:n})},f=i((function(){var t,e,n=a(null!==(t=navigator.getGamepads())&&void 0!==t?t:[]);try{for(n.s();!(e=n.n()).done;){var o=e.value;o&&p[o.index]&&(p[o.index]=v(o))}}catch(t){n.e(t)}finally{n.f()}}),{enabled:!!Object.keys(p).length}).active;return u((function(){if(s){var t=navigator.getGamepads();b(t.reduce((function(t,a){return e(e({},t),a&&n({},a.index,v(a)))}),{}))}}),[]),u((function(){var t=function(t){var a=t.gamepad;b(e(e({},p),{},n({},a.index,v(a))))},a=function(t){var n=t.gamepad,a=e({},p);delete a[n.index],b(a)};return document.addEventListener("gamepadconnected",t),document.addEventListener("gamepaddisconnected",a),function(){document.removeEventListener("gamepadconnected",t),document.removeEventListener("gamepaddisconnected",a)}}),[]),{active:f,supported:s,gamepads:Object.values(p)}},c=function(t){return{buttons:{a:t.buttons[0],b:t.buttons[1],x:t.buttons[2],y:t.buttons[3]},bumper:{left:t.buttons[4],right:t.buttons[5]},triggers:{left:t.buttons[6],right:t.buttons[7]},stick:{left:{horizontal:t.axes[0],vertical:t.axes[1],button:t.buttons[10]},right:{horizontal:t.axes[2],vertical:t.axes[3],button:t.buttons[11]}},dpad:{up:t.buttons[12],down:t.buttons[13],left:t.buttons[14],right:t.buttons[15]},back:t.buttons[8],start:t.buttons[9]}};export{c as mapGamepadToXbox360Controller,s as useGamepad};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as t,c as e,g as n,h as a,a as o}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as r,useEffect as u}from"react";import{useRaf as i}from"../useRaf/useRaf.js";var s=function(){var s="undefined"!=typeof navigator&&"getGamepads"in navigator,c=r({}),d=t(c,2),p=d[0],b=d[1],v=function(t){var n=[],a="vibrationActuator"in t?t.vibrationActuator:null;return a&&n.push(a),t.hapticActuators&&n.push.apply(n,o(t.hapticActuators)),e(e({},t),{},{hapticActuators:n})},f=i((function(){var t,e,n=a(null!==(t=navigator.getGamepads())&&void 0!==t?t:[]);try{for(n.s();!(e=n.n()).done;){var o=e.value;o&&p[o.index]&&(p[o.index]=v(o))}}catch(t){n.e(t)}finally{n.f()}}),{enabled:!!Object.keys(p).length}).active;return u((function(){if(s){var t=navigator.getGamepads();b(t.reduce((function(t,a){return e(e({},t),a&&n({},a.index,v(a)))}),{}))}}),[]),u((function(){var t=function(t){var a=t.gamepad;b(e(e({},p),{},n({},a.index,v(a))))},a=function(t){var n=t.gamepad,a=e({},p);delete a[n.index],b(a)};return document.addEventListener("gamepadconnected",t),document.addEventListener("gamepaddisconnected",a),function(){document.removeEventListener("gamepadconnected",t),document.removeEventListener("gamepaddisconnected",a)}}),[]),{active:f,supported:s,gamepads:Object.values(p)}},c=function(t){return{buttons:{a:t.buttons[0],b:t.buttons[1],x:t.buttons[2],y:t.buttons[3]},bumper:{left:t.buttons[4],right:t.buttons[5]},triggers:{left:t.buttons[6],right:t.buttons[7]},stick:{left:{horizontal:t.axes[0],vertical:t.axes[1],button:t.buttons[10]},right:{horizontal:t.axes[2],vertical:t.axes[3],button:t.buttons[11]}},dpad:{up:t.buttons[12],down:t.buttons[13],left:t.buttons[14],right:t.buttons[15]},back:t.buttons[8],start:t.buttons[9]}};export{c as mapGamepadToXbox360Controller,s as useGamepad};
3
3
  //# sourceMappingURL=useGamepad.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as t,c as a}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as e,useEffect as i}from"react";var o=function(o){var l=e({loading:!0,error:null,timestamp:Date.now(),accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null}),n=t(l,2),u=n[0],r=n[1];return i((function(){var t=function(t){var e=t.coords,i=t.timestamp;r(a(a({},u),{},{loading:!1,timestamp:i,latitude:e.latitude,longitude:e.longitude,altitude:e.altitude,accuracy:e.accuracy,altitudeAccuracy:e.altitudeAccuracy,heading:e.heading,speed:e.speed}))},e=function(t){r(a(a({},u),{},{loading:!1,error:t}))};navigator.geolocation.getCurrentPosition(t,e,o);var i=navigator.geolocation.watchPosition(t,e,o);return function(){navigator.geolocation.clearWatch(i)}}),[null==o?void 0:o.enableHighAccuracy,null==o?void 0:o.maximumAge,null==o?void 0:o.timeout]),u};export{o as useGeolocation};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as t,c as a}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as e,useEffect as i}from"react";var o=function(o){var l=e({loading:!0,error:null,timestamp:Date.now(),accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null}),n=t(l,2),u=n[0],r=n[1];return i((function(){var t=function(t){var e=t.coords,i=t.timestamp;r(a(a({},u),{},{loading:!1,timestamp:i,latitude:e.latitude,longitude:e.longitude,altitude:e.altitude,accuracy:e.accuracy,altitudeAccuracy:e.altitudeAccuracy,heading:e.heading,speed:e.speed}))},e=function(t){r(a(a({},u),{},{loading:!1,error:t}))};navigator.geolocation.getCurrentPosition(t,e,o);var i=navigator.geolocation.watchPosition(t,e,o);return function(){navigator.geolocation.clearWatch(i)}}),[null==o?void 0:o.enableHighAccuracy,null==o?void 0:o.maximumAge,null==o?void 0:o.timeout]),u};export{o as useGeolocation};
3
3
  //# sourceMappingURL=useGeolocation.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as n}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as o,useEffect as e}from"react";var r=function(){return decodeURIComponent(window.location.hash.replace("#",""))},t=function(){var t=o(window?r():""),i=n(t,2),a=i[0],c=i[1];return e((function(){var n=function(){return c(r())};return window.addEventListener("hashchange",n),function(){window.removeEventListener("hashchange",n)}})),[a,function(n){window.location.hash=n,c(n)}]};export{t as useHash};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as n}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as o,useEffect as e}from"react";var r=function(){return decodeURIComponent(window.location.hash.replace("#",""))},t=function(){var t=o(window?r():""),i=n(t,2),a=i[0],c=i[1];return e((function(){var n=function(){return c(r())};return window.addEventListener("hashchange",n),function(){window.removeEventListener("hashchange",n)}})),[a,function(n){window.location.hash=n,c(n)}]};export{t as useHash};
3
3
  //# sourceMappingURL=useHash.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{b as e,a as t}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useRef as n,useEffect as r}from"react";import{getElement as o}from"../../utils/helpers/getElement.js";import{useRefState as i}from"../useRefState/useRefState.js";var u=function(e,t){return e.toLowerCase().split(/[+_,\-]/g).map((function(e){return e.trim()})).every((function(e){return t.find((function(t){return e===t.code.toLocaleLowerCase()||e===t.key.toLocaleLowerCase()||e===t.alias.toLocaleLowerCase()}))}))},l=function(){var l,c=(arguments.length<=0?void 0:arguments[0])instanceof Element||(arguments.length<=0?void 0:arguments[0])&&"object"===e(arguments.length<=0?void 0:arguments[0])&&"current"in(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,a=c?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],d=c?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],v=c?arguments.length<=3?void 0:arguments[3]:arguments.length<=2?void 0:arguments[2],s=i(window),f=n([]),m=n(d);m.current=d;var p=null===(l=null==v?void 0:v.enabled)||void 0===l||l;if(r((function(){if(f.current=[],c||s.state||p){var e=c?o(c):s.current;if(e){var n=function(e){var n,r;if(p&&!f.current.some((function(t){return t.code===e.code}))){var o=null!==(n=null==v||null===(r=v.alias)||void 0===r?void 0:r[e.key])&&void 0!==n?n:e.code,i=[].concat(t(f.current),[{key:e.key,code:e.code,alias:o}]);f.current=i,a.split(",").map((function(e){return e.trim()})).some((function(e){return u(e,i)}))&&(e.preventDefault(),m.current(e))}},r=function(e){p&&(f.current=f.current.filter((function(t){return t.code!==e.code})))};return e.addEventListener("keydown",n),e.addEventListener("keyup",r),function(){e.removeEventListener("keydown",n),e.removeEventListener("keyup",r)}}}}),[c,s.state,p,a]),!c)return s};export{u as isHotkeyMatch,l as useHotkeys};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{b as e,a as t}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useRef as n,useEffect as r}from"react";import{getElement as o}from"../../utils/helpers/getElement.js";import{useRefState as i}from"../useRefState/useRefState.js";var u=function(e,t){return e.toLowerCase().split(/[+_,\-]/g).map((function(e){return e.trim()})).every((function(e){return t.find((function(t){return e===t.code.toLocaleLowerCase()||e===t.key.toLocaleLowerCase()||e===t.alias.toLocaleLowerCase()}))}))},l=function(){var l,c=(arguments.length<=0?void 0:arguments[0])instanceof Element||(arguments.length<=0?void 0:arguments[0])&&"object"===e(arguments.length<=0?void 0:arguments[0])&&"current"in(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,a=c?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],d=c?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],v=c?arguments.length<=3?void 0:arguments[3]:arguments.length<=2?void 0:arguments[2],s=i(window),f=n([]),m=n(d);m.current=d;var p=null===(l=null==v?void 0:v.enabled)||void 0===l||l;if(r((function(){if(f.current=[],c||s.state||p){var e=c?o(c):s.current;if(e){var n=function(e){var n,r;if(p&&!f.current.some((function(t){return t.code===e.code}))){var o=null!==(n=null==v||null===(r=v.alias)||void 0===r?void 0:r[e.key])&&void 0!==n?n:e.code,i=[].concat(t(f.current),[{key:e.key,code:e.code,alias:o}]);f.current=i,a.split(",").map((function(e){return e.trim()})).some((function(e){return u(e,i)}))&&(e.preventDefault(),m.current(e))}},r=function(e){p&&(f.current=f.current.filter((function(t){return t.code!==e.code})))};return e.addEventListener("keydown",n),e.addEventListener("keyup",r),function(){e.removeEventListener("keydown",n),e.removeEventListener("keyup",r)}}}}),[c,s.state,p,a]),!c)return s};export{u as isHotkeyMatch,l as useHotkeys};
3
3
  //# sourceMappingURL=useHotkeys.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{b as e,_ as t}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as n,useRef as r,useEffect as o}from"react";import{getElement as i}from"../../utils/helpers/getElement.js";import{isTarget as l}from"../../utils/helpers/isTarget.js";import{useRefState as v}from"../useRefState/useRefState.js";var u=function(){var u=l(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,s=u?"object"===e(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:{onEntry:arguments.length<=1?void 0:arguments[1]}:"object"===e(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:{onEntry:arguments.length<=0?void 0:arguments[0]},a=n(!1),d=t(a,2),m=d[0],c=d[1],f=v(),g=r(s);return g.current=s,o((function(){if(u||f.state){var e=u?i(u):f.current;if(e){var t=function(e){var t,n;null===(t=g.current)||void 0===t||null===(n=t.onEntry)||void 0===n||n.call(t,e),c(!0)},n=function(e){var t,n;null===(t=g.current)||void 0===t||null===(n=t.onLeave)||void 0===n||n.call(t,e),c(!1)};return e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",n),function(){e.removeEventListener("mouseenter",t),e.removeEventListener("mouseleave",n)}}}}),[u,f.state]),u?m:[f,m]};export{u as useHover};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{b as e,_ as t}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as n,useRef as r,useEffect as o}from"react";import{getElement as i}from"../../utils/helpers/getElement.js";import{isTarget as l}from"../../utils/helpers/isTarget.js";import{useRefState as v}from"../useRefState/useRefState.js";var u=function(){var u=l(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,s=u?"object"===e(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:{onEntry:arguments.length<=1?void 0:arguments[1]}:"object"===e(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:{onEntry:arguments.length<=0?void 0:arguments[0]},a=n(!1),d=t(a,2),m=d[0],c=d[1],f=v(),g=r(s);return g.current=s,o((function(){if(u||f.state){var e=u?i(u):f.current;if(e){var t=function(e){var t,n;null===(t=g.current)||void 0===t||null===(n=t.onEntry)||void 0===n||n.call(t,e),c(!0)},n=function(e){var t,n;null===(t=g.current)||void 0===t||null===(n=t.onLeave)||void 0===n||n.call(t,e),c(!1)};return e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",n),function(){e.removeEventListener("mouseenter",t),e.removeEventListener("mouseleave",n)}}}}),[u,f.state]),u?m:[f,m]};export{u as useHover};
3
3
  //# sourceMappingURL=useHover.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as t,useEffect as n}from"react";import{throttle as i}from"../../utils/helpers/throttle.js";var o=["mousemove","mousedown","keydown","touchstart","wheel","resize"],r=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6e4,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=u.initialValue,c=void 0!==a&&a,d=u.events,s=void 0===d?o:d,l=t(c),m=e(l,2),v=m[0],f=m[1],h=t(Date.now()),w=e(h,2),p=w[0],E=w[1];return n((function(){var e,t=function(){return f(!0)},n=i((function(){f(!1),E(Date.now()),clearTimeout(e),e=setTimeout(t,r)}),500),o=function(){document.hidden||n()};return e=setTimeout(t,r),s.forEach((function(e){return window.addEventListener(e,n)})),document.addEventListener("visibilitychange",o),function(){s.forEach((function(e){return window.addEventListener(e,n)})),document.removeEventListener("visibilitychange",o),clearTimeout(e)}}),[r,s]),{idle:v,lastActive:p}};export{r as useIdle};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as t,useEffect as n}from"react";import{throttle as i}from"../../utils/helpers/throttle.js";var o=["mousemove","mousedown","keydown","touchstart","wheel","resize"],r=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6e4,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=u.initialValue,c=void 0!==a&&a,d=u.events,s=void 0===d?o:d,l=t(c),m=e(l,2),v=m[0],f=m[1],h=t(Date.now()),w=e(h,2),p=w[0],E=w[1];return n((function(){var e,t=function(){return f(!0)},n=i((function(){f(!1),E(Date.now()),clearTimeout(e),e=setTimeout(t,r)}),500),o=function(){document.hidden||n()};return e=setTimeout(t,r),s.forEach((function(e){return window.addEventListener(e,n)})),document.addEventListener("visibilitychange",o),function(){s.forEach((function(e){return window.addEventListener(e,n)})),document.removeEventListener("visibilitychange",o),clearTimeout(e)}}),[r,s]),{idle:v,lastActive:p}};export{r as useIdle};
3
3
  //# sourceMappingURL=useIdle.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{c as r,a as e,d as s,e as t}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useQuery as o}from"../useQuery/useQuery.js";import"react";import"../../utils/helpers/getRetry.js";import"../useDidUpdate/useDidUpdate.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import"../useMount/useMount.js";var n=function(){var r=s(t().mark((function r(e){var s,o=arguments;return t().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return s=o.length>1&&void 0!==o[1]?o[1]:{},r.abrupt("return",new Promise((function(r,t){var o=new Image,n=s.srcset,i=s.sizes,u=s.class,a=s.loading,c=s.crossorigin,p=s.referrerPolicy;o.src=e,n&&(o.srcset=n),i&&(o.sizes=i),u&&(o.className=u),a&&(o.loading=a),c&&(o.crossOrigin=c),p&&(o.referrerPolicy=p),o.onload=function(){return r(o)},o.onerror=t})));case 2:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),i=function(s,t){var i,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o((function(){return n(s,t)}),r({keys:[s].concat(e(null!==(i=u.keys)&&void 0!==i?i:[]))},u))};export{i as useImage};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{c as r,a as e,d as s,e as t}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useQuery as o}from"../useQuery/useQuery.js";import"react";import"../../utils/helpers/getRetry.js";import"../useDidUpdate/useDidUpdate.js";import"../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";import"../useMount/useMount.js";var n=function(){var r=s(t().mark((function r(e){var s,o=arguments;return t().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return s=o.length>1&&void 0!==o[1]?o[1]:{},r.abrupt("return",new Promise((function(r,t){var o=new Image,n=s.srcset,i=s.sizes,u=s.class,a=s.loading,c=s.crossorigin,p=s.referrerPolicy;o.src=e,n&&(o.srcset=n),i&&(o.sizes=i),u&&(o.className=u),a&&(o.loading=a),c&&(o.crossOrigin=c),p&&(o.referrerPolicy=p),o.onload=function(){return r(o)},o.onerror=t})));case 2:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),i=function(s,t){var i,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o((function(){return n(s,t)}),r({keys:[s].concat(e(null!==(i=u.keys)&&void 0!==i?i:[]))},u))};export{i as useImage};
3
3
  //# sourceMappingURL=useImage.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as t,d as e,e as r}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as n,useRef as o,useEffect as i}from"react";import{getElement as l}from"../../utils/helpers/getElement.js";import{isTarget as s}from"../../utils/helpers/isTarget.js";import{useEvent as u}from"../useEvent/useEvent.js";import{useRefState as a}from"../useRefState/useRefState.js";var c=function(){var c,f,v=s(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,d=v?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],p=v?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],m=null!==(c=null==p?void 0:p.direction)&&void 0!==c?c:"bottom",h=null!==(f=null==p?void 0:p.distance)&&void 0!==f?f:10,g=n(!1),b=t(g,2),j=b[0],x=b[1],E=a(),k=o(d);k.current=d;var H=u(function(){var t=e(r().mark((function t(e){var n,o,i,l,s,u,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!j){t.next=2;break}return t.abrupt("return");case 2:if(n=e.target,o=n.clientHeight,i=n.scrollHeight,l=n.scrollTop,s=n.clientWidth,u=n.scrollWidth,a=n.scrollLeft,!({bottom:i-(l+o),top:l,right:u-(a+s),left:a}[m]<=h)){t.next=11;break}return x(!0),t.next=10,k.current(e);case 10:x(!1);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());return i((function(){if(v||E.state){var t=v?l(v):E.current;if(t)return t.addEventListener("scroll",H),function(){t.removeEventListener("scroll",H)}}}),[v,E.state,m,h]),v?j:{ref:E,loading:j}};export{c as useInfiniteScroll};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as t,d as e,e as r}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as n,useRef as o,useEffect as i}from"react";import{getElement as l}from"../../utils/helpers/getElement.js";import{isTarget as s}from"../../utils/helpers/isTarget.js";import{useEvent as u}from"../useEvent/useEvent.js";import{useRefState as a}from"../useRefState/useRefState.js";var c=function(){var c,f,v=s(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,d=v?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],p=v?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1],m=null!==(c=null==p?void 0:p.direction)&&void 0!==c?c:"bottom",h=null!==(f=null==p?void 0:p.distance)&&void 0!==f?f:10,g=n(!1),b=t(g,2),j=b[0],x=b[1],E=a(),k=o(d);k.current=d;var H=u(function(){var t=e(r().mark((function t(e){var n,o,i,l,s,u,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!j){t.next=2;break}return t.abrupt("return");case 2:if(n=e.target,o=n.clientHeight,i=n.scrollHeight,l=n.scrollTop,s=n.clientWidth,u=n.scrollWidth,a=n.scrollLeft,!({bottom:i-(l+o),top:l,right:u-(a+s),left:a}[m]<=h)){t.next=11;break}return x(!0),t.next=10,k.current(e);case 10:x(!1);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());return i((function(){if(v||E.state){var t=v?l(v):E.current;if(t)return t.addEventListener("scroll",H),function(){t.removeEventListener("scroll",H)}}}),[v,E.state,m,h]),v?j:{ref:E,loading:j}};export{c as useInfiniteScroll};
3
3
  //# sourceMappingURL=useInfiniteScroll.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as e,c as n}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as t,useRef as r,useEffect as o}from"react";import{getElement as l}from"../../utils/helpers/getElement.js";import{isTarget as i}from"../../utils/helpers/isTarget.js";import{useRefState as u}from"../useRefState/useRefState.js";var s=function(){var s,v=i(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,a=v?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],d=null===(s=null==a?void 0:a.enabled)||void 0===s||s,c=t(),f=e(c,2),g=f[0],m=f[1],h=u(),p=r(null==a?void 0:a.onChange);return p.current=null==a?void 0:a.onChange,o((function(){if(d||v||h.state){var t=v?l(v):h.current;if(t){var r=new IntersectionObserver((function(n){var t,r=e(n,1)[0];m(r),null===(t=p.current)||void 0===t||t.call(p,r)}),n(n({},a),{},{root:null!=a&&a.root?l(null==a?void 0:a.root):document}));return r.observe(t),function(){r.disconnect()}}}}),[v,h.state,null==a?void 0:a.rootMargin,null==a?void 0:a.threshold,null==a?void 0:a.root,d]),v?{entry:g,inView:!(null==g||!g.isIntersecting)}:{ref:h,entry:g,inView:!(null==g||!g.isIntersecting)}};export{s as useIntersectionObserver};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as e,c as n}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as t,useRef as r,useEffect as o}from"react";import{getElement as l}from"../../utils/helpers/getElement.js";import{isTarget as i}from"../../utils/helpers/isTarget.js";import{useRefState as u}from"../useRefState/useRefState.js";var s=function(){var s,v=i(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:void 0,a=v?arguments.length<=1?void 0:arguments[1]:arguments.length<=0?void 0:arguments[0],d=null===(s=null==a?void 0:a.enabled)||void 0===s||s,c=t(),f=e(c,2),g=f[0],m=f[1],h=u(),p=r(null==a?void 0:a.onChange);return p.current=null==a?void 0:a.onChange,o((function(){if(d||v||h.state){var t=v?l(v):h.current;if(t){var r=new IntersectionObserver((function(n){var t,r=e(n,1)[0];m(r),null===(t=p.current)||void 0===t||t.call(p,r)}),n(n({},a),{},{root:null!=a&&a.root?l(null==a?void 0:a.root):document}));return r.observe(t),function(){r.disconnect()}}}}),[v,h.state,null==a?void 0:a.rootMargin,null==a?void 0:a.threshold,null==a?void 0:a.root,d]),v?{entry:g,inView:!(null==g||!g.isIntersecting)}:{ref:h,entry:g,inView:!(null==g||!g.isIntersecting)}};export{s as useIntersectionObserver};
3
3
  //# sourceMappingURL=useIntersectionObserver.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{b as r,_ as n}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as e,useRef as t,useEffect as u}from"react";var l=function(){for(var l,o,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];var f=a[0],v=null!==(l="number"==typeof a[1]?a[1]:a[1].interval)&&void 0!==l?l:1e3,m="object"===r(a[1])?a[1]:a[2],p=null===(o=null==m?void 0:m.immediately)||void 0===o||o,s=e(null==p||p),b=n(s,2),d=b[0],g=b[1],y=t(),j=t(f);j.current=f,u((function(){if(d)return y.current=setInterval((function(){return j.current()}),v),function(){clearInterval(y.current)}}),[d,v]);return{active:d,pause:function(){return g(!1)},resume:function(){v<=0||g(!0)},toggle:function(){return g(!d)}}};export{l as useInterval};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{b as r,_ as n}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as e,useRef as t,useEffect as u}from"react";var l=function(){for(var l,o,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];var f=a[0],v=null!==(l="number"==typeof a[1]?a[1]:a[1].interval)&&void 0!==l?l:1e3,m="object"===r(a[1])?a[1]:a[2],p=null===(o=null==m?void 0:m.immediately)||void 0===o||o,s=e(null==p||p),b=n(s,2),d=b[0],g=b[1],y=t(),j=t(f);j.current=f,u((function(){if(d)return y.current=setInterval((function(){return j.current()}),v),function(){clearInterval(y.current)}}),[d,v]);return{active:d,pause:function(){return g(!1)},resume:function(){v<=0||g(!0)},toggle:function(){return g(!d)}}};export{l as useInterval};
3
3
  //# sourceMappingURL=useInterval.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
2
  import{useRef as r}from"react";var t=function(){var t=r(!0);return!0===t.current?(t.current=!1,!0):t.current};export{t as useIsFirstRender};
3
3
  //# sourceMappingURL=useIsFirstRender.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
2
  import{useLayoutEffect as e,useEffect as o}from"react";var r="undefined"!=typeof window?e:o;export{r as useIsomorphicLayoutEffect};
3
3
  //# sourceMappingURL=useIsomorphicLayoutEffect.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{_ as e}from"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";import{useState as r}from"react";import{useEventListener as t}from"../useEventListener/useEventListener.js";import"../../utils/helpers/getElement.js";import"../useEvent/useEvent.js";import"../useRefState/useRefState.js";var n=function(n,i){var o,s,u=r(!1),l=e(u,2),a=l[0],p=l[1];return t(null!==(o=null==i?void 0:i.target)&&void 0!==o?o:window,"keydown",(function(e){(Array.isArray(n)?n.includes(e.key):e.key===n)&&p(!0)})),t(null!==(s=null==i?void 0:i.target)&&void 0!==s?s:window,"keyup",(function(e){(Array.isArray(n)?n.includes(e.key):e.key===n)&&p(!1)})),a};export{n as useKeyPress};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{_ as e}from"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";import{useState as r}from"react";import{useEventListener as t}from"../useEventListener/useEventListener.js";import"../../utils/helpers/getElement.js";import"../useEvent/useEvent.js";import"../useRefState/useRefState.js";var n=function(n,i){var o,s,u=r(!1),l=e(u,2),a=l[0],p=l[1];return t(null!==(o=null==i?void 0:i.target)&&void 0!==o?o:window,"keydown",(function(e){(Array.isArray(n)?n.includes(e.key):e.key===n)&&p(!0)})),t(null!==(s=null==i?void 0:i.target)&&void 0!==s?s:window,"keyup",(function(e){(Array.isArray(n)?n.includes(e.key):e.key===n)&&p(!1)})),a};export{n as useKeyPress};
3
3
  //# sourceMappingURL=useKeyPress.js.map
@@ -1,3 +1,3 @@
1
- /* @license @siberiacancode/reactuse v0.0.102 */
2
- import{useEventListener as e}from"../useEventListener/useEventListener.js";import"react";import"../../utils/helpers/getElement.js";import"../useEvent/useEvent.js";import"../useRefState/useRefState.js";import"../../_rollupPluginBabelHelpers-Bd7qYWzu.js";var t=function(){var t=Array.isArray(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:[arguments.length<=0?void 0:arguments[0]],n=(arguments.length<=1?void 0:arguments[1])instanceof Function?null:arguments.length<=1?void 0:arguments[1],i=n?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1];e(null!=n?n:window,"keydown",(function(e){t.includes(e.key)&&i(e)}),n?arguments.length<=3?void 0:arguments[3]:arguments.length<=2?void 0:arguments[2])};export{t as useKeyPressEvent};
1
+ /* @license @siberiacancode/reactuse v0.0.103 */
2
+ import{useEventListener as e}from"../useEventListener/useEventListener.js";import"react";import"../../utils/helpers/getElement.js";import"../useEvent/useEvent.js";import"../useRefState/useRefState.js";import"../../_rollupPluginBabelHelpers-Bd20Ji7y.js";var t=function(){var t=Array.isArray(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:[arguments.length<=0?void 0:arguments[0]],n=(arguments.length<=1?void 0:arguments[1])instanceof Function?null:arguments.length<=1?void 0:arguments[1],i=n?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1];e(null!=n?n:window,"keydown",(function(e){t.includes(e.key)&&i(e)}),n?arguments.length<=3?void 0:arguments[3]:arguments.length<=2?void 0:arguments[2])};export{t as useKeyPressEvent};
3
3
  //# sourceMappingURL=useKeyPressEvent.js.map