import{c as e,f as t,l as n,u as r}from"./_MapCache-DuGUh_Ja.js";import{c as i,l as a,r as o,s}from"./_baseFor-CNnMVyjp.js";import{a as c,i as l,n as u,o as d,r as f,s as p,t as m}from"./_getTag-DnAICW4q.js";import{a as ee,d as te,f as ne,i as h,n as g,o as _,r as v,s as y,u as b}from"./_baseMerge-CV68mFA4.js";function re(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function ie(e,t){return e&&b(t,p(t),e)}function ae(e,t){return e&&b(t,y(t),e)}function oe(e,t){return b(e,l(e),t)}var x=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)d(t,l(e)),e=_(e);return t}:c;function se(e,t){return b(e,x(e),t)}function ce(e){return f(e,y,x)}var S=Object.prototype.hasOwnProperty;function C(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&S.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function w(e,t){var n=t?h(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var T=/\w*$/;function E(e){var t=new e.constructor(e.source,T.exec(e));return t.lastIndex=e.lastIndex,t}var D=t?t.prototype:void 0,O=D?D.valueOf:void 0;function k(e){return O?Object(O.call(e)):{}}var A=`[object Boolean]`,j=`[object Date]`,M=`[object Map]`,N=`[object Number]`,P=`[object RegExp]`,F=`[object Set]`,I=`[object String]`,L=`[object Symbol]`,R=`[object ArrayBuffer]`,z=`[object DataView]`,B=`[object Float32Array]`,V=`[object Float64Array]`,H=`[object Int8Array]`,U=`[object Int16Array]`,W=`[object Int32Array]`,G=`[object Uint8Array]`,le=`[object Uint8ClampedArray]`,ue=`[object Uint16Array]`,de=`[object Uint32Array]`;function fe(e,t,n){var r=e.constructor;switch(t){case R:return h(e);case A:case j:return new r(+e);case z:return w(e,n);case B:case V:case H:case U:case W:case G:case le:case ue:case de:return v(e,n);case M:return new r;case N:case I:return new r(e);case P:return E(e);case F:return new r;case L:return k(e)}}var pe=`[object Map]`;function me(e){return r(e)&&m(e)==pe}var K=s&&s.isMap,he=K?i(K):me,ge=`[object Set]`;function _e(e){return r(e)&&m(e)==ge}var q=s&&s.isSet,ve=q?i(q):_e,ye=1,be=2,xe=4,J=`[object Arguments]`,Se=`[object Array]`,Ce=`[object Boolean]`,we=`[object Date]`,Te=`[object Error]`,Y=`[object Function]`,Ee=`[object GeneratorFunction]`,De=`[object Map]`,Oe=`[object Number]`,X=`[object Object]`,ke=`[object RegExp]`,Ae=`[object Set]`,je=`[object String]`,Me=`[object Symbol]`,Ne=`[object WeakMap]`,Pe=`[object ArrayBuffer]`,Fe=`[object DataView]`,Ie=`[object Float32Array]`,Z=`[object Float64Array]`,Le=`[object Int8Array]`,Re=`[object Int16Array]`,ze=`[object Int32Array]`,Be=`[object Uint8Array]`,Ve=`[object Uint8ClampedArray]`,He=`[object Uint16Array]`,Ue=`[object Uint32Array]`,Q={};Q[J]=Q[Se]=Q[Pe]=Q[Fe]=Q[Ce]=Q[we]=Q[Ie]=Q[Z]=Q[Le]=Q[Re]=Q[ze]=Q[De]=Q[Oe]=Q[X]=Q[ke]=Q[Ae]=Q[je]=Q[Me]=Q[Be]=Q[Ve]=Q[He]=Q[Ue]=!0,Q[Te]=Q[Y]=Q[Ne]=!1;function $(t,r,i,s,c,l){var d,f=r&ye,h=r&be,_=r&xe;if(i&&(d=c?i(t,s,c,l):i(t)),d!==void 0)return d;if(!e(t))return t;var v=n(t);if(v){if(d=C(t),!f)return ne(t,d)}else{var b=m(t),x=b==Y||b==Ee;if(a(t))return ee(t,f);if(b==X||b==J||x&&!c){if(d=h||x?{}:g(t),!f)return h?se(t,ae(d,t)):oe(t,ie(d,t))}else{if(!Q[b])return c?t:{};d=fe(t,b,f)}}l||=new o;var S=l.get(t);if(S)return S;l.set(t,d),ve(t)?t.forEach(function(e){d.add($(e,r,i,e,t,l))}):he(t)&&t.forEach(function(e,n){d.set(n,$(e,r,i,n,t,l))});var w=v?void 0:(_?h?ce:u:h?y:p)(t);return re(w||t,function(e,n){w&&(n=e,e=t[n]),te(d,n,$(e,r,i,n,t,l))}),d}export{$ as t};