"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/use-sync-external-store-with-selector.development.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t,n=r(require("react"));
/**
 * @license React
 * use-sync-external-store-with-selector.development.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */exports.__require=function(){return t||(t=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=n.default,t="function"==typeof Object.is?Object.is:function(e,r){return e===r&&(0!==e||1/e==1/r)||e!=e&&r!=r},u=r.useSyncExternalStore,_=r.useRef,o=r.useEffect,i=r.useMemo,l=r.useDebugValue;e.__exports.useSyncExternalStoreWithSelector=function(e,r,n,a,O){var f=_(null);if(null===f.current){var c={hasValue:!1,value:null};f.current=c}else c=f.current;f=i((function(){function e(e){if(!o){if(o=!0,u=e,e=a(e),void 0!==O&&c.hasValue){var r=c.value;if(O(r,e))return _=r}return _=e}if(r=_,t(u,e))return r;var n=a(e);return void 0!==O&&O(r,n)?(u=e,r):(u=e,_=n)}var u,_,o=!1,i=void 0===n?null:n;return[function(){return e(r())},null===i?void 0:function(){return e(i())}]}),[r,n,a,O]);var s=u(e,f[0],f[1]);return o((function(){c.hasValue=!0,c.value=s}),[s]),l(s),s},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),e.__exports};
//# sourceMappingURL=use-sync-external-store-with-selector.development.js.map
