Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rambda

Package Overview
Dependencies
Maintainers
1
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rambda - npm Package Compare versions

Comparing version 1.2.2 to 1.2.4

3

dist/rambda.esm.js

@@ -1,2 +0,1 @@

function n(r,t){return void 0===t?function(t){return n(r,t)}:r+t}function r(n){return function(r){for(var t=[],u=arguments.length-1;u-- >0;)t[u]=arguments[u+1];var e=0;return n.apply(null,[function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return r.apply(null,n.concat([e++]))}].concat(t))}}function t(n,r,u){return void 0===r?function(r,u){return t(n,r,u)}:void 0===u?function(u){return t(n,r,u)}:u.concat().map(function(t,e){return e===r?n(u[r]):t})}function u(n,r){if(1===arguments.length)return function(r){return u(n,r)};if(void 0===r)return[];if(void 0===r.length)return function(n,r){var t={};for(var u in r)n(r[u],u)&&(t[u]=r[u]);return t}(n,r);for(var t=-1,e=0,i=r.length,o=[];++t<i;){var f=r[t];n(f)&&(o[e++]=f)}return o}function e(n,r){return 1===arguments.length?function(r){return e(n,r)}:u(n,r).length===r.length}function i(n,r){if(1===arguments.length)return function(r){return i(n,r)};for(var t=0;t<r.length;){if(n(r[t]))return!0;t++}return!1}function o(n,r){return 1===arguments.length?function(r){return o(n,r)}:!i(function(n){return!n(r)},n)}function f(n){return function(){return n}}function c(n,r){return 1===arguments.length?function(r){return c(n,r)}:i(function(n){return n(r)})(n)}function l(n,r){if(1===arguments.length)return function(r){return l(n,r)};if("string"==typeof r)return""+r+n;var t=r.concat();return t.push(n),t}function g(n,r){return void 0===r&&(r=[]),function(){for(var t,u=[],e=arguments.length;e--;)u[e]=arguments[e];return(t=r.concat(u)).length>=n.length?n.apply(void 0,t):g(n,t)}}var h=g(function(n,r,t){var u;return Object.assign({},t,((u={})[n]=r,u))});function a(n,r){return 1===arguments.length?function(r){return a(n,r)}:function(t){return n(t)&&r(t)}}function v(n){return function(r){return!n(r)}}function s(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];var u=n.slice();if(u.length>0){for(var e=u.pop().apply(void 0,r);u.length>0;)e=u.pop()(e);return e}}}function p(n,r){return 1===arguments.length?function(r){return p(n,r)}:"string"==typeof n?""+n+r:n.concat(r)}function d(n){var r=typeof n;if(null===n)return"Null";if(void 0===n)return"Undefined";if("boolean"===r)return"Boolean";if("number"===r)return"Number";if("string"===r)return"String";if(Array.isArray(n))return"Array";if(n instanceof RegExp)return"RegExp";var t=n.toString();return t.startsWith("async")?"Async":"[object Promise]"===t?"Promise":t.includes("function")||t.includes("=>")?"Function":"Object"}function y(n,r){if(1===arguments.length)return function(r){return y(n,r)};if(n===r)return!0;var t=d(n);if(t!==d(r))return!1;if("Array"===t){var u=Array.from(n),e=Array.from(r);if(u.toString()!==e.toString())return!1;var i=!0;return u.forEach(function(n,r){i&&(n===e[r]||y(n,e[r])||(i=!1))}),i}if("Object"===t){var o=Object.keys(n);if(o.length!==Object.keys(r).length)return!1;var f=!0;return o.forEach(function(t){if(f){var u=n[t],e=r[t];u===e||y(u,e)||(f=!1)}}),f}return!1}function b(n,r){if(1===arguments.length)return function(r){return b(n,r)};for(var t=-1,u=!1;++t<r.length&&!u;)y(r[t],n)&&(u=!0);return u}function m(n){return n-1}function A(n,r){return 1===arguments.length?function(r){return A(n,r)}:void 0===r||null===r||!0===Number.isNaN(r)?n:r}function j(n,r){if(1===arguments.length)return function(r){return j(n,r)};if(null===r||void 0===r)return{};var t={};for(var u in r)t[u]=r[u];return delete t[n],t}function O(n,r){return 1===arguments.length?function(r){return O(n,r)}:n/r}function S(n,r){return 1===arguments.length?function(r){return S(n,r)}:r.slice(n)}function N(n,r){return 1===arguments.length?function(r){return N(n,r)}:r.slice(0,-n)}function E(n,r){return 1===arguments.length?function(r){return E(n,r)}:function(t){return n(t)||r(t)}}function P(n,r,t){var u=-1,e=n.length;(t=t>e?e:t)<0&&(t+=e),e=r>t?0:t-r>>>0,r>>>=0;for(var i=Array(e);++u<e;)i[u]=n[u+r];return i}function k(n,r){if(1===arguments.length)return function(r){return k(n,r)};var t=r.length,u=n>t?t:n;return"string"==typeof r?r.slice(t-u):P(r,u=t-u,t)}function x(n,r){return 1===arguments.length?function(r){return x(n,r)}:y(n,k(n.length,r))}function w(){return!1}function B(n,r){return 1===arguments.length?function(r){return B(n,r)}:r.find(n)}function C(n,r){if(1===arguments.length)return function(r){return C(n,r)};for(var t=r.length,u=-1;++u<t;)if(n(r[u]))return u;return-1}function R(n,r){r=void 0===r?[]:r;for(var t=0;t<n.length;t++)Array.isArray(n[t])?R(n[t],r):r.push(n[t]);return r}function U(n){for(var r=[],t=arguments.length-1;t-- >0;)r[t]=arguments[t+1];return function(n){return function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];return 1===r.length?function(t){return n(t,r[0])}:2===r.length?n(r[1],r[0]):void 0}}(n)}function W(n,r){if(1===arguments.length)return function(r){return W(n,r)};if(void 0===r)return[];if(void 0===r.length)return function(n,r){var t={};for(var u in r)t[u]=n(r[u],u);return t}(n,r);for(var t=-1,u=r.length,e=Array(u);++t<u;)e[t]=n(r[t]);return e}function F(n,r){return 1===arguments.length?function(r){return F(n,r)}:(W(n,r),r)}function L(n,r){if(1===arguments.length)return function(r){return L(n,r)};for(var t={},u=0;u<r.length;u++){var e=r[u],i=n(e);t[i]||(t[i]=[]),t[i].push(e)}return t}function q(n,r){return 1===arguments.length?function(r){return q(n,r)}:void 0!==r[n]}function z(n){return"string"==typeof n?n[0]||"":n[0]}function D(n){return n}function G(n,r,t){return void 0===r?function(r,t){return G(n,r,t)}:void 0===t?function(t){return G(n,r,t)}:function(u){return!0===("boolean"==typeof n?n:n(u))?r(u):t(u)}}function H(n){return n+1}function I(n,r){return 1===arguments.length?function(r){return I(n,r)}:r.includes(n)}function J(n,r){if(1===arguments.length)return function(r){return J(n,r)};for(var t={},u=0;u<r.length;u++){var e=r[u];t[n(e)]=e}return t}function K(n,r){if(1===arguments.length)return function(r){return K(n,r)};for(var t=-1,u=r.length;++t<u;)if(r[t]===n)return t;return-1}function M(n){return"string"==typeof n?n.slice(0,-1):n.length?P(n,0,-1):[]}function Q(n,r){return 1===arguments.length?function(r){return Q(n,r)}:null!=r&&r.constructor===n||r instanceof n}function T(n){return void 0===n||null===n}function V(n,r){return 1===arguments.length?function(r){return V(n,r)}:r.join(n)}function X(n){return Object.keys(n)}function Y(n){return"string"==typeof n?n[n.length-1]||"":n[n.length-1]}function Z(n,r){if(1===arguments.length)return function(r){return Z(n,r)};var t=-1;return r.map(function(r,u){y(r,n)&&(t=u)}),t}function $(n){return n.length}function _(n,r){if(1===arguments.length)return function(r){return _(n,r)};var t=r.match(n);return null===t?[]:t}function nn(n,r){return 1===arguments.length?function(r){return nn(n,r)}:Object.assign({},n||{},r||{})}function rn(n,r){return 1===arguments.length?function(r){return rn(n,r)}:r>n?r:n}function tn(n,r,t){return 2===arguments.length?function(t){return tn(n,r,t)}:1===arguments.length?function(r,t){return tn(n,r,t)}:n(t)>n(r)?t:r}function un(n,r){return 1===arguments.length?function(r){return un(n,r)}:r<n?r:n}var en=g(function(n,r,t){return n(t)<n(r)?t:r});function on(n,r){return 1===arguments.length?function(r){return on(n,r)}:n%r}function fn(n,r){return 1===arguments.length?function(r){return fn(n,r)}:n*r}function cn(n,r){return 1===arguments.length?function(r){return cn(n,r)}:0===r.filter(n).length}function ln(n){return!n}function gn(n,r){if(1===arguments.length)return function(r){return gn(n,r)};var t=n<0?r.length+n:n;return"[object String]"===Object.prototype.toString.call(r)?r.charAt(t):r[t]}function hn(n,r){if(1===arguments.length)return function(r){return hn(n,r)};if(null!==r&&void 0!==r){var t="string"==typeof n?n=n.split(","):n,u={};for(var e in r)t.includes(e)||(u[e]=r[e]);return u}}function an(n,r){return void 0===r&&(r={}),function(t){return"Async"===d(n)||"Promise"===d(n)?new Promise(function(u,e){n(nn(t,r)).then(u).catch(e)}):n(nn(t,r))}}function vn(n,r){if(1===arguments.length)return function(r){return vn(n,r)};if(null!==r&&void 0!==r){for(var t=r,u=0,e="string"==typeof n?n.split("."):n;u<e.length;){if(null===t||void 0===t)return;t=t[e[u]],u++}return t}}var sn=g(function(n,r,t){return A(n,vn(r,t))});function pn(n,r){if(1===arguments.length)return function(r){return pn(n,r)};if(null!==r&&void 0!==r){for(var t="string"==typeof n?n.split(","):n,u={},e=0;e<t.length;)t[e]in r&&(u[t[e]]=r[t[e]]),e++;return u}}function dn(n,r){if(1===arguments.length)return function(r){return dn(n,r)};if(null!==r&&void 0!==r){for(var t="string"==typeof n?n.split(","):n,u={},e=0;e<t.length;)u[t[e]]=t[e]in r?r[t[e]]:void 0,e++;return u}}function yn(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return s.apply(void 0,n.reverse())}function bn(n,r){if(1===arguments.length)return function(r){return bn(n,r)};var t=[];return W(function(r){void 0!==r[n]&&t.push(r[n])},r),t}function mn(n,r){if(1===arguments.length)return function(r){return mn(n,r)};if("string"==typeof r)return""+n+r;var t=r.concat();return t.unshift(n),t}function An(n,r){return 1===arguments.length?function(r){return An(n,r)}:r[n]}function jn(n,r,t){return void 0===r?function(r,t){return jn(n,r,t)}:void 0===t?function(t){return jn(n,r,t)}:t[n]===r}function On(n,r){if(1===arguments.length)return function(r){return On(n,r)};for(var t=[],u=n;u<r;u++)t.push(u);return t}function Sn(n,r,t){return void 0===r?function(r,t){return Sn(n,r,t)}:void 0===t?function(t){return Sn(n,r,t)}:t.reduce(n,r)}function Nn(n,r){return 1===arguments.length?function(r){return Nn(n,r)}:u(function(r){return!n(r)},r)}function En(n,r){return 1===arguments.length?function(r){return En(n,r)}:Array(r).fill(n)}function Pn(n,r,t){return void 0===r?function(r,t){return Pn(n,r,t)}:void 0===t?function(t){return Pn(n,r,t)}:t.replace(n,r)}function kn(n){return n.concat().reverse()}function xn(n,r){return 1===arguments.length?function(r){return xn(n,r)}:r.concat().sort(n)}function wn(n,r){return 1===arguments.length?function(r){return wn(n,r)}:r.concat().sort(function(r,t){var u=n(r),e=n(t);return u<e?-1:u>e?1:0})}function Bn(n,r){return 1===arguments.length?function(r){return Bn(n,r)}:r.split(n)}function Cn(n,r){if(1===arguments.length)return function(r){return Cn(n,r)};for(var t=n>1?n:1,u=[],e=0;e<r.length;)u.push(r.slice(e,e+=t));return u}function Rn(n,r){return 1===arguments.length?function(r){return Rn(n,r)}:r.startsWith(n)}function Un(n,r){return 1===arguments.length?function(r){return Un(n,r)}:n-r}function Wn(){return!0}function Fn(n){return S(1,n)}function Ln(n,r){return 1===arguments.length?function(r){return Ln(n,r)}:"string"==typeof r?r.slice(0,n):P(r,0,n)}function qn(n,r){return 1===arguments.length?function(r){return qn(n,r)}:(n(r),r)}function zn(n,r){return 1===arguments.length?function(r){return zn(n,r)}:-1!==r.search(n)}function Dn(n,r){return 1===arguments.length?function(r){return Dn(n,r)}:W(n,On(0,r))}function Gn(n){return n.toLowerCase()}function Hn(n){return n.toString()}function In(n){return n.toUpperCase()}function Jn(n){return n.trim()}function Kn(n){for(var r=-1,t=[];++r<n.length;){var u=n[r];b(u,t)||t.push(u)}return t}function Mn(n,r){if(1===arguments.length)return function(r){return Mn(n,r)};for(var t=-1,u=[],e=function(){var e=r[t];i(function(r){return n(e,r)},u)||u.push(e)};++t<r.length;)e();return u}function Qn(n,r,t){return void 0===r?function(r,t){return Qn(n,r,t)}:void 0===t?function(t){return Qn(n,r,t)}:t.concat().fill(r,n,n+1)}function Tn(n){var r=[];for(var t in n)r.push(n[t]);return r}function Vn(n,r){return Sn(function(r,t){return b(t,n)?r:r.concat(t)},[],r)}function Xn(n,t){return 1===arguments.length?function(r){return Xn(n,r)}:r(Sn)(function(n,r,u){return t[u]?n.concat([[r,t[u]]]):n},[],n)}function Yn(n,r){return 1===arguments.length?function(r){return Yn(n,r)}:n.reduce(function(n,t,u){return n[t]=r[u],n},{})}export{n as add,r as addIndex,t as adjust,e as all,o as allPass,f as always,i as any,c as anyPass,l as append,h as assoc,a as both,v as complement,s as compose,p as concat,b as contains,g as curry,m as dec,A as defaultTo,j as dissoc,O as divide,S as drop,N as dropLast,E as either,x as endsWith,y as equals,w as F,u as filter,B as find,C as findIndex,R as flatten,U as flip,F as forEach,L as groupBy,q as has,z as head,D as identity,G as ifElse,H as inc,I as includes,J as indexBy,K as indexOf,M as init,Q as is,T as isNil,V as join,X as keys,Y as last,Z as lastIndexOf,$ as length,W as map,_ as match,nn as merge,rn as max,tn as maxBy,un as min,en as minBy,on as modulo,fn as multiply,cn as none,ln as not,gn as nth,hn as omit,an as partialCurry,vn as path,sn as pathOr,pn as pick,dn as pickAll,yn as pipe,bn as pluck,mn as prepend,An as prop,jn as propEq,On as range,Sn as reduce,Nn as reject,En as repeat,Pn as replace,kn as reverse,xn as sort,wn as sortBy,Bn as split,Cn as splitEvery,Rn as startsWith,Un as subtract,Wn as T,Fn as tail,Ln as take,k as takeLast,qn as tap,zn as test,Dn as times,Gn as toLower,Hn as toString,In as toUpper,Jn as trim,d as type,Kn as uniq,Mn as uniqWith,Qn as update,Tn as values,Vn as without,Xn as zip,Yn as zipObj};
//# sourceMappingURL=rambda.esm.js.map
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};

