"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/use-sync-external-store-with-selector.production.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t,u=r(require("react"));
/**
 * @license React
 * use-sync-external-store-with-selector.production.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(){if(t)return e.__exports;t=1;var r=u.default,n="function"==typeof Object.is?Object.is:function(e,r){return e===r&&(0!==e||1/e==1/r)||e!=e&&r!=r},i=r.useSyncExternalStore,o=r.useRef,l=r.useEffect,a=r.useMemo,c=r.useDebugValue;return e.__exports.useSyncExternalStoreWithSelector=function(e,r,t,u,f){var s=o(null);if(null===s.current){var v={hasValue:!1,value:null};s.current=v}else v=s.current;s=a((function(){function e(e){if(!l){if(l=!0,i=e,e=u(e),void 0!==f&&v.hasValue){var r=v.value;if(f(r,e))return o=r}return o=e}if(r=o,n(i,e))return r;var t=u(e);return void 0!==f&&f(r,t)?(i=e,r):(i=e,o=t)}var i,o,l=!1,a=void 0===t?null:t;return[function(){return e(r())},null===a?void 0:function(){return e(a())}]}),[r,t,u,f]);var _=i(e,s[0],s[1]);return l((function(){v.hasValue=!0,v.value=_}),[_]),c(_),_},e.__exports};
//# sourceMappingURL=use-sync-external-store-with-selector.production.js.map
