import{t as e}from"./rolldown-runtime-Cyuzqnbw.js";import{a as t}from"./vendor-datadog-Bq_0f1ke.js";function n(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var r=typeof Symbol==`function`&&Symbol.observable||`@@observable`,i=()=>Math.random().toString(36).substring(7).split(``).join(`.`),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function o(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function s(e,t,i){if(typeof e!=`function`)throw Error(n(2));if(typeof t==`function`&&typeof i==`function`||typeof i==`function`&&typeof arguments[3]==`function`)throw Error(n(0));if(typeof t==`function`&&i===void 0&&(i=t,t=void 0),i!==void 0){if(typeof i!=`function`)throw Error(n(1));return i(s)(e,t)}let c=e,l=t,u=new Map,d=u,f=0,p=!1;function m(){d===u&&(d=new Map,u.forEach((e,t)=>{d.set(t,e)}))}function h(){if(p)throw Error(n(3));return l}function g(e){if(typeof e!=`function`)throw Error(n(4));if(p)throw Error(n(5));let t=!0;m();let r=f++;return d.set(r,e),function(){if(t){if(p)throw Error(n(6));t=!1,m(),d.delete(r),u=null}}}function _(e){if(!o(e))throw Error(n(7));if(e.type===void 0)throw Error(n(8));if(typeof e.type!=`string`)throw Error(n(17));if(p)throw Error(n(9));try{p=!0,l=c(l,e)}finally{p=!1}return(u=d).forEach(e=>{e()}),e}function v(e){if(typeof e!=`function`)throw Error(n(10));c=e,_({type:a.REPLACE})}function y(){let e=g;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(n(11));function r(){let e=t;e.next&&e.next(h())}return r(),{unsubscribe:e(r)}},[r](){return this}}}return _({type:a.INIT}),{dispatch:_,subscribe:g,getState:h,replaceReducer:v,[r]:y}}function c(e){Object.keys(e).forEach(t=>{let r=e[t];if(r(void 0,{type:a.INIT})===void 0)throw Error(n(12));if(r(void 0,{type:a.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(n(13))})}function l(e){let t=Object.keys(e),r={};for(let n=0;n<t.length;n++){let i=t[n];typeof e[i]==`function`&&(r[i]=e[i])}let i=Object.keys(r),a;try{c(r)}catch(e){a=e}return function(e={},t){if(a)throw a;let o=!1,s={};for(let a=0;a<i.length;a++){let c=i[a],l=r[c],u=e[c],d=l(u,t);if(d===void 0)throw t&&t.type,Error(n(14));s[c]=d,o||=d!==u}return o||=i.length!==Object.keys(e).length,o?s:e}}function u(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if(typeof e==`function`)return u(e,t);if(typeof e!=`object`||!e)throw Error(n(16));let r={};for(let n in e){let i=e[n];typeof i==`function`&&(r[n]=u(i,t))}return r}function f(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function p(...e){return t=>(r,i)=>{let a=t(r,i),o=()=>{throw Error(n(15))},s={getState:a.getState,dispatch:(e,...t)=>o(e,...t)};return o=f(...e.map(e=>e(s)))(a.dispatch),{...a,dispatch:o}}}function m(e){return o(e)&&`type`in e&&typeof e.type==`string`}var h=e((e=>{var n=t();n.useSyncExternalStore,n.useRef,n.useEffect,n.useMemo,n.useDebugValue})),g=e(((e,t)=>{t.exports=h()}));export{f as a,o as c,l as i,p as n,s as o,d as r,m as s,g as t};
//# sourceMappingURL=with-selector-DZDEkpbZ.js.map