Comparing version 1.2.5 to 1.2.6
@@ -1,1 +0,1 @@ | ||
function add(x,y){if(y===void 0){return c=>add(x,c);}return x+y;}function addIndex(d){return function(e,...rest){let g=0;const newFn=(...args)=>e.apply(null,[...args,g++]);return d.apply(null,[newFn,...rest]);};}function adjust(h,j,k){if(j===void 0){return(l,m)=>adjust(h,l,m);}else if(k===void 0){return n=>adjust(h,j,n);}const q=k.concat();return q.map((r,s)=>{if(s===j){return h(k[j]);}return r;});}function filterObject(t,u){const v={};for(const w in u){if(t(u[w],w)){v[w]=u[w];}}return v;}function filter(z,A){if(arguments.length===1){return B=>filter(z,B);}if(A===void 0){return[];}if(!Array.isArray(A)){return filterObject(z,A);}let C=-1,D=0;const E=A.length,G=[];while(++C<E){const H=A[C];if(z(H)){G[D++]=H;}}return G;}function all(I,J){if(arguments.length===1){return K=>all(I,K);}return filter(I,J).length===J.length;}function any(L,M){if(arguments.length===1){return N=>any(L,N);}let O=0;while(O<M.length){if(L(M[O],O)){return!0;}O++;}return!1;}function allPass(P,x){if(arguments.length===1){return Q=>allPass(P,Q);}return!any(R=>!R(x),P);}function always(x){return()=>x;}function anyPass(S,x){if(arguments.length===1){return U=>anyPass(S,U);}return any(V=>V(x))(S);}function append(x,W){if(arguments.length===1){return X=>append(x,X);}if(typeof W==='string'){return`${W}${x}`;}const Y=W.concat();Y.push(x);return Y;}function curry(f,a=[]){return(...p)=>(o=>o.length>=f.length?f(...o):curry(f,o))([...a,...p]);}function assoc(Z,a1,b1){return Object.assign({},b1,{[Z]:a1});}var c1=curry(assoc);function both(x,y){if(arguments.length===1){return d1=>both(x,d1);}return e1=>x(e1)&&y(e1);}function complement(fn){return g1=>!fn(g1);}function compose(...fns){return(...args)=>{const h1=fns.slice();if(h1.length>0){const fn=h1.pop();let j1=fn(...args);while(h1.length>0){j1=h1.pop()(j1);}return j1;}return void 0;};}function concat(x,y){if(arguments.length===1){return k1=>concat(x,k1);}return typeof x==='string'?`${x}${y}`:[...x,...y];}function type(a){const l1=typeof a;if(a===null){return'Null';}else if(a===void 0){return'Undefined';}else if(l1==='boolean'){return'Boolean';}else if(l1==='number'){return'Number';}else if(l1==='string'){return'String';}else if(Array.isArray(a)){return'Array';}else if(a instanceof RegExp){return'RegExp';}const m1=a.toString();if(m1.startsWith('async')){return'Async';}else if(m1==='[object Promise]'){return'Promise';}else if(m1.includes('function')||m1.includes('=>')){return'Function';}return'Object';}function equals(a,b){if(arguments.length===1){return n1=>equals(a,n1);}if(a===b){return!0;}const o1=type(a);if(o1!==type(b)){return!1;}if(o1==='Array'){const p1=Array.from(a),q1=Array.from(b);if(p1.toString()!==q1.toString()){return!1;}let r1=!0;p1.forEach((s1,t1)=>{if(r1){if(s1!==q1[t1]&&!equals(s1,q1[t1])){r1=!1;}}});return r1;}if(o1==='Object'){const u1=Object.keys(a);if(u1.length!==Object.keys(b).length){return!1;}let v1=!0;u1.forEach(w1=>{if(v1){const x1=a[w1],y1=b[w1];if(x1!==y1&&!equals(x1,y1)){v1=!1;}}});return v1;}return!1;}function contains(x,z1){if(arguments.length===1){return A1=>contains(x,A1);}let B1=-1,C1=!1;while(++B1<z1.length&&!C1){if(equals(z1[B1],x)){C1=!0;}}return C1;}var dec=x=>x-1;function defaultTo(D1,E1){if(arguments.length===1){return F1=>defaultTo(D1,F1);}return E1===void 0||E1===null||Number.isNaN(E1)===!0?D1:E1;}function dissoc(G1,H1){if(arguments.length===1){return I1=>dissoc(G1,I1);}if(H1===null||H1===void 0){return{};}const J1={};for(const p in H1){J1[p]=H1[p];}delete J1[G1];return J1;}function divide(x,y){if(arguments.length===1){return K1=>divide(x,K1);}return x/y;}function drop(L1,x){if(arguments.length===1){return M1=>drop(L1,M1);}return x.slice(L1);}function dropLast(N1,x){if(arguments.length===1){return O1=>dropLast(N1,O1);}return x.slice(0,-N1);}function either(x,y){if(arguments.length===1){return P1=>either(x,P1);}return Q1=>x(Q1)||y(Q1);}function baseSlice(R1,S1,T1){let U1=-1,V1=R1.length;T1=T1>V1?V1:T1;if(T1<0){T1+=V1;}V1=S1>T1?0:T1-S1>>>0;S1>>>=0;const W1=Array(V1);while(++U1<V1){W1[U1]=R1[U1+S1];}return W1;}function takeLast(X1,x){if(arguments.length===1)return Y1=>takeLast(X1,Y1);const Z1=x.length;let a2=X1>Z1?Z1:X1;if(typeof x==='string'){return x.slice(Z1-a2);}a2=Z1-a2;return baseSlice(x,a2,Z1);}function endsWith(b2,c2){if(arguments.length===1){return d2=>endsWith(b2,d2);}return equals(b2,takeLast(b2.length,c2));}function F(){return!1;}function find(fn,f2){if(arguments.length===1){return g2=>find(fn,g2);}return f2.find(fn);}function findIndex(fn,i2){if(arguments.length===1){return j2=>findIndex(fn,j2);}const k2=i2.length;let l2=-1;while(++l2<k2){if(fn(i2[l2])){return l2;}}return-1;}function flatten(m2,n2){n2=n2===void 0?[]:n2;for(let i=0;i<m2.length;i++){if(Array.isArray(m2[i])){flatten(m2[i],n2);}else{n2.push(m2[i]);}}return n2;}function flipExport(fn){return(...input)=>{if(input.length===1){return p2=>fn(p2,input[0]);}else if(input.length===2){return fn(input[1],input[0]);}return void 0;};}function flip(fn,...input){return flipExport(fn);}function mapObject(fn,s2){const t2={};for(const u2 in s2){t2[u2]=fn(s2[u2],u2);}return t2;}function map(fn,w2){if(arguments.length===1){return x2=>map(fn,x2);}if(w2===void 0){return[];}if(!Array.isArray(w2)){return mapObject(fn,w2);}let y2=-1;const z2=w2.length,A2=Array(z2);while(++y2<z2){A2[y2]=fn(w2[y2]);}return A2;}function forEach(fn,C2){if(arguments.length===1){return D2=>forEach(fn,D2);}map(fn,C2);return C2;}function groupBy(fn,F2){if(arguments.length===1){return G2=>groupBy(fn,G2);}const H2={};for(let i=0;i<F2.length;i++){const I2=F2[i],J2=fn(I2);if(!H2[J2]){H2[J2]=[];}H2[J2].push(I2);}return H2;}function has(K2,L2){if(arguments.length===1){return M2=>has(K2,M2);}return L2[K2]!==void 0;}function head(a){if(typeof a==='string'){return a[0]||'';}return a[0];}function identity(x){return x;}function ifElse(N2,O2,P2){if(O2===void 0){return(Q2,R2)=>ifElse(N2,Q2,R2);}else if(P2===void 0){return S2=>ifElse(N2,O2,S2);}return T2=>{const U2=typeof N2==='boolean'?N2:N2(T2);if(U2===!0){return O2(T2);}return P2(T2);};}var inc=x=>x+1;function includes(x,y){if(arguments.length===1){return V2=>includes(x,V2);}return y.includes(x);}function indexBy(fn,X2){if(arguments.length===1){return Y2=>indexBy(fn,Y2);}const Z2={};for(let i=0;i<X2.length;i++){const a3=X2[i];Z2[fn(a3)]=a3;}return Z2;}function indexOf(x,b3){if(arguments.length===1){return c3=>indexOf(x,c3);}let d3=-1;const e3=b3.length;while(++d3<e3){if(b3[d3]===x){return d3;}}return-1;}function init(a){if(typeof a==='string'){return a.slice(0,-1);}return a.length?baseSlice(a,0,-1):[];}function is(f3,x){if(arguments.length===1){return g3=>is(f3,g3);}return x!=null&&x.constructor===f3||x instanceof f3;}function isNil(x){return x===void 0||x===null;}function join(h3,i3){if(arguments.length===1){return j3=>join(h3,j3);}return i3.join(h3);}function keys(x){return Object.keys(x);}function last(a){if(typeof a==='string'){return a[a.length-1]||'';}return a[a.length-1];}function lastIndexOf(x,k3){if(arguments.length===1){return l3=>lastIndexOf(x,l3);}let m3=-1;k3.map((n3,o3)=>{if(equals(n3,x)){m3=o3;}});return m3;}function length(x){return x.length;}function match(p3,x){if(arguments.length===1){return q3=>match(p3,q3);}const r3=x.match(p3);return r3===null?[]:r3;}function merge(s3,t3){if(arguments.length===1){return u3=>merge(s3,u3);}return Object.assign({},s3||{},t3||{});}function max(x,y){if(arguments.length===1){return v3=>max(x,v3);}return y>x?y:x;}function maxBy(fn,x,y){if(arguments.length===2){return x3=>maxBy(fn,x,x3);}else if(arguments.length===1){return(y3,z3)=>maxBy(fn,y3,z3);}return fn(y)>fn(x)?y:x;}function min(x,y){if(arguments.length===1){return A3=>min(x,A3);}return y<x?y:x;}function minBy(fn,x,y){return fn(y)<fn(x)?y:x;}var C3=curry(minBy);function modulo(x,y){if(arguments.length===1)return D3=>modulo(x,D3);return x%y;}function multiply(x,y){if(arguments.length===1)return E3=>multiply(x,E3);return x*y;}function none(fn,G3){if(arguments.length===1)return H3=>none(fn,H3);return G3.filter(fn).length===0;}function not(x){return!x;}function nth(I3,J3){if(arguments.length===1)return K3=>nth(I3,K3);const L3=I3<0?J3.length+I3:I3;return Object.prototype.toString.call(J3)==='[object String]'?J3.charAt(L3):J3[L3];}function omit(M3,N3){if(arguments.length===1){return O3=>omit(M3,O3);}if(N3===null||N3===void 0){return void 0;}const P3=typeof M3==='string'?M3=M3.split(','):M3,Q3={};for(const R3 in N3){if(!P3.includes(R3)){Q3[R3]=N3[R3];}}return Q3;}function partialCurry(fn,T3={}){return U3=>{if(type(fn)==='Async'||type(fn)==='Promise'){return new Promise((V3,W3)=>{fn(merge(U3,T3)).then(V3).catch(W3);});}return fn(merge(U3,T3));};}function path(X3,Y3){if(arguments.length===1){return Z3=>path(X3,Z3);}if(Y3===null||Y3===void 0){return void 0;}let a4=Y3,b4=0;const c4=typeof X3==='string'?X3.split('.'):X3;while(b4<c4.length){if(a4===null||a4===void 0){return void 0;}a4=a4[c4[b4]];b4++;}return a4;}function pathOr(d4,e4,f4){return defaultTo(d4,path(e4,f4));}var g4=curry(pathOr);function pick(h4,i4){if(arguments.length===1){return j4=>pick(h4,j4);}if(i4===null||i4===void 0){return void 0;}const k4=typeof h4==='string'?h4.split(','):h4,l4={};let m4=0;while(m4<k4.length){if(k4[m4]in i4){l4[k4[m4]]=i4[k4[m4]];}m4++;}return l4;}function pickAll(n4,o4){if(arguments.length===1){return p4=>pickAll(n4,p4);}if(o4===null||o4===void 0){return void 0;}const q4=typeof n4==='string'?n4.split(','):n4,r4={};let s4=0;while(s4<q4.length){if(q4[s4]in o4){r4[q4[s4]]=o4[q4[s4]];}else{r4[q4[s4]]=void 0;}s4++;}return r4;}function pipe(...fns){return compose(...fns.reverse());}function pluck(t4,u4){if(arguments.length===1)return v4=>pluck(t4,v4);const w4=[];map(x4=>{if(!(x4[t4]===void 0)){w4.push(x4[t4]);}},u4);return w4;}function prepend(x,y4){if(arguments.length===1)return z4=>prepend(x,z4);if(typeof y4==='string'){return`${x}${y4}`;}const A4=y4.concat();A4.unshift(x);return A4;}function prop(B4,C4){if(arguments.length===1)return D4=>prop(B4,D4);return C4[B4];}function propEq(E4,x,F4){if(x===void 0){return(G4,H4)=>propEq(E4,G4,H4);}else if(F4===void 0){return I4=>propEq(E4,x,I4);}return F4[E4]===x;}function range(J4,K4){if(arguments.length===1)return L4=>range(J4,L4);const M4=[];for(let i=J4;i<K4;i++){M4.push(i);}return M4;}function reduce(fn,O4,P4){if(O4===void 0){return(Q4,R4)=>reduce(fn,Q4,R4);}else if(P4===void 0){return S4=>reduce(fn,O4,S4);}return P4.reduce(fn,O4);}function reject(fn,U4){if(arguments.length===1)return V4=>reject(fn,V4);return filter(x=>!fn(x),U4);}function repeat(x,W4){if(arguments.length===1){return X4=>repeat(x,X4);}const Y4=Array(W4);return Y4.fill(x);}function replace(Z4,a5,b5){if(a5===void 0){return(c5,d5)=>replace(Z4,c5,d5);}else if(b5===void 0){return e5=>replace(Z4,a5,e5);}return b5.replace(Z4,a5);}function reverse(f5){const g5=f5.concat();return g5.reverse();}function sort(fn,i5){if(arguments.length===1)return j5=>sort(fn,j5);const k5=i5.concat();return k5.sort(fn);}function sortBy(fn,m5){if(arguments.length===1){return n5=>sortBy(fn,n5);}const o5=m5.concat();return o5.sort((a,b)=>{const p5=fn(a),q5=fn(b);return p5<q5?-1:p5>q5?1:0;});}function split(r5,s5){if(arguments.length===1)return t5=>split(r5,t5);return s5.split(r5);}function splitEvery(u5,x){if(arguments.length===1)return v5=>splitEvery(u5,v5);const w5=u5>1?u5:1,x5=[];let y5=0;while(y5<x.length){x5.push(x.slice(y5,y5+=w5));}return x5;}function startsWith(x,y){if(arguments.length===1)return z5=>startsWith(x,z5);return y.startsWith(x);}function subtract(x,y){if(arguments.length===1)return A5=>subtract(x,A5);return x-y;}function T(){return!0;}function tail(B5){return drop(1,B5);}function take(C5,x){if(arguments.length===1)return D5=>take(C5,D5);if(typeof x==='string'){return x.slice(0,C5);}return baseSlice(x,0,C5);}function tap(fn,x){if(arguments.length===1)return F5=>tap(fn,F5);fn(x);return x;}function test(G5,H5){if(arguments.length===1)return I5=>test(G5,I5);return H5.search(G5)!==-1;}function times(fn,K5){if(arguments.length===1)return L5=>times(fn,L5);return map(fn,range(0,K5));}function toLower(x){return x.toLowerCase();}function toString(x){return x.toString();}function toUpper(x){return x.toUpperCase();}function trim(M5){return M5.trim();}function uniq(N5){let O5=-1;const P5=[];while(++O5<N5.length){const Q5=N5[O5];if(!contains(Q5,P5)){P5.push(Q5);}}return P5;}function uniqWith(fn,S5){if(arguments.length===1)return T5=>uniqWith(fn,T5);let U5=-1;const V5=S5.length,W5=[];while(++U5<S5.length){const X5=S5[U5],Y5=any(Z5=>fn(X5,Z5),W5);if(!Y5){W5.push(X5);}}return W5;}function update(a6,b6,c6){if(b6===void 0){return(d6,e6)=>update(a6,d6,e6);}else if(c6===void 0){return f6=>update(a6,b6,f6);}const g6=c6.concat();return g6.fill(b6,a6,a6+1);}function values(h6){const i6=[];for(const j6 in h6){i6.push(h6[j6]);}return i6;}function without(k6,l6){return reduce((m6,n6)=>!contains(n6,k6)?m6.concat(n6):m6,[],l6);}function zip(x,y){if(arguments.length===1)return o6=>zip(x,o6);return addIndex(reduce)((p6,q6,r6)=>y[r6]?p6.concat([[q6,y[r6]]]):p6,[],x);}function zipObj(x,y){if(arguments.length===1)return s6=>zipObj(x,s6);return x.reduce((t6,u6,i)=>{t6[u6]=y[i];return t6;},{});}export{add,addIndex,adjust,all,allPass,always,any,anyPass,append,c1 as assoc,both,complement,compose,concat,contains,curry,dec,defaultTo,dissoc,divide,drop,dropLast,either,endsWith,equals,F,filter,find,findIndex,flatten,flip,forEach,groupBy,has,head,identity,ifElse,inc,includes,indexBy,indexOf,init,is,isNil,join,keys,last,lastIndexOf,length,map,match,merge,max,maxBy,min,C3 as minBy,modulo,multiply,none,not,nth,omit,partialCurry,path,g4 as pathOr,pick,pickAll,pipe,pluck,prepend,prop,propEq,range,reduce,reject,repeat,replace,reverse,sort,sortBy,split,splitEvery,startsWith,subtract,T,tail,take,takeLast,tap,test,times,toLower,toString,toUpper,trim,type,uniq,uniqWith,update,values,without,zip,zipObj}; | ||
function add(x,y){if(y===void 0){return c=>add(x,c);}return x+y;}function addIndex(d){return function(e,...rest){let g=0;const newFn=(...args)=>e.apply(null,[...args,g++]);return d.apply(null,[newFn,...rest]);};}function adjust(h,j,k){if(j===void 0){return(l,m)=>adjust(h,l,m);}else if(k===void 0){return n=>adjust(h,j,n);}const q=k.concat();return q.map((r,s)=>{if(s===j){return h(k[j]);}return r;});}function filterObject(t,u){const v={};for(const w in u){if(t(u[w],w)){v[w]=u[w];}}return v;}function filter(z,A){if(arguments.length===1){return B=>filter(z,B);}if(A===void 0){return[];}if(!Array.isArray(A)){return filterObject(z,A);}let C=-1,D=0;const E=A.length,G=[];while(++C<E){const H=A[C];if(z(H)){G[D++]=H;}}return G;}function all(I,J){if(arguments.length===1){return K=>all(I,K);}return filter(I,J).length===J.length;}function any(L,M){if(arguments.length===1){return N=>any(L,N);}let O=0;while(O<M.length){if(L(M[O],O)){return!0;}O++;}return!1;}function allPass(P,x){if(arguments.length===1){return Q=>allPass(P,Q);}return!any(R=>!R(x),P);}function always(x){return()=>x;}function anyPass(S,x){if(arguments.length===1){return U=>anyPass(S,U);}return any(V=>V(x))(S);}function append(x,W){if(arguments.length===1){return X=>append(x,X);}if(typeof W==='string')return`${W}${x}`;const Y=W.concat();Y.push(x);return Y;}function curry(f,a=[]){return(...p)=>(o=>o.length>=f.length?f(...o):curry(f,o))([...a,...p]);}function assocRaw(Z,a1,b1){return Object.assign({},b1,{[Z]:a1});}const c1=curry(assocRaw);function both(x,y){if(arguments.length===1){return d1=>both(x,d1);}return e1=>x(e1)&&y(e1);}function complement(fn){return g1=>!fn(g1);}function compose(...fns){return(...args)=>{const h1=fns.slice();if(h1.length>0){const fn=h1.pop();let j1=fn(...args);while(h1.length>0){j1=h1.pop()(j1);}return j1;}return void 0;};}function concat(x,y){if(arguments.length===1){return k1=>concat(x,k1);}return typeof x==='string'?`${x}${y}`:[...x,...y];}function type(a){const l1=typeof a;if(a===null){return'Null';}else if(a===void 0){return'Undefined';}else if(l1==='boolean'){return'Boolean';}else if(l1==='number'){return'Number';}else if(l1==='string'){return'String';}else if(Array.isArray(a)){return'Array';}else if(a instanceof RegExp){return'RegExp';}const m1=a.toString();if(m1.startsWith('async')){return'Async';}else if(m1==='[object Promise]'){return'Promise';}else if(m1.includes('function')||m1.includes('=>')){return'Function';}return'Object';}function equals(a,b){if(arguments.length===1){return n1=>equals(a,n1);}if(a===b){return!0;}const o1=type(a);if(o1!==type(b)){return!1;}if(o1==='Array'){const p1=Array.from(a),q1=Array.from(b);if(p1.toString()!==q1.toString()){return!1;}let r1=!0;p1.forEach((s1,t1)=>{if(r1){if(s1!==q1[t1]&&!equals(s1,q1[t1])){r1=!1;}}});return r1;}if(o1==='Object'){const u1=Object.keys(a);if(u1.length!==Object.keys(b).length){return!1;}let v1=!0;u1.forEach(w1=>{if(v1){const x1=a[w1],y1=b[w1];if(x1!==y1&&!equals(x1,y1)){v1=!1;}}});return v1;}return!1;}function contains(x,z1){if(arguments.length===1){return A1=>contains(x,A1);}let B1=-1,C1=!1;while(++B1<z1.length&&!C1){if(equals(z1[B1],x)){C1=!0;}}return C1;}const dec=x=>x-1;function defaultTo(D1,E1){if(arguments.length===1){return F1=>defaultTo(D1,F1);}return E1===void 0||E1===null||Number.isNaN(E1)===!0?D1:E1;}function dissoc(G1,H1){if(arguments.length===1){return I1=>dissoc(G1,I1);}if(H1===null||H1===void 0){return{};}const J1={};for(const p in H1){J1[p]=H1[p];}delete J1[G1];return J1;}function divide(x,y){if(arguments.length===1){return K1=>divide(x,K1);}return x/y;}function drop(L1,x){if(arguments.length===1){return M1=>drop(L1,M1);}return x.slice(L1);}function dropLast(N1,x){if(arguments.length===1){return O1=>dropLast(N1,O1);}return x.slice(0,-N1);}function either(x,y){if(arguments.length===1){return P1=>either(x,P1);}return Q1=>x(Q1)||y(Q1);}function endsWith(R1,S1){if(arguments.length===1){return T1=>endsWith(R1,T1);}return S1.endsWith(R1);}function F(){return!1;}function find(fn,V1){if(arguments.length===1){return W1=>find(fn,W1);}return V1.find(fn);}function findIndex(fn,Y1){if(arguments.length===1){return Z1=>findIndex(fn,Z1);}const a2=Y1.length;let b2=-1;while(++b2<a2){if(fn(Y1[b2])){return b2;}}return-1;}function flatten(c2,d2){d2=d2===void 0?[]:d2;for(let i=0;i<c2.length;i++){if(Array.isArray(c2[i])){flatten(c2[i],d2);}else{d2.push(c2[i]);}}return d2;}function flipExport(fn){return(...input)=>{if(input.length===1){return f2=>fn(f2,input[0]);}else if(input.length===2){return fn(input[1],input[0]);}return void 0;};}function flip(fn,...input){return flipExport(fn);}function mapObject(fn,i2){const j2={};for(const k2 in i2){j2[k2]=fn(i2[k2],k2);}return j2;}function map(fn,m2){if(arguments.length===1){return n2=>map(fn,n2);}if(m2===void 0){return[];}if(!Array.isArray(m2)){return mapObject(fn,m2);}let o2=-1;const p2=m2.length,q2=Array(p2);while(++o2<p2){q2[o2]=fn(m2[o2]);}return q2;}function forEach(fn,s2){if(arguments.length===1){return t2=>forEach(fn,t2);}map(fn,s2);return s2;}function groupBy(fn,v2){if(arguments.length===1){return w2=>groupBy(fn,w2);}const x2={};for(let i=0;i<v2.length;i++){const y2=v2[i],z2=fn(y2);if(!x2[z2]){x2[z2]=[];}x2[z2].push(y2);}return x2;}function has(A2,B2){if(arguments.length===1){return C2=>has(A2,C2);}return B2[A2]!==void 0;}function head(a){if(typeof a==='string'){return a[0]||'';}return a[0];}function identity(x){return x;}function ifElse(D2,E2,F2){if(E2===void 0){return(G2,H2)=>ifElse(D2,G2,H2);}else if(F2===void 0){return I2=>ifElse(D2,E2,I2);}return J2=>{const K2=typeof D2==='boolean'?D2:D2(J2);if(K2===!0){return E2(J2);}return F2(J2);};}const inc=x=>x+1;function includes(x,y){if(arguments.length===1){return L2=>includes(x,L2);}return y.includes(x);}function indexBy(fn,N2){if(arguments.length===1){return O2=>indexBy(fn,O2);}const P2={};for(let i=0;i<N2.length;i++){const Q2=N2[i];P2[fn(Q2)]=Q2;}return P2;}function indexOf(x,R2){if(arguments.length===1){return S2=>indexOf(x,S2);}let T2=-1;const U2=R2.length;while(++T2<U2){if(R2[T2]===x){return T2;}}return-1;}function baseSlice(V2,W2,X2){let Y2=-1,Z2=V2.length;X2=X2>Z2?Z2:X2;if(X2<0){X2+=Z2;}Z2=W2>X2?0:X2-W2>>>0;W2>>>=0;const a3=Array(Z2);while(++Y2<Z2){a3[Y2]=V2[Y2+W2];}return a3;}function init(a){if(typeof a==='string'){return a.slice(0,-1);}return a.length?baseSlice(a,0,-1):[];}function is(b3,x){if(arguments.length===1){return c3=>is(b3,c3);}return x!=null&&x.constructor===b3||x instanceof b3;}function isNil(x){return x===void 0||x===null;}function join(d3,e3){if(arguments.length===1){return f3=>join(d3,f3);}return e3.join(d3);}function keys(x){return Object.keys(x);}function last(a){if(typeof a==='string'){return a[a.length-1]||'';}return a[a.length-1];}function lastIndexOf(x,g3){if(arguments.length===1){return h3=>lastIndexOf(x,h3);}let i3=-1;g3.map((j3,k3)=>{if(equals(j3,x)){i3=k3;}});return i3;}function length(x){return x.length;}function match(l3,x){if(arguments.length===1){return m3=>match(l3,m3);}const n3=x.match(l3);return n3===null?[]:n3;}function merge(o3,p3){if(arguments.length===1){return q3=>merge(o3,q3);}return Object.assign({},o3||{},p3||{});}function max(x,y){if(arguments.length===1){return r3=>max(x,r3);}return y>x?y:x;}function maxBy(fn,x,y){if(arguments.length===2){return t3=>maxBy(fn,x,t3);}else if(arguments.length===1){return(u3,v3)=>maxBy(fn,u3,v3);}return fn(y)>fn(x)?y:x;}function min(x,y){if(arguments.length===1){return w3=>min(x,w3);}return y<x?y:x;}function minByRaw(fn,x,y){return fn(y)<fn(x)?y:x;}const y3=curry(minByRaw);function modulo(x,y){if(arguments.length===1)return z3=>modulo(x,z3);return x%y;}function multiply(x,y){if(arguments.length===1)return A3=>multiply(x,A3);return x*y;}function none(fn,C3){if(arguments.length===1)return D3=>none(fn,D3);return C3.filter(fn).length===0;}function not(x){return!x;}function nth(E3,F3){if(arguments.length===1)return G3=>nth(E3,G3);const H3=E3<0?F3.length+E3:E3;return Object.prototype.toString.call(F3)==='[object String]'?F3.charAt(H3):F3[H3];}function omit(I3,J3){if(arguments.length===1){return K3=>omit(I3,K3);}if(J3===null||J3===void 0){return void 0;}const L3=typeof I3==='string'?I3=I3.split(','):I3,M3={};for(const N3 in J3){if(!L3.includes(N3)){M3[N3]=J3[N3];}}return M3;}function partialCurry(fn,P3={}){return Q3=>{if(type(fn)==='Async'||type(fn)==='Promise'){return new Promise((R3,S3)=>{fn(merge(Q3,P3)).then(R3).catch(S3);});}return fn(merge(Q3,P3));};}function path(T3,U3){if(arguments.length===1){return V3=>path(T3,V3);}if(U3===null||U3===void 0){return void 0;}let W3=U3,X3=0;const Y3=typeof T3==='string'?T3.split('.'):T3;while(X3<Y3.length){if(W3===null||W3===void 0){return void 0;}W3=W3[Y3[X3]];X3++;}return W3;}function pathOrRaw(Z3,a4,b4){return defaultTo(Z3,path(a4,b4));}const c4=curry(pathOrRaw);function pick(d4,e4){if(arguments.length===1){return f4=>pick(d4,f4);}if(e4===null||e4===void 0){return void 0;}const g4=typeof d4==='string'?d4.split(','):d4,h4={};let i4=0;while(i4<g4.length){if(g4[i4]in e4){h4[g4[i4]]=e4[g4[i4]];}i4++;}return h4;}function pickAll(j4,k4){if(arguments.length===1){return l4=>pickAll(j4,l4);}if(k4===null||k4===void 0){return void 0;}const m4=typeof j4==='string'?j4.split(','):j4,n4={};let o4=0;while(o4<m4.length){if(m4[o4]in k4){n4[m4[o4]]=k4[m4[o4]];}else{n4[m4[o4]]=void 0;}o4++;}return n4;}function pipe(...fns){return compose(...fns.reverse());}function pluck(p4,q4){if(arguments.length===1)return r4=>pluck(p4,r4);const s4=[];map(t4=>{if(!(t4[p4]===void 0)){s4.push(t4[p4]);}},q4);return s4;}function prepend(x,u4){if(arguments.length===1)return v4=>prepend(x,v4);if(typeof u4==='string'){return`${x}${u4}`;}const w4=u4.concat();w4.unshift(x);return w4;}function prop(x4,y4){if(arguments.length===1)return z4=>prop(x4,z4);return y4[x4];}function propEq(A4,x,B4){if(x===void 0){return(C4,D4)=>propEq(A4,C4,D4);}else if(B4===void 0){return E4=>propEq(A4,x,E4);}return B4[A4]===x;}function range(F4,G4){if(arguments.length===1)return H4=>range(F4,H4);const I4=[];for(let i=F4;i<G4;i++){I4.push(i);}return I4;}function reduce(fn,K4,L4){if(K4===void 0){return(M4,N4)=>reduce(fn,M4,N4);}else if(L4===void 0){return O4=>reduce(fn,K4,O4);}return L4.reduce(fn,K4);}function reject(fn,Q4){if(arguments.length===1)return R4=>reject(fn,R4);return filter(x=>!fn(x),Q4);}function repeat(x,S4){if(arguments.length===1){return T4=>repeat(x,T4);}const U4=Array(S4);return U4.fill(x);}function replace(V4,W4,X4){if(W4===void 0){return(Y4,Z4)=>replace(V4,Y4,Z4);}else if(X4===void 0){return a5=>replace(V4,W4,a5);}return X4.replace(V4,W4);}function reverse(b5){const c5=b5.concat();return c5.reverse();}function sort(fn,e5){if(arguments.length===1)return f5=>sort(fn,f5);const g5=e5.concat();return g5.sort(fn);}function sortBy(fn,i5){if(arguments.length===1){return j5=>sortBy(fn,j5);}const k5=i5.concat();return k5.sort((a,b)=>{const l5=fn(a),m5=fn(b);return l5<m5?-1:l5>m5?1:0;});}function split(n5,o5){if(arguments.length===1)return p5=>split(n5,p5);return o5.split(n5);}function splitEvery(q5,x){if(arguments.length===1)return r5=>splitEvery(q5,r5);const s5=q5>1?q5:1,t5=[];let u5=0;while(u5<x.length){t5.push(x.slice(u5,u5+=s5));}return t5;}function startsWith(x,y){if(arguments.length===1)return v5=>startsWith(x,v5);return y.startsWith(x);}function subtract(x,y){if(arguments.length===1)return w5=>subtract(x,w5);return x-y;}function T(){return!0;}function tail(x5){return drop(1,x5);}function take(y5,x){if(arguments.length===1)return z5=>take(y5,z5);if(typeof x==='string'){return x.slice(0,y5);}return baseSlice(x,0,y5);}function takeLast(A5,x){if(arguments.length===1)return B5=>takeLast(A5,B5);const C5=x.length;let D5=A5>C5?C5:A5;if(typeof x==='string'){return x.slice(C5-D5);}D5=C5-D5;return baseSlice(x,D5,C5);}function tap(fn,x){if(arguments.length===1)return F5=>tap(fn,F5);fn(x);return x;}function test(G5,H5){if(arguments.length===1)return I5=>test(G5,I5);return H5.search(G5)!==-1;}function times(fn,K5){if(arguments.length===1)return L5=>times(fn,L5);return map(fn,range(0,K5));}function toLower(x){return x.toLowerCase();}function toString(x){return x.toString();}function toUpper(x){return x.toUpperCase();}function trim(M5){return M5.trim();}function uniq(N5){let O5=-1;const P5=[];while(++O5<N5.length){const Q5=N5[O5];if(!contains(Q5,P5)){P5.push(Q5);}}return P5;}function uniqWith(fn,S5){if(arguments.length===1)return T5=>uniqWith(fn,T5);let U5=-1;const V5=S5.length,W5=[];while(++U5<S5.length){const X5=S5[U5],Y5=any(Z5=>fn(X5,Z5),W5);if(!Y5){W5.push(X5);}}return W5;}function update(a6,b6,c6){if(b6===void 0){return(d6,e6)=>update(a6,d6,e6);}else if(c6===void 0){return f6=>update(a6,b6,f6);}const g6=c6.concat();return g6.fill(b6,a6,a6+1);}function values(h6){const i6=[];for(const j6 in h6){i6.push(h6[j6]);}return i6;}function without(k6,l6){return reduce((m6,n6)=>!contains(n6,k6)?m6.concat(n6):m6,[],l6);}function zip(x,y){if(arguments.length===1)return o6=>zip(x,o6);return addIndex(reduce)((p6,q6,r6)=>y[r6]?p6.concat([[q6,y[r6]]]):p6,[],x);}function zipObj(x,y){if(arguments.length===1)return s6=>zipObj(x,s6);return x.reduce((t6,u6,i)=>{t6[u6]=y[i];return t6;},{});}export{add,addIndex,adjust,all,allPass,always,any,anyPass,append,c1 as assoc,both,complement,compose,concat,contains,curry,dec,defaultTo,dissoc,divide,drop,dropLast,either,endsWith,equals,F,filter,find,findIndex,flatten,flip,forEach,groupBy,has,head,identity,ifElse,inc,includes,indexBy,indexOf,init,is,isNil,join,keys,last,lastIndexOf,length,map,match,merge,max,maxBy,min,y3 as minBy,modulo,multiply,none,not,nth,omit,partialCurry,path,c4 as pathOr,pick,pickAll,pipe,pluck,prepend,prop,propEq,range,reduce,reject,repeat,replace,reverse,sort,sortBy,split,splitEvery,startsWith,subtract,T,tail,take,takeLast,tap,test,times,toLower,toString,toUpper,trim,type,uniq,uniqWith,update,values,without,zip,zipObj}; |
@@ -1,1 +0,1 @@ | ||
'use strict';Object.defineProperty(exports,'__esModule',{value:!0});function add(x,y){if(y===void 0){return c=>add(x,c);}return x+y;}function addIndex(d){return function(e,...rest){let g=0;const newFn=(...args)=>e.apply(null,[...args,g++]);return d.apply(null,[newFn,...rest]);};}function adjust(h,j,k){if(j===void 0){return(l,m)=>adjust(h,l,m);}else if(k===void 0){return n=>adjust(h,j,n);}const q=k.concat();return q.map((r,s)=>{if(s===j){return h(k[j]);}return r;});}function filterObject(t,u){const v={};for(const w in u){if(t(u[w],w)){v[w]=u[w];}}return v;}function filter(z,A){if(arguments.length===1){return B=>filter(z,B);}if(A===void 0){return[];}if(!Array.isArray(A)){return filterObject(z,A);}let C=-1,D=0;const E=A.length,G=[];while(++C<E){const H=A[C];if(z(H)){G[D++]=H;}}return G;}function all(I,J){if(arguments.length===1){return K=>all(I,K);}return filter(I,J).length===J.length;}function any(L,M){if(arguments.length===1){return N=>any(L,N);}let O=0;while(O<M.length){if(L(M[O],O)){return!0;}O++;}return!1;}function allPass(P,x){if(arguments.length===1){return Q=>allPass(P,Q);}return!any(R=>!R(x),P);}function always(x){return()=>x;}function anyPass(S,x){if(arguments.length===1){return U=>anyPass(S,U);}return any(V=>V(x))(S);}function append(x,W){if(arguments.length===1){return X=>append(x,X);}if(typeof W==='string'){return`${W}${x}`;}const Y=W.concat();Y.push(x);return Y;}function curry(f,a=[]){return(...p)=>(o=>o.length>=f.length?f(...o):curry(f,o))([...a,...p]);}function assoc(Z,a1,b1){return Object.assign({},b1,{[Z]:a1});}var c1=curry(assoc);function both(x,y){if(arguments.length===1){return d1=>both(x,d1);}return e1=>x(e1)&&y(e1);}function complement(fn){return g1=>!fn(g1);}function compose(...fns){return(...args)=>{const h1=fns.slice();if(h1.length>0){const fn=h1.pop();let j1=fn(...args);while(h1.length>0){j1=h1.pop()(j1);}return j1;}return void 0;};}function concat(x,y){if(arguments.length===1){return k1=>concat(x,k1);}return typeof x==='string'?`${x}${y}`:[...x,...y];}function type(a){const l1=typeof a;if(a===null){return'Null';}else if(a===void 0){return'Undefined';}else if(l1==='boolean'){return'Boolean';}else if(l1==='number'){return'Number';}else if(l1==='string'){return'String';}else if(Array.isArray(a)){return'Array';}else if(a instanceof RegExp){return'RegExp';}const m1=a.toString();if(m1.startsWith('async')){return'Async';}else if(m1==='[object Promise]'){return'Promise';}else if(m1.includes('function')||m1.includes('=>')){return'Function';}return'Object';}function equals(a,b){if(arguments.length===1){return n1=>equals(a,n1);}if(a===b){return!0;}const o1=type(a);if(o1!==type(b)){return!1;}if(o1==='Array'){const p1=Array.from(a),q1=Array.from(b);if(p1.toString()!==q1.toString()){return!1;}let r1=!0;p1.forEach((s1,t1)=>{if(r1){if(s1!==q1[t1]&&!equals(s1,q1[t1])){r1=!1;}}});return r1;}if(o1==='Object'){const u1=Object.keys(a);if(u1.length!==Object.keys(b).length){return!1;}let v1=!0;u1.forEach(w1=>{if(v1){const x1=a[w1],y1=b[w1];if(x1!==y1&&!equals(x1,y1)){v1=!1;}}});return v1;}return!1;}function contains(x,z1){if(arguments.length===1){return A1=>contains(x,A1);}let B1=-1,C1=!1;while(++B1<z1.length&&!C1){if(equals(z1[B1],x)){C1=!0;}}return C1;}var dec=x=>x-1;function defaultTo(D1,E1){if(arguments.length===1){return F1=>defaultTo(D1,F1);}return E1===void 0||E1===null||Number.isNaN(E1)===!0?D1:E1;}function dissoc(G1,H1){if(arguments.length===1){return I1=>dissoc(G1,I1);}if(H1===null||H1===void 0){return{};}const J1={};for(const p in H1){J1[p]=H1[p];}delete J1[G1];return J1;}function divide(x,y){if(arguments.length===1){return K1=>divide(x,K1);}return x/y;}function drop(L1,x){if(arguments.length===1){return M1=>drop(L1,M1);}return x.slice(L1);}function dropLast(N1,x){if(arguments.length===1){return O1=>dropLast(N1,O1);}return x.slice(0,-N1);}function either(x,y){if(arguments.length===1){return P1=>either(x,P1);}return Q1=>x(Q1)||y(Q1);}function baseSlice(R1,S1,T1){let U1=-1,V1=R1.length;T1=T1>V1?V1:T1;if(T1<0){T1+=V1;}V1=S1>T1?0:T1-S1>>>0;S1>>>=0;const W1=Array(V1);while(++U1<V1){W1[U1]=R1[U1+S1];}return W1;}function takeLast(X1,x){if(arguments.length===1)return Y1=>takeLast(X1,Y1);const Z1=x.length;let a2=X1>Z1?Z1:X1;if(typeof x==='string'){return x.slice(Z1-a2);}a2=Z1-a2;return baseSlice(x,a2,Z1);}function endsWith(b2,c2){if(arguments.length===1){return d2=>endsWith(b2,d2);}return equals(b2,takeLast(b2.length,c2));}function F(){return!1;}function find(fn,f2){if(arguments.length===1){return g2=>find(fn,g2);}return f2.find(fn);}function findIndex(fn,i2){if(arguments.length===1){return j2=>findIndex(fn,j2);}const k2=i2.length;let l2=-1;while(++l2<k2){if(fn(i2[l2])){return l2;}}return-1;}function flatten(m2,n2){n2=n2===void 0?[]:n2;for(let i=0;i<m2.length;i++){if(Array.isArray(m2[i])){flatten(m2[i],n2);}else{n2.push(m2[i]);}}return n2;}function flipExport(fn){return(...input)=>{if(input.length===1){return p2=>fn(p2,input[0]);}else if(input.length===2){return fn(input[1],input[0]);}return void 0;};}function flip(fn,...input){return flipExport(fn);}function mapObject(fn,s2){const t2={};for(const u2 in s2){t2[u2]=fn(s2[u2],u2);}return t2;}function map(fn,w2){if(arguments.length===1){return x2=>map(fn,x2);}if(w2===void 0){return[];}if(!Array.isArray(w2)){return mapObject(fn,w2);}let y2=-1;const z2=w2.length,A2=Array(z2);while(++y2<z2){A2[y2]=fn(w2[y2]);}return A2;}function forEach(fn,C2){if(arguments.length===1){return D2=>forEach(fn,D2);}map(fn,C2);return C2;}function groupBy(fn,F2){if(arguments.length===1){return G2=>groupBy(fn,G2);}const H2={};for(let i=0;i<F2.length;i++){const I2=F2[i],J2=fn(I2);if(!H2[J2]){H2[J2]=[];}H2[J2].push(I2);}return H2;}function has(K2,L2){if(arguments.length===1){return M2=>has(K2,M2);}return L2[K2]!==void 0;}function head(a){if(typeof a==='string'){return a[0]||'';}return a[0];}function identity(x){return x;}function ifElse(N2,O2,P2){if(O2===void 0){return(Q2,R2)=>ifElse(N2,Q2,R2);}else if(P2===void 0){return S2=>ifElse(N2,O2,S2);}return T2=>{const U2=typeof N2==='boolean'?N2:N2(T2);if(U2===!0){return O2(T2);}return P2(T2);};}var inc=x=>x+1;function includes(x,y){if(arguments.length===1){return V2=>includes(x,V2);}return y.includes(x);}function indexBy(fn,X2){if(arguments.length===1){return Y2=>indexBy(fn,Y2);}const Z2={};for(let i=0;i<X2.length;i++){const a3=X2[i];Z2[fn(a3)]=a3;}return Z2;}function indexOf(x,b3){if(arguments.length===1){return c3=>indexOf(x,c3);}let d3=-1;const e3=b3.length;while(++d3<e3){if(b3[d3]===x){return d3;}}return-1;}function init(a){if(typeof a==='string'){return a.slice(0,-1);}return a.length?baseSlice(a,0,-1):[];}function is(f3,x){if(arguments.length===1){return g3=>is(f3,g3);}return x!=null&&x.constructor===f3||x instanceof f3;}function isNil(x){return x===void 0||x===null;}function join(h3,i3){if(arguments.length===1){return j3=>join(h3,j3);}return i3.join(h3);}function keys(x){return Object.keys(x);}function last(a){if(typeof a==='string'){return a[a.length-1]||'';}return a[a.length-1];}function lastIndexOf(x,k3){if(arguments.length===1){return l3=>lastIndexOf(x,l3);}let m3=-1;k3.map((n3,o3)=>{if(equals(n3,x)){m3=o3;}});return m3;}function length(x){return x.length;}function match(p3,x){if(arguments.length===1){return q3=>match(p3,q3);}const r3=x.match(p3);return r3===null?[]:r3;}function merge(s3,t3){if(arguments.length===1){return u3=>merge(s3,u3);}return Object.assign({},s3||{},t3||{});}function max(x,y){if(arguments.length===1){return v3=>max(x,v3);}return y>x?y:x;}function maxBy(fn,x,y){if(arguments.length===2){return x3=>maxBy(fn,x,x3);}else if(arguments.length===1){return(y3,z3)=>maxBy(fn,y3,z3);}return fn(y)>fn(x)?y:x;}function min(x,y){if(arguments.length===1){return A3=>min(x,A3);}return y<x?y:x;}function minBy(fn,x,y){return fn(y)<fn(x)?y:x;}var C3=curry(minBy);function modulo(x,y){if(arguments.length===1)return D3=>modulo(x,D3);return x%y;}function multiply(x,y){if(arguments.length===1)return E3=>multiply(x,E3);return x*y;}function none(fn,G3){if(arguments.length===1)return H3=>none(fn,H3);return G3.filter(fn).length===0;}function not(x){return!x;}function nth(I3,J3){if(arguments.length===1)return K3=>nth(I3,K3);const L3=I3<0?J3.length+I3:I3;return Object.prototype.toString.call(J3)==='[object String]'?J3.charAt(L3):J3[L3];}function omit(M3,N3){if(arguments.length===1){return O3=>omit(M3,O3);}if(N3===null||N3===void 0){return void 0;}const P3=typeof M3==='string'?M3=M3.split(','):M3,Q3={};for(const R3 in N3){if(!P3.includes(R3)){Q3[R3]=N3[R3];}}return Q3;}function partialCurry(fn,T3={}){return U3=>{if(type(fn)==='Async'||type(fn)==='Promise'){return new Promise((V3,W3)=>{fn(merge(U3,T3)).then(V3).catch(W3);});}return fn(merge(U3,T3));};}function path(X3,Y3){if(arguments.length===1){return Z3=>path(X3,Z3);}if(Y3===null||Y3===void 0){return void 0;}let a4=Y3,b4=0;const c4=typeof X3==='string'?X3.split('.'):X3;while(b4<c4.length){if(a4===null||a4===void 0){return void 0;}a4=a4[c4[b4]];b4++;}return a4;}function pathOr(d4,e4,f4){return defaultTo(d4,path(e4,f4));}var g4=curry(pathOr);function pick(h4,i4){if(arguments.length===1){return j4=>pick(h4,j4);}if(i4===null||i4===void 0){return void 0;}const k4=typeof h4==='string'?h4.split(','):h4,l4={};let m4=0;while(m4<k4.length){if(k4[m4]in i4){l4[k4[m4]]=i4[k4[m4]];}m4++;}return l4;}function pickAll(n4,o4){if(arguments.length===1){return p4=>pickAll(n4,p4);}if(o4===null||o4===void 0){return void 0;}const q4=typeof n4==='string'?n4.split(','):n4,r4={};let s4=0;while(s4<q4.length){if(q4[s4]in o4){r4[q4[s4]]=o4[q4[s4]];}else{r4[q4[s4]]=void 0;}s4++;}return r4;}function pipe(...fns){return compose(...fns.reverse());}function pluck(t4,u4){if(arguments.length===1)return v4=>pluck(t4,v4);const w4=[];map(x4=>{if(!(x4[t4]===void 0)){w4.push(x4[t4]);}},u4);return w4;}function prepend(x,y4){if(arguments.length===1)return z4=>prepend(x,z4);if(typeof y4==='string'){return`${x}${y4}`;}const A4=y4.concat();A4.unshift(x);return A4;}function prop(B4,C4){if(arguments.length===1)return D4=>prop(B4,D4);return C4[B4];}function propEq(E4,x,F4){if(x===void 0){return(G4,H4)=>propEq(E4,G4,H4);}else if(F4===void 0){return I4=>propEq(E4,x,I4);}return F4[E4]===x;}function range(J4,K4){if(arguments.length===1)return L4=>range(J4,L4);const M4=[];for(let i=J4;i<K4;i++){M4.push(i);}return M4;}function reduce(fn,O4,P4){if(O4===void 0){return(Q4,R4)=>reduce(fn,Q4,R4);}else if(P4===void 0){return S4=>reduce(fn,O4,S4);}return P4.reduce(fn,O4);}function reject(fn,U4){if(arguments.length===1)return V4=>reject(fn,V4);return filter(x=>!fn(x),U4);}function repeat(x,W4){if(arguments.length===1){return X4=>repeat(x,X4);}const Y4=Array(W4);return Y4.fill(x);}function replace(Z4,a5,b5){if(a5===void 0){return(c5,d5)=>replace(Z4,c5,d5);}else if(b5===void 0){return e5=>replace(Z4,a5,e5);}return b5.replace(Z4,a5);}function reverse(f5){const g5=f5.concat();return g5.reverse();}function sort(fn,i5){if(arguments.length===1)return j5=>sort(fn,j5);const k5=i5.concat();return k5.sort(fn);}function sortBy(fn,m5){if(arguments.length===1){return n5=>sortBy(fn,n5);}const o5=m5.concat();return o5.sort((a,b)=>{const p5=fn(a),q5=fn(b);return p5<q5?-1:p5>q5?1:0;});}function split(r5,s5){if(arguments.length===1)return t5=>split(r5,t5);return s5.split(r5);}function splitEvery(u5,x){if(arguments.length===1)return v5=>splitEvery(u5,v5);const w5=u5>1?u5:1,x5=[];let y5=0;while(y5<x.length){x5.push(x.slice(y5,y5+=w5));}return x5;}function startsWith(x,y){if(arguments.length===1)return z5=>startsWith(x,z5);return y.startsWith(x);}function subtract(x,y){if(arguments.length===1)return A5=>subtract(x,A5);return x-y;}function T(){return!0;}function tail(B5){return drop(1,B5);}function take(C5,x){if(arguments.length===1)return D5=>take(C5,D5);if(typeof x==='string'){return x.slice(0,C5);}return baseSlice(x,0,C5);}function tap(fn,x){if(arguments.length===1)return F5=>tap(fn,F5);fn(x);return x;}function test(G5,H5){if(arguments.length===1)return I5=>test(G5,I5);return H5.search(G5)!==-1;}function times(fn,K5){if(arguments.length===1)return L5=>times(fn,L5);return map(fn,range(0,K5));}function toLower(x){return x.toLowerCase();}function toString(x){return x.toString();}function toUpper(x){return x.toUpperCase();}function trim(M5){return M5.trim();}function uniq(N5){let O5=-1;const P5=[];while(++O5<N5.length){const Q5=N5[O5];if(!contains(Q5,P5)){P5.push(Q5);}}return P5;}function uniqWith(fn,S5){if(arguments.length===1)return T5=>uniqWith(fn,T5);let U5=-1;const V5=S5.length,W5=[];while(++U5<S5.length){const X5=S5[U5],Y5=any(Z5=>fn(X5,Z5),W5);if(!Y5){W5.push(X5);}}return W5;}function update(a6,b6,c6){if(b6===void 0){return(d6,e6)=>update(a6,d6,e6);}else if(c6===void 0){return f6=>update(a6,b6,f6);}const g6=c6.concat();return g6.fill(b6,a6,a6+1);}function values(h6){const i6=[];for(const j6 in h6){i6.push(h6[j6]);}return i6;}function without(k6,l6){return reduce((m6,n6)=>!contains(n6,k6)?m6.concat(n6):m6,[],l6);}function zip(x,y){if(arguments.length===1)return o6=>zip(x,o6);return addIndex(reduce)((p6,q6,r6)=>y[r6]?p6.concat([[q6,y[r6]]]):p6,[],x);}function zipObj(x,y){if(arguments.length===1)return s6=>zipObj(x,s6);return x.reduce((t6,u6,i)=>{t6[u6]=y[i];return t6;},{});}exports.add=add;exports.addIndex=addIndex;exports.adjust=adjust;exports.all=all;exports.allPass=allPass;exports.always=always;exports.any=any;exports.anyPass=anyPass;exports.append=append;exports.assoc=c1;exports.both=both;exports.complement=complement;exports.compose=compose;exports.concat=concat;exports.contains=contains;exports.curry=curry;exports.dec=dec;exports.defaultTo=defaultTo;exports.dissoc=dissoc;exports.divide=divide;exports.drop=drop;exports.dropLast=dropLast;exports.either=either;exports.endsWith=endsWith;exports.equals=equals;exports.F=F;exports.filter=filter;exports.find=find;exports.findIndex=findIndex;exports.flatten=flatten;exports.flip=flip;exports.forEach=forEach;exports.groupBy=groupBy;exports.has=has;exports.head=head;exports.identity=identity;exports.ifElse=ifElse;exports.inc=inc;exports.includes=includes;exports.indexBy=indexBy;exports.indexOf=indexOf;exports.init=init;exports.is=is;exports.isNil=isNil;exports.join=join;exports.keys=keys;exports.last=last;exports.lastIndexOf=lastIndexOf;exports.length=length;exports.map=map;exports.match=match;exports.merge=merge;exports.max=max;exports.maxBy=maxBy;exports.min=min;exports.minBy=C3;exports.modulo=modulo;exports.multiply=multiply;exports.none=none;exports.not=not;exports.nth=nth;exports.omit=omit;exports.partialCurry=partialCurry;exports.path=path;exports.pathOr=g4;exports.pick=pick;exports.pickAll=pickAll;exports.pipe=pipe;exports.pluck=pluck;exports.prepend=prepend;exports.prop=prop;exports.propEq=propEq;exports.range=range;exports.reduce=reduce;exports.reject=reject;exports.repeat=repeat;exports.replace=replace;exports.reverse=reverse;exports.sort=sort;exports.sortBy=sortBy;exports.split=split;exports.splitEvery=splitEvery;exports.startsWith=startsWith;exports.subtract=subtract;exports.T=T;exports.tail=tail;exports.take=take;exports.takeLast=takeLast;exports.tap=tap;exports.test=test;exports.times=times;exports.toLower=toLower;exports.toString=toString;exports.toUpper=toUpper;exports.trim=trim;exports.type=type;exports.uniq=uniq;exports.uniqWith=uniqWith;exports.update=update;exports.values=values;exports.without=without;exports.zip=zip;exports.zipObj=zipObj; | ||
'use strict';Object.defineProperty(exports,'__esModule',{value:!0});function add(x,y){if(y===void 0){return c=>add(x,c);}return x+y;}function addIndex(d){return function(e,...rest){let g=0;const newFn=(...args)=>e.apply(null,[...args,g++]);return d.apply(null,[newFn,...rest]);};}function adjust(h,j,k){if(j===void 0){return(l,m)=>adjust(h,l,m);}else if(k===void 0){return n=>adjust(h,j,n);}const q=k.concat();return q.map((r,s)=>{if(s===j){return h(k[j]);}return r;});}function filterObject(t,u){const v={};for(const w in u){if(t(u[w],w)){v[w]=u[w];}}return v;}function filter(z,A){if(arguments.length===1){return B=>filter(z,B);}if(A===void 0){return[];}if(!Array.isArray(A)){return filterObject(z,A);}let C=-1,D=0;const E=A.length,G=[];while(++C<E){const H=A[C];if(z(H)){G[D++]=H;}}return G;}function all(I,J){if(arguments.length===1){return K=>all(I,K);}return filter(I,J).length===J.length;}function any(L,M){if(arguments.length===1){return N=>any(L,N);}let O=0;while(O<M.length){if(L(M[O],O)){return!0;}O++;}return!1;}function allPass(P,x){if(arguments.length===1){return Q=>allPass(P,Q);}return!any(R=>!R(x),P);}function always(x){return()=>x;}function anyPass(S,x){if(arguments.length===1){return U=>anyPass(S,U);}return any(V=>V(x))(S);}function append(x,W){if(arguments.length===1){return X=>append(x,X);}if(typeof W==='string')return`${W}${x}`;const Y=W.concat();Y.push(x);return Y;}function curry(f,a=[]){return(...p)=>(o=>o.length>=f.length?f(...o):curry(f,o))([...a,...p]);}function assocRaw(Z,a1,b1){return Object.assign({},b1,{[Z]:a1});}const c1=curry(assocRaw);function both(x,y){if(arguments.length===1){return d1=>both(x,d1);}return e1=>x(e1)&&y(e1);}function complement(fn){return g1=>!fn(g1);}function compose(...fns){return(...args)=>{const h1=fns.slice();if(h1.length>0){const fn=h1.pop();let j1=fn(...args);while(h1.length>0){j1=h1.pop()(j1);}return j1;}return void 0;};}function concat(x,y){if(arguments.length===1){return k1=>concat(x,k1);}return typeof x==='string'?`${x}${y}`:[...x,...y];}function type(a){const l1=typeof a;if(a===null){return'Null';}else if(a===void 0){return'Undefined';}else if(l1==='boolean'){return'Boolean';}else if(l1==='number'){return'Number';}else if(l1==='string'){return'String';}else if(Array.isArray(a)){return'Array';}else if(a instanceof RegExp){return'RegExp';}const m1=a.toString();if(m1.startsWith('async')){return'Async';}else if(m1==='[object Promise]'){return'Promise';}else if(m1.includes('function')||m1.includes('=>')){return'Function';}return'Object';}function equals(a,b){if(arguments.length===1){return n1=>equals(a,n1);}if(a===b){return!0;}const o1=type(a);if(o1!==type(b)){return!1;}if(o1==='Array'){const p1=Array.from(a),q1=Array.from(b);if(p1.toString()!==q1.toString()){return!1;}let r1=!0;p1.forEach((s1,t1)=>{if(r1){if(s1!==q1[t1]&&!equals(s1,q1[t1])){r1=!1;}}});return r1;}if(o1==='Object'){const u1=Object.keys(a);if(u1.length!==Object.keys(b).length){return!1;}let v1=!0;u1.forEach(w1=>{if(v1){const x1=a[w1],y1=b[w1];if(x1!==y1&&!equals(x1,y1)){v1=!1;}}});return v1;}return!1;}function contains(x,z1){if(arguments.length===1){return A1=>contains(x,A1);}let B1=-1,C1=!1;while(++B1<z1.length&&!C1){if(equals(z1[B1],x)){C1=!0;}}return C1;}const dec=x=>x-1;function defaultTo(D1,E1){if(arguments.length===1){return F1=>defaultTo(D1,F1);}return E1===void 0||E1===null||Number.isNaN(E1)===!0?D1:E1;}function dissoc(G1,H1){if(arguments.length===1){return I1=>dissoc(G1,I1);}if(H1===null||H1===void 0){return{};}const J1={};for(const p in H1){J1[p]=H1[p];}delete J1[G1];return J1;}function divide(x,y){if(arguments.length===1){return K1=>divide(x,K1);}return x/y;}function drop(L1,x){if(arguments.length===1){return M1=>drop(L1,M1);}return x.slice(L1);}function dropLast(N1,x){if(arguments.length===1){return O1=>dropLast(N1,O1);}return x.slice(0,-N1);}function either(x,y){if(arguments.length===1){return P1=>either(x,P1);}return Q1=>x(Q1)||y(Q1);}function endsWith(R1,S1){if(arguments.length===1){return T1=>endsWith(R1,T1);}return S1.endsWith(R1);}function F(){return!1;}function find(fn,V1){if(arguments.length===1){return W1=>find(fn,W1);}return V1.find(fn);}function findIndex(fn,Y1){if(arguments.length===1){return Z1=>findIndex(fn,Z1);}const a2=Y1.length;let b2=-1;while(++b2<a2){if(fn(Y1[b2])){return b2;}}return-1;}function flatten(c2,d2){d2=d2===void 0?[]:d2;for(let i=0;i<c2.length;i++){if(Array.isArray(c2[i])){flatten(c2[i],d2);}else{d2.push(c2[i]);}}return d2;}function flipExport(fn){return(...input)=>{if(input.length===1){return f2=>fn(f2,input[0]);}else if(input.length===2){return fn(input[1],input[0]);}return void 0;};}function flip(fn,...input){return flipExport(fn);}function mapObject(fn,i2){const j2={};for(const k2 in i2){j2[k2]=fn(i2[k2],k2);}return j2;}function map(fn,m2){if(arguments.length===1){return n2=>map(fn,n2);}if(m2===void 0){return[];}if(!Array.isArray(m2)){return mapObject(fn,m2);}let o2=-1;const p2=m2.length,q2=Array(p2);while(++o2<p2){q2[o2]=fn(m2[o2]);}return q2;}function forEach(fn,s2){if(arguments.length===1){return t2=>forEach(fn,t2);}map(fn,s2);return s2;}function groupBy(fn,v2){if(arguments.length===1){return w2=>groupBy(fn,w2);}const x2={};for(let i=0;i<v2.length;i++){const y2=v2[i],z2=fn(y2);if(!x2[z2]){x2[z2]=[];}x2[z2].push(y2);}return x2;}function has(A2,B2){if(arguments.length===1){return C2=>has(A2,C2);}return B2[A2]!==void 0;}function head(a){if(typeof a==='string'){return a[0]||'';}return a[0];}function identity(x){return x;}function ifElse(D2,E2,F2){if(E2===void 0){return(G2,H2)=>ifElse(D2,G2,H2);}else if(F2===void 0){return I2=>ifElse(D2,E2,I2);}return J2=>{const K2=typeof D2==='boolean'?D2:D2(J2);if(K2===!0){return E2(J2);}return F2(J2);};}const inc=x=>x+1;function includes(x,y){if(arguments.length===1){return L2=>includes(x,L2);}return y.includes(x);}function indexBy(fn,N2){if(arguments.length===1){return O2=>indexBy(fn,O2);}const P2={};for(let i=0;i<N2.length;i++){const Q2=N2[i];P2[fn(Q2)]=Q2;}return P2;}function indexOf(x,R2){if(arguments.length===1){return S2=>indexOf(x,S2);}let T2=-1;const U2=R2.length;while(++T2<U2){if(R2[T2]===x){return T2;}}return-1;}function baseSlice(V2,W2,X2){let Y2=-1,Z2=V2.length;X2=X2>Z2?Z2:X2;if(X2<0){X2+=Z2;}Z2=W2>X2?0:X2-W2>>>0;W2>>>=0;const a3=Array(Z2);while(++Y2<Z2){a3[Y2]=V2[Y2+W2];}return a3;}function init(a){if(typeof a==='string'){return a.slice(0,-1);}return a.length?baseSlice(a,0,-1):[];}function is(b3,x){if(arguments.length===1){return c3=>is(b3,c3);}return x!=null&&x.constructor===b3||x instanceof b3;}function isNil(x){return x===void 0||x===null;}function join(d3,e3){if(arguments.length===1){return f3=>join(d3,f3);}return e3.join(d3);}function keys(x){return Object.keys(x);}function last(a){if(typeof a==='string'){return a[a.length-1]||'';}return a[a.length-1];}function lastIndexOf(x,g3){if(arguments.length===1){return h3=>lastIndexOf(x,h3);}let i3=-1;g3.map((j3,k3)=>{if(equals(j3,x)){i3=k3;}});return i3;}function length(x){return x.length;}function match(l3,x){if(arguments.length===1){return m3=>match(l3,m3);}const n3=x.match(l3);return n3===null?[]:n3;}function merge(o3,p3){if(arguments.length===1){return q3=>merge(o3,q3);}return Object.assign({},o3||{},p3||{});}function max(x,y){if(arguments.length===1){return r3=>max(x,r3);}return y>x?y:x;}function maxBy(fn,x,y){if(arguments.length===2){return t3=>maxBy(fn,x,t3);}else if(arguments.length===1){return(u3,v3)=>maxBy(fn,u3,v3);}return fn(y)>fn(x)?y:x;}function min(x,y){if(arguments.length===1){return w3=>min(x,w3);}return y<x?y:x;}function minByRaw(fn,x,y){return fn(y)<fn(x)?y:x;}const y3=curry(minByRaw);function modulo(x,y){if(arguments.length===1)return z3=>modulo(x,z3);return x%y;}function multiply(x,y){if(arguments.length===1)return A3=>multiply(x,A3);return x*y;}function none(fn,C3){if(arguments.length===1)return D3=>none(fn,D3);return C3.filter(fn).length===0;}function not(x){return!x;}function nth(E3,F3){if(arguments.length===1)return G3=>nth(E3,G3);const H3=E3<0?F3.length+E3:E3;return Object.prototype.toString.call(F3)==='[object String]'?F3.charAt(H3):F3[H3];}function omit(I3,J3){if(arguments.length===1){return K3=>omit(I3,K3);}if(J3===null||J3===void 0){return void 0;}const L3=typeof I3==='string'?I3=I3.split(','):I3,M3={};for(const N3 in J3){if(!L3.includes(N3)){M3[N3]=J3[N3];}}return M3;}function partialCurry(fn,P3={}){return Q3=>{if(type(fn)==='Async'||type(fn)==='Promise'){return new Promise((R3,S3)=>{fn(merge(Q3,P3)).then(R3).catch(S3);});}return fn(merge(Q3,P3));};}function path(T3,U3){if(arguments.length===1){return V3=>path(T3,V3);}if(U3===null||U3===void 0){return void 0;}let W3=U3,X3=0;const Y3=typeof T3==='string'?T3.split('.'):T3;while(X3<Y3.length){if(W3===null||W3===void 0){return void 0;}W3=W3[Y3[X3]];X3++;}return W3;}function pathOrRaw(Z3,a4,b4){return defaultTo(Z3,path(a4,b4));}const c4=curry(pathOrRaw);function pick(d4,e4){if(arguments.length===1){return f4=>pick(d4,f4);}if(e4===null||e4===void 0){return void 0;}const g4=typeof d4==='string'?d4.split(','):d4,h4={};let i4=0;while(i4<g4.length){if(g4[i4]in e4){h4[g4[i4]]=e4[g4[i4]];}i4++;}return h4;}function pickAll(j4,k4){if(arguments.length===1){return l4=>pickAll(j4,l4);}if(k4===null||k4===void 0){return void 0;}const m4=typeof j4==='string'?j4.split(','):j4,n4={};let o4=0;while(o4<m4.length){if(m4[o4]in k4){n4[m4[o4]]=k4[m4[o4]];}else{n4[m4[o4]]=void 0;}o4++;}return n4;}function pipe(...fns){return compose(...fns.reverse());}function pluck(p4,q4){if(arguments.length===1)return r4=>pluck(p4,r4);const s4=[];map(t4=>{if(!(t4[p4]===void 0)){s4.push(t4[p4]);}},q4);return s4;}function prepend(x,u4){if(arguments.length===1)return v4=>prepend(x,v4);if(typeof u4==='string'){return`${x}${u4}`;}const w4=u4.concat();w4.unshift(x);return w4;}function prop(x4,y4){if(arguments.length===1)return z4=>prop(x4,z4);return y4[x4];}function propEq(A4,x,B4){if(x===void 0){return(C4,D4)=>propEq(A4,C4,D4);}else if(B4===void 0){return E4=>propEq(A4,x,E4);}return B4[A4]===x;}function range(F4,G4){if(arguments.length===1)return H4=>range(F4,H4);const I4=[];for(let i=F4;i<G4;i++){I4.push(i);}return I4;}function reduce(fn,K4,L4){if(K4===void 0){return(M4,N4)=>reduce(fn,M4,N4);}else if(L4===void 0){return O4=>reduce(fn,K4,O4);}return L4.reduce(fn,K4);}function reject(fn,Q4){if(arguments.length===1)return R4=>reject(fn,R4);return filter(x=>!fn(x),Q4);}function repeat(x,S4){if(arguments.length===1){return T4=>repeat(x,T4);}const U4=Array(S4);return U4.fill(x);}function replace(V4,W4,X4){if(W4===void 0){return(Y4,Z4)=>replace(V4,Y4,Z4);}else if(X4===void 0){return a5=>replace(V4,W4,a5);}return X4.replace(V4,W4);}function reverse(b5){const c5=b5.concat();return c5.reverse();}function sort(fn,e5){if(arguments.length===1)return f5=>sort(fn,f5);const g5=e5.concat();return g5.sort(fn);}function sortBy(fn,i5){if(arguments.length===1){return j5=>sortBy(fn,j5);}const k5=i5.concat();return k5.sort((a,b)=>{const l5=fn(a),m5=fn(b);return l5<m5?-1:l5>m5?1:0;});}function split(n5,o5){if(arguments.length===1)return p5=>split(n5,p5);return o5.split(n5);}function splitEvery(q5,x){if(arguments.length===1)return r5=>splitEvery(q5,r5);const s5=q5>1?q5:1,t5=[];let u5=0;while(u5<x.length){t5.push(x.slice(u5,u5+=s5));}return t5;}function startsWith(x,y){if(arguments.length===1)return v5=>startsWith(x,v5);return y.startsWith(x);}function subtract(x,y){if(arguments.length===1)return w5=>subtract(x,w5);return x-y;}function T(){return!0;}function tail(x5){return drop(1,x5);}function take(y5,x){if(arguments.length===1)return z5=>take(y5,z5);if(typeof x==='string'){return x.slice(0,y5);}return baseSlice(x,0,y5);}function takeLast(A5,x){if(arguments.length===1)return B5=>takeLast(A5,B5);const C5=x.length;let D5=A5>C5?C5:A5;if(typeof x==='string'){return x.slice(C5-D5);}D5=C5-D5;return baseSlice(x,D5,C5);}function tap(fn,x){if(arguments.length===1)return F5=>tap(fn,F5);fn(x);return x;}function test(G5,H5){if(arguments.length===1)return I5=>test(G5,I5);return H5.search(G5)!==-1;}function times(fn,K5){if(arguments.length===1)return L5=>times(fn,L5);return map(fn,range(0,K5));}function toLower(x){return x.toLowerCase();}function toString(x){return x.toString();}function toUpper(x){return x.toUpperCase();}function trim(M5){return M5.trim();}function uniq(N5){let O5=-1;const P5=[];while(++O5<N5.length){const Q5=N5[O5];if(!contains(Q5,P5)){P5.push(Q5);}}return P5;}function uniqWith(fn,S5){if(arguments.length===1)return T5=>uniqWith(fn,T5);let U5=-1;const V5=S5.length,W5=[];while(++U5<S5.length){const X5=S5[U5],Y5=any(Z5=>fn(X5,Z5),W5);if(!Y5){W5.push(X5);}}return W5;}function update(a6,b6,c6){if(b6===void 0){return(d6,e6)=>update(a6,d6,e6);}else if(c6===void 0){return f6=>update(a6,b6,f6);}const g6=c6.concat();return g6.fill(b6,a6,a6+1);}function values(h6){const i6=[];for(const j6 in h6){i6.push(h6[j6]);}return i6;}function without(k6,l6){return reduce((m6,n6)=>!contains(n6,k6)?m6.concat(n6):m6,[],l6);}function zip(x,y){if(arguments.length===1)return o6=>zip(x,o6);return addIndex(reduce)((p6,q6,r6)=>y[r6]?p6.concat([[q6,y[r6]]]):p6,[],x);}function zipObj(x,y){if(arguments.length===1)return s6=>zipObj(x,s6);return x.reduce((t6,u6,i)=>{t6[u6]=y[i];return t6;},{});}exports.add=add;exports.addIndex=addIndex;exports.adjust=adjust;exports.all=all;exports.allPass=allPass;exports.always=always;exports.any=any;exports.anyPass=anyPass;exports.append=append;exports.assoc=c1;exports.both=both;exports.complement=complement;exports.compose=compose;exports.concat=concat;exports.contains=contains;exports.curry=curry;exports.dec=dec;exports.defaultTo=defaultTo;exports.dissoc=dissoc;exports.divide=divide;exports.drop=drop;exports.dropLast=dropLast;exports.either=either;exports.endsWith=endsWith;exports.equals=equals;exports.F=F;exports.filter=filter;exports.find=find;exports.findIndex=findIndex;exports.flatten=flatten;exports.flip=flip;exports.forEach=forEach;exports.groupBy=groupBy;exports.has=has;exports.head=head;exports.identity=identity;exports.ifElse=ifElse;exports.inc=inc;exports.includes=includes;exports.indexBy=indexBy;exports.indexOf=indexOf;exports.init=init;exports.is=is;exports.isNil=isNil;exports.join=join;exports.keys=keys;exports.last=last;exports.lastIndexOf=lastIndexOf;exports.length=length;exports.map=map;exports.match=match;exports.merge=merge;exports.max=max;exports.maxBy=maxBy;exports.min=min;exports.minBy=y3;exports.modulo=modulo;exports.multiply=multiply;exports.none=none;exports.not=not;exports.nth=nth;exports.omit=omit;exports.partialCurry=partialCurry;exports.path=path;exports.pathOr=c4;exports.pick=pick;exports.pickAll=pickAll;exports.pipe=pipe;exports.pluck=pluck;exports.prepend=prepend;exports.prop=prop;exports.propEq=propEq;exports.range=range;exports.reduce=reduce;exports.reject=reject;exports.repeat=repeat;exports.replace=replace;exports.reverse=reverse;exports.sort=sort;exports.sortBy=sortBy;exports.split=split;exports.splitEvery=splitEvery;exports.startsWith=startsWith;exports.subtract=subtract;exports.T=T;exports.tail=tail;exports.take=take;exports.takeLast=takeLast;exports.tap=tap;exports.test=test;exports.times=times;exports.toLower=toLower;exports.toString=toString;exports.toUpper=toUpper;exports.trim=trim;exports.type=type;exports.uniq=uniq;exports.uniqWith=uniqWith;exports.update=update;exports.values=values;exports.without=without;exports.zip=zip;exports.zipObj=zipObj; |
@@ -1,1 +0,1 @@ | ||
(function(c,d){typeof exports==='object'&&typeof module!=='undefined'?d(exports):typeof define==='function'&&define.amd?define(['exports'],d):d(c.R={});})(this,function(e){'use strict';function add(x,y){if(y===void 0){return g=>add(x,g);}return x+y;}function addIndex(h){return function(j,...rest){let k=0;const newFn=(...args)=>j.apply(null,[...args,k++]);return h.apply(null,[newFn,...rest]);};}function adjust(l,m,n){if(m===void 0){return(q,r)=>adjust(l,q,r);}else if(n===void 0){return s=>adjust(l,m,s);}const t=n.concat();return t.map((u,v)=>{if(v===m){return l(n[m]);}return u;});}function filterObject(w,z){const A={};for(const B in z){if(w(z[B],B)){A[B]=z[B];}}return A;}function filter(C,D){if(arguments.length===1){return E=>filter(C,E);}if(D===void 0){return[];}if(!Array.isArray(D)){return filterObject(C,D);}let G=-1,H=0;const I=D.length,J=[];while(++G<I){const K=D[G];if(C(K)){J[H++]=K;}}return J;}function all(L,M){if(arguments.length===1){return N=>all(L,N);}return filter(L,M).length===M.length;}function any(O,P){if(arguments.length===1){return Q=>any(O,Q);}let R=0;while(R<P.length){if(O(P[R],R)){return!0;}R++;}return!1;}function allPass(S,x){if(arguments.length===1){return U=>allPass(S,U);}return!any(V=>!V(x),S);}function always(x){return()=>x;}function anyPass(W,x){if(arguments.length===1){return X=>anyPass(W,X);}return any(Y=>Y(x))(W);}function append(x,Z){if(arguments.length===1){return a1=>append(x,a1);}if(typeof Z==='string'){return`${Z}${x}`;}const b1=Z.concat();b1.push(x);return b1;}function curry(f,a=[]){return(...p)=>(o=>o.length>=f.length?f(...o):curry(f,o))([...a,...p]);}function assoc(c1,d1,e1){return Object.assign({},e1,{[c1]:d1});}var f1=curry(assoc);function both(x,y){if(arguments.length===1){return g1=>both(x,g1);}return h1=>x(h1)&&y(h1);}function complement(fn){return j1=>!fn(j1);}function compose(...fns){return(...args)=>{const k1=fns.slice();if(k1.length>0){const fn=k1.pop();let m1=fn(...args);while(k1.length>0){m1=k1.pop()(m1);}return m1;}return void 0;};}function concat(x,y){if(arguments.length===1){return n1=>concat(x,n1);}return typeof x==='string'?`${x}${y}`:[...x,...y];}function type(a){const o1=typeof a;if(a===null){return'Null';}else if(a===void 0){return'Undefined';}else if(o1==='boolean'){return'Boolean';}else if(o1==='number'){return'Number';}else if(o1==='string'){return'String';}else if(Array.isArray(a)){return'Array';}else if(a instanceof RegExp){return'RegExp';}const p1=a.toString();if(p1.startsWith('async')){return'Async';}else if(p1==='[object Promise]'){return'Promise';}else if(p1.includes('function')||p1.includes('=>')){return'Function';}return'Object';}function equals(a,b){if(arguments.length===1){return q1=>equals(a,q1);}if(a===b){return!0;}const r1=type(a);if(r1!==type(b)){return!1;}if(r1==='Array'){const s1=Array.from(a),t1=Array.from(b);if(s1.toString()!==t1.toString()){return!1;}let u1=!0;s1.forEach((v1,w1)=>{if(u1){if(v1!==t1[w1]&&!equals(v1,t1[w1])){u1=!1;}}});return u1;}if(r1==='Object'){const x1=Object.keys(a);if(x1.length!==Object.keys(b).length){return!1;}let y1=!0;x1.forEach(z1=>{if(y1){const A1=a[z1],B1=b[z1];if(A1!==B1&&!equals(A1,B1)){y1=!1;}}});return y1;}return!1;}function contains(x,C1){if(arguments.length===1){return D1=>contains(x,D1);}let E1=-1,F1=!1;while(++E1<C1.length&&!F1){if(equals(C1[E1],x)){F1=!0;}}return F1;}var dec=x=>x-1;function defaultTo(G1,H1){if(arguments.length===1){return I1=>defaultTo(G1,I1);}return H1===void 0||H1===null||Number.isNaN(H1)===!0?G1:H1;}function dissoc(J1,K1){if(arguments.length===1){return L1=>dissoc(J1,L1);}if(K1===null||K1===void 0){return{};}const M1={};for(const p in K1){M1[p]=K1[p];}delete M1[J1];return M1;}function divide(x,y){if(arguments.length===1){return N1=>divide(x,N1);}return x/y;}function drop(O1,x){if(arguments.length===1){return P1=>drop(O1,P1);}return x.slice(O1);}function dropLast(Q1,x){if(arguments.length===1){return R1=>dropLast(Q1,R1);}return x.slice(0,-Q1);}function either(x,y){if(arguments.length===1){return S1=>either(x,S1);}return T1=>x(T1)||y(T1);}function baseSlice(U1,V1,W1){let X1=-1,Y1=U1.length;W1=W1>Y1?Y1:W1;if(W1<0){W1+=Y1;}Y1=V1>W1?0:W1-V1>>>0;V1>>>=0;const Z1=Array(Y1);while(++X1<Y1){Z1[X1]=U1[X1+V1];}return Z1;}function takeLast(a2,x){if(arguments.length===1)return b2=>takeLast(a2,b2);const c2=x.length;let d2=a2>c2?c2:a2;if(typeof x==='string'){return x.slice(c2-d2);}d2=c2-d2;return baseSlice(x,d2,c2);}function endsWith(e2,f2){if(arguments.length===1){return g2=>endsWith(e2,g2);}return equals(e2,takeLast(e2.length,f2));}function F(){return!1;}function find(fn,i2){if(arguments.length===1){return j2=>find(fn,j2);}return i2.find(fn);}function findIndex(fn,l2){if(arguments.length===1){return m2=>findIndex(fn,m2);}const n2=l2.length;let o2=-1;while(++o2<n2){if(fn(l2[o2])){return o2;}}return-1;}function flatten(p2,q2){q2=q2===void 0?[]:q2;for(let i=0;i<p2.length;i++){if(Array.isArray(p2[i])){flatten(p2[i],q2);}else{q2.push(p2[i]);}}return q2;}function flipExport(fn){return(...input)=>{if(input.length===1){return s2=>fn(s2,input[0]);}else if(input.length===2){return fn(input[1],input[0]);}return void 0;};}function flip(fn,...input){return flipExport(fn);}function mapObject(fn,v2){const w2={};for(const x2 in v2){w2[x2]=fn(v2[x2],x2);}return w2;}function map(fn,z2){if(arguments.length===1){return A2=>map(fn,A2);}if(z2===void 0){return[];}if(!Array.isArray(z2)){return mapObject(fn,z2);}let B2=-1;const C2=z2.length,D2=Array(C2);while(++B2<C2){D2[B2]=fn(z2[B2]);}return D2;}function forEach(fn,F2){if(arguments.length===1){return G2=>forEach(fn,G2);}map(fn,F2);return F2;}function groupBy(fn,I2){if(arguments.length===1){return J2=>groupBy(fn,J2);}const K2={};for(let i=0;i<I2.length;i++){const L2=I2[i],M2=fn(L2);if(!K2[M2]){K2[M2]=[];}K2[M2].push(L2);}return K2;}function has(N2,O2){if(arguments.length===1){return P2=>has(N2,P2);}return O2[N2]!==void 0;}function head(a){if(typeof a==='string'){return a[0]||'';}return a[0];}function identity(x){return x;}function ifElse(Q2,R2,S2){if(R2===void 0){return(T2,U2)=>ifElse(Q2,T2,U2);}else if(S2===void 0){return V2=>ifElse(Q2,R2,V2);}return W2=>{const X2=typeof Q2==='boolean'?Q2:Q2(W2);if(X2===!0){return R2(W2);}return S2(W2);};}var inc=x=>x+1;function includes(x,y){if(arguments.length===1){return Y2=>includes(x,Y2);}return y.includes(x);}function indexBy(fn,a3){if(arguments.length===1){return b3=>indexBy(fn,b3);}const c3={};for(let i=0;i<a3.length;i++){const d3=a3[i];c3[fn(d3)]=d3;}return c3;}function indexOf(x,e3){if(arguments.length===1){return f3=>indexOf(x,f3);}let g3=-1;const h3=e3.length;while(++g3<h3){if(e3[g3]===x){return g3;}}return-1;}function init(a){if(typeof a==='string'){return a.slice(0,-1);}return a.length?baseSlice(a,0,-1):[];}function is(i3,x){if(arguments.length===1){return j3=>is(i3,j3);}return x!=null&&x.constructor===i3||x instanceof i3;}function isNil(x){return x===void 0||x===null;}function join(k3,l3){if(arguments.length===1){return m3=>join(k3,m3);}return l3.join(k3);}function keys(x){return Object.keys(x);}function last(a){if(typeof a==='string'){return a[a.length-1]||'';}return a[a.length-1];}function lastIndexOf(x,n3){if(arguments.length===1){return o3=>lastIndexOf(x,o3);}let p3=-1;n3.map((q3,r3)=>{if(equals(q3,x)){p3=r3;}});return p3;}function length(x){return x.length;}function match(s3,x){if(arguments.length===1){return t3=>match(s3,t3);}const u3=x.match(s3);return u3===null?[]:u3;}function merge(v3,w3){if(arguments.length===1){return x3=>merge(v3,x3);}return Object.assign({},v3||{},w3||{});}function max(x,y){if(arguments.length===1){return y3=>max(x,y3);}return y>x?y:x;}function maxBy(fn,x,y){if(arguments.length===2){return A3=>maxBy(fn,x,A3);}else if(arguments.length===1){return(B3,C3)=>maxBy(fn,B3,C3);}return fn(y)>fn(x)?y:x;}function min(x,y){if(arguments.length===1){return D3=>min(x,D3);}return y<x?y:x;}function minBy(fn,x,y){return fn(y)<fn(x)?y:x;}var F3=curry(minBy);function modulo(x,y){if(arguments.length===1)return G3=>modulo(x,G3);return x%y;}function multiply(x,y){if(arguments.length===1)return H3=>multiply(x,H3);return x*y;}function none(fn,J3){if(arguments.length===1)return K3=>none(fn,K3);return J3.filter(fn).length===0;}function not(x){return!x;}function nth(L3,M3){if(arguments.length===1)return N3=>nth(L3,N3);const O3=L3<0?M3.length+L3:L3;return Object.prototype.toString.call(M3)==='[object String]'?M3.charAt(O3):M3[O3];}function omit(P3,Q3){if(arguments.length===1){return R3=>omit(P3,R3);}if(Q3===null||Q3===void 0){return void 0;}const S3=typeof P3==='string'?P3=P3.split(','):P3,T3={};for(const U3 in Q3){if(!S3.includes(U3)){T3[U3]=Q3[U3];}}return T3;}function partialCurry(fn,W3={}){return X3=>{if(type(fn)==='Async'||type(fn)==='Promise'){return new Promise((Y3,Z3)=>{fn(merge(X3,W3)).then(Y3).catch(Z3);});}return fn(merge(X3,W3));};}function path(a4,b4){if(arguments.length===1){return c4=>path(a4,c4);}if(b4===null||b4===void 0){return void 0;}let d4=b4,e4=0;const f4=typeof a4==='string'?a4.split('.'):a4;while(e4<f4.length){if(d4===null||d4===void 0){return void 0;}d4=d4[f4[e4]];e4++;}return d4;}function pathOr(g4,h4,i4){return defaultTo(g4,path(h4,i4));}var j4=curry(pathOr);function pick(k4,l4){if(arguments.length===1){return m4=>pick(k4,m4);}if(l4===null||l4===void 0){return void 0;}const n4=typeof k4==='string'?k4.split(','):k4,o4={};let p4=0;while(p4<n4.length){if(n4[p4]in l4){o4[n4[p4]]=l4[n4[p4]];}p4++;}return o4;}function pickAll(q4,r4){if(arguments.length===1){return s4=>pickAll(q4,s4);}if(r4===null||r4===void 0){return void 0;}const t4=typeof q4==='string'?q4.split(','):q4,u4={};let v4=0;while(v4<t4.length){if(t4[v4]in r4){u4[t4[v4]]=r4[t4[v4]];}else{u4[t4[v4]]=void 0;}v4++;}return u4;}function pipe(...fns){return compose(...fns.reverse());}function pluck(w4,x4){if(arguments.length===1)return y4=>pluck(w4,y4);const z4=[];map(A4=>{if(!(A4[w4]===void 0)){z4.push(A4[w4]);}},x4);return z4;}function prepend(x,B4){if(arguments.length===1)return C4=>prepend(x,C4);if(typeof B4==='string'){return`${x}${B4}`;}const D4=B4.concat();D4.unshift(x);return D4;}function prop(E4,F4){if(arguments.length===1)return G4=>prop(E4,G4);return F4[E4];}function propEq(H4,x,I4){if(x===void 0){return(J4,K4)=>propEq(H4,J4,K4);}else if(I4===void 0){return L4=>propEq(H4,x,L4);}return I4[H4]===x;}function range(M4,N4){if(arguments.length===1)return O4=>range(M4,O4);const P4=[];for(let i=M4;i<N4;i++){P4.push(i);}return P4;}function reduce(fn,R4,S4){if(R4===void 0){return(T4,U4)=>reduce(fn,T4,U4);}else if(S4===void 0){return V4=>reduce(fn,R4,V4);}return S4.reduce(fn,R4);}function reject(fn,X4){if(arguments.length===1)return Y4=>reject(fn,Y4);return filter(x=>!fn(x),X4);}function repeat(x,Z4){if(arguments.length===1){return a5=>repeat(x,a5);}const b5=Array(Z4);return b5.fill(x);}function replace(c5,d5,e5){if(d5===void 0){return(f5,g5)=>replace(c5,f5,g5);}else if(e5===void 0){return h5=>replace(c5,d5,h5);}return e5.replace(c5,d5);}function reverse(i5){const j5=i5.concat();return j5.reverse();}function sort(fn,l5){if(arguments.length===1)return m5=>sort(fn,m5);const n5=l5.concat();return n5.sort(fn);}function sortBy(fn,p5){if(arguments.length===1){return q5=>sortBy(fn,q5);}const r5=p5.concat();return r5.sort((a,b)=>{const s5=fn(a),t5=fn(b);return s5<t5?-1:s5>t5?1:0;});}function split(u5,v5){if(arguments.length===1)return w5=>split(u5,w5);return v5.split(u5);}function splitEvery(x5,x){if(arguments.length===1)return y5=>splitEvery(x5,y5);const z5=x5>1?x5:1,A5=[];let B5=0;while(B5<x.length){A5.push(x.slice(B5,B5+=z5));}return A5;}function startsWith(x,y){if(arguments.length===1)return C5=>startsWith(x,C5);return y.startsWith(x);}function subtract(x,y){if(arguments.length===1)return D5=>subtract(x,D5);return x-y;}function T(){return!0;}function tail(E5){return drop(1,E5);}function take(F5,x){if(arguments.length===1)return G5=>take(F5,G5);if(typeof x==='string'){return x.slice(0,F5);}return baseSlice(x,0,F5);}function tap(fn,x){if(arguments.length===1)return I5=>tap(fn,I5);fn(x);return x;}function test(J5,K5){if(arguments.length===1)return L5=>test(J5,L5);return K5.search(J5)!==-1;}function times(fn,N5){if(arguments.length===1)return O5=>times(fn,O5);return map(fn,range(0,N5));}function toLower(x){return x.toLowerCase();}function toString(x){return x.toString();}function toUpper(x){return x.toUpperCase();}function trim(P5){return P5.trim();}function uniq(Q5){let R5=-1;const S5=[];while(++R5<Q5.length){const T5=Q5[R5];if(!contains(T5,S5)){S5.push(T5);}}return S5;}function uniqWith(fn,V5){if(arguments.length===1)return W5=>uniqWith(fn,W5);let X5=-1;const Y5=V5.length,Z5=[];while(++X5<V5.length){const a6=V5[X5],b6=any(c6=>fn(a6,c6),Z5);if(!b6){Z5.push(a6);}}return Z5;}function update(d6,e6,f6){if(e6===void 0){return(g6,h6)=>update(d6,g6,h6);}else if(f6===void 0){return i6=>update(d6,e6,i6);}const j6=f6.concat();return j6.fill(e6,d6,d6+1);}function values(k6){const l6=[];for(const m6 in k6){l6.push(k6[m6]);}return l6;}function without(n6,o6){return reduce((p6,q6)=>!contains(q6,n6)?p6.concat(q6):p6,[],o6);}function zip(x,y){if(arguments.length===1)return r6=>zip(x,r6);return addIndex(reduce)((s6,t6,u6)=>y[u6]?s6.concat([[t6,y[u6]]]):s6,[],x);}function zipObj(x,y){if(arguments.length===1)return v6=>zipObj(x,v6);return x.reduce((w6,x6,i)=>{w6[x6]=y[i];return w6;},{});}1;e.add=add;e.addIndex=addIndex;e.adjust=adjust;e.all=all;e.allPass=allPass;e.always=always;e.any=any;e.anyPass=anyPass;e.append=append;e.assoc=f1;e.both=both;e.complement=complement;e.compose=compose;e.concat=concat;e.contains=contains;e.curry=curry;e.dec=dec;e.defaultTo=defaultTo;e.dissoc=dissoc;e.divide=divide;e.drop=drop;e.dropLast=dropLast;e.either=either;e.endsWith=endsWith;e.equals=equals;e.F=F;e.filter=filter;e.find=find;e.findIndex=findIndex;e.flatten=flatten;e.flip=flip;e.forEach=forEach;e.groupBy=groupBy;e.has=has;e.head=head;e.identity=identity;e.ifElse=ifElse;e.inc=inc;e.includes=includes;e.indexBy=indexBy;e.indexOf=indexOf;e.init=init;e.is=is;e.isNil=isNil;e.join=join;e.keys=keys;e.last=last;e.lastIndexOf=lastIndexOf;e.length=length;e.map=map;e.match=match;e.merge=merge;e.max=max;e.maxBy=maxBy;e.min=min;e.minBy=F3;e.modulo=modulo;e.multiply=multiply;e.none=none;e.not=not;e.nth=nth;e.omit=omit;e.partialCurry=partialCurry;e.path=path;e.pathOr=j4;e.pick=pick;e.pickAll=pickAll;e.pipe=pipe;e.pluck=pluck;e.prepend=prepend;e.prop=prop;e.propEq=propEq;e.range=range;e.reduce=reduce;e.reject=reject;e.repeat=repeat;e.replace=replace;e.reverse=reverse;e.sort=sort;e.sortBy=sortBy;e.split=split;e.splitEvery=splitEvery;e.startsWith=startsWith;e.subtract=subtract;e.T=T;e.tail=tail;e.take=take;e.takeLast=takeLast;e.tap=tap;e.test=test;e.times=times;e.toLower=toLower;e.toString=toString;e.toUpper=toUpper;e.trim=trim;e.type=type;e.uniq=uniq;e.uniqWith=uniqWith;e.update=update;e.values=values;e.without=without;e.zip=zip;e.zipObj=zipObj;Object.defineProperty(e,'__esModule',{value:!0});}); | ||
(function(c,d){typeof exports==='object'&&typeof module!=='undefined'?d(exports):typeof define==='function'&&define.amd?define(['exports'],d):d(c.R={});})(this,function(e){'use strict';function add(x,y){if(y===void 0){return g=>add(x,g);}return x+y;}function addIndex(h){return function(j,...rest){let k=0;const newFn=(...args)=>j.apply(null,[...args,k++]);return h.apply(null,[newFn,...rest]);};}function adjust(l,m,n){if(m===void 0){return(q,r)=>adjust(l,q,r);}else if(n===void 0){return s=>adjust(l,m,s);}const t=n.concat();return t.map((u,v)=>{if(v===m){return l(n[m]);}return u;});}function filterObject(w,z){const A={};for(const B in z){if(w(z[B],B)){A[B]=z[B];}}return A;}function filter(C,D){if(arguments.length===1){return E=>filter(C,E);}if(D===void 0){return[];}if(!Array.isArray(D)){return filterObject(C,D);}let G=-1,H=0;const I=D.length,J=[];while(++G<I){const K=D[G];if(C(K)){J[H++]=K;}}return J;}function all(L,M){if(arguments.length===1){return N=>all(L,N);}return filter(L,M).length===M.length;}function any(O,P){if(arguments.length===1){return Q=>any(O,Q);}let R=0;while(R<P.length){if(O(P[R],R)){return!0;}R++;}return!1;}function allPass(S,x){if(arguments.length===1){return U=>allPass(S,U);}return!any(V=>!V(x),S);}function always(x){return()=>x;}function anyPass(W,x){if(arguments.length===1){return X=>anyPass(W,X);}return any(Y=>Y(x))(W);}function append(x,Z){if(arguments.length===1){return a1=>append(x,a1);}if(typeof Z==='string')return`${Z}${x}`;const b1=Z.concat();b1.push(x);return b1;}function curry(f,a=[]){return(...p)=>(o=>o.length>=f.length?f(...o):curry(f,o))([...a,...p]);}function assocRaw(c1,d1,e1){return Object.assign({},e1,{[c1]:d1});}const f1=curry(assocRaw);function both(x,y){if(arguments.length===1){return g1=>both(x,g1);}return h1=>x(h1)&&y(h1);}function complement(fn){return j1=>!fn(j1);}function compose(...fns){return(...args)=>{const k1=fns.slice();if(k1.length>0){const fn=k1.pop();let m1=fn(...args);while(k1.length>0){m1=k1.pop()(m1);}return m1;}return void 0;};}function concat(x,y){if(arguments.length===1){return n1=>concat(x,n1);}return typeof x==='string'?`${x}${y}`:[...x,...y];}function type(a){const o1=typeof a;if(a===null){return'Null';}else if(a===void 0){return'Undefined';}else if(o1==='boolean'){return'Boolean';}else if(o1==='number'){return'Number';}else if(o1==='string'){return'String';}else if(Array.isArray(a)){return'Array';}else if(a instanceof RegExp){return'RegExp';}const p1=a.toString();if(p1.startsWith('async')){return'Async';}else if(p1==='[object Promise]'){return'Promise';}else if(p1.includes('function')||p1.includes('=>')){return'Function';}return'Object';}function equals(a,b){if(arguments.length===1){return q1=>equals(a,q1);}if(a===b){return!0;}const r1=type(a);if(r1!==type(b)){return!1;}if(r1==='Array'){const s1=Array.from(a),t1=Array.from(b);if(s1.toString()!==t1.toString()){return!1;}let u1=!0;s1.forEach((v1,w1)=>{if(u1){if(v1!==t1[w1]&&!equals(v1,t1[w1])){u1=!1;}}});return u1;}if(r1==='Object'){const x1=Object.keys(a);if(x1.length!==Object.keys(b).length){return!1;}let y1=!0;x1.forEach(z1=>{if(y1){const A1=a[z1],B1=b[z1];if(A1!==B1&&!equals(A1,B1)){y1=!1;}}});return y1;}return!1;}function contains(x,C1){if(arguments.length===1){return D1=>contains(x,D1);}let E1=-1,F1=!1;while(++E1<C1.length&&!F1){if(equals(C1[E1],x)){F1=!0;}}return F1;}const dec=x=>x-1;function defaultTo(G1,H1){if(arguments.length===1){return I1=>defaultTo(G1,I1);}return H1===void 0||H1===null||Number.isNaN(H1)===!0?G1:H1;}function dissoc(J1,K1){if(arguments.length===1){return L1=>dissoc(J1,L1);}if(K1===null||K1===void 0){return{};}const M1={};for(const p in K1){M1[p]=K1[p];}delete M1[J1];return M1;}function divide(x,y){if(arguments.length===1){return N1=>divide(x,N1);}return x/y;}function drop(O1,x){if(arguments.length===1){return P1=>drop(O1,P1);}return x.slice(O1);}function dropLast(Q1,x){if(arguments.length===1){return R1=>dropLast(Q1,R1);}return x.slice(0,-Q1);}function either(x,y){if(arguments.length===1){return S1=>either(x,S1);}return T1=>x(T1)||y(T1);}function endsWith(U1,V1){if(arguments.length===1){return W1=>endsWith(U1,W1);}return V1.endsWith(U1);}function F(){return!1;}function find(fn,Y1){if(arguments.length===1){return Z1=>find(fn,Z1);}return Y1.find(fn);}function findIndex(fn,b2){if(arguments.length===1){return c2=>findIndex(fn,c2);}const d2=b2.length;let e2=-1;while(++e2<d2){if(fn(b2[e2])){return e2;}}return-1;}function flatten(f2,g2){g2=g2===void 0?[]:g2;for(let i=0;i<f2.length;i++){if(Array.isArray(f2[i])){flatten(f2[i],g2);}else{g2.push(f2[i]);}}return g2;}function flipExport(fn){return(...input)=>{if(input.length===1){return i2=>fn(i2,input[0]);}else if(input.length===2){return fn(input[1],input[0]);}return void 0;};}function flip(fn,...input){return flipExport(fn);}function mapObject(fn,l2){const m2={};for(const n2 in l2){m2[n2]=fn(l2[n2],n2);}return m2;}function map(fn,p2){if(arguments.length===1){return q2=>map(fn,q2);}if(p2===void 0){return[];}if(!Array.isArray(p2)){return mapObject(fn,p2);}let r2=-1;const s2=p2.length,t2=Array(s2);while(++r2<s2){t2[r2]=fn(p2[r2]);}return t2;}function forEach(fn,v2){if(arguments.length===1){return w2=>forEach(fn,w2);}map(fn,v2);return v2;}function groupBy(fn,y2){if(arguments.length===1){return z2=>groupBy(fn,z2);}const A2={};for(let i=0;i<y2.length;i++){const B2=y2[i],C2=fn(B2);if(!A2[C2]){A2[C2]=[];}A2[C2].push(B2);}return A2;}function has(D2,E2){if(arguments.length===1){return F2=>has(D2,F2);}return E2[D2]!==void 0;}function head(a){if(typeof a==='string'){return a[0]||'';}return a[0];}function identity(x){return x;}function ifElse(G2,H2,I2){if(H2===void 0){return(J2,K2)=>ifElse(G2,J2,K2);}else if(I2===void 0){return L2=>ifElse(G2,H2,L2);}return M2=>{const N2=typeof G2==='boolean'?G2:G2(M2);if(N2===!0){return H2(M2);}return I2(M2);};}const inc=x=>x+1;function includes(x,y){if(arguments.length===1){return O2=>includes(x,O2);}return y.includes(x);}function indexBy(fn,Q2){if(arguments.length===1){return R2=>indexBy(fn,R2);}const S2={};for(let i=0;i<Q2.length;i++){const T2=Q2[i];S2[fn(T2)]=T2;}return S2;}function indexOf(x,U2){if(arguments.length===1){return V2=>indexOf(x,V2);}let W2=-1;const X2=U2.length;while(++W2<X2){if(U2[W2]===x){return W2;}}return-1;}function baseSlice(Y2,Z2,a3){let b3=-1,c3=Y2.length;a3=a3>c3?c3:a3;if(a3<0){a3+=c3;}c3=Z2>a3?0:a3-Z2>>>0;Z2>>>=0;const d3=Array(c3);while(++b3<c3){d3[b3]=Y2[b3+Z2];}return d3;}function init(a){if(typeof a==='string'){return a.slice(0,-1);}return a.length?baseSlice(a,0,-1):[];}function is(e3,x){if(arguments.length===1){return f3=>is(e3,f3);}return x!=null&&x.constructor===e3||x instanceof e3;}function isNil(x){return x===void 0||x===null;}function join(g3,h3){if(arguments.length===1){return i3=>join(g3,i3);}return h3.join(g3);}function keys(x){return Object.keys(x);}function last(a){if(typeof a==='string'){return a[a.length-1]||'';}return a[a.length-1];}function lastIndexOf(x,j3){if(arguments.length===1){return k3=>lastIndexOf(x,k3);}let l3=-1;j3.map((m3,n3)=>{if(equals(m3,x)){l3=n3;}});return l3;}function length(x){return x.length;}function match(o3,x){if(arguments.length===1){return p3=>match(o3,p3);}const q3=x.match(o3);return q3===null?[]:q3;}function merge(r3,s3){if(arguments.length===1){return t3=>merge(r3,t3);}return Object.assign({},r3||{},s3||{});}function max(x,y){if(arguments.length===1){return u3=>max(x,u3);}return y>x?y:x;}function maxBy(fn,x,y){if(arguments.length===2){return w3=>maxBy(fn,x,w3);}else if(arguments.length===1){return(x3,y3)=>maxBy(fn,x3,y3);}return fn(y)>fn(x)?y:x;}function min(x,y){if(arguments.length===1){return z3=>min(x,z3);}return y<x?y:x;}function minByRaw(fn,x,y){return fn(y)<fn(x)?y:x;}const B3=curry(minByRaw);function modulo(x,y){if(arguments.length===1)return C3=>modulo(x,C3);return x%y;}function multiply(x,y){if(arguments.length===1)return D3=>multiply(x,D3);return x*y;}function none(fn,F3){if(arguments.length===1)return G3=>none(fn,G3);return F3.filter(fn).length===0;}function not(x){return!x;}function nth(H3,I3){if(arguments.length===1)return J3=>nth(H3,J3);const K3=H3<0?I3.length+H3:H3;return Object.prototype.toString.call(I3)==='[object String]'?I3.charAt(K3):I3[K3];}function omit(L3,M3){if(arguments.length===1){return N3=>omit(L3,N3);}if(M3===null||M3===void 0){return void 0;}const O3=typeof L3==='string'?L3=L3.split(','):L3,P3={};for(const Q3 in M3){if(!O3.includes(Q3)){P3[Q3]=M3[Q3];}}return P3;}function partialCurry(fn,S3={}){return T3=>{if(type(fn)==='Async'||type(fn)==='Promise'){return new Promise((U3,V3)=>{fn(merge(T3,S3)).then(U3).catch(V3);});}return fn(merge(T3,S3));};}function path(W3,X3){if(arguments.length===1){return Y3=>path(W3,Y3);}if(X3===null||X3===void 0){return void 0;}let Z3=X3,a4=0;const b4=typeof W3==='string'?W3.split('.'):W3;while(a4<b4.length){if(Z3===null||Z3===void 0){return void 0;}Z3=Z3[b4[a4]];a4++;}return Z3;}function pathOrRaw(c4,d4,e4){return defaultTo(c4,path(d4,e4));}const f4=curry(pathOrRaw);function pick(g4,h4){if(arguments.length===1){return i4=>pick(g4,i4);}if(h4===null||h4===void 0){return void 0;}const j4=typeof g4==='string'?g4.split(','):g4,k4={};let l4=0;while(l4<j4.length){if(j4[l4]in h4){k4[j4[l4]]=h4[j4[l4]];}l4++;}return k4;}function pickAll(m4,n4){if(arguments.length===1){return o4=>pickAll(m4,o4);}if(n4===null||n4===void 0){return void 0;}const p4=typeof m4==='string'?m4.split(','):m4,q4={};let r4=0;while(r4<p4.length){if(p4[r4]in n4){q4[p4[r4]]=n4[p4[r4]];}else{q4[p4[r4]]=void 0;}r4++;}return q4;}function pipe(...fns){return compose(...fns.reverse());}function pluck(s4,t4){if(arguments.length===1)return u4=>pluck(s4,u4);const v4=[];map(w4=>{if(!(w4[s4]===void 0)){v4.push(w4[s4]);}},t4);return v4;}function prepend(x,x4){if(arguments.length===1)return y4=>prepend(x,y4);if(typeof x4==='string'){return`${x}${x4}`;}const z4=x4.concat();z4.unshift(x);return z4;}function prop(A4,B4){if(arguments.length===1)return C4=>prop(A4,C4);return B4[A4];}function propEq(D4,x,E4){if(x===void 0){return(F4,G4)=>propEq(D4,F4,G4);}else if(E4===void 0){return H4=>propEq(D4,x,H4);}return E4[D4]===x;}function range(I4,J4){if(arguments.length===1)return K4=>range(I4,K4);const L4=[];for(let i=I4;i<J4;i++){L4.push(i);}return L4;}function reduce(fn,N4,O4){if(N4===void 0){return(P4,Q4)=>reduce(fn,P4,Q4);}else if(O4===void 0){return R4=>reduce(fn,N4,R4);}return O4.reduce(fn,N4);}function reject(fn,T4){if(arguments.length===1)return U4=>reject(fn,U4);return filter(x=>!fn(x),T4);}function repeat(x,V4){if(arguments.length===1){return W4=>repeat(x,W4);}const X4=Array(V4);return X4.fill(x);}function replace(Y4,Z4,a5){if(Z4===void 0){return(b5,c5)=>replace(Y4,b5,c5);}else if(a5===void 0){return d5=>replace(Y4,Z4,d5);}return a5.replace(Y4,Z4);}function reverse(e5){const f5=e5.concat();return f5.reverse();}function sort(fn,h5){if(arguments.length===1)return i5=>sort(fn,i5);const j5=h5.concat();return j5.sort(fn);}function sortBy(fn,l5){if(arguments.length===1){return m5=>sortBy(fn,m5);}const n5=l5.concat();return n5.sort((a,b)=>{const o5=fn(a),p5=fn(b);return o5<p5?-1:o5>p5?1:0;});}function split(q5,r5){if(arguments.length===1)return s5=>split(q5,s5);return r5.split(q5);}function splitEvery(t5,x){if(arguments.length===1)return u5=>splitEvery(t5,u5);const v5=t5>1?t5:1,w5=[];let x5=0;while(x5<x.length){w5.push(x.slice(x5,x5+=v5));}return w5;}function startsWith(x,y){if(arguments.length===1)return y5=>startsWith(x,y5);return y.startsWith(x);}function subtract(x,y){if(arguments.length===1)return z5=>subtract(x,z5);return x-y;}function T(){return!0;}function tail(A5){return drop(1,A5);}function take(B5,x){if(arguments.length===1)return C5=>take(B5,C5);if(typeof x==='string'){return x.slice(0,B5);}return baseSlice(x,0,B5);}function takeLast(D5,x){if(arguments.length===1)return E5=>takeLast(D5,E5);const F5=x.length;let G5=D5>F5?F5:D5;if(typeof x==='string'){return x.slice(F5-G5);}G5=F5-G5;return baseSlice(x,G5,F5);}function tap(fn,x){if(arguments.length===1)return I5=>tap(fn,I5);fn(x);return x;}function test(J5,K5){if(arguments.length===1)return L5=>test(J5,L5);return K5.search(J5)!==-1;}function times(fn,N5){if(arguments.length===1)return O5=>times(fn,O5);return map(fn,range(0,N5));}function toLower(x){return x.toLowerCase();}function toString(x){return x.toString();}function toUpper(x){return x.toUpperCase();}function trim(P5){return P5.trim();}function uniq(Q5){let R5=-1;const S5=[];while(++R5<Q5.length){const T5=Q5[R5];if(!contains(T5,S5)){S5.push(T5);}}return S5;}function uniqWith(fn,V5){if(arguments.length===1)return W5=>uniqWith(fn,W5);let X5=-1;const Y5=V5.length,Z5=[];while(++X5<V5.length){const a6=V5[X5],b6=any(c6=>fn(a6,c6),Z5);if(!b6){Z5.push(a6);}}return Z5;}function update(d6,e6,f6){if(e6===void 0){return(g6,h6)=>update(d6,g6,h6);}else if(f6===void 0){return i6=>update(d6,e6,i6);}const j6=f6.concat();return j6.fill(e6,d6,d6+1);}function values(k6){const l6=[];for(const m6 in k6){l6.push(k6[m6]);}return l6;}function without(n6,o6){return reduce((p6,q6)=>!contains(q6,n6)?p6.concat(q6):p6,[],o6);}function zip(x,y){if(arguments.length===1)return r6=>zip(x,r6);return addIndex(reduce)((s6,t6,u6)=>y[u6]?s6.concat([[t6,y[u6]]]):s6,[],x);}function zipObj(x,y){if(arguments.length===1)return v6=>zipObj(x,v6);return x.reduce((w6,x6,i)=>{w6[x6]=y[i];return w6;},{});}1;e.add=add;e.addIndex=addIndex;e.adjust=adjust;e.all=all;e.allPass=allPass;e.always=always;e.any=any;e.anyPass=anyPass;e.append=append;e.assoc=f1;e.both=both;e.complement=complement;e.compose=compose;e.concat=concat;e.contains=contains;e.curry=curry;e.dec=dec;e.defaultTo=defaultTo;e.dissoc=dissoc;e.divide=divide;e.drop=drop;e.dropLast=dropLast;e.either=either;e.endsWith=endsWith;e.equals=equals;e.F=F;e.filter=filter;e.find=find;e.findIndex=findIndex;e.flatten=flatten;e.flip=flip;e.forEach=forEach;e.groupBy=groupBy;e.has=has;e.head=head;e.identity=identity;e.ifElse=ifElse;e.inc=inc;e.includes=includes;e.indexBy=indexBy;e.indexOf=indexOf;e.init=init;e.is=is;e.isNil=isNil;e.join=join;e.keys=keys;e.last=last;e.lastIndexOf=lastIndexOf;e.length=length;e.map=map;e.match=match;e.merge=merge;e.max=max;e.maxBy=maxBy;e.min=min;e.minBy=B3;e.modulo=modulo;e.multiply=multiply;e.none=none;e.not=not;e.nth=nth;e.omit=omit;e.partialCurry=partialCurry;e.path=path;e.pathOr=f4;e.pick=pick;e.pickAll=pickAll;e.pipe=pipe;e.pluck=pluck;e.prepend=prepend;e.prop=prop;e.propEq=propEq;e.range=range;e.reduce=reduce;e.reject=reject;e.repeat=repeat;e.replace=replace;e.reverse=reverse;e.sort=sort;e.sortBy=sortBy;e.split=split;e.splitEvery=splitEvery;e.startsWith=startsWith;e.subtract=subtract;e.T=T;e.tail=tail;e.take=take;e.takeLast=takeLast;e.tap=tap;e.test=test;e.times=times;e.toLower=toLower;e.toString=toString;e.toUpper=toUpper;e.trim=trim;e.type=type;e.uniq=uniq;e.uniqWith=uniqWith;e.update=update;e.values=values;e.without=without;e.zip=zip;e.zipObj=zipObj;Object.defineProperty(e,'__esModule',{value:!0});}); |
@@ -1,2 +0,2 @@ | ||
export default function add(x, y) { | ||
export function add(x, y) { | ||
if (y === undefined) { | ||
@@ -3,0 +3,0 @@ return yHolder => add(x, yHolder); |
@@ -1,2 +0,2 @@ | ||
export default function addIndex(functor) { | ||
export function addIndex(functor) { | ||
return function (fn, ...rest) { | ||
@@ -3,0 +3,0 @@ let cnt = 0; |
@@ -1,2 +0,2 @@ | ||
export default function adjust(fn, index, arr) { | ||
export function adjust(fn, index, arr) { | ||
if (index === undefined) { | ||
@@ -3,0 +3,0 @@ return (indexHolder, arrHolder) => adjust(fn, indexHolder, arrHolder); |
@@ -1,4 +0,4 @@ | ||
import filter from './filter'; | ||
import { filter } from './filter'; | ||
export default function all(condition, arr) { | ||
export function all(condition, arr) { | ||
if (arguments.length === 1) { | ||
@@ -5,0 +5,0 @@ return arrHolder => all(condition, arrHolder); |
@@ -1,4 +0,4 @@ | ||
import any from './any'; | ||
import { any } from './any'; | ||
export default function allPass(conditions, x) { | ||
export function allPass(conditions, x) { | ||
if (arguments.length === 1) { | ||
@@ -5,0 +5,0 @@ return xHolder => allPass(conditions, xHolder); |
@@ -1,3 +0,3 @@ | ||
export default function always(x) { | ||
export function always(x) { | ||
return () => x; | ||
} |
@@ -1,2 +0,2 @@ | ||
export default function any(fn, arr) { | ||
export function any(fn, arr) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return arrHolder => any(fn, arrHolder); |
@@ -1,4 +0,4 @@ | ||
import any from './any'; | ||
import { any } from './any'; | ||
export default function anyPass(conditions, x) { | ||
export function anyPass(conditions, x) { | ||
if (arguments.length === 1) { | ||
@@ -5,0 +5,0 @@ return xHolder => anyPass(conditions, xHolder); |
@@ -1,2 +0,2 @@ | ||
export default function append(x, arr) { | ||
export function append(x, arr) { | ||
if (arguments.length === 1) { | ||
@@ -6,5 +6,3 @@ return arrHolder => append(x, arrHolder); | ||
if (typeof arr === 'string') { | ||
return `${arr}${x}`; | ||
} | ||
if (typeof arr === 'string') return `${arr}${x}`; | ||
@@ -11,0 +9,0 @@ const clone = arr.concat(); |
@@ -1,7 +0,7 @@ | ||
import curry from './curry'; | ||
import { curry } from './curry'; | ||
function assoc(prop, value, obj) { | ||
function assocRaw(prop, value, obj) { | ||
return Object.assign({}, obj, { [prop]: value }); | ||
} | ||
export default /*#__PURE__*/curry(assoc); | ||
export const assoc = /*#__PURE__*/curry(assocRaw); |
@@ -1,2 +0,2 @@ | ||
export default function both(x, y) { | ||
export function both(x, y) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return yHolder => both(x, yHolder); |
@@ -1,3 +0,3 @@ | ||
export default function complement(fn) { | ||
export function complement(fn) { | ||
return input => !fn(input); | ||
} |
@@ -1,2 +0,2 @@ | ||
export default function compose(...fns) { | ||
export function compose(...fns) { | ||
return (...args) => { | ||
@@ -3,0 +3,0 @@ const list = fns.slice(); |
@@ -1,2 +0,2 @@ | ||
export default function concat(x, y) { | ||
export function concat(x, y) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return yHolder => concat(x, yHolder); |
@@ -1,4 +0,4 @@ | ||
import equals from './equals'; | ||
import { equals } from './equals'; | ||
export default function contains(x, arr) { | ||
export function contains(x, arr) { | ||
if (arguments.length === 1) { | ||
@@ -5,0 +5,0 @@ return arrHolder => contains(x, arrHolder); |
//taken from the last comment of https://gist.github.com/mkuklis/5294248 | ||
export default function curry(f, a = []) { | ||
export function curry(f, a = []) { | ||
return (...p) => (o => o.length >= f.length ? f(...o) : curry(f, o))([...a, ...p]); | ||
} |
@@ -1,1 +0,1 @@ | ||
export default (x => x - 1); | ||
export const dec = x => x - 1; |
@@ -1,2 +0,2 @@ | ||
export default function defaultTo(defaultArgument, inputArgument) { | ||
export function defaultTo(defaultArgument, inputArgument) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return inputArgumentHolder => defaultTo(defaultArgument, inputArgumentHolder); |
@@ -1,2 +0,2 @@ | ||
export default function dissoc(prop, obj) { | ||
export function dissoc(prop, obj) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return objHolder => dissoc(prop, objHolder); |
@@ -1,2 +0,2 @@ | ||
export default function divide(x, y) { | ||
export function divide(x, y) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return yHolder => divide(x, yHolder); |
@@ -1,2 +0,2 @@ | ||
export default function drop(dropNumber, x) { | ||
export function drop(dropNumber, x) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return xHolder => drop(dropNumber, xHolder); |
@@ -1,2 +0,2 @@ | ||
export default function dropLast(dropNumber, x) { | ||
export function dropLast(dropNumber, x) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return xHolder => dropLast(dropNumber, xHolder); |
@@ -1,2 +0,2 @@ | ||
export default function either(x, y) { | ||
export function either(x, y) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return yHolder => either(x, yHolder); |
@@ -1,10 +0,7 @@ | ||
import equals from './equals'; | ||
import takeLast from './takeLast'; | ||
export default function endsWith(suffix, list) { | ||
export function endsWith(substr, str) { | ||
if (arguments.length === 1) { | ||
return listHolder => endsWith(suffix, listHolder); | ||
return strHolder => endsWith(substr, strHolder); | ||
} | ||
return equals(suffix, takeLast(suffix.length, list)); | ||
return str.endsWith(substr); | ||
} |
@@ -1,4 +0,4 @@ | ||
import type from './type'; | ||
import { type } from './type'; | ||
export default function equals(a, b) { | ||
export function equals(a, b) { | ||
if (arguments.length === 1) { | ||
@@ -5,0 +5,0 @@ return bHolder => equals(a, bHolder); |
@@ -1,3 +0,3 @@ | ||
export default function F() { | ||
export function F() { | ||
return false; | ||
} |
@@ -13,3 +13,3 @@ function filterObject(fn, obj) { | ||
export default function filter(fn, arr) { | ||
export function filter(fn, arr) { | ||
if (arguments.length === 1) { | ||
@@ -16,0 +16,0 @@ return arrHolder => filter(fn, arrHolder); |
@@ -1,2 +0,2 @@ | ||
export default function find(fn, arr) { | ||
export function find(fn, arr) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return arrHolder => find(fn, arrHolder); |
@@ -1,2 +0,2 @@ | ||
export default function findIndex(fn, arr) { | ||
export function findIndex(fn, arr) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return arrHolder => findIndex(fn, arrHolder); |
@@ -1,2 +0,2 @@ | ||
export default function flatten(arr, willReturn) { | ||
export function flatten(arr, willReturn) { | ||
willReturn = willReturn === undefined ? [] : willReturn; | ||
@@ -3,0 +3,0 @@ |
@@ -13,4 +13,4 @@ function flipExport(fn) { | ||
export default function flip(fn, ...input) { | ||
export function flip(fn, ...input) { | ||
return flipExport(fn); | ||
} |
@@ -1,4 +0,4 @@ | ||
import map from './map'; | ||
import { map } from './map'; | ||
export default function forEach(fn, arr) { | ||
export function forEach(fn, arr) { | ||
if (arguments.length === 1) { | ||
@@ -5,0 +5,0 @@ return arrHolder => forEach(fn, arrHolder); |
@@ -1,2 +0,2 @@ | ||
export default function groupBy(fn, list) { | ||
export function groupBy(fn, list) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return list => groupBy(fn, list); |
@@ -1,2 +0,2 @@ | ||
export default function has(prop, obj) { | ||
export function has(prop, obj) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return objHolder => has(prop, objHolder); |
@@ -1,2 +0,2 @@ | ||
export default function head(a) { | ||
export function head(a) { | ||
if (typeof a === 'string') { | ||
@@ -3,0 +3,0 @@ return a[0] || ''; |
@@ -1,3 +0,3 @@ | ||
export default function identity(x) { | ||
export function identity(x) { | ||
return x; | ||
} |
@@ -1,2 +0,2 @@ | ||
export default function ifElse(condition, ifFn, elseFn) { | ||
export function ifElse(condition, ifFn, elseFn) { | ||
if (ifFn === undefined) { | ||
@@ -3,0 +3,0 @@ return (ifFnHolder, elseFnHolder) => ifElse(condition, ifFnHolder, elseFnHolder); |
@@ -1,1 +0,1 @@ | ||
export default (x => x + 1); | ||
export const inc = x => x + 1; |
@@ -1,2 +0,2 @@ | ||
export default function includes(x, y) { | ||
export function includes(x, y) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return yHolder => includes(x, yHolder); |
@@ -1,2 +0,2 @@ | ||
export default function indexBy(fn, list) { | ||
export function indexBy(fn, list) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return listHolder => indexBy(fn, listHolder); |
@@ -1,2 +0,2 @@ | ||
export default function indexOf(x, arr) { | ||
export function indexOf(x, arr) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return arrHolder => indexOf(x, arrHolder); |
import baseSlice from './internal/baseSlice'; | ||
export default function init(a) { | ||
export function init(a) { | ||
if (typeof a === 'string') { | ||
@@ -5,0 +5,0 @@ return a.slice(0, -1); |
@@ -1,2 +0,2 @@ | ||
export default function is(xPrototype, x) { | ||
export function is(xPrototype, x) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return xHolder => is(xPrototype, xHolder); |
@@ -1,3 +0,3 @@ | ||
export default function isNil(x) { | ||
export function isNil(x) { | ||
return x === undefined || x === null; | ||
} |
@@ -1,2 +0,2 @@ | ||
export default function join(glue, arr) { | ||
export function join(glue, arr) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return arrHolder => join(glue, arrHolder); |
@@ -1,3 +0,3 @@ | ||
export default function keys(x) { | ||
export function keys(x) { | ||
return Object.keys(x); | ||
} |
@@ -1,2 +0,2 @@ | ||
export default function last(a) { | ||
export function last(a) { | ||
if (typeof a === 'string') { | ||
@@ -3,0 +3,0 @@ return a[a.length - 1] || ''; |
@@ -1,4 +0,4 @@ | ||
import equals from './equals'; | ||
import { equals } from './equals'; | ||
export default function lastIndexOf(x, arr) { | ||
export function lastIndexOf(x, arr) { | ||
if (arguments.length === 1) { | ||
@@ -5,0 +5,0 @@ return arrHolder => lastIndexOf(x, arrHolder); |
@@ -1,3 +0,3 @@ | ||
export default function length(x) { | ||
export function length(x) { | ||
return x.length; | ||
} |
@@ -11,3 +11,3 @@ function mapObject(fn, obj) { | ||
export default function map(fn, arr) { | ||
export function map(fn, arr) { | ||
if (arguments.length === 1) { | ||
@@ -14,0 +14,0 @@ return arrHolder => map(fn, arrHolder); |
@@ -1,2 +0,2 @@ | ||
export default function match(regex, x) { | ||
export function match(regex, x) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return xHolder => match(regex, xHolder); |
@@ -1,2 +0,2 @@ | ||
export default function max(x, y) { | ||
export function max(x, y) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return yHolder => max(x, yHolder); |
@@ -1,2 +0,2 @@ | ||
export default function maxBy(fn, x, y) { | ||
export function maxBy(fn, x, y) { | ||
if (arguments.length === 2) { | ||
@@ -3,0 +3,0 @@ return yHolder => maxBy(fn, x, yHolder); |
@@ -1,2 +0,2 @@ | ||
export default function merge(obj, newProps) { | ||
export function merge(obj, newProps) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return newPropsHolder => merge(obj, newPropsHolder); |
@@ -1,2 +0,2 @@ | ||
export default function min(x, y) { | ||
export function min(x, y) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return yHolder => min(x, yHolder); |
@@ -1,7 +0,7 @@ | ||
import curry from './curry'; | ||
import { curry } from './curry'; | ||
function minBy(fn, x, y) { | ||
function minByRaw(fn, x, y) { | ||
return fn(y) < fn(x) ? y : x; | ||
} | ||
export default /*#__PURE__*/curry(minBy); | ||
export const minBy = /*#__PURE__*/curry(minByRaw); |
@@ -1,2 +0,2 @@ | ||
export default function modulo(x, y) { | ||
export function modulo(x, y) { | ||
if (arguments.length === 1) return yHolder => modulo(x, yHolder); | ||
@@ -3,0 +3,0 @@ |
export default function multiply(x, y) { | ||
export function multiply(x, y) { | ||
if (arguments.length === 1) return yHolder => multiply(x, yHolder); | ||
@@ -4,0 +4,0 @@ |
@@ -1,2 +0,2 @@ | ||
export default function none(fn, arr) { | ||
export function none(fn, arr) { | ||
if (arguments.length === 1) return arrHolder => none(fn, arrHolder); | ||
@@ -3,0 +3,0 @@ |
@@ -1,3 +0,3 @@ | ||
export default function not(x) { | ||
export function not(x) { | ||
return !x; | ||
} |
@@ -1,2 +0,2 @@ | ||
export default function nth(index, list) { | ||
export function nth(index, list) { | ||
if (arguments.length === 1) return listHolder => nth(index, listHolder); | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
export default function omit(keys, obj) { | ||
export function omit(keys, obj) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return objHolder => omit(keys, objHolder); |
@@ -1,5 +0,5 @@ | ||
import merge from './merge'; | ||
import type from './type'; | ||
import { merge } from './merge'; | ||
import { type } from './type'; | ||
export default function partialCurry(fn, inputArguments = {}) { | ||
export function partialCurry(fn, inputArguments = {}) { | ||
return inputArgumentsHolder => { | ||
@@ -6,0 +6,0 @@ if (type(fn) === 'Async' || type(fn) === 'Promise') { |
@@ -1,2 +0,2 @@ | ||
export default function path(pathArr, obj) { | ||
export function path(pathArr, obj) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return objHolder => path(pathArr, objHolder); |
@@ -1,9 +0,9 @@ | ||
import defaultTo from './defaultTo'; | ||
import path from './path'; | ||
import curry from './curry'; | ||
import { defaultTo } from './defaultTo'; | ||
import { path } from './path'; | ||
import { curry } from './curry'; | ||
function pathOr(defaultValue, inputPath, inputObject) { | ||
function pathOrRaw(defaultValue, inputPath, inputObject) { | ||
return defaultTo(defaultValue, path(inputPath, inputObject)); | ||
} | ||
export default /*#__PURE__*/curry(pathOr); | ||
export const pathOr = /*#__PURE__*/curry(pathOrRaw); |
@@ -1,2 +0,2 @@ | ||
export default function pick(keys, obj) { | ||
export function pick(keys, obj) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return objHolder => pick(keys, objHolder); |
@@ -1,2 +0,2 @@ | ||
export default function pickAll(keys, obj) { | ||
export function pickAll(keys, obj) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return objHolder => pickAll(keys, objHolder); |
@@ -1,5 +0,5 @@ | ||
import compose from './compose'; | ||
import { compose } from './compose'; | ||
export default function pipe(...fns) { | ||
export function pipe(...fns) { | ||
return compose(...fns.reverse()); | ||
} |
@@ -1,4 +0,4 @@ | ||
import map from './map'; | ||
import { map } from './map'; | ||
export default function pluck(keyToPluck, arr) { | ||
export function pluck(keyToPluck, arr) { | ||
if (arguments.length === 1) return arrHolder => pluck(keyToPluck, arrHolder); | ||
@@ -5,0 +5,0 @@ |
export default function prepend(x, arr) { | ||
export function prepend(x, arr) { | ||
if (arguments.length === 1) return arrHolder => prepend(x, arrHolder); | ||
@@ -4,0 +4,0 @@ |
@@ -1,2 +0,2 @@ | ||
export default function prop(key, obj) { | ||
export function prop(key, obj) { | ||
if (arguments.length === 1) return objHolder => prop(key, objHolder); | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
export default function propEq(key, x, obj) { | ||
export function propEq(key, x, obj) { | ||
if (x === undefined) { | ||
@@ -3,0 +3,0 @@ return (xHolder, objHolder) => propEq(key, xHolder, objHolder); |
@@ -1,2 +0,2 @@ | ||
export default function range(start, end) { | ||
export function range(start, end) { | ||
if (arguments.length === 1) return endHolder => range(start, endHolder); | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
export default function reduce(fn, initialValue, arr) { | ||
export function reduce(fn, initialValue, arr) { | ||
if (initialValue === undefined) { | ||
@@ -3,0 +3,0 @@ return (initialValueHolder, arrHolder) => reduce(fn, initialValueHolder, arrHolder); |
@@ -1,4 +0,4 @@ | ||
import filter from './filter'; | ||
import { filter } from './filter'; | ||
export default function reject(fn, arr) { | ||
export function reject(fn, arr) { | ||
if (arguments.length === 1) return arrHolder => reject(fn, arrHolder); | ||
@@ -5,0 +5,0 @@ |
@@ -1,2 +0,2 @@ | ||
export default function repeat(x, num) { | ||
export function repeat(x, num) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return numHolder => repeat(x, numHolder); |
@@ -1,2 +0,2 @@ | ||
export default function replace(regex, replacer, str) { | ||
export function replace(regex, replacer, str) { | ||
if (replacer === undefined) { | ||
@@ -3,0 +3,0 @@ return (replacerHolder, strHolder) => replace(regex, replacerHolder, strHolder); |
@@ -1,2 +0,2 @@ | ||
export default function reverse(arr) { | ||
export function reverse(arr) { | ||
const clone = arr.concat(); | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
export default function sort(fn, arr) { | ||
export function sort(fn, arr) { | ||
if (arguments.length === 1) return arrHolder => sort(fn, arrHolder); | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
export default function sortBy(fn, arr) { | ||
export function sortBy(fn, arr) { | ||
if (arguments.length === 1) { | ||
@@ -3,0 +3,0 @@ return arrHolder => sortBy(fn, arrHolder); |
@@ -1,2 +0,2 @@ | ||
export default function split(glue, str) { | ||
export function split(glue, str) { | ||
if (arguments.length === 1) return strHolder => split(glue, strHolder); | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
export default function splitEvery(num, x) { | ||
export function splitEvery(num, x) { | ||
if (arguments.length === 1) return xHolder => splitEvery(num, xHolder); | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
export default function startsWith(x, y) { | ||
export function startsWith(x, y) { | ||
if (arguments.length === 1) return yHolder => startsWith(x, yHolder); | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
export default function subtract(x, y) { | ||
export function subtract(x, y) { | ||
if (arguments.length === 1) return yHolder => subtract(x, yHolder); | ||
@@ -3,0 +3,0 @@ |
@@ -1,3 +0,3 @@ | ||
export default function T() { | ||
export function T() { | ||
return true; | ||
} |
@@ -1,5 +0,5 @@ | ||
import drop from './drop'; | ||
import { drop } from './drop'; | ||
export default function tail(arr) { | ||
export function tail(arr) { | ||
return drop(1, arr); | ||
} |
import baseSlice from './internal/baseSlice'; | ||
export default function take(num, x) { | ||
export function take(num, x) { | ||
if (arguments.length === 1) return xHolder => take(num, xHolder); | ||
@@ -5,0 +5,0 @@ |
import baseSlice from './internal/baseSlice'; | ||
export default function takeLast(num, x) { | ||
export function takeLast(num, x) { | ||
if (arguments.length === 1) return xHolder => takeLast(num, xHolder); | ||
@@ -5,0 +5,0 @@ |
@@ -1,2 +0,2 @@ | ||
export default function tap(fn, x) { | ||
export function tap(fn, x) { | ||
if (arguments.length === 1) return xHolder => tap(fn, xHolder); | ||
@@ -3,0 +3,0 @@ |
@@ -1,5 +0,5 @@ | ||
import range from './range'; | ||
import map from './map'; | ||
import { range } from './range'; | ||
import { map } from './map'; | ||
export default function times(fn, num) { | ||
export function times(fn, num) { | ||
if (arguments.length === 1) return numHolder => times(fn, numHolder); | ||
@@ -6,0 +6,0 @@ |
@@ -1,3 +0,3 @@ | ||
export default function toLower(x) { | ||
export function toLower(x) { | ||
return x.toLowerCase(); | ||
} |
@@ -1,3 +0,3 @@ | ||
export default function toString(x) { | ||
export function toString(x) { | ||
return x.toString(); | ||
} |
@@ -1,3 +0,3 @@ | ||
export default function toUpper(x) { | ||
export function toUpper(x) { | ||
return x.toUpperCase(); | ||
} |
@@ -1,3 +0,3 @@ | ||
export default function trim(str) { | ||
export function trim(str) { | ||
return str.trim(); | ||
} |
@@ -1,2 +0,2 @@ | ||
export default function type(a) { | ||
export function type(a) { | ||
const typeOf = typeof a; | ||
@@ -3,0 +3,0 @@ |
@@ -1,4 +0,4 @@ | ||
import contains from './contains'; | ||
import { contains } from './contains'; | ||
export default function uniq(arr) { | ||
export function uniq(arr) { | ||
let index = -1; | ||
@@ -5,0 +5,0 @@ const willReturn = []; |
@@ -1,4 +0,4 @@ | ||
import any from './any'; | ||
import { any } from './any'; | ||
export default function uniqWith(fn, arr) { | ||
export function uniqWith(fn, arr) { | ||
if (arguments.length === 1) return arrHolder => uniqWith(fn, arrHolder); | ||
@@ -5,0 +5,0 @@ |
@@ -1,2 +0,2 @@ | ||
export default function update(index, newValue, arr) { | ||
export function update(index, newValue, arr) { | ||
if (newValue === undefined) { | ||
@@ -3,0 +3,0 @@ return (newValueHolder, arrHolder) => update(index, newValueHolder, arrHolder); |
@@ -1,2 +0,2 @@ | ||
export default function values(obj) { | ||
export function values(obj) { | ||
const willReturn = []; | ||
@@ -3,0 +3,0 @@ |
@@ -1,6 +0,6 @@ | ||
import contains from './contains'; | ||
import reduce from './reduce'; | ||
import { contains } from './contains'; | ||
import { reduce } from './reduce'; | ||
export default function without(itemsToOmit, collection) { | ||
export function without(itemsToOmit, collection) { | ||
return reduce((accum, item) => !contains(item, itemsToOmit) ? accum.concat(item) : accum, [], collection); | ||
} |
@@ -1,5 +0,5 @@ | ||
import addIndex from './addIndex'; | ||
import reduce from './reduce'; | ||
import { addIndex } from './addIndex'; | ||
import { reduce } from './reduce'; | ||
export default function zip(x, y) { | ||
export function zip(x, y) { | ||
if (arguments.length === 1) return yHolder => zip(x, yHolder); | ||
@@ -6,0 +6,0 @@ |
@@ -1,2 +0,2 @@ | ||
export default function zipObj(x, y) { | ||
export function zipObj(x, y) { | ||
if (arguments.length === 1) return yHolder => zipObj(x, yHolder); | ||
@@ -6,4 +6,5 @@ | ||
prev[xInstance] = y[i]; | ||
return prev; | ||
}, {}); | ||
} |
{ | ||
"name": "rambda", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "Lightweight faster alternative to Ramda", | ||
@@ -12,4 +12,3 @@ "main": "./dist/rambda.js", | ||
"test:watch": "jest --watch", | ||
"dev": "jest __tests__/object/zipObj.js --watch", | ||
"test": "jest __tests__", | ||
"test": "jest src", | ||
"docs": "docsify init ./docs", | ||
@@ -24,3 +23,3 @@ "de": "commit", | ||
"jest": "jest", | ||
"prepublish": "BABEL_ENV=development babel modules/ --out-dir lib/" | ||
"prepublish": "BABEL_ENV=development babel src/ --out-dir lib/" | ||
}, | ||
@@ -66,3 +65,4 @@ "repository": { | ||
"prepublish", | ||
"refactor" | ||
"refactor", | ||
"lint" | ||
], | ||
@@ -69,0 +69,0 @@ "feature": [ |
@@ -27,2 +27,6 @@ [![CircleCI](https://circleci.com/gh/selfrefactor/rambda/tree/master.svg?style=svg)](https://circleci.com/gh/selfrefactor/rambda/tree/master) | ||
- Tree-shaking | ||
Currenly **Rambda** is more tree-shakable than **Ramda** as you can see in this [tree-shaking example](https://github.com/selfrefactor/tree-shaking-example). | ||
- comma notation for `R.pick` and `R.omit` | ||
@@ -1703,2 +1707,4 @@ | ||
- 1.2.6 Use `src` folder instead of `modules` | ||
- 1.2.5 Fix `omit` typing | ||
- 1.2.4 Add missing Typescript definitions - [PR#82](https://github.com/selfrefactor/rambda/pull/82) | ||
@@ -1705,0 +1711,0 @@ - 1.2.3 Doesn't exist because NPM is great at handling errors. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
210
2537
2093
190036
1