import{a as e,i as t,n}from"./isSymbol.CmW3dkoN.js";import{r}from"./toString.tRXNBxtF.js";import{o as i,r as a,t as o}from"./isArrayLike.Crw2F5li.js";import{E as s,M as c,P as l,S as u,T as d,c as f,d as ee,f as p,i as m,k as h,l as g,o as _,r as v,s as y,w as b,x as te,y as x}from"./isArrayLikeObject.B3Zf3PTL.js";var S=Object.create,ne=function(){function e(){}return function(t){if(!i(t))return{};if(S)return S(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function C(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function w(e,t,n){t==`__proto__`&&l?l(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var re=Object.prototype.hasOwnProperty;function T(e,t,n){var r=e[t];(!(re.call(e,t)&&a(r,n))||n===void 0&&!(t in e))&&w(e,t,n)}function E(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?w(n,s,c):T(n,s,c)}return n}function ie(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var ae=Object.prototype.hasOwnProperty;function oe(e){if(!i(e))return ie(e);var t=h(e),n=[];for(var r in e)r==`constructor`&&(t||!ae.call(e,r))||n.push(r);return n}function D(e){return o(e)?u(e,!0):oe(e)}var O=te(Object.getPrototypeOf,Object);function k(e,t){return e&&E(t,x(t),e)}function A(e,t){return e&&E(t,D(t),e)}var j=typeof exports==`object`&&exports&&!exports.nodeType&&exports,M=j&&typeof module==`object`&&module&&!module.nodeType&&module,N=M&&M.exports===j?e.Buffer:void 0,P=N?N.allocUnsafe:void 0;function F(e,t){if(t)return e.slice();var n=e.length,r=P?P(n):new e.constructor(n);return e.copy(r),r}function se(e,t){return E(e,f(e),t)}var I=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)p(t,f(e)),e=O(e);return t}:g;function ce(e,t){return E(e,I(e),t)}function L(e){return y(e,D,I)}var le=Object.prototype.hasOwnProperty;function ue(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&le.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function R(e){var t=new e.constructor(e.byteLength);return new v(t).set(new v(e)),t}function z(e,t){var n=t?R(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var B=/\w*$/;function V(e){var t=new e.constructor(e.source,B.exec(e));return t.lastIndex=e.lastIndex,t}var H=t?t.prototype:void 0,U=H?H.valueOf:void 0;function de(e){return U?Object(U.call(e)):{}}function W(e,t){var n=t?R(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var fe=`[object Boolean]`,pe=`[object Date]`,me=`[object Map]`,he=`[object Number]`,ge=`[object RegExp]`,_e=`[object Set]`,ve=`[object String]`,ye=`[object Symbol]`,be=`[object ArrayBuffer]`,xe=`[object DataView]`,Se=`[object Float32Array]`,Ce=`[object Float64Array]`,we=`[object Int8Array]`,Te=`[object Int16Array]`,Ee=`[object Int32Array]`,De=`[object Uint8Array]`,Oe=`[object Uint8ClampedArray]`,ke=`[object Uint16Array]`,Ae=`[object Uint32Array]`;function je(e,t,n){var r=e.constructor;switch(t){case be:return R(e);case fe:case pe:return new r(+e);case xe:return z(e,n);case Se:case Ce:case we:case Te:case Ee:case De:case Oe:case ke:case Ae:return W(e,n);case me:return new r;case he:case ve:return new r(e);case ge:return V(e);case _e:return new r;case ye:return de(e)}}function G(e){return typeof e.constructor==`function`&&!h(e)?ne(O(e)):{}}var Me=`[object Map]`;function Ne(e){return n(e)&&m(e)==Me}var K=b&&b.isMap,Pe=K?d(K):Ne,Fe=`[object Set]`;function Ie(e){return n(e)&&m(e)==Fe}var q=b&&b.isSet,Le=q?d(q):Ie,Re=1,ze=2,Be=4,J=`[object Arguments]`,Ve=`[object Array]`,He=`[object Boolean]`,Ue=`[object Date]`,We=`[object Error]`,Y=`[object Function]`,Ge=`[object GeneratorFunction]`,Ke=`[object Map]`,qe=`[object Number]`,X=`[object Object]`,Je=`[object RegExp]`,Ye=`[object Set]`,Xe=`[object String]`,Ze=`[object Symbol]`,Qe=`[object WeakMap]`,$e=`[object ArrayBuffer]`,Z=`[object DataView]`,et=`[object Float32Array]`,tt=`[object Float64Array]`,nt=`[object Int8Array]`,rt=`[object Int16Array]`,it=`[object Int32Array]`,at=`[object Uint8Array]`,ot=`[object Uint8ClampedArray]`,st=`[object Uint16Array]`,ct=`[object Uint32Array]`,Q={};Q[J]=Q[Ve]=Q[$e]=Q[Z]=Q[He]=Q[Ue]=Q[et]=Q[tt]=Q[nt]=Q[rt]=Q[it]=Q[Ke]=Q[qe]=Q[X]=Q[Je]=Q[Ye]=Q[Xe]=Q[Ze]=Q[at]=Q[ot]=Q[st]=Q[ct]=!0,Q[We]=Q[Y]=Q[Qe]=!1;function $(e,t,n,a,o,l){var u,d=t&Re,f=t&ze,p=t&Be;if(n&&(u=o?n(e,a,o,l):n(e)),u!==void 0)return u;if(!i(e))return e;var h=r(e);if(h){if(u=ue(e),!d)return C(e,u)}else{var g=m(e),v=g==Y||g==Ge;if(s(e))return F(e,d);if(g==X||g==J||v&&!o){if(u=f||v?{}:G(e),!d)return f?ce(e,A(u,e)):se(e,k(u,e))}else{if(!Q[g])return o?e:{};u=je(e,g,d)}}l||=new ee;var y=l.get(e);if(y)return y;l.set(e,u),Le(e)?e.forEach(function(r){u.add($(r,t,n,r,e,l))}):Pe(e)&&e.forEach(function(r,i){u.set(i,$(r,t,n,i,e,l))});var b=h?void 0:(p?f?L:_:f?D:x)(e);return c(b||e,function(r,i){b&&(i=r,r=e[i]),T(u,i,$(r,t,n,i,e,l))}),u}export{F as a,E as c,C as d,L as i,T as l,G as n,O as o,W as r,D as s,$ as t,w as u};