import{i as e,n as t}from"./isSymbol.CmW3dkoN.js";import{r as n}from"./toString.tRXNBxtF.js";import{r}from"./isArrayLike.Crw2F5li.js";import{C as i,E as a,_ as o,d as s,i as c,o as l,r as u}from"./isArrayLikeObject.B3Zf3PTL.js";var d=`__lodash_hash_undefined__`;function f(e){return this.__data__.set(e,d),this}function p(e){return this.__data__.has(e)}function m(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new o;++t<n;)this.add(e[t])}m.prototype.add=m.prototype.push=f,m.prototype.has=p;function h(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function g(e,t){return e.has(t)}var _=1,v=2;function y(e,t,n,r,i,a){var o=n&_,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&v?new m:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var y=e[d],b=t[d];if(r)var x=o?r(b,y,d,t,e,a):r(y,b,d,e,t,a);if(x!==void 0){if(x)continue;f=!1;break}if(p){if(!h(t,function(e,t){if(!g(p,t)&&(y===e||i(y,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(y===b||i(y,b,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function b(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function x(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var S=1,C=2,w=`[object Boolean]`,T=`[object Date]`,E=`[object Error]`,D=`[object Map]`,O=`[object Number]`,k=`[object RegExp]`,A=`[object Set]`,j=`[object String]`,M=`[object Symbol]`,N=`[object ArrayBuffer]`,P=`[object DataView]`,F=e?e.prototype:void 0,I=F?F.valueOf:void 0;function L(e,t,n,i,a,o,s){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N:return!(e.byteLength!=t.byteLength||!o(new u(e),new u(t)));case w:case T:case O:return r(+e,+t);case E:return e.name==t.name&&e.message==t.message;case k:case j:return e==t+``;case D:var c=b;case A:var l=i&S;if(c||=x,e.size!=t.size&&!l)return!1;var d=s.get(e);if(d)return d==t;i|=C,s.set(e,t);var f=y(c(e),c(t),i,a,o,s);return s.delete(e),f;case M:if(I)return I.call(e)==I.call(t)}return!1}var R=1,z=Object.prototype.hasOwnProperty;function B(e,t,n,r,i,a){var o=n&R,s=l(e),c=s.length;if(c!=l(t).length&&!o)return!1;for(var u=c;u--;){var d=s[u];if(!(o?d in t:z.call(t,d)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var h=o;++u<c;){d=s[u];var g=e[d],_=t[d];if(r)var v=o?r(_,g,d,t,e,a):r(g,_,d,e,t,a);if(!(v===void 0?g===_||i(g,_,n,r,a):v)){m=!1;break}h||=d==`constructor`}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return a.delete(e),a.delete(t),m}var V=1,H=`[object Arguments]`,U=`[object Array]`,W=`[object Object]`,G=Object.prototype.hasOwnProperty;function K(e,t,r,o,l,u){var d=n(e),f=n(t),p=d?U:c(e),m=f?U:c(t);p=p==H?W:p,m=m==H?W:m;var h=p==W,g=m==W,_=p==m;if(_&&a(e)){if(!a(t))return!1;d=!0,h=!1}if(_&&!h)return u||=new s,d||i(e)?y(e,t,r,o,l,u):L(e,t,p,r,o,l,u);if(!(r&V)){var v=h&&G.call(e,`__wrapped__`),b=g&&G.call(t,`__wrapped__`);if(v||b){var x=v?e.value():e,S=b?t.value():t;return u||=new s,l(x,S,r,o,u)}}return _?(u||=new s,B(e,t,r,o,l,u)):!1}function q(e,n,r,i,a){return e===n?!0:e==null||n==null||!t(e)&&!t(n)?e!==e&&n!==n:K(e,n,r,i,q,a)}export{m as i,x as n,g as r,q as t};