Comparing version 0.24.1-es.rc2 to 0.24.1-es.rc3
@@ -1,1 +0,1 @@ | ||
!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})}); | ||
!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,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 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,s=0;r.length>s||arguments.length>c;){var f;s>=r.length||n(r[s])&&arguments.length>c?(f=arguments[c],c+=1):f=r[s],u[s]=f,n(f)||(a-=1),s+=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 s(t,n,r){return function(){if(0===arguments.length)return r();var e=Array.prototype.slice.call(arguments,0),u=e.pop();if(!At(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 f(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](qt(t["@@transducer/step"],t),n))}function b(t,n,r){if("function"==typeof t&&(t=d(t)),_t(r))return g(t,n,r);if("function"==typeof r["fantasy-land/reduce"])return m(t,n,r,"fantasy-land/reduce");if(null!=r[kt])return v(t,n,r[kt]());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(_t(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(vn(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 N(t,n){return function(){var r=arguments.length;if(0===r)return n();var e=arguments[r-1];return At(e)||"function"!=typeof e[t]?n.apply(this,arguments):e[t].apply(e,Array.prototype.slice.call(arguments,0,r-1))}}function I(){if(0===arguments.length)throw Error("pipe requires at least one argument");return i(arguments[0].length,Mt(k,arguments[0],An(arguments)))}function W(){if(0===arguments.length)throw Error("compose requires at least one argument");return I.apply(this,On(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,Rt(dn,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,Mt(C,arguments[0],An(arguments)))}function B(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r}function F(t,n,r){for(var e=0,u=r.length;u>e;){if(t(n,r[e]))return!0;e+=1}return!1}function R(t){var n=(t+"").match(/^function (\w*)/);return null==n?"":n[1]}function U(t,n,r,e){function u(t,n){return D(t,n,r.slice(),e.slice())}var i=B(t);return!F(function(t,n){return!F(u,n,t)},B(n),i)}function D(t,n,r,e){if(Sn(t,n))return!0;var u=vn(t);if(u!==vn(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(u){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===R(t.constructor))return t===n;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof n||!Sn(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!Sn(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}for(var i=r.length-1;i>=0;){if(r[i]===t)return e[i]===n;i-=1}switch(u){case"Map":return t.size===n.size&&U(t.entries(),n.entries(),r.concat([t]),e.concat([n]));case"Set":return t.size===n.size&&U(t.values(),n.values(),r.concat([t]),e.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":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 o=Ft(t);if(o.length!==Ft(n).length)return!1;var c=r.concat([t]),a=e.concat([n]);for(i=o.length-1;i>=0;){var s=o[i];if(!w(s,n)||!D(n[s],t[s],c,a))return!1;i-=1}return!0}function z(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(En(t[r],n))return r;r+=1}return-1}function M(t,n){return z(n,t,0)>=0}function L(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 K(t){return function(){return!t.apply(this,arguments)}}function V(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 $(t){return"[object Object]"===Object.prototype.toString.call(t)}function H(t,n){this.xf=n,this.f=t}function J(t,n){var r=function(r){var e=n.concat([t]);return M(r,e)?"<Circular>":J(r,e)},e=function(t,n){return p(function(n){return L(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,Nn(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):L(qn(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())+")":L(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 X(t,n,r,e){this.valueFn=t,this.valueAcc=n,this.keyFn=r,this.xf=e,this.inputs={}}function Y(t,n){this.xf=n,this.n=t}function Z(t,n){this.xf=n,this.n=t,this.i=0}function G(t,n){this.xf=n,this.pos=0,this.full=!1,this.acc=Array(t)}function Q(t,n){this.f=t,this.retained=[],this.xf=n}function tt(t,n){this.xf=n,this.pred=t,this.lastValue=void 0,this.seenFirstValue=!1}function nt(t,n){this.xf=n,this.f=t}function rt(t,n){this.xf=n,this.f=t,this.found=!1}function et(t,n){this.xf=n,this.f=t,this.idx=-1,this.found=!1}function ut(t,n){this.xf=n,this.f=t}function it(t,n){this.xf=n,this.f=t,this.idx=-1,this.lastIdx=-1}function ot(t){return t}function ct(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}function at(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?!!M(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?!!M(t,r._items[u])||(n&&r._items[u].push(t),!1):(n&&(r._items[u]=[t]),!1)}}function st(t){if(a(t))return t;if(_t(t))return Hr;if("string"==typeof t)return Jr;if("object"==typeof t)return Xr;throw Error("Cannot create transformer for "+t)}function ft(t){return"[object Number]"===Object.prototype.toString.call(t)}function lt(t){return e(function(n,r){return i(Math.max(0,n.length-r.length),function(){return n.apply(this,t(r,arguments))})})}function pt(t,n){this.xf=n,this.f=t}function ht(t,n){this.xf=n,this.f=t}function yt(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var dt=r(function(t){return function(){return t}}),gt=dt(!1),vt=dt(!0),mt={"@@functional/placeholder":!0},bt=e(function(t,n){return+t+ +n}),xt=e(function(t,n){return 1===t?r(n):i(t,o(t,[],n))}),wt=r(function(t){return xt(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)})}),jt=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}),At=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)},Ot={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};l.prototype["@@transducer/init"]=Ot.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=f(this.xf["@@transducer/step"](t,!1))),t};var St=e(s(["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})),Et=e(function(t,n){return n>t?n:t}),_t=r(function(t){return!!At(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 qt=e(function(t,n){return i(t.length,function(){return t.apply(n,arguments)})}),kt="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";x.prototype["@@transducer/init"]=Ot.init,x.prototype["@@transducer/result"]=Ot.result,x.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))};var Nt=e(function(t,n){return new x(t,n)}),It=Object.prototype.toString,Wt=function(){return"[object Arguments]"===It.call(arguments)?function(t){return"[object Arguments]"===It.call(t)}:function(t){return w("callee",t)}},Pt=!{toString:null}.propertyIsEnumerable("toString"),Ct=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Tt=function(){return arguments.propertyIsEnumerable("length")}(),Bt=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||Tt?function(t){if(Object(t)!==t)return[];var n,r,e=[],u=Tt&&Wt(t);for(n in t)!w(n,t)||u&&"length"===n||(e[e.length]=n);if(Pt)for(r=6;r>=0;)w(n=Ct[r],t)&&!Bt(e,n)&&(e[e.length]=n),r-=1;return e}:function(t){return Object(t)!==t?[]:Object.keys(t)}),Rt=e(s(["fantasy-land/map","map"],Nt,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return xt(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)}})),Ut=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}),Dt=e(function(t,n){return Ut([t],n)}),zt=e(function(t,n){return Rt(Dt(t),n)}),Mt=c(b),Lt=r(function(t){return xt(Mt(Et,0,zt("length",t)),function(){for(var n=0,r=t.length;r>n;){if(!t[n].apply(this,arguments))return!1;n+=1}return!0})}),Kt=e(function(t,n){return t&&n});j.prototype["@@transducer/init"]=Ot.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=f(this.xf["@@transducer/step"](t,!0))),t};var Vt=e(function(t,n){return new j(t,n)}),$t=e(s(["any"],Vt,function(t,n){for(var r=0;n.length>r;){if(t(n[r]))return!0;r+=1}return!1})),Ht=r(function(t){return xt(Mt(Et,0,zt("length",t)),function(){for(var n=0,r=t.length;r>n;){if(t[n].apply(this,arguments))return!0;n+=1}return!1})}),Jt=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,Rt(r,n))},[],t)});A.prototype["@@transducer/init"]=Ot.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 Xt=e(s([],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})),Yt=e(function(t,n){return u(n,[t])}),Zt=e(function(t,n){return t.apply(this,n)}),Gt=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}),Qt=r(function t(n){return n=Rt(function(n){return"function"==typeof n?n:t(n)},n),xt(Mt(Et,0,zt("length",Gt(n))),function(){var t=arguments;return Rt(function(n){return Zt(n,t)},n)})}),tn=c(function(t,n,r){var e=t(n),u=t(r);return u>e?-1:e>u?1:0}),nn=c(function(t,n,r){var e={};for(var u in r)e[u]=r[u];return e[t]=n,e}),rn=Number.isInteger||function(t){return t<<0===t},en=r(function(t){return null==t}),un=c(function t(n,r,e){if(0===n.length)return r;var u=n[0];if(n.length>1){var i=!en(e)&&w(u,e)?e[u]:rn(n[1])?[]:{};r=t(Array.prototype.slice.call(n,1),r,i)}if(rn(u)&&At(e)){var o=[].concat(e);return o[u]=r,o}return nn(u,r,e)}),on=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,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 Error("First argument to nAry must be a non-negative integer no greater than ten")}}),cn=r(function(t){return on(2,t)}),an=e(function(t,n){var r=xt(t,n);return xt(t,function(){return b(Jt,Rt(r,arguments[0]),Array.prototype.slice.call(arguments,1))})}),sn=r(function(t){return an(t.length,t)}),fn=e(function(t,n){return O(t)?function(){return t.apply(this,arguments)&&n.apply(this,arguments)}:sn(Kt)(t,n)}),ln=r(function(t){return xt(t.length,t)}),pn=ln(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))}),hn=function(t){return{"@@transducer/init":Ot.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}}},yn=function(t){var n=hn(t);return{"@@transducer/init":Ot.init,"@@transducer/result":function(t){return n["@@transducer/result"](t)},"@@transducer/step":function(t,r){return _t(r)?b(n,t,r):b(n,t,[r])}}},dn=e(s(["fantasy-land/chain","chain"],e(function(t,n){return Rt(t,yn(n))}),function(t,n){return"function"==typeof n?function(r){return t(n(r))(r)}:S(!1)(Rt(t,n))})),gn=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}),vn=r(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}),mn=r(function(t){return null!=t&&"function"==typeof t.clone?t.clone():q(t,[],[],!0)}),bn=r(function(t){return function(n,r){return t(n,r)?-1:t(r,n)?1:0}}),xn=r(function(t){return!t}),wn=sn(xn),jn=c(N("slice",function(t,n,r){return Array.prototype.slice.call(r,t,n)})),An=r(N("tail",jn(1,1/0))),On=r(function(t){return h(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()}),Sn=e(function(t,n){return t===n?0!==t||1/t==1/n:t!==t&&n!==n}),En=e(function(t,n){return D(t,n,[],[])}),_n=function(t){return(10>t?"0":"")+t},qn="function"==typeof Date.prototype.toISOString?function(t){return t.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"};H.prototype["@@transducer/init"]=Ot.init,H.prototype["@@transducer/result"]=Ot.result,H.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t};var kn=e(s(["filter"],e(function(t,n){return new H(t,n)}),function(t,n){return $(n)?b(function(r,e){return t(n[e])&&(r[e]=n[e]),r},{},Ft(n)):V(t,n)})),Nn=e(function(t,n){return kn(K(t),n)}),In=r(function(t){return J(t,[])}),Wn=e(function(t,n){if(At(t)){if(At(n))return t.concat(n);throw new TypeError(In(n)+" is not an array")}if(h(t)){if(h(n))return t+n;throw new TypeError(In(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(In(t)+' does not have a method named "concat" or "fantasy-land/concat"')}),Pn=r(function(t){return i(Mt(Et,0,Rt(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}})}),Cn=e(function(t,n){if(t>10)throw Error("Constructor with greater than ten arguments");return 0===t?function(){return new n}:ln(on(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)}}))}),Tn=r(function(t){return Cn(t.length,t)}),Bn=e(M),Fn=e(function(t,n){return xt(Mt(Et,0,zt("length",n)),function(){var r=arguments,e=this;return t.apply(e,p(function(t){return t.apply(e,r)},n))})});X.prototype["@@transducer/init"]=Ot.init,X.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)},X.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 Rn=o(4,[],s([],o(4,[],function(t,n,r,e){return new X(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)})),Un=Rn(function(t,n){return t+1},0),Dn=bt(-1),zn=e(function(t,n){return null==n||n!==n?t:n}),Mn=c(function(t,n,r){var e=t(n),u=t(r);return e>u?-1:u>e?1:0}),Ln=e(function(t,n){for(var r=[],e=0,u=t.length;u>e;)M(t[e],n)||M(t[e],r)||(r[r.length]=t[e]),e+=1;return r}),Kn=c(function(t,n,r){for(var e=[],u=0,i=n.length;i>u;)F(t,n[u],r)||F(t,n[u],e)||e.push(n[u]),u+=1;return e}),Vn=e(function(t,n){var r={};for(var e in n)r[e]=n[e];return delete r[t],r}),$n=c(function(t,n,r){var e=Array.prototype.slice.call(r,0);return e.splice(t,n),e}),Hn=c(function(t,n,r){return jt(dt(n),t,r)}),Jn=e(function t(n,r){switch(n.length){case 0:return r;case 1:return rn(n[0])?$n(n[0],1,r):Vn(n[0],r);default:var e=n[0],u=Array.prototype.slice.call(n,1);return null==r[e]?r:rn(n[0])?Hn(e,t(u,r[e]),r):nn(e,t(u,r[e]),r)}}),Xn=e(function(t,n){return t/n});Y.prototype["@@transducer/init"]=Ot.init,Y.prototype["@@transducer/result"]=Ot.result,Y.prototype["@@transducer/step"]=function(t,n){return this.n>0?(this.n-=1,t):this.xf["@@transducer/step"](t,n)};var Yn=e(s(["drop"],e(function(t,n){return new Y(t,n)}),function(t,n){return jn(Math.max(0,t),1/0,n)}));Z.prototype["@@transducer/init"]=Ot.init,Z.prototype["@@transducer/result"]=Ot.result,Z.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:f(r)};var Zn=e(s(["take"],e(function(t,n){return new Z(t,n)}),function(t,n){return jn(0,0>t?1/0:t,n)}));G.prototype["@@transducer/init"]=Ot.init,G.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},G.prototype["@@transducer/step"]=function(t,n){return this.full&&(t=this.xf["@@transducer/step"](t,this.acc[this.pos])),this.store(n),t},G.prototype.store=function(t){this.acc[this.pos]=t,(this.pos+=1)===this.acc.length&&(this.pos=0,this.full=!0)};var Gn=e(s([],e(function(t,n){return new G(t,n)}),function(t,n){return Zn(n.length>t?n.length-t:0,n)}));Q.prototype["@@transducer/init"]=Ot.init,Q.prototype["@@transducer/result"]=function(t){return this.retained=null,this.xf["@@transducer/result"](t)},Q.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.retain(t,n):this.flush(t,n)},Q.prototype.flush=function(t,n){return t=b(this.xf["@@transducer/step"],t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,n)},Q.prototype.retain=function(t,n){return this.retained.push(n),t};var Qn=e(s([],e(function(t,n){return new Q(t,n)}),function(t,n){for(var r=n.length-1;r>=0&&t(n[r]);)r-=1;return jn(0,r+1,n)}));tt.prototype["@@transducer/init"]=Ot.init,tt.prototype["@@transducer/result"]=Ot.result,tt.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 tr=e(function(t,n){return new tt(t,n)}),nr=e(function(t,n){var r=0>t?n.length+t:t;return h(n)?n.charAt(r):n[r]}),rr=nr(-1),er=e(s([],tr,function(t,n){var r=[],e=1,u=n.length;if(0!==u)for(r[0]=n[0];u>e;)t(rr(r),n[e])||(r[r.length]=n[e]),e+=1;return r})),ur=r(s([],tr(En),er(En)));nt.prototype["@@transducer/init"]=Ot.init,nt.prototype["@@transducer/result"]=Ot.result,nt.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 ir=e(s(["dropWhile"],e(function(t,n){return new nt(t,n)}),function(t,n){for(var r=0,e=n.length;e>r&&t(n[r]);)r+=1;return jn(r,1/0,n)})),or=e(function(t,n){return t||n}),cr=e(function(t,n){return O(t)?function(){return t.apply(this,arguments)||n.apply(this,arguments)}:sn(or)(t,n)}),ar=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():At(t)?[]:h(t)?"":$(t)?{}:Wt(t)?function(){return arguments}():void 0}),sr=e(function(t,n){return Yn(0>t?0:n.length-t,n)}),fr=e(function(t,n){return En(sr(t.length,n),t)}),lr=c(function(t,n,r){return En(t(n),t(r))}),pr=c(function(t,n,r){return En(n[t],r[t])}),hr=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});rt.prototype["@@transducer/init"]=Ot.init,rt.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},rt.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.found=!0,t=f(this.xf["@@transducer/step"](t,n))),t};var yr=e(s(["find"],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 n[r];r+=1}}));et.prototype["@@transducer/init"]=Ot.init,et.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,-1)),this.xf["@@transducer/result"](t)},et.prototype["@@transducer/step"]=function(t,n){return this.idx+=1,this.f(n)&&(this.found=!0,t=f(this.xf["@@transducer/step"](t,this.idx))),t};var dr=e(s([],e(function(t,n){return new et(t,n)}),function(t,n){for(var r=0,e=n.length;e>r;){if(t(n[r]))return r;r+=1}return-1}));ut.prototype["@@transducer/init"]=Ot.init,ut.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.last))},ut.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.last=n),t};var gr=e(s([],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 n[r];r-=1}}));it.prototype["@@transducer/init"]=Ot.init,it.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.lastIdx))},it.prototype["@@transducer/step"]=function(t,n){return this.idx+=1,this.f(n)&&(this.lastIdx=this.idx),t};var vr=e(s([],e(function(t,n){return new it(t,n)}),function(t,n){for(var r=n.length-1;r>=0;){if(t(n[r]))return r;r-=1}return-1})),mr=r(S(!0)),br=r(function(t){return ln(function(n,r){var e=Array.prototype.slice.call(arguments,0);return e[0]=r,e[1]=n,t.apply(this,e)})}),xr=e(N("forEach",function(t,n){for(var r=n.length,e=0;r>e;)t(n[e]),e+=1;return n})),wr=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}),jr=r(function(t){for(var n={},r=0;t.length>r;)n[t[r][0]]=t[r][1],r+=1;return n}),Ar=e(N("groupBy",Rn(function(t,n){return null==t&&(t=[]),t.push(n),t},null))),Or=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}),Sr=e(function(t,n){return t>n}),Er=e(function(t,n){return t>=n}),_r=e(w),qr=e(function(t,n){return t in n}),kr=nr(0),Nr=r(ot),Ir=c(function(t,n,r){return xt(Math.max(t.length,n.length,r.length),function(){return t.apply(this,arguments)?n.apply(this,arguments):r.apply(this,arguments)})}),Wr=bt(1),Pr=Rn(function(t,n){return n},null),Cr=e(function(t,n){return"function"!=typeof n.indexOf||At(n)?z(n,t,0):n.indexOf(t)}),Tr=jn(0,-1),Br=c(function(t,n,r){return V(function(n){return F(t,n,r)},n)}),Fr=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}),Rr=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))});ct.prototype.add=function(t){return!at(t,!0,this)},ct.prototype.has=function(t){return at(t,!1,this)};var Ur=e(function(t,n){for(var r,e,u=new ct,i=[],o=0;n.length>o;)r=t(e=n[o]),u.add(r)&&i.push(e),o+=1;return i}),Dr=Ur(Nr),zr=e(function(t,n){var r,e;return t.length>n.length?(r=t,e=n):(r=n,e=t),Dr(V(br(M)(r),e))}),Mr=e(function(t,n){for(var r,e=0,u=n.length,i=[];u>e;)F(t,r=n[e],i)||(i[i.length]=r),e+=1;return i}),Lr=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;)F(t,u[o],e)&&(i[i.length]=u[o]),o+=1;return Mr(t,i)}),Kr=e(N("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})),Vr="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},$r=e(function(t,n){var r={};return r[t]=n,r}),Hr={"@@transducer/init":Array,"@@transducer/step":function(t,n){return t.push(n),t},"@@transducer/result":ot},Jr={"@@transducer/init":String,"@@transducer/step":function(t,n){return t+n},"@@transducer/result":ot},Xr={"@@transducer/init":Object,"@@transducer/step":function(t,n){return Vr(t,_t(n)?$r(n[0],n[1]):n)},"@@transducer/result":ot},Yr=c(function(t,n,r){return a(t)?b(n(t),t["@@transducer/init"](),r):b(n(st(t)),q(t,[],[],!1),r)}),Zr=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}),Gr=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}),Qr=e(function(t,n){return xt(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(In(r)+' does not have a method named "'+n+'"')})}),te=e(function(t,n){return null!=n&&n.constructor===t||n instanceof t}),ne=r(function(t){return null!=t&&En(t,ar(t))}),re=Qr(1,"join"),ee=r(function(t){return Fn(function(){return Array.prototype.slice.call(arguments,0)},t)}),ue=r(function(t){var n,r=[];for(n in t)r[r.length]=n;return r}),ie=e(function(t,n){if("function"!=typeof n.lastIndexOf||At(n)){for(var r=n.length-1;r>=0;){if(En(n[r],t))return r;r-=1}return-1}return n.lastIndexOf(t)}),oe=r(function(t){return null!=t&&ft(t.length)?t.length:NaN}),ce=e(function(t,n){return function(r){return function(e){return Rt(function(t){return n(t,e)},r(t(e)))}}}),ae=r(function(t){return ce(nr(t),Hn(t))}),se=r(function(t){return ce(Ut(t),un(t))}),fe=r(function(t){return ce(Dt(t),nn(t))}),le=e(function(t,n){return n>t}),pe=e(function(t,n){return n>=t}),he=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]}),ye=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]]}),de=e(function(t,n){return b(function(r,e){return r[e]=t(n[e],e,n),r},{},Ft(n))}),ge=e(function(t,n){return n.match(t)||[]}),ve=e(function(t,n){return rn(t)?!rn(n)||1>n?NaN:(t%n+n)%n:NaN}),me=c(function(t,n,r){return t(r)>t(n)?r:n}),be=Mt(bt,0),xe=r(function(t){return be(t)/t.length}),we=r(function(t){var n=t.length;if(0===n)return NaN;var r=2-n%2,e=(n-r)/2;return xe(Array.prototype.slice.call(t,0).sort(function(t,n){return n>t?-1:t>n?1:0}).slice(e,e+r))}),je=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]})}),Ae=je(function(){return In(arguments)}),Oe=e(function(t,n){return Vr({},t,n)}),Se=r(function(t){return Vr.apply(null,[{}].concat(t))}),Ee=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}),_e=c(function t(n,r,e){return Ee(function(r,e,u){return $(e)&&$(u)?t(n,e,u):n(r,e,u)},r,e)}),qe=e(function(t,n){return _e(function(t,n,r){return n},t,n)}),ke=e(function(t,n){return _e(function(t,n,r){return r},t,n)}),Ne=c(function(t,n,r){return _e(function(n,r,e){return t(r,e)},n,r)}),Ie=c(function(t,n,r){return Ee(function(n,r,e){return t(r,e)},n,r)}),We=e(function(t,n){return t>n?n:t}),Pe=c(function(t,n,r){return t(r)<t(n)?r:n}),Ce=e(function(t,n){return t%n}),Te=e(function(t,n){return t*n}),Be=r(function(t){return-t}),Fe=e(K(s(["any"],Vt,$t))),Re=r(function(t){return xt(0>t?1:t+1,function(){return nr(t,arguments)})}),Ue=c(function(t,n,r){return t(n(r))}),De=r(function(t){return[t]}),ze=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))}}},Ke=c(function(t,n,r){return t(function(t){return Le(n(t))})(r).value}),Ve=e(function(t,n){return[t,n]}),$e=lt(u),He=lt(br(u)),Je=ee([kn,Nn]),Xe=c(function(t,n,r){return En(Ut(t,r),n)}),Ye=c(function(t,n,r){return zn(t,Ut(n,r))}),Ze=c(function(t,n,r){return n.length>0&&t(Ut(n,r))}),Ge=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}),Qe=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}),tu=e(function(t,n){var r={};for(var e in n)t(n[e],e,n)&&(r[e]=n[e]);return r}),nu=e(function(t,n){return u([t],n)}),ru=Mt(Te,1),eu=e(function(t,n){return xt(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)))})}),uu=eu(p,[Qe,Nr]),iu=c(function(t,n,r){return En(n,r[t])}),ou=c(function(t,n,r){return te(t,r[n])}),cu=c(function(t,n,r){return null!=r&&w(n,r)?r[n]:t}),au=c(function(t,n,r){return t(r[n])}),su=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}),lu=c(function(t,n,r){for(var e=r.length-1;e>=0;)n=t(r[e],n),e-=1;return n}),pu=o(4,[],function(t,n,r,e){return b(function(r,e){return t(r,e)?n(r,e):f(r)},r,e)}),hu=r(f),yu=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}),du=e(function(t,n){return yu(dt(t),n)}),gu=c(function(t,n,r){return r.replace(t,n)}),vu=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}),mu=e(function(t,n){return"function"==typeof n.sequence?n.sequence(t):lu(function(t,n){return Jt(Rt(nu,t),n)},t([]),n)}),bu=c(function(t,n,r){return Ke(t,dt(n),r)}),xu=e(function(t,n){return Array.prototype.slice.call(n,0).sort(t)}),wu=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})}),ju=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})}),Au=Qr(1,"split"),Ou=e(function(t,n){return[jn(0,t,n),jn(t,oe(n),n)]}),Su=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(jn(e,e+=t,n));return r}),Eu=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)]}),_u=e(function(t,n){return En(Zn(t.length,n),t)}),qu=e(function(t,n){return+t-+n}),ku=e(function(t,n){return Wn(Ln(t,n),Ln(n,t))}),Nu=c(function(t,n,r){return Wn(Kn(t,n,r),Kn(t,r,n))}),Iu=e(function(t,n){for(var r=n.length-1;r>=0&&t(n[r]);)r-=1;return jn(r+1,1/0,n)});pt.prototype["@@transducer/init"]=Ot.init,pt.prototype["@@transducer/result"]=Ot.result,pt.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):f(t)};var Wu=e(s(["takeWhile"],e(function(t,n){return new pt(t,n)}),function(t,n){for(var r=0,e=n.length;e>r&&t(n[r]);)r+=1;return jn(0,r,n)}));ht.prototype["@@transducer/init"]=Ot.init,ht.prototype["@@transducer/result"]=Ot.result,ht.prototype["@@transducer/step"]=function(t,n){return this.f(n),this.xf["@@transducer/step"](t,n)};var Pu=e(s([],e(function(t,n){return new ht(t,n)}),function(t,n){return t(n),n})),Cu=e(function(t,n){if(!yt(t))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+In(t));return _(t).test(n)}),Tu=Qr(0,"toLowerCase"),Bu=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}),Ru=Qr(0,"toUpperCase"),Uu=xt(4,function(t,n,r,e){return b(t("function"==typeof n?d(n):n),r,e)}),Du=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}),zu=c(function(t,n,r){return"function"==typeof r["fantasy-land/traverse"]?r["fantasy-land/traverse"](n,t):mu(t,Rt(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()}),Ku=e(function(t,n){return i(t.length,function(){try{return t.apply(this,arguments)}catch(t){return n.apply(this,u([t],arguments))}})}),Vu=r(function(t){return function(){return t(Array.prototype.slice.call(arguments,0))}}),$u=r(function(t){return on(1,t)}),Hu=e(function(t,n){return xt(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})}),Ju=e(function(t,n){for(var r=t(n),e=[];r&&r.length;)e[e.length]=r[0],r=t(r[1]);return e}),Xu=e(W(Dr,u)),Yu=c(function(t,n,r){return Mr(t,u(n,r))}),Zu=c(function(t,n,r){return t(r)?r:n(r)}),Gu=dn(ot),Qu=c(function(t,n,r){for(var e=r;!t(e);)e=n(e);return e}),ti=r(function(t){var n,r=[];for(n in t)r[r.length]=t[n];return r}),ni=function(t){return{value:t,"fantasy-land/map":function(){return this}}},ri=e(function(t,n){return t(ni)(n).value}),ei=c(function(t,n,r){return t(r)?n(r):r}),ui=e(function(t,n){for(var r in t)if(w(r,t)&&!t[r](n[r]))return!1;return!0}),ii=e(function(t,n){return ui(Rt(En,t),n)}),oi=e(function(t,n){return Nn(br(M)(t),n)}),ci=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}),ai=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}),si=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=gt,t.T=vt,t.__=mt,t.add=bt,t.addIndex=wt,t.adjust=jt,t.all=St,t.allPass=Lt,t.always=dt,t.and=Kt,t.any=$t,t.anyPass=Ht,t.ap=Jt,t.aperture=Xt,t.append=Yt,t.apply=Zt,t.applySpec=Qt,t.ascend=tn,t.assoc=nn,t.assocPath=un,t.binary=cn,t.bind=qt,t.both=fn,t.call=pn,t.chain=dn,t.clamp=gn,t.clone=mn,t.comparator=bn,t.complement=wn,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,On(arguments))},t.concat=Wn,t.cond=Pn,t.construct=Tn,t.constructN=Cn,t.contains=Bn,t.converge=Fn,t.countBy=Un,t.curry=ln,t.curryN=xt,t.dec=Dn,t.defaultTo=zn,t.descend=Mn,t.difference=Ln,t.differenceWith=Kn,t.dissoc=Vn,t.dissocPath=Jn,t.divide=Xn,t.drop=Yn,t.dropLast=Gn,t.dropLastWhile=Qn,t.dropRepeats=ur,t.dropRepeatsWith=er,t.dropWhile=ir,t.either=cr,t.empty=ar,t.endsWith=fr,t.eqBy=lr,t.eqProps=pr,t.equals=En,t.evolve=hr,t.filter=kn,t.find=yr,t.findIndex=dr,t.findLast=gr,t.findLastIndex=vr,t.flatten=mr,t.flip=br,t.forEach=xr,t.forEachObjIndexed=wr,t.fromPairs=jr,t.groupBy=Ar,t.groupWith=Or,t.gt=Sr,t.gte=Er,t.has=_r,t.hasIn=qr,t.head=kr,t.identical=Sn,t.identity=Nr,t.ifElse=Ir,t.inc=Wr,t.indexBy=Pr,t.indexOf=Cr,t.init=Tr,t.innerJoin=Br,t.insert=Fr,t.insertAll=Rr,t.intersection=zr,t.intersectionWith=Lr,t.intersperse=Kr,t.into=Yr,t.invert=Zr,t.invertObj=Gr,t.invoker=Qr,t.is=te,t.isEmpty=ne,t.isNil=en,t.join=re,t.juxt=ee,t.keys=Ft,t.keysIn=ue,t.last=rr,t.lastIndexOf=ie,t.length=oe,t.lens=ce,t.lensIndex=ae,t.lensPath=se,t.lensProp=fe,t.lift=sn,t.liftN=an,t.lt=le,t.lte=pe,t.map=Rt,t.mapAccum=he,t.mapAccumRight=ye,t.mapObjIndexed=de,t.match=ge,t.mathMod=ve,t.max=Et,t.maxBy=me,t.mean=xe,t.median=we,t.memoize=Ae,t.memoizeWith=je,t.merge=Oe,t.mergeAll=Se,t.mergeDeepLeft=qe,t.mergeDeepRight=ke,t.mergeDeepWith=Ne,t.mergeDeepWithKey=_e,t.mergeWith=Ie,t.mergeWithKey=Ee,t.min=We,t.minBy=Pe,t.modulo=Ce,t.multiply=Te,t.nAry=on,t.negate=Be,t.none=Fe,t.not=xn,t.nth=nr,t.nthArg=Re,t.o=Ue,t.objOf=$r,t.of=De,t.omit=ze,t.once=Me,t.or=or,t.over=Ke,t.pair=Ve,t.partial=$e,t.partialRight=He,t.partition=Je,t.path=Ut,t.pathEq=Xe,t.pathOr=Ye,t.pathSatisfies=Ze,t.pick=Ge,t.pickAll=Qe,t.pickBy=tu,t.pipe=I,t.pipeK=function(){if(0===arguments.length)throw Error("pipeK requires at least one argument");return P.apply(this,On(arguments))},t.pipeP=T,t.pluck=zt,t.prepend=nu,t.product=ru,t.project=uu,t.prop=Dt,t.propEq=iu,t.propIs=ou,t.propOr=cu,t.propSatisfies=au,t.props=su,t.range=fu,t.reduce=Mt,t.reduceBy=Rn,t.reduceRight=lu,t.reduceWhile=pu,t.reduced=hu,t.reject=Nn,t.remove=$n,t.repeat=du,t.replace=gu,t.reverse=On,t.scan=vu,t.sequence=mu,t.set=bu,t.slice=jn,t.sort=xu,t.sortBy=wu,t.sortWith=ju,t.split=Au,t.splitAt=Ou,t.splitEvery=Su,t.splitWhen=Eu,t.startsWith=_u,t.subtract=qu,t.sum=be,t.symmetricDifference=ku,t.symmetricDifferenceWith=Nu,t.tail=An,t.take=Zn,t.takeLast=sr,t.takeLastWhile=Iu,t.takeWhile=Wu,t.tap=Pu,t.test=Cu,t.times=yu,t.toLower=Tu,t.toPairs=Bu,t.toPairsIn=Fu,t.toString=In,t.toUpper=Ru,t.transduce=Uu,t.transpose=Du,t.traverse=zu,t.trim=Lu,t.tryCatch=Ku,t.type=vn,t.unapply=Vu,t.unary=$u,t.uncurryN=Hu,t.unfold=Ju,t.union=Xu,t.unionWith=Yu,t.uniq=Dr,t.uniqBy=Ur,t.uniqWith=Mr,t.unless=Zu,t.unnest=Gu,t.until=Qu,t.update=Hn,t.useWith=eu,t.values=Gt,t.valuesIn=ti,t.view=ri,t.when=ei,t.where=ui,t.whereEq=ii,t.without=oi,t.xprod=ci,t.zip=ai,t.zipObj=si,t.zipWith=fi,Object.defineProperty(t,"__esModule",{value:!0})}); |
@@ -23,3 +23,3 @@ import curry from './curry'; | ||
* | ||
* var indentN = R.pipe(R.times(R.always(' ')), | ||
* var indentN = R.pipe(R.repeat(' '), | ||
* R.join(''), | ||
@@ -26,0 +26,0 @@ * R.replace(/^(?!$)/gm)); |
@@ -15,2 +15,4 @@ import _curry2 from './internal/_curry2'; | ||
* Dispatches to the `concat` method of the first argument, if present. | ||
* Can also concatenate two members of a [fantasy-land | ||
* compatible semigroup](https://github.com/fantasyland/fantasy-land#semigroup). | ||
* | ||
@@ -17,0 +19,0 @@ * @func |
@@ -18,4 +18,5 @@ import _curry2 from './internal/_curry2'; | ||
* @sig (a -> Boolean) -> [a] -> [a] | ||
* @sig (a -> Boolean) -> String -> String | ||
* @param {Function} predicate The function to be called on each element | ||
* @param {Array} list The collection to iterate over. | ||
* @param {Array} xs The collection to iterate over. | ||
* @return {Array} A new array without any trailing elements that return `falsy` values from the `predicate`. | ||
@@ -28,4 +29,6 @@ * @see R.takeLastWhile, R.addIndex, R.drop, R.dropWhile | ||
* R.dropLastWhile(lteThree, [1, 2, 3, 4, 3, 2, 1]); //=> [1, 2, 3, 4] | ||
* | ||
* R.dropLastWhile(x => x !== 'd' , 'Ramda'); //=> 'Ramd' | ||
*/ | ||
var dropLastWhile = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable([], _xdropLastWhile, _dropLastWhile)); | ||
export default dropLastWhile; |
import _curry2 from './internal/_curry2'; | ||
import _dispatchable from './internal/_dispatchable'; | ||
import _xdropWhile from './internal/_xdropWhile'; | ||
import slice from './slice'; | ||
@@ -20,4 +21,5 @@ /** | ||
* @sig (a -> Boolean) -> [a] -> [a] | ||
* @sig (a -> Boolean) -> String -> String | ||
* @param {Function} fn The function called per iteration. | ||
* @param {Array} list The collection to iterate over. | ||
* @param {Array} xs The collection to iterate over. | ||
* @return {Array} A new array. | ||
@@ -30,11 +32,13 @@ * @see R.takeWhile, R.transduce, R.addIndex | ||
* R.dropWhile(lteTwo, [1, 2, 3, 4, 3, 2, 1]); //=> [3, 4, 3, 2, 1] | ||
* | ||
* R.dropWhile(x => x !== 'd' , 'Ramda'); //=> 'da' | ||
*/ | ||
var dropWhile = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['dropWhile'], _xdropWhile, function dropWhile(pred, list) { | ||
var dropWhile = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['dropWhile'], _xdropWhile, function dropWhile(pred, xs) { | ||
var idx = 0; | ||
var len = list.length; | ||
while (idx < len && pred(list[idx])) { | ||
var len = xs.length; | ||
while (idx < len && pred(xs[idx])) { | ||
idx += 1; | ||
} | ||
return Array.prototype.slice.call(list, idx); | ||
return slice(idx, Infinity, xs); | ||
})); | ||
export default dropWhile; |
@@ -10,4 +10,5 @@ import _curry1 from './internal/_curry1'; | ||
* value of Array (`[]`), Object (`{}`), String (`''`), and Arguments. Other | ||
* types are supported if they define `<Type>.empty` and/or | ||
* `<Type>.prototype.empty`. | ||
* types are supported if they define `<Type>.empty`, | ||
* `<Type>.prototype.empty` or implement the | ||
* [FantasyLand Monoid spec](https://github.com/fantasyland/fantasy-land#monoid). | ||
* | ||
@@ -14,0 +15,0 @@ * Dispatches to the `empty` method of the first argument, if present. |
@@ -1,7 +0,9 @@ | ||
export default function dropLastWhile(pred, list) { | ||
var idx = list.length - 1; | ||
while (idx >= 0 && pred(list[idx])) { | ||
import slice from '../slice'; | ||
export default function dropLastWhile(pred, xs) { | ||
var idx = xs.length - 1; | ||
while (idx >= 0 && pred(xs[idx])) { | ||
idx -= 1; | ||
} | ||
return Array.prototype.slice.call(list, 0, idx + 1); | ||
return slice(0, idx + 1, xs); | ||
} |
import _arrayFromIterator from './_arrayFromIterator'; | ||
import _containsWith from './_containsWith'; | ||
import _functionName from './_functionName'; | ||
@@ -8,2 +9,27 @@ import _has from './_has'; | ||
/** | ||
* private _uniqContentEquals function. | ||
* That function is checking equality of 2 iterator contents with 2 assumptions | ||
* - iterators lengths are the same | ||
* - iterators values are unique | ||
* | ||
* false-positive result will be returned for comparision of, e.g. | ||
* - [1,2,3] and [1,2,3,4] | ||
* - [1,1,1] and [1,2,3] | ||
* */ | ||
function _uniqContentEquals(aIterator, bIterator, stackA, stackB) { | ||
var a = _arrayFromIterator(aIterator); | ||
var b = _arrayFromIterator(bIterator); | ||
function eq(_a, _b) { | ||
return _equals(_a, _b, stackA.slice(), stackB.slice()); | ||
} | ||
// if *a* array contains any element that is not included in *b* | ||
return !_containsWith(function (b, aItem) { | ||
return !_containsWith(eq, aItem, b); | ||
}, b, a); | ||
} | ||
export default function _equals(a, b, stackA, stackB) { | ||
@@ -14,3 +40,5 @@ if (identical(a, b)) { | ||
if (type(a) !== type(b)) { | ||
var typeA = type(a); | ||
if (typeA !== type(b)) { | ||
return false; | ||
@@ -31,3 +59,3 @@ } | ||
switch (type(a)) { | ||
switch (typeA) { | ||
case 'Arguments': | ||
@@ -59,8 +87,34 @@ case 'Array': | ||
break; | ||
} | ||
var idx = stackA.length - 1; | ||
while (idx >= 0) { | ||
if (stackA[idx] === a) { | ||
return stackB[idx] === b; | ||
} | ||
idx -= 1; | ||
} | ||
switch (typeA) { | ||
case 'Map': | ||
if (a.size !== b.size) { | ||
return false; | ||
} | ||
return _uniqContentEquals(a.entries(), b.entries(), stackA.concat([a]), stackB.concat([b])); | ||
case 'Set': | ||
if (!_equals(_arrayFromIterator(a.entries()), _arrayFromIterator(b.entries()), stackA, stackB)) { | ||
if (a.size !== b.size) { | ||
return false; | ||
} | ||
break; | ||
return _uniqContentEquals(a.values(), b.values(), stackA.concat([a]), stackB.concat([b])); | ||
case 'Arguments': | ||
case 'Array': | ||
case 'Object': | ||
case 'Boolean': | ||
case 'Number': | ||
case 'String': | ||
case 'Date': | ||
case 'Error': | ||
case 'RegExp': | ||
case 'Int8Array': | ||
@@ -75,3 +129,2 @@ case 'Uint8Array': | ||
case 'Float64Array': | ||
break; | ||
case 'ArrayBuffer': | ||
@@ -89,16 +142,9 @@ break; | ||
var idx = stackA.length - 1; | ||
while (idx >= 0) { | ||
if (stackA[idx] === a) { | ||
return stackB[idx] === b; | ||
} | ||
idx -= 1; | ||
} | ||
var extendedStackA = stackA.concat([a]); | ||
var extendedStackB = stackB.concat([b]); | ||
stackA.push(a); | ||
stackB.push(b); | ||
idx = keysA.length - 1; | ||
while (idx >= 0) { | ||
var key = keysA[idx]; | ||
if (!(_has(key, b) && _equals(b[key], a[key], stackA, stackB))) { | ||
if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) { | ||
return false; | ||
@@ -108,5 +154,3 @@ } | ||
} | ||
stackA.pop(); | ||
stackB.pop(); | ||
return true; | ||
} |
import _curry2 from './internal/_curry2'; | ||
import path from './path'; | ||
@@ -21,5 +22,6 @@ /** | ||
*/ | ||
var prop = /*#__PURE__*/_curry2(function prop(p, obj) { | ||
return obj[p]; | ||
return path([p], obj); | ||
}); | ||
export default prop; |
import _curry2 from './internal/_curry2'; | ||
import slice from './slice'; | ||
@@ -15,4 +16,5 @@ /** | ||
* @sig (a -> Boolean) -> [a] -> [a] | ||
* @sig (a -> Boolean) -> String -> String | ||
* @param {Function} fn The function called per iteration. | ||
* @param {Array} list The collection to iterate over. | ||
* @param {Array} xs The collection to iterate over. | ||
* @return {Array} A new array. | ||
@@ -25,10 +27,12 @@ * @see R.dropLastWhile, R.addIndex | ||
* R.takeLastWhile(isNotOne, [1, 2, 3, 4]); //=> [2, 3, 4] | ||
* | ||
* R.takeLastWhile(x => x !== 'R' , 'Ramda'); //=> 'amda' | ||
*/ | ||
var takeLastWhile = /*#__PURE__*/_curry2(function takeLastWhile(fn, list) { | ||
var idx = list.length - 1; | ||
while (idx >= 0 && fn(list[idx])) { | ||
var takeLastWhile = /*#__PURE__*/_curry2(function takeLastWhile(fn, xs) { | ||
var idx = xs.length - 1; | ||
while (idx >= 0 && fn(xs[idx])) { | ||
idx -= 1; | ||
} | ||
return Array.prototype.slice.call(list, idx + 1); | ||
return slice(idx + 1, Infinity, xs); | ||
}); | ||
export default takeLastWhile; |
import _curry2 from './internal/_curry2'; | ||
import _dispatchable from './internal/_dispatchable'; | ||
import _xtakeWhile from './internal/_xtakeWhile'; | ||
import slice from './slice'; | ||
@@ -21,4 +22,5 @@ /** | ||
* @sig (a -> Boolean) -> [a] -> [a] | ||
* @sig (a -> Boolean) -> String -> String | ||
* @param {Function} fn The function called per iteration. | ||
* @param {Array} list The collection to iterate over. | ||
* @param {Array} xs The collection to iterate over. | ||
* @return {Array} A new array. | ||
@@ -31,11 +33,13 @@ * @see R.dropWhile, R.transduce, R.addIndex | ||
* R.takeWhile(isNotFour, [1, 2, 3, 4, 3, 2, 1]); //=> [1, 2, 3] | ||
* | ||
* R.takeWhile(x => x !== 'd' , 'Ramda'); //=> 'Ram' | ||
*/ | ||
var takeWhile = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['takeWhile'], _xtakeWhile, function takeWhile(fn, list) { | ||
var takeWhile = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['takeWhile'], _xtakeWhile, function takeWhile(fn, xs) { | ||
var idx = 0; | ||
var len = list.length; | ||
while (idx < len && fn(list[idx])) { | ||
var len = xs.length; | ||
while (idx < len && fn(xs[idx])) { | ||
idx += 1; | ||
} | ||
return Array.prototype.slice.call(list, 0, idx); | ||
return slice(0, idx, xs); | ||
})); | ||
export default takeWhile; |
@@ -6,3 +6,3 @@ import _curry2 from './internal/_curry2'; | ||
* Key/value pairing is truncated to the length of the shorter of the two lists. | ||
* Note: `zipObj` is equivalent to `pipe(zipWith(pair), fromPairs)`. | ||
* Note: `zipObj` is equivalent to `pipe(zip, fromPairs)`. | ||
* | ||
@@ -9,0 +9,0 @@ * @func |
@@ -27,3 +27,4 @@ { | ||
"description": "A practical functional library for JavaScript programmers.", | ||
"version": "0.24.1-es.rc2", | ||
"side-effects": false, | ||
"version": "0.24.1-es.rc3", | ||
"homepage": "http://ramdajs.com/", | ||
@@ -37,2 +38,4 @@ "license": "MIT", | ||
"main": "src/index.js", | ||
"unpkg": "dist/ramda.min.js", | ||
"jsdelivr": "dist/ramda.min.js", | ||
"files": [ | ||
@@ -48,7 +51,7 @@ "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:umd": "cross-env NODE_ENV=development rollup -c -o dist/ramda.js", | ||
"build:umd:min": "cross-env NODE_ENV=production rollup -c -o dist/ramda.min.js", | ||
"build": "npm run build:es && npm run build:cjs && npm run build:umd && npm run build:umd:min", | ||
"partial-build": "node ./scripts/partialBuild", | ||
"clean": "rimraf es/* src/* dist/* coverage/*", | ||
"precoverage": "npm run pretest", | ||
"coverage": "istanbul cover node_modules/.bin/_mocha -- --reporter spec", | ||
@@ -67,2 +70,3 @@ "postcoverage": "npm run posttest", | ||
"babel-cli": "^6.26.0", | ||
"babel-plugin-annotate-pure-calls": "^0.2.0", | ||
"babel-types": "^6.26.0", | ||
@@ -84,3 +88,3 @@ "benchmark": "~1.0.0", | ||
"rimraf": "~2.3.2", | ||
"rollup": "^0.47.4", | ||
"rollup": "^0.50.0", | ||
"rollup-plugin-uglify": "^2.0.1", | ||
@@ -90,5 +94,4 @@ "sanctuary": "0.7.x", | ||
"testem": "0.9.x", | ||
"uglify-js": "2.4.x", | ||
"xyz": "1.0.x" | ||
} | ||
} |
@@ -12,2 +12,3 @@ Ramda | ||
Why Ramda? | ||
@@ -22,2 +23,3 @@ ---------- | ||
What's Different? | ||
@@ -41,2 +43,3 @@ ----------------- | ||
Introductions | ||
@@ -53,2 +56,3 @@ ------------- | ||
Philosophy | ||
@@ -77,2 +81,4 @@ ---------- | ||
Installation | ||
@@ -114,5 +120,5 @@ ------------ | ||
```html | ||
<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> | ||
<script src="//cdn.jsdelivr.net/ramda/latest/ramda.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/ramda@0.24.1/dist/ramda.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/ramda@0.24/dist/ramda.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/ramda@latest/dist/ramda.min.js"></script> | ||
``` | ||
@@ -128,4 +134,3 @@ | ||
* on Unix-based platforms, `npm run build` updates __dist/ramda.js__ and __dist/ramda.min.js__ | ||
* on Windows, write the output of `scripts/build --complete` to a temporary file, then rename the temporary file __dist/ramda.js__. | ||
`npm run build` creates `es`, `src` directories and updates both __dist/ramda.js__ and __dist/ramda.min.js__ | ||
@@ -136,6 +141,8 @@ #### Partial Builds | ||
./scripts/build -- src/compose.js src/reduce.js src/filter.js > dist/ramda.custom.js | ||
npm run --silent partial-build compose reduce filter > dist/ramda.custom.js | ||
This requires having Node/io.js installed. | ||
This requires having Node/io.js installed and ramda's dependencies installed (just use `npm install` before running partial build). | ||
Documentation | ||
@@ -146,2 +153,5 @@ ------------- | ||
Also available is our [Cookbook](https://github.com/ramda/ramda/wiki/Cookbook) of functions built from Ramda that you may find useful. | ||
The Name | ||
@@ -191,2 +201,12 @@ -------- | ||
Typings | ||
----------------- | ||
- [TypeScript](https://github.com/types/npm-ramda/) | ||
- [Flow](https://github.com/flowtype/flow-typed/tree/master/definitions/npm/ramda_v0.x.x) | ||
Translations | ||
@@ -199,2 +219,3 @@ ----------------- | ||
Acknowledgements | ||
@@ -206,1 +227,3 @@ ----------------- | ||
[CC BY-NC-SA 3.0](http://creativecommons.org/licenses/by-nc-sa/3.0/). | ||
@@ -23,3 +23,3 @@ var curry = /*#__PURE__*/require('./curry'); | ||
* | ||
* var indentN = R.pipe(R.times(R.always(' ')), | ||
* var indentN = R.pipe(R.repeat(' '), | ||
* R.join(''), | ||
@@ -26,0 +26,0 @@ * R.replace(/^(?!$)/gm)); |
@@ -19,2 +19,4 @@ var _curry2 = /*#__PURE__*/require('./internal/_curry2'); | ||
* Dispatches to the `concat` method of the first argument, if present. | ||
* Can also concatenate two members of a [fantasy-land | ||
* compatible semigroup](https://github.com/fantasyland/fantasy-land#semigroup). | ||
* | ||
@@ -21,0 +23,0 @@ * @func |
@@ -21,4 +21,5 @@ var _curry2 = /*#__PURE__*/require('./internal/_curry2'); | ||
* @sig (a -> Boolean) -> [a] -> [a] | ||
* @sig (a -> Boolean) -> String -> String | ||
* @param {Function} predicate The function to be called on each element | ||
* @param {Array} list The collection to iterate over. | ||
* @param {Array} xs The collection to iterate over. | ||
* @return {Array} A new array without any trailing elements that return `falsy` values from the `predicate`. | ||
@@ -31,2 +32,4 @@ * @see R.takeLastWhile, R.addIndex, R.drop, R.dropWhile | ||
* R.dropLastWhile(lteThree, [1, 2, 3, 4, 3, 2, 1]); //=> [1, 2, 3, 4] | ||
* | ||
* R.dropLastWhile(x => x !== 'd' , 'Ramda'); //=> 'Ramd' | ||
*/ | ||
@@ -33,0 +36,0 @@ |
@@ -7,2 +7,4 @@ var _curry2 = /*#__PURE__*/require('./internal/_curry2'); | ||
var slice = /*#__PURE__*/require('./slice'); | ||
/** | ||
@@ -23,4 +25,5 @@ * Returns a new list excluding the leading elements of a given list which | ||
* @sig (a -> Boolean) -> [a] -> [a] | ||
* @sig (a -> Boolean) -> String -> String | ||
* @param {Function} fn The function called per iteration. | ||
* @param {Array} list The collection to iterate over. | ||
* @param {Array} xs The collection to iterate over. | ||
* @return {Array} A new array. | ||
@@ -33,13 +36,15 @@ * @see R.takeWhile, R.transduce, R.addIndex | ||
* R.dropWhile(lteTwo, [1, 2, 3, 4, 3, 2, 1]); //=> [3, 4, 3, 2, 1] | ||
* | ||
* R.dropWhile(x => x !== 'd' , 'Ramda'); //=> 'da' | ||
*/ | ||
var dropWhile = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['dropWhile'], _xdropWhile, function dropWhile(pred, list) { | ||
var dropWhile = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['dropWhile'], _xdropWhile, function dropWhile(pred, xs) { | ||
var idx = 0; | ||
var len = list.length; | ||
while (idx < len && pred(list[idx])) { | ||
var len = xs.length; | ||
while (idx < len && pred(xs[idx])) { | ||
idx += 1; | ||
} | ||
return Array.prototype.slice.call(list, idx); | ||
return slice(idx, Infinity, xs); | ||
})); | ||
module.exports = dropWhile; |
@@ -14,4 +14,5 @@ var _curry1 = /*#__PURE__*/require('./internal/_curry1'); | ||
* value of Array (`[]`), Object (`{}`), String (`''`), and Arguments. Other | ||
* types are supported if they define `<Type>.empty` and/or | ||
* `<Type>.prototype.empty`. | ||
* types are supported if they define `<Type>.empty`, | ||
* `<Type>.prototype.empty` or implement the | ||
* [FantasyLand Monoid spec](https://github.com/fantasyland/fantasy-land#monoid). | ||
* | ||
@@ -18,0 +19,0 @@ * Dispatches to the `empty` method of the first argument, if present. |
@@ -1,8 +0,10 @@ | ||
function dropLastWhile(pred, list) { | ||
var idx = list.length - 1; | ||
while (idx >= 0 && pred(list[idx])) { | ||
var slice = /*#__PURE__*/require('../slice'); | ||
function dropLastWhile(pred, xs) { | ||
var idx = xs.length - 1; | ||
while (idx >= 0 && pred(xs[idx])) { | ||
idx -= 1; | ||
} | ||
return Array.prototype.slice.call(list, 0, idx + 1); | ||
return slice(0, idx + 1, xs); | ||
} | ||
module.exports = dropLastWhile; |
var _arrayFromIterator = /*#__PURE__*/require('./_arrayFromIterator'); | ||
var _containsWith = /*#__PURE__*/require('./_containsWith'); | ||
var _functionName = /*#__PURE__*/require('./_functionName'); | ||
@@ -13,2 +15,27 @@ | ||
/** | ||
* private _uniqContentEquals function. | ||
* That function is checking equality of 2 iterator contents with 2 assumptions | ||
* - iterators lengths are the same | ||
* - iterators values are unique | ||
* | ||
* false-positive result will be returned for comparision of, e.g. | ||
* - [1,2,3] and [1,2,3,4] | ||
* - [1,1,1] and [1,2,3] | ||
* */ | ||
function _uniqContentEquals(aIterator, bIterator, stackA, stackB) { | ||
var a = _arrayFromIterator(aIterator); | ||
var b = _arrayFromIterator(bIterator); | ||
function eq(_a, _b) { | ||
return _equals(_a, _b, stackA.slice(), stackB.slice()); | ||
} | ||
// if *a* array contains any element that is not included in *b* | ||
return !_containsWith(function (b, aItem) { | ||
return !_containsWith(eq, aItem, b); | ||
}, b, a); | ||
} | ||
function _equals(a, b, stackA, stackB) { | ||
@@ -19,3 +46,5 @@ if (identical(a, b)) { | ||
if (type(a) !== type(b)) { | ||
var typeA = type(a); | ||
if (typeA !== type(b)) { | ||
return false; | ||
@@ -36,3 +65,3 @@ } | ||
switch (type(a)) { | ||
switch (typeA) { | ||
case 'Arguments': | ||
@@ -64,8 +93,34 @@ case 'Array': | ||
break; | ||
} | ||
var idx = stackA.length - 1; | ||
while (idx >= 0) { | ||
if (stackA[idx] === a) { | ||
return stackB[idx] === b; | ||
} | ||
idx -= 1; | ||
} | ||
switch (typeA) { | ||
case 'Map': | ||
if (a.size !== b.size) { | ||
return false; | ||
} | ||
return _uniqContentEquals(a.entries(), b.entries(), stackA.concat([a]), stackB.concat([b])); | ||
case 'Set': | ||
if (!_equals(_arrayFromIterator(a.entries()), _arrayFromIterator(b.entries()), stackA, stackB)) { | ||
if (a.size !== b.size) { | ||
return false; | ||
} | ||
break; | ||
return _uniqContentEquals(a.values(), b.values(), stackA.concat([a]), stackB.concat([b])); | ||
case 'Arguments': | ||
case 'Array': | ||
case 'Object': | ||
case 'Boolean': | ||
case 'Number': | ||
case 'String': | ||
case 'Date': | ||
case 'Error': | ||
case 'RegExp': | ||
case 'Int8Array': | ||
@@ -80,3 +135,2 @@ case 'Uint8Array': | ||
case 'Float64Array': | ||
break; | ||
case 'ArrayBuffer': | ||
@@ -94,16 +148,9 @@ break; | ||
var idx = stackA.length - 1; | ||
while (idx >= 0) { | ||
if (stackA[idx] === a) { | ||
return stackB[idx] === b; | ||
} | ||
idx -= 1; | ||
} | ||
var extendedStackA = stackA.concat([a]); | ||
var extendedStackB = stackB.concat([b]); | ||
stackA.push(a); | ||
stackB.push(b); | ||
idx = keysA.length - 1; | ||
while (idx >= 0) { | ||
var key = keysA[idx]; | ||
if (!(_has(key, b) && _equals(b[key], a[key], stackA, stackB))) { | ||
if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) { | ||
return false; | ||
@@ -113,6 +160,4 @@ } | ||
} | ||
stackA.pop(); | ||
stackB.pop(); | ||
return true; | ||
} | ||
module.exports = _equals; |
var _curry2 = /*#__PURE__*/require('./internal/_curry2'); | ||
var path = /*#__PURE__*/require('./path'); | ||
/** | ||
@@ -22,6 +24,5 @@ * Returns a function that when supplied an object returns the indicated | ||
var prop = /*#__PURE__*/_curry2(function prop(p, obj) { | ||
return obj[p]; | ||
return path([p], obj); | ||
}); | ||
module.exports = prop; |
var _curry2 = /*#__PURE__*/require('./internal/_curry2'); | ||
var slice = /*#__PURE__*/require('./slice'); | ||
/** | ||
@@ -15,4 +17,5 @@ * Returns a new list containing the last `n` elements of a given list, passing | ||
* @sig (a -> Boolean) -> [a] -> [a] | ||
* @sig (a -> Boolean) -> String -> String | ||
* @param {Function} fn The function called per iteration. | ||
* @param {Array} list The collection to iterate over. | ||
* @param {Array} xs The collection to iterate over. | ||
* @return {Array} A new array. | ||
@@ -25,12 +28,14 @@ * @see R.dropLastWhile, R.addIndex | ||
* R.takeLastWhile(isNotOne, [1, 2, 3, 4]); //=> [2, 3, 4] | ||
* | ||
* R.takeLastWhile(x => x !== 'R' , 'Ramda'); //=> 'amda' | ||
*/ | ||
var takeLastWhile = /*#__PURE__*/_curry2(function takeLastWhile(fn, list) { | ||
var idx = list.length - 1; | ||
while (idx >= 0 && fn(list[idx])) { | ||
var takeLastWhile = /*#__PURE__*/_curry2(function takeLastWhile(fn, xs) { | ||
var idx = xs.length - 1; | ||
while (idx >= 0 && fn(xs[idx])) { | ||
idx -= 1; | ||
} | ||
return Array.prototype.slice.call(list, idx + 1); | ||
return slice(idx + 1, Infinity, xs); | ||
}); | ||
module.exports = takeLastWhile; |
@@ -7,2 +7,4 @@ var _curry2 = /*#__PURE__*/require('./internal/_curry2'); | ||
var slice = /*#__PURE__*/require('./slice'); | ||
/** | ||
@@ -24,4 +26,5 @@ * Returns a new list containing the first `n` elements of a given list, | ||
* @sig (a -> Boolean) -> [a] -> [a] | ||
* @sig (a -> Boolean) -> String -> String | ||
* @param {Function} fn The function called per iteration. | ||
* @param {Array} list The collection to iterate over. | ||
* @param {Array} xs The collection to iterate over. | ||
* @return {Array} A new array. | ||
@@ -34,13 +37,15 @@ * @see R.dropWhile, R.transduce, R.addIndex | ||
* R.takeWhile(isNotFour, [1, 2, 3, 4, 3, 2, 1]); //=> [1, 2, 3] | ||
* | ||
* R.takeWhile(x => x !== 'd' , 'Ramda'); //=> 'Ram' | ||
*/ | ||
var takeWhile = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['takeWhile'], _xtakeWhile, function takeWhile(fn, list) { | ||
var takeWhile = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['takeWhile'], _xtakeWhile, function takeWhile(fn, xs) { | ||
var idx = 0; | ||
var len = list.length; | ||
while (idx < len && fn(list[idx])) { | ||
var len = xs.length; | ||
while (idx < len && fn(xs[idx])) { | ||
idx += 1; | ||
} | ||
return Array.prototype.slice.call(list, 0, idx); | ||
return slice(0, idx, xs); | ||
})); | ||
module.exports = takeWhile; |
@@ -6,3 +6,3 @@ var _curry2 = /*#__PURE__*/require('./internal/_curry2'); | ||
* Key/value pairing is truncated to the length of the shorter of the two lists. | ||
* Note: `zipObj` is equivalent to `pipe(zipWith(pair), fromPairs)`. | ||
* Note: `zipObj` is equivalent to `pipe(zip, fromPairs)`. | ||
* | ||
@@ -9,0 +9,0 @@ * @func |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
983871
28358
218