import{aP as x,aB as I,aQ as l,aR as w,aS as M,aT as m,aU as h,aG as O,aV as A,aW as E,aX as F,aY as N,aZ as P}from"./index-DqL3MUN2.js";import{c as p}from"./_baseUniq-B1Flybha.js";var g=1/0,R=17976931348623157e292;function T(n){if(!n)return n===0?n:0;if(n=x(n),n===g||n===-g){var a=n<0?-1:1;return a*R}return n===n?n:0}function G(n){var a=T(n),r=a%1;return a===a?r?a-r:a:0}var b=Object.prototype,L=b.hasOwnProperty,V=I(function(n,a){n=Object(n);var r=-1,e=a.length,t=e>2?a[2]:void 0;for(t&&l(a[0],a[1],t)&&(e=1);++r-1?t[f?a[i]:i]:void 0}}var X=Math.max;function Y(n,a,r){var e=n==null?0:n.length;if(!e)return-1;var t=r==null?0:G(r);return t<0&&(t=X(e+t,0)),A(n,h(a),t)}var Z=S(Y);function q(n,a){var r=-1,e=m(n)?Array(n.length):[];return p(n,function(t,f,i){e[++r]=a(t,f,i)}),e}function _(n,a){var r=E(n)?F:q;return r(n,h(a))}function B(n,a){return n