import{bK as n,bL as r,bM as t,F as u,bN as e,bO as a,bP as f,bQ as i,ag as o,bR as c,ah as s,af as b,bS as v,m as l}from"./index-CFExNDlA.js";function g(n){return n==n&&!t(n)}function h(n,r){return function(t){return null!=t&&(t[n]===r&&(void 0!==r||n in Object(t)))}}function j(t){var e=function(n){for(var r=u(n),t=r.length;t--;){var e=r[t],a=n[e];r[t]=[e,a,g(a)]}return r}(t);return 1==e.length&&e[0][2]?h(e[0][0],e[0][1]):function(u){return u===t||function(t,u,e,a){var f=e.length,i=f;if(null==t)return!i;for(t=Object(t);f--;){var o=e[f];if(o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++f<i;){var c=(o=e[f])[0],s=t[c],b=o[1];if(o[2]){if(void 0===s&&!(c in t))return!1}else{var v=new n;if(!r(b,s,3,a,v))return!1}}return!0}(u,0,e)}}function d(n){return e(n)?c(a(n)):function(n){return function(r){return o(r,n)}}(n)}function p(n){return"function"==typeof n?n:null==n?s:"object"==typeof n?b(n)?(t=n[0],u=n[1],e(t)&&g(u)?h(a(t),u):function(n){var e=f(n,t);return void 0===e&&e===u?i(n,t):r(u,e,3)}):j(n):d(n);var t,u}function O(n,r){return n&&v(n,r,u)}var m,x=(m=O,function(n,r){if(null==n)return n;if(!l(n))return m(n,r);for(var t=n.length,u=-1,e=Object(n);++u<t&&!1!==r(e[u],u,e););return n});export{p as a,x as b,O as c};
