import{t as m}from"./isObject-DvLSfCY5.js";import{i as f,r as p}from"./get-C-qh_et5.js";import{_ as c}from"./_baseFor-DKD1r8uL.js";import{p as d}from"./merge-_9WLTEyt.js";function g(t,i,u,a){if(!m(t))return t;i=f(i,t);for(var n=-1,v=i.length,_=v-1,o=t;o!=null&&++n<v;){var r=p(i[n]),e=u;if(r==="__proto__"||r==="constructor"||r==="prototype")return t;if(n!=_){var s=o[r];e=a?a(s,r,o):void 0,e===void 0&&(e=m(s)?s:c(i[n+1])?[]:{})}d(o,r,e),o=o[r]}return t}var x=g;export{x as t};
