import{bh as d,bE as g,c4 as h,c5 as m,bn as v}from"./index-BhlVWTSX.js";function x(n,t,u,l){if(!d(n))return n;t=g(t,n);for(var e=-1,s=t.length,c=s-1,o=n;o!=null&&++e<s;){var i=h(t[e]),f=u;if(i==="__proto__"||i==="constructor"||i==="prototype")return n;if(e!=c){var r=o[i];f=void 0,f===void 0&&(f=d(r)?r:m(t[e+1])?[]:{})}v(o,i,f),o=o[i]}return n}function a(n,t,u){return n==null?n:x(n,t,u)}function I(n,t){const u=n.slice(),l=[];let e=0;for(let s=0;s<n.length;s++){if(t(n[s],s,u)){l.push(n[s]);continue}if(!Object.hasOwn(n,s)){delete n[e++];continue}n[e++]=n[s]}return n.length=e,l}export{x as b,I as r,a as s};