@@ -1,2 +0,1 @@

function n(n){return function(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];var u=0;return n.apply(null,[function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return t.apply(null,n.concat([u++]))}].concat(r))}}function t(n,r){if(1===arguments.length)return function(r){return t(n,r)};if(void 0===r)return[];if(void 0===r.length)return function(n,t){var r={};for(var e in t)n(t[e],e)&&(r[e]=t[e]);return r}(n,r);for(var e=-1,u=0,o=r.length,i=[];++e<o;){var f=r[e];n(f)&&(i[u++]=f)}return i}function r(n,t){if(1===arguments.length)return function(t){return r(n,t)};for(var e=0;e<t.length;){if(n(t[e]))return!0;e++}return!1}function e(n,t){return void 0===t&&(t=[]),function(){for(var r,u=[],o=arguments.length;o--;)u[o]=arguments[o];return(r=t.concat(u)).length>=n.length?n.apply(void 0,r):e(n,r)}}var u=e(function(n,t,r){var e;return Object.assign({},r,((e={})[n]=t,e))});function o(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=n.slice();if(e.length>0){for(var u=e.pop().apply(void 0,t);e.length>0;)u=e.pop()(u);return u}}}function i(n){var t=typeof n;if(null===n)return"Null";if(void 0===n)return"Undefined";if("boolean"===t)return"Boolean";if("number"===t)return"Number";if("string"===t)return"String";if(Array.isArray(n))return"Array";if(n instanceof RegExp)return"RegExp";var r=n.toString();return r.startsWith("async")?"Async":"[object Promise]"===r?"Promise":r.includes("function")||r.includes("=>")?"Function":"Object"}function f(n,t){if(1===arguments.length)return function(t){return f(n,t)};if(n===t)return!0;var r=i(n);if(r!==i(t))return!1;if("Array"===r){var e=Array.from(n),u=Array.from(t);if(e.toString()!==u.toString())return!1;var o=!0;return e.forEach(function(n,t){o&&(n===u[t]||f(n,u[t])||(o=!1))}),o}if("Object"===r){var c=Object.keys(n);if(c.length!==Object.keys(t).length)return!1;var s=!0;return c.forEach(function(r){if(s){var e=n[r],u=t[r];e===u||f(e,u)||(s=!1)}}),s}return!1}function c(n,t){if(1===arguments.length)return function(t){return c(n,t)};for(var r=-1,e=!1;++r<t.length&&!e;)f(t[r],n)&&(e=!0);return e}function s(n,t){return 1===arguments.length?function(t){return s(n,t)}:void 0===t||null===t||!0===Number.isNaN(t)?n:t}function l(n,t){return 1===arguments.length?function(t){return l(n,t)}:t.slice(n)}function p(n,t,r){var e=-1,u=n.length;(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(u);++e<u;)o[e]=n[e+t];return o}function a(n,t){if(1===arguments.length)return function(t){return a(n,t)};var r=t.length,e=n>r?r:n;return"string"==typeof t?t.slice(r-e):p(t,e=r-e,r)}function h(n,t){if(1===arguments.length)return function(t){return h(n,t)};if(void 0===t)return[];if(void 0===t.length)return function(n,t){var r={};for(var e in t)r[e]=n(t[e],e);return r}(n,t);for(var r=-1,e=t.length,u=Array(e);++r<e;)u[r]=n(t[r]);return u}function g(n,t){return 1===arguments.length?function(t){return g(n,t)}:Object.assign({},n||{},t||{})}var x=e(function(n,t,r){return n(r)<n(t)?r:t});function v(n,t){if(1===arguments.length)return function(t){return v(n,t)};if(null!==t&&void 0!==t){for(var r=t,e=0,u="string"==typeof n?n.split("."):n;e<u.length;){if(null===r||void 0===r)return;r=r[u[e]],e++}return r}}var d=e(function(n,t,r){return s(n,v(t,r))});function y(n,t){if(1===arguments.length)return function(t){return y(n,t)};for(var r=[],e=n;e<t;e++)r.push(e);return r}function m(n,t,r){return void 0===t?function(t,r){return m(n,t,r)}:void 0===r?function(r){return m(n,t,r)}:r.reduce(n,t)}exports.add=function n(t,r){return void 0===r?function(r){return n(t,r)}:t+r},exports.addIndex=n,exports.adjust=function n(t,r,e){return void 0===r?function(r,e){return n(t,r,e)}:void 0===e?function(e){return n(t,r,e)}:e.concat().map(function(n,u){return u===r?t(e[r]):n})},exports.all=function n(r,e){return 1===arguments.length?function(t){return n(r,t)}:t(r,e).length===e.length},exports.allPass=function n(t,e){return 1===arguments.length?function(r){return n(t,r)}:!r(function(n){return!n(e)},t)},exports.always=function(n){return function(){return n}},exports.any=r,exports.anyPass=function n(t,e){return 1===arguments.length?function(r){return n(t,r)}:r(function(n){return n(e)})(t)},exports.append=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};if("string"==typeof r)return""+r+t;var e=r.concat();return e.push(t),e},exports.assoc=u,exports.both=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:function(n){return t(n)&&r(n)}},exports.complement=function(n){return function(t){return!n(t)}},exports.compose=o,exports.concat=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:"string"==typeof t?""+t+r:t.concat(r)},exports.contains=c,exports.curry=e,exports.dec=function(n){return n-1},exports.defaultTo=s,exports.dissoc=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};if(null===r||void 0===r)return{};var e={};for(var u in r)e[u]=r[u];return delete e[t],e},exports.divide=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:t/r},exports.drop=l,exports.dropLast=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r.slice(0,-t)},exports.either=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:function(n){return t(n)||r(n)}},exports.endsWith=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:f(t,a(t.length,r))},exports.equals=f,exports.F=function(){return!1},exports.filter=t,exports.find=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r.find(t)},exports.findIndex=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};for(var e=r.length,u=-1;++u<e;)if(t(r[u]))return u;return-1},exports.flatten=function n(t,r){r=void 0===r?[]:r;for(var e=0;e<t.length;e++)Array.isArray(t[e])?n(t[e],r):r.push(t[e]);return r},exports.flip=function(n){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return function(n){return function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return 1===t.length?function(r){return n(r,t[0])}:2===t.length?n(t[1],t[0]):void 0}}(n)},exports.forEach=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:(h(t,r),r)},exports.groupBy=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};for(var e={},u=0;u<r.length;u++){var o=r[u],i=t(o);e[i]||(e[i]=[]),e[i].push(o)}return e},exports.has=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:void 0!==r[t]},exports.head=function(n){return"string"==typeof n?n[0]||"":n[0]},exports.identity=function(n){return n},exports.ifElse=function n(t,r,e){return void 0===r?function(r,e){return n(t,r,e)}:void 0===e?function(e){return n(t,r,e)}:function(n){return!0===("boolean"==typeof t?t:t(n))?r(n):e(n)}},exports.inc=function(n){return n+1},exports.includes=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r.includes(t)},exports.indexBy=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};for(var e={},u=0;u<r.length;u++){var o=r[u];e[t(o)]=o}return e},exports.indexOf=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};for(var e=-1,u=r.length;++e<u;)if(r[e]===t)return e;return-1},exports.init=function(n){return"string"==typeof n?n.slice(0,-1):n.length?p(n,0,-1):[]},exports.is=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:null!=r&&r.constructor===t||r instanceof t},exports.isNil=function(n){return void 0===n||null===n},exports.join=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r.join(t)},exports.keys=function(n){return Object.keys(n)},exports.last=function(n){return"string"==typeof n?n[n.length-1]||"":n[n.length-1]},exports.lastIndexOf=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};var e=-1;return r.map(function(n,r){f(n,t)&&(e=r)}),e},exports.length=function(n){return n.length},exports.map=h,exports.match=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};var e=r.match(t);return null===e?[]:e},exports.merge=g,exports.max=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r>t?r:t},exports.maxBy=function n(t,r,e){return 2===arguments.length?function(e){return n(t,r,e)}:1===arguments.length?function(r,e){return n(t,r,e)}:t(e)>t(r)?e:r},exports.min=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r<t?r:t},exports.minBy=x,exports.modulo=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:t%r},exports.multiply=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:t*r},exports.none=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:0===r.filter(t).length},exports.not=function(n){return!n},exports.nth=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};var e=t<0?r.length+t:t;return"[object String]"===Object.prototype.toString.call(r)?r.charAt(e):r[e]},exports.omit=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};if(null!==r&&void 0!==r){var e="string"==typeof t?t=t.split(","):t,u={};for(var o in r)e.includes(o)||(u[o]=r[o]);return u}},exports.partialCurry=function(n,t){return void 0===t&&(t={}),function(r){return"Async"===i(n)||"Promise"===i(n)?new Promise(function(e,u){n(g(r,t)).then(e).catch(u)}):n(g(r,t))}},exports.path=v,exports.pathOr=d,exports.pick=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};if(null!==r&&void 0!==r){for(var e="string"==typeof t?t.split(","):t,u={},o=0;o<e.length;)e[o]in r&&(u[e[o]]=r[e[o]]),o++;return u}},exports.pickAll=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};if(null!==r&&void 0!==r){for(var e="string"==typeof t?t.split(","):t,u={},o=0;o<e.length;)u[e[o]]=e[o]in r?r[e[o]]:void 0,o++;return u}},exports.pipe=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return o.apply(void 0,n.reverse())},exports.pluck=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};var e=[];return h(function(n){void 0!==n[t]&&e.push(n[t])},r),e},exports.prepend=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};if("string"==typeof r)return""+t+r;var e=r.concat();return e.unshift(t),e},exports.prop=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r[t]},exports.propEq=function n(t,r,e){return void 0===r?function(r,e){return n(t,r,e)}:void 0===e?function(e){return n(t,r,e)}:e[t]===r},exports.range=y,exports.reduce=m,exports.reject=function n(r,e){return 1===arguments.length?function(t){return n(r,t)}:t(function(n){return!r(n)},e)},exports.repeat=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:Array(r).fill(t)},exports.replace=function n(t,r,e){return void 0===r?function(r,e){return n(t,r,e)}:void 0===e?function(e){return n(t,r,e)}:e.replace(t,r)},exports.reverse=function(n){return n.concat().reverse()},exports.sort=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r.concat().sort(t)},exports.sortBy=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r.concat().sort(function(n,r){var e=t(n),u=t(r);return e<u?-1:e>u?1:0})},exports.split=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r.split(t)},exports.splitEvery=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};for(var e=t>1?t:1,u=[],o=0;o<r.length;)u.push(r.slice(o,o+=e));return u},exports.startsWith=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r.startsWith(t)},exports.subtract=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:t-r},exports.T=function(){return!0},exports.tail=function(n){return l(1,n)},exports.take=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:"string"==typeof r?r.slice(0,t):p(r,0,t)},exports.takeLast=a,exports.tap=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:(t(r),r)},exports.test=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:-1!==r.search(t)},exports.times=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:h(t,y(0,r))},exports.toLower=function(n){return n.toLowerCase()},exports.toString=function(n){return n.toString()},exports.toUpper=function(n){return n.toUpperCase()},exports.trim=function(n){return n.trim()},exports.type=i,exports.uniq=function(n){for(var t=-1,r=[];++t<n.length;){var e=n[t];c(e,r)||r.push(e)}return r},exports.uniqWith=function n(t,e){if(1===arguments.length)return function(r){return n(t,r)};for(var u=-1,o=[],i=function(){var n=e[u];r(function(r){return t(n,r)},o)||o.push(n)};++u<e.length;)i();return o},exports.update=function n(t,r,e){return void 0===r?function(r,e){return n(t,r,e)}:void 0===e?function(e){return n(t,r,e)}:e.concat().fill(r,t,t+1)},exports.values=function(n){var t=[];for(var r in n)t.push(n[r]);return t},exports.without=function(n,t){return m(function(t,r){return c(r,n)?t:t.concat(r)},[],t)},exports.zip=function t(r,e){return 1===arguments.length?function(n){return t(r,n)}:n(m)(function(n,t,r){return e[r]?n.concat([[t,e[r]]]):n},[],r)},exports.zipObj=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:t.reduce(function(n,t,e){return n[t]=r[e],n},{})};
//# sourceMappingURL=rambda.js.map
'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;

