1
0
Fork 0
arangodb/js/node/node_modules/ramda/dist/ramda.min.js

8 lines
34 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Ramda v0.15.1
// https://github.com/ramda/ramda
// (c) 2013-2015 Scott Sauyet, Michael Hurley, and David Chambers
// Ramda may be freely distributed under the MIT license.
(function(){"use strict";var n={"@@functional/placeholder":!0},t=function(n,t){return n+t},r=function(n,t){for(var r=0;r<t.length;){if(!n(t[r]))return!1;r+=1}return!0},e=function(n,t){for(var r=0;r<t.length;){if(n(t[r]))return!0;r+=1}return!1},u=function(n,t,r){var e={};for(var u in r)e[u]=r[u];return e[n]=t,e},i=function(n){return new RegExp(n.source,(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":""))},o=function(n){return function(){return!n.apply(this,arguments)}},c=function(n,t){return function(){return n.call(this,t.apply(this,arguments))}},f=function(n,t){n=n||[],t=t||[];var r,e=n.length,u=t.length,i=[];for(r=0;e>r;)i[i.length]=n[r],r+=1;for(r=0;u>r;)i[i.length]=t[r],r+=1;return i},a=function(n,t,r){for(var e=0,u=r.length;u>e;){if(n(t,r[e]))return!0;e+=1}return!1},s=function(n,t){var r={};return r[n]=t,r},l=function(n){return function(t,r){if(r&&r.length>0){for(var e,u=1,i=r[u],o=t(i);u<r.length;)e=t(r[u]),n(e,o)&&(o=e,i=r[u]),u+=1;return i}}},p=function(n){return function t(r){return 0===arguments.length?t:null!=r&&r["@@functional/placeholder"]===!0?t:n(r)}},h=function(n){return function t(r,e){var u=arguments.length;return 0===u?t:1===u&&null!=r&&r["@@functional/placeholder"]===!0?t:1===u?p(function(t){return n(r,t)}):2===u&&null!=r&&r["@@functional/placeholder"]===!0&&null!=e&&e["@@functional/placeholder"]===!0?t:2===u&&null!=r&&r["@@functional/placeholder"]===!0?p(function(t){return n(t,e)}):2===u&&null!=e&&e["@@functional/placeholder"]===!0?p(function(t){return n(r,t)}):n(r,e)}},g=function(n){return function t(r,e,u){var i=arguments.length;return 0===i?t:1===i&&null!=r&&r["@@functional/placeholder"]===!0?t:1===i?h(function(t,e){return n(r,t,e)}):2===i&&null!=r&&r["@@functional/placeholder"]===!0&&null!=e&&e["@@functional/placeholder"]===!0?t:2===i&&null!=r&&r["@@functional/placeholder"]===!0?h(function(t,r){return n(t,e,r)}):2===i&&null!=e&&e["@@functional/placeholder"]===!0?h(function(t,e){return n(r,t,e)}):2===i?p(function(t){return n(r,e,t)}):3===i&&null!=r&&r["@@functional/placeholder"]===!0&&null!=e&&e["@@functional/placeholder"]===!0&&null!=u&&u["@@functional/placeholder"]===!0?t:3===i&&null!=r&&r["@@functional/placeholder"]===!0&&null!=e&&e["@@functional/placeholder"]===!0?h(function(t,r){return n(t,r,u)}):3===i&&null!=r&&r["@@functional/placeholder"]===!0&&null!=u&&u["@@functional/placeholder"]===!0?h(function(t,r){return n(t,e,r)}):3===i&&null!=e&&e["@@functional/placeholder"]===!0&&null!=u&&u["@@functional/placeholder"]===!0?h(function(t,e){return n(r,t,e)}):3===i&&null!=r&&r["@@functional/placeholder"]===!0?p(function(t){return n(t,e,u)}):3===i&&null!=e&&e["@@functional/placeholder"]===!0?p(function(t){return n(r,t,u)}):3===i&&null!=u&&u["@@functional/placeholder"]===!0?p(function(t){return n(r,e,t)}):n(r,e,u)}},d=function(n,t){var r={};for(var e in t)e!==n&&(r[e]=t[e]);return r},y=function(n,t){return n===t?0!==n||1/n===1/t:n!==n&&t!==t},m=function(n,t){for(var r=0,e=t.length,u=[];e>r;)n(t[r])&&(u[u.length]=t[r]),r+=1;return u},v=function(n,t){for(var r=0,e=t.length,u=[];e>r;)n(t[r],r,t)&&(u[u.length]=t[r]),r+=1;return u},x=function(n,t){for(var r=0,e=t.length;e>r;)n(t[r]),r+=1;return t},w=function(n){return{"@@transducer/value":n,"@@transducer/reduced":!0}},b=function(n){return function(t){return m(function(n){return"function"==typeof t[n]},n(t))}},j=function(n,t){return n>t},O=function(n,t){return Object.prototype.hasOwnProperty.call(t,n)},I=function(n){return n},S=Array.isArray||function(n){return null!=n&&n.length>=0&&"[object Array]"===Object.prototype.toString.call(n)},E=Number.isInteger||function(n){return n<<0===n},k=function(n){return null!=n&&n===Object(n)&&"function"==typeof n.then},A=function(n){return"function"==typeof n["@@transducer/step"]},N=function(n,t){return t>n},C=function(n,t){for(var r=0,e=t.length,u=[];e>r;)u[r]=n(t[r]),r+=1;return u},M=function(n,t){return n*t},P=function(n,t){return 0>n?t[t.length+n]:t[n]},T=function(n,t){if(null!=t){for(var r=t,e=0,u=n.length;u>e&&null!=r;e+=1)r=r[n[e]];return r}},R=function(n,t){return f([n],t)},W=function(n){return'"'+n.replace(/"/g,'\\"')+'"'},q=function(n){return n&&n["@@transducer/reduced"]?n:{"@@transducer/value":n,"@@transducer/reduced":!0}},L=function qu(n,t,r){switch(arguments.length){case 1:return qu(n,0,n.length);case 2:return qu(n,t,n.length);default:for(var e=[],u=0,i=Math.max(0,Math.min(n.length,r)-t);i>u;)e[u]=n[t+u],u+=1;return e}},U=function(){var n=function(n){return(10>n?"0":"")+n};return"function"==typeof Date.prototype.toISOString?function(n){return n.toISOString()}:function(t){return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}}(),B=function(){function n(n,t){this.xf=t,this.pred=n,this.lastValue=void 0,this.seenFirstValue=!1}return n.prototype["@@transducer/init"]=function(){return this.xf["@@transducer/init"]()},n.prototype["@@transducer/result"]=function(n){return this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){var r=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(r=!0):this.seenFirstValue=!0,this.lastValue=t,r?n:this.xf["@@transducer/step"](n,t)},h(function(t,r){return new n(t,r)})}(),F={init:function(){return this.xf["@@transducer/init"]()},result:function(n){return this.xf["@@transducer/result"](n)}},D=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=F.init,n.prototype["@@transducer/result"]=F.result,n.prototype["@@transducer/step"]=function(n,t){return this.f(t)?this.xf["@@transducer/step"](n,t):n},h(function(t,r){return new n(t,r)})}(),V=function(){function n(n,t){this.xf=t,this.f=n,this.found=!1}return n.prototype["@@transducer/init"]=F.init,n.prototype["@@transducer/result"]=function(n){return this.found||(n=this.xf["@@transducer/step"](n,void 0)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)&&(this.found=!0,n=q(this.xf["@@transducer/step"](n,t))),n},h(function(t,r){return new n(t,r)})}(),z=function(){function n(n,t){this.xf=t,this.f=n,this.idx=-1,this.found=!1}return n.prototype["@@transducer/init"]=F.init,n.prototype["@@transducer/result"]=function(n){return this.found||(n=this.xf["@@transducer/step"](n,-1)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.idx+=1,this.f(t)&&(this.found=!0,n=q(this.xf["@@transducer/step"](n,this.idx))),n},h(function(t,r){return new n(t,r)})}(),_=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=F.init,n.prototype["@@transducer/result"]=function(n){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](n,this.last))},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)&&(this.last=t),n},h(function(t,r){return new n(t,r)})}(),H=function(){function n(n,t){this.xf=t,this.f=n,this.idx=-1,this.lastIdx=-1}return n.prototype["@@transducer/init"]=F.init,n.prototype["@@transducer/result"]=function(n){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](n,this.lastIdx))},n.prototype["@@transducer/step"]=function(n,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),n},h(function(t,r){return new n(t,r)})}(),X=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=F.init,n.prototype["@@transducer/result"]=F.result,n.prototype["@@transducer/step"]=function(n,t){return this.xf["@@transducer/step"](n,this.f(t))},h(function(t,r){return new n(t,r)})}(),Y=function(){function n(n,t){this.xf=t,this.n=n}return n.prototype["@@transducer/init"]=F.init,n.prototype["@@transducer/result"]=F.result,n.prototype["@@transducer/step"]=function(n,t){return this.n-=1,0===this.n?q(this.xf["@@transducer/step"](n,t)):this.xf["@@transducer/step"](n,t)},h(function(t,r){return new n(t,r)})}(),Z=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=F.init,n.prototype["@@transducer/result"]=F.result,n.prototype["@@transducer/step"]=function(n,t){return this.f(t)?this.xf["@@transducer/step"](n,t):q(n)},h(function(t,r){return new n(t,r)})}(),$=function(){function n(n){this.f=n}return n.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},n.prototype["@@transducer/result"]=function(n){return n},n.prototype["@@transducer/step"]=function(n,t){return this.f(n,t)},function(t){return new n(t)}}(),G=h(t),J=g(function(n,t,r){if(t>=r.length||t<-r.length)return r;var e=0>t?r.length:0,u=e+t,i=f(r);return i[u]=n(r[u]),i}),K=p(function(n){return function(){return n}}),Q=h(function(n,t){for(var r=0,e=t.length-(n-1),u=new Array(e>=0?e:0);e>r;)u[r]=L(t,r,r+n),r+=1;return u}),nn=h(function(n,t){return n.apply(this,t)}),tn=h(function(n,t){switch(n){case 0:return function(){return t.apply(this,arguments)};case 1:return function(n){return t.apply(this,arguments)};case 2:return function(n,r){return t.apply(this,arguments)};case 3:return function(n,r,e){return t.apply(this,arguments)};case 4:return function(n,r,e,u){return t.apply(this,arguments)};case 5:return function(n,r,e,u,i){return t.apply(this,arguments)};case 6:return function(n,r,e,u,i,o){return t.apply(this,arguments)};case 7:return function(n,r,e,u,i,o,c){return t.apply(this,arguments)};case 8:return function(n,r,e,u,i,o,c,f){return t.apply(this,arguments)};case 9:return function(n,r,e,u,i,o,c,f,a){return t.apply(this,arguments)};case 10:return function(n,r,e,u,i,o,c,f,a,s){return t.apply(this,arguments)};default:throw new Error("First argument to arity must be a non-negative integer no greater than ten")}}),rn=g(u),en=h(function(n,t){return tn(n.length,function(){return n.apply(t,arguments)})}),un=h(function(n,t){return function(){return n.apply(this,arguments)&&t.apply(this,arguments)}}),on=p(function(n){return function(t,r){return n(t,r)?-1:n(r,t)?1:0}}),cn=p(o),fn=function(){var n=arguments;return function(){for(var t=0;t<n.length;){if(n[t][0].apply(this,arguments))return n[t][1].apply(this,arguments);t+=1}}},an=g(a),sn=h(function(n,t){for(var r={},e=t.length,u=0;e>u;){var i=n(t[u]);r[i]=(O(i,r)?r[i]:0)+1,u+=1}return r}),ln=h(s),pn=G(-1),hn=h(function(n,t){return null==t?n:t}),gn=g(function(n,t,r){for(var e=[],u=0,i=t.length,o=an(n);i>u;)o(t[u],r)||o(t[u],e)||(e[e.length]=t[u]),u+=1;return e}),dn=h(d),yn=h(function(n,t){return n/t}),mn=h(function(n,t){return function(){return n.apply(this,arguments)||t.apply(this,arguments)}}),vn=h(y),xn=h(function Lu(n,t){var r,e,u,i={};for(e in t)r=n[e],u=typeof r,i[e]="function"===u?r(t[e]):"object"===u?Lu(n[e],t[e]):t[e];return i}),wn=h(v),bn=h(function(n,t){for(var r=0,e=t.length;e>r;)n(t[r],r,t),r+=1;return t}),jn=p(function(n){for(var t=0,r=n.length,e={};r>t;)S(n[t])&&n[t].length&&(e[n[t][0]]=n[t][1]),t+=1;return e}),On=h(j),In=h(function(n,t){return n>=t}),Sn=h(O),En=h(function(n,t){return n in t}),kn=h(function(n,t){return n===t?0!==n||1/n===1/t:n!==n&&t!==t}),An=p(I),Nn=G(1),Cn=g(function(n,t,r){return n=n<r.length&&n>=0?n:r.length,f(f(L(r,0,n),t),L(r,n))}),Mn=h(function(n,t){return null!=t&&t.constructor===n||t instanceof n}),Pn=p(function(n){return S(n)?!0:n?"object"!=typeof n?!1:n instanceof String?!1:1===n.nodeType?!!n.length:0===n.length?!0:n.length>0?n.hasOwnProperty(0)&&n.hasOwnProperty(n.length-1):!1:!1}),Tn=p(function(n){return 0===Object(n).length}),Rn=p(function(n){return null==n}),Wn=function(){var n=!{toString:null}.propertyIsEnumerable("toString"),t=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],r=function(n,t){for(var r=0;r<n.length;){if(n[r]===t)return!0;r+=1}return!1};return p("function"==typeof Object.keys?function(n){return Object(n)!==n?[]:Object.keys(n)}:function(e){if(Object(e)!==e)return[];var u,i,o=[];for(u in e)O(u,e)&&(o[o.length]=u);if(n)for(i=t.length-1;i>=0;)u=t[i],O(u,e)&&!r(o,u)&&(o[o.length]=u),i-=1;return o})}(),qn=p(function(n){var t,r=[];for(t in n)r[r.length]=t;return r}),Ln=p(function(n){return null!=n&&Mn(Number,n.length)?n.length:NaN}),Un=h(function(n,t){var r=function(t){return n(t)};return r.set=h(t),r.map=h(function(r,e){return t(r(n(e)),e)}),r}),Bn=g(function(n,t,r){var e=function(){return n(r)};return e.set=t,e.map=function(e){return t(e(n(r)))},e}),Fn=h(N),Dn=h(function(n,t){return t>=n}),Vn=g(function(n,t,r){for(var e=0,u=r.length,i=[],o=[t];u>e;)o=n(o[0],r[e]),i[e]=o[1],e+=1;return[o[0],i]}),zn=g(function(n,t,r){for(var e=r.length-1,u=[],i=[t];e>=0;)i=n(i[0],r[e]),u[e]=i[1],e-=1;return[i[0],u]}),_n=h(function(n,t){for(var r=0,e=t.length,u=[];e>r;)u[r]=n(t[r],r,t),r+=1;return u}),Hn=h(function(n,t){return E(n)?!E(t)||1>t?NaN:(n%t+t)%t:NaN}),Xn=h(l(j)),Yn=h(l(N)),Zn=h(function(n,t){return n%t}),$n=h(M),Gn=h(function(n,t){switch(n){case 0:return function(){return t.call(this)};case 1:return function(n){return t.call(this,n)};case 2:return function(n,r){return t.call(this,n,r)};case 3:return function(n,r,e){return t.call(this,n,r,e)};case 4:return function(n,r,e,u){return t.call(this,n,r,e,u)};case 5:return function(n,r,e,u,i){return t.call(this,n,r,e,u,i)};case 6:return function(n,r,e,u,i,o){return t.call(this,n,r,e,u,i,o)};case 7:return function(n,r,e,u,i,o,c){return t.call(this,n,r,e,u,i,o,c)};case 8:return function(n,r,e,u,i,o,c,f){return t.call(this,n,r,e,u,i,o,c,f)};case 9:return function(n,r,e,u,i,o,c,f,a){return t.call(this,n,r,e,u,i,o,c,f,a)};case 10:return function(n,r,e,u,i,o,c,f,a,s){return t.call(this,n,r,e,u,i,o,c,f,a,s)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),Jn=p(function(n){return-n}),Kn=p(function(n){return!n}),Qn=h(P),nt=p(function(n){return function(){return P(n,arguments)}}),tt=h(function(n,t){return t.charAt(0>n?t.length+n:n)}),rt=h(function(n,t){return t.charCodeAt(0>n?t.length+n:n)}),et=p(function(n){return[n]}),ut=p(function(n){var t,r=!1;return function(){return r?t:(r=!0,t=n.apply(this,arguments))}}),it=h(T),ot=h(function(n,t){for(var r={},e=0;e<n.length;)n[e]in t&&(r[n[e]]=t[n[e]]),e+=1;return r}),ct=h(function(n,t){for(var r={},e=0,u=n.length;u>e;){var i=n[e];r[i]=t[i],e+=1}return r}),ft=h(function(n,t){var r={};for(var e in t)n(t[e],e,t)&&(r[e]=t[e]);return r}),at=h(R),st=h(function(n,t){return t[n]}),lt=g(function(n,t,r){return null!=r&&O(t,r)?r[t]:n}),pt=h(function(n,t){for(var r=n.length,e=[],u=0;r>u;)e[u]=t[n[u]],u+=1;return e}),ht=h(function(n,t){for(var r=[],e=n;t>e;)r[r.length]=e,e+=1;return r}),gt=g(function(n,t,r){for(var e=0,u=r.length;u>e;)t=n(t,r[e],e,r),e+=1;return t}),dt=g(function(n,t,r){for(var e=r.length-1;e>=0;)t=n(t,r[e]),e-=1;return t}),yt=g(function(n,t,r){for(var e=r.length-1;e>=0;)t=n(t,r[e],e,r),e-=1;return t}),mt=p(q),vt=h(function(n,t){return v(o(n),t)}),xt=g(function(n,t,r){return f(L(r,0,Math.min(n,r.length)),L(r,Math.min(r.length,n+t)))}),wt=g(function(n,t,r){return r.replace(n,t)}),bt=p(function(n){return L(n).reverse()}),jt=g(function(n,t,r){for(var e=0,u=r.length,i=[t];u>e;)t=n(t,r[e]),i[e+1]=t,e+=1;return i}),Ot=h(function(n,t){return L(t).sort(n)}),It=h(function(n,t){return L(t).sort(function(t,r){var e=n(t),u=n(r);return u>e?-1:e>u?1:0})}),St=h(function(n,t){return t.indexOf(n)}),Et=h(function(n,t){return t.lastIndexOf(n)}),kt=h(function(n,t){return n-t}),At=h(function(n,t){return n(t),t}),Nt=h(function(n,t){return i(n).test(t)}),Ct=h(function(n,t){for(var r=Number(t),e=new Array(r),u=0;r>u;)e[u]=n(u),u+=1;return e}),Mt=p(function(n){var t=[];for(var r in n)O(r,n)&&(t[t.length]=[r,n[r]]);return t}),Pt=p(function(n){var t=[];for(var r in n)t[t.length]=[r,n[r]];return t}),Tt=function(){var n=" \n \f\r    \u2028\u2029\ufeff",t="",r="function"==typeof String.prototype.trim;return p(r&&!n.trim()&&t.trim()?function(n){return n.trim()}:function(t){var r=new RegExp("^["+n+"]["+n+"]*"),e=new RegExp("["+n+"]["+n+"]*$");return t.replace(r,"").replace(e,"")})}(),Rt=p(function(n){return null===n?"Null":void 0===n?"Undefined":Object.prototype.toString.call(n).slice(8,-1)}),Wt=p(function(n){return function(){return n(L(arguments))}}),qt=p(function(n){return Gn(1,n)}),Lt=h(function(n,t){for(var r=n(t),e=[];r&&r.length;)e[e.length]=r[0],r=n(r[1]);return e}),Ut=h(function(n,t){for(var r,e=0,u=t.length,i=[];u>e;)r=t[e],a(n,r,i)||(i[i.length]=r),e+=1;return i}),Bt=g(function(n,t,r){return J(K(t),n,r)}),Ft=p(function(n){for(var t=Wn(n),r=t.length,e=[],u=0;r>u;)e[u]=n[t[u]],u+=1;return e}),Dt=p(function(n){var t,r=[];for(t in n)r[r.length]=n[t];return r}),Vt=h(function(n,t){for(var r in n)if(O(r,n)&&!n[r](t[r]))return!1;return!0}),zt=h(function(n,t){for(var r,e=0,u=n.length,i=t.length,o=[];u>e;){for(r=0;i>r;)o[o.length]=[n[e],t[r]],r+=1;e+=1}return o}),_t=h(function(n,t){for(var r=[],e=0,u=Math.min(n.length,t.length);u>e;)r[e]=[n[e],t[e]],e+=1;return r}),Ht=h(function(n,t){for(var r=0,e=n.length,u={};e>r;)u[n[r]]=t[r],r+=1;return u}),Xt=g(function(n,t,r){for(var e=[],u=0,i=Math.min(t.length,r.length);i>u;)e[u]=n(t[u],r[u]),u+=1;return e}),Yt=K(!1),Zt=K(!0),$t=function(n,t){return f(t,[n])},Gt=function Uu(n,t,r){switch(n.length){case 0:return r;case 1:return u(n[0],t,r);default:return u(n[0],Uu(L(n,1),t,Object(r[n[0]])),r)}},Jt=function Bu(n,t,r){var e=function(e){for(var u=t.length,i=0;u>i;){if(n===t[i])return r[i];i+=1}t[i+1]=n,r[i+1]=e;for(var o in n)e[o]=Bu(n[o],t,r);return e};switch(Rt(n)){case"Object":return e({});case"Array":return e([]);case"Date":return new Date(n);case"RegExp":return i(n);default:return n}},Kt=function(n,t){return function(){var r=arguments.length;if(0===r)return t();var e=arguments[r-1];return S(e)||"function"!=typeof e[n]?t.apply(this,arguments):e[n].apply(e,L(arguments,0,r-1))}},Qt=function(n,t){return Un(c(n,t),function(r,e){var u=n.set(r,t(e));return t.set(u,e)})},nr=function(n,t){return function(){var r=this,e=t.apply(this,arguments);return k(e)?e.then(function(t){return n.call(r,t)}):n.call(this,e)}},tr=function(n){return function(){for(var t=arguments[arguments.length-1],r=t.length,e=arguments.length-2;e>=0;)t=n(arguments[e],t),e-=1;return tn(r,t)}},rr=function(n,t){return p(function(r){for(var e,u=0,i=t;u<r.length;)e=+r[u],n(e,i)&&(i=e),u+=1;return i})},er=function(n){return function(t){var r=L(arguments,1);return tn(Math.max(0,t.length-r.length),function(){return t.apply(this,n(r,arguments))})}},ur=function Fu(n,t,r){return function(){for(var e=[],u=0,i=n,o=0;o<t.length||u<arguments.length;){var c;o<t.length&&(null==t[o]||t[o]["@@functional/placeholder"]!==!0||u>=arguments.length)?c=t[o]:(c=arguments[u],u+=1),e[o]=c,(null==c||c["@@functional/placeholder"]!==!0)&&(i-=1),o+=1}return 0>=i?r.apply(this,e):tn(i,Fu(n,e,r))}},ir=function(n,t,r){return function(){var e=arguments.length;if(0===e)return r();var u=arguments[e-1];if(!S(u)){var i=L(arguments,0,e-1);if("function"==typeof u[n])return u[n].apply(u,i);if(A(u)){var o=t.apply(null,i);return o(u)}}return r.apply(this,arguments)}},or=function Du(n,t){switch(n.length){case 0:return t;case 1:return d(n[0],t);default:var r=n[0],e=L(n,1);return null==t[r]?t:u(r,Du(e,t[r]),t)}},cr=function Vu(n,t,r,e){var u=Rt(n);if(u!==Rt(t))return!1;if("Boolean"===u||"Number"===u||"String"===u)return"object"==typeof n?"object"==typeof t&&kn(n.valueOf(),t.valueOf()):kn(n,t);if(kn(n,t))return!0;if("RegExp"===u)return n.source===t.source&&n.global===t.global&&n.ignoreCase===t.ignoreCase&&n.multiline===t.multiline&&n.sticky===t.sticky&&n.unicode===t.unicode;if(Object(n)===n){if("Date"===u&&n.getTime()!==t.getTime())return!1;var i=Wn(n);if(i.length!==Wn(t).length)return!1;for(var o=r.length-1;o>=0;){if(r[o]===n)return e[o]===t;o-=1}for(r[r.length]=n,e[e.length]=t,o=i.length-1;o>=0;){var c=i[o];if(!O(c,t)||!Vu(t[c],n[c],r,e))return!1;o-=1}return r.pop(),e.pop(),!0}return!1},fr=function(n,t){for(var r=Wn(t),e=0,u=r.length;u>e;)n[r[e]]=t[r[e]],e+=1;return n},ar=function(n,t){return null!=t&&!S(t)&&"function"==typeof t[n]},sr=function(n){return function t(r){for(var e,u,i,o=[],c=0,f=r.length;f>c;){if(Pn(r[c]))for(e=n?t(r[c]):r[c],u=0,i=e.length;i>u;)o[o.length]=e[u],u+=1;else o[o.length]=r[c];c+=1}return o}},lr=function(){function n(n,t,r){for(var e=0,u=r.length;u>e;){if(t=n["@@transducer/step"](t,r[e]),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}e+=1}return n["@@transducer/result"](t)}function t(n,t,r){for(var e=r.next();!e.done;){if(t=n["@@transducer/step"](t,e.value),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}e=r.next()}return n["@@transducer/result"](t)}function r(n,t,r){return n["@@transducer/result"](r.reduce(en(n["@@transducer/step"],n),t))}var e="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(u,i,o){if("function"==typeof u&&(u=$(u)),Pn(o))return n(u,i,o);if("function"==typeof o.reduce)return r(u,i,o);if(null!=o[e])return t(u,i,o[e]());if("function"==typeof o.next)return t(u,i,o);throw new TypeError("reduce: list must be array or iterable")}}(),pr=function(){function n(n,t){this.xf=t,this.f=n,this.all=!0}return n.prototype["@@transducer/init"]=F.init,n.prototype["@@transducer/result"]=function(n){return this.all&&(n=this.xf["@@transducer/step"](n,!0)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)||(this.all=!1,n=q(this.xf["@@transducer/step"](n,!1))),n},h(function(t,r){return new n(t,r)})}(),hr=function(){function n(n,t){this.xf=t,this.f=n,this.any=!1}return n.prototype["@@transducer/init"]=F.init,n.prototype["@@transducer/result"]=function(n){return this.any||(n=this.xf["@@transducer/step"](n,!1)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)&&(this.any=!0,n=q(this.xf["@@transducer/step"](n,!0))),n},h(function(t,r){return new n(t,r)})}(),gr=function(){function n(n,t){this.xf=t,this.n=n}return n.prototype["@@transducer/init"]=F.init,n.prototype["@@transducer/result"]=F.result,n.prototype.step=function(n,t){return this.n>0?(this.n-=1,n):this.xf["@@transducer/step"](n,t)},h(function(t,r){return new n(t,r)})}(),dr=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=F.init,n.prototype["@@transducer/result"]=F.result,n.prototype["@@transducer/step"]=function(n,t){if(this.f){if(this.f(t))return n;this.f=null}return this.xf["@@transducer/step"](n,t)},h(function(t,r){return new n(t,r)})}(),yr=function(){function n(n,t){this.xf=t,this.f=n,this.inputs={}}return n.prototype["@@transducer/init"]=F.init,n.prototype["@@transducer/result"]=function(n){var t;for(t in this.inputs)if(O(t,this.inputs)&&(n=this.xf["@@transducer/step"](n,this.inputs[t]),n["@@transducer/reduced"])){n=n["@@transducer/value"];break}return this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){var r=this.f(t);return this.inputs[r]=this.inputs[r]||[r,[]],this.inputs[r][1]=$t(t,this.inputs[r][1]),n},h(function(t,r){return new n(t,r)})}(),mr=h(ir("all",pr,r)),vr=h(function(n,t){return ar("and",n)?n.and(t):n&&t}),xr=h(ir("any",hr,e)),wr=h($t),br=g(Gt),jr=p(function(n){return Gn(2,n)}),Or=p(function(n){return Jt(n,[],[])}),Ir=tr(c),Sr=function(){for(var n=arguments[arguments.length-1],t=arguments.length-2;t>=0;)n=Qt(arguments[t],n),t-=1;return n},Er=tr(nr),kr=h(function(n,t){if(S(t))return f(n,t);if(ar("concat",n))return n.concat(t);throw new TypeError("can't concat "+typeof n)}),Ar=h(function(n,t){return tn(n,ur(n,[],t))}),Nr=h(or),Cr=h(ir("dropWhile",dr,function(n,t){for(var r=0,e=t.length;e>r&&n(t[r]);)r+=1;return L(t,r)})),Mr=p(function(n){return ar("empty",n)?n.empty():[]}),Pr=h(function(n,t){return ar("equals",n)?n.equals(t):ar("equals",t)?t.equals(n):cr(n,t,[],[])}),Tr=h(ir("filter",D,m)),Rr=h(ir("find",V,function(n,t){for(var r=0,e=t.length;e>r;){if(n(t[r]))return t[r];r+=1}})),Wr=h(ir("findIndex",z,function(n,t){for(var r=0,e=t.length;e>r;){if(n(t[r]))return r;r+=1}return-1})),qr=h(ir("findLast",_,function(n,t){for(var r=t.length-1;r>=0;){if(n(t[r]))return t[r];r-=1}})),Lr=h(ir("findLastIndex",H,function(n,t){for(var r=t.length-1;r>=0;){if(n(t[r]))return r;r-=1}return-1})),Ur=p(sr(!0)),Br=h(function(n,t){return ar("forEach",t)?t.forEach(n):x(n,t)}),Fr=p(b(Wn)),Dr=p(b(qn)),Vr=h(ir("groupBy",yr,function(n,t){return lr(function(t,r){var e=n(r);return t[e]=$t(r,t[e]||(t[e]=[])),t},{},t)})),zr=Qn(0),_r=g(function(n,t,r){return Ar(Math.max(n.length,t.length,r.length),function(){return n.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)})}),Hr=g(function(n,t,r){return n=n<r.length&&n>=0?n:r.length,f($t(t,L(r,0,n)),L(r,n))}),Xr=g(function(n,t,r){for(var e=[],u=0;u<t.length;)a(n,t[u],r)&&(e[e.length]=t[u]),u+=1;return Ut(n,e)}),Yr=h(Kt("intersperse",function(n,t){for(var r=[],e=0,u=t.length;u>e;)e===u-1?r.push(t[e]):r.push(t[e],n),e+=1;return r})),Zr=p(function(n){for(var t=Wn(n),r=t.length,e=0,u={};r>e;){var i=t[e],o=n[i],c=O(o,u)?u[o]:u[o]=[];c[c.length]=i,e+=1}return u}),$r=p(function(n){for(var t=Wn(n),r=t.length,e=0,u={};r>e;){var i=t[e];u[n[i]]=i,e+=1}return u}),Gr=h(function(n,t){return Ar(n+1,function(){var r=arguments[n];return r[t].apply(r,L(arguments,0,n))})}),Jr=Gr(1,"join"),Kr=Qn(-1),Qr=p(function(n){return Un(Qn(n),Bt(n))}),ne=p(function(n){return Un(st(n),rn(n))}),te=h(ir("map",X,C)),re=h(function(n,t){return lr(function(r,e){return r[e]=n(t[e]),r},{},Wn(t))}),ee=h(function(n,t){return lr(function(r,e){return r[e]=n(t[e],e,t),r},{},Wn(t))}),ue=Gr(1,"match"),ie=rr(j,-(1/0)),oe=h(function(n,t){return fr(fr({},n),t)}),ce=rr(N,1/0),fe=h(o(ir("any",hr,e))),ae=h(function(n,t){return ar("or",n)?n.or(t):n||t}),se=h(function(n,t){return lr(function(t,r){var e=t[n(r)?0:1];return e[e.length]=r,t},[[],[]],t)}),le=g(function(n,t,r){return Pr(T(n,r),t)}),pe=function(){return Ir.apply(this,bt(arguments))},he=Ir(nn(Sr),Wt(bt)),ge=function(){return Er.apply(this,bt(arguments))},de=g(function(n,t,r){return Pr(r[n],t)}),ye=g(lr),me=h(function(n,t){return Tr(o(n),t)}),ve=h(function(n,t){return Ct(K(n),t)}),xe=g(Kt("slice",function(n,t,r){return Array.prototype.slice.call(r,n,t)})),we=Gr(1,"split"),be=xe,je=be(n,1/0),Oe=be(0),Ie=ye(t,0),Se=Kt("tail",function(n){return L(n,1)}),Ee=h(ir("take",Y,function(n,t){return xe(0,0>n?1/0:n,t)})),ke=h(ir("takeWhile",Z,function(n,t){for(var r=0,e=t.length;e>r&&n(t[r]);)r+=1;return L(t,0,r)})),Ae=Gr(0,"toLowerCase"),Ne=Gr(0,"toUpperCase"),Ce=Ar(4,function(n,t,r,e){return lr(n("function"==typeof t?$(t):t),r,e)}),Me=h(function(n,t){return Ar(n,function(){for(var r,e=1,u=t,i=0;n>=e&&"function"==typeof u;)r=e===n?arguments.length:i+u.length,u=u.apply(this,L(arguments,i,r)),e+=1,i=r;return u})}),Pe=g(function(n,t,r){return Ut(n,f(t,r))}),Te=Ut(Pr),Re=p(sr(!1)),We=h(function(n,t){return Vt(re(Pr,n),t)}),qe=h(function(n,t){return Ar(n.length,function(){return t.apply(this,f([n],arguments))})}),Le=h(function(n,t){return Re(te(n,t))}),Ue=function(){var n=function(n){return{"@@transducer/init":F.init,"@@transducer/result":function(t){return n["@@transducer/result"](t)},"@@transducer/step":function(t,r){var e=n["@@transducer/step"](t,r);return e["@@transducer/reduced"]?w(e):e}}};return function(t){var r=n(t);return{"@@transducer/init":F.init,"@@transducer/result":function(n){return r["@@transducer/result"](n)},"@@transducer/step":function(n,t){return Pn(t)?lr(r,n,t):lr(r,n,[t])}}}}(),Be=function(n,t,r){var e=0,u=n.length;for("number"==typeof r&&(e=0>r?Math.max(0,u+r):r);u>e;){if(Pr(n[e],t))return e;e+=1}return-1},Fe=function(n,t,r){var e;for(e="number"==typeof r?0>r?n.length+r:Math.min(n.length-1,r):n.length-1;e>=0;){if(Pr(n[e],t))return e;e-=1}return-1},De=function(n,t){return te(st(n),t)},Ve=function(n){return function(t){var r=function(){var r=arguments;return n(function(n){return n.apply(null,r)},t)};return arguments.length>1?r.apply(null,L(arguments,1)):tn(ie(De("length",t)),r)}},ze=function(){var n={"@@transducer/init":Array,"@@transducer/step":function(n,t){return f(n,[t])},"@@transducer/result":I},r={"@@transducer/init":String,"@@transducer/step":t,"@@transducer/result":I},e={"@@transducer/init":Object,"@@transducer/step":function(n,t){return oe(n,Pn(t)?s(t[0],t[1]):t)},"@@transducer/result":I};return function(t){if(A(t))return t;if(Pn(t))return n;if("string"==typeof t)return r;if("object"==typeof t)return e;throw new Error("Cannot create transformer for "+t)}}(),_e=function zu(n,t){var r=function(r){var e=t.concat([n]);return Be(e,r)>=0?"<Circular>":zu(r,e)};switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+C(r,n).join(", ")+"))";case"[object Array]":return"["+C(r,n).join(", ")+"]";case"[object Boolean]":return"object"==typeof n?"new Boolean("+r(n.valueOf())+")":n.toString();case"[object Date]":return"new Date("+W(U(n))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof n?"new Number("+r(n.valueOf())+")":1/n===-(1/0)?"-0":n.toString(10);case"[object String]":return"object"==typeof n?"new String("+r(n.valueOf())+")":W(n);case"[object Undefined]":return"undefined";default:return"function"==typeof n.constructor&&"Object"!==n.constructor.name&&"function"==typeof n.toString&&"[object Object]"!==n.toString()?n.toString():"{"+C(function(t){return W(t)+": "+r(n[t])},Wn(n).sort()).join(", ")+"}"}},He=h(function(n,t){return te(n,Ue(t))}),Xe=p(function(n){return Ar(n.length,function(){var t=0,r=arguments[0],e=arguments[arguments.length-1],u=function(){var n=r.apply(this,f(arguments,[t,e]));return t+=1,n};return n.apply(this,R(u,L(arguments,1)))})}),Ye=h(function(n,t){return ar("ap",n)?n.ap(t):lr(function(n,r){return f(n,te(r,t))},[],n)}),Ze=h(ir("chain",He,Le)),$e=g(function(n,t,r){function e(t,r){return Ye(te(wr,n(r)),t)}return lr(e,t([]),r)}),Ge=p(function(n){return Ar(n.length,n)}),Je=h(ir("drop",gr,function(n,t){return xe(Math.max(0,n),1/0,t)})),Ke=h(ir("dropRepeatsWith",B,function(n,t){var r=[],e=1,u=t.length;if(0!==u)for(r[0]=t[0];u>e;)n(Kr(r),t[e])||(r[r.length]=t[e]),e+=1;return r})),Qe=Pr,nu=g(function(n,t,r){return Pr(t[n],r[n])}),tu=p(function(n){return Ge(function(t,r){var e=L(arguments);return e[0]=r,e[1]=t,n.apply(this,e)})}),ru=h(function(n,t){return ar("indexOf",t)?t.indexOf(n):Be(t,n)}),eu=xe(0,-1),uu=g(function(n,t,r){return A(n)?lr(t(n),n["@@transducer/init"](),r):lr(t(ze(n)),n,r)}),iu=Ge(function(n,t,r){return r[n].apply(r,t)}),ou=p(function(n){for(var t=n.length,r=0;t>r;){if(Be(n,n[r],r+1)>=0)return!1;r+=1}return!0}),cu=h(function(n,t){return ar("lastIndexOf",t)?t.lastIndexOf(n):Fe(t,n)}),fu=h(function(n,t){var r=Ar(n,t);return Ar(n,function(){return lr(Ye,te(r,arguments[0]),L(arguments,1))})}),au=p(function(n){return Ie(n)/n.length}),su=p(function(n){var t=n.length;if(0===t)return NaN;var r=2-t%2,e=(t-r)/2;return au(L(n).sort(function(n,t){return t>n?-1:n>t?1:0}).slice(e,e+r))}),lu=p(function(n){return ye(oe,{},n)}),pu=h(function(n,t){var r={};for(var e in t)Be(n,e)<0&&(r[e]=t[e]);return r}),hu=Ge(er(f)),gu=Ge(er(tu(f))),du=h(De),yu=ye(M,1),mu=p(function(n){return _e(n,[])}),vu=h(Ir(Te,f)),xu=Ge(function(n){var t=L(arguments,1),r=t.length;return Ge(tn(r,function(){for(var e=[],u=0;r>u;)e[u]=t[u](arguments[u]),u+=1;return n.apply(this,e.concat(L(arguments,r)))}))}),wu=function(n,t){return Be(t,n)>=0},bu=Ge(Ve(r)),ju=Ge(Ve(e)),Ou=Ge(function(n){return n.apply(this,L(arguments,1))}),Iu=$e(te(An)),Su=h(function(n,t){if(n>10)throw new Error("Constructor with greater than ten arguments");return 0===n?function(){return new t}:Ge(Gn(n,function(n,r,e,u,i,o,c,f,a,s){switch(arguments.length){case 1:return new t(n);case 2:return new t(n,r);case 3:return new t(n,r,e);case 4:return new t(n,r,e,u);case 5:return new t(n,r,e,u,i);case 6:return new t(n,r,e,u,i,o);case 7:return new t(n,r,e,u,i,o,c);case 8:return new t(n,r,e,u,i,o,c,f);case 9:return new t(n,r,e,u,i,o,c,f,a);case 10:return new t(n,r,e,u,i,o,c,f,a,s)}}))}),Eu=h(wu),ku=Ar(3,function(n){var t=L(arguments,1);return Ar(ie(du("length",t)),function(){var r=arguments,e=this;return n.apply(e,C(function(n){return n.apply(e,r)},t))})}),Au=h(function(n,t){for(var r=[],e=0,u=n.length;u>e;)wu(n[e],t)||wu(n[e],r)||(r[r.length]=n[e]),
e+=1;return r}),Nu=p(ir("dropRepeats",B(Pr),Ke(Pr))),Cu=h(function(n,t){return Te(m(tu(wu)(n),t))}),Mu=p(function(n){return fu(n.length,n)}),Pu=p(function(n){var t={};return function(){var r=mu(arguments);return O(r,t)||(t[r]=n.apply(this,arguments)),t[r]}}),Tu=xu(C,ct,An),Ru=p(function(n){return Su(n.length,n)}),Wu={F:Yt,T:Zt,__:n,add:G,addIndex:Xe,adjust:J,all:mr,allPass:bu,always:K,and:vr,any:xr,anyPass:ju,ap:Ye,aperture:Q,append:wr,apply:nn,arity:tn,assoc:rn,assocPath:br,binary:jr,bind:en,both:un,call:Ou,chain:Ze,clone:Or,commute:Iu,commuteMap:$e,comparator:on,complement:cn,compose:Ir,composeL:Sr,composeP:Er,concat:kr,cond:fn,construct:Ru,constructN:Su,contains:Eu,containsWith:an,converge:ku,countBy:sn,createMapEntry:ln,curry:Ge,curryN:Ar,dec:pn,defaultTo:hn,difference:Au,differenceWith:gn,dissoc:dn,dissocPath:Nr,divide:yn,drop:Je,dropRepeats:Nu,dropRepeatsWith:Ke,dropWhile:Cr,either:mn,empty:Mr,eq:vn,eqDeep:Qe,eqProps:nu,equals:Pr,evolve:xn,filter:Tr,filterIndexed:wn,find:Rr,findIndex:Wr,findLast:qr,findLastIndex:Lr,flatten:Ur,flip:tu,forEach:Br,forEachIndexed:bn,fromPairs:jn,functions:Fr,functionsIn:Dr,groupBy:Vr,gt:On,gte:In,has:Sn,hasIn:En,head:zr,identical:kn,identity:An,ifElse:_r,inc:Nn,indexOf:ru,init:eu,insert:Hr,insertAll:Cn,intersection:Cu,intersectionWith:Xr,intersperse:Yr,into:uu,invert:Zr,invertObj:$r,invoke:iu,invoker:Gr,is:Mn,isArrayLike:Pn,isEmpty:Tn,isNil:Rn,isSet:ou,join:Jr,keys:Wn,keysIn:qn,last:Kr,lastIndexOf:cu,length:Ln,lens:Un,lensIndex:Qr,lensOn:Bn,lensProp:ne,lift:Mu,liftN:fu,lt:Fn,lte:Dn,map:te,mapAccum:Vn,mapAccumRight:zn,mapIndexed:_n,mapObj:re,mapObjIndexed:ee,match:ue,mathMod:Hn,max:ie,maxBy:Xn,mean:au,median:su,memoize:Pu,merge:oe,mergeAll:lu,min:ce,minBy:Yn,modulo:Zn,multiply:$n,nAry:Gn,negate:Jn,none:fe,not:Kn,nth:Qn,nthArg:nt,nthChar:tt,nthCharCode:rt,of:et,omit:pu,once:ut,or:ae,partial:hu,partialRight:gu,partition:se,path:it,pathEq:le,pick:ot,pickAll:ct,pickBy:ft,pipe:pe,pipeL:he,pipeP:ge,pluck:du,prepend:at,product:yu,project:Tu,prop:st,propEq:de,propOr:lt,props:pt,range:ht,reduce:ye,reduceIndexed:gt,reduceRight:dt,reduceRightIndexed:yt,reduced:mt,reject:me,rejectIndexed:vt,remove:xt,repeat:ve,replace:wt,reverse:bt,scan:jt,slice:xe,sort:Ot,sortBy:It,split:we,strIndexOf:St,strLastIndexOf:Et,substring:be,substringFrom:je,substringTo:Oe,subtract:kt,sum:Ie,tail:Se,take:Ee,takeWhile:ke,tap:At,test:Nt,times:Ct,toLower:Ae,toPairs:Mt,toPairsIn:Pt,toString:mu,toUpper:Ne,transduce:Ce,trim:Tt,type:Rt,unapply:Wt,unary:qt,uncurryN:Me,unfold:Lt,union:vu,unionWith:Pe,uniq:Te,uniqWith:Ut,unnest:Re,update:Bt,useWith:xu,values:Ft,valuesIn:Dt,where:Vt,whereEq:We,wrap:qe,xprod:zt,zip:_t,zipObj:Ht,zipWith:Xt};"object"==typeof exports?module.exports=Wu:"function"==typeof define&&define.amd?define(function(){return Wu}):this.R=Wu}).call(this);