//#region ../../node_modules/dequal/dist/index.mjs
var e = Object.prototype.hasOwnProperty;
function t(e, t, r) {
	for (r of e.keys()) if (n(r, t)) return r;
}
function n(r, i) {
	var a, o, s;
	if (r === i) return !0;
	if (r && i && (a = r.constructor) === i.constructor) {
		if (a === Date) return r.getTime() === i.getTime();
		if (a === RegExp) return r.toString() === i.toString();
		if (a === Array) {
			if ((o = r.length) === i.length) for (; o-- && n(r[o], i[o]););
			return o === -1;
		}
		if (a === Set) {
			if (r.size !== i.size) return !1;
			for (o of r) if (s = o, s && typeof s == "object" && (s = t(i, s), !s) || !i.has(s)) return !1;
			return !0;
		}
		if (a === Map) {
			if (r.size !== i.size) return !1;
			for (o of r) if (s = o[0], s && typeof s == "object" && (s = t(i, s), !s) || !n(o[1], i.get(s))) return !1;
			return !0;
		}
		if (a === ArrayBuffer) r = new Uint8Array(r), i = new Uint8Array(i);
		else if (a === DataView) {
			if ((o = r.byteLength) === i.byteLength) for (; o-- && r.getInt8(o) === i.getInt8(o););
			return o === -1;
		}
		if (ArrayBuffer.isView(r)) {
			if ((o = r.byteLength) === i.byteLength) for (; o-- && r[o] === i[o];);
			return o === -1;
		}
		if (!a || typeof r == "object") {
			for (a in o = 0, r) if (e.call(r, a) && ++o && !e.call(i, a) || !(a in i) || !n(r[a], i[a])) return !1;
			return Object.keys(i).length === o;
		}
	}
	return r !== r && i !== i;
}
//#endregion
export { n as dequal };

//# sourceMappingURL=index.js.map