import{aG as o,bF as F,aJ as G,bA as I,bG as M,bH as y,al as v,bC as C,cH as H,cI as L,cs as P}from"./app-D7zH3Nl5.js";import{U as q,t as w}from"./useFlexGapSupport-CpBR-RD-.js";import{b as D,a as J,k as _,i as R,d as S,e as T,f as U,g as V}from"./index-DZxk72Vu.js";function x(e,n,i){if(!o(i))return!1;var l=typeof n;return(l=="number"?F(i)&&G(n,i.length):l=="string"&&n in i)?I(i[n],e):!1}function B(e){return D(function(n,i){var l=-1,a=i.length,r=a>1?i[a-1]:void 0,s=a>2?i[2]:void 0;for(r=e.length>3&&typeof r=="function"?(a--,r):void 0,s&&x(i[0],i[1],s)&&(r=a<3?void 0:r,a=1),n=Object(n);++l<a;){var f=i[l];f&&e(n,f,l,r)}return n})}function m(e,n,i){(i!==void 0&&!I(e[n],i)||i===void 0&&!(n in e))&&q(e,n,i)}function A(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}function E(e){return J(e,_(e))}function K(e,n,i,l,a,r,s){var f=A(e,i),t=A(n,i),O=s.get(t);if(O){m(e,i,O);return}var d=r?r(f,t,i+"",e,n,s):void 0,u=d===void 0;if(u){var g=v(t),p=!g&&M(t),h=!g&&!p&&y(t);d=t,g||p||h?v(f)?d=f:R(f)?d=S(f):p?(u=!1,d=T(t,!0)):h?(u=!1,d=U(t,!0)):d=[]:w(t)||C(t)?(d=f,C(f)?d=E(f):(!o(f)||H(f))&&(d=V(t))):u=!1}u&&(s.set(t,d),a(d,t,l,r,s),s.delete(t)),m(e,i,d)}function b(e,n,i,l,a){e!==n&&L(n,function(r,s){if(a||(a=new P),o(r))K(e,n,s,i,b,l,a);else{var f=l?l(A(e,s),r,s+"",e,n,a):void 0;f===void 0&&(f=r),m(e,s,f)}},_)}var X=B(function(e,n,i){b(e,n,i)});export{X as m};
