import{c as b,e as l,k as I,g as O,h as P,j as w,l as _,m,t as F,n as M}from"./_baseUniq-WtIlx_Ex.js";import{aS as A,aC as E,aT as N,aU as p,aV as S,aW as x,aX as T,aY as $,aZ as C,a_ as v,a$ as G,b0 as L}from"./index-B2k5WE4W.js";var g=1/0,R=17976931348623157e292;function X(n){if(!n)return n===0?n:0;if(n=A(n),n===g||n===-g){var a=n<0?-1:1;return a*R}return n===n?n:0}function Y(n){var a=X(n),r=a%1;return a===a?r?a-r:a:0}function c(n){var a=n==null?0:n.length;return a?b(n):[]}var o=Object.prototype,q=o.hasOwnProperty,j=E(function(n,a){n=Object(n);var r=-1,i=a.length,t=i>2?a[2]:void 0;for(t&&N(a[0],a[1],t)&&(i=1);++r<i;)for(var f=a[r],e=p(f),s=-1,u=e.length;++s<u;){var d=e[s],h=n[d];(h===void 0||S(h,o[d])&&!q.call(n,d))&&(n[d]=f[d])}return n});function k(n){var a=n==null?0:n.length;return a?n[a-1]:void 0}function z(n){return function(a,r,i){var t=Object(a);if(!x(a)){var f=l(r);a=I(a),r=function(s){return f(t[s],s,t)}}var e=n(a,r,i);return e>-1?t[f?a[e]:e]:void 0}}var B=Math.max;function H(n,a,r){var i=n==null?0:n.length;if(!i)return-1;var t=r==null?0:Y(r);return t<0&&(t=B(i+t,0)),O(n,l(a),t)}var nn=z(H);function K(n,a){var r=-1,i=x(n)?Array(n.length):[];return P(n,function(t,f,e){i[++r]=a(t,f,e)}),i}function an(n,a){var r=T(n)?w:K;return r(n,l(a))}var U=Object.prototype,W=U.hasOwnProperty;function Z(n,a){return n!=null&&W.call(n,a)}function rn(n,a){return n!=null&&_(n,a,Z)}function D(n,a){return n<a}function J(n,a,r){for(var i=-1,t=n.length;++i<t;){var f=n[i],e=a(f);if(e!=null&&(s===void 0?e===e&&!$(e):r(e,s)))var s=e,u=f}return u}function tn(n){return n&&n.length?J(n,C,D):void 0}function Q(n,a,r,i){if(!v(n))return n;a=m(a,n);for(var t=-1,f=a.length,e=f-1,s=n;s!=null&&++t<f;){var u=F(a[t]),d=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return n;if(t!=e){var h=s[u];d=void 0,d===void 0&&(d=v(h)?h:G(a[t+1])?[]:{})}L(s,u,d),s=s[u]}return n}function en(n,a,r){for(var i=-1,t=a.length,f={};++i<t;){var e=a[i],s=M(n,e);r(s,e)&&Q(f,m(e,n),s)}return f}export{D as a,J as b,K as c,en as d,tn as e,c as f,nn as g,rn as h,j as i,Y as j,k as l,an as m,X as t};
