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

partial.lenses

Package Overview
Dependencies
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

partial.lenses - npm Package Compare versions

Comparing version 14.0.0 to 14.1.0

9

CHANGELOG.md
# Partial Lenses Changelog
## 14.1.0
Previously `L.uri`, `L.uriComponent`, and `L.json` threw an exception on invalid
inputs. Now they instead produce the error object as their result. This
behaviour was neither documented nor tested earlier, so the change is considered
a bug fix.
## 14.0.0

@@ -79,3 +86,3 @@

This is clearly a breaking change. However, this is unlikely to affect a large
number of use cases. To get the old behavior, use of `L.zero` need to be
number of use cases. To get the old behavior, use of `L.zero` needs to be
avoided. In the example case, one could write:

@@ -82,0 +89,0 @@

56

dist/partial.lenses.cjs.js

@@ -166,2 +166,14 @@ 'use strict';

var tryCatch = function tryCatch(fn$$1) {
return function (x) {
try {
return fn$$1(x);
} catch (e) {
return e;
}
};
};
//
var returnAsync = function returnAsync(x) {

@@ -228,7 +240,2 @@ return Promise.resolve(x);

function freezeArrayOfObjects(xs) {
xs.forEach(I.freeze);
return I.freeze(xs);
}
function freezeObjectOfObjects(xs) {

@@ -955,3 +962,3 @@ if (xs) for (var k in xs) {

var keyed = /*#__PURE__*/isoU( /*#__PURE__*/expect( /*#__PURE__*/isInstanceOf(Object), /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id : res(freezeArrayOfObjects))(function keyed(x) {
var keyed = /*#__PURE__*/isoU( /*#__PURE__*/expect( /*#__PURE__*/isInstanceOf(Object), /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id : res(freezeObjectOfObjects))(function keyed(x) {
x = toObject(x);

@@ -971,2 +978,26 @@ var es = [];

var multikeyed = /*#__PURE__*/isoU( /*#__PURE__*/expect( /*#__PURE__*/isInstanceOf(Object), /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id : res(freezeObjectOfObjects))(function (o) {
o = toObject(o);
var ps = [];
for (var k in o) {
var v = o[k];
if (I.isArray(v)) for (var i = 0, n = v.length; i < n; ++i) {
ps.push([k, v[i]]);
} else ps.push([k, v]);
}
return ps;
})), /*#__PURE__*/expect(I.isArray, /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id : res(freezeObjectOfObjects))(function (ps) {
var o = create(null);
for (var i = 0, n = ps.length; i < n; ++i) {
var entry = ps[i];
if (entry.length === 2) {
var k = entry[0];
var v = entry[1];
var was = o[k];
if (was === void 0) o[k] = v;else if (I.isArray(was)) was.push(v);else o[k] = [was, v];
}
}
return I.assign({}, o);
})));
//

@@ -1885,3 +1916,3 @@

var indexed = /*#__PURE__*/isoU( /*#__PURE__*/expect(seemsArrayLike, /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id : res(freezeArrayOfObjects))(function indexed(xs) {
var indexed = /*#__PURE__*/isoU( /*#__PURE__*/expect(seemsArrayLike, /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id : res(freezeObjectOfObjects))(function indexed(xs) {
var n = xs.length;

@@ -1931,5 +1962,5 @@ var xis = Array(n);

var uri = /*#__PURE__*/stringIsoU(decodeURI, encodeURI);
var uri = /*#__PURE__*/stringIsoU( /*#__PURE__*/tryCatch(decodeURI), encodeURI);
var uriComponent = /*#__PURE__*/stringIsoU(decodeURIComponent, encodeURIComponent);
var uriComponent = /*#__PURE__*/stringIsoU( /*#__PURE__*/tryCatch(decodeURIComponent), encodeURIComponent);

@@ -1944,5 +1975,5 @@ var json = /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id : res(function (iso) {

return isoU(expect(I.isString, function (text) {
return isoU(expect(I.isString, tryCatch(function (text) {
return JSON.parse(text, reviver);
}), expect(I.isDefined, function (value) {
})), expect(I.isDefined, function (value) {
return JSON.stringify(value, replacer, space);

@@ -2024,3 +2055,3 @@ }));

var pointer = function pointer(s) {
if (s[0] === '#') s = getAsU(id, uriComponent, s);
if (s[0] === '#') s = decodeURIComponent(s);
var ts = s.split('/');

@@ -2036,2 +2067,3 @@ var n = ts.length;

exports.multikeyed = multikeyed;
exports.seemsArrayLike = seemsArrayLike;

@@ -2038,0 +2070,0 @@ exports.Identity = Identity;

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

import { defineNameU, isString, isFunction, always, freeze, isArray, isObject, acyclicEqualsU, array0, object0, inherit, sndU, curry, curryN, assocPartialU, dissocPartialU, isNumber, constructorOf, toObject, applyU, isDefined, keys, hasU, arityN, id, assign } from 'infestines';
import { defineNameU, isString, isFunction, always, freeze, isArray, isObject, acyclicEqualsU, array0, object0, inherit, sndU, curry, curryN, assocPartialU, dissocPartialU, isNumber, constructorOf, toObject, assign, applyU, isDefined, keys, hasU, arityN, id } from 'infestines';

@@ -162,2 +162,14 @@ var addU = function addU(x, y) {

var tryCatch = function tryCatch(fn$$1) {
return function (x) {
try {
return fn$$1(x);
} catch (e) {
return e;
}
};
};
//
var returnAsync = function returnAsync(x) {

@@ -224,7 +236,2 @@ return Promise.resolve(x);

function freezeArrayOfObjects(xs) {
xs.forEach(freeze);
return freeze(xs);
}
function freezeObjectOfObjects(xs) {

@@ -951,3 +958,3 @@ if (xs) for (var k in xs) {

var keyed = /*#__PURE__*/isoU( /*#__PURE__*/expect( /*#__PURE__*/isInstanceOf(Object), /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id$1 : res(freezeArrayOfObjects))(function keyed(x) {
var keyed = /*#__PURE__*/isoU( /*#__PURE__*/expect( /*#__PURE__*/isInstanceOf(Object), /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id$1 : res(freezeObjectOfObjects))(function keyed(x) {
x = toObject$1(x);

@@ -967,2 +974,26 @@ var es = [];

var multikeyed = /*#__PURE__*/isoU( /*#__PURE__*/expect( /*#__PURE__*/isInstanceOf(Object), /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id$1 : res(freezeObjectOfObjects))(function (o) {
o = toObject$1(o);
var ps = [];
for (var k in o) {
var v = o[k];
if (isArray(v)) for (var i = 0, n = v.length; i < n; ++i) {
ps.push([k, v[i]]);
} else ps.push([k, v]);
}
return ps;
})), /*#__PURE__*/expect(isArray, /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id$1 : res(freezeObjectOfObjects))(function (ps) {
var o = create(null);
for (var i = 0, n = ps.length; i < n; ++i) {
var entry = ps[i];
if (entry.length === 2) {
var k = entry[0];
var v = entry[1];
var was = o[k];
if (was === void 0) o[k] = v;else if (isArray(was)) was.push(v);else o[k] = [was, v];
}
}
return assign({}, o);
})));
//

@@ -1881,3 +1912,3 @@

var indexed = /*#__PURE__*/isoU( /*#__PURE__*/expect(seemsArrayLike, /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id$1 : res(freezeArrayOfObjects))(function indexed(xs) {
var indexed = /*#__PURE__*/isoU( /*#__PURE__*/expect(seemsArrayLike, /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id$1 : res(freezeObjectOfObjects))(function indexed(xs) {
var n = xs.length;

@@ -1927,5 +1958,5 @@ var xis = Array(n);

var uri = /*#__PURE__*/stringIsoU(decodeURI, encodeURI);
var uri = /*#__PURE__*/stringIsoU( /*#__PURE__*/tryCatch(decodeURI), encodeURI);
var uriComponent = /*#__PURE__*/stringIsoU(decodeURIComponent, encodeURIComponent);
var uriComponent = /*#__PURE__*/stringIsoU( /*#__PURE__*/tryCatch(decodeURIComponent), encodeURIComponent);

@@ -1940,5 +1971,5 @@ var json = /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id$1 : res(function (iso) {

return isoU(expect(isString, function (text) {
return isoU(expect(isString, tryCatch(function (text) {
return JSON.parse(text, reviver);
}), expect(isDefined, function (value) {
})), expect(isDefined, function (value) {
return JSON.stringify(value, replacer, space);

@@ -2020,3 +2051,3 @@ }));

var pointer = function pointer(s) {
if (s[0] === '#') s = getAsU(id$1, uriComponent, s);
if (s[0] === '#') s = decodeURIComponent(s);
var ts = s.split('/');

@@ -2032,2 +2063,2 @@ var n = ts.length;

export { seemsArrayLike, Identity, IdentityAsync, Select, toFunction, assign$1 as assign, modify, modifyAsync, remove, set, traverse, compose, flat, lazy, choices, choose, cond, condOf, ifElse, orElse, chain, choice, unless, when, optional, zero, mapIx, setIx, tieIx, joinIx, skipIx, getLog, log, transform, transformAsync, seq, assignOp, modifyOp, setOp, removeOp, branchOr, branch, branches, elems, elemsTotal, entries, keys$1 as keys, matches, values, children, flatten, query, satisfying, leafs, all, and$1 as and, any, collectAs, collect, concatAs, concat, countIf, count, countsAs, counts, foldl, foldr, forEach, forEachWith, get, getAs, isDefined$1 as isDefined, isEmpty, joinAs, join, maximumBy, maximum, meanAs, mean, minimumBy, minimum, none, or$1 as or, productAs, product, select, selectAs, sumAs, sum, lens, getter, setter, foldTraversalLens, defaults, define, normalize, required, reread, rewrite, append, filter, find, findWith, first, index, last, prefix, slice, suffix, pickIn, prop, props, propsOf, removable, valueOr, pick, replace$1 as replace, getInverse, iso, array, inverse, complement, identity, is, indexed, reverse, singleton, disjoint, keyed, uri, uriComponent, json, dropPrefix, dropSuffix, replaces, split, uncouple, add$1 as add, divide, multiply$1 as multiply, negate$1 as negate, subtract, pointer };
export { multikeyed, seemsArrayLike, Identity, IdentityAsync, Select, toFunction, assign$1 as assign, modify, modifyAsync, remove, set, traverse, compose, flat, lazy, choices, choose, cond, condOf, ifElse, orElse, chain, choice, unless, when, optional, zero, mapIx, setIx, tieIx, joinIx, skipIx, getLog, log, transform, transformAsync, seq, assignOp, modifyOp, setOp, removeOp, branchOr, branch, branches, elems, elemsTotal, entries, keys$1 as keys, matches, values, children, flatten, query, satisfying, leafs, all, and$1 as and, any, collectAs, collect, concatAs, concat, countIf, count, countsAs, counts, foldl, foldr, forEach, forEachWith, get, getAs, isDefined$1 as isDefined, isEmpty, joinAs, join, maximumBy, maximum, meanAs, mean, minimumBy, minimum, none, or$1 as or, productAs, product, select, selectAs, sumAs, sum, lens, getter, setter, foldTraversalLens, defaults, define, normalize, required, reread, rewrite, append, filter, find, findWith, first, index, last, prefix, slice, suffix, pickIn, prop, props, propsOf, removable, valueOr, pick, replace$1 as replace, getInverse, iso, array, inverse, complement, identity, is, indexed, reverse, singleton, disjoint, keyed, uri, uriComponent, json, dropPrefix, dropSuffix, replaces, split, uncouple, add$1 as add, divide, multiply$1 as multiply, negate$1 as negate, subtract, pointer };

@@ -162,2 +162,14 @@ (function (global, factory) {

var tryCatch = function tryCatch(fn$$1) {
return function (x) {
try {
return fn$$1(x);
} catch (e) {
return e;
}
};
};
//
var returnAsync = function returnAsync(x) {

@@ -224,7 +236,2 @@ return Promise.resolve(x);

function freezeArrayOfObjects(xs) {
xs.forEach(I.freeze);
return I.freeze(xs);
}
function freezeObjectOfObjects(xs) {

@@ -951,3 +958,3 @@ if (xs) for (var k in xs) {

var keyed = /*#__PURE__*/isoU( /*#__PURE__*/expect( /*#__PURE__*/isInstanceOf(Object), /*#__PURE__*/(res(freezeArrayOfObjects))(function keyed(x) {
var keyed = /*#__PURE__*/isoU( /*#__PURE__*/expect( /*#__PURE__*/isInstanceOf(Object), /*#__PURE__*/(res(freezeObjectOfObjects))(function keyed(x) {
x = toObject(x);

@@ -967,2 +974,26 @@ var es = [];

var multikeyed = /*#__PURE__*/isoU( /*#__PURE__*/expect( /*#__PURE__*/isInstanceOf(Object), /*#__PURE__*/(res(freezeObjectOfObjects))(function (o) {
o = toObject(o);
var ps = [];
for (var k in o) {
var v = o[k];
if (I.isArray(v)) for (var i = 0, n = v.length; i < n; ++i) {
ps.push([k, v[i]]);
} else ps.push([k, v]);
}
return ps;
})), /*#__PURE__*/expect(I.isArray, /*#__PURE__*/(res(freezeObjectOfObjects))(function (ps) {
var o = create(null);
for (var i = 0, n = ps.length; i < n; ++i) {
var entry = ps[i];
if (entry.length === 2) {
var k = entry[0];
var v = entry[1];
var was = o[k];
if (was === void 0) o[k] = v;else if (I.isArray(was)) was.push(v);else o[k] = [was, v];
}
}
return I.assign({}, o);
})));
//

@@ -1881,3 +1912,3 @@

var indexed = /*#__PURE__*/isoU( /*#__PURE__*/expect(seemsArrayLike, /*#__PURE__*/(res(freezeArrayOfObjects))(function indexed(xs) {
var indexed = /*#__PURE__*/isoU( /*#__PURE__*/expect(seemsArrayLike, /*#__PURE__*/(res(freezeObjectOfObjects))(function indexed(xs) {
var n = xs.length;

@@ -1927,5 +1958,5 @@ var xis = Array(n);

var uri = /*#__PURE__*/stringIsoU(decodeURI, encodeURI);
var uri = /*#__PURE__*/stringIsoU( /*#__PURE__*/tryCatch(decodeURI), encodeURI);
var uriComponent = /*#__PURE__*/stringIsoU(decodeURIComponent, encodeURIComponent);
var uriComponent = /*#__PURE__*/stringIsoU( /*#__PURE__*/tryCatch(decodeURIComponent), encodeURIComponent);

@@ -1940,5 +1971,5 @@ var json = /*#__PURE__*/(res(function (iso) {

return isoU(expect(I.isString, function (text) {
return isoU(expect(I.isString, tryCatch(function (text) {
return JSON.parse(text, reviver);
}), expect(I.isDefined, function (value) {
})), expect(I.isDefined, function (value) {
return JSON.stringify(value, replacer, space);

@@ -2020,3 +2051,3 @@ }));

var pointer = function pointer(s) {
if (s[0] === '#') s = getAsU(id, uriComponent, s);
if (s[0] === '#') s = decodeURIComponent(s);
var ts = s.split('/');

@@ -2032,2 +2063,3 @@ var n = ts.length;

exports.multikeyed = multikeyed;
exports.seemsArrayLike = seemsArrayLike;

@@ -2034,0 +2066,0 @@ exports.Identity = Identity;

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

!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("infestines")):"function"==typeof define&&define.amd?define(["exports","infestines"],r):r(n.L={},n.I)}(this,function(n,b){"use strict";function e(n,r){for(var t=0,u=r.length;t<u;++t){var e=n(r[t],t);if(void 0!==e)return e}}function i(n,r,t){if(!this)return B(new i(n,r,t));this.map=n,this.of=r,this.ap=t}function o(n,r,t,u){var e=n.map,i=n.ap,o=n.of(rn),c=t.length;if(e===b.sndU){for(var f=0;f<c;++f)o=i(o,r(t[f],f));return o}for(var a=rn(u),v=0;v<c;++v)o=i(e(a,o),r(t[v],v));return e(un,o)}function a(n,r){var t=r.length-n;if(t<2)return t?Qn(r[n]):wn;for(var e=Qn(r[n+--t]),i=function(t,u){return function(n,r){return e(n,r,t,u)}};--t;)i=dn(Qn(r[n+t]),i);var o=Qn(r[n]);return function(n,r,t,u){return o(n,r,t,i(t,u))}}function u(n,r,t,u){for(var e,i,o=n.length,c=Array(o),f=0;f<o;++f)switch(c[f]=t,typeof(e=n[f])){case"string":t=cn(e,t);break;case"number":t=vn(e,t);break;default:t=a(f,n)(t,n[f-1],Gn,r||b.always(u)),o=f}for(o===n.length&&(t=r?r(t,n[o-1]):u);0<=--o;)t=b.isString(i=n[o])?fn(i,t,c[o]):sn(i,t,c[o]);return t}function r(n,r,t,u){return _n(n)?Bn(n,0,t,u):t.of(n)}function c(n,r,t,u){return b.isArray(n)?Bn(n,0,t,u):b.isObject(n)?Or(n,r,t,u):t.of(n)}function f(n,r,u,e){return function n(r,t){return b.isArray(r)?Bn(r,0,u,n):void 0!==r?e(r,t):u.of(r)}(n,r)}function t(r,n){return 1<arguments.length?gn(k,r,n):function(n){return gn(k,r,n)}}function v(r,n,t,u){var e=_n(r)?r.length:0;return t.map(function(n){return sn(e,n,r)},u(void 0,e))}function s(o){var c=1<arguments.length?arguments[1]:{hint:0};return function(n,r,t,u){var e=_n(n)?n:"",i=c.hint=function(n,r,t){var u=n.hint,e=t.length;e<=u&&(u=e-1),u<0&&(u=0);for(var i=u-1;0<=i&&u<e;++u,--i){if(r(t[u],u,n))return u;if(r(t[i],i,n))return i}for(;u<e;++u)if(r(t[u],u,n))return u;for(;0<=i;--i)if(r(t[i],i,n))return i;return e}(c,o,e);return t.map(function(n){return sn(i,n,e)},u(e[i],i))}}function l(){for(var n,r=arguments.length,t={},u=0;u<r;++u)t[n=arguments[u]]=n;return At(t)}function d(r,n){return 1<arguments.length?hn(r,n,void 0):function(n){return hn(r,n,void 0)}}var h=function(n,r){return n+r},p=function(n,r){return n*r},y=b.curry(h),g=b.curry(p),m=b.curry(function(n,r){return r/n}),A=function(n){return-n},j=function(n,r){return n<r},x=function(n,r){return r<n},O=b.curry(function(n,r){return r instanceof n}),I=Object.create,w=function(n){return b.assign(I(null),n)},S=b.freeze(w(b.object0)),U=b.curry(function(n,r,t){return t.replace(n,r)}),k=function(n){return n},E=function(n){return n},N=function(n){return n},R=function(n,r){return b.isString(n)?new RegExp(U(/[|\\{}()[\]^$+*?.]/g,"\\$&",n),r):n},q=function(n,r){return null!=r&&b.isFunction(r.then)?r.then(n):n(r)},M=function(n){return void 0!==n?String(n):""},P=function(n,r,t,u){return void 0!==u?Math.min(Math.max(n,u<0?r+u:u),r):t},z=function(r){return function(n){return[n,r]}},D=function(r){return function(n){return void 0!==n?n:r}},L=D(0),W=b.always(!0),C=function(n){return void 0!==n?!n:n},F=function(n){return void 0!==n?[n]:n},$=function(r,t){return N(function(n){return r(n)?t(n):void 0})},B=k,J=function(n){return!(n instanceof Object)||b.isArray(n)},T=k(function(n){if(_n(n)){for(var r=n.length,t=Array(r),u=0;r;)t[u++]=n[--r];return t}}),_=k(function(n,r,t){for(var u=r.length,e=Array(u),i=0,o=!0,c=0;c<u;++c){var f=r[c],a=n(f,c);t!==a&&(e[i++]=a,o&&(o=f===a&&(0!==f||1/f==1/a)||f!=f&&a!=a))}return i!==u?(e.length=i,e):o?r:e}),G=function(n,r){return _n(r)?_(n,r,void 0):void 0},H=k(function(n,r,t,u,e){for(;u<e;)n[r++]=t[u++];return n}),K=b.inherit(function n(r,t,u,e){if(!this)return B(new n(r,t,u,e));i.call(this,r,t,u),this.chain=e},i),Q=function(n,r){return i(b.sndU,b.always(r),n)},V=function(n){return Q(n.concat,(0,n.empty)())},X=Q(h,0),Y=function(o){return b.curry(function(u,n,r){var e=void 0,i=void 0;return Z(Kn,function(n,r){var t=u(n,r);void 0===t||void 0!==i&&!o(t,i)||(e=n,i=t)},n,r),e})},Z=function(n,r,t,u){return Qn(t)(u,void 0,n,r)},nn=function(e,n){return b.curryN(4,N(function(t,u){return u=n(u),function(n,r){return e(Z(u,t,n,r))}}))},rn=function(t){return function(r){return function(n){return t!==n?[n,r]:r}}},tn=function(n,r){for(;rn!==n;)r.push(n[0]),n=n[1];return r},un=k(function(n){return tn(n,[]).reverse()}),en=i(function(n,r){var t=r.p,u=r.x,e=r.c;return u=n(u),b.isFunction(u)||(t=[u,t]),{p:t,x:u,c:e}},function(n){return{p:[],x:n,c:void 0}},function(n,r){var t=void 0!==n.c?n:r;return{p:t.p,x:n.x(r.x),c:t.c}}),on=function(i,o){return function(e){return function(r,n,t,u){return t.map(function(n){return o(e,n,r)},u(i(e,r),e))}}},cn=function(n,r){return r instanceof Object?r[n]:void 0},fn=k(function(n,r,t){return void 0!==r?b.assocPartialU(n,r,t):b.dissocPartialU(n,t)||b.object0}),an=on(cn,fn),vn=function(n,r){return _n(r)?r[n]:void 0},sn=k(function(n,r,t){_n(t)||(t="");var u=t.length;if(void 0!==r){for(var e=Math.max(n+1,u),i=Array(e),o=0;o<e;++o)i[o]=t[o];return i[n]=r,i}if(u<=n)return H(Array(u),0,t,0,u);for(var c=Array(u-1),f=0;f<n;++f)c[f]=t[f];for(var a=n+1;a<u;++a)c[a-1]=t[a];return c}),ln=on(vn,sn),dn=function(e,n){return function(t,u){return u=n(t,u),function(n,r){return e(n,r,t,u)}}},hn=k(function(n,r,t){switch(typeof n){case"string":return fn(n,r,t);case"number":return sn(n,r,t);case"object":return u(n,0,t,r);default:return 4===n.length?n(t,void 0,Gn,b.always(r)):t}}),pn=k(function(n,r,t){switch(typeof n){case"string":return fn(n,r(cn(n,t),n),t);case"number":return sn(n,r(vn(n,t),n),t);case"object":return u(n,r,t);default:return 4===n.length?n(t,void 0,Gn,r):(r(n(t,void 0),void 0),t)}}),yn=function(n,r,t){return u=Qn(n)(t,void 0,Hn,r),Promise.resolve(u);var u},gn=k(function(n,r,t){switch(typeof r){case"string":return n(cn(r,t),r);case"number":return n(vn(r,t),r);case"object":for(var u,e=r.length,i=0;i<e;++i)switch(typeof(u=r[i])){case"string":t=cn(u,t);break;case"number":t=vn(u,t);break;default:return a(i,r)(t,r[i-1],Kn,n)}return n(t,r[e-1]);default:return n!==k&&4!==r.length?n(r(t,void 0),void 0):r(t,void 0,Kn,n)}}),mn=function(e,i){return N(function(r,t,n,u){return n.map(function(n){return i(n,r,t)},u(e(r,t),t))})},bn=function(e,i){return N(function(n,r,t,u){return t.map(i,u(e(n),r))})},An=function(n,r){return bn($(b.isString,n),$(b.isString,r))},jn=function(n,r){return bn($(b.isNumber,n),$(b.isNumber,r))},xn=k(function(n,r){var t=void 0;for(var u in n){var e=n[u],i=b.isObject(e)?xn(e,r):gn(k,e,r);void 0!==i&&(t||(t={}),t[u]=i)}return t}),On=k(function(n,r,t){for(var u in n){var e=r&&r[u],i=n[u];t=b.isObject(i)?On(i,e,t):hn(i,e,t)}return t}),In=function(n){return b.constructorOf(n)!==Object?b.toObject(n):n},wn=function(n,r,t,u){return u(n,r)},Sn=k(function(e){return function(n){for(var r={},t=e.length;t--;){var u=n[0];void 0!==u&&(r[e[t]]=u),n=n[1]}return r}}),Un=k(function(n,r,t,u,e,i){var o=void 0,c=!0,f={};for(var a in r){o=1;var v=t[a],s=r[a](v,a,e,i);void 0!==s?(f[a]=s,c&&(c=v===s&&(0!==v||1/v==1/s)||v!=v&&s!=s)):c=!1}var l=o;for(var d in t)if(void 0===(l&&r[d])){o=1;var h=t[d],p=n(h,d,e,i);void 0!==p?(f[d]=p,c&&(c=h===p&&(0!==h||1/h==1/p)||h!=h&&p!=p)):c=!1}return o?c&&t===u?u:f:u}),kn=function(g,m){return function(n,r,t,u){var e=n instanceof Object?In(n):b.object0;if(Gn===t)return Un(g,m,e,n,t,u);if(Kn!==t){var i=t.map,o=t.ap,c=t.of,f=c(z),a=[];for(var v in m)a.push(v),f=o(i(z,f),m[v](e[v],v,t,u));var s=!!a.length||void 0;for(var l in e)void 0===(s&&m[l])&&(a.push(l),f=o(i(z,f),g(e[l],l,t,u)));return a.length?i(Sn(a),f):c(n)}for(var d in m){var h=m[d](e[d],d,t,u);if(void 0!==h)return h}for(var p in e)if(void 0===m[p]){var y=g(e[p],p,t,u);if(void 0!==y)return y}}},En=function(n,r,t){return b.acyclicEqualsU(t,n)?r:t},Nn=k(function(n,r,t,u){for(var e,i=0,o=r.length;i<o;++i)(n(e=r[i],i)?t:u).push(e)}),Rn=function(n){return n[0]},qn=function(n){return n.index},Mn=function(n){return qn(n)+n[0].length},Pn=k(function(n,r){var t=r.lastIndex;r.lastIndex=Mn(n);var u=r.exec(n.input);return r.lastIndex=t,u&&u[0]&&u}),zn=function(t){return function(r){return function(n){return[t,n,r]}}},Dn=bn($(O(Object),k(function(n){n=In(n);var r=[];for(var t in n)r.push([t,n[t]]);return r})),$(b.isArray,k(function(n){for(var r={},t=0,u=n.length;t<u;++t){var e=n[t];2===e.length&&(r[e[0]]=e[1])}return r}))),Ln=k(function(n,r){if(r instanceof Object){var t={};for(var u in r=In(r)){var e=n(u),i=t[e];void 0===i&&(t[e]=i={}),i[u]=r[u]}return t}}),Wn=k(function(i){return function(n){if(n instanceof Object){var r={};for(var t in n=In(n)){var u=n[t];if(u instanceof Object)for(var e in u=In(u))i(e)===t&&(r[e]=u[e])}return r}}}),Cn=function(i,o){return function(e){return function(n,r,t,u){return(e(n,r)?i:o)(n,r,t,u)}}},Fn=function(e,i){return i=Qn(i),e=Qn(e),function(n,r,t,u){return(Br(i,n)?i:e)(n,r,t,u)}},$n=function(n,r,t,u){return t.of(n)},Bn=function(n,r,t,u){return t===Gn?_(u,n,void 0):t===Kn?e(u,n):o(t,u,n,void 0)},Jn=function(e,i){return function(n,r,t,u){return t.chain(function(n){return i(n,r,t,u)},e(n,r,t,u))}},Tn=function(n,r){return[r,gt(n)]},_n=function(n){return n instanceof Object&&(n=n.length)===n>>0&&0<=n||b.isString(n)},Gn=K(b.applyU,k,b.applyU,b.applyU),Hn=K(q,k,function(n,r){return q(function(r){return q(function(n){return n(r)},n)},r)},q),Kn=Q(function(n,r){return void 0!==n?n:r}),Qn=k(function(n){switch(typeof n){case"string":return an(n);case"number":return ln(n);case"object":return a(0,n);default:return 4===n.length?n:(e=n,N(function(n,r,t,u){return t.map(b.always(n),u(e(n,r),r))}))}var e}),Vn=b.curry(function(n,r,t){return hn([n,bt(r)],r,t)}),Xn=b.curry(pn),Yn=b.curry(yn),Zn=b.curry(function(n,r){return hn(n,void 0,r)}),nr=b.curry(hn),rr=b.curry(Z),tr=function(e){return N(function(n,r,t,u){return Qn(e(n,r))(n,r,t,u)})},ur=k(function(){for(var n=arguments.length,r=$n;n--;){var t=arguments[n];r=t.length<2?Qn(t[0]):Cn(Qn(t[1]),r)(t[0])}return r}),er=k(function(i){i=Qn(i);var o=arguments.length-1;if(!o)return $n;var n=arguments[o];1===n.length?(--o,n=Qn(n[0])):n=$n;for(var c=Array(o),f=Array(o+1),r=0;r<o;++r){var t=arguments[r+1];c[r]=t[0],f[r]=Qn(t[1])}return f[o]=n,function(n,r,t,u){var e=o;return i(n,r,Kn,function(n,r){for(var t=0;t<e;++t)if(c[t](n,r)){if(0===(e=t))return 0;break}}),f[e](n,r,t,u)}}),ir=b.curry(function(n,r,t){return Cn(Qn(r),Qn(t))(n)}),or=b.curry(Fn),cr=b.curry(function(t,n){return[n,tr(function(n,r){return void 0!==n?t(n,r):$n})]}),fr=Cn($n,wn),ar=Cn(wn,$n),vr=ar(b.isDefined),sr=b.curry(function(e,i){return i=Qn(i),N(function(n,t,r,u){return i(n,t,r,function(n,r){return u(n,e(r,t))})})}),lr=E(sr(function(n,r){return void 0!==r?void 0!==n?[r,n]:r:n})),dr=E(sr(b.sndU)),hr=b.curry(function(n,r){return pn(n,k,r)}),pr=b.curry(function(n,r){return yn(n,k,r)}),yr=k(function(){var n=arguments.length,r=$n;if(n)for(r=Qn(arguments[--n]);n;)r=Jn(Qn(arguments[--n]),r);return r}),gr=function(e){return function(n,r,t,u){return t.of(e)}},mr=gr(),br=k(b.curryN(2,function(r){return r=Qn(r),function(n){return function n(r,t){var u=I(null);for(var e in t){var i=t[e];u[e]=b.isObject(i)?n(r,i):Qn(i)}return kn(r,u)}(r,n)}})),Ar=br($n),jr=E(Qn([Dn,r])),xr=E(Qn([Dn,r,0])),Or=E(kn(wn,S)),Ir=function(i){return function(n,r,u,e){return function n(r,t){return i(r,t)?e(r,t):c(r,t,u,n)}(n,r)}},wr=Ir(function(n){return void 0!==n&&!b.isArray(n)&&!b.isObject(n)}),Sr=b.curry(function(t,n,r){return!gn(function(n,r){if(!t(n,r))return!0},n,r)}),Ur=Sr(k),kr=b.curry(function(t,n,r){return!!gn(function(n,r){if(t(n,r))return!0},n,r)}),Er=(0,b.curry)(function(u,n,r){var e=[];return Z(Kn,function(n,r){var t=u(n,r);void 0!==t&&e.push(t)},n,r),e}),Nr=Er(k),Rr=nn(k,V),qr=Rr(k),Mr=b.curry(function(t,n,r){return Z(X,function(n,r){return t(n,r)?1:0},n,r)}),Pr=Mr(b.isDefined),zr=b.curry(function(e,n,r){var i=new Map;return Z(Kn,function(n,r){var t=e(n,r),u=i.get(t);i.set(t,void 0!==u?u+1:1)},n,r),i}),Dr=zr(k),Lr=b.curry(function(t,u,n,r){return Z(Kn,function(n,r){u=t(u,n,r)},n,r),u}),Wr=b.curry(function(n,r,t,u){var e=[],i=[];Z(Kn,function(n,r){i.push(n),e.push(r)},t,u);for(var o=i.length-1;0<=o;--o)r=n(r,i[o],e[o]);return r}),Cr=b.curry(function(t,n,r){return Z(Kn,function(n,r){t(n,r)},n,r)}),Fr=b.curry(function(n,t,r,u){var e=n();return Z(Kn,function(n,r){t(e,n,r)},r,u),e}),$r=b.curry(gn),Br=b.curry(function(n,r){return void 0!==gn(k,n,r)}),Jr=b.curry(function(n,r){return!gn(W,n,r)}),Tr=nn(M,k(function(t){return Q(function(n,r){return void 0!==n?void 0!==r?n+t+r:n:r})})),_r=Tr(k),Gr=Y(x),Hr=Gr(k),Kr=b.curry(function(u,n,r){var e=0,i=0;return Z(Kn,function(n,r){var t=u(n,r);void 0!==t&&(i+=1,e+=t)},n,r),e/i}),Qr=Kr(k),Vr=Y(j),Xr=Vr(k),Yr=b.curry(function(t,n,r){return!gn(function(n,r){if(t(n,r))return!0},n,r)}),Zr=kr(k),nt=rr(Q(p,1)),rt=nt(D(1)),tt=t,ut=$r,et=rr(X),it=et(L),ot=b.curry(mn),ct=ot(k),ft=b.curry(function(n,r){return mn(n(r),nr(r))}),at=k(function(e){var i=D(e);return function(n,r,t,u){return t.map(i,u(void 0!==n?n:e,r))}}),vt=k(function(n){return jt(n,void 0)}),st=function(e){return function(n,r,t,u){return u(void 0!==n?e(n,r):n,r)}},lt=function(e){return function(n,r,t,u){return t.map(function(n){return void 0!==n?e(n,r):n},u(n,r))}},dt=k(function(o){return function(n,r,t,u){var e=void 0,i=b.array0;return _n(n)&&Nn(o,n,e=[],i=[]),t.map(function(n){var r=n?n.length:0,t=i.length,u=r+t;return u===t?i:H(H(Array(u),0,n,0,r),r,i,0,t)},u(e,r))}}),ht=k,pt=tr(function(n){return _n(n)&&n.length?n.length-1:0}),yt=(0,b.curry)(function(f,a){return function(u,n,r,t){var e=_n(u),i=e&&u.length,o=P(0,i,0,f),c=P(o,i,i,a);return r.map(function(n){var r=n?n.length:0,t=o+r;return H(H(H(Array(i-c+t),0,u,0,o),o,n,0,r),t,u,c,i)},t(e?H(Array(Math.max(0,c-o)),0,u,o,c):void 0,n))}}),gt=function(n){return b.isObject(n)?At(Xn(Or,Tn,n)):n},mt=k,bt=function(n){return l.apply(null,b.keys(n))},At=k(function(e){return function(r,n,t,u){return t.map(function(n){return On(e,n,r)},u(xn(e,r),n))}}),jt=b.curry(function(e,i){function o(n){return En(i,e,n)}return function(n,r,t,u){return t.map(o,u(En(e,i,n),r))}}),xt=b.curry(bn),Ot=bn(C,C),It=bn($(_n,k(function(n){for(var r=n.length,t=Array(r),u=0;u<r;++u)t[u]=[u,n[u]];return t})),$(b.isArray,k(function(n){for(var r=n.length,t=Array(r),u=0;u<r;++u){var e=n[u];2===e.length&&(t[e[0]]=e[1])}r=t.length;for(var i=0,o=0;o<r;++o){var c=t[o];void 0!==c&&(o!==i&&(t[i]=c),++i)}return t.length=i,t}))),wt=bn(T,T),St=k(function(n,r,t,u){return t.map(F,u((n instanceof Object||b.isString(n))&&1===n.length?n[0]:void 0,r))}),Ut=An(decodeURI,encodeURI),kt=An(decodeURIComponent,encodeURIComponent),Et=k(function(n){var r=n||b.object0,t=r.reviver,u=r.replacer,e=r.space;return bn($(b.isString,function(n){return JSON.parse(n,t)}),$(b.isDefined,function(n){return JSON.stringify(n,u,e)}))}),Nt=b.curry(function(n,r){return An(U(R(n,"g"),r),U(R(r,"g"),n))}),Rt=k(function(r){var t=1<arguments.length?arguments[1]:r;return bn($(b.isString,function(n){return n.split(t)}),$(b.isArray,function(n){return n.join(r)}))}),qt=k(function(u){var t=R(1<arguments.length?arguments[1]:u,"");return bn($(b.isString,function(n){var r=t.exec(n);return r?[n.slice(0,qn(r)),n.slice(Mn(r))]:[n,""]}),function(n){if(b.isArray(n)&&2===n.length){var r=n[0],t=n[1];return t?r+u+t:r}})}),Mt=jn(A,A);n.seemsArrayLike=_n,n.Identity=Gn,n.IdentityAsync=Hn,n.Select=Kn,n.toFunction=Qn,n.assign=Vn,n.modify=Xn,n.modifyAsync=Yn,n.remove=Zn,n.set=nr,n.traverse=rr,n.compose=function(){var n=arguments.length;if(n<2)return n?arguments[0]:wn;for(var r=Array(n);n--;)r[n]=arguments[n];return r},n.flat=function(){for(var n=[f],r=0,t=arguments.length;r<t;++r)n.push(arguments[r],f);return n},n.lazy=function(e){function i(n,r,t,u){return o(n,r,t,u)}var o=function(n,r,t,u){return(o=Qn(e(i)))(n,r,t,u)};return i},n.choices=function(n){for(var r=arguments.length,t=Array(1<r?r-1:0),u=1;u<r;u++)t[u-1]=arguments[u];return t.length?Fn(t.reduceRight(Fn),n):n},n.choose=tr,n.cond=ur,n.condOf=er,n.ifElse=ir,n.orElse=or,n.chain=cr,n.choice=function(){for(var n=arguments.length,r=Array(n),t=0;t<n;t++)r[t]=arguments[t];return r.reduceRight(Fn,$n)},n.unless=fr,n.when=ar,n.optional=vr,n.zero=$n,n.mapIx=function(e){return function(n,r,t,u){return u(n,e(r,n))}},n.setIx=function(e){return function(n,r,t,u){return u(n,e)}},n.tieIx=sr,n.joinIx=lr,n.skipIx=dr,n.getLog=function(n,r){var t=Z(en,function(n){return{p:[n,rn],x:n,c:n}},n,r),u=t.p,e=t.c;u=tn(u,["%O"]);for(var i=2;i<u.length;++i)u[0]+=" <= %O";return console.log.apply(console,u),e},n.log=function(){var n=b.curry(function(n,r){return console.log.apply(console,H([],0,arguments,0,arguments.length).concat([n,r])),r});return bn(n("get"),n("set"))},n.transform=hr,n.transformAsync=pr,n.seq=yr,n.assignOp=function(n){return[bt(n),gr(n)]},n.modifyOp=function(e){return function(n,r,t,u){return t.of(e(n,r))}},n.setOp=gr,n.removeOp=mr,n.branchOr=br,n.branch=Ar,n.branches=function(){for(var n=arguments.length,r={},t=0;t<n;++t)r[arguments[t]]=wn;return Ar(r)},n.elems=r,n.elemsTotal=function(n,r,t,u){return _n(n)?t===Gn?_(u,n,_):t===Kn?e(u,n):o(t,u,n,o):t.of(n)},n.entries=jr,n.keys=xr,n.matches=function(f){return function(r,n,t,u){if(b.isString(r)){var e=t.map;if(f.global){var i=[""];return i.input=r,i.index=0,Kn===t?function(n,r,t){for(;t=Pn(t,r);){var u=n(Rn(t),qn(t));if(void 0!==u)return u}}(u,f,i):e((c=r,function(n){for(var r="",t=0,u=function(n){for(var r=[];zn!==n;)r.push(n[0],n[1]),n=n[2];return r}(n),e=u.length-2;-2!==e;e+=-2){var i=u[e];r+=c.slice(t,qn(i));var o=u[e+1];void 0!==o&&(r+=o),t=Mn(i)}return r+c.slice(t)}),function(n,r,t,u,e,i){for(var o=t(zn);i=Pn(i,e);)o=r(r(n(zn,t(i)),o),u(Rn(i),qn(i)));return o}(e,t.ap,t.of,u,f,i))}var o=r.match(f);if(o)return e(function(n){return r.replace(f,void 0!==n?n:"")},u(o[0],qn(o)))}var c;return t.of(r)}},n.values=Or,n.children=c,n.flatten=f,n.query=function(){for(var n=[],r=0,t=arguments.length;r<t;++r){var u=Qn(arguments[r]);n.push(Ir(Br(u)),u)}return n},n.satisfying=Ir,n.leafs=wr,n.all=Sr,n.and=Ur,n.any=kr,n.collectAs=Er,n.collect=Nr,n.concatAs=Rr,n.concat=qr,n.countIf=Mr,n.count=Pr,n.countsAs=zr,n.counts=Dr,n.foldl=Lr,n.foldr=Wr,n.forEach=Cr,n.forEachWith=Fr,n.get=t,n.getAs=$r,n.isDefined=Br,n.isEmpty=Jr,n.joinAs=Tr,n.join=_r,n.maximumBy=Gr,n.maximum=Hr,n.meanAs=Kr,n.mean=Qr,n.minimumBy=Vr,n.minimum=Xr,n.none=Yr,n.or=Zr,n.productAs=nt,n.product=rt,n.select=tt,n.selectAs=ut,n.sumAs=et,n.sum=it,n.lens=ot,n.getter=function(e){return function(n,r,t,u){return u(e(n,r),r)}},n.setter=ct,n.foldTraversalLens=ft,n.defaults=function(e){function i(n){return En(e,void 0,n)}return function(n,r,t,u){return t.map(i,u(void 0!==n?n:e,r))}},n.define=at,n.normalize=function(n){return[st(n),lt(n)]},n.required=vt,n.reread=st,n.rewrite=lt,n.append=v,n.filter=dt,n.find=s,n.findWith=function(n){var r=Qn(n),t=Br(r);return[1<arguments.length?s(t,arguments[1]):s(t),r]},n.first=0,n.index=ht,n.last=pt,n.prefix=function(n){return yt(0,n)},n.slice=yt,n.suffix=function(n){return yt(0===n?1/0:n?-n:0,void 0)},n.pickIn=gt,n.prop=mt,n.props=l,n.propsOf=bt,n.removable=function(){function e(n){if(!(n instanceof Object))return n;for(var r=0,t=u.length;r<t;++r)if(b.hasU(u[r],n))return n}for(var n=arguments.length,u=Array(n),r=0;r<n;r++)u[r]=arguments[r];return function(n,r,t,u){return t.map(e,u(n,r))}},n.valueOr=function(e){return function(n,r,t,u){return u(null!=n?n:e,r)}},n.pick=At,n.replace=jt,n.getInverse=d,n.iso=xt,n.array=function(n){var r=d(n),e=t(n),i=function(n){return G(r,n)};return function(n,r,t,u){return t.map(i,u(G(e,n),r))}},n.inverse=function(e){return function(n,r,t,u){return t.map(function(n){return gn(k,e,n)},u(hn(e,n,void 0),r))}},n.complement=Ot,n.identity=wn,n.is=function(r){return bn(function(n){return b.acyclicEqualsU(r,n)},function(n){return!0===n?r:void 0})},n.indexed=It,n.reverse=wt,n.singleton=St,n.disjoint=function(i){return function(n,r,t,u){var e=Wn(i);return t.map(e,u(Ln(i,n),r))}},n.keyed=Dn,n.uri=Ut,n.uriComponent=kt,n.json=Et,n.dropPrefix=function(r){return An(function(n){return n.startsWith(r)?n.slice(r.length):void 0},function(n){return r+n})},n.dropSuffix=function(r){return An(function(n){return n.endsWith(r)?n.slice(0,n.length-r.length):void 0},function(n){return n+r})},n.replaces=Nt,n.split=Rt,n.uncouple=qt,n.add=function(n){return jn(y(n),y(-n))},n.divide=function(n){return jn(m(n),g(n))},n.multiply=function(n){return jn(g(n),m(n))},n.negate=Mt,n.subtract=function(n){return jn(y(-n),y(n))},n.pointer=function(n){"#"===n[0]&&(n=gn(k,kt,n));for(var r=n.split("/"),t=r.length,u=1;u<t;++u){var e=r[u];r[u-1]=/^(0|[1-9]\d*)$/.test(e)?ir(J,Number(e),e):"-"===e?ir(J,v,e):e.replace("~1","/").replace("~0","~")}return r.length=t-1,r},Object.defineProperty(n,"__esModule",{value:!0})});
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("infestines")):"function"==typeof define&&define.amd?define(["exports","infestines"],r):r(n.L={},n.I)}(this,function(n,b){"use strict";function e(n,r){for(var t=0,u=r.length;t<u;++t){var e=n(r[t],t);if(void 0!==e)return e}}function i(n,r,t){if(!this)return J(new i(n,r,t));this.map=n,this.of=r,this.ap=t}function o(n,r,t,u){var e=n.map,i=n.ap,o=n.of(tn),c=t.length;if(e===b.sndU){for(var f=0;f<c;++f)o=i(o,r(t[f],f));return o}for(var a=tn(u),v=0;v<c;++v)o=i(e(a,o),r(t[v],v));return e(en,o)}function a(n,r){var t=r.length-n;if(t<2)return t?Xn(r[n]):Un;for(var e=Xn(r[n+--t]),i=function(t,u){return function(n,r){return e(n,r,t,u)}};--t;)i=hn(Xn(r[n+t]),i);var o=Xn(r[n]);return function(n,r,t,u){return o(n,r,t,i(t,u))}}function u(n,r,t,u){for(var e,i,o=n.length,c=Array(o),f=0;f<o;++f)switch(c[f]=t,typeof(e=n[f])){case"string":t=fn(e,t);break;case"number":t=sn(e,t);break;default:t=a(f,n)(t,n[f-1],Kn,r||b.always(u)),o=f}for(o===n.length&&(t=r?r(t,n[o-1]):u);0<=--o;)t=b.isString(i=n[o])?an(i,t,c[o]):ln(i,t,c[o]);return t}function r(n,r,t,u){return Hn(n)?Tn(n,0,t,u):t.of(n)}function c(n,r,t,u){return b.isArray(n)?Tn(n,0,t,u):b.isObject(n)?wr(n,r,t,u):t.of(n)}function f(n,r,u,e){return function n(r,t){return b.isArray(r)?Tn(r,0,u,n):void 0!==r?e(r,t):u.of(r)}(n,r)}function t(r,n){return 1<arguments.length?mn(k,r,n):function(n){return mn(k,r,n)}}function v(r,n,t,u){var e=Hn(r)?r.length:0;return t.map(function(n){return ln(e,n,r)},u(void 0,e))}function s(o){var c=1<arguments.length?arguments[1]:{hint:0};return function(n,r,t,u){var e=Hn(n)?n:"",i=c.hint=function(n,r,t){var u=n.hint,e=t.length;e<=u&&(u=e-1),u<0&&(u=0);for(var i=u-1;0<=i&&u<e;++u,--i){if(r(t[u],u,n))return u;if(r(t[i],i,n))return i}for(;u<e;++u)if(r(t[u],u,n))return u;for(;0<=i;--i)if(r(t[i],i,n))return i;return e}(c,o,e);return t.map(function(n){return ln(i,n,e)},u(e[i],i))}}function l(){for(var n,r=arguments.length,t={},u=0;u<r;++u)t[n=arguments[u]]=n;return xt(t)}function d(r,n){return 1<arguments.length?pn(r,n,void 0):function(n){return pn(r,n,void 0)}}var h=function(n,r){return n+r},p=function(n,r){return n*r},y=b.curry(h),g=b.curry(p),m=b.curry(function(n,r){return r/n}),A=function(n){return-n},j=function(n,r){return n<r},x=function(n,r){return r<n},O=b.curry(function(n,r){return r instanceof n}),I=Object.create,w=function(n){return b.assign(I(null),n)},U=b.freeze(w(b.object0)),S=b.curry(function(n,r,t){return t.replace(n,r)}),k=function(n){return n},E=function(n){return n},R=function(n){return n},N=function(n,r){return b.isString(n)?new RegExp(S(/[|\\{}()[\]^$+*?.]/g,"\\$&",n),r):n},q=function(r){return function(n){try{return r(n)}catch(n){return n}}},M=function(n,r){return null!=r&&b.isFunction(r.then)?r.then(n):n(r)},P=function(n){return void 0!==n?String(n):""},z=function(n,r,t,u){return void 0!==u?Math.min(Math.max(n,u<0?r+u:u),r):t},C=function(r){return function(n){return[n,r]}},D=function(r){return function(n){return void 0!==n?n:r}},L=D(0),W=b.always(!0),F=function(n){return void 0!==n?!n:n},$=function(n){return void 0!==n?[n]:n},B=function(r,t){return R(function(n){return r(n)?t(n):void 0})},J=k,T=function(n){return!(n instanceof Object)||b.isArray(n)},_=k(function(n){if(Hn(n)){for(var r=n.length,t=Array(r),u=0;r;)t[u++]=n[--r];return t}}),G=k(function(n,r,t){for(var u=r.length,e=Array(u),i=0,o=!0,c=0;c<u;++c){var f=r[c],a=n(f,c);t!==a&&(e[i++]=a,o&&(o=f===a&&(0!==f||1/f==1/a)||f!=f&&a!=a))}return i!==u?(e.length=i,e):o?r:e}),H=function(n,r){return Hn(r)?G(n,r,void 0):void 0},K=k(function(n,r,t,u,e){for(;u<e;)n[r++]=t[u++];return n}),Q=b.inherit(function n(r,t,u,e){if(!this)return J(new n(r,t,u,e));i.call(this,r,t,u),this.chain=e},i),V=function(n,r){return i(b.sndU,b.always(r),n)},X=function(n){return V(n.concat,(0,n.empty)())},Y=V(h,0),Z=function(o){return b.curry(function(u,n,r){var e=void 0,i=void 0;return nn(Vn,function(n,r){var t=u(n,r);void 0===t||void 0!==i&&!o(t,i)||(e=n,i=t)},n,r),e})},nn=function(n,r,t,u){return Xn(t)(u,void 0,n,r)},rn=function(e,n){return b.curryN(4,R(function(t,u){return u=n(u),function(n,r){return e(nn(u,t,n,r))}}))},tn=function(t){return function(r){return function(n){return t!==n?[n,r]:r}}},un=function(n,r){for(;tn!==n;)r.push(n[0]),n=n[1];return r},en=k(function(n){return un(n,[]).reverse()}),on=i(function(n,r){var t=r.p,u=r.x,e=r.c;return u=n(u),b.isFunction(u)||(t=[u,t]),{p:t,x:u,c:e}},function(n){return{p:[],x:n,c:void 0}},function(n,r){var t=void 0!==n.c?n:r;return{p:t.p,x:n.x(r.x),c:t.c}}),cn=function(i,o){return function(e){return function(r,n,t,u){return t.map(function(n){return o(e,n,r)},u(i(e,r),e))}}},fn=function(n,r){return r instanceof Object?r[n]:void 0},an=k(function(n,r,t){return void 0!==r?b.assocPartialU(n,r,t):b.dissocPartialU(n,t)||b.object0}),vn=cn(fn,an),sn=function(n,r){return Hn(r)?r[n]:void 0},ln=k(function(n,r,t){Hn(t)||(t="");var u=t.length;if(void 0!==r){for(var e=Math.max(n+1,u),i=Array(e),o=0;o<e;++o)i[o]=t[o];return i[n]=r,i}if(u<=n)return K(Array(u),0,t,0,u);for(var c=Array(u-1),f=0;f<n;++f)c[f]=t[f];for(var a=n+1;a<u;++a)c[a-1]=t[a];return c}),dn=cn(sn,ln),hn=function(e,n){return function(t,u){return u=n(t,u),function(n,r){return e(n,r,t,u)}}},pn=k(function(n,r,t){switch(typeof n){case"string":return an(n,r,t);case"number":return ln(n,r,t);case"object":return u(n,0,t,r);default:return 4===n.length?n(t,void 0,Kn,b.always(r)):t}}),yn=k(function(n,r,t){switch(typeof n){case"string":return an(n,r(fn(n,t),n),t);case"number":return ln(n,r(sn(n,t),n),t);case"object":return u(n,r,t);default:return 4===n.length?n(t,void 0,Kn,r):(r(n(t,void 0),void 0),t)}}),gn=function(n,r,t){return u=Xn(n)(t,void 0,Qn,r),Promise.resolve(u);var u},mn=k(function(n,r,t){switch(typeof r){case"string":return n(fn(r,t),r);case"number":return n(sn(r,t),r);case"object":for(var u,e=r.length,i=0;i<e;++i)switch(typeof(u=r[i])){case"string":t=fn(u,t);break;case"number":t=sn(u,t);break;default:return a(i,r)(t,r[i-1],Vn,n)}return n(t,r[e-1]);default:return n!==k&&4!==r.length?n(r(t,void 0),void 0):r(t,void 0,Vn,n)}}),bn=function(e,i){return R(function(r,t,n,u){return n.map(function(n){return i(n,r,t)},u(e(r,t),t))})},An=function(e,i){return R(function(n,r,t,u){return t.map(i,u(e(n),r))})},jn=function(n,r){return An(B(b.isString,n),B(b.isString,r))},xn=function(n,r){return An(B(b.isNumber,n),B(b.isNumber,r))},On=k(function(n,r){var t=void 0;for(var u in n){var e=n[u],i=b.isObject(e)?On(e,r):mn(k,e,r);void 0!==i&&(t||(t={}),t[u]=i)}return t}),In=k(function(n,r,t){for(var u in n){var e=r&&r[u],i=n[u];t=b.isObject(i)?In(i,e,t):pn(i,e,t)}return t}),wn=function(n){return b.constructorOf(n)!==Object?b.toObject(n):n},Un=function(n,r,t,u){return u(n,r)},Sn=k(function(e){return function(n){for(var r={},t=e.length;t--;){var u=n[0];void 0!==u&&(r[e[t]]=u),n=n[1]}return r}}),kn=k(function(n,r,t,u,e,i){var o=void 0,c=!0,f={};for(var a in r){o=1;var v=t[a],s=r[a](v,a,e,i);void 0!==s?(f[a]=s,c&&(c=v===s&&(0!==v||1/v==1/s)||v!=v&&s!=s)):c=!1}var l=o;for(var d in t)if(void 0===(l&&r[d])){o=1;var h=t[d],p=n(h,d,e,i);void 0!==p?(f[d]=p,c&&(c=h===p&&(0!==h||1/h==1/p)||h!=h&&p!=p)):c=!1}return o?c&&t===u?u:f:u}),En=function(g,m){return function(n,r,t,u){var e=n instanceof Object?wn(n):b.object0;if(Kn===t)return kn(g,m,e,n,t,u);if(Vn!==t){var i=t.map,o=t.ap,c=t.of,f=c(C),a=[];for(var v in m)a.push(v),f=o(i(C,f),m[v](e[v],v,t,u));var s=!!a.length||void 0;for(var l in e)void 0===(s&&m[l])&&(a.push(l),f=o(i(C,f),g(e[l],l,t,u)));return a.length?i(Sn(a),f):c(n)}for(var d in m){var h=m[d](e[d],d,t,u);if(void 0!==h)return h}for(var p in e)if(void 0===m[p]){var y=g(e[p],p,t,u);if(void 0!==y)return y}}},Rn=function(n,r,t){return b.acyclicEqualsU(t,n)?r:t},Nn=k(function(n,r,t,u){for(var e,i=0,o=r.length;i<o;++i)(n(e=r[i],i)?t:u).push(e)}),qn=function(n){return n[0]},Mn=function(n){return n.index},Pn=function(n){return Mn(n)+n[0].length},zn=k(function(n,r){var t=r.lastIndex;r.lastIndex=Pn(n);var u=r.exec(n.input);return r.lastIndex=t,u&&u[0]&&u}),Cn=function(t){return function(r){return function(n){return[t,n,r]}}},Dn=An(B(O(Object),k(function(n){n=wn(n);var r=[];for(var t in n)r.push([t,n[t]]);return r})),B(b.isArray,k(function(n){for(var r={},t=0,u=n.length;t<u;++t){var e=n[t];2===e.length&&(r[e[0]]=e[1])}return r}))),Ln=An(B(O(Object),k(function(n){n=wn(n);var r=[];for(var t in n){var u=n[t];if(b.isArray(u))for(var e=0,i=u.length;e<i;++e)r.push([t,u[e]]);else r.push([t,u])}return r})),B(b.isArray,k(function(n){for(var r=I(null),t=0,u=n.length;t<u;++t){var e=n[t];if(2===e.length){var i=e[0],o=e[1],c=r[i];void 0===c?r[i]=o:b.isArray(c)?c.push(o):r[i]=[c,o]}}return b.assign({},r)}))),Wn=k(function(n,r){if(r instanceof Object){var t={};for(var u in r=wn(r)){var e=n(u),i=t[e];void 0===i&&(t[e]=i={}),i[u]=r[u]}return t}}),Fn=k(function(i){return function(n){if(n instanceof Object){var r={};for(var t in n=wn(n)){var u=n[t];if(u instanceof Object)for(var e in u=wn(u))i(e)===t&&(r[e]=u[e])}return r}}}),$n=function(i,o){return function(e){return function(n,r,t,u){return(e(n,r)?i:o)(n,r,t,u)}}},Bn=function(e,i){return i=Xn(i),e=Xn(e),function(n,r,t,u){return(Tr(i,n)?i:e)(n,r,t,u)}},Jn=function(n,r,t,u){return t.of(n)},Tn=function(n,r,t,u){return t===Kn?G(u,n,void 0):t===Vn?e(u,n):o(t,u,n,void 0)},_n=function(e,i){return function(n,r,t,u){return t.chain(function(n){return i(n,r,t,u)},e(n,r,t,u))}},Gn=function(n,r){return[r,bt(n)]},Hn=function(n){return n instanceof Object&&(n=n.length)===n>>0&&0<=n||b.isString(n)},Kn=Q(b.applyU,k,b.applyU,b.applyU),Qn=Q(M,k,function(n,r){return M(function(r){return M(function(n){return n(r)},n)},r)},M),Vn=V(function(n,r){return void 0!==n?n:r}),Xn=k(function(n){switch(typeof n){case"string":return vn(n);case"number":return dn(n);case"object":return a(0,n);default:return 4===n.length?n:(e=n,R(function(n,r,t,u){return t.map(b.always(n),u(e(n,r),r))}))}var e}),Yn=b.curry(function(n,r,t){return pn([n,jt(r)],r,t)}),Zn=b.curry(yn),nr=b.curry(gn),rr=b.curry(function(n,r){return pn(n,void 0,r)}),tr=b.curry(pn),ur=b.curry(nn),er=function(e){return R(function(n,r,t,u){return Xn(e(n,r))(n,r,t,u)})},ir=k(function(){for(var n=arguments.length,r=Jn;n--;){var t=arguments[n];r=t.length<2?Xn(t[0]):$n(Xn(t[1]),r)(t[0])}return r}),or=k(function(i){i=Xn(i);var o=arguments.length-1;if(!o)return Jn;var n=arguments[o];1===n.length?(--o,n=Xn(n[0])):n=Jn;for(var c=Array(o),f=Array(o+1),r=0;r<o;++r){var t=arguments[r+1];c[r]=t[0],f[r]=Xn(t[1])}return f[o]=n,function(n,r,t,u){var e=o;return i(n,r,Vn,function(n,r){for(var t=0;t<e;++t)if(c[t](n,r)){if(0===(e=t))return 0;break}}),f[e](n,r,t,u)}}),cr=b.curry(function(n,r,t){return $n(Xn(r),Xn(t))(n)}),fr=b.curry(Bn),ar=b.curry(function(t,n){return[n,er(function(n,r){return void 0!==n?t(n,r):Jn})]}),vr=$n(Jn,Un),sr=$n(Un,Jn),lr=sr(b.isDefined),dr=b.curry(function(e,i){return i=Xn(i),R(function(n,t,r,u){return i(n,t,r,function(n,r){return u(n,e(r,t))})})}),hr=E(dr(function(n,r){return void 0!==r?void 0!==n?[r,n]:r:n})),pr=E(dr(b.sndU)),yr=b.curry(function(n,r){return yn(n,k,r)}),gr=b.curry(function(n,r){return gn(n,k,r)}),mr=k(function(){var n=arguments.length,r=Jn;if(n)for(r=Xn(arguments[--n]);n;)r=_n(Xn(arguments[--n]),r);return r}),br=function(e){return function(n,r,t,u){return t.of(e)}},Ar=br(),jr=k(b.curryN(2,function(r){return r=Xn(r),function(n){return function n(r,t){var u=I(null);for(var e in t){var i=t[e];u[e]=b.isObject(i)?n(r,i):Xn(i)}return En(r,u)}(r,n)}})),xr=jr(Jn),Or=E(Xn([Dn,r])),Ir=E(Xn([Dn,r,0])),wr=E(En(Un,U)),Ur=function(i){return function(n,r,u,e){return function n(r,t){return i(r,t)?e(r,t):c(r,t,u,n)}(n,r)}},Sr=Ur(function(n){return void 0!==n&&!b.isArray(n)&&!b.isObject(n)}),kr=b.curry(function(t,n,r){return!mn(function(n,r){if(!t(n,r))return!0},n,r)}),Er=kr(k),Rr=b.curry(function(t,n,r){return!!mn(function(n,r){if(t(n,r))return!0},n,r)}),Nr=(0,b.curry)(function(u,n,r){var e=[];return nn(Vn,function(n,r){var t=u(n,r);void 0!==t&&e.push(t)},n,r),e}),qr=Nr(k),Mr=rn(k,X),Pr=Mr(k),zr=b.curry(function(t,n,r){return nn(Y,function(n,r){return t(n,r)?1:0},n,r)}),Cr=zr(b.isDefined),Dr=b.curry(function(e,n,r){var i=new Map;return nn(Vn,function(n,r){var t=e(n,r),u=i.get(t);i.set(t,void 0!==u?u+1:1)},n,r),i}),Lr=Dr(k),Wr=b.curry(function(t,u,n,r){return nn(Vn,function(n,r){u=t(u,n,r)},n,r),u}),Fr=b.curry(function(n,r,t,u){var e=[],i=[];nn(Vn,function(n,r){i.push(n),e.push(r)},t,u);for(var o=i.length-1;0<=o;--o)r=n(r,i[o],e[o]);return r}),$r=b.curry(function(t,n,r){return nn(Vn,function(n,r){t(n,r)},n,r)}),Br=b.curry(function(n,t,r,u){var e=n();return nn(Vn,function(n,r){t(e,n,r)},r,u),e}),Jr=b.curry(mn),Tr=b.curry(function(n,r){return void 0!==mn(k,n,r)}),_r=b.curry(function(n,r){return!mn(W,n,r)}),Gr=rn(P,k(function(t){return V(function(n,r){return void 0!==n?void 0!==r?n+t+r:n:r})})),Hr=Gr(k),Kr=Z(x),Qr=Kr(k),Vr=b.curry(function(u,n,r){var e=0,i=0;return nn(Vn,function(n,r){var t=u(n,r);void 0!==t&&(i+=1,e+=t)},n,r),e/i}),Xr=Vr(k),Yr=Z(j),Zr=Yr(k),nt=b.curry(function(t,n,r){return!mn(function(n,r){if(t(n,r))return!0},n,r)}),rt=Rr(k),tt=ur(V(p,1)),ut=tt(D(1)),et=t,it=Jr,ot=ur(Y),ct=ot(L),ft=b.curry(bn),at=ft(k),vt=b.curry(function(n,r){return bn(n(r),tr(r))}),st=k(function(e){var i=D(e);return function(n,r,t,u){return t.map(i,u(void 0!==n?n:e,r))}}),lt=k(function(n){return Ot(n,void 0)}),dt=function(e){return function(n,r,t,u){return u(void 0!==n?e(n,r):n,r)}},ht=function(e){return function(n,r,t,u){return t.map(function(n){return void 0!==n?e(n,r):n},u(n,r))}},pt=k(function(o){return function(n,r,t,u){var e=void 0,i=b.array0;return Hn(n)&&Nn(o,n,e=[],i=[]),t.map(function(n){var r=n?n.length:0,t=i.length,u=r+t;return u===t?i:K(K(Array(u),0,n,0,r),r,i,0,t)},u(e,r))}}),yt=k,gt=er(function(n){return Hn(n)&&n.length?n.length-1:0}),mt=(0,b.curry)(function(f,a){return function(u,n,r,t){var e=Hn(u),i=e&&u.length,o=z(0,i,0,f),c=z(o,i,i,a);return r.map(function(n){var r=n?n.length:0,t=o+r;return K(K(K(Array(i-c+t),0,u,0,o),o,n,0,r),t,u,c,i)},t(e?K(Array(Math.max(0,c-o)),0,u,o,c):void 0,n))}}),bt=function(n){return b.isObject(n)?xt(Zn(wr,Gn,n)):n},At=k,jt=function(n){return l.apply(null,b.keys(n))},xt=k(function(e){return function(r,n,t,u){return t.map(function(n){return In(e,n,r)},u(On(e,r),n))}}),Ot=b.curry(function(e,i){function o(n){return Rn(i,e,n)}return function(n,r,t,u){return t.map(o,u(Rn(e,i,n),r))}}),It=b.curry(An),wt=An(F,F),Ut=An(B(Hn,k(function(n){for(var r=n.length,t=Array(r),u=0;u<r;++u)t[u]=[u,n[u]];return t})),B(b.isArray,k(function(n){for(var r=n.length,t=Array(r),u=0;u<r;++u){var e=n[u];2===e.length&&(t[e[0]]=e[1])}r=t.length;for(var i=0,o=0;o<r;++o){var c=t[o];void 0!==c&&(o!==i&&(t[i]=c),++i)}return t.length=i,t}))),St=An(_,_),kt=k(function(n,r,t,u){return t.map($,u((n instanceof Object||b.isString(n))&&1===n.length?n[0]:void 0,r))}),Et=jn(q(decodeURI),encodeURI),Rt=jn(q(decodeURIComponent),encodeURIComponent),Nt=k(function(n){var r=n||b.object0,t=r.reviver,u=r.replacer,e=r.space;return An(B(b.isString,q(function(n){return JSON.parse(n,t)})),B(b.isDefined,function(n){return JSON.stringify(n,u,e)}))}),qt=b.curry(function(n,r){return jn(S(N(n,"g"),r),S(N(r,"g"),n))}),Mt=k(function(r){var t=1<arguments.length?arguments[1]:r;return An(B(b.isString,function(n){return n.split(t)}),B(b.isArray,function(n){return n.join(r)}))}),Pt=k(function(u){var t=N(1<arguments.length?arguments[1]:u,"");return An(B(b.isString,function(n){var r=t.exec(n);return r?[n.slice(0,Mn(r)),n.slice(Pn(r))]:[n,""]}),function(n){if(b.isArray(n)&&2===n.length){var r=n[0],t=n[1];return t?r+u+t:r}})}),zt=xn(A,A);n.multikeyed=Ln,n.seemsArrayLike=Hn,n.Identity=Kn,n.IdentityAsync=Qn,n.Select=Vn,n.toFunction=Xn,n.assign=Yn,n.modify=Zn,n.modifyAsync=nr,n.remove=rr,n.set=tr,n.traverse=ur,n.compose=function(){var n=arguments.length;if(n<2)return n?arguments[0]:Un;for(var r=Array(n);n--;)r[n]=arguments[n];return r},n.flat=function(){for(var n=[f],r=0,t=arguments.length;r<t;++r)n.push(arguments[r],f);return n},n.lazy=function(e){function i(n,r,t,u){return o(n,r,t,u)}var o=function(n,r,t,u){return(o=Xn(e(i)))(n,r,t,u)};return i},n.choices=function(n){for(var r=arguments.length,t=Array(1<r?r-1:0),u=1;u<r;u++)t[u-1]=arguments[u];return t.length?Bn(t.reduceRight(Bn),n):n},n.choose=er,n.cond=ir,n.condOf=or,n.ifElse=cr,n.orElse=fr,n.chain=ar,n.choice=function(){for(var n=arguments.length,r=Array(n),t=0;t<n;t++)r[t]=arguments[t];return r.reduceRight(Bn,Jn)},n.unless=vr,n.when=sr,n.optional=lr,n.zero=Jn,n.mapIx=function(e){return function(n,r,t,u){return u(n,e(r,n))}},n.setIx=function(e){return function(n,r,t,u){return u(n,e)}},n.tieIx=dr,n.joinIx=hr,n.skipIx=pr,n.getLog=function(n,r){var t=nn(on,function(n){return{p:[n,tn],x:n,c:n}},n,r),u=t.p,e=t.c;u=un(u,["%O"]);for(var i=2;i<u.length;++i)u[0]+=" <= %O";return console.log.apply(console,u),e},n.log=function(){var n=b.curry(function(n,r){return console.log.apply(console,K([],0,arguments,0,arguments.length).concat([n,r])),r});return An(n("get"),n("set"))},n.transform=yr,n.transformAsync=gr,n.seq=mr,n.assignOp=function(n){return[jt(n),br(n)]},n.modifyOp=function(e){return function(n,r,t,u){return t.of(e(n,r))}},n.setOp=br,n.removeOp=Ar,n.branchOr=jr,n.branch=xr,n.branches=function(){for(var n=arguments.length,r={},t=0;t<n;++t)r[arguments[t]]=Un;return xr(r)},n.elems=r,n.elemsTotal=function(n,r,t,u){return Hn(n)?t===Kn?G(u,n,G):t===Vn?e(u,n):o(t,u,n,o):t.of(n)},n.entries=Or,n.keys=Ir,n.matches=function(f){return function(r,n,t,u){if(b.isString(r)){var e=t.map;if(f.global){var i=[""];return i.input=r,i.index=0,Vn===t?function(n,r,t){for(;t=zn(t,r);){var u=n(qn(t),Mn(t));if(void 0!==u)return u}}(u,f,i):e((c=r,function(n){for(var r="",t=0,u=function(n){for(var r=[];Cn!==n;)r.push(n[0],n[1]),n=n[2];return r}(n),e=u.length-2;-2!==e;e+=-2){var i=u[e];r+=c.slice(t,Mn(i));var o=u[e+1];void 0!==o&&(r+=o),t=Pn(i)}return r+c.slice(t)}),function(n,r,t,u,e,i){for(var o=t(Cn);i=zn(i,e);)o=r(r(n(Cn,t(i)),o),u(qn(i),Mn(i)));return o}(e,t.ap,t.of,u,f,i))}var o=r.match(f);if(o)return e(function(n){return r.replace(f,void 0!==n?n:"")},u(o[0],Mn(o)))}var c;return t.of(r)}},n.values=wr,n.children=c,n.flatten=f,n.query=function(){for(var n=[],r=0,t=arguments.length;r<t;++r){var u=Xn(arguments[r]);n.push(Ur(Tr(u)),u)}return n},n.satisfying=Ur,n.leafs=Sr,n.all=kr,n.and=Er,n.any=Rr,n.collectAs=Nr,n.collect=qr,n.concatAs=Mr,n.concat=Pr,n.countIf=zr,n.count=Cr,n.countsAs=Dr,n.counts=Lr,n.foldl=Wr,n.foldr=Fr,n.forEach=$r,n.forEachWith=Br,n.get=t,n.getAs=Jr,n.isDefined=Tr,n.isEmpty=_r,n.joinAs=Gr,n.join=Hr,n.maximumBy=Kr,n.maximum=Qr,n.meanAs=Vr,n.mean=Xr,n.minimumBy=Yr,n.minimum=Zr,n.none=nt,n.or=rt,n.productAs=tt,n.product=ut,n.select=et,n.selectAs=it,n.sumAs=ot,n.sum=ct,n.lens=ft,n.getter=function(e){return function(n,r,t,u){return u(e(n,r),r)}},n.setter=at,n.foldTraversalLens=vt,n.defaults=function(e){function i(n){return Rn(e,void 0,n)}return function(n,r,t,u){return t.map(i,u(void 0!==n?n:e,r))}},n.define=st,n.normalize=function(n){return[dt(n),ht(n)]},n.required=lt,n.reread=dt,n.rewrite=ht,n.append=v,n.filter=pt,n.find=s,n.findWith=function(n){var r=Xn(n),t=Tr(r);return[1<arguments.length?s(t,arguments[1]):s(t),r]},n.first=0,n.index=yt,n.last=gt,n.prefix=function(n){return mt(0,n)},n.slice=mt,n.suffix=function(n){return mt(0===n?1/0:n?-n:0,void 0)},n.pickIn=bt,n.prop=At,n.props=l,n.propsOf=jt,n.removable=function(){function e(n){if(!(n instanceof Object))return n;for(var r=0,t=u.length;r<t;++r)if(b.hasU(u[r],n))return n}for(var n=arguments.length,u=Array(n),r=0;r<n;r++)u[r]=arguments[r];return function(n,r,t,u){return t.map(e,u(n,r))}},n.valueOr=function(e){return function(n,r,t,u){return u(null!=n?n:e,r)}},n.pick=xt,n.replace=Ot,n.getInverse=d,n.iso=It,n.array=function(n){var r=d(n),e=t(n),i=function(n){return H(r,n)};return function(n,r,t,u){return t.map(i,u(H(e,n),r))}},n.inverse=function(e){return function(n,r,t,u){return t.map(function(n){return mn(k,e,n)},u(pn(e,n,void 0),r))}},n.complement=wt,n.identity=Un,n.is=function(r){return An(function(n){return b.acyclicEqualsU(r,n)},function(n){return!0===n?r:void 0})},n.indexed=Ut,n.reverse=St,n.singleton=kt,n.disjoint=function(i){return function(n,r,t,u){var e=Fn(i);return t.map(e,u(Wn(i,n),r))}},n.keyed=Dn,n.uri=Et,n.uriComponent=Rt,n.json=Nt,n.dropPrefix=function(r){return jn(function(n){return n.startsWith(r)?n.slice(r.length):void 0},function(n){return r+n})},n.dropSuffix=function(r){return jn(function(n){return n.endsWith(r)?n.slice(0,n.length-r.length):void 0},function(n){return n+r})},n.replaces=qt,n.split=Mt,n.uncouple=Pt,n.add=function(n){return xn(y(n),y(-n))},n.divide=function(n){return xn(m(n),g(n))},n.multiply=function(n){return xn(g(n),m(n))},n.negate=zt,n.subtract=function(n){return xn(y(-n),y(n))},n.pointer=function(n){"#"===n[0]&&(n=decodeURIComponent(n));for(var r=n.split("/"),t=r.length,u=1;u<t;++u){var e=r[u];r[u-1]=/^(0|[1-9]\d*)$/.test(e)?cr(T,Number(e),e):"-"===e?cr(T,v,e):e.replace("~1","/").replace("~0","~")}return r.length=t-1,r},Object.defineProperty(n,"__esModule",{value:!0})});
{
"name": "partial.lenses",
"version": "14.0.0",
"version": "14.1.0",
"description": "Partial lenses is a comprehensive, high-performance optics library for JavaScript",

@@ -5,0 +5,0 @@ "module": "dist/partial.lenses.es.js",

@@ -26,2 +26,12 @@ import * as I from './ext/infestines'

const tryCatch = fn => x => {
try {
return fn(x)
} catch (e) {
return e
}
}
//
const returnAsync = x => Promise.resolve(x)

@@ -67,7 +77,2 @@

function freezeArrayOfObjects(xs) {
xs.forEach(I.freeze)
return I.freeze(xs)
}
function freezeObjectOfObjects(xs) {

@@ -758,3 +763,3 @@ if (xs) for (const k in xs) I.freeze(xs[k])

I.isInstanceOf(Object),
(process.env.NODE_ENV === 'production' ? id : C.res(freezeArrayOfObjects))(
(process.env.NODE_ENV === 'production' ? id : C.res(freezeObjectOfObjects))(
function keyed(x) {

@@ -781,2 +786,41 @@ x = toObject(x)

export const multikeyed = isoU(
expect(
I.isInstanceOf(Object),
(process.env.NODE_ENV === 'production' ? id : C.res(freezeObjectOfObjects))(
o => {
o = toObject(o)
const ps = []
for (const k in o) {
const v = o[k]
if (I.isArray(v))
for (let i = 0, n = v.length; i < n; ++i) ps.push([k, v[i]])
else ps.push([k, v])
}
return ps
}
)
),
expect(
I.isArray,
(process.env.NODE_ENV === 'production' ? id : C.res(freezeObjectOfObjects))(
ps => {
const o = I.create(null)
for (let i = 0, n = ps.length; i < n; ++i) {
const entry = ps[i]
if (entry.length === 2) {
const k = entry[0]
const v = entry[1]
const was = o[k]
if (was === void 0) o[k] = v
else if (I.isArray(was)) was.push(v)
else o[k] = [was, v]
}
}
return I.assign({}, o)
}
)
)
)
//

@@ -1732,3 +1776,3 @@

seemsArrayLike,
(process.env.NODE_ENV === 'production' ? id : C.res(freezeArrayOfObjects))(
(process.env.NODE_ENV === 'production' ? id : C.res(freezeObjectOfObjects))(
function indexed(xs) {

@@ -1796,5 +1840,8 @@ const n = xs.length

export const uri = stringIsoU(decodeURI, encodeURI)
export const uri = stringIsoU(tryCatch(decodeURI), encodeURI)
export const uriComponent = stringIsoU(decodeURIComponent, encodeURIComponent)
export const uriComponent = stringIsoU(
tryCatch(decodeURIComponent),
encodeURIComponent
)

@@ -1808,3 +1855,3 @@ export const json = (process.env.NODE_ENV === 'production'

return isoU(
expect(I.isString, text => JSON.parse(text, reviver)),
expect(I.isString, tryCatch(text => JSON.parse(text, reviver))),
expect(I.isDefined, value => JSON.stringify(value, replacer, space))

@@ -1885,3 +1932,3 @@ )

export const pointer = s => {
if (s[0] === '#') s = getAsU(id, uriComponent, s)
if (s[0] === '#') s = decodeURIComponent(s)
const ts = s.split('/')

@@ -1888,0 +1935,0 @@ const n = ts.length

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc