import{n as e,r as t}from"./isSymbol.CmW3dkoN.js";import{r as n}from"./toString.tRXNBxtF.js";import{n as r,t as i}from"./_isIterateeCall.D7Fn3p_j.js";import{n as a,r as o,t as s}from"./eq.DG5CISEJ.js";import{_ as c,b as l,d as u,n as d,t as f,w as p,x as m}from"./isArrayLikeObject.5q1w4NUu.js";import{a as h,c as g,d as _,n as v,o as y,r as b,s as x,t as S,u as C}from"./_baseClone.ZIs07_oO.js";function w(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}function T(e){return p(function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o==`function`?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r<a;){var c=n[r];c&&e(t,c,r,o)}return t})}var E=`[object Object]`,D=Function.prototype,O=Object.prototype,k=D.toString,A=O.hasOwnProperty,j=k.call(Object);function M(n){if(!e(n)||t(n)!=E)return!1;var r=y(n);if(r===null)return!0;var i=A.call(r,`constructor`)&&r.constructor;return typeof i==`function`&&i instanceof i&&k.call(i)==j}var N=1,P=4;function F(e){return S(e,N|P)}function I(e,t,n){(n!==void 0&&!s(e[t],n)||n===void 0&&!(t in e))&&C(e,t,n)}function L(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}function R(e){return g(e,x(e))}function z(e,t,r,i,s,u,d){var p=L(e,r),g=L(t,r),y=d.get(g);if(y){I(e,r,y);return}var x=u?u(p,g,r+``,e,t,d):void 0,S=x===void 0;if(S){var C=n(g),w=!C&&l(g),T=!C&&!w&&c(g);x=g,C||w||T?n(p)?x=p:f(p)?x=_(p):w?(S=!1,x=h(g,!0)):T?(S=!1,x=b(g,!0)):x=[]:M(g)||m(g)?(x=p,m(p)?x=R(p):(!o(p)||a(p))&&(x=v(g))):S=!1}S&&(d.set(g,x),s(x,g,i,u,d),d.delete(g)),I(e,r,x)}function B(e,t,n,r,i){e!==t&&d(t,function(a,s){if(i||=new u,o(a))z(e,t,s,n,B,r,i);else{var c=r?r(L(e,s),a,s+``,e,t,i):void 0;c===void 0&&(c=a),I(e,s,c)}},x)}var V=T(function(e,t,n){B(e,t,n)});export{T as a,M as i,B as n,w as o,F as r,V as t};