{"version":3,"sources":["jsdelivr-header.js","/npm/@chakra-ui/react-use-latest-ref@2.1.0/src/index.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,8iBCNA,YAAA,GAAA,SAAA,YAAA,CAAA,aAAA,IAAA,eAAA,OAAA,QAAA,aAAA,aAAA,IAAA,aAAuB,QAAA,SAQhB,SAAS,aAAgB,GAC9B,MAAM,GAAA,EAAM,aAAA,QAAiB,MAE7B,OADA,EAAI,QAAU,EACP,CACT","file":"/npm/@chakra-ui/react-use-latest-ref@2.1.0/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/@chakra-ui/react-use-latest-ref@2.1.0/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import { useRef } from \"react\"\n\n/**\n * React hook to persist any value between renders,\n * but keeps it up-to-date if it changes.\n *\n * @param value the value or function to persist\n */\nexport function useLatestRef<T>(value: T) {\n  const ref = useRef<T | null>(null)\n  ref.current = value\n  return ref as React.MutableRefObject<T>\n}\n"]}