{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/LiIaxQm82z9FgQEg6lsV/0Xgbp2tnLcczyON3wdQK/Guaq5zbHP.js", "ssg:https://ga.jspm.io/npm:lodash.debounce@4.0.8/index.js", "ssg:https://ga.jspm.io/npm:performance-now@2.1.0/lib/performance-now.js", "ssg:https://ga.jspm.io/npm:raf@3.4.1/index.js", "ssg:https://ga.jspm.io/npm:rooks@7.4.4/dist/esm/index.js", "ssg:https://framerusercontent.com/modules/Az7WuXVTCVIHTNTrce7t/DJabNrqRxrNiZXLSGoD0/GenericWaitlistEmailInputForm.js", "ssg:https://framerusercontent.com/modules/nerZ8qwxeZIqRT4enw7t/RxEOfF29rsROgASO0bqb/DesktopWaitlistEmailInputForm.js"],
  "sourcesContent": ["// Generated by Framer (6ae8f70)\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { addFonts, cx, SVG, useVariantState, withCSS } from \"framer\";\nimport { LayoutGroup, motion } from \"framer-motion\";\nimport * as React from \"react\";\nconst cycleOrder = [\"EOegd2kDo\"];\nconst variantClassNames = {\n  EOegd2kDo: \"framer-v-pf89iz\"\n};\nfunction addPropertyOverrides(overrides, ...variants) {\n  const nextOverrides = {};\n  variants === null || variants === void 0 ? void 0 : variants.forEach(variant => variant && Object.assign(nextOverrides, overrides[variant]));\n  return nextOverrides;\n}\nconst humanReadableVariantMap = {};\nconst transitions = {\n  default: {\n    damping: 60,\n    delay: 0,\n    duration: .3,\n    ease: [.44, 0, .56, 1],\n    mass: 1,\n    stiffness: 500,\n    type: \"spring\"\n  }\n};\nconst BASE62 = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\nfunction useRandomID() {\n  const ref = React.useRef(null);\n  if (ref.current === null) {\n    ref.current = Array(5).fill(0).map(() => BASE62[Math.floor(Math.random() * BASE62.length)]).join(\"\");\n  }\n  return ref.current;\n}\nconst Component = /*#__PURE__*/React.forwardRef(function ({\n  id,\n  style: externalStyle = {},\n  className,\n  width,\n  height,\n  layoutId,\n  variant: outerVariant = \"EOegd2kDo\",\n  ...restProps\n}, ref) {\n  const outerVariantId = humanReadableVariantMap[outerVariant];\n  const variant = outerVariantId || outerVariant;\n  const {\n    baseVariant,\n    classNames,\n    gestureVariant,\n    setGestureState,\n    setVariant,\n    transition,\n    variants\n  } = useVariantState({\n    cycleOrder,\n    defaultVariant: \"EOegd2kDo\",\n    transitions,\n    variant,\n    variantClassNames\n  });\n  const layoutDependency = variants.join(\"-\") + restProps.layoutDependency;\n  const defaultLayoutId = useRandomID();\n  const {\n    pointerEvents,\n    ...style\n  } = externalStyle;\n  return /*#__PURE__*/_jsx(LayoutGroup, {\n    id: layoutId !== null && layoutId !== void 0 ? layoutId : defaultLayoutId,\n    children: /*#__PURE__*/_jsx(motion.div, {\n      \"data-framer-generated\": true,\n      initial: variant,\n      animate: variants,\n      onHoverStart: () => setGestureState({\n        isHovered: true\n      }),\n      onHoverEnd: () => setGestureState({\n        isHovered: false\n      }),\n      onTapStart: () => setGestureState({\n        isPressed: true\n      }),\n      onTap: () => setGestureState({\n        isPressed: false\n      }),\n      onTapCancel: () => setGestureState({\n        isPressed: false\n      }),\n      className: cx(\"framer-tYv0j\", classNames),\n      style: {\n        display: \"contents\",\n        pointerEvents: pointerEvents !== null && pointerEvents !== void 0 ? pointerEvents : undefined\n      },\n      children: /*#__PURE__*/_jsx(motion.div, {\n        ...restProps,\n        className: cx(\"framer-pf89iz\", className),\n        \"data-framer-name\": \"Variant 1\",\n        layoutDependency: layoutDependency,\n        layoutId: \"EOegd2kDo\",\n        ref: ref,\n        style: {\n          ...style\n        },\n        transition: transition,\n        children: /*#__PURE__*/_jsx(SVG, {\n          className: \"framer-px3xde\",\n          \"data-framer-name\": \"icon_arrow-ciricle_right\",\n          layout: \"position\",\n          layoutDependency: layoutDependency,\n          layoutId: \"Da_IbZERd\",\n          opacity: 1,\n          radius: 0,\n          svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 28 28\"><path d=\"M 14 22.75 C 18.832 22.75 22.75 18.832 22.75 14 C 22.75 9.168 18.832 5.25 14 5.25 C 9.168 5.25 5.25 9.168 5.25 14 C 5.25 18.832 9.168 22.75 14 22.75 Z\" fill=\"transparent\" stroke-width=\"1.5\" stroke=\"rgb(239,240,241)\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-dasharray=\"\"></path><path d=\"M 14 17.5 L 17.5 14 L 14 10.5\" fill=\"transparent\" stroke-width=\"1.5\" stroke=\"rgb(239,240,241)\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-dasharray=\"\"></path><path d=\"M 10.5 14 L 17.5 14\" fill=\"transparent\" stroke-width=\"1.5\" stroke=\"rgb(239,240,241)\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-dasharray=\"\"></path></svg>',\n          svgContentId: 226231469,\n          transition: transition,\n          withExternalLayout: true\n        })\n      })\n    })\n  });\n});\nconst css = ['.framer-tYv0j [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; pointer-events: none;}', \"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\", \".framer-tYv0j * { box-sizing: border-box; }\", \".framer-tYv0j .framer-pf89iz { height: 28px; overflow: hidden; position: relative; width: 28px; }\", \".framer-tYv0j .framer-px3xde { flex: none; height: 28px; left: calc(50.00000000000002% - 28px / 2); position: absolute; top: calc(50.00000000000002% - 28px / 2); width: 28px; }\"]; /**\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               * This is a generated Framer component.\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               * @framerIntrinsicHeight 28\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               * @framerIntrinsicWidth 28\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               */\nconst FramerGuaq5zbHP = withCSS(Component, css);\nexport default FramerGuaq5zbHP;\nFramerGuaq5zbHP.displayName = \"icon_arrow-ciricle_right\";\nFramerGuaq5zbHP.defaultProps = {\n  height: 28,\n  width: 28\n};\naddFonts(FramerGuaq5zbHP, []);\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"Props\": {\n      \"type\": \"tsType\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"FramerGuaq5zbHP\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerIntrinsicHeight\": \"28\",\n        \"framerIntrinsicWidth\": \"28\",\n        \"framerContractVersion\": \"1\",\n        \"framerCanvasComponentVariantDetails\": \"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./Guaq5zbHP.map", "var e=\"undefined\"!==typeof globalThis?globalThis:\"undefined\"!==typeof self?self:global;var t={};var n=\"Expected a function\";var i=0/0;var r=\"[object Symbol]\";var o=/^\\s+|\\s+$/g;var u=/^[-+]0x[0-9a-f]+$/i;var a=/^0b[01]+$/i;var f=/^0o[0-7]+$/i;var c=parseInt;var v=\"object\"==typeof e&&e&&e.Object===Object&&e;var l=\"object\"==typeof self&&self&&self.Object===Object&&self;var d=v||l||Function(\"return this\")();var s=Object.prototype;var b=s.toString;var p=Math.max,m=Math.min;var now=function(){return d.Date.now()};function debounce(t,i,r){var o,u,a,f,c,v,l=0,d=false,s=false,b=true;if(\"function\"!=typeof t)throw new TypeError(n);i=toNumber(i)||0;if(isObject(r)){d=!!r.leading;s=\"maxWait\"in r;a=s?p(toNumber(r.maxWait)||0,i):a;b=\"trailing\"in r?!!r.trailing:b}function invokeFunc(e){var n=o,i=u;o=u=void 0;l=e;f=t.apply(i,n);return f}function leadingEdge(e){l=e;c=setTimeout(timerExpired,i);return d?invokeFunc(e):f}function remainingWait(e){var t=e-v,n=e-l,r=i-t;return s?m(r,a-n):r}function shouldInvoke(e){var t=e-v,n=e-l;return void 0===v||t>=i||t<0||s&&n>=a}function timerExpired(){var e=now();if(shouldInvoke(e))return trailingEdge(e);c=setTimeout(timerExpired,remainingWait(e))}function trailingEdge(e){c=void 0;if(b&&o)return invokeFunc(e);o=u=void 0;return f}function cancel(){void 0!==c&&clearTimeout(c);l=0;o=v=u=c=void 0}function flush(){return void 0===c?f:trailingEdge(now())}function debounced(){var t=now(),n=shouldInvoke(t);o=arguments;u=this||e;v=t;if(n){if(void 0===c)return leadingEdge(v);if(s){c=setTimeout(timerExpired,i);return invokeFunc(v)}}void 0===c&&(c=setTimeout(timerExpired,i));return f}debounced.cancel=cancel;debounced.flush=flush;return debounced}function isObject(e){var t=typeof e;return!!e&&(\"object\"==t||\"function\"==t)}function isObjectLike(e){return!!e&&\"object\"==typeof e}function isSymbol(e){return\"symbol\"==typeof e||isObjectLike(e)&&b.call(e)==r}function toNumber(e){if(\"number\"==typeof e)return e;if(isSymbol(e))return i;if(isObject(e)){var t=\"function\"==typeof e.valueOf?e.valueOf():e;e=isObject(t)?t+\"\":t}if(\"string\"!=typeof e)return 0===e?e:+e;e=e.replace(o,\"\");var n=a.test(e);return n||f.test(e)?c(e.slice(2),n?2:8):u.test(e)?i:+e}t=debounce;var g=t;export default g;\n\n//# sourceMappingURL=index.js.map", "import e from\"process\";var n={};var r=e;(function(){var e,t,o,f,i,u;if(\"undefined\"!==typeof performance&&null!==performance&&performance.now)n=function(){return performance.now()};else if(\"undefined\"!==typeof r&&null!==r&&r.hrtime){n=function(){return(e()-i)/1e6};t=r.hrtime;e=function(){var e;e=t();return 1e9*e[0]+e[1]};f=e();u=1e9*r.uptime();i=f-u}else if(Date.now){n=function(){return Date.now()-o};o=Date.now()}else{n=function(){return(new Date).getTime()-o};o=(new Date).getTime()}}).call(n);var t=n;export default t;\n\n//# sourceMappingURL=performance-now.js.map", "import e from\"performance-now\";var n=\"undefined\"!==typeof globalThis?globalThis:\"undefined\"!==typeof self?self:global;var a={};var l=e,t=\"undefined\"===typeof window?n:window,c=[\"moz\",\"webkit\"],o=\"AnimationFrame\",r=t[\"request\"+o],i=t[\"cancel\"+o]||t[\"cancelRequest\"+o];for(var f=0;!r&&f<c.length;f++){r=t[c[f]+\"Request\"+o];i=t[c[f]+\"Cancel\"+o]||t[c[f]+\"CancelRequest\"+o]}if(!r||!i){var u=0,d=0,s=[],h=1e3/60;r=function(e){if(0===s.length){var n=l(),a=Math.max(0,h-(n-u));u=a+n;setTimeout((function(){var e=s.slice(0);s.length=0;for(var n=0;n<e.length;n++)if(!e[n].cancelled)try{e[n].callback(u)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(a))}s.push({handle:++d,callback:e,cancelled:false});return d};i=function(e){for(var n=0;n<s.length;n++)s[n].handle===e&&(s[n].cancelled=true)}}a=function(e){return r.call(t,e)};a.cancel=function(){i.apply(t,arguments)};a.polyfill=function(e){e||(e=t);e.requestAnimationFrame=r;e.cancelAnimationFrame=i};var m=a;const p=a.cancel,v=a.polyfill;export default m;export{p as cancel,v as polyfill};\n\n//# sourceMappingURL=index.js.map", "import{useState as e,useCallback as n,useMemo as t,useEffect as o,useLayoutEffect as r,useRef as s,useReducer as u}from\"react\";import c from\"lodash.debounce\";import i from\"raf\";\n/**\n * useArrayState\n * @description Array state manager hook for React\n * @param {Array<T>} initialState Initial state of the array\n * @returns {UseArrayStateReturnValue<T>} Array state manager hook for React\n * @see {@link https://rooks.vercel.app/docs/useArrayState}\n *\n * @example\n *\n * const [array, controls] = useArrayState([1, 2, 3]);\n *\n * controls.push(4); // [1, 2, 3, 4]\n * controls.pop(); // [1, 2, 3]\n * controls.unshift(0); // [0, 1, 2, 3]\n * controls.shift(); // [1, 2, 3]\n * controls.reverse(); // [3, 2, 1]\n * controls.concat([4, 5, 6]); // [3, 2, 1, 4, 5, 6]\n * controls.fill(0); // [0, 0, 0, 0, 0, 0]\n * controls.updateItemAtIndex(0, 1); // [1, 0, 0, 0, 0, 0]\n * controls.clear(); // []\n * controls.setArray([1, 2, 3]); // [1, 2, 3]\n * controls.splice(1, 1); // [1, 3]\n * controls.removeItemAtIndex(1); // [1]\n * controls.replaceItemAtIndex(0, 2); // [2]\n * controls.insertItemAtIndex(0, 1); // [1, 2]\n * controls.sort((a, b) => a - b); // [1, 2]\n *\n */function useArrayState(o=[]){const[r,s]=e(o);const u=n((e=>{s([...r,e])}),[r]);const c=n((()=>{s(r.slice(0,r.length-1))}),[r]);const i=n((()=>{s([])}),[]);const l=n((e=>{s([e,...r])}),[r]);const a=n((()=>{s(r.slice(1))}),[r]);const d=n((()=>{s([...r].reverse())}),[r]);const f=n((e=>{s([...r,...e])}),[r]);const g=n(((e,n,t)=>{s([...r].fill(e,n,t))}),[r]);const v=n(((e,n)=>{s((t=>{const o=[...t];o[e]=n;return o}))}),[s]);const w=n(((...e)=>{s((n=>{const t=[...n];t.splice(...e);return t}))}),[s]);const m=n((e=>{s((n=>{const t=[...n];t.splice(e,1);return t}))}),[s]);const h=n(((e,n)=>{s((t=>{const o=[...t];o.splice(e,1,n);return o}))}),[s]);const p=n(((e,n)=>{s((t=>{const o=[...t];o.splice(e,0,n);return o}))}),[s]);const E=n((e=>{s([...r].sort(e))}),[r]);const y=t((()=>({push:u,pop:c,clear:i,unshift:l,shift:a,reverse:d,concat:f,fill:g,updateItemAtIndex:v,setArray:s,splice:w,removeItemAtIndex:m,replaceItemAtIndex:h,insertItemAtIndex:p,sort:E})),[u,c,i,l,a,d,f,g,v,s,w,m,h,p,E]);const b=t((()=>[r,y]),[r,y]);return b}\n/**\n * useIsomorphicEffect\n * Resolves to useEffect when \"window\" is not in scope and useLayout effect in the browser\n *\n * @param {Function} callback Callback function to be called on mount\n * @see https://rooks.vercel.app/docs/useIsomorphicEffect\n */const l=\"undefined\"===typeof window?o:r;\n/**\n * useFreshRef\n *\n * @param value The value which needs to be fresh at all times. Probably\n * best used with functions\n * @param preferLayoutEffect Should the value be updated using a layout effect\n * or a passive effect. Defaults to false.\n * @returns A ref containing the fresh value\n * @see https://rooks.vercel.app/docs/useFreshRef\n */function useFreshRef(e,n=false){const t=n?l:o;const r=s(e);t((()=>{r.current=e}));return r}\n/**\n * @description useGetIsMounted hook checks if a component is mounted or not at the time.\n * Useful for async effects. Returns a callback that returns a boolean representing if the component\n * is mounted at the time.\n * @returns () => boolean\n * @see https://rooks.vercel.app/docs/useGetIsMounted\n */const useGetIsMounted=()=>{const e=s(false);const t=n((()=>e.current),[]);o((()=>{e.current=true;return()=>{e.current=false}}),[]);return t};\n/**\n * A version of useEffect that accepts an async function\n *\n * @param {Effect<T>} effect Async function that can return a cleanup function and takes in an AbortSignal\n * @param {DependencyList} deps If present, effect will only activate if the values in the list change\n * @param {CleanupFunction} cleanup The destroy/cleanup function. Will be called with previous result if it exists.\n * @see https://rooks.vercel.app/docs/useAsyncEffect\n * @example\n * ```jsx\n * useAsyncEffect(\n        async (shouldContinueEffect) => {\n          const data1 = await fetchData1(arg1, arg2);\n          if(shouldContinueEffect()) {\n            const data2 = await fetchData2(arg1, arg2);\n          }\n          ...\n        },\n        [arg1, arg2],\n        (previousResult) => {\n          // ... do something with previousResult ...\n        }\n      );\n * ```\n */function useAsyncEffect(e,t,r){const u=s(0);const c=useGetIsMounted();const i=useFreshRef(e);const l=n((async()=>{const e=++u.current;const shouldContinueEffect=()=>c()&&e===u.current;try{return await i.current(shouldContinueEffect)}catch(e){throw e}}),[c,...t]);o((()=>{let e;l().then((n=>{e=n}));return()=>{null===r||void 0===r?void 0:r(e)}}),[l,r])}\n/**\n * useDidMount hook\n * @description Calls a function on mount\n *\n * @param {Function} callback Callback function to be called on mount\n * @see https://rooks.vercel.app/docs/useDidMount\n */function useDidMount(e){o((()=>{\"function\"===typeof e&&e()}),[])}const noop=()=>{};const a={attributes:true,characterData:true,childList:true,subtree:true};\n/**\n *\n * useMutationObserver hook\n *\n * Returns a mutation observer for a React Ref and fires a callback\n *\n * @param {MutableRefObject<HTMLElement | null>} ref React ref on which mutations are to be observed\n * @param {MutationCallback} callback Function that needs to be fired on mutation\n * @param {MutationObserverInit} options\n * @see https://rooks.vercel.app/docs/useMutationObserver\n */function useMutationObserver(e,n,t=a){o((()=>{if(e.current){const o=new MutationObserver(n);o.observe(e.current,t);return()=>{o.disconnect()}}return noop}),[n,t,e])}\n/**\n * @param element HTML element whose boundingclientrect is needed\n * @returns DOMRect\n */function getBoundingClientRect$1(e){return e.getBoundingClientRect()}\n/**\n * useBoundingclientRect hook\n *\n * @param ref The React ref whose ClientRect is needed\n * @returns DOMRect | null\n * @see https://rooks.vercel.app/docs/useBoundingclientRect\n */function useBoundingclientrect(t){const[o,r]=e(null);const s=n((()=>{r(t.current?getBoundingClientRect$1(t.current):null)}),[t]);useDidMount((()=>{s()}));useMutationObserver(t,s);return o}function setRef$1(e,n){\"function\"===typeof e?e(n):null!==e&&void 0!==e&&(e.current=n)}\n/**\n * useForkRef\n * Joins refs together and returns a combination of the two as a new ref\n *\n * @param refA\n * @param refB\n * @returns MutableRefObject\n * @see https://rooks.vercel.app/docs/useForkRef\n */function useForkRef(e,n){return t((()=>null===e&&null===n?null:t=>{setRef$1(e,t);setRef$1(n,t)}),[e,n])}const d={attributes:true,characterData:true,childList:true,subtree:true};\n/**\n *\n * useMutationObserverRef hook\n *\n * Returns a mutation observer for a React Ref and fires a callback\n *\n * @param {MutationCallback} callback Function that needs to be fired on mutation\n * @param {MutationObserverInit} options\n * @see https://rooks.vercel.app/docs/useMutationObserverRef\n */function useMutationObserverRef(t,r=d){const[s,u]=e(null);o((()=>{if(s){const e=new MutationObserver(t);e.observe(s,r);return()=>{e.disconnect()}}return noop}),[s,t,r]);const c=n((e=>{u(e)}),[]);return[c]}\n/**\n * @param element HTML element whose boundingclientrect is needed\n * @returns DOMRect\n */function getBoundingClientRect(e){return e.getBoundingClientRect()}\n/**\n * useBoundingclientrectRef hook\n * Tracks the boundingclientrect of a React Ref and fires a callback when the element's size changes.\n *\n * @returns [CallbackRef | null, DOMRect | null, () => void]\n * @see https://rooks.vercel.app/docs/useBoundingclientRectRef\n */function useBoundingclientrectRef(){const[t,r]=e(null);const[s,u]=e(null);const c=n((()=>{r(s?getBoundingClientRect(s):null)}),[s]);o((()=>{c()}),[c]);const i=n((e=>{u(e)}),[]);const[l]=useMutationObserverRef(c);const a=useForkRef(i,l);return[a,t,c]}\n/**\n * A setInterval hook that calls a callback after a interval duration\n * when a condition is true\n *\n * @param callback The callback to be invoked after interval\n * @param intervalDurationMs Amount of time in ms after which to invoke\n * @param when The condition which when true, sets the interval\n * @param startImmediate If the callback should be invoked immediately\n * @see https://rooks.vercel.app/docs/useIntervalWhen\n */function useIntervalWhen(e,n=0,t=true,r=false){const u=s();o((()=>{u.current=e}));function internalCallback(){var e;null===(e=u.current)||void 0===e?void 0:e.call(u)}o((()=>{if(t){r&&internalCallback();const e=window.setInterval(internalCallback,n);return()=>{window.clearInterval(e)}}return noop}),[t,n,r])}\n/**\n *\n * useCountdown\n * Easy way to countdown until a given endtime in intervals\n *\n * @param endTime Time to countdown\n * @param options  Countdown options\n * @see https://rooks.vercel.app/docs/useCountdown\n */function useCountdown(n,t={}){const{interval:o=1e3,onDown:r,onEnd:s}=t;const[u,c]=e((()=>new Date));const i=n.getTime()-u.getTime();const l=i>0?Math.ceil(i/o):0;useIntervalWhen(onTick,l?o:void 0,true,true);return l;function onTick(){const e=new Date;if(e>n){s&&s(e);c(n)}else{r&&r(i,e);c(e)}}}\n/**\n *\n * @typedef handler\n * @type {object}\n * @property {number} value The value of the counter\n * @property {Function}  increment Increment counter value by 1\n * @property {Function} decrement Decrement counter value by 1\n * @property {Function} incrementBy Increment counter by incrAmount\n * @property {Function} decrementBy Decrement counter by decrAmount\n * @property {Function} reset Reset counter to initialValue\n * @see {@link https://rooks.vercel.app/docs/useCounter}\n */\n/**\n * Counter hook\n *\n * @param {number} initialValue The initial value of the counter\n * @returns {handler} A handler to interact with the counter\n * @see https://rooks.vercel.app/docs/useCounter\n */function useCounter(t){const[o,r]=e(t);\n/**\n     * Increment counter by an amount\n     *\n     * @param {number} incrAmount\n     */const s=n((e=>{r((n=>n+e))}),[]);\n/**\n     *\n     * Decrement counter by an amount\n     *\n     * @param {*} decrAmount\n     */const u=n((e=>{s(-e)}),[s]);const c=n((()=>{s(1)}),[s]);const i=n((()=>{s(-1)}),[s]);const l=n((()=>{r(t)}),[t]);return{decrement:i,decrementBy:u,increment:c,incrementBy:s,reset:l,value:o}}\n/**\n * useWillUnmount hook\n * Fires a callback just before component unmounts\n *\n * @param {Function} callback Callback to be called before unmount\n * @see https://rooks.vercel.app/docs/useWillUnmount\n */function useWillUnmount(e){o((()=>e),[])}\n/**\n * Debounce hook\n * Debounces a function\n *\n * @param callback The callback to debounce\n * @param wait The duration to debounce\n * @param options The options object.\n * @param options.leading Specify invoking on the leading edge of the timeout.\n * @param options.maxWait The maximum time func is allowed to be delayed before it\u2019s invoked.\n * @param options.trailing Specify invoking on the trailing edge of the timeout.\n * @returns Returns the new debounced function.\n * @see https://rooks.vercel.app/docs/useDebounce\n */function useDebounce(e,t,o){const r=n((e=>c(e,t,o)),[t,o]);const u=useFreshRef(e);function tick(...e){var n;null===(n=u.current)||void 0===n?void 0:n.call(u,...e)}const i=s(r(tick));useWillUnmount((()=>{var e;return null===(e=i.current)||void 0===e?void 0:e.cancel()}));return i.current}\n/**\n *  useDidUpdate hook\n *\n *  Fires a callback on component update\n *  Can take in a list of conditions to fire callback when one of the\n *  conditions changes\n *\n * @param {Function} callback The callback to be called on update\n * @param {Array} conditions The list of variables which trigger update when they are changed\n * @see https://rooks.vercel.app/docs/useDidUpdate\n */function useDidUpdate(e,n){const r=s(false);const u=t((()=>{if(\"undefined\"!==typeof n&&!Array.isArray(n))return[n];Array.isArray(n)&&0===n.length&&console.warn(\"Using [] as the second argument makes useDidUpdate a noop. The second argument should either be `undefined` or an array of length greater than 0.\");return n}),[n]);o((()=>{r.current&&e()}),u);useDidMount((()=>{r.current=true}));useWillUnmount((()=>{r.current=false}))}const f={initializeWithNull:false};\n/**\n * useDebouncedValue\n * @param value The value to debounce\n * @param timeout The duration to debounce\n * @param options The options object.\n * @see https://rooks.vercel.app/docs/useDebouncedValue\n */const useDebouncedValue=(n,t,o={})=>{const{initializeWithNull:r}=Object.assign({},f,o);const[s,u]=e(r?null:n);const c=useDebounce(u,t);useDidMount((()=>{r&&c(n)}));useDidUpdate((()=>{c(n)}),[n]);return[s,u]};\n/**\n * useFreshTick\n * @param callback The callback to be called on mount\n * @returns A fresh callback.\n * @see https://rooks.vercel.app/docs/useFreshCallback\n */function useFreshTick(e){const n=useFreshRef(e);function tick(...e){\"function\"===typeof n.current&&n.current(...e)}return tick}const g=\"production\"!==process.env.NODE_ENV;let warning=()=>{};if(g){const printWarning=e=>{const n=`Warning: ${e}`;\"undefined\"!==typeof console&&console.error(n);try{throw new Error(n)}catch(e){}};warning=function(e,n){e||printWarning(n)}}\n/**\n *  useGlobalObjectEventListener hook\n *\n *  A react hook to an event listener to a global object\n *\n * @param {Window|Document} globalObject The global object to add event onto\n * @param {string} eventName The event to track\n * @param {Function} callback The callback to be called on event\n * @param {ListenerOptions} listenerOptions The options to be passed to the event listener\n * @param {boolean} when Should the event listener be active\n * @param {boolean} isLayoutEffect Should it use layout effect. Defaults to false\n * @see https://rooks.vercel.app/docs/useGlobalObjectEventListener\n */function useGlobalObjectEventListener(e,n,t,r={},s=true,u=false){const c=useFreshTick(t);const i=u?l:o;i((()=>{warning(\"undefined\"!==typeof e,\"[useGlobalObjectEventListener]: Cannot attach event handlers to undefined.\");if(\"undefined\"!==typeof e&&s){e.addEventListener(n,c,r);return()=>{e.removeEventListener(n,c,r)}}return()=>{}}),[n,r])}\n/**\n *\n * useOnWindowResize hook\n *\n * Fires a callback when window resizes\n *\n * @param {Function} callback Callback to be called before unmount\n * @param {boolean} when When the handler should be applied\n * @param {boolean} isLayoutEffect Should it use layout effect. Defaults to false\n * @see https://rooks.vercel.app/docs/useOnWindowResize\n */function useOnWindowResize(e,n=true,t=false){useGlobalObjectEventListener(global.window,\"resize\",e,{passive:true},n,t)}\n/**\n *\n * useOnWindowScroll hook\n * Fires a callback when window scroll\n *\n * @param {Function} callback Callback to be called before unmount\n * @param {boolean} when When the handler should be applied\n * @param {boolean} isLayoutEffect Should it use layout effect. Defaults to false\n * @see https://rooks.vercel.app/docs/useOnWindowScroll\n *\n */function useOnWindowScroll(e,n=true,t=false){useGlobalObjectEventListener(global.window,\"scroll\",e,{passive:true},n,t)}const getDimensionObject=e=>{const n=e.getBoundingClientRect();return{bottom:n.bottom,height:n.height,left:n.left,right:n.right,top:n.top,width:n.width,x:n.left,y:n.top}};const v=[void 0,null,null];\n/**\n * useDimensionsRef\n * @param updateOnScroll Whether to update on scroll\n * @param updateOnResize Whether to update on resize\n * @returns [React.Ref<HTMLDivElement>, UseDimensionsRefReturn, HTMLElement | null]\n * @see https://rooks.vercel.app/docs/useDimensionsRef\n */const useDimensionsRef=({updateOnScroll:t=true,updateOnResize:o=true}={})=>{const[s,u]=e(null);const[c,i]=e(null);const l=n((e=>{i(e)}),[]);const a=n((()=>{window.requestAnimationFrame((()=>{c&&u(getDimensionObject(c))}))}),[c]);r((()=>{a()}),[a]);useOnWindowResize((()=>{a()}),o,true);useOnWindowScroll((()=>{a()}),t,true);if(\"undefined\"===typeof window){console.warn(\"useDimensionsRef: window is undefined.\");return v}return[l,s,c]};\n/**\n *  useDocumentEventListener hook\n *\n * @description A react hook to an event listener to the document\n *\n * @param {keyof DocumentEventMap} eventName The event to track\n * @param {Function} callback The callback to be called on event\n * @param {ListenerOptions} listenerOptions The options to be passed to the event listener\n * @param {boolean} isLayoutEffect Should it use layout effect. Defaults to false\n * @see https://rooks.vercel.app/docs/useDocumentEventListener\n */function useDocumentEventListener(e,n,t={},o=false){useGlobalObjectEventListener(global.document,e,n,t,true,o)}\n/**\n * useDocumentVisibilityState\n * @description Returns the visibility state of the document. Returns null on the server side.\n * @returns {UseDocumentVisibilityStateReturnType} The visibility state of the document. `null` on the server.\n * @see {@link https://rooks.vercel.app/docs/useDocumentVisibilityState}\n */function useDocumentVisibilityState(){const[t,o]=e(document?document.visibilityState:null);const r=n((()=>{o(document?document.visibilityState:null)}),[]);useGlobalObjectEventListener(global.document,\"visibilitychange\",r,{},true,true);return t}\n/**\n * useEffectOnceWhen hook\n *\n * @description It fires a callback once when a condition is true or become true.\n * Fires the callback at most one time.\n *\n * @param callback The callback to fire\n * @param when The condition which needs to be true\n * @see https://rooks.vercel.app/docs/useEffectOnceWhen\n */function useEffectOnceWhen(e,n=true){const t=s(false);const r=s(e);o((()=>{r.current=e}));o((()=>{if(n&&!t.current){r.current();t.current=true}}),[n])}\n/**\n * useRefElement hook for React\n * Helps bridge gap between callback ref and state\n * Manages the element called with callback ref api using state variable\n * @returns {[RefElementOrNull, (element: HTMLElementOrNull) => void]}\n * @see https://rooks.vercel.app/docs/useRefElement\n */function useRefElement(){const[t,o]=e(null);const r=n((e=>{o(e)}),[]);return[r,t]}\n/**\n *  useEventListenerRef hook\n *\n *  A react hook to an event listener to an element\n *  Returns a ref\n *\n * @param {string} eventName The event to track`\n * @param {Function} callback The callback to be called on event\n * @param {object} listenerOptions The options to be passed to the event listener\n * @param {boolean} isLayoutEffect Should it use layout effect. Defaults to false\n * @returns {Function} A callback ref that can be used as ref prop\n * @see https://rooks.vercel.app/docs/useEventListenerRef\n */function useEventListenerRef(e,n,t={},r=false){const[s,u]=useRefElement();const c=useFreshTick(n);const i=r?l:o;i((()=>{if(!(null===u||void 0===u?void 0:u.addEventListener))return noop;u.addEventListener(e,c,t);return()=>{u.removeEventListener(e,c,t)}}),[u,e,t]);return s}const w={DOM_UNAVAILABLE_ERROR:\"DOM is unavailable server-side. Please use this method client-side only.\",FULLSCREEN_UNSUPPORTED_ERROR:\"Your browser does not support Fullscreen API.\",getEventsNames(){if(\"undefined\"===typeof document)return null;const e=document;return\"exitFullscreen\"in e?[\"fullscreenchange\",\"fullscreenerror\"]:\"webkitExitFullscreen\"in e||\"webkitCancelFullScreen\"in e?[\"webkitfullscreenchange\",\"webkitfullscreenerror\"]:\"mozCancelFullScreen\"in e?[\"mozfullscreenchange\",\"mozfullscreenerror\"]:\"msExitFullscreen\"in e?[\"MSFullscreenChange\",\"MSFullscreenError\"]:null},getEventName(e){const n=this.getEventsNames();return n?\"change\"===e?n[0]:n[1]:null},get fullscreenEnabled(){if(\"undefined\"===typeof document)return false;const e=document;return e.fullscreenEnabled||e.webkitFullscreenEnabled||!!e.webkitCancelFullScreen||e.mozFullScreenEnabled||e.msFullscreenEnabled||false},get fullscreenElement(){if(\"undefined\"===typeof document)return null;const e=document;return e.fullscreenElement||e.webkitFullscreenElement||e.webkitCurrentFullScreenElement||e.mozFullScreenElement||e.msFullscreenElement||null},requestFullscreen(e,n){if(\"undefined\"===typeof document)throw new Error(this.DOM_UNAVAILABLE_ERROR);const t=null!==e&&void 0!==e?e:document.documentElement;const o=t.requestFullscreen||t.webkitRequestFullscreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen;if(!o)throw new Error(this.FULLSCREEN_UNSUPPORTED_ERROR);return o.call(t,n)},exitFullscreen(){if(\"undefined\"===typeof document)throw new Error(this.DOM_UNAVAILABLE_ERROR);const e=document;const n=e.exitFullscreen||e.webkitExitFullscreen||e.webkitCancelFullScreen||e.mozCancelFullScreen||e.msExitFullscreen;if(!n)throw new Error(this.FULLSCREEN_UNSUPPORTED_ERROR);return n.call(e)},on(e,n){const t=this.getEventName(e);t&&document.addEventListener(t,n)},off(e,n){const t=this.getEventName(e);t&&document.removeEventListener(t,n)}};\n/**\n *\n * useFullscreen hook\n *\n * Gives control to make HTML Elements fullscreen.\n *\n * @param {Element | undefined} props.target The target element to be fullscreen.\n * @param {(event: Event) => void} props.onChange The function to be called when the fullscreen changes.\n * @param {(event: Event) => void} props.onError The function to be called when the fullscreen error occurs.\n * @param {FullscreenOptions} props.requestFullscreenOptions The options to be passed to the requestFullscreen function.\n * @return {Object} returns - The controlls of useFullscreen hook.\n * @return {boolean} returns.isFullscreenAvailable - Whether the fullscreen is available.\n * @return {Element | null} returns.fullscreenElement - The fullscreen element.\n * @return {boolean} returns.isFullscreenEnabled - Whether the fullscreen is enabled.\n * @return {() => Promise<void>} returns.enableFullscreen - The function to enable fullscreen.\n * @return {() => Promise<void>} returns.disableFullscreen - The function to disable fullscreen.\n * @return {() => Promise<void>} returns.toggleFullscreen - The function to toggle fullscreen.\n */function useFullscreen(t={}){const{target:r,onChange:s,onError:u,requestFullScreenOptions:c}=t;const[i,l]=e(false);const[a,d]=e(null);const[f,g]=e(false);const v=n((()=>w.requestFullscreen((null===r||void 0===r?void 0:r.current)||null,c)),[r,c]);const m=n((()=>w.exitFullscreen()),[]);const h=n((()=>w.fullscreenElement?m():v()),[v,m]);const p=n((e=>{const n=w.fullscreenElement;d(n);g(!!n);null===s||void 0===s?void 0:s(e)}),[s]);const E=n((e=>{const n=w.fullscreenElement;d(n);g(!!n);null===u||void 0===u?void 0:u(e)}),[u]);o((()=>{l(w.fullscreenEnabled)}),[]);o((()=>{w.on(\"change\",p);w.on(\"error\",E);return()=>{w.off(\"change\",p);w.off(\"error\",E)}}),[p,E]);return{isFullscreenAvailable:i,fullscreenElement:a,isFullscreenEnabled:f,enableFullscreen:v,disableFullscreen:m,toggleFullscreen:h}}const useFocus=e=>{const{onBlur:t,onFocus:o,onFocusChange:r}=e;const s=n((e=>{if(e.target===e.currentTarget){t&&t(e);r&&r(false)}}),[t,r]);const u=n((e=>{if(e.target===e.currentTarget){o&&o(e);r&&r(true)}}),[r,o]);return{focusProps:{onFocus:u,onBlur:s}}};const useFocusWithin=e=>{const{onBlurWithin:t,onFocusWithin:o,onFocusWithinChange:r}=e;const u=s({isFocusWithin:false});const c=n((e=>{if(u.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)){u.current.isFocusWithin=false;t&&t(e);r&&r(false)}}),[t,r]);const i=n((e=>{if(!u.current.isFocusWithin){o&&o(e);r&&r(true);u.current.isFocusWithin=true}}),[o,r]);return{focusWithinProps:{onFocus:i,onBlur:c}}};function getGeoLocation(e){return new Promise(((n,t)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition((e=>{const{coords:t}=e;const{latitude:o,longitude:r}=t;n({isError:false,lat:o,lng:r,message:\"\"})}),(e=>{t({isError:true,message:e.message})}),e):t({isError:true,message:\"Geolocation is not supported for this Browser/OS.\"})}))}const m={enableHighAccuracy:false,maximumAge:0,timeout:Number.POSITIVE_INFINITY,when:true};\n/**\n * useGeolocation\n * Gets the geolocation data as a hook\n *\n * @param {UseGeoLocationOptions} geoLocationOptions Geolocation options\n * @see {@link https://rooks.vercel.app/docs/useGeolocation}\n */const useGeolocation=(n=m)=>{const[t,r]=e(null);const{when:s,enableHighAccuracy:u,timeout:c,maximumAge:i}=n;const l=useGetIsMounted();o((()=>{async function getGeoCode(){try{const e=await getGeoLocation({enableHighAccuracy:u,maximumAge:i,timeout:c,when:s});l()&&r(e)}catch(e){l()&&r(e)}}s&&void getGeoCode()}),[s,u,c,i,l]);return t};const h={};\n/**\n *\n * useInput Hook\n *\n * Handles an input's value and onChange props internally to\n * make text input creation process easier\n *\n * @param {unknown} [initialValue] Initial value of the input\n * @param {Options} [options] Options object\n * @returns {InputHandler} Input handler with value and onChange\n * @see https://rooks.vercel.app/docs/useInput\n */function useInput(t=\"\",r=h){const[s,u]=e(t);const c=n((e=>{const n=e.target.value;let t=true;\"function\"===typeof r.validate&&(t=r.validate(n,s));t&&u(n)}),[r,s]);o((()=>{u(t)}),[t]);const i={onChange:c,value:s};return i}const p={root:null,rootMargin:\"0px 0px 0px 0px\",threshold:[0,1]};\n/**\n *\n * useIntersectionObserverRef hook\n *\n * Returns a mutation observer for a React Ref and fires a callback\n *\n * @param {IntersectionObserverCallback} callback Function that needs to be fired on mutation\n * @param {IntersectionObserverInit} options\n * @see https://rooks.vercel.app/docs/useIntersectionObserverRef\n */function useIntersectionObserverRef(t,r=p){const{root:u=null,rootMargin:c,threshold:i}=r;const[l,a]=e(null);const d=s(t);o((()=>{d.current=t}));const f=n(((...e)=>{var n;return null===(n=d.current)||void 0===n?void 0:n.call(d,...e)}),[]);o((()=>{if(l){const e=new IntersectionObserver(f,{root:u,rootMargin:c,threshold:i});e.observe(l);return()=>{e.disconnect()}}return noop}),[l,f,u,c,i]);const g=n((e=>{a(e)}),[]);return[g]}const E={root:null,rootMargin:\"0px 0px 0px 0px\",threshold:[0,1]};\n/**\n *\n * useInViewRef hook\n *\n * Returns a mutation observer for a React Ref and true/false when element enters/leaves the viewport. Also fires a callback.\n *\n * @param {IntersectionObserverCallback} callback Function that needs to be fired on mutation\n * @param {IntersectionObserverInit} options\n * @see https://rooks.vercel.app/docs/useInViewRef\n */function useInViewRef(t=(()=>{}),r=E){const{root:s=null,rootMargin:u,threshold:c}=r;const[i,l]=e(null);const[a,d]=e(false);o((()=>{if(i){const e=new IntersectionObserver(((e,n)=>{for(const{isIntersecting:n}of e)d(n);t(e,n)}),r);e.observe(i);return()=>{e.disconnect()}}return noop}),[i,t,s,u,c,r]);const f=n((e=>{l(e)}),[]);return[f,a]}const doesIdentifierMatchKeyboardEvent=(e,n)=>e.key===n||e.code===n||e.keyCode===n||e.which===n||e.charCode===n;const y={eventTypes:[\"keydown\"],when:true};\n/**\n * useKey hook\n *\n * Fires a callback on keyboard events like keyDown, keyPress and keyUp\n *\n * @param {TrackedKeyEvents} keys List of keys to listen for. Eg: [\"a\", \"b\"]\n * @param {Callback} callback  Callback to fire on keyboard events\n * @param {Options} options Options\n * @see https://rooks.vercel.app/docs/useKey\n */function useKey(e,r,u){const c=t((()=>Array.isArray(e)?e:[e]),[e]);const i=t((()=>Object.assign(Object.assign({},y),u)),[u]);const{when:l,eventTypes:a}=i;const d=s(r);const{target:f}=i;o((()=>{d.current=r}));const g=n((e=>{c.some((n=>doesIdentifierMatchKeyboardEvent(e,n)))&&d.current(e)}),[c]);o((()=>{if(l&&\"undefined\"!==typeof window){if(!f){for(const e of a)window.addEventListener(e,g);return()=>{for(const e of a)window.removeEventListener(e,g)}}{const e=f.current;if(e){for(const n of a)e.addEventListener(n,g);return()=>{for(const n of a)e.removeEventListener(n,g)}}}}return noop}),[l,a,c,f,r,g])}\n/**\n * useKeyBindings\n *\n * useKeyBindings binds pairs of keyboard events and handlers\n *\n * @param { KeyBindings } keyBindings\n * @param {Options} options\n * @see https://rooks.vercel.app/docs/useKeyBindings\n */const useKeyBindings=(e,n)=>{for(const t in e)useKey(t,e[t],n)};const b={eventTypes:[\"keydown\"],when:true};\n/**\n * useKeyRef hook\n *\n * Fires a callback on keyboard events like keyDown, keyPress and keyUp\n *\n * @param {[string|number]} keys List of keys to listen for. Eg: [\"a\", \"b\"]\n * @param {Function} callback Callback to fire on keyboard events\n * @param {Options} options Options\n * @returns {CallbackRef} CallbackRef\n * @see https://rooks.vercel.app/docs/useKeyRef\n */function useKeyRef(r,u,c){const[i,l]=e(null);const a=n((e=>{l(e)}),[]);const d=t((()=>Array.isArray(r)?r:[r]),[r]);const f=t((()=>Object.assign(Object.assign({},b),c)),[c]);const{when:g,eventTypes:v}=f;const w=s(u);o((()=>{w.current=u}));const m=n((e=>{d.some((n=>doesIdentifierMatchKeyboardEvent(e,n)))&&w.current(e)}),[d]);o((()=>{if(g&&i){for(const e of v)i.addEventListener(e,m);return()=>{for(const e of v)i.removeEventListener(e,m)}}return noop}),[i,g,v,d,m]);return a}const S={continuous:false,when:true};\n/**\n * useKeys hook\n *\n * @param keysList - list of keys to listen to\n * @param callback  - callback to be called when a key is pressed\n * @param options - options to be passed to the event listener\n * @see https://rooks.vercel.app/docs/useKeys\n */function useKeys(e,t,r){const u=Object.assign(Object.assign({},S),r);const{target:c,when:i,continuous:l,preventLostKeyup:a}=u;const d=s(t);const f=s({});const g=f.current;o((()=>{d.current=t}));\n/**\n     * handleKeyDown\n     *\n     * @param   {KeyboardEvent}  event\n     * KeyDown event handler which will wrap the passed in callback\n     */const v=n((n=>{let t=null;let o=false;for(const o of e)if(doesIdentifierMatchKeyboardEvent(n,o)){g[o]=true;t=o}e.every((e=>Boolean(g[e])))&&(o=true);if(o){d.current(n);l||null===t||(g[t]=false)}}),[e,g,l]);\n/**\n     * [handleKeyUp]\n     *\n     * @param   {KeyboardEvent}  event\n     *\n     * KeyUp event handler which will update the keys pressed state in PressedKeyMapping\n     */const w=n((n=>{for(const t of e)doesIdentifierMatchKeyboardEvent(n,t)&&(g[t]=void 0)}),[g,e]);o((()=>{if(i&&\"undefined\"!==typeof window){const e=(null===c||void 0===c?void 0:c.current)?c.current:document;e.addEventListener(\"keydown\",v);e.addEventListener(\"keyup\",w);return()=>{e.removeEventListener(\"keydown\",v);e.removeEventListener(\"keyup\",w)}}return noop}),[i,c,e,v,w]);o((()=>{if(true!==a)return noop;if(\"undefined\"!==typeof window){const n=window.alert;window.alert=t=>{for(const n of e)g[n]=void 0;return n(t)};const t=window.confirm;window.confirm=n=>{for(const n of e)g[n]=void 0;return t(n)};const o=window.prompt;window.prompt=(n,t)=>{for(const n of e)g[n]=void 0;return o(n,t)};return()=>{window.alert=n;window.confirm=t;window.prompt=o}}return noop}),[g,e,a])}\n/**\n * useLifecycleLogger hook\n * logs parameters as component transitions through lifecycles\n *\n * @param componentName Name of the component\n * @param {...*} otherArgs Other arguments to log\n * @see https://rooks.vercel.app/docs/useLifecycleLogger\n */const useLifecycleLogger=(e=\"Component\",...n)=>{useDidMount((()=>{console.log(`${e} mounted`,...n);return()=>console.log(`${e} unmounted`)}));useDidUpdate((()=>{console.log(`${e} updated`,...n)}));useWillUnmount((()=>{console.log(`${e} unmounted`)}))};function getValueFromLocalStorage(e){var n;if(\"undefined\"===typeof localStorage)return null;const t=null!==(n=localStorage.getItem(e))&&void 0!==n?n:\"null\";try{return JSON.parse(t)}catch(e){console.error(e)}return t}function saveValueToLocalStorage(e,n){return\"undefined\"===typeof localStorage?null:localStorage.setItem(e,JSON.stringify(n))}\n/**\n * @param key Key of the localStorage object\n * @param initialState Default initial value\n */function initialize$1(e,n){const t=getValueFromLocalStorage(e);return null===t?n:t}\n/**\n * useLocalstorageState hook\n * Tracks a value within localStorage and updates it\n *\n * @param {string} key - Key of the localStorage object\n * @param {any} initialState - Default initial value\n * @see https://rooks.vercel.app/docs/useLocalstorageState\n */function useLocalstorageState(r,u){const[c,i]=e((()=>initialize$1(r,u)));const l=s(false);const a=s(false);const d=t((()=>`rooks-${r}-localstorage-update`),[r]);o((()=>{l.current&&a.current||saveValueToLocalStorage(r,c)}),[r,c]);const f=n((e=>{var n;if(e.storageArea===localStorage&&e.key===r)try{l.current=true;const t=JSON.parse(null!==(n=e.newValue)&&void 0!==n?n:\"null\");c!==t&&i(t)}catch(e){console.log(e)}}),[r,c]);o((()=>{if(\"undefined\"!==typeof window){window.addEventListener(\"storage\",f);return()=>{window.removeEventListener(\"storage\",f)}}console.warn(\"useLocalstorageState: window is undefined.\");return()=>{}}),[f]);const g=n((e=>{try{a.current=true;const{newValue:n}=e.detail;c!==n&&i(n)}catch(e){console.log(e)}}),[c]);o((()=>{if(\"undefined\"!==typeof document){document.addEventListener(d,g);return()=>{document.removeEventListener(d,g)}}console.warn(\"[useLocalstorageState] document is undefined.\");return()=>{}}),[d,g]);const v=n((e=>{if(\"undefined\"!==typeof document){const n=new CustomEvent(d,{detail:{newValue:e}});document.dispatchEvent(n)}else console.warn(\"[useLocalstorageState] document is undefined.\")}),[d]);const w=n((e=>{l.current=false;a.current=false;i(e);v(e)}),[v]);const m=n((()=>{localStorage.removeItem(r)}),[r]);return[c,w,m]}\n/**\n * useMapState hook\n * A hook to manage state in the form of a map or object.\n *\n * @param initialValue Initial value of the map\n * @see https://rooks.vercel.app/docs/useMapState\n */function useMapState(t){const[o,r]=e(t);const s=n(((e,n)=>{r((t=>Object.assign(Object.assign({},t),{[e]:n})))}),[]);const u=n((e=>\"undefined\"!==typeof o[e]),[o]);const c=n((e=>{r((n=>Object.assign(Object.assign({},n),e)))}),[]);const i=n(((...e)=>{r((n=>{const t=Object.assign({},n);for(const n of e)delete t[n];return t}))}),[r]);const l=n((e=>{r((n=>{const t=Object.assign({},n);delete t[e];return t}))}),[r]);const a=n((()=>{r((e=>{const n=Object.assign({},e);for(const e in n)n.hasOwnProperty(e)&&delete n[e];return n}))}),[r]);return[o,{has:u,remove:l,removeAll:a,removeMultiple:i,set:s,setMultiple:c}]}\n/**\n * useMediaMatch\n *\n * A react hook that signals whether or not a media query is matched.\n *\n * @param query The media query to signal on. Example, `\"print\"` will signal\n * `true` when previewing in print mode, and `false` otherwise.\n * @returns Whether or not the media query is currently matched.\n * @see https://rooks.vercel.app/docs/useMediaMatch\n */function useMediaMatch(n){const r=t((()=>window.matchMedia(n)),[n]);const[s,u]=e((()=>r.matches));o((()=>{u(r.matches);const listener=e=>u(e.matches);if(r.addEventListener){r.addEventListener(\"change\",listener);return()=>r.removeEventListener(\"change\",listener)}r.addListener(listener);return()=>r.removeListener(listener)}),[r]);if(\"undefined\"===typeof window){console.warn(\"useMediaMatch cannot function as window is undefined.\");return false}return s}function setRef(e,n){\"function\"===typeof e?e(n):null!==e&&void 0!==e&&(e.current=n)}\n/**\n * useMergeRefs\n * Merges multiple refs into a single function ref.\n * Takes any number of refs.\n * Refs can be mutable refs or function refs.\n *\n * @param refs\n * @see https://rooks.vercel.app/docs/useMergeRefs\n */function useMergeRefs(...e){return t((()=>e.every((e=>null===e))?null:n=>{for(const t of e)setRef(t,n)}),[e])}const O={clientX:null,clientY:null,movementX:null,movementY:null,offsetX:null,offsetY:null,pageX:null,pageY:null,screenX:null,screenY:null,x:null,y:null};function getMousePositionFromEvent(e){const{screenX:n,screenY:t,movementX:o,movementY:r,pageX:s,pageY:u,clientX:c,clientY:i,offsetX:l,offsetY:a}=e;return{clientX:c,clientY:i,movementX:o,movementY:r,offsetX:l,offsetY:a,pageX:s,pageY:u,screenX:n,screenY:t,x:n,y:t}}function useMouse(){const[n,t]=e(O);function updateMousePosition(e){t(getMousePositionFromEvent(e))}o((()=>{document.addEventListener(\"mousemove\",updateMousePosition);return()=>{document.removeEventListener(\"mousemove\",updateMousePosition)}}),[]);return n}function warnIfBothValueAndIndexAreProvided$1(e,n){Object.values(n).every((e=>\"undefined\"!==typeof e))?console.warn(`${e}. Expected either ${Object.keys(n).join(\" or \")} to be provided. However all were provided`):Object.values(n).every((e=>\"undefined\"===typeof e))&&console.warn(`${e}. ${Object.keys(n).join(\" , \")} are all undefined.`)}\n/**\n * useMultiSelectableList\n * A custom hook to easily select multiple values from a list\n *\n * @param list - The list of values to select from\n * @param initialSelectIndices - The indices of the initial selections\n * @param allowUnselected - Whether or not to allow unselected values\n * @see https://rooks.vercel.app/docs/useMultiSelectableList\n */function useMultiSelectableList(t=[],o=[0],r=false){const[s,u]=e(o);const c=s.map((e=>t[e]));const i=[s,c];const updateSelections=({indices:e,values:n})=>()=>{warnIfBothValueAndIndexAreProvided$1(\"updateSelections\",{indices:e,values:n});if(\"undefined\"!==typeof e){if(!r&&0===e.length){console.warn(\"updateSelections failed. indices is an empty list.\");return}u(e)}else if(\"undefined\"!==typeof n){const e=t.reduce(((e,t,o)=>{if(n.includes(t)){const n=[...e,o];return n}return e}),[]);e.length>0||r?u(e):console.warn(\"updateSelections failed. Do the values exist in the list?\")}};const l=n((e=>{let n;if(s.includes(e)){n=[...s];const t=s.indexOf(e);-1!==t&&n.splice(t,1)}else n=[...s,e];n.length>0||r?u(n):console.warn(\"toggleSelection failed. Do the values exist in the list?\")}),[r,s]);const a=n((({index:e,value:n})=>()=>{warnIfBothValueAndIndexAreProvided$1(\"toggleSelection\",{index:e,value:n});if(\"undefined\"!==typeof e)l(e);else if(\"undefined\"!==typeof n){const e=t.indexOf(n);e>-1&&l(e)}}),[t,l]);const d=n((({index:e,value:n})=>{warnIfBothValueAndIndexAreProvided$1(\"matchSelection\",{index:e,value:n});return\"undefined\"!==typeof e?s.includes(e):\"undefined\"!==typeof n&&c.includes(n)}),[s,c]);const f={matchSelection:d,toggleSelection:a,updateSelections:updateSelections};return[i,f]}\n/**\n *  useWindowEventListener hook\n *\n *  A react hook to an event listener to the window\n *\n * @param {keyof WindowEventMap} eventName The event to track\n * @param {Function} callback The callback to be called on event\n * @param {ListenerOptions} listenerOptions The options to be passed to the event listener\n * @param {boolean} isLayoutEffect Should it use layout effect. Defaults to false\n * @returns {undefined}\n * @see https://rooks.vercel.app/docs/useWindowEventListener\n */function useWindowEventListener(e,n,t={},o=false){useGlobalObjectEventListener(global.window,e,n,t,true,o)}function getLanguage(){return\"undefined\"!==typeof navigator?navigator.language:null}\n/**\n * useNavigatorLanguage hook\n * Returns the language of the navigator\n *\n * @returns {Language}\n * @see https://rooks.vercel.app/docs/useNavigatorLanguage\n */function useNavigatorLanguage(){const[n,t]=e(getLanguage);useWindowEventListener(\"languagechange\",(()=>{t(getLanguage)}));return n}\n/**\n *\n * @returns {boolean} Is navigator online\n */function getIsOnline(){return\"undefined\"===typeof window?null:navigator.onLine}\n/**\n * useOnline hook\n *\n * Returns true if navigator is online, false if not.\n *\n * @returns {boolean} The value of navigator.onLine\n * @see https://rooks.vercel.app/docs/useOnline\n */function useOnline(){const[n,t]=e((()=>getIsOnline()));function setOffline(){t(false)}function setOnline(){t(true)}o((()=>{if(\"undefined\"!==typeof window){window.addEventListener(\"online\",setOnline);window.addEventListener(\"offline\",setOffline);return()=>{window.removeEventListener(\"online\",setOnline);window.removeEventListener(\"offline\",setOffline)}}console.warn(\"useOnline: window is undefined.\");return noop}),[]);return n}\n/**\n * useOutsideClick hook\n * Checks if a click happened outside a Ref. Handy for dropdowns, modals and popups etc.\n *\n * @param ref Ref whose outside click needs to be listened to\n * @param handler Callback to fire on outside click\n * @param when A boolean which which activates the hook only when it is true. Useful for conditionally enable the outside click\n * @see https://rooks.vercel.app/docs/useOutsideClick\n * @example\n * ```tsx\n * import { useOutsideClick } from \"@/hooks/useOutsideClick\";\n * import { useRef } from \"react\";\n * import { noop } from \"@/utils/noop\";\n *\n * const MyComponent = () => {\n *  const ref = useRef<HTMLDivElement>(null);\n *  const [isOpen, setIsOpen] = useState(false);\n *    const handleOutsideClick = () => setIsOpen(false);\n *  useOutsideClick(ref, handleOutsideClick);\n *  return (\n *   <div ref={ref}>\n *    <button onClick={() => setIsOpen(true)}>Open</button>\n *   {isOpen && (\n *   <div>Inside</div>\n *   )}\n * </div>\n * );\n * }\n * ```\n */function useOutsideClick(e,t,r=true){const u=s(t);const c=n((n=>{e.current&&!e.current.contains(n.target)&&u.current(n)}),[e]);o((()=>{u.current=t}));o((()=>{if(r){document.addEventListener(\"click\",c,true);document.addEventListener(\"ontouchstart\",c,true);return()=>{document.removeEventListener(\"click\",c,true);document.removeEventListener(\"ontouchstart\",c,true)}}return noop}),[e,t,r,c])}\n/**\n * useOutsideClickRef hook\n * Checks if a click happened outside a Ref. Handy for dropdowns, modals and popups etc.\n *\n * @param handler Callback to fire on outside click\n * @param when A boolean which which activates the hook only when it is true. Useful for conditionally enable the outside click\n * @returns An array with first item being ref\n * @see https://rooks.vercel.app/docs/useOutsideClick\n */function useOutsideClickRef(t,r=true){const u=s(t);const[c,i]=e(null);const l=n((e=>{c&&!c.contains(e.target)&&u.current(e)}),[c]);o((()=>{u.current=t}));const a=n((e=>{i(e)}),[]);o((()=>{if(r){document.addEventListener(\"click\",l,true);document.addEventListener(\"ontouchstart\",l,true);return()=>{document.removeEventListener(\"click\",l,true);document.removeEventListener(\"ontouchstart\",l,true)}}return noop}),[r,l]);return[a]}\n/**\n * usePreviousDifferent hook for React\n * It returns the past value which was different from the current one.\n *\n * @param currentValue The value whose previously different value is to be tracked\n * @returns The previous value\n * @see https://rooks.vercel.app/docs/usePreviousDifferent\n */function usePreviousDifferent(e){const n=s(null);const t=s(null);o((()=>{t.current=n.current;n.current=e}),[e]);return e===n.current?t.current:n.current}\n/**\n * usePreviousImmediate hook for React\n *\n * @param currentValue The value whose previous value is to be tracked\n * @returns The previous value\n * @see https://rooks.vercel.app/docs/usePreviousImmediate\n */function usePreviousImmediate(e){const n=s(null);o((()=>{n.current=e}));return n.current}\n/**\n * useQueueState\n * Manages a queue with react hooks.\n * @param initialList Initial value of the list\n * @returns The list and controls to modify the queue\n * @see https://rooks.vercel.app/docs/useQueueState\n */function useQueueState(t){const[o,r]=e([...t]);const s=n((e=>{const n=[...o,e];r(n);return n.length}),[o]);const u=n((()=>{if(o.length>0){const e=o[0];r([...o.slice(1)]);return e}}),[o]);const c=n((()=>{if(o.length>0)return o[0]}),[o]);const i={dequeue:u,enqueue:s,length:o.length,peek:c};return[o,i]}\n/**\n *\n * useRaf\n * Uses a polyfilled version of requestAnimationFrame\n *\n * @param {Function} callback The callback function to be executed\n * @param {boolean} [isActive] The value which while true, keeps the raf running infinitely\n * @see https://rooks.vercel.app/docs/useRaf\n */function useRaf(e,n){const t=s();o((()=>{t.current=e}),[e]);o((()=>{let e;let o=Date.now();function tick(){var e;const n=Date.now()-o;o=Date.now();loop();null===(e=t.current)||void 0===e?void 0:e.call(t,n)}function loop(){e=i(tick)}if(n){o=Date.now();loop();return()=>{e&&i.cancel(e)}}return noop}),[n])}const L={box:\"content-box\"};\n/**\n *\n * useResizeObserverRef hook\n *\n * Returns a resize observer for a React Ref and fires a callback\n * https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver\n *\n * @param {ResizeObserverCallback} callback Function that needs to be fired on resize\n * @param {ResizeObserverOptions} options An options object allowing you to set options for the observation\n * @returns {[CallbackRef]} callbackref\n * @see https://rooks.vercel.app/docs/useResizeObserverRef\n */function useResizeObserverRef(t,r=L){const{box:u}=r;const[c,i]=e(null);const l=s(t);o((()=>{l.current=t}));const a=n(((...e)=>{var n;null===(n=l.current)||void 0===n?void 0:n.call(l,...e)}),[]);o((()=>{if(c){const e=new ResizeObserver(a);e.observe(c,{box:u});return()=>{e.disconnect()}}return noop}),[c,a,u]);const d=n((e=>{i(e)}),[]);return[d]}function useRenderCount(){return++s(0).current}\n/**\n * useSelect hook\n * Helps easily select a value from a list of values\n *\n * @param list List of values to select a value from\n * @param {number} initialIndex Initial index which is selected\n * @returns handler\n * @see https://rooks.vercel.app/docs/useSelect\n */function useSelect(t,o=0){const[r,s]=e(o);const u=n((e=>{s(t.indexOf(e))}),[t]);return{index:r,item:t[r],setIndex:s,setItem:u}}function warnIfBothValueAndIndexAreProvided(e,n){Object.values(n).every((e=>\"undefined\"!==typeof e))?console.warn(`${e}. Expected either ${Object.keys(n).join(\" or \")} to be provided. However all were provided`):Object.values(n).every((e=>\"undefined\"===typeof e))&&console.warn(`${e}. ${Object.keys(n).join(\" , \")} are all undefined.`)}\n/**\n * useSelectableList\n * Easily select a single value from a list of values. very useful for radio buttons, select inputs  etc.\n *\n * @param list - The list of values to select from\n * @param initialIndex  - The index of the initial selection\n * @param allowUnselected\n * @see https://rooks.vercel.app/docs/useSelectableList\n */function useSelectableList(t=[],o=0,r=false){const[s,u]=e(o);const c=t[s];const i=[s,c];const l=n((({index:e,value:n})=>()=>{warnIfBothValueAndIndexAreProvided(\"updateSelection\",{index:e,value:n});if(\"undefined\"!==typeof e)u(e);else if(\"undefined\"!==typeof n){const e=t.indexOf(n);e>-1?u(e):console.warn(`updateSelection failed. Does the value ${n} exist in the list?`)}}),[t]);const a=n((({index:e,value:n})=>()=>{warnIfBothValueAndIndexAreProvided(\"toggleSelection\",{index:e,value:n});if(\"undefined\"!==typeof e)s===e?r?u(-1):console.warn(\"allowUnselected is false. Cannot unselect item\"):u(e);else if(\"undefined\"!==typeof n){const e=t.indexOf(n);if(e>-1)s===e?r?u(-1):console.warn(\"allowUnselected is false. Cannot unselect item\"):u(e);else{console.log(\"as\");console.warn(`toggleSelection failed. Does the value ${n} exist in the list?`)}}}),[r,s,t]);const d=n((({index:e,value:n})=>{warnIfBothValueAndIndexAreProvided(\"matchSelection\",{index:e,value:n});return\"undefined\"!==typeof e?e===s:n===c}),[s,c]);const f={matchSelection:d,toggleSelection:a,updateSelection:l};return[i,f]}function getValueFromSessionStorage(e){var n;if(\"undefined\"===typeof sessionStorage)return null;const t=null!==(n=sessionStorage.getItem(e))&&void 0!==n?n:\"null\";try{return JSON.parse(t)}catch(e){console.error(e)}return t}function saveValueToSessionStorage(e,n){return\"undefined\"===typeof sessionStorage?null:sessionStorage.setItem(e,JSON.stringify(n))}\n/**\n * @param key Key of the sessionStorage object\n * @param initialState Default initial value\n */function initialize(e,n){const t=getValueFromSessionStorage(e);return null===t?n:t}\n/**\n * useSessionstorageState hook\n * Tracks a value within sessionStorage and updates it\n *\n * @param {string} key - Key of the sessionStorage object\n * @param {any} initialState - Default initial value\n * @returns {[any, Dispatch<SetStateAction<any>>, () => void]}\n * @see https://rooks.vercel.app/docs/useSessionstorageState\n */function useSessionstorageState(r,u){const[c,i]=e((()=>initialize(r,u)));const l=s(false);const a=s(false);const d=t((()=>`rooks-${r}-sessionstorage-update`),[r]);o((()=>{l.current||saveValueToSessionStorage(r,c)}),[r,c]);const f=n((e=>{var n;if(e.storageArea===sessionStorage&&e.key===r)try{l.current=true;const t=JSON.parse(null!==(n=e.newValue)&&void 0!==n?n:\"null\");c!==t&&i(t)}catch(e){console.log(e)}}),[r,c]);o((()=>{if(\"undefined\"!==typeof window){window.addEventListener(\"storage\",f);return()=>{window.removeEventListener(\"storage\",f)}}console.warn(\"[useSessionstorageState] window is undefined.\");return()=>{}}),[f]);const g=n((e=>{try{a.current=true;const{newValue:n}=e.detail;c!==n&&i(n)}catch(e){console.log(e)}}),[c]);o((()=>{if(\"undefined\"!==typeof document){document.addEventListener(d,g);return()=>{document.removeEventListener(d,g)}}console.warn(\"[useSessionstorageState] document is undefined.\");return()=>{}}),[d,g]);const v=n((e=>{if(\"undefined\"!==typeof document){const n=new CustomEvent(d,{detail:{newValue:e}});document.dispatchEvent(n)}else console.warn(\"[useSessionstorageState] document is undefined.\")}),[d]);const w=n((e=>{l.current=false;a.current=false;i(e);v(e)}),[v]);const m=n((()=>{sessionStorage.removeItem(r)}),[r]);return[c,w,m]}\n/**\n * useSetState\n * @description Manage the state of a Set in React.\n * @param {Set<T>} initialSetValue The initial value of the set to manage.\n * @returns {UseSetStateReturnValue<T>} The state of the Set and the controls.\n * @see {@link https://rooks.vercel.app/docs/useSetState}\n * @example\n * import { useSetState } from \"@/hooks/useSetState\";\n * const [set, setControls] = useSetState(new Set());\n * setControls.add(1); // {1}\n * setControls.add(2); // {1, 2}\n * setControls.delete(1); // {2}\n * setControls.clear(); // {}\n *\n */function useSetState(o){const[r,s]=e(new Set(o));const u=n(((...e)=>{s(new Set(r.add(...e)))}),[r,s]);const c=n(((...e)=>{const n=new Set(r);n.delete(...e);s(n)}),[r,s]);const i=n((()=>{s(new Set)}),[s]);const l=t((()=>({add:u,delete:c,clear:i})),[u,c,i]);const a=t((()=>[r,l]),[r,l]);return a}\n/**\n * useStackState\n * @description Manages a stack with react hooks.\n * @param initialList Initial value of the list\n * @returns The list and controls to modify the stack\n * @see https://rooks.vercel.app/docs/useStackState\n */function useStackState(o){const[r,s]=e([...o]);const u=r.length;const c=t((()=>{const e=[...r];e.reverse();return e}),[r]);const i=n((e=>{const n=[...r,e];s(n);return n.length}),[r]);const l=n((()=>{if(r.length>0){const e=r[r.length-1];s([...r.slice(0,r.length-1)]);return e}}),[r]);const a=n((()=>{if(r.length>0)return r[r.length-1]}),[r]);const clear=()=>s([]);const d=n((()=>0===r.length),[r]);const f={clear:clear,isEmpty:d,length:u,peek:a,pop:l,push:i};return[r,f,c]}const isFunction=e=>\"function\"===typeof e;const isNumber=e=>\"number\"===typeof e;const getSplitIndex=(e,n)=>{let t=e>0?e-1:n.length+e;t>=n.length-1&&(t=n.length-1);t<0&&(t=0);return t};const split=(e,n)=>{const t=getSplitIndex(e,n);return{_current:n[t],_before:n.slice(0,t),_after:n.slice(t+1)}};\n/**\n * useTimeTravelState\n * @description A hook that manages state which can undo and redo. A more powerful version of useUndoState hook.\n * @see {@link https://rooks.vercel.app/docs/useTimeTravelState}\n * @param initialValue The initial value of the state.\n * @returns {UseTimeTravelStateReturnValue}\n * @example\n * const [value, setValue, controls] = useTimeTravelState(0);\n * setValue(1);\n * setValue(2);\n * setValue(3);\n * controls.back(); // value === 2\n * controls.back(); // value === 1\n * controls.forward(); // value === 2\n * controls.forward(); // value === 3\n * controls.reset(); // value === 0\n * controls.reset(5); // value === 5\n * controls.back(2); // value === 3\n *\n * setValue(1);\n * setValue(2);\n * setValue(6, { overwriteLastEntry: true });\n * setValue(7, { overwriteLastEntry: true });\n *\n * controls.back(2); // value === 1\n *\n */function useTimeTravelState(o){const[r,u]=e({present:o,past:[],future:[]});const{present:c,past:i,future:l}=r;const a=s(o);const d=n((e=>{const n=null!==e&&void 0!==e?e:a.current;a.current=n;u({present:n,future:[],past:[]})}),[a,u]);const f=n(((e,n)=>{u((t=>{const{past:o,present:r}=t;const{overwriteLastEntry:s=false}=n||{};let u;u=isFunction(e)?e(r):e;return s?{present:u,past:o,future:[]}:{present:u,future:[],past:[...o,r]}}))}),[]);const g=n(((e=1)=>{u((n=>{const{future:t,past:o,present:r}=n;if(0===t.length)return n;const{_before:s,_current:u,_after:c}=split(e,t);return{past:[...o,r,...s],present:u,future:c}}))}),[]);const v=n(((e=-1)=>{u((n=>{const{future:t,past:o,present:r}=n;if(0===o.length)return n;const{_before:s,_current:u,_after:c}=split(e,o);return{past:s,present:u,future:[...c,r,...t]}}))}),[]);const w=n((e=>{const n=isNumber(e)?e:Number(e);if(0!==n){if(n>0)return g(n);v(n)}}),[v,g]);const m=n((()=>{w(-1)}),[w]);const h=n((()=>{w(1)}),[w]);const p=t((()=>i.length>0),[i.length]);const E=t((()=>l.length>0),[l.length]);const y=t((()=>({backLength:i.length,forwardLength:l.length,go:w,back:m,forward:h,reset:d,undo:m,redo:h,canUndo:p,canRedo:E})),[m,E,p,h,l.length,w,i.length,d]);const b=t((()=>[c,f,y]),[y,c,f]);return b}\n/**\n * useThrottle\n * Throttles a function with a timeout and ensures\n * that the callback function runs at most once in that duration\n *\n * @param callback The callback to throttle\n * @param timeout Throttle timeout\n * @returns [Callback, isReady] The throttled callback and if it is currently throttled\n * @see https://rooks.vercel.app/docs/useThrottle\n */function useThrottle(t,r=300){const[u,c]=e(true);const i=s(void 0);const l=n(((...e)=>{if(u){c(false);t(...e)}}),[u,t]);o((()=>{if(!u){i.current=window.setTimeout((()=>{c(true)}),r);return()=>window.clearTimeout(i.current)}return noop}),[u,r]);return[l,u]}\n/**\n * A setTimeout hook that calls a callback after a timeout duration\n * when a condition is true\n *\n * @param callback The callback to be invoked after timeout\n * @param timeoutDelayMs Amount of time in ms after which to invoke\n * @param when The condition which when true, sets the timeout\n * @see https://rooks.vercel.app/docs/useTimeoutWhen\n */function useTimeoutWhen(e,n=0,t=true){const r=s();o((()=>{r.current=e}));function internalCallback(){var e;null===(e=r.current)||void 0===e?void 0:e.call(r)}o((()=>{if(t){if(\"undefined\"!==typeof window){const e=window.setTimeout(internalCallback,n);return()=>{window.clearTimeout(e)}}console.warn(\"useTimeoutWhen: window is undefined.\")}return noop}),[n,t])}const defaultToggleFunction=e=>!e\n/**\n * Use toggle hook helps you easily toggle a value\n *\n * @param initialValue Initial value of the toggle, which will be false if not provided.\n * @param toggleFunction A toggle function. This allows for non boolean toggles\n * @example\n * const [value, toggle] = useToggle(\"on\", _value => _value === \"on\" ? \"off\" : \"on\");\n * // value is \"on\"\n * // toggle() will change value to \"off\". Calling it again will change value to \"on\".\n */;function useToggle(e=false,n=defaultToggleFunction){return u(n,e)}const R={maxSize:100};\n/**\n * useUndoState hook\n * Drop in replacement for useState hook but with undo functionality.\n *\n * @typedef UndoStateOptions\n * @type {object}\n * @property {number} maxSize - Maximum number of states to keep in the undo stack.\n * @param {any} defaultValue - Default value to use for the state. This will be the first value in the undo stack.\n * @param {UseUndoStateOptions} options - Options for the undo state. Currently takes the maxSize option.\n * @returns {UseUndoStateReturnValue}\n * @see https://rooks.vercel.app/docs/useUndoState\n */const useUndoState=(o,r)=>{const{maxSize:s}=t((()=>Object.assign(Object.assign({},R),r)),[r]);const[u,c]=e([o]);const i=n((e=>c((n=>{const t=n.length>=s?n.slice(0,s):n;return\"function\"===typeof e?[e(n[0]),...t]:[e,...t]}))),[s]);const l=n((()=>{c((e=>{if(1===e.length)return e;const[,...n]=e;return n}))}),[]);const a=t((()=>[u[0],i,l]),[i,l,u]);return a};function computeScrollPosition(){return\"undefined\"===typeof window?{scrollX:0,scrollY:0}:{scrollX:window.scrollX||window.pageXOffset,scrollY:window.scrollY||window.pageYOffset}}\n/**\n *\n * useWindowScrollPosition hook\n * A React hook to get the scroll position of the window\n *\n * @returns an object containing scrollX and scrollY values\n * @see https://rooks.vercel.app/docs/useWindowScrollPosition\n */function useWindowScrollPosition(){const[n,t]=e(computeScrollPosition);useOnWindowScroll((()=>{t(computeScrollPosition())}),true,true);useOnWindowResize((()=>{t(computeScrollPosition())}),true,true);return n}const F={innerHeight:null,innerWidth:null,outerHeight:null,outerWidth:null};function getDimensions(){return{innerHeight:window.innerHeight,innerWidth:window.innerWidth,outerHeight:window.outerHeight,outerWidth:window.outerWidth}}\n/**\n * useWindowSize hook\n * A hook that provides information of the dimensions of the window\n *\n * @returns Dimensions of the window\n * @see https://rooks.vercel.app/docs/useWindowSize\n */function useWindowSize(){const[n,t]=e((()=>\"undefined\"===typeof window?F:getDimensions()));function onResize(){t(getDimensions())}l((()=>{if(\"undefined\"===typeof window)return()=>{};window.addEventListener(\"resize\",onResize);return()=>{window.removeEventListener(\"resize\",onResize)}}),[]);return n}export{useArrayState,useAsyncEffect,useBoundingclientrect,useBoundingclientrectRef,useCountdown,useCounter,useDebounce,useDebouncedValue,useDidMount,useDidUpdate,useDimensionsRef,useDocumentEventListener,useDocumentVisibilityState,useEffectOnceWhen,useEventListenerRef,useFocus,useFocusWithin,useForkRef,useFreshRef,useFreshTick,useFullscreen,useGeolocation,useGetIsMounted,useInViewRef,useInput,useIntersectionObserverRef,useIntervalWhen,l as useIsomorphicEffect,useKey,useKeyBindings,useKeyRef,useKeys,useLifecycleLogger,useLocalstorageState,useMapState,useMediaMatch,useMergeRefs,useMouse,useMultiSelectableList,useMutationObserver,useMutationObserverRef,useNavigatorLanguage,useOnWindowResize,useOnWindowScroll,useOnline,useOutsideClick,useOutsideClickRef,usePreviousDifferent,usePreviousImmediate,useQueueState,useRaf,useRefElement,useRenderCount,useResizeObserverRef,useSelect,useSelectableList,useSessionstorageState,useSetState,useStackState,useThrottle,useTimeTravelState,useTimeoutWhen,useToggle,useUndoState,useWillUnmount,useWindowEventListener,useWindowScrollPosition,useWindowSize};\n\n//# sourceMappingURL=index.js.map", "import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { useEffect, useRef } from \"react\";\nimport Icon_arrowCiricle_right from \"https://framerusercontent.com/modules/LiIaxQm82z9FgQEg6lsV/0Xgbp2tnLcczyON3wdQK/Guaq5zbHP.js\";\nimport { useState } from \"react\";\nimport { useInViewRef, useMergeRefs } from \"rooks\";\nexport default function GenericWaitlistEmailInputForm(props) {\n  const {\n    isMobile,\n    shouldAutoFocus\n  } = props;\n  const [email, setEmail] = useState();\n  const [isInvalidEmail, setIsInvalidEmail] = useState(false);\n  const forumRef = useRef(null);\n  const [message, setMessage] = useState(\"\");\n  const [isSubmitting, setIsSubmitting] = useState(false);\n  const [myRef, inView] = useInViewRef();\n  const refs = useMergeRefs(forumRef, myRef);\n  useEffect(() => {\n    var ref;\n    const parsedURL = new URL(window.location.href);\n    if ((parsedURL === null || parsedURL === void 0 ? void 0 : (ref = parsedURL.search) === null || ref === void 0 ? void 0 : ref.includes(\"waitlist\")) || parsedURL.hash === \"#signup\") {\n      const firstElem = document.querySelector(\".waitlistForm\");\n      if (firstElem !== forumRef.current) {\n        return;\n      }\n    }\n  }, [inView]); // const buttonLabel = isSubmitting ? (\n  //     <__LoadingSpinner />\n  // ) : (\n  //     <>\n  //         Get early access\n  //         <Icon_arrowCiricle_right />\n  //     </>\n  // )\n  const buttonLabel = /*#__PURE__*/_jsxs(_Fragment, {\n    children: [\"Sign up today\", /*#__PURE__*/_jsx(\"div\", {\n      style: {\n        position: \"relative\",\n        top: 1\n      },\n      children: /*#__PURE__*/_jsx(Icon_arrowCiricle_right, {})\n    })]\n  });\n  return /*#__PURE__*/_jsxs(_Fragment, {\n    children: [/*#__PURE__*/_jsx(\"style\", {\n      children: css\n    }), /*#__PURE__*/_jsx(\"form\", {\n      ref: refs,\n      className: `waitlistForm`,\n      onSubmit: async evt => {\n        evt.preventDefault();\n        evt.stopPropagation(); // if (isSubmitting) {\n        //     return\n        // }\n        setIsSubmitting(true);\n        const redirectURL = await __onJoinWaitlist();\n        if (redirectURL.includes(\"/waitlist/pending\")) {\n          setMessage(\"Looks like you\u2019re already on the list!\");\n          setIsSubmitting(false);\n          return;\n        } else if (redirectURL.includes(\"/waitlist/accepted\")) {\n          setMessage(\"Looks like you\u2019re already accepted!\");\n          setIsSubmitting(false);\n          return;\n        }\n        window.location.href = redirectURL;\n      },\n      style: {\n        flex: 1,\n        display: \"flex\",\n        flexDirection: isMobile ? \"column\" : \"row\",\n        justifyContent: \"center\",\n        alignItems: \"center\",\n        padding: \"4px 4px 4px 4px\",\n        backgroundColor: \"rgba(161, 138, 255, 0.24)\",\n        position: \"relative\",\n        alignContent: \"center\",\n        flexWrap: \"nowrap\",\n        borderRadius: 12,\n        gap: 12,\n        border: \"1px solid rgba(255, 255, 255, 0.1)\",\n        marginBottom: 24,\n        width: 204,\n        marginLeft: \"auto\",\n        marginRight: \"auto\",\n        marginTop: 10\n      },\n      children: /*#__PURE__*/_jsx(\"button\", {\n        className: \"brandBtn\",\n        style: {\n          display: \"flex\",\n          flexDirection: \"row\",\n          paddingTop: 12,\n          paddingBottom: 12,\n          paddingRight: 12,\n          // paddingLeft: isSubmitting ? 12 : 20,\n          paddingLeft: 20,\n          boxShadow: \"inset 0px 0px 0px 1px rgba(255, 255, 255, 0.1)\",\n          position: \"relative\",\n          alignContent: \"center\",\n          flexWrap: \"nowrap\",\n          gap: 8,\n          borderRadius: 8,\n          fontWeight: 600,\n          fontFamily: `\"system-ui\", \"-apple-system\", \"BlinkMacSystemFont\", \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif, \"System Default\", serif`,\n          color: \"#efeff1\",\n          fontSize: 16,\n          lineHeight: \"24px\",\n          textAlign: \"center\",\n          border: \"none\",\n          alignItems: \"center\",\n          justifyContent: \"center\",\n          flexShrink: 0,\n          width: isMobile ? \"-webkit-fill-available\" : \"auto\",\n          cursor: \"pointer\",\n          minWidth: 194,\n          maxWidth: 194,\n          minHeight: 52\n        },\n        children: buttonLabel\n      })\n    })]\n  });\n}\n;\nfunction getQueryParam(paramName) {\n  // Check if window and URLSearchParams are available\n  if (typeof window !== \"undefined\" && \"URLSearchParams\" in window) {\n    // Get the current URL and parse its query parameters\n    const url = new URL(window.location.href);\n    const searchParams = new URLSearchParams(url.search); // Check if the requested parameter exists\n    if (searchParams.has(paramName)) {\n      return searchParams.get(paramName);\n    }\n  } // Return undefined if the requested parameter doesn't exist or window and URLSearchParams are not available\n  return undefined;\n}\nconst __onJoinWaitlist = async () => {\n  const referrer = window.location.pathname === \"/ai\" ? \"ai\" : undefined;\n  const response = await fetch(\"https://threads.com/api/joinWaitlist\", {\n    headers: {\n      accept: \"*/*\",\n      \"accept-language\": \"en-US,en;q=0.9\",\n      \"content-type\": \"application/json\",\n      \"sec-fetch-dest\": \"empty\",\n      \"sec-fetch-mode\": \"cors\",\n      \"sec-fetch-site\": \"same-origin\"\n    },\n    referrerPolicy: \"strict-origin-when-cross-origin\",\n    body: JSON.stringify({\n      referrer,\n      utm_source: getQueryParam(\"utm_source\"),\n      utm_campaign: getQueryParam(\"utm_campaign\"),\n      utm_term: getQueryParam(\"utm_term\"),\n      utm_medium: getQueryParam(\"utm_medium\"),\n      utm_content: getQueryParam(\"utm_content\"),\n      href: window.location.href\n    }),\n    method: \"POST\",\n    mode: \"cors\",\n    credentials: \"include\"\n  });\n  const data = await response.json();\n  const result = data.result;\n  const redirectURL = result === null || result === void 0 ? void 0 : result.redirectURL;\n  return redirectURL;\n};\nfunction __LoadingSpinner() {\n  return /*#__PURE__*/_jsxs(\"svg\", {\n    className: \"rotating\",\n    width: 24,\n    height: 24,\n    viewBox: \"0 0 24 24\",\n    fill: \"none\",\n    children: [/*#__PURE__*/_jsx(\"path\", {\n      vectorEffect: \"non-scaling-stroke\",\n      fillRule: \"evenodd\",\n      clipRule: \"evenodd\",\n      d: \"M12 4a8 8 0 100 16 8 8 0 000-16zM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12z\",\n      fill: \"hsla(225, 7%, 88%, 0.15)\"\n    }), /*#__PURE__*/_jsx(\"path\", {\n      vectorEffect: \"non-scaling-stroke\",\n      fillRule: \"evenodd\",\n      clipRule: \"evenodd\",\n      d: \"M12 4a8 8 0 00-8 8 1 1 0 11-2 0C2 6.477 6.477 2 12 2a1 1 0 110 2z\",\n      fill: \"hsla(225, 7%, 88%, 1)\"\n    })]\n  });\n}\nconst css = `\n    .framerInput::placeholder {\n        color: rgba(255, 255, 255, 0.6);\n    }\n    .brandBtn {\n        background: linear-gradient(180deg, #896EFD 0%, #6B4AFC 100%);\n    }\n    .brandBtn:hover {\n        background: linear-gradient(180deg, #6B4AFC 0%, #563BCA 100%);\n    }\n    .waitlistForm {\n        box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.08), inset 0px 0px 0px 1px rgba(0, 0, 0, 0.11999999731779099);\n        box-shadow: 0px 0px 4px #E595FF, 0px 0px 48px rgba(130, 26, 250, 0.5);\n    }\n    .waitlistForm.invalidEmail, .waitlistForm.invalidEmail:focus-within {\n        box-shadow: 0px 0px 4px #FF9595, 0px 0px 48px rgba(223, 0, 0, 0.4);\n    }\n    @-webkit-keyframes rotating /* Safari and Chrome */ {\n          from {\n            -webkit-transform: rotate(0deg);\n            -o-transform: rotate(0deg);\n            transform: rotate(0deg);\n          }\n          to {\n            -webkit-transform: rotate(360deg);\n            -o-transform: rotate(360deg);\n            transform: rotate(360deg);\n          }\n        }\n        @keyframes rotating {\n          from {\n            -ms-transform: rotate(0deg);\n            -moz-transform: rotate(0deg);\n            -webkit-transform: rotate(0deg);\n            -o-transform: rotate(0deg);\n            transform: rotate(0deg);\n          }\n          to {\n            -ms-transform: rotate(360deg);\n            -moz-transform: rotate(360deg);\n            -webkit-transform: rotate(360deg);\n            -o-transform: rotate(360deg);\n            transform: rotate(360deg);\n          }\n        }\n        .rotating {\n          -webkit-animation: rotating 2s linear infinite;\n          -moz-animation: rotating 2s linear infinite;\n          -ms-animation: rotating 2s linear infinite;\n          -o-animation: rotating 2s linear infinite;\n          animation: rotating 2s linear infinite;\n        }\n`;\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"GenericWaitlistEmailInputForm\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./GenericWaitlistEmailInputForm.map", "import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { addPropertyControls, ControlType } from \"framer\";\nimport GenericWaitlistEmailInputForm from \"https://framerusercontent.com/modules/Az7WuXVTCVIHTNTrce7t/DJabNrqRxrNiZXLSGoD0/GenericWaitlistEmailInputForm.js\";\nexport default function DesktopWaitlistEmailInputForm(props) {\n  const {\n    shouldAutoFocus\n  } = props;\n  console.log(\"shouldAutoFocus\", shouldAutoFocus);\n  return /*#__PURE__*/_jsx(GenericWaitlistEmailInputForm, {\n    shouldAutoFocus: shouldAutoFocus\n  });\n}\n;\naddPropertyControls(DesktopWaitlistEmailInputForm, {\n  shouldAutoFocus: {\n    title: \"shouldAutoFocus\",\n    type: ControlType.Boolean,\n    defaultValue: false\n  }\n});\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"default\": {\n      \"type\": \"reactComponent\",\n      \"name\": \"DesktopWaitlistEmailInputForm\",\n      \"slots\": [],\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};"],
  "mappings": "yUAKA,IAAMA,GAAa,CAAC,WAAW,EACzBC,GAAoB,CACxB,UAAW,iBACb,EAMA,IAAMC,GAA0B,CAAC,EAC3BC,GAAc,CAClB,QAAS,CACP,QAAS,GACT,MAAO,EACP,SAAU,GACV,KAAM,CAAC,IAAK,EAAG,IAAK,CAAC,EACrB,KAAM,EACN,UAAW,IACX,KAAM,QACR,CACF,EACMC,GAAS,iEACf,SAASC,IAAc,CACrB,IAAMC,EAAYC,EAAO,IAAI,EAC7B,OAAID,EAAI,UAAY,OAClBA,EAAI,QAAU,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,IAAI,IAAMF,GAAO,KAAK,MAAM,KAAK,OAAO,EAAIA,GAAO,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,GAE9FE,EAAI,OACb,CACA,IAAME,GAA+BC,GAAW,SAAU,CACxD,GAAAC,EACA,MAAOC,EAAgB,CAAC,EACxB,UAAAC,EACA,MAAAC,EACA,OAAAC,EACA,SAAAC,EACA,QAASC,EAAe,YACxB,GAAGC,CACL,EAAGX,EAAK,CAEN,IAAMY,EADiBhB,GAAwBc,CAAY,GACzBA,EAC5B,CACJ,YAAAG,EACA,WAAAC,EACA,eAAAC,EACA,gBAAAC,EACA,WAAAC,EACA,WAAAC,EACA,SAAAC,CACF,EAAIC,GAAgB,CAClB,WA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AA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EC1LG,SAARC,GAA+CC,EAAO,CAC3D,GAAM,CACJ,gBAAAC,CACF,EAAID,EACJ,eAAQ,IAAI,kBAAmBC,CAAe,EAC1BC,EAAKC,EAA+B,CACtD,gBAAiBF,CACnB,CAAC,CACH,CAEAG,GAAoBL,GAA+B,CACjD,gBAAiB,CACf,MAAO,kBACP,KAAMM,GAAY,QAClB,aAAc,EAChB,CACF,CAAC",
  "names": ["cycleOrder", "variantClassNames", "humanReadableVariantMap", "transitions", "BASE62", "useRandomID", "ref", "pe", "Component", "Y", "id", "externalStyle", "className", "width", "height", "layoutId", "outerVariant", "restProps", "variant", "baseVariant", "classNames", "gestureVariant", "setGestureState", "setVariant", "transition", "variants", "useVariantState", "cycleOrder", "variantClassNames", "layoutDependency", "defaultLayoutId", "pointerEvents", "style", "p", "LayoutGroup", "motion", "cx", "SVG", "css", "FramerGuaq5zbHP", "withCSS", "Guaq5zbHP_default", "addFonts", "e", "global", "t", "n", "i", "r", "o", "u", "a", "f", "c", "v", "l", "d", "s", "b", "p", "m", "now", "debounce", "toNumber", "isObject", "invokeFunc", "leadingEdge", "timerExpired", "remainingWait", "shouldInvoke", "trailingEdge", "cancel", "flush", "debounced", "isObjectLike", "isSymbol", "n", "r", "empty_js_0_1_default", "o", "f", "u", "e", "t", "performance_now_default", "n", "global", "a", "l", "performance_now_default", "t", "window", "c", "o", "r", "i", "f", "u", "d", "s", "h", "e", "p", "a", "v", "noop", "g", "warning", "printWarning", "e", "m", "E", "useInViewRef", "t", "r", "s", "u", "c", "i", "l", "ye", "a", "d", "ue", "e", "n", "noop", "te", "setRef", "n", "useMergeRefs", "se", "e", "t", "GenericWaitlistEmailInputForm", "props", "isMobile", "shouldAutoFocus", "email", "setEmail", "ye", "isInvalidEmail", "setIsInvalidEmail", "forumRef", "pe", "message", "setMessage", "isSubmitting", "setIsSubmitting", "myRef", "inView", "useInViewRef", "refs", "useMergeRefs", "ue", "ref", "parsedURL", "window", "u", "l", "p", "css", "evt", "redirectURL", "__onJoinWaitlist", "Guaq5zbHP_default", "getQueryParam", "paramName", "url", "searchParams", "referrer", "result", "css", "DesktopWaitlistEmailInputForm", "props", "shouldAutoFocus", "p", "GenericWaitlistEmailInputForm", "addPropertyControls", "ControlType"]
}
