UNPKG

ramda-adjunct

Version:

Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.

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