Module 341221

1,080 characters · in no known chunk
Dependencies
Lazily required by (0)none
Requires (1)
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{Cc:()=>d,wR:()=>h});var r=n(64700);let i={prefix:String(Math.round(1e10*Math.random())),current:0},s=r.createContext(i),a=r.createContext(!1);"u">typeof window&&window.document&&window.document.createElement;let o=new WeakMap;function l(e=!1){let t=(0,r.useContext)(s),n=(0,r.useRef)(null);if(null===n.current&&!e){var i,a;let e=null==(a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||null==(i=a.ReactCurrentOwner)?void 0:i.current;if(e){let n=o.get(e);null==n?o.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,o.delete(e))}n.current=++t.current}return n.current}function u(e){let t=(0,r.useContext)(s),n=l(!!e),i=`react-aria${t.prefix}`;return e||`${i}-${n}`}function c(e){let t=r.useId(),[n]=(0,r.useState)(h()),s=n?"react-aria":`react-aria${i.prefix}`;return e||`${s}-${t}`}let d="function"==typeof r.useId?c:u;function _(){return!1}function f(){return!0}function p(e){return()=>{}}function h(){return"function"==typeof r.useSyncExternalStore?r.useSyncExternalStore(p,_,f):(0,r.useContext)(a)}}