import e from "react";
var t = Object.prototype.hasOwnProperty;
function n(e, t, n) {
	for (n of e.keys()) if (r(n, t)) return n;
}
function r(e, i) {
	var a, o, s;
	if (e === i) return !0;
	if (e && i && (a = e.constructor) === i.constructor) {
		if (a === Date) return e.getTime() === i.getTime();
		if (a === RegExp) return e.toString() === i.toString();
		if (a === Array) {
			if ((o = e.length) === i.length) for (; o-- && r(e[o], i[o]););
			return o === -1;
		}
		if (a === Set) {
			if (e.size !== i.size) return !1;
			for (o of e) if (s = o, s && typeof s == "object" && (s = n(i, s), !s) || !i.has(s)) return !1;
			return !0;
		}
		if (a === Map) {
			if (e.size !== i.size) return !1;
			for (o of e) if (s = o[0], s && typeof s == "object" && (s = n(i, s), !s) || !r(o[1], i.get(s))) return !1;
			return !0;
		}
		if (a === ArrayBuffer) e = new Uint8Array(e), i = new Uint8Array(i);
		else if (a === DataView) {
			if ((o = e.byteLength) === i.byteLength) for (; o-- && e.getInt8(o) === i.getInt8(o););
			return o === -1;
		}
		if (ArrayBuffer.isView(e)) {
			if ((o = e.byteLength) === i.byteLength) for (; o-- && e[o] === i[o];);
			return o === -1;
		}
		if (!a || typeof e == "object") {
			for (a in o = 0, e) if (t.call(e, a) && ++o && !t.call(i, a) || !(a in i) || !r(e[a], i[a])) return !1;
			return Object.keys(i).length === o;
		}
	}
	return e !== e && i !== i;
}
function i(t) {
	let n = e.useRef(t), i = e.useRef(0);
	return r(t, n.current) || (n.current = t, i.current += 1), e.useMemo(() => n.current, [i.current]);
}
function a(t, n) {
	e.useEffect(t, i(n));
}
export { a as b };

//# sourceMappingURL=dist-web.B9SyKbzb.js.map