@@ -1,2 +0,1 @@

!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.rambda={})}(this,function(n){function t(n){return function(t){for(var r=[],u=arguments.length-1;u-- >0;)r[u]=arguments[u+1];var e=0;return n.apply(null,[function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return t.apply(null,n.concat([e++]))}].concat(r))}}function r(n,t){if(1===arguments.length)return function(t){return r(n,t)};if(void 0===t)return[];if(void 0===t.length)return function(n,t){var r={};for(var u in t)n(t[u],u)&&(r[u]=t[u]);return r}(n,t);for(var u=-1,e=0,i=t.length,o=[];++u<i;){var f=t[u];n(f)&&(o[e++]=f)}return o}function u(n,t){if(1===arguments.length)return function(t){return u(n,t)};for(var r=0;r<t.length;){if(n(t[r]))return!0;r++}return!1}function e(n,t){return void 0===t&&(t=[]),function(){for(var r,u=[],i=arguments.length;i--;)u[i]=arguments[i];return(r=t.concat(u)).length>=n.length?n.apply(void 0,r):e(n,r)}}var i=e(function(n,t,r){var u;return Object.assign({},r,((u={})[n]=t,u))});function o(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var u=n.slice();if(u.length>0){for(var e=u.pop().apply(void 0,t);u.length>0;)e=u.pop()(e);return e}}}function f(n){var t=typeof n;if(null===n)return"Null";if(void 0===n)return"Undefined";if("boolean"===t)return"Boolean";if("number"===t)return"Number";if("string"===t)return"String";if(Array.isArray(n))return"Array";if(n instanceof RegExp)return"RegExp";var r=n.toString();return r.startsWith("async")?"Async":"[object Promise]"===r?"Promise":r.includes("function")||r.includes("=>")?"Function":"Object"}function c(n,t){if(1===arguments.length)return function(t){return c(n,t)};if(n===t)return!0;var r=f(n);if(r!==f(t))return!1;if("Array"===r){var u=Array.from(n),e=Array.from(t);if(u.toString()!==e.toString())return!1;var i=!0;return u.forEach(function(n,t){i&&(n===e[t]||c(n,e[t])||(i=!1))}),i}if("Object"===r){var o=Object.keys(n);if(o.length!==Object.keys(t).length)return!1;var l=!0;return o.forEach(function(r){if(l){var u=n[r],e=t[r];u===e||c(u,e)||(l=!1)}}),l}return!1}function l(n,t){if(1===arguments.length)return function(t){return l(n,t)};for(var r=-1,u=!1;++r<t.length&&!u;)c(t[r],n)&&(u=!0);return u}function a(n,t){return 1===arguments.length?function(t){return a(n,t)}:void 0===t||null===t||!0===Number.isNaN(t)?n:t}function h(n,t){return 1===arguments.length?function(t){return h(n,t)}:t.slice(n)}function g(n,t,r){var u=-1,e=n.length;(r=r>e?e:r)<0&&(r+=e),e=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(e);++u<e;)i[u]=n[u+t];return i}function s(n,t){if(1===arguments.length)return function(t){return s(n,t)};var r=t.length,u=n>r?r:n;return"string"==typeof t?t.slice(r-u):g(t,u=r-u,r)}function v(n,t){if(1===arguments.length)return function(t){return v(n,t)};if(void 0===t)return[];if(void 0===t.length)return function(n,t){var r={};for(var u in t)r[u]=n(t[u],u);return r}(n,t);for(var r=-1,u=t.length,e=Array(u);++r<u;)e[r]=n(t[r]);return e}function p(n,t){return 1===arguments.length?function(t){return p(n,t)}:Object.assign({},n||{},t||{})}var d=e(function(n,t,r){return n(r)<n(t)?r:t});function y(n,t){if(1===arguments.length)return function(t){return y(n,t)};if(null!==t&&void 0!==t){for(var r=t,u=0,e="string"==typeof n?n.split("."):n;u<e.length;){if(null===r||void 0===r)return;r=r[e[u]],u++}return r}}var m=e(function(n,t,r){return a(n,y(t,r))});function b(n,t){if(1===arguments.length)return function(t){return b(n,t)};for(var r=[],u=n;u<t;u++)r.push(u);return r}function j(n,t,r){return void 0===t?function(t,r){return j(n,t,r)}:void 0===r?function(r){return j(n,t,r)}:r.reduce(n,t)}n.add=function n(t,r){return void 0===r?function(r){return n(t,r)}:t+r},n.addIndex=t,n.adjust=function n(t,r,u){return void 0===r?function(r,u){return n(t,r,u)}:void 0===u?function(u){return n(t,r,u)}:u.concat().map(function(n,e){return e===r?t(u[r]):n})},n.all=function n(t,u){return 1===arguments.length?function(r){return n(t,r)}:r(t,u).length===u.length},n.allPass=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:!u(function(n){return!n(r)},t)},n.always=function(n){return function(){return n}},n.any=u,n.anyPass=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:u(function(n){return n(r)})(t)},n.append=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};if("string"==typeof r)return""+r+t;var u=r.concat();return u.push(t),u},n.assoc=i,n.both=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:function(n){return t(n)&&r(n)}},n.complement=function(n){return function(t){return!n(t)}},n.compose=o,n.concat=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:"string"==typeof t?""+t+r:t.concat(r)},n.contains=l,n.curry=e,n.dec=function(n){return n-1},n.defaultTo=a,n.dissoc=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};if(null===r||void 0===r)return{};var u={};for(var e in r)u[e]=r[e];return delete u[t],u},n.divide=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:t/r},n.drop=h,n.dropLast=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r.slice(0,-t)},n.either=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:function(n){return t(n)||r(n)}},n.endsWith=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:c(t,s(t.length,r))},n.equals=c,n.F=function(){return!1},n.filter=r,n.find=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r.find(t)},n.findIndex=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};for(var u=r.length,e=-1;++e<u;)if(t(r[e]))return e;return-1},n.flatten=function n(t,r){r=void 0===r?[]:r;for(var u=0;u<t.length;u++)Array.isArray(t[u])?n(t[u],r):r.push(t[u]);return r},n.flip=function(n){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return function(n){return function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return 1===t.length?function(r){return n(r,t[0])}:2===t.length?n(t[1],t[0]):void 0}}(n)},n.forEach=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:(v(t,r),r)},n.groupBy=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};for(var u={},e=0;e<r.length;e++){var i=r[e],o=t(i);u[o]||(u[o]=[]),u[o].push(i)}return u},n.has=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:void 0!==r[t]},n.head=function(n){return"string"==typeof n?n[0]||"":n[0]},n.identity=function(n){return n},n.ifElse=function n(t,r,u){return void 0===r?function(r,u){return n(t,r,u)}:void 0===u?function(u){return n(t,r,u)}:function(n){return!0===("boolean"==typeof t?t:t(n))?r(n):u(n)}},n.inc=function(n){return n+1},n.includes=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r.includes(t)},n.indexBy=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};for(var u={},e=0;e<r.length;e++){var i=r[e];u[t(i)]=i}return u},n.indexOf=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};for(var u=-1,e=r.length;++u<e;)if(r[u]===t)return u;return-1},n.init=function(n){return"string"==typeof n?n.slice(0,-1):n.length?g(n,0,-1):[]},n.is=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:null!=r&&r.constructor===t||r instanceof t},n.isNil=function(n){return void 0===n||null===n},n.join=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r.join(t)},n.keys=function(n){return Object.keys(n)},n.last=function(n){return"string"==typeof n?n[n.length-1]||"":n[n.length-1]},n.lastIndexOf=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};var u=-1;return r.map(function(n,r){c(n,t)&&(u=r)}),u},n.length=function(n){return n.length},n.map=v,n.match=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};var u=r.match(t);return null===u?[]:u},n.merge=p,n.max=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r>t?r:t},n.maxBy=function n(t,r,u){return 2===arguments.length?function(u){return n(t,r,u)}:1===arguments.length?function(r,u){return n(t,r,u)}:t(u)>t(r)?u:r},n.min=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r<t?r:t},n.minBy=d,n.modulo=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:t%r},n.multiply=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:t*r},n.none=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:0===r.filter(t).length},n.not=function(n){return!n},n.nth=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};var u=t<0?r.length+t:t;return"[object String]"===Object.prototype.toString.call(r)?r.charAt(u):r[u]},n.omit=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};if(null!==r&&void 0!==r){var u="string"==typeof t?t=t.split(","):t,e={};for(var i in r)u.includes(i)||(e[i]=r[i]);return e}},n.partialCurry=function(n,t){return void 0===t&&(t={}),function(r){return"Async"===f(n)||"Promise"===f(n)?new Promise(function(u,e){n(p(r,t)).then(u).catch(e)}):n(p(r,t))}},n.path=y,n.pathOr=m,n.pick=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};if(null!==r&&void 0!==r){for(var u="string"==typeof t?t.split(","):t,e={},i=0;i<u.length;)u[i]in r&&(e[u[i]]=r[u[i]]),i++;return e}},n.pickAll=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};if(null!==r&&void 0!==r){for(var u="string"==typeof t?t.split(","):t,e={},i=0;i<u.length;)e[u[i]]=u[i]in r?r[u[i]]:void 0,i++;return e}},n.pipe=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return o.apply(void 0,n.reverse())},n.pluck=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};var u=[];return v(function(n){void 0!==n[t]&&u.push(n[t])},r),u},n.prepend=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};if("string"==typeof r)return""+t+r;var u=r.concat();return u.unshift(t),u},n.prop=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r[t]},n.propEq=function n(t,r,u){return void 0===r?function(r,u){return n(t,r,u)}:void 0===u?function(u){return n(t,r,u)}:u[t]===r},n.range=b,n.reduce=j,n.reject=function n(t,u){return 1===arguments.length?function(r){return n(t,r)}:r(function(n){return!t(n)},u)},n.repeat=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:Array(r).fill(t)},n.replace=function n(t,r,u){return void 0===r?function(r,u){return n(t,r,u)}:void 0===u?function(u){return n(t,r,u)}:u.replace(t,r)},n.reverse=function(n){return n.concat().reverse()},n.sort=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r.concat().sort(t)},n.sortBy=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r.concat().sort(function(n,r){var u=t(n),e=t(r);return u<e?-1:u>e?1:0})},n.split=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r.split(t)},n.splitEvery=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};for(var u=t>1?t:1,e=[],i=0;i<r.length;)e.push(r.slice(i,i+=u));return e},n.startsWith=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:r.startsWith(t)},n.subtract=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:t-r},n.T=function(){return!0},n.tail=function(n){return h(1,n)},n.take=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:"string"==typeof r?r.slice(0,t):g(r,0,t)},n.takeLast=s,n.tap=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:(t(r),r)},n.test=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:-1!==r.search(t)},n.times=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:v(t,b(0,r))},n.toLower=function(n){return n.toLowerCase()},n.toString=function(n){return n.toString()},n.toUpper=function(n){return n.toUpperCase()},n.trim=function(n){return n.trim()},n.type=f,n.uniq=function(n){for(var t=-1,r=[];++t<n.length;){var u=n[t];l(u,r)||r.push(u)}return r},n.uniqWith=function n(t,r){if(1===arguments.length)return function(r){return n(t,r)};for(var e=-1,i=[],o=function(){var n=r[e];u(function(r){return t(n,r)},i)||i.push(n)};++e<r.length;)o();return i},n.update=function n(t,r,u){return void 0===r?function(r,u){return n(t,r,u)}:void 0===u?function(u){return n(t,r,u)}:u.concat().fill(r,t,t+1)},n.values=function(n){var t=[];for(var r in n)t.push(n[r]);return t},n.without=function(n,t){return j(function(t,r){return l(r,n)?t:t.concat(r)},[],t)},n.zip=function n(r,u){return 1===arguments.length?function(t){return n(r,t)}:t(j)(function(n,t,r){return u[r]?n.concat([[t,u[r]]]):n},[],r)},n.zipObj=function n(t,r){return 1===arguments.length?function(r){return n(t,r)}:t.reduce(function(n,t,u){return n[t]=r[u],n},{})}});
//# sourceMappingURL=rambda.umd.js.map
(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});});

