import{dV as P,dW as l,dH as R,da as p,dX as A,E as c,B as g,db as m,H as y}from"./D_cFpJnU.js";import{g as M}from"./BuqwI5MQ.js";import{h as _}from"./D8Mrv0In.js";var I=1,C=2;function L(n,r,e,t){var i=e.length,u=i;if(n==null)return!u;for(n=Object(n);i--;){var f=e[i];if(f[2]?f[1]!==n[f[0]]:!(f[0]in n))return!1}for(;++i<u;){f=e[i];var s=f[0],o=n[s],E=f[1];if(f[2]){if(o===void 0&&!(s in n))return!1}else{var O=new P,a;if(!(a===void 0?l(E,o,I|C,t,O):a))return!1}}return!0}function d(n){return n===n&&!R(n)}function D(n){for(var r=p(n),e=r.length;e--;){var t=r[e],i=n[t];r[e]=[t,i,d(i)]}return r}function h(n,r){return function(e){return e==null?!1:e[n]===r&&(r!==void 0||n in Object(e))}}function G(n){var r=D(n);return r.length==1&&r[0][2]?h(r[0][0],r[0][1]):function(e){return e===n||L(e,n,r)}}function b(n,r){return n!=null&&r in Object(n)}function w(n,r){return n!=null&&_(n,r,b)}var F=1,H=2;function S(n,r){return A(n)&&d(r)?h(c(n),r):function(e){var t=M(e,n);return t===void 0&&t===r?w(e,n):l(r,t,F|H)}}function x(n){return function(r){return r==null?void 0:r[n]}}function K(n){return function(r){return g(r,n)}}function N(n){return A(n)?x(c(n)):K(n)}function q(n){return typeof n=="function"?n:n==null?m:typeof n=="object"?y(n)?S(n[0],n[1]):G(n):N(n)}export{q as b};