New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

redash

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redash - npm Package Compare versions

Comparing version 0.15.0 to 0.15.1

5

CHANGELOG.md

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

## v0.15.1
### Features
* `pipe` and `compose` now throw early if they receive arguments that are not functions.
## v0.15.0

@@ -2,0 +7,0 @@

2

installer.min.js

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

!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):n.fp=r()}(this,function(){"use strict";function n(n){return function r(t){return arguments.length?n(t):r}}function r(r){return function t(e,u){switch(arguments.length){case 0:return t;case 1:return n(function(n){return r(e,n)});default:return r(e,u)}}}function t(n){return function(){return n}}function e(t){return function e(u,o,i){switch(arguments.length){case 0:return e;case 1:return r(function(n,r){return t(u,n,r)});case 2:return n(function(n){return t(u,o,n)});default:return t(u,o,i)}}}function u(n){return null==n?"Nil":un.call(n).slice(8,-1)}function o(n){for(var r=[],t=r.length,e=n.next();!e.done;)r[t++]=e,e=n.next();return e}function i(n,r){var t,e,u;if(t=Object.keys(n),t.length!==Object.keys(r).length)return!1;for(e=t.length-1;e>=0;){if(!on.call(r,t[e]))return!1;e-=1}for(e=t.length-1;e>=0;){if(u=t[e],!f(n[u],r[u]))return!1;e-=1}return!0}function f(n,r){var t,e;if(n===r)return!0;if(u(n)!==u(r))return!1;if(!n||!r||"object"!=typeof n)return!1;switch(u(n)){case"Array":return n.length===r.length&&i(n,r);case"Date":return n.valueOf()===r.valueOf();case"Promise":return n===r;case"Map":case"Set":return t=o(n.entries()),e=o(r.entries()),t.length===e.length&&f(t,e);default:return i(n,r)}}function c(n,r){for(var t=r.length-1;t>=0;)if(f(n,r[t--]))return!0;return!1}function a(n){for(var r=0,t=n.length,e=[];r<t;r++)n[r]&&(e[e.length]=n[r]);return e}function l(n,r){switch(n){case 4:return function(n,t,e,u){return r.apply(this,arguments)};case 5:return function(n,t,e,u,o){return r.apply(this,arguments)};case 6:return function(n,t,e,u,o,i){return r.apply(this,arguments)};default:throw new Error("Arity must be less than or equal to 6.")}}function s(n){return ln(n.length,function(){return!n.apply(null,arguments)})}function h(){var n=arguments;return ln(n[0].length,function(){for(var r=0,t=n.length,e=n[r++].apply(null,arguments);r<t;r++)e=n[r](e);return e})}function p(){return h.apply(null,sn.call(arguments))}function g(n){return ln(n.length,n)}function v(n){return n-1}function d(n){if(null!=n){if("function"==typeof n.empty)return n.empty();if(n.constructor&&"function"==typeof n.constructor.empty)return n.constructor.empty();switch(u(n)){case"Array":return[];case"String":return"";case"Object":return{};default:return}}}function y(n){for(var r,t,e,u=[],o=0,i=n.length;o<i;o++)if(r=n[o],Array.isArray(r))for(t=0,e=r.length;t<e;t++)u.push(r[t]);else u.push(r);return u}function m(n){for(var r,t,e,u=[],o=0,i=n.length;o<i;o++)if(r=n[o],Array.isArray(r))for(r=m(r),t=0,e=r.length;t<e;t++)u[u.length]=r[t];else u[u.length]=r;return u}function w(n){return ln(n.length,function(){return n.apply(null,sn.call(arguments))})}function b(n){for(var r=0,t=n.length,e={};r<t;r++)e[n[r][0]]=n[r][1];return e}function j(n){return n[0]}function O(n){return n}function E(n){return n+1}function A(n){return null!=n&&f(n,d(n))}function k(n){return!isNaN(n)&&isFinite(n)&&n%2===0}function x(n){return null==n}function N(n){return!isNaN(n)&&isFinite(n)&&!!n&&n===Math.floor(n)&&n%2!==0}function T(n){return function(){var r=cn.call(arguments);return Pn(function(n){return n.apply(null,r)},n)}}function C(n){return Object.keys(n)}function L(n){return n[n.length-1]}function M(n){return n.length}function B(n){return Rn(zn(n),nn(n))}function P(n,r,t){for(var e=0,u=t.length;e<u;e++)r=n(r,t[e]);return r}function R(n){for(var r=n.length-1,t=n[r--];r>=0;)n[r]>t&&(t=n[r]),r--;return t}function z(n){for(var r=0,t=n.length,e=0;r<t;r++)e+=n[r];return e}function S(n){if(!n.length)throw new Error("Cannot calculate the mean of an empty list.");return z(n)/n.length}function q(n,r){for(var t in r)on.call(r,t)&&n(t,r[t])}function U(n){for(var r=n.length-1,t=n[r--];r>=0;)n[r]<t&&(t=n[r]),r--;return t}function D(n){return[n]}function F(n){return sn.call(cn.call(n,0))}function I(n){return cn.call(n,1)}function W(n){return n.toLowerCase()}function K(n){return n.toUpperCase()}function V(n){return function(r){return n(r),r}}function G(n){var r=[];return q(function(n,t){r.push([n,t])},n),r}function H(n){return n.trim()}function J(n){for(var r=Object.keys(n),t=0,e=r.length,u=new Array(r.length);t<e;)u[t]=n[r[t]],t+=1;return u}function Q(n){for(var r,t=Object.keys(vr),e=t.length,u=0;u<e;)r=t[u],n[r]=vr[r],u+=1}var X=r(function(n,r){return n+r}),Y=r(function(n,r){for(var t=0,e=r.length;t<e;t++)if(!n(r[t]))return!1;return!0}),Z=r(function(n,r){for(var t=0,e=r.length;t<e;t++)if(n(r[t]))return!0;return!1}),$=[].concat,_=r(function(n,r){return"string"==typeof r?r+n:$.call(r,[n])}),nn=e(function(n,r,t){var e,u={};for(e in t)u[e]=t[e];return u[n]=r,u}),rn=r(function(n,r){for(var t,e,u=0,o=r.length,i=[];u<o;u++)if(e=n(r[u]),Array.isArray(e))for(t=0;t<e.length;t++)i.push(e[t]);else i.push(e);return i}),tn=r(function(n,r){return $.call(n,r)}),en=r(function(n,r){for(var t=0,e=n.length;t<e;t++)if(n[t][0](r))return n[t][1](r)}),un=Object.prototype.toString,on=Object.prototype.hasOwnProperty,fn=r(c),cn=[].slice,an=function n(r,t,e){return l(r,function(){var u,o=t;if(arguments.length)for(o=cn.call(t),u=0;u<arguments.length;u++)o.push(arguments[u]);return o.length>=r?e.apply(null,o):n(r,o,e)})},ln=r(function(t,u){switch(t){case 0:return u;case 1:return n(u);case 2:return r(u);case 3:return e(u);default:return an(t,[],u)}}),sn=[].reverse,hn=r(function(n,r){var t,e={};for(t in r)t!==n&&(e[t]=r[t]);return e}),pn=r(function(n,r){if(!n)throw new Error("Cannot divide by 0.");return r/n}),gn=r(function(n,r){return cn.call(r,n)}),vn=r(function(n,r){for(var t=0,e=r.length;t<e&&!n(r[t]);)t+=1;return cn.call(r,t)}),dn=r(function(n,r){for(var t=0,e=r.length;t<e&&n(r[t]);)t+=1;return cn.call(r,t)}),yn=r(f),mn=r(function(n,r){for(var t,e=0,u=r.length,o=[];e<u;)t=r[e++],n(t)&&(o[o.length]=t);return o}),wn=r(function(n,r){for(var t,e=0,u=r.length;e<u;e++)if(t=r[e],n(t))return t}),bn=r(function(n,r){for(var t=0,e=r.length;t<e;t++)if(n(r[t]))return t;return-1}),jn=r(function(n,r){for(var t=r.length-1;t>=0;){if(n(r[t]))return r[t];t--}}),On=r(function(n,r){if(r.fmap)return r.fmap(n);if(r.map)return r.map(n);throw new Error("The functor provided to fmap does not implement `map`.")}),En=r(function(n,r){for(var t=0,e=r.length;t<e;t++)n(r[t])}),An=r(function(n,r){return r>n}),kn=r(function(n,r){return r>=n}),xn=r(function(n,r){return on.call(r,n)}),Nn=r(function(n,r){return n===r}),Tn=e(function(n,r,t){return function(e){return n(e)?r(e):t(e)}}),Cn=[].push,Ln=e(function(n,r,t){var e=cn.call(t,0,n);return e[e.length]=r,Cn.apply(e,cn.call(t,n)),e}),Mn=r(function(n,r){return"undefined"==typeof n?"undefined"==typeof r:null==n?null==r&&"undefined"!=typeof r:"string"==typeof n?u(r).toLowerCase()===n.toLowerCase():r instanceof n||r.constructor===n}),Bn=r(function(n,r){return r.join(n)}),Pn=r(function(n,r){for(var t=new Array(r.length),e=0,u=r.length;e<u;e++)t[e]=n(r[e]);return t}),Rn=r(function(n,r){return{get:n,set:r,toString:function(){return"Lens"}}}),zn=r(function(n,r){return r[n]}),Sn=r(function(n,r){return r<n}),qn=r(function(n,r){return r<=n}),Un=r(function(n,r){for(var t=new Array(r.length),e=0,u=r.length;e<u;e++)t[e]=n(r[e],e);return t}),Dn=r(function(n,r){return P(function(t,e){return t[n(e)]=r[e],t},{},Object.keys(r))}),Fn=r(function(n,r){return P(function(t,e){return t[e]=n(r[e]),t},{},Object.keys(r))}),In=r(function(n,r){var t={},e=function(n,r){t[n]=r};return q(e,n),q(e,r),t}),Wn=r(function(n,r){return n*r}),Kn=r(function(n,r){var t,e,u,o={};for(t in r){for(e=!1,u=0;u<n.length;u++)if(n[u]===t){e=!0;break}e||(o[t]=r[t])}return o}),Vn=e(function(n,r,t){return n.set(r,t)}),Gn=e(function(n,r,t){return Vn(n,r(n.get(t)),t)}),Hn=r(function(n,r){return[n,r]}),Jn=r(function(n,r){for(var t=0,e=n.length,u={};t<e;)u[n[t]]=r[n[t]],t++;return u}),Qn=r(function(n,r){return"string"==typeof r?n+r:$.call([n],r)}),Xn=e(function(n,r,t){return f(t[n],r)}),Yn=e(function(n,r,t){var e,u,o=[];if(0===n)throw new Error("The `increment` value provided to `rangeBy` must be a non-zero number.");if(r===t)throw new Error("The `start` value provided to `rangeBy` must be greater than or less than the `end` value. Received the same value for both: "+r+".");if(n>0&&r>t)throw new Error("The `increment` value provided to `rangeBy` must be negative when the start value ("+r+") is greater than the end value ("+t+"). Received: "+n+".");if(n<0&&r<t)throw new Error("The `increment` value provided to `rangeBy` must be positive when the start value ("+r+") is less than the end value ("+t+"). Received: "+n+".");for(e=Math.abs(Math.ceil((t-r)/n)),u=0;u<e;u++)o.push(r+n*u);return o}),Zn=r(function(n,r){if(n<r)return Yn(1,n,r);if(n>r)return Yn(-1,n,r);throw new Error("The `start` value provided to `range` must be greater than or less than the `end` value. Received the same value for both: "+n+".")}),$n=e(P),_n=e(function(n,r,t){return P(n,r,sn.call(t))}),nr=r(function(n,r){for(var t,e=0,u=r.length,o=[];e<u;)t=r[e++],n(t)||(o[o.length]=t);return o}),rr=e(function(n,r,t){for(var e=0,u=t.length,o=[r];e<u;e++)r=n(r,t[e]),o[o.length]=r;return o}),tr=r(function(n,r){return r.split(n)}),er=r(function(n,r){return r-n}),ur=r(function(n,r){return cn.call(r,0,n)}),or=r(function(n,r){for(var t=0,e=r.length;t<e;t++)if(!n(r[t]))return cn.call(r,0,t);return cn.call(r)}),ir=r(function(n,r){return n.test(r)}),fr=r(function(n,r){for(var t=0,e=[];t<r;t++)e.push(n(t));return e}),cr=r(function(n,r){return function(t){return n(t)?r(t):t}}),ar=r(function(n,r){return cr(s(n),r)}),lr=r(function(n,r){return n.get(r)}),sr=r(function(n,r){var t;for(t in n)if(on.call(n,t)&&!n[t](r[t]))return!1;return!0}),hr=r(function(n,r){for(var t=0,e=r.length,u=[];t<e;)c(r[t],n)||(u[u.length]=r[t]),t++;return u}),pr=r(function(n,r){for(var t=0,e=Math.min(n.length,r.length),u=new Array(e);t<e;t++)u[t]=[n[t],r[t]];return u}),gr=r(function(n,r){for(var t=0,e=Math.min(n.length,r.length),u={};t<e;t++)u[n[t]]=r[t];return u}),vr=Object.freeze({add:X,all:Y,always:t,any:Z,append:_,assoc:nn,chain:rn,concat:tn,cond:en,contains:fn,compact:a,complement:s,compose:p,curry:g,curryN:ln,dec:v,dissoc:hn,divide:pn,drop:gn,dropUntil:vn,dropWhile:dn,empty:d,equals:yn,filter:mn,find:wn,findIndex:bn,findLast:jn,flatten:y,flattenDeep:m,flip:w,fmap:On,forEach:En,fromPairs:b,gt:An,gte:kn,has:xn,head:j,identical:Nn,identity:O,ifElse:Tn,inc:E,insert:Ln,isEmpty:A,isEven:k,isNil:x,isOdd:N,isType:Mn,join:Bn,juxt:T,keys:C,last:L,length:M,lens:Rn,lensProp:B,lt:Sn,lte:qn,map:Pn,mapIndexed:Un,mapKeys:Dn,mapValues:Fn,max:R,mean:S,merge:In,min:U,multiply:Wn,of:D,omit:Kn,over:Gn,pair:Hn,pick:Jn,pipe:h,prepend:Qn,prop:zn,propEq:Xn,range:Zn,rangeBy:Yn,reduce:$n,foldl:$n,reduceRight:_n,foldr:_n,reject:nr,reverse:F,scan:rr,set:Vn,split:tr,subtract:er,sum:z,tail:I,take:ur,takeWhile:or,test:ir,times:fr,toLower:W,toUpper:K,tap:V,toPairs:G,trim:H,type:u,unless:ar,values:J,view:lr,when:cr,where:sr,without:hr,zip:pr,zipObj:gr});return Q});
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.fp=t()}(this,function(){"use strict";function n(n){return function t(r){return arguments.length?n(r):t}}function t(t){return function r(e,u){switch(arguments.length){case 0:return r;case 1:return n(function(n){return t(e,n)});default:return t(e,u)}}}function r(n){return function(){return n}}function e(r){return function e(u,o,i){switch(arguments.length){case 0:return e;case 1:return t(function(n,t){return r(u,n,t)});case 2:return n(function(n){return r(u,o,n)});default:return r(u,o,i)}}}function u(n){return null==n?"Nil":un.call(n).slice(8,-1)}function o(n){for(var t=[],r=t.length,e=n.next();!e.done;)t[r++]=e,e=n.next();return e}function i(n,t){var r,e,u;if(r=Object.keys(n),r.length!==Object.keys(t).length)return!1;for(e=r.length-1;e>=0;){if(!on.call(t,r[e]))return!1;e-=1}for(e=r.length-1;e>=0;){if(u=r[e],!f(n[u],t[u]))return!1;e-=1}return!0}function f(n,t){var r,e;if(n===t)return!0;if(u(n)!==u(t))return!1;if(!n||!t||"object"!=typeof n)return!1;switch(u(n)){case"Array":return n.length===t.length&&i(n,t);case"Date":return n.valueOf()===t.valueOf();case"Promise":return n===t;case"Map":case"Set":return r=o(n.entries()),e=o(t.entries()),r.length===e.length&&f(r,e);default:return i(n,t)}}function c(n,t){for(var r=t.length-1;r>=0;)if(f(n,t[r--]))return!0;return!1}function a(n){for(var t=0,r=n.length,e=[];t<r;t++)n[t]&&(e[e.length]=n[t]);return e}function l(n,t){switch(n){case 4:return function(n,r,e,u){return t.apply(this,arguments)};case 5:return function(n,r,e,u,o){return t.apply(this,arguments)};case 6:return function(n,r,e,u,o,i){return t.apply(this,arguments)};default:throw new Error("Arity must be less than or equal to 6.")}}function s(n){return ln(n.length,function(){return!n.apply(null,arguments)})}function h(){for(var n=arguments,t=0;t<n.length;t++)if(!hn("function",n[t]))throw new TypeError("Invalid argument supplied to `pipe`. The argument at index ["+t+"] was not a function; what was received was of type: "+u(n[t])+".");return ln(n[0].length,function(){for(var t=0,r=n.length,e=n[t++].apply(null,arguments);t<r;t++)e=n[t](e);return e})}function p(){for(var n=0;n<arguments.length;n++)if(!hn("function",arguments[n]))throw new TypeError("Invalid argument supplied to `compose`. The argument at index ["+n+"] was not a function; what was received was of type: "+u(arguments[n])+".");return h.apply(null,sn.call(arguments))}function g(n){return ln(n.length,n)}function v(n){return n-1}function d(n){if(null!=n){if("function"==typeof n.empty)return n.empty();if(n.constructor&&"function"==typeof n.constructor.empty)return n.constructor.empty();switch(u(n)){case"Array":return[];case"String":return"";case"Object":return{};default:return}}}function y(n){for(var t,r,e,u=[],o=0,i=n.length;o<i;o++)if(t=n[o],Array.isArray(t))for(r=0,e=t.length;r<e;r++)u.push(t[r]);else u.push(t);return u}function m(n){for(var t,r,e,u=[],o=0,i=n.length;o<i;o++)if(t=n[o],Array.isArray(t))for(t=m(t),r=0,e=t.length;r<e;r++)u[u.length]=t[r];else u[u.length]=t;return u}function w(n){return ln(n.length,function(){return n.apply(null,sn.call(arguments))})}function b(n){for(var t=0,r=n.length,e={};t<r;t++)e[n[t][0]]=n[t][1];return e}function j(n){return n[0]}function E(n){return n}function O(n){return n+1}function A(n){return null!=n&&f(n,d(n))}function k(n){return!isNaN(n)&&isFinite(n)&&n%2===0}function T(n){return null==n}function x(n){return!isNaN(n)&&isFinite(n)&&!!n&&n===Math.floor(n)&&n%2!==0}function N(n){return function(){var t=cn.call(arguments);return Pn(function(n){return n.apply(null,t)},n)}}function C(n){return Object.keys(n)}function L(n){return n[n.length-1]}function M(n){return n.length}function B(n){return Rn(zn(n),nn(n))}function P(n,t,r){for(var e=0,u=r.length;e<u;e++)t=n(t,r[e]);return t}function R(n){for(var t=n.length-1,r=n[t--];t>=0;)n[t]>r&&(r=n[t]),t--;return r}function z(n){for(var t=0,r=n.length,e=0;t<r;t++)e+=n[t];return e}function I(n){if(!n.length)throw new Error("Cannot calculate the mean of an empty list.");return z(n)/n.length}function S(n,t){for(var r in t)on.call(t,r)&&n(r,t[r])}function q(n){for(var t=n.length-1,r=n[t--];t>=0;)n[t]<r&&(r=n[t]),t--;return r}function U(n){return[n]}function D(n){return sn.call(cn.call(n,0))}function F(n){return cn.call(n,1)}function W(n){return n.toLowerCase()}function K(n){return n.toUpperCase()}function V(n){return function(t){return n(t),t}}function G(n){var t=[];return S(function(n,r){t.push([n,r])},n),t}function H(n){return n.trim()}function J(n){for(var t=Object.keys(n),r=0,e=t.length,u=new Array(t.length);r<e;)u[r]=n[t[r]],r+=1;return u}function Q(n){for(var t,r=Object.keys(vt),e=r.length,u=0;u<e;)t=r[u],n[t]=vt[t],u+=1}var X=t(function(n,t){return n+t}),Y=t(function(n,t){for(var r=0,e=t.length;r<e;r++)if(!n(t[r]))return!1;return!0}),Z=t(function(n,t){for(var r=0,e=t.length;r<e;r++)if(n(t[r]))return!0;return!1}),$=[].concat,_=t(function(n,t){return"string"==typeof t?t+n:$.call(t,[n])}),nn=e(function(n,t,r){var e,u={};for(e in r)u[e]=r[e];return u[n]=t,u}),tn=t(function(n,t){for(var r,e,u=0,o=t.length,i=[];u<o;u++)if(e=n(t[u]),Array.isArray(e))for(r=0;r<e.length;r++)i.push(e[r]);else i.push(e);return i}),rn=t(function(n,t){return $.call(n,t)}),en=t(function(n,t){for(var r=0,e=n.length;r<e;r++)if(n[r][0](t))return n[r][1](t)}),un=Object.prototype.toString,on=Object.prototype.hasOwnProperty,fn=t(c),cn=[].slice,an=function n(t,r,e){return l(t,function(){var u,o=r;if(arguments.length)for(o=cn.call(r),u=0;u<arguments.length;u++)o.push(arguments[u]);return o.length>=t?e.apply(null,o):n(t,o,e)})},ln=t(function(r,u){switch(r){case 0:return u;case 1:return n(u);case 2:return t(u);case 3:return e(u);default:return an(r,[],u)}}),sn=[].reverse,hn=t(function(n,t){return"undefined"==typeof n?"undefined"==typeof t:null==n?null==t&&"undefined"!=typeof t:"string"==typeof n?u(t).toLowerCase()===n.toLowerCase():t instanceof n||t.constructor===n}),pn=t(function(n,t){var r,e={};for(r in t)r!==n&&(e[r]=t[r]);return e}),gn=t(function(n,t){if(!n)throw new Error("Cannot divide by 0.");return t/n}),vn=t(function(n,t){return cn.call(t,n)}),dn=t(function(n,t){for(var r=0,e=t.length;r<e&&!n(t[r]);)r+=1;return cn.call(t,r)}),yn=t(function(n,t){for(var r=0,e=t.length;r<e&&n(t[r]);)r+=1;return cn.call(t,r)}),mn=t(f),wn=t(function(n,t){for(var r,e=0,u=t.length,o=[];e<u;)r=t[e++],n(r)&&(o[o.length]=r);return o}),bn=t(function(n,t){for(var r,e=0,u=t.length;e<u;e++)if(r=t[e],n(r))return r}),jn=t(function(n,t){for(var r=0,e=t.length;r<e;r++)if(n(t[r]))return r;return-1}),En=t(function(n,t){for(var r=t.length-1;r>=0;){if(n(t[r]))return t[r];r--}}),On=t(function(n,t){if(t.fmap)return t.fmap(n);if(t.map)return t.map(n);throw new Error("The functor provided to fmap does not implement `map`.")}),An=t(function(n,t){for(var r=0,e=t.length;r<e;r++)n(t[r])}),kn=t(function(n,t){return t>n}),Tn=t(function(n,t){return t>=n}),xn=t(function(n,t){return on.call(t,n)}),Nn=t(function(n,t){return n===t}),Cn=e(function(n,t,r){return function(e){return n(e)?t(e):r(e)}}),Ln=[].push,Mn=e(function(n,t,r){var e=cn.call(r,0,n);return e[e.length]=t,Ln.apply(e,cn.call(r,n)),e}),Bn=t(function(n,t){return t.join(n)}),Pn=t(function(n,t){for(var r=new Array(t.length),e=0,u=t.length;e<u;e++)r[e]=n(t[e]);return r}),Rn=t(function(n,t){return{get:n,set:t,toString:function(){return"Lens"}}}),zn=t(function(n,t){return t[n]}),In=t(function(n,t){return t<n}),Sn=t(function(n,t){return t<=n}),qn=t(function(n,t){for(var r=new Array(t.length),e=0,u=t.length;e<u;e++)r[e]=n(t[e],e);return r}),Un=t(function(n,t){return P(function(r,e){return r[n(e)]=t[e],r},{},Object.keys(t))}),Dn=t(function(n,t){return P(function(r,e){return r[e]=n(t[e]),r},{},Object.keys(t))}),Fn=t(function(n,t){var r={},e=function(n,t){r[n]=t};return S(e,n),S(e,t),r}),Wn=t(function(n,t){return n*t}),Kn=t(function(n,t){var r,e,u,o={};for(r in t){for(e=!1,u=0;u<n.length;u++)if(n[u]===r){e=!0;break}e||(o[r]=t[r])}return o}),Vn=e(function(n,t,r){return n.set(t,r)}),Gn=e(function(n,t,r){return Vn(n,t(n.get(r)),r)}),Hn=t(function(n,t){return[n,t]}),Jn=t(function(n,t){for(var r=0,e=n.length,u={};r<e;)u[n[r]]=t[n[r]],r++;return u}),Qn=t(function(n,t){return"string"==typeof t?n+t:$.call([n],t)}),Xn=e(function(n,t,r){return f(r[n],t)}),Yn=e(function(n,t,r){var e,u,o=[];if(0===n)throw new Error("The `increment` value provided to `rangeBy` must be a non-zero number.");if(t===r)throw new Error("The `start` value provided to `rangeBy` must be greater than or less than the `end` value. Received the same value for both: "+t+".");if(n>0&&t>r)throw new Error("The `increment` value provided to `rangeBy` must be negative when the start value ("+t+") is greater than the end value ("+r+"). Received: "+n+".");if(n<0&&t<r)throw new Error("The `increment` value provided to `rangeBy` must be positive when the start value ("+t+") is less than the end value ("+r+"). Received: "+n+".");for(e=Math.abs(Math.ceil((r-t)/n)),u=0;u<e;u++)o.push(t+n*u);return o}),Zn=t(function(n,t){if(n<t)return Yn(1,n,t);if(n>t)return Yn(-1,n,t);throw new Error("The `start` value provided to `range` must be greater than or less than the `end` value. Received the same value for both: "+n+".")}),$n=e(P),_n=e(function(n,t,r){return P(n,t,sn.call(r))}),nt=t(function(n,t){for(var r,e=0,u=t.length,o=[];e<u;)r=t[e++],n(r)||(o[o.length]=r);return o}),tt=e(function(n,t,r){for(var e=0,u=r.length,o=[t];e<u;e++)t=n(t,r[e]),o[o.length]=t;return o}),rt=t(function(n,t){return t.split(n)}),et=t(function(n,t){return t-n}),ut=t(function(n,t){return cn.call(t,0,n)}),ot=t(function(n,t){for(var r=0,e=t.length;r<e;r++)if(!n(t[r]))return cn.call(t,0,r);return cn.call(t)}),it=t(function(n,t){return n.test(t)}),ft=t(function(n,t){for(var r=0,e=[];r<t;r++)e.push(n(r));return e}),ct=t(function(n,t){return function(r){return n(r)?t(r):r}}),at=t(function(n,t){return ct(s(n),t)}),lt=t(function(n,t){return n.get(t)}),st=t(function(n,t){var r;for(r in n)if(on.call(n,r)&&!n[r](t[r]))return!1;return!0}),ht=t(function(n,t){for(var r=0,e=t.length,u=[];r<e;)c(t[r],n)||(u[u.length]=t[r]),r++;return u}),pt=t(function(n,t){for(var r=0,e=Math.min(n.length,t.length),u=new Array(e);r<e;r++)u[r]=[n[r],t[r]];return u}),gt=t(function(n,t){for(var r=0,e=Math.min(n.length,t.length),u={};r<e;r++)u[n[r]]=t[r];return u}),vt=Object.freeze({add:X,all:Y,always:r,any:Z,append:_,assoc:nn,chain:tn,concat:rn,cond:en,contains:fn,compact:a,complement:s,compose:p,curry:g,curryN:ln,dec:v,dissoc:pn,divide:gn,drop:vn,dropUntil:dn,dropWhile:yn,empty:d,equals:mn,filter:wn,find:bn,findIndex:jn,findLast:En,flatten:y,flattenDeep:m,flip:w,fmap:On,forEach:An,fromPairs:b,gt:kn,gte:Tn,has:xn,head:j,identical:Nn,identity:E,ifElse:Cn,inc:O,insert:Mn,isEmpty:A,isEven:k,isNil:T,isOdd:x,isType:hn,join:Bn,juxt:N,keys:C,last:L,length:M,lens:Rn,lensProp:B,lt:In,lte:Sn,map:Pn,mapIndexed:qn,mapKeys:Un,mapValues:Dn,max:R,mean:I,merge:Fn,min:q,multiply:Wn,of:U,omit:Kn,over:Gn,pair:Hn,pick:Jn,pipe:h,prepend:Qn,prop:zn,propEq:Xn,range:Zn,rangeBy:Yn,reduce:$n,foldl:$n,reduceRight:_n,foldr:_n,reject:nt,reverse:D,scan:tt,set:Vn,split:rt,subtract:et,sum:z,tail:F,take:ut,takeWhile:ot,test:it,times:ft,toLower:W,toUpper:K,tap:V,toPairs:G,trim:H,type:u,unless:at,values:J,view:lt,when:ct,where:st,without:ht,zip:pt,zipObj:gt});return Q});
{
"name": "redash",
"version": "0.15.0",
"version": "0.15.1",
"description": "A better Standard Library for JavaScript",

@@ -5,0 +5,0 @@ "main": "redash.js",

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

!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n.fp={})}(this,function(n){"use strict";function r(n){return function r(t){return arguments.length?n(t):r}}function t(n){return function t(e,u){switch(arguments.length){case 0:return t;case 1:return r(function(r){return n(e,r)});default:return n(e,u)}}}function e(n){return function(){return n}}function u(n){return function e(u,o,i){switch(arguments.length){case 0:return e;case 1:return t(function(r,t){return n(u,r,t)});case 2:return r(function(r){return n(u,o,r)});default:return n(u,o,i)}}}function o(n){return null==n?"Nil":un.call(n).slice(8,-1)}function i(n){for(var r=[],t=r.length,e=n.next();!e.done;)r[t++]=e,e=n.next();return e}function f(n,r){var t,e,u;if(t=Object.keys(n),t.length!==Object.keys(r).length)return!1;for(e=t.length-1;e>=0;){if(!on.call(r,t[e]))return!1;e-=1}for(e=t.length-1;e>=0;){if(u=t[e],!c(n[u],r[u]))return!1;e-=1}return!0}function c(n,r){var t,e;if(n===r)return!0;if(o(n)!==o(r))return!1;if(!n||!r||"object"!=typeof n)return!1;switch(o(n)){case"Array":return n.length===r.length&&f(n,r);case"Date":return n.valueOf()===r.valueOf();case"Promise":return n===r;case"Map":case"Set":return t=i(n.entries()),e=i(r.entries()),t.length===e.length&&c(t,e);default:return f(n,r)}}function a(n,r){for(var t=r.length-1;t>=0;)if(c(n,r[t--]))return!0;return!1}function l(n){for(var r=0,t=n.length,e=[];r<t;r++)n[r]&&(e[e.length]=n[r]);return e}function s(n,r){switch(n){case 4:return function(n,t,e,u){return r.apply(this,arguments)};case 5:return function(n,t,e,u,o){return r.apply(this,arguments)};case 6:return function(n,t,e,u,o,i){return r.apply(this,arguments)};default:throw new Error("Arity must be less than or equal to 6.")}}function h(n){return ln(n.length,function(){return!n.apply(null,arguments)})}function p(){var n=arguments;return ln(n[0].length,function(){for(var r=0,t=n.length,e=n[r++].apply(null,arguments);r<t;r++)e=n[r](e);return e})}function g(){return p.apply(null,sn.call(arguments))}function v(n){return ln(n.length,n)}function d(n){return n-1}function y(n){if(null!=n){if("function"==typeof n.empty)return n.empty();if(n.constructor&&"function"==typeof n.constructor.empty)return n.constructor.empty();switch(o(n)){case"Array":return[];case"String":return"";case"Object":return{};default:return}}}function m(n){for(var r,t,e,u=[],o=0,i=n.length;o<i;o++)if(r=n[o],Array.isArray(r))for(t=0,e=r.length;t<e;t++)u.push(r[t]);else u.push(r);return u}function w(n){for(var r,t,e,u=[],o=0,i=n.length;o<i;o++)if(r=n[o],Array.isArray(r))for(r=w(r),t=0,e=r.length;t<e;t++)u[u.length]=r[t];else u[u.length]=r;return u}function b(n){return ln(n.length,function(){return n.apply(null,sn.call(arguments))})}function j(n){for(var r=0,t=n.length,e={};r<t;r++)e[n[r][0]]=n[r][1];return e}function E(n){return n[0]}function O(n){return n}function A(n){return n+1}function k(n){return null!=n&&c(n,y(n))}function x(n){return!isNaN(n)&&isFinite(n)&&n%2===0}function N(n){return null==n}function T(n){return!isNaN(n)&&isFinite(n)&&!!n&&n===Math.floor(n)&&n%2!==0}function C(n){return function(){var r=cn.call(arguments);return Pn(function(n){return n.apply(null,r)},n)}}function L(n){return Object.keys(n)}function M(n){return n[n.length-1]}function B(n){return n.length}function P(n){return Rn(Sn(n),nn(n))}function R(n,r,t){for(var e=0,u=t.length;e<u;e++)r=n(r,t[e]);return r}function S(n){for(var r=n.length-1,t=n[r--];r>=0;)n[r]>t&&(t=n[r]),r--;return t}function q(n){for(var r=0,t=n.length,e=0;r<t;r++)e+=n[r];return e}function z(n){if(!n.length)throw new Error("Cannot calculate the mean of an empty list.");return q(n)/n.length}function U(n,r){for(var t in r)on.call(r,t)&&n(t,r[t])}function D(n){for(var r=n.length-1,t=n[r--];r>=0;)n[r]<t&&(t=n[r]),r--;return t}function F(n){return[n]}function I(n){return sn.call(cn.call(n,0))}function W(n){return cn.call(n,1)}function K(n){return n.toLowerCase()}function V(n){return n.toUpperCase()}function G(n){return function(r){return n(r),r}}function H(n){var r=[];return U(function(n,t){r.push([n,t])},n),r}function J(n){return n.trim()}function Q(n){for(var r=Object.keys(n),t=0,e=r.length,u=new Array(r.length);t<e;)u[t]=n[r[t]],t+=1;return u}var X=t(function(n,r){return n+r}),Y=t(function(n,r){for(var t=0,e=r.length;t<e;t++)if(!n(r[t]))return!1;return!0}),Z=t(function(n,r){for(var t=0,e=r.length;t<e;t++)if(n(r[t]))return!0;return!1}),$=[].concat,_=t(function(n,r){return"string"==typeof r?r+n:$.call(r,[n])}),nn=u(function(n,r,t){var e,u={};for(e in t)u[e]=t[e];return u[n]=r,u}),rn=t(function(n,r){for(var t,e,u=0,o=r.length,i=[];u<o;u++)if(e=n(r[u]),Array.isArray(e))for(t=0;t<e.length;t++)i.push(e[t]);else i.push(e);return i}),tn=t(function(n,r){return $.call(n,r)}),en=t(function(n,r){for(var t=0,e=n.length;t<e;t++)if(n[t][0](r))return n[t][1](r)}),un=Object.prototype.toString,on=Object.prototype.hasOwnProperty,fn=t(a),cn=[].slice,an=function n(r,t,e){return s(r,function(){var u,o=t;if(arguments.length)for(o=cn.call(t),u=0;u<arguments.length;u++)o.push(arguments[u]);return o.length>=r?e.apply(null,o):n(r,o,e)})},ln=t(function(n,e){switch(n){case 0:return e;case 1:return r(e);case 2:return t(e);case 3:return u(e);default:return an(n,[],e)}}),sn=[].reverse,hn=t(function(n,r){var t,e={};for(t in r)t!==n&&(e[t]=r[t]);return e}),pn=t(function(n,r){if(!n)throw new Error("Cannot divide by 0.");return r/n}),gn=t(function(n,r){return cn.call(r,n)}),vn=t(function(n,r){for(var t=0,e=r.length;t<e&&!n(r[t]);)t+=1;return cn.call(r,t)}),dn=t(function(n,r){for(var t=0,e=r.length;t<e&&n(r[t]);)t+=1;return cn.call(r,t)}),yn=t(c),mn=t(function(n,r){for(var t,e=0,u=r.length,o=[];e<u;)t=r[e++],n(t)&&(o[o.length]=t);return o}),wn=t(function(n,r){for(var t,e=0,u=r.length;e<u;e++)if(t=r[e],n(t))return t}),bn=t(function(n,r){for(var t=0,e=r.length;t<e;t++)if(n(r[t]))return t;return-1}),jn=t(function(n,r){for(var t=r.length-1;t>=0;){if(n(r[t]))return r[t];t--}}),En=t(function(n,r){if(r.fmap)return r.fmap(n);if(r.map)return r.map(n);throw new Error("The functor provided to fmap does not implement `map`.")}),On=t(function(n,r){for(var t=0,e=r.length;t<e;t++)n(r[t])}),An=t(function(n,r){return r>n}),kn=t(function(n,r){return r>=n}),xn=t(function(n,r){return on.call(r,n)}),Nn=t(function(n,r){return n===r}),Tn=u(function(n,r,t){return function(e){return n(e)?r(e):t(e)}}),Cn=[].push,Ln=u(function(n,r,t){var e=cn.call(t,0,n);return e[e.length]=r,Cn.apply(e,cn.call(t,n)),e}),Mn=t(function(n,r){return"undefined"==typeof n?"undefined"==typeof r:null==n?null==r&&"undefined"!=typeof r:"string"==typeof n?o(r).toLowerCase()===n.toLowerCase():r instanceof n||r.constructor===n}),Bn=t(function(n,r){return r.join(n)}),Pn=t(function(n,r){for(var t=new Array(r.length),e=0,u=r.length;e<u;e++)t[e]=n(r[e]);return t}),Rn=t(function(n,r){return{get:n,set:r,toString:function(){return"Lens"}}}),Sn=t(function(n,r){return r[n]}),qn=t(function(n,r){return r<n}),zn=t(function(n,r){return r<=n}),Un=t(function(n,r){for(var t=new Array(r.length),e=0,u=r.length;e<u;e++)t[e]=n(r[e],e);return t}),Dn=t(function(n,r){return R(function(t,e){return t[n(e)]=r[e],t},{},Object.keys(r))}),Fn=t(function(n,r){return R(function(t,e){return t[e]=n(r[e]),t},{},Object.keys(r))}),In=t(function(n,r){var t={},e=function(n,r){t[n]=r};return U(e,n),U(e,r),t}),Wn=t(function(n,r){return n*r}),Kn=t(function(n,r){var t,e,u,o={};for(t in r){for(e=!1,u=0;u<n.length;u++)if(n[u]===t){e=!0;break}e||(o[t]=r[t])}return o}),Vn=u(function(n,r,t){return n.set(r,t)}),Gn=u(function(n,r,t){return Vn(n,r(n.get(t)),t)}),Hn=t(function(n,r){return[n,r]}),Jn=t(function(n,r){for(var t=0,e=n.length,u={};t<e;)u[n[t]]=r[n[t]],t++;return u}),Qn=t(function(n,r){return"string"==typeof r?n+r:$.call([n],r)}),Xn=u(function(n,r,t){return c(t[n],r)}),Yn=u(function(n,r,t){var e,u,o=[];if(0===n)throw new Error("The `increment` value provided to `rangeBy` must be a non-zero number.");if(r===t)throw new Error("The `start` value provided to `rangeBy` must be greater than or less than the `end` value. Received the same value for both: "+r+".");if(n>0&&r>t)throw new Error("The `increment` value provided to `rangeBy` must be negative when the start value ("+r+") is greater than the end value ("+t+"). Received: "+n+".");if(n<0&&r<t)throw new Error("The `increment` value provided to `rangeBy` must be positive when the start value ("+r+") is less than the end value ("+t+"). Received: "+n+".");for(e=Math.abs(Math.ceil((t-r)/n)),u=0;u<e;u++)o.push(r+n*u);return o}),Zn=t(function(n,r){if(n<r)return Yn(1,n,r);if(n>r)return Yn(-1,n,r);throw new Error("The `start` value provided to `range` must be greater than or less than the `end` value. Received the same value for both: "+n+".")}),$n=u(R),_n=u(function(n,r,t){return R(n,r,sn.call(t))}),nr=t(function(n,r){for(var t,e=0,u=r.length,o=[];e<u;)t=r[e++],n(t)||(o[o.length]=t);return o}),rr=u(function(n,r,t){for(var e=0,u=t.length,o=[r];e<u;e++)r=n(r,t[e]),o[o.length]=r;return o}),tr=t(function(n,r){return r.split(n)}),er=t(function(n,r){return r-n}),ur=t(function(n,r){return cn.call(r,0,n)}),or=t(function(n,r){for(var t=0,e=r.length;t<e;t++)if(!n(r[t]))return cn.call(r,0,t);return cn.call(r)}),ir=t(function(n,r){return n.test(r)}),fr=t(function(n,r){for(var t=0,e=[];t<r;t++)e.push(n(t));return e}),cr=t(function(n,r){return function(t){return n(t)?r(t):t}}),ar=t(function(n,r){return cr(h(n),r)}),lr=t(function(n,r){return n.get(r)}),sr=t(function(n,r){var t;for(t in n)if(on.call(n,t)&&!n[t](r[t]))return!1;return!0}),hr=t(function(n,r){for(var t=0,e=r.length,u=[];t<e;)a(r[t],n)||(u[u.length]=r[t]),t++;return u}),pr=t(function(n,r){for(var t=0,e=Math.min(n.length,r.length),u=new Array(e);t<e;t++)u[t]=[n[t],r[t]];return u}),gr=t(function(n,r){for(var t=0,e=Math.min(n.length,r.length),u={};t<e;t++)u[n[t]]=r[t];return u});n.add=X,n.all=Y,n.always=e,n.any=Z,n.append=_,n.assoc=nn,n.chain=rn,n.concat=tn,n.cond=en,n.contains=fn,n.compact=l,n.complement=h,n.compose=g,n.curry=v,n.curryN=ln,n.dec=d,n.dissoc=hn,n.divide=pn,n.drop=gn,n.dropUntil=vn,n.dropWhile=dn,n.empty=y,n.equals=yn,n.filter=mn,n.find=wn,n.findIndex=bn,n.findLast=jn,n.flatten=m,n.flattenDeep=w,n.flip=b,n.fmap=En,n.forEach=On,n.fromPairs=j,n.gt=An,n.gte=kn,n.has=xn,n.head=E,n.identical=Nn,n.identity=O,n.ifElse=Tn,n.inc=A,n.insert=Ln,n.isEmpty=k,n.isEven=x,n.isNil=N,n.isOdd=T,n.isType=Mn,n.join=Bn,n.juxt=C,n.keys=L,n.last=M,n.length=B,n.lens=Rn,n.lensProp=P,n.lt=qn,n.lte=zn,n.map=Pn,n.mapIndexed=Un,n.mapKeys=Dn,n.mapValues=Fn,n.max=S,n.mean=z,n.merge=In,n.min=D,n.multiply=Wn,n.of=F,n.omit=Kn,n.over=Gn,n.pair=Hn,n.pick=Jn,n.pipe=p,n.prepend=Qn,n.prop=Sn,n.propEq=Xn,n.range=Zn,n.rangeBy=Yn,n.reduce=$n,n.foldl=$n,n.reduceRight=_n,n.foldr=_n,n.reject=nr,n.reverse=I,n.scan=rr,n.set=Vn,n.split=tr,n.subtract=er,n.sum=q,n.tail=W,n.take=ur,n.takeWhile=or,n.test=ir,n.times=fr,n.toLower=K,n.toUpper=V,n.tap=G,n.toPairs=H,n.trim=J,n.type=o,n.unless=ar,n.values=Q,n.view=lr,n.when=cr,n.where=sr,n.without=hr,n.zip=pr,n.zipObj=gr});
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.fp={})}(this,function(n){"use strict";function t(n){return function t(r){return arguments.length?n(r):t}}function r(n){return function r(e,u){switch(arguments.length){case 0:return r;case 1:return t(function(t){return n(e,t)});default:return n(e,u)}}}function e(n){return function(){return n}}function u(n){return function e(u,o,i){switch(arguments.length){case 0:return e;case 1:return r(function(t,r){return n(u,t,r)});case 2:return t(function(t){return n(u,o,t)});default:return n(u,o,i)}}}function o(n){return null==n?"Nil":un.call(n).slice(8,-1)}function i(n){for(var t=[],r=t.length,e=n.next();!e.done;)t[r++]=e,e=n.next();return e}function f(n,t){var r,e,u;if(r=Object.keys(n),r.length!==Object.keys(t).length)return!1;for(e=r.length-1;e>=0;){if(!on.call(t,r[e]))return!1;e-=1}for(e=r.length-1;e>=0;){if(u=r[e],!c(n[u],t[u]))return!1;e-=1}return!0}function c(n,t){var r,e;if(n===t)return!0;if(o(n)!==o(t))return!1;if(!n||!t||"object"!=typeof n)return!1;switch(o(n)){case"Array":return n.length===t.length&&f(n,t);case"Date":return n.valueOf()===t.valueOf();case"Promise":return n===t;case"Map":case"Set":return r=i(n.entries()),e=i(t.entries()),r.length===e.length&&c(r,e);default:return f(n,t)}}function a(n,t){for(var r=t.length-1;r>=0;)if(c(n,t[r--]))return!0;return!1}function l(n){for(var t=0,r=n.length,e=[];t<r;t++)n[t]&&(e[e.length]=n[t]);return e}function s(n,t){switch(n){case 4:return function(n,r,e,u){return t.apply(this,arguments)};case 5:return function(n,r,e,u,o){return t.apply(this,arguments)};case 6:return function(n,r,e,u,o,i){return t.apply(this,arguments)};default:throw new Error("Arity must be less than or equal to 6.")}}function h(n){return ln(n.length,function(){return!n.apply(null,arguments)})}function p(){for(var n=arguments,t=0;t<n.length;t++)if(!hn("function",n[t]))throw new TypeError("Invalid argument supplied to `pipe`. The argument at index ["+t+"] was not a function; what was received was of type: "+o(n[t])+".");return ln(n[0].length,function(){for(var t=0,r=n.length,e=n[t++].apply(null,arguments);t<r;t++)e=n[t](e);return e})}function g(){for(var n=0;n<arguments.length;n++)if(!hn("function",arguments[n]))throw new TypeError("Invalid argument supplied to `compose`. The argument at index ["+n+"] was not a function; what was received was of type: "+o(arguments[n])+".");return p.apply(null,sn.call(arguments))}function v(n){return ln(n.length,n)}function d(n){return n-1}function y(n){if(null!=n){if("function"==typeof n.empty)return n.empty();if(n.constructor&&"function"==typeof n.constructor.empty)return n.constructor.empty();switch(o(n)){case"Array":return[];case"String":return"";case"Object":return{};default:return}}}function m(n){for(var t,r,e,u=[],o=0,i=n.length;o<i;o++)if(t=n[o],Array.isArray(t))for(r=0,e=t.length;r<e;r++)u.push(t[r]);else u.push(t);return u}function w(n){for(var t,r,e,u=[],o=0,i=n.length;o<i;o++)if(t=n[o],Array.isArray(t))for(t=w(t),r=0,e=t.length;r<e;r++)u[u.length]=t[r];else u[u.length]=t;return u}function b(n){return ln(n.length,function(){return n.apply(null,sn.call(arguments))})}function j(n){for(var t=0,r=n.length,e={};t<r;t++)e[n[t][0]]=n[t][1];return e}function E(n){return n[0]}function O(n){return n}function A(n){return n+1}function k(n){return null!=n&&c(n,y(n))}function x(n){return!isNaN(n)&&isFinite(n)&&n%2===0}function T(n){return null==n}function N(n){return!isNaN(n)&&isFinite(n)&&!!n&&n===Math.floor(n)&&n%2!==0}function C(n){return function(){var t=cn.call(arguments);return Pn(function(n){return n.apply(null,t)},n)}}function L(n){return Object.keys(n)}function M(n){return n[n.length-1]}function B(n){return n.length}function P(n){return Rn(In(n),nn(n))}function R(n,t,r){for(var e=0,u=r.length;e<u;e++)t=n(t,r[e]);return t}function I(n){for(var t=n.length-1,r=n[t--];t>=0;)n[t]>r&&(r=n[t]),t--;return r}function S(n){for(var t=0,r=n.length,e=0;t<r;t++)e+=n[t];return e}function q(n){if(!n.length)throw new Error("Cannot calculate the mean of an empty list.");return S(n)/n.length}function z(n,t){for(var r in t)on.call(t,r)&&n(r,t[r])}function U(n){for(var t=n.length-1,r=n[t--];t>=0;)n[t]<r&&(r=n[t]),t--;return r}function D(n){return[n]}function F(n){return sn.call(cn.call(n,0))}function W(n){return cn.call(n,1)}function K(n){return n.toLowerCase()}function V(n){return n.toUpperCase()}function G(n){return function(t){return n(t),t}}function H(n){var t=[];return z(function(n,r){t.push([n,r])},n),t}function J(n){return n.trim()}function Q(n){for(var t=Object.keys(n),r=0,e=t.length,u=new Array(t.length);r<e;)u[r]=n[t[r]],r+=1;return u}var X=r(function(n,t){return n+t}),Y=r(function(n,t){for(var r=0,e=t.length;r<e;r++)if(!n(t[r]))return!1;return!0}),Z=r(function(n,t){for(var r=0,e=t.length;r<e;r++)if(n(t[r]))return!0;return!1}),$=[].concat,_=r(function(n,t){return"string"==typeof t?t+n:$.call(t,[n])}),nn=u(function(n,t,r){var e,u={};for(e in r)u[e]=r[e];return u[n]=t,u}),tn=r(function(n,t){for(var r,e,u=0,o=t.length,i=[];u<o;u++)if(e=n(t[u]),Array.isArray(e))for(r=0;r<e.length;r++)i.push(e[r]);else i.push(e);return i}),rn=r(function(n,t){return $.call(n,t)}),en=r(function(n,t){for(var r=0,e=n.length;r<e;r++)if(n[r][0](t))return n[r][1](t)}),un=Object.prototype.toString,on=Object.prototype.hasOwnProperty,fn=r(a),cn=[].slice,an=function n(t,r,e){return s(t,function(){var u,o=r;if(arguments.length)for(o=cn.call(r),u=0;u<arguments.length;u++)o.push(arguments[u]);return o.length>=t?e.apply(null,o):n(t,o,e)})},ln=r(function(n,e){switch(n){case 0:return e;case 1:return t(e);case 2:return r(e);case 3:return u(e);default:return an(n,[],e)}}),sn=[].reverse,hn=r(function(n,t){return"undefined"==typeof n?"undefined"==typeof t:null==n?null==t&&"undefined"!=typeof t:"string"==typeof n?o(t).toLowerCase()===n.toLowerCase():t instanceof n||t.constructor===n}),pn=r(function(n,t){var r,e={};for(r in t)r!==n&&(e[r]=t[r]);return e}),gn=r(function(n,t){if(!n)throw new Error("Cannot divide by 0.");return t/n}),vn=r(function(n,t){return cn.call(t,n)}),dn=r(function(n,t){for(var r=0,e=t.length;r<e&&!n(t[r]);)r+=1;return cn.call(t,r)}),yn=r(function(n,t){for(var r=0,e=t.length;r<e&&n(t[r]);)r+=1;return cn.call(t,r)}),mn=r(c),wn=r(function(n,t){for(var r,e=0,u=t.length,o=[];e<u;)r=t[e++],n(r)&&(o[o.length]=r);return o}),bn=r(function(n,t){for(var r,e=0,u=t.length;e<u;e++)if(r=t[e],n(r))return r}),jn=r(function(n,t){for(var r=0,e=t.length;r<e;r++)if(n(t[r]))return r;return-1}),En=r(function(n,t){for(var r=t.length-1;r>=0;){if(n(t[r]))return t[r];r--}}),On=r(function(n,t){if(t.fmap)return t.fmap(n);if(t.map)return t.map(n);throw new Error("The functor provided to fmap does not implement `map`.")}),An=r(function(n,t){for(var r=0,e=t.length;r<e;r++)n(t[r])}),kn=r(function(n,t){return t>n}),xn=r(function(n,t){return t>=n}),Tn=r(function(n,t){return on.call(t,n)}),Nn=r(function(n,t){return n===t}),Cn=u(function(n,t,r){return function(e){return n(e)?t(e):r(e)}}),Ln=[].push,Mn=u(function(n,t,r){var e=cn.call(r,0,n);return e[e.length]=t,Ln.apply(e,cn.call(r,n)),e}),Bn=r(function(n,t){return t.join(n)}),Pn=r(function(n,t){for(var r=new Array(t.length),e=0,u=t.length;e<u;e++)r[e]=n(t[e]);return r}),Rn=r(function(n,t){return{get:n,set:t,toString:function(){return"Lens"}}}),In=r(function(n,t){return t[n]}),Sn=r(function(n,t){return t<n}),qn=r(function(n,t){return t<=n}),zn=r(function(n,t){for(var r=new Array(t.length),e=0,u=t.length;e<u;e++)r[e]=n(t[e],e);return r}),Un=r(function(n,t){return R(function(r,e){return r[n(e)]=t[e],r},{},Object.keys(t))}),Dn=r(function(n,t){return R(function(r,e){return r[e]=n(t[e]),r},{},Object.keys(t))}),Fn=r(function(n,t){var r={},e=function(n,t){r[n]=t};return z(e,n),z(e,t),r}),Wn=r(function(n,t){return n*t}),Kn=r(function(n,t){var r,e,u,o={};for(r in t){for(e=!1,u=0;u<n.length;u++)if(n[u]===r){e=!0;break}e||(o[r]=t[r])}return o}),Vn=u(function(n,t,r){return n.set(t,r)}),Gn=u(function(n,t,r){return Vn(n,t(n.get(r)),r)}),Hn=r(function(n,t){return[n,t]}),Jn=r(function(n,t){for(var r=0,e=n.length,u={};r<e;)u[n[r]]=t[n[r]],r++;return u}),Qn=r(function(n,t){return"string"==typeof t?n+t:$.call([n],t)}),Xn=u(function(n,t,r){return c(r[n],t)}),Yn=u(function(n,t,r){var e,u,o=[];if(0===n)throw new Error("The `increment` value provided to `rangeBy` must be a non-zero number.");if(t===r)throw new Error("The `start` value provided to `rangeBy` must be greater than or less than the `end` value. Received the same value for both: "+t+".");if(n>0&&t>r)throw new Error("The `increment` value provided to `rangeBy` must be negative when the start value ("+t+") is greater than the end value ("+r+"). Received: "+n+".");if(n<0&&t<r)throw new Error("The `increment` value provided to `rangeBy` must be positive when the start value ("+t+") is less than the end value ("+r+"). Received: "+n+".");for(e=Math.abs(Math.ceil((r-t)/n)),u=0;u<e;u++)o.push(t+n*u);return o}),Zn=r(function(n,t){if(n<t)return Yn(1,n,t);if(n>t)return Yn(-1,n,t);throw new Error("The `start` value provided to `range` must be greater than or less than the `end` value. Received the same value for both: "+n+".")}),$n=u(R),_n=u(function(n,t,r){return R(n,t,sn.call(r))}),nt=r(function(n,t){for(var r,e=0,u=t.length,o=[];e<u;)r=t[e++],n(r)||(o[o.length]=r);return o}),tt=u(function(n,t,r){for(var e=0,u=r.length,o=[t];e<u;e++)t=n(t,r[e]),o[o.length]=t;return o}),rt=r(function(n,t){return t.split(n)}),et=r(function(n,t){return t-n}),ut=r(function(n,t){return cn.call(t,0,n)}),ot=r(function(n,t){for(var r=0,e=t.length;r<e;r++)if(!n(t[r]))return cn.call(t,0,r);return cn.call(t)}),it=r(function(n,t){return n.test(t)}),ft=r(function(n,t){for(var r=0,e=[];r<t;r++)e.push(n(r));return e}),ct=r(function(n,t){return function(r){return n(r)?t(r):r}}),at=r(function(n,t){return ct(h(n),t)}),lt=r(function(n,t){return n.get(t)}),st=r(function(n,t){var r;for(r in n)if(on.call(n,r)&&!n[r](t[r]))return!1;return!0}),ht=r(function(n,t){for(var r=0,e=t.length,u=[];r<e;)a(t[r],n)||(u[u.length]=t[r]),r++;return u}),pt=r(function(n,t){for(var r=0,e=Math.min(n.length,t.length),u=new Array(e);r<e;r++)u[r]=[n[r],t[r]];return u}),gt=r(function(n,t){for(var r=0,e=Math.min(n.length,t.length),u={};r<e;r++)u[n[r]]=t[r];return u});n.add=X,n.all=Y,n.always=e,n.any=Z,n.append=_,n.assoc=nn,n.chain=tn,n.concat=rn,n.cond=en,n.contains=fn,n.compact=l,n.complement=h,n.compose=g,n.curry=v,n.curryN=ln,n.dec=d,n.dissoc=pn,n.divide=gn,n.drop=vn,n.dropUntil=dn,n.dropWhile=yn,n.empty=y,n.equals=mn,n.filter=wn,n.find=bn,n.findIndex=jn,n.findLast=En,n.flatten=m,n.flattenDeep=w,n.flip=b,n.fmap=On,n.forEach=An,n.fromPairs=j,n.gt=kn,n.gte=xn,n.has=Tn,n.head=E,n.identical=Nn,n.identity=O,n.ifElse=Cn,n.inc=A,n.insert=Mn,n.isEmpty=k,n.isEven=x,n.isNil=T,n.isOdd=N,n.isType=hn,n.join=Bn,n.juxt=C,n.keys=L,n.last=M,n.length=B,n.lens=Rn,n.lensProp=P,n.lt=Sn,n.lte=qn,n.map=Pn,n.mapIndexed=zn,n.mapKeys=Un,n.mapValues=Dn,n.max=I,n.mean=q,n.merge=Fn,n.min=U,n.multiply=Wn,n.of=D,n.omit=Kn,n.over=Gn,n.pair=Hn,n.pick=Jn,n.pipe=p,n.prepend=Qn,n.prop=In,n.propEq=Xn,n.range=Zn,n.rangeBy=Yn,n.reduce=$n,n.foldl=$n,n.reduceRight=_n,n.foldr=_n,n.reject=nt,n.reverse=F,n.scan=tt,n.set=Vn,n.split=rt,n.subtract=et,n.sum=S,n.tail=W,n.take=ut,n.takeWhile=ot,n.test=it,n.times=ft,n.toLower=K,n.toUpper=V,n.tap=G,n.toPairs=H,n.trim=J,n.type=o,n.unless=at,n.values=Q,n.view=lt,n.when=ct,n.where=st,n.without=ht,n.zip=pt,n.zipObj=gt});

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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