import{az as _,aA as C,aB as M,aC as L,aD as g,aE as R,aF as o,aG as x,aH as G,aI as p,aJ as D,aK as N,aL as b,aM as y}from"./index.js";var E=1/0,m=17976931348623157e292;function w(n){if(!n)return n===0?n:0;if(n=_(n),n===E||n===-E){var r=n<0?-1:1;return r*m}return n===n?n:0}function T(n){var r=w(n),t=r%1;return r===r?t?r-t:r:0}var K=1,S=2;function $(n,r,t,e){var i=t.length,s=i,a=!e;if(n==null)return!s;for(n=Object(n);i--;){var f=t[i];if(a&&f[2]?f[1]!==n[f[0]]:!(f[0]in n))return!1}for(;++i<s;){f=t[i];var u=f[0],A=n[u],d=f[1];if(a&&f[2]){if(A===void 0&&!(u in n))return!1}else{var I=new C;if(e)var h=e(A,d,u,n,r,I);if(!(h===void 0?M(d,A,K|S,e,I):h))return!1}}return!0}function O(n){return n===n&&!L(n)}function v(n){for(var r=g(n),t=r.length;t--;){var e=r[t],i=n[e];r[t]=[e,i,O(i)]}return r}function F(n,r){return function(t){return t==null?!1:t[n]===r&&(r!==void 0||n in Object(t))}}function U(n){var r=v(n);return r.length==1&&r[0][2]?F(r[0][0],r[0][1]):function(t){return t===n||$(t,n,r)}}var q=1,B=2;function H(n,r){return R(n)&&O(r)?F(o(n),r):function(t){var e=x(t,n);return e===void 0&&e===r?G(t,n):M(r,e,q|B)}}function J(n){return function(r){return r==null?void 0:r[n]}}function X(n){return function(r){return p(r,n)}}function Y(n){return R(n)?J(o(n)):X(n)}function P(n){return typeof n=="function"?n:n==null?D:typeof n=="object"?N(n)?H(n[0],n[1]):U(n):Y(n)}function c(n){return function(r,t,e){var i=Object(r);if(!b(r)){var s=P(t);r=g(r),t=function(f){return s(i[f],f,i)}}var a=n(r,t,e);return a>-1?i[s?r[a]:a]:void 0}}var Q=Math.max;function W(n,r,t){var e=n==null?0:n.length;if(!e)return-1;var i=t==null?0:T(t);return i<0&&(i=Q(e+i,0)),y(n,P(r),i)}var Z=c(W),k=Z;export{w as a,P as b,c,$ as d,U as e,k as f,v as g,H as h,J as i,W as j,Y as p,T as t};
