import{z as R,i as O,F as d,a as x,d as c,g as E,x as L}from"./helpers.Ccl21t4W.js";import{b as g}from"./_baseIsEqual.Ipwc5MlE.js";import{k as I}from"./_getTag.C8a9uvOi.js";import{c as _,t as a,i as m,g as M,b as p}from"./get.25styALf.js";import{b as w}from"./_baseSet.CNpgKW96.js";var C=1,D=2;function F(n,r,t,u){var e=t.length,s=e;if(n==null)return!s;for(n=Object(n);e--;){var i=t[e];if(i[2]?i[1]!==n[i[0]]:!(i[0]in n))return!1}for(;++e<s;){i=t[e];var f=i[0],o=n[f],y=i[1];if(i[2]){if(o===void 0&&!(f in n))return!1}else{var P=new R,l;if(!(l===void 0?g(y,o,C|D,u,P):l))return!1}}return!0}function A(n){return n===n&&!O(n)}function G(n){for(var r=I(n),t=r.length;t--;){var u=r[t],e=n[u];r[t]=[u,e,A(e)]}return r}function h(n,r){return function(t){return t==null?!1:t[n]===r&&(r!==void 0||n in Object(t))}}function S(n){var r=G(n);return r.length==1&&r[0][2]?h(r[0][0],r[0][1]):function(t){return t===n||F(t,n,r)}}function v(n,r){return n!=null&&r in Object(n)}function U(n,r,t){r=_(r,n);for(var u=-1,e=r.length,s=!1;++u<e;){var i=a(r[u]);if(!(s=n!=null&&t(n,i)))break;n=n[i]}return s||++u!=e?s:(e=n==null?0:n.length,!!e&&d(e)&&x(i,e)&&(c(n)||E(n)))}function K(n,r){return n!=null&&U(n,r,v)}var N=1,T=2;function $(n,r){return m(n)&&A(r)?h(a(n),r):function(t){var u=M(t,n);return u===void 0&&u===r?K(t,n):g(r,u,N|T)}}function q(n){return function(r){return r==null?void 0:r[n]}}function z(n){return function(r){return p(r,n)}}function B(n){return m(n)?q(a(n)):z(n)}function W(n){return typeof n=="function"?n:n==null?L:typeof n=="object"?c(n)?$(n[0],n[1]):S(n):B(n)}function X(n,r,t){for(var u=-1,e=r.length,s={};++u<e;){var i=r[u],f=p(n,i);t(f,i)&&w(s,_(i,n),f)}return s}export{X as a,W as b,K as h};
