import{g as t}from"./es-toolkit-DjuajZ5e.js";import{b as e}from"./react-Blzc5Mwu.js";var n,r,u,o,i={exports:{}},a={},c={exports:{}},s={};function f(){return r||(r=1,c.exports=function(){if(n)return s;n=1;var t=e(),r="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},u=t.useState,o=t.useEffect,i=t.useLayoutEffect,a=t.useDebugValue;function c(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!r(t,n)}catch(u){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=u({inst:{value:n,getSnapshot:e}}),s=r[0].inst,f=r[1];return i(function(){s.value=n,s.getSnapshot=e,c(s)&&f({inst:s})},[t,n,e]),o(function(){return c(s)&&f({inst:s}),t(function(){c(s)&&f({inst:s})})},[t]),a(n),n};return s.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:f,s}()),c.exports}
/**
 * @license React
 * use-sync-external-store-shim/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.
 */var l=(o||(o=1,i.exports=function(){if(u)return a;u=1;var t=e(),n=f(),r="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=n.useSyncExternalStore,i=t.useRef,c=t.useEffect,s=t.useMemo,l=t.useDebugValue;return a.useSyncExternalStoreWithSelector=function(t,e,n,u,a){var f=i(null);if(null===f.current){var v={hasValue:!1,value:null};f.current=v}else v=f.current;f=s(function(){function t(t){if(!c){if(c=!0,o=t,t=u(t),void 0!==a&&v.hasValue){var e=v.value;if(a(e,t))return i=e}return i=t}if(e=i,r(o,t))return e;var n=u(t);return void 0!==a&&a(e,n)?(o=t,e):(o=t,i=n)}var o,i,c=!1,s=void 0===n?null:n;return[function(){return t(e())},null===s?void 0:function(){return t(s())}]},[e,n,u,a]);var p=o(t,f[0],f[1]);return c(function(){v.hasValue=!0,v.value=p},[p]),l(p),p},a}()),i.exports);const v=t(l);export{v as u};
