Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

futil

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

futil - npm Package Compare versions

Comparing version 1.69.0 to 1.69.1

3

CHANGELOG.md

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

# 1.69.1
- Fixed f and F discrepancy. Changed all f. to F. in all tests for consistency.
# 1.69.0

@@ -2,0 +5,0 @@ - Add `isPromise` utility

2

lib/futil-js.js

@@ -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(7);var f=a.default.convert({rearg:!1}),i=a.default.convert({immutable:!1}),l=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=i.extend,t.defaultsOn=i.defaults,t.mergeOn=i.merge,t.setOn=i.set,t.unsetOn=a.default.curryN(2,i.unset),t.pullOn=i.pull,t.updateOn=i.update,t.reduce=o.aspects.deprecate("reduce","1.28.0","reduceIndexed")(l.reduce),t.mapValues=o.aspects.deprecate("mapValues","1.28.0","mapValuesIndexed")(l.mapValues),t.each=o.aspects.deprecate("each","1.28.0","eachIndexed")(l.each),t.mapIndexed=l.map,t.findIndexed=l.find,t.eachIndexed=l.each,t.reduceIndexed=l.reduce,t.pickByIndexed=l.pickBy,t.mapValuesIndexed=l.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(5),f=n(3),i=n(1);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 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])}))),h=(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)}))),g=(t.mergeRanges=a.default.flow(a.default.sortBy([0,1]),a.default.reduce((function(e,t){return s(e).concat(h(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=g(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.isEmpty(t)?[]:a.default.reduce((function(t,n){return e(a.default.last(t),n)?[].concat(l(a.default.initial(t)),[[].concat(l(a.default.last(t)),[n])]):[].concat(l(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,i.reduceIndexed)((function(t,n,r){return r===a.length?[].concat(l(t),[n]):[].concat(l(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(8);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)})),i=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)?i(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(8);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),i=(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(i),t.isBlankDeep=function(e){return function(t){return e(i,(0,o.tree)().leaves(t))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapArgs=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};function o(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)}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 f,i=t.composeApply=function(e,t){return function(n){return e(t(n))(n)}},l=(t.comply=i,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=(f=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,f.apply(void 0,t))}),t.mapArgs=a.default.curry((function(e,t){return function(){for(var n=arguments.length,r=Array(n),u=0;u<n;u++)r[u]=arguments[u];return t.apply(void 0,o(r.map(e)))}}))},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(5),f=n(4);t.overNone=a.default.flow(a.default.overSome,a.default.negate);var i=t.ifElse=a.default.curry((function(e,t,n,r){return function(e){return a.default.isBoolean(e)||a.default.isNil(e)?function(){return e}:a.default.iteratee(e)}(e)(r)?(0,o.callOrReturn)(t,r):(0,o.callOrReturn)(n,r)})),l=t.when=a.default.curry((function(e,t,n){return i(e,t,a.default.identity,n)}));t.unless=a.default.curry((function(e,t,n){return i(e,a.default.identity,t,n)})),t.whenExists=l(f.exists),t.whenTruthy=l(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 i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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 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,h=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=i({},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,l(n))})).then((function(e){a=e})).then((function(){return c(a,r,n)})).catch((function(e){return h(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,h=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=i({},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,l(n));return c(a,r,n),a}catch(e){throw h(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.leavesBy=t.treeToArray=t.treeToArrayBy=t.mapTreeLeaves=t.mapTree=t.reduceTree=t.transformTree=t.walkAsync=t.findIndexedAsync=t.walk=t.traverse=t.isTraversable=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),i=n(2);function l(e){return Array.isArray(e)?e:Array.from(e)}function c(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 d=t.isTraversable=function(e){return o.default.isArray(e)||o.default.isPlainObject(e)},s=t.traverse=function(e){return d(e)&&!o.default.isEmpty(e)&&e},p=t.walk=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.noop,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(o,i){return n(o,i,u,a)||(0,f.findIndexed)(e(t)(n,r,[o].concat(c(u)),[i].concat(c(a))),t(o,i,u,a)||[])||r(o,i,u,a)}}},y=t.findIndexedAsync=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.default.toPairs(n);if(r.length){var a=l(r),f=u(a[0],2),i=f[0],c=f[1],d=a.slice(1);return Promise.resolve(t(c,i,n)).then((function(r){return r?c:d.length?e(t,n,d):void 0}))}},v=t.walkAsync=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.noop,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(o,f){return Promise.resolve(n(o,f,u,a)).then((function(i){return i||y(e(t)(n,r,[o].concat(c(u)),[f].concat(c(a))),t(o,f,u,a)||[])})).then((function(e){return e||r(o,f,u,a)}))}}},h=t.transformTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n){var r=o.default.cloneDeep(n);return p(e)(t)(r),r}))},g=t.reduceTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n,r){return p(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}))},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(t,n,r){var a=u(r,1)[0];e(a)[n]=t}},b=t.mapTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m(e);return o.default.curry((function(n,r){return h(e)((function(e,r,u){for(var a=arguments.length,o=Array(a>3?a-3:0),f=3;f<a;f++)o[f-3]=arguments[f];u.length&&t.apply(void 0,[n.apply(void 0,[e,r,u].concat(o)),r,u].concat(o))}))(n(r))}))},O=t.mapTreeLeaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m(e);return o.default.curry((function(n,r){return b(e,t)((function(t){return e(t)?t:n(t)}),r)}))},A=t.treeToArrayBy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n){return g(e)((function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return(0,i.push)(t.apply(void 0,r),e)}),[],n)}))},j=t.treeToArray=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return A(e)((function(e){return e}))},w=t.leavesBy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n){return g(e)((function(n,r){for(var u=arguments.length,a=Array(u>2?u-2:0),o=2;o<u;o++)a[o-2]=arguments[o];return e(r)?n:(0,i.push)(t.apply(void 0,[r].concat(a)),n)}),[],n)}))},_=t.leaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return w(e)((function(e){return e}))},x=t.treeLookup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.identity;return o.default.curry((function(n,r){return o.default.reduce((function(n,r){return(0,f.findIndexed)(t(r),e(n))}),r,n)}))},E=t.keyTreeByWith=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n,r){return o.default.flow(A(e)(o.default.iteratee(n)),o.default.uniq,o.default.keyBy(o.default.identity),o.default.mapValues((function(u){return h(e)((function(e){var r=o.default.iteratee(n)(e)===u;t(e,r,u)}),r)})))(r)}))},k=t.treeKeys=function(e,t,n,r){return[t].concat(c(r))},P=t.treeValues=function(e,t,n){return[e].concat(c(n))},I=t.treePath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.dotEncoder;return function(){return(t.encode||t)(e.apply(void 0,arguments).reverse())}},M=(t.propTreePath=function(e){return I(o.default.flow(P,o.default.map(e)),i.slashEncoder)},t.flattenTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I();return g(e)((function(e,n){for(var r=arguments.length,u=Array(r>2?r-2:0),a=2;a<r;a++)u[a-2]=arguments[a];return o.default.set([t.apply(void 0,[n].concat(u))],n,e)}),{})}}),B=t.flatLeaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.reject(e)};t.tree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.identity,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m(e);return{walk:p(e),walkAsync:v(e),transform:h(e),reduce:g(e),toArrayBy:A(e),toArray:j(e),leaves:_(e),leavesBy:w(e),lookup:x(e,t),keyByWith:E(e),traverse:e,flatten:M(e),flatLeaves:B(e),map:b(e,n),mapLeaves:O(e,n)}}},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.isPromise=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="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(1);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})}));var o=n(3);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}));var f=n(5);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})}));var i=n(11);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[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 c=n(7);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})}));var d=n(2);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})}));var s=n(6);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})}));var p=n(13);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})}));var y=n(4);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})}));var v=n(14);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})}));var h=n(8);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[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 m,b=n(0),O=(m=b)&&m.__esModule?m:{default:m},A=N(a),j=N(o),w=N(f),_=N(i),x=N(l),E=N(c),k=N(d),P=N(s),I=N(p),M=N(y),B=N(v),S=N(h),T=N(g);function N(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 R=t.greaterThanOne=O.default.lt(1),W=t.isPromise=function(e){return!!e&&("object"===(void 0===e?"undefined":u(e))||"function"==typeof e)&&"function"==typeof e.then},L=t.VERSION="1.69.0";t.default=r({},A,j,w,_,x,E,k,P,I,M,B,S,T,{greaterThanOne:R,isPromise:W,VERSION:L})},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(6),i=n(2),l=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,i.intersperse)((0,l.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.firstCommonKey=t.commonKeys=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.unwindArray=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),i=n(6),l=n(4),c=n(1),d=n(3),s=n(7),p=n(5);function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=o.default.convert({cap:!1}),h=t.singleObject=o.default.curry((function(e,t){return y({},e,t)})),g=t.singleObjectR=o.default.flip(h),m=t.chunkObject=function(e){return o.default.isArray(e)?e:o.default.map(o.default.spread(h),o.default.toPairs(e))},b=(t.compactObject=o.default.pickBy(o.default.identity),t.isEmptyObject=o.default.isEqual({})),O=t.isNotEmptyObject=o.default.negate(b),A=(t.stripEmptyObjects=o.default.pickBy(O),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(0,i.ifElse)(o.default.isArray,o.default.map((function(n){return o.default.set(e,n,t)})),o.default.stubArray,o.default.get(e,t))}))),j=(t.unwindArray=o.default.curry((function(e,t){return o.default.flatMap(A(e))(t)})),t.isFlatObject=(0,i.overNone)([o.default.isPlainObject,o.default.isArray])),w=t.flattenObject=function e(t,n){return(0,c.reduceIndexed)((function(t,r,u){return o.default.merge(t,(j(r)?g:e)(r,(0,f.dotJoinWith)(l.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(m,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")(v.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)}))),x=(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)}))),E=(t.cascadeProp=o.default.curry((function(e,t){return o.default.get(x(e,t),t)})),t.unkeyBy=o.default.curry((function(e,t){return(0,c.mapIndexed)((function(t,n){return o.default.extend(t,y({},e||n,n))}))(t)}))),k=t.simpleDiff=function(e,t){var n=w(e);return o.default.flow(w,(0,c.mapValuesIndexed)((function(e,t){return{from:n[t],to:e}})),o.default.omitBy((function(e){return o.default.isEqual(e.from,e.to)})))(t)},P=(t.simpleDiffArray=o.default.flow(k,E("field")),t.diff=function(e,t){var n=w(e),r=w(t);return o.default.flow((0,c.mapValuesIndexed)((function(e,t){return{from:n[t],to:r[t]}})),o.default.omitBy((function(e){return o.default.isEqual(e.from,e.to)})))(o.default.merge(n,r))}),I=(t.diffArray=o.default.flow(P,E("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(I),B=(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,y({},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(l.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)}))),S=(t.mergeOverAllArrays=B(I),t.getWith=o.default.curry((function(e,t,n){return e(o.default.get(t,n))}))),T=t.expandObject=o.default.curry((function(e,t){return u({},t,e(t))})),N=(t.expandObjectBy=o.default.curry((function(e,t,n){return T(S(t,e))(n)})),t.commonKeys=o.default.curryN(2,(0,p.mapArgs)(o.default.keys,o.default.intersection)),o.default.findKey.convert({cap:!1}));t.firstCommonKey=o.default.curry((function(e,t){return N((function(t,n){return o.default.has(n,e)}),t)}))},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 i=t.testRegex=a.default.curry((function(e,t){return new RegExp(e).test(t)})),l=t.makeRegex=function(e){return function(t){return RegExp(t,e)}},c=(t.makeAndTest=function(e){return a.default.flow(l(e),i)},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.isRegExp(n)?p(n,r):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),i=n(2),l=n(6);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,h.apply(void 0,n))},set:function(t){return m.apply(void 0,[o.default.uniq((0,i.toggleElementBy)(!t,e,h.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,l.when)(o.default.isArray,x)(t[0])},v=function(e){return e.get?e.get():e()},h=t.view=function(){return v(y.apply(void 0,arguments))},g=(t.views=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return h.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 g(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))}})),A=(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,[!h.apply(void 0,t)].concat(t))}},t.on=b(!0)),j=t.off=b(!1),w=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,h.apply(void 0,u)),c(n,"onChange",O.apply(void 0,[t].concat(u))),n}},_=function(e){return w(e,(0,l.when)(o.default.hasIn("target."+e),o.default.get("target."+e)))},x=(t.domLens={value:_("value"),checkboxValues:o.default.flow(s,_("checked")),hover:function(){return{onMouseEnter:A.apply(void 0,arguments),onMouseLeave:j.apply(void 0,arguments)}},focus:function(){return{onFocus:A.apply(void 0,arguments),onBlur:j.apply(void 0,arguments)}},targetBinding:_,binding:w},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(7);var f=a.default.convert({rearg:!1}),i=a.default.convert({immutable:!1}),l=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=i.extend,t.defaultsOn=i.defaults,t.mergeOn=i.merge,t.setOn=i.set,t.unsetOn=a.default.curryN(2,i.unset),t.pullOn=i.pull,t.updateOn=i.update,t.reduce=o.aspects.deprecate("reduce","1.28.0","reduceIndexed")(l.reduce),t.mapValues=o.aspects.deprecate("mapValues","1.28.0","mapValuesIndexed")(l.mapValues),t.each=o.aspects.deprecate("each","1.28.0","eachIndexed")(l.each),t.mapIndexed=l.map,t.findIndexed=l.find,t.eachIndexed=l.each,t.reduceIndexed=l.reduce,t.pickByIndexed=l.pickBy,t.mapValuesIndexed=l.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(5),f=n(3),i=n(1);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 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])}))),h=(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)}))),g=(t.mergeRanges=a.default.flow(a.default.sortBy([0,1]),a.default.reduce((function(e,t){return s(e).concat(h(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=g(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.isEmpty(t)?[]:a.default.reduce((function(t,n){return e(a.default.last(t),n)?[].concat(l(a.default.initial(t)),[[].concat(l(a.default.last(t)),[n])]):[].concat(l(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,i.reduceIndexed)((function(t,n,r){return r===a.length?[].concat(l(t),[n]):[].concat(l(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(8);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)})),i=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)?i(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(8);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),i=(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(i),t.isBlankDeep=function(e){return function(t){return e(i,(0,o.tree)().leaves(t))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapArgs=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};function o(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)}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 f,i=t.composeApply=function(e,t){return function(n){return e(t(n))(n)}},l=(t.comply=i,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=(f=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,f.apply(void 0,t))}),t.mapArgs=a.default.curry((function(e,t){return function(){for(var n=arguments.length,r=Array(n),u=0;u<n;u++)r[u]=arguments[u];return t.apply(void 0,o(r.map(e)))}}))},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(5),f=n(4);t.overNone=a.default.flow(a.default.overSome,a.default.negate);var i=t.ifElse=a.default.curry((function(e,t,n,r){return function(e){return a.default.isBoolean(e)||a.default.isNil(e)?function(){return e}:a.default.iteratee(e)}(e)(r)?(0,o.callOrReturn)(t,r):(0,o.callOrReturn)(n,r)})),l=t.when=a.default.curry((function(e,t,n){return i(e,t,a.default.identity,n)}));t.unless=a.default.curry((function(e,t,n){return i(e,a.default.identity,t,n)})),t.whenExists=l(f.exists),t.whenTruthy=l(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 i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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 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,h=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=i({},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,l(n))})).then((function(e){a=e})).then((function(){return c(a,r,n)})).catch((function(e){return h(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,h=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=i({},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,l(n));return c(a,r,n),a}catch(e){throw h(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.leavesBy=t.treeToArray=t.treeToArrayBy=t.mapTreeLeaves=t.mapTree=t.reduceTree=t.transformTree=t.walkAsync=t.findIndexedAsync=t.walk=t.traverse=t.isTraversable=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),i=n(2);function l(e){return Array.isArray(e)?e:Array.from(e)}function c(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 d=t.isTraversable=function(e){return o.default.isArray(e)||o.default.isPlainObject(e)},s=t.traverse=function(e){return d(e)&&!o.default.isEmpty(e)&&e},p=t.walk=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.noop,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(o,i){return n(o,i,u,a)||(0,f.findIndexed)(e(t)(n,r,[o].concat(c(u)),[i].concat(c(a))),t(o,i,u,a)||[])||r(o,i,u,a)}}},y=t.findIndexedAsync=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.default.toPairs(n);if(r.length){var a=l(r),f=u(a[0],2),i=f[0],c=f[1],d=a.slice(1);return Promise.resolve(t(c,i,n)).then((function(r){return r?c:d.length?e(t,n,d):void 0}))}},v=t.walkAsync=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.noop,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(o,f){return Promise.resolve(n(o,f,u,a)).then((function(i){return i||y(e(t)(n,r,[o].concat(c(u)),[f].concat(c(a))),t(o,f,u,a)||[])})).then((function(e){return e||r(o,f,u,a)}))}}},h=t.transformTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n){var r=o.default.cloneDeep(n);return p(e)(t)(r),r}))},g=t.reduceTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n,r){return p(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}))},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(t,n,r){var a=u(r,1)[0];e(a)[n]=t}},b=t.mapTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m(e);return o.default.curry((function(n,r){return h(e)((function(e,r,u){for(var a=arguments.length,o=Array(a>3?a-3:0),f=3;f<a;f++)o[f-3]=arguments[f];u.length&&t.apply(void 0,[n.apply(void 0,[e,r,u].concat(o)),r,u].concat(o))}))(n(r))}))},O=t.mapTreeLeaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m(e);return o.default.curry((function(n,r){return b(e,t)((function(t){return e(t)?t:n(t)}),r)}))},A=t.treeToArrayBy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n){return g(e)((function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return(0,i.push)(t.apply(void 0,r),e)}),[],n)}))},j=t.treeToArray=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return A(e)((function(e){return e}))},w=t.leavesBy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n){return g(e)((function(n,r){for(var u=arguments.length,a=Array(u>2?u-2:0),o=2;o<u;o++)a[o-2]=arguments[o];return e(r)?n:(0,i.push)(t.apply(void 0,[r].concat(a)),n)}),[],n)}))},_=t.leaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return w(e)((function(e){return e}))},x=t.treeLookup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.identity;return o.default.curry((function(n,r){return o.default.reduce((function(n,r){return(0,f.findIndexed)(t(r),e(n))}),r,n)}))},E=t.keyTreeByWith=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n,r){return o.default.flow(A(e)(o.default.iteratee(n)),o.default.uniq,o.default.keyBy(o.default.identity),o.default.mapValues((function(u){return h(e)((function(e){var r=o.default.iteratee(n)(e)===u;t(e,r,u)}),r)})))(r)}))},k=t.treeKeys=function(e,t,n,r){return[t].concat(c(r))},P=t.treeValues=function(e,t,n){return[e].concat(c(n))},I=t.treePath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.dotEncoder;return function(){return(t.encode||t)(e.apply(void 0,arguments).reverse())}},M=(t.propTreePath=function(e){return I(o.default.flow(P,o.default.map(e)),i.slashEncoder)},t.flattenTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I();return g(e)((function(e,n){for(var r=arguments.length,u=Array(r>2?r-2:0),a=2;a<r;a++)u[a-2]=arguments[a];return o.default.set([t.apply(void 0,[n].concat(u))],n,e)}),{})}}),B=t.flatLeaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.reject(e)};t.tree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.identity,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m(e);return{walk:p(e),walkAsync:v(e),transform:h(e),reduce:g(e),toArrayBy:A(e),toArray:j(e),leaves:_(e),leavesBy:w(e),lookup:x(e,t),keyByWith:E(e),traverse:e,flatten:M(e),flatLeaves:B(e),map:b(e,n),mapLeaves:O(e,n)}}},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.isPromise=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="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(1);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})}));var o=n(3);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}));var f=n(5);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})}));var i=n(11);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[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 c=n(7);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})}));var d=n(2);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})}));var s=n(6);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})}));var p=n(13);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})}));var y=n(4);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})}));var v=n(14);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})}));var h=n(8);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[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 m,b=n(0),O=(m=b)&&m.__esModule?m:{default:m},A=N(a),j=N(o),w=N(f),_=N(i),x=N(l),E=N(c),k=N(d),P=N(s),I=N(p),M=N(y),B=N(v),S=N(h),T=N(g);function N(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 R=t.greaterThanOne=O.default.lt(1),W=t.isPromise=function(e){return!!e&&("object"===(void 0===e?"undefined":u(e))||"function"==typeof e)&&"function"==typeof e.then},L=t.VERSION="1.69.1";t.default=r({},A,j,w,_,x,E,k,P,I,M,B,S,T,{greaterThanOne:R,isPromise:W,VERSION:L})},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(6),i=n(2),l=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,i.intersperse)((0,l.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.firstCommonKey=t.commonKeys=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.unwindArray=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),i=n(6),l=n(4),c=n(1),d=n(3),s=n(7),p=n(5);function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=o.default.convert({cap:!1}),h=t.singleObject=o.default.curry((function(e,t){return y({},e,t)})),g=t.singleObjectR=o.default.flip(h),m=t.chunkObject=function(e){return o.default.isArray(e)?e:o.default.map(o.default.spread(h),o.default.toPairs(e))},b=(t.compactObject=o.default.pickBy(o.default.identity),t.isEmptyObject=o.default.isEqual({})),O=t.isNotEmptyObject=o.default.negate(b),A=(t.stripEmptyObjects=o.default.pickBy(O),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(0,i.ifElse)(o.default.isArray,o.default.map((function(n){return o.default.set(e,n,t)})),o.default.stubArray,o.default.get(e,t))}))),j=(t.unwindArray=o.default.curry((function(e,t){return o.default.flatMap(A(e))(t)})),t.isFlatObject=(0,i.overNone)([o.default.isPlainObject,o.default.isArray])),w=t.flattenObject=function e(t,n){return(0,c.reduceIndexed)((function(t,r,u){return o.default.merge(t,(j(r)?g:e)(r,(0,f.dotJoinWith)(l.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(m,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")(v.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)}))),x=(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)}))),E=(t.cascadeProp=o.default.curry((function(e,t){return o.default.get(x(e,t),t)})),t.unkeyBy=o.default.curry((function(e,t){return(0,c.mapIndexed)((function(t,n){return o.default.extend(t,y({},e||n,n))}))(t)}))),k=t.simpleDiff=function(e,t){var n=w(e);return o.default.flow(w,(0,c.mapValuesIndexed)((function(e,t){return{from:n[t],to:e}})),o.default.omitBy((function(e){return o.default.isEqual(e.from,e.to)})))(t)},P=(t.simpleDiffArray=o.default.flow(k,E("field")),t.diff=function(e,t){var n=w(e),r=w(t);return o.default.flow((0,c.mapValuesIndexed)((function(e,t){return{from:n[t],to:r[t]}})),o.default.omitBy((function(e){return o.default.isEqual(e.from,e.to)})))(o.default.merge(n,r))}),I=(t.diffArray=o.default.flow(P,E("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(I),B=(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,y({},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(l.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)}))),S=(t.mergeOverAllArrays=B(I),t.getWith=o.default.curry((function(e,t,n){return e(o.default.get(t,n))}))),T=t.expandObject=o.default.curry((function(e,t){return u({},t,e(t))})),N=(t.expandObjectBy=o.default.curry((function(e,t,n){return T(S(t,e))(n)})),t.commonKeys=o.default.curryN(2,(0,p.mapArgs)(o.default.keys,o.default.intersection)),o.default.findKey.convert({cap:!1}));t.firstCommonKey=o.default.curry((function(e,t){return N((function(t,n){return o.default.has(n,e)}),t)}))},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 i=t.testRegex=a.default.curry((function(e,t){return new RegExp(e).test(t)})),l=t.makeRegex=function(e){return function(t){return RegExp(t,e)}},c=(t.makeAndTest=function(e){return a.default.flow(l(e),i)},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.isRegExp(n)?p(n,r):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),i=n(2),l=n(6);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,h.apply(void 0,n))},set:function(t){return m.apply(void 0,[o.default.uniq((0,i.toggleElementBy)(!t,e,h.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,l.when)(o.default.isArray,x)(t[0])},v=function(e){return e.get?e.get():e()},h=t.view=function(){return v(y.apply(void 0,arguments))},g=(t.views=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return h.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 g(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))}})),A=(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,[!h.apply(void 0,t)].concat(t))}},t.on=b(!0)),j=t.off=b(!1),w=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,h.apply(void 0,u)),c(n,"onChange",O.apply(void 0,[t].concat(u))),n}},_=function(e){return w(e,(0,l.when)(o.default.hasIn("target."+e),o.default.get("target."+e)))},x=(t.domLens={value:_("value"),checkboxValues:o.default.flow(s,_("checked")),hover:function(){return{onMouseEnter:A.apply(void 0,arguments),onMouseLeave:j.apply(void 0,arguments)}},focus:function(){return{onFocus:A.apply(void 0,arguments),onBlur:j.apply(void 0,arguments)}},targetBinding:_,binding:w},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(7);var f=a.default.convert({rearg:!1}),i=a.default.convert({immutable:!1}),l=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=i.extend,t.defaultsOn=i.defaults,t.mergeOn=i.merge,t.setOn=i.set,t.unsetOn=a.default.curryN(2,i.unset),t.pullOn=i.pull,t.updateOn=i.update,t.reduce=o.aspects.deprecate("reduce","1.28.0","reduceIndexed")(l.reduce),t.mapValues=o.aspects.deprecate("mapValues","1.28.0","mapValuesIndexed")(l.mapValues),t.each=o.aspects.deprecate("each","1.28.0","eachIndexed")(l.each),t.mapIndexed=l.map,t.findIndexed=l.find,t.eachIndexed=l.each,t.reduceIndexed=l.reduce,t.pickByIndexed=l.pickBy,t.mapValuesIndexed=l.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(5),f=n(3),i=n(1);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 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])}))),h=(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)}))),g=(t.mergeRanges=a.default.flow(a.default.sortBy([0,1]),a.default.reduce((function(e,t){return s(e).concat(h(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=g(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.isEmpty(t)?[]:a.default.reduce((function(t,n){return e(a.default.last(t),n)?[].concat(l(a.default.initial(t)),[[].concat(l(a.default.last(t)),[n])]):[].concat(l(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,i.reduceIndexed)((function(t,n,r){return r===a.length?[].concat(l(t),[n]):[].concat(l(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(8);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)})),i=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)?i(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(8);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),i=(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(i),t.isBlankDeep=function(e){return function(t){return e(i,(0,o.tree)().leaves(t))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapArgs=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};function o(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)}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 f,i=t.composeApply=function(e,t){return function(n){return e(t(n))(n)}},l=(t.comply=i,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=(f=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,f.apply(void 0,t))}),t.mapArgs=a.default.curry((function(e,t){return function(){for(var n=arguments.length,r=Array(n),u=0;u<n;u++)r[u]=arguments[u];return t.apply(void 0,o(r.map(e)))}}))},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(5),f=n(4);t.overNone=a.default.flow(a.default.overSome,a.default.negate);var i=t.ifElse=a.default.curry((function(e,t,n,r){return function(e){return a.default.isBoolean(e)||a.default.isNil(e)?function(){return e}:a.default.iteratee(e)}(e)(r)?(0,o.callOrReturn)(t,r):(0,o.callOrReturn)(n,r)})),l=t.when=a.default.curry((function(e,t,n){return i(e,t,a.default.identity,n)}));t.unless=a.default.curry((function(e,t,n){return i(e,a.default.identity,t,n)})),t.whenExists=l(f.exists),t.whenTruthy=l(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 i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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 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,h=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=i({},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,l(n))})).then((function(e){a=e})).then((function(){return c(a,r,n)})).catch((function(e){return h(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,h=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=i({},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,l(n));return c(a,r,n),a}catch(e){throw h(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.leavesBy=t.treeToArray=t.treeToArrayBy=t.mapTreeLeaves=t.mapTree=t.reduceTree=t.transformTree=t.walkAsync=t.findIndexedAsync=t.walk=t.traverse=t.isTraversable=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),i=n(2);function l(e){return Array.isArray(e)?e:Array.from(e)}function c(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 d=t.isTraversable=function(e){return o.default.isArray(e)||o.default.isPlainObject(e)},s=t.traverse=function(e){return d(e)&&!o.default.isEmpty(e)&&e},p=t.walk=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.noop,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(o,i){return n(o,i,u,a)||(0,f.findIndexed)(e(t)(n,r,[o].concat(c(u)),[i].concat(c(a))),t(o,i,u,a)||[])||r(o,i,u,a)}}},y=t.findIndexedAsync=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.default.toPairs(n);if(r.length){var a=l(r),f=u(a[0],2),i=f[0],c=f[1],d=a.slice(1);return Promise.resolve(t(c,i,n)).then((function(r){return r?c:d.length?e(t,n,d):void 0}))}},v=t.walkAsync=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.noop,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(o,f){return Promise.resolve(n(o,f,u,a)).then((function(i){return i||y(e(t)(n,r,[o].concat(c(u)),[f].concat(c(a))),t(o,f,u,a)||[])})).then((function(e){return e||r(o,f,u,a)}))}}},h=t.transformTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n){var r=o.default.cloneDeep(n);return p(e)(t)(r),r}))},g=t.reduceTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n,r){return p(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}))},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(t,n,r){var a=u(r,1)[0];e(a)[n]=t}},b=t.mapTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m(e);return o.default.curry((function(n,r){return h(e)((function(e,r,u){for(var a=arguments.length,o=Array(a>3?a-3:0),f=3;f<a;f++)o[f-3]=arguments[f];u.length&&t.apply(void 0,[n.apply(void 0,[e,r,u].concat(o)),r,u].concat(o))}))(n(r))}))},O=t.mapTreeLeaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m(e);return o.default.curry((function(n,r){return b(e,t)((function(t){return e(t)?t:n(t)}),r)}))},A=t.treeToArrayBy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n){return g(e)((function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return(0,i.push)(t.apply(void 0,r),e)}),[],n)}))},j=t.treeToArray=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return A(e)((function(e){return e}))},w=t.leavesBy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n){return g(e)((function(n,r){for(var u=arguments.length,a=Array(u>2?u-2:0),o=2;o<u;o++)a[o-2]=arguments[o];return e(r)?n:(0,i.push)(t.apply(void 0,[r].concat(a)),n)}),[],n)}))},_=t.leaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return w(e)((function(e){return e}))},x=t.treeLookup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.identity;return o.default.curry((function(n,r){return o.default.reduce((function(n,r){return(0,f.findIndexed)(t(r),e(n))}),r,n)}))},E=t.keyTreeByWith=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n,r){return o.default.flow(A(e)(o.default.iteratee(n)),o.default.uniq,o.default.keyBy(o.default.identity),o.default.mapValues((function(u){return h(e)((function(e){var r=o.default.iteratee(n)(e)===u;t(e,r,u)}),r)})))(r)}))},k=t.treeKeys=function(e,t,n,r){return[t].concat(c(r))},P=t.treeValues=function(e,t,n){return[e].concat(c(n))},I=t.treePath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.dotEncoder;return function(){return(t.encode||t)(e.apply(void 0,arguments).reverse())}},M=(t.propTreePath=function(e){return I(o.default.flow(P,o.default.map(e)),i.slashEncoder)},t.flattenTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I();return g(e)((function(e,n){for(var r=arguments.length,u=Array(r>2?r-2:0),a=2;a<r;a++)u[a-2]=arguments[a];return o.default.set([t.apply(void 0,[n].concat(u))],n,e)}),{})}}),B=t.flatLeaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.reject(e)};t.tree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.identity,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m(e);return{walk:p(e),walkAsync:v(e),transform:h(e),reduce:g(e),toArrayBy:A(e),toArray:j(e),leaves:_(e),leavesBy:w(e),lookup:x(e,t),keyByWith:E(e),traverse:e,flatten:M(e),flatLeaves:B(e),map:b(e,n),mapLeaves:O(e,n)}}},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.isPromise=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="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(1);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})}));var o=n(3);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}));var f=n(5);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})}));var i=n(11);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[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 c=n(7);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})}));var d=n(2);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})}));var s=n(6);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})}));var p=n(13);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})}));var y=n(4);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})}));var v=n(14);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})}));var h=n(8);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[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 m,b=n(0),O=(m=b)&&m.__esModule?m:{default:m},A=N(a),j=N(o),w=N(f),_=N(i),x=N(l),E=N(c),k=N(d),P=N(s),I=N(p),M=N(y),B=N(v),S=N(h),T=N(g);function N(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 R=t.greaterThanOne=O.default.lt(1),W=t.isPromise=function(e){return!!e&&("object"===(void 0===e?"undefined":u(e))||"function"==typeof e)&&"function"==typeof e.then},L=t.VERSION="1.69.0";t.default=r({},A,j,w,_,x,E,k,P,I,M,B,S,T,{greaterThanOne:R,isPromise:W,VERSION:L})},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(6),i=n(2),l=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,i.intersperse)((0,l.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.firstCommonKey=t.commonKeys=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.unwindArray=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),i=n(6),l=n(4),c=n(1),d=n(3),s=n(7),p=n(5);function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=o.default.convert({cap:!1}),h=t.singleObject=o.default.curry((function(e,t){return y({},e,t)})),g=t.singleObjectR=o.default.flip(h),m=t.chunkObject=function(e){return o.default.isArray(e)?e:o.default.map(o.default.spread(h),o.default.toPairs(e))},b=(t.compactObject=o.default.pickBy(o.default.identity),t.isEmptyObject=o.default.isEqual({})),O=t.isNotEmptyObject=o.default.negate(b),A=(t.stripEmptyObjects=o.default.pickBy(O),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(0,i.ifElse)(o.default.isArray,o.default.map((function(n){return o.default.set(e,n,t)})),o.default.stubArray,o.default.get(e,t))}))),j=(t.unwindArray=o.default.curry((function(e,t){return o.default.flatMap(A(e))(t)})),t.isFlatObject=(0,i.overNone)([o.default.isPlainObject,o.default.isArray])),w=t.flattenObject=function e(t,n){return(0,c.reduceIndexed)((function(t,r,u){return o.default.merge(t,(j(r)?g:e)(r,(0,f.dotJoinWith)(l.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(m,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")(v.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)}))),x=(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)}))),E=(t.cascadeProp=o.default.curry((function(e,t){return o.default.get(x(e,t),t)})),t.unkeyBy=o.default.curry((function(e,t){return(0,c.mapIndexed)((function(t,n){return o.default.extend(t,y({},e||n,n))}))(t)}))),k=t.simpleDiff=function(e,t){var n=w(e);return o.default.flow(w,(0,c.mapValuesIndexed)((function(e,t){return{from:n[t],to:e}})),o.default.omitBy((function(e){return o.default.isEqual(e.from,e.to)})))(t)},P=(t.simpleDiffArray=o.default.flow(k,E("field")),t.diff=function(e,t){var n=w(e),r=w(t);return o.default.flow((0,c.mapValuesIndexed)((function(e,t){return{from:n[t],to:r[t]}})),o.default.omitBy((function(e){return o.default.isEqual(e.from,e.to)})))(o.default.merge(n,r))}),I=(t.diffArray=o.default.flow(P,E("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(I),B=(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,y({},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(l.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)}))),S=(t.mergeOverAllArrays=B(I),t.getWith=o.default.curry((function(e,t,n){return e(o.default.get(t,n))}))),T=t.expandObject=o.default.curry((function(e,t){return u({},t,e(t))})),N=(t.expandObjectBy=o.default.curry((function(e,t,n){return T(S(t,e))(n)})),t.commonKeys=o.default.curryN(2,(0,p.mapArgs)(o.default.keys,o.default.intersection)),o.default.findKey.convert({cap:!1}));t.firstCommonKey=o.default.curry((function(e,t){return N((function(t,n){return o.default.has(n,e)}),t)}))},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 i=t.testRegex=a.default.curry((function(e,t){return new RegExp(e).test(t)})),l=t.makeRegex=function(e){return function(t){return RegExp(t,e)}},c=(t.makeAndTest=function(e){return a.default.flow(l(e),i)},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.isRegExp(n)?p(n,r):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),i=n(2),l=n(6);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,h.apply(void 0,n))},set:function(t){return m.apply(void 0,[o.default.uniq((0,i.toggleElementBy)(!t,e,h.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,l.when)(o.default.isArray,x)(t[0])},v=function(e){return e.get?e.get():e()},h=t.view=function(){return v(y.apply(void 0,arguments))},g=(t.views=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return h.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 g(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))}})),A=(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,[!h.apply(void 0,t)].concat(t))}},t.on=b(!0)),j=t.off=b(!1),w=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,h.apply(void 0,u)),c(n,"onChange",O.apply(void 0,[t].concat(u))),n}},_=function(e){return w(e,(0,l.when)(o.default.hasIn("target."+e),o.default.get("target."+e)))},x=(t.domLens={value:_("value"),checkboxValues:o.default.flow(s,_("checked")),hover:function(){return{onMouseEnter:A.apply(void 0,arguments),onMouseLeave:j.apply(void 0,arguments)}},focus:function(){return{onFocus:A.apply(void 0,arguments),onBlur:j.apply(void 0,arguments)}},targetBinding:_,binding:w},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(7);var f=a.default.convert({rearg:!1}),i=a.default.convert({immutable:!1}),l=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=i.extend,t.defaultsOn=i.defaults,t.mergeOn=i.merge,t.setOn=i.set,t.unsetOn=a.default.curryN(2,i.unset),t.pullOn=i.pull,t.updateOn=i.update,t.reduce=o.aspects.deprecate("reduce","1.28.0","reduceIndexed")(l.reduce),t.mapValues=o.aspects.deprecate("mapValues","1.28.0","mapValuesIndexed")(l.mapValues),t.each=o.aspects.deprecate("each","1.28.0","eachIndexed")(l.each),t.mapIndexed=l.map,t.findIndexed=l.find,t.eachIndexed=l.each,t.reduceIndexed=l.reduce,t.pickByIndexed=l.pickBy,t.mapValuesIndexed=l.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(5),f=n(3),i=n(1);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 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])}))),h=(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)}))),g=(t.mergeRanges=a.default.flow(a.default.sortBy([0,1]),a.default.reduce((function(e,t){return s(e).concat(h(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=g(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.isEmpty(t)?[]:a.default.reduce((function(t,n){return e(a.default.last(t),n)?[].concat(l(a.default.initial(t)),[[].concat(l(a.default.last(t)),[n])]):[].concat(l(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,i.reduceIndexed)((function(t,n,r){return r===a.length?[].concat(l(t),[n]):[].concat(l(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(8);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)})),i=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)?i(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(8);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),i=(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(i),t.isBlankDeep=function(e){return function(t){return e(i,(0,o.tree)().leaves(t))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapArgs=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};function o(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)}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 f,i=t.composeApply=function(e,t){return function(n){return e(t(n))(n)}},l=(t.comply=i,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=(f=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,f.apply(void 0,t))}),t.mapArgs=a.default.curry((function(e,t){return function(){for(var n=arguments.length,r=Array(n),u=0;u<n;u++)r[u]=arguments[u];return t.apply(void 0,o(r.map(e)))}}))},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(5),f=n(4);t.overNone=a.default.flow(a.default.overSome,a.default.negate);var i=t.ifElse=a.default.curry((function(e,t,n,r){return function(e){return a.default.isBoolean(e)||a.default.isNil(e)?function(){return e}:a.default.iteratee(e)}(e)(r)?(0,o.callOrReturn)(t,r):(0,o.callOrReturn)(n,r)})),l=t.when=a.default.curry((function(e,t,n){return i(e,t,a.default.identity,n)}));t.unless=a.default.curry((function(e,t,n){return i(e,a.default.identity,t,n)})),t.whenExists=l(f.exists),t.whenTruthy=l(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 i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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 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,h=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=i({},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,l(n))})).then((function(e){a=e})).then((function(){return c(a,r,n)})).catch((function(e){return h(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,h=void 0===v?f.throws:v;return function(e){var t=e.state,r=void 0===t?{}:t;u(r);var a=i({},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,l(n));return c(a,r,n),a}catch(e){throw h(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.leavesBy=t.treeToArray=t.treeToArrayBy=t.mapTreeLeaves=t.mapTree=t.reduceTree=t.transformTree=t.walkAsync=t.findIndexedAsync=t.walk=t.traverse=t.isTraversable=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),i=n(2);function l(e){return Array.isArray(e)?e:Array.from(e)}function c(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 d=t.isTraversable=function(e){return o.default.isArray(e)||o.default.isPlainObject(e)},s=t.traverse=function(e){return d(e)&&!o.default.isEmpty(e)&&e},p=t.walk=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.noop,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(o,i){return n(o,i,u,a)||(0,f.findIndexed)(e(t)(n,r,[o].concat(c(u)),[i].concat(c(a))),t(o,i,u,a)||[])||r(o,i,u,a)}}},y=t.findIndexedAsync=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.default.toPairs(n);if(r.length){var a=l(r),f=u(a[0],2),i=f[0],c=f[1],d=a.slice(1);return Promise.resolve(t(c,i,n)).then((function(r){return r?c:d.length?e(t,n,d):void 0}))}},v=t.walkAsync=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.noop,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(o,f){return Promise.resolve(n(o,f,u,a)).then((function(i){return i||y(e(t)(n,r,[o].concat(c(u)),[f].concat(c(a))),t(o,f,u,a)||[])})).then((function(e){return e||r(o,f,u,a)}))}}},h=t.transformTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n){var r=o.default.cloneDeep(n);return p(e)(t)(r),r}))},g=t.reduceTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n,r){return p(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}))},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(t,n,r){var a=u(r,1)[0];e(a)[n]=t}},b=t.mapTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m(e);return o.default.curry((function(n,r){return h(e)((function(e,r,u){for(var a=arguments.length,o=Array(a>3?a-3:0),f=3;f<a;f++)o[f-3]=arguments[f];u.length&&t.apply(void 0,[n.apply(void 0,[e,r,u].concat(o)),r,u].concat(o))}))(n(r))}))},O=t.mapTreeLeaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m(e);return o.default.curry((function(n,r){return b(e,t)((function(t){return e(t)?t:n(t)}),r)}))},A=t.treeToArrayBy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n){return g(e)((function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return(0,i.push)(t.apply(void 0,r),e)}),[],n)}))},j=t.treeToArray=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return A(e)((function(e){return e}))},w=t.leavesBy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n){return g(e)((function(n,r){for(var u=arguments.length,a=Array(u>2?u-2:0),o=2;o<u;o++)a[o-2]=arguments[o];return e(r)?n:(0,i.push)(t.apply(void 0,[r].concat(a)),n)}),[],n)}))},_=t.leaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return w(e)((function(e){return e}))},x=t.treeLookup=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.identity;return o.default.curry((function(n,r){return o.default.reduce((function(n,r){return(0,f.findIndexed)(t(r),e(n))}),r,n)}))},E=t.keyTreeByWith=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.curry((function(t,n,r){return o.default.flow(A(e)(o.default.iteratee(n)),o.default.uniq,o.default.keyBy(o.default.identity),o.default.mapValues((function(u){return h(e)((function(e){var r=o.default.iteratee(n)(e)===u;t(e,r,u)}),r)})))(r)}))},k=t.treeKeys=function(e,t,n,r){return[t].concat(c(r))},P=t.treeValues=function(e,t,n){return[e].concat(c(n))},I=t.treePath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.dotEncoder;return function(){return(t.encode||t)(e.apply(void 0,arguments).reverse())}},M=(t.propTreePath=function(e){return I(o.default.flow(P,o.default.map(e)),i.slashEncoder)},t.flattenTree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I();return g(e)((function(e,n){for(var r=arguments.length,u=Array(r>2?r-2:0),a=2;a<r;a++)u[a-2]=arguments[a];return o.default.set([t.apply(void 0,[n].concat(u))],n,e)}),{})}}),B=t.flatLeaves=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return o.default.reject(e)};t.tree=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.identity,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m(e);return{walk:p(e),walkAsync:v(e),transform:h(e),reduce:g(e),toArrayBy:A(e),toArray:j(e),leaves:_(e),leavesBy:w(e),lookup:x(e,t),keyByWith:E(e),traverse:e,flatten:M(e),flatLeaves:B(e),map:b(e,n),mapLeaves:O(e,n)}}},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.isPromise=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="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(1);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})}));var o=n(3);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}));var f=n(5);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})}));var i=n(11);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[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 c=n(7);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})}));var d=n(2);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})}));var s=n(6);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})}));var p=n(13);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})}));var y=n(4);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})}));var v=n(14);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})}));var h=n(8);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[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 m,b=n(0),O=(m=b)&&m.__esModule?m:{default:m},A=N(a),j=N(o),w=N(f),_=N(i),x=N(l),E=N(c),k=N(d),P=N(s),I=N(p),M=N(y),B=N(v),S=N(h),T=N(g);function N(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 R=t.greaterThanOne=O.default.lt(1),W=t.isPromise=function(e){return!!e&&("object"===(void 0===e?"undefined":u(e))||"function"==typeof e)&&"function"==typeof e.then},L=t.VERSION="1.69.1";t.default=r({},A,j,w,_,x,E,k,P,I,M,B,S,T,{greaterThanOne:R,isPromise:W,VERSION:L})},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(6),i=n(2),l=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,i.intersperse)((0,l.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.firstCommonKey=t.commonKeys=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.unwindArray=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),i=n(6),l=n(4),c=n(1),d=n(3),s=n(7),p=n(5);function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=o.default.convert({cap:!1}),h=t.singleObject=o.default.curry((function(e,t){return y({},e,t)})),g=t.singleObjectR=o.default.flip(h),m=t.chunkObject=function(e){return o.default.isArray(e)?e:o.default.map(o.default.spread(h),o.default.toPairs(e))},b=(t.compactObject=o.default.pickBy(o.default.identity),t.isEmptyObject=o.default.isEqual({})),O=t.isNotEmptyObject=o.default.negate(b),A=(t.stripEmptyObjects=o.default.pickBy(O),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(0,i.ifElse)(o.default.isArray,o.default.map((function(n){return o.default.set(e,n,t)})),o.default.stubArray,o.default.get(e,t))}))),j=(t.unwindArray=o.default.curry((function(e,t){return o.default.flatMap(A(e))(t)})),t.isFlatObject=(0,i.overNone)([o.default.isPlainObject,o.default.isArray])),w=t.flattenObject=function e(t,n){return(0,c.reduceIndexed)((function(t,r,u){return o.default.merge(t,(j(r)?g:e)(r,(0,f.dotJoinWith)(l.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(m,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")(v.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)}))),x=(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)}))),E=(t.cascadeProp=o.default.curry((function(e,t){return o.default.get(x(e,t),t)})),t.unkeyBy=o.default.curry((function(e,t){return(0,c.mapIndexed)((function(t,n){return o.default.extend(t,y({},e||n,n))}))(t)}))),k=t.simpleDiff=function(e,t){var n=w(e);return o.default.flow(w,(0,c.mapValuesIndexed)((function(e,t){return{from:n[t],to:e}})),o.default.omitBy((function(e){return o.default.isEqual(e.from,e.to)})))(t)},P=(t.simpleDiffArray=o.default.flow(k,E("field")),t.diff=function(e,t){var n=w(e),r=w(t);return o.default.flow((0,c.mapValuesIndexed)((function(e,t){return{from:n[t],to:r[t]}})),o.default.omitBy((function(e){return o.default.isEqual(e.from,e.to)})))(o.default.merge(n,r))}),I=(t.diffArray=o.default.flow(P,E("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(I),B=(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,y({},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(l.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)}))),S=(t.mergeOverAllArrays=B(I),t.getWith=o.default.curry((function(e,t,n){return e(o.default.get(t,n))}))),T=t.expandObject=o.default.curry((function(e,t){return u({},t,e(t))})),N=(t.expandObjectBy=o.default.curry((function(e,t,n){return T(S(t,e))(n)})),t.commonKeys=o.default.curryN(2,(0,p.mapArgs)(o.default.keys,o.default.intersection)),o.default.findKey.convert({cap:!1}));t.firstCommonKey=o.default.curry((function(e,t){return N((function(t,n){return o.default.has(n,e)}),t)}))},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 i=t.testRegex=a.default.curry((function(e,t){return new RegExp(e).test(t)})),l=t.makeRegex=function(e){return function(t){return RegExp(t,e)}},c=(t.makeAndTest=function(e){return a.default.flow(l(e),i)},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.isRegExp(n)?p(n,r):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),i=n(2),l=n(6);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,h.apply(void 0,n))},set:function(t){return m.apply(void 0,[o.default.uniq((0,i.toggleElementBy)(!t,e,h.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,l.when)(o.default.isArray,x)(t[0])},v=function(e){return e.get?e.get():e()},h=t.view=function(){return v(y.apply(void 0,arguments))},g=(t.views=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return h.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 g(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))}})),A=(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,[!h.apply(void 0,t)].concat(t))}},t.on=b(!0)),j=t.off=b(!1),w=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,h.apply(void 0,u)),c(n,"onChange",O.apply(void 0,[t].concat(u))),n}},_=function(e){return w(e,(0,l.when)(o.default.hasIn("target."+e),o.default.get("target."+e)))},x=(t.domLens={value:_("value"),checkboxValues:o.default.flow(s,_("checked")),hover:function(){return{onMouseEnter:A.apply(void 0,arguments),onMouseLeave:j.apply(void 0,arguments)}},focus:function(){return{onFocus:A.apply(void 0,arguments),onBlur:j.apply(void 0,arguments)}},targetBinding:_,binding:w},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.69.0",
"version": "1.69.1",
"description": "F(unctional) util(ities). Resistance is futile.",

@@ -5,0 +5,0 @@ "main": "lib/futil-js.js",

@@ -8,5 +8,5 @@ {

"failures": 0,
"start": "2021-08-05T20:42:27.725Z",
"end": "2021-08-05T20:42:28.474Z",
"duration": 749
"start": "2022-07-29T21:43:27.990Z",
"end": "2022-07-29T21:43:28.728Z",
"duration": 738
},

@@ -17,3 +17,3 @@ "tests": [

"fullTitle": "Algebras map arrays",
"duration": 2,
"duration": 1,
"currentRetry": 0,

@@ -25,3 +25,3 @@ "err": {}

"fullTitle": "Algebras map plain objects",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -47,3 +47,3 @@ "err": {}

"fullTitle": "Algebras deepMap plain objects with arrays with objects",
"duration": 2,
"duration": 1,
"currentRetry": 0,

@@ -132,3 +132,3 @@ "err": {}

"fullTitle": "Array Functions prefixes",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -140,3 +140,3 @@ "err": {}

"fullTitle": "Array Functions encoder",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -162,3 +162,3 @@ "err": {}

"fullTitle": "Array Functions chunkBy",
"duration": 1,
"duration": 4,
"currentRetry": 0,

@@ -177,3 +177,3 @@ "err": {}

"fullTitle": "Array Functions toggleElementBy",
"duration": 1,
"duration": 0,
"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": 4,
"duration": 0,
"currentRetry": 0,

@@ -236,3 +236,3 @@ "err": {}

"fullTitle": "Aspect Functions should support single error",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -244,3 +244,3 @@ "err": {}

"fullTitle": "Aspect Functions should support status and clearing status",
"duration": 523,
"duration": 524,
"currentRetry": 0,

@@ -280,3 +280,3 @@ "err": {}

"fullTitle": "Collections Functions compactMap",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -309,3 +309,3 @@ "err": {}

"fullTitle": "Converted Functions Mutables extendOn",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -317,3 +317,3 @@ "err": {}

"fullTitle": "Converted Functions Mutables defaultsOn",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -325,3 +325,3 @@ "err": {}

"fullTitle": "Function Functions should debounceAsync",
"duration": 23,
"duration": 22,
"currentRetry": 0,

@@ -333,3 +333,3 @@ "err": {}

"fullTitle": "Function Functions should demonstrate failing with regular debounce",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -341,3 +341,3 @@ "err": {}

"fullTitle": "Function Functions should flurry",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -349,3 +349,3 @@ "err": {}

"fullTitle": "Function Functions mapArgs",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -364,3 +364,3 @@ "err": {}

"fullTitle": "Lang Functions throws",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -505,3 +505,3 @@ "err": {}

"fullTitle": "Lens Functions Manipulation flip",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -548,3 +548,3 @@ "err": {}

"fullTitle": "Lens Functions Implicit Lens Prop sets",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -619,3 +619,3 @@ "err": {}

"fullTitle": "Lens Functions domLens focus",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -767,3 +767,3 @@ "err": {}

"fullTitle": "Object Functions compactObject",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -775,3 +775,3 @@ "err": {}

"fullTitle": "Object Functions isEmptyObject",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -797,3 +797,3 @@ "err": {}

"fullTitle": "Object Functions pickInto",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -805,3 +805,3 @@ "err": {}

"fullTitle": "Object Functions unwind",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -813,3 +813,3 @@ "err": {}

"fullTitle": "Object Functions unwindArray",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -835,3 +835,3 @@ "err": {}

"fullTitle": "Object Functions renameProperty",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -906,3 +906,3 @@ "err": {}

"fullTitle": "Object Functions cascadePropKey",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -956,3 +956,3 @@ "err": {}

"fullTitle": "Object Functions diffArray",
"duration": 2,
"duration": 1,
"currentRetry": 0,

@@ -964,3 +964,3 @@ "err": {}

"fullTitle": "Object Functions mergeAllArrays",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -972,3 +972,3 @@ "err": {}

"fullTitle": "Object Functions invertByArray",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -980,3 +980,3 @@ "err": {}

"fullTitle": "Object Functions stampKey",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1009,3 +1009,3 @@ "err": {}

"fullTitle": "Object Functions omitEmpty",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1038,3 +1038,3 @@ "err": {}

"fullTitle": "Object Functions getWith",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1060,3 +1060,3 @@ "err": {}

"fullTitle": "Object Functions commonKeys",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1075,3 +1075,3 @@ "err": {}

"fullTitle": "Regexp Functions testRegex",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1118,3 +1118,3 @@ "err": {}

"fullTitle": "Posting Highlight Functions should get postings",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1126,3 +1126,3 @@ "err": {}

"fullTitle": "Posting Highlight Functions should get postings by word",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1134,3 +1134,3 @@ "err": {}

"fullTitle": "Posting Highlight Functions should highlight",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1156,3 +1156,3 @@ "err": {}

"fullTitle": "Posting Highlight Functions should highlight from regexp",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1185,3 +1185,3 @@ "err": {}

"fullTitle": "String Functions concatStrings",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1193,3 +1193,3 @@ "err": {}

"fullTitle": "String Functions trimStrings",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1208,3 +1208,3 @@ "err": {}

"fullTitle": "String Functions autoLabelOption",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1223,3 +1223,3 @@ "err": {}

"fullTitle": "String Functions toSentenceWith",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1245,3 +1245,3 @@ "err": {}

"fullTitle": "String Functions uniqueStringWith",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1253,3 +1253,3 @@ "err": {}

"fullTitle": "Tree Functions isTraversable",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1296,3 +1296,3 @@ "err": {}

"fullTitle": "Tree Functions tree",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1304,3 +1304,3 @@ "err": {}

"fullTitle": "Tree Functions lookup",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1312,3 +1312,3 @@ "err": {}

"fullTitle": "Tree Functions lookup with path",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1334,3 +1334,3 @@ "err": {}

"fullTitle": "Tree Functions flattenTree",
"duration": 2,
"duration": 1,
"currentRetry": 0,

@@ -1356,3 +1356,3 @@ "err": {}

"fullTitle": "Tree Functions walkAsync",
"duration": 83,
"duration": 84,
"currentRetry": 0,

@@ -1364,3 +1364,3 @@ "err": {}

"fullTitle": "Tree Functions walkAsync with sync",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1372,3 +1372,3 @@ "err": {}

"fullTitle": "Tree Functions mapTreeLeaves",
"duration": 2,
"duration": 0,
"currentRetry": 0,

@@ -1387,3 +1387,3 @@ "err": {}

"fullTitle": "Tree Functions mapTree on JSON schema",
"duration": 2,
"duration": 3,
"currentRetry": 0,

@@ -1402,3 +1402,3 @@ "err": {}

"fullTitle": "Tree Functions walk post-order traversal",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1417,3 +1417,3 @@ "err": {}

"fullTitle": "Tree Functions walk halting with tree return",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1425,3 +1425,3 @@ "err": {}

"fullTitle": "Tree Functions walk should retain parent stack and indices",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1437,3 +1437,3 @@ "err": {}

"fullTitle": "Algebras map arrays",
"duration": 2,
"duration": 1,
"currentRetry": 0,

@@ -1445,3 +1445,3 @@ "err": {}

"fullTitle": "Algebras map plain objects",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1467,3 +1467,3 @@ "err": {}

"fullTitle": "Algebras deepMap plain objects with arrays with objects",
"duration": 2,
"duration": 1,
"currentRetry": 0,

@@ -1552,3 +1552,3 @@ "err": {}

"fullTitle": "Array Functions prefixes",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1560,3 +1560,3 @@ "err": {}

"fullTitle": "Array Functions encoder",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1582,3 +1582,3 @@ "err": {}

"fullTitle": "Array Functions chunkBy",
"duration": 1,
"duration": 4,
"currentRetry": 0,

@@ -1597,3 +1597,3 @@ "err": {}

"fullTitle": "Array Functions toggleElementBy",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1633,3 +1633,3 @@ "err": {}

"fullTitle": "Aspect Functions should support .after calls (`logs` aspect)",
"duration": 1,
"duration": 2,
"currentRetry": 0,

@@ -1641,3 +1641,3 @@ "err": {}

"fullTitle": "Aspect Functions should support .onError and before (`concurrency`, `errors`, and `status` aspects)",
"duration": 4,
"duration": 0,
"currentRetry": 0,

@@ -1656,3 +1656,3 @@ "err": {}

"fullTitle": "Aspect Functions should support single error",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1664,3 +1664,3 @@ "err": {}

"fullTitle": "Aspect Functions should support status and clearing status",
"duration": 523,
"duration": 524,
"currentRetry": 0,

@@ -1700,3 +1700,3 @@ "err": {}

"fullTitle": "Collections Functions compactMap",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1729,3 +1729,3 @@ "err": {}

"fullTitle": "Converted Functions Mutables extendOn",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1737,3 +1737,3 @@ "err": {}

"fullTitle": "Converted Functions Mutables defaultsOn",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1745,3 +1745,3 @@ "err": {}

"fullTitle": "Function Functions should debounceAsync",
"duration": 23,
"duration": 22,
"currentRetry": 0,

@@ -1753,3 +1753,3 @@ "err": {}

"fullTitle": "Function Functions should demonstrate failing with regular debounce",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1761,3 +1761,3 @@ "err": {}

"fullTitle": "Function Functions should flurry",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1769,3 +1769,3 @@ "err": {}

"fullTitle": "Function Functions mapArgs",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -1784,3 +1784,3 @@ "err": {}

"fullTitle": "Lang Functions throws",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1925,3 +1925,3 @@ "err": {}

"fullTitle": "Lens Functions Manipulation flip",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -1968,3 +1968,3 @@ "err": {}

"fullTitle": "Lens Functions Implicit Lens Prop sets",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -2039,3 +2039,3 @@ "err": {}

"fullTitle": "Lens Functions domLens focus",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2187,3 +2187,3 @@ "err": {}

"fullTitle": "Object Functions compactObject",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -2195,3 +2195,3 @@ "err": {}

"fullTitle": "Object Functions isEmptyObject",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2217,3 +2217,3 @@ "err": {}

"fullTitle": "Object Functions pickInto",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -2225,3 +2225,3 @@ "err": {}

"fullTitle": "Object Functions unwind",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -2233,3 +2233,3 @@ "err": {}

"fullTitle": "Object Functions unwindArray",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2255,3 +2255,3 @@ "err": {}

"fullTitle": "Object Functions renameProperty",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -2326,3 +2326,3 @@ "err": {}

"fullTitle": "Object Functions cascadePropKey",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2376,3 +2376,3 @@ "err": {}

"fullTitle": "Object Functions diffArray",
"duration": 2,
"duration": 1,
"currentRetry": 0,

@@ -2384,3 +2384,3 @@ "err": {}

"fullTitle": "Object Functions mergeAllArrays",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2392,3 +2392,3 @@ "err": {}

"fullTitle": "Object Functions invertByArray",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -2400,3 +2400,3 @@ "err": {}

"fullTitle": "Object Functions stampKey",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2429,3 +2429,3 @@ "err": {}

"fullTitle": "Object Functions omitEmpty",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2458,3 +2458,3 @@ "err": {}

"fullTitle": "Object Functions getWith",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2480,3 +2480,3 @@ "err": {}

"fullTitle": "Object Functions commonKeys",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2495,3 +2495,3 @@ "err": {}

"fullTitle": "Regexp Functions testRegex",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2538,3 +2538,3 @@ "err": {}

"fullTitle": "Posting Highlight Functions should get postings",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2546,3 +2546,3 @@ "err": {}

"fullTitle": "Posting Highlight Functions should get postings by word",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -2554,3 +2554,3 @@ "err": {}

"fullTitle": "Posting Highlight Functions should highlight",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2576,3 +2576,3 @@ "err": {}

"fullTitle": "Posting Highlight Functions should highlight from regexp",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2605,3 +2605,3 @@ "err": {}

"fullTitle": "String Functions concatStrings",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2613,3 +2613,3 @@ "err": {}

"fullTitle": "String Functions trimStrings",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -2628,3 +2628,3 @@ "err": {}

"fullTitle": "String Functions autoLabelOption",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2643,3 +2643,3 @@ "err": {}

"fullTitle": "String Functions toSentenceWith",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -2665,3 +2665,3 @@ "err": {}

"fullTitle": "String Functions uniqueStringWith",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2673,3 +2673,3 @@ "err": {}

"fullTitle": "Tree Functions isTraversable",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -2716,3 +2716,3 @@ "err": {}

"fullTitle": "Tree Functions tree",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2724,3 +2724,3 @@ "err": {}

"fullTitle": "Tree Functions lookup",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -2732,3 +2732,3 @@ "err": {}

"fullTitle": "Tree Functions lookup with path",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2754,3 +2754,3 @@ "err": {}

"fullTitle": "Tree Functions flattenTree",
"duration": 2,
"duration": 1,
"currentRetry": 0,

@@ -2776,3 +2776,3 @@ "err": {}

"fullTitle": "Tree Functions walkAsync",
"duration": 83,
"duration": 84,
"currentRetry": 0,

@@ -2784,3 +2784,3 @@ "err": {}

"fullTitle": "Tree Functions walkAsync with sync",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -2792,3 +2792,3 @@ "err": {}

"fullTitle": "Tree Functions mapTreeLeaves",
"duration": 2,
"duration": 0,
"currentRetry": 0,

@@ -2807,3 +2807,3 @@ "err": {}

"fullTitle": "Tree Functions mapTree on JSON schema",
"duration": 2,
"duration": 3,
"currentRetry": 0,

@@ -2822,3 +2822,3 @@ "err": {}

"fullTitle": "Tree Functions walk post-order traversal",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2837,3 +2837,3 @@ "err": {}

"fullTitle": "Tree Functions walk halting with tree return",
"duration": 0,
"duration": 1,
"currentRetry": 0,

@@ -2845,3 +2845,3 @@ "err": {}

"fullTitle": "Tree Functions walk should retain parent stack and indices",
"duration": 1,
"duration": 0,
"currentRetry": 0,

@@ -2848,0 +2848,0 @@ "err": {}

import _ from 'lodash/fp'
import chai from 'chai'
import * as f from '../src'
import * as F from '../src'
chai.expect()

@@ -16,11 +16,11 @@ const expect = chai.expect

it('getIn', () => {
expect(f.getIn(hero, 'name')).to.eql(_.get('name', hero))
expect(F.getIn(hero, 'name')).to.eql(_.get('name', hero))
const obj = { a: 1 }
expect(f.inversions.getIn(obj)('a')).to.equal(1)
expect(f.getIn(obj)('a')).to.equal(1)
expect(F.inversions.getIn(obj)('a')).to.equal(1)
expect(F.getIn(obj)('a')).to.equal(1)
})
it('pickIn', () => {
expect(f.pickIn(hero, 'name')).to.eql(_.pick('name', hero))
expect(f.pickIn(hero, ['name', 'father'])).to.eql(
expect(F.pickIn(hero, 'name')).to.eql(_.pick('name', hero))
expect(F.pickIn(hero, ['name', 'father'])).to.eql(
_.pick(['name', 'father'], hero)

@@ -32,3 +32,3 @@ )

let expectEql = (obj, name) =>
expect(f.includesIn(obj, name)).to.eql(_.includes(name, obj))
expect(F.includesIn(obj, name)).to.eql(_.includes(name, obj))
expectEql(hero, 'name')

@@ -43,7 +43,7 @@ expectEql(hero, 'Heracles')

let expectEql = (clone, obj) =>
expect(f.extendOn(clone, obj)).to.eql(_.extend(obj, clone))
expect(F.extendOn(clone, obj)).to.eql(_.extend(obj, clone))
expectEql(_.clone(hero), { name: 'Hercules' })
expectEql(_.clone(hero), { consort: 'Auge' })
expect(
f.extendOn(
F.extendOn(
{

@@ -67,7 +67,7 @@ a: 1,

let clone = _.clone(hero)
expect(f.defaultsOn(clone, { consort: 'Auge' })).to.eql(
expect(F.defaultsOn(clone, { consort: 'Auge' })).to.eql(
_.defaults({ consort: 'Auge' }, clone)
)
expect(
f.defaultsOn(
F.defaultsOn(
{

@@ -74,0 +74,0 @@ a: 2,

import chai from 'chai'
import * as f from '../src'
import * as F from '../src'
import _ from 'lodash/fp'

@@ -9,34 +9,34 @@ chai.expect()

it('throws', () => {
expect(() => f.throws(Error('oops'))).to.throw()
expect(() => F.throws(Error('oops'))).to.throw()
})
it('isNotNil', () => {
expect(f.isNotNil(null)).to.equal(false)
expect(f.isNotNil(undefined)).to.equal(false)
expect(f.isNotNil(0)).to.equal(true)
expect(f.isNotNil('')).to.equal(true)
expect(f.isNotNil([])).to.equal(true)
expect(F.isNotNil(null)).to.equal(false)
expect(F.isNotNil(undefined)).to.equal(false)
expect(F.isNotNil(0)).to.equal(true)
expect(F.isNotNil('')).to.equal(true)
expect(F.isNotNil([])).to.equal(true)
})
it('exists', () => {
expect(f.exists).to.equal(f.isNotNil)
expect(F.exists).to.equal(F.isNotNil)
})
it('isMultiple', () => {
expect(f.isMultiple([''])).to.equal(false)
expect(f.isMultiple(['', ''])).to.equal(true)
expect(f.isMultiple('a')).to.equal(false)
expect(f.isMultiple('asdf')).to.equal(true)
expect(f.isMultiple({ x: 1, y: 2 })).to.equal(false)
expect(f.isMultiple({ x: 1, y: 2, length: 2 })).to.equal(true)
expect(F.isMultiple([''])).to.equal(false)
expect(F.isMultiple(['', ''])).to.equal(true)
expect(F.isMultiple('a')).to.equal(false)
expect(F.isMultiple('asdf')).to.equal(true)
expect(F.isMultiple({ x: 1, y: 2 })).to.equal(false)
expect(F.isMultiple({ x: 1, y: 2, length: 2 })).to.equal(true)
})
it('append', () => {
expect(f.append('a', 'b')).to.equal('ba')
expect(f.append(1, 4)).to.equal(5)
expect(F.append('a', 'b')).to.equal('ba')
expect(F.append(1, 4)).to.equal(5)
})
it('isBlank', () => {
expect(f.isBlank(1)).to.equal(false)
expect(f.isBlank('asdf')).to.equal(false)
expect(f.isBlank({ a: 1 })).to.equal(false)
expect(f.isBlank([3, 4])).to.equal(false)
expect(f.isBlank(new Date())).to.equal(false)
expect(F.isBlank(1)).to.equal(false)
expect(F.isBlank('asdf')).to.equal(false)
expect(F.isBlank({ a: 1 })).to.equal(false)
expect(F.isBlank([3, 4])).to.equal(false)
expect(F.isBlank(new Date())).to.equal(false)
expect(
f.isBlank({
F.isBlank({
a: 1,

@@ -46,14 +46,14 @@ b: 'as',

).to.equal(false)
expect(f.isBlank(null)).to.equal(true)
expect(f.isBlank(undefined)).to.equal(true)
expect(f.isBlank('')).to.equal(true)
expect(f.isBlank([])).to.equal(true)
expect(f.isBlank({})).to.equal(true)
expect(F.isBlank(null)).to.equal(true)
expect(F.isBlank(undefined)).to.equal(true)
expect(F.isBlank('')).to.equal(true)
expect(F.isBlank([])).to.equal(true)
expect(F.isBlank({})).to.equal(true)
})
it('should isBlankDeep', () => {
expect(f.isBlankDeep(_.every)(1)).to.equal(false)
expect(f.isBlankDeep(_.every)(false)).to.equal(false)
expect(f.isBlankDeep(_.every)('')).to.equal(true)
expect(F.isBlankDeep(_.every)(1)).to.equal(false)
expect(F.isBlankDeep(_.every)(false)).to.equal(false)
expect(F.isBlankDeep(_.every)('')).to.equal(true)
expect(
f.isBlankDeep(_.every)({
F.isBlankDeep(_.every)({
a: 1,

@@ -64,3 +64,3 @@ b: 'as',

expect(
f.isBlankDeep(_.every)({
F.isBlankDeep(_.every)({
a: null,

@@ -67,0 +67,0 @@ b: '',

import chai from 'chai'
import * as f from '../src'
import * as F from '../src'
import _ from 'lodash/fp'

@@ -10,3 +10,3 @@ chai.expect()

it('should handle functions', () => {
let clamp5 = f.ifElse(
let clamp5 = F.ifElse(
x => x > 5,

@@ -21,3 +21,3 @@ () => 5,

it('should handle passing boolean conditions', () => {
let fn = f.ifElse(
let fn = F.ifElse(
true,

@@ -30,3 +30,3 @@ x => `success ${x}`,

it('should handle fancy shorthand', () => {
let fancyShortHand = f.ifElse({ a: 1 }, 'Has a1', () => 'No a1')
let fancyShortHand = F.ifElse({ a: 1 }, 'Has a1', () => 'No a1')
expect(fancyShortHand({ a: 1 })).to.equal('Has a1')

@@ -37,3 +37,3 @@ expect(fancyShortHand({ a: 2 })).to.equal('No a1')

expect(
f.ifElse(
F.ifElse(
x => x % 2,

@@ -48,3 +48,3 @@ x => `${x} is odd!`,

it('when', () => {
let clamp5 = f.when(
let clamp5 = F.when(
x => x > 5,

@@ -59,5 +59,5 @@ () => 5

expect(clamp5(13)).to.equal(5)
let convertIndex = f.when(falseAttribute.oneBased, _.add(1))
let undefinedConvertIndex = f.when(undefinedAttribute.oneBased, _.add(1))
let nullConvertIndex = f.when(nullAttribute.oneBased, _.add(1))
let convertIndex = F.when(falseAttribute.oneBased, _.add(1))
let undefinedConvertIndex = F.when(undefinedAttribute.oneBased, _.add(1))
let nullConvertIndex = F.when(nullAttribute.oneBased, _.add(1))
expect(_.map(convertIndex, [0, 1, 2, 3])).to.deep.equal([0, 1, 2, 3])

@@ -73,3 +73,3 @@ expect(_.map(undefinedConvertIndex, [0, 1, 2, 3])).to.deep.equal([

it('unless', () => {
let clamp5 = f.unless(
let clamp5 = F.unless(
x => x < 5,

@@ -83,3 +83,3 @@ () => 5

it('whenExists', () => {
let fn = f.whenExists(5)
let fn = F.whenExists(5)
expect(fn(3)).to.equal(5)

@@ -90,3 +90,3 @@ expect(fn(null)).to.equal(null)

it('whenTruthy', () => {
let fn = f.whenTruthy(5)
let fn = F.whenTruthy(5)
expect(fn(3)).to.equal(5)

@@ -93,0 +93,0 @@ expect(fn(null)).to.equal(null)

import chai from 'chai'
import * as f from '../src/regex'
import * as F from '../src/regex'
chai.expect()

@@ -8,4 +8,4 @@ const expect = chai.expect

it('testRegex', () => {
expect(f.testRegex(/smart/i)('SmartProcure')).to.equal(true)
expect(f.testRegex(/smart/)('SmartProcure')).to.equal(false)
expect(F.testRegex(/smart/i)('SmartProcure')).to.equal(true)
expect(F.testRegex(/smart/)('SmartProcure')).to.equal(false)
})

@@ -17,3 +17,3 @@

expect(f.makeRegex(options)(reText)).to.deep.equal(RegExp(reText, options))
expect(F.makeRegex(options)(reText)).to.deep.equal(RegExp(reText, options))
})

@@ -27,3 +27,3 @@

expect(f.makeAndTest(options)(reText)(text)).to.deep.equal(regex.test(text))
expect(F.makeAndTest(options)(reText)(text)).to.deep.equal(regex.test(text))
})

@@ -34,3 +34,3 @@

const text = 'Here is some text to test'
const match = f.matchAnyWord(reText)
const match = F.matchAnyWord(reText)

@@ -43,3 +43,3 @@ expect(match(text)).to.equal(true)

const text = 'Here is some to test'
const match = f.matchAllWords(reText)
const match = F.matchAllWords(reText)

@@ -52,3 +52,3 @@ expect(match(text)).to.equal(false)

const text = `1 22 333 a bb ccc 4444`
const matches = f.allMatches(re, text)
const matches = F.allMatches(re, text)
expect(matches).to.deep.equal([

@@ -65,3 +65,3 @@ { text: '1', start: 0, end: 1 },

it('should get postings', () => {
var result = f.postings(RegExp('p', 'gi'), 'pretty please')
var result = F.postings(RegExp('p', 'gi'), 'pretty please')
expect(result).to.deep.equal([

@@ -73,3 +73,3 @@ [0, 1],

it('should get postings by word', () => {
var result = f.postingsForWords('pret pr t ', 'pretty prease')
var result = F.postingsForWords('pret pr t ', 'pretty prease')
expect(result).to.deep.equal([

@@ -92,6 +92,6 @@ [[0, 4]],

let input = 'pretty please'
let postings = f.postings(RegExp('p', 'gi'), input)
let postings = F.postings(RegExp('p', 'gi'), input)
let expected =
'<span class="highlight">p</span>retty <span class="highlight">p</span>lease'
expect(f.highlightFromPostings(start, end, postings, input)).to.equal(
expect(F.highlightFromPostings(start, end, postings, input)).to.equal(
expected

@@ -105,3 +105,3 @@ )

expect(
f.highlightFromPostings(
F.highlightFromPostings(
start,

@@ -122,3 +122,3 @@ end,

'<span class="highlight">pr</span>etty <span class="highlight">pl</span>ease'
expect(f.highlight(start, end, pattern, input)).to.deep.equal(expected)
expect(F.highlight(start, end, pattern, input)).to.deep.equal(expected)
})

@@ -130,4 +130,4 @@ it('should highlight from regexp', () => {

'<span class="highlight">pr</span>etty <span class="highlight">pl</span>ease nope'
expect(f.highlight(start, end, pattern, input)).to.deep.equal(expected)
expect(F.highlight(start, end, pattern, input)).to.deep.equal(expected)
})
})
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc