import{i as e,o as t,r as n,t as r}from"./isObject-Fipkq1GC.js";import{C as i,E as a,M as o,O as s,P as c,T as l,b as u,c as d,h as f,i as p,m,n as h,p as g,r as _,s as v,t as y,v as b,x,y as S}from"./isArrayLikeObject-DLkNDcQE.js";var C=Object.create,w=function(){function e(){}return function(t){if(!r(t))return{};if(C)return C(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function T(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function E(e,t,n){t==`__proto__`&&s?s(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var ee=Object.prototype.hasOwnProperty;function D(e,t,n){var r=e[t];(!(ee.call(e,t)&&l(r,n))||n===void 0&&!(t in e))&&E(e,t,n)}function O(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?E(n,s,c):D(n,s,c)}return n}function k(e,t,n){if(!r(n))return!1;var i=typeof t;return(i==`number`?x(n)&&a(t,n.length):i==`string`&&t in n)?l(n[t],e):!1}function A(e){return i(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&k(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}function j(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var M=Object.prototype.hasOwnProperty;function N(e){if(!r(e))return j(e);var t=u(e),n=[];for(var i in e)i==`constructor`&&(t||!M.call(e,i))||n.push(i);return n}function P(e){return x(e)?m(e,!0):N(e)}var F=g(Object.getPrototypeOf,Object),I=`[object Object]`,L=Function.prototype,R=Object.prototype,z=L.toString,B=R.hasOwnProperty,V=z.call(Object);function H(t){if(!n(t)||e(t)!=I)return!1;var r=F(t);if(r===null)return!0;var i=B.call(r,`constructor`)&&r.constructor;return typeof i==`function`&&i instanceof i&&z.call(i)==V}var U=typeof exports==`object`&&exports&&!exports.nodeType&&exports,W=U&&typeof module==`object`&&module&&!module.nodeType&&module,G=W&&W.exports===U?t.Buffer:void 0,K=G?G.allocUnsafe:void 0;function q(e,t){if(t)return e.slice();var n=e.length,r=K?K(n):new e.constructor(n);return e.copy(r),r}function J(e){var t=new e.constructor(e.byteLength);return new _(t).set(new _(e)),t}function Y(e,t){var n=t?J(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function X(e){return typeof e.constructor==`function`&&!u(e)?w(F(e)):{}}function Z(e,t,n){(n!==void 0&&!l(e[t],n)||n===void 0&&!(t in e))&&E(e,t,n)}function Q(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}function te(e){return O(e,P(e))}function ne(e,t,n,i,a,s,l){var u=Q(e,n),d=Q(t,n),p=l.get(d);if(p){Z(e,n,p);return}var m=s?s(u,d,n+``,e,t,l):void 0,h=m===void 0;if(h){var g=c(d),_=!g&&b(d),v=!g&&!_&&f(d);m=d,g||_||v?c(u)?m=u:y(u)?m=T(u):_?(h=!1,m=q(d,!0)):v?(h=!1,m=Y(d,!0)):m=[]:H(d)||S(d)?(m=u,S(u)?m=te(u):(!r(u)||o(u))&&(m=X(d))):h=!1}h&&(l.set(d,m),a(m,d,i,s,l),l.delete(d)),Z(e,n,m)}function $(e,t,n,i,a){e!==t&&h(t,function(o,s){if(a||=new p,r(o))ne(e,t,s,n,$,i,a);else{var c=i?i(Q(e,s),o,s+``,e,t,a):void 0;c===void 0&&(c=o),Z(e,s,c)}},P)}var re=A(function(e,t,n){$(e,t,n)});function ie(e,t,n,i){if(!r(e))return e;t=d(t,e);for(var o=-1,s=t.length,c=s-1,l=e;l!=null&&++o<s;){var u=v(t[o]),f=n;if(u===`__proto__`||u===`constructor`||u===`prototype`)return e;if(o!=c){var p=l[u];f=i?i(p,u,l):void 0,f===void 0&&(f=r(p)?p:a(t[o+1])?[]:{})}D(l,u,f),l=l[u]}return e}export{Y as a,F as c,k as d,O as f,T as h,X as i,P as l,E as m,re as n,J as o,D as p,$ as r,q as s,ie as t,A as u};