@@ -266,3 +266,3 @@ declare let R: R.Static

flatten<T>(x: T[] | T[][]): T[]
flatten<T>(x: Array<T[]|T>): T[]

@@ -277,2 +277,5 @@ flip<T, U, TResult>(fn: (arg0: T, arg1: U) => TResult): (arg1: U, arg0?: T) => TResult

groupBy<T>(fn: (x: T) => string, list: T[]): { [index: string]: T[] }
groupBy<T>(fn: (x: T) => string): (list: T[]) => { [index: string]: T[] }
has<T>(s: string, obj: T): boolean

@@ -293,2 +296,8 @@ has(s: string): <T>(obj: T) => boolean

indexBy<T>(fn: (x: T) => string, list: T[]): { [key: string]: T }
indexBy<T>(fn: (x: T) => string): (list: T[]) => { [key: string]: T }
indexOf<T>(x: T, arr: T[]): number;
indexOf<T>(x: T): (arr: T[]) => number;
init<T>(list: T[]): T[]

@@ -311,2 +320,5 @@ init(list: string): string

lastIndexOf<T>(x: T, arr: T[]): number
lastIndexOf<T>(x: T): (arr: T[]) => number
length<T>(list: T[]): number

@@ -313,0 +325,0 @@

@@ -1,12 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = add;
function add(x, y) {
export default function add(x, y) {
if (y === undefined) {
return function (yHolder) {
return add(x, yHolder);
};
return yHolder => add(x, yHolder);
}

@@ -13,0 +5,0 @@

@@ -1,24 +0,8 @@

"use strict";
export default function addIndex(functor) {
return function (fn, ...rest) {
let cnt = 0;
const newFn = (...args) => fn.apply(null, [...args, cnt++]);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = addIndex;
function addIndex(functor) {
return function (fn) {
var cnt = 0;
var newFn = function newFn() {
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
return fn.apply(null, [].concat(args, [cnt++]));
};
for (var _len = arguments.length, rest = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
rest[_key - 1] = arguments[_key];
}
return functor.apply(null, [newFn].concat(rest));
return functor.apply(null, [newFn, ...rest]);
};
}

@@ -1,20 +0,10 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = adjust;
function adjust(fn, index, arr) {
export default function adjust(fn, index, arr) {
if (index === undefined) {
return function (indexHolder, arrHolder) {
return adjust(fn, indexHolder, arrHolder);
};
return (indexHolder, arrHolder) => adjust(fn, indexHolder, arrHolder);
} else if (arr === undefined) {
return function (arrHolder) {
return adjust(fn, index, arrHolder);
};
return arrHolder => adjust(fn, index, arrHolder);
}
var clone = arr.concat();
const clone = arr.concat();
return clone.map(function (val, key) {
return clone.map((val, key) => {
if (key === index) {

@@ -21,0 +11,0 @@ return fn(arr[index]);

@@ -1,22 +0,9 @@

'use strict';
import filter from './filter';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = all;
var _filter = require('./filter');
var _filter2 = _interopRequireDefault(_filter);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function all(condition, arr) {
export default function all(condition, arr) {
if (arguments.length === 1) {
return function (arrHolder) {
return all(condition, arrHolder);
};
return arrHolder => all(condition, arrHolder);
}
return (0, _filter2.default)(condition, arr).length === arr.length;
return filter(condition, arr).length === arr.length;
}

@@ -1,24 +0,9 @@

'use strict';
import any from './any';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = allPass;
var _any = require('./any');
var _any2 = _interopRequireDefault(_any);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function allPass(conditions, x) {
export default function allPass(conditions, x) {
if (arguments.length === 1) {
return function (xHolder) {
return allPass(conditions, xHolder);
};
return xHolder => allPass(conditions, xHolder);
}
return !(0, _any2.default)(function (condition) {
return !condition(x);
}, conditions);
return !any(condition => !condition(x), conditions);
}

@@ -1,11 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = always;
function always(x) {
return function () {
return x;
};
export default function always(x) {
return () => x;
}

@@ -1,17 +0,9 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = any;
function any(fn, arr) {
export default function any(fn, arr) {
if (arguments.length === 1) {
return function (arrHolder) {
return any(fn, arrHolder);
};
return arrHolder => any(fn, arrHolder);
}
var counter = 0;
let counter = 0;
while (counter < arr.length) {
if (fn(arr[counter])) {
if (fn(arr[counter], counter)) {
return true;

@@ -18,0 +10,0 @@ }

@@ -1,24 +0,9 @@

'use strict';
import any from './any';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = anyPass;
var _any = require('./any');
var _any2 = _interopRequireDefault(_any);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function anyPass(conditions, x) {
export default function anyPass(conditions, x) {
if (arguments.length === 1) {
return function (xHolder) {
return anyPass(conditions, xHolder);
};
return xHolder => anyPass(conditions, xHolder);
}
return (0, _any2.default)(function (condition) {
return condition(x);
})(conditions);
return any(condition => condition(x))(conditions);
}

@@ -1,19 +0,11 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = append;
function append(x, arr) {
export default function append(x, arr) {
if (arguments.length === 1) {
return function (arrHolder) {
return append(x, arrHolder);
};
return arrHolder => append(x, arrHolder);
}
if (typeof arr === 'string') {
return '' + arr + x;
return `${arr}${x}`;
}
var clone = arr.concat();
const clone = arr.concat();
clone.push(x);

@@ -20,0 +12,0 @@

@@ -1,19 +0,7 @@

'use strict';
import curry from './curry';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _curry = require('./curry');
var _curry2 = _interopRequireDefault(_curry);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function assoc(prop, value, obj) {
return Object.assign({}, obj, _defineProperty({}, prop, value));
return Object.assign({}, obj, { [prop]: value });
}
exports.default = (0, _curry2.default)(assoc);
export default /*#__PURE__*/curry(assoc);

@@ -1,17 +0,7 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = both;
function both(x, y) {
export default function both(x, y) {
if (arguments.length === 1) {
return function (yHolder) {
return both(x, yHolder);
};
return yHolder => both(x, yHolder);
}
return function (input) {
return x(input) && y(input);
};
return input => x(input) && y(input);
}

@@ -1,11 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = complement;
function complement(fn) {
return function (input) {
return !fn(input);
};
export default function complement(fn) {
return input => !fn(input);
}

@@ -1,17 +0,7 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = compose;
function compose() {
for (var _len = arguments.length, fns = Array(_len), _key = 0; _key < _len; _key++) {
fns[_key] = arguments[_key];
}
return function () {
var list = fns.slice();
export default function compose(...fns) {
return (...args) => {
const list = fns.slice();
if (list.length > 0) {
var fn = list.pop();
var result = fn.apply(undefined, arguments);
const fn = list.pop();
let result = fn(...args);
while (list.length > 0) {

@@ -18,0 +8,0 @@ result = list.pop()(result);

@@ -1,18 +0,7 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = concat;
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
function concat(x, y) {
export default function concat(x, y) {
if (arguments.length === 1) {
return function (yHolder) {
return concat(x, yHolder);
};
return yHolder => concat(x, yHolder);
}
return typeof x === 'string' ? '' + x + y : [].concat(_toConsumableArray(x), _toConsumableArray(y));
return typeof x === 'string' ? `${x}${y}` : [...x, ...y];
}

@@ -1,26 +0,13 @@

'use strict';
import equals from './equals';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = contains;
var _equals = require('./equals');
var _equals2 = _interopRequireDefault(_equals);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function contains(x, arr) {
export default function contains(x, arr) {
if (arguments.length === 1) {
return function (arrHolder) {
return contains(x, arrHolder);
};
return arrHolder => contains(x, arrHolder);
}
var index = -1;
var flag = false;
let index = -1;
let flag = false;
while (++index < arr.length && !flag) {
if ((0, _equals2.default)(arr[index], x)) {
if (equals(arr[index], x)) {
flag = true;

@@ -27,0 +14,0 @@ }

@@ -1,24 +0,5 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = curry;
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
//taken from the last comment of https://gist.github.com/mkuklis/5294248
function curry(f) {
var a = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
return function () {
for (var _len = arguments.length, p = Array(_len), _key = 0; _key < _len; _key++) {
p[_key] = arguments[_key];
}
return function (o) {
return o.length >= f.length ? f.apply(undefined, _toConsumableArray(o)) : curry(f, o);
}([].concat(_toConsumableArray(a), p));
};
export default function curry(f, a = []) {
return (...p) => (o => o.length >= f.length ? f(...o) : curry(f, o))([...a, ...p]);
}

@@ -1,9 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (x) {
return x - 1;
};
export default (x => x - 1);

@@ -1,12 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = defaultTo;
function defaultTo(defaultArgument, inputArgument) {
export default function defaultTo(defaultArgument, inputArgument) {
if (arguments.length === 1) {
return function (inputArgumentHolder) {
return defaultTo(defaultArgument, inputArgumentHolder);
};
return inputArgumentHolder => defaultTo(defaultArgument, inputArgumentHolder);
}

@@ -13,0 +5,0 @@

@@ -1,12 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = dissoc;
function dissoc(prop, obj) {
export default function dissoc(prop, obj) {
if (arguments.length === 1) {
return function (objHolder) {
return dissoc(prop, objHolder);
};
return objHolder => dissoc(prop, objHolder);
}

@@ -18,4 +10,4 @@

var willReturn = {};
for (var p in obj) {
const willReturn = {};
for (const p in obj) {
willReturn[p] = obj[p];

@@ -22,0 +14,0 @@ }

@@ -1,12 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = divide;
function divide(x, y) {
export default function divide(x, y) {
if (arguments.length === 1) {
return function (yHolder) {
return divide(x, yHolder);
};
return yHolder => divide(x, yHolder);
}

@@ -13,0 +5,0 @@

@@ -1,12 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = drop;
function drop(dropNumber, x) {
export default function drop(dropNumber, x) {
if (arguments.length === 1) {
return function (xHolder) {
return drop(dropNumber, xHolder);
};
return xHolder => drop(dropNumber, xHolder);
}

@@ -13,0 +5,0 @@

@@ -1,12 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = dropLast;
function dropLast(dropNumber, x) {
export default function dropLast(dropNumber, x) {
if (arguments.length === 1) {
return function (xHolder) {
return dropLast(dropNumber, xHolder);
};
return xHolder => dropLast(dropNumber, xHolder);
}

@@ -13,0 +5,0 @@

@@ -1,17 +0,7 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = either;
function either(x, y) {
export default function either(x, y) {
if (arguments.length === 1) {
return function (yHolder) {
return either(x, yHolder);
};
return yHolder => either(x, yHolder);
}
return function (input) {
return x(input) || y(input);
};
return input => x(input) || y(input);
}

@@ -1,26 +0,10 @@

'use strict';
import equals from './equals';
import takeLast from './takeLast';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = endsWith;
var _equals = require('./equals');
var _equals2 = _interopRequireDefault(_equals);
var _takeLast = require('./takeLast');
var _takeLast2 = _interopRequireDefault(_takeLast);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function endsWith(suffix, list) {
export default function endsWith(suffix, list) {
if (arguments.length === 1) {
return function (listHolder) {
return endsWith(suffix, listHolder);
};
return listHolder => endsWith(suffix, listHolder);
}
return (0, _equals2.default)(suffix, (0, _takeLast2.default)(suffix.length, list));
return equals(suffix, takeLast(suffix.length, list));
}

@@ -1,19 +0,6 @@

'use strict';
import type from './type';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = equals;
var _type = require('./type');
var _type2 = _interopRequireDefault(_type);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function equals(a, b) {
export default function equals(a, b) {
if (arguments.length === 1) {
return function (bHolder) {
return equals(a, bHolder);
};
return bHolder => equals(a, bHolder);
}

@@ -25,5 +12,5 @@

var aType = (0, _type2.default)(a);
const aType = type(a);
if (aType !== (0, _type2.default)(b)) {
if (aType !== type(b)) {
return false;

@@ -33,4 +20,4 @@ }

if (aType === 'Array') {
var aClone = Array.from(a);
var bClone = Array.from(b);
const aClone = Array.from(a);
const bClone = Array.from(b);

@@ -41,4 +28,4 @@ if (aClone.toString() !== bClone.toString()) {

var loopArrayFlag = true;
aClone.forEach(function (aCloneInstance, aCloneIndex) {
let loopArrayFlag = true;
aClone.forEach((aCloneInstance, aCloneIndex) => {
if (loopArrayFlag) {

@@ -55,3 +42,3 @@ if (aCloneInstance !== bClone[aCloneIndex] && !equals(aCloneInstance, bClone[aCloneIndex])) {

if (aType === 'Object') {
var aKeys = Object.keys(a);
const aKeys = Object.keys(a);

@@ -62,7 +49,7 @@ if (aKeys.length !== Object.keys(b).length) {

var loopObjectFlag = true;
aKeys.forEach(function (aKeyInstance) {
let loopObjectFlag = true;
aKeys.forEach(aKeyInstance => {
if (loopObjectFlag) {
var aValue = a[aKeyInstance];
var bValue = b[aKeyInstance];
const aValue = a[aKeyInstance];
const bValue = b[aKeyInstance];

@@ -69,0 +56,0 @@ if (aValue !== bValue && !equals(aValue, bValue)) {

@@ -1,9 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = F;
function F() {
export default function F() {
return false;
}

@@ -1,11 +0,5 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = filter;
function filterObject(fn, obj) {
var willReturn = {};
const willReturn = {};
for (var prop in obj) {
for (const prop in obj) {
if (fn(obj[prop], prop)) {

@@ -19,7 +13,5 @@ willReturn[prop] = obj[prop];

function filter(fn, arr) {
export default function filter(fn, arr) {
if (arguments.length === 1) {
return function (arrHolder) {
return filter(fn, arrHolder);
};
return arrHolder => filter(fn, arrHolder);
}

@@ -31,13 +23,13 @@

if (arr.length === undefined) {
if (!Array.isArray(arr)) {
return filterObject(fn, arr);
}
var index = -1;
var resIndex = 0;
var len = arr.length;
var willReturn = [];
let index = -1;
let resIndex = 0;
const len = arr.length;
const willReturn = [];
while (++index < len) {
var value = arr[index];
const value = arr[index];

@@ -44,0 +36,0 @@ if (fn(value)) {

@@ -1,12 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = find;
function find(fn, arr) {
export default function find(fn, arr) {
if (arguments.length === 1) {
return function (arrHolder) {
return find(fn, arrHolder);
};
return arrHolder => find(fn, arrHolder);
}

@@ -13,0 +5,0 @@

@@ -1,16 +0,8 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = findIndex;
function findIndex(fn, arr) {
export default function findIndex(fn, arr) {
if (arguments.length === 1) {
return function (arrHolder) {
return findIndex(fn, arrHolder);
};
return arrHolder => findIndex(fn, arrHolder);
}
var len = arr.length;
var index = -1;
const len = arr.length;
let index = -1;

@@ -17,0 +9,0 @@ while (++index < len) {

@@ -1,11 +0,5 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = flatten;
function flatten(arr, willReturn) {
export default function flatten(arr, willReturn) {
willReturn = willReturn === undefined ? [] : willReturn;
for (var i = 0; i < arr.length; i++) {
for (let i = 0; i < arr.length; i++) {
if (Array.isArray(arr[i])) {

@@ -12,0 +6,0 @@ flatten(arr[i], willReturn);

@@ -1,17 +0,5 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = flip;
function flipExport(fn) {
return function () {
for (var _len = arguments.length, input = Array(_len), _key = 0; _key < _len; _key++) {
input[_key] = arguments[_key];
}
return (...input) => {
if (input.length === 1) {
return function (holder) {
return fn(holder, input[0]);
};
return holder => fn(holder, input[0]);
} else if (input.length === 2) {

@@ -25,4 +13,4 @@ return fn(input[1], input[0]);

function flip(fn) {
export default function flip(fn, ...input) {
return flipExport(fn);
}

@@ -1,24 +0,11 @@

'use strict';
import map from './map';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = forEach;
var _map = require('./map');
var _map2 = _interopRequireDefault(_map);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function forEach(fn, arr) {
export default function forEach(fn, arr) {
if (arguments.length === 1) {
return function (arrHolder) {
return forEach(fn, arrHolder);
};
return arrHolder => forEach(fn, arrHolder);
}
(0, _map2.default)(fn, arr);
map(fn, arr);
return arr;
}

@@ -1,18 +0,10 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = groupBy;
function groupBy(fn, list) {
export default function groupBy(fn, list) {
if (arguments.length === 1) {
return function (list) {
return groupBy(fn, list);
};
return list => groupBy(fn, list);
}
var result = {};
for (var i = 0; i < list.length; i++) {
var item = list[i];
var key = fn(item);
const result = {};
for (let i = 0; i < list.length; i++) {
const item = list[i];
const key = fn(item);

@@ -19,0 +11,0 @@ if (!result[key]) {

@@ -1,12 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = has;
function has(prop, obj) {
export default function has(prop, obj) {
if (arguments.length === 1) {
return function (objHolder) {
return has(prop, objHolder);
};
return objHolder => has(prop, objHolder);
}

@@ -13,0 +5,0 @@

@@ -1,8 +0,2 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = head;
function head(a) {
export default function head(a) {
if (typeof a === 'string') {

@@ -9,0 +3,0 @@ return a[0] || '';

@@ -1,9 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = identity;
function identity(x) {
export default function identity(x) {
return x;
}

@@ -1,20 +0,10 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = ifElse;
function ifElse(condition, ifFn, elseFn) {
export default function ifElse(condition, ifFn, elseFn) {
if (ifFn === undefined) {
return function (ifFnHolder, elseFnHolder) {
return ifElse(condition, ifFnHolder, elseFnHolder);
};
return (ifFnHolder, elseFnHolder) => ifElse(condition, ifFnHolder, elseFnHolder);
} else if (elseFn === undefined) {
return function (elseFnHolder) {
return ifElse(condition, ifFn, elseFnHolder);
};
return elseFnHolder => ifElse(condition, ifFn, elseFnHolder);
}
return function (input) {
var conditionResult = typeof condition === 'boolean' ? condition : condition(input);
return input => {
const conditionResult = typeof condition === 'boolean' ? condition : condition(input);

@@ -21,0 +11,0 @@ if (conditionResult === true) {

@@ -1,9 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (x) {
return x + 1;
};
export default (x => x + 1);

@@ -1,12 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = includes;
function includes(x, y) {
export default function includes(x, y) {
if (arguments.length === 1) {
return function (yHolder) {
return includes(x, yHolder);
};
return yHolder => includes(x, yHolder);
}

@@ -13,0 +5,0 @@

@@ -1,17 +0,9 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = indexBy;
function indexBy(fn, list) {
export default function indexBy(fn, list) {
if (arguments.length === 1) {
return function (listHolder) {
return indexBy(fn, listHolder);
};
return listHolder => indexBy(fn, listHolder);
}
var result = {};
for (var i = 0; i < list.length; i++) {
var item = list[i];
const result = {};
for (let i = 0; i < list.length; i++) {
const item = list[i];
result[fn(item)] = item;

@@ -18,0 +10,0 @@ }

@@ -1,16 +0,8 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = indexOf;
function indexOf(x, arr) {
export default function indexOf(x, arr) {
if (arguments.length === 1) {
return function (arrHolder) {
return indexOf(x, arrHolder);
};
return arrHolder => indexOf(x, arrHolder);
}
var index = -1;
var length = arr.length;
let index = -1;
const length = arr.length;

@@ -17,0 +9,0 @@ while (++index < length) {

@@ -1,15 +0,4 @@

'use strict';
import baseSlice from './internal/baseSlice';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = init;
var _baseSlice = require('./internal/baseSlice');
var _baseSlice2 = _interopRequireDefault(_baseSlice);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function init(a) {
export default function init(a) {
if (typeof a === 'string') {

@@ -19,3 +8,3 @@ return a.slice(0, -1);

return a.length ? (0, _baseSlice2.default)(a, 0, -1) : [];
return a.length ? baseSlice(a, 0, -1) : [];
}

@@ -1,11 +0,5 @@

"use strict";
export default function baseSlice(array, start, end) {
let index = -1;
let length = array.length;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = baseSlice;
function baseSlice(array, start, end) {
var index = -1;
var length = array.length;
end = end > length ? length : end;

@@ -18,3 +12,3 @@ if (end < 0) {

var result = Array(length);
const result = Array(length);

@@ -21,0 +15,0 @@ while (++index < length) {

@@ -1,12 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = is;
function is(xPrototype, x) {
export default function is(xPrototype, x) {
if (arguments.length === 1) {
return function (xHolder) {
return is(xPrototype, xHolder);
};
return xHolder => is(xPrototype, xHolder);
}

@@ -13,0 +5,0 @@

@@ -1,9 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = isNil;
function isNil(x) {
export default function isNil(x) {
return x === undefined || x === null;
}

@@ -1,12 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = join;
function join(glue, arr) {
export default function join(glue, arr) {
if (arguments.length === 1) {
return function (arrHolder) {
return join(glue, arrHolder);
};
return arrHolder => join(glue, arrHolder);
}

@@ -13,0 +5,0 @@

@@ -1,9 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = keys;
function keys(x) {
export default function keys(x) {
return Object.keys(x);
}

@@ -1,8 +0,2 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = last;
function last(a) {
export default function last(a) {
if (typeof a === 'string') {

@@ -9,0 +3,0 @@ return a[a.length - 1] || '';

@@ -1,25 +0,12 @@

'use strict';
import equals from './equals';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = lastIndexOf;
var _equals = require('./equals');
var _equals2 = _interopRequireDefault(_equals);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function lastIndexOf(x, arr) {
export default function lastIndexOf(x, arr) {
if (arguments.length === 1) {
return function (arrHolder) {
return lastIndexOf(x, arrHolder);
};
return arrHolder => lastIndexOf(x, arrHolder);
}
var willReturn = -1;
let willReturn = -1;
arr.map(function (value, key) {
if ((0, _equals2.default)(value, x)) {
arr.map((value, key) => {
if (equals(value, x)) {
willReturn = key;

@@ -26,0 +13,0 @@ }

@@ -1,9 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = length;
function length(x) {
export default function length(x) {
return x.length;
}

@@ -1,11 +0,5 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = map;
function mapObject(fn, obj) {
var willReturn = {};
const willReturn = {};
for (var prop in obj) {
for (const prop in obj) {
willReturn[prop] = fn(obj[prop], prop);

@@ -17,7 +11,5 @@ }

function map(fn, arr) {
export default function map(fn, arr) {
if (arguments.length === 1) {
return function (arrHolder) {
return map(fn, arrHolder);
};
return arrHolder => map(fn, arrHolder);
}

@@ -28,10 +20,9 @@

}
if (arr.length === undefined) {
if (!Array.isArray(arr)) {
return mapObject(fn, arr);
}
var index = -1;
var len = arr.length;
var willReturn = Array(len);
let index = -1;
const len = arr.length;
const willReturn = Array(len);

@@ -38,0 +29,0 @@ while (++index < len) {

@@ -1,17 +0,9 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = match;
function match(regex, x) {
export default function match(regex, x) {
if (arguments.length === 1) {
return function (xHolder) {
return match(regex, xHolder);
};
return xHolder => match(regex, xHolder);
}
var willReturn = x.match(regex);
const willReturn = x.match(regex);
return willReturn === null ? [] : willReturn;
}

@@ -1,12 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = max;
function max(x, y) {
export default function max(x, y) {
if (arguments.length === 1) {
return function (yHolder) {
return max(x, yHolder);
};
return yHolder => max(x, yHolder);
}

@@ -13,0 +5,0 @@

@@ -1,16 +0,6 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = maxBy;
function maxBy(fn, x, y) {
export default function maxBy(fn, x, y) {
if (arguments.length === 2) {
return function (yHolder) {
return maxBy(fn, x, yHolder);
};
return yHolder => maxBy(fn, x, yHolder);
} else if (arguments.length === 1) {
return function (xHolder, yHolder) {
return maxBy(fn, xHolder, yHolder);
};
return (xHolder, yHolder) => maxBy(fn, xHolder, yHolder);
}

@@ -17,0 +7,0 @@

@@ -1,12 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = merge;
function merge(obj, newProps) {
export default function merge(obj, newProps) {
if (arguments.length === 1) {
return function (newPropsHolder) {
return merge(obj, newPropsHolder);
};
return newPropsHolder => merge(obj, newPropsHolder);
}

@@ -13,0 +5,0 @@

@@ -1,12 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = min;
function min(x, y) {
export default function min(x, y) {
if (arguments.length === 1) {
return function (yHolder) {
return min(x, yHolder);
};
return yHolder => min(x, yHolder);
}

@@ -13,0 +5,0 @@

@@ -1,13 +0,3 @@

'use strict';
import curry from './curry';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _curry = require('./curry');
var _curry2 = _interopRequireDefault(_curry);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function minBy(fn, x, y) {

@@ -17,2 +7,2 @@ return fn(y) < fn(x) ? y : x;

exports.default = (0, _curry2.default)(minBy);
export default /*#__PURE__*/curry(minBy);

@@ -1,13 +0,5 @@

"use strict";
export default function modulo(x, y) {
if (arguments.length === 1) return yHolder => modulo(x, yHolder);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = modulo;
function modulo(x, y) {
if (arguments.length === 1) return function (yHolder) {
return modulo(x, yHolder);
};
return x % y;
}

@@ -1,13 +0,6 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = multiply;
function multiply(x, y) {
if (arguments.length === 1) return function (yHolder) {
return multiply(x, yHolder);
};
export default function multiply(x, y) {
if (arguments.length === 1) return yHolder => multiply(x, yHolder);
return x * y;
}

@@ -1,13 +0,5 @@

"use strict";
export default function none(fn, arr) {
if (arguments.length === 1) return arrHolder => none(fn, arrHolder);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = none;
function none(fn, arr) {
if (arguments.length === 1) return function (arrHolder) {
return none(fn, arrHolder);
};
return arr.filter(fn).length === 0;
}

@@ -1,9 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = not;
function not(x) {
export default function not(x) {
return !x;
}

@@ -1,15 +0,7 @@

'use strict';
export default function nth(index, list) {
if (arguments.length === 1) return listHolder => nth(index, listHolder);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = nth;
function nth(index, list) {
if (arguments.length === 1) return function (listHolder) {
return nth(index, listHolder);
};
const idx = index < 0 ? list.length + index : index;
var idx = index < 0 ? list.length + index : index;
return Object.prototype.toString.call(list) === '[object String]' ? list.charAt(idx) : list[idx];
}

@@ -1,12 +0,4 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = omit;
function omit(keys, obj) {
export default function omit(keys, obj) {
if (arguments.length === 1) {
return function (objHolder) {
return omit(keys, objHolder);
};
return objHolder => omit(keys, objHolder);
}

@@ -17,7 +9,7 @@ if (obj === null || obj === undefined) {

var keysValue = typeof keys === 'string' ? keys = keys.split(',') : keys;
const keysValue = typeof keys === 'string' ? keys = keys.split(',') : keys;
var willReturn = {};
const willReturn = {};
for (var key in obj) {
for (const key in obj) {
if (!keysValue.includes(key)) {

@@ -24,0 +16,0 @@ willReturn[key] = obj[key];

@@ -1,30 +0,14 @@

'use strict';
import merge from './merge';
import type from './type';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = partialCurry;
var _merge = require('./merge');
var _merge2 = _interopRequireDefault(_merge);
var _type = require('./type');
var _type2 = _interopRequireDefault(_type);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function partialCurry(fn) {
var inputArguments = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
return function (inputArgumentsHolder) {
if ((0, _type2.default)(fn) === 'Async' || (0, _type2.default)(fn) === 'Promise') {
return new Promise(function (resolve, reject) {
fn((0, _merge2.default)(inputArgumentsHolder, inputArguments)).then(resolve).catch(reject);
export default function partialCurry(fn, inputArguments = {}) {
return inputArgumentsHolder => {
if (type(fn) === 'Async' || type(fn) === 'Promise') {
return new Promise((resolve, reject) => {
fn(merge(inputArgumentsHolder, inputArguments)).then(resolve).catch(reject);
});
}
return fn((0, _merge2.default)(inputArgumentsHolder, inputArguments));
return fn(merge(inputArgumentsHolder, inputArguments));
};
}

@@ -1,12 +0,4 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = path;
function path(pathArr, obj) {
export default function path(pathArr, obj) {
if (arguments.length === 1) {
return function (objHolder) {
return path(pathArr, objHolder);
};
return objHolder => path(pathArr, objHolder);
}

@@ -16,6 +8,6 @@ if (obj === null || obj === undefined) {

}
var willReturn = obj;
var counter = 0;
let willReturn = obj;
let counter = 0;
var pathArrValue = typeof pathArr === 'string' ? pathArr.split('.') : pathArr;
const pathArrValue = typeof pathArr === 'string' ? pathArr.split('.') : pathArr;

@@ -22,0 +14,0 @@ while (counter < pathArrValue.length) {

@@ -1,25 +0,9 @@

'use strict';
import defaultTo from './defaultTo';
import path from './path';
import curry from './curry';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _defaultTo = require('./defaultTo');
var _defaultTo2 = _interopRequireDefault(_defaultTo);
var _path = require('./path');
var _path2 = _interopRequireDefault(_path);
var _curry = require('./curry');
var _curry2 = _interopRequireDefault(_curry);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function pathOr(defaultValue, inputPath, inputObject) {
return (0, _defaultTo2.default)(defaultValue, (0, _path2.default)(inputPath, inputObject));
return defaultTo(defaultValue, path(inputPath, inputObject));
}
exports.default = (0, _curry2.default)(pathOr);
export default /*#__PURE__*/curry(pathOr);

@@ -1,12 +0,4 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = pick;
function pick(keys, obj) {
export default function pick(keys, obj) {
if (arguments.length === 1) {
return function (objHolder) {
return pick(keys, objHolder);
};
return objHolder => pick(keys, objHolder);
}

@@ -16,6 +8,6 @@ if (obj === null || obj === undefined) {

}
var keysValue = typeof keys === 'string' ? keys.split(',') : keys;
const keysValue = typeof keys === 'string' ? keys.split(',') : keys;
var willReturn = {};
var counter = 0;
const willReturn = {};
let counter = 0;

@@ -22,0 +14,0 @@ while (counter < keysValue.length) {

@@ -1,12 +0,4 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = pickAll;
function pickAll(keys, obj) {
export default function pickAll(keys, obj) {
if (arguments.length === 1) {
return function (objHolder) {
return pickAll(keys, objHolder);
};
return objHolder => pickAll(keys, objHolder);
}

@@ -16,6 +8,6 @@ if (obj === null || obj === undefined) {

}
var keysValue = typeof keys === 'string' ? keys.split(',') : keys;
const keysValue = typeof keys === 'string' ? keys.split(',') : keys;
var willReturn = {};
var counter = 0;
const willReturn = {};
let counter = 0;

@@ -22,0 +14,0 @@ while (counter < keysValue.length) {

@@ -1,22 +0,5 @@

'use strict';
import compose from './compose';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = pipe;
var _compose = require('./compose');
var _compose2 = _interopRequireDefault(_compose);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
function pipe() {
for (var _len = arguments.length, fns = Array(_len), _key = 0; _key < _len; _key++) {
fns[_key] = arguments[_key];
}
return _compose2.default.apply(undefined, _toConsumableArray(fns.reverse()));
export default function pipe(...fns) {
return compose(...fns.reverse());
}

@@ -1,22 +0,9 @@

'use strict';
import map from './map';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = pluck;
export default function pluck(keyToPluck, arr) {
if (arguments.length === 1) return arrHolder => pluck(keyToPluck, arrHolder);
var _map = require('./map');
const willReturn = [];
var _map2 = _interopRequireDefault(_map);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function pluck(keyToPluck, arr) {
if (arguments.length === 1) return function (arrHolder) {
return pluck(keyToPluck, arrHolder);
};
var willReturn = [];
(0, _map2.default)(function (val) {
map(val => {
if (!(val[keyToPluck] === undefined)) {

@@ -23,0 +10,0 @@ willReturn.push(val[keyToPluck]);

@@ -1,17 +0,10 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = prepend;
function prepend(x, arr) {
if (arguments.length === 1) return function (arrHolder) {
return prepend(x, arrHolder);
};
export default function prepend(x, arr) {
if (arguments.length === 1) return arrHolder => prepend(x, arrHolder);
if (typeof arr === 'string') {
return '' + x + arr;
return `${x}${arr}`;
}
var clone = arr.concat();
const clone = arr.concat();
clone.unshift(x);

@@ -18,0 +11,0 @@

@@ -1,13 +0,5 @@

"use strict";
export default function prop(key, obj) {
if (arguments.length === 1) return objHolder => prop(key, objHolder);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = prop;
function prop(key, obj) {
if (arguments.length === 1) return function (objHolder) {
return prop(key, objHolder);
};
return obj[key];
}

@@ -1,16 +0,6 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = propEq;
function propEq(key, x, obj) {
export default function propEq(key, x, obj) {
if (x === undefined) {
return function (xHolder, objHolder) {
return propEq(key, xHolder, objHolder);
};
return (xHolder, objHolder) => propEq(key, xHolder, objHolder);
} else if (obj === undefined) {
return function (objHolder) {
return propEq(key, x, objHolder);
};
return objHolder => propEq(key, x, objHolder);
}

@@ -17,0 +7,0 @@

@@ -1,15 +0,7 @@

"use strict";
export default function range(start, end) {
if (arguments.length === 1) return endHolder => range(start, endHolder);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = range;
function range(start, end) {
if (arguments.length === 1) return function (endHolder) {
return range(start, endHolder);
};
const willReturn = [];
var willReturn = [];
for (var i = start; i < end; i++) {
for (let i = start; i < end; i++) {
willReturn.push(i);

@@ -16,0 +8,0 @@ }

@@ -1,16 +0,6 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = reduce;
function reduce(fn, initialValue, arr) {
export default function reduce(fn, initialValue, arr) {
if (initialValue === undefined) {
return function (initialValueHolder, arrHolder) {
return reduce(fn, initialValueHolder, arrHolder);
};
return (initialValueHolder, arrHolder) => reduce(fn, initialValueHolder, arrHolder);
} else if (arr === undefined) {
return function (arrHolder) {
return reduce(fn, initialValue, arrHolder);
};
return arrHolder => reduce(fn, initialValue, arrHolder);
}

@@ -17,0 +7,0 @@

@@ -1,22 +0,7 @@

'use strict';
import filter from './filter';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = reject;
export default function reject(fn, arr) {
if (arguments.length === 1) return arrHolder => reject(fn, arrHolder);
var _filter = require('./filter');
var _filter2 = _interopRequireDefault(_filter);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function reject(fn, arr) {
if (arguments.length === 1) return function (arrHolder) {
return reject(fn, arrHolder);
};
return (0, _filter2.default)(function (x) {
return !fn(x);
}, arr);
return filter(x => !fn(x), arr);
}

@@ -1,16 +0,8 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = repeat;
function repeat(x, num) {
export default function repeat(x, num) {
if (arguments.length === 1) {
return function (numHolder) {
return repeat(x, numHolder);
};
return numHolder => repeat(x, numHolder);
}
var willReturn = Array(num);
const willReturn = Array(num);
return willReturn.fill(x);
}

@@ -1,16 +0,6 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = replace;
function replace(regex, replacer, str) {
export default function replace(regex, replacer, str) {
if (replacer === undefined) {
return function (replacerHolder, strHolder) {
return replace(regex, replacerHolder, strHolder);
};
return (replacerHolder, strHolder) => replace(regex, replacerHolder, strHolder);
} else if (str === undefined) {
return function (strHolder) {
return replace(regex, replacer, strHolder);
};
return strHolder => replace(regex, replacer, strHolder);
}

@@ -17,0 +7,0 @@

@@ -1,11 +0,5 @@

"use strict";
export default function reverse(arr) {
const clone = arr.concat();
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = reverse;
function reverse(arr) {
var clone = arr.concat();
return clone.reverse();
}

@@ -1,15 +0,7 @@

"use strict";
export default function sort(fn, arr) {
if (arguments.length === 1) return arrHolder => sort(fn, arrHolder);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = sort;
function sort(fn, arr) {
if (arguments.length === 1) return function (arrHolder) {
return sort(fn, arrHolder);
};
const arrClone = arr.concat();
var arrClone = arr.concat();
return arrClone.sort(fn);
}

@@ -1,18 +0,10 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = sortBy;
function sortBy(fn, arr) {
export default function sortBy(fn, arr) {
if (arguments.length === 1) {
return function (arrHolder) {
return sortBy(fn, arrHolder);
};
return arrHolder => sortBy(fn, arrHolder);
}
var arrClone = arr.concat();
const arrClone = arr.concat();
return arrClone.sort(function (a, b) {
var fnA = fn(a);
var fnB = fn(b);
return arrClone.sort((a, b) => {
const fnA = fn(a);
const fnB = fn(b);

@@ -19,0 +11,0 @@ return fnA < fnB ? -1 : fnA > fnB ? 1 : 0;

@@ -1,13 +0,5 @@

"use strict";
export default function split(glue, str) {
if (arguments.length === 1) return strHolder => split(glue, strHolder);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = split;
function split(glue, str) {
if (arguments.length === 1) return function (strHolder) {
return split(glue, strHolder);
};
return str.split(glue);
}

@@ -1,17 +0,9 @@

"use strict";
export default function splitEvery(num, x) {
if (arguments.length === 1) return xHolder => splitEvery(num, xHolder);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = splitEvery;
function splitEvery(num, x) {
if (arguments.length === 1) return function (xHolder) {
return splitEvery(num, xHolder);
};
const numValue = num > 1 ? num : 1;
var numValue = num > 1 ? num : 1;
const willReturn = [];
let counter = 0;
var willReturn = [];
var counter = 0;
while (counter < x.length) {

@@ -18,0 +10,0 @@ willReturn.push(x.slice(counter, counter += numValue));

@@ -1,13 +0,5 @@

"use strict";
export default function startsWith(x, y) {
if (arguments.length === 1) return yHolder => startsWith(x, yHolder);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = startsWith;
function startsWith(x, y) {
if (arguments.length === 1) return function (yHolder) {
return startsWith(x, yHolder);
};
return y.startsWith(x);
}

@@ -1,13 +0,5 @@

"use strict";
export default function subtract(x, y) {
if (arguments.length === 1) return yHolder => subtract(x, yHolder);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = subtract;
function subtract(x, y) {
if (arguments.length === 1) return function (yHolder) {
return subtract(x, yHolder);
};
return x - y;
}

@@ -1,9 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = T;
function T() {
export default function T() {
return true;
}

@@ -1,16 +0,5 @@

'use strict';
import drop from './drop';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = tail;
var _drop = require('./drop');
var _drop2 = _interopRequireDefault(_drop);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function tail(arr) {
return (0, _drop2.default)(1, arr);
export default function tail(arr) {
return drop(1, arr);
}

@@ -1,19 +0,6 @@

'use strict';
import baseSlice from './internal/baseSlice';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = take;
export default function take(num, x) {
if (arguments.length === 1) return xHolder => take(num, xHolder);
var _baseSlice = require('./internal/baseSlice');
var _baseSlice2 = _interopRequireDefault(_baseSlice);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function take(num, x) {
if (arguments.length === 1) return function (xHolder) {
return take(num, xHolder);
};
if (typeof x === 'string') {

@@ -23,3 +10,3 @@ return x.slice(0, num);

return (0, _baseSlice2.default)(x, 0, num);
return baseSlice(x, 0, num);
}

@@ -1,23 +0,10 @@

'use strict';
import baseSlice from './internal/baseSlice';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = takeLast;
export default function takeLast(num, x) {
if (arguments.length === 1) return xHolder => takeLast(num, xHolder);
var _baseSlice = require('./internal/baseSlice');
const len = x.length;
var _baseSlice2 = _interopRequireDefault(_baseSlice);
let numValue = num > len ? len : num;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function takeLast(num, x) {
if (arguments.length === 1) return function (xHolder) {
return takeLast(num, xHolder);
};
var len = x.length;
var numValue = num > len ? len : num;
if (typeof x === 'string') {

@@ -29,3 +16,3 @@

return (0, _baseSlice2.default)(x, numValue, len);
return baseSlice(x, numValue, len);
}

@@ -1,12 +0,4 @@

"use strict";
export default function tap(fn, x) {
if (arguments.length === 1) return xHolder => tap(fn, xHolder);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = tap;
function tap(fn, x) {
if (arguments.length === 1) return function (xHolder) {
return tap(fn, xHolder);
};
fn(x);

@@ -13,0 +5,0 @@

@@ -1,13 +0,5 @@

"use strict";
export default function test(regex, str) {
if (arguments.length === 1) return strHolder => test(regex, strHolder);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = test;
function test(regex, str) {
if (arguments.length === 1) return function (strHolder) {
return test(regex, strHolder);
};
return str.search(regex) !== -1;
}

@@ -1,24 +0,8 @@

'use strict';
import range from './range';
import map from './map';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = times;
export default function times(fn, num) {
if (arguments.length === 1) return numHolder => times(fn, numHolder);
var _range = require('./range');
var _range2 = _interopRequireDefault(_range);
var _map = require('./map');
var _map2 = _interopRequireDefault(_map);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function times(fn, num) {
if (arguments.length === 1) return function (numHolder) {
return times(fn, numHolder);
};
return (0, _map2.default)(fn, (0, _range2.default)(0, num));
return map(fn, range(0, num));
}

@@ -1,9 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = toLower;
function toLower(x) {
export default function toLower(x) {
return x.toLowerCase();
}

@@ -1,9 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = toString;
function toString(x) {
export default function toString(x) {
return x.toString();
}

@@ -1,9 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = toUpper;
function toUpper(x) {
export default function toUpper(x) {
return x.toUpperCase();
}

@@ -1,9 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = trim;
function trim(str) {
export default function trim(str) {
return str.trim();
}

@@ -1,13 +0,4 @@

'use strict';
export default function type(a) {
const typeOf = typeof a;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
exports.default = type;
function type(a) {
var typeOf = typeof a === 'undefined' ? 'undefined' : _typeof(a);
if (a === null) {

@@ -29,3 +20,3 @@ return 'Null';

var asStr = a.toString();
const asStr = a.toString();

@@ -32,0 +23,0 @@ if (asStr.startsWith('async')) {

@@ -1,22 +0,11 @@

'use strict';
import contains from './contains';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = uniq;
export default function uniq(arr) {
let index = -1;
const willReturn = [];
var _contains = require('./contains');
var _contains2 = _interopRequireDefault(_contains);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function uniq(arr) {
var index = -1;
var willReturn = [];
while (++index < arr.length) {
var value = arr[index];
const value = arr[index];
if (!(0, _contains2.default)(value, willReturn)) {
if (!contains(value, willReturn)) {
willReturn.push(value);

@@ -23,0 +12,0 @@ }

@@ -1,36 +0,17 @@

'use strict';
import any from './any';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = uniqWith;
export default function uniqWith(fn, arr) {
if (arguments.length === 1) return arrHolder => uniqWith(fn, arrHolder);
var _any = require('./any');
let index = -1;
const len = arr.length;
const willReturn = [];
var _any2 = _interopRequireDefault(_any);
while (++index < arr.length) {
const value = arr[index];
const flag = any(willReturnInstance => fn(value, willReturnInstance), willReturn);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function uniqWith(fn, arr) {
if (arguments.length === 1) return function (arrHolder) {
return uniqWith(fn, arrHolder);
};
var index = -1;
var len = arr.length;
var willReturn = [];
var _loop = function _loop() {
var value = arr[index];
var flag = (0, _any2.default)(function (willReturnInstance) {
return fn(value, willReturnInstance);
}, willReturn);
if (!flag) {
willReturn.push(value);
}
};
while (++index < arr.length) {
_loop();
}

@@ -37,0 +18,0 @@

@@ -1,20 +0,10 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = update;
function update(index, newValue, arr) {
export default function update(index, newValue, arr) {
if (newValue === undefined) {
return function (newValueHolder, arrHolder) {
return update(index, newValueHolder, arrHolder);
};
return (newValueHolder, arrHolder) => update(index, newValueHolder, arrHolder);
} else if (arr === undefined) {
return function (arrHolder) {
return update(index, newValue, arrHolder);
};
return arrHolder => update(index, newValue, arrHolder);
}
var arrClone = arr.concat();
const arrClone = arr.concat();
return arrClone.fill(newValue, index, index + 1);
}

@@ -1,11 +0,5 @@

"use strict";
export default function values(obj) {
const willReturn = [];
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = values;
function values(obj) {
var willReturn = [];
for (var key in obj) {
for (const key in obj) {
willReturn.push(obj[key]);

@@ -12,0 +6,0 @@ }

@@ -1,22 +0,6 @@

'use strict';
import contains from './contains';
import reduce from './reduce';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = without;
var _contains = require('./contains');
var _contains2 = _interopRequireDefault(_contains);
var _reduce = require('./reduce');
var _reduce2 = _interopRequireDefault(_reduce);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function without(itemsToOmit, collection) {
return (0, _reduce2.default)(function (accum, item) {
return !(0, _contains2.default)(item, itemsToOmit) ? accum.concat(item) : accum;
}, [], collection);
export default function without(itemsToOmit, collection) {
return reduce((accum, item) => !contains(item, itemsToOmit) ? accum.concat(item) : accum, [], collection);
}

@@ -1,26 +0,8 @@

'use strict';
import addIndex from './addIndex';
import reduce from './reduce';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = zip;
export default function zip(x, y) {
if (arguments.length === 1) return yHolder => zip(x, yHolder);
var _addIndex = require('./addIndex');
var _addIndex2 = _interopRequireDefault(_addIndex);
var _reduce = require('./reduce');
var _reduce2 = _interopRequireDefault(_reduce);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function zip(x, y) {
if (arguments.length === 1) return function (yHolder) {
return zip(x, yHolder);
};
return (0, _addIndex2.default)(_reduce2.default)(function (accum, value, index) {
return y[index] ? accum.concat([[value, y[index]]]) : accum;
}, [], x);
return addIndex(reduce)((accum, value, index) => y[index] ? accum.concat([[value, y[index]]]) : accum, [], x);
}

@@ -1,13 +0,5 @@

"use strict";
export default function zipObj(x, y) {
if (arguments.length === 1) return yHolder => zipObj(x, yHolder);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = zipObj;
function zipObj(x, y) {
if (arguments.length === 1) return function (yHolder) {
return zipObj(x, yHolder);
};
return x.reduce(function (prev, xInstance, i) {
return x.reduce((prev, xInstance, i) => {
prev[xInstance] = y[i];

@@ -14,0 +6,0 @@ return prev;

{
"name": "rambda",
"version": "1.2.2",
"description": "Lightweight alternative to Ramda",
"version": "1.2.4",
"description": "Lightweight faster alternative to Ramda",
"main": "./dist/rambda.js",
"module": "./dist/rambda.esm.js",
"umd": "./dist/rambda.umd.js",
"typings": "./index.d.ts",

@@ -14,15 +15,9 @@ "sideEffects": false,

"docs": "docsify init ./docs",
"lint": "node files/lint",
"de": "commit",
"build": "NODE_ENV=build run-s build-main build-minify",
"build-main": "microbundle --entry rambda.js",
"build-minify": "node files/minify",
"build": "yarn build:main&&yarn build:web&&yarn minify",
"build:main": "NODE_ENV=build rollup -c files/rollup.config.js",
"build:web": "NODE_ENV=build rollup -c files/rollup.web.config.js",
"minify": "node files/minify",
"benchmark": "node benchmarks/index.js --all",
"cover": "jest __tests__ --coverage",
"lintall": "run-p lint-test lint-modules lint-rambda lint-files lint-benchmarks",
"lint-test": "cd __tests__&&run lintFolder",
"lint-modules": "cd modules&&run lintFolder",
"lint-files": "cd files&&run lintFolder",
"lint-benchmarks": "cd benchmarks&&run lintFolder",
"lint-rambda": "run lint f rambda.js",
"cover": "jest __tests__ --coverage --no-cache -w 1",
"jest": "jest",

@@ -47,11 +42,6 @@ "prepublish": "BABEL_ENV=development babel modules/ --out-dir lib/"

"homepage": "https://github.com/selfrefactor/rambda#readme",
"depFn": [
"babel-cli",
"babel-plugin-external-helpers",
"babel-preset-env"
],
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-plugin-annotate-pure-calls": "^0.2.2",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-external-helpers": "^7.0.0-beta.3",
"babel-preset-env": "^1.6.1",

@@ -62,7 +52,7 @@ "beautify-benchmark": "^0.2.4",

"jest": "^23.0.0-alpha.4",
"lint-fn": "^0.3.6",
"lodash": "^4.17.5",
"microbundle": "^0.4.4",
"minify": "https://github.com/selfrefactor/minify#0.1.0",
"npm-run-all": "^4.1.2",
"rollup": "^0.57.1",
"rollup-plugin-babel": "^3.0.2",
"rollup-plugin-node-resolve": "^3.0.2",
"rambda-repl": "https://github.com/selfrefactor/rambda-repl#0.3.0",

@@ -76,7 +66,9 @@ "ramda": "^0.25.0"

"build",
"prepublish"
"prepublish",
"refactor"
],
"feature": [
"method"
]
],
"workInProgress": ""
},

@@ -86,5 +78,4 @@ "files": [

"lib",
"webVersion.js",
"index.d.ts"
]
}

@@ -11,6 +11,2 @@ [![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).
- Speed

@@ -71,3 +67,3 @@

```
https://cdnjs.cloudflare.com/ajax/libs/rambda/1.2.2/webVersion.js
https://unpkg.com/rambda@1.2.3/dist/rambda.umd.js
```

@@ -79,3 +75,2 @@

- Rambda's **path** accepts dot notation(`'x.y' same as ['x','y']`)

@@ -89,6 +84,8 @@

- Rambda's **flip** works only for functions expecting two arguments.
- Rambda's **filter/all/any/none** pass index as second argument to the predicate function.
- Rambda's **equals** doesn't protect against circular structures as **Ramda.equals** does.
- Rambda's **flip** works only for functions expecting two arguments.
- Rambda's **partialCurry** and **includes** are not part of Ramda API.

@@ -1713,3 +1710,4 @@

- 1.2.2 Change curry method used across most of library methods
- 1.2.3 Add missing Typescript definitions - [PR#82](https://github.com/selfrefactor/rambda/pull/82)
- 1.2.2 Change curry method used across most of library methods
- 1.2.1 Add `R.assoc` | fix passing `undefined` to `R.map` and `R.merge` [issue #77](https://github.com/selfrefactor/rambda/issues/77)

@@ -1716,0 +1714,0 @@ - 1.2.0 Add `R.min`, `R.minBy`, `R.max`, `R.maxBy`, `R.nth` and `R.keys`

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc