Socket
Socket
Sign inDemoInstall

ramda

Package Overview
Dependencies
Maintainers
8
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ramda - npm Package Compare versions

Comparing version 0.24.0 to 0.24.1-es.rc1

es/__.js

8

dist/ramda.min.js

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

// Ramda v0.24.0
// https://github.com/ramda/ramda
// (c) 2013-2017 Scott Sauyet, Michael Hurley, and David Chambers
// Ramda may be freely distributed under the MIT license.
(function(){"use strict";var t={"@@functional/placeholder":!0},n=function(t,n){for(var r=0,e=n.length-(t-1),u=new Array(e>=0?e:0);e>r;)u[r]=Array.prototype.slice.call(n,r,r+t),r+=1;return u},r=function(t,n){switch(t){case 0:return function(){return n.apply(this,arguments)};case 1:return function(t){return n.apply(this,arguments)};case 2:return function(t,r){return n.apply(this,arguments)};case 3:return function(t,r,e){return n.apply(this,arguments)};case 4:return function(t,r,e,u){return n.apply(this,arguments)};case 5:return function(t,r,e,u,i){return n.apply(this,arguments)};case 6:return function(t,r,e,u,i,o){return n.apply(this,arguments)};case 7:return function(t,r,e,u,i,o,c){return n.apply(this,arguments)};case 8:return function(t,r,e,u,i,o,c,a){return n.apply(this,arguments)};case 9:return function(t,r,e,u,i,o,c,a,s){return n.apply(this,arguments)};case 10:return function(t,r,e,u,i,o,c,a,s,f){return n.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}},e=function(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r},u=function(t){return new RegExp(t.source,(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":""))},i=function(t){return function(){return!t.apply(this,arguments)}},o=function(t,n){t=t||[],n=n||[];var r,e=t.length,u=n.length,i=[];for(r=0;e>r;)i[i.length]=t[r],r+=1;for(r=0;u>r;)i[i.length]=n[r],r+=1;return i},c=function(t,n,r){for(var e=0,u=r.length;u>e;){if(t(n,r[e]))return!0;e+=1}return!1},a=function(t,n){for(var r=n.length-1;r>=0&&t(n[r]);)r-=1;return Array.prototype.slice.call(n,0,r+1)},s=function(t,n){for(var r=0,e=n.length,u=[];e>r;)t(n[r])&&(u[u.length]=n[r]),r+=1;return u},f=function(t){return{"@@transducer/value":t,"@@transducer/reduced":!0}},l=function(t){var n=String(t).match(/^function (\w*)/);return null==n?"":n[1]},p=function(t,n){return Object.prototype.hasOwnProperty.call(n,t)},h=function(t){return t},y=function(){var t=Object.prototype.toString;return"[object Arguments]"===t.call(arguments)?function(n){return"[object Arguments]"===t.call(n)}:function(t){return p("callee",t)}}(),g=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)},d=function(t){return"[object Function]"===Object.prototype.toString.call(t)},m=Number.isInteger||function(t){return t<<0===t},v=function(t){return"[object Number]"===Object.prototype.toString.call(t)},w=function(t){return"[object Object]"===Object.prototype.toString.call(t)},b=function(t){return null!=t&&"object"==typeof t&&t["@@functional/placeholder"]===!0},x=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},j=function(t){return"[object String]"===Object.prototype.toString.call(t)},A=function(t){return"function"==typeof t["@@transducer/step"]},O=function(t,n){for(var r=0,e=n.length,u=Array(e);e>r;)u[r]=t(n[r]),r+=1;return u},S=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1,e=arguments.length;e>r;){var u=arguments[r];if(null!=u)for(var i in u)p(i,u)&&(n[i]=u[i]);r+=1}return n},E=function(t){return[t]},_=function(t,n){return function(){return n.call(this,t.apply(this,arguments))}},q=function(t,n){return function(){var r=this;return t.apply(r,arguments).then(function(t){return n.call(r,t)})}},N=function(t){var n=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+n.replace(/"/g,'\\"')+'"'},k=function(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}},I=function(){var t=function(t){return(10>t?"0":"")+t};return"function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(n){return n.getUTCFullYear()+"-"+t(n.getUTCMonth()+1)+"-"+t(n.getUTCDate())+"T"+t(n.getUTCHours())+":"+t(n.getUTCMinutes())+":"+t(n.getUTCSeconds())+"."+(n.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}}(),W={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}},C=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},function(n){return new t(n)}}(),P="function"==typeof Object.assign?Object.assign:S,T=function(t,n){return function(){var r=arguments.length;if(0===r)return n();var e=arguments[r-1];return g(e)||"function"!=typeof e[t]?n.apply(this,arguments):e[t].apply(e,Array.prototype.slice.call(arguments,0,r-1))}},F=function(t){return function n(r){return 0===arguments.length||b(r)?n:t.apply(this,arguments)}},B=function(t){return function n(r,e){switch(arguments.length){case 0:return n;case 1:return b(r)?n:F(function(n){return t(r,n)});default:return b(r)&&b(e)?n:b(r)?F(function(n){return t(n,e)}):b(e)?F(function(n){return t(r,n)}):t(r,e)}}},R=function(t){return function n(r,e,u){switch(arguments.length){case 0:return n;case 1:return b(r)?n:B(function(n,e){return t(r,n,e)});case 2:return b(r)&&b(e)?n:b(r)?B(function(n,r){return t(n,e,r)}):b(e)?B(function(n,e){return t(r,n,e)}):F(function(n){return t(r,e,n)});default:return b(r)&&b(e)&&b(u)?n:b(r)&&b(e)?B(function(n,r){return t(n,r,u)}):b(r)&&b(u)?B(function(n,r){return t(n,e,r)}):b(e)&&b(u)?B(function(n,e){return t(r,n,e)}):b(r)?F(function(n){return t(n,e,u)}):b(e)?F(function(n){return t(r,n,u)}):b(u)?F(function(n){return t(r,e,n)}):t(r,e,u)}}},U=function Xu(t,n,e){return function(){for(var u=[],i=0,o=t,c=0;c<n.length||i<arguments.length;){var a;c<n.length&&(!b(n[c])||i>=arguments.length)?a=n[c]:(a=arguments[i],i+=1),u[c]=a,b(a)||(o-=1),c+=1}return 0>=o?e.apply(this,u):r(o,Xu(t,u,e))}},D=function(t,n,r){return function(){if(0===arguments.length)return r();var e=Array.prototype.slice.call(arguments,0),u=e.pop();if(!g(u)){for(var i=0;i<t.length;){if("function"==typeof u[t[i]])return u[t[i]].apply(u,e);i+=1}if(A(u)){var o=n.apply(null,e);return o(u)}}return r.apply(this,arguments)}},M=F(function(t){return g(t)?!0:t?"object"!=typeof t?!1:j(t)?!1:1===t.nodeType?!!t.length:0===t.length?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1:!1}),L=function(t){return function n(r){for(var e,u,i,o=[],c=0,a=r.length;a>c;){if(M(r[c]))for(e=t?n(r[c]):r[c],i=0,u=e.length;u>i;)o[o.length]=e[i],i+=1;else o[o.length]=r[c];c+=1}return o}},z=function(){function t(t,n){this.xf=n,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=W.init,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)||(this.all=!1,t=k(this.xf["@@transducer/step"](t,!1))),t},B(function(n,r){return new t(n,r)})}(),K=function(){function t(t,n){this.xf=n,this.f=t,this.any=!1}return t.prototype["@@transducer/init"]=W.init,t.prototype["@@transducer/result"]=function(t){return this.any||(t=this.xf["@@transducer/step"](t,!1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.any=!0,t=k(this.xf["@@transducer/step"](t,!0))),t},B(function(n,r){return new t(n,r)})}(),V=function(){function t(t,n){this.xf=n,this.pos=0,this.full=!1,this.acc=new Array(t)}return t.prototype["@@transducer/init"]=W.init,t.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.store(n),this.full?this.xf["@@transducer/step"](t,this.getCopy()):t},t.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},t.prototype.getCopy=function(){return o(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},B(function(n,r){return new t(n,r)})}(),$=function(){function t(t,n){this.xf=n,this.n=t}return t.prototype["@@transducer/init"]=W.init,t.prototype["@@transducer/result"]=W.result,t.prototype["@@transducer/step"]=function(t,n){return this.n>0?(this.n-=1,t):this.xf["@@transducer/step"](t,n)},B(function(n,r){return new t(n,r)})}(),H=function(){function t(t,n){this.xf=n,this.pos=0,this.full=!1,this.acc=new Array(t)}return t.prototype["@@transducer/init"]=W.init,t.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.full&&(t=this.xf["@@transducer/step"](t,this.acc[this.pos])),this.store(n),t},t.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},B(function(n,r){return new t(n,r)})}(),J=function(){function t(t,n){this.xf=n,this.pred=t,this.lastValue=void 0,this.seenFirstValue=!1}return t.prototype["@@transducer/init"]=W.init,t.prototype["@@transducer/result"]=W.result,t.prototype["@@transducer/step"]=function(t,n){var r=!1;return this.seenFirstValue?this.pred(this.lastValue,n)&&(r=!0):this.seenFirstValue=!0,this.lastValue=n,r?t:this.xf["@@transducer/step"](t,n)},B(function(n,r){return new t(n,r)})}(),X=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=W.init,t.prototype["@@transducer/result"]=W.result,t.prototype["@@transducer/step"]=function(t,n){if(this.f){if(this.f(n))return t;this.f=null}return this.xf["@@transducer/step"](t,n)},B(function(n,r){return new t(n,r)})}(),Y=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=W.init,t.prototype["@@transducer/result"]=W.result,t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},B(function(n,r){return new t(n,r)})}(),Z=function(){function t(t,n){this.xf=n,this.f=t,this.found=!1}return t.prototype["@@transducer/init"]=W.init,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.found=!0,t=k(this.xf["@@transducer/step"](t,n))),t},B(function(n,r){return new t(n,r)})}(),G=function(){function t(t,n){this.xf=n,this.f=t,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=W.init,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,-1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.idx+=1,this.f(n)&&(this.found=!0,t=k(this.xf["@@transducer/step"](t,this.idx))),t},B(function(n,r){return new t(n,r)})}(),Q=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=W.init,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.last))},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.last=n),t},B(function(n,r){return new t(n,r)})}(),tt=function(){function t(t,n){this.xf=n,this.f=t,this.idx=-1,this.lastIdx=-1}return t.prototype["@@transducer/init"]=W.init,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.lastIdx))},t.prototype["@@transducer/step"]=function(t,n){return this.idx+=1,this.f(n)&&(this.lastIdx=this.idx),t},B(function(n,r){return new t(n,r)})}(),nt=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=W.init,t.prototype["@@transducer/result"]=W.result,t.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},B(function(n,r){return new t(n,r)})}(),rt=function(){function t(t,n,r,e){this.valueFn=t,this.valueAcc=n,this.keyFn=r,this.xf=e,this.inputs={}}return t.prototype["@@transducer/init"]=W.init,t.prototype["@@transducer/result"]=function(t){var n;for(n in this.inputs)if(p(n,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[n]),t["@@transducer/reduced"])){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){var r=this.keyFn(n);return this.inputs[r]=this.inputs[r]||[r,this.valueAcc],this.inputs[r][1]=this.valueFn(this.inputs[r][1],n),t},U(4,[],function(n,r,e,u){return new t(n,r,e,u)})}(),et=function(){function t(t,n){this.xf=n,this.n=t,this.i=0}return t.prototype["@@transducer/init"]=W.init,t.prototype["@@transducer/result"]=W.result,t.prototype["@@transducer/step"]=function(t,n){this.i+=1;var r=0===this.n?t:this.xf["@@transducer/step"](t,n);return this.n>=0&&this.i>=this.n?k(r):r},B(function(n,r){return new t(n,r)})}(),ut=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=W.init,t.prototype["@@transducer/result"]=W.result,t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):k(t)},B(function(n,r){return new t(n,r)})}(),it=B(function(t,n){return Number(t)+Number(n)}),ot=R(function(t,n,r){if(n>=r.length||n<-r.length)return r;var e=0>n?r.length:0,u=e+n,i=o(r);return i[u]=t(r[u]),i}),ct=B(D(["all"],z,function(t,n){for(var r=0;r<n.length;){if(!t(n[r]))return!1;r+=1}return!0})),at=F(function(t){return function(){return t}}),st=B(function(t,n){return t&&n}),ft=B(D(["any"],K,function(t,n){for(var r=0;r<n.length;){if(t(n[r]))return!0;r+=1}return!1})),lt=B(D([],V,n)),pt=B(function(t,n){return o(n,[t])}),ht=B(function(t,n){return t.apply(this,n)}),yt=R(function(t,n,r){var e=t(n),u=t(r);return u>e?-1:e>u?1:0}),gt=R(function(t,n,r){var e={};for(var u in r)e[u]=r[u];return e[t]=n,e}),dt=B(function(t,n){return r(t.length,function(){return t.apply(n,arguments)})}),mt=R(function(t,n,r){if(t>n)throw new Error("min must not be greater than max in clamp(min, max, value)");return t>r?t:r>n?n:r}),vt=F(function(t){return function(n,r){return t(n,r)?-1:t(r,n)?1:0}}),wt=B(function(t,n){return 1===t?F(n):r(t,U(t,[],n))}),bt=it(-1),xt=B(function(t,n){return null==n||n!==n?t:n}),jt=R(function(t,n,r){var e=t(n),u=t(r);return e>u?-1:u>e?1:0}),At=R(function(t,n,r){for(var e=[],u=0,i=n.length;i>u;)c(t,n[u],r)||c(t,n[u],e)||e.push(n[u]),u+=1;return e}),Ot=B(function(t,n){var r={};for(var e in n)r[e]=n[e];return delete r[t],r}),St=B(function(t,n){return t/n}),Et=B(D(["dropWhile"],X,function(t,n){for(var r=0,e=n.length;e>r&&t(n[r]);)r+=1;return Array.prototype.slice.call(n,r)})),_t=F(function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():g(t)?[]:j(t)?"":w(t)?{}:y(t)?function(){return arguments}():void 0}),qt=B(function Yu(t,n){var r,e,u,i={};for(e in n)r=t[e],u=typeof r,i[e]="function"===u?r(n[e]):r&&"object"===u?Yu(r,n[e]):n[e];return i}),Nt=B(D(["find"],Z,function(t,n){for(var r=0,e=n.length;e>r;){if(t(n[r]))return n[r];r+=1}})),kt=B(D([],G,function(t,n){for(var r=0,e=n.length;e>r;){if(t(n[r]))return r;r+=1}return-1})),It=B(D([],Q,function(t,n){for(var r=n.length-1;r>=0;){if(t(n[r]))return n[r];r-=1}})),Wt=B(D([],tt,function(t,n){for(var r=n.length-1;r>=0;){if(t(n[r]))return r;r-=1}return-1})),Ct=F(L(!0)),Pt=B(T("forEach",function(t,n){for(var r=n.length,e=0;r>e;)t(n[e]),e+=1;return n})),Tt=F(function(t){for(var n={},r=0;r<t.length;)n[t[r][0]]=t[r][1],r+=1;return n}),Ft=B(function(t,n){for(var r=[],e=0,u=n.length;u>e;){for(var i=e+1;u>i&&t(n[i-1],n[i]);)i+=1;r.push(n.slice(e,i)),e=i}return r}),Bt=B(function(t,n){return t>n}),Rt=B(function(t,n){return t>=n}),Ut=B(p),Dt=B(function(t,n){return t in n}),Mt=B(function(t,n){return t===n?0!==t||1/t===1/n:t!==t&&n!==n}),Lt=F(h),zt=R(function(t,n,r){return wt(Math.max(t.length,n.length,r.length),function(){return t.apply(this,arguments)?n.apply(this,arguments):r.apply(this,arguments)})}),Kt=it(1),Vt=R(function(t,n,r){return s(function(n){return c(t,n,r)},n)}),$t=R(function(t,n,r){t=t<r.length&&t>=0?t:r.length;var e=Array.prototype.slice.call(r,0);return e.splice(t,0,n),e}),Ht=R(function(t,n,r){return t=t<r.length&&t>=0?t:r.length,[].concat(Array.prototype.slice.call(r,0,t),n,Array.prototype.slice.call(r,t))}),Jt=B(T("intersperse",function(t,n){for(var r=[],e=0,u=n.length;u>e;)e===u-1?r.push(n[e]):r.push(n[e],t),e+=1;return r})),Xt=B(function(t,n){return null!=n&&n.constructor===t||n instanceof t}),Yt=F(function(t){return null==t}),Zt=function(){var t=!{toString:null}.propertyIsEnumerable("toString"),n=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],r=function(){return arguments.propertyIsEnumerable("length")}(),e=function(t,n){for(var r=0;r<t.length;){if(t[r]===n)return!0;r+=1}return!1};return F("function"!=typeof Object.keys||r?function(u){if(Object(u)!==u)return[];var i,o,c=[],a=r&&y(u);for(i in u)!p(i,u)||a&&"length"===i||(c[c.length]=i);if(t)for(o=n.length-1;o>=0;)i=n[o],p(i,u)&&!e(c,i)&&(c[c.length]=i),o-=1;return c}:function(t){return Object(t)!==t?[]:Object.keys(t)})}(),Gt=F(function(t){var n,r=[];for(n in t)r[r.length]=n;return r}),Qt=F(function(t){return null!=t&&v(t.length)?t.length:NaN}),tn=B(function(t,n){return n>t}),nn=B(function(t,n){return n>=t}),rn=R(function(t,n,r){for(var e=0,u=r.length,i=[],o=[n];u>e;)o=t(o[0],r[e]),i[e]=o[1],e+=1;return[o[0],i]}),en=R(function(t,n,r){for(var e=r.length-1,u=[],i=[n];e>=0;)i=t(r[e],i[0]),u[e]=i[1],e-=1;return[u,i[0]]}),un=B(function(t,n){return n.match(t)||[]}),on=B(function(t,n){return m(t)?!m(n)||1>n?NaN:(t%n+n)%n:NaN}),cn=B(function(t,n){return n>t?n:t}),an=R(function(t,n,r){return t(r)>t(n)?r:n}),sn=B(function(t,n){var e={};return r(n.length,function(){var r=t.apply(this,arguments);return p(r,e)||(e[r]=n.apply(this,arguments)),e[r]})}),fn=B(function(t,n){return P({},t,n)}),ln=F(function(t){return P.apply(null,[{}].concat(t))}),pn=R(function(t,n,r){var e,u={};for(e in n)p(e,n)&&(u[e]=p(e,r)?t(e,n[e],r[e]):n[e]);for(e in r)p(e,r)&&!p(e,u)&&(u[e]=r[e]);return u}),hn=B(function(t,n){return t>n?n:t}),yn=R(function(t,n,r){return t(r)<t(n)?r:n}),gn=B(function(t,n){return t%n}),dn=B(function(t,n){return t*n}),mn=B(function(t,n){switch(t){case 0:return function(){return n.call(this)};case 1:return function(t){return n.call(this,t)};case 2:return function(t,r){return n.call(this,t,r)};case 3:return function(t,r,e){return n.call(this,t,r,e)};case 4:return function(t,r,e,u){return n.call(this,t,r,e,u)};case 5:return function(t,r,e,u,i){return n.call(this,t,r,e,u,i)};case 6:return function(t,r,e,u,i,o){return n.call(this,t,r,e,u,i,o)};case 7:return function(t,r,e,u,i,o,c){return n.call(this,t,r,e,u,i,o,c)};case 8:return function(t,r,e,u,i,o,c,a){return n.call(this,t,r,e,u,i,o,c,a)};case 9:return function(t,r,e,u,i,o,c,a,s){return n.call(this,t,r,e,u,i,o,c,a,s)};case 10:return function(t,r,e,u,i,o,c,a,s,f){return n.call(this,t,r,e,u,i,o,c,a,s,f)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),vn=F(function(t){return-t}),wn=B(i(D(["any"],K,ft))),bn=F(function(t){return!t}),xn=B(function(t,n){var r=0>t?n.length+t:t;return j(n)?n.charAt(r):n[r]}),jn=F(function(t){var n=0>t?1:t+1;return wt(n,function(){return xn(t,arguments)})}),An=R(function(t,n,r){return t(n(r))}),On=B(function(t,n){var r={};return r[t]=n,r}),Sn=F(E),En=F(function(t){var n,e=!1;return r(t.length,function(){return e?n:(e=!0,n=t.apply(this,arguments))})}),_n=B(function(t,n){return t||n}),qn=function(){var t=function(n){return{value:n,map:function(r){return t(r(n))}}};return R(function(n,r,e){return n(function(n){return t(r(n))})(e).value})}(),Nn=B(function(t,n){return[t,n]}),kn=B(function(t,n){for(var r=n,e=0;e<t.length;){if(null==r)return;r=r[t[e]],e+=1}return r}),In=R(function(t,n,r){return xt(t,kn(n,r))}),Wn=R(function(t,n,r){return n.length>0&&t(kn(n,r))}),Cn=B(function(t,n){for(var r={},e=0;e<t.length;)t[e]in n&&(r[t[e]]=n[t[e]]),e+=1;return r}),Pn=B(function(t,n){for(var r={},e=0,u=t.length;u>e;){var i=t[e];r[i]=n[i],e+=1}return r}),Tn=B(function(t,n){var r={};for(var e in n)t(n[e],e,n)&&(r[e]=n[e]);return r}),Fn=B(function(t,n){return o([t],n)}),Bn=B(function(t,n){return n[t]}),Rn=R(function(t,n,r){return Xt(t,r[n])}),Un=R(function(t,n,r){return null!=r&&p(n,r)?r[n]:t}),Dn=R(function(t,n,r){return t(r[n])}),Mn=B(function(t,n){for(var r=t.length,e=[],u=0;r>u;)e[u]=n[t[u]],u+=1;return e}),Ln=B(function(t,n){if(!v(t)||!v(n))throw new TypeError("Both arguments to range must be numbers");for(var r=[],e=t;n>e;)r.push(e),e+=1;return r}),zn=R(function(t,n,r){for(var e=r.length-1;e>=0;)n=t(r[e],n),e-=1;return n}),Kn=F(k),Vn=R(function(t,n,r){var e=Array.prototype.slice.call(r,0);return e.splice(t,n),e}),$n=R(function(t,n,r){return r.replace(t,n)}),Hn=F(function(t){return j(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()}),Jn=R(function(t,n,r){for(var e=0,u=r.length,i=[n];u>e;)n=t(n,r[e]),i[e+1]=n,e+=1;return i}),Xn=R(function(t,n,r){return qn(t,at(n),r)}),Yn=R(T("slice",function(t,n,r){return Array.prototype.slice.call(r,t,n)})),Zn=B(function(t,n){return Array.prototype.slice.call(n,0).sort(t)}),Gn=B(function(t,n){return Array.prototype.slice.call(n,0).sort(function(n,r){var e=t(n),u=t(r);return u>e?-1:e>u?1:0})}),Qn=B(function(t,n){return Array.prototype.slice.call(n,0).sort(function(n,r){for(var e=0,u=0;0===e&&u<t.length;)e=t[u](n,r),u+=1;return e})}),tr=B(function(t,n){return[Yn(0,t,n),Yn(t,Qt(n),n)]}),nr=B(function(t,n){if(0>=t)throw new Error("First argument to splitEvery must be a positive integer");for(var r=[],e=0;e<n.length;)r.push(Yn(e,e+=t,n));return r}),rr=B(function(t,n){for(var r=0,e=n.length,u=[];e>r&&!t(n[r]);)u.push(n[r]),r+=1;return[u,Array.prototype.slice.call(n,r)]}),er=B(function(t,n){return Number(t)-Number(n)}),ur=F(T("tail",Yn(1,1/0))),ir=B(D(["take"],et,function(t,n){return Yn(0,0>t?1/0:t,n)})),or=B(function(t,n){for(var r=n.length-1;r>=0&&t(n[r]);)r-=1;return Array.prototype.slice.call(n,r+1)}),cr=B(D(["takeWhile"],ut,function(t,n){for(var r=0,e=n.length;e>r&&t(n[r]);)r+=1;return Array.prototype.slice.call(n,0,r)})),ar=B(function(t,n){return t(n),n}),sr=B(function(t,n){var r,e=Number(n),u=0;if(0>e||isNaN(e))throw new RangeError("n must be a non-negative number");for(r=new Array(e);e>u;)r[u]=t(u),u+=1;return r}),fr=F(function(t){var n=[];for(var r in t)p(r,t)&&(n[n.length]=[r,t[r]]);return n}),lr=F(function(t){var n=[];for(var r in t)n[n.length]=[r,t[r]];return n}),pr=F(function(t){for(var n=0,r=[];n<t.length;){for(var e=t[n],u=0;u<e.length;)"undefined"==typeof r[u]&&(r[u]=[]),r[u].push(e[u]),u+=1;n+=1}return r}),hr=function(){var t=" \n \f\r   ᠎              \u2028\u2029\ufeff",n="​",r="function"==typeof String.prototype.trim;return F(r&&!t.trim()&&n.trim()?function(t){return t.trim()}:function(n){var r=new RegExp("^["+t+"]["+t+"]*"),e=new RegExp("["+t+"]["+t+"]*$");return n.replace(r,"").replace(e,"")})}(),yr=B(function(t,n){return r(t.length,function(){try{return t.apply(this,arguments)}catch(r){return n.apply(this,o([r],arguments))}})}),gr=F(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}),dr=F(function(t){return function(){return t(Array.prototype.slice.call(arguments,0))}}),mr=F(function(t){return mn(1,t)}),vr=B(function(t,n){return wt(t,function(){for(var r,e=1,u=n,i=0;t>=e&&"function"==typeof u;)r=e===t?arguments.length:i+u.length,u=u.apply(this,Array.prototype.slice.call(arguments,i,r)),e+=1,i=r;return u})}),wr=B(function(t,n){for(var r=t(n),e=[];r&&r.length;)e[e.length]=r[0],r=t(r[1]);return e}),br=B(function(t,n){for(var r,e=0,u=n.length,i=[];u>e;)r=n[e],c(t,r,i)||(i[i.length]=r),e+=1;return i}),xr=R(function(t,n,r){return t(r)?r:n(r)}),jr=R(function(t,n,r){for(var e=r;!t(e);)e=n(e);return e}),Ar=R(function(t,n,r){return ot(at(n),t,r)}),Or=B(function(t,n){return wt(n.length,function(){for(var r=[],e=0;e<n.length;)r.push(n[e].call(this,arguments[e])),e+=1;return t.apply(this,r.concat(Array.prototype.slice.call(arguments,n.length)))})}),Sr=F(function(t){for(var n=Zt(t),r=n.length,e=[],u=0;r>u;)e[u]=t[n[u]],u+=1;return e}),Er=F(function(t){var n,r=[];for(n in t)r[r.length]=t[n];return r}),_r=function(){var t=function(t){return{value:t,"fantasy-land/map":function(){return this}}};return B(function(n,r){return n(t)(r).value})}(),qr=R(function(t,n,r){return t(r)?n(r):r}),Nr=B(function(t,n){for(var r in t)if(p(r,t)&&!t[r](n[r]))return!1;return!0}),kr=B(function(t,n){for(var r,e=0,u=t.length,i=n.length,o=[];u>e;){for(r=0;i>r;)o[o.length]=[t[e],n[r]],r+=1;e+=1}return o}),Ir=B(function(t,n){for(var r=[],e=0,u=Math.min(t.length,n.length);u>e;)r[e]=[t[e],n[e]],e+=1;return r}),Wr=B(function(t,n){for(var r=0,e=Math.min(t.length,n.length),u={};e>r;)u[t[r]]=n[r],r+=1;return u}),Cr=R(function(t,n,r){for(var e=[],u=0,i=Math.min(n.length,r.length);i>u;)e[u]=t(n[u],r[u]),u+=1;return e}),Pr=at(!1),Tr=at(!0),Fr=function Zu(t,n,r,e){var i=function(u){for(var i=n.length,o=0;i>o;){if(t===n[o])return r[o];o+=1}n[o+1]=t,r[o+1]=u;for(var c in t)u[c]=e?Zu(t[c],n,r,!0):t[c];return u};switch(gr(t)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(t.valueOf());case"RegExp":return u(t);default:return t}},Br=function(t){return B(function(n,e){return r(Math.max(0,n.length-e.length),function(){return n.apply(this,t(e,arguments))})})},Rr=function(t,n){return ir(t<n.length?n.length-t:0,n)},Ur=function Gu(t,n,r,u){if(Mt(t,n))return!0;if(gr(t)!==gr(n))return!1;if(null==t||null==n)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof n.equals)return"function"==typeof t.equals&&t.equals(n)&&"function"==typeof n.equals&&n.equals(t);switch(gr(t)){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===l(t.constructor))return t===n;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof n||!Mt(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!Mt(t.valueOf(),n.valueOf()))return!1;break;case"Error":return t.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1;break;case"Map":case"Set":if(!Gu(e(t.entries()),e(n.entries()),r,u))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":break;case"ArrayBuffer":break;default:return!1}var i=Zt(t);if(i.length!==Zt(n).length)return!1;for(var o=r.length-1;o>=0;){if(r[o]===t)return u[o]===n;o-=1}for(r.push(t),u.push(n),o=i.length-1;o>=0;){var c=i[o];if(!p(c,n)||!Gu(n[c],t[c],r,u))return!1;o-=1}return r.pop(),u.pop(),!0},Dr=function(){function t(t,n,r){for(var e=0,u=r.length;u>e;){if(n=t["@@transducer/step"](n,r[e]),n&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e+=1}return t["@@transducer/result"](n)}function n(t,n,r){for(var e=r.next();!e.done;){if(n=t["@@transducer/step"](n,e.value),n&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e=r.next()}return t["@@transducer/result"](n)}function r(t,n,r,e){return t["@@transducer/result"](r[e](dt(t["@@transducer/step"],t),n))}var e="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(u,i,o){if("function"==typeof u&&(u=C(u)),M(o))return t(u,i,o);if("function"==typeof o["fantasy-land/reduce"])return r(u,i,o,"fantasy-land/reduce");if(null!=o[e])return n(u,i,o[e]());if("function"==typeof o.next)return n(u,i,o);if("function"==typeof o.reduce)return r(u,i,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}(),Mr=function(){var t={"@@transducer/init":Array,"@@transducer/step":function(t,n){return t.push(n),t},"@@transducer/result":h},n={"@@transducer/init":String,"@@transducer/step":function(t,n){return t+n},"@@transducer/result":h},r={"@@transducer/init":Object,"@@transducer/step":function(t,n){return P(t,M(n)?On(n[0],n[1]):n)},"@@transducer/result":h};return function(e){if(A(e))return e;if(M(e))return t;if("string"==typeof e)return n;if("object"==typeof e)return r;throw new Error("Cannot create transformer for "+e)}}(),Lr=function(){function t(t,n){this.f=t,this.retained=[],this.xf=n}return t.prototype["@@transducer/init"]=W.init,t.prototype["@@transducer/result"]=function(t){return this.retained=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.retain(t,n):this.flush(t,n)},t.prototype.flush=function(t,n){return t=Dr(this.xf["@@transducer/step"],t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,n)},t.prototype.retain=function(t,n){return this.retained.push(n),t},B(function(n,r){return new t(n,r)})}(),zr=F(function(t){return wt(t.length,function(){var n=0,r=arguments[0],e=arguments[arguments.length-1],u=Array.prototype.slice.call(arguments,0);return u[0]=function(){var t=r.apply(this,o(arguments,[n,e]));return n+=1,t},t.apply(this,u)})}),Kr=R(function Qu(t,n,r){if(0===t.length)return n;var e=t[0];if(t.length>1){var u=!Yt(r)&&p(e,r)?r[e]:m(t[1])?[]:{};n=Qu(Array.prototype.slice.call(t,1),n,u)}if(m(e)&&g(r)){var i=[].concat(r);return i[e]=n,i}return gt(e,n,r)}),Vr=F(function(t){return mn(2,t)}),$r=F(function(t){return null!=t&&"function"==typeof t.clone?t.clone():Fr(t,[],[],!0)}),Hr=F(function(t){return wt(t.length,t)}),Jr=B(function ti(t,n){switch(t.length){case 0:return n;case 1:return m(t[0])?Vn(t[0],1,n):Ot(t[0],n);default:var r=t[0],e=Array.prototype.slice.call(t,1);return null==n[r]?n:m(t[0])?Ar(r,ti(e,n[r]),n):gt(r,ti(e,n[r]),n)}}),Xr=B(D(["drop"],$,function(t,n){return Yn(Math.max(0,t),1/0,n)})),Yr=B(D([],H,Rr)),Zr=B(D([],Lr,a)),Gr=B(function(t,n){return Ur(t,n,[],[])}),Qr=B(D(["filter"],Y,function(t,n){return w(n)?Dr(function(r,e){return t(n[e])&&(r[e]=n[e]),r},{},Zt(n)):s(t,n)})),te=F(function(t){return Hr(function(n,r){var e=Array.prototype.slice.call(arguments,0);return e[0]=r,e[1]=n,t.apply(this,e)})}),ne=B(function(t,n){for(var r=Zt(n),e=0;e<r.length;){var u=r[e];t(n[u],u,n),e+=1}return n}),re=xn(0),ee=Yn(0,-1),ue=R(function(t,n,r){var e,u;n.length>r.length?(e=n,u=r):(e=r,u=n);for(var i=[],o=0;o<u.length;)c(t,u[o],e)&&(i[i.length]=u[o]),o+=1;return br(t,i)}),ie=R(function(t,n,r){return A(t)?Dr(n(t),t["@@transducer/init"](),r):Dr(n(Mr(t)),Fr(t,[],[],!1),r)}),oe=F(function(t){for(var n=Zt(t),r=n.length,e=0,u={};r>e;){var i=n[e],o=t[i],c=p(o,u)?u[o]:u[o]=[];c[c.length]=i,e+=1}return u}),ce=F(function(t){for(var n=Zt(t),r=n.length,e=0,u={};r>e;){var i=n[e];u[t[i]]=i,e+=1}return u}),ae=F(function(t){return null!=t&&Gr(t,_t(t))}),se=xn(-1),fe=B(function(t,n){if("function"!=typeof n.lastIndexOf||g(n)){for(var r=n.length-1;r>=0;){if(Gr(n[r],t))return r;r-=1}return-1}return n.lastIndexOf(t)}),le=B(D(["fantasy-land/map","map"],nt,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return wt(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return Dr(function(r,e){return r[e]=t(n[e]),r},{},Zt(n));default:return O(t,n)}})),pe=B(function(t,n){return Dr(function(r,e){return r[e]=t(n[e],e,n),r},{},Zt(n))}),he=R(function ni(t,n,r){return pn(function(n,r,e){return w(r)&&w(e)?ni(t,r,e):t(n,r,e)},n,r)}),ye=R(function(t,n,r){return pn(function(n,r,e){return t(r,e)},n,r)}),ge=Br(o),de=Br(te(o)),me=R(function(t,n,r){return Gr(kn(t,r),n)}),ve=B(function(t,n){return le(Bn(t),n)}),we=Or(O,[Pn,Lt]),be=R(function(t,n,r){return Gr(n,r[t])}),xe=R(Dr),je=U(4,[],D([],rt,function(t,n,r,e){return Dr(function(e,u){var i=r(u);return e[i]=t(p(i,e)?e[i]:n,u),e},{},e)})),Ae=U(4,[],function(t,n,r,e){
return Dr(function(r,e){return t(r,e)?n(r,e):k(r)},r,e)}),Oe=B(function(t,n){return Qr(i(t),n)}),Se=B(function(t,n){return sr(at(t),n)}),Ee=B(function(t,n){return Gr(ir(t.length,n),t)}),_e=xe(it,0),qe=B(function(t,n){return Xr(t>=0?n.length-t:0,n)}),Ne=wt(4,function(t,n,r,e){return Dr(t("function"==typeof n?C(n):n),r,e)}),ke=R(function(t,n,r){return br(t,o(n,r))}),Ie=B(function(t,n){return Nr(le(Gr,t),n)}),We=function(){var t=function(t){return{"@@transducer/init":W.init,"@@transducer/result":function(n){return t["@@transducer/result"](n)},"@@transducer/step":function(n,r){var e=t["@@transducer/step"](n,r);return e["@@transducer/reduced"]?f(e):e}}};return function(n){var r=t(n);return{"@@transducer/init":W.init,"@@transducer/result":function(t){return r["@@transducer/result"](t)},"@@transducer/step":function(t,n){return M(n)?Dr(r,t,n):Dr(r,t,[n])}}}}(),Ce=function(t,n,r){var e,u;if("function"==typeof t.indexOf)switch(typeof n){case"number":if(0===n){for(e=1/n;r<t.length;){if(u=t[r],0===u&&1/u===e)return r;r+=1}return-1}if(n!==n){for(;r<t.length;){if(u=t[r],"number"==typeof u&&u!==u)return r;r+=1}return-1}return t.indexOf(n,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(n,r);case"object":if(null===n)return t.indexOf(n,r)}for(;r<t.length;){if(Gr(t[r],n))return r;r+=1}return-1},Pe=B(function(t,n){return le(t,We(n))}),Te=F(function(t){return wt(xe(cn,0,ve("length",t)),function(){for(var n=0,r=t.length;r>n;){if(!t[n].apply(this,arguments))return!1;n+=1}return!0})}),Fe=F(function(t){return wt(xe(cn,0,ve("length",t)),function(){for(var n=0,r=t.length;r>n;){if(t[n].apply(this,arguments))return!0;n+=1}return!1})}),Be=B(function(t,n){return"function"==typeof n["fantasy-land/ap"]?n["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(n):"function"==typeof t?function(r){return t(r)(n(r))}:Dr(function(t,r){return o(t,le(r,n))},[],t)}),Re=F(function ri(t){return t=le(function(t){return"function"==typeof t?t:ri(t)},t),wt(xe(cn,0,ve("length",Sr(t))),function(){var n=arguments;return le(function(t){return ht(t,n)},t)})}),Ue=Hr(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))}),De=B(D(["fantasy-land/chain","chain"],Pe,function(t,n){return"function"==typeof n?function(r){return t(n(r))(r)}:L(!1)(le(t,n))})),Me=F(function(t){var n=xe(cn,0,le(function(t){return t[0].length},t));return r(n,function(){for(var n=0;n<t.length;){if(t[n][0].apply(this,arguments))return t[n][1].apply(this,arguments);n+=1}})}),Le=B(function(t,n){if(t>10)throw new Error("Constructor with greater than ten arguments");return 0===t?function(){return new n}:Hr(mn(t,function(t,r,e,u,i,o,c,a,s,f){switch(arguments.length){case 1:return new n(t);case 2:return new n(t,r);case 3:return new n(t,r,e);case 4:return new n(t,r,e,u);case 5:return new n(t,r,e,u,i);case 6:return new n(t,r,e,u,i,o);case 7:return new n(t,r,e,u,i,o,c);case 8:return new n(t,r,e,u,i,o,c,a);case 9:return new n(t,r,e,u,i,o,c,a,s);case 10:return new n(t,r,e,u,i,o,c,a,s,f)}}))}),ze=B(function(t,n){return wt(xe(cn,0,ve("length",n)),function(){var r=arguments,e=this;return t.apply(e,O(function(t){return t.apply(e,r)},n))})}),Ke=je(function(t,n){return t+1},0),Ve=B(D([],J,function(t,n){var r=[],e=1,u=n.length;if(0!==u)for(r[0]=n[0];u>e;)t(se(r),n[e])||(r[r.length]=n[e]),e+=1;return r})),$e=B(function(t,n){return Gr(qe(t.length,n),t)}),He=R(function(t,n,r){return Gr(t(n),t(r))}),Je=R(function(t,n,r){return Gr(n[t],r[t])}),Xe=B(T("groupBy",je(function(t,n){return null==t&&(t=[]),t.push(n),t},null))),Ye=je(function(t,n){return n},null),Ze=B(function(t,n){return"function"!=typeof n.indexOf||g(n)?Ce(n,t,0):n.indexOf(t)}),Ge=F(function(t){return ze(function(){return Array.prototype.slice.call(arguments,0)},t)}),Qe=B(function(t,n){return function(r){return function(e){return le(function(t){return n(t,e)},r(t(e)))}}}),tu=F(function(t){return Qe(xn(t),Ar(t))}),nu=F(function(t){return Qe(kn(t),Kr(t))}),ru=F(function(t){return Qe(Bn(t),gt(t))}),eu=B(function(t,n){var r=wt(t,n);return wt(t,function(){return Dr(Be,le(r,arguments[0]),Array.prototype.slice.call(arguments,1))})}),uu=F(function(t){return _e(t)/t.length}),iu=F(function(t){var n=t.length;if(0===n)return NaN;var r=2-n%2,e=(n-r)/2;return uu(Array.prototype.slice.call(t,0).sort(function(t,n){return n>t?-1:t>n?1:0}).slice(e,e+r))}),ou=B(function(t,n){return he(function(t,n,r){return n},t,n)}),cu=B(function(t,n){return he(function(t,n,r){return r},t,n)}),au=R(function(t,n,r){return he(function(n,r,e){return t(r,e)},n,r)}),su=Ge([Qr,Oe]),fu=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return r(arguments[0].length,xe(_,arguments[0],ur(arguments)))},lu=function(){if(0===arguments.length)throw new Error("pipeP requires at least one argument");return r(arguments[0].length,xe(q,arguments[0],ur(arguments)))},pu=xe(dn,1),hu=B(function(t,n){return"function"==typeof n.sequence?n.sequence(t):zn(function(t,n){return Be(le(Fn,t),n)},t([]),n)}),yu=R(function(t,n,r){return"function"==typeof r["fantasy-land/traverse"]?r["fantasy-land/traverse"](n,t):hu(t,le(n,r))}),gu=De(h),du=function(t,n){return Ce(n,t,0)>=0},mu=function ei(t,n){var r=function(r){var e=n.concat([t]);return du(r,e)?"<Circular>":ei(r,e)},e=function(t,n){return O(function(n){return N(n)+": "+r(t[n])},n.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+O(r,t).join(", ")+"))";case"[object Array]":return"["+O(r,t).concat(e(t,Oe(function(t){return/^\d+$/.test(t)},Zt(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):N(I(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+r(t.valueOf())+")":1/t===-(1/0)?"-0":t.toString(10);case"[object String]":return"object"==typeof t?"new String("+r(t.valueOf())+")":N(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var u=t.toString();if("[object Object]"!==u)return u}return"{"+e(t,Zt(t)).join(", ")+"}"}},vu=function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return fu.apply(this,Hn(arguments))},wu=function(){if(0===arguments.length)throw new Error("composeK requires at least one argument");var t=Array.prototype.slice.call(arguments),n=t.pop();return vu(vu.apply(this,le(De,t)),n)},bu=function(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return lu.apply(this,Hn(arguments))},xu=F(function(t){return Le(t.length,t)}),ju=B(du),Au=B(function(t,n){for(var r=[],e=0,u=t.length;u>e;)du(t[e],n)||du(t[e],r)||(r[r.length]=t[e]),e+=1;return r}),Ou=F(D([],J(Gr),Ve(Gr))),Su=F(function(t){return eu(t.length,t)}),Eu=B(function(t,n){var r={};for(var e in n)du(e,t)||(r[e]=n[e]);return r}),_u=function(){if(0===arguments.length)throw new Error("pipeK requires at least one argument");return wu.apply(this,Hn(arguments))},qu=F(function(t){return mu(t,[])}),Nu=B(function(t,n){return Oe(te(du)(t),n)}),ku=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}function n(t,n,r){var e,u,i=typeof t;switch(i){case"string":case"number":return 0===t&&1/t===-(1/0)?r._items["-0"]?!0:(n&&(r._items["-0"]=!0),!1):null!==r._nativeSet?n?(e=r._nativeSet.size,r._nativeSet.add(t),u=r._nativeSet.size,u===e):r._nativeSet.has(t):i in r._items?t in r._items[i]?!0:(n&&(r._items[i][t]=!0),!1):(n&&(r._items[i]={},r._items[i][t]=!0),!1);case"boolean":if(i in r._items){var o=t?1:0;return r._items[i][o]?!0:(n&&(r._items[i][o]=!0),!1)}return n&&(r._items[i]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?n?(e=r._nativeSet.size,r._nativeSet.add(t),u=r._nativeSet.size,u===e):r._nativeSet.has(t):i in r._items?du(t,r._items[i])?!0:(n&&r._items[i].push(t),!1):(n&&(r._items[i]=[t]),!1);case"undefined":return r._items[i]?!0:(n&&(r._items[i]=!0),!1);case"object":if(null===t)return r._items["null"]?!0:(n&&(r._items["null"]=!0),!1);default:return i=Object.prototype.toString.call(t),i in r._items?du(t,r._items[i])?!0:(n&&r._items[i].push(t),!1):(n&&(r._items[i]=[t]),!1)}}return t.prototype.add=function(t){return!n(t,!0,this)},t.prototype.has=function(t){return n(t,!1,this)},t}(),Iu=B(function(t,n){return d(t)?function(){return t.apply(this,arguments)&&n.apply(this,arguments)}:Su(st)(t,n)}),Wu=Su(bn),Cu=B(function(t,n){if(g(t)){if(g(n))return t.concat(n);throw new TypeError(qu(n)+" is not an array")}if(j(t)){if(j(n))return t+n;throw new TypeError(qu(n)+" is not a string")}if(null!=t&&d(t["fantasy-land/concat"]))return t["fantasy-land/concat"](n);if(null!=t&&d(t.concat))return t.concat(n);throw new TypeError(qu(t)+' does not have a method named "concat" or "fantasy-land/concat"')}),Pu=B(function(t,n){return d(t)?function(){return t.apply(this,arguments)||n.apply(this,arguments)}:Su(_n)(t,n)}),Tu=B(function(t,n){return wt(t+1,function(){var r=arguments[t];if(null!=r&&d(r[n]))return r[n].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(qu(r)+' does not have a method named "'+n+'"')})}),Fu=Tu(1,"join"),Bu=sn(qu),Ru=Tu(1,"split"),Uu=B(function(t,n){return Cu(Au(t,n),Au(n,t))}),Du=R(function(t,n,r){return Cu(At(t,n,r),At(t,r,n))}),Mu=B(function(t,n){if(!x(t))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+qu(t));return u(t).test(n)}),Lu=Tu(0,"toLowerCase"),zu=Tu(0,"toUpperCase"),Ku=B(function(t,n){for(var r,e,u=new ku,i=[],o=0;o<n.length;)e=n[o],r=t(e),u.add(r)&&i.push(e),o+=1;return i}),Vu=Ku(Lt),$u=B(function(t,n){var r,e;return t.length>n.length?(r=t,e=n):(r=n,e=t),Vu(s(te(du)(r),e))}),Hu=B(vu(Vu,o)),Ju={F:Pr,T:Tr,__:t,add:it,addIndex:zr,adjust:ot,all:ct,allPass:Te,always:at,and:st,any:ft,anyPass:Fe,ap:Be,aperture:lt,append:pt,apply:ht,applySpec:Re,ascend:yt,assoc:gt,assocPath:Kr,binary:Vr,bind:dt,both:Iu,call:Ue,chain:De,clamp:mt,clone:$r,comparator:vt,complement:Wu,compose:vu,composeK:wu,composeP:bu,concat:Cu,cond:Me,construct:xu,constructN:Le,contains:ju,converge:ze,countBy:Ke,curry:Hr,curryN:wt,dec:bt,defaultTo:xt,descend:jt,difference:Au,differenceWith:At,dissoc:Ot,dissocPath:Jr,divide:St,drop:Xr,dropLast:Yr,dropLastWhile:Zr,dropRepeats:Ou,dropRepeatsWith:Ve,dropWhile:Et,either:Pu,empty:_t,endsWith:$e,eqBy:He,eqProps:Je,equals:Gr,evolve:qt,filter:Qr,find:Nt,findIndex:kt,findLast:It,findLastIndex:Wt,flatten:Ct,flip:te,forEach:Pt,forEachObjIndexed:ne,fromPairs:Tt,groupBy:Xe,groupWith:Ft,gt:Bt,gte:Rt,has:Ut,hasIn:Dt,head:re,identical:Mt,identity:Lt,ifElse:zt,inc:Kt,indexBy:Ye,indexOf:Ze,init:ee,innerJoin:Vt,insert:$t,insertAll:Ht,intersection:$u,intersectionWith:ue,intersperse:Jt,into:ie,invert:oe,invertObj:ce,invoker:Tu,is:Xt,isEmpty:ae,isNil:Yt,join:Fu,juxt:Ge,keys:Zt,keysIn:Gt,last:se,lastIndexOf:fe,length:Qt,lens:Qe,lensIndex:tu,lensPath:nu,lensProp:ru,lift:Su,liftN:eu,lt:tn,lte:nn,map:le,mapAccum:rn,mapAccumRight:en,mapObjIndexed:pe,match:un,mathMod:on,max:cn,maxBy:an,mean:uu,median:iu,memoize:Bu,memoizeWith:sn,merge:fn,mergeAll:ln,mergeDeepLeft:ou,mergeDeepRight:cu,mergeDeepWith:au,mergeDeepWithKey:he,mergeWith:ye,mergeWithKey:pn,min:hn,minBy:yn,modulo:gn,multiply:dn,nAry:mn,negate:vn,none:wn,not:bn,nth:xn,nthArg:jn,o:An,objOf:On,of:Sn,omit:Eu,once:En,or:_n,over:qn,pair:Nn,partial:ge,partialRight:de,partition:su,path:kn,pathEq:me,pathOr:In,pathSatisfies:Wn,pick:Cn,pickAll:Pn,pickBy:Tn,pipe:fu,pipeK:_u,pipeP:lu,pluck:ve,prepend:Fn,product:pu,project:we,prop:Bn,propEq:be,propIs:Rn,propOr:Un,propSatisfies:Dn,props:Mn,range:Ln,reduce:xe,reduceBy:je,reduceRight:zn,reduceWhile:Ae,reduced:Kn,reject:Oe,remove:Vn,repeat:Se,replace:$n,reverse:Hn,scan:Jn,sequence:hu,set:Xn,slice:Yn,sort:Zn,sortBy:Gn,sortWith:Qn,split:Ru,splitAt:tr,splitEvery:nr,splitWhen:rr,startsWith:Ee,subtract:er,sum:_e,symmetricDifference:Uu,symmetricDifferenceWith:Du,tail:ur,take:ir,takeLast:qe,takeLastWhile:or,takeWhile:cr,tap:ar,test:Mu,times:sr,toLower:Lu,toPairs:fr,toPairsIn:lr,toString:qu,toUpper:zu,transduce:Ne,transpose:pr,traverse:yu,trim:hr,tryCatch:yr,type:gr,unapply:dr,unary:mr,uncurryN:vr,unfold:wr,union:Hu,unionWith:ke,uniq:Vu,uniqBy:Ku,uniqWith:br,unless:xr,unnest:gu,until:jr,update:Ar,useWith:Or,values:Sr,valuesIn:Er,view:_r,when:qr,where:Nr,whereEq:Ie,without:Nu,xprod:kr,zip:Ir,zipObj:Wr,zipWith:Cr};"object"==typeof exports?module.exports=Ju:"function"==typeof define&&define.amd?define(function(){return Ju}):this.R=Ju}).call(this);
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.R={})}(this,function(t){"use strict";function n(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function r(t){return function r(e){return 0===arguments.length||n(e)?r:t.apply(this,arguments)}}function e(t){return function e(u,i){switch(arguments.length){case 0:return e;case 1:return n(u)?e:r(function(n){return t(u,n)});default:return n(u)&&n(i)?e:n(u)?r(function(n){return t(n,i)}):n(i)?r(function(n){return t(u,n)}):t(u,i)}}}function u(t,n){t=t||[],n=n||[];var r,e=t.length,u=n.length,i=[];for(r=0;e>r;)i[i.length]=t[r],r+=1;for(r=0;u>r;)i[i.length]=n[r],r+=1;return i}function i(t,n){switch(t){case 0:return function(){return n.apply(this,arguments)};case 1:return function(t){return n.apply(this,arguments)};case 2:return function(t,r){return n.apply(this,arguments)};case 3:return function(t,r,e){return n.apply(this,arguments)};case 4:return function(t,r,e,u){return n.apply(this,arguments)};case 5:return function(t,r,e,u,i){return n.apply(this,arguments)};case 6:return function(t,r,e,u,i,o){return n.apply(this,arguments)};case 7:return function(t,r,e,u,i,o,c){return n.apply(this,arguments)};case 8:return function(t,r,e,u,i,o,c,a){return n.apply(this,arguments)};case 9:return function(t,r,e,u,i,o,c,a,f){return n.apply(this,arguments)};case 10:return function(t,r,e,u,i,o,c,a,f,s){return n.apply(this,arguments)};default:throw Error("First argument to _arity must be a non-negative integer no greater than ten")}}function o(t,r,e){return function(){for(var u=[],c=0,a=t,f=0;r.length>f||arguments.length>c;){var s;f>=r.length||n(r[f])&&arguments.length>c?(s=arguments[c],c+=1):s=r[f],u[f]=s,n(s)||(a-=1),f+=1}return a>0?i(a,o(t,u,e)):e.apply(this,u)}}function c(t){return function u(i,o,c){switch(arguments.length){case 0:return u;case 1:return n(i)?u:e(function(n,r){return t(i,n,r)});case 2:return n(i)&&n(o)?u:n(i)?e(function(n,r){return t(n,o,r)}):n(o)?e(function(n,r){return t(i,n,r)}):r(function(n){return t(i,o,n)});default:return n(i)&&n(o)&&n(c)?u:n(i)&&n(o)?e(function(n,r){return t(n,r,c)}):n(i)&&n(c)?e(function(n,r){return t(n,o,r)}):n(o)&&n(c)?e(function(n,r){return t(i,n,r)}):n(i)?r(function(n){return t(n,o,c)}):n(o)?r(function(n){return t(i,n,c)}):n(c)?r(function(n){return t(i,o,n)}):t(i,o,c)}}}function a(t){return"function"==typeof t["@@transducer/step"]}function f(t,n,r){return function(){if(0===arguments.length)return r();var e=Array.prototype.slice.call(arguments,0),u=e.pop();if(!jt(u)){for(var i=0;t.length>i;){if("function"==typeof u[t[i]])return u[t[i]].apply(u,e);i+=1}if(a(u))return n.apply(null,e)(u)}return r.apply(this,arguments)}}function s(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}function l(t,n){this.xf=n,this.f=t,this.all=!0}function p(t,n){for(var r=0,e=n.length,u=Array(e);e>r;)u[r]=t(n[r]),r+=1;return u}function h(t){return"[object String]"===Object.prototype.toString.call(t)}function y(t){this.f=t}function d(t){return new y(t)}function g(t,n,r){for(var e=0,u=r.length;u>e;){if((n=t["@@transducer/step"](n,r[e]))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e+=1}return t["@@transducer/result"](n)}function v(t,n,r){for(var e=r.next();!e.done;){if((n=t["@@transducer/step"](n,e.value))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e=r.next()}return t["@@transducer/result"](n)}function m(t,n,r,e){return t["@@transducer/result"](r[e](_t(t["@@transducer/step"],t),n))}function b(t,n,r){if("function"==typeof t&&(t=d(t)),Et(r))return g(t,n,r);if("function"==typeof r["fantasy-land/reduce"])return m(t,n,r,"fantasy-land/reduce");if(null!=r[qt])return v(t,n,r[qt]());if("function"==typeof r.next)return v(t,n,r);if("function"==typeof r.reduce)return m(t,n,r,"reduce");throw new TypeError("reduce: list must be array or iterable")}function x(t,n){this.xf=n,this.f=t}function w(t,n){return Object.prototype.hasOwnProperty.call(n,t)}function j(t,n){this.xf=n,this.f=t,this.any=!1}function A(t,n){this.xf=n,this.pos=0,this.full=!1,this.acc=Array(t)}function O(t){return"[object Function]"===Object.prototype.toString.call(t)}function S(t){return function n(r){for(var e,u,i,o=[],c=0,a=r.length;a>c;){if(Et(r[c]))for(i=0,u=(e=t?n(r[c]):r[c]).length;u>i;)o[o.length]=e[i],i+=1;else o[o.length]=r[c];c+=1}return o}}function E(t){return{"@@transducer/value":t,"@@transducer/reduced":!0}}function _(t){return RegExp(t.source,(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":""))}function q(t,n,r,e){var u=function(u){for(var i=n.length,o=0;i>o;){if(t===n[o])return r[o];o+=1}n[o+1]=t,r[o+1]=u;for(var c in t)u[c]=e?q(t[c],n,r,!0):t[c];return u};switch(dn(t)){case"Object":return u({});case"Array":return u([]);case"Date":return new Date(t.valueOf());case"RegExp":return _(t);default:return t}}function k(t,n){return function(){return n.call(this,t.apply(this,arguments))}}function I(t,n){return function(){var r=arguments.length;if(0===r)return n();var e=arguments[r-1];return jt(e)||"function"!=typeof e[t]?n.apply(this,arguments):e[t].apply(e,Array.prototype.slice.call(arguments,0,r-1))}}function N(){if(0===arguments.length)throw Error("pipe requires at least one argument");return i(arguments[0].length,Dt(k,arguments[0],wn(arguments)))}function W(){if(0===arguments.length)throw Error("compose requires at least one argument");return N.apply(this,jn(arguments))}function P(){if(0===arguments.length)throw Error("composeK requires at least one argument");var t=Array.prototype.slice.call(arguments),n=t.pop();return W(W.apply(this,Bt(hn,t)),n)}function C(t,n){return function(){var r=this;return t.apply(r,arguments).then(function(t){return n.call(r,t)})}}function T(){if(0===arguments.length)throw Error("pipeP requires at least one argument");return i(arguments[0].length,Dt(C,arguments[0],wn(arguments)))}function F(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r}function B(t){var n=(t+"").match(/^function (\w*)/);return null==n?"":n[1]}function R(t,n,r,e){if(An(t,n))return!0;if(dn(t)!==dn(n))return!1;if(null==t||null==n)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof n.equals)return"function"==typeof t.equals&&t.equals(n)&&"function"==typeof n.equals&&n.equals(t);switch(dn(t)){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===B(t.constructor))return t===n;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof n||!An(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!An(t.valueOf(),n.valueOf()))return!1;break;case"Error":return t.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1;break;case"Map":case"Set":if(!R(F(t.entries()),F(n.entries()),r,e))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var u=Ft(t);if(u.length!==Ft(n).length)return!1;for(var i=r.length-1;i>=0;){if(r[i]===t)return e[i]===n;i-=1}for(r.push(t),e.push(n),i=u.length-1;i>=0;){var o=u[i];if(!w(o,n)||!R(n[o],t[o],r,e))return!1;i-=1}return r.pop(),e.pop(),!0}function U(t,n,r){var e,u;if("function"==typeof t.indexOf)switch(typeof n){case"number":if(0===n){for(e=1/n;t.length>r;){if(0===(u=t[r])&&1/u===e)return r;r+=1}return-1}if(n!==n){for(;t.length>r;){if("number"==typeof(u=t[r])&&u!==u)return r;r+=1}return-1}return t.indexOf(n,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(n,r);case"object":if(null===n)return t.indexOf(n,r)}for(;t.length>r;){if(On(t[r],n))return r;r+=1}return-1}function D(t,n){return U(n,t,0)>=0}function M(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}function L(t){return function(){return!t.apply(this,arguments)}}function z(t,n){for(var r=0,e=n.length,u=[];e>r;)t(n[r])&&(u[u.length]=n[r]),r+=1;return u}function K(t){return"[object Object]"===Object.prototype.toString.call(t)}function V(t,n){this.xf=n,this.f=t}function $(t,n){var r=function(r){var e=n.concat([t]);return D(r,e)?"<Circular>":$(r,e)},e=function(t,n){return p(function(n){return M(n)+": "+r(t[n])},n.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+p(r,t).join(", ")+"))";case"[object Array]":return"["+p(r,t).concat(e(t,qn(function(t){return/^\d+$/.test(t)},Ft(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+r(t.valueOf())+")":""+t;case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):M(En(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object String]":return"object"==typeof t?"new String("+r(t.valueOf())+")":M(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var u=""+t;if("[object Object]"!==u)return u}return"{"+e(t,Ft(t)).join(", ")+"}"}}function H(t,n,r,e){this.valueFn=t,this.valueAcc=n,this.keyFn=r,this.xf=e,this.inputs={}}function J(t,n,r){for(var e=0,u=r.length;u>e;){if(t(n,r[e]))return!0;e+=1}return!1}function X(t,n){this.xf=n,this.n=t}function Y(t,n){this.xf=n,this.n=t,this.i=0}function Z(t,n){this.xf=n,this.pos=0,this.full=!1,this.acc=Array(t)}function G(t,n){this.f=t,this.retained=[],this.xf=n}function Q(t,n){this.xf=n,this.pred=t,this.lastValue=void 0,this.seenFirstValue=!1}function tt(t,n){this.xf=n,this.f=t}function nt(t,n){this.xf=n,this.f=t,this.found=!1}function rt(t,n){this.xf=n,this.f=t,this.idx=-1,this.found=!1}function et(t,n){this.xf=n,this.f=t}function ut(t,n){this.xf=n,this.f=t,this.idx=-1,this.lastIdx=-1}function it(t){return t}function ot(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}function ct(t,n,r){var e,u=typeof t;switch(u){case"string":case"number":return 0===t&&1/t==-1/0?!!r._items["-0"]||(n&&(r._items["-0"]=!0),!1):null!==r._nativeSet?n?(e=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===e):r._nativeSet.has(t):u in r._items?t in r._items[u]||(n&&(r._items[u][t]=!0),!1):(n&&(r._items[u]={},r._items[u][t]=!0),!1);case"boolean":if(u in r._items){var i=t?1:0;return!!r._items[u][i]||(n&&(r._items[u][i]=!0),!1)}return n&&(r._items[u]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?n?(e=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===e):r._nativeSet.has(t):u in r._items?!!D(t,r._items[u])||(n&&r._items[u].push(t),!1):(n&&(r._items[u]=[t]),!1);case"undefined":return!!r._items[u]||(n&&(r._items[u]=!0),!1);case"object":if(null===t)return!!r._items.null||(n&&(r._items.null=!0),!1);default:return(u=Object.prototype.toString.call(t))in r._items?!!D(t,r._items[u])||(n&&r._items[u].push(t),!1):(n&&(r._items[u]=[t]),!1)}}function at(t){if(a(t))return t;if(Et(t))return Vr;if("string"==typeof t)return $r;if("object"==typeof t)return Hr;throw Error("Cannot create transformer for "+t)}function ft(t){return"[object Number]"===Object.prototype.toString.call(t)}function st(t){return e(function(n,r){return i(Math.max(0,n.length-r.length),function(){return n.apply(this,t(r,arguments))})})}function lt(t,n){this.xf=n,this.f=t}function pt(t,n){this.xf=n,this.f=t}function ht(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var yt=r(function(t){return function(){return t}}),dt=yt(!1),gt=yt(!0),vt={"@@functional/placeholder":!0},mt=e(function(t,n){return+t+ +n}),bt=e(function(t,n){return 1===t?r(n):i(t,o(t,[],n))}),xt=r(function(t){return bt(t.length,function(){var n=0,r=arguments[0],e=arguments[arguments.length-1],i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var t=r.apply(this,u(arguments,[n,e]));return n+=1,t},t.apply(this,i)})}),wt=c(function(t,n,r){if(n>=r.length||-r.length>n)return r;var e=(0>n?r.length:0)+n,i=u(r);return i[e]=t(r[e]),i}),jt=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)},At={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};l.prototype["@@transducer/init"]=At.init,l.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},l.prototype["@@transducer/step"]=function(t,n){return this.f(n)||(this.all=!1,t=s(this.xf["@@transducer/step"](t,!1))),t};var Ot=e(f(["all"],e(function(t,n){return new l(t,n)}),function(t,n){for(var r=0;n.length>r;){if(!t(n[r]))return!1;r+=1}return!0})),St=e(function(t,n){return n>t?n:t}),Et=r(function(t){return!!jt(t)||!!t&&("object"==typeof t&&(!h(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))});y.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap")},y.prototype["@@transducer/result"]=function(t){return t},y.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)};var _t=e(function(t,n){return i(t.length,function(){return t.apply(n,arguments)})}),qt="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";x.prototype["@@transducer/init"]=At.init,x.prototype["@@transducer/result"]=At.result,x.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))};var kt=e(function(t,n){return new x(t,n)}),It=Object.prototype.toString,Nt=function(){return"[object Arguments]"===It.call(arguments)?function(t){return"[object Arguments]"===It.call(t)}:function(t){return w("callee",t)}},Wt=!{toString:null}.propertyIsEnumerable("toString"),Pt=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Ct=function(){return arguments.propertyIsEnumerable("length")}(),Tt=function(t,n){for(var r=0;t.length>r;){if(t[r]===n)return!0;r+=1}return!1},Ft=r("function"!=typeof Object.keys||Ct?function(t){if(Object(t)!==t)return[];var n,r,e=[],u=Ct&&Nt(t);for(n in t)!w(n,t)||u&&"length"===n||(e[e.length]=n);if(Wt)for(r=6;r>=0;)w(n=Pt[r],t)&&!Tt(e,n)&&(e[e.length]=n),r-=1;return e}:function(t){return Object(t)!==t?[]:Object.keys(t)}),Bt=e(f(["fantasy-land/map","map"],kt,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return bt(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return b(function(r,e){return r[e]=t(n[e]),r},{},Ft(n));default:return p(t,n)}})),Rt=e(function(t,n){return n[t]}),Ut=e(function(t,n){return Bt(Rt(t),n)}),Dt=c(b),Mt=r(function(t){return bt(Dt(St,0,Ut("length",t)),function(){for(var n=0,r=t.length;r>n;){if(!t[n].apply(this,arguments))return!1;n+=1}return!0})}),Lt=e(function(t,n){return t&&n});j.prototype["@@transducer/init"]=At.init,j.prototype["@@transducer/result"]=function(t){return this.any||(t=this.xf["@@transducer/step"](t,!1)),this.xf["@@transducer/result"](t)},j.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.any=!0,t=s(this.xf["@@transducer/step"](t,!0))),t};var zt=e(function(t,n){return new j(t,n)}),Kt=e(f(["any"],zt,function(t,n){for(var r=0;n.length>r;){if(t(n[r]))return!0;r+=1}return!1})),Vt=r(function(t){return bt(Dt(St,0,Ut("length",t)),function(){for(var n=0,r=t.length;r>n;){if(t[n].apply(this,arguments))return!0;n+=1}return!1})}),$t=e(function(t,n){return"function"==typeof n["fantasy-land/ap"]?n["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(n):"function"==typeof t?function(r){return t(r)(n(r))}:b(function(t,r){return u(t,Bt(r,n))},[],t)});A.prototype["@@transducer/init"]=At.init,A.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},A.prototype["@@transducer/step"]=function(t,n){return this.store(n),this.full?this.xf["@@transducer/step"](t,this.getCopy()):t},A.prototype.store=function(t){this.acc[this.pos]=t,(this.pos+=1)===this.acc.length&&(this.pos=0,this.full=!0)},A.prototype.getCopy=function(){return u(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))};var Ht=e(f([],e(function(t,n){return new A(t,n)}),function(t,n){for(var r=0,e=n.length-(t-1),u=Array(0>e?0:e);e>r;)u[r]=Array.prototype.slice.call(n,r,r+t),r+=1;return u})),Jt=e(function(t,n){return u(n,[t])}),Xt=e(function(t,n){return t.apply(this,n)}),Yt=r(function(t){for(var n=Ft(t),r=n.length,e=[],u=0;r>u;)e[u]=t[n[u]],u+=1;return e}),Zt=r(function t(n){return n=Bt(function(n){return"function"==typeof n?n:t(n)},n),bt(Dt(St,0,Ut("length",Yt(n))),function(){var t=arguments;return Bt(function(n){return Xt(n,t)},n)})}),Gt=c(function(t,n,r){var e=t(n),u=t(r);return u>e?-1:e>u?1:0}),Qt=c(function(t,n,r){var e={};for(var u in r)e[u]=r[u];return e[t]=n,e}),tn=Number.isInteger||function(t){return t<<0===t},nn=r(function(t){return null==t}),rn=c(function t(n,r,e){if(0===n.length)return r;var u=n[0];if(n.length>1){var i=!nn(e)&&w(u,e)?e[u]:tn(n[1])?[]:{};r=t(Array.prototype.slice.call(n,1),r,i)}if(tn(u)&&jt(e)){var o=[].concat(e);return o[u]=r,o}return Qt(u,r,e)}),en=e(function(t,n){switch(t){case 0:return function(){return n.call(this)};case 1:return function(t){return n.call(this,t)};case 2:return function(t,r){return n.call(this,t,r)};case 3:return function(t,r,e){return n.call(this,t,r,e)};case 4:return function(t,r,e,u){return n.call(this,t,r,e,u)};case 5:return function(t,r,e,u,i){return n.call(this,t,r,e,u,i)};case 6:return function(t,r,e,u,i,o){return n.call(this,t,r,e,u,i,o)};case 7:return function(t,r,e,u,i,o,c){return n.call(this,t,r,e,u,i,o,c)};case 8:return function(t,r,e,u,i,o,c,a){return n.call(this,t,r,e,u,i,o,c,a)};case 9:return function(t,r,e,u,i,o,c,a,f){return n.call(this,t,r,e,u,i,o,c,a,f)};case 10:return function(t,r,e,u,i,o,c,a,f,s){return n.call(this,t,r,e,u,i,o,c,a,f,s)};default:throw Error("First argument to nAry must be a non-negative integer no greater than ten")}}),un=r(function(t){return en(2,t)}),on=e(function(t,n){var r=bt(t,n);return bt(t,function(){return b($t,Bt(r,arguments[0]),Array.prototype.slice.call(arguments,1))})}),cn=r(function(t){return on(t.length,t)}),an=e(function(t,n){return O(t)?function(){return t.apply(this,arguments)&&n.apply(this,arguments)}:cn(Lt)(t,n)}),fn=r(function(t){return bt(t.length,t)}),sn=fn(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))}),ln=function(t){return{"@@transducer/init":At.init,"@@transducer/result":function(n){return t["@@transducer/result"](n)},"@@transducer/step":function(n,r){var e=t["@@transducer/step"](n,r);return e["@@transducer/reduced"]?E(e):e}}},pn=function(t){var n=ln(t);return{"@@transducer/init":At.init,"@@transducer/result":function(t){return n["@@transducer/result"](t)},"@@transducer/step":function(t,r){return Et(r)?b(n,t,r):b(n,t,[r])}}},hn=e(f(["fantasy-land/chain","chain"],e(function(t,n){return Bt(t,pn(n))}),function(t,n){return"function"==typeof n?function(r){return t(n(r))(r)}:S(!1)(Bt(t,n))})),yn=c(function(t,n,r){if(t>n)throw Error("min must not be greater than max in clamp(min, max, value)");return t>r?t:r>n?n:r}),dn=r(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}),gn=r(function(t){return null!=t&&"function"==typeof t.clone?t.clone():q(t,[],[],!0)}),vn=r(function(t){return function(n,r){return t(n,r)?-1:t(r,n)?1:0}}),mn=r(function(t){return!t}),bn=cn(mn),xn=c(I("slice",function(t,n,r){return Array.prototype.slice.call(r,t,n)})),wn=r(I("tail",xn(1,1/0))),jn=r(function(t){return h(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()}),An=e(function(t,n){return t===n?0!==t||1/t==1/n:t!==t&&n!==n}),On=e(function(t,n){return R(t,n,[],[])}),Sn=function(t){return(10>t?"0":"")+t},En="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Sn(t.getUTCMonth()+1)+"-"+Sn(t.getUTCDate())+"T"+Sn(t.getUTCHours())+":"+Sn(t.getUTCMinutes())+":"+Sn(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};V.prototype["@@transducer/init"]=At.init,V.prototype["@@transducer/result"]=At.result,V.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t};var _n=e(f(["filter"],e(function(t,n){return new V(t,n)}),function(t,n){return K(n)?b(function(r,e){return t(n[e])&&(r[e]=n[e]),r},{},Ft(n)):z(t,n)})),qn=e(function(t,n){return _n(L(t),n)}),kn=r(function(t){return $(t,[])}),In=e(function(t,n){if(jt(t)){if(jt(n))return t.concat(n);throw new TypeError(kn(n)+" is not an array")}if(h(t)){if(h(n))return t+n;throw new TypeError(kn(n)+" is not a string")}if(null!=t&&O(t["fantasy-land/concat"]))return t["fantasy-land/concat"](n);if(null!=t&&O(t.concat))return t.concat(n);throw new TypeError(kn(t)+' does not have a method named "concat" or "fantasy-land/concat"')}),Nn=r(function(t){return i(Dt(St,0,Bt(function(t){return t[0].length},t)),function(){for(var n=0;t.length>n;){if(t[n][0].apply(this,arguments))return t[n][1].apply(this,arguments);n+=1}})}),Wn=e(function(t,n){if(t>10)throw Error("Constructor with greater than ten arguments");return 0===t?function(){return new n}:fn(en(t,function(t,r,e,u,i,o,c,a,f,s){switch(arguments.length){case 1:return new n(t);case 2:return new n(t,r);case 3:return new n(t,r,e);case 4:return new n(t,r,e,u);case 5:return new n(t,r,e,u,i);case 6:return new n(t,r,e,u,i,o);case 7:return new n(t,r,e,u,i,o,c);case 8:return new n(t,r,e,u,i,o,c,a);case 9:return new n(t,r,e,u,i,o,c,a,f);case 10:return new n(t,r,e,u,i,o,c,a,f,s)}}))}),Pn=r(function(t){return Wn(t.length,t)}),Cn=e(D),Tn=e(function(t,n){return bt(Dt(St,0,Ut("length",n)),function(){var r=arguments,e=this;return t.apply(e,p(function(t){return t.apply(e,r)},n))})});H.prototype["@@transducer/init"]=At.init,H.prototype["@@transducer/result"]=function(t){var n;for(n in this.inputs)if(w(n,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[n]))["@@transducer/reduced"]){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},H.prototype["@@transducer/step"]=function(t,n){var r=this.keyFn(n);return this.inputs[r]=this.inputs[r]||[r,this.valueAcc],this.inputs[r][1]=this.valueFn(this.inputs[r][1],n),t};var Fn=o(4,[],f([],o(4,[],function(t,n,r,e){return new H(t,n,r,e)}),function(t,n,r,e){return b(function(e,u){var i=r(u);return e[i]=t(w(i,e)?e[i]:n,u),e},{},e)})),Bn=Fn(function(t,n){return t+1},0),Rn=mt(-1),Un=e(function(t,n){return null==n||n!==n?t:n}),Dn=c(function(t,n,r){var e=t(n),u=t(r);return e>u?-1:u>e?1:0}),Mn=e(function(t,n){for(var r=[],e=0,u=t.length;u>e;)D(t[e],n)||D(t[e],r)||(r[r.length]=t[e]),e+=1;return r}),Ln=c(function(t,n,r){for(var e=[],u=0,i=n.length;i>u;)J(t,n[u],r)||J(t,n[u],e)||e.push(n[u]),u+=1;return e}),zn=e(function(t,n){var r={};for(var e in n)r[e]=n[e];return delete r[t],r}),Kn=c(function(t,n,r){var e=Array.prototype.slice.call(r,0);return e.splice(t,n),e}),Vn=c(function(t,n,r){return wt(yt(n),t,r)}),$n=e(function t(n,r){switch(n.length){case 0:return r;case 1:return tn(n[0])?Kn(n[0],1,r):zn(n[0],r);default:var e=n[0],u=Array.prototype.slice.call(n,1);return null==r[e]?r:tn(n[0])?Vn(e,t(u,r[e]),r):Qt(e,t(u,r[e]),r)}}),Hn=e(function(t,n){return t/n});X.prototype["@@transducer/init"]=At.init,X.prototype["@@transducer/result"]=At.result,X.prototype["@@transducer/step"]=function(t,n){return this.n>0?(this.n-=1,t):this.xf["@@transducer/step"](t,n)};var Jn=e(f(["drop"],e(function(t,n){return new X(t,n)}),function(t,n){return xn(Math.max(0,t),1/0,n)}));Y.prototype["@@transducer/init"]=At.init,Y.prototype["@@transducer/result"]=At.result,Y.prototype["@@transducer/step"]=function(t,n){this.i+=1;var r=0===this.n?t:this.xf["@@transducer/step"](t,n);return 0>this.n||this.n>this.i?r:s(r)};var Xn=e(f(["take"],e(function(t,n){return new Y(t,n)}),function(t,n){return xn(0,0>t?1/0:t,n)}));Z.prototype["@@transducer/init"]=At.init,Z.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},Z.prototype["@@transducer/step"]=function(t,n){return this.full&&(t=this.xf["@@transducer/step"](t,this.acc[this.pos])),this.store(n),t},Z.prototype.store=function(t){this.acc[this.pos]=t,(this.pos+=1)===this.acc.length&&(this.pos=0,this.full=!0)};var Yn=e(f([],e(function(t,n){return new Z(t,n)}),function(t,n){return Xn(n.length>t?n.length-t:0,n)}));G.prototype["@@transducer/init"]=At.init,G.prototype["@@transducer/result"]=function(t){return this.retained=null,this.xf["@@transducer/result"](t)},G.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.retain(t,n):this.flush(t,n)},G.prototype.flush=function(t,n){return t=b(this.xf["@@transducer/step"],t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,n)},G.prototype.retain=function(t,n){return this.retained.push(n),t};var Zn=e(f([],e(function(t,n){return new G(t,n)}),function(t,n){for(var r=n.length-1;r>=0&&t(n[r]);)r-=1;return Array.prototype.slice.call(n,0,r+1)}));Q.prototype["@@transducer/init"]=At.init,Q.prototype["@@transducer/result"]=At.result,Q.prototype["@@transducer/step"]=function(t,n){var r=!1;return this.seenFirstValue?this.pred(this.lastValue,n)&&(r=!0):this.seenFirstValue=!0,this.lastValue=n,r?t:this.xf["@@transducer/step"](t,n)};var Gn=e(function(t,n){return new Q(t,n)}),Qn=e(function(t,n){var r=0>t?n.length+t:t;return h(n)?n.charAt(r):n[r]}),tr=Qn(-1),nr=e(f([],Gn,function(t,n){var r=[],e=1,u=n.length;if(0!==u)for(r[0]=n[0];u>e;)t(tr(r),n[e])||(r[r.length]=n[e]),e+=1;return r})),rr=r(f([],Gn(On),nr(On)));tt.prototype["@@transducer/init"]=At.init,tt.prototype["@@transducer/result"]=At.result,tt.prototype["@@transducer/step"]=function(t,n){if(this.f){if(this.f(n))return t;this.f=null}return this.xf["@@transducer/step"](t,n)};var er=e(f(["dropWhile"],e(function(t,n){return new tt(t,n)}),function(t,n){for(var r=0,e=n.length;e>r&&t(n[r]);)r+=1;return Array.prototype.slice.call(n,r)})),ur=e(function(t,n){return t||n}),ir=e(function(t,n){return O(t)?function(){return t.apply(this,arguments)||n.apply(this,arguments)}:cn(ur)(t,n)}),or=r(function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():jt(t)?[]:h(t)?"":K(t)?{}:Nt(t)?function(){return arguments}():void 0}),cr=e(function(t,n){return Jn(0>t?0:n.length-t,n)}),ar=e(function(t,n){return On(cr(t.length,n),t)}),fr=c(function(t,n,r){return On(t(n),t(r))}),sr=c(function(t,n,r){return On(n[t],r[t])}),lr=e(function t(n,r){var e,u,i,o={};for(u in r)i=typeof(e=n[u]),o[u]="function"===i?e(r[u]):e&&"object"===i?t(e,r[u]):r[u];return o});nt.prototype["@@transducer/init"]=At.init,nt.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},nt.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.found=!0,t=s(this.xf["@@transducer/step"](t,n))),t};var pr=e(f(["find"],e(function(t,n){return new nt(t,n)}),function(t,n){for(var r=0,e=n.length;e>r;){if(t(n[r]))return n[r];r+=1}}));rt.prototype["@@transducer/init"]=At.init,rt.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,-1)),this.xf["@@transducer/result"](t)},rt.prototype["@@transducer/step"]=function(t,n){return this.idx+=1,this.f(n)&&(this.found=!0,t=s(this.xf["@@transducer/step"](t,this.idx))),t};var hr=e(f([],e(function(t,n){return new rt(t,n)}),function(t,n){for(var r=0,e=n.length;e>r;){if(t(n[r]))return r;r+=1}return-1}));et.prototype["@@transducer/init"]=At.init,et.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.last))},et.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.last=n),t};var yr=e(f([],e(function(t,n){return new et(t,n)}),function(t,n){for(var r=n.length-1;r>=0;){if(t(n[r]))return n[r];r-=1}}));ut.prototype["@@transducer/init"]=At.init,ut.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.lastIdx))},ut.prototype["@@transducer/step"]=function(t,n){return this.idx+=1,this.f(n)&&(this.lastIdx=this.idx),t};var dr=e(f([],e(function(t,n){return new ut(t,n)}),function(t,n){for(var r=n.length-1;r>=0;){if(t(n[r]))return r;r-=1}return-1})),gr=r(S(!0)),vr=r(function(t){return fn(function(n,r){var e=Array.prototype.slice.call(arguments,0);return e[0]=r,e[1]=n,t.apply(this,e)})}),mr=e(I("forEach",function(t,n){for(var r=n.length,e=0;r>e;)t(n[e]),e+=1;return n})),br=e(function(t,n){for(var r=Ft(n),e=0;r.length>e;){var u=r[e];t(n[u],u,n),e+=1}return n}),xr=r(function(t){for(var n={},r=0;t.length>r;)n[t[r][0]]=t[r][1],r+=1;return n}),wr=e(I("groupBy",Fn(function(t,n){return null==t&&(t=[]),t.push(n),t},null))),jr=e(function(t,n){for(var r=[],e=0,u=n.length;u>e;){for(var i=e+1;u>i&&t(n[i-1],n[i]);)i+=1;r.push(n.slice(e,i)),e=i}return r}),Ar=e(function(t,n){return t>n}),Or=e(function(t,n){return t>=n}),Sr=e(w),Er=e(function(t,n){return t in n}),_r=Qn(0),qr=r(it),kr=c(function(t,n,r){return bt(Math.max(t.length,n.length,r.length),function(){return t.apply(this,arguments)?n.apply(this,arguments):r.apply(this,arguments)})}),Ir=mt(1),Nr=Fn(function(t,n){return n},null),Wr=e(function(t,n){return"function"!=typeof n.indexOf||jt(n)?U(n,t,0):n.indexOf(t)}),Pr=xn(0,-1),Cr=c(function(t,n,r){return z(function(n){return J(t,n,r)},n)}),Tr=c(function(t,n,r){t=r.length>t&&t>=0?t:r.length;var e=Array.prototype.slice.call(r,0);return e.splice(t,0,n),e}),Fr=c(function(t,n,r){return t=r.length>t&&t>=0?t:r.length,[].concat(Array.prototype.slice.call(r,0,t),n,Array.prototype.slice.call(r,t))});ot.prototype.add=function(t){return!ct(t,!0,this)},ot.prototype.has=function(t){return ct(t,!1,this)};var Br=e(function(t,n){for(var r,e,u=new ot,i=[],o=0;n.length>o;)r=t(e=n[o]),u.add(r)&&i.push(e),o+=1;return i}),Rr=Br(qr),Ur=e(function(t,n){var r,e;return t.length>n.length?(r=t,e=n):(r=n,e=t),Rr(z(vr(D)(r),e))}),Dr=e(function(t,n){for(var r,e=0,u=n.length,i=[];u>e;)J(t,r=n[e],i)||(i[i.length]=r),e+=1;return i}),Mr=c(function(t,n,r){var e,u;n.length>r.length?(e=n,u=r):(e=r,u=n);for(var i=[],o=0;u.length>o;)J(t,u[o],e)&&(i[i.length]=u[o]),o+=1;return Dr(t,i)}),Lr=e(I("intersperse",function(t,n){for(var r=[],e=0,u=n.length;u>e;)e===u-1?r.push(n[e]):r.push(n[e],t),e+=1;return r})),zr="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1,e=arguments.length;e>r;){var u=arguments[r];if(null!=u)for(var i in u)w(i,u)&&(n[i]=u[i]);r+=1}return n},Kr=e(function(t,n){var r={};return r[t]=n,r}),Vr={"@@transducer/init":Array,"@@transducer/step":function(t,n){return t.push(n),t},"@@transducer/result":it},$r={"@@transducer/init":String,"@@transducer/step":function(t,n){return t+n},"@@transducer/result":it},Hr={"@@transducer/init":Object,"@@transducer/step":function(t,n){return zr(t,Et(n)?Kr(n[0],n[1]):n)},"@@transducer/result":it},Jr=c(function(t,n,r){return a(t)?b(n(t),t["@@transducer/init"](),r):b(n(at(t)),q(t,[],[],!1),r)}),Xr=r(function(t){for(var n=Ft(t),r=n.length,e=0,u={};r>e;){var i=n[e],o=t[i],c=w(o,u)?u[o]:u[o]=[];c[c.length]=i,e+=1}return u}),Yr=r(function(t){for(var n=Ft(t),r=n.length,e=0,u={};r>e;){var i=n[e];u[t[i]]=i,e+=1}return u}),Zr=e(function(t,n){return bt(t+1,function(){var r=arguments[t];if(null!=r&&O(r[n]))return r[n].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(kn(r)+' does not have a method named "'+n+'"')})}),Gr=e(function(t,n){return null!=n&&n.constructor===t||n instanceof t}),Qr=r(function(t){return null!=t&&On(t,or(t))}),te=Zr(1,"join"),ne=r(function(t){return Tn(function(){return Array.prototype.slice.call(arguments,0)},t)}),re=r(function(t){var n,r=[];for(n in t)r[r.length]=n;return r}),ee=e(function(t,n){if("function"!=typeof n.lastIndexOf||jt(n)){for(var r=n.length-1;r>=0;){if(On(n[r],t))return r;r-=1}return-1}return n.lastIndexOf(t)}),ue=r(function(t){return null!=t&&ft(t.length)?t.length:NaN}),ie=e(function(t,n){return function(r){return function(e){return Bt(function(t){return n(t,e)},r(t(e)))}}}),oe=r(function(t){return ie(Qn(t),Vn(t))}),ce=e(function(t,n){for(var r=n,e=0;t.length>e;){if(null==r)return;r=r[t[e]],e+=1}return r}),ae=r(function(t){return ie(ce(t),rn(t))}),fe=r(function(t){return ie(Rt(t),Qt(t))}),se=e(function(t,n){return n>t}),le=e(function(t,n){return n>=t}),pe=c(function(t,n,r){for(var e=0,u=r.length,i=[],o=[n];u>e;)o=t(o[0],r[e]),i[e]=o[1],e+=1;return[o[0],i]}),he=c(function(t,n,r){for(var e=r.length-1,u=[],i=[n];e>=0;)i=t(r[e],i[0]),u[e]=i[1],e-=1;return[u,i[0]]}),ye=e(function(t,n){return b(function(r,e){return r[e]=t(n[e],e,n),r},{},Ft(n))}),de=e(function(t,n){return n.match(t)||[]}),ge=e(function(t,n){return tn(t)?!tn(n)||1>n?NaN:(t%n+n)%n:NaN}),ve=c(function(t,n,r){return t(r)>t(n)?r:n}),me=Dt(mt,0),be=r(function(t){return me(t)/t.length}),xe=r(function(t){var n=t.length;if(0===n)return NaN;var r=2-n%2,e=(n-r)/2;return be(Array.prototype.slice.call(t,0).sort(function(t,n){return n>t?-1:t>n?1:0}).slice(e,e+r))}),we=e(function(t,n){var r={};return i(n.length,function(){var e=t.apply(this,arguments);return w(e,r)||(r[e]=n.apply(this,arguments)),r[e]})}),je=we(function(){return kn(arguments)}),Ae=e(function(t,n){return zr({},t,n)}),Oe=r(function(t){return zr.apply(null,[{}].concat(t))}),Se=c(function(t,n,r){var e,u={};for(e in n)w(e,n)&&(u[e]=w(e,r)?t(e,n[e],r[e]):n[e]);for(e in r)w(e,r)&&!w(e,u)&&(u[e]=r[e]);return u}),Ee=c(function t(n,r,e){return Se(function(r,e,u){return K(e)&&K(u)?t(n,e,u):n(r,e,u)},r,e)}),_e=e(function(t,n){return Ee(function(t,n,r){return n},t,n)}),qe=e(function(t,n){return Ee(function(t,n,r){return r},t,n)}),ke=c(function(t,n,r){return Ee(function(n,r,e){return t(r,e)},n,r)}),Ie=c(function(t,n,r){return Se(function(n,r,e){return t(r,e)},n,r)}),Ne=e(function(t,n){return t>n?n:t}),We=c(function(t,n,r){return t(r)<t(n)?r:n}),Pe=e(function(t,n){return t%n}),Ce=e(function(t,n){return t*n}),Te=r(function(t){return-t}),Fe=e(L(f(["any"],zt,Kt))),Be=r(function(t){return bt(0>t?1:t+1,function(){return Qn(t,arguments)})}),Re=c(function(t,n,r){return t(n(r))}),Ue=r(function(t){return[t]}),De=e(function(t,n){for(var r={},e={},u=0,i=t.length;i>u;)e[t[u]]=1,u+=1;for(var o in n)e.hasOwnProperty(o)||(r[o]=n[o]);return r}),Me=r(function(t){var n,r=!1;return i(t.length,function(){return r?n:(r=!0,n=t.apply(this,arguments))})}),Le=function(t){return{value:t,map:function(n){return Le(n(t))}}},ze=c(function(t,n,r){return t(function(t){return Le(n(t))})(r).value}),Ke=e(function(t,n){return[t,n]}),Ve=st(u),$e=st(vr(u)),He=ne([_n,qn]),Je=c(function(t,n,r){return On(ce(t,r),n)}),Xe=c(function(t,n,r){return Un(t,ce(n,r))}),Ye=c(function(t,n,r){return n.length>0&&t(ce(n,r))}),Ze=e(function(t,n){for(var r={},e=0;t.length>e;)t[e]in n&&(r[t[e]]=n[t[e]]),e+=1;return r}),Ge=e(function(t,n){for(var r={},e=0,u=t.length;u>e;){var i=t[e];r[i]=n[i],e+=1}return r}),Qe=e(function(t,n){var r={};for(var e in n)t(n[e],e,n)&&(r[e]=n[e]);return r}),tu=e(function(t,n){return u([t],n)}),nu=Dt(Ce,1),ru=e(function(t,n){return bt(n.length,function(){for(var r=[],e=0;n.length>e;)r.push(n[e].call(this,arguments[e])),e+=1;return t.apply(this,r.concat(Array.prototype.slice.call(arguments,n.length)))})}),eu=ru(p,[Ge,qr]),uu=c(function(t,n,r){return On(n,r[t])}),iu=c(function(t,n,r){return Gr(t,r[n])}),ou=c(function(t,n,r){return null!=r&&w(n,r)?r[n]:t}),cu=c(function(t,n,r){return t(r[n])}),au=e(function(t,n){for(var r=t.length,e=[],u=0;r>u;)e[u]=n[t[u]],u+=1;return e}),fu=e(function(t,n){if(!ft(t)||!ft(n))throw new TypeError("Both arguments to range must be numbers");for(var r=[],e=t;n>e;)r.push(e),e+=1;return r}),su=c(function(t,n,r){for(var e=r.length-1;e>=0;)n=t(r[e],n),e-=1;return n}),lu=o(4,[],function(t,n,r,e){return b(function(r,e){return t(r,e)?n(r,e):s(r)},r,e)}),pu=r(s),hu=e(function(t,n){var r,e=+n,u=0;if(0>e||isNaN(e))throw new RangeError("n must be a non-negative number");for(r=Array(e);e>u;)r[u]=t(u),u+=1;return r}),yu=e(function(t,n){return hu(yt(t),n)}),du=c(function(t,n,r){return r.replace(t,n)}),gu=c(function(t,n,r){for(var e=0,u=r.length,i=[n];u>e;)n=t(n,r[e]),i[e+1]=n,e+=1;return i}),vu=e(function(t,n){return"function"==typeof n.sequence?n.sequence(t):su(function(t,n){return $t(Bt(tu,t),n)},t([]),n)}),mu=c(function(t,n,r){return ze(t,yt(n),r)}),bu=e(function(t,n){return Array.prototype.slice.call(n,0).sort(t)}),xu=e(function(t,n){return Array.prototype.slice.call(n,0).sort(function(n,r){var e=t(n),u=t(r);return u>e?-1:e>u?1:0})}),wu=e(function(t,n){return Array.prototype.slice.call(n,0).sort(function(n,r){for(var e=0,u=0;0===e&&t.length>u;)e=t[u](n,r),u+=1;return e})}),ju=Zr(1,"split"),Au=e(function(t,n){return[xn(0,t,n),xn(t,ue(n),n)]}),Ou=e(function(t,n){if(0>=t)throw Error("First argument to splitEvery must be a positive integer");for(var r=[],e=0;n.length>e;)r.push(xn(e,e+=t,n));return r}),Su=e(function(t,n){for(var r=0,e=n.length,u=[];e>r&&!t(n[r]);)u.push(n[r]),r+=1;return[u,Array.prototype.slice.call(n,r)]}),Eu=e(function(t,n){return On(Xn(t.length,n),t)}),_u=e(function(t,n){return+t-+n}),qu=e(function(t,n){return In(Mn(t,n),Mn(n,t))}),ku=c(function(t,n,r){return In(Ln(t,n,r),Ln(t,r,n))}),Iu=e(function(t,n){for(var r=n.length-1;r>=0&&t(n[r]);)r-=1;return Array.prototype.slice.call(n,r+1)});lt.prototype["@@transducer/init"]=At.init,lt.prototype["@@transducer/result"]=At.result,lt.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):s(t)};var Nu=e(f(["takeWhile"],e(function(t,n){return new lt(t,n)}),function(t,n){for(var r=0,e=n.length;e>r&&t(n[r]);)r+=1;return Array.prototype.slice.call(n,0,r)}));pt.prototype["@@transducer/init"]=At.init,pt.prototype["@@transducer/result"]=At.result,pt.prototype["@@transducer/step"]=function(t,n){return this.f(n),this.xf["@@transducer/step"](t,n)};var Wu=e(f([],e(function(t,n){return new pt(t,n)}),function(t,n){return t(n),n})),Pu=e(function(t,n){if(!ht(t))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+kn(t));return _(t).test(n)}),Cu=Zr(0,"toLowerCase"),Tu=r(function(t){var n=[];for(var r in t)w(r,t)&&(n[n.length]=[r,t[r]]);return n}),Fu=r(function(t){var n=[];for(var r in t)n[n.length]=[r,t[r]];return n}),Bu=Zr(0,"toUpperCase"),Ru=bt(4,function(t,n,r,e){return b(t("function"==typeof n?d(n):n),r,e)}),Uu=r(function(t){for(var n=0,r=[];t.length>n;){for(var e=t[n],u=0;e.length>u;)void 0===r[u]&&(r[u]=[]),r[u].push(e[u]),u+=1;n+=1}return r}),Du=c(function(t,n,r){return"function"==typeof r["fantasy-land/traverse"]?r["fantasy-land/traverse"](n,t):vu(t,Bt(n,r))}),Mu="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",Lu=r(!("function"==typeof String.prototype.trim)||Mu.trim()?function(t){var n=RegExp("^["+Mu+"]["+Mu+"]*"),r=RegExp("["+Mu+"]["+Mu+"]*$");return t.replace(n,"").replace(r,"")}:function(t){return t.trim()}),zu=e(function(t,n){return i(t.length,function(){try{return t.apply(this,arguments)}catch(t){return n.apply(this,u([t],arguments))}})}),Ku=r(function(t){return function(){return t(Array.prototype.slice.call(arguments,0))}}),Vu=r(function(t){return en(1,t)}),$u=e(function(t,n){return bt(t,function(){for(var r,e=1,u=n,i=0;t>=e&&"function"==typeof u;)r=e===t?arguments.length:i+u.length,u=u.apply(this,Array.prototype.slice.call(arguments,i,r)),e+=1,i=r;return u})}),Hu=e(function(t,n){for(var r=t(n),e=[];r&&r.length;)e[e.length]=r[0],r=t(r[1]);return e}),Ju=e(W(Rr,u)),Xu=c(function(t,n,r){return Dr(t,u(n,r))}),Yu=c(function(t,n,r){return t(r)?r:n(r)}),Zu=hn(it),Gu=c(function(t,n,r){for(var e=r;!t(e);)e=n(e);return e}),Qu=r(function(t){var n,r=[];for(n in t)r[r.length]=t[n];return r}),ti=function(t){return{value:t,"fantasy-land/map":function(){return this}}},ni=e(function(t,n){return t(ti)(n).value}),ri=c(function(t,n,r){return t(r)?n(r):r}),ei=e(function(t,n){for(var r in t)if(w(r,t)&&!t[r](n[r]))return!1;return!0}),ui=e(function(t,n){return ei(Bt(On,t),n)}),ii=e(function(t,n){return qn(vr(D)(t),n)}),oi=e(function(t,n){for(var r,e=0,u=t.length,i=n.length,o=[];u>e;){for(r=0;i>r;)o[o.length]=[t[e],n[r]],r+=1;e+=1}return o}),ci=e(function(t,n){for(var r=[],e=0,u=Math.min(t.length,n.length);u>e;)r[e]=[t[e],n[e]],e+=1;return r}),ai=e(function(t,n){for(var r=0,e=Math.min(t.length,n.length),u={};e>r;)u[t[r]]=n[r],r+=1;return u}),fi=c(function(t,n,r){for(var e=[],u=0,i=Math.min(n.length,r.length);i>u;)e[u]=t(n[u],r[u]),u+=1;return e});t.F=dt,t.T=gt,t.__=vt,t.add=mt,t.addIndex=xt,t.adjust=wt,t.all=Ot,t.allPass=Mt,t.always=yt,t.and=Lt,t.any=Kt,t.anyPass=Vt,t.ap=$t,t.aperture=Ht,t.append=Jt,t.apply=Xt,t.applySpec=Zt,t.ascend=Gt,t.assoc=Qt,t.assocPath=rn,t.binary=un,t.bind=_t,t.both=an,t.call=sn,t.chain=hn,t.clamp=yn,t.clone=gn,t.comparator=vn,t.complement=bn,t.compose=W,t.composeK=P,t.composeP=function(){if(0===arguments.length)throw Error("composeP requires at least one argument");return T.apply(this,jn(arguments))},t.concat=In,t.cond=Nn,t.construct=Pn,t.constructN=Wn,t.contains=Cn,t.converge=Tn,t.countBy=Bn,t.curry=fn,t.curryN=bt,t.dec=Rn,t.defaultTo=Un,t.descend=Dn,t.difference=Mn,t.differenceWith=Ln,t.dissoc=zn,t.dissocPath=$n,t.divide=Hn,t.drop=Jn,t.dropLast=Yn,t.dropLastWhile=Zn,t.dropRepeats=rr,t.dropRepeatsWith=nr,t.dropWhile=er,t.either=ir,t.empty=or,t.endsWith=ar,t.eqBy=fr,t.eqProps=sr,t.equals=On,t.evolve=lr,t.filter=_n,t.find=pr,t.findIndex=hr,t.findLast=yr,t.findLastIndex=dr,t.flatten=gr,t.flip=vr,t.forEach=mr,t.forEachObjIndexed=br,t.fromPairs=xr,t.groupBy=wr,t.groupWith=jr,t.gt=Ar,t.gte=Or,t.has=Sr,t.hasIn=Er,t.head=_r,t.identical=An,t.identity=qr,t.ifElse=kr,t.inc=Ir,t.indexBy=Nr,t.indexOf=Wr,t.init=Pr,t.innerJoin=Cr,t.insert=Tr,t.insertAll=Fr,t.intersection=Ur,t.intersectionWith=Mr,t.intersperse=Lr,t.into=Jr,t.invert=Xr,t.invertObj=Yr,t.invoker=Zr,t.is=Gr,t.isEmpty=Qr,t.isNil=nn,t.join=te,t.juxt=ne,t.keys=Ft,t.keysIn=re,t.last=tr,t.lastIndexOf=ee,t.length=ue,t.lens=ie,t.lensIndex=oe,t.lensPath=ae,t.lensProp=fe,t.lift=cn,t.liftN=on,t.lt=se,t.lte=le,t.map=Bt,t.mapAccum=pe,t.mapAccumRight=he,t.mapObjIndexed=ye,t.match=de,t.mathMod=ge,t.max=St,t.maxBy=ve,t.mean=be,t.median=xe,t.memoize=je,t.memoizeWith=we,t.merge=Ae,t.mergeAll=Oe,t.mergeDeepLeft=_e,t.mergeDeepRight=qe,t.mergeDeepWith=ke,t.mergeDeepWithKey=Ee,t.mergeWith=Ie,t.mergeWithKey=Se,t.min=Ne,t.minBy=We,t.modulo=Pe,t.multiply=Ce,t.nAry=en,t.negate=Te,t.none=Fe,t.not=mn,t.nth=Qn,t.nthArg=Be,t.o=Re,t.objOf=Kr,t.of=Ue,t.omit=De,t.once=Me,t.or=ur,t.over=ze,t.pair=Ke,t.partial=Ve,t.partialRight=$e,t.partition=He,t.path=ce,t.pathEq=Je,t.pathOr=Xe,t.pathSatisfies=Ye,t.pick=Ze,t.pickAll=Ge,t.pickBy=Qe,t.pipe=N,t.pipeK=function(){if(0===arguments.length)throw Error("pipeK requires at least one argument");return P.apply(this,jn(arguments))},t.pipeP=T,t.pluck=Ut,t.prepend=tu,t.product=nu,t.project=eu,t.prop=Rt,t.propEq=uu,t.propIs=iu,t.propOr=ou,t.propSatisfies=cu,t.props=au,t.range=fu,t.reduce=Dt,t.reduceBy=Fn,t.reduceRight=su,t.reduceWhile=lu,t.reduced=pu,t.reject=qn,t.remove=Kn,t.repeat=yu,t.replace=du,t.reverse=jn,t.scan=gu,t.sequence=vu,t.set=mu,t.slice=xn,t.sort=bu,t.sortBy=xu,t.sortWith=wu,t.split=ju,t.splitAt=Au,t.splitEvery=Ou,t.splitWhen=Su,t.startsWith=Eu,t.subtract=_u,t.sum=me,t.symmetricDifference=qu,t.symmetricDifferenceWith=ku,t.tail=wn,t.take=Xn,t.takeLast=cr,t.takeLastWhile=Iu,t.takeWhile=Nu,t.tap=Wu,t.test=Pu,t.times=hu,t.toLower=Cu,t.toPairs=Tu,t.toPairsIn=Fu,t.toString=kn,t.toUpper=Bu,t.transduce=Ru,t.transpose=Uu,t.traverse=Du,t.trim=Lu,t.tryCatch=zu,t.type=dn,t.unapply=Ku,t.unary=Vu,t.uncurryN=$u,t.unfold=Hu,t.union=Ju,t.unionWith=Xu,t.uniq=Rr,t.uniqBy=Br,t.uniqWith=Dr,t.unless=Yu,t.unnest=Zu,t.until=Gu,t.update=Vn,t.useWith=ru,t.values=Yt,t.valuesIn=Qu,t.view=ni,t.when=ri,t.where=ei,t.whereEq=ui,t.without=ii,t.xprod=oi,t.zip=ci,t.zipObj=ai,t.zipWith=fi,Object.defineProperty(t,"__esModule",{value:!0})});

@@ -27,3 +27,3 @@ {

"description": "A practical functional library for JavaScript programmers.",
"version": "0.24.0",
"version": "0.24.1-es.rc1",
"homepage": "http://ramdajs.com/",

@@ -35,5 +35,6 @@ "license": "MIT",

},
"main": "index.js",
"module": "es/index.js",
"main": "src/index.js",
"files": [
"index.js",
"es",
"src",

@@ -45,8 +46,13 @@ "dist"

"bookmarklet": "scripts/bookmarklet",
"build": "make && make dist/ramda.min.js",
"clean": "rimraf dist/* coverage/*",
"build:es": "cross-env BABEL_ENV=es babel source --out-dir es",
"build:cjs": "cross-env BABEL_ENV=cjs babel source --out-dir src",
"build:umd": "cross-env NODE_ENV=development rollup -c -i source/index.js -o dist/ramda.js",
"build:umd:min": "cross-env NODE_ENV=production rollup -c -i source/index.js -o dist/ramda.min.js",
"build": "npm run build:es && npm run build:cjs && npm run build:umd && npm run build:umd:min",
"clean": "rimraf es/* cjs/* dist/* coverage/*",
"precoverage": "npm run pretest",
"coverage": "istanbul cover node_modules/.bin/_mocha -- --reporter spec",
"postcoverage": "npm run posttest",
"lint": "eslint scripts/bookmarklet scripts/build src/*.js src/internal/*.js test/*.js test/**/*.js lib/sauce/*.js lib/bench/*.js",
"lint": "eslint scripts/bookmarklet scripts/*.js source/*.js source/internal/*.js test/*.js test/**/*.js lib/sauce/*.js lib/bench/*.js",
"pretest": "npm run build:cjs",
"test": "mocha --reporter spec",

@@ -60,10 +66,10 @@ "posttest": "git checkout -- dist",

"devDependencies": {
"acorn": "0.9.x",
"babel-cli": "^6.26.0",
"babel-types": "^6.26.0",
"benchmark": "~1.0.0",
"browserify": "10.x.x",
"cli-table": "0.3.x",
"commander": "2.5.x",
"cross-env": "^2.0.1",
"dox": "latest",
"envvar": "1.x.x",
"escodegen": "1.4.x",
"eslint": "^2.11.0",

@@ -78,2 +84,4 @@ "handlebars": "3.0.x",

"rimraf": "~2.3.2",
"rollup": "^0.47.4",
"rollup-plugin-uglify": "^2.0.1",
"sanctuary": "0.7.x",

@@ -80,0 +88,0 @@ "sinon": "^1.17.4",

@@ -103,3 +103,3 @@ Ramda

```html
<script src="//cdnjs.cloudflare.com/ajax/libs/ramda/0.24.0/ramda.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/ramda/0.24.1/ramda.min.js"></script>
```

@@ -110,3 +110,3 @@

```html
<script src="//cdn.jsdelivr.net/ramda/0.24.0/ramda.min.js"></script>
<script src="//cdn.jsdelivr.net/ramda/0.24.1/ramda.min.js"></script>
<script src="//cdn.jsdelivr.net/ramda/0.24/ramda.min.js"></script>

@@ -187,3 +187,4 @@ <script src="//cdn.jsdelivr.net/ramda/latest/ramda.min.js"></script>

[Chinese(中文)](http://ramda.cn/)
- [Chinese(中文)](http://ramda.cn/)
- [Ukrainian(Українська)](https://github.com/ivanzusko/ramda)

@@ -190,0 +191,0 @@

@@ -27,2 +27,2 @@ /**

*/
module.exports = {'@@functional/placeholder': true};
module.exports = { '@@functional/placeholder': true };

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -21,4 +20,7 @@ * Adds two values.

*/
module.exports = _curry2(function add(a, b) {
var add = /*#__PURE__*/_curry2(function add(a, b) {
return Number(a) + Number(b);
});
module.exports = add;

@@ -1,6 +0,7 @@

var _concat = require('./internal/_concat');
var _curry1 = require('./internal/_curry1');
var curryN = require('./curryN');
var _concat = /*#__PURE__*/require('./internal/_concat');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var curryN = /*#__PURE__*/require('./curryN');
/**

@@ -30,4 +31,6 @@ * Creates a new list iteration function from an existing one by adding two new

*/
module.exports = _curry1(function addIndex(fn) {
return curryN(fn.length, function() {
var addIndex = /*#__PURE__*/_curry1(function addIndex(fn) {
return curryN(fn.length, function () {
var idx = 0;

@@ -37,3 +40,3 @@ var origFn = arguments[0];

var args = Array.prototype.slice.call(arguments, 0);
args[0] = function() {
args[0] = function () {
var result = origFn.apply(this, _concat(arguments, [idx, list]));

@@ -46,1 +49,2 @@ idx += 1;

});
module.exports = addIndex;

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

var _concat = require('./internal/_concat');
var _curry3 = require('./internal/_curry3');
var _concat = /*#__PURE__*/require('./internal/_concat');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');

@@ -30,3 +30,5 @@ /**

*/
module.exports = _curry3(function adjust(fn, idx, list) {
var adjust = /*#__PURE__*/_curry3(function adjust(fn, idx, list) {
if (idx >= list.length || idx < -list.length) {

@@ -41,1 +43,2 @@ return list;

});
module.exports = adjust;

@@ -1,6 +0,7 @@

var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _xall = require('./internal/_xall');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _xall = /*#__PURE__*/require('./internal/_xall');
/**

@@ -30,3 +31,5 @@ * Returns `true` if all elements of the list match the predicate, `false` if

*/
module.exports = _curry2(_dispatchable(['all'], _xall, function all(fn, list) {
var all = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['all'], _xall, function all(fn, list) {
var idx = 0;

@@ -41,1 +44,2 @@ while (idx < list.length) {

}));
module.exports = all;

@@ -1,8 +0,11 @@

var _curry1 = require('./internal/_curry1');
var curryN = require('./curryN');
var max = require('./max');
var pluck = require('./pluck');
var reduce = require('./reduce');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var curryN = /*#__PURE__*/require('./curryN');
var max = /*#__PURE__*/require('./max');
var pluck = /*#__PURE__*/require('./pluck');
var reduce = /*#__PURE__*/require('./reduce');
/**

@@ -33,4 +36,6 @@ * Takes a list of predicates and returns a predicate that returns true for a

*/
module.exports = _curry1(function allPass(preds) {
return curryN(reduce(max, 0, pluck('length', preds)), function() {
var allPass = /*#__PURE__*/_curry1(function allPass(preds) {
return curryN(reduce(max, 0, pluck('length', preds)), function () {
var idx = 0;

@@ -47,1 +52,2 @@ var len = preds.length;

});
module.exports = allPass;

@@ -1,4 +0,3 @@

var _curry1 = require('./internal/_curry1');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
/**

@@ -23,6 +22,9 @@ * Returns a function that always returns the given value. Note that for

*/
module.exports = _curry1(function always(val) {
return function() {
var always = /*#__PURE__*/_curry1(function always(val) {
return function () {
return val;
};
});
module.exports = always;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -23,4 +22,7 @@ * Returns `true` if both arguments are `true`; `false` otherwise.

*/
module.exports = _curry2(function and(a, b) {
var and = /*#__PURE__*/_curry2(function and(a, b) {
return a && b;
});
module.exports = and;

@@ -1,6 +0,7 @@

var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _xany = require('./internal/_xany');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _xany = /*#__PURE__*/require('./internal/_xany');
/**

@@ -31,3 +32,5 @@ * Returns `true` if at least one of elements of the list match the predicate,

*/
module.exports = _curry2(_dispatchable(['any'], _xany, function any(fn, list) {
var any = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['any'], _xany, function any(fn, list) {
var idx = 0;

@@ -42,1 +45,2 @@ while (idx < list.length) {

}));
module.exports = any;

@@ -1,8 +0,11 @@

var _curry1 = require('./internal/_curry1');
var curryN = require('./curryN');
var max = require('./max');
var pluck = require('./pluck');
var reduce = require('./reduce');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var curryN = /*#__PURE__*/require('./curryN');
var max = /*#__PURE__*/require('./max');
var pluck = /*#__PURE__*/require('./pluck');
var reduce = /*#__PURE__*/require('./reduce');
/**

@@ -34,4 +37,6 @@ * Takes a list of predicates and returns a predicate that returns true for a

*/
module.exports = _curry1(function anyPass(preds) {
return curryN(reduce(max, 0, pluck('length', preds)), function() {
var anyPass = /*#__PURE__*/_curry1(function anyPass(preds) {
return curryN(reduce(max, 0, pluck('length', preds)), function () {
var idx = 0;

@@ -48,1 +53,2 @@ var len = preds.length;

});
module.exports = anyPass;

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

var _concat = require('./internal/_concat');
var _curry2 = require('./internal/_curry2');
var _reduce = require('./internal/_reduce');
var map = require('./map');
var _concat = /*#__PURE__*/require('./internal/_concat');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _reduce = /*#__PURE__*/require('./internal/_reduce');
var map = /*#__PURE__*/require('./map');
/**

@@ -19,2 +21,3 @@ * ap applies a list of functions to a list of values.

* @sig Apply f => f (a -> b) -> f a -> f b
* @sig (a -> b -> c) -> (a -> b) -> (a -> c)
* @param {*} applyF

@@ -27,15 +30,19 @@ * @param {*} applyX

* R.ap([R.concat('tasty '), R.toUpper], ['pizza', 'salad']); //=> ["tasty pizza", "tasty salad", "PIZZA", "SALAD"]
*
* // R.ap can also be used as S combinator
* // when only two functions are passed
* R.ap(R.concat, R.toUpper)('Ramda') //=> 'RamdaRAMDA'
* @symb R.ap([f, g], [a, b]) = [f(a), f(b), g(a), g(b)]
*/
module.exports = _curry2(function ap(applyF, applyX) {
return (
typeof applyX['fantasy-land/ap'] === 'function' ?
applyX['fantasy-land/ap'](applyF) :
typeof applyF.ap === 'function' ?
applyF.ap(applyX) :
typeof applyF === 'function' ?
function(x) { return applyF(x)(applyX(x)); } :
// else
_reduce(function(acc, f) { return _concat(acc, map(f, applyX)); }, [], applyF)
);
var ap = /*#__PURE__*/_curry2(function ap(applyF, applyX) {
return typeof applyX['fantasy-land/ap'] === 'function' ? applyX['fantasy-land/ap'](applyF) : typeof applyF.ap === 'function' ? applyF.ap(applyX) : typeof applyF === 'function' ? function (x) {
return applyF(x)(applyX(x));
} :
// else
_reduce(function (acc, f) {
return _concat(acc, map(f, applyX));
}, [], applyF);
});
module.exports = ap;

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

var _aperture = require('./internal/_aperture');
var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _xaperture = require('./internal/_xaperture');
var _aperture = /*#__PURE__*/require('./internal/_aperture');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _xaperture = /*#__PURE__*/require('./internal/_xaperture');
/**

@@ -28,2 +30,5 @@ * Returns a new list, composed of n-tuples of consecutive elements. If `n` is

*/
module.exports = _curry2(_dispatchable([], _xaperture, _aperture));
var aperture = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable([], _xaperture, _aperture));
module.exports = aperture;

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

var _concat = require('./internal/_concat');
var _curry2 = require('./internal/_curry2');
var _concat = /*#__PURE__*/require('./internal/_concat');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');

@@ -25,4 +25,7 @@ /**

*/
module.exports = _curry2(function append(el, list) {
var append = /*#__PURE__*/_curry2(function append(el, list) {
return _concat(list, [el]);
});
module.exports = append;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -24,4 +23,7 @@ * Applies function `fn` to the argument list `args`. This is useful for

*/
module.exports = _curry2(function apply(fn, args) {
var apply = /*#__PURE__*/_curry2(function apply(fn, args) {
return fn.apply(this, args);
});
module.exports = apply;

@@ -1,11 +0,17 @@

var _curry1 = require('./internal/_curry1');
var apply = require('./apply');
var curryN = require('./curryN');
var map = require('./map');
var max = require('./max');
var pluck = require('./pluck');
var reduce = require('./reduce');
var values = require('./values');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var apply = /*#__PURE__*/require('./apply');
var curryN = /*#__PURE__*/require('./curryN');
var map = /*#__PURE__*/require('./map');
var max = /*#__PURE__*/require('./max');
var pluck = /*#__PURE__*/require('./pluck');
var reduce = /*#__PURE__*/require('./reduce');
var values = /*#__PURE__*/require('./values');
/**

@@ -30,16 +36,21 @@ * Given a spec object recursively mapping properties to functions, creates a

* var getMetrics = R.applySpec({
* sum: R.add,
* nested: { mul: R.multiply }
* });
* sum: R.add,
* nested: { mul: R.multiply }
* });
* getMetrics(2, 4); // => { sum: 6, nested: { mul: 8 } }
* @symb R.applySpec({ x: f, y: { z: g } })(a, b) = { x: f(a, b), y: { z: g(a, b) } }
*/
module.exports = _curry1(function applySpec(spec) {
spec = map(function(v) { return typeof v == 'function' ? v : applySpec(v); },
spec);
return curryN(reduce(max, 0, pluck('length', values(spec))),
function() {
var args = arguments;
return map(function(f) { return apply(f, args); }, spec);
});
var applySpec = /*#__PURE__*/_curry1(function applySpec(spec) {
spec = map(function (v) {
return typeof v == 'function' ? v : applySpec(v);
}, spec);
return curryN(reduce(max, 0, pluck('length', values(spec))), function () {
var args = arguments;
return map(function (f) {
return apply(f, args);
}, spec);
});
});
module.exports = applySpec;

@@ -1,4 +0,3 @@

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**

@@ -26,3 +25,5 @@ * Makes an ascending comparator function out of a function that returns a value

*/
module.exports = _curry3(function ascend(fn, a, b) {
var ascend = /*#__PURE__*/_curry3(function ascend(fn, a, b) {
var aa = fn(a);

@@ -32,1 +33,2 @@ var bb = fn(b);

});
module.exports = ascend;

@@ -1,4 +0,3 @@

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**

@@ -24,3 +23,5 @@ * Makes a shallow clone of an object, setting or overriding the specified

*/
module.exports = _curry3(function assoc(prop, val, obj) {
var assoc = /*#__PURE__*/_curry3(function assoc(prop, val, obj) {
var result = {};

@@ -33,1 +34,2 @@ for (var p in obj) {

});
module.exports = assoc;

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

var _curry3 = require('./internal/_curry3');
var _has = require('./internal/_has');
var _isArray = require('./internal/_isArray');
var _isInteger = require('./internal/_isInteger');
var assoc = require('./assoc');
var isNil = require('./isNil');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var _has = /*#__PURE__*/require('./internal/_has');
var _isArray = /*#__PURE__*/require('./internal/_isArray');
var _isInteger = /*#__PURE__*/require('./internal/_isInteger');
var assoc = /*#__PURE__*/require('./assoc');
var isNil = /*#__PURE__*/require('./isNil');
/**

@@ -33,3 +37,5 @@ * Makes a shallow clone of an object, setting or overriding the nodes required

*/
module.exports = _curry3(function assocPath(path, val, obj) {
var assocPath = /*#__PURE__*/_curry3(function assocPath(path, val, obj) {
if (path.length === 0) {

@@ -40,3 +46,3 @@ return val;

if (path.length > 1) {
var nextObj = (!isNil(obj) && _has(idx, obj)) ? obj[idx] : _isInteger(path[1]) ? [] : {};
var nextObj = !isNil(obj) && _has(idx, obj) ? obj[idx] : _isInteger(path[1]) ? [] : {};
val = assocPath(Array.prototype.slice.call(path, 1), val, nextObj);

@@ -52,1 +58,2 @@ }

});
module.exports = assocPath;

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

var _curry1 = require('./internal/_curry1');
var nAry = require('./nAry');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var nAry = /*#__PURE__*/require('./nAry');

@@ -33,4 +33,7 @@ /**

*/
module.exports = _curry1(function binary(fn) {
var binary = /*#__PURE__*/_curry1(function binary(fn) {
return nAry(2, fn);
});
module.exports = binary;

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

var _arity = require('./internal/_arity');
var _curry2 = require('./internal/_curry2');
var _arity = /*#__PURE__*/require('./internal/_arity');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');

@@ -27,6 +27,9 @@ /**

*/
module.exports = _curry2(function bind(fn, thisObj) {
return _arity(fn.length, function() {
var bind = /*#__PURE__*/_curry2(function bind(fn, thisObj) {
return _arity(fn.length, function () {
return fn.apply(thisObj, arguments);
});
});
module.exports = bind;

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

var _curry2 = require('./internal/_curry2');
var _isFunction = require('./internal/_isFunction');
var and = require('./and');
var lift = require('./lift');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _isFunction = /*#__PURE__*/require('./internal/_isFunction');
var and = /*#__PURE__*/require('./and');
var lift = /*#__PURE__*/require('./lift');
/**

@@ -35,8 +37,9 @@ * A function which calls the two provided functions and returns the `&&`

*/
module.exports = _curry2(function both(f, g) {
return _isFunction(f) ?
function _both() {
return f.apply(this, arguments) && g.apply(this, arguments);
} :
lift(and)(f, g);
var both = /*#__PURE__*/_curry2(function both(f, g) {
return _isFunction(f) ? function _both() {
return f.apply(this, arguments) && g.apply(this, arguments);
} : lift(and)(f, g);
});
module.exports = both;

@@ -1,4 +0,3 @@

var curry = require('./curry');
var curry = /*#__PURE__*/require('./curry');
/**

@@ -36,4 +35,7 @@ * Returns the result of calling its first argument with the remaining

*/
module.exports = curry(function call(fn) {
var call = /*#__PURE__*/curry(function call(fn) {
return fn.apply(this, Array.prototype.slice.call(arguments, 1));
});
module.exports = call;

@@ -1,8 +0,11 @@

var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _makeFlat = require('./internal/_makeFlat');
var _xchain = require('./internal/_xchain');
var map = require('./map');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _makeFlat = /*#__PURE__*/require('./internal/_makeFlat');
var _xchain = /*#__PURE__*/require('./internal/_xchain');
var map = /*#__PURE__*/require('./map');
/**

@@ -30,7 +33,12 @@ * `chain` maps a function over a list and concatenates the results. `chain`

*/
module.exports = _curry2(_dispatchable(['fantasy-land/chain', 'chain'], _xchain, function chain(fn, monad) {
var chain = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['fantasy-land/chain', 'chain'], _xchain, function chain(fn, monad) {
if (typeof monad === 'function') {
return function(x) { return fn(monad(x))(x); };
return function (x) {
return fn(monad(x))(x);
};
}
return _makeFlat(false)(map(fn, monad));
}));
module.exports = chain;

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

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');

@@ -23,9 +23,10 @@ /**

*/
module.exports = _curry3(function clamp(min, max, value) {
var clamp = /*#__PURE__*/_curry3(function clamp(min, max, value) {
if (min > max) {
throw new Error('min must not be greater than max in clamp(min, max, value)');
}
return value < min ? min :
value > max ? max :
value;
return value < min ? min : value > max ? max : value;
});
module.exports = clamp;

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

var _clone = require('./internal/_clone');
var _curry1 = require('./internal/_curry1');
var _clone = /*#__PURE__*/require('./internal/_clone');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');

@@ -26,6 +26,7 @@ /**

*/
module.exports = _curry1(function clone(value) {
return value != null && typeof value.clone === 'function' ?
value.clone() :
_clone(value, [], [], true);
var clone = /*#__PURE__*/_curry1(function clone(value) {
return value != null && typeof value.clone === 'function' ? value.clone() : _clone(value, [], [], true);
});
module.exports = clone;

@@ -1,4 +0,3 @@

var _curry1 = require('./internal/_curry1');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
/**

@@ -12,3 +11,3 @@ * Makes a comparator function out of a function that reports whether the first

* @category Function
* @sig (a, b -> Boolean) -> (a, b -> Number)
* @sig ((a, b) -> Boolean) -> ((a, b) -> Number)
* @param {Function} pred A predicate function of arity two which will return `true` if the first argument

@@ -25,6 +24,9 @@ * is less than the second, `false` otherwise

*/
module.exports = _curry1(function comparator(pred) {
return function(a, b) {
var comparator = /*#__PURE__*/_curry1(function comparator(pred) {
return function (a, b) {
return pred(a, b) ? -1 : pred(b, a) ? 1 : 0;
};
});
module.exports = comparator;

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

var lift = require('./lift');
var not = require('./not');
var lift = /*#__PURE__*/require('./lift');
var not = /*#__PURE__*/require('./not');

@@ -27,2 +27,5 @@ /**

*/
module.exports = lift(not);
var complement = /*#__PURE__*/lift(not);
module.exports = complement;

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

var pipe = require('./pipe');
var reverse = require('./reverse');
var pipe = /*#__PURE__*/require('./pipe');
var reverse = /*#__PURE__*/require('./reverse');

@@ -29,3 +29,5 @@ /**

*/
module.exports = function compose() {
function compose() {
if (arguments.length === 0) {

@@ -35,2 +37,3 @@ throw new Error('compose requires at least one argument');

return pipe.apply(this, reverse(arguments));
};
}
module.exports = compose;

@@ -1,6 +0,7 @@

var chain = require('./chain');
var compose = require('./compose');
var map = require('./map');
var chain = /*#__PURE__*/require('./chain');
var compose = /*#__PURE__*/require('./compose');
var map = /*#__PURE__*/require('./map');
/**

@@ -10,3 +11,3 @@ * Returns the right-to-left Kleisli composition of the provided functions,

*
* `R.composeK(h, g, f)` is equivalent to `R.compose(R.chain(h), R.chain(g), R.chain(f))`.
* `R.composeK(h, g, f)` is equivalent to `R.compose(R.chain(h), R.chain(g), f)`.
*

@@ -37,3 +38,5 @@ * @func

*/
module.exports = function composeK() {
function composeK() {
if (arguments.length === 0) {

@@ -45,2 +48,3 @@ throw new Error('composeK requires at least one argument');

return compose(compose.apply(this, map(chain, init)), last);
};
}
module.exports = composeK;

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

var pipeP = require('./pipeP');
var reverse = require('./reverse');
var pipeP = /*#__PURE__*/require('./pipeP');
var reverse = /*#__PURE__*/require('./reverse');

@@ -39,3 +39,5 @@ /**

*/
module.exports = function composeP() {
function composeP() {
if (arguments.length === 0) {

@@ -45,2 +47,3 @@ throw new Error('composeP requires at least one argument');

return pipeP.apply(this, reverse(arguments));
};
}
module.exports = composeP;

@@ -1,8 +0,11 @@

var _curry2 = require('./internal/_curry2');
var _isArray = require('./internal/_isArray');
var _isFunction = require('./internal/_isFunction');
var _isString = require('./internal/_isString');
var toString = require('./toString');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _isArray = /*#__PURE__*/require('./internal/_isArray');
var _isFunction = /*#__PURE__*/require('./internal/_isFunction');
var _isString = /*#__PURE__*/require('./internal/_isString');
var toString = /*#__PURE__*/require('./toString');
/**

@@ -34,3 +37,5 @@ * Returns the result of concatenating the given lists or strings.

*/
module.exports = _curry2(function concat(a, b) {
var concat = /*#__PURE__*/_curry2(function concat(a, b) {
if (_isArray(a)) {

@@ -56,1 +61,2 @@ if (_isArray(b)) {

});
module.exports = concat;

@@ -1,8 +0,11 @@

var _arity = require('./internal/_arity');
var _curry1 = require('./internal/_curry1');
var map = require('./map');
var max = require('./max');
var reduce = require('./reduce');
var _arity = /*#__PURE__*/require('./internal/_arity');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var map = /*#__PURE__*/require('./map');
var max = /*#__PURE__*/require('./max');
var reduce = /*#__PURE__*/require('./reduce');
/**

@@ -34,7 +37,9 @@ * Returns a function, `fn`, which encapsulates `if/else, if/else, ...` logic.

*/
module.exports = _curry1(function cond(pairs) {
var arity = reduce(max,
0,
map(function(pair) { return pair[0].length; }, pairs));
return _arity(arity, function() {
var cond = /*#__PURE__*/_curry1(function cond(pairs) {
var arity = reduce(max, 0, map(function (pair) {
return pair[0].length;
}, pairs));
return _arity(arity, function () {
var idx = 0;

@@ -49,1 +54,2 @@ while (idx < pairs.length) {

});
module.exports = cond;

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

var _curry1 = require('./internal/_curry1');
var constructN = require('./constructN');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var constructN = /*#__PURE__*/require('./constructN');

@@ -37,4 +37,7 @@ /**

*/
module.exports = _curry1(function construct(Fn) {
var construct = /*#__PURE__*/_curry1(function construct(Fn) {
return constructN(Fn.length, Fn);
});
module.exports = construct;

@@ -1,6 +0,7 @@

var _curry2 = require('./internal/_curry2');
var curry = require('./curry');
var nAry = require('./nAry');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var curry = /*#__PURE__*/require('./curry');
var nAry = /*#__PURE__*/require('./nAry');
/**

@@ -24,20 +25,22 @@ * Wraps a constructor function inside a curried function that can be called

* this.ingredients = arguments;
* };
* Salad.prototype.recipe = function() {
* var instructions = R.map((ingredient) => (
* 'Add a whollop of ' + ingredient, this.ingredients)
* )
* return R.join('\n', instructions)
* }
*
* var ThreeLayerSalad = R.constructN(3, Salad)
* Salad.prototype.recipe = function() {
* var instructions = R.map(ingredient => 'Add a dollop of ' + ingredient, this.ingredients);
* return R.join('\n', instructions);
* };
*
* var ThreeLayerSalad = R.constructN(3, Salad);
*
* // Notice we no longer need the 'new' keyword, and the constructor is curried for 3 arguments.
* var salad = ThreeLayerSalad('Mayonnaise')('Potato Chips')('Ketchup')
* var salad = ThreeLayerSalad('Mayonnaise')('Potato Chips')('Ketchup');
*
* console.log(salad.recipe());
* // Add a whollop of Mayonnaise
* // Add a whollop of Potato Chips
* // Add a whollop of Potato Ketchup
* // Add a dollop of Mayonnaise
* // Add a dollop of Potato Chips
* // Add a dollop of Ketchup
*/
module.exports = _curry2(function constructN(n, Fn) {
var constructN = /*#__PURE__*/_curry2(function constructN(n, Fn) {
if (n > 10) {

@@ -47,18 +50,31 @@ throw new Error('Constructor with greater than ten arguments');

if (n === 0) {
return function() { return new Fn(); };
return function () {
return new Fn();
};
}
return curry(nAry(n, function($0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
return curry(nAry(n, function ($0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
switch (arguments.length) {
case 1: return new Fn($0);
case 2: return new Fn($0, $1);
case 3: return new Fn($0, $1, $2);
case 4: return new Fn($0, $1, $2, $3);
case 5: return new Fn($0, $1, $2, $3, $4);
case 6: return new Fn($0, $1, $2, $3, $4, $5);
case 7: return new Fn($0, $1, $2, $3, $4, $5, $6);
case 8: return new Fn($0, $1, $2, $3, $4, $5, $6, $7);
case 9: return new Fn($0, $1, $2, $3, $4, $5, $6, $7, $8);
case 10: return new Fn($0, $1, $2, $3, $4, $5, $6, $7, $8, $9);
case 1:
return new Fn($0);
case 2:
return new Fn($0, $1);
case 3:
return new Fn($0, $1, $2);
case 4:
return new Fn($0, $1, $2, $3);
case 5:
return new Fn($0, $1, $2, $3, $4);
case 6:
return new Fn($0, $1, $2, $3, $4, $5);
case 7:
return new Fn($0, $1, $2, $3, $4, $5, $6);
case 8:
return new Fn($0, $1, $2, $3, $4, $5, $6, $7);
case 9:
return new Fn($0, $1, $2, $3, $4, $5, $6, $7, $8);
case 10:
return new Fn($0, $1, $2, $3, $4, $5, $6, $7, $8, $9);
}
}));
});
module.exports = constructN;

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

var _contains = require('./internal/_contains');
var _curry2 = require('./internal/_curry2');
var _contains = /*#__PURE__*/require('./internal/_contains');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');

@@ -25,2 +25,5 @@ /**

*/
module.exports = _curry2(_contains);
var contains = /*#__PURE__*/_curry2(_contains);
module.exports = contains;

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

var _curry2 = require('./internal/_curry2');
var _map = require('./internal/_map');
var curryN = require('./curryN');
var max = require('./max');
var pluck = require('./pluck');
var reduce = require('./reduce');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _map = /*#__PURE__*/require('./internal/_map');
var curryN = /*#__PURE__*/require('./curryN');
var max = /*#__PURE__*/require('./max');
var pluck = /*#__PURE__*/require('./pluck');
var reduce = /*#__PURE__*/require('./reduce');
/**

@@ -20,3 +24,3 @@ * Accepts a converging function and a list of branching functions and returns

* @category Function
* @sig (x1 -> x2 -> ... -> z) -> [(a -> b -> ... -> x1), (a -> b -> ... -> x2), ...] -> (a -> b -> ... -> z)
* @sig ((x1, x2, ...) -> z) -> [((a, b, ...) -> x1), ((a, b, ...) -> x2), ...] -> (a -> b -> ... -> z)
* @param {Function} after A function. `after` will be invoked with the return values of

@@ -37,7 +41,9 @@ * `fn1` and `fn2` as its arguments.

*/
module.exports = _curry2(function converge(after, fns) {
return curryN(reduce(max, 0, pluck('length', fns)), function() {
var converge = /*#__PURE__*/_curry2(function converge(after, fns) {
return curryN(reduce(max, 0, pluck('length', fns)), function () {
var args = arguments;
var context = this;
return after.apply(context, _map(function(fn) {
return after.apply(context, _map(function (fn) {
return fn.apply(context, args);

@@ -47,1 +53,2 @@ }, fns));

});
module.exports = converge;

@@ -1,4 +0,3 @@

var reduceBy = require('./reduceBy');
var reduceBy = /*#__PURE__*/require('./reduceBy');
/**

@@ -28,2 +27,7 @@ * Counts the elements of a list according to how many match each value of a

*/
module.exports = reduceBy(function(acc, elem) { return acc + 1; }, 0);
var countBy = /*#__PURE__*/reduceBy(function (acc, elem) {
return acc + 1;
}, 0);
module.exports = countBy;

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

var _curry1 = require('./internal/_curry1');
var curryN = require('./curryN');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var curryN = /*#__PURE__*/require('./curryN');

@@ -46,4 +46,7 @@ /**

*/
module.exports = _curry1(function curry(fn) {
var curry = /*#__PURE__*/_curry1(function curry(fn) {
return curryN(fn.length, fn);
});
module.exports = curry;

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

var _arity = require('./internal/_arity');
var _curry1 = require('./internal/_curry1');
var _curry2 = require('./internal/_curry2');
var _curryN = require('./internal/_curryN');
var _arity = /*#__PURE__*/require('./internal/_arity');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _curryN = /*#__PURE__*/require('./internal/_curryN');
/**

@@ -49,3 +51,5 @@ * Returns a curried equivalent of the provided function, with the specified

*/
module.exports = _curry2(function curryN(length, fn) {
var curryN = /*#__PURE__*/_curry2(function curryN(length, fn) {
if (length === 1) {

@@ -56,1 +60,2 @@ return _curry1(fn);

});
module.exports = curryN;

@@ -1,4 +0,3 @@

var add = require('./add');
var add = /*#__PURE__*/require('./add');
/**

@@ -19,2 +18,5 @@ * Decrements its argument.

*/
module.exports = add(-1);
var dec = /*#__PURE__*/add(-1);
module.exports = dec;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -26,4 +25,7 @@ * Returns the second argument if it is not `null`, `undefined` or `NaN`;

*/
module.exports = _curry2(function defaultTo(d, v) {
var defaultTo = /*#__PURE__*/_curry2(function defaultTo(d, v) {
return v == null || v !== v ? d : v;
});
module.exports = defaultTo;

@@ -1,4 +0,3 @@

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**

@@ -26,3 +25,5 @@ * Makes a descending comparator function out of a function that returns a value

*/
module.exports = _curry3(function descend(fn, a, b) {
var descend = /*#__PURE__*/_curry3(function descend(fn, a, b) {
var aa = fn(a);

@@ -32,1 +33,2 @@ var bb = fn(b);

});
module.exports = descend;

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

var _contains = require('./internal/_contains');
var _curry2 = require('./internal/_curry2');
var _contains = /*#__PURE__*/require('./internal/_contains');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');

@@ -25,3 +25,5 @@ /**

*/
module.exports = _curry2(function difference(first, second) {
var difference = /*#__PURE__*/_curry2(function difference(first, second) {
var out = [];

@@ -38,1 +40,2 @@ var idx = 0;

});
module.exports = difference;

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

var _containsWith = require('./internal/_containsWith');
var _curry3 = require('./internal/_curry3');
var _containsWith = /*#__PURE__*/require('./internal/_containsWith');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');

@@ -27,3 +27,5 @@ /**

*/
module.exports = _curry3(function differenceWith(pred, first, second) {
var differenceWith = /*#__PURE__*/_curry3(function differenceWith(pred, first, second) {
var out = [];

@@ -33,4 +35,3 @@ var idx = 0;

while (idx < firstLen) {
if (!_containsWith(pred, first[idx], second) &&
!_containsWith(pred, first[idx], out)) {
if (!_containsWith(pred, first[idx], second) && !_containsWith(pred, first[idx], out)) {
out.push(first[idx]);

@@ -42,1 +43,2 @@ }

});
module.exports = differenceWith;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -20,3 +19,5 @@ * Returns a new object that does not contain a `prop` property.

*/
module.exports = _curry2(function dissoc(prop, obj) {
var dissoc = /*#__PURE__*/_curry2(function dissoc(prop, obj) {
var result = {};

@@ -29,1 +30,2 @@ for (var p in obj) {

});
module.exports = dissoc;

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

var _curry2 = require('./internal/_curry2');
var _isInteger = require('./internal/_isInteger');
var assoc = require('./assoc');
var dissoc = require('./dissoc');
var remove = require('./remove');
var update = require('./update');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _isInteger = /*#__PURE__*/require('./internal/_isInteger');
var assoc = /*#__PURE__*/require('./assoc');
var dissoc = /*#__PURE__*/require('./dissoc');
var remove = /*#__PURE__*/require('./remove');
var update = /*#__PURE__*/require('./update');
/**

@@ -28,3 +32,5 @@ * Makes a shallow clone of an object, omitting the property at the given path.

*/
module.exports = _curry2(function dissocPath(path, obj) {
var dissocPath = /*#__PURE__*/_curry2(function dissocPath(path, obj) {
switch (path.length) {

@@ -47,1 +53,2 @@ case 0:

});
module.exports = dissocPath;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -26,2 +25,7 @@ * Divides two numbers. Equivalent to `a / b`.

*/
module.exports = _curry2(function divide(a, b) { return a / b; });
var divide = /*#__PURE__*/_curry2(function divide(a, b) {
return a / b;
});
module.exports = divide;

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

var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _xdrop = require('./internal/_xdrop');
var slice = require('./slice');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _xdrop = /*#__PURE__*/require('./internal/_xdrop');
var slice = /*#__PURE__*/require('./slice');
/**

@@ -31,4 +33,7 @@ * Returns all but the first `n` elements of the given list, string, or

*/
module.exports = _curry2(_dispatchable(['drop'], _xdrop, function drop(n, xs) {
var drop = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['drop'], _xdrop, function drop(n, xs) {
return slice(Math.max(0, n), Infinity, xs);
}));
module.exports = drop;

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

var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _dropLast = require('./internal/_dropLast');
var _xdropLast = require('./internal/_xdropLast');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _dropLast = /*#__PURE__*/require('./internal/_dropLast');
var _xdropLast = /*#__PURE__*/require('./internal/_xdropLast');
/**

@@ -28,2 +30,5 @@ * Returns a list containing all but the last `n` elements of the given `list`.

*/
module.exports = _curry2(_dispatchable([], _xdropLast, _dropLast));
var dropLast = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable([], _xdropLast, _dropLast));
module.exports = dropLast;

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

var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _dropLastWhile = require('./internal/_dropLastWhile');
var _xdropLastWhile = require('./internal/_xdropLastWhile');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _dropLastWhile = /*#__PURE__*/require('./internal/_dropLastWhile');
var _xdropLastWhile = /*#__PURE__*/require('./internal/_xdropLastWhile');
/**

@@ -29,2 +31,5 @@ * Returns a new list excluding all the tailing elements of a given list which

*/
module.exports = _curry2(_dispatchable([], _xdropLastWhile, _dropLastWhile));
var dropLastWhile = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable([], _xdropLastWhile, _dropLastWhile));
module.exports = dropLastWhile;

@@ -1,8 +0,11 @@

var _curry1 = require('./internal/_curry1');
var _dispatchable = require('./internal/_dispatchable');
var _xdropRepeatsWith = require('./internal/_xdropRepeatsWith');
var dropRepeatsWith = require('./dropRepeatsWith');
var equals = require('./equals');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _xdropRepeatsWith = /*#__PURE__*/require('./internal/_xdropRepeatsWith');
var dropRepeatsWith = /*#__PURE__*/require('./dropRepeatsWith');
var equals = /*#__PURE__*/require('./equals');
/**

@@ -26,2 +29,5 @@ * Returns a new list without any consecutively repeating elements.

*/
module.exports = _curry1(_dispatchable([], _xdropRepeatsWith(equals), dropRepeatsWith(equals)));
var dropRepeats = /*#__PURE__*/_curry1( /*#__PURE__*/_dispatchable([], /*#__PURE__*/_xdropRepeatsWith(equals), /*#__PURE__*/dropRepeatsWith(equals)));
module.exports = dropRepeats;

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

var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _xdropRepeatsWith = require('./internal/_xdropRepeatsWith');
var last = require('./last');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _xdropRepeatsWith = /*#__PURE__*/require('./internal/_xdropRepeatsWith');
var last = /*#__PURE__*/require('./last');
/**

@@ -18,3 +20,3 @@ * Returns a new list without any consecutively repeating elements. Equality is

* @category List
* @sig (a, a -> Boolean) -> [a] -> [a]
* @sig ((a, a) -> Boolean) -> [a] -> [a]
* @param {Function} pred A predicate used to test whether two items are equal.

@@ -29,3 +31,5 @@ * @param {Array} list The array to consider.

*/
module.exports = _curry2(_dispatchable([], _xdropRepeatsWith, function dropRepeatsWith(pred, list) {
var dropRepeatsWith = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable([], _xdropRepeatsWith, function dropRepeatsWith(pred, list) {
var result = [];

@@ -45,2 +49,2 @@ var idx = 1;

}));
module.exports = dropRepeatsWith;

@@ -1,6 +0,7 @@

var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _xdropWhile = require('./internal/_xdropWhile');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _xdropWhile = /*#__PURE__*/require('./internal/_xdropWhile');
/**

@@ -31,3 +32,5 @@ * Returns a new list excluding the leading elements of a given list which

*/
module.exports = _curry2(_dispatchable(['dropWhile'], _xdropWhile, function dropWhile(pred, list) {
var dropWhile = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['dropWhile'], _xdropWhile, function dropWhile(pred, list) {
var idx = 0;

@@ -40,1 +43,2 @@ var len = list.length;

}));
module.exports = dropWhile;

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

var _curry2 = require('./internal/_curry2');
var _isFunction = require('./internal/_isFunction');
var lift = require('./lift');
var or = require('./or');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _isFunction = /*#__PURE__*/require('./internal/_isFunction');
var lift = /*#__PURE__*/require('./lift');
var or = /*#__PURE__*/require('./or');
/**

@@ -34,8 +36,9 @@ * A function wrapping calls to the two functions in an `||` operation,

*/
module.exports = _curry2(function either(f, g) {
return _isFunction(f) ?
function _either() {
return f.apply(this, arguments) || g.apply(this, arguments);
} :
lift(or)(f, g);
var either = /*#__PURE__*/_curry2(function either(f, g) {
return _isFunction(f) ? function _either() {
return f.apply(this, arguments) || g.apply(this, arguments);
} : lift(or)(f, g);
});
module.exports = either;

@@ -1,8 +0,11 @@

var _curry1 = require('./internal/_curry1');
var _isArguments = require('./internal/_isArguments');
var _isArray = require('./internal/_isArray');
var _isObject = require('./internal/_isObject');
var _isString = require('./internal/_isString');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var _isArguments = /*#__PURE__*/require('./internal/_isArguments');
var _isArray = /*#__PURE__*/require('./internal/_isArray');
var _isObject = /*#__PURE__*/require('./internal/_isObject');
var _isString = /*#__PURE__*/require('./internal/_isString');
/**

@@ -30,23 +33,11 @@ * Returns the empty value of its argument's type. Ramda defines the empty

*/
module.exports = _curry1(function empty(x) {
return (
(x != null && typeof x['fantasy-land/empty'] === 'function') ?
x['fantasy-land/empty']() :
(x != null && x.constructor != null && typeof x.constructor['fantasy-land/empty'] === 'function') ?
x.constructor['fantasy-land/empty']() :
(x != null && typeof x.empty === 'function') ?
x.empty() :
(x != null && x.constructor != null && typeof x.constructor.empty === 'function') ?
x.constructor.empty() :
_isArray(x) ?
[] :
_isString(x) ?
'' :
_isObject(x) ?
{} :
_isArguments(x) ?
(function() { return arguments; }()) :
// else
void 0
);
var empty = /*#__PURE__*/_curry1(function empty(x) {
return x != null && typeof x['fantasy-land/empty'] === 'function' ? x['fantasy-land/empty']() : x != null && x.constructor != null && typeof x.constructor['fantasy-land/empty'] === 'function' ? x.constructor['fantasy-land/empty']() : x != null && typeof x.empty === 'function' ? x.empty() : x != null && x.constructor != null && typeof x.constructor.empty === 'function' ? x.constructor.empty() : _isArray(x) ? [] : _isString(x) ? '' : _isObject(x) ? {} : _isArguments(x) ? function () {
return arguments;
}() :
// else
void 0;
});
module.exports = empty;

@@ -1,5 +0,7 @@

var _curry2 = require('./internal/_curry2');
var equals = require('./equals');
var takeLast = require('./takeLast');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var equals = /*#__PURE__*/require('./equals');
var takeLast = /*#__PURE__*/require('./takeLast');
/**

@@ -24,4 +26,7 @@ * Checks if a list ends with the provided values

*/
module.exports = _curry2(function(suffix, list) {
var endsWith = /*#__PURE__*/_curry2(function (suffix, list) {
return equals(takeLast(suffix.length, list), suffix);
});
module.exports = endsWith;

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

var _curry3 = require('./internal/_curry3');
var equals = require('./equals');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var equals = /*#__PURE__*/require('./equals');

@@ -22,4 +22,7 @@ /**

*/
module.exports = _curry3(function eqBy(f, x, y) {
var eqBy = /*#__PURE__*/_curry3(function eqBy(f, x, y) {
return equals(f(x), f(y));
});
module.exports = eqBy;

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

var _curry3 = require('./internal/_curry3');
var equals = require('./equals');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var equals = /*#__PURE__*/require('./equals');

@@ -26,4 +26,7 @@ /**

*/
module.exports = _curry3(function eqProps(prop, obj1, obj2) {
var eqProps = /*#__PURE__*/_curry3(function eqProps(prop, obj1, obj2) {
return equals(obj1[prop], obj2[prop]);
});
module.exports = eqProps;

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

var _curry2 = require('./internal/_curry2');
var _equals = require('./internal/_equals');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _equals = /*#__PURE__*/require('./internal/_equals');

@@ -30,4 +30,7 @@ /**

*/
module.exports = _curry2(function equals(a, b) {
var equals = /*#__PURE__*/_curry2(function equals(a, b) {
return _equals(a, b, [], []);
});
module.exports = equals;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -31,3 +30,5 @@ * Creates a new object by recursively evolving a shallow copy of `object`,

*/
module.exports = _curry2(function evolve(transformations, object) {
var evolve = /*#__PURE__*/_curry2(function evolve(transformations, object) {
var result = {};

@@ -38,7 +39,6 @@ var transformation, key, type;

type = typeof transformation;
result[key] = type === 'function' ? transformation(object[key])
: transformation && type === 'object' ? evolve(transformation, object[key])
: object[key];
result[key] = type === 'function' ? transformation(object[key]) : transformation && type === 'object' ? evolve(transformation, object[key]) : object[key];
}
return result;
});
module.exports = evolve;

@@ -1,4 +0,3 @@

var always = require('./always');
var always = /*#__PURE__*/require('./always');
/**

@@ -19,2 +18,5 @@ * A function that always returns `false`. Any passed in parameters are ignored.

*/
module.exports = always(false);
var F = /*#__PURE__*/always(false);
module.exports = F;

@@ -1,10 +0,15 @@

var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _filter = require('./internal/_filter');
var _isObject = require('./internal/_isObject');
var _reduce = require('./internal/_reduce');
var _xfilter = require('./internal/_xfilter');
var keys = require('./keys');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _filter = /*#__PURE__*/require('./internal/_filter');
var _isObject = /*#__PURE__*/require('./internal/_isObject');
var _reduce = /*#__PURE__*/require('./internal/_reduce');
var _xfilter = /*#__PURE__*/require('./internal/_xfilter');
var keys = /*#__PURE__*/require('./keys');
/**

@@ -37,14 +42,14 @@ * Takes a predicate and a `Filterable`, and returns a new filterable of the

*/
module.exports = _curry2(_dispatchable(['filter'], _xfilter, function(pred, filterable) {
return (
_isObject(filterable) ?
_reduce(function(acc, key) {
if (pred(filterable[key])) {
acc[key] = filterable[key];
}
return acc;
}, {}, keys(filterable)) :
// else
_filter(pred, filterable)
);
var filter = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['filter'], _xfilter, function (pred, filterable) {
return _isObject(filterable) ? _reduce(function (acc, key) {
if (pred(filterable[key])) {
acc[key] = filterable[key];
}
return acc;
}, {}, keys(filterable)) :
// else
_filter(pred, filterable);
}));
module.exports = filter;

@@ -1,6 +0,7 @@

var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _xfind = require('./internal/_xfind');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _xfind = /*#__PURE__*/require('./internal/_xfind');
/**

@@ -30,3 +31,5 @@ * Returns the first element of the list which matches the predicate, or

*/
module.exports = _curry2(_dispatchable(['find'], _xfind, function find(fn, list) {
var find = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['find'], _xfind, function find(fn, list) {
var idx = 0;

@@ -41,1 +44,2 @@ var len = list.length;

}));
module.exports = find;

@@ -1,6 +0,7 @@

var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _xfindIndex = require('./internal/_xfindIndex');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _xfindIndex = /*#__PURE__*/require('./internal/_xfindIndex');
/**

@@ -28,3 +29,5 @@ * Returns the index of the first element of the list which matches the

*/
module.exports = _curry2(_dispatchable([], _xfindIndex, function findIndex(fn, list) {
var findIndex = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable([], _xfindIndex, function findIndex(fn, list) {
var idx = 0;

@@ -40,1 +43,2 @@ var len = list.length;

}));
module.exports = findIndex;

@@ -1,6 +0,7 @@

var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _xfindLast = require('./internal/_xfindLast');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _xfindLast = /*#__PURE__*/require('./internal/_xfindLast');
/**

@@ -28,3 +29,5 @@ * Returns the last element of the list which matches the predicate, or

*/
module.exports = _curry2(_dispatchable([], _xfindLast, function findLast(fn, list) {
var findLast = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable([], _xfindLast, function findLast(fn, list) {
var idx = list.length - 1;

@@ -38,1 +41,2 @@ while (idx >= 0) {

}));
module.exports = findLast;

@@ -1,6 +0,7 @@

var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _xfindLastIndex = require('./internal/_xfindLastIndex');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _xfindLastIndex = /*#__PURE__*/require('./internal/_xfindLastIndex');
/**

@@ -28,3 +29,5 @@ * Returns the index of the last element of the list which matches the

*/
module.exports = _curry2(_dispatchable([], _xfindLastIndex, function findLastIndex(fn, list) {
var findLastIndex = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable([], _xfindLastIndex, function findLastIndex(fn, list) {
var idx = list.length - 1;

@@ -39,1 +42,2 @@ while (idx >= 0) {

}));
module.exports = findLastIndex;

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

var _curry1 = require('./internal/_curry1');
var _makeFlat = require('./internal/_makeFlat');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var _makeFlat = /*#__PURE__*/require('./internal/_makeFlat');

@@ -22,2 +22,5 @@ /**

*/
module.exports = _curry1(_makeFlat(true));
var flatten = /*#__PURE__*/_curry1( /*#__PURE__*/_makeFlat(true));
module.exports = flatten;

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

var _curry1 = require('./internal/_curry1');
var curry = require('./curry');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var curry = /*#__PURE__*/require('./curry');

@@ -13,3 +13,3 @@ /**

* @category Function
* @sig (a -> b -> c -> ... -> z) -> (b -> a -> c -> ... -> z)
* @sig ((a, b, c, ...) -> z) -> (b -> a -> c -> ... -> z)
* @param {Function} fn The function to invoke with its first two parameters reversed.

@@ -26,4 +26,6 @@ * @return {*} The result of invoking `fn` with its first two parameters' order reversed.

*/
module.exports = _curry1(function flip(fn) {
return curry(function(a, b) {
var flip = /*#__PURE__*/_curry1(function flip(fn) {
return curry(function (a, b) {
var args = Array.prototype.slice.call(arguments, 0);

@@ -35,1 +37,2 @@ args[0] = b;

});
module.exports = flip;

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

var _checkForMethod = require('./internal/_checkForMethod');
var _curry2 = require('./internal/_curry2');
var _checkForMethod = /*#__PURE__*/require('./internal/_checkForMethod');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');

@@ -39,3 +39,5 @@ /**

*/
module.exports = _curry2(_checkForMethod('forEach', function forEach(fn, list) {
var forEach = /*#__PURE__*/_curry2( /*#__PURE__*/_checkForMethod('forEach', function forEach(fn, list) {
var len = list.length;

@@ -49,1 +51,2 @@ var idx = 0;

}));
module.exports = forEach;

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

var _curry2 = require('./internal/_curry2');
var keys = require('./keys');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var keys = /*#__PURE__*/require('./keys');

@@ -27,3 +27,5 @@ /**

*/
module.exports = _curry2(function forEachObjIndexed(fn, obj) {
var forEachObjIndexed = /*#__PURE__*/_curry2(function forEachObjIndexed(fn, obj) {
var keyList = keys(obj);

@@ -38,1 +40,2 @@ var idx = 0;

});
module.exports = forEachObjIndexed;

@@ -1,4 +0,3 @@

var _curry1 = require('./internal/_curry1');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
/**

@@ -20,3 +19,5 @@ * Creates a new object from a list key-value pairs. If a key appears in

*/
module.exports = _curry1(function fromPairs(pairs) {
var fromPairs = /*#__PURE__*/_curry1(function fromPairs(pairs) {
var result = {};

@@ -30,1 +31,2 @@ var idx = 0;

});
module.exports = fromPairs;

@@ -1,5 +0,7 @@

var _checkForMethod = require('./internal/_checkForMethod');
var _curry2 = require('./internal/_curry2');
var reduceBy = require('./reduceBy');
var _checkForMethod = /*#__PURE__*/require('./internal/_checkForMethod');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var reduceBy = /*#__PURE__*/require('./reduceBy');
/**

@@ -45,3 +47,5 @@ * Splits a list into sub-lists stored in an object, based on the result of

*/
module.exports = _curry2(_checkForMethod('groupBy', reduceBy(function(acc, item) {
var groupBy = /*#__PURE__*/_curry2( /*#__PURE__*/_checkForMethod('groupBy', /*#__PURE__*/reduceBy(function (acc, item) {
if (acc == null) {

@@ -53,1 +57,2 @@ acc = [];

}, null)));
module.exports = groupBy;

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

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');

@@ -33,3 +33,5 @@ /**

*/
module.exports = _curry2(function(fn, list) {
var groupWith = /*#__PURE__*/_curry2(function (fn, list) {
var res = [];

@@ -48,1 +50,2 @@ var idx = 0;

});
module.exports = groupWith;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -25,2 +24,7 @@ * Returns `true` if the first argument is greater than the second; `false`

*/
module.exports = _curry2(function gt(a, b) { return a > b; });
var gt = /*#__PURE__*/_curry2(function gt(a, b) {
return a > b;
});
module.exports = gt;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -25,2 +24,7 @@ * Returns `true` if the first argument is greater than or equal to the second;

*/
module.exports = _curry2(function gte(a, b) { return a >= b; });
var gte = /*#__PURE__*/_curry2(function gte(a, b) {
return a >= b;
});
module.exports = gte;

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

var _curry2 = require('./internal/_curry2');
var _has = require('./internal/_has');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _has = /*#__PURE__*/require('./internal/_has');

@@ -29,2 +29,5 @@ /**

*/
module.exports = _curry2(_has);
var has = /*#__PURE__*/_curry2(_has);
module.exports = has;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -30,4 +29,7 @@ * Returns whether or not an object or its prototype chain has a property with

*/
module.exports = _curry2(function hasIn(prop, obj) {
var hasIn = /*#__PURE__*/_curry2(function hasIn(prop, obj) {
return prop in obj;
});
module.exports = hasIn;

@@ -1,4 +0,3 @@

var nth = require('./nth');
var nth = /*#__PURE__*/require('./nth');
/**

@@ -25,2 +24,5 @@ * Returns the first element of the given list or string. In some libraries

*/
module.exports = nth(0);
var head = /*#__PURE__*/nth(0);
module.exports = head;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -27,5 +26,8 @@ * Returns true if its arguments are identical, false otherwise. Values are

*/
module.exports = _curry2(function identical(a, b) {
var identical = /*#__PURE__*/_curry2(function identical(a, b) {
// SameValue algorithm
if (a === b) { // Steps 1-5, 7-10
if (a === b) {
// Steps 1-5, 7-10
// Steps 6.b-6.e: +0 != -0

@@ -38,1 +40,2 @@ return a !== 0 || 1 / a === 1 / b;

});
module.exports = identical;

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

var _curry1 = require('./internal/_curry1');
var _identity = require('./internal/_identity');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var _identity = /*#__PURE__*/require('./internal/_identity');

@@ -24,2 +24,5 @@ /**

*/
module.exports = _curry1(_identity);
var identity = /*#__PURE__*/_curry1(_identity);
module.exports = identity;

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

var _curry3 = require('./internal/_curry3');
var curryN = require('./curryN');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var curryN = /*#__PURE__*/require('./curryN');

@@ -30,8 +30,9 @@ /**

*/
module.exports = _curry3(function ifElse(condition, onTrue, onFalse) {
return curryN(Math.max(condition.length, onTrue.length, onFalse.length),
function _ifElse() {
return condition.apply(this, arguments) ? onTrue.apply(this, arguments) : onFalse.apply(this, arguments);
}
);
var ifElse = /*#__PURE__*/_curry3(function ifElse(condition, onTrue, onFalse) {
return curryN(Math.max(condition.length, onTrue.length, onFalse.length), function _ifElse() {
return condition.apply(this, arguments) ? onTrue.apply(this, arguments) : onFalse.apply(this, arguments);
});
});
module.exports = ifElse;

@@ -1,4 +0,3 @@

var add = require('./add');
var add = /*#__PURE__*/require('./add');
/**

@@ -19,2 +18,5 @@ * Increments its argument.

*/
module.exports = add(1);
var inc = /*#__PURE__*/add(1);
module.exports = inc;

@@ -1,4 +0,3 @@

var reduceBy = require('./reduceBy');
var reduceBy = /*#__PURE__*/require('./reduceBy');
/**

@@ -26,2 +25,7 @@ * Given a function that generates a key, turns a list of objects into an

*/
module.exports = reduceBy(function(acc, elem) { return elem; }, null);
var indexBy = /*#__PURE__*/reduceBy(function (acc, elem) {
return elem;
}, null);
module.exports = indexBy;

@@ -1,6 +0,7 @@

var _curry2 = require('./internal/_curry2');
var _indexOf = require('./internal/_indexOf');
var _isArray = require('./internal/_isArray');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _indexOf = /*#__PURE__*/require('./internal/_indexOf');
var _isArray = /*#__PURE__*/require('./internal/_isArray');
/**

@@ -25,6 +26,7 @@ * Returns the position of the first occurrence of an item in an array, or -1

*/
module.exports = _curry2(function indexOf(target, xs) {
return typeof xs.indexOf === 'function' && !_isArray(xs) ?
xs.indexOf(target) :
_indexOf(xs, target, 0);
var indexOf = /*#__PURE__*/_curry2(function indexOf(target, xs) {
return typeof xs.indexOf === 'function' && !_isArray(xs) ? xs.indexOf(target) : _indexOf(xs, target, 0);
});
module.exports = indexOf;

@@ -1,4 +0,3 @@

var slice = require('./slice');
var slice = /*#__PURE__*/require('./slice');
/**

@@ -28,2 +27,5 @@ * Returns all but the last element of the given list or string.

*/
module.exports = slice(0, -1);
var init = /*#__PURE__*/slice(0, -1);
module.exports = init;

@@ -1,6 +0,7 @@

var _containsWith = require('./internal/_containsWith');
var _curry3 = require('./internal/_curry3');
var _filter = require('./internal/_filter');
var _containsWith = /*#__PURE__*/require('./internal/_containsWith');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var _filter = /*#__PURE__*/require('./internal/_filter');
/**

@@ -22,3 +23,3 @@ * Takes a predicate `pred`, a list `xs`, and a list `ys`, and returns a list

* @category Relation
* @sig (a -> b -> Boolean) -> [a] -> [b] -> [a]
* @sig ((a, b) -> Boolean) -> [a] -> [b] -> [a]
* @param {Function} pred

@@ -42,4 +43,9 @@ * @param {Array} xs

*/
module.exports = _curry3(function innerJoin(pred, xs, ys) {
return _filter(function(x) { return _containsWith(pred, x, ys); }, xs);
var innerJoin = /*#__PURE__*/_curry3(function innerJoin(pred, xs, ys) {
return _filter(function (x) {
return _containsWith(pred, x, ys);
}, xs);
});
module.exports = innerJoin;

@@ -1,4 +0,3 @@

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**

@@ -23,3 +22,5 @@ * Inserts the supplied element into the list, at the specified `index`. _Note that

*/
module.exports = _curry3(function insert(idx, elt, list) {
var insert = /*#__PURE__*/_curry3(function insert(idx, elt, list) {
idx = idx < list.length && idx >= 0 ? idx : list.length;

@@ -30,1 +31,2 @@ var result = Array.prototype.slice.call(list, 0);

});
module.exports = insert;

@@ -1,4 +0,3 @@

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**

@@ -22,7 +21,8 @@ * Inserts the sub-list into the list, at the specified `index`. _Note that this is not

*/
module.exports = _curry3(function insertAll(idx, elts, list) {
var insertAll = /*#__PURE__*/_curry3(function insertAll(idx, elts, list) {
idx = idx < list.length && idx >= 0 ? idx : list.length;
return [].concat(Array.prototype.slice.call(list, 0, idx),
elts,
Array.prototype.slice.call(list, idx));
return [].concat(Array.prototype.slice.call(list, 0, idx), elts, Array.prototype.slice.call(list, idx));
});
module.exports = insertAll;

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

module.exports = function _aperture(n, list) {
function _aperture(n, list) {
var idx = 0;

@@ -10,2 +10,3 @@ var limit = list.length - (n - 1);

return acc;
};
}
module.exports = _aperture;

@@ -1,17 +0,52 @@

module.exports = function _arity(n, fn) {
function _arity(n, fn) {
/* eslint-disable no-unused-vars */
switch (n) {
case 0: return function() { return fn.apply(this, arguments); };
case 1: return function(a0) { return fn.apply(this, arguments); };
case 2: return function(a0, a1) { return fn.apply(this, arguments); };
case 3: return function(a0, a1, a2) { return fn.apply(this, arguments); };
case 4: return function(a0, a1, a2, a3) { return fn.apply(this, arguments); };
case 5: return function(a0, a1, a2, a3, a4) { return fn.apply(this, arguments); };
case 6: return function(a0, a1, a2, a3, a4, a5) { return fn.apply(this, arguments); };
case 7: return function(a0, a1, a2, a3, a4, a5, a6) { return fn.apply(this, arguments); };
case 8: return function(a0, a1, a2, a3, a4, a5, a6, a7) { return fn.apply(this, arguments); };
case 9: return function(a0, a1, a2, a3, a4, a5, a6, a7, a8) { return fn.apply(this, arguments); };
case 10: return function(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) { return fn.apply(this, arguments); };
default: throw new Error('First argument to _arity must be a non-negative integer no greater than ten');
case 0:
return function () {
return fn.apply(this, arguments);
};
case 1:
return function (a0) {
return fn.apply(this, arguments);
};
case 2:
return function (a0, a1) {
return fn.apply(this, arguments);
};
case 3:
return function (a0, a1, a2) {
return fn.apply(this, arguments);
};
case 4:
return function (a0, a1, a2, a3) {
return fn.apply(this, arguments);
};
case 5:
return function (a0, a1, a2, a3, a4) {
return fn.apply(this, arguments);
};
case 6:
return function (a0, a1, a2, a3, a4, a5) {
return fn.apply(this, arguments);
};
case 7:
return function (a0, a1, a2, a3, a4, a5, a6) {
return fn.apply(this, arguments);
};
case 8:
return function (a0, a1, a2, a3, a4, a5, a6, a7) {
return fn.apply(this, arguments);
};
case 9:
return function (a0, a1, a2, a3, a4, a5, a6, a7, a8) {
return fn.apply(this, arguments);
};
case 10:
return function (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {
return fn.apply(this, arguments);
};
default:
throw new Error('First argument to _arity must be a non-negative integer no greater than ten');
}
};
}
module.exports = _arity;

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

module.exports = function _arrayFromIterator(iter) {
function _arrayFromIterator(iter) {
var list = [];

@@ -8,2 +8,3 @@ var next;

return list;
};
}
module.exports = _arrayFromIterator;

@@ -1,4 +0,3 @@

var _objectAssign = require('./_objectAssign');
var _objectAssign = /*#__PURE__*/require('./_objectAssign');
module.exports =
typeof Object.assign === 'function' ? Object.assign : _objectAssign;
module.exports = typeof Object.assign === 'function' ? Object.assign : _objectAssign;

@@ -1,4 +0,3 @@

var _isArray = require('./_isArray');
var _isArray = /*#__PURE__*/require('./_isArray');
/**

@@ -14,4 +13,6 @@ * This checks whether a function has a [methodname] function. If it isn't an

*/
module.exports = function _checkForMethod(methodname, fn) {
return function() {
function _checkForMethod(methodname, fn) {
return function () {
var length = arguments.length;

@@ -22,6 +23,5 @@ if (length === 0) {

var obj = arguments[length - 1];
return (_isArray(obj) || typeof obj[methodname] !== 'function') ?
fn.apply(this, arguments) :
obj[methodname].apply(obj, Array.prototype.slice.call(arguments, 0, length - 1));
return _isArray(obj) || typeof obj[methodname] !== 'function' ? fn.apply(this, arguments) : obj[methodname].apply(obj, Array.prototype.slice.call(arguments, 0, length - 1));
};
};
}
module.exports = _checkForMethod;

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

var _cloneRegExp = require('./_cloneRegExp');
var type = require('../type');
var _cloneRegExp = /*#__PURE__*/require('./_cloneRegExp');
var type = /*#__PURE__*/require('../type');

@@ -15,3 +15,5 @@ /**

*/
module.exports = function _clone(value, refFrom, refTo, deep) {
function _clone(value, refFrom, refTo, deep) {
var copy = function copy(copiedValue) {

@@ -29,4 +31,3 @@ var len = refFrom.length;

for (var key in value) {
copiedValue[key] = deep ?
_clone(value[key], refFrom, refTo, true) : value[key];
copiedValue[key] = deep ? _clone(value[key], refFrom, refTo, true) : value[key];
}

@@ -36,8 +37,14 @@ return copiedValue;

switch (type(value)) {
case 'Object': return copy({});
case 'Array': return copy([]);
case 'Date': return new Date(value.valueOf());
case 'RegExp': return _cloneRegExp(value);
default: return value;
case 'Object':
return copy({});
case 'Array':
return copy([]);
case 'Date':
return new Date(value.valueOf());
case 'RegExp':
return _cloneRegExp(value);
default:
return value;
}
};
}
module.exports = _clone;

@@ -1,7 +0,4 @@

module.exports = function _cloneRegExp(pattern) {
return new RegExp(pattern.source, (pattern.global ? 'g' : '') +
(pattern.ignoreCase ? 'i' : '') +
(pattern.multiline ? 'm' : '') +
(pattern.sticky ? 'y' : '') +
(pattern.unicode ? 'u' : ''));
};
function _cloneRegExp(pattern) {
return new RegExp(pattern.source, (pattern.global ? 'g' : '') + (pattern.ignoreCase ? 'i' : '') + (pattern.multiline ? 'm' : '') + (pattern.sticky ? 'y' : '') + (pattern.unicode ? 'u' : ''));
}
module.exports = _cloneRegExp;

@@ -1,5 +0,6 @@

module.exports = function _complement(f) {
return function() {
function _complement(f) {
return function () {
return !f.apply(this, arguments);
};
};
}
module.exports = _complement;

@@ -12,3 +12,3 @@ /**

*/
module.exports = function _concat(set1, set2) {
function _concat(set1, set2) {
set1 = set1 || [];

@@ -32,2 +32,3 @@ set2 = set2 || [];

return result;
};
}
module.exports = _concat;

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

var _indexOf = require('./_indexOf');
var _indexOf = /*#__PURE__*/require('./_indexOf');
module.exports = function _contains(a, list) {
function _contains(a, list) {
return _indexOf(list, a, 0) >= 0;
};
}
module.exports = _contains;

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

module.exports = function _containsWith(pred, x, list) {
function _containsWith(pred, x, list) {
var idx = 0;

@@ -12,2 +12,3 @@ var len = list.length;

return false;
};
}
module.exports = _containsWith;

@@ -1,11 +0,12 @@

var _arity = require('./_arity');
var _curry2 = require('./_curry2');
var _arity = /*#__PURE__*/require('./_arity');
var _curry2 = /*#__PURE__*/require('./_curry2');
module.exports = function _createPartialApplicator(concat) {
return _curry2(function(fn, args) {
return _arity(Math.max(0, fn.length - args.length), function() {
function _createPartialApplicator(concat) {
return _curry2(function (fn, args) {
return _arity(Math.max(0, fn.length - args.length), function () {
return fn.apply(this, concat(args, arguments));
});
});
};
}
module.exports = _createPartialApplicator;

@@ -1,4 +0,3 @@

var _isPlaceholder = require('./_isPlaceholder');
var _isPlaceholder = /*#__PURE__*/require('./_isPlaceholder');
/**

@@ -12,3 +11,5 @@ * Optimized internal one-arity curry function.

*/
module.exports = function _curry1(fn) {
function _curry1(fn) {
return function f1(a) {

@@ -21,2 +22,3 @@ if (arguments.length === 0 || _isPlaceholder(a)) {

};
};
}
module.exports = _curry1;

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

var _curry1 = require('./_curry1');
var _isPlaceholder = require('./_isPlaceholder');
var _curry1 = /*#__PURE__*/require('./_curry1');
var _isPlaceholder = /*#__PURE__*/require('./_isPlaceholder');

@@ -13,3 +13,5 @@ /**

*/
module.exports = function _curry2(fn) {
function _curry2(fn) {
return function f2(a, b) {

@@ -20,11 +22,14 @@ switch (arguments.length) {

case 1:
return _isPlaceholder(a) ? f2
: _curry1(function(_b) { return fn(a, _b); });
return _isPlaceholder(a) ? f2 : _curry1(function (_b) {
return fn(a, _b);
});
default:
return _isPlaceholder(a) && _isPlaceholder(b) ? f2
: _isPlaceholder(a) ? _curry1(function(_a) { return fn(_a, b); })
: _isPlaceholder(b) ? _curry1(function(_b) { return fn(a, _b); })
: fn(a, b);
return _isPlaceholder(a) && _isPlaceholder(b) ? f2 : _isPlaceholder(a) ? _curry1(function (_a) {
return fn(_a, b);
}) : _isPlaceholder(b) ? _curry1(function (_b) {
return fn(a, _b);
}) : fn(a, b);
}
};
};
}
module.exports = _curry2;

@@ -1,6 +0,7 @@

var _curry1 = require('./_curry1');
var _curry2 = require('./_curry2');
var _isPlaceholder = require('./_isPlaceholder');
var _curry1 = /*#__PURE__*/require('./_curry1');
var _curry2 = /*#__PURE__*/require('./_curry2');
var _isPlaceholder = /*#__PURE__*/require('./_isPlaceholder');
/**

@@ -14,3 +15,5 @@ * Optimized internal three-arity curry function.

*/
module.exports = function _curry3(fn) {
function _curry3(fn) {
return function f3(a, b, c) {

@@ -21,20 +24,30 @@ switch (arguments.length) {

case 1:
return _isPlaceholder(a) ? f3
: _curry2(function(_b, _c) { return fn(a, _b, _c); });
return _isPlaceholder(a) ? f3 : _curry2(function (_b, _c) {
return fn(a, _b, _c);
});
case 2:
return _isPlaceholder(a) && _isPlaceholder(b) ? f3
: _isPlaceholder(a) ? _curry2(function(_a, _c) { return fn(_a, b, _c); })
: _isPlaceholder(b) ? _curry2(function(_b, _c) { return fn(a, _b, _c); })
: _curry1(function(_c) { return fn(a, b, _c); });
return _isPlaceholder(a) && _isPlaceholder(b) ? f3 : _isPlaceholder(a) ? _curry2(function (_a, _c) {
return fn(_a, b, _c);
}) : _isPlaceholder(b) ? _curry2(function (_b, _c) {
return fn(a, _b, _c);
}) : _curry1(function (_c) {
return fn(a, b, _c);
});
default:
return _isPlaceholder(a) && _isPlaceholder(b) && _isPlaceholder(c) ? f3
: _isPlaceholder(a) && _isPlaceholder(b) ? _curry2(function(_a, _b) { return fn(_a, _b, c); })
: _isPlaceholder(a) && _isPlaceholder(c) ? _curry2(function(_a, _c) { return fn(_a, b, _c); })
: _isPlaceholder(b) && _isPlaceholder(c) ? _curry2(function(_b, _c) { return fn(a, _b, _c); })
: _isPlaceholder(a) ? _curry1(function(_a) { return fn(_a, b, c); })
: _isPlaceholder(b) ? _curry1(function(_b) { return fn(a, _b, c); })
: _isPlaceholder(c) ? _curry1(function(_c) { return fn(a, b, _c); })
: fn(a, b, c);
return _isPlaceholder(a) && _isPlaceholder(b) && _isPlaceholder(c) ? f3 : _isPlaceholder(a) && _isPlaceholder(b) ? _curry2(function (_a, _b) {
return fn(_a, _b, c);
}) : _isPlaceholder(a) && _isPlaceholder(c) ? _curry2(function (_a, _c) {
return fn(_a, b, _c);
}) : _isPlaceholder(b) && _isPlaceholder(c) ? _curry2(function (_b, _c) {
return fn(a, _b, _c);
}) : _isPlaceholder(a) ? _curry1(function (_a) {
return fn(_a, b, c);
}) : _isPlaceholder(b) ? _curry1(function (_b) {
return fn(a, _b, c);
}) : _isPlaceholder(c) ? _curry1(function (_c) {
return fn(a, b, _c);
}) : fn(a, b, c);
}
};
};
}
module.exports = _curry3;

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

var _arity = require('./_arity');
var _isPlaceholder = require('./_isPlaceholder');
var _arity = /*#__PURE__*/require('./_arity');
var _isPlaceholder = /*#__PURE__*/require('./_isPlaceholder');

@@ -15,4 +15,6 @@ /**

*/
module.exports = function _curryN(length, received, fn) {
return function() {
function _curryN(length, received, fn) {
return function () {
var combined = [];

@@ -24,5 +26,3 @@ var argsIdx = 0;

var result;
if (combinedIdx < received.length &&
(!_isPlaceholder(received[combinedIdx]) ||
argsIdx >= arguments.length)) {
if (combinedIdx < received.length && (!_isPlaceholder(received[combinedIdx]) || argsIdx >= arguments.length)) {
result = received[combinedIdx];

@@ -39,5 +39,5 @@ } else {

}
return left <= 0 ? fn.apply(this, combined)
: _arity(left, _curryN(length, combined, fn));
return left <= 0 ? fn.apply(this, combined) : _arity(left, _curryN(length, combined, fn));
};
};
}
module.exports = _curryN;

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

var _isArray = require('./_isArray');
var _isTransformer = require('./_isTransformer');
var _isArray = /*#__PURE__*/require('./_isArray');
var _isTransformer = /*#__PURE__*/require('./_isTransformer');

@@ -19,4 +19,6 @@ /**

*/
module.exports = function _dispatchable(methodNames, xf, fn) {
return function() {
function _dispatchable(methodNames, xf, fn) {
return function () {
if (arguments.length === 0) {

@@ -42,2 +44,3 @@ return fn();

};
};
}
module.exports = _dispatchable;

@@ -1,5 +0,6 @@

var take = require('../take');
var take = /*#__PURE__*/require('../take');
module.exports = function dropLast(n, xs) {
function dropLast(n, xs) {
return take(n < xs.length ? xs.length - n : 0, xs);
};
}
module.exports = dropLast;

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

module.exports = function dropLastWhile(pred, list) {
function dropLastWhile(pred, list) {
var idx = list.length - 1;

@@ -7,2 +7,3 @@ while (idx >= 0 && pred(list[idx])) {

return Array.prototype.slice.call(list, 0, idx + 1);
};
}
module.exports = dropLastWhile;

@@ -1,10 +0,14 @@

var _arrayFromIterator = require('./_arrayFromIterator');
var _functionName = require('./_functionName');
var _has = require('./_has');
var identical = require('../identical');
var keys = require('../keys');
var type = require('../type');
var _arrayFromIterator = /*#__PURE__*/require('./_arrayFromIterator');
var _functionName = /*#__PURE__*/require('./_functionName');
module.exports = function _equals(a, b, stackA, stackB) {
var _has = /*#__PURE__*/require('./_has');
var identical = /*#__PURE__*/require('../identical');
var keys = /*#__PURE__*/require('../keys');
var type = /*#__PURE__*/require('../type');
function _equals(a, b, stackA, stackB) {
if (identical(a, b)) {

@@ -23,9 +27,7 @@ return true;

if (typeof a['fantasy-land/equals'] === 'function' || typeof b['fantasy-land/equals'] === 'function') {
return typeof a['fantasy-land/equals'] === 'function' && a['fantasy-land/equals'](b) &&
typeof b['fantasy-land/equals'] === 'function' && b['fantasy-land/equals'](a);
return typeof a['fantasy-land/equals'] === 'function' && a['fantasy-land/equals'](b) && typeof b['fantasy-land/equals'] === 'function' && b['fantasy-land/equals'](a);
}
if (typeof a.equals === 'function' || typeof b.equals === 'function') {
return typeof a.equals === 'function' && a.equals(b) &&
typeof b.equals === 'function' && b.equals(a);
return typeof a.equals === 'function' && a.equals(b) && typeof b.equals === 'function' && b.equals(a);
}

@@ -37,4 +39,3 @@

case 'Object':
if (typeof a.constructor === 'function' &&
_functionName(a.constructor) === 'Promise') {
if (typeof a.constructor === 'function' && _functionName(a.constructor) === 'Promise') {
return a === b;

@@ -58,8 +59,3 @@ }

case 'RegExp':
if (!(a.source === b.source &&
a.global === b.global &&
a.ignoreCase === b.ignoreCase &&
a.multiline === b.multiline &&
a.sticky === b.sticky &&
a.unicode === b.unicode)) {
if (!(a.source === b.source && a.global === b.global && a.ignoreCase === b.ignoreCase && a.multiline === b.multiline && a.sticky === b.sticky && a.unicode === b.unicode)) {
return false;

@@ -117,2 +113,3 @@ }

return true;
};
}
module.exports = _equals;

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

module.exports = function _filter(fn, list) {
function _filter(fn, list) {
var idx = 0;

@@ -13,2 +13,3 @@ var len = list.length;

return result;
};
}
module.exports = _filter;

@@ -1,32 +0,35 @@

var _forceReduced = require('./_forceReduced');
var _isArrayLike = require('./_isArrayLike');
var _reduce = require('./_reduce');
var _xfBase = require('./_xfBase');
var _forceReduced = /*#__PURE__*/require('./_forceReduced');
module.exports = (function() {
var preservingReduced = function(xf) {
return {
'@@transducer/init': _xfBase.init,
'@@transducer/result': function(result) {
return xf['@@transducer/result'](result);
},
'@@transducer/step': function(result, input) {
var ret = xf['@@transducer/step'](result, input);
return ret['@@transducer/reduced'] ? _forceReduced(ret) : ret;
}
};
var _isArrayLike = /*#__PURE__*/require('./_isArrayLike');
var _reduce = /*#__PURE__*/require('./_reduce');
var _xfBase = /*#__PURE__*/require('./_xfBase');
var preservingReduced = function (xf) {
return {
'@@transducer/init': _xfBase.init,
'@@transducer/result': function (result) {
return xf['@@transducer/result'](result);
},
'@@transducer/step': function (result, input) {
var ret = xf['@@transducer/step'](result, input);
return ret['@@transducer/reduced'] ? _forceReduced(ret) : ret;
}
};
};
return function _xcat(xf) {
var rxf = preservingReduced(xf);
return {
'@@transducer/init': _xfBase.init,
'@@transducer/result': function(result) {
return rxf['@@transducer/result'](result);
},
'@@transducer/step': function(result, input) {
return !_isArrayLike(input) ? _reduce(rxf, result, [input]) : _reduce(rxf, result, input);
}
};
var _flatCat = function _xcat(xf) {
var rxf = preservingReduced(xf);
return {
'@@transducer/init': _xfBase.init,
'@@transducer/result': function (result) {
return rxf['@@transducer/result'](result);
},
'@@transducer/step': function (result, input) {
return !_isArrayLike(input) ? _reduce(rxf, result, [input]) : _reduce(rxf, result, input);
}
};
}());
};
module.exports = _flatCat;

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

module.exports = function _forceReduced(x) {
function _forceReduced(x) {
return {

@@ -6,2 +6,3 @@ '@@transducer/value': x,

};
};
}
module.exports = _forceReduced;

@@ -1,5 +0,6 @@

module.exports = function _functionName(f) {
function _functionName(f) {
// String(x => x) evaluates to "x => x", so the pattern may not match.
var match = String(f).match(/^function (\w*)/);
return match == null ? '' : match[1];
};
}
module.exports = _functionName;

@@ -1,4 +0,3 @@

var _filter = require('./_filter');
var _filter = /*#__PURE__*/require('./_filter');
/**

@@ -9,6 +8,11 @@ * @private

*/
module.exports = function _functionsWith(fn) {
return function(obj) {
return _filter(function(key) { return typeof obj[key] === 'function'; }, fn(obj));
function _functionsWith(fn) {
return function (obj) {
return _filter(function (key) {
return typeof obj[key] === 'function';
}, fn(obj));
};
};
}
module.exports = _functionsWith;

@@ -1,3 +0,4 @@

module.exports = function _has(prop, obj) {
function _has(prop, obj) {
return Object.prototype.hasOwnProperty.call(obj, prop);
};
}
module.exports = _has;

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

module.exports = function _identity(x) { return x; };
function _identity(x) {
return x;
}
module.exports = _identity;

@@ -1,5 +0,4 @@

var equals = require('../equals');
var equals = /*#__PURE__*/require('../equals');
module.exports = function _indexOf(list, a, idx) {
function _indexOf(list, a, idx) {
var inf, item;

@@ -57,2 +56,3 @@ // Array.prototype.indexOf doesn't exist below IE9

return -1;
};
}
module.exports = _indexOf;

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

var _has = require('./_has');
var _has = /*#__PURE__*/require('./_has');
var toString = Object.prototype.toString;
var _isArguments = function () {
return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
return toString.call(x) === '[object Arguments]';
} : function _isArguments(x) {
return _has('callee', x);
};
};
module.exports = (function() {
var toString = Object.prototype.toString;
return toString.call(arguments) === '[object Arguments]' ?
function _isArguments(x) { return toString.call(x) === '[object Arguments]'; } :
function _isArguments(x) { return _has('callee', x); };
}());
module.exports = _isArguments;

@@ -14,5 +14,3 @@ /**

module.exports = Array.isArray || function _isArray(val) {
return (val != null &&
val.length >= 0 &&
Object.prototype.toString.call(val) === '[object Array]');
};
return val != null && val.length >= 0 && Object.prototype.toString.call(val) === '[object Array]';
};

@@ -1,12 +0,11 @@

var _curry1 = require('./_curry1');
var _isArray = require('./_isArray');
var _isString = require('./_isString');
var _curry1 = /*#__PURE__*/require('./_curry1');
var _isArray = /*#__PURE__*/require('./_isArray');
var _isString = /*#__PURE__*/require('./_isString');
/**
* Tests whether or not an object is similar to an array.
*
* @func
* @memberOf R
* @since v0.5.0
* @private
* @category Type

@@ -17,18 +16,31 @@ * @category List

* @return {Boolean} `true` if `x` has a numeric length property and extreme indices defined; `false` otherwise.
* @deprecated since v0.23.0
* @example
*
* R.isArrayLike([]); //=> true
* R.isArrayLike(true); //=> false
* R.isArrayLike({}); //=> false
* R.isArrayLike({length: 10}); //=> false
* R.isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
* _isArrayLike([]); //=> true
* _isArrayLike(true); //=> false
* _isArrayLike({}); //=> false
* _isArrayLike({length: 10}); //=> false
* _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
*/
module.exports = _curry1(function isArrayLike(x) {
if (_isArray(x)) { return true; }
if (!x) { return false; }
if (typeof x !== 'object') { return false; }
if (_isString(x)) { return false; }
if (x.nodeType === 1) { return !!x.length; }
if (x.length === 0) { return true; }
var _isArrayLike = /*#__PURE__*/_curry1(function isArrayLike(x) {
if (_isArray(x)) {
return true;
}
if (!x) {
return false;
}
if (typeof x !== 'object') {
return false;
}
if (_isString(x)) {
return false;
}
if (x.nodeType === 1) {
return !!x.length;
}
if (x.length === 0) {
return true;
}
if (x.length > 0) {

@@ -39,1 +51,2 @@ return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1);

});
module.exports = _isArrayLike;

@@ -1,3 +0,4 @@

module.exports = function _isFunction(x) {
function _isFunction(x) {
return Object.prototype.toString.call(x) === '[object Function]';
};
}
module.exports = _isFunction;

@@ -10,3 +10,3 @@ /**

module.exports = Number.isInteger || function _isInteger(n) {
return (n << 0) === n;
};
return n << 0 === n;
};

@@ -1,3 +0,4 @@

module.exports = function _isNumber(x) {
function _isNumber(x) {
return Object.prototype.toString.call(x) === '[object Number]';
};
}
module.exports = _isNumber;

@@ -1,3 +0,4 @@

module.exports = function _isObject(x) {
function _isObject(x) {
return Object.prototype.toString.call(x) === '[object Object]';
};
}
module.exports = _isObject;

@@ -1,5 +0,4 @@

module.exports = function _isPlaceholder(a) {
return a != null &&
typeof a === 'object' &&
a['@@functional/placeholder'] === true;
};
function _isPlaceholder(a) {
return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;
}
module.exports = _isPlaceholder;

@@ -1,3 +0,4 @@

module.exports = function _isRegExp(x) {
function _isRegExp(x) {
return Object.prototype.toString.call(x) === '[object RegExp]';
};
}
module.exports = _isRegExp;

@@ -1,3 +0,4 @@

module.exports = function _isString(x) {
function _isString(x) {
return Object.prototype.toString.call(x) === '[object String]';
};
}
module.exports = _isString;

@@ -1,3 +0,4 @@

module.exports = function _isTransformer(obj) {
function _isTransformer(obj) {
return typeof obj['@@transducer/step'] === 'function';
};
}
module.exports = _isTransformer;

@@ -1,4 +0,3 @@

var _isArrayLike = require('./_isArrayLike');
var _isArrayLike = /*#__PURE__*/require('./_isArrayLike');
/**

@@ -10,3 +9,5 @@ * `_makeFlat` is a helper function that returns a one-level or fully recursive

*/
module.exports = function _makeFlat(recursive) {
function _makeFlat(recursive) {
return function flatt(list) {

@@ -34,2 +35,3 @@ var value, jlen, j;

};
};
}
module.exports = _makeFlat;

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

module.exports = function _map(fn, functor) {
function _map(fn, functor) {
var idx = 0;

@@ -10,2 +10,3 @@ var len = functor.length;

return result;
};
}
module.exports = _map;

@@ -1,5 +0,7 @@

var _has = require('./_has');
var _has = /*#__PURE__*/require('./_has');
// Based on https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
module.exports = function _objectAssign(target) {
function _objectAssign(target) {
if (target == null) {

@@ -24,2 +26,3 @@ throw new TypeError('Cannot convert undefined or null to object');

return output;
};
}
module.exports = _objectAssign;

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

module.exports = function _of(x) { return [x]; };
function _of(x) {
return [x];
}
module.exports = _of;

@@ -1,5 +0,6 @@

module.exports = function _pipe(f, g) {
return function() {
function _pipe(f, g) {
return function () {
return g.call(this, f.apply(this, arguments));
};
};
}
module.exports = _pipe;

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

module.exports = function _pipeP(f, g) {
return function() {
function _pipeP(f, g) {
return function () {
var ctx = this;
return f.apply(ctx, arguments).then(function(x) {
return f.apply(ctx, arguments).then(function (x) {
return g.call(ctx, x);
});
};
};
}
module.exports = _pipeP;

@@ -1,13 +0,7 @@

module.exports = function _quote(s) {
var escaped = s
.replace(/\\/g, '\\\\')
.replace(/[\b]/g, '\\b') // \b matches word boundary; [\b] matches backspace
.replace(/\f/g, '\\f')
.replace(/\n/g, '\\n')
.replace(/\r/g, '\\r')
.replace(/\t/g, '\\t')
.replace(/\v/g, '\\v')
.replace(/\0/g, '\\0');
function _quote(s) {
var escaped = s.replace(/\\/g, '\\\\').replace(/[\b]/g, '\\b') // \b matches word boundary; [\b] matches backspace
.replace(/\f/g, '\\f').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/\t/g, '\\t').replace(/\v/g, '\\v').replace(/\0/g, '\\0');
return '"' + escaped.replace(/"/g, '\\"') + '"';
};
}
module.exports = _quote;

@@ -1,61 +0,62 @@

var _isArrayLike = require('./_isArrayLike');
var _xwrap = require('./_xwrap');
var bind = require('../bind');
var _isArrayLike = /*#__PURE__*/require('./_isArrayLike');
var _xwrap = /*#__PURE__*/require('./_xwrap');
module.exports = (function() {
function _arrayReduce(xf, acc, list) {
var idx = 0;
var len = list.length;
while (idx < len) {
acc = xf['@@transducer/step'](acc, list[idx]);
if (acc && acc['@@transducer/reduced']) {
acc = acc['@@transducer/value'];
break;
}
idx += 1;
var bind = /*#__PURE__*/require('../bind');
function _arrayReduce(xf, acc, list) {
var idx = 0;
var len = list.length;
while (idx < len) {
acc = xf['@@transducer/step'](acc, list[idx]);
if (acc && acc['@@transducer/reduced']) {
acc = acc['@@transducer/value'];
break;
}
return xf['@@transducer/result'](acc);
idx += 1;
}
return xf['@@transducer/result'](acc);
}
function _iterableReduce(xf, acc, iter) {
var step = iter.next();
while (!step.done) {
acc = xf['@@transducer/step'](acc, step.value);
if (acc && acc['@@transducer/reduced']) {
acc = acc['@@transducer/value'];
break;
}
step = iter.next();
function _iterableReduce(xf, acc, iter) {
var step = iter.next();
while (!step.done) {
acc = xf['@@transducer/step'](acc, step.value);
if (acc && acc['@@transducer/reduced']) {
acc = acc['@@transducer/value'];
break;
}
return xf['@@transducer/result'](acc);
step = iter.next();
}
return xf['@@transducer/result'](acc);
}
function _methodReduce(xf, acc, obj, methodName) {
return xf['@@transducer/result'](obj[methodName](bind(xf['@@transducer/step'], xf), acc));
function _methodReduce(xf, acc, obj, methodName) {
return xf['@@transducer/result'](obj[methodName](bind(xf['@@transducer/step'], xf), acc));
}
var symIterator = typeof Symbol !== 'undefined' ? Symbol.iterator : '@@iterator';
function _reduce(fn, acc, list) {
if (typeof fn === 'function') {
fn = _xwrap(fn);
}
if (_isArrayLike(list)) {
return _arrayReduce(fn, acc, list);
}
if (typeof list['fantasy-land/reduce'] === 'function') {
return _methodReduce(fn, acc, list, 'fantasy-land/reduce');
}
if (list[symIterator] != null) {
return _iterableReduce(fn, acc, list[symIterator]());
}
if (typeof list.next === 'function') {
return _iterableReduce(fn, acc, list);
}
if (typeof list.reduce === 'function') {
return _methodReduce(fn, acc, list, 'reduce');
}
var symIterator = (typeof Symbol !== 'undefined') ? Symbol.iterator : '@@iterator';
return function _reduce(fn, acc, list) {
if (typeof fn === 'function') {
fn = _xwrap(fn);
}
if (_isArrayLike(list)) {
return _arrayReduce(fn, acc, list);
}
if (typeof list['fantasy-land/reduce'] === 'function') {
return _methodReduce(fn, acc, list, 'fantasy-land/reduce');
}
if (list[symIterator] != null) {
return _iterableReduce(fn, acc, list[symIterator]());
}
if (typeof list.next === 'function') {
return _iterableReduce(fn, acc, list);
}
if (typeof list.reduce === 'function') {
return _methodReduce(fn, acc, list, 'reduce');
}
throw new TypeError('reduce: list must be array or iterable');
};
}());
throw new TypeError('reduce: list must be array or iterable');
}
module.exports = _reduce;

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

module.exports = function _reduced(x) {
return x && x['@@transducer/reduced'] ? x :
{
'@@transducer/value': x,
'@@transducer/reduced': true
};
};
function _reduced(x) {
return x && x['@@transducer/reduced'] ? x : {
'@@transducer/value': x,
'@@transducer/reduced': true
};
}
module.exports = _reduced;

@@ -1,154 +0,111 @@

var _contains = require('./_contains');
var _contains = /*#__PURE__*/require('./_contains');
function _Set() {
/* globals Set */
this._nativeSet = typeof Set === 'function' ? new Set() : null;
this._items = {};
}
// A simple Set type that honours R.equals semantics
module.exports = (function() {
function _Set() {
/* globals Set */
this._nativeSet = typeof Set === 'function' ? new Set() : null;
this._items = {};
}
// until we figure out why jsdoc chokes on this
// @param item The item to add to the Set
// @returns {boolean} true if the item did not exist prior, otherwise false
//
_Set.prototype.add = function (item) {
return !hasOrAdd(item, true, this);
};
// until we figure out why jsdoc chokes on this
// @param item The item to add to the Set
// @returns {boolean} true if the item did not exist prior, otherwise false
//
_Set.prototype.add = function(item) {
return !hasOrAdd(item, true, this);
};
//
// @param item The item to check for existence in the Set
// @returns {boolean} true if the item exists in the Set, otherwise false
//
_Set.prototype.has = function (item) {
return hasOrAdd(item, false, this);
};
//
// @param item The item to check for existence in the Set
// @returns {boolean} true if the item exists in the Set, otherwise false
//
_Set.prototype.has = function(item) {
return hasOrAdd(item, false, this);
};
//
// Combines the logic for checking whether an item is a member of the set and
// for adding a new item to the set.
//
// @param item The item to check or add to the Set instance.
// @param shouldAdd If true, the item will be added to the set if it doesn't
// already exist.
// @param set The set instance to check or add to.
// @return {boolean} true if the item already existed, otherwise false.
//
function hasOrAdd(item, shouldAdd, set) {
var type = typeof item;
var prevSize, newSize;
switch (type) {
case 'string':
case 'number':
// distinguish between +0 and -0
if (item === 0 && 1 / item === -Infinity) {
if (set._items['-0']) {
return true;
} else {
if (shouldAdd) {
set._items['-0'] = true;
}
return false;
//
// Combines the logic for checking whether an item is a member of the set and
// for adding a new item to the set.
//
// @param item The item to check or add to the Set instance.
// @param shouldAdd If true, the item will be added to the set if it doesn't
// already exist.
// @param set The set instance to check or add to.
// @return {boolean} true if the item already existed, otherwise false.
//
function hasOrAdd(item, shouldAdd, set) {
var type = typeof item;
var prevSize, newSize;
switch (type) {
case 'string':
case 'number':
// distinguish between +0 and -0
if (item === 0 && 1 / item === -Infinity) {
if (set._items['-0']) {
return true;
} else {
if (shouldAdd) {
set._items['-0'] = true;
}
return false;
}
// these types can all utilise the native Set
if (set._nativeSet !== null) {
if (shouldAdd) {
prevSize = set._nativeSet.size;
set._nativeSet.add(item);
newSize = set._nativeSet.size;
return newSize === prevSize;
} else {
return set._nativeSet.has(item);
}
}
// these types can all utilise the native Set
if (set._nativeSet !== null) {
if (shouldAdd) {
prevSize = set._nativeSet.size;
set._nativeSet.add(item);
newSize = set._nativeSet.size;
return newSize === prevSize;
} else {
if (!(type in set._items)) {
if (shouldAdd) {
set._items[type] = {};
set._items[type][item] = true;
}
return false;
} else if (item in set._items[type]) {
return true;
} else {
if (shouldAdd) {
set._items[type][item] = true;
}
return false;
}
return set._nativeSet.has(item);
}
case 'boolean':
// set._items['boolean'] holds a two element array
// representing [ falseExists, trueExists ]
if (type in set._items) {
var bIdx = item ? 1 : 0;
if (set._items[type][bIdx]) {
return true;
} else {
if (shouldAdd) {
set._items[type][bIdx] = true;
}
return false;
} else {
if (!(type in set._items)) {
if (shouldAdd) {
set._items[type] = {};
set._items[type][item] = true;
}
return false;
} else if (item in set._items[type]) {
return true;
} else {
if (shouldAdd) {
set._items[type] = item ? [false, true] : [true, false];
set._items[type][item] = true;
}
return false;
}
}
case 'function':
// compare functions for reference equality
if (set._nativeSet !== null) {
if (shouldAdd) {
prevSize = set._nativeSet.size;
set._nativeSet.add(item);
newSize = set._nativeSet.size;
return newSize === prevSize;
} else {
return set._nativeSet.has(item);
}
} else {
if (!(type in set._items)) {
if (shouldAdd) {
set._items[type] = [item];
}
return false;
}
if (!_contains(item, set._items[type])) {
if (shouldAdd) {
set._items[type].push(item);
}
return false;
}
case 'boolean':
// set._items['boolean'] holds a two element array
// representing [ falseExists, trueExists ]
if (type in set._items) {
var bIdx = item ? 1 : 0;
if (set._items[type][bIdx]) {
return true;
}
case 'undefined':
if (set._items[type]) {
return true;
} else {
if (shouldAdd) {
set._items[type] = true;
set._items[type][bIdx] = true;
}
return false;
}
} else {
if (shouldAdd) {
set._items[type] = item ? [false, true] : [true, false];
}
return false;
}
case 'object':
if (item === null) {
if (!set._items['null']) {
if (shouldAdd) {
set._items['null'] = true;
}
return false;
}
return true;
case 'function':
// compare functions for reference equality
if (set._nativeSet !== null) {
if (shouldAdd) {
prevSize = set._nativeSet.size;
set._nativeSet.add(item);
newSize = set._nativeSet.size;
return newSize === prevSize;
} else {
return set._nativeSet.has(item);
}
/* falls through */
default:
// reduce the search size of heterogeneous sets by creating buckets
// for each type.
type = Object.prototype.toString.call(item);
} else {
if (!(type in set._items)) {

@@ -160,3 +117,2 @@ if (shouldAdd) {

}
// scan through all previously applied items
if (!_contains(item, set._items[type])) {

@@ -169,5 +125,47 @@ if (shouldAdd) {

return true;
}
}
case 'undefined':
if (set._items[type]) {
return true;
} else {
if (shouldAdd) {
set._items[type] = true;
}
return false;
}
case 'object':
if (item === null) {
if (!set._items['null']) {
if (shouldAdd) {
set._items['null'] = true;
}
return false;
}
return true;
}
/* falls through */
default:
// reduce the search size of heterogeneous sets by creating buckets
// for each type.
type = Object.prototype.toString.call(item);
if (!(type in set._items)) {
if (shouldAdd) {
set._items[type] = [item];
}
return false;
}
// scan through all previously applied items
if (!_contains(item, set._items[type])) {
if (shouldAdd) {
set._items[type].push(item);
}
return false;
}
return true;
}
return _Set;
}());
}
// A simple Set type that honours R.equals semantics
module.exports = _Set;

@@ -1,48 +0,49 @@

var _assign = require('./_assign');
var _identity = require('./_identity');
var _isArrayLike = require('./_isArrayLike');
var _isTransformer = require('./_isTransformer');
var objOf = require('../objOf');
var _assign = /*#__PURE__*/require('./_assign');
var _identity = /*#__PURE__*/require('./_identity');
module.exports = (function() {
var _stepCatArray = {
'@@transducer/init': Array,
'@@transducer/step': function(xs, x) {
xs.push(x);
return xs;
},
'@@transducer/result': _identity
};
var _stepCatString = {
'@@transducer/init': String,
'@@transducer/step': function(a, b) { return a + b; },
'@@transducer/result': _identity
};
var _stepCatObject = {
'@@transducer/init': Object,
'@@transducer/step': function(result, input) {
return _assign(
result,
_isArrayLike(input) ? objOf(input[0], input[1]) : input
);
},
'@@transducer/result': _identity
};
var _isArrayLike = /*#__PURE__*/require('./_isArrayLike');
return function _stepCat(obj) {
if (_isTransformer(obj)) {
return obj;
}
if (_isArrayLike(obj)) {
return _stepCatArray;
}
if (typeof obj === 'string') {
return _stepCatString;
}
if (typeof obj === 'object') {
return _stepCatObject;
}
throw new Error('Cannot create transformer for ' + obj);
};
}());
var _isTransformer = /*#__PURE__*/require('./_isTransformer');
var objOf = /*#__PURE__*/require('../objOf');
var _stepCatArray = {
'@@transducer/init': Array,
'@@transducer/step': function (xs, x) {
xs.push(x);
return xs;
},
'@@transducer/result': _identity
};
var _stepCatString = {
'@@transducer/init': String,
'@@transducer/step': function (a, b) {
return a + b;
},
'@@transducer/result': _identity
};
var _stepCatObject = {
'@@transducer/init': Object,
'@@transducer/step': function (result, input) {
return _assign(result, _isArrayLike(input) ? objOf(input[0], input[1]) : input);
},
'@@transducer/result': _identity
};
function _stepCat(obj) {
if (_isTransformer(obj)) {
return obj;
}
if (_isArrayLike(obj)) {
return _stepCatArray;
}
if (typeof obj === 'string') {
return _stepCatString;
}
if (typeof obj === 'object') {
return _stepCatObject;
}
throw new Error('Cannot create transformer for ' + obj);
}
module.exports = _stepCat;
/**
* Polyfill from <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString>.
*/
module.exports = (function() {
var pad = function pad(n) { return (n < 10 ? '0' : '') + n; };
var pad = function pad(n) {
return (n < 10 ? '0' : '') + n;
};
return typeof Date.prototype.toISOString === 'function' ?
function _toISOString(d) {
return d.toISOString();
} :
function _toISOString(d) {
return (
d.getUTCFullYear() + '-' +
pad(d.getUTCMonth() + 1) + '-' +
pad(d.getUTCDate()) + 'T' +
pad(d.getUTCHours()) + ':' +
pad(d.getUTCMinutes()) + ':' +
pad(d.getUTCSeconds()) + '.' +
(d.getUTCMilliseconds() / 1000).toFixed(3).slice(2, 5) + 'Z'
);
};
}());
var _toISOString = typeof Date.prototype.toISOString === 'function' ? function _toISOString(d) {
return d.toISOString();
} : function _toISOString(d) {
return d.getUTCFullYear() + '-' + pad(d.getUTCMonth() + 1) + '-' + pad(d.getUTCDate()) + 'T' + pad(d.getUTCHours()) + ':' + pad(d.getUTCMinutes()) + ':' + pad(d.getUTCSeconds()) + '.' + (d.getUTCMilliseconds() / 1000).toFixed(3).slice(2, 5) + 'Z';
};
module.exports = _toISOString;

@@ -1,10 +0,14 @@

var _contains = require('./_contains');
var _map = require('./_map');
var _quote = require('./_quote');
var _toISOString = require('./_toISOString');
var keys = require('../keys');
var reject = require('../reject');
var _contains = /*#__PURE__*/require('./_contains');
var _map = /*#__PURE__*/require('./_map');
module.exports = function _toString(x, seen) {
var _quote = /*#__PURE__*/require('./_quote');
var _toISOString = /*#__PURE__*/require('./_toISOString');
var keys = /*#__PURE__*/require('../keys');
var reject = /*#__PURE__*/require('../reject');
function _toString(x, seen) {
var recur = function recur(y) {

@@ -16,4 +20,6 @@ var xs = seen.concat([x]);

// mapPairs :: (Object, [String]) -> [String]
var mapPairs = function(obj, keys) {
return _map(function(k) { return _quote(k) + ': ' + recur(obj[k]); }, keys.slice().sort());
var mapPairs = function (obj, keys) {
return _map(function (k) {
return _quote(k) + ': ' + recur(obj[k]);
}, keys.slice().sort());
};

@@ -25,3 +31,6 @@

case '[object Array]':
return '[' + _map(recur, x).concat(mapPairs(x, reject(function(k) { return /^\d+$/.test(k); }, keys(x)))).join(', ') + ']';
return '[' + _map(recur, x).concat(mapPairs(x, reject(function (k) {
return (/^\d+$/.test(k)
);
}, keys(x)))).join(', ') + ']';
case '[object Boolean]':

@@ -48,2 +57,3 @@ return typeof x === 'object' ? 'new Boolean(' + recur(x.valueOf()) + ')' : x.toString();

}
};
}
module.exports = _toString;

@@ -1,28 +0,30 @@

var _curry2 = require('./_curry2');
var _reduced = require('./_reduced');
var _xfBase = require('./_xfBase');
var _curry2 = /*#__PURE__*/require('./_curry2');
var _reduced = /*#__PURE__*/require('./_reduced');
module.exports = (function() {
function XAll(f, xf) {
this.xf = xf;
this.f = f;
this.all = true;
var _xfBase = /*#__PURE__*/require('./_xfBase');
function XAll(f, xf) {
this.xf = xf;
this.f = f;
this.all = true;
}
XAll.prototype['@@transducer/init'] = _xfBase.init;
XAll.prototype['@@transducer/result'] = function (result) {
if (this.all) {
result = this.xf['@@transducer/step'](result, true);
}
XAll.prototype['@@transducer/init'] = _xfBase.init;
XAll.prototype['@@transducer/result'] = function(result) {
if (this.all) {
result = this.xf['@@transducer/step'](result, true);
}
return this.xf['@@transducer/result'](result);
};
XAll.prototype['@@transducer/step'] = function(result, input) {
if (!this.f(input)) {
this.all = false;
result = _reduced(this.xf['@@transducer/step'](result, false));
}
return result;
};
return this.xf['@@transducer/result'](result);
};
XAll.prototype['@@transducer/step'] = function (result, input) {
if (!this.f(input)) {
this.all = false;
result = _reduced(this.xf['@@transducer/step'](result, false));
}
return result;
};
return _curry2(function _xall(f, xf) { return new XAll(f, xf); });
}());
var _xall = /*#__PURE__*/_curry2(function _xall(f, xf) {
return new XAll(f, xf);
});
module.exports = _xall;

@@ -1,28 +0,30 @@

var _curry2 = require('./_curry2');
var _reduced = require('./_reduced');
var _xfBase = require('./_xfBase');
var _curry2 = /*#__PURE__*/require('./_curry2');
var _reduced = /*#__PURE__*/require('./_reduced');
module.exports = (function() {
function XAny(f, xf) {
this.xf = xf;
this.f = f;
this.any = false;
var _xfBase = /*#__PURE__*/require('./_xfBase');
function XAny(f, xf) {
this.xf = xf;
this.f = f;
this.any = false;
}
XAny.prototype['@@transducer/init'] = _xfBase.init;
XAny.prototype['@@transducer/result'] = function (result) {
if (!this.any) {
result = this.xf['@@transducer/step'](result, false);
}
XAny.prototype['@@transducer/init'] = _xfBase.init;
XAny.prototype['@@transducer/result'] = function(result) {
if (!this.any) {
result = this.xf['@@transducer/step'](result, false);
}
return this.xf['@@transducer/result'](result);
};
XAny.prototype['@@transducer/step'] = function(result, input) {
if (this.f(input)) {
this.any = true;
result = _reduced(this.xf['@@transducer/step'](result, true));
}
return result;
};
return this.xf['@@transducer/result'](result);
};
XAny.prototype['@@transducer/step'] = function (result, input) {
if (this.f(input)) {
this.any = true;
result = _reduced(this.xf['@@transducer/step'](result, true));
}
return result;
};
return _curry2(function _xany(f, xf) { return new XAny(f, xf); });
}());
var _xany = /*#__PURE__*/_curry2(function _xany(f, xf) {
return new XAny(f, xf);
});
module.exports = _xany;

@@ -1,36 +0,37 @@

var _concat = require('./_concat');
var _curry2 = require('./_curry2');
var _xfBase = require('./_xfBase');
var _concat = /*#__PURE__*/require('./_concat');
var _curry2 = /*#__PURE__*/require('./_curry2');
module.exports = (function() {
function XAperture(n, xf) {
this.xf = xf;
var _xfBase = /*#__PURE__*/require('./_xfBase');
function XAperture(n, xf) {
this.xf = xf;
this.pos = 0;
this.full = false;
this.acc = new Array(n);
}
XAperture.prototype['@@transducer/init'] = _xfBase.init;
XAperture.prototype['@@transducer/result'] = function (result) {
this.acc = null;
return this.xf['@@transducer/result'](result);
};
XAperture.prototype['@@transducer/step'] = function (result, input) {
this.store(input);
return this.full ? this.xf['@@transducer/step'](result, this.getCopy()) : result;
};
XAperture.prototype.store = function (input) {
this.acc[this.pos] = input;
this.pos += 1;
if (this.pos === this.acc.length) {
this.pos = 0;
this.full = false;
this.acc = new Array(n);
this.full = true;
}
XAperture.prototype['@@transducer/init'] = _xfBase.init;
XAperture.prototype['@@transducer/result'] = function(result) {
this.acc = null;
return this.xf['@@transducer/result'](result);
};
XAperture.prototype['@@transducer/step'] = function(result, input) {
this.store(input);
return this.full ? this.xf['@@transducer/step'](result, this.getCopy()) : result;
};
XAperture.prototype.store = function(input) {
this.acc[this.pos] = input;
this.pos += 1;
if (this.pos === this.acc.length) {
this.pos = 0;
this.full = true;
}
};
XAperture.prototype.getCopy = function() {
return _concat(Array.prototype.slice.call(this.acc, this.pos),
Array.prototype.slice.call(this.acc, 0, this.pos));
};
};
XAperture.prototype.getCopy = function () {
return _concat(Array.prototype.slice.call(this.acc, this.pos), Array.prototype.slice.call(this.acc, 0, this.pos));
};
return _curry2(function _xaperture(n, xf) { return new XAperture(n, xf); });
}());
var _xaperture = /*#__PURE__*/_curry2(function _xaperture(n, xf) {
return new XAperture(n, xf);
});
module.exports = _xaperture;

@@ -1,8 +0,10 @@

var _curry2 = require('./_curry2');
var _flatCat = require('./_flatCat');
var map = require('../map');
var _curry2 = /*#__PURE__*/require('./_curry2');
var _flatCat = /*#__PURE__*/require('./_flatCat');
module.exports = _curry2(function _xchain(f, xf) {
var map = /*#__PURE__*/require('../map');
var _xchain = /*#__PURE__*/_curry2(function _xchain(f, xf) {
return map(f, _flatCat(xf));
});
module.exports = _xchain;

@@ -1,21 +0,22 @@

var _curry2 = require('./_curry2');
var _xfBase = require('./_xfBase');
var _curry2 = /*#__PURE__*/require('./_curry2');
var _xfBase = /*#__PURE__*/require('./_xfBase');
module.exports = (function() {
function XDrop(n, xf) {
this.xf = xf;
this.n = n;
function XDrop(n, xf) {
this.xf = xf;
this.n = n;
}
XDrop.prototype['@@transducer/init'] = _xfBase.init;
XDrop.prototype['@@transducer/result'] = _xfBase.result;
XDrop.prototype['@@transducer/step'] = function (result, input) {
if (this.n > 0) {
this.n -= 1;
return result;
}
XDrop.prototype['@@transducer/init'] = _xfBase.init;
XDrop.prototype['@@transducer/result'] = _xfBase.result;
XDrop.prototype['@@transducer/step'] = function(result, input) {
if (this.n > 0) {
this.n -= 1;
return result;
}
return this.xf['@@transducer/step'](result, input);
};
return this.xf['@@transducer/step'](result, input);
};
return _curry2(function _xdrop(n, xf) { return new XDrop(n, xf); });
}());
var _xdrop = /*#__PURE__*/_curry2(function _xdrop(n, xf) {
return new XDrop(n, xf);
});
module.exports = _xdrop;

@@ -1,34 +0,35 @@

var _curry2 = require('./_curry2');
var _xfBase = require('./_xfBase');
var _curry2 = /*#__PURE__*/require('./_curry2');
var _xfBase = /*#__PURE__*/require('./_xfBase');
module.exports = (function() {
function XDropLast(n, xf) {
this.xf = xf;
function XDropLast(n, xf) {
this.xf = xf;
this.pos = 0;
this.full = false;
this.acc = new Array(n);
}
XDropLast.prototype['@@transducer/init'] = _xfBase.init;
XDropLast.prototype['@@transducer/result'] = function (result) {
this.acc = null;
return this.xf['@@transducer/result'](result);
};
XDropLast.prototype['@@transducer/step'] = function (result, input) {
if (this.full) {
result = this.xf['@@transducer/step'](result, this.acc[this.pos]);
}
this.store(input);
return result;
};
XDropLast.prototype.store = function (input) {
this.acc[this.pos] = input;
this.pos += 1;
if (this.pos === this.acc.length) {
this.pos = 0;
this.full = false;
this.acc = new Array(n);
this.full = true;
}
XDropLast.prototype['@@transducer/init'] = _xfBase.init;
XDropLast.prototype['@@transducer/result'] = function(result) {
this.acc = null;
return this.xf['@@transducer/result'](result);
};
XDropLast.prototype['@@transducer/step'] = function(result, input) {
if (this.full) {
result = this.xf['@@transducer/step'](result, this.acc[this.pos]);
}
this.store(input);
return result;
};
XDropLast.prototype.store = function(input) {
this.acc[this.pos] = input;
this.pos += 1;
if (this.pos === this.acc.length) {
this.pos = 0;
this.full = true;
}
};
};
return _curry2(function _xdropLast(n, xf) { return new XDropLast(n, xf); });
}());
var _xdropLast = /*#__PURE__*/_curry2(function _xdropLast(n, xf) {
return new XDropLast(n, xf);
});
module.exports = _xdropLast;

@@ -1,35 +0,33 @@

var _curry2 = require('./_curry2');
var _reduce = require('./_reduce');
var _xfBase = require('./_xfBase');
var _curry2 = /*#__PURE__*/require('./_curry2');
module.exports = (function() {
function XDropLastWhile(fn, xf) {
this.f = fn;
this.retained = [];
this.xf = xf;
}
XDropLastWhile.prototype['@@transducer/init'] = _xfBase.init;
XDropLastWhile.prototype['@@transducer/result'] = function(result) {
this.retained = null;
return this.xf['@@transducer/result'](result);
};
XDropLastWhile.prototype['@@transducer/step'] = function(result, input) {
return this.f(input) ? this.retain(result, input)
: this.flush(result, input);
};
XDropLastWhile.prototype.flush = function(result, input) {
result = _reduce(
this.xf['@@transducer/step'],
result,
this.retained
);
this.retained = [];
return this.xf['@@transducer/step'](result, input);
};
XDropLastWhile.prototype.retain = function(result, input) {
this.retained.push(input);
return result;
};
var _reduce = /*#__PURE__*/require('./_reduce');
return _curry2(function _xdropLastWhile(fn, xf) { return new XDropLastWhile(fn, xf); });
}());
var _xfBase = /*#__PURE__*/require('./_xfBase');
function XDropLastWhile(fn, xf) {
this.f = fn;
this.retained = [];
this.xf = xf;
}
XDropLastWhile.prototype['@@transducer/init'] = _xfBase.init;
XDropLastWhile.prototype['@@transducer/result'] = function (result) {
this.retained = null;
return this.xf['@@transducer/result'](result);
};
XDropLastWhile.prototype['@@transducer/step'] = function (result, input) {
return this.f(input) ? this.retain(result, input) : this.flush(result, input);
};
XDropLastWhile.prototype.flush = function (result, input) {
result = _reduce(this.xf['@@transducer/step'], result, this.retained);
this.retained = [];
return this.xf['@@transducer/step'](result, input);
};
XDropLastWhile.prototype.retain = function (result, input) {
this.retained.push(input);
return result;
};
var _xdropLastWhile = /*#__PURE__*/_curry2(function _xdropLastWhile(fn, xf) {
return new XDropLastWhile(fn, xf);
});
module.exports = _xdropLastWhile;

@@ -1,27 +0,28 @@

var _curry2 = require('./_curry2');
var _xfBase = require('./_xfBase');
var _curry2 = /*#__PURE__*/require('./_curry2');
var _xfBase = /*#__PURE__*/require('./_xfBase');
module.exports = (function() {
function XDropRepeatsWith(pred, xf) {
this.xf = xf;
this.pred = pred;
this.lastValue = undefined;
this.seenFirstValue = false;
function XDropRepeatsWith(pred, xf) {
this.xf = xf;
this.pred = pred;
this.lastValue = undefined;
this.seenFirstValue = false;
}
XDropRepeatsWith.prototype['@@transducer/init'] = _xfBase.init;
XDropRepeatsWith.prototype['@@transducer/result'] = _xfBase.result;
XDropRepeatsWith.prototype['@@transducer/step'] = function (result, input) {
var sameAsLast = false;
if (!this.seenFirstValue) {
this.seenFirstValue = true;
} else if (this.pred(this.lastValue, input)) {
sameAsLast = true;
}
this.lastValue = input;
return sameAsLast ? result : this.xf['@@transducer/step'](result, input);
};
XDropRepeatsWith.prototype['@@transducer/init'] = _xfBase.init;
XDropRepeatsWith.prototype['@@transducer/result'] = _xfBase.result;
XDropRepeatsWith.prototype['@@transducer/step'] = function(result, input) {
var sameAsLast = false;
if (!this.seenFirstValue) {
this.seenFirstValue = true;
} else if (this.pred(this.lastValue, input)) {
sameAsLast = true;
}
this.lastValue = input;
return sameAsLast ? result : this.xf['@@transducer/step'](result, input);
};
return _curry2(function _xdropRepeatsWith(pred, xf) { return new XDropRepeatsWith(pred, xf); });
}());
var _xdropRepeatsWith = /*#__PURE__*/_curry2(function _xdropRepeatsWith(pred, xf) {
return new XDropRepeatsWith(pred, xf);
});
module.exports = _xdropRepeatsWith;

@@ -1,23 +0,24 @@

var _curry2 = require('./_curry2');
var _xfBase = require('./_xfBase');
var _curry2 = /*#__PURE__*/require('./_curry2');
var _xfBase = /*#__PURE__*/require('./_xfBase');
module.exports = (function() {
function XDropWhile(f, xf) {
this.xf = xf;
this.f = f;
function XDropWhile(f, xf) {
this.xf = xf;
this.f = f;
}
XDropWhile.prototype['@@transducer/init'] = _xfBase.init;
XDropWhile.prototype['@@transducer/result'] = _xfBase.result;
XDropWhile.prototype['@@transducer/step'] = function (result, input) {
if (this.f) {
if (this.f(input)) {
return result;
}
this.f = null;
}
XDropWhile.prototype['@@transducer/init'] = _xfBase.init;
XDropWhile.prototype['@@transducer/result'] = _xfBase.result;
XDropWhile.prototype['@@transducer/step'] = function(result, input) {
if (this.f) {
if (this.f(input)) {
return result;
}
this.f = null;
}
return this.xf['@@transducer/step'](result, input);
};
return this.xf['@@transducer/step'](result, input);
};
return _curry2(function _xdropWhile(f, xf) { return new XDropWhile(f, xf); });
}());
var _xdropWhile = /*#__PURE__*/_curry2(function _xdropWhile(f, xf) {
return new XDropWhile(f, xf);
});
module.exports = _xdropWhile;
module.exports = {
init: function() {
init: function () {
return this.xf['@@transducer/init']();
},
result: function(result) {
result: function (result) {
return this.xf['@@transducer/result'](result);
}
};
};

@@ -1,17 +0,18 @@

var _curry2 = require('./_curry2');
var _xfBase = require('./_xfBase');
var _curry2 = /*#__PURE__*/require('./_curry2');
var _xfBase = /*#__PURE__*/require('./_xfBase');
module.exports = (function() {
function XFilter(f, xf) {
this.xf = xf;
this.f = f;
}
XFilter.prototype['@@transducer/init'] = _xfBase.init;
XFilter.prototype['@@transducer/result'] = _xfBase.result;
XFilter.prototype['@@transducer/step'] = function(result, input) {
return this.f(input) ? this.xf['@@transducer/step'](result, input) : result;
};
function XFilter(f, xf) {
this.xf = xf;
this.f = f;
}
XFilter.prototype['@@transducer/init'] = _xfBase.init;
XFilter.prototype['@@transducer/result'] = _xfBase.result;
XFilter.prototype['@@transducer/step'] = function (result, input) {
return this.f(input) ? this.xf['@@transducer/step'](result, input) : result;
};
return _curry2(function _xfilter(f, xf) { return new XFilter(f, xf); });
}());
var _xfilter = /*#__PURE__*/_curry2(function _xfilter(f, xf) {
return new XFilter(f, xf);
});
module.exports = _xfilter;

@@ -1,28 +0,30 @@

var _curry2 = require('./_curry2');
var _reduced = require('./_reduced');
var _xfBase = require('./_xfBase');
var _curry2 = /*#__PURE__*/require('./_curry2');
var _reduced = /*#__PURE__*/require('./_reduced');
module.exports = (function() {
function XFind(f, xf) {
this.xf = xf;
this.f = f;
this.found = false;
var _xfBase = /*#__PURE__*/require('./_xfBase');
function XFind(f, xf) {
this.xf = xf;
this.f = f;
this.found = false;
}
XFind.prototype['@@transducer/init'] = _xfBase.init;
XFind.prototype['@@transducer/result'] = function (result) {
if (!this.found) {
result = this.xf['@@transducer/step'](result, void 0);
}
XFind.prototype['@@transducer/init'] = _xfBase.init;
XFind.prototype['@@transducer/result'] = function(result) {
if (!this.found) {
result = this.xf['@@transducer/step'](result, void 0);
}
return this.xf['@@transducer/result'](result);
};
XFind.prototype['@@transducer/step'] = function(result, input) {
if (this.f(input)) {
this.found = true;
result = _reduced(this.xf['@@transducer/step'](result, input));
}
return result;
};
return this.xf['@@transducer/result'](result);
};
XFind.prototype['@@transducer/step'] = function (result, input) {
if (this.f(input)) {
this.found = true;
result = _reduced(this.xf['@@transducer/step'](result, input));
}
return result;
};
return _curry2(function _xfind(f, xf) { return new XFind(f, xf); });
}());
var _xfind = /*#__PURE__*/_curry2(function _xfind(f, xf) {
return new XFind(f, xf);
});
module.exports = _xfind;

@@ -1,30 +0,32 @@

var _curry2 = require('./_curry2');
var _reduced = require('./_reduced');
var _xfBase = require('./_xfBase');
var _curry2 = /*#__PURE__*/require('./_curry2');
var _reduced = /*#__PURE__*/require('./_reduced');
module.exports = (function() {
function XFindIndex(f, xf) {
this.xf = xf;
this.f = f;
this.idx = -1;
this.found = false;
var _xfBase = /*#__PURE__*/require('./_xfBase');
function XFindIndex(f, xf) {
this.xf = xf;
this.f = f;
this.idx = -1;
this.found = false;
}
XFindIndex.prototype['@@transducer/init'] = _xfBase.init;
XFindIndex.prototype['@@transducer/result'] = function (result) {
if (!this.found) {
result = this.xf['@@transducer/step'](result, -1);
}
XFindIndex.prototype['@@transducer/init'] = _xfBase.init;
XFindIndex.prototype['@@transducer/result'] = function(result) {
if (!this.found) {
result = this.xf['@@transducer/step'](result, -1);
}
return this.xf['@@transducer/result'](result);
};
XFindIndex.prototype['@@transducer/step'] = function(result, input) {
this.idx += 1;
if (this.f(input)) {
this.found = true;
result = _reduced(this.xf['@@transducer/step'](result, this.idx));
}
return result;
};
return this.xf['@@transducer/result'](result);
};
XFindIndex.prototype['@@transducer/step'] = function (result, input) {
this.idx += 1;
if (this.f(input)) {
this.found = true;
result = _reduced(this.xf['@@transducer/step'](result, this.idx));
}
return result;
};
return _curry2(function _xfindIndex(f, xf) { return new XFindIndex(f, xf); });
}());
var _xfindIndex = /*#__PURE__*/_curry2(function _xfindIndex(f, xf) {
return new XFindIndex(f, xf);
});
module.exports = _xfindIndex;

@@ -1,22 +0,23 @@

var _curry2 = require('./_curry2');
var _xfBase = require('./_xfBase');
var _curry2 = /*#__PURE__*/require('./_curry2');
var _xfBase = /*#__PURE__*/require('./_xfBase');
module.exports = (function() {
function XFindLast(f, xf) {
this.xf = xf;
this.f = f;
function XFindLast(f, xf) {
this.xf = xf;
this.f = f;
}
XFindLast.prototype['@@transducer/init'] = _xfBase.init;
XFindLast.prototype['@@transducer/result'] = function (result) {
return this.xf['@@transducer/result'](this.xf['@@transducer/step'](result, this.last));
};
XFindLast.prototype['@@transducer/step'] = function (result, input) {
if (this.f(input)) {
this.last = input;
}
XFindLast.prototype['@@transducer/init'] = _xfBase.init;
XFindLast.prototype['@@transducer/result'] = function(result) {
return this.xf['@@transducer/result'](this.xf['@@transducer/step'](result, this.last));
};
XFindLast.prototype['@@transducer/step'] = function(result, input) {
if (this.f(input)) {
this.last = input;
}
return result;
};
return result;
};
return _curry2(function _xfindLast(f, xf) { return new XFindLast(f, xf); });
}());
var _xfindLast = /*#__PURE__*/_curry2(function _xfindLast(f, xf) {
return new XFindLast(f, xf);
});
module.exports = _xfindLast;

@@ -1,25 +0,26 @@

var _curry2 = require('./_curry2');
var _xfBase = require('./_xfBase');
var _curry2 = /*#__PURE__*/require('./_curry2');
var _xfBase = /*#__PURE__*/require('./_xfBase');
module.exports = (function() {
function XFindLastIndex(f, xf) {
this.xf = xf;
this.f = f;
this.idx = -1;
this.lastIdx = -1;
function XFindLastIndex(f, xf) {
this.xf = xf;
this.f = f;
this.idx = -1;
this.lastIdx = -1;
}
XFindLastIndex.prototype['@@transducer/init'] = _xfBase.init;
XFindLastIndex.prototype['@@transducer/result'] = function (result) {
return this.xf['@@transducer/result'](this.xf['@@transducer/step'](result, this.lastIdx));
};
XFindLastIndex.prototype['@@transducer/step'] = function (result, input) {
this.idx += 1;
if (this.f(input)) {
this.lastIdx = this.idx;
}
XFindLastIndex.prototype['@@transducer/init'] = _xfBase.init;
XFindLastIndex.prototype['@@transducer/result'] = function(result) {
return this.xf['@@transducer/result'](this.xf['@@transducer/step'](result, this.lastIdx));
};
XFindLastIndex.prototype['@@transducer/step'] = function(result, input) {
this.idx += 1;
if (this.f(input)) {
this.lastIdx = this.idx;
}
return result;
};
return result;
};
return _curry2(function _xfindLastIndex(f, xf) { return new XFindLastIndex(f, xf); });
}());
var _xfindLastIndex = /*#__PURE__*/_curry2(function _xfindLastIndex(f, xf) {
return new XFindLastIndex(f, xf);
});
module.exports = _xfindLastIndex;

@@ -1,17 +0,18 @@

var _curry2 = require('./_curry2');
var _xfBase = require('./_xfBase');
var _curry2 = /*#__PURE__*/require('./_curry2');
var _xfBase = /*#__PURE__*/require('./_xfBase');
module.exports = (function() {
function XMap(f, xf) {
this.xf = xf;
this.f = f;
}
XMap.prototype['@@transducer/init'] = _xfBase.init;
XMap.prototype['@@transducer/result'] = _xfBase.result;
XMap.prototype['@@transducer/step'] = function(result, input) {
return this.xf['@@transducer/step'](result, this.f(input));
};
function XMap(f, xf) {
this.xf = xf;
this.f = f;
}
XMap.prototype['@@transducer/init'] = _xfBase.init;
XMap.prototype['@@transducer/result'] = _xfBase.result;
XMap.prototype['@@transducer/step'] = function (result, input) {
return this.xf['@@transducer/step'](result, this.f(input));
};
return _curry2(function _xmap(f, xf) { return new XMap(f, xf); });
}());
var _xmap = /*#__PURE__*/_curry2(function _xmap(f, xf) {
return new XMap(f, xf);
});
module.exports = _xmap;

@@ -1,40 +0,39 @@

var _curryN = require('./_curryN');
var _has = require('./_has');
var _xfBase = require('./_xfBase');
var _curryN = /*#__PURE__*/require('./_curryN');
var _has = /*#__PURE__*/require('./_has');
module.exports = (function() {
function XReduceBy(valueFn, valueAcc, keyFn, xf) {
this.valueFn = valueFn;
this.valueAcc = valueAcc;
this.keyFn = keyFn;
this.xf = xf;
this.inputs = {};
}
XReduceBy.prototype['@@transducer/init'] = _xfBase.init;
XReduceBy.prototype['@@transducer/result'] = function(result) {
var key;
for (key in this.inputs) {
if (_has(key, this.inputs)) {
result = this.xf['@@transducer/step'](result, this.inputs[key]);
if (result['@@transducer/reduced']) {
result = result['@@transducer/value'];
break;
}
var _xfBase = /*#__PURE__*/require('./_xfBase');
function XReduceBy(valueFn, valueAcc, keyFn, xf) {
this.valueFn = valueFn;
this.valueAcc = valueAcc;
this.keyFn = keyFn;
this.xf = xf;
this.inputs = {};
}
XReduceBy.prototype['@@transducer/init'] = _xfBase.init;
XReduceBy.prototype['@@transducer/result'] = function (result) {
var key;
for (key in this.inputs) {
if (_has(key, this.inputs)) {
result = this.xf['@@transducer/step'](result, this.inputs[key]);
if (result['@@transducer/reduced']) {
result = result['@@transducer/value'];
break;
}
}
this.inputs = null;
return this.xf['@@transducer/result'](result);
};
XReduceBy.prototype['@@transducer/step'] = function(result, input) {
var key = this.keyFn(input);
this.inputs[key] = this.inputs[key] || [key, this.valueAcc];
this.inputs[key][1] = this.valueFn(this.inputs[key][1], input);
return result;
};
}
this.inputs = null;
return this.xf['@@transducer/result'](result);
};
XReduceBy.prototype['@@transducer/step'] = function (result, input) {
var key = this.keyFn(input);
this.inputs[key] = this.inputs[key] || [key, this.valueAcc];
this.inputs[key][1] = this.valueFn(this.inputs[key][1], input);
return result;
};
return _curryN(4, [],
function _xreduceBy(valueFn, valueAcc, keyFn, xf) {
return new XReduceBy(valueFn, valueAcc, keyFn, xf);
});
}());
var _xreduceBy = /*#__PURE__*/_curryN(4, [], function _xreduceBy(valueFn, valueAcc, keyFn, xf) {
return new XReduceBy(valueFn, valueAcc, keyFn, xf);
});
module.exports = _xreduceBy;

@@ -1,20 +0,23 @@

var _curry2 = require('./_curry2');
var _reduced = require('./_reduced');
var _xfBase = require('./_xfBase');
var _curry2 = /*#__PURE__*/require('./_curry2');
module.exports = (function() {
function XTake(n, xf) {
this.xf = xf;
this.n = n;
this.i = 0;
}
XTake.prototype['@@transducer/init'] = _xfBase.init;
XTake.prototype['@@transducer/result'] = _xfBase.result;
XTake.prototype['@@transducer/step'] = function(result, input) {
this.i += 1;
var ret = this.n === 0 ? result : this.xf['@@transducer/step'](result, input);
return this.n >= 0 && this.i >= this.n ? _reduced(ret) : ret;
};
var _reduced = /*#__PURE__*/require('./_reduced');
return _curry2(function _xtake(n, xf) { return new XTake(n, xf); });
}());
var _xfBase = /*#__PURE__*/require('./_xfBase');
function XTake(n, xf) {
this.xf = xf;
this.n = n;
this.i = 0;
}
XTake.prototype['@@transducer/init'] = _xfBase.init;
XTake.prototype['@@transducer/result'] = _xfBase.result;
XTake.prototype['@@transducer/step'] = function (result, input) {
this.i += 1;
var ret = this.n === 0 ? result : this.xf['@@transducer/step'](result, input);
return this.n >= 0 && this.i >= this.n ? _reduced(ret) : ret;
};
var _xtake = /*#__PURE__*/_curry2(function _xtake(n, xf) {
return new XTake(n, xf);
});
module.exports = _xtake;

@@ -1,18 +0,20 @@

var _curry2 = require('./_curry2');
var _reduced = require('./_reduced');
var _xfBase = require('./_xfBase');
var _curry2 = /*#__PURE__*/require('./_curry2');
var _reduced = /*#__PURE__*/require('./_reduced');
module.exports = (function() {
function XTakeWhile(f, xf) {
this.xf = xf;
this.f = f;
}
XTakeWhile.prototype['@@transducer/init'] = _xfBase.init;
XTakeWhile.prototype['@@transducer/result'] = _xfBase.result;
XTakeWhile.prototype['@@transducer/step'] = function(result, input) {
return this.f(input) ? this.xf['@@transducer/step'](result, input) : _reduced(result);
};
var _xfBase = /*#__PURE__*/require('./_xfBase');
return _curry2(function _xtakeWhile(f, xf) { return new XTakeWhile(f, xf); });
}());
function XTakeWhile(f, xf) {
this.xf = xf;
this.f = f;
}
XTakeWhile.prototype['@@transducer/init'] = _xfBase.init;
XTakeWhile.prototype['@@transducer/result'] = _xfBase.result;
XTakeWhile.prototype['@@transducer/step'] = function (result, input) {
return this.f(input) ? this.xf['@@transducer/step'](result, input) : _reduced(result);
};
var _xtakeWhile = /*#__PURE__*/_curry2(function _xtakeWhile(f, xf) {
return new XTakeWhile(f, xf);
});
module.exports = _xtakeWhile;

@@ -1,14 +0,17 @@

module.exports = (function() {
function XWrap(fn) {
this.f = fn;
}
XWrap.prototype['@@transducer/init'] = function() {
throw new Error('init not implemented on XWrap');
};
XWrap.prototype['@@transducer/result'] = function(acc) { return acc; };
XWrap.prototype['@@transducer/step'] = function(acc, x) {
return this.f(acc, x);
};
function XWrap(fn) {
this.f = fn;
}
XWrap.prototype['@@transducer/init'] = function () {
throw new Error('init not implemented on XWrap');
};
XWrap.prototype['@@transducer/result'] = function (acc) {
return acc;
};
XWrap.prototype['@@transducer/step'] = function (acc, x) {
return this.f(acc, x);
};
return function _xwrap(fn) { return new XWrap(fn); };
}());
function _xwrap(fn) {
return new XWrap(fn);
}
module.exports = _xwrap;

@@ -1,8 +0,11 @@

var _contains = require('./internal/_contains');
var _curry2 = require('./internal/_curry2');
var _filter = require('./internal/_filter');
var flip = require('./flip');
var uniq = require('./uniq');
var _contains = /*#__PURE__*/require('./internal/_contains');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _filter = /*#__PURE__*/require('./internal/_filter');
var flip = /*#__PURE__*/require('./flip');
var uniq = /*#__PURE__*/require('./uniq');
/**

@@ -25,3 +28,5 @@ * Combines two lists into a set (i.e. no duplicates) composed of those

*/
module.exports = _curry2(function intersection(list1, list2) {
var intersection = /*#__PURE__*/_curry2(function intersection(list1, list2) {
var lookupList, filteredList;

@@ -37,1 +42,2 @@ if (list1.length > list2.length) {

});
module.exports = intersection;

@@ -1,6 +0,7 @@

var _containsWith = require('./internal/_containsWith');
var _curry3 = require('./internal/_curry3');
var uniqWith = require('./uniqWith');
var _containsWith = /*#__PURE__*/require('./internal/_containsWith');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var uniqWith = /*#__PURE__*/require('./uniqWith');
/**

@@ -42,3 +43,5 @@ * Combines two lists into a set (i.e. no duplicates) composed of those

*/
module.exports = _curry3(function intersectionWith(pred, list1, list2) {
var intersectionWith = /*#__PURE__*/_curry3(function intersectionWith(pred, list1, list2) {
var lookupList, filteredList;

@@ -62,1 +65,2 @@ if (list1.length > list2.length) {

});
module.exports = intersectionWith;

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

var _checkForMethod = require('./internal/_checkForMethod');
var _curry2 = require('./internal/_curry2');
var _checkForMethod = /*#__PURE__*/require('./internal/_checkForMethod');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');

@@ -22,3 +22,5 @@ /**

*/
module.exports = _curry2(_checkForMethod('intersperse', function intersperse(separator, list) {
var intersperse = /*#__PURE__*/_curry2( /*#__PURE__*/_checkForMethod('intersperse', function intersperse(separator, list) {
var out = [];

@@ -37,1 +39,2 @@ var idx = 0;

}));
module.exports = intersperse;

@@ -1,8 +0,11 @@

var _clone = require('./internal/_clone');
var _curry3 = require('./internal/_curry3');
var _isTransformer = require('./internal/_isTransformer');
var _reduce = require('./internal/_reduce');
var _stepCat = require('./internal/_stepCat');
var _clone = /*#__PURE__*/require('./internal/_clone');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var _isTransformer = /*#__PURE__*/require('./internal/_isTransformer');
var _reduce = /*#__PURE__*/require('./internal/_reduce');
var _stepCat = /*#__PURE__*/require('./internal/_stepCat');
/**

@@ -46,6 +49,7 @@ * Transforms the items of the list with the transducer and appends the

*/
module.exports = _curry3(function into(acc, xf, list) {
return _isTransformer(acc) ?
_reduce(xf(acc), acc['@@transducer/init'](), list) :
_reduce(xf(_stepCat(acc)), _clone(acc, [], [], false), list);
var into = /*#__PURE__*/_curry3(function into(acc, xf, list) {
return _isTransformer(acc) ? _reduce(xf(acc), acc['@@transducer/init'](), list) : _reduce(xf(_stepCat(acc)), _clone(acc, [], [], false), list);
});
module.exports = into;

@@ -1,6 +0,7 @@

var _curry1 = require('./internal/_curry1');
var _has = require('./internal/_has');
var keys = require('./keys');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var _has = /*#__PURE__*/require('./internal/_has');
var keys = /*#__PURE__*/require('./keys');
/**

@@ -28,3 +29,5 @@ * Same as [`R.invertObj`](#invertObj), however this accounts for objects with

*/
module.exports = _curry1(function invert(obj) {
var invert = /*#__PURE__*/_curry1(function invert(obj) {
var props = keys(obj);

@@ -38,3 +41,3 @@ var len = props.length;

var val = obj[key];
var list = _has(val, out) ? out[val] : (out[val] = []);
var list = _has(val, out) ? out[val] : out[val] = [];
list[list.length] = key;

@@ -45,1 +48,2 @@ idx += 1;

});
module.exports = invert;

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

var _curry1 = require('./internal/_curry1');
var keys = require('./keys');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var keys = /*#__PURE__*/require('./keys');

@@ -32,3 +32,5 @@ /**

*/
module.exports = _curry1(function invertObj(obj) {
var invertObj = /*#__PURE__*/_curry1(function invertObj(obj) {
var props = keys(obj);

@@ -46,1 +48,2 @@ var len = props.length;

});
module.exports = invertObj;

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

var _curry2 = require('./internal/_curry2');
var _isFunction = require('./internal/_isFunction');
var curryN = require('./curryN');
var toString = require('./toString');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _isFunction = /*#__PURE__*/require('./internal/_isFunction');
var curryN = /*#__PURE__*/require('./curryN');
var toString = /*#__PURE__*/require('./toString');
/**

@@ -34,4 +36,6 @@ * Turns a named method with a specified arity into a function that can be

*/
module.exports = _curry2(function invoker(arity, method) {
return curryN(arity + 1, function() {
var invoker = /*#__PURE__*/_curry2(function invoker(arity, method) {
return curryN(arity + 1, function () {
var target = arguments[arity];

@@ -44,1 +48,2 @@ if (target != null && _isFunction(target[method])) {

});
module.exports = invoker;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -27,4 +26,7 @@ * See if an object (`val`) is an instance of the supplied constructor. This

*/
module.exports = _curry2(function is(Ctor, val) {
var is = /*#__PURE__*/_curry2(function is(Ctor, val) {
return val != null && val.constructor === Ctor || val instanceof Ctor;
});
module.exports = is;

@@ -1,6 +0,7 @@

var _curry1 = require('./internal/_curry1');
var empty = require('./empty');
var equals = require('./equals');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var empty = /*#__PURE__*/require('./empty');
var equals = /*#__PURE__*/require('./equals');
/**

@@ -27,4 +28,7 @@ * Returns `true` if the given value is its type's empty value; `false`

*/
module.exports = _curry1(function isEmpty(x) {
var isEmpty = /*#__PURE__*/_curry1(function isEmpty(x) {
return x != null && equals(x, empty(x));
});
module.exports = isEmpty;

@@ -1,4 +0,3 @@

var _curry1 = require('./internal/_curry1');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
/**

@@ -21,2 +20,7 @@ * Checks if the input value is `null` or `undefined`.

*/
module.exports = _curry1(function isNil(x) { return x == null; });
var isNil = /*#__PURE__*/_curry1(function isNil(x) {
return x == null;
});
module.exports = isNil;

@@ -1,4 +0,3 @@

var invoker = require('./invoker');
var invoker = /*#__PURE__*/require('./invoker');
/**

@@ -23,2 +22,5 @@ * Returns a string made by inserting the `separator` between each element and

*/
module.exports = invoker(1, 'join');
var join = /*#__PURE__*/invoker(1, 'join');
module.exports = join;

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

var _curry1 = require('./internal/_curry1');
var converge = require('./converge');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var converge = /*#__PURE__*/require('./converge');

@@ -22,4 +22,9 @@ /**

*/
module.exports = _curry1(function juxt(fns) {
return converge(function() { return Array.prototype.slice.call(arguments, 0); }, fns);
var juxt = /*#__PURE__*/_curry1(function juxt(fns) {
return converge(function () {
return Array.prototype.slice.call(arguments, 0);
}, fns);
});
module.exports = juxt;

@@ -1,6 +0,30 @@

var _curry1 = require('./internal/_curry1');
var _has = require('./internal/_has');
var _isArguments = require('./internal/_isArguments');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var _has = /*#__PURE__*/require('./internal/_has');
var _isArguments = /*#__PURE__*/require('./internal/_isArguments');
// cover IE < 9 keys issues
var hasEnumBug = ! /*#__PURE__*/{ toString: null }.propertyIsEnumerable('toString');
var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
// Safari bug
var hasArgsEnumBug = /*#__PURE__*/function () {
'use strict';
return arguments.propertyIsEnumerable('length');
}();
var contains = function contains(list, item) {
var idx = 0;
while (idx < list.length) {
if (list[idx] === item) {
return true;
}
idx += 1;
}
return false;
};
/**

@@ -24,52 +48,29 @@ * Returns a list containing the names of all the enumerable own properties of

*/
module.exports = (function() {
// cover IE < 9 keys issues
var hasEnumBug = !({toString: null}).propertyIsEnumerable('toString');
var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString',
'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
// Safari bug
var hasArgsEnumBug = (function() {
'use strict';
return arguments.propertyIsEnumerable('length');
}());
var contains = function contains(list, item) {
var idx = 0;
while (idx < list.length) {
if (list[idx] === item) {
return true;
var _keys = typeof Object.keys === 'function' && !hasArgsEnumBug ? function keys(obj) {
return Object(obj) !== obj ? [] : Object.keys(obj);
} : function keys(obj) {
if (Object(obj) !== obj) {
return [];
}
var prop, nIdx;
var ks = [];
var checkArgsLength = hasArgsEnumBug && _isArguments(obj);
for (prop in obj) {
if (_has(prop, obj) && (!checkArgsLength || prop !== 'length')) {
ks[ks.length] = prop;
}
}
if (hasEnumBug) {
nIdx = nonEnumerableProps.length - 1;
while (nIdx >= 0) {
prop = nonEnumerableProps[nIdx];
if (_has(prop, obj) && !contains(ks, prop)) {
ks[ks.length] = prop;
}
idx += 1;
nIdx -= 1;
}
return false;
};
return typeof Object.keys === 'function' && !hasArgsEnumBug ?
_curry1(function keys(obj) {
return Object(obj) !== obj ? [] : Object.keys(obj);
}) :
_curry1(function keys(obj) {
if (Object(obj) !== obj) {
return [];
}
var prop, nIdx;
var ks = [];
var checkArgsLength = hasArgsEnumBug && _isArguments(obj);
for (prop in obj) {
if (_has(prop, obj) && (!checkArgsLength || prop !== 'length')) {
ks[ks.length] = prop;
}
}
if (hasEnumBug) {
nIdx = nonEnumerableProps.length - 1;
while (nIdx >= 0) {
prop = nonEnumerableProps[nIdx];
if (_has(prop, obj) && !contains(ks, prop)) {
ks[ks.length] = prop;
}
nIdx -= 1;
}
}
return ks;
});
}());
}
return ks;
};
var keys = /*#__PURE__*/_curry1(_keys);
module.exports = keys;

@@ -1,4 +0,3 @@

var _curry1 = require('./internal/_curry1');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
/**

@@ -25,3 +24,5 @@ * Returns a list containing the names of all the properties of the supplied

*/
module.exports = _curry1(function keysIn(obj) {
var keysIn = /*#__PURE__*/_curry1(function keysIn(obj) {
var prop;

@@ -34,1 +35,2 @@ var ks = [];

});
module.exports = keysIn;

@@ -1,4 +0,3 @@

var nth = require('./nth');
var nth = /*#__PURE__*/require('./nth');
/**

@@ -24,2 +23,5 @@ * Returns the last element of the given list or string.

*/
module.exports = nth(-1);
var last = /*#__PURE__*/nth(-1);
module.exports = last;

@@ -1,6 +0,7 @@

var _curry2 = require('./internal/_curry2');
var _isArray = require('./internal/_isArray');
var equals = require('./equals');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _isArray = /*#__PURE__*/require('./internal/_isArray');
var equals = /*#__PURE__*/require('./equals');
/**

@@ -25,3 +26,5 @@ * Returns the position of the last occurrence of an item in an array, or -1 if

*/
module.exports = _curry2(function lastIndexOf(target, xs) {
var lastIndexOf = /*#__PURE__*/_curry2(function lastIndexOf(target, xs) {
if (typeof xs.lastIndexOf === 'function' && !_isArray(xs)) {

@@ -40,1 +43,2 @@ return xs.lastIndexOf(target);

});
module.exports = lastIndexOf;

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

var _curry1 = require('./internal/_curry1');
var _isNumber = require('./internal/_isNumber');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var _isNumber = /*#__PURE__*/require('./internal/_isNumber');

@@ -20,4 +20,7 @@ /**

*/
module.exports = _curry1(function length(list) {
var length = /*#__PURE__*/_curry1(function length(list) {
return list != null && _isNumber(list.length) ? list.length : NaN;
});
module.exports = length;

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

var _curry2 = require('./internal/_curry2');
var map = require('./map');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var map = /*#__PURE__*/require('./map');

@@ -28,13 +28,13 @@ /**

*/
module.exports = _curry2(function lens(getter, setter) {
return function(toFunctorFn) {
return function(target) {
return map(
function(focus) {
return setter(focus, target);
},
toFunctorFn(getter(target))
);
var lens = /*#__PURE__*/_curry2(function lens(getter, setter) {
return function (toFunctorFn) {
return function (target) {
return map(function (focus) {
return setter(focus, target);
}, toFunctorFn(getter(target)));
};
};
});
module.exports = lens;

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

var _curry1 = require('./internal/_curry1');
var lens = require('./lens');
var nth = require('./nth');
var update = require('./update');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var lens = /*#__PURE__*/require('./lens');
var nth = /*#__PURE__*/require('./nth');
var update = /*#__PURE__*/require('./update');
/**

@@ -27,4 +29,7 @@ * Returns a lens whose focus is the specified index.

*/
module.exports = _curry1(function lensIndex(n) {
var lensIndex = /*#__PURE__*/_curry1(function lensIndex(n) {
return lens(nth(n), update(n));
});
module.exports = lensIndex;

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

var _curry1 = require('./internal/_curry1');
var assocPath = require('./assocPath');
var lens = require('./lens');
var path = require('./path');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var assocPath = /*#__PURE__*/require('./assocPath');
var lens = /*#__PURE__*/require('./lens');
var path = /*#__PURE__*/require('./path');
/**

@@ -31,4 +33,7 @@ * Returns a lens whose focus is the specified path.

*/
module.exports = _curry1(function lensPath(p) {
var lensPath = /*#__PURE__*/_curry1(function lensPath(p) {
return lens(path(p), assocPath(p));
});
module.exports = lensPath;

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

var _curry1 = require('./internal/_curry1');
var assoc = require('./assoc');
var lens = require('./lens');
var prop = require('./prop');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var assoc = /*#__PURE__*/require('./assoc');
var lens = /*#__PURE__*/require('./lens');
var prop = /*#__PURE__*/require('./prop');
/**

@@ -27,4 +29,7 @@ * Returns a lens whose focus is the specified property.

*/
module.exports = _curry1(function lensProp(k) {
var lensProp = /*#__PURE__*/_curry1(function lensProp(k) {
return lens(prop(k), assoc(k));
});
module.exports = lensProp;

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

var _curry1 = require('./internal/_curry1');
var liftN = require('./liftN');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var liftN = /*#__PURE__*/require('./liftN');

@@ -27,4 +27,7 @@ /**

*/
module.exports = _curry1(function lift(fn) {
var lift = /*#__PURE__*/_curry1(function lift(fn) {
return liftN(fn.length, fn);
});
module.exports = lift;

@@ -1,8 +0,11 @@

var _curry2 = require('./internal/_curry2');
var _reduce = require('./internal/_reduce');
var ap = require('./ap');
var curryN = require('./curryN');
var map = require('./map');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _reduce = /*#__PURE__*/require('./internal/_reduce');
var ap = /*#__PURE__*/require('./ap');
var curryN = /*#__PURE__*/require('./curryN');
var map = /*#__PURE__*/require('./map');
/**

@@ -25,7 +28,10 @@ * "lifts" a function to be the specified arity, so that it may "map over" that

*/
module.exports = _curry2(function liftN(arity, fn) {
var liftN = /*#__PURE__*/_curry2(function liftN(arity, fn) {
var lifted = curryN(arity, fn);
return curryN(arity, function() {
return curryN(arity, function () {
return _reduce(ap, map(lifted, arguments[0]), Array.prototype.slice.call(arguments, 1));
});
});
module.exports = liftN;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -25,2 +24,7 @@ * Returns `true` if the first argument is less than the second; `false`

*/
module.exports = _curry2(function lt(a, b) { return a < b; });
var lt = /*#__PURE__*/_curry2(function lt(a, b) {
return a < b;
});
module.exports = lt;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -25,2 +24,7 @@ * Returns `true` if the first argument is less than or equal to the second;

*/
module.exports = _curry2(function lte(a, b) { return a <= b; });
var lte = /*#__PURE__*/_curry2(function lte(a, b) {
return a <= b;
});
module.exports = lte;

@@ -1,10 +0,15 @@

var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _map = require('./internal/_map');
var _reduce = require('./internal/_reduce');
var _xmap = require('./internal/_xmap');
var curryN = require('./curryN');
var keys = require('./keys');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _map = /*#__PURE__*/require('./internal/_map');
var _reduce = /*#__PURE__*/require('./internal/_reduce');
var _xmap = /*#__PURE__*/require('./internal/_xmap');
var curryN = /*#__PURE__*/require('./curryN');
var keys = /*#__PURE__*/require('./keys');
/**

@@ -45,10 +50,12 @@ * Takes a function and

*/
module.exports = _curry2(_dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
var map = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
switch (Object.prototype.toString.call(functor)) {
case '[object Function]':
return curryN(functor.length, function() {
return curryN(functor.length, function () {
return fn.call(this, functor.apply(this, arguments));
});
case '[object Object]':
return _reduce(function(acc, key) {
return _reduce(function (acc, key) {
acc[key] = fn(functor[key]);

@@ -61,1 +68,2 @@ return acc;

}));
module.exports = map;

@@ -1,4 +0,3 @@

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**

@@ -17,3 +16,3 @@ * The `mapAccum` function behaves like a combination of map and reduce; it

* @category List
* @sig (acc -> x -> (acc, y)) -> acc -> [x] -> (acc, [y])
* @sig ((acc, x) -> (acc, y)) -> acc -> [x] -> (acc, [y])
* @param {Function} fn The function to be called on every element of the input `list`.

@@ -39,3 +38,5 @@ * @param {*} acc The accumulator value.

*/
module.exports = _curry3(function mapAccum(fn, acc, list) {
var mapAccum = /*#__PURE__*/_curry3(function mapAccum(fn, acc, list) {
var idx = 0;

@@ -52,1 +53,2 @@ var len = list.length;

});
module.exports = mapAccum;

@@ -1,4 +0,3 @@

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**

@@ -20,3 +19,3 @@ * The `mapAccumRight` function behaves like a combination of map and reduce; it

* @category List
* @sig (x-> acc -> (y, acc)) -> acc -> [x] -> ([y], acc)
* @sig ((x, acc) -> (y, acc)) -> acc -> [x] -> ([y], acc)
* @param {Function} fn The function to be called on every element of the input `list`.

@@ -42,3 +41,5 @@ * @param {*} acc The accumulator value.

*/
module.exports = _curry3(function mapAccumRight(fn, acc, list) {
var mapAccumRight = /*#__PURE__*/_curry3(function mapAccumRight(fn, acc, list) {
var idx = list.length - 1;

@@ -54,1 +55,2 @@ var result = [];

});
module.exports = mapAccumRight;

@@ -1,6 +0,7 @@

var _curry2 = require('./internal/_curry2');
var _reduce = require('./internal/_reduce');
var keys = require('./keys');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _reduce = /*#__PURE__*/require('./internal/_reduce');
var keys = /*#__PURE__*/require('./keys');
/**

@@ -27,4 +28,6 @@ * An Object-specific version of [`map`](#map). The function is applied to three

*/
module.exports = _curry2(function mapObjIndexed(fn, obj) {
return _reduce(function(acc, key) {
var mapObjIndexed = /*#__PURE__*/_curry2(function mapObjIndexed(fn, obj) {
return _reduce(function (acc, key) {
acc[key] = fn(obj[key], key, obj);

@@ -34,1 +37,2 @@ return acc;

});
module.exports = mapObjIndexed;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -25,4 +24,7 @@ * Tests a regular expression against a String. Note that this function will

*/
module.exports = _curry2(function match(rx, str) {
var match = /*#__PURE__*/_curry2(function match(rx, str) {
return str.match(rx) || [];
});
module.exports = match;

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

var _curry2 = require('./internal/_curry2');
var _isInteger = require('./internal/_isInteger');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _isInteger = /*#__PURE__*/require('./internal/_isInteger');

@@ -38,6 +38,13 @@ /**

*/
module.exports = _curry2(function mathMod(m, p) {
if (!_isInteger(m)) { return NaN; }
if (!_isInteger(p) || p < 1) { return NaN; }
return ((m % p) + p) % p;
var mathMod = /*#__PURE__*/_curry2(function mathMod(m, p) {
if (!_isInteger(m)) {
return NaN;
}
if (!_isInteger(p) || p < 1) {
return NaN;
}
return (m % p + p) % p;
});
module.exports = mathMod;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -21,2 +20,7 @@ * Returns the larger of its two arguments.

*/
module.exports = _curry2(function max(a, b) { return b > a ? b : a; });
var max = /*#__PURE__*/_curry2(function max(a, b) {
return b > a ? b : a;
});
module.exports = max;

@@ -1,4 +0,3 @@

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**

@@ -28,4 +27,7 @@ * Takes a function and two values, and returns whichever value produces the

*/
module.exports = _curry3(function maxBy(f, a, b) {
var maxBy = /*#__PURE__*/_curry3(function maxBy(f, a, b) {
return f(b) > f(a) ? b : a;
});
module.exports = maxBy;

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

var _curry1 = require('./internal/_curry1');
var sum = require('./sum');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var sum = /*#__PURE__*/require('./sum');

@@ -21,4 +21,7 @@ /**

*/
module.exports = _curry1(function mean(list) {
var mean = /*#__PURE__*/_curry1(function mean(list) {
return sum(list) / list.length;
});
module.exports = mean;

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

var _curry1 = require('./internal/_curry1');
var mean = require('./mean');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var mean = /*#__PURE__*/require('./mean');

@@ -22,3 +22,5 @@ /**

*/
module.exports = _curry1(function median(list) {
var median = /*#__PURE__*/_curry1(function median(list) {
var len = list.length;

@@ -30,5 +32,6 @@ if (len === 0) {

var idx = (len - width) / 2;
return mean(Array.prototype.slice.call(list, 0).sort(function(a, b) {
return mean(Array.prototype.slice.call(list, 0).sort(function (a, b) {
return a < b ? -1 : a > b ? 1 : 0;
}).slice(idx, idx + width));
});
module.exports = median;

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

var memoizeWith = require('./memoizeWith');
var toString = require('./toString');
var memoizeWith = /*#__PURE__*/require('./memoizeWith');
var toString = /*#__PURE__*/require('./toString');

@@ -32,2 +32,7 @@ /**

*/
module.exports = memoizeWith(toString);
var memoize = /*#__PURE__*/memoizeWith(function () {
return toString(arguments);
});
module.exports = memoize;

@@ -1,6 +0,7 @@

var _arity = require('./internal/_arity');
var _curry2 = require('./internal/_curry2');
var _has = require('./internal/_has');
var _arity = /*#__PURE__*/require('./internal/_arity');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _has = /*#__PURE__*/require('./internal/_has');
/**

@@ -35,5 +36,7 @@ * A customisable version of [`R.memoize`](#memoize). `memoizeWith` takes an

*/
module.exports = _curry2(function memoizeWith(mFn, fn) {
var memoizeWith = /*#__PURE__*/_curry2(function memoizeWith(mFn, fn) {
var cache = {};
return _arity(fn.length, function() {
return _arity(fn.length, function () {
var key = mFn.apply(this, arguments);

@@ -46,1 +49,2 @@ if (!_has(key, cache)) {

});
module.exports = memoizeWith;

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

var _assign = require('./internal/_assign');
var _curry2 = require('./internal/_curry2');
var _assign = /*#__PURE__*/require('./internal/_assign');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');

@@ -28,4 +28,7 @@ /**

*/
module.exports = _curry2(function merge(l, r) {
var merge = /*#__PURE__*/_curry2(function merge(l, r) {
return _assign({}, l, r);
});
module.exports = merge;

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

var _assign = require('./internal/_assign');
var _curry1 = require('./internal/_curry1');
var _assign = /*#__PURE__*/require('./internal/_assign');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');

@@ -22,4 +22,7 @@ /**

*/
module.exports = _curry1(function mergeAll(list) {
var mergeAll = /*#__PURE__*/_curry1(function mergeAll(list) {
return _assign.apply(null, [{}].concat(list));
});
module.exports = mergeAll;

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

var _curry2 = require('./internal/_curry2');
var mergeDeepWithKey = require('./mergeDeepWithKey');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var mergeDeepWithKey = /*#__PURE__*/require('./mergeDeepWithKey');

@@ -26,6 +26,9 @@ /**

*/
module.exports = _curry2(function mergeDeepLeft(lObj, rObj) {
return mergeDeepWithKey(function(k, lVal, rVal) {
var mergeDeepLeft = /*#__PURE__*/_curry2(function mergeDeepLeft(lObj, rObj) {
return mergeDeepWithKey(function (k, lVal, rVal) {
return lVal;
}, lObj, rObj);
});
module.exports = mergeDeepLeft;

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

var _curry2 = require('./internal/_curry2');
var mergeDeepWithKey = require('./mergeDeepWithKey');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var mergeDeepWithKey = /*#__PURE__*/require('./mergeDeepWithKey');

@@ -26,6 +26,9 @@ /**

*/
module.exports = _curry2(function mergeDeepRight(lObj, rObj) {
return mergeDeepWithKey(function(k, lVal, rVal) {
var mergeDeepRight = /*#__PURE__*/_curry2(function mergeDeepRight(lObj, rObj) {
return mergeDeepWithKey(function (k, lVal, rVal) {
return rVal;
}, lObj, rObj);
});
module.exports = mergeDeepRight;

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

var _curry3 = require('./internal/_curry3');
var mergeDeepWithKey = require('./mergeDeepWithKey');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var mergeDeepWithKey = /*#__PURE__*/require('./mergeDeepWithKey');

@@ -19,3 +19,3 @@ /**

* @category Object
* @sig (a -> a -> a) -> {a} -> {a} -> {a}
* @sig ((a, a) -> a) -> {a} -> {a} -> {a}
* @param {Function} fn

@@ -33,6 +33,9 @@ * @param {Object} lObj

*/
module.exports = _curry3(function mergeDeepWith(fn, lObj, rObj) {
return mergeDeepWithKey(function(k, lVal, rVal) {
var mergeDeepWith = /*#__PURE__*/_curry3(function mergeDeepWith(fn, lObj, rObj) {
return mergeDeepWithKey(function (k, lVal, rVal) {
return fn(lVal, rVal);
}, lObj, rObj);
});
module.exports = mergeDeepWith;

@@ -1,6 +0,7 @@

var _curry3 = require('./internal/_curry3');
var _isObject = require('./internal/_isObject');
var mergeWithKey = require('./mergeWithKey');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var _isObject = /*#__PURE__*/require('./internal/_isObject');
var mergeWithKey = /*#__PURE__*/require('./mergeWithKey');
/**

@@ -20,3 +21,3 @@ * Creates a new object with the own properties of the two provided objects.

* @category Object
* @sig (String -> a -> a -> a) -> {a} -> {a} -> {a}
* @sig ((String, a, a) -> a) -> {a} -> {a} -> {a}
* @param {Function} fn

@@ -35,4 +36,6 @@ * @param {Object} lObj

*/
module.exports = _curry3(function mergeDeepWithKey(fn, lObj, rObj) {
return mergeWithKey(function(k, lVal, rVal) {
var mergeDeepWithKey = /*#__PURE__*/_curry3(function mergeDeepWithKey(fn, lObj, rObj) {
return mergeWithKey(function (k, lVal, rVal) {
if (_isObject(lVal) && _isObject(rVal)) {

@@ -45,1 +48,2 @@ return mergeDeepWithKey(fn, lVal, rVal);

});
module.exports = mergeDeepWithKey;

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

var _curry3 = require('./internal/_curry3');
var mergeWithKey = require('./mergeWithKey');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var mergeWithKey = /*#__PURE__*/require('./mergeWithKey');

@@ -15,3 +15,3 @@ /**

* @category Object
* @sig (a -> a -> a) -> {a} -> {a} -> {a}
* @sig ((a, a) -> a) -> {a} -> {a} -> {a}
* @param {Function} fn

@@ -29,6 +29,9 @@ * @param {Object} l

*/
module.exports = _curry3(function mergeWith(fn, l, r) {
return mergeWithKey(function(_, _l, _r) {
var mergeWith = /*#__PURE__*/_curry3(function mergeWith(fn, l, r) {
return mergeWithKey(function (_, _l, _r) {
return fn(_l, _r);
}, l, r);
});
module.exports = mergeWith;

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

var _curry3 = require('./internal/_curry3');
var _has = require('./internal/_has');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var _has = /*#__PURE__*/require('./internal/_has');

@@ -15,3 +15,3 @@ /**

* @category Object
* @sig (String -> a -> a -> a) -> {a} -> {a} -> {a}
* @sig ((String, a, a) -> a) -> {a} -> {a} -> {a}
* @param {Function} fn

@@ -31,3 +31,5 @@ * @param {Object} l

*/
module.exports = _curry3(function mergeWithKey(fn, l, r) {
var mergeWithKey = /*#__PURE__*/_curry3(function mergeWithKey(fn, l, r) {
var result = {};

@@ -43,3 +45,3 @@ var k;

for (k in r) {
if (_has(k, r) && !(_has(k, result))) {
if (_has(k, r) && !_has(k, result)) {
result[k] = r[k];

@@ -51,1 +53,2 @@ }

});
module.exports = mergeWithKey;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -21,2 +20,7 @@ * Returns the smaller of its two arguments.

*/
module.exports = _curry2(function min(a, b) { return b < a ? b : a; });
var min = /*#__PURE__*/_curry2(function min(a, b) {
return b < a ? b : a;
});
module.exports = min;

@@ -1,4 +0,3 @@

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**

@@ -28,4 +27,7 @@ * Takes a function and two values, and returns whichever value produces the

*/
module.exports = _curry3(function minBy(f, a, b) {
var minBy = /*#__PURE__*/_curry3(function minBy(f, a, b) {
return f(b) < f(a) ? b : a;
});
module.exports = minBy;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -29,2 +28,7 @@ * Divides the first parameter by the second and returns the remainder. Note

*/
module.exports = _curry2(function modulo(a, b) { return a % b; });
var modulo = /*#__PURE__*/_curry2(function modulo(a, b) {
return a % b;
});
module.exports = modulo;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -24,2 +23,7 @@ * Multiplies two numbers. Equivalent to `a * b` but curried.

*/
module.exports = _curry2(function multiply(a, b) { return a * b; });
var multiply = /*#__PURE__*/_curry2(function multiply(a, b) {
return a * b;
});
module.exports = multiply;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -34,17 +33,54 @@ * Wraps a function of any arity (including nullary) in a function that accepts

*/
module.exports = _curry2(function nAry(n, fn) {
var nAry = /*#__PURE__*/_curry2(function nAry(n, fn) {
switch (n) {
case 0: return function() {return fn.call(this);};
case 1: return function(a0) {return fn.call(this, a0);};
case 2: return function(a0, a1) {return fn.call(this, a0, a1);};
case 3: return function(a0, a1, a2) {return fn.call(this, a0, a1, a2);};
case 4: return function(a0, a1, a2, a3) {return fn.call(this, a0, a1, a2, a3);};
case 5: return function(a0, a1, a2, a3, a4) {return fn.call(this, a0, a1, a2, a3, a4);};
case 6: return function(a0, a1, a2, a3, a4, a5) {return fn.call(this, a0, a1, a2, a3, a4, a5);};
case 7: return function(a0, a1, a2, a3, a4, a5, a6) {return fn.call(this, a0, a1, a2, a3, a4, a5, a6);};
case 8: return function(a0, a1, a2, a3, a4, a5, a6, a7) {return fn.call(this, a0, a1, a2, a3, a4, a5, a6, a7);};
case 9: return function(a0, a1, a2, a3, a4, a5, a6, a7, a8) {return fn.call(this, a0, a1, a2, a3, a4, a5, a6, a7, a8);};
case 10: return function(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {return fn.call(this, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);};
default: throw new Error('First argument to nAry must be a non-negative integer no greater than ten');
case 0:
return function () {
return fn.call(this);
};
case 1:
return function (a0) {
return fn.call(this, a0);
};
case 2:
return function (a0, a1) {
return fn.call(this, a0, a1);
};
case 3:
return function (a0, a1, a2) {
return fn.call(this, a0, a1, a2);
};
case 4:
return function (a0, a1, a2, a3) {
return fn.call(this, a0, a1, a2, a3);
};
case 5:
return function (a0, a1, a2, a3, a4) {
return fn.call(this, a0, a1, a2, a3, a4);
};
case 6:
return function (a0, a1, a2, a3, a4, a5) {
return fn.call(this, a0, a1, a2, a3, a4, a5);
};
case 7:
return function (a0, a1, a2, a3, a4, a5, a6) {
return fn.call(this, a0, a1, a2, a3, a4, a5, a6);
};
case 8:
return function (a0, a1, a2, a3, a4, a5, a6, a7) {
return fn.call(this, a0, a1, a2, a3, a4, a5, a6, a7);
};
case 9:
return function (a0, a1, a2, a3, a4, a5, a6, a7, a8) {
return fn.call(this, a0, a1, a2, a3, a4, a5, a6, a7, a8);
};
case 10:
return function (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {
return fn.call(this, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
};
default:
throw new Error('First argument to nAry must be a non-negative integer no greater than ten');
}
});
module.exports = nAry;

@@ -1,4 +0,3 @@

var _curry1 = require('./internal/_curry1');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
/**

@@ -18,2 +17,7 @@ * Negates its argument.

*/
module.exports = _curry1(function negate(n) { return -n; });
var negate = /*#__PURE__*/_curry1(function negate(n) {
return -n;
});
module.exports = negate;

@@ -1,8 +0,11 @@

var _complement = require('./internal/_complement');
var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _xany = require('./internal/_xany');
var any = require('./any');
var _complement = /*#__PURE__*/require('./internal/_complement');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _xany = /*#__PURE__*/require('./internal/_xany');
var any = /*#__PURE__*/require('./any');
/**

@@ -26,6 +29,10 @@ * Returns `true` if no elements of the list match the predicate, `false`

* var isEven = n => n % 2 === 0;
* var isOdd = n => n % 2 === 1;
*
* R.none(isEven, [1, 3, 5, 7, 9, 11]); //=> true
* R.none(isEven, [1, 3, 5, 7, 8, 11]); //=> false
* R.none(isOdd, [1, 3, 5, 7, 8, 11]); //=> false
*/
module.exports = _curry2(_complement(_dispatchable(['any'], _xany, any)));
var none = /*#__PURE__*/_curry2( /*#__PURE__*/_complement( /*#__PURE__*/_dispatchable(['any'], _xany, any)));
module.exports = none;

@@ -1,4 +0,3 @@

var _curry1 = require('./internal/_curry1');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
/**

@@ -23,4 +22,7 @@ * A function that returns the `!` of its argument. It will return `true` when

*/
module.exports = _curry1(function not(a) {
var not = /*#__PURE__*/_curry1(function not(a) {
return !a;
});
module.exports = not;

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

var _curry2 = require('./internal/_curry2');
var _isString = require('./internal/_isString');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _isString = /*#__PURE__*/require('./internal/_isString');

@@ -31,5 +31,8 @@ /**

*/
module.exports = _curry2(function nth(offset, list) {
var nth = /*#__PURE__*/_curry2(function nth(offset, list) {
var idx = offset < 0 ? list.length + offset : offset;
return _isString(list) ? list.charAt(idx) : list[idx];
});
module.exports = nth;

@@ -1,6 +0,7 @@

var _curry1 = require('./internal/_curry1');
var curryN = require('./curryN');
var nth = require('./nth');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var curryN = /*#__PURE__*/require('./curryN');
var nth = /*#__PURE__*/require('./nth');
/**

@@ -24,7 +25,10 @@ * Returns a function which returns its nth argument.

*/
module.exports = _curry1(function nthArg(n) {
var nthArg = /*#__PURE__*/_curry1(function nthArg(n) {
var arity = n < 0 ? 1 : n + 1;
return curryN(arity, function() {
return curryN(arity, function () {
return nth(n, arguments);
});
});
module.exports = nthArg;

@@ -1,4 +0,3 @@

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**

@@ -21,3 +20,3 @@ * `o` is a curried composition function that returns a unary function.

*
* var classyGreeting = name => "The name's " + name.last + ", " + name.first + " " + lastName
* var classyGreeting = name => "The name's " + name.last + ", " + name.first + " " + name.last
* var yellGreeting = R.o(R.toUpper, classyGreeting);

@@ -30,4 +29,7 @@ * yellGreeting({first: 'James', last: 'Bond'}); //=> "THE NAME'S BOND, JAMES BOND"

*/
module.exports = _curry3(function o(f, g, x) {
var o = /*#__PURE__*/_curry3(function o(f, g, x) {
return f(g(x));
});
module.exports = o;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -24,3 +23,5 @@ * Creates an object containing a single key:value pair.

*/
module.exports = _curry2(function objOf(key, val) {
var objOf = /*#__PURE__*/_curry2(function objOf(key, val) {
var obj = {};

@@ -30,1 +31,2 @@ obj[key] = val;

});
module.exports = objOf;

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

var _curry1 = require('./internal/_curry1');
var _of = require('./internal/_of');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var _of = /*#__PURE__*/require('./internal/_of');

@@ -23,2 +23,5 @@ /**

*/
module.exports = _curry1(_of);
var of = /*#__PURE__*/_curry1(_of);
module.exports = of;

@@ -1,5 +0,3 @@

var _contains = require('./internal/_contains');
var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -21,6 +19,17 @@ * Returns a partial copy of an object omitting the keys specified.

*/
module.exports = _curry2(function omit(names, obj) {
var omit = /*#__PURE__*/_curry2(function omit(names, obj) {
var result = {};
var index = {};
var idx = 0;
var len = names.length;
while (idx < len) {
index[names[idx]] = 1;
idx += 1;
}
for (var prop in obj) {
if (!_contains(prop, names)) {
if (!index.hasOwnProperty(prop)) {
result[prop] = obj[prop];

@@ -31,1 +40,2 @@ }

});
module.exports = omit;

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

var _arity = require('./internal/_arity');
var _curry1 = require('./internal/_curry1');
var _arity = /*#__PURE__*/require('./internal/_arity');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');

@@ -24,6 +24,8 @@ /**

*/
module.exports = _curry1(function once(fn) {
var once = /*#__PURE__*/_curry1(function once(fn) {
var called = false;
var result;
return _arity(fn.length, function() {
return _arity(fn.length, function () {
if (called) {

@@ -37,1 +39,2 @@ return result;

});
module.exports = once;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -24,4 +23,7 @@ * Returns `true` if one or both of its arguments are `true`. Returns `false`

*/
module.exports = _curry2(function or(a, b) {
var or = /*#__PURE__*/_curry2(function or(a, b) {
return a || b;
});
module.exports = or;

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

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
// `Identity` is a functor that holds a single value, where `map` simply
// transforms the held value with the provided function.
var Identity = function (x) {
return { value: x, map: function (f) {
return Identity(f(x));
} };
};
/**

@@ -26,15 +35,10 @@ * Returns the result of "setting" the portion of the given data structure

*/
module.exports = (function() {
// `Identity` is a functor that holds a single value, where `map` simply
// transforms the held value with the provided function.
var Identity = function(x) {
return {value: x, map: function(f) { return Identity(f(x)); }};
};
return _curry3(function over(lens, f, x) {
// The value returned by the getter function is first transformed with `f`,
// then set as the value of an `Identity`. This is then mapped over with the
// setter function of the lens.
return lens(function(y) { return Identity(f(y)); })(x).value;
});
}());
var over = /*#__PURE__*/_curry3(function over(lens, f, x) {
// The value returned by the getter function is first transformed with `f`,
// then set as the value of an `Identity`. This is then mapped over with the
// setter function of the lens.
return lens(function (y) {
return Identity(f(y));
})(x).value;
});
module.exports = over;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -20,2 +19,7 @@ * Takes two arguments, `fst` and `snd`, and returns `[fst, snd]`.

*/
module.exports = _curry2(function pair(fst, snd) { return [fst, snd]; });
var pair = /*#__PURE__*/_curry2(function pair(fst, snd) {
return [fst, snd];
});
module.exports = pair;

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

var _concat = require('./internal/_concat');
var _createPartialApplicator = require('./internal/_createPartialApplicator');
var _concat = /*#__PURE__*/require('./internal/_concat');
var _createPartialApplicator = /*#__PURE__*/require('./internal/_createPartialApplicator');

@@ -33,2 +33,5 @@ /**

*/
module.exports = _createPartialApplicator(_concat);
var partial = /*#__PURE__*/_createPartialApplicator(_concat);
module.exports = partial;

@@ -1,6 +0,7 @@

var _concat = require('./internal/_concat');
var _createPartialApplicator = require('./internal/_createPartialApplicator');
var flip = require('./flip');
var _concat = /*#__PURE__*/require('./internal/_concat');
var _createPartialApplicator = /*#__PURE__*/require('./internal/_createPartialApplicator');
var flip = /*#__PURE__*/require('./flip');
/**

@@ -30,2 +31,5 @@ * Takes a function `f` and a list of arguments, and returns a function `g`.

*/
module.exports = _createPartialApplicator(flip(_concat));
var partialRight = /*#__PURE__*/_createPartialApplicator( /*#__PURE__*/flip(_concat));
module.exports = partialRight;

@@ -1,6 +0,7 @@

var filter = require('./filter');
var juxt = require('./juxt');
var reject = require('./reject');
var filter = /*#__PURE__*/require('./filter');
var juxt = /*#__PURE__*/require('./juxt');
var reject = /*#__PURE__*/require('./reject');
/**

@@ -30,2 +31,5 @@ * Takes a predicate and a list or other `Filterable` object and returns the

*/
module.exports = juxt([filter, reject]);
var partition = /*#__PURE__*/juxt([filter, reject]);
module.exports = partition;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -22,3 +21,5 @@ * Retrieve the value at a given path.

*/
module.exports = _curry2(function path(paths, obj) {
var path = /*#__PURE__*/_curry2(function path(paths, obj) {
var val = obj;

@@ -35,1 +36,2 @@ var idx = 0;

});
module.exports = path;

@@ -1,6 +0,7 @@

var _curry3 = require('./internal/_curry3');
var equals = require('./equals');
var path = require('./path');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var equals = /*#__PURE__*/require('./equals');
var path = /*#__PURE__*/require('./path');
/**

@@ -30,4 +31,7 @@ * Determines whether a nested path on an object has a specific value, in

*/
module.exports = _curry3(function pathEq(_path, val, obj) {
var pathEq = /*#__PURE__*/_curry3(function pathEq(_path, val, obj) {
return equals(path(_path, obj), val);
});
module.exports = pathEq;

@@ -1,6 +0,7 @@

var _curry3 = require('./internal/_curry3');
var defaultTo = require('./defaultTo');
var path = require('./path');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var defaultTo = /*#__PURE__*/require('./defaultTo');
var path = /*#__PURE__*/require('./path');
/**

@@ -25,4 +26,7 @@ * If the given, non-null object has a value at the given path, returns the

*/
module.exports = _curry3(function pathOr(d, p, obj) {
var pathOr = /*#__PURE__*/_curry3(function pathOr(d, p, obj) {
return defaultTo(d, path(p, obj));
});
module.exports = pathOr;

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

var _curry3 = require('./internal/_curry3');
var path = require('./path');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var path = /*#__PURE__*/require('./path');

@@ -24,4 +24,7 @@ /**

*/
module.exports = _curry3(function pathSatisfies(pred, propPath, obj) {
var pathSatisfies = /*#__PURE__*/_curry3(function pathSatisfies(pred, propPath, obj) {
return propPath.length > 0 && pred(path(propPath, obj));
});
module.exports = pathSatisfies;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -22,3 +21,5 @@ * Returns a partial copy of an object containing only the keys specified. If

*/
module.exports = _curry2(function pick(names, obj) {
var pick = /*#__PURE__*/_curry2(function pick(names, obj) {
var result = {};

@@ -34,1 +35,2 @@ var idx = 0;

});
module.exports = pick;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -22,3 +21,5 @@ * Similar to `pick` except that this one includes a `key: undefined` pair for

*/
module.exports = _curry2(function pickAll(names, obj) {
var pickAll = /*#__PURE__*/_curry2(function pickAll(names, obj) {
var result = {};

@@ -34,1 +35,2 @@ var idx = 0;

});
module.exports = pickAll;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -12,3 +11,3 @@ * Returns a partial copy of an object containing only the keys that satisfy

* @category Object
* @sig (v, k -> Boolean) -> {k: v} -> {k: v}
* @sig ((v, k) -> Boolean) -> {k: v} -> {k: v}
* @param {Function} pred A predicate to determine whether or not a key

@@ -25,3 +24,5 @@ * should be included on the output object.

*/
module.exports = _curry2(function pickBy(test, obj) {
var pickBy = /*#__PURE__*/_curry2(function pickBy(test, obj) {
var result = {};

@@ -35,1 +36,2 @@ for (var prop in obj) {

});
module.exports = pickBy;

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

var _arity = require('./internal/_arity');
var _pipe = require('./internal/_pipe');
var reduce = require('./reduce');
var tail = require('./tail');
var _arity = /*#__PURE__*/require('./internal/_arity');
var _pipe = /*#__PURE__*/require('./internal/_pipe');
var reduce = /*#__PURE__*/require('./reduce');
var tail = /*#__PURE__*/require('./tail');
/**

@@ -30,8 +32,10 @@ * Performs left-to-right function composition. The leftmost function may have

*/
module.exports = function pipe() {
function pipe() {
if (arguments.length === 0) {
throw new Error('pipe requires at least one argument');
}
return _arity(arguments[0].length,
reduce(_pipe, arguments[0], tail(arguments)));
};
return _arity(arguments[0].length, reduce(_pipe, arguments[0], tail(arguments)));
}
module.exports = pipe;

@@ -1,4 +0,5 @@

var composeK = require('./composeK');
var reverse = require('./reverse');
var composeK = /*#__PURE__*/require('./composeK');
var reverse = /*#__PURE__*/require('./reverse');
/**

@@ -8,3 +9,3 @@ * Returns the left-to-right Kleisli composition of the provided functions,

*
* `R.pipeK(f, g, h)` is equivalent to `R.pipe(R.chain(f), R.chain(g), R.chain(h))`.
* `R.pipeK(f, g, h)` is equivalent to `R.pipe(f, R.chain(g), R.chain(h))`.
*

@@ -39,3 +40,5 @@ * @func

*/
module.exports = function pipeK() {
function pipeK() {
if (arguments.length === 0) {

@@ -45,2 +48,3 @@ throw new Error('pipeK requires at least one argument');

return composeK.apply(this, reverse(arguments));
};
}
module.exports = pipeK;

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

var _arity = require('./internal/_arity');
var _pipeP = require('./internal/_pipeP');
var reduce = require('./reduce');
var tail = require('./tail');
var _arity = /*#__PURE__*/require('./internal/_arity');
var _pipeP = /*#__PURE__*/require('./internal/_pipeP');
var reduce = /*#__PURE__*/require('./reduce');
var tail = /*#__PURE__*/require('./tail');
/**

@@ -25,8 +27,10 @@ * Performs left-to-right composition of one or more Promise-returning

*/
module.exports = function pipeP() {
function pipeP() {
if (arguments.length === 0) {
throw new Error('pipeP requires at least one argument');
}
return _arity(arguments[0].length,
reduce(_pipeP, arguments[0], tail(arguments)));
};
return _arity(arguments[0].length, reduce(_pipeP, arguments[0], tail(arguments)));
}
module.exports = pipeP;

@@ -1,6 +0,7 @@

var _curry2 = require('./internal/_curry2');
var map = require('./map');
var prop = require('./prop');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var map = /*#__PURE__*/require('./map');
var prop = /*#__PURE__*/require('./prop');
/**

@@ -31,4 +32,7 @@ * Returns a new list by plucking the same named property off all objects in

*/
module.exports = _curry2(function pluck(p, list) {
var pluck = /*#__PURE__*/_curry2(function pluck(p, list) {
return map(prop(p), list);
});
module.exports = pluck;

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

var _concat = require('./internal/_concat');
var _curry2 = require('./internal/_curry2');
var _concat = /*#__PURE__*/require('./internal/_concat');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');

@@ -22,4 +22,7 @@ /**

*/
module.exports = _curry2(function prepend(el, list) {
var prepend = /*#__PURE__*/_curry2(function prepend(el, list) {
return _concat([el], list);
});
module.exports = prepend;

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

var multiply = require('./multiply');
var reduce = require('./reduce');
var multiply = /*#__PURE__*/require('./multiply');
var reduce = /*#__PURE__*/require('./reduce');

@@ -20,2 +20,5 @@ /**

*/
module.exports = reduce(multiply, 1);
var product = /*#__PURE__*/reduce(multiply, 1);
module.exports = product;

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

var _map = require('./internal/_map');
var identity = require('./identity');
var pickAll = require('./pickAll');
var useWith = require('./useWith');
var _map = /*#__PURE__*/require('./internal/_map');
var identity = /*#__PURE__*/require('./identity');
var pickAll = /*#__PURE__*/require('./pickAll');
var useWith = /*#__PURE__*/require('./useWith');
/**

@@ -26,2 +28,5 @@ * Reasonable analog to SQL `select` statement.

*/
module.exports = useWith(_map, [pickAll, identity]); // passing `identity` gives correct arity
var project = /*#__PURE__*/useWith(_map, [pickAll, identity]); // passing `identity` gives correct arity
module.exports = project;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -22,2 +21,7 @@ * Returns a function that when supplied an object returns the indicated

*/
module.exports = _curry2(function prop(p, obj) { return obj[p]; });
var prop = /*#__PURE__*/_curry2(function prop(p, obj) {
return obj[p];
});
module.exports = prop;

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

var _curry3 = require('./internal/_curry3');
var equals = require('./equals');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var equals = /*#__PURE__*/require('./equals');

@@ -8,2 +8,3 @@ /**

* [`R.equals`](#equals) terms, to the given value; `false` otherwise.
* You can test multiple properties with [`R.where`](#where).
*

@@ -19,3 +20,3 @@ * @func

* @return {Boolean}
* @see R.equals, R.propSatisfies
* @see R.whereEq, R.propSatisfies, R.equals
* @example

@@ -31,4 +32,7 @@ *

*/
module.exports = _curry3(function propEq(name, val, obj) {
var propEq = /*#__PURE__*/_curry3(function propEq(name, val, obj) {
return equals(val, obj[name]);
});
module.exports = propEq;

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

var _curry3 = require('./internal/_curry3');
var is = require('./is');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var is = /*#__PURE__*/require('./is');

@@ -25,4 +25,7 @@ /**

*/
module.exports = _curry3(function propIs(type, name, obj) {
var propIs = /*#__PURE__*/_curry3(function propIs(type, name, obj) {
return is(type, obj[name]);
});
module.exports = propIs;

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

var _curry3 = require('./internal/_curry3');
var _has = require('./internal/_has');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var _has = /*#__PURE__*/require('./internal/_has');

@@ -31,4 +31,7 @@ /**

*/
module.exports = _curry3(function propOr(val, p, obj) {
return (obj != null && _has(p, obj)) ? obj[p] : val;
var propOr = /*#__PURE__*/_curry3(function propOr(val, p, obj) {
return obj != null && _has(p, obj) ? obj[p] : val;
});
module.exports = propOr;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -24,3 +23,5 @@ * Acts as multiple `prop`: array of keys in, array of values out. Preserves

*/
module.exports = _curry2(function props(ps, obj) {
var props = /*#__PURE__*/_curry2(function props(ps, obj) {
var len = ps.length;

@@ -37,1 +38,2 @@ var out = [];

});
module.exports = props;

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

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**
* Returns `true` if the specified object property satisfies the given
* predicate; `false` otherwise.
* predicate; `false` otherwise. You can test multiple properties with
* [`R.where`](#where).
*

@@ -17,3 +17,3 @@ * @func

* @return {Boolean}
* @see R.propEq, R.propIs
* @see R.where, R.propEq, R.propIs
* @example

@@ -23,4 +23,7 @@ *

*/
module.exports = _curry3(function propSatisfies(pred, name, obj) {
var propSatisfies = /*#__PURE__*/_curry3(function propSatisfies(pred, name, obj) {
return pred(obj[name]);
});
module.exports = propSatisfies;

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

var _curry2 = require('./internal/_curry2');
var _isNumber = require('./internal/_isNumber');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _isNumber = /*#__PURE__*/require('./internal/_isNumber');

@@ -21,3 +21,5 @@ /**

*/
module.exports = _curry2(function range(from, to) {
var range = /*#__PURE__*/_curry2(function range(from, to) {
if (!(_isNumber(from) && _isNumber(to))) {

@@ -34,1 +36,2 @@ throw new TypeError('Both arguments to range must be numbers');

});
module.exports = range;

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

var _curry3 = require('./internal/_curry3');
var _reduce = require('./internal/_reduce');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var _reduce = /*#__PURE__*/require('./internal/_reduce');

@@ -39,14 +39,17 @@ /**

* R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10
* - -10
* / \ / \
* - 4 -6 4
* / \ / \
* - 3 ==> -3 3
* / \ / \
* - 2 -1 2
* / \ / \
* 0 1 0 1
* // - -10
* // / \ / \
* // - 4 -6 4
* // / \ / \
* // - 3 ==> -3 3
* // / \ / \
* // - 2 -1 2
* // / \ / \
* // 0 1 0 1
*
* @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
*/
module.exports = _curry3(_reduce);
var reduce = /*#__PURE__*/_curry3(_reduce);
module.exports = reduce;

@@ -1,8 +0,11 @@

var _curryN = require('./internal/_curryN');
var _dispatchable = require('./internal/_dispatchable');
var _has = require('./internal/_has');
var _reduce = require('./internal/_reduce');
var _xreduceBy = require('./internal/_xreduceBy');
var _curryN = /*#__PURE__*/require('./internal/_curryN');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _has = /*#__PURE__*/require('./internal/_has');
var _reduce = /*#__PURE__*/require('./internal/_reduce');
var _xreduceBy = /*#__PURE__*/require('./internal/_xreduceBy');
/**

@@ -52,9 +55,11 @@ * Groups the elements of the list according to the result of calling

*/
module.exports = _curryN(4, [], _dispatchable([], _xreduceBy,
function reduceBy(valueFn, valueAcc, keyFn, list) {
return _reduce(function(acc, elt) {
var key = keyFn(elt);
acc[key] = valueFn(_has(key, acc) ? acc[key] : valueAcc, elt);
return acc;
}, {}, list);
}));
var reduceBy = /*#__PURE__*/_curryN(4, [], /*#__PURE__*/_dispatchable([], _xreduceBy, function reduceBy(valueFn, valueAcc, keyFn, list) {
return _reduce(function (acc, elt) {
var key = keyFn(elt);
acc[key] = valueFn(_has(key, acc) ? acc[key] : valueAcc, elt);
return acc;
}, {}, list);
}));
module.exports = reduceBy;

@@ -1,4 +0,5 @@

var _curry1 = require('./internal/_curry1');
var _reduced = require('./internal/_reduced');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var _reduced = /*#__PURE__*/require('./internal/_reduced');
/**

@@ -29,2 +30,4 @@ * Returns a value wrapped to indicate that it is the final value of the reduce

module.exports = _curry1(_reduced);
var reduced = /*#__PURE__*/_curry1(_reduced);
module.exports = reduced;

@@ -1,4 +0,3 @@

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**

@@ -24,3 +23,3 @@ * Returns a single item by iterating through the list, successively calling

* @category List
* @sig (a, b -> b) -> b -> [a] -> b
* @sig ((a, b) -> b) -> b -> [a] -> b
* @param {Function} fn The iterator function. Receives two values, the current element from the array

@@ -35,15 +34,17 @@ * and the accumulator.

* R.reduceRight(R.subtract, 0, [1, 2, 3, 4]) // => (1 - (2 - (3 - (4 - 0)))) = -2
* - -2
* / \ / \
* 1 - 1 3
* / \ / \
* 2 - ==> 2 -1
* / \ / \
* 3 - 3 4
* / \ / \
* 4 0 4 0
* // - -2
* // / \ / \
* // 1 - 1 3
* // / \ / \
* // 2 - ==> 2 -1
* // / \ / \
* // 3 - 3 4
* // / \ / \
* // 4 0 4 0
*
* @symb R.reduceRight(f, a, [b, c, d]) = f(b, f(c, f(d, a)))
*/
module.exports = _curry3(function reduceRight(fn, acc, list) {
var reduceRight = /*#__PURE__*/_curry3(function reduceRight(fn, acc, list) {
var idx = list.length - 1;

@@ -56,1 +57,2 @@ while (idx >= 0) {

});
module.exports = reduceRight;

@@ -1,6 +0,7 @@

var _curryN = require('./internal/_curryN');
var _reduce = require('./internal/_reduce');
var _reduced = require('./internal/_reduced');
var _curryN = /*#__PURE__*/require('./internal/_curryN');
var _reduce = /*#__PURE__*/require('./internal/_reduce');
var _reduced = /*#__PURE__*/require('./internal/_reduced');
/**

@@ -35,6 +36,9 @@ * Like [`reduce`](#reduce), `reduceWhile` returns a single item by iterating

*/
module.exports = _curryN(4, [], function _reduceWhile(pred, fn, a, list) {
return _reduce(function(acc, x) {
var reduceWhile = /*#__PURE__*/_curryN(4, [], function _reduceWhile(pred, fn, a, list) {
return _reduce(function (acc, x) {
return pred(acc, x) ? fn(acc, x) : _reduced(acc);
}, a, list);
});
module.exports = reduceWhile;

@@ -1,6 +0,7 @@

var _complement = require('./internal/_complement');
var _curry2 = require('./internal/_curry2');
var filter = require('./filter');
var _complement = /*#__PURE__*/require('./internal/_complement');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var filter = /*#__PURE__*/require('./filter');
/**

@@ -30,4 +31,7 @@ * The complement of [`filter`](#filter).

*/
module.exports = _curry2(function reject(pred, filterable) {
var reject = /*#__PURE__*/_curry2(function reject(pred, filterable) {
return filter(_complement(pred), filterable);
});
module.exports = reject;

@@ -1,4 +0,3 @@

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**

@@ -23,3 +22,5 @@ * Removes the sub-list of `list` starting at index `start` and containing

*/
module.exports = _curry3(function remove(start, count, list) {
var remove = /*#__PURE__*/_curry3(function remove(start, count, list) {
var result = Array.prototype.slice.call(list, 0);

@@ -29,1 +30,2 @@ result.splice(start, count);

});
module.exports = remove;

@@ -1,6 +0,7 @@

var _curry2 = require('./internal/_curry2');
var always = require('./always');
var times = require('./times');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var always = /*#__PURE__*/require('./always');
var times = /*#__PURE__*/require('./times');
/**

@@ -29,4 +30,7 @@ * Returns a fixed list of size `n` containing a specified identical value.

*/
module.exports = _curry2(function repeat(value, n) {
var repeat = /*#__PURE__*/_curry2(function repeat(value, n) {
return times(always(value), n);
});
module.exports = repeat;

@@ -1,4 +0,3 @@

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**

@@ -24,4 +23,7 @@ * Replace a substring or regex match in a string with a replacement.

*/
module.exports = _curry3(function replace(regex, replacement, str) {
var replace = /*#__PURE__*/_curry3(function replace(regex, replacement, str) {
return str.replace(regex, replacement);
});
module.exports = replace;

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

var _curry1 = require('./internal/_curry1');
var _isString = require('./internal/_isString');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var _isString = /*#__PURE__*/require('./internal/_isString');

@@ -29,5 +29,7 @@ /**

*/
module.exports = _curry1(function reverse(list) {
return _isString(list) ? list.split('').reverse().join('') :
Array.prototype.slice.call(list, 0).reverse();
var reverse = /*#__PURE__*/_curry1(function reverse(list) {
return _isString(list) ? list.split('').reverse().join('') : Array.prototype.slice.call(list, 0).reverse();
});
module.exports = reverse;

@@ -1,4 +0,3 @@

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**

@@ -12,3 +11,3 @@ * Scan is similar to [`reduce`](#reduce), but returns a list of successively

* @category List
* @sig (a,b -> a) -> a -> [b] -> [a]
* @sig ((a, b) -> a) -> a -> [b] -> [a]
* @param {Function} fn The iterator function. Receives two values, the accumulator and the

@@ -26,3 +25,5 @@ * current element from the array

*/
module.exports = _curry3(function scan(fn, acc, list) {
var scan = /*#__PURE__*/_curry3(function scan(fn, acc, list) {
var idx = 0;

@@ -38,1 +39,2 @@ var len = list.length;

});
module.exports = scan;

@@ -1,8 +0,11 @@

var _curry2 = require('./internal/_curry2');
var ap = require('./ap');
var map = require('./map');
var prepend = require('./prepend');
var reduceRight = require('./reduceRight');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var ap = /*#__PURE__*/require('./ap');
var map = /*#__PURE__*/require('./map');
var prepend = /*#__PURE__*/require('./prepend');
var reduceRight = /*#__PURE__*/require('./reduceRight');
/**

@@ -32,8 +35,9 @@ * Transforms a [Traversable](https://github.com/fantasyland/fantasy-land#traversable)

*/
module.exports = _curry2(function sequence(of, traversable) {
return typeof traversable.sequence === 'function' ?
traversable.sequence(of) :
reduceRight(function(x, acc) { return ap(map(prepend, x), acc); },
of([]),
traversable);
var sequence = /*#__PURE__*/_curry2(function sequence(of, traversable) {
return typeof traversable.sequence === 'function' ? traversable.sequence(of) : reduceRight(function (x, acc) {
return ap(map(prepend, x), acc);
}, of([]), traversable);
});
module.exports = sequence;

@@ -1,6 +0,7 @@

var _curry3 = require('./internal/_curry3');
var always = require('./always');
var over = require('./over');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var always = /*#__PURE__*/require('./always');
var over = /*#__PURE__*/require('./over');
/**

@@ -28,4 +29,7 @@ * Returns the result of "setting" the portion of the given data structure

*/
module.exports = _curry3(function set(lens, v, x) {
var set = /*#__PURE__*/_curry3(function set(lens, v, x) {
return over(lens, always(v), x);
});
module.exports = set;

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

var _checkForMethod = require('./internal/_checkForMethod');
var _curry3 = require('./internal/_curry3');
var _checkForMethod = /*#__PURE__*/require('./internal/_checkForMethod');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');

@@ -29,4 +29,7 @@ /**

*/
module.exports = _curry3(_checkForMethod('slice', function slice(fromIndex, toIndex, list) {
var slice = /*#__PURE__*/_curry3( /*#__PURE__*/_checkForMethod('slice', function slice(fromIndex, toIndex, list) {
return Array.prototype.slice.call(list, fromIndex, toIndex);
}));
module.exports = slice;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -15,3 +14,3 @@ * Returns a copy of the list, sorted according to the comparator function,

* @category List
* @sig (a,a -> Number) -> [a] -> [a]
* @sig ((a, a) -> Number) -> [a] -> [a]
* @param {Function} comparator A sorting function :: a -> b -> Int

@@ -25,4 +24,7 @@ * @param {Array} list The list to sort

*/
module.exports = _curry2(function sort(comparator, list) {
var sort = /*#__PURE__*/_curry2(function sort(comparator, list) {
return Array.prototype.slice.call(list, 0).sort(comparator);
});
module.exports = sort;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -36,4 +35,6 @@ * Sorts the list according to the supplied function.

*/
module.exports = _curry2(function sortBy(fn, list) {
return Array.prototype.slice.call(list, 0).sort(function(a, b) {
var sortBy = /*#__PURE__*/_curry2(function sortBy(fn, list) {
return Array.prototype.slice.call(list, 0).sort(function (a, b) {
var aa = fn(a);

@@ -44,1 +45,2 @@ var bb = fn(b);

});
module.exports = sortBy;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -11,3 +10,3 @@ * Sorts a list according to a list of comparators.

* @category Relation
* @sig [a -> a -> Number] -> [a] -> [a]
* @sig [(a, a) -> Number] -> [a] -> [a]
* @param {Array} functions A list of comparator functions.

@@ -37,4 +36,6 @@ * @param {Array} list The list to sort.

*/
module.exports = _curry2(function sortWith(fns, list) {
return Array.prototype.slice.call(list, 0).sort(function(a, b) {
var sortWith = /*#__PURE__*/_curry2(function sortWith(fns, list) {
return Array.prototype.slice.call(list, 0).sort(function (a, b) {
var result = 0;

@@ -49,1 +50,2 @@ var i = 0;

});
module.exports = sortWith;

@@ -1,4 +0,3 @@

var invoker = require('./invoker');
var invoker = /*#__PURE__*/require('./invoker');
/**

@@ -24,2 +23,5 @@ * Splits a string into an array of strings based on the given

*/
module.exports = invoker(1, 'split');
var split = /*#__PURE__*/invoker(1, 'split');
module.exports = split;

@@ -1,6 +0,7 @@

var _curry2 = require('./internal/_curry2');
var length = require('./length');
var slice = require('./slice');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var length = /*#__PURE__*/require('./length');
var slice = /*#__PURE__*/require('./slice');
/**

@@ -24,4 +25,7 @@ * Splits a given list or string at a given index.

*/
module.exports = _curry2(function splitAt(index, array) {
var splitAt = /*#__PURE__*/_curry2(function splitAt(index, array) {
return [slice(0, index, array), slice(index, length(array), array)];
});
module.exports = splitAt;

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

var _curry2 = require('./internal/_curry2');
var slice = require('./slice');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var slice = /*#__PURE__*/require('./slice');

@@ -22,3 +22,5 @@ /**

*/
module.exports = _curry2(function splitEvery(n, list) {
var splitEvery = /*#__PURE__*/_curry2(function splitEvery(n, list) {
if (n <= 0) {

@@ -34,1 +36,2 @@ throw new Error('First argument to splitEvery must be a positive integer');

});
module.exports = splitEvery;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -23,3 +22,5 @@ * Takes a list and a predicate and returns a pair of lists with the following properties:

*/
module.exports = _curry2(function splitWhen(pred, list) {
var splitWhen = /*#__PURE__*/_curry2(function splitWhen(pred, list) {
var idx = 0;

@@ -36,1 +37,2 @@ var len = list.length;

});
module.exports = splitWhen;

@@ -1,5 +0,7 @@

var _curry2 = require('./internal/_curry2');
var equals = require('./equals');
var take = require('./take');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var equals = /*#__PURE__*/require('./equals');
var take = /*#__PURE__*/require('./take');
/**

@@ -24,4 +26,7 @@ * Checks if a list starts with the provided values

*/
module.exports = _curry2(function(prefix, list) {
var startsWith = /*#__PURE__*/_curry2(function (prefix, list) {
return equals(take(prefix.length, list), prefix);
});
module.exports = startsWith;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -27,4 +26,7 @@ * Subtracts its second argument from its first argument.

*/
module.exports = _curry2(function subtract(a, b) {
var subtract = /*#__PURE__*/_curry2(function subtract(a, b) {
return Number(a) - Number(b);
});
module.exports = subtract;

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

var add = require('./add');
var reduce = require('./reduce');
var add = /*#__PURE__*/require('./add');
var reduce = /*#__PURE__*/require('./reduce');

@@ -20,2 +20,5 @@ /**

*/
module.exports = reduce(add, 0);
var sum = /*#__PURE__*/reduce(add, 0);
module.exports = sum;

@@ -1,6 +0,7 @@

var _curry2 = require('./internal/_curry2');
var concat = require('./concat');
var difference = require('./difference');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var concat = /*#__PURE__*/require('./concat');
var difference = /*#__PURE__*/require('./difference');
/**

@@ -24,4 +25,7 @@ * Finds the set (i.e. no duplicates) of all elements contained in the first or

*/
module.exports = _curry2(function symmetricDifference(list1, list2) {
var symmetricDifference = /*#__PURE__*/_curry2(function symmetricDifference(list1, list2) {
return concat(difference(list1, list2), difference(list2, list1));
});
module.exports = symmetricDifference;

@@ -1,6 +0,7 @@

var _curry3 = require('./internal/_curry3');
var concat = require('./concat');
var differenceWith = require('./differenceWith');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var concat = /*#__PURE__*/require('./concat');
var differenceWith = /*#__PURE__*/require('./differenceWith');
/**

@@ -28,4 +29,7 @@ * Finds the set (i.e. no duplicates) of all elements contained in the first or

*/
module.exports = _curry3(function symmetricDifferenceWith(pred, list1, list2) {
var symmetricDifferenceWith = /*#__PURE__*/_curry3(function symmetricDifferenceWith(pred, list1, list2) {
return concat(differenceWith(pred, list1, list2), differenceWith(pred, list2, list1));
});
module.exports = symmetricDifferenceWith;

@@ -1,4 +0,3 @@

var always = require('./always');
var always = /*#__PURE__*/require('./always');
/**

@@ -19,2 +18,5 @@ * A function that always returns `true`. Any passed in parameters are ignored.

*/
module.exports = always(true);
var T = /*#__PURE__*/always(true);
module.exports = T;

@@ -1,6 +0,7 @@

var _checkForMethod = require('./internal/_checkForMethod');
var _curry1 = require('./internal/_curry1');
var slice = require('./slice');
var _checkForMethod = /*#__PURE__*/require('./internal/_checkForMethod');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var slice = /*#__PURE__*/require('./slice');
/**

@@ -33,2 +34,5 @@ * Returns all but the first element of the given list or string (or object

*/
module.exports = _curry1(_checkForMethod('tail', slice(1, Infinity)));
var tail = /*#__PURE__*/_curry1( /*#__PURE__*/_checkForMethod('tail', /*#__PURE__*/slice(1, Infinity)));
module.exports = tail;

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

var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _xtake = require('./internal/_xtake');
var slice = require('./slice');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _xtake = /*#__PURE__*/require('./internal/_xtake');
var slice = /*#__PURE__*/require('./slice');
/**

@@ -50,4 +52,7 @@ * Returns the first `n` elements of the given list, string, or

*/
module.exports = _curry2(_dispatchable(['take'], _xtake, function take(n, xs) {
var take = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['take'], _xtake, function take(n, xs) {
return slice(0, n < 0 ? Infinity : n, xs);
}));
module.exports = take;

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

var _curry2 = require('./internal/_curry2');
var drop = require('./drop');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var drop = /*#__PURE__*/require('./drop');

@@ -27,4 +27,7 @@ /**

*/
module.exports = _curry2(function takeLast(n, xs) {
var takeLast = /*#__PURE__*/_curry2(function takeLast(n, xs) {
return drop(n >= 0 ? xs.length - n : 0, xs);
});
module.exports = takeLast;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -26,3 +25,5 @@ * Returns a new list containing the last `n` elements of a given list, passing

*/
module.exports = _curry2(function takeLastWhile(fn, list) {
var takeLastWhile = /*#__PURE__*/_curry2(function takeLastWhile(fn, list) {
var idx = list.length - 1;

@@ -34,1 +35,2 @@ while (idx >= 0 && fn(list[idx])) {

});
module.exports = takeLastWhile;

@@ -1,6 +0,7 @@

var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _xtakeWhile = require('./internal/_xtakeWhile');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _xtakeWhile = /*#__PURE__*/require('./internal/_xtakeWhile');
/**

@@ -32,3 +33,5 @@ * Returns a new list containing the first `n` elements of a given list,

*/
module.exports = _curry2(_dispatchable(['takeWhile'], _xtakeWhile, function takeWhile(fn, list) {
var takeWhile = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['takeWhile'], _xtakeWhile, function takeWhile(fn, list) {
var idx = 0;

@@ -41,1 +44,2 @@ var len = list.length;

}));
module.exports = takeWhile;

@@ -1,7 +0,12 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable');
var _xtap = /*#__PURE__*/require('./internal/_xtap');
/**
* Runs the given function with the supplied object, then returns the object.
*
* Acts as a transducer if a transformer is given as second parameter.
*
* @func

@@ -22,5 +27,8 @@ * @memberOf R

*/
module.exports = _curry2(function tap(fn, x) {
var tap = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable([], _xtap, function tap(fn, x) {
fn(x);
return x;
});
}));
module.exports = tap;

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

var _cloneRegExp = require('./internal/_cloneRegExp');
var _curry2 = require('./internal/_curry2');
var _isRegExp = require('./internal/_isRegExp');
var toString = require('./toString');
var _cloneRegExp = /*#__PURE__*/require('./internal/_cloneRegExp');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _isRegExp = /*#__PURE__*/require('./internal/_isRegExp');
var toString = /*#__PURE__*/require('./toString');
/**

@@ -24,3 +26,5 @@ * Determines whether a given string matches a given regular expression.

*/
module.exports = _curry2(function test(pattern, str) {
var test = /*#__PURE__*/_curry2(function test(pattern, str) {
if (!_isRegExp(pattern)) {

@@ -31,1 +35,2 @@ throw new TypeError('‘test’ requires a value of type RegExp as its first argument; received ' + toString(pattern));

});
module.exports = test;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -27,3 +26,5 @@ * Calls an input function `n` times, returning an array containing the results

*/
module.exports = _curry2(function times(fn, n) {
var times = /*#__PURE__*/_curry2(function times(fn, n) {
var len = Number(n);

@@ -43,1 +44,2 @@ var idx = 0;

});
module.exports = times;

@@ -1,4 +0,3 @@

var invoker = require('./invoker');
var invoker = /*#__PURE__*/require('./invoker');
/**

@@ -19,2 +18,5 @@ * The lower case version of a string.

*/
module.exports = invoker(0, 'toLowerCase');
var toLower = /*#__PURE__*/invoker(0, 'toLowerCase');
module.exports = toLower;

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

var _curry1 = require('./internal/_curry1');
var _has = require('./internal/_has');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var _has = /*#__PURE__*/require('./internal/_has');

@@ -23,3 +23,5 @@ /**

*/
module.exports = _curry1(function toPairs(obj) {
var toPairs = /*#__PURE__*/_curry1(function toPairs(obj) {
var pairs = [];

@@ -33,1 +35,2 @@ for (var prop in obj) {

});
module.exports = toPairs;

@@ -1,4 +0,3 @@

var _curry1 = require('./internal/_curry1');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
/**

@@ -25,3 +24,5 @@ * Converts an object into an array of key, value arrays. The object's own

*/
module.exports = _curry1(function toPairsIn(obj) {
var toPairsIn = /*#__PURE__*/_curry1(function toPairsIn(obj) {
var pairs = [];

@@ -33,1 +34,2 @@ for (var prop in obj) {

});
module.exports = toPairsIn;

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

var _curry1 = require('./internal/_curry1');
var _toString = require('./internal/_toString');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var _toString = /*#__PURE__*/require('./internal/_toString');

@@ -41,2 +41,7 @@ /**

*/
module.exports = _curry1(function toString(val) { return _toString(val, []); });
var toString = /*#__PURE__*/_curry1(function toString(val) {
return _toString(val, []);
});
module.exports = toString;

@@ -1,4 +0,3 @@

var invoker = require('./invoker');
var invoker = /*#__PURE__*/require('./invoker');
/**

@@ -19,2 +18,5 @@ * The upper case version of a string.

*/
module.exports = invoker(0, 'toUpperCase');
var toUpper = /*#__PURE__*/invoker(0, 'toUpperCase');
module.exports = toUpper;

@@ -1,6 +0,7 @@

var _reduce = require('./internal/_reduce');
var _xwrap = require('./internal/_xwrap');
var curryN = require('./curryN');
var _reduce = /*#__PURE__*/require('./internal/_reduce');
var _xwrap = /*#__PURE__*/require('./internal/_xwrap');
var curryN = /*#__PURE__*/require('./curryN');
/**

@@ -34,3 +35,3 @@ * Initializes a transducer using supplied iterator function. Returns a single

* @category List
* @sig (c -> c) -> (a,b -> a) -> a -> [b] -> a
* @sig (c -> c) -> ((a, b) -> a) -> a -> [b] -> a
* @param {Function} xf The transducer function. Receives a transformer and returns a transformer.

@@ -48,7 +49,13 @@ * @param {Function} fn The iterator function. Receives two values, the accumulator and the

* var transducer = R.compose(R.map(R.add(1)), R.take(2));
* R.transduce(transducer, R.flip(R.append), [], numbers); //=> [2, 3]
*
* R.transduce(transducer, R.flip(R.append), [], numbers); //=> [2, 3]
* var isOdd = (x) => x % 2 === 1;
* var firstOddTransducer = R.compose(R.filter(isOdd), R.take(1));
* R.transduce(firstOddTransducer, R.flip(R.append), [], R.range(0, 100)); //=> [1]
*/
module.exports = curryN(4, function transduce(xf, fn, acc, list) {
var transduce = /*#__PURE__*/curryN(4, function transduce(xf, fn, acc, list) {
return _reduce(xf(typeof fn === 'function' ? _xwrap(fn) : fn), acc, list);
});
module.exports = transduce;

@@ -1,4 +0,3 @@

var _curry1 = require('./internal/_curry1');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
/**

@@ -28,3 +27,5 @@ * Transposes the rows and columns of a 2D list.

*/
module.exports = _curry1(function transpose(outerlist) {
var transpose = /*#__PURE__*/_curry1(function transpose(outerlist) {
var i = 0;

@@ -46,1 +47,2 @@ var result = [];

});
module.exports = transpose;

@@ -1,6 +0,7 @@

var _curry3 = require('./internal/_curry3');
var map = require('./map');
var sequence = require('./sequence');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var map = /*#__PURE__*/require('./map');
var sequence = /*#__PURE__*/require('./sequence');
/**

@@ -12,3 +13,3 @@ * Maps an [Applicative](https://github.com/fantasyland/fantasy-land#applicative)-returning

*
* Dispatches to the `sequence` method of the third argument, if present.
* Dispatches to the `traverse` method of the third argument, if present.
*

@@ -33,6 +34,7 @@ * @func

*/
module.exports = _curry3(function traverse(of, f, traversable) {
return typeof traversable['fantasy-land/traverse'] === 'function' ?
traversable['fantasy-land/traverse'](f, of) :
sequence(of, map(f, traversable));
var traverse = /*#__PURE__*/_curry3(function traverse(of, f, traversable) {
return typeof traversable['fantasy-land/traverse'] === 'function' ? traversable['fantasy-land/traverse'](f, of) : sequence(of, map(f, traversable));
});
module.exports = traverse;

@@ -1,4 +0,6 @@

var _curry1 = require('./internal/_curry1');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var ws = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028' + '\u2029\uFEFF';
var zeroWidth = '\u200b';
var hasProtoTrim = typeof String.prototype.trim === 'function';
/**

@@ -19,19 +21,10 @@ * Removes (strips) whitespace from both ends of the string.

*/
module.exports = (function() {
var ws = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
'\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028' +
'\u2029\uFEFF';
var zeroWidth = '\u200b';
var hasProtoTrim = (typeof String.prototype.trim === 'function');
if (!hasProtoTrim || (ws.trim() || !zeroWidth.trim())) {
return _curry1(function trim(str) {
var beginRx = new RegExp('^[' + ws + '][' + ws + ']*');
var endRx = new RegExp('[' + ws + '][' + ws + ']*$');
return str.replace(beginRx, '').replace(endRx, '');
});
} else {
return _curry1(function trim(str) {
return str.trim();
});
}
}());
var _trim = !hasProtoTrim || /*#__PURE__*/ws.trim() || ! /*#__PURE__*/zeroWidth.trim() ? function trim(str) {
var beginRx = new RegExp('^[' + ws + '][' + ws + ']*');
var endRx = new RegExp('[' + ws + '][' + ws + ']*$');
return str.replace(beginRx, '').replace(endRx, '');
} : function trim(str) {
return str.trim();
};
var trim = /*#__PURE__*/_curry1(_trim);
module.exports = trim;

@@ -1,6 +0,7 @@

var _arity = require('./internal/_arity');
var _concat = require('./internal/_concat');
var _curry2 = require('./internal/_curry2');
var _arity = /*#__PURE__*/require('./internal/_arity');
var _concat = /*#__PURE__*/require('./internal/_concat');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -27,4 +28,6 @@ * `tryCatch` takes two functions, a `tryer` and a `catcher`. The returned

*/
module.exports = _curry2(function _tryCatch(tryer, catcher) {
return _arity(tryer.length, function() {
var tryCatch = /*#__PURE__*/_curry2(function _tryCatch(tryer, catcher) {
return _arity(tryer.length, function () {
try {

@@ -37,1 +40,2 @@ return tryer.apply(this, arguments);

});
module.exports = tryCatch;

@@ -1,4 +0,3 @@

var _curry1 = require('./internal/_curry1');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
/**

@@ -27,7 +26,9 @@ * Gives a single-word string description of the (native) type of a value,

* R.type(() => {}); //=> "Function"
* R.type(undefined); //=> "Undefined"
*/
module.exports = _curry1(function type(val) {
return val === null ? 'Null' :
val === undefined ? 'Undefined' :
Object.prototype.toString.call(val).slice(8, -1);
var type = /*#__PURE__*/_curry1(function type(val) {
return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);
});
module.exports = type;

@@ -1,4 +0,3 @@

var _curry1 = require('./internal/_curry1');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
/**

@@ -28,6 +27,9 @@ * Takes a function `fn`, which takes a single array argument, and returns a

*/
module.exports = _curry1(function unapply(fn) {
return function() {
var unapply = /*#__PURE__*/_curry1(function unapply(fn) {
return function () {
return fn(Array.prototype.slice.call(arguments, 0));
};
});
module.exports = unapply;

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

var _curry1 = require('./internal/_curry1');
var nAry = require('./nAry');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var nAry = /*#__PURE__*/require('./nAry');

@@ -33,4 +33,7 @@ /**

*/
module.exports = _curry1(function unary(fn) {
var unary = /*#__PURE__*/_curry1(function unary(fn) {
return nAry(1, fn);
});
module.exports = unary;

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

var _curry2 = require('./internal/_curry2');
var curryN = require('./curryN');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var curryN = /*#__PURE__*/require('./curryN');

@@ -24,4 +24,6 @@ /**

*/
module.exports = _curry2(function uncurryN(depth, fn) {
return curryN(depth, function() {
var uncurryN = /*#__PURE__*/_curry2(function uncurryN(depth, fn) {
return curryN(depth, function () {
var currentDepth = 1;

@@ -40,1 +42,2 @@ var value = fn;

});
module.exports = uncurryN;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -29,3 +28,5 @@ * Builds a list from a seed value. Accepts an iterator function, which returns

*/
module.exports = _curry2(function unfold(fn, seed) {
var unfold = /*#__PURE__*/_curry2(function unfold(fn, seed) {
var pair = fn(seed);

@@ -39,1 +40,2 @@ var result = [];

});
module.exports = unfold;

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

var _concat = require('./internal/_concat');
var _curry2 = require('./internal/_curry2');
var compose = require('./compose');
var uniq = require('./uniq');
var _concat = /*#__PURE__*/require('./internal/_concat');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var compose = /*#__PURE__*/require('./compose');
var uniq = /*#__PURE__*/require('./uniq');
/**

@@ -24,2 +26,5 @@ * Combines two lists into a set (i.e. no duplicates) composed of the elements

*/
module.exports = _curry2(compose(uniq, _concat));
var union = /*#__PURE__*/_curry2( /*#__PURE__*/compose(uniq, _concat));
module.exports = union;

@@ -1,6 +0,7 @@

var _concat = require('./internal/_concat');
var _curry3 = require('./internal/_curry3');
var uniqWith = require('./uniqWith');
var _concat = /*#__PURE__*/require('./internal/_concat');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var uniqWith = /*#__PURE__*/require('./uniqWith');
/**

@@ -15,3 +16,3 @@ * Combines two lists into a set (i.e. no duplicates) composed of the elements

* @category Relation
* @sig (a -> a -> Boolean) -> [*] -> [*] -> [*]
* @sig ((a, a) -> Boolean) -> [*] -> [*] -> [*]
* @param {Function} pred A predicate used to test whether two items are equal.

@@ -29,4 +30,7 @@ * @param {Array} list1 The first list.

*/
module.exports = _curry3(function unionWith(pred, list1, list2) {
var unionWith = /*#__PURE__*/_curry3(function unionWith(pred, list1, list2) {
return uniqWith(pred, _concat(list1, list2));
});
module.exports = unionWith;

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

var identity = require('./identity');
var uniqBy = require('./uniqBy');
var identity = /*#__PURE__*/require('./identity');
var uniqBy = /*#__PURE__*/require('./uniqBy');

@@ -22,2 +22,5 @@ /**

*/
module.exports = uniqBy(identity);
var uniq = /*#__PURE__*/uniqBy(identity);
module.exports = uniq;

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

var _Set = require('./internal/_Set');
var _curry2 = require('./internal/_curry2');
var _Set = /*#__PURE__*/require('./internal/_Set');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');

@@ -23,3 +23,5 @@ /**

*/
module.exports = _curry2(function uniqBy(fn, list) {
var uniqBy = /*#__PURE__*/_curry2(function uniqBy(fn, list) {
var set = new _Set();

@@ -40,1 +42,2 @@ var result = [];

});
module.exports = uniqBy;

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

var _containsWith = require('./internal/_containsWith');
var _curry2 = require('./internal/_curry2');
var _containsWith = /*#__PURE__*/require('./internal/_containsWith');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');

@@ -15,3 +15,3 @@ /**

* @category List
* @sig (a, a -> Boolean) -> [a] -> [a]
* @sig ((a, a) -> Boolean) -> [a] -> [a]
* @param {Function} pred A predicate used to test whether two items are equal.

@@ -28,3 +28,5 @@ * @param {Array} list The array to consider.

*/
module.exports = _curry2(function uniqWith(pred, list) {
var uniqWith = /*#__PURE__*/_curry2(function uniqWith(pred, list) {
var idx = 0;

@@ -43,1 +45,2 @@ var len = list.length;

});
module.exports = uniqWith;

@@ -1,4 +0,3 @@

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**

@@ -28,4 +27,7 @@ * Tests the final argument by passing it to the given predicate function. If

*/
module.exports = _curry3(function unless(pred, whenFalseFn, x) {
var unless = /*#__PURE__*/_curry3(function unless(pred, whenFalseFn, x) {
return pred(x) ? x : whenFalseFn(x);
});
module.exports = unless;

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

var _identity = require('./internal/_identity');
var chain = require('./chain');
var _identity = /*#__PURE__*/require('./internal/_identity');
var chain = /*#__PURE__*/require('./chain');

@@ -22,2 +22,5 @@ /**

*/
module.exports = chain(_identity);
var unnest = /*#__PURE__*/chain(_identity);
module.exports = unnest;

@@ -1,4 +0,3 @@

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**

@@ -23,3 +22,5 @@ * Takes a predicate, a transformation function, and an initial value,

*/
module.exports = _curry3(function until(pred, fn, init) {
var until = /*#__PURE__*/_curry3(function until(pred, fn, init) {
var val = init;

@@ -31,1 +32,2 @@ while (!pred(val)) {

});
module.exports = until;

@@ -1,6 +0,7 @@

var _curry3 = require('./internal/_curry3');
var adjust = require('./adjust');
var always = require('./always');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
var adjust = /*#__PURE__*/require('./adjust');
var always = /*#__PURE__*/require('./always');
/**

@@ -28,4 +29,7 @@ * Returns a new copy of the array with the element at the provided index

*/
module.exports = _curry3(function update(idx, x, list) {
var update = /*#__PURE__*/_curry3(function update(idx, x, list) {
return adjust(always(x), idx, list);
});
module.exports = update;

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

var _curry2 = require('./internal/_curry2');
var curryN = require('./curryN');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var curryN = /*#__PURE__*/require('./curryN');

@@ -21,3 +21,3 @@ /**

* @category Function
* @sig (x1 -> x2 -> ... -> z) -> [(a -> x1), (b -> x2), ...] -> (a -> b -> ... -> z)
* @sig ((x1, x2, ...) -> z) -> [(a -> x1), (b -> x2), ...] -> (a -> b -> ... -> z)
* @param {Function} fn The function to wrap.

@@ -35,4 +35,6 @@ * @param {Array} transformers A list of transformer functions

*/
module.exports = _curry2(function useWith(fn, transformers) {
return curryN(transformers.length, function() {
var useWith = /*#__PURE__*/_curry2(function useWith(fn, transformers) {
return curryN(transformers.length, function () {
var args = [];

@@ -47,1 +49,2 @@ var idx = 0;

});
module.exports = useWith;

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

var _curry1 = require('./internal/_curry1');
var keys = require('./keys');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
var keys = /*#__PURE__*/require('./keys');

@@ -22,3 +22,5 @@ /**

*/
module.exports = _curry1(function values(obj) {
var values = /*#__PURE__*/_curry1(function values(obj) {
var props = keys(obj);

@@ -34,1 +36,2 @@ var len = props.length;

});
module.exports = values;

@@ -1,4 +0,3 @@

var _curry1 = require('./internal/_curry1');
var _curry1 = /*#__PURE__*/require('./internal/_curry1');
/**

@@ -25,3 +24,5 @@ * Returns a list of all the properties, including prototype properties, of the

*/
module.exports = _curry1(function valuesIn(obj) {
var valuesIn = /*#__PURE__*/_curry1(function valuesIn(obj) {
var prop;

@@ -34,1 +35,2 @@ var vs = [];

});
module.exports = valuesIn;

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

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
// `Const` is a functor that effectively ignores the function given to `map`.
var Const = function (x) {
return { value: x, 'fantasy-land/map': function () {
return this;
} };
};
/**

@@ -25,13 +33,7 @@ * Returns a "view" of the given data structure, determined by the given lens.

*/
module.exports = (function() {
// `Const` is a functor that effectively ignores the function given to `map`.
var Const = function(x) {
return {value: x, 'fantasy-land/map': function() { return this; }};
};
return _curry2(function view(lens, x) {
// Using `Const` effectively ignores the setter function of the `lens`,
// leaving the value returned by the getter function unmodified.
return lens(Const)(x).value;
});
}());
var view = /*#__PURE__*/_curry2(function view(lens, x) {
// Using `Const` effectively ignores the setter function of the `lens`,
// leaving the value returned by the getter function unmodified.
return lens(Const)(x).value;
});
module.exports = view;

@@ -1,4 +0,3 @@

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**

@@ -32,4 +31,7 @@ * Tests the final argument by passing it to the given predicate function. If

*/
module.exports = _curry3(function when(pred, whenTrueFn, x) {
var when = /*#__PURE__*/_curry3(function when(pred, whenTrueFn, x) {
return pred(x) ? whenTrueFn(x) : x;
});
module.exports = when;

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

var _curry2 = require('./internal/_curry2');
var _has = require('./internal/_has');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var _has = /*#__PURE__*/require('./internal/_has');

@@ -23,2 +23,3 @@ /**

* @return {Boolean}
* @see R.propSatisfies, R.whereEq
* @example

@@ -40,3 +41,5 @@ *

*/
module.exports = _curry2(function where(spec, testObj) {
var where = /*#__PURE__*/_curry2(function where(spec, testObj) {
for (var prop in spec) {

@@ -49,1 +52,2 @@ if (_has(prop, spec) && !spec[prop](testObj[prop])) {

});
module.exports = where;

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

var _curry2 = require('./internal/_curry2');
var equals = require('./equals');
var map = require('./map');
var where = require('./where');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var equals = /*#__PURE__*/require('./equals');
var map = /*#__PURE__*/require('./map');
var where = /*#__PURE__*/require('./where');
/**

@@ -24,3 +26,3 @@ * Takes a spec object and a test object; returns true if the test satisfies

* @return {Boolean}
* @see R.where
* @see R.propEq, R.where
* @example

@@ -36,4 +38,7 @@ *

*/
module.exports = _curry2(function whereEq(spec, testObj) {
var whereEq = /*#__PURE__*/_curry2(function whereEq(spec, testObj) {
return where(map(equals, spec), testObj);
});
module.exports = whereEq;

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

var _contains = require('./internal/_contains');
var _curry2 = require('./internal/_curry2');
var flip = require('./flip');
var reject = require('./reject');
var _contains = /*#__PURE__*/require('./internal/_contains');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
var flip = /*#__PURE__*/require('./flip');
var reject = /*#__PURE__*/require('./reject');
/**

@@ -26,4 +28,7 @@ * Returns a new list without values in the first argument.

*/
module.exports = _curry2(function(xs, list) {
var without = /*#__PURE__*/_curry2(function (xs, list) {
return reject(flip(_contains)(xs), list);
});
module.exports = without;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -22,3 +21,6 @@ * Creates a new list out of the two supplied by creating each possible pair

*/
module.exports = _curry2(function xprod(a, b) { // = xprodWith(prepend); (takes about 3 times as long...)
var xprod = /*#__PURE__*/_curry2(function xprod(a, b) {
// = xprodWith(prepend); (takes about 3 times as long...)
var idx = 0;

@@ -39,1 +41,2 @@ var ilen = a.length;

});
module.exports = xprod;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -23,3 +22,5 @@ * Creates a new list out of the two supplied by pairing up equally-positioned

*/
module.exports = _curry2(function zip(a, b) {
var zip = /*#__PURE__*/_curry2(function zip(a, b) {
var rv = [];

@@ -34,1 +35,2 @@ var idx = 0;

});
module.exports = zip;

@@ -1,4 +0,3 @@

var _curry2 = require('./internal/_curry2');
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
/**

@@ -21,3 +20,5 @@ * Creates a new object out of a list of keys and a list of values.

*/
module.exports = _curry2(function zipObj(keys, values) {
var zipObj = /*#__PURE__*/_curry2(function zipObj(keys, values) {
var idx = 0;

@@ -32,1 +33,2 @@ var len = Math.min(keys.length, values.length);

});
module.exports = zipObj;

@@ -1,4 +0,3 @@

var _curry3 = require('./internal/_curry3');
var _curry3 = /*#__PURE__*/require('./internal/_curry3');
/**

@@ -13,3 +12,3 @@ * Creates a new list out of the two supplied by applying the function to each

* @category List
* @sig (a,b -> c) -> [a] -> [b] -> [c]
* @sig ((a, b) -> c) -> [a] -> [b] -> [c]
* @param {Function} fn The function used to combine the two elements into one value.

@@ -29,3 +28,5 @@ * @param {Array} list1 The first array to consider.

*/
module.exports = _curry3(function zipWith(fn, a, b) {
var zipWith = /*#__PURE__*/_curry3(function zipWith(fn, a, b) {
var rv = [];

@@ -40,1 +41,2 @@ var idx = 0;

});
module.exports = zipWith;

Sorry, the diff of this file is too big to display

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