@cmtlyt/base
Version:
2 lines (1 loc) • 4.63 kB
JavaScript
import{B as _,r as n,t as c,bz as q,bG as we,g,d as je,ab as F,bI as Le,F as xe,D as ke,H as Be,G as Ee,K as Te,J as Ue,v as Pe,y as We,x as Se,u as ve,A as ze,z as Ne,M as Ae,L as Ie,O as Ke,N as Ve,Q as qe,P as Fe,T as Oe,V as Re,U as Ze,R as $e,X as Ge,W as De,Z as He,Y as Je,$ as Me,_ as Qe,a1 as Xe,a0 as Ye,a3 as ea,a2 as aa,a5 as ta,a4 as sa,a7 as oa,a6 as na,a9 as ra,a8 as ca,aa as pa,ad as _a,ac as ia,af as ua,ae as la,ah as da,ag as ya,aj as fa,ai as ha}from"./base.CBZTi4S8.mjs";import"ms";function O(e,a){return e.length===0?t=>t:e.length===1?e[0]:(...t)=>a(e,...t)[0]}const R=function(...e){const a=O(e,(s,...o)=>s.reduceRight((r,p)=>[p(..._(r))],o)),t=e[e.length-1];return a.clength=t?.clength||t?.length,a},Z=function(...e){const a=O(e,(s,...o)=>s.reduce((r,p)=>[p(..._(r))],o)),t=e[0];return a.clength=t?.clength||t?.length,a};function m(...e){const a=e.pop();return e.every(t=>t(a))}function $(...e){return a=>m(...e,a)}function C(e,a){return e===a}const G=n(C);function b(e,a){return e>a}const D=n(b);function w(e,a){return e<a}const H=n(w),J=n((e,a)=>{try{e(a)}catch{}return a});function j(e,a,t){return e(t)?a(t):t}const M=n(j);function i(e,a){if(typeof e!="object")throw new TypeError("Spec must be an object");return Object.keys(e).reduce((t,s)=>{const o=e[s];return typeof o=="function"?t[s]=e[s](...a):t[s]=i(o,a),t},{})}const Q=n(i);function u(e,a,t,s="."){let o=e;q(o)||(we(o)?o=o.split(s):o=_(o));const r=g(t);if(r!=="array"&&r!=="object")throw new TypeError("source must be array or object");const p=r==="array"?[...t]:{...t},be=o.slice(0,-1).reduce((K,V)=>r==="array"?K[V]=[]:K[V]||={},p);return be[o.pop()]=a,p}const{__:L}=c,X=n(c(u)(L,L,L,"."));function l(e,a){const t={};for(const s in a){const o=a[s];g(o)==="object"?t[s]=l(e,o):t[s]=e(o,s)}return t}const Y=n(l);function d(e,a,t){const s={};for(const o in t){const r=t[o];g(r)==="object"?s[o]=d(e,a,r):a(r,o)?s[o]=e(r,o):s[o]=r}return s}const ee=n(d);function y(e,a,t="."){return!t&&typeof e=="string"?a[e]:(q(e)?e:String(e).split(t)).reduce((s,o)=>je(s)?s:s[o],a)}const ae=c.__,te=n(c(y)(ae,ae,"."));function x(e,a){const t={...a};return delete t[e],t}const se=n(x);function k(e,a){const t={},s=_(e);return Object.keys(a).forEach(o=>{s.includes(o)||(t[o]=a[o])}),t}const oe=n(k);function B(e,a){const t={};return _(e).forEach(s=>t[s]=a[s]),t}const ne=n(B);function f(e,a){return a[e]}const re=n(f);function E(e,a,t="."){return F((s,o)=>u(o,y(o,a,t),s,t),{},e)}const{__:ce}=c,pe=n(c(E)(ce,ce,"."));function T(e,a){const t={...a};for(const s in e){const o=f(s,a);delete t[s],t[e[s]]=o}return t}const _e=n(T);function U(e,a){return a.then(e)}const ie=n(U),P=(e,a)=>e,ue=n(P),W=(e,a)=>a??e,le=n(W),h=e=>e,de=h,S=h,ye=S,v=e=>e.replace(/(^|[-\s])+(\w)/g,(a,t,s)=>s.toLocaleUpperCase()),fe=v,z=e=>e.replace(/([A-Z])/g,(a,t)=>`-${t.toLocaleLowerCase()}`).replace(/[_\s-]+/g,"-").replace(/^-+/,""),he=z,N=e=>e.toLocaleLowerCase(),ge=N,A=e=>e.replace(/([A-Z])/g,(a,t)=>`_${t.toLocaleLowerCase()}`).replace(/[-_\s]+/g,"_").replace(/^_+/,""),me=A,I=e=>e.toLocaleUpperCase(),Ce=I,ga={__proto__:null,__:Le,addThen:ie,addThen_:U,adjust:xe,adjust_:ke,always:ue,always_:P,aperture:Be,aperture_:Ee,append:Te,append_:Ue,apply:Pe,applySpec:Q,applySpec_:i,applyTo:We,applyTo_:Se,apply_:ve,argNumLimit:ze,argNumLimit_:Ne,assoc:X,assoc_:u,both:$,both_:m,collectBy:Ae,collectBy_:Ie,compose:R,curry:n,deepExec:Y,deepExecWith:ee,deepExecWith_:d,deepExec_:l,deepProp:te,deepProp_:y,defaultValue:le,defaultValue_:W,deleteProp:se,deleteProp_:x,eq:G,eq_:C,every:Ke,every_:Ve,filter:qe,filter_:Fe,find:Oe,findIndex:Re,findIndex_:Ze,find_:$e,groupBy:Ge,groupBy_:De,groupWith:He,groupWith_:Je,gt:D,gt_:b,id:h,id_:de,identity:S,identity_:ye,includes:Me,includes_:Qe,join:Xe,join_:Ye,lt:H,lt_:w,makeBy:ea,makeBy_:aa,map:ta,map_:sa,nth:oa,nth_:na,omit:oe,omit_:k,partition:ra,partition_:ca,pick:ne,pick_:B,pipe:Z,placeholderFunc:c,prop:re,prop_:f,props:pe,props_:E,reduce:F,reduce_:pa,rename:_e,rename_:T,replicate:_a,replicate_:ia,some:ua,some_:la,take:da,take_:ya,toCamelCase:v,toCamelCase_:fe,toKebabCase:z,toKebabCase_:he,toLowerCase:N,toLowerCase_:ge,toUnderlineCase:A,toUnderlineCase_:me,toUpperCase:I,toUpperCase_:Ce,trace:J,when:M,when_:j,zip:fa,zip_:ha};export{me as $,k as A,oe as B,B as C,ne as D,f as E,re as F,E as G,pe as H,T as I,_e as J,U as K,ie as L,P as M,ue as N,W as O,le as P,h as Q,de as R,S,ye as T,v as U,fe as V,z as W,he as X,N as Y,ge as Z,A as _,$ as a,I as a0,Ce as a1,m as b,R as c,G as d,C as e,D as f,b as g,H as h,ga as i,M as j,i as k,w as l,Q as m,u as n,X as o,Z as p,l as q,Y as r,d as s,J as t,ee as u,y as v,j as w,te as x,x as y,se as z};