Comparing version 1.63.1 to 1.64.0
@@ -1,2 +0,7 @@ | ||
# 1.63.1 | ||
# 1.64.0 | ||
- Add new native lens formats, `arrayLens` and `functionPairLens` | ||
- Make `domLens.value` more flexible by supporting non-native onChange events (allow `targetBinding` to fall back to the provided value if `e.target[key]` is not passed in) | ||
- Update a bunch of dev dependencies | ||
# 1.63.1 | ||
- Clarify `chunkBy` description in README | ||
@@ -3,0 +8,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash/fp")):"function"==typeof define&&define.amd?define(["lodash/fp"],t):"object"==typeof exports?exports["futil-js"]=t(require("lodash/fp")):e["futil-js"]=t(e["lodash/fp"])}(this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapValuesIndexed=t.pickByIndexed=t.reduceIndexed=t.eachIndexed=t.findIndexed=t.mapIndexed=t.each=t.mapValues=t.reduce=t.updateOn=t.pullOn=t.unsetOn=t.setOn=t.mergeOn=t.defaultsOn=t.extendOn=t.inversions=t.includesIn=t.pickIn=t.hasIn=t.getIn=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(5);var f=a.default.convert({rearg:!1}),l=a.default.convert({immutable:!1}),i=a.default.convert({cap:!1});t.getIn=f.get,t.hasIn=f.has,t.pickIn=f.pick,t.includesIn=f.includes,t.inversions=a.default.mapKeys((function(e){return e+"In"}),f),t.extendOn=l.extend,t.defaultsOn=l.defaults,t.mergeOn=l.merge,t.setOn=l.set,t.unsetOn=a.default.curryN(2,l.unset),t.pullOn=l.pull,t.updateOn=l.update,t.reduce=o.aspects.deprecate("reduce","1.28.0","reduceIndexed")(i.reduce),t.mapValues=o.aspects.deprecate("mapValues","1.28.0","mapValuesIndexed")(i.mapValues),t.each=o.aspects.deprecate("each","1.28.0","eachIndexed")(i.each),t.mapIndexed=i.map,t.findIndexed=i.find,t.eachIndexed=i.each,t.reduceIndexed=i.reduce,t.pickByIndexed=i.pickBy,t.mapValuesIndexed=i.mapValues},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceElement=t.replaceElementBy=t.intersperse=t.toggleElement=t.toggleElementBy=t.chunkBy=t.slashEncoder=t.dotEncoder=t.encoder=t.prefixes=t.flags=t.zipObjectDeepWith=t.arrayToObject=t.cycle=t.mergeRanges=t.moveIndex=t.pushOn=t.pushIn=t.push=t.repeated=t.dotJoinWith=t.dotJoin=t.compactJoin=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(7),f=n(3),l=n(1);function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var c,d=(c=a.default.isEmpty,function(e){return function(t){return function(n,r){return c(n)?e(r):c(r)?e(n):t(n,r)}}})((function(e){return[e]})),s=a.default.dropRight(1),p=a.default.takeRight(1),y=t.compactJoin=a.default.curry((function(e,t){return a.default.compact(t).join(e)})),v=(t.dotJoin=y("."),t.dotJoinWith=function(e){return function(t){return a.default.filter(e,t).join(".")}},t.repeated=a.default.flow(a.default.groupBy((function(e){return e})),a.default.filter((function(e){return e.length>1})),a.default.flatten,a.default.uniq),t.push=a.default.curry((function(e,t){return t.concat([e])}))),g=(t.pushIn=a.default.curry((function(e,t){return e.concat([t])})),t.pushOn=a.default.curry((function(e,t){return e.push(t),e})),t.moveIndex=function(e,t,n){return a.default.flow(a.default.pullAt(e),(0,f.insertAtIndex)(t,n[e]))(n)},d((function(e,t){return function(e,t){return t[0]>e[1]}(e,t)?[e,t]:function(e,t){return[[e[0],a.default.max(e.concat(t))]]}(e,t)}))),h=(t.mergeRanges=a.default.flow(a.default.sortBy([0,1]),a.default.reduce((function(e,t){return s(e).concat(g(a.default.flatten(p(e)),t))}),[])),t.cycle=a.default.curry((function(e,t){return e[(e.indexOf(t)+1)%e.length]})),t.arrayToObject=a.default.curry((function(e,t,n){return a.default.flow(a.default.keyBy(e),a.default.mapValues(t))(n)})),t.zipObjectDeepWith=a.default.curry((function(e,t){return a.default.zipObjectDeep(e,a.default.isFunction(t)&&a.default.isArray(e)?a.default.times(t,e.length):t)}))),m=(t.flags=h(a.default,(function(){return!0})),t.prefixes=function(e){return a.default.range(1,e.length+1).map((function(t){return a.default.take(t,e)}))},t.encoder=function(e){return{encode:y(e),decode:a.default.split(e)}}),b=(t.dotEncoder=m("."),t.slashEncoder=m("/"),t.chunkBy=a.default.curry((function(e,t){return a.default.reduce((function(t,n){return e(a.default.last(t),n)?[].concat(i(a.default.initial(t)),[[].concat(i(a.default.last(t)),[n])]):[].concat(i(t),[[n]])}),[[a.default.head(t)]],a.default.tail(t))})),t.toggleElementBy=a.default.curry((function(e,t,n){return((0,o.callOrReturn)(e,t,n)?a.default.pull:v)(t,n)}))),O=(t.toggleElement=b(a.default.includes),t.intersperse=a.default.curry((function(e,t){var n,r=(n=t,Array.isArray(n)?n:Array.from(n)),u=r[0],a=r.slice(1);return(0,l.reduceIndexed)((function(t,n,r){return r===a.length?[].concat(i(t),[n]):[].concat(i(t),[(0,o.callOrReturn)(e,t,r,a),n])}),[u],a)})),t.replaceElementBy=a.default.curry((function(e,t,n){return a.default.map((function(n){return e(n)?t:n}),n)})));t.replaceElement=a.default.curry((function(e,t,n){return O(a.default.isEqual(e),t,n)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactMap=t.insertAtIndex=t.deepMap=t.map=t.findApply=t.flowMap=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(6);t.flowMap=function(){return a.default.map(a.default.flow.apply(a.default,arguments))},t.findApply=a.default.curry((function(e,t){return a.default.iteratee(e)(a.default.find(e,t))}));var f=t.map=a.default.curry((function(e,t){return(a.default.isArray(t)?a.default.map:a.default.mapValues).convert({cap:!1})(e,t)})),l=t.deepMap=a.default.curry((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.isTraversable;return n((function(t){return r(t)?l(e,e(t),n,r):t}),t)}));t.insertAtIndex=a.default.curry((function(e,t,n){return a.default.isString(n)?function(e,t,n){return n.slice(0,e)+t+n.slice(e)}(e,t,n):function(e,t,n){var r=a.default.clone(n);return r.splice(e,0,t),r}(e,t,n)})),t.compactMap=a.default.curry((function(e,t){return a.default.flow(a.default.map(e),a.default.compact)(t)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBlankDeep=t.isNotBlank=t.isBlank=t.append=t.isMultiple=t.exists=t.isNotNil=t.tapError=t.throws=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(6);t.throws=function(e){throw e},t.tapError=function(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];throw e.apply(void 0,[t].concat(r)),t}};var f=t.isNotNil=a.default.negate(a.default.isNil),l=(t.exists=f,t.isMultiple=function(e){return(e||[]).length>1},t.append=a.default.curry((function(e,t){return t+e})),t.isBlank=a.default.overSome([a.default.isNil,a.default.isEqual(""),a.default.isEqual([]),a.default.isEqual({})]));t.isNotBlank=a.default.negate(l),t.isBlankDeep=function(e){return function(t){return e(l,(0,o.tree)().leaves(t))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aspects=t.aspectSync=t.aspect=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(1),f=n(4);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var c=t.aspect=function(e){var t=e.name,n=void 0===t?"aspect":t,r=e.init,u=void 0===r?a.default.noop:r,o=e.after,c=void 0===o?a.default.noop:o,d=e.before,s=void 0===d?a.default.noop:d,p=e.always,y=void 0===p?a.default.noop:p,v=e.onError,g=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=l({},n,(function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];var a=void 0,o=void 0;return Promise.resolve().then((function(){return s(n,r)})).then((function(){return e.apply(void 0,i(n))})).then((function(e){a=e})).then((function(){return c(a,r,n)})).catch((function(e){return g(e,r,n)})).catch((function(e){o=e})).then((function(){return y(r,n)})).then((function(){if(o)throw o})).then((function(){return a}))}));return a[n].state=r,a[n]}},d=t.aspectSync=function(e){var t=e.name,n=void 0===t?"aspect":t,r=e.init,u=void 0===r?a.default.noop:r,o=e.after,c=void 0===o?a.default.noop:o,d=e.before,s=void 0===d?a.default.noop:d,p=e.always,y=void 0===p?a.default.noop:p,v=e.onError,g=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=l({},n,(function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];try{s(n,r);var a=e.apply(void 0,i(n));return c(a,r,n),a}catch(e){throw g(e,r,n),e}finally{y(r,n)}}));return a[n].state=r,a[n]}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({error:null}),onError:(0,o.setOn)("error"),name:"error"})},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({status:null,processing:!1,succeeded:!1,failed:!1,setStatus:function(e){this.status=e,this.failed="failed"===e,this.succeeded="succeeded"===e,this.processing="processing"===e}}),before:function(e,t){t.setStatus("processing")},after:function(e,t){t.setStatus("succeeded")},onError:(0,f.tapError)((function(e,t){t.setStatus("failed")})),name:"status"})},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;return c({always:function(t){null!==e&&setTimeout((function(){t.setStatus(null)}),e)},name:"clearStatus"})},v=function(){return c({before:function(e,t){if(t.processing)throw Error("Concurrent Runs Not Allowed")},name:"concurrency"})};t.aspects={logs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({logs:[]}),after:function(e,t){return t.logs.push(e)},name:"logs"})},error:s,errors:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({errors:[]}),onError:function(e,t){return t.errors.push(e)},name:"errors"})},status:p,deprecate:function(e,t,n){return d({before:function(){return console.warn("`"+e+"` is deprecated"+(t?" as of "+t:"")+(n?" in favor of `"+n+"`":"")+" "+a.default.trim((Error().stack||"").split("\n")[3]))}})},clearStatus:y,concurrency:v,command:function(e,t){return a.default.flow(p(e),y(t),v(),s(e))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tree=t.flatLeaves=t.flattenTree=t.propTreePath=t.treePath=t.treeValues=t.treeKeys=t.keyTreeByWith=t.treeLookup=t.leaves=t.treeToArray=t.treeToArrayBy=t.reduceTree=t.transformTree=t.walk=t.traverse=t.isTraversable=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(1),f=n(2);function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=t.isTraversable=function(e){return a.default.isArray(e)||a.default.isPlainObject(e)},c=t.traverse=function(e){return i(e)&&!a.default.isEmpty(e)&&e},d=t.walk=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.noop,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(a,i){return n(a,i,u,f)||(0,o.findIndexed)(e(t)(n,r,[a].concat(l(u)),[i].concat(l(f))),t(a,i,u,f)||[])||r(a,i,u,f)}}},s=t.transformTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry((function(t,n){var r=a.default.cloneDeep(n);return d(e)(t)(r),r}))},p=t.reduceTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry((function(t,n,r){return d(e)((function(){for(var e=arguments.length,r=Array(e),u=0;u<e;u++)r[u]=arguments[u];n=t.apply(void 0,[n].concat(r))}))(r),n}))},y=t.treeToArrayBy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry((function(t,n){return p(e)((function(e,n){return(0,f.push)(t(n),e)}),[],n)}))},v=t.treeToArray=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return y(e)((function(e){return e}))},g=t.leaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.flow(v(e),a.default.reject(e))},h=t.treeLookup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.identity;return a.default.curry((function(n,r){return a.default.reduce((function(n,r){return a.default.find(t(r),e(n))}),r,n)}))},m=t.keyTreeByWith=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry((function(t,n,r){return a.default.flow(y(e)(a.default.iteratee(n)),a.default.uniq,a.default.keyBy(a.default.identity),a.default.mapValues((function(u){return s(e)((function(e){var r=a.default.iteratee(n)(e)===u;t(e,r,u)}),r)})))(r)}))},b=t.treeKeys=function(e,t,n,r){return[t].concat(l(r))},O=t.treeValues=function(e,t,n){return[e].concat(l(n))},j=t.treePath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.dotEncoder;return function(){return(t.encode||t)(e.apply(void 0,arguments).reverse())}},_=(t.propTreePath=function(e){return j(a.default.flow(O,a.default.map(e)),f.slashEncoder)},t.flattenTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j();return p(e)((function(e,n){for(var r=arguments.length,u=Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];return a.default.set([t.apply(void 0,[n].concat(u))],n,e)}),{})}}),A=t.flatLeaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.reject(e)};t.tree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.identity;return{walk:d(e),transform:s(e),reduce:p(e),toArrayBy:y(e),toArray:v(e),leaves:g(e),lookup:h(e,t),keyByWith:m(e),traverse:e,flatten:_(e),flatLeaves:A(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flurry=t.debounceAsync=t.defer=t.comply=t.composeApply=t.converge=t.boundMethod=t.callOrReturn=t.maybeCall=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r};t.maybeCall=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.default.isFunction(e)&&e.apply(void 0,n)},t.callOrReturn=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.default.isFunction(e)?e.apply(void 0,n):e},t.boundMethod=function(e,t){return t[e].bind(t)},t.converge=function(e,t){return function(){return e(a.default.over(t).apply(void 0,arguments))}};var o,f=t.composeApply=function(e,t){return function(n){return e(t(n))(n)}},l=(t.comply=f,t.defer=function(){var e=void 0,t=void 0,n=new Promise((function(n,r){e=n,t=r}));return{resolve:e,reject:t,promise:n}});t.debounceAsync=function(e,t){var n=l(),r=a.default.debounce(e,(function(){n.resolve(t.apply(void 0,arguments)),n=l()}));return function(){return r.apply(void 0,arguments),n.promise}},t.flurry=(o=a.default.flow,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.default.curryN(t[0].length,o.apply(void 0,t))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.whenTruthy=t.whenExists=t.unless=t.when=t.ifElse=t.overNone=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(7),f=n(4);t.overNone=a.default.flow(a.default.overSome,a.default.negate);var l=t.ifElse=a.default.curry((function(e,t,n,r){return function(e){return a.default.isBoolean(e)?function(){return e}:a.default.iteratee(e)}(e)(r)?(0,o.callOrReturn)(t,r):(0,o.callOrReturn)(n,r)})),i=t.when=a.default.curry((function(e,t,n){return l(e,t,a.default.identity,n)}));t.unless=a.default.curry((function(e,t,n){return l(e,a.default.identity,t,n)})),t.whenExists=i(f.exists),t.whenTruthy=i(Boolean)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.differentLast=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r};t.differentLast=function(e,t){return function(n,r,u){return r===u.length-1?a.default.iteratee(t)(n,r,u):a.default.iteratee(e)(n,r,u)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=t.greaterThanOne=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(1);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})}));var a=n(3);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})}));var o=n(7);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}));var f=n(11);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})}));var l=n(12);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})}));var i=n(5);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}));var c=n(2);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})}));var d=n(8);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})}));var s=n(13);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})}));var p=n(4);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})}));var y=n(14);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})}));var v=n(6);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})}));var g=n(9);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}})}));var h,m=n(0),b=(h=m)&&h.__esModule?h:{default:h},O=T(u),j=T(a),_=T(o),A=T(f),w=T(l),x=T(i),E=T(c),k=T(d),M=T(s),P=T(p),I=T(y),B=T(v),S=T(g);function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var N=t.greaterThanOne=b.default.lt(1),R=t.VERSION="1.63.1";t.default=r({},O,j,_,A,w,x,E,k,M,P,I,B,S,{greaterThanOne:N,VERSION:R})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueString=t.uniqueStringWith=t.toSentence=t.toSentenceWith=t.autoLabelOptions=t.autoLabelOption=t.autoLabel=t.trimStrings=t.concatStrings=t.parens=t.quote=t.wrap=void 0;var r,u=n(3),a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(8),l=n(2),i=n(9);var c=t.wrap=function(e,t,n){return(e||"")+n+(t||e||"")},d=(t.quote=o.default.partial(c,['"','"']),t.parens=o.default.partial(c,["(",")"]),t.concatStrings=o.default.flow(o.default.compact,o.default.map(o.default.trim),o.default.join(" ")),t.trimStrings=(0,u.map)((0,f.when)(o.default.isString,o.default.trim)),t.autoLabel=o.default.startCase),s=t.autoLabelOption=function(e){return{value:(0,f.when)(o.default.isUndefined,e)(e.value),label:e.label||d((0,f.when)(o.default.isUndefined,e)(e.value))}},p=(t.autoLabelOptions=o.default.map(s),t.toSentenceWith=o.default.curry((function(e,t,n){return o.default.flow((0,l.intersperse)((0,i.differentLast)((function(){return e}),(function(){return t}))),o.default.join(""))(n)}))),y=(t.toSentence=p(", "," and "),t.uniqueStringWith=o.default.curry((function(e,t){var n=function(e){for(var t=e;r[t];)t=e+r[e],r[e]+=1;return r[t]=(r[t]||0)+1,t},r=e(t);return n.cache=r,n.clear=function(){n.cache=r={}},n})));t.uniqueString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return y(o.default.countBy(o.default.identity),e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expandObjectBy=t.expandObject=t.getWith=t.mergeOverAllArrays=t.mergeOverAllWith=t.mergeOverAll=t.omitEmpty=t.omitBlank=t.omitNull=t.omitNil=t.stampKey=t.invertByArray=t.mergeAllArrays=t.pickOn=t.diffArray=t.diff=t.simpleDiffArray=t.simpleDiff=t.unkeyBy=t.cascadeProp=t.cascadePropKey=t.cascadeKey=t.cascadeIn=t.cascade=t.aliasIn=t.alias=t.getOrReturn=t.mapProp=t.compareDeep=t.matchesSome=t.matchesSignature=t.unflattenObject=t.flattenObject=t.isFlatObject=t.unwind=t.renameProperty=t.pickInto=t.stripEmptyObjects=t.isNotEmptyObject=t.isEmptyObject=t.compactObject=t.chunkObject=t.singleObjectR=t.singleObject=void 0;var r,u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(2),l=n(8),i=n(4),c=n(1),d=n(3),s=n(5);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=o.default.convert({cap:!1}),v=t.singleObject=o.default.curry((function(e,t){return p({},e,t)})),g=t.singleObjectR=o.default.flip(v),h=t.chunkObject=function(e){return o.default.isArray(e)?e:o.default.map(o.default.spread(v),o.default.toPairs(e))},m=(t.compactObject=o.default.pickBy(o.default.identity),t.isEmptyObject=o.default.isEqual({})),b=t.isNotEmptyObject=o.default.negate(m),O=(t.stripEmptyObjects=o.default.pickBy(b),t.pickInto=function(e,t){return o.default.mapValues((0,c.pickIn)(t),e)},t.renameProperty=o.default.curry((function(e,t,n){return o.default.has(e,n)?o.default.flow((function(n){return o.default.set(t,o.default.get(e,n),n)}),o.default.unset(e))(n):n})),t.unwind=o.default.curry((function(e,t){return o.default.map((function(n){return o.default.set(e,n,t)}),o.default.get(e,t))})),t.isFlatObject=(0,l.overNone)([o.default.isPlainObject,o.default.isArray])),j=t.flattenObject=function e(t,n){return(0,c.reduceIndexed)((function(t,r,u){return o.default.merge(t,(O(r)?g:e)(r,(0,f.dotJoinWith)(i.isNotNil)([n,u])))}),{},t)},_=(t.unflattenObject=function(e){return o.default.zipObjectDeep(o.default.keys(e),o.default.values(e))},t.matchesSignature=o.default.curry((function(e,t){return o.default.isObject(t)&&!o.default.difference(o.default.keys(t),e).length})),t.matchesSome=o.default.flow(h,o.default.map(o.default.matches),o.default.overSome),t.compareDeep=o.default.curry((function(e,t,n){return o.default.get(e,t)===n})),t.mapProp=s.aspects.deprecate("mapProp","1.46.0","_.update")(y.update),t.getOrReturn=o.default.curry((function(e,t){return o.default.getOr(t,e,t)})),t.alias=o.default.curry((function(e,t){return o.default.getOr(e,e,t)})),t.aliasIn=o.default.curry((function(e,t){return o.default.getOr(t,t,e)})),t.cascade=o.default.curryN(2,(function(e,t,n){return o.default.flow((0,d.findApply)((function(e){return e&&o.default.iteratee(e)(t)})),o.default.defaultTo(n))(e)}))),A=(t.cascadeIn=o.default.curryN(2,(function(e,t,n){return _(t,e,n)})),t.cascadeKey=o.default.curry((function(e,t){return o.default.find((0,c.getIn)(t),e)})),t.cascadePropKey=o.default.curry((function(e,t){return o.default.find((0,c.hasIn)(t),e)}))),w=(t.cascadeProp=o.default.curry((function(e,t){return o.default.get(A(e,t),t)})),t.unkeyBy=o.default.curry((function(e,t){return(0,c.mapIndexed)((function(t,n){return o.default.extend(t,p({},e||n,n))}))(t)}))),x=t.simpleDiff=function(e,t){var n=j(e);return o.default.flow(j,(0,c.mapValuesIndexed)((function(e,t){return{from:n[t],to:e}})),o.default.omitBy((function(e){return e.from===e.to})))(t)},E=(t.simpleDiffArray=o.default.flow(x,w("field")),t.diff=function(e,t){var n=j(e),r=j(t);return o.default.flow((0,c.mapValuesIndexed)((function(e,t){return{from:n[t],to:r[t]}})),o.default.omitBy((function(e){return e.from===e.to})))(o.default.merge(n,r))}),k=(t.diffArray=o.default.flow(E,w("field")),t.pickOn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.default.flow(o.default.keys,o.default.map((function(n){o.default.includes(n,e)||delete t[n]})))(t)},function(e,t){return o.default.isArray(e)?e.concat(t):void 0}),M=t.mergeAllArrays=o.default.mergeAllWith(k),P=(t.invertByArray=o.default.flow((0,c.mapIndexed)((function(e,t){return(0,f.zipObjectDeepWith)(e,(function(){return[t]}))})),M),t.stampKey=o.default.curry((function(e,t){return(0,c.mapValuesIndexed)((function(t,n){return u({},t,p({},e,n))}),t)})),t.omitNil=function(e){return o.default.omitBy(o.default.isNil,e)},t.omitNull=function(e){return o.default.omitBy(o.default.isNull,e)},t.omitBlank=function(e){return o.default.omitBy(i.isBlank,e)},t.omitEmpty=function(e){return o.default.omitBy(o.default.isEmpty,e)},t.mergeOverAll=o.default.curryN(2,(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return o.default.flow(o.default.over(e),o.default.mergeAll).apply(void 0,n)})),t.mergeOverAllWith=o.default.curryN(3,(function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),u=2;u<n;u++)r[u-2]=arguments[u];return o.default.flow(o.default.over(t),o.default.mergeAllWith(e)).apply(void 0,r)}))),I=(t.mergeOverAllArrays=P(k),t.getWith=o.default.curry((function(e,t,n){return e(o.default.get(t,n))}))),B=t.expandObject=o.default.curry((function(e,t){return u({},t,e(t))}));t.expandObjectBy=o.default.curry((function(e,t,n){return B(I(t,e))(n)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.highlight=t.highlightFromPostings=t.postingsForWords=t.postings=t.allMatches=t.matchAnyWord=t.matchAllWords=t.wordsToRegexp=t.anyWordToRegexp=t.makeAndTest=t.makeRegex=t.testRegex=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(2),f=n(3);var l=t.testRegex=a.default.curry((function(e,t){return new RegExp(e).test(t)})),i=t.makeRegex=function(e){return function(t){return RegExp(t,e)}},c=(t.makeAndTest=function(e){return a.default.flow(i(e),l)},t.anyWordToRegexp=a.default.flow(a.default.words,a.default.join("|"))),d=t.wordsToRegexp=a.default.flow(a.default.words,a.default.map((function(e){return"(?=.*"+e+".*)"})),a.default.join(""),(function(e){return".*"+e+".*"})),s=a.default.curry((function(e,t){var n=RegExp(e(t),"gi");return function(e){return!(!e||!e.match(n))}})),p=(t.matchAllWords=s(d),t.matchAnyWord=s(c),t.allMatches=a.default.curry((function(e,t){for(var n=void 0,r=new RegExp(e,"g"),u=[];null!==(n=r.exec(t));)u.push({text:n[0],start:n.index,end:r.lastIndex});return u})),t.postings=a.default.curry((function(e,t){var n=e.exec(t),r=[];if(e.flags.indexOf("g")<0&&n)r.push([n.index,n.index+n[0].length]);else for(;n;)r.push([n.index,e.lastIndex]),n=e.exec(t);return r}))),y=t.postingsForWords=a.default.curry((function(e,t){return a.default.reduce((function(e,n){return(0,o.push)(p(RegExp(n,"gi"),t),e)}),[])(a.default.words(e))})),v=t.highlightFromPostings=a.default.curry((function(e,t,n,r){var u=0;return a.default.each((function(n){r=(0,f.insertAtIndex)(n[0]+u,e,r),u+=e.length,r=(0,f.insertAtIndex)(n[1]+u,t,r),u+=t.length}),(0,o.mergeRanges)(n)),r}));t.highlight=a.default.curry((function(e,t,n,r){return v(e,t,a.default.flatten(y(n,r)),r)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stateLens=t.domLens=t.off=t.on=t.flip=t.setsWith=t.sets=t.set=t.views=t.view=t.includeLens=t.lensOf=t.lensProp=t.objToFn=t.fnToObj=t.objectLens=t.functionLens=void 0;var r,u=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,u=!1,a=void 0;try{for(var o,f=e[Symbol.iterator]();!(r=(o=f.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){u=!0,a=e}finally{try{!r&&f.return&&f.return()}finally{if(u)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(1),l=n(2);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.functionLens=function(e){return function(){if(!arguments.length)return e;e=arguments.length<=0?void 0:arguments[0]}},t.objectLens=function(e){return{get:function(){return e},set:function(t){e=t}}},t.fnToObj=function(e){return{get:e,set:e}},t.objToFn=function(e){return function(){return arguments.length?e.set(arguments.length<=0?void 0:arguments[0]):e.get()}};var c=t.lensProp=function(e,t){return{get:function(){return o.default.get(e,t)},set:function(n){(0,f.setOn)(e,n,t)}}},d=(t.lensOf=function(e){return o.default.reduce((function(t,n){return t[n]=c(n,e),t}),{},o.default.keys(e))},t.includeLens=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{get:function(){return o.default.includes(e,y.apply(void 0,n))},set:function(t){return g.apply(void 0,[o.default.uniq((0,l.toggleElementBy)(!t,e,y.apply(void 0,n)))].concat(n))}}}),s=function(){return(arguments.length<=1?void 0:arguments[1])?c.apply(void 0,arguments):arguments.length<=0?void 0:arguments[0]},p=function(e){return e.get?e.get():e()},y=t.view=function(){return p(s.apply(void 0,arguments))},v=(t.views=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return y.apply(void 0,t)}},function(e,t){return t.set?t.set(e):t(e)}),g=o.default.curryN(2,(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return v(e,s.apply(void 0,n))}));t.set=g;var h=t.sets=o.default.curryN(2,(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){return g.apply(void 0,[e].concat(n))}})),m=t.setsWith=o.default.curry((function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(t){return g.apply(void 0,[o.default.iteratee(e)(t)].concat(n))}})),b=(t.flip=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return g.apply(void 0,[!y.apply(void 0,t)].concat(t))}},t.on=h(!0)),O=t.off=h(!1),j=function(e,t){return function(){for(var n,r=arguments.length,u=Array(r),a=0;a<r;a++)u[a]=arguments[a];return i(n={},e,y.apply(void 0,u)),i(n,"onChange",m.apply(void 0,[t].concat(u))),n}},_=function(e){return j(e,"target."+e)};t.domLens={value:_("value"),checkboxValues:o.default.flow(d,_("checked")),hover:function(){return{onMouseOver:b.apply(void 0,arguments),onMouseOut:O.apply(void 0,arguments)}},focus:function(){return{onFocus:b.apply(void 0,arguments),onBlur:O.apply(void 0,arguments)}},targetBinding:_,binding:j},t.stateLens=function(e){var t=u(e,2),n=t[0];return{get:function(){return n},set:t[1]}}}])})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash/fp")):"function"==typeof define&&define.amd?define(["lodash/fp"],t):"object"==typeof exports?exports["futil-js"]=t(require("lodash/fp")):e["futil-js"]=t(e["lodash/fp"])}(this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapValuesIndexed=t.pickByIndexed=t.reduceIndexed=t.eachIndexed=t.findIndexed=t.mapIndexed=t.each=t.mapValues=t.reduce=t.updateOn=t.pullOn=t.unsetOn=t.setOn=t.mergeOn=t.defaultsOn=t.extendOn=t.inversions=t.includesIn=t.pickIn=t.hasIn=t.getIn=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(6);var f=a.default.convert({rearg:!1}),l=a.default.convert({immutable:!1}),i=a.default.convert({cap:!1});t.getIn=f.get,t.hasIn=f.has,t.pickIn=f.pick,t.includesIn=f.includes,t.inversions=a.default.mapKeys((function(e){return e+"In"}),f),t.extendOn=l.extend,t.defaultsOn=l.defaults,t.mergeOn=l.merge,t.setOn=l.set,t.unsetOn=a.default.curryN(2,l.unset),t.pullOn=l.pull,t.updateOn=l.update,t.reduce=o.aspects.deprecate("reduce","1.28.0","reduceIndexed")(i.reduce),t.mapValues=o.aspects.deprecate("mapValues","1.28.0","mapValuesIndexed")(i.mapValues),t.each=o.aspects.deprecate("each","1.28.0","eachIndexed")(i.each),t.mapIndexed=i.map,t.findIndexed=i.find,t.eachIndexed=i.each,t.reduceIndexed=i.reduce,t.pickByIndexed=i.pickBy,t.mapValuesIndexed=i.mapValues},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceElement=t.replaceElementBy=t.intersperse=t.toggleElement=t.toggleElementBy=t.chunkBy=t.slashEncoder=t.dotEncoder=t.encoder=t.prefixes=t.flags=t.zipObjectDeepWith=t.arrayToObject=t.cycle=t.mergeRanges=t.moveIndex=t.pushOn=t.pushIn=t.push=t.repeated=t.dotJoinWith=t.dotJoin=t.compactJoin=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(8),f=n(3),l=n(1);function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var c,d=(c=a.default.isEmpty,function(e){return function(t){return function(n,r){return c(n)?e(r):c(r)?e(n):t(n,r)}}})((function(e){return[e]})),s=a.default.dropRight(1),p=a.default.takeRight(1),y=t.compactJoin=a.default.curry((function(e,t){return a.default.compact(t).join(e)})),v=(t.dotJoin=y("."),t.dotJoinWith=function(e){return function(t){return a.default.filter(e,t).join(".")}},t.repeated=a.default.flow(a.default.groupBy((function(e){return e})),a.default.filter((function(e){return e.length>1})),a.default.flatten,a.default.uniq),t.push=a.default.curry((function(e,t){return t.concat([e])}))),g=(t.pushIn=a.default.curry((function(e,t){return e.concat([t])})),t.pushOn=a.default.curry((function(e,t){return e.push(t),e})),t.moveIndex=function(e,t,n){return a.default.flow(a.default.pullAt(e),(0,f.insertAtIndex)(t,n[e]))(n)},d((function(e,t){return function(e,t){return t[0]>e[1]}(e,t)?[e,t]:function(e,t){return[[e[0],a.default.max(e.concat(t))]]}(e,t)}))),h=(t.mergeRanges=a.default.flow(a.default.sortBy([0,1]),a.default.reduce((function(e,t){return s(e).concat(g(a.default.flatten(p(e)),t))}),[])),t.cycle=a.default.curry((function(e,t){return e[(e.indexOf(t)+1)%e.length]})),t.arrayToObject=a.default.curry((function(e,t,n){return a.default.flow(a.default.keyBy(e),a.default.mapValues(t))(n)})),t.zipObjectDeepWith=a.default.curry((function(e,t){return a.default.zipObjectDeep(e,a.default.isFunction(t)&&a.default.isArray(e)?a.default.times(t,e.length):t)}))),m=(t.flags=h(a.default,(function(){return!0})),t.prefixes=function(e){return a.default.range(1,e.length+1).map((function(t){return a.default.take(t,e)}))},t.encoder=function(e){return{encode:y(e),decode:a.default.split(e)}}),b=(t.dotEncoder=m("."),t.slashEncoder=m("/"),t.chunkBy=a.default.curry((function(e,t){return a.default.reduce((function(t,n){return e(a.default.last(t),n)?[].concat(i(a.default.initial(t)),[[].concat(i(a.default.last(t)),[n])]):[].concat(i(t),[[n]])}),[[a.default.head(t)]],a.default.tail(t))})),t.toggleElementBy=a.default.curry((function(e,t,n){return((0,o.callOrReturn)(e,t,n)?a.default.pull:v)(t,n)}))),O=(t.toggleElement=b(a.default.includes),t.intersperse=a.default.curry((function(e,t){var n,r=(n=t,Array.isArray(n)?n:Array.from(n)),u=r[0],a=r.slice(1);return(0,l.reduceIndexed)((function(t,n,r){return r===a.length?[].concat(i(t),[n]):[].concat(i(t),[(0,o.callOrReturn)(e,t,r,a),n])}),[u],a)})),t.replaceElementBy=a.default.curry((function(e,t,n){return a.default.map((function(n){return e(n)?t:n}),n)})));t.replaceElement=a.default.curry((function(e,t,n){return O(a.default.isEqual(e),t,n)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactMap=t.insertAtIndex=t.deepMap=t.map=t.findApply=t.flowMap=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(7);t.flowMap=function(){return a.default.map(a.default.flow.apply(a.default,arguments))},t.findApply=a.default.curry((function(e,t){return a.default.iteratee(e)(a.default.find(e,t))}));var f=t.map=a.default.curry((function(e,t){return(a.default.isArray(t)?a.default.map:a.default.mapValues).convert({cap:!1})(e,t)})),l=t.deepMap=a.default.curry((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.isTraversable;return n((function(t){return r(t)?l(e,e(t),n,r):t}),t)}));t.insertAtIndex=a.default.curry((function(e,t,n){return a.default.isString(n)?function(e,t,n){return n.slice(0,e)+t+n.slice(e)}(e,t,n):function(e,t,n){var r=a.default.clone(n);return r.splice(e,0,t),r}(e,t,n)})),t.compactMap=a.default.curry((function(e,t){return a.default.flow(a.default.map(e),a.default.compact)(t)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBlankDeep=t.isNotBlank=t.isBlank=t.append=t.isMultiple=t.exists=t.isNotNil=t.tapError=t.throws=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(7);t.throws=function(e){throw e},t.tapError=function(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];throw e.apply(void 0,[t].concat(r)),t}};var f=t.isNotNil=a.default.negate(a.default.isNil),l=(t.exists=f,t.isMultiple=function(e){return(e||[]).length>1},t.append=a.default.curry((function(e,t){return t+e})),t.isBlank=a.default.overSome([a.default.isNil,a.default.isEqual(""),a.default.isEqual([]),a.default.isEqual({})]));t.isNotBlank=a.default.negate(l),t.isBlankDeep=function(e){return function(t){return e(l,(0,o.tree)().leaves(t))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.whenTruthy=t.whenExists=t.unless=t.when=t.ifElse=t.overNone=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(8),f=n(4);t.overNone=a.default.flow(a.default.overSome,a.default.negate);var l=t.ifElse=a.default.curry((function(e,t,n,r){return function(e){return a.default.isBoolean(e)?function(){return e}:a.default.iteratee(e)}(e)(r)?(0,o.callOrReturn)(t,r):(0,o.callOrReturn)(n,r)})),i=t.when=a.default.curry((function(e,t,n){return l(e,t,a.default.identity,n)}));t.unless=a.default.curry((function(e,t,n){return l(e,a.default.identity,t,n)})),t.whenExists=i(f.exists),t.whenTruthy=i(Boolean)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aspects=t.aspectSync=t.aspect=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(1),f=n(4);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var c=t.aspect=function(e){var t=e.name,n=void 0===t?"aspect":t,r=e.init,u=void 0===r?a.default.noop:r,o=e.after,c=void 0===o?a.default.noop:o,d=e.before,s=void 0===d?a.default.noop:d,p=e.always,y=void 0===p?a.default.noop:p,v=e.onError,g=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=l({},n,(function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];var a=void 0,o=void 0;return Promise.resolve().then((function(){return s(n,r)})).then((function(){return e.apply(void 0,i(n))})).then((function(e){a=e})).then((function(){return c(a,r,n)})).catch((function(e){return g(e,r,n)})).catch((function(e){o=e})).then((function(){return y(r,n)})).then((function(){if(o)throw o})).then((function(){return a}))}));return a[n].state=r,a[n]}},d=t.aspectSync=function(e){var t=e.name,n=void 0===t?"aspect":t,r=e.init,u=void 0===r?a.default.noop:r,o=e.after,c=void 0===o?a.default.noop:o,d=e.before,s=void 0===d?a.default.noop:d,p=e.always,y=void 0===p?a.default.noop:p,v=e.onError,g=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=l({},n,(function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];try{s(n,r);var a=e.apply(void 0,i(n));return c(a,r,n),a}catch(e){throw g(e,r,n),e}finally{y(r,n)}}));return a[n].state=r,a[n]}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({error:null}),onError:(0,o.setOn)("error"),name:"error"})},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({status:null,processing:!1,succeeded:!1,failed:!1,setStatus:function(e){this.status=e,this.failed="failed"===e,this.succeeded="succeeded"===e,this.processing="processing"===e}}),before:function(e,t){t.setStatus("processing")},after:function(e,t){t.setStatus("succeeded")},onError:(0,f.tapError)((function(e,t){t.setStatus("failed")})),name:"status"})},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;return c({always:function(t){null!==e&&setTimeout((function(){t.setStatus(null)}),e)},name:"clearStatus"})},v=function(){return c({before:function(e,t){if(t.processing)throw Error("Concurrent Runs Not Allowed")},name:"concurrency"})};t.aspects={logs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({logs:[]}),after:function(e,t){return t.logs.push(e)},name:"logs"})},error:s,errors:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({errors:[]}),onError:function(e,t){return t.errors.push(e)},name:"errors"})},status:p,deprecate:function(e,t,n){return d({before:function(){return console.warn("`"+e+"` is deprecated"+(t?" as of "+t:"")+(n?" in favor of `"+n+"`":"")+" "+a.default.trim((Error().stack||"").split("\n")[3]))}})},clearStatus:y,concurrency:v,command:function(e,t){return a.default.flow(p(e),y(t),v(),s(e))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tree=t.flatLeaves=t.flattenTree=t.propTreePath=t.treePath=t.treeValues=t.treeKeys=t.keyTreeByWith=t.treeLookup=t.leaves=t.treeToArray=t.treeToArrayBy=t.reduceTree=t.transformTree=t.walk=t.traverse=t.isTraversable=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(1),f=n(2);function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=t.isTraversable=function(e){return a.default.isArray(e)||a.default.isPlainObject(e)},c=t.traverse=function(e){return i(e)&&!a.default.isEmpty(e)&&e},d=t.walk=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.noop,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(a,i){return n(a,i,u,f)||(0,o.findIndexed)(e(t)(n,r,[a].concat(l(u)),[i].concat(l(f))),t(a,i,u,f)||[])||r(a,i,u,f)}}},s=t.transformTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry((function(t,n){var r=a.default.cloneDeep(n);return d(e)(t)(r),r}))},p=t.reduceTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry((function(t,n,r){return d(e)((function(){for(var e=arguments.length,r=Array(e),u=0;u<e;u++)r[u]=arguments[u];n=t.apply(void 0,[n].concat(r))}))(r),n}))},y=t.treeToArrayBy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry((function(t,n){return p(e)((function(e,n){return(0,f.push)(t(n),e)}),[],n)}))},v=t.treeToArray=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return y(e)((function(e){return e}))},g=t.leaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.flow(v(e),a.default.reject(e))},h=t.treeLookup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.identity;return a.default.curry((function(n,r){return a.default.reduce((function(n,r){return a.default.find(t(r),e(n))}),r,n)}))},m=t.keyTreeByWith=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry((function(t,n,r){return a.default.flow(y(e)(a.default.iteratee(n)),a.default.uniq,a.default.keyBy(a.default.identity),a.default.mapValues((function(u){return s(e)((function(e){var r=a.default.iteratee(n)(e)===u;t(e,r,u)}),r)})))(r)}))},b=t.treeKeys=function(e,t,n,r){return[t].concat(l(r))},O=t.treeValues=function(e,t,n){return[e].concat(l(n))},j=t.treePath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.dotEncoder;return function(){return(t.encode||t)(e.apply(void 0,arguments).reverse())}},_=(t.propTreePath=function(e){return j(a.default.flow(O,a.default.map(e)),f.slashEncoder)},t.flattenTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j();return p(e)((function(e,n){for(var r=arguments.length,u=Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];return a.default.set([t.apply(void 0,[n].concat(u))],n,e)}),{})}}),A=t.flatLeaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.reject(e)};t.tree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.identity;return{walk:d(e),transform:s(e),reduce:p(e),toArrayBy:y(e),toArray:v(e),leaves:g(e),lookup:h(e,t),keyByWith:m(e),traverse:e,flatten:_(e),flatLeaves:A(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flurry=t.debounceAsync=t.defer=t.comply=t.composeApply=t.converge=t.boundMethod=t.callOrReturn=t.maybeCall=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r};t.maybeCall=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.default.isFunction(e)&&e.apply(void 0,n)},t.callOrReturn=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.default.isFunction(e)?e.apply(void 0,n):e},t.boundMethod=function(e,t){return t[e].bind(t)},t.converge=function(e,t){return function(){return e(a.default.over(t).apply(void 0,arguments))}};var o,f=t.composeApply=function(e,t){return function(n){return e(t(n))(n)}},l=(t.comply=f,t.defer=function(){var e=void 0,t=void 0,n=new Promise((function(n,r){e=n,t=r}));return{resolve:e,reject:t,promise:n}});t.debounceAsync=function(e,t){var n=l(),r=a.default.debounce(e,(function(){n.resolve(t.apply(void 0,arguments)),n=l()}));return function(){return r.apply(void 0,arguments),n.promise}},t.flurry=(o=a.default.flow,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.default.curryN(t[0].length,o.apply(void 0,t))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.differentLast=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r};t.differentLast=function(e,t){return function(n,r,u){return r===u.length-1?a.default.iteratee(t)(n,r,u):a.default.iteratee(e)(n,r,u)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=t.greaterThanOne=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(1);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})}));var a=n(3);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})}));var o=n(8);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}));var f=n(11);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})}));var l=n(12);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})}));var i=n(6);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}));var c=n(2);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})}));var d=n(5);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})}));var s=n(13);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})}));var p=n(4);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})}));var y=n(14);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})}));var v=n(7);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})}));var g=n(9);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}})}));var h,m=n(0),b=(h=m)&&h.__esModule?h:{default:h},O=T(u),j=T(a),_=T(o),A=T(f),w=T(l),x=T(i),E=T(c),k=T(d),M=T(s),P=T(p),I=T(y),B=T(v),S=T(g);function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var N=t.greaterThanOne=b.default.lt(1),R=t.VERSION="1.64.0";t.default=r({},O,j,_,A,w,x,E,k,M,P,I,B,S,{greaterThanOne:N,VERSION:R})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueString=t.uniqueStringWith=t.toSentence=t.toSentenceWith=t.autoLabelOptions=t.autoLabelOption=t.autoLabel=t.trimStrings=t.concatStrings=t.parens=t.quote=t.wrap=void 0;var r,u=n(3),a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(5),l=n(2),i=n(9);var c=t.wrap=function(e,t,n){return(e||"")+n+(t||e||"")},d=(t.quote=o.default.partial(c,['"','"']),t.parens=o.default.partial(c,["(",")"]),t.concatStrings=o.default.flow(o.default.compact,o.default.map(o.default.trim),o.default.join(" ")),t.trimStrings=(0,u.map)((0,f.when)(o.default.isString,o.default.trim)),t.autoLabel=o.default.startCase),s=t.autoLabelOption=function(e){return{value:(0,f.when)(o.default.isUndefined,e)(e.value),label:e.label||d((0,f.when)(o.default.isUndefined,e)(e.value))}},p=(t.autoLabelOptions=o.default.map(s),t.toSentenceWith=o.default.curry((function(e,t,n){return o.default.flow((0,l.intersperse)((0,i.differentLast)((function(){return e}),(function(){return t}))),o.default.join(""))(n)}))),y=(t.toSentence=p(", "," and "),t.uniqueStringWith=o.default.curry((function(e,t){var n=function(e){for(var t=e;r[t];)t=e+r[e],r[e]+=1;return r[t]=(r[t]||0)+1,t},r=e(t);return n.cache=r,n.clear=function(){n.cache=r={}},n})));t.uniqueString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return y(o.default.countBy(o.default.identity),e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expandObjectBy=t.expandObject=t.getWith=t.mergeOverAllArrays=t.mergeOverAllWith=t.mergeOverAll=t.omitEmpty=t.omitBlank=t.omitNull=t.omitNil=t.stampKey=t.invertByArray=t.mergeAllArrays=t.pickOn=t.diffArray=t.diff=t.simpleDiffArray=t.simpleDiff=t.unkeyBy=t.cascadeProp=t.cascadePropKey=t.cascadeKey=t.cascadeIn=t.cascade=t.aliasIn=t.alias=t.getOrReturn=t.mapProp=t.compareDeep=t.matchesSome=t.matchesSignature=t.unflattenObject=t.flattenObject=t.isFlatObject=t.unwind=t.renameProperty=t.pickInto=t.stripEmptyObjects=t.isNotEmptyObject=t.isEmptyObject=t.compactObject=t.chunkObject=t.singleObjectR=t.singleObject=void 0;var r,u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(2),l=n(5),i=n(4),c=n(1),d=n(3),s=n(6);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=o.default.convert({cap:!1}),v=t.singleObject=o.default.curry((function(e,t){return p({},e,t)})),g=t.singleObjectR=o.default.flip(v),h=t.chunkObject=function(e){return o.default.isArray(e)?e:o.default.map(o.default.spread(v),o.default.toPairs(e))},m=(t.compactObject=o.default.pickBy(o.default.identity),t.isEmptyObject=o.default.isEqual({})),b=t.isNotEmptyObject=o.default.negate(m),O=(t.stripEmptyObjects=o.default.pickBy(b),t.pickInto=function(e,t){return o.default.mapValues((0,c.pickIn)(t),e)},t.renameProperty=o.default.curry((function(e,t,n){return o.default.has(e,n)?o.default.flow((function(n){return o.default.set(t,o.default.get(e,n),n)}),o.default.unset(e))(n):n})),t.unwind=o.default.curry((function(e,t){return o.default.map((function(n){return o.default.set(e,n,t)}),o.default.get(e,t))})),t.isFlatObject=(0,l.overNone)([o.default.isPlainObject,o.default.isArray])),j=t.flattenObject=function e(t,n){return(0,c.reduceIndexed)((function(t,r,u){return o.default.merge(t,(O(r)?g:e)(r,(0,f.dotJoinWith)(i.isNotNil)([n,u])))}),{},t)},_=(t.unflattenObject=function(e){return o.default.zipObjectDeep(o.default.keys(e),o.default.values(e))},t.matchesSignature=o.default.curry((function(e,t){return o.default.isObject(t)&&!o.default.difference(o.default.keys(t),e).length})),t.matchesSome=o.default.flow(h,o.default.map(o.default.matches),o.default.overSome),t.compareDeep=o.default.curry((function(e,t,n){return o.default.get(e,t)===n})),t.mapProp=s.aspects.deprecate("mapProp","1.46.0","_.update")(y.update),t.getOrReturn=o.default.curry((function(e,t){return o.default.getOr(t,e,t)})),t.alias=o.default.curry((function(e,t){return o.default.getOr(e,e,t)})),t.aliasIn=o.default.curry((function(e,t){return o.default.getOr(t,t,e)})),t.cascade=o.default.curryN(2,(function(e,t,n){return o.default.flow((0,d.findApply)((function(e){return e&&o.default.iteratee(e)(t)})),o.default.defaultTo(n))(e)}))),A=(t.cascadeIn=o.default.curryN(2,(function(e,t,n){return _(t,e,n)})),t.cascadeKey=o.default.curry((function(e,t){return o.default.find((0,c.getIn)(t),e)})),t.cascadePropKey=o.default.curry((function(e,t){return o.default.find((0,c.hasIn)(t),e)}))),w=(t.cascadeProp=o.default.curry((function(e,t){return o.default.get(A(e,t),t)})),t.unkeyBy=o.default.curry((function(e,t){return(0,c.mapIndexed)((function(t,n){return o.default.extend(t,p({},e||n,n))}))(t)}))),x=t.simpleDiff=function(e,t){var n=j(e);return o.default.flow(j,(0,c.mapValuesIndexed)((function(e,t){return{from:n[t],to:e}})),o.default.omitBy((function(e){return e.from===e.to})))(t)},E=(t.simpleDiffArray=o.default.flow(x,w("field")),t.diff=function(e,t){var n=j(e),r=j(t);return o.default.flow((0,c.mapValuesIndexed)((function(e,t){return{from:n[t],to:r[t]}})),o.default.omitBy((function(e){return e.from===e.to})))(o.default.merge(n,r))}),k=(t.diffArray=o.default.flow(E,w("field")),t.pickOn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.default.flow(o.default.keys,o.default.map((function(n){o.default.includes(n,e)||delete t[n]})))(t)},function(e,t){return o.default.isArray(e)?e.concat(t):void 0}),M=t.mergeAllArrays=o.default.mergeAllWith(k),P=(t.invertByArray=o.default.flow((0,c.mapIndexed)((function(e,t){return(0,f.zipObjectDeepWith)(e,(function(){return[t]}))})),M),t.stampKey=o.default.curry((function(e,t){return(0,c.mapValuesIndexed)((function(t,n){return u({},t,p({},e,n))}),t)})),t.omitNil=function(e){return o.default.omitBy(o.default.isNil,e)},t.omitNull=function(e){return o.default.omitBy(o.default.isNull,e)},t.omitBlank=function(e){return o.default.omitBy(i.isBlank,e)},t.omitEmpty=function(e){return o.default.omitBy(o.default.isEmpty,e)},t.mergeOverAll=o.default.curryN(2,(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return o.default.flow(o.default.over(e),o.default.mergeAll).apply(void 0,n)})),t.mergeOverAllWith=o.default.curryN(3,(function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),u=2;u<n;u++)r[u-2]=arguments[u];return o.default.flow(o.default.over(t),o.default.mergeAllWith(e)).apply(void 0,r)}))),I=(t.mergeOverAllArrays=P(k),t.getWith=o.default.curry((function(e,t,n){return e(o.default.get(t,n))}))),B=t.expandObject=o.default.curry((function(e,t){return u({},t,e(t))}));t.expandObjectBy=o.default.curry((function(e,t,n){return B(I(t,e))(n)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.highlight=t.highlightFromPostings=t.postingsForWords=t.postings=t.allMatches=t.matchAnyWord=t.matchAllWords=t.wordsToRegexp=t.anyWordToRegexp=t.makeAndTest=t.makeRegex=t.testRegex=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(2),f=n(3);var l=t.testRegex=a.default.curry((function(e,t){return new RegExp(e).test(t)})),i=t.makeRegex=function(e){return function(t){return RegExp(t,e)}},c=(t.makeAndTest=function(e){return a.default.flow(i(e),l)},t.anyWordToRegexp=a.default.flow(a.default.words,a.default.join("|"))),d=t.wordsToRegexp=a.default.flow(a.default.words,a.default.map((function(e){return"(?=.*"+e+".*)"})),a.default.join(""),(function(e){return".*"+e+".*"})),s=a.default.curry((function(e,t){var n=RegExp(e(t),"gi");return function(e){return!(!e||!e.match(n))}})),p=(t.matchAllWords=s(d),t.matchAnyWord=s(c),t.allMatches=a.default.curry((function(e,t){for(var n=void 0,r=new RegExp(e,"g"),u=[];null!==(n=r.exec(t));)u.push({text:n[0],start:n.index,end:r.lastIndex});return u})),t.postings=a.default.curry((function(e,t){var n=e.exec(t),r=[];if(e.flags.indexOf("g")<0&&n)r.push([n.index,n.index+n[0].length]);else for(;n;)r.push([n.index,e.lastIndex]),n=e.exec(t);return r}))),y=t.postingsForWords=a.default.curry((function(e,t){return a.default.reduce((function(e,n){return(0,o.push)(p(RegExp(n,"gi"),t),e)}),[])(a.default.words(e))})),v=t.highlightFromPostings=a.default.curry((function(e,t,n,r){var u=0;return a.default.each((function(n){r=(0,f.insertAtIndex)(n[0]+u,e,r),u+=e.length,r=(0,f.insertAtIndex)(n[1]+u,t,r),u+=t.length}),(0,o.mergeRanges)(n)),r}));t.highlight=a.default.curry((function(e,t,n,r){return v(e,t,a.default.flatten(y(n,r)),r)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stateLens=t.domLens=t.off=t.on=t.flip=t.setsWith=t.sets=t.set=t.views=t.view=t.includeLens=t.lensOf=t.lensProp=t.objToFn=t.fnToObj=t.objectLens=t.functionLens=void 0;var r,u=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,u=!1,a=void 0;try{for(var o,f=e[Symbol.iterator]();!(r=(o=f.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){u=!0,a=e}finally{try{!r&&f.return&&f.return()}finally{if(u)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(1),l=n(2),i=n(5);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.functionLens=function(e){return function(){if(!arguments.length)return e;e=arguments.length<=0?void 0:arguments[0]}},t.objectLens=function(e){return{get:function(){return e},set:function(t){e=t}}},t.fnToObj=function(e){return{get:e,set:e}},t.objToFn=function(e){return function(){return arguments.length?e.set(arguments.length<=0?void 0:arguments[0]):e.get()}};var d=t.lensProp=function(e,t){return{get:function(){return o.default.get(e,t)},set:function(n){(0,f.setOn)(e,n,t)}}},s=(t.lensOf=function(e){return o.default.reduce((function(t,n){return t[n]=d(n,e),t}),{},o.default.keys(e))},t.includeLens=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{get:function(){return o.default.includes(e,g.apply(void 0,n))},set:function(t){return m.apply(void 0,[o.default.uniq((0,l.toggleElementBy)(!t,e,g.apply(void 0,n)))].concat(n))}}}),p=function(e,t){return{get:e,set:t}},y=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1]?o.default.every(o.default.isFunction,t)?p.apply(void 0,t):d.apply(void 0,t):(0,i.when)(o.default.isArray,x)(t[0])},v=function(e){return e.get?e.get():e()},g=t.view=function(){return v(y.apply(void 0,arguments))},h=(t.views=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return g.apply(void 0,t)}},function(e,t){return t.set?t.set(e):t(e)}),m=o.default.curryN(2,(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return h(e,y.apply(void 0,n))}));t.set=m;var b=t.sets=o.default.curryN(2,(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){return m.apply(void 0,[e].concat(n))}})),O=t.setsWith=o.default.curry((function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(t){return m.apply(void 0,[o.default.iteratee(e)(t)].concat(n))}})),j=(t.flip=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return m.apply(void 0,[!g.apply(void 0,t)].concat(t))}},t.on=b(!0)),_=t.off=b(!1),A=function(e,t){return function(){for(var n,r=arguments.length,u=Array(r),a=0;a<r;a++)u[a]=arguments[a];return c(n={},e,g.apply(void 0,u)),c(n,"onChange",O.apply(void 0,[t].concat(u))),n}},w=function(e){return A(e,(0,i.when)(o.default.has("target."+e),o.default.get("target."+e)))},x=(t.domLens={value:w("value"),checkboxValues:o.default.flow(s,w("checked")),hover:function(){return{onMouseOver:j.apply(void 0,arguments),onMouseOut:_.apply(void 0,arguments)}},focus:function(){return{onFocus:j.apply(void 0,arguments),onBlur:_.apply(void 0,arguments)}},targetBinding:w,binding:A},t.stateLens=function(e){var t=u(e,2),n=t[0];return{get:function(){return n},set:t[1]}})}])})); | ||
//# sourceMappingURL=futil-js.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash/fp")):"function"==typeof define&&define.amd?define(["lodash/fp"],t):"object"==typeof exports?exports.futil=t(require("lodash/fp")):e.futil=t(e["lodash/fp"])}(this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapValuesIndexed=t.pickByIndexed=t.reduceIndexed=t.eachIndexed=t.findIndexed=t.mapIndexed=t.each=t.mapValues=t.reduce=t.updateOn=t.pullOn=t.unsetOn=t.setOn=t.mergeOn=t.defaultsOn=t.extendOn=t.inversions=t.includesIn=t.pickIn=t.hasIn=t.getIn=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(5);var f=a.default.convert({rearg:!1}),l=a.default.convert({immutable:!1}),i=a.default.convert({cap:!1});t.getIn=f.get,t.hasIn=f.has,t.pickIn=f.pick,t.includesIn=f.includes,t.inversions=a.default.mapKeys((function(e){return e+"In"}),f),t.extendOn=l.extend,t.defaultsOn=l.defaults,t.mergeOn=l.merge,t.setOn=l.set,t.unsetOn=a.default.curryN(2,l.unset),t.pullOn=l.pull,t.updateOn=l.update,t.reduce=o.aspects.deprecate("reduce","1.28.0","reduceIndexed")(i.reduce),t.mapValues=o.aspects.deprecate("mapValues","1.28.0","mapValuesIndexed")(i.mapValues),t.each=o.aspects.deprecate("each","1.28.0","eachIndexed")(i.each),t.mapIndexed=i.map,t.findIndexed=i.find,t.eachIndexed=i.each,t.reduceIndexed=i.reduce,t.pickByIndexed=i.pickBy,t.mapValuesIndexed=i.mapValues},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceElement=t.replaceElementBy=t.intersperse=t.toggleElement=t.toggleElementBy=t.chunkBy=t.slashEncoder=t.dotEncoder=t.encoder=t.prefixes=t.flags=t.zipObjectDeepWith=t.arrayToObject=t.cycle=t.mergeRanges=t.moveIndex=t.pushOn=t.pushIn=t.push=t.repeated=t.dotJoinWith=t.dotJoin=t.compactJoin=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(7),f=n(3),l=n(1);function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var c,d=(c=a.default.isEmpty,function(e){return function(t){return function(n,r){return c(n)?e(r):c(r)?e(n):t(n,r)}}})((function(e){return[e]})),s=a.default.dropRight(1),p=a.default.takeRight(1),y=t.compactJoin=a.default.curry((function(e,t){return a.default.compact(t).join(e)})),v=(t.dotJoin=y("."),t.dotJoinWith=function(e){return function(t){return a.default.filter(e,t).join(".")}},t.repeated=a.default.flow(a.default.groupBy((function(e){return e})),a.default.filter((function(e){return e.length>1})),a.default.flatten,a.default.uniq),t.push=a.default.curry((function(e,t){return t.concat([e])}))),g=(t.pushIn=a.default.curry((function(e,t){return e.concat([t])})),t.pushOn=a.default.curry((function(e,t){return e.push(t),e})),t.moveIndex=function(e,t,n){return a.default.flow(a.default.pullAt(e),(0,f.insertAtIndex)(t,n[e]))(n)},d((function(e,t){return function(e,t){return t[0]>e[1]}(e,t)?[e,t]:function(e,t){return[[e[0],a.default.max(e.concat(t))]]}(e,t)}))),h=(t.mergeRanges=a.default.flow(a.default.sortBy([0,1]),a.default.reduce((function(e,t){return s(e).concat(g(a.default.flatten(p(e)),t))}),[])),t.cycle=a.default.curry((function(e,t){return e[(e.indexOf(t)+1)%e.length]})),t.arrayToObject=a.default.curry((function(e,t,n){return a.default.flow(a.default.keyBy(e),a.default.mapValues(t))(n)})),t.zipObjectDeepWith=a.default.curry((function(e,t){return a.default.zipObjectDeep(e,a.default.isFunction(t)&&a.default.isArray(e)?a.default.times(t,e.length):t)}))),m=(t.flags=h(a.default,(function(){return!0})),t.prefixes=function(e){return a.default.range(1,e.length+1).map((function(t){return a.default.take(t,e)}))},t.encoder=function(e){return{encode:y(e),decode:a.default.split(e)}}),b=(t.dotEncoder=m("."),t.slashEncoder=m("/"),t.chunkBy=a.default.curry((function(e,t){return a.default.reduce((function(t,n){return e(a.default.last(t),n)?[].concat(i(a.default.initial(t)),[[].concat(i(a.default.last(t)),[n])]):[].concat(i(t),[[n]])}),[[a.default.head(t)]],a.default.tail(t))})),t.toggleElementBy=a.default.curry((function(e,t,n){return((0,o.callOrReturn)(e,t,n)?a.default.pull:v)(t,n)}))),O=(t.toggleElement=b(a.default.includes),t.intersperse=a.default.curry((function(e,t){var n,r=(n=t,Array.isArray(n)?n:Array.from(n)),u=r[0],a=r.slice(1);return(0,l.reduceIndexed)((function(t,n,r){return r===a.length?[].concat(i(t),[n]):[].concat(i(t),[(0,o.callOrReturn)(e,t,r,a),n])}),[u],a)})),t.replaceElementBy=a.default.curry((function(e,t,n){return a.default.map((function(n){return e(n)?t:n}),n)})));t.replaceElement=a.default.curry((function(e,t,n){return O(a.default.isEqual(e),t,n)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactMap=t.insertAtIndex=t.deepMap=t.map=t.findApply=t.flowMap=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(6);t.flowMap=function(){return a.default.map(a.default.flow.apply(a.default,arguments))},t.findApply=a.default.curry((function(e,t){return a.default.iteratee(e)(a.default.find(e,t))}));var f=t.map=a.default.curry((function(e,t){return(a.default.isArray(t)?a.default.map:a.default.mapValues).convert({cap:!1})(e,t)})),l=t.deepMap=a.default.curry((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.isTraversable;return n((function(t){return r(t)?l(e,e(t),n,r):t}),t)}));t.insertAtIndex=a.default.curry((function(e,t,n){return a.default.isString(n)?function(e,t,n){return n.slice(0,e)+t+n.slice(e)}(e,t,n):function(e,t,n){var r=a.default.clone(n);return r.splice(e,0,t),r}(e,t,n)})),t.compactMap=a.default.curry((function(e,t){return a.default.flow(a.default.map(e),a.default.compact)(t)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBlankDeep=t.isNotBlank=t.isBlank=t.append=t.isMultiple=t.exists=t.isNotNil=t.tapError=t.throws=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(6);t.throws=function(e){throw e},t.tapError=function(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];throw e.apply(void 0,[t].concat(r)),t}};var f=t.isNotNil=a.default.negate(a.default.isNil),l=(t.exists=f,t.isMultiple=function(e){return(e||[]).length>1},t.append=a.default.curry((function(e,t){return t+e})),t.isBlank=a.default.overSome([a.default.isNil,a.default.isEqual(""),a.default.isEqual([]),a.default.isEqual({})]));t.isNotBlank=a.default.negate(l),t.isBlankDeep=function(e){return function(t){return e(l,(0,o.tree)().leaves(t))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aspects=t.aspectSync=t.aspect=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(1),f=n(4);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var c=t.aspect=function(e){var t=e.name,n=void 0===t?"aspect":t,r=e.init,u=void 0===r?a.default.noop:r,o=e.after,c=void 0===o?a.default.noop:o,d=e.before,s=void 0===d?a.default.noop:d,p=e.always,y=void 0===p?a.default.noop:p,v=e.onError,g=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=l({},n,(function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];var a=void 0,o=void 0;return Promise.resolve().then((function(){return s(n,r)})).then((function(){return e.apply(void 0,i(n))})).then((function(e){a=e})).then((function(){return c(a,r,n)})).catch((function(e){return g(e,r,n)})).catch((function(e){o=e})).then((function(){return y(r,n)})).then((function(){if(o)throw o})).then((function(){return a}))}));return a[n].state=r,a[n]}},d=t.aspectSync=function(e){var t=e.name,n=void 0===t?"aspect":t,r=e.init,u=void 0===r?a.default.noop:r,o=e.after,c=void 0===o?a.default.noop:o,d=e.before,s=void 0===d?a.default.noop:d,p=e.always,y=void 0===p?a.default.noop:p,v=e.onError,g=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=l({},n,(function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];try{s(n,r);var a=e.apply(void 0,i(n));return c(a,r,n),a}catch(e){throw g(e,r,n),e}finally{y(r,n)}}));return a[n].state=r,a[n]}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({error:null}),onError:(0,o.setOn)("error"),name:"error"})},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({status:null,processing:!1,succeeded:!1,failed:!1,setStatus:function(e){this.status=e,this.failed="failed"===e,this.succeeded="succeeded"===e,this.processing="processing"===e}}),before:function(e,t){t.setStatus("processing")},after:function(e,t){t.setStatus("succeeded")},onError:(0,f.tapError)((function(e,t){t.setStatus("failed")})),name:"status"})},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;return c({always:function(t){null!==e&&setTimeout((function(){t.setStatus(null)}),e)},name:"clearStatus"})},v=function(){return c({before:function(e,t){if(t.processing)throw Error("Concurrent Runs Not Allowed")},name:"concurrency"})};t.aspects={logs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({logs:[]}),after:function(e,t){return t.logs.push(e)},name:"logs"})},error:s,errors:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({errors:[]}),onError:function(e,t){return t.errors.push(e)},name:"errors"})},status:p,deprecate:function(e,t,n){return d({before:function(){return console.warn("`"+e+"` is deprecated"+(t?" as of "+t:"")+(n?" in favor of `"+n+"`":"")+" "+a.default.trim((Error().stack||"").split("\n")[3]))}})},clearStatus:y,concurrency:v,command:function(e,t){return a.default.flow(p(e),y(t),v(),s(e))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tree=t.flatLeaves=t.flattenTree=t.propTreePath=t.treePath=t.treeValues=t.treeKeys=t.keyTreeByWith=t.treeLookup=t.leaves=t.treeToArray=t.treeToArrayBy=t.reduceTree=t.transformTree=t.walk=t.traverse=t.isTraversable=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(1),f=n(2);function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=t.isTraversable=function(e){return a.default.isArray(e)||a.default.isPlainObject(e)},c=t.traverse=function(e){return i(e)&&!a.default.isEmpty(e)&&e},d=t.walk=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.noop,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(a,i){return n(a,i,u,f)||(0,o.findIndexed)(e(t)(n,r,[a].concat(l(u)),[i].concat(l(f))),t(a,i,u,f)||[])||r(a,i,u,f)}}},s=t.transformTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry((function(t,n){var r=a.default.cloneDeep(n);return d(e)(t)(r),r}))},p=t.reduceTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry((function(t,n,r){return d(e)((function(){for(var e=arguments.length,r=Array(e),u=0;u<e;u++)r[u]=arguments[u];n=t.apply(void 0,[n].concat(r))}))(r),n}))},y=t.treeToArrayBy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry((function(t,n){return p(e)((function(e,n){return(0,f.push)(t(n),e)}),[],n)}))},v=t.treeToArray=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return y(e)((function(e){return e}))},g=t.leaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.flow(v(e),a.default.reject(e))},h=t.treeLookup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.identity;return a.default.curry((function(n,r){return a.default.reduce((function(n,r){return a.default.find(t(r),e(n))}),r,n)}))},m=t.keyTreeByWith=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry((function(t,n,r){return a.default.flow(y(e)(a.default.iteratee(n)),a.default.uniq,a.default.keyBy(a.default.identity),a.default.mapValues((function(u){return s(e)((function(e){var r=a.default.iteratee(n)(e)===u;t(e,r,u)}),r)})))(r)}))},b=t.treeKeys=function(e,t,n,r){return[t].concat(l(r))},O=t.treeValues=function(e,t,n){return[e].concat(l(n))},j=t.treePath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.dotEncoder;return function(){return(t.encode||t)(e.apply(void 0,arguments).reverse())}},_=(t.propTreePath=function(e){return j(a.default.flow(O,a.default.map(e)),f.slashEncoder)},t.flattenTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j();return p(e)((function(e,n){for(var r=arguments.length,u=Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];return a.default.set([t.apply(void 0,[n].concat(u))],n,e)}),{})}}),A=t.flatLeaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.reject(e)};t.tree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.identity;return{walk:d(e),transform:s(e),reduce:p(e),toArrayBy:y(e),toArray:v(e),leaves:g(e),lookup:h(e,t),keyByWith:m(e),traverse:e,flatten:_(e),flatLeaves:A(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flurry=t.debounceAsync=t.defer=t.comply=t.composeApply=t.converge=t.boundMethod=t.callOrReturn=t.maybeCall=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r};t.maybeCall=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.default.isFunction(e)&&e.apply(void 0,n)},t.callOrReturn=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.default.isFunction(e)?e.apply(void 0,n):e},t.boundMethod=function(e,t){return t[e].bind(t)},t.converge=function(e,t){return function(){return e(a.default.over(t).apply(void 0,arguments))}};var o,f=t.composeApply=function(e,t){return function(n){return e(t(n))(n)}},l=(t.comply=f,t.defer=function(){var e=void 0,t=void 0,n=new Promise((function(n,r){e=n,t=r}));return{resolve:e,reject:t,promise:n}});t.debounceAsync=function(e,t){var n=l(),r=a.default.debounce(e,(function(){n.resolve(t.apply(void 0,arguments)),n=l()}));return function(){return r.apply(void 0,arguments),n.promise}},t.flurry=(o=a.default.flow,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.default.curryN(t[0].length,o.apply(void 0,t))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.whenTruthy=t.whenExists=t.unless=t.when=t.ifElse=t.overNone=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(7),f=n(4);t.overNone=a.default.flow(a.default.overSome,a.default.negate);var l=t.ifElse=a.default.curry((function(e,t,n,r){return function(e){return a.default.isBoolean(e)?function(){return e}:a.default.iteratee(e)}(e)(r)?(0,o.callOrReturn)(t,r):(0,o.callOrReturn)(n,r)})),i=t.when=a.default.curry((function(e,t,n){return l(e,t,a.default.identity,n)}));t.unless=a.default.curry((function(e,t,n){return l(e,a.default.identity,t,n)})),t.whenExists=i(f.exists),t.whenTruthy=i(Boolean)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.differentLast=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r};t.differentLast=function(e,t){return function(n,r,u){return r===u.length-1?a.default.iteratee(t)(n,r,u):a.default.iteratee(e)(n,r,u)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=t.greaterThanOne=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(1);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})}));var a=n(3);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})}));var o=n(7);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}));var f=n(11);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})}));var l=n(12);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})}));var i=n(5);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}));var c=n(2);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})}));var d=n(8);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})}));var s=n(13);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})}));var p=n(4);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})}));var y=n(14);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})}));var v=n(6);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})}));var g=n(9);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}})}));var h,m=n(0),b=(h=m)&&h.__esModule?h:{default:h},O=T(u),j=T(a),_=T(o),A=T(f),w=T(l),x=T(i),E=T(c),k=T(d),M=T(s),P=T(p),I=T(y),B=T(v),S=T(g);function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var N=t.greaterThanOne=b.default.lt(1),R=t.VERSION="1.63.1";t.default=r({},O,j,_,A,w,x,E,k,M,P,I,B,S,{greaterThanOne:N,VERSION:R})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueString=t.uniqueStringWith=t.toSentence=t.toSentenceWith=t.autoLabelOptions=t.autoLabelOption=t.autoLabel=t.trimStrings=t.concatStrings=t.parens=t.quote=t.wrap=void 0;var r,u=n(3),a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(8),l=n(2),i=n(9);var c=t.wrap=function(e,t,n){return(e||"")+n+(t||e||"")},d=(t.quote=o.default.partial(c,['"','"']),t.parens=o.default.partial(c,["(",")"]),t.concatStrings=o.default.flow(o.default.compact,o.default.map(o.default.trim),o.default.join(" ")),t.trimStrings=(0,u.map)((0,f.when)(o.default.isString,o.default.trim)),t.autoLabel=o.default.startCase),s=t.autoLabelOption=function(e){return{value:(0,f.when)(o.default.isUndefined,e)(e.value),label:e.label||d((0,f.when)(o.default.isUndefined,e)(e.value))}},p=(t.autoLabelOptions=o.default.map(s),t.toSentenceWith=o.default.curry((function(e,t,n){return o.default.flow((0,l.intersperse)((0,i.differentLast)((function(){return e}),(function(){return t}))),o.default.join(""))(n)}))),y=(t.toSentence=p(", "," and "),t.uniqueStringWith=o.default.curry((function(e,t){var n=function(e){for(var t=e;r[t];)t=e+r[e],r[e]+=1;return r[t]=(r[t]||0)+1,t},r=e(t);return n.cache=r,n.clear=function(){n.cache=r={}},n})));t.uniqueString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return y(o.default.countBy(o.default.identity),e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expandObjectBy=t.expandObject=t.getWith=t.mergeOverAllArrays=t.mergeOverAllWith=t.mergeOverAll=t.omitEmpty=t.omitBlank=t.omitNull=t.omitNil=t.stampKey=t.invertByArray=t.mergeAllArrays=t.pickOn=t.diffArray=t.diff=t.simpleDiffArray=t.simpleDiff=t.unkeyBy=t.cascadeProp=t.cascadePropKey=t.cascadeKey=t.cascadeIn=t.cascade=t.aliasIn=t.alias=t.getOrReturn=t.mapProp=t.compareDeep=t.matchesSome=t.matchesSignature=t.unflattenObject=t.flattenObject=t.isFlatObject=t.unwind=t.renameProperty=t.pickInto=t.stripEmptyObjects=t.isNotEmptyObject=t.isEmptyObject=t.compactObject=t.chunkObject=t.singleObjectR=t.singleObject=void 0;var r,u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(2),l=n(8),i=n(4),c=n(1),d=n(3),s=n(5);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=o.default.convert({cap:!1}),v=t.singleObject=o.default.curry((function(e,t){return p({},e,t)})),g=t.singleObjectR=o.default.flip(v),h=t.chunkObject=function(e){return o.default.isArray(e)?e:o.default.map(o.default.spread(v),o.default.toPairs(e))},m=(t.compactObject=o.default.pickBy(o.default.identity),t.isEmptyObject=o.default.isEqual({})),b=t.isNotEmptyObject=o.default.negate(m),O=(t.stripEmptyObjects=o.default.pickBy(b),t.pickInto=function(e,t){return o.default.mapValues((0,c.pickIn)(t),e)},t.renameProperty=o.default.curry((function(e,t,n){return o.default.has(e,n)?o.default.flow((function(n){return o.default.set(t,o.default.get(e,n),n)}),o.default.unset(e))(n):n})),t.unwind=o.default.curry((function(e,t){return o.default.map((function(n){return o.default.set(e,n,t)}),o.default.get(e,t))})),t.isFlatObject=(0,l.overNone)([o.default.isPlainObject,o.default.isArray])),j=t.flattenObject=function e(t,n){return(0,c.reduceIndexed)((function(t,r,u){return o.default.merge(t,(O(r)?g:e)(r,(0,f.dotJoinWith)(i.isNotNil)([n,u])))}),{},t)},_=(t.unflattenObject=function(e){return o.default.zipObjectDeep(o.default.keys(e),o.default.values(e))},t.matchesSignature=o.default.curry((function(e,t){return o.default.isObject(t)&&!o.default.difference(o.default.keys(t),e).length})),t.matchesSome=o.default.flow(h,o.default.map(o.default.matches),o.default.overSome),t.compareDeep=o.default.curry((function(e,t,n){return o.default.get(e,t)===n})),t.mapProp=s.aspects.deprecate("mapProp","1.46.0","_.update")(y.update),t.getOrReturn=o.default.curry((function(e,t){return o.default.getOr(t,e,t)})),t.alias=o.default.curry((function(e,t){return o.default.getOr(e,e,t)})),t.aliasIn=o.default.curry((function(e,t){return o.default.getOr(t,t,e)})),t.cascade=o.default.curryN(2,(function(e,t,n){return o.default.flow((0,d.findApply)((function(e){return e&&o.default.iteratee(e)(t)})),o.default.defaultTo(n))(e)}))),A=(t.cascadeIn=o.default.curryN(2,(function(e,t,n){return _(t,e,n)})),t.cascadeKey=o.default.curry((function(e,t){return o.default.find((0,c.getIn)(t),e)})),t.cascadePropKey=o.default.curry((function(e,t){return o.default.find((0,c.hasIn)(t),e)}))),w=(t.cascadeProp=o.default.curry((function(e,t){return o.default.get(A(e,t),t)})),t.unkeyBy=o.default.curry((function(e,t){return(0,c.mapIndexed)((function(t,n){return o.default.extend(t,p({},e||n,n))}))(t)}))),x=t.simpleDiff=function(e,t){var n=j(e);return o.default.flow(j,(0,c.mapValuesIndexed)((function(e,t){return{from:n[t],to:e}})),o.default.omitBy((function(e){return e.from===e.to})))(t)},E=(t.simpleDiffArray=o.default.flow(x,w("field")),t.diff=function(e,t){var n=j(e),r=j(t);return o.default.flow((0,c.mapValuesIndexed)((function(e,t){return{from:n[t],to:r[t]}})),o.default.omitBy((function(e){return e.from===e.to})))(o.default.merge(n,r))}),k=(t.diffArray=o.default.flow(E,w("field")),t.pickOn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.default.flow(o.default.keys,o.default.map((function(n){o.default.includes(n,e)||delete t[n]})))(t)},function(e,t){return o.default.isArray(e)?e.concat(t):void 0}),M=t.mergeAllArrays=o.default.mergeAllWith(k),P=(t.invertByArray=o.default.flow((0,c.mapIndexed)((function(e,t){return(0,f.zipObjectDeepWith)(e,(function(){return[t]}))})),M),t.stampKey=o.default.curry((function(e,t){return(0,c.mapValuesIndexed)((function(t,n){return u({},t,p({},e,n))}),t)})),t.omitNil=function(e){return o.default.omitBy(o.default.isNil,e)},t.omitNull=function(e){return o.default.omitBy(o.default.isNull,e)},t.omitBlank=function(e){return o.default.omitBy(i.isBlank,e)},t.omitEmpty=function(e){return o.default.omitBy(o.default.isEmpty,e)},t.mergeOverAll=o.default.curryN(2,(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return o.default.flow(o.default.over(e),o.default.mergeAll).apply(void 0,n)})),t.mergeOverAllWith=o.default.curryN(3,(function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),u=2;u<n;u++)r[u-2]=arguments[u];return o.default.flow(o.default.over(t),o.default.mergeAllWith(e)).apply(void 0,r)}))),I=(t.mergeOverAllArrays=P(k),t.getWith=o.default.curry((function(e,t,n){return e(o.default.get(t,n))}))),B=t.expandObject=o.default.curry((function(e,t){return u({},t,e(t))}));t.expandObjectBy=o.default.curry((function(e,t,n){return B(I(t,e))(n)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.highlight=t.highlightFromPostings=t.postingsForWords=t.postings=t.allMatches=t.matchAnyWord=t.matchAllWords=t.wordsToRegexp=t.anyWordToRegexp=t.makeAndTest=t.makeRegex=t.testRegex=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(2),f=n(3);var l=t.testRegex=a.default.curry((function(e,t){return new RegExp(e).test(t)})),i=t.makeRegex=function(e){return function(t){return RegExp(t,e)}},c=(t.makeAndTest=function(e){return a.default.flow(i(e),l)},t.anyWordToRegexp=a.default.flow(a.default.words,a.default.join("|"))),d=t.wordsToRegexp=a.default.flow(a.default.words,a.default.map((function(e){return"(?=.*"+e+".*)"})),a.default.join(""),(function(e){return".*"+e+".*"})),s=a.default.curry((function(e,t){var n=RegExp(e(t),"gi");return function(e){return!(!e||!e.match(n))}})),p=(t.matchAllWords=s(d),t.matchAnyWord=s(c),t.allMatches=a.default.curry((function(e,t){for(var n=void 0,r=new RegExp(e,"g"),u=[];null!==(n=r.exec(t));)u.push({text:n[0],start:n.index,end:r.lastIndex});return u})),t.postings=a.default.curry((function(e,t){var n=e.exec(t),r=[];if(e.flags.indexOf("g")<0&&n)r.push([n.index,n.index+n[0].length]);else for(;n;)r.push([n.index,e.lastIndex]),n=e.exec(t);return r}))),y=t.postingsForWords=a.default.curry((function(e,t){return a.default.reduce((function(e,n){return(0,o.push)(p(RegExp(n,"gi"),t),e)}),[])(a.default.words(e))})),v=t.highlightFromPostings=a.default.curry((function(e,t,n,r){var u=0;return a.default.each((function(n){r=(0,f.insertAtIndex)(n[0]+u,e,r),u+=e.length,r=(0,f.insertAtIndex)(n[1]+u,t,r),u+=t.length}),(0,o.mergeRanges)(n)),r}));t.highlight=a.default.curry((function(e,t,n,r){return v(e,t,a.default.flatten(y(n,r)),r)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stateLens=t.domLens=t.off=t.on=t.flip=t.setsWith=t.sets=t.set=t.views=t.view=t.includeLens=t.lensOf=t.lensProp=t.objToFn=t.fnToObj=t.objectLens=t.functionLens=void 0;var r,u=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,u=!1,a=void 0;try{for(var o,f=e[Symbol.iterator]();!(r=(o=f.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){u=!0,a=e}finally{try{!r&&f.return&&f.return()}finally{if(u)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(1),l=n(2);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.functionLens=function(e){return function(){if(!arguments.length)return e;e=arguments.length<=0?void 0:arguments[0]}},t.objectLens=function(e){return{get:function(){return e},set:function(t){e=t}}},t.fnToObj=function(e){return{get:e,set:e}},t.objToFn=function(e){return function(){return arguments.length?e.set(arguments.length<=0?void 0:arguments[0]):e.get()}};var c=t.lensProp=function(e,t){return{get:function(){return o.default.get(e,t)},set:function(n){(0,f.setOn)(e,n,t)}}},d=(t.lensOf=function(e){return o.default.reduce((function(t,n){return t[n]=c(n,e),t}),{},o.default.keys(e))},t.includeLens=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{get:function(){return o.default.includes(e,y.apply(void 0,n))},set:function(t){return g.apply(void 0,[o.default.uniq((0,l.toggleElementBy)(!t,e,y.apply(void 0,n)))].concat(n))}}}),s=function(){return(arguments.length<=1?void 0:arguments[1])?c.apply(void 0,arguments):arguments.length<=0?void 0:arguments[0]},p=function(e){return e.get?e.get():e()},y=t.view=function(){return p(s.apply(void 0,arguments))},v=(t.views=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return y.apply(void 0,t)}},function(e,t){return t.set?t.set(e):t(e)}),g=o.default.curryN(2,(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return v(e,s.apply(void 0,n))}));t.set=g;var h=t.sets=o.default.curryN(2,(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){return g.apply(void 0,[e].concat(n))}})),m=t.setsWith=o.default.curry((function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(t){return g.apply(void 0,[o.default.iteratee(e)(t)].concat(n))}})),b=(t.flip=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return g.apply(void 0,[!y.apply(void 0,t)].concat(t))}},t.on=h(!0)),O=t.off=h(!1),j=function(e,t){return function(){for(var n,r=arguments.length,u=Array(r),a=0;a<r;a++)u[a]=arguments[a];return i(n={},e,y.apply(void 0,u)),i(n,"onChange",m.apply(void 0,[t].concat(u))),n}},_=function(e){return j(e,"target."+e)};t.domLens={value:_("value"),checkboxValues:o.default.flow(d,_("checked")),hover:function(){return{onMouseOver:b.apply(void 0,arguments),onMouseOut:O.apply(void 0,arguments)}},focus:function(){return{onFocus:b.apply(void 0,arguments),onBlur:O.apply(void 0,arguments)}},targetBinding:_,binding:j},t.stateLens=function(e){var t=u(e,2),n=t[0];return{get:function(){return n},set:t[1]}}}])})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash/fp")):"function"==typeof define&&define.amd?define(["lodash/fp"],t):"object"==typeof exports?exports.futil=t(require("lodash/fp")):e.futil=t(e["lodash/fp"])}(this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapValuesIndexed=t.pickByIndexed=t.reduceIndexed=t.eachIndexed=t.findIndexed=t.mapIndexed=t.each=t.mapValues=t.reduce=t.updateOn=t.pullOn=t.unsetOn=t.setOn=t.mergeOn=t.defaultsOn=t.extendOn=t.inversions=t.includesIn=t.pickIn=t.hasIn=t.getIn=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(6);var f=a.default.convert({rearg:!1}),l=a.default.convert({immutable:!1}),i=a.default.convert({cap:!1});t.getIn=f.get,t.hasIn=f.has,t.pickIn=f.pick,t.includesIn=f.includes,t.inversions=a.default.mapKeys((function(e){return e+"In"}),f),t.extendOn=l.extend,t.defaultsOn=l.defaults,t.mergeOn=l.merge,t.setOn=l.set,t.unsetOn=a.default.curryN(2,l.unset),t.pullOn=l.pull,t.updateOn=l.update,t.reduce=o.aspects.deprecate("reduce","1.28.0","reduceIndexed")(i.reduce),t.mapValues=o.aspects.deprecate("mapValues","1.28.0","mapValuesIndexed")(i.mapValues),t.each=o.aspects.deprecate("each","1.28.0","eachIndexed")(i.each),t.mapIndexed=i.map,t.findIndexed=i.find,t.eachIndexed=i.each,t.reduceIndexed=i.reduce,t.pickByIndexed=i.pickBy,t.mapValuesIndexed=i.mapValues},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceElement=t.replaceElementBy=t.intersperse=t.toggleElement=t.toggleElementBy=t.chunkBy=t.slashEncoder=t.dotEncoder=t.encoder=t.prefixes=t.flags=t.zipObjectDeepWith=t.arrayToObject=t.cycle=t.mergeRanges=t.moveIndex=t.pushOn=t.pushIn=t.push=t.repeated=t.dotJoinWith=t.dotJoin=t.compactJoin=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(8),f=n(3),l=n(1);function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var c,d=(c=a.default.isEmpty,function(e){return function(t){return function(n,r){return c(n)?e(r):c(r)?e(n):t(n,r)}}})((function(e){return[e]})),s=a.default.dropRight(1),p=a.default.takeRight(1),y=t.compactJoin=a.default.curry((function(e,t){return a.default.compact(t).join(e)})),v=(t.dotJoin=y("."),t.dotJoinWith=function(e){return function(t){return a.default.filter(e,t).join(".")}},t.repeated=a.default.flow(a.default.groupBy((function(e){return e})),a.default.filter((function(e){return e.length>1})),a.default.flatten,a.default.uniq),t.push=a.default.curry((function(e,t){return t.concat([e])}))),g=(t.pushIn=a.default.curry((function(e,t){return e.concat([t])})),t.pushOn=a.default.curry((function(e,t){return e.push(t),e})),t.moveIndex=function(e,t,n){return a.default.flow(a.default.pullAt(e),(0,f.insertAtIndex)(t,n[e]))(n)},d((function(e,t){return function(e,t){return t[0]>e[1]}(e,t)?[e,t]:function(e,t){return[[e[0],a.default.max(e.concat(t))]]}(e,t)}))),h=(t.mergeRanges=a.default.flow(a.default.sortBy([0,1]),a.default.reduce((function(e,t){return s(e).concat(g(a.default.flatten(p(e)),t))}),[])),t.cycle=a.default.curry((function(e,t){return e[(e.indexOf(t)+1)%e.length]})),t.arrayToObject=a.default.curry((function(e,t,n){return a.default.flow(a.default.keyBy(e),a.default.mapValues(t))(n)})),t.zipObjectDeepWith=a.default.curry((function(e,t){return a.default.zipObjectDeep(e,a.default.isFunction(t)&&a.default.isArray(e)?a.default.times(t,e.length):t)}))),m=(t.flags=h(a.default,(function(){return!0})),t.prefixes=function(e){return a.default.range(1,e.length+1).map((function(t){return a.default.take(t,e)}))},t.encoder=function(e){return{encode:y(e),decode:a.default.split(e)}}),b=(t.dotEncoder=m("."),t.slashEncoder=m("/"),t.chunkBy=a.default.curry((function(e,t){return a.default.reduce((function(t,n){return e(a.default.last(t),n)?[].concat(i(a.default.initial(t)),[[].concat(i(a.default.last(t)),[n])]):[].concat(i(t),[[n]])}),[[a.default.head(t)]],a.default.tail(t))})),t.toggleElementBy=a.default.curry((function(e,t,n){return((0,o.callOrReturn)(e,t,n)?a.default.pull:v)(t,n)}))),O=(t.toggleElement=b(a.default.includes),t.intersperse=a.default.curry((function(e,t){var n,r=(n=t,Array.isArray(n)?n:Array.from(n)),u=r[0],a=r.slice(1);return(0,l.reduceIndexed)((function(t,n,r){return r===a.length?[].concat(i(t),[n]):[].concat(i(t),[(0,o.callOrReturn)(e,t,r,a),n])}),[u],a)})),t.replaceElementBy=a.default.curry((function(e,t,n){return a.default.map((function(n){return e(n)?t:n}),n)})));t.replaceElement=a.default.curry((function(e,t,n){return O(a.default.isEqual(e),t,n)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compactMap=t.insertAtIndex=t.deepMap=t.map=t.findApply=t.flowMap=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(7);t.flowMap=function(){return a.default.map(a.default.flow.apply(a.default,arguments))},t.findApply=a.default.curry((function(e,t){return a.default.iteratee(e)(a.default.find(e,t))}));var f=t.map=a.default.curry((function(e,t){return(a.default.isArray(t)?a.default.map:a.default.mapValues).convert({cap:!1})(e,t)})),l=t.deepMap=a.default.curry((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.isTraversable;return n((function(t){return r(t)?l(e,e(t),n,r):t}),t)}));t.insertAtIndex=a.default.curry((function(e,t,n){return a.default.isString(n)?function(e,t,n){return n.slice(0,e)+t+n.slice(e)}(e,t,n):function(e,t,n){var r=a.default.clone(n);return r.splice(e,0,t),r}(e,t,n)})),t.compactMap=a.default.curry((function(e,t){return a.default.flow(a.default.map(e),a.default.compact)(t)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBlankDeep=t.isNotBlank=t.isBlank=t.append=t.isMultiple=t.exists=t.isNotNil=t.tapError=t.throws=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(7);t.throws=function(e){throw e},t.tapError=function(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];throw e.apply(void 0,[t].concat(r)),t}};var f=t.isNotNil=a.default.negate(a.default.isNil),l=(t.exists=f,t.isMultiple=function(e){return(e||[]).length>1},t.append=a.default.curry((function(e,t){return t+e})),t.isBlank=a.default.overSome([a.default.isNil,a.default.isEqual(""),a.default.isEqual([]),a.default.isEqual({})]));t.isNotBlank=a.default.negate(l),t.isBlankDeep=function(e){return function(t){return e(l,(0,o.tree)().leaves(t))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.whenTruthy=t.whenExists=t.unless=t.when=t.ifElse=t.overNone=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(8),f=n(4);t.overNone=a.default.flow(a.default.overSome,a.default.negate);var l=t.ifElse=a.default.curry((function(e,t,n,r){return function(e){return a.default.isBoolean(e)?function(){return e}:a.default.iteratee(e)}(e)(r)?(0,o.callOrReturn)(t,r):(0,o.callOrReturn)(n,r)})),i=t.when=a.default.curry((function(e,t,n){return l(e,t,a.default.identity,n)}));t.unless=a.default.curry((function(e,t,n){return l(e,a.default.identity,t,n)})),t.whenExists=i(f.exists),t.whenTruthy=i(Boolean)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aspects=t.aspectSync=t.aspect=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(1),f=n(4);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var c=t.aspect=function(e){var t=e.name,n=void 0===t?"aspect":t,r=e.init,u=void 0===r?a.default.noop:r,o=e.after,c=void 0===o?a.default.noop:o,d=e.before,s=void 0===d?a.default.noop:d,p=e.always,y=void 0===p?a.default.noop:p,v=e.onError,g=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=l({},n,(function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];var a=void 0,o=void 0;return Promise.resolve().then((function(){return s(n,r)})).then((function(){return e.apply(void 0,i(n))})).then((function(e){a=e})).then((function(){return c(a,r,n)})).catch((function(e){return g(e,r,n)})).catch((function(e){o=e})).then((function(){return y(r,n)})).then((function(){if(o)throw o})).then((function(){return a}))}));return a[n].state=r,a[n]}},d=t.aspectSync=function(e){var t=e.name,n=void 0===t?"aspect":t,r=e.init,u=void 0===r?a.default.noop:r,o=e.after,c=void 0===o?a.default.noop:o,d=e.before,s=void 0===d?a.default.noop:d,p=e.always,y=void 0===p?a.default.noop:p,v=e.onError,g=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=l({},n,(function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];try{s(n,r);var a=e.apply(void 0,i(n));return c(a,r,n),a}catch(e){throw g(e,r,n),e}finally{y(r,n)}}));return a[n].state=r,a[n]}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({error:null}),onError:(0,o.setOn)("error"),name:"error"})},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({status:null,processing:!1,succeeded:!1,failed:!1,setStatus:function(e){this.status=e,this.failed="failed"===e,this.succeeded="succeeded"===e,this.processing="processing"===e}}),before:function(e,t){t.setStatus("processing")},after:function(e,t){t.setStatus("succeeded")},onError:(0,f.tapError)((function(e,t){t.setStatus("failed")})),name:"status"})},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;return c({always:function(t){null!==e&&setTimeout((function(){t.setStatus(null)}),e)},name:"clearStatus"})},v=function(){return c({before:function(e,t){if(t.processing)throw Error("Concurrent Runs Not Allowed")},name:"concurrency"})};t.aspects={logs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({logs:[]}),after:function(e,t){return t.logs.push(e)},name:"logs"})},error:s,errors:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultsOn;return c({init:e({errors:[]}),onError:function(e,t){return t.errors.push(e)},name:"errors"})},status:p,deprecate:function(e,t,n){return d({before:function(){return console.warn("`"+e+"` is deprecated"+(t?" as of "+t:"")+(n?" in favor of `"+n+"`":"")+" "+a.default.trim((Error().stack||"").split("\n")[3]))}})},clearStatus:y,concurrency:v,command:function(e,t){return a.default.flow(p(e),y(t),v(),s(e))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tree=t.flatLeaves=t.flattenTree=t.propTreePath=t.treePath=t.treeValues=t.treeKeys=t.keyTreeByWith=t.treeLookup=t.leaves=t.treeToArray=t.treeToArrayBy=t.reduceTree=t.transformTree=t.walk=t.traverse=t.isTraversable=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(1),f=n(2);function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=t.isTraversable=function(e){return a.default.isArray(e)||a.default.isPlainObject(e)},c=t.traverse=function(e){return i(e)&&!a.default.isEmpty(e)&&e},d=t.walk=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.noop,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(a,i){return n(a,i,u,f)||(0,o.findIndexed)(e(t)(n,r,[a].concat(l(u)),[i].concat(l(f))),t(a,i,u,f)||[])||r(a,i,u,f)}}},s=t.transformTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry((function(t,n){var r=a.default.cloneDeep(n);return d(e)(t)(r),r}))},p=t.reduceTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry((function(t,n,r){return d(e)((function(){for(var e=arguments.length,r=Array(e),u=0;u<e;u++)r[u]=arguments[u];n=t.apply(void 0,[n].concat(r))}))(r),n}))},y=t.treeToArrayBy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry((function(t,n){return p(e)((function(e,n){return(0,f.push)(t(n),e)}),[],n)}))},v=t.treeToArray=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return y(e)((function(e){return e}))},g=t.leaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.flow(v(e),a.default.reject(e))},h=t.treeLookup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.identity;return a.default.curry((function(n,r){return a.default.reduce((function(n,r){return a.default.find(t(r),e(n))}),r,n)}))},m=t.keyTreeByWith=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.curry((function(t,n,r){return a.default.flow(y(e)(a.default.iteratee(n)),a.default.uniq,a.default.keyBy(a.default.identity),a.default.mapValues((function(u){return s(e)((function(e){var r=a.default.iteratee(n)(e)===u;t(e,r,u)}),r)})))(r)}))},b=t.treeKeys=function(e,t,n,r){return[t].concat(l(r))},O=t.treeValues=function(e,t,n){return[e].concat(l(n))},j=t.treePath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.dotEncoder;return function(){return(t.encode||t)(e.apply(void 0,arguments).reverse())}},_=(t.propTreePath=function(e){return j(a.default.flow(O,a.default.map(e)),f.slashEncoder)},t.flattenTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j();return p(e)((function(e,n){for(var r=arguments.length,u=Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];return a.default.set([t.apply(void 0,[n].concat(u))],n,e)}),{})}}),A=t.flatLeaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return a.default.reject(e)};t.tree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.identity;return{walk:d(e),transform:s(e),reduce:p(e),toArrayBy:y(e),toArray:v(e),leaves:g(e),lookup:h(e,t),keyByWith:m(e),traverse:e,flatten:_(e),flatLeaves:A(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flurry=t.debounceAsync=t.defer=t.comply=t.composeApply=t.converge=t.boundMethod=t.callOrReturn=t.maybeCall=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r};t.maybeCall=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.default.isFunction(e)&&e.apply(void 0,n)},t.callOrReturn=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.default.isFunction(e)?e.apply(void 0,n):e},t.boundMethod=function(e,t){return t[e].bind(t)},t.converge=function(e,t){return function(){return e(a.default.over(t).apply(void 0,arguments))}};var o,f=t.composeApply=function(e,t){return function(n){return e(t(n))(n)}},l=(t.comply=f,t.defer=function(){var e=void 0,t=void 0,n=new Promise((function(n,r){e=n,t=r}));return{resolve:e,reject:t,promise:n}});t.debounceAsync=function(e,t){var n=l(),r=a.default.debounce(e,(function(){n.resolve(t.apply(void 0,arguments)),n=l()}));return function(){return r.apply(void 0,arguments),n.promise}},t.flurry=(o=a.default.flow,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.default.curryN(t[0].length,o.apply(void 0,t))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.differentLast=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r};t.differentLast=function(e,t){return function(n,r,u){return r===u.length-1?a.default.iteratee(t)(n,r,u):a.default.iteratee(e)(n,r,u)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=t.greaterThanOne=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(1);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})}));var a=n(3);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})}));var o=n(8);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}));var f=n(11);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})}));var l=n(12);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})}));var i=n(6);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}));var c=n(2);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})}));var d=n(5);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})}));var s=n(13);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})}));var p=n(4);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})}));var y=n(14);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})}));var v=n(7);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})}));var g=n(9);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}})}));var h,m=n(0),b=(h=m)&&h.__esModule?h:{default:h},O=T(u),j=T(a),_=T(o),A=T(f),w=T(l),x=T(i),E=T(c),k=T(d),M=T(s),P=T(p),I=T(y),B=T(v),S=T(g);function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var N=t.greaterThanOne=b.default.lt(1),R=t.VERSION="1.64.0";t.default=r({},O,j,_,A,w,x,E,k,M,P,I,B,S,{greaterThanOne:N,VERSION:R})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueString=t.uniqueStringWith=t.toSentence=t.toSentenceWith=t.autoLabelOptions=t.autoLabelOption=t.autoLabel=t.trimStrings=t.concatStrings=t.parens=t.quote=t.wrap=void 0;var r,u=n(3),a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(5),l=n(2),i=n(9);var c=t.wrap=function(e,t,n){return(e||"")+n+(t||e||"")},d=(t.quote=o.default.partial(c,['"','"']),t.parens=o.default.partial(c,["(",")"]),t.concatStrings=o.default.flow(o.default.compact,o.default.map(o.default.trim),o.default.join(" ")),t.trimStrings=(0,u.map)((0,f.when)(o.default.isString,o.default.trim)),t.autoLabel=o.default.startCase),s=t.autoLabelOption=function(e){return{value:(0,f.when)(o.default.isUndefined,e)(e.value),label:e.label||d((0,f.when)(o.default.isUndefined,e)(e.value))}},p=(t.autoLabelOptions=o.default.map(s),t.toSentenceWith=o.default.curry((function(e,t,n){return o.default.flow((0,l.intersperse)((0,i.differentLast)((function(){return e}),(function(){return t}))),o.default.join(""))(n)}))),y=(t.toSentence=p(", "," and "),t.uniqueStringWith=o.default.curry((function(e,t){var n=function(e){for(var t=e;r[t];)t=e+r[e],r[e]+=1;return r[t]=(r[t]||0)+1,t},r=e(t);return n.cache=r,n.clear=function(){n.cache=r={}},n})));t.uniqueString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return y(o.default.countBy(o.default.identity),e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expandObjectBy=t.expandObject=t.getWith=t.mergeOverAllArrays=t.mergeOverAllWith=t.mergeOverAll=t.omitEmpty=t.omitBlank=t.omitNull=t.omitNil=t.stampKey=t.invertByArray=t.mergeAllArrays=t.pickOn=t.diffArray=t.diff=t.simpleDiffArray=t.simpleDiff=t.unkeyBy=t.cascadeProp=t.cascadePropKey=t.cascadeKey=t.cascadeIn=t.cascade=t.aliasIn=t.alias=t.getOrReturn=t.mapProp=t.compareDeep=t.matchesSome=t.matchesSignature=t.unflattenObject=t.flattenObject=t.isFlatObject=t.unwind=t.renameProperty=t.pickInto=t.stripEmptyObjects=t.isNotEmptyObject=t.isEmptyObject=t.compactObject=t.chunkObject=t.singleObjectR=t.singleObject=void 0;var r,u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(2),l=n(5),i=n(4),c=n(1),d=n(3),s=n(6);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=o.default.convert({cap:!1}),v=t.singleObject=o.default.curry((function(e,t){return p({},e,t)})),g=t.singleObjectR=o.default.flip(v),h=t.chunkObject=function(e){return o.default.isArray(e)?e:o.default.map(o.default.spread(v),o.default.toPairs(e))},m=(t.compactObject=o.default.pickBy(o.default.identity),t.isEmptyObject=o.default.isEqual({})),b=t.isNotEmptyObject=o.default.negate(m),O=(t.stripEmptyObjects=o.default.pickBy(b),t.pickInto=function(e,t){return o.default.mapValues((0,c.pickIn)(t),e)},t.renameProperty=o.default.curry((function(e,t,n){return o.default.has(e,n)?o.default.flow((function(n){return o.default.set(t,o.default.get(e,n),n)}),o.default.unset(e))(n):n})),t.unwind=o.default.curry((function(e,t){return o.default.map((function(n){return o.default.set(e,n,t)}),o.default.get(e,t))})),t.isFlatObject=(0,l.overNone)([o.default.isPlainObject,o.default.isArray])),j=t.flattenObject=function e(t,n){return(0,c.reduceIndexed)((function(t,r,u){return o.default.merge(t,(O(r)?g:e)(r,(0,f.dotJoinWith)(i.isNotNil)([n,u])))}),{},t)},_=(t.unflattenObject=function(e){return o.default.zipObjectDeep(o.default.keys(e),o.default.values(e))},t.matchesSignature=o.default.curry((function(e,t){return o.default.isObject(t)&&!o.default.difference(o.default.keys(t),e).length})),t.matchesSome=o.default.flow(h,o.default.map(o.default.matches),o.default.overSome),t.compareDeep=o.default.curry((function(e,t,n){return o.default.get(e,t)===n})),t.mapProp=s.aspects.deprecate("mapProp","1.46.0","_.update")(y.update),t.getOrReturn=o.default.curry((function(e,t){return o.default.getOr(t,e,t)})),t.alias=o.default.curry((function(e,t){return o.default.getOr(e,e,t)})),t.aliasIn=o.default.curry((function(e,t){return o.default.getOr(t,t,e)})),t.cascade=o.default.curryN(2,(function(e,t,n){return o.default.flow((0,d.findApply)((function(e){return e&&o.default.iteratee(e)(t)})),o.default.defaultTo(n))(e)}))),A=(t.cascadeIn=o.default.curryN(2,(function(e,t,n){return _(t,e,n)})),t.cascadeKey=o.default.curry((function(e,t){return o.default.find((0,c.getIn)(t),e)})),t.cascadePropKey=o.default.curry((function(e,t){return o.default.find((0,c.hasIn)(t),e)}))),w=(t.cascadeProp=o.default.curry((function(e,t){return o.default.get(A(e,t),t)})),t.unkeyBy=o.default.curry((function(e,t){return(0,c.mapIndexed)((function(t,n){return o.default.extend(t,p({},e||n,n))}))(t)}))),x=t.simpleDiff=function(e,t){var n=j(e);return o.default.flow(j,(0,c.mapValuesIndexed)((function(e,t){return{from:n[t],to:e}})),o.default.omitBy((function(e){return e.from===e.to})))(t)},E=(t.simpleDiffArray=o.default.flow(x,w("field")),t.diff=function(e,t){var n=j(e),r=j(t);return o.default.flow((0,c.mapValuesIndexed)((function(e,t){return{from:n[t],to:r[t]}})),o.default.omitBy((function(e){return e.from===e.to})))(o.default.merge(n,r))}),k=(t.diffArray=o.default.flow(E,w("field")),t.pickOn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.default.flow(o.default.keys,o.default.map((function(n){o.default.includes(n,e)||delete t[n]})))(t)},function(e,t){return o.default.isArray(e)?e.concat(t):void 0}),M=t.mergeAllArrays=o.default.mergeAllWith(k),P=(t.invertByArray=o.default.flow((0,c.mapIndexed)((function(e,t){return(0,f.zipObjectDeepWith)(e,(function(){return[t]}))})),M),t.stampKey=o.default.curry((function(e,t){return(0,c.mapValuesIndexed)((function(t,n){return u({},t,p({},e,n))}),t)})),t.omitNil=function(e){return o.default.omitBy(o.default.isNil,e)},t.omitNull=function(e){return o.default.omitBy(o.default.isNull,e)},t.omitBlank=function(e){return o.default.omitBy(i.isBlank,e)},t.omitEmpty=function(e){return o.default.omitBy(o.default.isEmpty,e)},t.mergeOverAll=o.default.curryN(2,(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return o.default.flow(o.default.over(e),o.default.mergeAll).apply(void 0,n)})),t.mergeOverAllWith=o.default.curryN(3,(function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),u=2;u<n;u++)r[u-2]=arguments[u];return o.default.flow(o.default.over(t),o.default.mergeAllWith(e)).apply(void 0,r)}))),I=(t.mergeOverAllArrays=P(k),t.getWith=o.default.curry((function(e,t,n){return e(o.default.get(t,n))}))),B=t.expandObject=o.default.curry((function(e,t){return u({},t,e(t))}));t.expandObjectBy=o.default.curry((function(e,t,n){return B(I(t,e))(n)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.highlight=t.highlightFromPostings=t.postingsForWords=t.postings=t.allMatches=t.matchAnyWord=t.matchAllWords=t.wordsToRegexp=t.anyWordToRegexp=t.makeAndTest=t.makeRegex=t.testRegex=void 0;var r,u=n(0),a=(r=u)&&r.__esModule?r:{default:r},o=n(2),f=n(3);var l=t.testRegex=a.default.curry((function(e,t){return new RegExp(e).test(t)})),i=t.makeRegex=function(e){return function(t){return RegExp(t,e)}},c=(t.makeAndTest=function(e){return a.default.flow(i(e),l)},t.anyWordToRegexp=a.default.flow(a.default.words,a.default.join("|"))),d=t.wordsToRegexp=a.default.flow(a.default.words,a.default.map((function(e){return"(?=.*"+e+".*)"})),a.default.join(""),(function(e){return".*"+e+".*"})),s=a.default.curry((function(e,t){var n=RegExp(e(t),"gi");return function(e){return!(!e||!e.match(n))}})),p=(t.matchAllWords=s(d),t.matchAnyWord=s(c),t.allMatches=a.default.curry((function(e,t){for(var n=void 0,r=new RegExp(e,"g"),u=[];null!==(n=r.exec(t));)u.push({text:n[0],start:n.index,end:r.lastIndex});return u})),t.postings=a.default.curry((function(e,t){var n=e.exec(t),r=[];if(e.flags.indexOf("g")<0&&n)r.push([n.index,n.index+n[0].length]);else for(;n;)r.push([n.index,e.lastIndex]),n=e.exec(t);return r}))),y=t.postingsForWords=a.default.curry((function(e,t){return a.default.reduce((function(e,n){return(0,o.push)(p(RegExp(n,"gi"),t),e)}),[])(a.default.words(e))})),v=t.highlightFromPostings=a.default.curry((function(e,t,n,r){var u=0;return a.default.each((function(n){r=(0,f.insertAtIndex)(n[0]+u,e,r),u+=e.length,r=(0,f.insertAtIndex)(n[1]+u,t,r),u+=t.length}),(0,o.mergeRanges)(n)),r}));t.highlight=a.default.curry((function(e,t,n,r){return v(e,t,a.default.flatten(y(n,r)),r)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stateLens=t.domLens=t.off=t.on=t.flip=t.setsWith=t.sets=t.set=t.views=t.view=t.includeLens=t.lensOf=t.lensProp=t.objToFn=t.fnToObj=t.objectLens=t.functionLens=void 0;var r,u=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,u=!1,a=void 0;try{for(var o,f=e[Symbol.iterator]();!(r=(o=f.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){u=!0,a=e}finally{try{!r&&f.return&&f.return()}finally{if(u)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=n(0),o=(r=a)&&r.__esModule?r:{default:r},f=n(1),l=n(2),i=n(5);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.functionLens=function(e){return function(){if(!arguments.length)return e;e=arguments.length<=0?void 0:arguments[0]}},t.objectLens=function(e){return{get:function(){return e},set:function(t){e=t}}},t.fnToObj=function(e){return{get:e,set:e}},t.objToFn=function(e){return function(){return arguments.length?e.set(arguments.length<=0?void 0:arguments[0]):e.get()}};var d=t.lensProp=function(e,t){return{get:function(){return o.default.get(e,t)},set:function(n){(0,f.setOn)(e,n,t)}}},s=(t.lensOf=function(e){return o.default.reduce((function(t,n){return t[n]=d(n,e),t}),{},o.default.keys(e))},t.includeLens=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{get:function(){return o.default.includes(e,g.apply(void 0,n))},set:function(t){return m.apply(void 0,[o.default.uniq((0,l.toggleElementBy)(!t,e,g.apply(void 0,n)))].concat(n))}}}),p=function(e,t){return{get:e,set:t}},y=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1]?o.default.every(o.default.isFunction,t)?p.apply(void 0,t):d.apply(void 0,t):(0,i.when)(o.default.isArray,x)(t[0])},v=function(e){return e.get?e.get():e()},g=t.view=function(){return v(y.apply(void 0,arguments))},h=(t.views=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return g.apply(void 0,t)}},function(e,t){return t.set?t.set(e):t(e)}),m=o.default.curryN(2,(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return h(e,y.apply(void 0,n))}));t.set=m;var b=t.sets=o.default.curryN(2,(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){return m.apply(void 0,[e].concat(n))}})),O=t.setsWith=o.default.curry((function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(t){return m.apply(void 0,[o.default.iteratee(e)(t)].concat(n))}})),j=(t.flip=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return m.apply(void 0,[!g.apply(void 0,t)].concat(t))}},t.on=b(!0)),_=t.off=b(!1),A=function(e,t){return function(){for(var n,r=arguments.length,u=Array(r),a=0;a<r;a++)u[a]=arguments[a];return c(n={},e,g.apply(void 0,u)),c(n,"onChange",O.apply(void 0,[t].concat(u))),n}},w=function(e){return A(e,(0,i.when)(o.default.has("target."+e),o.default.get("target."+e)))},x=(t.domLens={value:w("value"),checkboxValues:o.default.flow(s,w("checked")),hover:function(){return{onMouseOver:j.apply(void 0,arguments),onMouseOut:_.apply(void 0,arguments)}},focus:function(){return{onFocus:j.apply(void 0,arguments),onBlur:_.apply(void 0,arguments)}},targetBinding:w,binding:A},t.stateLens=function(e){var t=u(e,2),n=t[0];return{get:function(){return n},set:t[1]}})}])})); | ||
//# sourceMappingURL=futil.js.map |
{ | ||
"name": "futil", | ||
"version": "1.63.1", | ||
"version": "1.64.0", | ||
"description": "F(unctional) util(ities). Resistance is futile.", | ||
@@ -54,4 +54,4 @@ "main": "lib/futil-js.js", | ||
"chai-as-promised": "^7.1.1", | ||
"chokidar": "^2.0.0", | ||
"chokidar-cli": "^1.2.0", | ||
"chokidar": "^3.3.0", | ||
"chokidar-cli": "^2.1.0", | ||
"codacy-coverage": "^3.0.0", | ||
@@ -72,12 +72,12 @@ "coveralls": "^3.0.0", | ||
"karma-webpack": "^3.0.0", | ||
"mocha": "^5.0.0", | ||
"mocha": "^6.2.2", | ||
"mocha-lcov-reporter": "^1.2.0", | ||
"nyc": "^12.0.1", | ||
"prettier": "^1.7.4", | ||
"read-pkg": "^4.0.1", | ||
"sinon": "^5.0.0", | ||
"read-pkg": "^5.2.0", | ||
"sinon": "^7.5.0", | ||
"sinon-chai": "^3.0.0", | ||
"webpack": "^4.1.0", | ||
"webpack-cli": "^3.0.0", | ||
"write-pkg": "^3.2.0" | ||
"write-pkg": "^4.0.0" | ||
}, | ||
@@ -84,0 +84,0 @@ "directories": { |
111
README.md
@@ -535,61 +535,48 @@ <a href='https://smartprocure.github.io/futil-js/'><img src='https://user-images.githubusercontent.com/8062245/28718527-796382ac-7374-11e7-98a3-9791223042a4.png' width='200' alt='futil-js'></a> | ||
## Lens | ||
A lens is a getter and setter pair, which can be used to interface to some part of an object graph. | ||
Methods that operate on lenses can encapsulate common operations independent of knowledge of their surrounding context. | ||
Unlike some traditional functional lenses (like Ramda's), the set methods here are generally mutable. | ||
A lens is a getter and setter pair. You use them to write code that needs to read _and_ write a value (like a method to flip a boolean switch, or a React component that reads and writes some state) without worrying about the implementation. | ||
An object lens is simply an object that has a `get` and `set` function. | ||
An example of this is a mobx boxed observable. | ||
Functions that operate on lenses can handle a few different "shorthand" structures. This is similar to lodash's `_.iteratee` (which allows their methods to treat strings, objects, or functions as shorthand predicates) | ||
A function lens is a lens expressed as a single function that takes the value to set or returns the current value if nothing is passed. | ||
Examples of this in the wild are knockout observables and jquery plugin api style methods. | ||
A lens can be any of these formats: | ||
The utilities in this library expect can accept either kind of lens, and utilities are provided to seamlessly convert between the two. | ||
`({ get, set })` | ||
An object with a `get` function and `set` function. | ||
Found in: MobX "boxed observables" | ||
Example Usage: `F.flip({ get, set })` | ||
### Stubs | ||
Lens stubs are primarily a reference implementation, but are useful for testing and mocking purposes | ||
`([value, setter])` | ||
An array of the `value` and a `setter` function to change it. | ||
Found in: React's useState hook | ||
Example Usage: `F.flip([value, setter])` | ||
#### functionLens | ||
Takes a value and returns a function lens for that value | ||
`(lookup, object)` | ||
A lookup path and object pair e.g. ('key', object). The lookup path is anything you can pass to `_.get` (so nested paths with `.` or as an array are supported) | ||
Found in: MobX observable objects, native JS objects | ||
Example Usage: `F.flip(lookup, object)` | ||
#### objectLens | ||
Takes a value and returns a object lens for that value | ||
`(x => {})` | ||
A function which returns the value when called with no arguments and sets it when called with one. | ||
Found in: Knockout observables, jQuery plugin APIs | ||
Example Usage: `F.flip(x => {})` | ||
### Lens Conversions | ||
Methods to convert between lens types | ||
`(getter, setter)` | ||
A getter and setter pair. | ||
Found in: Anywhere you have a getter and setter function | ||
Example Usage: `F.flip(getter, setter)` | ||
#### fnToObj | ||
Converts a function lens an object lens | ||
> Note: Setter methods are generally mutable (unlike Ramda's lenses, for example). | ||
#### objToFn | ||
Converts an object lens to a function lens | ||
We've included a few example "bindings" on `F.domLens`. These take a lens and return an object that's useful in a DOM context (like React or raw JS). In React terms, they're methods that generate the props you'd use to do two way binding to a lens. | ||
### Lens Construction | ||
This the main way you'll generally interact with the lens API | ||
#### lensProp | ||
`propertyName -> object -> { get: () -> object.propertyName, set: propertyValue -> object.propertyName }` | ||
Creates an object lens for a given property on an object. `.get` returns the value at that path and `set` places a new value at that path. Supports deep paths like lodash get/set. | ||
#### lensOf | ||
Takes an object and returns an object with lenses at the values of each path. Basically `mapValues(lensProp)`. | ||
#### includeLens | ||
`value -> arrayLens -> includeLens` | ||
An include lens represents membership of a value in a set. It's view and set functions allow you to read _and_ set a boolean value for whether or not a value is in an array. If you change to true or false, it will set the underlying array lens with a new array either without the value or with it pushed at the end. | ||
### Lens Manipulation | ||
*Note*: As of version 1.37, any manipulation function that takes a lens can also drop in a key and target object for an implicit lensProp conversion (e.g. you can do `view(key, obj)` instead of just `view(lens)`) | ||
#### view | ||
`Lens -> object.propertyName` | ||
Gets the value of the lens, regardless of if it's a function or object lens | ||
Gets the value of the lens, regardless of its format | ||
#### views | ||
`Lens -> (() -> object.propertyName)` | ||
Returns a function that gets the value of the lens, regardless of if it's a function or object lens | ||
Returns a function that gets the value of the lens, regardless of its format | ||
#### set | ||
`propertyValue -> Lens -> object.propertyName` | ||
Sets the value of the lens, regardless of if it's a function or object lens | ||
Sets the value of the lens, regardless of its format | ||
@@ -611,11 +598,18 @@ #### sets | ||
### Lens Consumption - DomLens | ||
#### includeLens | ||
`value -> arrayLens -> includeLens` | ||
An include lens represents membership of a value in a set. It takes a value and lens and returns a new lens - kind of like a "writeable computed" from MobX or Knockout. The view and set functions allow you to read and write a boolean value for whether or not a value is in an array. If you change to true or false, it will set the underlying array lens with a new array either without the value or with it pushed at the end. | ||
To help illustrate the potential use cases of the power of lenses, these are some functions that consume lenses in useful ways that are relevant in a DOM context including raw js, react, etc. They are pure functions, have no external dependencies, and are generally trivial - but hopefully they illustrate some interesting use cases. | ||
#### domLens.value | ||
`lens -> {value, onChange}` Takes a lens and returns a value/onChange pair that views/sets the lens appropriately. `onChange` sets with `e.target.value` | ||
`lens -> {value, onChange}` Takes a lens and returns a value/onChange pair that views/sets the lens appropriately. `onChange` sets with `e.target.value` (or `e` if that path isn't present). | ||
Example: | ||
``` | ||
let Component = () => { | ||
let state = React.useState('') | ||
return <input {...F.domLens.value(state)}> | ||
} | ||
``` | ||
#### domLens.checkboxValues | ||
`(value, lens) -> {checked, onChange}` Creates an includeLens and maps view to checked and set to `onChange` (set with `e.target.checked`) | ||
`(value, lens) -> {checked, onChange}` Creates an includeLens and maps view to checked and set to `onChange` (set with `e.target.checked` or `e` if that path isn't present) | ||
@@ -634,7 +628,26 @@ #### domLens.hover | ||
### Lens Utils | ||
### functionLens | ||
Takes a value and returns a function lens for that value. Mostly used for testing and mocking purposes. | ||
#### stateLens | ||
`([value, setValue]) -> lens` Given the popularity of React, we decided to include this little helper that converts a `useState` hook call to a lens. Ex: `let lens = stateLens(useState(false))`. | ||
### objectLens | ||
Takes a value and returns a object lens for that value. Mostly used for testing and mocking purposes. | ||
### stateLens | ||
`([value, setValue]) -> lens` Given the popularity of React, we decided to include this little helper that converts a `useState` hook call to a lens. Ex: `let lens = stateLens(useState(false))`. You generally won't use this directly since you can pass the `[value, setter]` pair directly to lens functions | ||
### lensProp | ||
`propertyName -> object -> { get: () -> object.propertyName, set: propertyValue -> object.propertyName }` | ||
Creates an object lens for a given property on an object. `.get` returns the value at that path and `set` places a new value at that path. Supports deep paths like lodash get/set. | ||
You typically won't use this directly since it is supported implicitly. | ||
### lensOf | ||
Takes an object and returns an object with lenses at the values of each path. Basically `mapValues(lensProp)`. Typically you'd just use the implicit `(key, object)` format instead. | ||
### fnToObj | ||
Converts a function lens an object lens. Mostly used for testing and mocking purposes. | ||
### objToFn | ||
Converts an object lens to a function lens. Mostly used for testing and mocking purposes. | ||
## Aspect | ||
@@ -641,0 +654,0 @@ Aspects provide a functional oriented implementation of Aspect Oriented Programming. |
import _ from 'lodash/fp' | ||
import { setOn } from './conversion' | ||
import { toggleElementBy } from './array' | ||
import { when } from './logic' | ||
@@ -55,3 +56,11 @@ // Stubs | ||
// Lens Manipulation | ||
let construct = (...lens) => (lens[1] ? lensProp(...lens) : lens[0]) | ||
//let construct = (...lens) => (lens[1] ? lensProp(...lens) : lens[0]) | ||
let lensPair = (get, set) => ({ get, set }) | ||
let construct = (...args) => | ||
args[1] | ||
? _.every(_.isFunction, args) | ||
? lensPair(...args) | ||
: lensProp(...args) | ||
: when(_.isArray, stateLens)(args[0]) | ||
let read = lens => (lens.get ? lens.get() : lens()) | ||
@@ -77,3 +86,4 @@ export let view = (...lens) => read(construct(...lens)) | ||
// Dom events have relevent fields on the `target` property of event objects | ||
let targetBinding = field => binding(field, `target.${field}`) | ||
let targetBinding = field => | ||
binding(field, when(_.has(`target.${field}`), _.get(`target.${field}`))) | ||
export let domLens = { | ||
@@ -80,0 +90,0 @@ value: targetBinding('value'), |
{ | ||
"stats": { | ||
"suites": 28, | ||
"tests": 180, | ||
"passes": 180, | ||
"suites": 29, | ||
"tests": 183, | ||
"passes": 183, | ||
"pending": 0, | ||
"failures": 0, | ||
"start": "2019-11-08T05:09:46.765Z", | ||
"end": "2019-11-08T05:09:47.426Z", | ||
"duration": 661 | ||
"start": "2019-11-08T08:00:25.212Z", | ||
"end": "2019-11-08T08:00:25.852Z", | ||
"duration": 640 | ||
}, | ||
@@ -16,3 +16,3 @@ "tests": [ | ||
"fullTitle": "Algebras map arrays", | ||
"duration": 2, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -24,3 +24,3 @@ "err": {} | ||
"fullTitle": "Algebras map plain objects", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -39,3 +39,3 @@ "err": {} | ||
"fullTitle": "Algebras deepMap plain objects", | ||
"duration": 2, | ||
"duration": 3, | ||
"currentRetry": 0, | ||
@@ -68,3 +68,3 @@ "err": {} | ||
"fullTitle": "Array Functions repeated", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -111,3 +111,3 @@ "err": {} | ||
"fullTitle": "Array Functions moveIndex", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -140,3 +140,3 @@ "err": {} | ||
"fullTitle": "Array Functions encoder", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -169,3 +169,3 @@ "err": {} | ||
"fullTitle": "Array Functions toggleElement", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -184,3 +184,3 @@ "err": {} | ||
"fullTitle": "Array Functions intersperse", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -213,3 +213,3 @@ "err": {} | ||
"fullTitle": "Aspect Functions should support .after calls (`logs` aspect)", | ||
"duration": 1, | ||
"duration": 2, | ||
"currentRetry": 0, | ||
@@ -221,3 +221,3 @@ "err": {} | ||
"fullTitle": "Aspect Functions should support .onError and before (`concurrency`, `errors`, and `status` aspects)", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -229,3 +229,3 @@ "err": {} | ||
"fullTitle": "Aspect Functions should support throwing in onError", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -237,3 +237,3 @@ "err": {} | ||
"fullTitle": "Aspect Functions should support single error", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -245,3 +245,3 @@ "err": {} | ||
"fullTitle": "Aspect Functions should support status and clearing status", | ||
"duration": 525, | ||
"duration": 528, | ||
"currentRetry": 0, | ||
@@ -260,3 +260,3 @@ "err": {} | ||
"fullTitle": "Collections Functions flowMap", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -275,3 +275,3 @@ "err": {} | ||
"fullTitle": "Collections Functions insertAtIndex", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -283,3 +283,3 @@ "err": {} | ||
"fullTitle": "Collections Functions compactMap", | ||
"duration": 2, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -298,3 +298,3 @@ "err": {} | ||
"fullTitle": "Converted Functions Flips pickIn", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -327,3 +327,3 @@ "err": {} | ||
"fullTitle": "Function Functions should debounceAsync", | ||
"duration": 23, | ||
"duration": 24, | ||
"currentRetry": 0, | ||
@@ -342,3 +342,3 @@ "err": {} | ||
"fullTitle": "Function Functions should flurry", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -350,3 +350,3 @@ "err": {} | ||
"fullTitle": "Iterator Generators differentLast", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -358,3 +358,3 @@ "err": {} | ||
"fullTitle": "Lang Functions throws", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -401,3 +401,3 @@ "err": {} | ||
"fullTitle": "Lang Functions should isBlankDeep", | ||
"duration": 4, | ||
"duration": 5, | ||
"currentRetry": 0, | ||
@@ -409,3 +409,3 @@ "err": {} | ||
"fullTitle": "Lens Functions Stubs functionLens", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -417,3 +417,3 @@ "err": {} | ||
"fullTitle": "Lens Functions Stubs objectLens", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -439,3 +439,3 @@ "err": {} | ||
"fullTitle": "Lens Functions Construction lensProp", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -461,3 +461,3 @@ "err": {} | ||
"fullTitle": "Lens Functions Construction includeLens", | ||
"duration": 1, | ||
"duration": 2, | ||
"currentRetry": 0, | ||
@@ -469,3 +469,3 @@ "err": {} | ||
"fullTitle": "Lens Functions Manipulation view", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -498,3 +498,3 @@ "err": {} | ||
"fullTitle": "Lens Functions Manipulation setsWith", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -506,3 +506,3 @@ "err": {} | ||
"fullTitle": "Lens Functions Manipulation flip", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -542,3 +542,3 @@ "err": {} | ||
"fullTitle": "Lens Functions Implicit Lens Prop set", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -576,2 +576,16 @@ "err": {} | ||
{ | ||
"title": "arrayLens", | ||
"fullTitle": "Lens Functions additional implicit lens formats arrayLens", | ||
"duration": 0, | ||
"currentRetry": 0, | ||
"err": {} | ||
}, | ||
{ | ||
"title": "functionPairLens", | ||
"fullTitle": "Lens Functions additional implicit lens formats functionPairLens", | ||
"duration": 0, | ||
"currentRetry": 0, | ||
"err": {} | ||
}, | ||
{ | ||
"title": "value", | ||
@@ -584,2 +598,9 @@ "fullTitle": "Lens Functions domLens value", | ||
{ | ||
"title": "non-native value", | ||
"fullTitle": "Lens Functions domLens non-native value", | ||
"duration": 0, | ||
"currentRetry": 0, | ||
"err": {} | ||
}, | ||
{ | ||
"title": "checkboxValues", | ||
@@ -594,3 +615,3 @@ "fullTitle": "Lens Functions domLens checkboxValues", | ||
"fullTitle": "Lens Functions domLens hover", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -630,3 +651,3 @@ "err": {} | ||
"fullTitle": "Logic Functions unless", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -666,3 +687,3 @@ "err": {} | ||
"fullTitle": "Logic Functions ifElse should handle fancy shorthand", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -688,3 +709,3 @@ "err": {} | ||
"fullTitle": "Basic Functions maybeCall should call fn with parameters", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -710,3 +731,3 @@ "err": {} | ||
"fullTitle": "Math Functions greaterThanOne", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -774,3 +795,3 @@ "err": {} | ||
"fullTitle": "Object Functions pickInto", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -782,3 +803,3 @@ "err": {} | ||
"fullTitle": "Object Functions unwind", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -797,3 +818,3 @@ "err": {} | ||
"fullTitle": "Object Functions unflattenObject", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -812,3 +833,3 @@ "err": {} | ||
"fullTitle": "Object Functions matchesSignature", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -820,3 +841,3 @@ "err": {} | ||
"fullTitle": "Object Functions matchesSome", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -835,3 +856,3 @@ "err": {} | ||
"fullTitle": "Object Functions mapProp", | ||
"duration": 10, | ||
"duration": 6, | ||
"currentRetry": 0, | ||
@@ -850,3 +871,3 @@ "err": {} | ||
"fullTitle": "Object Functions alias", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -865,3 +886,3 @@ "err": {} | ||
"fullTitle": "Object Functions cascade", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -894,3 +915,3 @@ "err": {} | ||
"fullTitle": "Object Functions cascadeProp", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -923,3 +944,3 @@ "err": {} | ||
"fullTitle": "Object Functions simpleDiffArray", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -938,3 +959,3 @@ "err": {} | ||
"fullTitle": "Object Functions diffArray", | ||
"duration": 2, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -960,3 +981,3 @@ "err": {} | ||
"fullTitle": "Object Functions stampKey", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -968,3 +989,3 @@ "err": {} | ||
"fullTitle": "Object Functions omitNil", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -990,3 +1011,3 @@ "err": {} | ||
"fullTitle": "Object Functions omitEmpty", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1033,3 +1054,3 @@ "err": {} | ||
"fullTitle": "Object Functions expandObjectBy", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1062,3 +1083,3 @@ "err": {} | ||
"fullTitle": "Regexp Functions matchAnyWord", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1091,3 +1112,3 @@ "err": {} | ||
"fullTitle": "Posting Highlight Functions should get postings by word", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1162,3 +1183,3 @@ "err": {} | ||
"fullTitle": "String Functions autoLabelOption", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1177,3 +1198,3 @@ "err": {} | ||
"fullTitle": "String Functions toSentenceWith", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1185,3 +1206,3 @@ "err": {} | ||
"fullTitle": "String Functions toSentence", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1193,3 +1214,3 @@ "err": {} | ||
"fullTitle": "String Functions uniqueString", | ||
"duration": 2, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1222,3 +1243,3 @@ "err": {} | ||
"fullTitle": "Tree Functions reduceTree", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1237,3 +1258,3 @@ "err": {} | ||
"fullTitle": "Tree Functions treeToArrayBy", | ||
"duration": 3, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1252,3 +1273,3 @@ "err": {} | ||
"fullTitle": "Tree Functions tree", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1274,3 +1295,3 @@ "err": {} | ||
"fullTitle": "Tree Functions transform", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1289,3 +1310,3 @@ "err": {} | ||
"fullTitle": "Tree Functions flattenTree", | ||
"duration": 2, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1297,3 +1318,3 @@ "err": {} | ||
"fullTitle": "Tree Functions flattenTree with propTreePath", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1319,3 +1340,3 @@ "err": {} | ||
"fullTitle": "Tree Functions walk halting", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1334,3 +1355,3 @@ "err": {} | ||
"fullTitle": "Tree Functions walk should retain parent stack and indices", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1346,3 +1367,3 @@ "err": {} | ||
"fullTitle": "Algebras map arrays", | ||
"duration": 2, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1354,3 +1375,3 @@ "err": {} | ||
"fullTitle": "Algebras map plain objects", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1369,3 +1390,3 @@ "err": {} | ||
"fullTitle": "Algebras deepMap plain objects", | ||
"duration": 2, | ||
"duration": 3, | ||
"currentRetry": 0, | ||
@@ -1398,3 +1419,3 @@ "err": {} | ||
"fullTitle": "Array Functions repeated", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1441,3 +1462,3 @@ "err": {} | ||
"fullTitle": "Array Functions moveIndex", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1470,3 +1491,3 @@ "err": {} | ||
"fullTitle": "Array Functions encoder", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1499,3 +1520,3 @@ "err": {} | ||
"fullTitle": "Array Functions toggleElement", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1514,3 +1535,3 @@ "err": {} | ||
"fullTitle": "Array Functions intersperse", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1543,3 +1564,3 @@ "err": {} | ||
"fullTitle": "Aspect Functions should support .after calls (`logs` aspect)", | ||
"duration": 1, | ||
"duration": 2, | ||
"currentRetry": 0, | ||
@@ -1551,3 +1572,3 @@ "err": {} | ||
"fullTitle": "Aspect Functions should support .onError and before (`concurrency`, `errors`, and `status` aspects)", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1559,3 +1580,3 @@ "err": {} | ||
"fullTitle": "Aspect Functions should support throwing in onError", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1567,3 +1588,3 @@ "err": {} | ||
"fullTitle": "Aspect Functions should support single error", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1575,3 +1596,3 @@ "err": {} | ||
"fullTitle": "Aspect Functions should support status and clearing status", | ||
"duration": 525, | ||
"duration": 528, | ||
"currentRetry": 0, | ||
@@ -1590,3 +1611,3 @@ "err": {} | ||
"fullTitle": "Collections Functions flowMap", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1605,3 +1626,3 @@ "err": {} | ||
"fullTitle": "Collections Functions insertAtIndex", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1613,3 +1634,3 @@ "err": {} | ||
"fullTitle": "Collections Functions compactMap", | ||
"duration": 2, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1628,3 +1649,3 @@ "err": {} | ||
"fullTitle": "Converted Functions Flips pickIn", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1657,3 +1678,3 @@ "err": {} | ||
"fullTitle": "Function Functions should debounceAsync", | ||
"duration": 23, | ||
"duration": 24, | ||
"currentRetry": 0, | ||
@@ -1672,3 +1693,3 @@ "err": {} | ||
"fullTitle": "Function Functions should flurry", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1680,3 +1701,3 @@ "err": {} | ||
"fullTitle": "Iterator Generators differentLast", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1688,3 +1709,3 @@ "err": {} | ||
"fullTitle": "Lang Functions throws", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1731,3 +1752,3 @@ "err": {} | ||
"fullTitle": "Lang Functions should isBlankDeep", | ||
"duration": 4, | ||
"duration": 5, | ||
"currentRetry": 0, | ||
@@ -1739,3 +1760,3 @@ "err": {} | ||
"fullTitle": "Lens Functions Stubs functionLens", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1747,3 +1768,3 @@ "err": {} | ||
"fullTitle": "Lens Functions Stubs objectLens", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1769,3 +1790,3 @@ "err": {} | ||
"fullTitle": "Lens Functions Construction lensProp", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1791,3 +1812,3 @@ "err": {} | ||
"fullTitle": "Lens Functions Construction includeLens", | ||
"duration": 1, | ||
"duration": 2, | ||
"currentRetry": 0, | ||
@@ -1799,3 +1820,3 @@ "err": {} | ||
"fullTitle": "Lens Functions Manipulation view", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1828,3 +1849,3 @@ "err": {} | ||
"fullTitle": "Lens Functions Manipulation setsWith", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1836,3 +1857,3 @@ "err": {} | ||
"fullTitle": "Lens Functions Manipulation flip", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1872,3 +1893,3 @@ "err": {} | ||
"fullTitle": "Lens Functions Implicit Lens Prop set", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1906,2 +1927,16 @@ "err": {} | ||
{ | ||
"title": "arrayLens", | ||
"fullTitle": "Lens Functions additional implicit lens formats arrayLens", | ||
"duration": 0, | ||
"currentRetry": 0, | ||
"err": {} | ||
}, | ||
{ | ||
"title": "functionPairLens", | ||
"fullTitle": "Lens Functions additional implicit lens formats functionPairLens", | ||
"duration": 0, | ||
"currentRetry": 0, | ||
"err": {} | ||
}, | ||
{ | ||
"title": "value", | ||
@@ -1914,2 +1949,9 @@ "fullTitle": "Lens Functions domLens value", | ||
{ | ||
"title": "non-native value", | ||
"fullTitle": "Lens Functions domLens non-native value", | ||
"duration": 0, | ||
"currentRetry": 0, | ||
"err": {} | ||
}, | ||
{ | ||
"title": "checkboxValues", | ||
@@ -1924,3 +1966,3 @@ "fullTitle": "Lens Functions domLens checkboxValues", | ||
"fullTitle": "Lens Functions domLens hover", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -1960,3 +2002,3 @@ "err": {} | ||
"fullTitle": "Logic Functions unless", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -1996,3 +2038,3 @@ "err": {} | ||
"fullTitle": "Logic Functions ifElse should handle fancy shorthand", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -2018,3 +2060,3 @@ "err": {} | ||
"fullTitle": "Basic Functions maybeCall should call fn with parameters", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -2040,3 +2082,3 @@ "err": {} | ||
"fullTitle": "Math Functions greaterThanOne", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -2104,3 +2146,3 @@ "err": {} | ||
"fullTitle": "Object Functions pickInto", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -2112,3 +2154,3 @@ "err": {} | ||
"fullTitle": "Object Functions unwind", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -2127,3 +2169,3 @@ "err": {} | ||
"fullTitle": "Object Functions unflattenObject", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -2142,3 +2184,3 @@ "err": {} | ||
"fullTitle": "Object Functions matchesSignature", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -2150,3 +2192,3 @@ "err": {} | ||
"fullTitle": "Object Functions matchesSome", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -2165,3 +2207,3 @@ "err": {} | ||
"fullTitle": "Object Functions mapProp", | ||
"duration": 10, | ||
"duration": 6, | ||
"currentRetry": 0, | ||
@@ -2180,3 +2222,3 @@ "err": {} | ||
"fullTitle": "Object Functions alias", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -2195,3 +2237,3 @@ "err": {} | ||
"fullTitle": "Object Functions cascade", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -2224,3 +2266,3 @@ "err": {} | ||
"fullTitle": "Object Functions cascadeProp", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -2253,3 +2295,3 @@ "err": {} | ||
"fullTitle": "Object Functions simpleDiffArray", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -2268,3 +2310,3 @@ "err": {} | ||
"fullTitle": "Object Functions diffArray", | ||
"duration": 2, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -2290,3 +2332,3 @@ "err": {} | ||
"fullTitle": "Object Functions stampKey", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -2298,3 +2340,3 @@ "err": {} | ||
"fullTitle": "Object Functions omitNil", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -2320,3 +2362,3 @@ "err": {} | ||
"fullTitle": "Object Functions omitEmpty", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -2363,3 +2405,3 @@ "err": {} | ||
"fullTitle": "Object Functions expandObjectBy", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -2392,3 +2434,3 @@ "err": {} | ||
"fullTitle": "Regexp Functions matchAnyWord", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -2421,3 +2463,3 @@ "err": {} | ||
"fullTitle": "Posting Highlight Functions should get postings by word", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -2492,3 +2534,3 @@ "err": {} | ||
"fullTitle": "String Functions autoLabelOption", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -2507,3 +2549,3 @@ "err": {} | ||
"fullTitle": "String Functions toSentenceWith", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -2515,3 +2557,3 @@ "err": {} | ||
"fullTitle": "String Functions toSentence", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -2523,3 +2565,3 @@ "err": {} | ||
"fullTitle": "String Functions uniqueString", | ||
"duration": 2, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -2552,3 +2594,3 @@ "err": {} | ||
"fullTitle": "Tree Functions reduceTree", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -2567,3 +2609,3 @@ "err": {} | ||
"fullTitle": "Tree Functions treeToArrayBy", | ||
"duration": 3, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -2582,3 +2624,3 @@ "err": {} | ||
"fullTitle": "Tree Functions tree", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -2604,3 +2646,3 @@ "err": {} | ||
"fullTitle": "Tree Functions transform", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -2619,3 +2661,3 @@ "err": {} | ||
"fullTitle": "Tree Functions flattenTree", | ||
"duration": 2, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -2627,3 +2669,3 @@ "err": {} | ||
"fullTitle": "Tree Functions flattenTree with propTreePath", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -2649,3 +2691,3 @@ "err": {} | ||
"fullTitle": "Tree Functions walk halting", | ||
"duration": 0, | ||
"duration": 1, | ||
"currentRetry": 0, | ||
@@ -2664,3 +2706,3 @@ "err": {} | ||
"fullTitle": "Tree Functions walk should retain parent stack and indices", | ||
"duration": 1, | ||
"duration": 0, | ||
"currentRetry": 0, | ||
@@ -2667,0 +2709,0 @@ "err": {} |
import chai from 'chai' | ||
import _ from 'lodash/fp' | ||
import * as f from '../src' | ||
import * as F from '../src' | ||
@@ -11,3 +11,3 @@ chai.expect() | ||
it('functionLens', () => { | ||
let l = f.functionLens(1) | ||
let l = F.functionLens(1) | ||
expect(l()).to.equal(1) | ||
@@ -18,3 +18,3 @@ l(5) | ||
it('objectLens', () => { | ||
let l = f.objectLens(1) | ||
let l = F.objectLens(1) | ||
expect(l.get()).to.equal(1) | ||
@@ -27,3 +27,3 @@ l.set(5) | ||
it('fnToObj', () => { | ||
let l = f.fnToObj(f.functionLens(1)) | ||
let l = F.fnToObj(F.functionLens(1)) | ||
expect(l.get()).to.equal(1) | ||
@@ -34,3 +34,3 @@ l.set(5) | ||
it('objToFn', () => { | ||
let l = f.objToFn(f.objectLens(1)) | ||
let l = F.objToFn(F.objectLens(1)) | ||
expect(l()).to.equal(1) | ||
@@ -43,3 +43,3 @@ l(5) | ||
it('lensProp', () => { | ||
let l = f.lensProp('x', { | ||
let l = F.lensProp('x', { | ||
x: 1, | ||
@@ -52,3 +52,3 @@ }) | ||
it('lensProp deep', () => { | ||
let l = f.lensProp('x.a', { | ||
let l = F.lensProp('x.a', { | ||
x: { | ||
@@ -63,3 +63,3 @@ a: 1, | ||
it('lensOf', () => { | ||
let l = f.lensOf({ | ||
let l = F.lensOf({ | ||
a: 1, | ||
@@ -75,13 +75,13 @@ }) | ||
} | ||
let includesB = f.includeLens('b', 'arr', object) | ||
expect(f.view(includesB)).to.be.true | ||
f.off(includesB)() | ||
expect(f.view(includesB)).to.be.false | ||
let includesB = F.includeLens('b', 'arr', object) | ||
expect(F.view(includesB)).to.be.true | ||
F.off(includesB)() | ||
expect(F.view(includesB)).to.be.false | ||
expect(object.arr).to.deep.equal(['a', 'c', 'd']) | ||
f.on(includesB)() | ||
expect(f.view(includesB)).to.be.true | ||
F.on(includesB)() | ||
expect(F.view(includesB)).to.be.true | ||
expect(object.arr).to.deep.equal(['a', 'c', 'd', 'b']) | ||
// Subsequent calls don't result in multiple `b`s because of _.uniq | ||
f.on(includesB)() | ||
expect(f.view(includesB)).to.be.true | ||
F.on(includesB)() | ||
expect(F.view(includesB)).to.be.true | ||
expect(object.arr).to.deep.equal(['a', 'c', 'd', 'b']) | ||
@@ -92,12 +92,12 @@ }) | ||
it('view', () => { | ||
let fl = f.functionLens(1) | ||
let ol = f.objectLens(1) | ||
expect(f.view(fl)).to.equal(1) | ||
expect(f.view(ol)).to.equal(1) | ||
let fl = F.functionLens(1) | ||
let ol = F.objectLens(1) | ||
expect(F.view(fl)).to.equal(1) | ||
expect(F.view(ol)).to.equal(1) | ||
}) | ||
it('views', () => { | ||
let fl = f.functionLens(1) | ||
let ol = f.objectLens(1) | ||
expect(f.views(fl)()).to.equal(1) | ||
expect(f.views(ol)()).to.equal(1) | ||
let fl = F.functionLens(1) | ||
let ol = F.objectLens(1) | ||
expect(F.views(fl)()).to.equal(1) | ||
expect(F.views(ol)()).to.equal(1) | ||
}) | ||
@@ -108,4 +108,4 @@ it('set', () => { | ||
} | ||
let l = f.lensOf(object) | ||
f.set(5, l.a) | ||
let l = F.lensOf(object) | ||
F.set(5, l.a) | ||
expect(object.a).to.equal(5) | ||
@@ -117,4 +117,4 @@ }) | ||
} | ||
let l = f.lensOf(object) | ||
f.sets(5, l.a)() | ||
let l = F.lensOf(object) | ||
F.sets(5, l.a)() | ||
expect(object.a).to.equal(5) | ||
@@ -126,3 +126,3 @@ }) | ||
} | ||
let setter = f.setsWith(x => x * 2, 'a', object) | ||
let setter = F.setsWith(x => x * 2, 'a', object) | ||
setter(5) | ||
@@ -135,4 +135,4 @@ expect(object.a).to.equal(10) | ||
} | ||
let l = f.lensOf(object) | ||
f.flip(l.a)() | ||
let l = F.lensOf(object) | ||
F.flip(l.a)() | ||
expect(object.a).to.equal(false) | ||
@@ -144,4 +144,4 @@ }) | ||
} | ||
let l = f.lensOf(object) | ||
f.on(l.a)() | ||
let l = F.lensOf(object) | ||
F.on(l.a)() | ||
expect(object.a).to.equal(true) | ||
@@ -153,4 +153,4 @@ }) | ||
} | ||
let l = f.lensOf(object) | ||
f.off(l.a)() | ||
let l = F.lensOf(object) | ||
F.off(l.a)() | ||
expect(object.a).to.equal(false) | ||
@@ -165,3 +165,3 @@ }) | ||
} | ||
expect(f.view('a', x)).to.equal(1) | ||
expect(F.view('a', x)).to.equal(1) | ||
}) | ||
@@ -173,3 +173,3 @@ it('views', () => { | ||
} | ||
expect(f.views('a', x)()).to.equal(1) | ||
expect(F.views('a', x)()).to.equal(1) | ||
}) | ||
@@ -181,3 +181,3 @@ it('set', () => { | ||
} | ||
f.set(5, 'a', x) | ||
F.set(5, 'a', x) | ||
expect(x.a).to.equal(5) | ||
@@ -190,3 +190,3 @@ }) | ||
} | ||
f.sets(5, 'a', x)() | ||
F.sets(5, 'a', x)() | ||
expect(x.a).to.equal(5) | ||
@@ -198,3 +198,3 @@ }) | ||
} | ||
f.flip('a', object)() | ||
F.flip('a', object)() | ||
expect(object.a).to.equal(false) | ||
@@ -206,3 +206,3 @@ }) | ||
} | ||
f.on('a', object)() | ||
F.on('a', object)() | ||
expect(object.a).to.equal(true) | ||
@@ -214,6 +214,39 @@ }) | ||
} | ||
f.off('a', object)() | ||
F.off('a', object)() | ||
expect(object.a).to.equal(false) | ||
}) | ||
}) | ||
describe('additional implicit lens formats', () => { | ||
it('arrayLens', () => { | ||
let arrayLens = val => { | ||
let result = [val] | ||
result.push(x => { | ||
result[0] = x | ||
}) | ||
return result | ||
} | ||
let lens = arrayLens(false) | ||
F.on(lens)() | ||
expect(lens[0]).to.be.true | ||
F.off(lens)() | ||
expect(lens[0]).to.be.false | ||
F.flip(lens)() | ||
expect(lens[0]).to.be.true | ||
}) | ||
it('functionPairLens', () => { | ||
let object = { | ||
a: false, | ||
} | ||
let get = () => object.a | ||
let set = x => { | ||
object.a = x | ||
} | ||
F.on(get, set)() | ||
expect(object.a).to.be.true | ||
F.off(get, set)() | ||
expect(object.a).to.be.false | ||
F.flip(get, set)() | ||
expect(object.a).to.be.true | ||
}) | ||
}) | ||
describe('domLens', () => { | ||
@@ -224,3 +257,3 @@ it('value', () => { | ||
} | ||
let props = f.domLens.value('a', state) | ||
let props = F.domLens.value('a', state) | ||
expect(props.value).to.equal(1) | ||
@@ -230,2 +263,11 @@ props.onChange({ target: { value: 5 } }) | ||
}) | ||
it('non-native value', () => { | ||
let state = { | ||
a: 1, | ||
} | ||
let props = F.domLens.value('a', state) | ||
expect(props.value).to.equal(1) | ||
props.onChange(5) | ||
expect(state.a).to.equal(5) | ||
}) | ||
it('checkboxValues', () => { | ||
@@ -236,3 +278,3 @@ let state = { | ||
// Props for if `x` is in the list | ||
let props = f.domLens.checkboxValues('x', 'a', state) | ||
let props = F.domLens.checkboxValues('x', 'a', state) | ||
expect(props.checked).to.equal(true) | ||
@@ -247,3 +289,3 @@ // uncheck | ||
} | ||
let props = f.domLens.hover('hovering', state) | ||
let props = F.domLens.hover('hovering', state) | ||
props.onMouseOver() | ||
@@ -258,3 +300,3 @@ expect(state.hovering).to.be.true | ||
} | ||
let props = f.domLens.focus('focusing', state) | ||
let props = F.domLens.focus('focusing', state) | ||
props.onFocus() | ||
@@ -269,3 +311,3 @@ expect(state.focusing).to.be.true | ||
} | ||
let props = f.domLens.targetBinding('checked')('flag', state) | ||
let props = F.domLens.targetBinding('checked')('flag', state) | ||
expect(props.checked).to.be.false | ||
@@ -279,3 +321,3 @@ props.onChange({ target: { checked: true } }) | ||
} | ||
let weirdSelect = f.domLens.binding('selected', e => e.newSelectedValue) | ||
let weirdSelect = F.domLens.binding('selected', e => e.newSelectedValue) | ||
let props = weirdSelect('selectedItem', state) | ||
@@ -282,0 +324,0 @@ expect(props.selected).to.equal('item1') |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
415346
6586
790