import{Dt as e,Ot as t,kt as n}from"./BA99CCI5.js";import"./D7pSEO6W.js";var r=n(null),i=n({}),a=n(!1),o=n(!1),s=null;function c(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e===null||t===null)return e===t;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>c(e,t[n]));if(typeof e==`object`&&typeof t==`object`){let n=e,r=t,i=Object.keys(n),a=Object.keys(r);return i.length===a.length&&i.every(e=>c(n[e],r[e]))}return!1}var l=e([r,i,a],([e,t,n])=>n?!0:!c(e,t)),u=i,d=o;function f(e){a.set(!1),r.set(structuredClone(e)),i.set(structuredClone(e))}function p(e){a.set(!1),r.set(structuredClone(e)),i.set(structuredClone(e))}function m(e,t){i.update(n=>({...n,[e]:t}))}function h(e){a.set(!1),r.set(structuredClone(e)),i.set(structuredClone(e))}function g(){a.set(!1);let e={};r.set(e),i.set(e)}function _(){return t(l)?(o.set(!0),new Promise(e=>{s=e})):Promise.resolve(!0)}function v(){o.set(!1),a.set(!1),i.update(e=>(r.set(structuredClone(e)),e)),s&&=(s(!0),null)}function y(){o.set(!1),s&&=(s(!1),null)}export{u as a,l as c,m as d,_ as i,h as l,g as n,p as o,v as r,f as s,y as t,d as u};