partial.lenses
Advanced tools
Comparing version 14.15.0 to 14.16.0
@@ -1,1 +0,1 @@ | ||
!function(r,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("infestines")):"function"==typeof define&&define.amd?define(["exports","infestines"],n):n(r.L={},r.I)}(this,function(r,g){"use strict";function n(r){switch(typeof r){case"boolean":case"number":case"string":return!0;default:return!1}}function i(r,n){for(var t=0,u=n[w];t<u;++t){var i=r(n[t],t);if(void 0!==i)return i}}function e(r,n,t,u){var i=r.map,e=r.ap,o=r.of(lr),f=t[w];if(i===g.sndU){for(var c=0;c<f;++c)o=e(o,n(t[c],c));return o}for(var a=lr(u),v=0;v<f;++v)o=e(i(a,o),n(t[v],v));return i(hr,o)}function a(r,n){var t=n[w]-r;if(t<2)return t?Bn(n[r]):Pr;for(var i=Bn(n[r+--t]),e=function(t,u){return function(r,n){return i(r,n,t,u)}};--t;)e=Sr(Bn(n[r+t]),e);var o=Bn(n[r]);return function(r,n,t,u){return o(r,n,t,e(t,u))}}function u(r,n,t,u){for(var i,e,o=r[w],f=Array(o),c=0;c<o;++c)switch(f[c]=t,typeof(i=r[c])){case"string":t=br(i,t);break;case"number":t=xr(i,t);break;default:t=a(c,r)(t,r[c-1],g.Identity,n||g.always(u)),o=c}for(o===r[w]&&(t=n?n(t,r[o-1]):u);0<=--o;)t=g.isString(e=r[o])?Or(e,t,f[o]):Ir(e,t,f[o]);return t}function t(r){this[In]=r,g.freeze(this)}function o(r){for(;Fn[w]<r;)Fn.push(new Un(Fn[w]));return Fn}function y(r,n,t,u){if(void 0!==u){if(n in t)return g.acyclicEqualsU(t[n],u);t[n]=u;var i=r[n];return!i||i(u)}}function l(f,o){if(void 0===o||It(kn,Ot,o))return function(r,n){return g.acyclicEqualsU(o,n)};if(En(o)){var t=o[In][0][In];return t<0?C:function(r,n){return y(f,t,r,n)}}if(g.isArray(o)){for(var c=[],a=[],v=void 0,s=o[w],r=0;r<s;++r){var n=o[r];Sn(n)?f[v=n[In]]=qn:(void 0!==v?a:c).push(l(f,n))}return function(r,n){if(Ln(n)){var t=n[w];if(!(void 0!==v?t<s-1:t!==s)){for(var u=c[w],i=0;i<u;++i)if(!c[i](r,n[i]))return;var e=a[w];t-=e;for(var o=0;o<e;++o)if(!a[o](r,n[t+o]))return;return!(0<=v)||y(f,v,r,cr(Array(t-u),0,n,u,t))}}}}var d=o[In];d&&(f[d=d[0][In]]=Mn),o=Gn(gt,function(r,n){return wn(n)?void 0:l(f,r)},o);var p=Nt(gt,o);return function(r,n){if(!kn(n)&&!g.isArray(n)){n=Lr(n);var t=0<=d&&{},u=0;for(var i in n){var e=o[i];if(e){if(!e(r,n[i]))return;u++}else{if(void 0===d)return;t&&(t[i]=n[i])}}return u===p&&(!t||y(f,d,r,nr(t)))}}}function f(e,r){if(!wn(r)){if(void 0===e||It(kn,Ot,e))return g.always(e);if(En(e)){var n=e[In][0][In];return function(r){return r[n]}}if(g.isArray(e)){for(var a=[],v=[],s=void 0,t=e[w],u=0;u<t;++u){var i=e[u];Sn(i)?s=i[In]:(void 0!==s?v:a).push(f(i))}return tr(function(r){for(var n=[],t=0,u=a[w];t<u;++t)Nn(n,a[t](r));if(0<=s){var i=r[s];if(i)for(var e=0,o=i[w];e<o;++e)Nn(n,i[e])}for(var f=0,c=v[w];f<c;++f)Nn(n,v[f](r));return n})}var o=e[In];return o&&(o=o[0][In]),e=Gn(gt,f,e),tr(function(r){var n={};for(var t in e)zn(n,t,e[t](r));if(0<=o){var u=r[o];if(u)for(var i in u)zn(n,i,u[i])}return n})}}function c(){var r=arguments[w];if(r<2)return r?arguments[0]:Pr;for(var n=Array(r);r--;)n[r]=arguments[r];return n}function v(i){function e(r,n,t,u){return o(r,n,t,u)}var o=function(r,n,t,u){return(o=Bn(i(e)))(r,n,t,u)};return e}function s(r,n,t,u){return Ln(r)?ln(r,n,t,u):t.of(r)}function d(r,n,t,u){return g.isArray(r)?ln(r,n,t,u):g.isObject(r)?gt(r,n,t,u):t.of(r)}function p(r,n,u,i){return function r(n,t){return g.isArray(n)?ln(n,t,u,r):void 0!==n?i(n,t):u.of(n)}(r,n)}function m(n,r){return 1<arguments[w]?Mr(C,n,r):function(r){return Mr(C,n,r)}}function h(o){var f=1<arguments[w]?arguments[1]:{hint:0};return function(r,n,t,u){var i=Ln(r)?r:"",e=f.hint=function(r,n,t){var u=r.hint,i=t[w];i<=u&&(u=i-1),u<0&&(u=0);for(var e=u-1;0<=e&&u<i;++u,--e){if(n(t[u],u,r))return u;if(n(t[e],e,r))return e}for(;u<i;++u)if(n(t[u],u,r))return u;for(;0<=e;--e)if(n(t[e],e,r))return e;return i}(f,o,i);return t.map(function(r){return Ir(e,r,i)},u(i[e],e))}}function A(){for(var r,n=arguments[w],t={},u=0;u<n;++u)t[r=arguments[u]]=r;return gu(t)}function b(n,r,t,u){var i=Ln(n)?n[w]:0;return t.map(function(r){return Ir(i,r,n)},u(void 0,i))}function O(n,r){return 1<arguments[w]?Fr(n,r):function(r){return Fr(n,r)}}function j(r){var n=0;g.isFunction(r)&&(r=r.apply(null,o(n=r[w])));var t=Array(n),u=r.map(function(r){return l(t,r)}),i=r.map(f);return Rr(Rn(n,u[0],i[1]),Rn(n,u[1],i[0]))}function x(r){var n=0;g.isFunction(r)&&(r=r.apply(null,o(n=r[w])));var t=l(Array(n),r);return I(function(r){return t(Array(n),r)})}function I(r){var n=On(r);return Rr(n,n)}var w="length",S=function(r,n){return r+n},U=function(r,n){return r*n},E=g.curry(S),F=g.curry(U),k=g.curry(function(r,n){return n/r}),q=function(r){return-r},M=function(r,n){return r<n},z=function(r,n){return n<r},N=g.curry(g.isInstanceOfU),R=function(r){return g.assign(g.create(null),r)},T=g.freeze(R(g.object0)),D=g.curry(function(r,n,t){return t.replace(r,n)}),W=Symbol.iterator,C=function(r){return r},L=function(r){return r},P=function(r){return r},B=function(r,n){return g.isString(r)?new RegExp(D(/[|\\{}()[\]^$+*?.]/g,"\\$&",r),n):r},$=function(r){return g.isArray(r)&&2===r[w]},_=g.curry(function(r,n){return[r,Uu(n)]}),G=function(n){return P(function(r){try{return n(r)}catch(r){return r}})},J=function(r){return void 0!==r?String(r):""},H=function(r,n,t,u){return void 0!==u?Math.min(Math.max(r,u<0?n+u:u),n):t},K=function(n){return function(r){return[r,n]}},Q=function(n){return function(r){return void 0!==n&&void 0!==r?[n,r]:void 0}},V=function(n){return function(r){return void 0!==r?r:n}},X=V(0),Y=g.always(!0),Z=function(r){return void 0!==r?!r:r},rr=function(n,t){return P(function(r){return n(r)?t(r):void 0})},nr=C,tr=C,ur=function(r){return!(r instanceof Object)||g.isArray(r)},ir=C(function(r){if(Ln(r)){for(var n=r[w],t=Array(n),u=0;n;)t[u++]=r[--n];return t}}),er=C(function(r,n,t){for(var u=n[w],i=Array(u),e=0,o=!0,f=0;f<u;++f){var c=n[f],a=r(c,f);t!==a&&(i[e++]=a,o&&(o=c===a&&(0!==c||1/c==1/a)||c!=c&&a!=a))}return e!==u?(i[w]=e,i):o?n:i}),or=function(r,n){return Ln(n)?er(r,n,void 0):void 0},fr=C(function(r,n){if(g.isArray(n)){for(var t=n[w],u=Array(),i=0;i<t;++i)if(void 0===(u[i]=r(n[i])))return;return u}}),cr=C(function(r,n,t,u,i){for(;u<i;)r[n++]=t[u++];return r}),ar=function(r,n){return g.Applicative(g.sndU,g.always(n),r)},vr=function(r){return ar(r.concat,(0,r.empty)())},sr=ar(S,0),dr=function(o){return g.curry(function(u,r,n){var i=void 0,e=void 0;return Mr(function(r,n){var t=u(r,n);void 0===t||void 0!==e&&!o(t,e)||(i=r,e=t)},r,n),i})},pr=function(r,n,t,u){return Bn(t)(u,void 0,r,n)},yr=function(i,r){return g.curryN(4,P(function(t,u){return u=r(u),function(r,n){return i(pr(u,t,r,n))}}))},lr=function(t){return function(n){return function(r){return t!==r?[r,n]:n}}},mr=function(r,n){for(;lr!==r;)n.push(r[0]),r=r[1];return n},hr=C(function(r){return mr(r,[]).reverse()}),Ar=g.Applicative(function(r,n){var t=n.p,u=n.x,i=n.c;return u=r(u),g.isFunction(u)||(t=[u,t]),{p:t,x:u,c:i}},function(r){return{p:[],x:r,c:void 0}},function(r,n){var t=void 0!==r.c?r:n;return{p:t.p,x:r.x(n.x),c:t.c}}),gr=function(e,o){return function(i){return function(n,r,t,u){return t.map(function(r){return o(i,r,n)},u(e(i,n),i))}}},br=function(r,n){return n instanceof Object?n[r]:void 0},Or=C(function(r,n,t){return void 0!==n?g.assocPartialU(r,n,t):g.dissocPartialU(r,t)||g.object0}),jr=gr(br,Or),xr=function(r,n){return Ln(n)?n[r]:void 0},Ir=C(function(r,n,t){Ln(t)||(t="");var u=t[w];if(void 0!==n){for(var i=Math.max(r+1,u),e=Array(i),o=0;o<i;++o)e[o]=t[o];return e[r]=n,e}if(u<=r)return cr(Array(u),0,t,0,u);for(var f=Array(u-1),c=0;c<r;++c)f[c]=t[c];for(var a=r+1;a<u;++a)f[a-1]=t[a];return f}),wr=gr(xr,Ir),Sr=function(i,r){return function(t,u){return u=r(t,u),function(r,n){return i(r,n,t,u)}}},Ur=function(r,n,t){Ln(n)||(n="");var u=0;return kr(r,function(){return n[u++]},t)},Er=C(function(r,n,t){switch(typeof r){case"string":return Or(r,n,t);case"number":return Ir(r,n,t);case"object":return u(r,0,t,n);default:return 4===r[w]?r(t,void 0,g.Identity,g.always(n)):t}}),Fr=function(r,n){return Er(r,n,void 0)},kr=C(function(r,n,t){switch(typeof r){case"string":return Or(r,n(br(r,t),r),t);case"number":return Ir(r,n(xr(r,t),r),t);case"object":return u(r,n,t);default:return 4===r[w]?r(t,void 0,g.Identity,n):(n(r(t,void 0),void 0),t)}}),qr=function(r,n,t){return g.resolve(Bn(r)(t,void 0,g.IdentityAsync,n))},Mr=C(function(r,n,t){switch(typeof n){case"string":return r(br(n,t),n);case"number":return r(xr(n,t),n);case"object":for(var u,i=n[w],e=0;e<i;++e)switch(typeof(u=n[e])){case"string":t=br(u,t);break;case"number":t=xr(u,t);break;default:return a(e,n)(t,n[e-1],Pn,r)}return r(t,n[i-1]);default:return r!==C&&4!==n[w]?r(n(t,void 0),void 0):n(t,void 0,Pn,r)}}),zr=function(r,n){return Mr(C,r,n)},Nr=function(i,e){return P(function(n,t,r,u){return r.map(function(r){return e(r,n,t)},u(i(n,t),t))})},Rr=function(i,e){return P(function(r,n,t,u){return t.map(e,u(i(r),n))})},Tr=function(r,n){return Rr(rr(g.isString,r),rr(g.isString,n))},Dr=function(r,n){return Rr(rr(g.isNumber,r),rr(g.isNumber,n))},Wr=C(function(r,n){var t=void 0;for(var u in r){var i=r[u],e=g.isObject(i)?Wr(i,n):Mr(C,i,n);void 0!==e&&(t||(t={}),t[u]=e)}return t}),Cr=C(function(r,n,t){for(var u in r){var i=n&&n[u],e=r[u];t=g.isObject(e)?Cr(e,i,t):Er(e,i,t)}return t}),Lr=function(r){return g.constructorOf(r)!==Object?g.toObject(r):r},Pr=function(r,n,t,u){return u(r,n)},Br=C(function(i){return function(r){for(var n={},t=i[w];t--;){var u=r[0];void 0!==u&&(n[i[t]]=u),r=r[1]}return n}}),$r=C(function(r,n,t,u,i,e){var o=void 0,f=!0,c={};for(var a in n){o=1;var v=t[a],s=n[a](v,a,i,e);void 0!==s?(c[a]=s,f&&(f=v===s&&(0!==v||1/v==1/s)||v!=v&&s!=s)):f=!1}var d=o;for(var p in t)if(void 0===(d&&n[p])){o=1;var y=t[p],l=r(y,p,i,e);void 0!==l?(c[p]=l,f&&(f=y===l&&(0!==y||1/y==1/l)||y!=y&&l!=l)):f=!1}return o?f&&t===u?u:c:u}),_r=function(h,A){return function(r,n,t,u){var i=r instanceof Object?Lr(r):g.object0;if(g.Identity===t)return $r(h,A,i,r,t,u);if(Pn!==t){var e=t.map,o=t.ap,f=t.of,c=f(K),a=[];for(var v in A)a.push(v),c=o(e(K,c),A[v](i[v],v,t,u));var s=!!a[w]||void 0;for(var d in i)void 0===(s&&A[d])&&(a.push(d),c=o(e(K,c),h(i[d],d,t,u)));return a[w]?e(Br(a),c):f(r)}for(var p in A){var y=A[p](i[p],p,t,u);if(void 0!==y)return y}for(var l in i)if(void 0===A[l]){var m=h(i[l],l,t,u);if(void 0!==m)return m}}},Gr=function(r,n,t){return g.acyclicEqualsU(t,r)?n:t},Jr=C(function(r,n,t,u){for(var i,e=0,o=n[w];e<o;++e)(r(i=n[e],e)?t:u).push(i)}),Hr="lastIndex",Kr="index",Qr=function(r){return r[Kr]+r[0][w]},Vr=C(function(r,n){var t=n[Hr];n[Hr]=Qr(r);var u=n.exec(r.input);return n[Hr]=t,u&&u[0]&&u}),Xr=function(t){return function(n){return function(r){return[t,r,n]}}},Yr=Rr(rr(N(Object),C(function(r){r=Lr(r);var n=[];for(var t in r)n.push([t,r[t]]);return n})),rr(g.isArray,C(function(r){for(var n={},t=0,u=r[w];t<u;++t){var i=r[t];2===i[w]&&(n[i[0]]=i[1])}return n}))),Zr=C(function(r,n){if(n instanceof Object){var t={};for(var u in n=Lr(n)){var i=r(u),e=t[i];void 0===e&&(t[i]=e={}),e[u]=n[u]}return t}}),rn=C(function(e){return function(r){if(r instanceof Object){var n={};for(var t in r=Lr(r)){var u=r[t];if(u instanceof Object)for(var i in u=Lr(u))e(i)===t&&(n[i]=u[i])}return n}}}),nn=function(e,o,f){return f=Bn(f),P(function(r,n,t,u){var i=-1;return f(r,n,t,function(r,n){return e<=++i&&!(o<=i)?u(r,n):t.of(r)})})},tn=function(r,n){if(void 0!==n){var t=r(n);if(void 0!==t)return t}return n},un=function(i){return function(r,n,t,u){return t.map(function(r){return tn(i,r)},u(r,n))}},en=function(i){return function(r,n,t,u){return u(tn(i,r),n)}},on=function(n){return at(v(function(r){return[n,d,r]}))},fn=function(n){return at(v(function(r){return Vn(fu(n),[d,r])}))},cn=function(r,n,t){return void 0!==r(n,t,Pn,C)},an=function(t){return function(r,n){return cn(t,r,n)}},vn=function(e,o){return function(i){return function(r,n,t,u){return(i(r,n)?e:o)(r,n,t,u)}}},sn=function(i,e){return e=Bn(e),i=Bn(i),function(r,n,t,u){return(cn(e,r,n)?e:i)(r,n,t,u)}},dn=function(e,o){o=Bn(o),e=Bn(e);var f=function(r){r=g.always(r);var n=o(void 0,void 0,g.Identity,r);return void 0===n?e(void 0,void 0,g.Identity,r):n};return function(r,n,t,u){var i=o(r,n,Pn,C);return t.map(f,u(void 0===i?e(r,n,Pn,C):i,n))}},pn=function(u){return P(function(r){for(var n=arguments[w],t=arguments[--n];n;)t=u(t,arguments[--n]);return t})},yn=function(r,n,t,u){return t.of(r)},ln=function(r,n,t,u){return t===g.Identity?er(u,r,void 0):t===Pn?i(u,r):e(t,u,r,void 0)},mn=function(i,e){return function(r,n,t,u){return t.chain(function(r){return e(r,n,t,u)},i(r,n,t,u))}},hn=function(r,n){return[n,hu(r)]},An=function(t){return function(r){for(var n=r;void 0!==r;)r=t(n=r);return n}},gn=function(o,f,c){return function(r,n){var t=f[w];if(Ln(r)){Ln(n)||(n="");for(var u=Math.max(t,r[w],n[w]),i=Array(u),e=0;e<u;++e)if(void 0===(i[e]=o(e<t?f[e]:c,r[e],n[e])))return;return i}}},bn=(0,g.curry)(function(r,n){return Nr(gn(zr,n,r),gn(Er,n,r))}),On=function(n){return function(r){return void 0!==r&&n(r)?r:void 0}},jn=(0,g.id)(function(u){return function(r){for(var n=[];;){var t=u(r);if(!$(t))return[r,n];r=t[0],n.push(t[1])}}}),xn=function(i){return function(r){if($(r)){var n=r[1];if(g.isArray(n)){for(var t=r[0],u=n[w];u--;)t=i(nr([t,n[u]]));return t}}}},In="珳襱댎纚䤤鬖罺좴",wn=function(r){return g.isString(r)&&0===r.indexOf(In)},Sn=N(t),Un=g.inherit(function(r){this[In+r]=this[In]=g.freeze([new t(r)]),g.freeze(this)},Object,g.assocPartialU(W,function(){return this[In][W]()})),En=N(Un),Fn=[],kn=function(r){return null==r||"object"!=typeof r},qn=function(r){return void 0===r||g.isArray(r)},Mn=function(r){return void 0===r||N(Object)},zn=function(r,n,t){void 0!==t&&(r[n]=t)},Nn=function(r,n){void 0!==n&&r.push(n)},Rn=function(t,u,i){return function(r){var n=Array(t);if(u(n,r))return i(n)}},Tn=C(function(a){return function(r){if(g.isArray(r)){for(var n=[],t=0,u=r.length;t<u;++t){var i=r[t];if(!g.isArray(i))return;if(!i.length)return;var e=a(i[0]);if(void 0===e)return;for(var o=0,f=i.length;o<f;++o){var c=i[o];if(!g.identicalU(e,a(c)))return;n.push(c)}}return n}}}),Dn=C(function(c){return function(r){if(g.isArray(r)){for(var n=new Map,t=0,u=r.length;t<u;++t){var i=r[t],e=c(i);if(void 0===e)return;var o=n.get(e);void 0!==o?o.push(i):n.set(e,[i])}var f=[];return n.forEach(function(r){return f.push(r)}),f}}}),Wn=C(function(o){return function(r){if($(r)){var n=r[1],t=n[w];if(t){for(var u=r[0],i=Array(t),e=0;e<t;++e)if(void 0===(i[e]=o([u,n[e]])))return;return i}}}}),Cn=C(function(f){return function(r){if(g.isArray(r)){var n=r[w];if(n){var t=f(r[0]);if($(t)){var u=Array(n),i=t[0];u[0]=t[1];for(var e=1;e<n;++e){var o=f(r[e]);if(!$(o)||!g.acyclicEqualsU(i,o[0]))return;u[e]=o[1]}return[i,u]}}}}}),Ln=function(r){return r instanceof Object&&(r=r[w])===r>>0&&0<=r||g.isString(r)},Pn=ar(function(r,n){return void 0!==r?r:n}),Bn=C(function(r){switch(typeof r){case"string":return jr(r);case"number":return wr(r);case"object":return a(0,r);default:return 4===r[w]?r:(i=r,P(function(r,n,t,u){return t.map(g.always(r),u(i(r,n),n))}))}var i}),$n=g.curry(function(r,n,t){return Er([r,ju],n,t)}),_n=g.curry(Ur),Gn=g.curry(kr),Jn=g.curry(qr),Hn=g.curry(function(r,n){return Er(r,void 0,n)}),Kn=g.curry(Er),Qn=g.curry(pr),Vn=pn(sn),Xn=function(i){return P(function(r,n,t,u){return Bn(i(r,n))(r,n,t,u)})},Yn=C(function(){for(var r=arguments[w],n=yn;r--;){var t=arguments[r];n=t[w]<2?Bn(t[0]):vn(Bn(t[1]),n)(t[0])}return n}),Zn=C(function(e){e=Bn(e);var o=arguments[w]-1;if(!o)return yn;var r=arguments[o];r=1===r[w]?(--o,Bn(r[0])):yn;for(var f=Array(o),c=Array(o+1),n=0;n<o;++n){var t=arguments[n+1];f[n]=t[0],c[n]=Bn(t[1])}return c[o]=r,function(r,n,t,u){var i=o;return e(r,n,Pn,function(r,n){for(var t=0;t<i;++t)if(f[t](r,n)){if(0===(i=t))return 0;break}}),c[i](r,n,t,u)}}),rt=g.curry(function(r,n,t){return vn(Bn(n),Bn(t))(r)}),nt=g.curry(sn),tt=g.curry(function(t,r){return[r,Xn(function(r,n){return void 0!==r?t(r,n):yn})]}),ut=vn(yn,Pr),it=vn(Pr,yn),et=it(g.isDefined),ot=g.curry(function(i,e){return e=Bn(e),P(function(r,t,n,u){return e(r,t,n,function(r,n){return u(r,i(n,t))})})}),ft=L(ot(function(r,n){return void 0!==n?void 0!==r?[n,r]:n:r})),ct=L(ot(g.sndU)),at=g.curry(function(r,n){return kr(r,C,n)}),vt=g.curry(function(r,n){return qr(r,C,n)}),st=C(function(){var r=arguments[w],n=yn;if(r)for(n=Bn(arguments[--r]);r;)n=mn(Bn(arguments[--r]),n);return n}),dt=C(g.curryN(2,function(n){return n=Bn(n),function(r){return function r(n,t){var u=g.create(null);for(var i in t){var e=t[i];u[i]=g.isObject(e)?r(n,e):Bn(e)}return _r(n,u)}(n,r)}})),pt=dt(yn),yt=L(Bn([Yr,s])),lt=L(Bn([Yr,s,0])),mt=g.curry(nn),ht=mt(0),At=g.curry(function(r,n){return nn(r,void 0,n)}),gt=L(_r(Pr,T)),bt=function(e){return function(r,n,u,i){return function r(n,t){return e(n,t)?i(n,t):d(n,t,u,r)}(r,n)}},Ot=bt(function(r){return void 0!==r&&!g.isArray(r)&&!g.isObject(r)}),jt=g.curry(function(t,r,n){return!Mr(function(r,n){if(!t(r,n))return!0},r,n)}),xt=jt(C),It=g.curry(function(t,r,n){var u=!1;return Mr(function(r,n){if(!t(r,n))return u=!1;u=!0},r,n),u}),wt=It(C),St=g.curry(function(t,r,n){return!!Mr(function(r,n){if(t(r,n))return!0},r,n)}),Ut=(0,g.curry)(function(u,r,n){var i=[];return Mr(function(r,n){var t=u(r,n);void 0!==t&&i.push(t)},r,n),i}),Et=Ut(C),Ft=(0,g.curry)(function(t,r,n){var u=[];return Mr(function(r,n){u.push(t(r,n))},r,n),u}),kt=Ft(C),qt=yr(C,vr),Mt=qt(C),zt=g.curry(function(t,r,n){return pr(sr,function(r,n){return t(r,n)?1:0},r,n)}),Nt=zt(g.isDefined),Rt=g.curry(function(i,r,n){var e=new Map;return Mr(function(r,n){var t=i(r,n),u=e.get(t);e.set(t,void 0!==u?u+1:1)},r,n),e}),Tt=Rt(C),Dt=g.curry(function(t,u,r,n){return Mr(function(r,n){u=t(u,r,n)},r,n),u}),Wt=g.curry(function(r,n,t,u){var i=[],e=[];Mr(function(r,n){e.push(r),i.push(n)},t,u);for(var o=e[w]-1;0<=o;--o)n=r(n,e[o],i[o]);return n}),Ct=g.curry(function(t,r,n){return Mr(function(r,n){t(r,n)},r,n)}),Lt=g.curry(function(r,t,n,u){var i=r();return Mr(function(r,n){t(i,r,n)},n,u),i}),Pt=g.curry(Mr),Bt=g.curry(function(r,n){return void 0!==Mr(C,r,n)}),$t=g.curry(function(r,n){return!Mr(Y,r,n)}),_t=yr(J,C(function(t){return ar(function(r,n){return void 0!==r?void 0!==n?r+t+n:r:n})})),Gt=_t(C),Jt=dr(z),Ht=Jt(C),Kt=g.curry(function(u,r,n){var i=0,e=0;return Mr(function(r,n){var t=u(r,n);void 0!==t&&(e+=1,i+=t)},r,n),i/e}),Qt=Kt(C),Vt=dr(M),Xt=Vt(C),Yt=g.curry(function(t,r,n){return!Mr(function(r,n){if(t(r,n))return!0},r,n)}),Zt=St(C),ru=Qn(ar(U,1)),nu=ru(V(1)),tu=m,uu=Pt,iu=Qn(sr),eu=iu(X),ou=g.curry(function(r,n){return Nr(r(n),Kn(n))}),fu=function(i){return function(r,n,t,u){return u(i(r,n),n)}},cu=g.curry(Nr),au=cu(C),vu=function(i){return function(r,n,t,u){return u(void 0!==r?i(r,n):r,n)}},su=function(i){return function(r,n,t,u){return t.map(function(r){return void 0!==r?i(r,n):r},u(r,n))}},du=C(function(o){return function(r,n,t,u){var i=void 0,e=g.array0;return Ln(r)&&Jr(o,r,i=[],e=[]),t.map(function(r){var n=r?r[w]:0,t=e[w],u=n+t;return u===t?e:cr(cr(Array(u),0,r,0,n),n,e,0,t)},u(i,n))}}),pu=C,yu=Xn(function(r){return Ln(r)&&r[w]?r[w]-1:0}),lu=function(r){return mu(0,r)},mu=(0,g.curry)(function(c,a){return function(u,r,n,t){var i=Ln(u),e=i&&u[w],o=H(0,e,0,c),f=H(o,e,e,a);return n.map(function(r){var n=r?r[w]:0,t=o+n;return cr(cr(cr(Array(e-f+t),0,u,0,o),o,r,0,n),t,u,f,e)},t(i?cr(Array(Math.max(0,f-o)),0,u,o,f):void 0,r))}}),hu=function(r){return g.isObject(r)?gu(Gn(gt,hn,r)):r},Au=C,gu=C(function(i){return function(n,r,t,u){return t.map(function(r){return Cr(i,r,n)},u(Wr(i,n),r))}}),bu=g.curry(function(i,e){function o(r){return Gr(e,i,r)}return function(r,n,t,u){return t.map(o,u(Gr(i,e,r),n))}}),Ou=b,ju=C(function(n,r,t,u){return t.map(function(r){return g.assign({},n instanceof Object?n:null,r)},u(void 0,r))}),xu=L(Bn([lu(0),0])),Iu=L(_(b)),wu=L(_(ju)),Su=L(_(xu)),Uu=function(i){return function(r,n,t,u){return t.of(i)}},Eu=Uu(),Fu=L(bn(Eu)),ku=g.curry(Rr),qu=new Un(-1),Mu=pn(dn),zu=g.curry(function(r,n){return Rr(Gn(r,m(n)),Gn(r,O(n)))}),Nu=g.curry(function(r,n){return[r,n,Ru(r)]}),Ru=function(i){return function(r,n,t,u){return t.map(function(r){return Mr(C,i,r)},u(Er(i,r,void 0),n))}},Tu=g.curry(dn),Du=Rr(Z,Z),Wu=function(r){var n=O(r),i=m(r),e=function(r){return or(n,r)};return function(r,n,t,u){return t.map(e,u(or(i,r),n))}},Cu=Rr(rr(Ln,C(function(r){for(var n=r[w],t=Array(n),u=0;u<n;++u)t[u]=[u,r[u]];return t})),rr(g.isArray,C(function(r){for(var n=r[w],t=Array(n),u=0;u<n;++u){var i=r[u];2===i[w]&&(t[i[0]]=i[1])}n=t[w];for(var e=0,o=0;o<n;++o){var f=t[o];void 0!==f&&(o!==e&&(t[e]=f),++e)}return t[w]=e,t}))),Lu=Rr(ir,ir),Pu=L(j(function(r){return[[r],r]})),Bu=function(e){return function(r,n,t,u){var i=rn(e);return t.map(i,u(Zr(e,r),n))}},$u=Rr(rr(N(Object),C(function(r){r=Lr(r);var n=[];for(var t in r){var u=r[t];if(g.isArray(u))for(var i=0,e=u[w];i<e;++i)n.push([t,u[i]]);else n.push([t,u])}return n})),rr(g.isArray,C(function(r){for(var n=g.create(null),t=0,u=r[w];t<u;++t){var i=r[t];if(2===i[w]){var e=i[0],o=i[1],f=n[e];void 0===f?n[e]=o:g.isArray(f)?f.push(o):n[e]=[f,o]}}return g.assign({},n)}))),_u=C(function(r){var n=r||g.object0,t=n.reviver,u=n.replacer,i=n.space;return Rr(rr(g.isString,G(function(r){return JSON.parse(r,t)})),rr(g.isDefined,function(r){return JSON.stringify(r,u,i)}))}),Gu=Tr(G(decodeURI),encodeURI),Ju=Rr(rr(g.isString,G(decodeURIComponent)),rr(n,encodeURIComponent)),Hu=g.curry(function(r,n){return Tr(D(B(r,"g"),n),D(B(n,"g"),r))}),Ku=C(function(n){var t=1<arguments[w]?arguments[1]:n;return Rr(rr(g.isString,function(r){return r.split(t)}),rr(g.isArray,function(r){return r.join(n)}))}),Qu=C(function(u){var t=B(1<arguments[w]?arguments[1]:u,"");return Rr(rr(g.isString,function(r){var n=t.exec(r);return n?[r.slice(0,n[Kr]),r.slice(Qr(n))]:[r,""]}),function(r){if($(r)){var n=r[0],t=r[1];return t?n+u+t:n}})}),Vu=L(Bn([vu(function(r){return g.isString(r)?r.replace(/\+/g,"%20"):r}),Ku("&"),Wu([Qu("="),Wu(Ju)]),Ru($u)])),Xu=Dr(q,q);r.Identity=g.Identity,r.IdentityAsync=g.IdentityAsync,r.FantasyFunctor=g.FantasyFunctor,r.fromFantasy=g.fromFantasy,r.fromFantasyApplicative=g.fromFantasyApplicative,r.fromFantasyMonad=g.fromFantasyMonad,r.seemsArrayLike=Ln,r.Select=Pn,r.toFunction=Bn,r.assign=$n,r.disperse=_n,r.modify=Gn,r.modifyAsync=Jn,r.remove=Hn,r.set=Kn,r.traverse=Qn,r.compose=c,r.flat=function(){for(var r=[p],n=0,t=arguments[w];n<t;++n)r.push(arguments[n],p);return r},r.lazy=v,r.choices=Vn,r.choose=Xn,r.cond=Yn,r.condOf=Zn,r.ifElse=rt,r.orElse=nt,r.chain=tt,r.choice=function(){for(var r=arguments.length,n=Array(r),t=0;t<r;t++)n[t]=arguments[t];return n.reduceRight(sn,yn)},r.unless=ut,r.when=it,r.optional=et,r.zero=yn,r.mapIx=function(i){return function(r,n,t,u){return u(r,i(n,r))}},r.setIx=function(i){return function(r,n,t,u){return u(r,i)}},r.tieIx=ot,r.joinIx=ft,r.reIx=function(e){return e=Bn(e),P(function(r,n,t,u){var i=0;return e(r,n,t,function(r){return u(r,i++)})})},r.skipIx=ct,r.getLog=function(r,n){var t=pr(Ar,function(r){return{p:[r,lr],x:r,c:r}},r,n),u=t.p,i=t.c;u=mr(u,["%O"]);for(var e=2;e<u[w];++e)u[0]+=" <= %O";return console.log.apply(console,u),i},r.log=function(){var r=g.curry(function(r,n){return console.log.apply(console,cr([],0,arguments,0,arguments[w]).concat([r,n])),n});return Rr(r("get"),r("set"))},r.transform=at,r.transformAsync=vt,r.seq=st,r.branchOr=dt,r.branch=pt,r.branches=function(){for(var r=arguments[w],n={},t=0;t<r;++t)n[arguments[t]]=Pr;return pt(n)},r.elems=s,r.elemsTotal=function(r,n,t,u){return Ln(r)?t===g.Identity?er(u,r,er):t===Pn?i(u,r):e(t,u,r,e):t.of(r)},r.entries=yt,r.keys=lt,r.keysEverywhere=function(r,n,u,t){var i=function(r,n){return u.ap(u.map(Q,t(r[0],n)),e(r[1],n))},e=function r(n,t){return g.isArray(n)?ln(n,t,u,r):g.isObject(n)?yt(n,t,u,i):u.of(n)};return e(r,n)},r.subseq=mt,r.limit=ht,r.offset=At,r.matches=function(c){return function(n,r,t,u){if(g.isString(n)){var i=t.map;if(c.global){var e=[""];return e.input=n,e[Kr]=0,Pn===t?function(r,n,t){for(;t=Vr(t,n);){var u=r(t[0],t[Kr]);if(void 0!==u)return u}}(u,c,e):i((f=n,function(r){for(var n="",t=0,u=function(r){for(var n=[];Xr!==r;)n.push(r[0],r[1]),r=r[2];return n}(r),i=u[w]-2;-2!==i;i+=-2){var e=u[i];n+=f.slice(t,e[Kr]);var o=u[i+1];void 0!==o&&(n+=o),t=Qr(e)}return n+f.slice(t)}),function(r,n,t,u,i,e){for(var o=t(Xr);e=Vr(e,i);)o=n(n(r(Xr,t(e)),o),u(e[0],e[Kr]));return o}(i,t.ap,t.of,u,c,e))}var o=n.match(c);if(o)return i(function(r){return n.replace(c,void 0!==r?r:"")},u(o[0],o[Kr]))}var f;return t.of(n)}},r.values=gt,r.children=d,r.flatten=p,r.query=function(){for(var r=[],n=0,t=arguments[w];n<t;++n){var u=Bn(arguments[n]);r.push(bt(an(u)),u)}return r},r.satisfying=bt,r.leafs=Ot,r.all=jt,r.and=xt,r.all1=It,r.and1=wt,r.any=St,r.collectAs=Ut,r.collect=Et,r.collectTotalAs=Ft,r.collectTotal=kt,r.concatAs=qt,r.concat=Mt,r.countIf=zt,r.count=Nt,r.countsAs=Rt,r.counts=Tt,r.foldl=Dt,r.foldr=Wt,r.forEach=Ct,r.forEachWith=Lt,r.get=m,r.getAs=Pt,r.isDefined=Bt,r.isEmpty=$t,r.joinAs=_t,r.join=Gt,r.maximumBy=Jt,r.maximum=Ht,r.meanAs=Kt,r.mean=Qt,r.minimumBy=Vt,r.minimum=Xt,r.none=Yt,r.or=Zt,r.productAs=ru,r.product=nu,r.select=tu,r.selectAs=uu,r.sumAs=iu,r.sum=eu,r.foldTraversalLens=ou,r.getter=fu,r.lens=cu,r.partsOf=function(i){return 1!==arguments[w]&&(i=Bn(c.apply(null,arguments))),function(n,r,t,u){return t.map(function(r){return Ur(i,r,n)},u(kt(i,n),r))}},r.setter=au,r.defaults=function(i){function e(r){return Gr(i,void 0,r)}return function(r,n,t,u){return t.map(e,u(void 0!==r?r:i,n))}},r.define=function(i){var e=V(i);return function(r,n,t,u){return t.map(e,u(void 0!==r?r:i,n))}},r.normalize=function(r){return[vu(r),su(r)]},r.required=function(r){return bu(r,void 0)},r.reread=vu,r.rewrite=su,r.filter=du,r.find=h,r.findWith=function(r){var n=Bn(r),t=an(n);return[1<arguments[w]?h(t,arguments[1]):h(t),n]},r.first=0,r.index=pu,r.last=yu,r.prefix=lu,r.slice=mu,r.suffix=function(r){return mu(0===r?1/0:r?-r:0,void 0)},r.pickIn=hu,r.prop=Au,r.props=A,r.propsExcept=function(){for(var n=g.create(null),r=0,t=arguments[w];r<t;++r)n[arguments[r]]="d";return[Bu(function(r){return n[r]||"t"}),"t"]},r.propsOf=function r(n){var t;return(t=r).warned||(t.warned=1,console.warn("partial.lenses: `propsOf` has been deprecated and there is no replacement. See CHANGELOG for details.")),A.apply(null,g.keys(n))},r.removable=function(){function i(r){if(!(r instanceof Object))return r;for(var n=0,t=u[w];n<t;++n)if(g.hasU(u[n],r))return r}for(var r=arguments.length,u=Array(r),n=0;n<r;n++)u[n]=arguments[n];return function(r,n,t,u){return t.map(i,u(r,n))}},r.valueOr=function(i){return function(r,n,t,u){return u(null!=r?r:i,n)}},r.pick=gu,r.replace=bu,r.appendTo=b,r.append=Ou,r.assignTo=ju,r.prependTo=xu,r.appendOp=Iu,r.assignOp=wu,r.modifyOp=function(i){return function(r,n,t,u){return t.of(i(r,n))}},r.prependOp=Su,r.setOp=Uu,r.removeOp=Eu,r.cross=Fu,r.getInverse=O,r.iso=ku,r._=qu,r.mapping=j,r.mappings=function(r){return g.isFunction(r)&&(r=r.apply(null,o(r[w]))),Mu.apply(null,r.map(j))},r.pattern=x,r.patterns=function(r){return g.isFunction(r)&&(r=r.apply(null,o(r[w]))),Mu.apply(null,r.map(x))},r.alternatives=Mu,r.applyAt=zu,r.attemptEveryDown=function(r){return Rr(on(en(m(r))),on(un(O(r))))},r.attemptEveryUp=function(r){return Rr(on(un(m(r))),on(en(O(r))))},r.attemptSomeDown=function(r){return Rr(fn(m(r)),fn(O(r)))},r.conjugate=Nu,r.inverse=Ru,r.iterate=function(r){return Rr(An(m(r)),An(O(r)))},r.orAlternatively=Tu,r.fold=function(r){return Rr(xn(m(r)),jn(O(r)))},r.unfold=function(r){return Rr(jn(m(r)),xn(O(r)))},r.complement=Du,r.identity=Pr,r.is=function(n){return Rr(function(r){return g.acyclicEqualsU(n,r)},function(r){return!0===r?n:void 0})},r.subset=I,r.array=Wu,r.arrays=function(r){var n=O(r),i=m(r),e=function(r){return fr(n,r)};return function(r,n,t,u){return t.map(e,u(fr(i,r),n))}},r.indexed=Cu,r.reverse=Lu,r.singleton=Pu,r.groupBy=function(r){return Rr(Dn(r),Tn(r))},r.ungroupBy=function(r){return Rr(Tn(r),Dn(r))},r.zipWith1=function(r){return Rr(Wn(m(r)),Cn(O(r)))},r.unzipWith1=function(r){return Rr(Cn(m(r)),Wn(O(r)))},r.disjoint=Bu,r.keyed=Yr,r.multikeyed=$u,r.json=_u,r.uri=Gu,r.uriComponent=Ju,r.dropPrefix=function(n){return Tr(function(r){return r.startsWith(n)?r.slice(n[w]):void 0},function(r){return n+r})},r.dropSuffix=function(n){return Tr(function(r){return r.endsWith(n)?r.slice(0,r[w]-n[w]):void 0},function(r){return r+n})},r.replaces=Hu,r.split=Ku,r.uncouple=Qu,r.querystring=Vu,r.add=function(r){return Dr(E(r),E(-r))},r.divide=function(r){return Dr(k(r),F(r))},r.multiply=function(r){return Dr(F(r),k(r))},r.negate=Xu,r.subtract=function(r){return Dr(E(-r),E(r))},r.pointer=function(r){"#"===r[0]&&(r=decodeURIComponent(r));for(var n=r.split("/"),t=n[w],u=1;u<t;++u){var i=n[u];n[u-1]=/^(0|[1-9]\d*)$/.test(i)?rt(ur,Number(i),i):"-"===i?rt(ur,Ou,i):i.replace("~1","/").replace("~0","~")}return n[w]=t-1,n},Object.defineProperty(r,"__esModule",{value:!0})}); | ||
!function(r,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("infestines")):"function"==typeof define&&define.amd?define(["exports","infestines"],n):n(r.L={},r.I)}(this,function(r,g){"use strict";function n(r){switch(typeof r){case"boolean":case"number":case"string":return!0;default:return!1}}function i(r,n){for(var t=0,u=n[w];t<u;++t){var i=r(n[t],t);if(void 0!==i)return i}}function e(r,n,t,u){var i=r.map,e=r.ap,o=r.of(lr),f=t[w];if(i===g.sndU){for(var c=0;c<f;++c)o=e(o,n(t[c],c));return o}for(var a=lr(u),v=0;v<f;++v)o=e(i(a,o),n(t[v],v));return i(hr,o)}function a(r,n){var t=n[w]-r;if(t<2)return t?Bn(n[r]):Pr;for(var i=Bn(n[r+--t]),e=function(t,u){return function(r,n){return i(r,n,t,u)}};--t;)e=Sr(Bn(n[r+t]),e);var o=Bn(n[r]);return function(r,n,t,u){return o(r,n,t,e(t,u))}}function u(r,n,t,u){for(var i,e,o=r[w],f=Array(o),c=0;c<o;++c)switch(f[c]=t,typeof(i=r[c])){case"string":t=br(i,t);break;case"number":t=xr(i,t);break;default:t=a(c,r)(t,r[c-1],g.Identity,n||g.always(u)),o=c}for(o===r[w]&&(t=n?n(t,r[o-1]):u);0<=--o;)t=g.isString(e=r[o])?Or(e,t,f[o]):Ir(e,t,f[o]);return t}function t(r){this[In]=r,g.freeze(this)}function o(r){for(;Fn[w]<r;)Fn.push(new Un(Fn[w]));return Fn}function y(r,n,t,u){if(void 0!==u){if(n in t)return g.acyclicEqualsU(t[n],u);t[n]=u;var i=r[n];return!i||i(u)}}function l(f,o){if(void 0===o||It(kn,Ot,o))return function(r,n){return g.acyclicEqualsU(o,n)};if(En(o)){var t=o[In][0][In];return t<0?C:function(r,n){return y(f,t,r,n)}}if(g.isArray(o)){for(var c=[],a=[],v=void 0,s=o[w],r=0;r<s;++r){var n=o[r];Sn(n)?f[v=n[In]]=qn:(void 0!==v?a:c).push(l(f,n))}return function(r,n){if(Ln(n)){var t=n[w];if(!(void 0!==v?t<s-1:t!==s)){for(var u=c[w],i=0;i<u;++i)if(!c[i](r,n[i]))return;var e=a[w];t-=e;for(var o=0;o<e;++o)if(!a[o](r,n[t+o]))return;return!(0<=v)||y(f,v,r,cr(Array(t-u),0,n,u,t))}}}}var d=o[In];d&&(f[d=d[0][In]]=Mn),o=Gn(gt,function(r,n){return wn(n)?void 0:l(f,r)},o);var p=Nt(gt,o);return function(r,n){if(!kn(n)&&!g.isArray(n)){n=Lr(n);var t=0<=d&&{},u=0;for(var i in n){var e=o[i];if(e){if(!e(r,n[i]))return;u++}else{if(void 0===d)return;t&&(t[i]=n[i])}}return u===p&&(!t||y(f,d,r,nr(t)))}}}function f(e,r){if(!wn(r)){if(void 0===e||It(kn,Ot,e))return g.always(e);if(En(e)){var n=e[In][0][In];return function(r){return r[n]}}if(g.isArray(e)){for(var a=[],v=[],s=void 0,t=e[w],u=0;u<t;++u){var i=e[u];Sn(i)?s=i[In]:(void 0!==s?v:a).push(f(i))}return tr(function(r){for(var n=[],t=0,u=a[w];t<u;++t)Nn(n,a[t](r));if(0<=s){var i=r[s];if(i)for(var e=0,o=i[w];e<o;++e)Nn(n,i[e])}for(var f=0,c=v[w];f<c;++f)Nn(n,v[f](r));return n})}var o=e[In];return o&&(o=o[0][In]),e=Gn(gt,f,e),tr(function(r){var n={};for(var t in e)zn(n,t,e[t](r));if(0<=o){var u=r[o];if(u)for(var i in u)zn(n,i,u[i])}return n})}}function c(){var r=arguments[w];if(r<2)return r?arguments[0]:Pr;for(var n=Array(r);r--;)n[r]=arguments[r];return n}function v(i){function e(r,n,t,u){return o(r,n,t,u)}var o=function(r,n,t,u){return(o=Bn(i(e)))(r,n,t,u)};return e}function s(r,n,t,u){return Ln(r)?ln(r,n,t,u):t.of(r)}function d(r,n,t,u){return g.isArray(r)?ln(r,n,t,u):g.isObject(r)?gt(r,n,t,u):t.of(r)}function p(r,n,u,i){return function r(n,t){return g.isArray(n)?ln(n,t,u,r):void 0!==n?i(n,t):u.of(n)}(r,n)}function m(n,r){return 1<arguments[w]?Mr(C,n,r):function(r){return Mr(C,n,r)}}function h(o){var f=1<arguments[w]?arguments[1]:{hint:0};return function(r,n,t,u){var i=Ln(r)?r:"",e=f.hint=function(r,n,t){var u=r.hint,i=t[w];i<=u&&(u=i-1),u<0&&(u=0);for(var e=u-1;0<=e&&u<i;++u,--e){if(n(t[u],u,r))return u;if(n(t[e],e,r))return e}for(;u<i;++u)if(n(t[u],u,r))return u;for(;0<=e;--e)if(n(t[e],e,r))return e;return i}(f,o,i);return t.map(function(r){return Ir(e,r,i)},u(i[e],e))}}function A(){for(var r,n=arguments[w],t={},u=0;u<n;++u)t[r=arguments[u]]=r;return gu(t)}function b(n,r,t,u){var i=Ln(n)?n[w]:0;return t.map(function(r){return Ir(i,r,n)},u(void 0,i))}function O(n,r){return 1<arguments[w]?Fr(n,r):function(r){return Fr(n,r)}}function j(r){var n=0;g.isFunction(r)&&(r=r.apply(null,o(n=r[w])));var t=Array(n),u=r.map(function(r){return l(t,r)}),i=r.map(f);return Rr(Rn(n,u[0],i[1]),Rn(n,u[1],i[0]))}function x(r){var n=0;g.isFunction(r)&&(r=r.apply(null,o(n=r[w])));var t=l(Array(n),r);return I(function(r){return t(Array(n),r)})}function I(r){var n=On(r);return Rr(n,n)}var w="length",S=function(r,n){return r+n},U=function(r,n){return r*n},E=g.curry(S),F=g.curry(U),k=g.curry(function(r,n){return n/r}),q=function(r){return-r},M=function(r,n){return r<n},z=function(r,n){return n<r},N=g.curry(g.isInstanceOfU),R=function(r){return g.assign(g.create(null),r)},T=g.freeze(R(g.object0)),D=g.curry(function(r,n,t){return t.replace(r,n)}),W=Symbol.iterator,C=function(r){return r},L=function(r){return r},P=function(r){return r},B=function(r,n){return g.isString(r)?new RegExp(D(/[|\\{}()[\]^$+*?.]/g,"\\$&",r),n):r},$=function(r){return g.isArray(r)&&2===r[w]},_=g.curry(function(r,n){return[r,Uu(n)]}),G=function(n){return P(function(r){try{return n(r)}catch(r){return r}})},J=function(r){return void 0!==r?String(r):""},H=function(r,n,t,u){return void 0!==u?Math.min(Math.max(r,u<0?n+u:u),n):t},K=function(n){return function(r){return[r,n]}},Q=function(n){return function(r){return void 0!==n&&void 0!==r?[n,r]:void 0}},V=function(n){return function(r){return void 0!==r?r:n}},X=V(0),Y=g.always(!0),Z=function(r){return void 0!==r?!r:r},rr=function(n,t){return P(function(r){return n(r)?t(r):void 0})},nr=C,tr=C,ur=function(r){return!(r instanceof Object)||g.isArray(r)},ir=C(function(r){if(Ln(r)){for(var n=r[w],t=Array(n),u=0;n;)t[u++]=r[--n];return t}}),er=C(function(r,n,t){for(var u=n[w],i=Array(u),e=0,o=!0,f=0;f<u;++f){var c=n[f],a=r(c,f);t!==a&&(i[e++]=a,o&&(o=c===a&&(0!==c||1/c==1/a)||c!=c&&a!=a))}return e!==u?(i[w]=e,i):o?n:i}),or=function(r,n){return Ln(n)?er(r,n,void 0):void 0},fr=C(function(r,n){if(g.isArray(n)){for(var t=n[w],u=Array(),i=0;i<t;++i)if(void 0===(u[i]=r(n[i])))return;return u}}),cr=C(function(r,n,t,u,i){for(;u<i;)r[n++]=t[u++];return r}),ar=function(r,n){return g.Applicative(g.sndU,g.always(n),r)},vr=function(r){return ar(r.concat,(0,r.empty)())},sr=ar(S,0),dr=function(o){return g.curry(function(u,r,n){var i=void 0,e=void 0;return Mr(function(r,n){var t=u(r,n);void 0===t||void 0!==e&&!o(t,e)||(i=r,e=t)},r,n),i})},pr=function(r,n,t,u){return Bn(t)(u,void 0,r,n)},yr=function(i,r){return g.curryN(4,P(function(t,u){return u=r(u),function(r,n){return i(pr(u,t,r,n))}}))},lr=function(t){return function(n){return function(r){return t!==r?[r,n]:n}}},mr=function(r,n){for(;lr!==r;)n.push(r[0]),r=r[1];return n},hr=C(function(r){return mr(r,[]).reverse()}),Ar=g.Applicative(function(r,n){var t=n.p,u=n.x,i=n.c;return u=r(u),g.isFunction(u)||(t=[u,t]),{p:t,x:u,c:i}},function(r){return{p:[],x:r,c:void 0}},function(r,n){var t=void 0!==r.c?r:n;return{p:t.p,x:r.x(n.x),c:t.c}}),gr=function(e,o){return function(i){return function(n,r,t,u){return t.map(function(r){return o(i,r,n)},u(e(i,n),i))}}},br=function(r,n){return n instanceof Object?n[r]:void 0},Or=C(function(r,n,t){return void 0!==n?g.assocPartialU(r,n,t):g.dissocPartialU(r,t)||g.object0}),jr=gr(br,Or),xr=function(r,n){return Ln(n)?n[r]:void 0},Ir=C(function(r,n,t){Ln(t)||(t="");var u=t[w];if(void 0!==n){for(var i=Math.max(r+1,u),e=Array(i),o=0;o<i;++o)e[o]=t[o];return e[r]=n,e}if(u<=r)return cr(Array(u),0,t,0,u);for(var f=Array(u-1),c=0;c<r;++c)f[c]=t[c];for(var a=r+1;a<u;++a)f[a-1]=t[a];return f}),wr=gr(xr,Ir),Sr=function(i,r){return function(t,u){return u=r(t,u),function(r,n){return i(r,n,t,u)}}},Ur=function(r,n,t){Ln(n)||(n="");var u=0;return kr(r,function(){return n[u++]},t)},Er=C(function(r,n,t){switch(typeof r){case"string":return Or(r,n,t);case"number":return Ir(r,n,t);case"object":return u(r,0,t,n);default:return 4===r[w]?r(t,void 0,g.Identity,g.always(n)):t}}),Fr=function(r,n){return Er(r,n,void 0)},kr=C(function(r,n,t){switch(typeof r){case"string":return Or(r,n(br(r,t),r),t);case"number":return Ir(r,n(xr(r,t),r),t);case"object":return u(r,n,t);default:return 4===r[w]?r(t,void 0,g.Identity,n):(n(r(t,void 0),void 0),t)}}),qr=function(r,n,t){return g.resolve(Bn(r)(t,void 0,g.IdentityAsync,n))},Mr=C(function(r,n,t){switch(typeof n){case"string":return r(br(n,t),n);case"number":return r(xr(n,t),n);case"object":for(var u,i=n[w],e=0;e<i;++e)switch(typeof(u=n[e])){case"string":t=br(u,t);break;case"number":t=xr(u,t);break;default:return a(e,n)(t,n[e-1],Pn,r)}return r(t,n[i-1]);default:return r!==C&&4!==n[w]?r(n(t,void 0),void 0):n(t,void 0,Pn,r)}}),zr=function(r,n){return Mr(C,r,n)},Nr=function(i,e){return P(function(n,t,r,u){return r.map(function(r){return e(r,n,t)},u(i(n,t),t))})},Rr=function(i,e){return P(function(r,n,t,u){return t.map(e,u(i(r),n))})},Tr=function(r,n){return Rr(rr(g.isString,r),rr(g.isString,n))},Dr=function(r,n){return Rr(rr(g.isNumber,r),rr(g.isNumber,n))},Wr=C(function(r,n){var t=void 0;for(var u in r){var i=r[u],e=g.isObject(i)?Wr(i,n):Mr(C,i,n);void 0!==e&&(t||(t={}),t[u]=e)}return t}),Cr=C(function(r,n,t){for(var u in r){var i=n&&n[u],e=r[u];t=g.isObject(e)?Cr(e,i,t):Er(e,i,t)}return t}),Lr=function(r){return g.constructorOf(r)!==Object?g.toObject(r):r},Pr=function(r,n,t,u){return u(r,n)},Br=C(function(i){return function(r){for(var n={},t=i[w];t--;){var u=r[0];void 0!==u&&(n[i[t]]=u),r=r[1]}return n}}),$r=C(function(r,n,t,u,i,e){var o=void 0,f=!0,c={};for(var a in n){o=1;var v=t[a],s=n[a](v,a,i,e);void 0!==s?(c[a]=s,f&&(f=v===s&&(0!==v||1/v==1/s)||v!=v&&s!=s)):f=!1}var d=o;for(var p in t)if(void 0===(d&&n[p])){o=1;var y=t[p],l=r(y,p,i,e);void 0!==l?(c[p]=l,f&&(f=y===l&&(0!==y||1/y==1/l)||y!=y&&l!=l)):f=!1}return o?f&&t===u?u:c:u}),_r=function(h,A){return function(r,n,t,u){var i=r instanceof Object?Lr(r):g.object0;if(g.Identity===t)return $r(h,A,i,r,t,u);if(Pn!==t){var e=t.map,o=t.ap,f=t.of,c=f(K),a=[];for(var v in A)a.push(v),c=o(e(K,c),A[v](i[v],v,t,u));var s=!!a[w]||void 0;for(var d in i)void 0===(s&&A[d])&&(a.push(d),c=o(e(K,c),h(i[d],d,t,u)));return a[w]?e(Br(a),c):f(r)}for(var p in A){var y=A[p](i[p],p,t,u);if(void 0!==y)return y}for(var l in i)if(void 0===A[l]){var m=h(i[l],l,t,u);if(void 0!==m)return m}}},Gr=function(r,n,t){return g.acyclicEqualsU(t,r)?n:t},Jr=C(function(r,n,t,u){for(var i,e=0,o=n[w];e<o;++e)(r(i=n[e],e)?t:u).push(i)}),Hr="lastIndex",Kr="index",Qr=function(r){return r[Kr]+r[0][w]},Vr=C(function(r,n){var t=n[Hr];n[Hr]=Qr(r);var u=n.exec(r.input);return n[Hr]=t,u&&u[0]&&u}),Xr=function(t){return function(n){return function(r){return[t,r,n]}}},Yr=Rr(rr(N(Object),C(function(r){r=Lr(r);var n=[];for(var t in r)n.push([t,r[t]]);return n})),rr(g.isArray,C(function(r){for(var n={},t=0,u=r[w];t<u;++t){var i=r[t];2===i[w]&&(n[i[0]]=i[1])}return n}))),Zr=C(function(r,n){if(n instanceof Object){var t={};for(var u in n=Lr(n)){var i=r(u),e=t[i];void 0===e&&(t[i]=e={}),e[u]=n[u]}return t}}),rn=C(function(e){return function(r){if(r instanceof Object){var n={};for(var t in r=Lr(r)){var u=r[t];if(u instanceof Object)for(var i in u=Lr(u))e(i)===t&&(n[i]=u[i])}return n}}}),nn=function(e,o,f){return f=Bn(f),P(function(r,n,t,u){var i=-1;return f(r,n,t,function(r,n){return e<=++i&&!(o<=i)?u(r,n):t.of(r)})})},tn=function(r,n){if(void 0!==n){var t=r(n);if(void 0!==t)return t}return n},un=function(i){return function(r,n,t,u){return t.map(function(r){return tn(i,r)},u(r,n))}},en=function(i){return function(r,n,t,u){return u(tn(i,r),n)}},on=function(n){return at(v(function(r){return[n,d,r]}))},fn=function(n){return at(v(function(r){return Vn(fu(n),[d,r])}))},cn=function(r,n,t){return void 0!==r(n,t,Pn,C)},an=function(t){return function(r,n){return cn(t,r,n)}},vn=function(e,o){return function(i){return function(r,n,t,u){return(i(r,n)?e:o)(r,n,t,u)}}},sn=function(i,e){return e=Bn(e),i=Bn(i),function(r,n,t,u){return(cn(e,r,n)?e:i)(r,n,t,u)}},dn=function(e,o){o=Bn(o),e=Bn(e);var f=function(r){r=g.always(r);var n=o(void 0,void 0,g.Identity,r);return void 0===n?e(void 0,void 0,g.Identity,r):n};return function(r,n,t,u){var i=o(r,n,Pn,C);return t.map(f,u(void 0===i?e(r,n,Pn,C):i,n))}},pn=function(u){return P(function(r){for(var n=arguments[w],t=arguments[--n];n;)t=u(t,arguments[--n]);return t})},yn=function(r,n,t,u){return t.of(r)},ln=function(r,n,t,u){return t===g.Identity?er(u,r,void 0):t===Pn?i(u,r):e(t,u,r,void 0)},mn=function(i,e){return function(r,n,t,u){return t.chain(function(r){return e(r,n,t,u)},i(r,n,t,u))}},hn=function(r,n){return[n,hu(r)]},An=function(t){return function(r){for(var n=r;void 0!==r;)r=t(n=r);return n}},gn=function(o,f,c){return function(r,n){var t=f[w];if(Ln(r)){Ln(n)||(n="");for(var u=Math.max(t,r[w],n[w]),i=Array(u),e=0;e<u;++e)if(void 0===(i[e]=o(e<t?f[e]:c,r[e],n[e])))return;return i}}},bn=(0,g.curry)(function(r,n){return Nr(gn(zr,n,r),gn(Er,n,r))}),On=function(n){return function(r){return void 0!==r&&n(r)?r:void 0}},jn=(0,g.id)(function(u){return function(r){for(var n=[];;){var t=u(r);if(!$(t))return[r,n];r=t[0],n.push(t[1])}}}),xn=function(i){return function(r){if($(r)){var n=r[1];if(g.isArray(n)){for(var t=r[0],u=n[w];u--;)t=i(nr([t,n[u]]));return t}}}},In="珳襱댎纚䤤鬖罺좴",wn=function(r){return g.isString(r)&&0===r.indexOf(In)},Sn=N(t),Un=g.inherit(function(r){this[In+r]=this[In]=g.freeze([new t(r)]),g.freeze(this)},Object,g.assocPartialU(W,function(){return this[In][W]()})),En=N(Un),Fn=[],kn=function(r){return null==r||"object"!=typeof r},qn=function(r){return void 0===r||g.isArray(r)},Mn=function(r){return void 0===r||N(Object)},zn=function(r,n,t){void 0!==t&&(r[n]=t)},Nn=function(r,n){void 0!==n&&r.push(n)},Rn=function(t,u,i){return function(r){var n=Array(t);if(u(n,r))return i(n)}},Tn=C(function(a){return function(r){if(g.isArray(r)){for(var n=[],t=0,u=r.length;t<u;++t){var i=r[t];if(!g.isArray(i))return;if(!i.length)return;var e=a(i[0]);if(void 0===e)return;for(var o=0,f=i.length;o<f;++o){var c=i[o];if(!g.identicalU(e,a(c)))return;n.push(c)}}return n}}}),Dn=C(function(c){return function(r){if(g.isArray(r)){for(var n=new Map,t=0,u=r.length;t<u;++t){var i=r[t],e=c(i);if(void 0===e)return;var o=n.get(e);void 0!==o?o.push(i):n.set(e,[i])}var f=[];return n.forEach(function(r){return f.push(r)}),f}}}),Wn=C(function(o){return function(r){if($(r)){var n=r[1],t=n[w];if(t){for(var u=r[0],i=Array(t),e=0;e<t;++e)if(void 0===(i[e]=o([u,n[e]])))return;return i}}}}),Cn=C(function(f){return function(r){if(g.isArray(r)){var n=r[w];if(n){var t=f(r[0]);if($(t)){var u=Array(n),i=t[0];u[0]=t[1];for(var e=1;e<n;++e){var o=f(r[e]);if(!$(o)||!g.acyclicEqualsU(i,o[0]))return;u[e]=o[1]}return[i,u]}}}}}),Ln=function(r){return r instanceof Object&&(r=r[w])===r>>0&&0<=r||g.isString(r)},Pn=ar(function(r,n){return void 0!==r?r:n}),Bn=C(function(r){switch(typeof r){case"string":return jr(r);case"number":return wr(r);case"object":return a(0,r);default:return 4===r[w]?r:(i=r,P(function(r,n,t,u){return t.map(g.always(r),u(i(r,n),n))}))}var i}),$n=g.curry(function(r,n,t){return Er([r,ju],n,t)}),_n=g.curry(Ur),Gn=g.curry(kr),Jn=g.curry(qr),Hn=g.curry(function(r,n){return Er(r,void 0,n)}),Kn=g.curry(Er),Qn=g.curry(pr),Vn=pn(sn),Xn=function(i){return P(function(r,n,t,u){return Bn(i(r,n))(r,n,t,u)})},Yn=C(function(){for(var r=arguments[w],n=yn;r--;){var t=arguments[r];n=t[w]<2?Bn(t[0]):vn(Bn(t[1]),n)(t[0])}return n}),Zn=C(function(e){e=Bn(e);var o=arguments[w]-1;if(!o)return yn;var r=arguments[o];r=1===r[w]?(--o,Bn(r[0])):yn;for(var f=Array(o),c=Array(o+1),n=0;n<o;++n){var t=arguments[n+1];f[n]=t[0],c[n]=Bn(t[1])}return c[o]=r,function(r,n,t,u){var i=o;return e(r,n,Pn,function(r,n){for(var t=0;t<i;++t)if(f[t](r,n)){if(0===(i=t))return 0;break}}),c[i](r,n,t,u)}}),rt=g.curry(function(r,n,t){return vn(Bn(n),Bn(t))(r)}),nt=g.curry(sn),tt=g.curry(function(t,r){return[r,Xn(function(r,n){return void 0!==r?t(r,n):yn})]}),ut=vn(yn,Pr),it=vn(Pr,yn),et=it(g.isDefined),ot=g.curry(function(i,e){return e=Bn(e),P(function(r,t,n,u){return e(r,t,n,function(r,n){return u(r,i(n,t))})})}),ft=L(ot(function(r,n){return void 0!==n?void 0!==r?[n,r]:n:r})),ct=L(ot(g.sndU)),at=g.curry(function(r,n){return kr(r,C,n)}),vt=g.curry(function(r,n){return qr(r,C,n)}),st=C(function(){var r=arguments[w],n=yn;if(r)for(n=Bn(arguments[--r]);r;)n=mn(Bn(arguments[--r]),n);return n}),dt=C(g.curryN(2,function(n){return n=Bn(n),function(r){return function r(n,t){var u=g.create(null);for(var i in t){var e=t[i];u[i]=g.isObject(e)?r(n,e):Bn(e)}return _r(n,u)}(n,r)}})),pt=dt(yn),yt=L(Bn([Yr,s])),lt=L(Bn([Yr,s,0])),mt=g.curry(nn),ht=mt(0),At=g.curry(function(r,n){return nn(r,void 0,n)}),gt=L(_r(Pr,T)),bt=function(e){return function(r,n,u,i){return function r(n,t){return e(n,t)?i(n,t):d(n,t,u,r)}(r,n)}},Ot=bt(function(r){return void 0!==r&&!g.isArray(r)&&!g.isObject(r)}),jt=g.curry(function(t,r,n){return!Mr(function(r,n){if(!t(r,n))return!0},r,n)}),xt=jt(C),It=g.curry(function(t,r,n){var u=!1;return Mr(function(r,n){if(!t(r,n))return u=!1;u=!0},r,n),u}),wt=It(C),St=g.curry(function(t,r,n){return!!Mr(function(r,n){if(t(r,n))return!0},r,n)}),Ut=(0,g.curry)(function(u,r,n){var i=[];return Mr(function(r,n){var t=u(r,n);void 0!==t&&i.push(t)},r,n),i}),Et=Ut(C),Ft=(0,g.curry)(function(t,r,n){var u=[];return Mr(function(r,n){u.push(t(r,n))},r,n),u}),kt=Ft(C),qt=yr(C,vr),Mt=qt(C),zt=g.curry(function(t,r,n){return pr(sr,function(r,n){return t(r,n)?1:0},r,n)}),Nt=zt(g.isDefined),Rt=g.curry(function(i,r,n){var e=new Map;return Mr(function(r,n){var t=i(r,n),u=e.get(t);e.set(t,void 0!==u?u+1:1)},r,n),e}),Tt=Rt(C),Dt=g.curry(function(t,u,r,n){return Mr(function(r,n){u=t(u,r,n)},r,n),u}),Wt=g.curry(function(r,n,t,u){var i=[],e=[];Mr(function(r,n){e.push(r),i.push(n)},t,u);for(var o=e[w]-1;0<=o;--o)n=r(n,e[o],i[o]);return n}),Ct=g.curry(function(t,r,n){return Mr(function(r,n){t(r,n)},r,n)}),Lt=g.curry(function(r,t,n,u){var i=r();return Mr(function(r,n){t(i,r,n)},n,u),i}),Pt=g.curry(Mr),Bt=g.curry(function(r,n){return void 0!==Mr(C,r,n)}),$t=g.curry(function(r,n){return!Mr(Y,r,n)}),_t=yr(J,C(function(t){return ar(function(r,n){return void 0!==r?void 0!==n?r+t+n:r:n})})),Gt=_t(C),Jt=dr(z),Ht=Jt(C),Kt=g.curry(function(u,r,n){var i=0,e=0;return Mr(function(r,n){var t=u(r,n);void 0!==t&&(e+=1,i+=t)},r,n),i/e}),Qt=Kt(C),Vt=dr(M),Xt=Vt(C),Yt=g.curry(function(t,r,n){return!Mr(function(r,n){if(t(r,n))return!0},r,n)}),Zt=St(C),ru=Qn(ar(U,1)),nu=ru(V(1)),tu=m,uu=Pt,iu=Qn(sr),eu=iu(X),ou=g.curry(function(r,n){return Nr(r(n),Kn(n))}),fu=function(i){return function(r,n,t,u){return u(i(r,n),n)}},cu=g.curry(Nr),au=cu(C),vu=function(i){return function(r,n,t,u){return u(void 0!==r?i(r,n):r,n)}},su=function(i){return function(r,n,t,u){return t.map(function(r){return void 0!==r?i(r,n):r},u(r,n))}},du=C(function(o){return function(r,n,t,u){var i=void 0,e=g.array0;return Ln(r)&&Jr(o,r,i=[],e=[]),t.map(function(r){var n=r?r[w]:0,t=e[w],u=n+t;return u===t?e:cr(cr(Array(u),0,r,0,n),n,e,0,t)},u(i,n))}}),pu=C,yu=Xn(function(r){return Ln(r)&&r[w]?r[w]-1:0}),lu=function(r){return mu(0,r)},mu=(0,g.curry)(function(c,a){return function(u,r,n,t){var i=Ln(u),e=i&&u[w],o=H(0,e,0,c),f=H(o,e,e,a);return n.map(function(r){var n=r?r[w]:0,t=o+n;return cr(cr(cr(Array(e-f+t),0,u,0,o),o,r,0,n),t,u,f,e)},t(i?cr(Array(Math.max(0,f-o)),0,u,o,f):void 0,r))}}),hu=function(r){return g.isObject(r)?gu(Gn(gt,hn,r)):r},Au=C,gu=C(function(i){return function(n,r,t,u){return t.map(function(r){return Cr(i,r,n)},u(Wr(i,n),r))}}),bu=g.curry(function(i,e){function o(r){return Gr(e,i,r)}return function(r,n,t,u){return t.map(o,u(Gr(i,e,r),n))}}),Ou=b,ju=C(function(n,r,t,u){return t.map(function(r){return g.assign({},n instanceof Object?n:null,r)},u(void 0,r))}),xu=L(Bn([lu(0),0])),Iu=L(_(b)),wu=L(_(ju)),Su=L(_(xu)),Uu=function(i){return function(r,n,t,u){return t.of(i)}},Eu=Uu(),Fu=L(bn(Eu)),ku=g.curry(Rr),qu=new Un(-1),Mu=pn(dn),zu=g.curry(function(r,n){return Rr(Gn(r,m(n)),Gn(r,O(n)))}),Nu=g.curry(function(r,n){return[r,n,Ru(r)]}),Ru=function(i){return function(r,n,t,u){return t.map(function(r){return Mr(C,i,r)},u(Er(i,r,void 0),n))}},Tu=g.curry(dn),Du=Rr(Z,Z),Wu=function(n){return Rr(function(r){return g.acyclicEqualsU(n,r)},function(r){return!0===r?n:void 0})},Cu=function(r){var n=O(r),i=m(r),e=function(r){return or(n,r)};return function(r,n,t,u){return t.map(e,u(or(i,r),n))}},Lu=Rr(rr(Ln,C(function(r){for(var n=r[w],t=Array(n),u=0;u<n;++u)t[u]=[u,r[u]];return t})),rr(g.isArray,C(function(r){for(var n=r[w],t=Array(n),u=0;u<n;++u){var i=r[u];2===i[w]&&(t[i[0]]=i[1])}n=t[w];for(var e=0,o=0;o<n;++o){var f=t[o];void 0!==f&&(o!==e&&(t[e]=f),++e)}return t[w]=e,t}))),Pu=Rr(ir,ir),Bu=L(j(function(r){return[[r],r]})),$u=function(e){return function(r,n,t,u){var i=rn(e);return t.map(i,u(Zr(e,r),n))}},_u=Rr(rr(N(Object),C(function(r){r=Lr(r);var n=[];for(var t in r){var u=r[t];if(g.isArray(u))for(var i=0,e=u[w];i<e;++i)n.push([t,u[i]]);else n.push([t,u])}return n})),rr(g.isArray,C(function(r){for(var n=g.create(null),t=0,u=r[w];t<u;++t){var i=r[t];if(2===i[w]){var e=i[0],o=i[1],f=n[e];void 0===f?n[e]=o:g.isArray(f)?f.push(o):n[e]=[f,o]}}return g.assign({},n)}))),Gu=C(function(r){var n=r||g.object0,t=n.reviver,u=n.replacer,i=n.space;return Rr(rr(g.isString,G(function(r){return JSON.parse(r,t)})),rr(g.isDefined,function(r){return JSON.stringify(r,u,i)}))}),Ju=Tr(G(decodeURI),encodeURI),Hu=Rr(rr(g.isString,G(decodeURIComponent)),rr(n,encodeURIComponent)),Ku=g.curry(function(r,n){return Tr(D(B(r,"g"),n),D(B(n,"g"),r))}),Qu=C(function(n){var t=1<arguments[w]?arguments[1]:n;return Rr(rr(g.isString,function(r){return r.split(t)}),rr(g.isArray,function(r){return r.join(n)}))}),Vu=C(function(u){var t=B(1<arguments[w]?arguments[1]:u,"");return Rr(rr(g.isString,function(r){var n=t.exec(r);return n?[r.slice(0,n[Kr]),r.slice(Qr(n))]:[r,""]}),function(r){if($(r)){var n=r[0],t=r[1];return t?n+u+t:n}})}),Xu=L(Bn([vu(function(r){return g.isString(r)?r.replace(/\+/g,"%20"):r}),Qu("&"),Cu([Vu("="),Cu(Hu)]),Ru(_u)])),Yu=Dr(q,q);r.Identity=g.Identity,r.IdentityAsync=g.IdentityAsync,r.FantasyFunctor=g.FantasyFunctor,r.fromFantasy=g.fromFantasy,r.fromFantasyApplicative=g.fromFantasyApplicative,r.fromFantasyMonad=g.fromFantasyMonad,r.seemsArrayLike=Ln,r.Select=Pn,r.toFunction=Bn,r.assign=$n,r.disperse=_n,r.modify=Gn,r.modifyAsync=Jn,r.remove=Hn,r.set=Kn,r.traverse=Qn,r.compose=c,r.flat=function(){for(var r=[p],n=0,t=arguments[w];n<t;++n)r.push(arguments[n],p);return r},r.lazy=v,r.choices=Vn,r.choose=Xn,r.cond=Yn,r.condOf=Zn,r.ifElse=rt,r.orElse=nt,r.chain=tt,r.choice=function(){for(var r=arguments.length,n=Array(r),t=0;t<r;t++)n[t]=arguments[t];return n.reduceRight(sn,yn)},r.unless=ut,r.when=it,r.optional=et,r.zero=yn,r.mapIx=function(i){return function(r,n,t,u){return u(r,i(n,r))}},r.setIx=function(i){return function(r,n,t,u){return u(r,i)}},r.tieIx=ot,r.joinIx=ft,r.reIx=function(e){return e=Bn(e),P(function(r,n,t,u){var i=0;return e(r,n,t,function(r){return u(r,i++)})})},r.skipIx=ct,r.getLog=function(r,n){var t=pr(Ar,function(r){return{p:[r,lr],x:r,c:r}},r,n),u=t.p,i=t.c;u=mr(u,["%O"]);for(var e=2;e<u[w];++e)u[0]+=" <= %O";return console.log.apply(console,u),i},r.log=function(){var r=g.curry(function(r,n){return console.log.apply(console,cr([],0,arguments,0,arguments[w]).concat([r,n])),n});return Rr(r("get"),r("set"))},r.transform=at,r.transformAsync=vt,r.seq=st,r.branchOr=dt,r.branch=pt,r.branches=function(){for(var r=arguments[w],n={},t=0;t<r;++t)n[arguments[t]]=Pr;return pt(n)},r.elems=s,r.elemsTotal=function(r,n,t,u){return Ln(r)?t===g.Identity?er(u,r,er):t===Pn?i(u,r):e(t,u,r,e):t.of(r)},r.entries=yt,r.keys=lt,r.keysEverywhere=function(r,n,u,t){var i=function(r,n){return u.ap(u.map(Q,t(r[0],n)),e(r[1],n))},e=function r(n,t){return g.isArray(n)?ln(n,t,u,r):g.isObject(n)?yt(n,t,u,i):u.of(n)};return e(r,n)},r.subseq=mt,r.limit=ht,r.offset=At,r.matches=function(c){return function(n,r,t,u){if(g.isString(n)){var i=t.map;if(c.global){var e=[""];return e.input=n,e[Kr]=0,Pn===t?function(r,n,t){for(;t=Vr(t,n);){var u=r(t[0],t[Kr]);if(void 0!==u)return u}}(u,c,e):i((f=n,function(r){for(var n="",t=0,u=function(r){for(var n=[];Xr!==r;)n.push(r[0],r[1]),r=r[2];return n}(r),i=u[w]-2;-2!==i;i+=-2){var e=u[i];n+=f.slice(t,e[Kr]);var o=u[i+1];void 0!==o&&(n+=o),t=Qr(e)}return n+f.slice(t)}),function(r,n,t,u,i,e){for(var o=t(Xr);e=Vr(e,i);)o=n(n(r(Xr,t(e)),o),u(e[0],e[Kr]));return o}(i,t.ap,t.of,u,c,e))}var o=n.match(c);if(o)return i(function(r){return n.replace(c,void 0!==r?r:"")},u(o[0],o[Kr]))}var f;return t.of(n)}},r.values=gt,r.children=d,r.flatten=p,r.query=function(){for(var r=[],n=0,t=arguments[w];n<t;++n){var u=Bn(arguments[n]);r.push(bt(an(u)),u)}return r},r.satisfying=bt,r.leafs=Ot,r.whereEq=function(r){return bt(xt(pt(Gn(Ot,Wu,r))))},r.all=jt,r.and=xt,r.all1=It,r.and1=wt,r.any=St,r.collectAs=Ut,r.collect=Et,r.collectTotalAs=Ft,r.collectTotal=kt,r.concatAs=qt,r.concat=Mt,r.countIf=zt,r.count=Nt,r.countsAs=Rt,r.counts=Tt,r.foldl=Dt,r.foldr=Wt,r.forEach=Ct,r.forEachWith=Lt,r.get=m,r.getAs=Pt,r.isDefined=Bt,r.isEmpty=$t,r.joinAs=_t,r.join=Gt,r.maximumBy=Jt,r.maximum=Ht,r.meanAs=Kt,r.mean=Qt,r.minimumBy=Vt,r.minimum=Xt,r.none=Yt,r.or=Zt,r.productAs=ru,r.product=nu,r.select=tu,r.selectAs=uu,r.sumAs=iu,r.sum=eu,r.foldTraversalLens=ou,r.getter=fu,r.lens=cu,r.partsOf=function(i){return 1!==arguments[w]&&(i=Bn(c.apply(null,arguments))),function(n,r,t,u){return t.map(function(r){return Ur(i,r,n)},u(kt(i,n),r))}},r.setter=au,r.defaults=function(i){function e(r){return Gr(i,void 0,r)}return function(r,n,t,u){return t.map(e,u(void 0!==r?r:i,n))}},r.define=function(i){var e=V(i);return function(r,n,t,u){return t.map(e,u(void 0!==r?r:i,n))}},r.normalize=function(r){return[vu(r),su(r)]},r.required=function(r){return bu(r,void 0)},r.reread=vu,r.rewrite=su,r.filter=du,r.find=h,r.findWith=function(r){var n=Bn(r),t=an(n);return[1<arguments[w]?h(t,arguments[1]):h(t),n]},r.first=0,r.index=pu,r.last=yu,r.prefix=lu,r.slice=mu,r.suffix=function(r){return mu(0===r?1/0:r?-r:0,void 0)},r.pickIn=hu,r.prop=Au,r.props=A,r.propsExcept=function(){for(var n=g.create(null),r=0,t=arguments[w];r<t;++r)n[arguments[r]]="d";return[$u(function(r){return n[r]||"t"}),"t"]},r.propsOf=function r(n){var t;return(t=r).warned||(t.warned=1,console.warn("partial.lenses: `propsOf` has been deprecated and there is no replacement. See CHANGELOG for details.")),A.apply(null,g.keys(n))},r.removable=function(){function i(r){if(!(r instanceof Object))return r;for(var n=0,t=u[w];n<t;++n)if(g.hasU(u[n],r))return r}for(var r=arguments.length,u=Array(r),n=0;n<r;n++)u[n]=arguments[n];return function(r,n,t,u){return t.map(i,u(r,n))}},r.valueOr=function(i){return function(r,n,t,u){return u(null!=r?r:i,n)}},r.pick=gu,r.replace=bu,r.appendTo=b,r.append=Ou,r.assignTo=ju,r.prependTo=xu,r.appendOp=Iu,r.assignOp=wu,r.modifyOp=function(i){return function(r,n,t,u){return t.of(i(r,n))}},r.prependOp=Su,r.setOp=Uu,r.removeOp=Eu,r.cross=Fu,r.getInverse=O,r.iso=ku,r._=qu,r.mapping=j,r.mappings=function(r){return g.isFunction(r)&&(r=r.apply(null,o(r[w]))),Mu.apply(null,r.map(j))},r.pattern=x,r.patterns=function(r){return g.isFunction(r)&&(r=r.apply(null,o(r[w]))),Mu.apply(null,r.map(x))},r.alternatives=Mu,r.applyAt=zu,r.attemptEveryDown=function(r){return Rr(on(en(m(r))),on(un(O(r))))},r.attemptEveryUp=function(r){return Rr(on(un(m(r))),on(en(O(r))))},r.attemptSomeDown=function(r){return Rr(fn(m(r)),fn(O(r)))},r.conjugate=Nu,r.inverse=Ru,r.iterate=function(r){return Rr(An(m(r)),An(O(r)))},r.orAlternatively=Tu,r.fold=function(r){return Rr(xn(m(r)),jn(O(r)))},r.unfold=function(r){return Rr(jn(m(r)),xn(O(r)))},r.complement=Du,r.identity=Pr,r.is=Wu,r.subset=I,r.array=Cu,r.arrays=function(r){var n=O(r),i=m(r),e=function(r){return fr(n,r)};return function(r,n,t,u){return t.map(e,u(fr(i,r),n))}},r.indexed=Lu,r.reverse=Pu,r.singleton=Bu,r.groupBy=function(r){return Rr(Dn(r),Tn(r))},r.ungroupBy=function(r){return Rr(Tn(r),Dn(r))},r.zipWith1=function(r){return Rr(Wn(m(r)),Cn(O(r)))},r.unzipWith1=function(r){return Rr(Cn(m(r)),Wn(O(r)))},r.disjoint=$u,r.keyed=Yr,r.multikeyed=_u,r.json=Gu,r.uri=Ju,r.uriComponent=Hu,r.dropPrefix=function(n){return Tr(function(r){return r.startsWith(n)?r.slice(n[w]):void 0},function(r){return n+r})},r.dropSuffix=function(n){return Tr(function(r){return r.endsWith(n)?r.slice(0,r[w]-n[w]):void 0},function(r){return r+n})},r.replaces=Ku,r.split=Qu,r.uncouple=Vu,r.querystring=Xu,r.add=function(r){return Dr(E(r),E(-r))},r.divide=function(r){return Dr(k(r),F(r))},r.multiply=function(r){return Dr(F(r),k(r))},r.negate=Yu,r.subtract=function(r){return Dr(E(-r),E(r))},r.pointer=function(r){"#"===r[0]&&(r=decodeURIComponent(r));for(var n=r.split("/"),t=n[w],u=1;u<t;++u){var i=n[u];n[u-1]=/^(0|[1-9]\d*)$/.test(i)?rt(ur,Number(i),i):"-"===i?rt(ur,Ou,i):i.replace("~1","/").replace("~0","~")}return n[w]=t-1,n},Object.defineProperty(r,"__esModule",{value:!0})}); |
{ | ||
"name": "partial.lenses", | ||
"version": "14.15.0", | ||
"version": "14.16.0", | ||
"description": "Partial lenses is a comprehensive, high-performance optics library for JavaScript", | ||
@@ -5,0 +5,0 @@ "module": "dist/partial.lenses.es.js", |
@@ -1732,2 +1732,5 @@ import * as I from './ext/infestines' | ||
export const whereEq = template => | ||
satisfying(and(branch(modify(leafs, is, template)))) | ||
// Folds over traversals | ||
@@ -1734,0 +1737,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
649612
9663
6196