"use strict";var Y=Object.defineProperty;var Ie=Object.getOwnPropertyDescriptor;var Se=Object.getOwnPropertyNames;var Ee=Object.prototype.hasOwnProperty;var Fe=(t,e)=>{for(var r in e)Y(t,r,{get:e[r],enumerable:!0})},Pe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Se(e))!Ee.call(t,o)&&o!==r&&Y(t,o,{get:()=>e[o],enumerable:!(n=Ie(e,o))||n.enumerable});return t};var Be=t=>Pe(Y({},"__esModule",{value:!0}),t);var De={};Fe(De,{aCompose:()=>At,aComposeFn:()=>jt,aFilter:()=>wt,aForEach:()=>Tt,aMap:()=>yt,aPipe:()=>ht,aPipeFn:()=>Ot,aResolvers:()=>It,arrIns:()=>lt,arrReplace:()=>pt,arrRm:()=>V,avg:()=>Kt,bounds:()=>dt,camelCase:()=>H,capitalize:()=>M,chunk:()=>it,clamp:()=>zt,clone:()=>P,compact:()=>y,compose:()=>de,composeFn:()=>be,countBy:()=>mt,diff:()=>rt,divMod:()=>Ft,drop:()=>_,fromPath:()=>oe,get:()=>Xt,groupBy:()=>ut,has:()=>D,hexToRGB:()=>xe,insertAt:()=>Te,intersection:()=>at,intersperse:()=>xt,isArr:()=>i,isArrBuf:()=>A,isAsyFn:()=>Vt,isBigInt:()=>$t,isBlob:()=>Jt,isBool:()=>vt,isDataView:()=>j,isDate:()=>qt,isDef:()=>Qt,isDisjointFrom:()=>Rt,isEmail:()=>tt,isEmpty:()=>d,isEql:()=>k,isEqlArr:()=>ae,isErr:()=>C,isEven:()=>Z,isFn:()=>l,isGenFn:()=>Gt,isInfinity:()=>R,isJSON:()=>Ut,isMap:()=>I,isNegZero:()=>we,isNil:()=>fe,isNull:()=>T,isNum:()=>m,isObj:()=>p,isOdd:()=>Pt,isPromise:()=>Ht,isPureObj:()=>O,isRegEx:()=>z,isSet:()=>S,isShallowEql:()=>ie,isStr:()=>g,isSubsetOf:()=>Dt,isSupersetOf:()=>Mt,isSym:()=>$,isTypedArr:()=>E,isUndef:()=>J,isWkMap:()=>Lt,isWkRef:()=>Zt,isWkSet:()=>_t,isZero:()=>ke,max:()=>G,mean:()=>Nt,median:()=>Wt,merge:()=>Q,mergeAll:()=>X,min:()=>L,mode:()=>Ct,move:()=>st,noop:()=>pe,omit:()=>ue,pascalCase:()=>he,percentage:()=>St,percentageOf:()=>Et,pick:()=>se,pipe:()=>me,pipeFn:()=>ce,prod:()=>Bt,range:()=>ot,replaceAt:()=>B,reverse:()=>h,rgbToHex:()=>ge,set:()=>Yt,shallowMerge:()=>v,shallowMergeAll:()=>ne,shuffle:()=>gt,size:()=>w,sleep:()=>le,sort:()=>q,sortBy:()=>ft,strReplace:()=>et,sum:()=>K,swap:()=>kt,symDiff:()=>nt,take:()=>bt,toNum:()=>ye,toPath:()=>c,toSet:()=>te,toUnset:()=>re,union:()=>ct,uniq:()=>F,unset:()=>ee});module.exports=Be(De);function tt(t){let r=new RegExp(/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/).exec(t);return r?r[0]===t:!1}function Ne(t,e=0,r=""){let n=e+(r.length===0?1:r.length);return t.slice(0,e)+r+t.slice(n)}var B=Ne;function We(t,e=0,r=""){return t.slice(0,e)+r+t.slice(e)}var Te=We;function Ce(t){if(t.length===0)return"";let e=t.toLowerCase();return e=B(e,0,e[0].toUpperCase()),e}var M=Ce;function ze(t){let e,r=t.match(/[a-z0-9]+/gi),n=o=>{let u=new RegExp(/[A-Z]+/g),s;for(;(s=u.exec(o))!==null;)if(u.lastIndex&&u.lastIndexi(r)&&i(e)?Object.assign([],e,r):{...e,...r})}function et(t,e,r,n){let u=v({all:!1,case:!1},n),s="";return s=u.all?s+"g":s,s=u.case?s+"i":s,t.replace(new RegExp(e,s),r)}function A(t){return Object.prototype.toString.call(t)==="[object ArrayBuffer]"}function j(t){return Object.prototype.toString.call(t)==="[object DataView]"}function I(t){return Object.prototype.toString.call(t)==="[object Map]"}function p(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null}function S(t){return Object.prototype.toString.call(t)==="[object Set]"}function g(t){return typeof t=="string"}function E(t){return["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object BigInt64Array]","[object BigUint64Array]"].includes(Object.prototype.toString.call(t))}function w(t){return i(t)||g(t)||E(t)?t.length:p(t)?Object.keys(t).length:I(t)||S(t)?t.size:A(t)||j(t)?t.byteLength:-1}function C(t){return Object.prototype.toString.call(t)==="[object Error]"}function O(t){return typeof t=="object"&&t!==null}function z(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function Oe(t){let e=[];for(let r of t.keys())e.push(r);return e}function N(t,e,r,n){if(Object.is(t,e)||r.has(t)&&n.has(e))return!0;if(Object.prototype.toString.call(t)!==Object.prototype.toString.call(e)||w(t)!==w(e)||(O(t)&&O(e)&&(r.add(t),n.add(e)),i(t)&&w(Object.keys(t))!==w(Object.keys(e))))return!1;if(i(t)||p(t)||E(t)){for(let o of Object.keys(t))if(!N(t[o],e[o],r,n))return!1;for(let o of Object.getOwnPropertySymbols(t))if(!N(t[o],e[o],r,n))return!1;return!0}if(t instanceof Date)return Object.is(t.getTime(),e.getTime());if(I(t)){let o=Oe(t),u=Oe(e);if(!N(o,u,r,n))return!1;for(let[s,f]of t)if(!N(f,e.get(s),r,n))return!1;return!0}if(S(t)){let o=e.values();for(let u of t)if(!N(u,o.next().value,r,n))return!1;return!0}if(C(t)&&t.name===e.name&&t.message===e.message||z(t)&&t.source===e.source&&t.flags===e.flags&&t.lastIndex===e.lastIndex)return!0;if(A(t)){let o=new Uint8Array(t),u=new Uint8Array(e);for(let s of o.keys())if(!N(o[s],u[s],r,n))return!1;return!0}if(j(t)){for(let o=0;o{let u=[];for(let s of o){let f=0;for(let a of n){let b=r?e(s):s,x=r?e(a):a;k(b,x)&&u.push(f),f+=1}}return n.filter((s,f)=>!u.includes(f))},[...t[0]||[]])}function F(t=[],e){return t.reduce((r,n)=>{let o=!1;for(let u of r){let s=l(e)?e(u):u,f=l(e)?e(n):n;if(k(s,f)){o=!0;break}}return o||r.push(n),r},[])}function nt(t=[],e){let r=l(e),n=t.slice(1).reduce((o,u)=>{let s=[];for(let f of u){let a=!0,b=0;for(let x of o){let U=r?e(f):f,je=r?e(x):x;k(U,je)&&(s.push(b),a=!1),b+=1}a&&o.push(f)}return o.filter((f,a)=>!s.includes(a))},[...t[0]||[]]);return F(n)}function R(t){return!(typeof t!="number"||Number.isNaN(t)||Number.isFinite(t))}function m(t,e=!1){let r=t;if(e&&typeof t=="string"&&t.trim().length){let n=/_{2,}|^0_1|^_|_$/;t.includes("_")&&!n.test(t.trim())&&(r=t.replaceAll("_","")),r=Number(r)}return typeof r=="number"&&Number.isFinite(r)}function ot(t,e,r){if(Number.isNaN(t)||Number.isNaN(e))throw new RangeError;if(!m(t)||!m(e))throw new TypeError;if(R(t))throw RangeError();let n=e>t,o=!1,u;if(r==null)u=void 0;else if(typeof r=="object")u=r.step,o=!!r.inclusive;else if(m(r))u=r;else throw new TypeError;if(Number.isNaN(u))throw new RangeError;if(u==null&&(u=n?1:-1),typeof u!="number")throw new TypeError;if(R(u))throw RangeError();if(u===0&&t!==e)throw new RangeError;let s=[],f=u>0;if(n!==f)return s;let a=!1,b=0;for(;a===!1;){let x=t+u*b;x===e&&(a=!0),b=b+1;let U=!1;if(n?U=o?x>e:x>=e:U=o?e>x:e>=x,U)return s;s.push(x)}return s}function ut(t,e){return t.reduce((r,n)=>{let o=typeof e=="function"?e(n):n[e],u=r[o]??[];return{...r,[o]:[...u,n]}},{})}function st(t,e,r){if(t.length===0||e===r||e>=t.length)return t;let n=[...t];return n.splice(r,0,n.splice(e,1)[0]),n}function q(t=[],e="asc"){return[...t].sort((r,n)=>{let o=rn?1:0;return e==="asc"?o:-o})}function ft(t,...e){return[...t].sort((r,n)=>{for(let o=0;oo%e===0?[...r,[n]]:[...r.slice(0,-1),[...r.slice(-1)[0],n]],[])}function y(t=[]){if(!i(t))return[];let e=[void 0,null,!1,NaN,0,""];return t.filter(r=>!e.includes(r))}function at(t=[],e){let r=l(e),n=t.reduce((o,u)=>{let s=[];for(let f of o)for(let a of u){let b=r?e(f):f,x=r?e(a):a;k(b,x)&&s.push(f)}return s});return F(n)}function lt(t=[],e,...r){let n=e??t.length,o=[...t];return o.splice(n,0,...r),o}function pt(t=[],e,r,...n){let o=e??t.length-1,u=[...t];return u.splice(o,r??n.length,...n),u}function V(t=[],e,r=1){let n=e??t.length-1,o=[...t];return o.splice(n,r),o}function mt(t=[],e){return t.reduce((r,n)=>{let o=l(e)?e(n):n[e],u=r[o]?r[o]+1:1;return{...r,[o]:u}},{})}function ct(t=[],e){let r=l(e),n=t.reduce((o,u)=>{for(let s of u){let f=!1;for(let a of o){let b=r?e(s):s,x=r?e(a):a;k(b,x)&&(f=!0)}f||o.push(s)}return o},[]);return F(n)}function d(t,e=!1){return e&&i(t)?Object.keys(t).length===0:w(t)===0}function G(t=[],e=r=>r){let r=y(t);return d(r)?null:r.reduce((n,o)=>{let u=e(n),s=e(o);return u===s||u>s?n:o})}function L(t=[],e=r=>r){let r=y(t);return d(r)?null:r.reduce((n,o)=>{let u=e(n),s=e(o);return u===s?n:u>s?o:n})}function dt(t=[],e=r=>r){let r=y(t);return d(r)?null:[L(t,e),G(t,e)]}function T(t){return t===null}function bt(t,e=1,r){if(!T(e)&&(!Number.isInteger(e)||e<0))throw RangeError("The limit must be positive");let n=T(e)?t.length:e,o=[];for(let u=0;u(o.push(l(e)?e(s-1):e,u),o),[]));return g(t)?n.join(""):n}function h(t=[]){let e=[];for(let r=t.length-1;r>=0;r--)e.push(t[r]);return e}function gt(t){let e=[...t],r=e.length,n,o;for(;r;)n=Math.floor(Math.random()*r--),o=e[r],e[r]=e[n],e[n]=o;return e}function kt(t,e,r){let n=[...t],o=n[r];return n[r]=n[e],n[e]=o,n}async function wt(t,e){let r=0,n=[];for(let o of t)await e(o,r)&&n.push(o),r++;return n}async function yt(t,e){let r=0,n=[];for(let o of t)n.push(await e(o,r)),r++;return n}async function Tt(t,e){let r=0;for(let n of t)await e(n,r),r++}async function ht(t,...e){let r=t;for(let n of e)r=await n(r);return r}function Ot(...t){return async function(...e){let r=t.shift();if(!r)return;let n=await r(...e);for(let o of t)n=await o(n);return n}}async function At(t,...e){let r=t;for(let n of h(e))r=await n(r);return r}function jt(...t){return async function(...e){let r=h(t),n=r.shift();if(!n)return;let o=await n(...e);for(let u of r)o=await u(o);return o}}function It(){let t,e;return{promise:new Promise((n,o)=>{t=n,e=o}),resolve:t,reject:e}}function St(t,e){return t/e*100}function Et(t,e){return t/100*e}function Ft(t,e){return[t/e,t%e]}function Z(t){return t%2===0}function Pt(t){return t%2!==0}function K(t=[],e){return(e?t.map(e):t).reduce((n,o)=>n+o,0)}function Bt(t=[],e){return(e?t.map(e):t).reduce((n,o)=>n*o,1)}function Nt(t=[],e){let r=e?t.map(e):t;return K(r)/r.length}function Wt(t=[],e){let r=e?t.map(e):t;if(r=q(t),Z(r.length)){let n=r.length/2;return(t[n]+t[n-1])/2}return t[Math.floor(r.length/2)]}function Ct(t=[],e){let r=e?t.map(e):t,n=new Map;r.forEach(f=>{n.set(f,(n.get(f)??0)+1)});let o=[...n.values()],u=Math.max(...o),s=[];for(let[f,a]of n)a===u&&s.push(f);return s.length===t.length?[]:s}function zt(t,e,r){return Math.min(Math.max(t,e),r)}function Kt(t=[],e){return K(t,e)/t.length||0}function Dt(t,e,r=!1){let n=new Set(t),o=new Set(e);if(n.size>o.size)return!1;for(let u of n)if(!o.has(u))return!1;return!(r&&n.size===o.size)}function Mt(t,e,r=!1){let n=new Set(t),o=new Set(e);if(n.sizen.size){for(let o of n)if(r.has(o))return!1;return!0}for(let o of r)if(n.has(o))return!1;return!0}function Ut(t){try{let e=JSON.parse(t);return p(e)}catch{return!1}}function vt(t){return typeof t=="boolean"}function qt(t){return Object.prototype.toString.call(t)==="[object Date]"&&t.toString()!=="Invalid Date"}function Vt(t){return["[object AsyncFunction]","[object AsyncGeneratorFunction]"].includes(Object.prototype.toString.call(t))}function Gt(t){return["[object GeneratorFunction]","[object AsyncGeneratorFunction]"].includes(Object.prototype.toString.call(t))}function $(t){return typeof t=="symbol"}function J(t){return typeof t>"u"}function Lt(t){return Object.prototype.toString.call(t)==="[object WeakMap]"}function _t(t){return Object.prototype.toString.call(t)==="[object WeakSet]"}function Zt(t){return Object.prototype.toString.call(t)==="[object WeakRef]"}function $t(t){return typeof t=="bigint"}function Jt(t){return Object.prototype.toString.call(t)==="[object Blob]"}function Ht(t){return l(t?.then)}function Qt(t){return t!==void 0}function c(t){if(g(t)){let e=[],r=/\[(\d+)\]|\[(-?\d+\.?\d+)\]|([^.[\]]+)/g,n=t.matchAll(r);for(let o of n)e.push(y(o)[1]);return e}return i(t)?[...t]:$(t)?[t]:m(t)?[String(t)]:[]}function D(t,e){let r=c(e);if(d(r))return!1;let n=t;for(let o of r){if(!O(n)||!Object.hasOwn(n,o))return!1;n=n[o]}return!0}function Xt(t,e,r){if(!D(t,e))return r;let n=t,o=c(e);for(let u of o)n=n[u];return n}function Yt(t,e,r){let n=c(e),o=t;if(d(n))return t;for(let u=0;u{r[o]=W(n,e)}),r}if(t instanceof Date){let r=new Date(t);return e.set(t,r),r}if(I(t)){let r=new Map;e.set(t,r);for(let[n,o]of t)r.set(W(n,e),W(o,e));return r}if(S(t)){let r=new Set;e.set(t,r);for(let n of t)r.add(W(n,e));return r}if(C(t)){let r=new t.constructor;return r.name=t.name,r.message=t.message,r.stack=t.stack,r.cause=t.cause,r}if(z(t))return new RegExp(t.source,t.flags);if(A(t)){let r=new ArrayBuffer(t.byteLength,{maxByteLength:t.maxByteLength});return new Uint8Array(r).set(new Uint8Array(t)),r}if(E(t)){let r=W(t.buffer,e);return new t.constructor(r,t.byteOffset,t.length)}if(j(t)){let r=W(t.buffer,e);return new DataView(r,t.byteOffset,t.byteLength)}return t}function P(t){return W(t,new WeakMap)}function te(t,e,r){let n=c(e),o=P(t),u=o;if(d(n))return t;for(let s=0;si(n)||p(n)),r=i(e[0])?[]:{};return e.reduce((n,o)=>{for(let[u,s]of Object.entries(o))i(s)||p(s)?n[u]=Q(n[u],s):n[u]=s;return n},r)}function X(...t){let e=t.filter(n=>i(n)||p(n)),r=i(e[0])?[]:{};return e.reduce((n,o)=>{if(i(o)&&i(n))return[...n,...o];for(let[u,s]of Object.entries(o))i(s)||p(s)?n[u]=X(n[u],s):n[u]=s;return n},r)}function ne(...t){return t.reduce((e,r)=>i(r)&&i(e)?[...e,...r]:{...e,...r})}function oe(t=[]){return t.reduce((r,n)=>m(n,!0)?`${r}[${n}]`:r+"."+n,"").slice(1)}function Ae(t,e,r){let n=t,o=c(e);for(let u=0;u{i(u)&&n.add(o),delete u[s]});return n.forEach(o=>{if(o.length===1){r=r.flat();return}let u=c(o);Ae(r,V(u),(s,f)=>{s[f]=s[f].flat()})}),r}function se(t,...e){let r=i(t)?[]:{};for(let n of e)if(D(t,n)){let o=t,u=r,s=c(n);for(let f=0;fk(o,s));if(u<0)return!1;delete n[u]}return!0}async function le(t){return new Promise(e=>setTimeout(e,t))}function pe(){}function me(t,...e){let r=t;for(let n of e)r=n(r);return r}function ce(...t){return function(...e){let r=t.shift();if(!r)return;let n=r(...e);for(let o of t)n=o(n);return n}}function de(t,...e){let r=t;for(let n of h(e))r=n(r);return r}function be(...t){return function(...e){let r=h(t),n=r.shift();if(!n)return;let o=n(...e);for(let u of r)o=u(o);return o}}function xe(t){return[parseInt(t.substring(1,3),16),parseInt(t.substring(3,5),16),parseInt(t.substring(5,7),16)]}function ge(t){let e=t[0].toString(16),r=t[1].toString(16),n=t[2].toString(16);return"#"+e.padStart(2,"0")+r.padStart(2,"0")+n.padStart(2,"0")}function ke(t){return Object.is(t,0)}function we(t){return Object.is(t,-0)}function ye(t){return m(t)?t:g(t)&&m(t,!0)?t.includes("_")?+t.replaceAll("_",""):+t:NaN}0&&(module.exports={aCompose,aComposeFn,aFilter,aForEach,aMap,aPipe,aPipeFn,aResolvers,arrIns,arrReplace,arrRm,avg,bounds,camelCase,capitalize,chunk,clamp,clone,compact,compose,composeFn,countBy,diff,divMod,drop,fromPath,get,groupBy,has,hexToRGB,insertAt,intersection,intersperse,isArr,isArrBuf,isAsyFn,isBigInt,isBlob,isBool,isDataView,isDate,isDef,isDisjointFrom,isEmail,isEmpty,isEql,isEqlArr,isErr,isEven,isFn,isGenFn,isInfinity,isJSON,isMap,isNegZero,isNil,isNull,isNum,isObj,isOdd,isPromise,isPureObj,isRegEx,isSet,isShallowEql,isStr,isSubsetOf,isSupersetOf,isSym,isTypedArr,isUndef,isWkMap,isWkRef,isWkSet,isZero,max,mean,median,merge,mergeAll,min,mode,move,noop,omit,pascalCase,percentage,percentageOf,pick,pipe,pipeFn,prod,range,replaceAt,reverse,rgbToHex,set,shallowMerge,shallowMergeAll,shuffle,size,sleep,sort,sortBy,strReplace,sum,swap,symDiff,take,toNum,toPath,toSet,toUnset,union,uniq,unset}); //# sourceMappingURL=index.cjs.map