ramda-adjunct 5.0.1 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/README.md +2 -2
  3. package/dist/RA.node.js +5627 -5723
  4. package/dist/RA.node.min.js +1 -1
  5. package/dist/RA.web.js +5634 -5730
  6. package/dist/RA.web.min.js +1 -1
  7. package/dist/RA.web.standalone.js +11774 -11534
  8. package/dist/RA.web.standalone.min.js +1 -1
  9. package/es/async.js +4 -4
  10. package/es/copyKeys.js +2 -3
  11. package/es/index.js +0 -1
  12. package/es/internal/ap.js +1 -1
  13. package/es/internal/ponyfills/Math.trunc.js +0 -2
  14. package/es/internal/ponyfills/Number.isFinite.js +0 -2
  15. package/es/internal/ponyfills/Number.isNaN.js +0 -2
  16. package/es/internal/ponyfills/Promise.any.js +1 -1
  17. package/es/internal/ponyfills/String.padEnd.js +0 -1
  18. package/es/internal/ponyfills/String.padStart.js +0 -1
  19. package/es/internal/ponyfills/String.repeat.js +1 -1
  20. package/es/isArrayLike.js +1 -2
  21. package/es/isMap.js +3 -3
  22. package/es/isNotAsyncFunction.js +1 -2
  23. package/es/isNotFunction.js +1 -2
  24. package/es/isNotGeneratorFunction.js +1 -2
  25. package/es/isNotObj.js +1 -2
  26. package/es/isNotObjLike.js +1 -2
  27. package/es/isNotPlainObj.js +1 -2
  28. package/es/isObj.js +1 -2
  29. package/es/isObjLike.js +1 -2
  30. package/es/isPlainObj.js +1 -2
  31. package/es/isSentinelValue.js +1 -1
  32. package/es/isValidDate.js +1 -2
  33. package/es/lensTraverse.js +1 -3
  34. package/es/mergeProp.js +2 -2
  35. package/es/nand.js +1 -2
  36. package/es/neither.js +1 -2
  37. package/es/nor.js +1 -2
  38. package/es/notBoth.js +1 -2
  39. package/es/omitBy.js +1 -2
  40. package/es/pathNotEq.js +1 -2
  41. package/es/reduceP.js +0 -1
  42. package/es/reduceRightP.js +0 -1
  43. package/es/renameKey.js +1 -2
  44. package/es/resolveP.js +1 -2
  45. package/es/seq.js +0 -2
  46. package/es/sortByProps.js +1 -1
  47. package/es/stubUndefined.js +1 -2
  48. package/es/toInteger32.js +1 -1
  49. package/es/toUinteger32.js +0 -1
  50. package/lib/anyP.js +1 -2
  51. package/lib/async.js +4 -4
  52. package/lib/copyKeys.js +2 -4
  53. package/lib/fantasy-land/Identity.js +1 -2
  54. package/lib/fantasy-land/traits.js +1 -2
  55. package/lib/index.js +2 -4
  56. package/lib/internal/ap.js +2 -3
  57. package/lib/internal/ponyfills/Math.trunc.js +0 -2
  58. package/lib/internal/ponyfills/Number.isFinite.js +0 -1
  59. package/lib/internal/ponyfills/Number.isNaN.js +0 -1
  60. package/lib/internal/ponyfills/Promise.any.js +1 -1
  61. package/lib/internal/ponyfills/String.padEnd.js +0 -1
  62. package/lib/internal/ponyfills/String.padStart.js +0 -1
  63. package/lib/internal/ponyfills/String.repeat.js +1 -1
  64. package/lib/isArrayLike.js +1 -2
  65. package/lib/isMap.js +3 -3
  66. package/lib/isNotAsyncFunction.js +1 -2
  67. package/lib/isNotFunction.js +1 -2
  68. package/lib/isNotGeneratorFunction.js +1 -2
  69. package/lib/isNotObj.js +1 -2
  70. package/lib/isNotObjLike.js +1 -2
  71. package/lib/isNotPlainObj.js +1 -2
  72. package/lib/isObj.js +1 -2
  73. package/lib/isObjLike.js +1 -2
  74. package/lib/isPlainObj.js +1 -2
  75. package/lib/isSentinelValue.js +1 -1
  76. package/lib/isValidDate.js +1 -2
  77. package/lib/lensTraverse.js +1 -2
  78. package/lib/mergeProp.js +2 -2
  79. package/lib/nand.js +1 -1
  80. package/lib/neither.js +1 -2
  81. package/lib/nor.js +1 -1
  82. package/lib/notBoth.js +1 -2
  83. package/lib/omitBy.js +1 -2
  84. package/lib/pathNotEq.js +1 -2
  85. package/lib/reduceP.js +0 -1
  86. package/lib/reduceRightP.js +0 -1
  87. package/lib/renameKey.js +1 -3
  88. package/lib/resolveP.js +1 -2
  89. package/lib/seq.js +0 -2
  90. package/lib/sortByProps.js +1 -1
  91. package/lib/stubUndefined.js +1 -1
  92. package/lib/toInteger32.js +1 -1
  93. package/lib/toUinteger32.js +0 -1
  94. package/package.json +63 -86
  95. package/types/index.d.ts +12 -26
  96. package/es/renameKeys.js +0 -39
  97. package/lib/renameKeys.js +0 -44
@@ -1 +1 @@
1
- !function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("ramda")):"function"==typeof define&&define.amd?define(["ramda"],r):"object"==typeof exports?exports.RA=r(require("ramda")):t.RA=r(t.ramda)}(global,(t=>(()=>{"use strict";var r={871:r=>{r.exports=t}},n={};function e(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return r[t](i,i.exports,e),i.exports}e.d=(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{e.r(o),e.d(o,{Identity:()=>xo,Y:()=>Ur,allEqual:()=>Qn,allEqualTo:()=>ae,allIdentical:()=>oe,allIdenticalTo:()=>ue,allP:()=>Sr,allSettledP:()=>_r,allUnique:()=>Se,anyP:()=>un,appendFlipped:()=>zn,argsPass:()=>Jo,async:()=>zr,cata:()=>br,catchP:()=>Ar,ceil:()=>Ho,compact:()=>Vn,concatAll:()=>En,concatRight:()=>In,copyKeys:()=>He,curryRight:()=>Nr,curryRightN:()=>gr,defaultWhen:()=>hn,delayP:()=>Ir,dispatch:()=>Vr,divideNum:()=>Qo,dropArgs:()=>Xo,ensureArray:()=>jn,escapeRegExp:()=>si,filterIndexed:()=>gn,findOr:()=>We,firstP:()=>un,flattenDepth:()=>me,flattenPath:()=>ao,flattenProp:()=>so,floor:()=>Fe,fnull:()=>vn,inRange:()=>Co,included:()=>Gn,invoke:()=>Ce,invokeArgs:()=>Be,isArray:()=>y,isArrayLike:()=>k,isAsyncFunction:()=>l,isBigInt:()=>dt,isBlank:()=>Xt,isBoolean:()=>v,isDate:()=>L,isEmptyArray:()=>m,isEmptyString:()=>S,isError:()=>zt,isEven:()=>Pt,isFalse:()=>qt,isFalsy:()=>xt,isFinite:()=>at,isFloat:()=>gt,isFunction:()=>f,isGeneratorFunction:()=>s,isIndexed:()=>Vt,isInt32:()=>mt,isInteger:()=>yt,isInteger32:()=>mt,isInvalidDate:()=>J,isIterable:()=>p,isMap:()=>ot,isNaN:()=>G,isNaturalNumber:()=>Gt,isNegative:()=>H,isNegativeZero:()=>tt,isNilOrEmpty:()=>g,isNonEmptyArray:()=>b,isNonEmptyString:()=>E,isNonNegative:()=>et,isNonPositive:()=>nt,isNotArray:()=>h,isNotArrayLike:()=>q,isNotAsyncFunction:()=>x,isNotBoolean:()=>d,isNotDate:()=>$,isNotFinite:()=>st,isNotFloat:()=>Nt,isNotFunction:()=>M,isNotGeneratorFunction:()=>T,isNotInteger:()=>vt,isNotMap:()=>it,isNotNaN:()=>K,isNotNil:()=>a,isNotNilOrEmpty:()=>rt,isNotNull:()=>c,isNotNumber:()=>X,isNotObj:()=>O,isNotObjLike:()=>R,isNotObject:()=>O,isNotObjectLike:()=>R,isNotPair:()=>Ot,isNotPlainObj:()=>C,isNotPlainObject:()=>C,isNotPrimitive:()=>Zt,isNotRegExp:()=>Ft,isNotSet:()=>_t,isNotString:()=>A,isNotUndefined:()=>i,isNotValidDate:()=>J,isNotValidNumber:()=>At,isNull:()=>u,isNumber:()=>D,isObj:()=>j,isObjLike:()=>F,isObject:()=>j,isObjectLike:()=>F,isOdd:()=>wt,isPair:()=>jt,isPlainObj:()=>B,isPlainObject:()=>B,isPositive:()=>Y,isPositiveZero:()=>Q,isPrimitive:()=>Kt,isPromise:()=>It,isPrototypeOf:()=>po,isRegExp:()=>Mt,isSafeInteger:()=>Dt,isSentinelValue:()=>Jt,isSet:()=>Rt,isSparseArray:()=>Ut,isString:()=>N,isSymbol:()=>Bt,isThenable:()=>Et,isTrue:()=>kt,isTruthy:()=>Tt,isUint32:()=>bt,isUinteger32:()=>bt,isUndefined:()=>n,isValidDate:()=>Z,isValidNumber:()=>St,lastP:()=>mn,lengthEq:()=>sn,lengthGt:()=>Jn,lengthGte:()=>ln,lengthLt:()=>Xn,lengthLte:()=>Yn,lengthNotEq:()=>Hn,lensEq:()=>mo,lensIso:()=>_o,lensNotEq:()=>ho,lensNotSatisfy:()=>vo,lensSatisfies:()=>bo,lensTraverse:()=>Mo,liftF:()=>hr,liftFN:()=>mr,list:()=>Pn,mapIndexed:()=>bn,mergePath:()=>ro,mergePaths:()=>to,mergeProp:()=>no,mergeProps:()=>Qe,move:()=>Zn,nand:()=>Vo,neither:()=>zo,noneP:()=>jr,nonePass:()=>Zo,noop:()=>rr,nor:()=>Go,notAllPass:()=>Ko,notAllUnique:()=>Ae,notBoth:()=>Do,notEqual:()=>Lo,omitBy:()=>eo,omitIndexes:()=>Dn,overlaps:()=>$o,padCharsEnd:()=>qi,padCharsStart:()=>Oi,padEnd:()=>Ti,padStart:()=>xi,pathNotEq:()=>Wo,pathOrLazy:()=>oo,paths:()=>Le,pickIndexes:()=>wn,propNotEq:()=>Uo,rangeStep:()=>_e,reduceIndexed:()=>dn,reduceP:()=>xn,reduceRightP:()=>Un,rejectP:()=>wr,renameKey:()=>Ge,renameKeyWith:()=>Ke,renameKeys:()=>De,renameKeysWith:()=>$e,repeatStr:()=>ee,replaceAll:()=>mi,resolveP:()=>Pr,round:()=>Yo,seq:()=>Wr,sequencing:()=>Wr,sign:()=>ii,skipTake:()=>Me,sliceFrom:()=>Wn,sliceTo:()=>Bn,sortByPaths:()=>Te,sortByProp:()=>Ie,sortByProps:()=>Oe,spreadPath:()=>uo,spreadProp:()=>co,stubArray:()=>tr,stubNull:()=>Yt,stubObj:()=>Ht,stubObject:()=>Ht,stubString:()=>Qt,stubUndefined:()=>r,subtractNum:()=>ui,thenCatchP:()=>kr,toArray:()=>Ne,toInt32:()=>pt,toInteger32:()=>pt,toNumber:()=>ai,toUint32:()=>ht,toUinteger32:()=>ht,trimCharsEnd:()=>Si,trimCharsStart:()=>Ai,trimEnd:()=>Ni,trimLeft:()=>vi,trimRight:()=>Ni,trimStart:()=>vi,trunc:()=>ni,unzipObjWith:()=>lo,viewOr:()=>io,weave:()=>vr,weaveLazy:()=>dr,zipObjWith:()=>fo});var t=e(871);const r=(0,t.always)(void 0);const n=(0,t.equals)(r());const i=(0,t.complement)(n);const u=(0,t.equals)(null);const c=(0,t.complement)(u);const a=(0,t.complement)(t.isNil);const s=(0,t.curryN)(1,(0,t.pipe)(t.type,(0,t.identical)("GeneratorFunction")));const l=(0,t.curryN)(1,(0,t.pipe)(t.type,(0,t.identical)("AsyncFunction")));const f=(0,t.anyPass)([(0,t.pipe)(t.type,(0,t.identical)("Function")),s,l]);const y=(0,t.curryN)(1,f(Array.isArray)?Array.isArray:(0,t.pipe)(t.type,(0,t.identical)("Array")));const p=(0,t.curryN)(1,(function(r){return"undefined"!=typeof Symbol&&((0,t.hasIn)(Symbol.iterator,Object(r))&&f(r[Symbol.iterator]))}));const m=(0,t.both)(y,t.isEmpty);const h=(0,t.complement)(y);const b=(0,t.both)(y,t.isNotEmpty);const v=(0,t.curryN)(1,(0,t.pipe)(t.type,(0,t.identical)("Boolean")));const d=(0,t.complement)(v);const g=(0,t.curryN)(1,(0,t.either)(t.isNil,t.isEmpty));const N=(0,t.curryN)(1,(0,t.pipe)(t.type,(0,t.identical)("String")));const S=(0,t.equals)("");const A=(0,t.complement)(N);function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}const P=function(t){return"object"===w(t)};const j=(0,t.curryN)(1,(0,t.both)(c,(0,t.either)(P,f)));const O=(0,t.complement)(j);const E=(0,t.allPass)([N,O,t.isNotEmpty]);function I(t){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(t)}const k=(0,t.curryN)(1,(function(r){return!!y(r)||!!r&&(!N(r)&&("object"===I(r)&&(1===r.nodeType?!!r.length:0===r.length||r.length>0&&((0,t.has)(0,r)&&(0,t.has)(r.length-1,r)))))}));const q=(0,t.complement)(k);const T=(0,t.complement)(s);const x=(0,t.complement)(l);const M=(0,t.complement)(f);const F=(0,t.curryN)(1,(0,t.both)(c,P));const R=(0,t.complement)(F);var _=(0,t.pipe)(t.type,(0,t.identical)("Object")),U=(0,t.pipe)(t.toString,(0,t.equals)((0,t.toString)(Object))),W=(0,t.pathSatisfies)((0,t.both)(f,U),["constructor"]);const B=(0,t.curryN)(1,(function(t){if(!F(t)||!_(t))return!1;var r=Object.getPrototypeOf(t);return!!u(r)||W(r)}));const C=(0,t.complement)(B);const L=(0,t.curryN)(1,(0,t.pipe)(t.type,(0,t.identical)("Date")));const $=(0,t.complement)(L);const D=(0,t.curryN)(1,(0,t.pipe)(t.type,(0,t.identical)("Number")));const V=(0,t.both)(D,isNaN);var z=(0,t.curryN)(1,V);const G=f(Number.isNaN)?(0,t.curryN)(1,Number.isNaN):z;const K=(0,t.complement)(G);const Z=(0,t.curryN)(1,(0,t.both)(L,(0,t.pipe)((0,t.invoker)(0,"getTime"),K)));const J=(0,t.complement)(Z);const X=(0,t.complement)(D);const Y=(0,t.both)(D,(0,t.lt)(0));const H=(0,t.curryN)(1,(0,t.both)(D,(0,t.gt)(0)));const Q=(0,t.curryN)(1,(0,t.identical)(0));const tt=(0,t.curryN)(1,(0,t.identical)(-0));const rt=(0,t.complement)(g);const nt=(0,t.curryN)(1,(0,t.both)(D,(0,t.flip)(t.lte)(0)));const et=(0,t.curryN)(1,(0,t.both)(D,(0,t.flip)(t.gte)(0)));const ot=(0,t.curryN)(1,(0,t.pipe)(t.type,(0,t.identical)("Map")));const it=(0,t.complement)(ot);const ut=(0,t.both)(D,isFinite);var ct=(0,t.curryN)(1,ut);const at=f(Number.isFinite)?(0,t.curryN)(1,(0,t.bind)(Number.isFinite,Number)):ct;const st=(0,t.complement)(at);const lt=(0,t.both)(at,(0,t.converge)(t.equals,[Math.floor,t.identity]));var ft=(0,t.curryN)(1,lt);const yt=f(Number.isInteger)?(0,t.curryN)(1,(0,t.bind)(Number.isInteger,Number)):ft;const pt=(0,t.curryN)(1,(function(t){return t>>0}));const mt=(0,t.curryN)(1,(function(t){return pt(t)===t}));const ht=(0,t.curryN)(1,(function(t){return t>>>0}));const bt=(0,t.curryN)(1,(function(t){return ht(t)===t}));const vt=(0,t.complement)(yt);const dt=(0,t.curryN)(1,(0,t.pipe)(t.type,(0,t.identical)("BigInt")));const gt=(0,t.both)(at,(0,t.complement)(yt));const Nt=(0,t.curryN)(1,(0,t.complement)(gt));const St=(0,t.curryN)(1,(0,t.either)(yt,gt));const At=(0,t.complement)(St);const wt=(0,t.curryN)(1,(0,t.both)(yt,(0,t.pipe)((0,t.flip)(t.modulo)(2),(0,t.complement)(t.equals)(0))));const Pt=(0,t.curryN)(1,(0,t.both)(yt,(0,t.complement)(wt)));const jt=(0,t.curryN)(1,(0,t.both)(y,(0,t.pipe)(t.length,(0,t.equals)(2))));const Ot=(0,t.complement)(jt);const Et=(0,t.pathSatisfies)(f,["then"]);const It=(0,t.curryN)(1,(0,t.both)(j,(0,t.pipe)(t.toString,(0,t.equals)("[object Promise]"))));const kt=(0,t.curryN)(1,(0,t.identical)(!0));const qt=(0,t.curryN)(1,(0,t.identical)(!1));const Tt=(0,t.curryN)(1,Boolean);const xt=(0,t.complement)(Tt);const Mt=(0,t.curryN)(1,(0,t.pipe)(t.type,(0,t.identical)("RegExp")));const Ft=(0,t.complement)(Mt);const Rt=(0,t.curryN)(1,(0,t.pipe)(t.type,(0,t.identical)("Set")));const _t=(0,t.complement)(Rt);const Ut=(0,t.both)(y,(0,t.converge)((0,t.complement)(t.identical),[(0,t.pipe)(t.values,t.length),t.length]));function Wt(t){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wt(t)}const Bt=(0,t.curryN)(1,(function(r){return"symbol"===Wt(r)||"object"===Wt(r)&&"Symbol"===(0,t.type)(r)}));const Ct=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;const Lt=(0,t.both)(yt,(function(t){return Math.abs(t)<=Ct}));var $t=(0,t.curryN)(1,Lt);const Dt=f(Number.isSafeInteger)?(0,t.curryN)(1,(0,t.bind)(Number.isSafeInteger,Number)):$t;const Vt=(0,t.curryN)(1,(0,t.either)(N,y));const zt=(0,t.curryN)(1,(0,t.pipe)(t.type,(0,t.identical)("Error")));const Gt=(0,t.curryN)(1,(0,t.both)(yt,(0,t.complement)(H)));const Kt=(0,t.both)(O,(0,t.anyPass)([N,D,dt,v,n,u,Bt]));const Zt=(0,t.curryN)(1,(0,t.complement)(Kt));const Jt=(0,t.curryN)(1,(function(t){return mt(t)&&0==~t}));const Xt=(0,t.anyPass)([qt,t.isNil,t.isEmpty,(0,t.test)(/^\s+$/gm)]);const Yt=(0,t.always)(null);const Ht=function(){return{}};const Qt=(0,t.always)("");const tr=function(){return[]};const rr=(0,t.always)(r());var nr="fantasy-land/equals",er="fantasy-land/lte",or="fantasy-land/concat",ir="fantasy-land/empty",ur="fantasy-land/map",cr="fantasy-land/contramap",ar="fantasy-land/ap",sr="fantasy-land/of",lr="fantasy-land/chain",fr=(0,t.either)((0,t.pathSatisfies)(f,["map"]),(0,t.pathSatisfies)(f,[ur])),yr=(0,t.both)(fr,(0,t.either)((0,t.pathSatisfies)(f,["ap"]),(0,t.pathSatisfies)(f,[ar])));const pr=(0,t.curryN)(2,(function(r,n){if(!yr(r)||!yr(n))return(0,t.ap)(r,n);try{return r.ap(n)}catch(t){return n.ap(r)}}));const mr=(0,t.curry)((function(r,n){var e=(0,t.curryN)(r,n);return(0,t.curryN)(r,(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var i=(0,t.map)(e,(0,t.head)(n)),u=(0,t.slice)(1,1/0,n);return(0,t.reduce)(pr,i,u)}))}));const hr=(0,t.curryN)(1,(function(t){return mr(t.length,t)}));const br=(0,t.curry)((function(t,r,n){if(f(n.matchWith))return n.matchWith({Ok:function(t){var n=t.value;return r(n)},Error:function(r){var n=r.value;return t(n)},Just:function(t){var n=t.value;return r(n)},Nothing:function(){return t(void 0)},Success:function(t){var n=t.value;return r(n)},Failure:function(r){var n=r.value;return t(n)}});if(f(n.cata))return n.cata(t,r);if(f(n.getOrElse)){var e="RA.cata".concat(Math.random()),o=n.getOrElse(e);return o===e?t():r(o)}return n.either(t,r)}));const vr=(0,t.curryN)(2,(function(r,n){return(0,t.curryN)(r.length,(function(){return r.apply(void 0,arguments).run(n)}))}));const dr=(0,t.curryN)(2,(function(r,n){return(0,t.curryN)(r.length,(function(){return r.apply(void 0,arguments).run(n())}))}));const gr=(0,t.curryN)(2,(function(r,n){return(0,t.curryN)(r,(function(){for(var r=arguments.length,e=new Array(r),o=0;o<r;o++)e[o]=arguments[o];return n.apply(this,(0,t.reverse)(e))}))}));const Nr=(0,t.converge)(gr,[t.length,t.identity]);const Sr=(0,t.curryN)(1,(0,t.bind)(Promise.all,Promise));const Ar=(0,t.invoker)(1,"catch");const wr=(0,t.bind)(Promise.reject,Promise);const Pr=(0,t.bind)(Promise.resolve,Promise);const jr=(0,t.curryN)(1,(0,t.pipe)((0,t.map)(Pr),(0,t.map)((function(t){return t.then(wr,Pr)})),Sr));var Or=(0,t.curry)((function(r,n){var e,o;return yt(n)&&et(n)?e=n:(e=(0,t.propOr)(0,"timeout",n),o=(0,t.propOr)(o,"value",n)),new Promise((function(){for(var n=arguments.length,i=new Array(n),u=0;u<n;u++)i[u]=arguments[u];var c=r(i);setTimeout((0,t.partial)(c,[o]),e)}))})),Er=Or((0,t.nth)(0));Er.reject=Or((0,t.nth)(1));const Ir=Er;const kr=(0,t.invoker)(2,"then");function qr(t){return function(t){if(Array.isArray(t))return Tr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return Tr(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tr(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tr(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}var xr=function(t){return{status:"fulfilled",value:t}},Mr=function(t){return{status:"rejected",reason:t}};const Fr=function(r){var n=(0,t.map)((function(t){return Pr(t).then(xr).catch(Mr)}),qr(r));return Sr(n)};var Rr=(0,t.curryN)(1,Fr);const _r=f(Promise.allSettled)?(0,t.curryN)(1,(0,t.bind)(Promise.allSettled,Promise)):Rr;const Ur=(0,t.curryN)(1,(function(t){return(r=function(r){return t((function(t){return r(r)(t)}))})(r);var r}));const Wr=(0,t.curry)((function(r,n){return(0,t.tap)((function(n){return(0,t.map)((function(t){return t(n)}))(r)}))(n)}));function Br(t){return function(t){if(Array.isArray(t))return Cr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return Cr(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cr(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cr(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}var Lr=(0,t.comparator)((function(t,r){return t.length>r.length})),$r=(0,t.pipe)((0,t.sort)(Lr),t.head,(0,t.prop)("length")),Dr=(0,t.curry)((function(r,n,e){var o=e.apply(void 0,Br(r));return a(o)?(0,t.reduced)(o):n}));const Vr=(0,t.ifElse)(b,(function(r){var n=$r(r);return(0,t.curryN)(n,(function(){for(var n=arguments.length,e=new Array(n),o=0;o<n;o++)e[o]=arguments[o];return(0,t.reduce)(Dr(e),void 0,r)}))}),r);const zr=(0,t.curryN)(1,(function(r){function n(){var n=(0,t.bind)(r,this).apply(void 0,arguments);try{return function t(r){var e=Pr(r.value);return r.done?e:e.then((function(r){return t(n.next(r))}),(function(r){return t(n.throw(r))}))}(n.next())}catch(t){return wr(t)}}return r.length>0?(0,t.curryN)(r.length,n):n}));function Gr(t){return Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gr(t)}function Kr(t){return function(t){if(Array.isArray(t))return Zr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return Zr(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zr(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zr(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}function Jr(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,Xr(e.key),e)}}function Xr(t){var r=function(t,r){if("object"!=Gr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,r||"default");if("object"!=Gr(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Gr(r)?r:r+""}function Yr(t,r,n){return r=rn(r),function(t,r){if(r&&("object"==Gr(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Qr()?Reflect.construct(r,n||[],rn(t).constructor):r.apply(t,n))}function Hr(t){var r="function"==typeof Map?new Map:void 0;return Hr=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(r){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return function(t,r,n){if(Qr())return Reflect.construct.apply(null,arguments);var e=[null];e.push.apply(e,r);var o=new(t.bind.apply(t,e));return n&&tn(o,n.prototype),o}(t,arguments,rn(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),tn(n,t)},Hr(t)}function Qr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Qr=function(){return!!t})()}function tn(t,r){return tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},tn(t,r)}function rn(t){return rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rn(t)}var nn=function(t){function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),(t=Yr(this,r,[e])).errors=n,t}return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&tn(t,r)}(r,t),n=r,e&&Jr(n.prototype,e),o&&Jr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e,o}(Hr(Error));const en=function(r){var n=[];return new Promise((function(e,o){var i=function(t){n.push(t),n.length===r.length&&o(new nn(n))};(0,t.map)((function(t){return Pr(t).then(e).catch(i)}),Kr(r))}))};var on=(0,t.curryN)(1,en);const un=f(Promise.any)?(0,t.curryN)(1,(0,t.bind)(Promise.any,Promise)):on;var cn=(0,t.curry)((function(r,n,e){return(0,t.compose)(r(n),t.length)(e)}));const an=cn;const sn=an(t.equals);const ln=an((0,t.flip)(t.gte));function fn(t){return function(t){if(Array.isArray(t))return yn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return yn(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yn(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yn(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}var pn=(0,t.curryN)(1,(function(r){var n=[],e=[],o=(0,t.bind)(n.push,n),i=(0,t.bind)(e.push,e),u=(0,t.map)((function(t){return Pr(t).then(o).catch(i)}),fn(r));return Sr(u).then((function(){if(!sn(0,n)||!sn(0,e))return ln(1,n)?(0,t.last)(n):wr(e)}))}));const mn=pn;const hn=(0,t.curry)((function(t,r,n){return t(n)?r:n}));const bn=(0,t.addIndex)(t.map);const vn=(0,t.curry)((function(r,n){return(0,t.curryN)(r.length,(function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var u=bn((function(r,e){return hn(t.isNil,n[e],r)}),o);return(0,t.apply)(r,u)}))}));const dn=(0,t.addIndex)(t.reduce);const gn=(0,t.addIndex)(t.filter);var Nn=(0,t.addIndex)(t.filter),Sn=(0,t.curry)((function(r,n,e){return(0,t.includes)(e,r)})),An=(0,t.curry)((function(t,r){return Nn(Sn(t),r)}));const wn=An;const Pn=(0,t.unapply)(t.identity);const jn=(0,t.when)(h,(0,t.of)(Array));var On={concat:t.identity};const En=(0,t.pipe)((0,t.reduce)(t.concat,On),(0,t.when)((0,t.identical)(On),r));const In=(0,t.flip)(t.concat);function kn(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var e,o,i,u,c=[],a=!0,s=!1;try{if(i=(n=n.call(t)).next,0===r){if(Object(n)!==n)return;a=!1}else for(;!(a=(e=i.call(n)).done)&&(c.push(e.value),c.length!==r);a=!0);}catch(t){s=!0,o=t}finally{try{if(!a&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(s)throw o}}return c}}(t,r)||function(t,r){if(t){if("string"==typeof t)return qn(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qn(t,r):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qn(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}var Tn=(0,t.curryN)(3,(function(r,e,o){return Pr(o).then((function(o){var i=(0,t.length)(o);return 0===i?e:(0,t.reduce)((function(t,e){return t.then((function(t){return Sr([t,e])})).then((function(t){var e=kn(t,2),o=e[0],u=e[1];return n(o)&&1===i?u:r(o,u)}))}))(Pr(e),o)}))}));const xn=Tn;function Mn(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var e,o,i,u,c=[],a=!0,s=!1;try{if(i=(n=n.call(t)).next,0===r){if(Object(n)!==n)return;a=!1}else for(;!(a=(e=i.call(n)).done)&&(c.push(e.value),c.length!==r);a=!0);}catch(t){s=!0,o=t}finally{try{if(!a&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(s)throw o}}return c}}(t,r)||function(t,r){if(t){if("string"==typeof t)return Fn(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fn(t,r):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fn(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}var Rn=(0,t.pipe)((0,t.reduceRight)(t.concat,""),(0,t.equals)("ba"))(["a","b"]),_n=(0,t.curryN)(3,(function(r,e,o){return Pr(o).then((function(o){var i=(0,t.length)(o);return 0===i?e:(0,t.reduceRight)((function(t,e){var o,u;return Rn?(o=t,u=e):(o=e,u=t),o.then((function(t){return Sr([t,u])})).then((function(t){var e=Mn(t,2),o=e[0],u=e[1];return n(o)&&1===i?u:r(u,o)}))}))(Pr(e),o)}))}));const Un=_n;const Wn=(0,t.slice)(t.__,1/0);const Bn=(0,t.slice)(0);var Cn=(0,t.addIndex)(t.reject),Ln=(0,t.curry)((function(r,n,e){return(0,t.includes)(e,r)})),$n=(0,t.curry)((function(t,r){return Cn(Ln(t),r)}));const Dn=$n;const Vn=(0,t.reject)(xt);const zn=(0,t.flip)(t.append);const Gn=(0,t.flip)(t.includes);var Kn=(0,t.curry)((function(r,n,e){return(0,t.compose)((0,t.insert)(n,(0,t.nth)(r,e)),(0,t.remove)(r,1))(e)}));const Zn=Kn;const Jn=an((0,t.flip)(t.gt));const Xn=an((0,t.flip)(t.lt));const Yn=an((0,t.flip)(t.lte));const Hn=an((0,t.complement)(t.equals));const Qn=(0,t.curryN)(1,(0,t.pipe)(t.uniq,Yn(1)));const te=function(t,r){var n=Number(r);if(n!==r&&(n=0),H(n))throw new RangeError("repeat count must be non-negative");if(st(n))throw new RangeError("repeat count must be less than infinity");if(n=Math.floor(n),0===t.length||0===n)return"";if(t.length*n>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var e=t.length*n;n=Math.floor(Math.log(n)/Math.log(2));for(var o=t;n;)o+=t,n-=1;return o+=o.substring(0,e-o.length)};var re=(0,t.curry)(te),ne=(0,t.flip)((0,t.invoker)(1,"repeat"));const ee=f(String.prototype.repeat)?ne:re;const oe=(0,t.curryN)(1,(0,t.pipe)((0,t.uniqWith)(t.identical),Yn(1)));var ie=(0,t.curry)((function(r,n){return(0,t.all)((0,t.identical)(r),n)}));const ue=ie;var ce=(0,t.curry)((function(r,n){return(0,t.all)((0,t.equals)(r),n)}));const ae=ce;const se=function(t){return function r(n){for(var e,o,i,u=[],c=0;c<n.length;){if(k(n[c]))for(i=0,o=(e=t?r(n[c]):n[c]).length;i<o;)u[u.length]=e[i],i+=1;else u[u.length]=n[c];c+=1}return u}};function le(t){return function(t){if(Array.isArray(t))return fe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return fe(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fe(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fe(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}var ye=se(!1),pe=(0,t.curry)((function(t,r){for(var n=t,e=le(r);n>0;)e=ye(e),n-=1;return e}));const me=pe;function he(t){return function(t){if(Array.isArray(t))return be(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return be(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?be(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function be(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}const ve=function(r,n,e){if(null==r)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(a(n)&&M(n))throw new TypeError("Array.from: when provided, the second argument must be a function");return p(r)?function(r,n,e){var o=i(e)?(0,t.bind)(n,e):n;return i(n)?he(r).map(o):he(r)}(r,n,e):[]};var de=(0,t.curryN)(1,ve),ge=f(Array.from)?(0,t.curryN)(1,Array.from):de;const Ne=(0,t.ifElse)(p,ge,t.values);const Se=(0,t.converge)(sn,[t.length,t.uniq]);const Ae=(0,t.complement)(Se);function we(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return Pe(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pe(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pe(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}var je=(0,t.curry)((function(r,n){var e,o,i,u;return(0,t.sort)((e=(0,t.map)((function(r){return(0,t.comparator)((function(n,e){return(0,t.lt)((0,t.prop)(r,n),(0,t.prop)(r,e))}))}),r),o=we(e),i=o[0],u=o.slice(1),(0,t.reduce)(t.either,i,u)),n)}));const Oe=je;var Ee=(0,t.append)(t.__,[]);const Ie=(0,t.useWith)(Oe,[Ee,t.identity]);var ke=(0,t.pipe)(t.path,t.ascend),qe=(0,t.map)(ke);const Te=(0,t.useWith)(t.sortWith,[qe,t.identity]);var xe=(0,t.curry)((function(r,n){return(0,t.addIndex)(t.filter)((0,t.pipe)((0,t.nthArg)(1),(0,t.modulo)(t.__,r),(0,t.identical)(0)))(n)}));const Me=xe;const Fe=(0,t.curryN)(1,(0,t.bind)(Math.floor,Math));var Re=(0,t.curryN)(3,(function(r,n,e){var o=0===r?(0,t.always)(n):function(t){return n+r*t},i=0===r?e-n:Fe((e-n)/r);return(0,t.map)(o,(0,t.range)(0,i))}));const _e=Re;var Ue=(0,t.curry)((function(r,n,e){return(0,t.pipe)((0,t.find)(n),(0,t.defaultTo)(r))(e)}));const We=Ue;const Be=(0,t.curryN)(3,(function(r,n,e){var o=(0,t.path)(r,e),i=(0,t.path)((0,t.init)(r),e);if(!M(o)&&!m(r)){var u=(0,t.bind)(o,i);return(0,t.apply)(u,n)}}));const Ce=Be(t.__,[],t.__);const Le=(0,t.curry)((function(r,n){return(0,t.ap)([(0,t.path)(t.__,n)],r)}));const $e=(0,t.curry)((function(r,n){return(0,t.pipe)(t.toPairs,(0,t.map)((0,t.over)((0,t.lensIndex)(0),r)),t.fromPairs)(n)}));const De=(0,t.curry)((function(r,n){return $e(function(r){return function(n){return(0,t.has)(n,r)?r[n]:n}}(r),n)}));function Ve(t){return Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ve(t)}function ze(t,r,n){return(r=function(t){var r=function(t,r){if("object"!=Ve(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,r||"default");if("object"!=Ve(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Ve(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}const Ge=(0,t.curry)((function(t,r,n){return De(ze({},t,r),n)}));const Ke=(0,t.curry)((function(r,n,e){return $e((0,t.when)((0,t.equals)(n),r),e)}));function Ze(t){return Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ze(t)}function Je(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,e)}return n}function Xe(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Je(Object(n),!0).forEach((function(r){Ye(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function Ye(t,r,n){return(r=function(t){var r=function(t,r){if("object"!=Ze(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,r||"default");if("object"!=Ze(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Ze(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}const He=(0,t.curryN)(2,(function(t,r){return Xe(Xe({},r),De(t,r))}));const Qe=(0,t.curryN)(2,(0,t.pipe)(t.props,t.mergeAll));const to=(0,t.curryN)(2,(0,t.pipe)(Le,t.mergeAll));const ro=(0,t.curry)((function(r,n,e){return(0,t.over)((0,t.lensPath)(r),(0,t.mergeLeft)(n),e)}));const no=(0,t.curry)((function(r,n,e){return ro((0,t.of)(Array,r),n,e)}));const eo=(0,t.useWith)(t.pickBy,[t.complement,t.identity]);const oo=(0,t.curryN)(3,(function(r,n,e){return(0,t.when)((0,t.identical)(r),(0,t.partial)((0,t.unary)(r),[e]),(0,t.pathOr)(r,n,e))}));const io=(0,t.curryN)(3,(function(r,n,e){return(0,t.defaultTo)(r,(0,t.view)(n,e))}));const uo=(0,t.curryN)(2,(0,t.converge)(t.mergeRight,[t.dissocPath,(0,t.pathOr)({})]));const co=(0,t.curry)((function(r,n){return uo((0,t.of)(Array,r),n)}));const ao=(0,t.curry)((function(r,n){return(0,t.mergeRight)(n,(0,t.pathOr)({},r,n))}));const so=(0,t.curry)((function(r,n){return ao((0,t.of)(Array,r),n)}));const lo=(0,t.curryN)(2,(function(r,n){return(0,t.pipe)(t.toPairs,(0,t.map)((0,t.pipe)(t.flip,t.apply)(r)),t.transpose,(0,t.when)(sn(0),(function(){return[[],[]]})))(n)}));const fo=(0,t.curryN)(3,(function(r,n,e){return(0,t.pipe)(t.zip,(0,t.map)((0,t.apply)(r)),t.fromPairs)(e,n)}));var yo=(0,t.curry)((function(t,r){return Boolean(Be(["prototype","isPrototypeOf"],[r],t))}));const po=yo;const mo=(0,t.curryN)(3,(function(r,n,e){return(0,t.pipe)((0,t.view)(r),(0,t.equals)(n))(e)}));const ho=(0,t.complement)(mo);const bo=(0,t.curryN)(3,(function(r,n,e){return(0,t.pipe)((0,t.view)(n),r,kt)(e)}));const vo=(0,t.complement)(bo);var go=(0,t.either)((0,t.path)(["@@type"]),(0,t.path)(["constructor","@@type"])),No=((0,t.curry)((function(t,r){return go(r)===t})),(0,t.curryN)(2,(0,t.useWith)(t.equals,[go,go])));(0,t.complement)(No);function So(t){return So="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},So(t)}function Ao(t,r,n){return(r=function(t){var r=function(t,r){if("object"!=So(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,r||"default");if("object"!=So(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==So(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var wo=Ao({},ur,(function(t){return this.constructor[sr](t(this.value))})),Po=Ao({},ar,(function(t){var r=this;return t.map((function(t){return t(r.value)}))})),jo=Ao({},nr,(function(r){return No(this,r)&&(0,t.equals)(this.value,r.value)})),Oo=Ao({},or,(function(r){var n=this.value;return N(this.value)||D(this.value)?n=this.value+r.value:(0,t.pathSatisfies)(f,["value",or],this)?n=this.value[or](r.value):(0,t.pathSatisfies)(f,["value","concat"],this)&&(n=this.value.concat(r.value)),this.constructor[sr](n)})),Eo=Ao({},lr,(function(t){var r=t(this.value);return No(this,r)?r:this})),Io=Ao({},er,(function(t){return No(this,t)&&(this.value<t.value||this[nr](t))}));function ko(t){return ko="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ko(t)}function qo(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,To(e.key),e)}}function To(t){var r=function(t,r){if("object"!=ko(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,r||"default");if("object"!=ko(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ko(r)?r:r+""}const xo=function(r,n,e,o,i,u,c,a,s){function l(t){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,l),this.value=t}return f=l,p=[{key:r,value:function(t){return new l(t)}},{key:"of",value:function(t){return new l(t)}},{key:"@@type",get:function(){return"RA/Identity"}}],(y=[{key:"get",value:function(){return this.value}},{key:n,value:function(t){return Po[ar].call(this,t)}},{key:"ap",value:function(t){return this[ar](t)}},{key:e,value:function(t){return wo[ur].call(this,t)}},{key:"map",value:function(t){return this[ur](t)}},{key:o,value:function(t){return jo[nr].call(this,t)}},{key:"equals",value:function(t){return this[nr](t)}},{key:i,value:function(t){return Oo[or].call(this,t)}},{key:"concat",value:function(t){return this[or](t)}},{key:u,value:function(t){return Eo[lr].call(this,t)}},{key:"chain",value:function(t){return this[lr](t)}},{key:c,value:function(t){return Io[er].call(this,t)}},{key:"lte",value:function(t){return this[er](t)}},{key:a,value:function(){return this.constructor.of((0,t.empty)(this.value))}},{key:"empty",value:function(){return this[ir]()}},{key:s,value:function(t){var r=this;return this.constructor.of((function(n){return r.value(t(n))}))}},{key:"contramap",value:function(t){return this[cr](t)}}])&&qo(f.prototype,y),p&&qo(f,p),Object.defineProperty(f,"prototype",{writable:!1}),f;var f,y,p}(sr,ar,ur,nr,or,lr,er,ir,cr);const Mo=(0,t.curryN)(1,(function(r){var n={"fantasy-land/of":"function"==typeof r["fantasy-land/of"]?r["fantasy-land/of"]:"function"==typeof r.of?r.of:r};return(0,t.curry)((function(r,e){return xo.of((0,t.traverse)(n,(0,t.pipe)(r,(0,t.prop)("value")),e))}))}));var Fo=(0,t.curry)((function(t,r){return t.from(r)})),Ro=(0,t.curry)((function(r,n){return function(t,r){var n=function(r){return t(r)};return n.from=r,n}((0,t.curry)((function(e,o){return(0,t.map)(n,e(r(o)))})),(0,t.curry)((function(e,o){return(0,t.map)(r,e(n(o)))})))}));Ro.from=Fo;const _o=Ro;const Uo=(0,t.complement)(t.propEq);const Wo=(0,t.complement)(t.pathEq);var Bo=(0,t.ifElse)(t.gte,(function(){throw new Error("low must not be greater than high in inRange(low, high, value)")}),(0,t.useWith)(t.both,[t.lte,t.gt]));const Co=(0,t.curry)((function(t,r,n){return Bo(t,r)(n)}));const Lo=(0,t.complement)(t.equals);const $o=(0,t.curryN)(2,(function(r,n){return!!(0,t.isEmpty)(r)||(0,t.pipe)(t.intersection,t.isNotEmpty)(r,n)}));const Do=(0,t.curry)((0,t.compose)(t.complement,t.both));const Vo=(0,t.complement)(t.and);const zo=(0,t.curry)((0,t.compose)(t.complement,t.either));const Go=(0,t.complement)(t.or);const Ko=(0,t.curry)((0,t.compose)(t.complement,t.allPass));const Zo=(0,t.curryN)(1,(0,t.compose)(t.complement,t.anyPass));const Jo=(0,t.curry)((function(r,n){return(0,t.useWith)((0,t.compose)(r(Tt),Pn),n)}));const Xo=(0,t.nAry)(0);const Yo=(0,t.curryN)(1,(0,t.bind)(Math.round,Math));const Ho=(0,t.curryN)(1,(0,t.bind)(Math.ceil,Math));const Qo=(0,t.flip)(t.divide);const ti=function(t){var r=Number(t);return at(r)?r-r%1||(r<0?-0:0===r?r:0):r};var ri=(0,t.curryN)(1,ti);const ni=f(Math.trunc)?(0,t.curryN)(1,(0,t.bind)(Math.trunc,Math)):ri;const ei=function(t){return(t>0)-(t<0)||+t};var oi=(0,t.curryN)(1,ei);const ii=f(Math.sign)?(0,t.curryN)(1,(0,t.bind)(Math.sign,Math)):oi;const ui=(0,t.flip)(t.subtract);const ci=zo(Bt,(0,t.both)(j,zo((0,t.hasIn)("toString"),(0,t.hasIn)("valueOf"))));const ai=(0,t.ifElse)(ci,Number,(0,t.always)(NaN));const si=(0,t.when)(N,(0,t.replace)(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var li=function(t,r){if("string"!=typeof t&&!(t instanceof String))throw TypeError("`".concat(r,"` must be a string"))};const fi=function(r,n,e){!function(t,r,n){if(null==n||null==t||null==r)throw TypeError("Input values must not be `null` or `undefined`")}(r,n,e),li(e,"str"),li(n,"replaceValue"),function(t){if(!("string"==typeof t||t instanceof String||t instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")}(r);var o=new RegExp(Mt(r)?r:si(r),"g");return(0,t.replace)(o,n,e)};var yi=(0,t.curryN)(3,fi),pi=(0,t.invoker)(2,"replaceAll");const mi=f(String.prototype.replaceAll)?pi:yi;var hi=(0,t.replace)(/^[\s\uFEFF\xA0]+/,""),bi=(0,t.invoker)(0,"trimStart");const vi=f(String.prototype.trimStart)?bi:hi;var di=(0,t.replace)(/[\s\uFEFF\xA0]+$/,""),gi=(0,t.invoker)(0,"trimEnd");const Ni=f(String.prototype.trimEnd)?gi:di;const Si=(0,t.curry)((function(r,n){return(0,t.pipe)((0,t.split)(""),(0,t.dropLastWhile)(Gn(r)),(0,t.join)(""))(n)}));const Ai=(0,t.curry)((function(r,n){return(0,t.pipe)((0,t.split)(""),(0,t.dropWhile)(Gn(r)),(0,t.join)(""))(n)}));const wi=function(t,r,n){var e=r>>0,o=String(i(t)?t:" ");if(n.length>=e)return String(n);if((e-=n.length)>o.length){var u=e/o.length;o+=f(String.prototype.repeat)?o.repeat(u):te(o,u)}return o.slice(0,e)+String(n)};var Pi=(0,t.flip)((0,t.invoker)(2,"padStart")),ji=(0,t.curry)(wi);const Oi=f(String.prototype.padStart)?Pi:ji;const Ei=function(t,r,n){var e=r>>0,o=String(i(t)?t:" ");if(n.length>e)return String(n);if((e-=n.length)>o.length){var u=e/o.length;o+=f(String.prototype.repeat)?o.repeat(u):te(o,u)}return String(n)+o.slice(0,e)};var Ii=(0,t.curry)(Ei),ki=(0,t.flip)((0,t.invoker)(2,"padEnd"));const qi=f(String.prototype.padEnd)?ki:Ii;const Ti=qi(" ");const xi=Oi(" ")})(),o})()));
1
+ !function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("ramda")):"function"==typeof define&&define.amd?define(["ramda"],r):"object"==typeof exports?exports.RA=r(require("ramda")):t.RA=r(t.ramda)}(global,t=>(()=>{"use strict";var r={871:r=>{r.exports=t}},n={};function e(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return r[t](i,i.exports,e),i.exports}e.d=(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};e.r(o),e.d(o,{Identity:()=>Fo,Y:()=>Cr,allEqual:()=>ne,allEqualTo:()=>fe,allIdentical:()=>ce,allIdenticalTo:()=>se,allP:()=>Pr,allSettledP:()=>Br,allUnique:()=>Pe,anyP:()=>sn,appendFlipped:()=>Zn,argsPass:()=>Yo,async:()=>Zr,cata:()=>gr,catchP:()=>jr,ceil:()=>ti,compact:()=>Kn,concatAll:()=>qn,concatRight:()=>Tn,copyKeys:()=>to,curryRight:()=>wr,curryRightN:()=>Ar,defaultWhen:()=>dn,delayP:()=>Tr,dispatch:()=>Kr,divideNum:()=>ri,dropArgs:()=>Ho,ensureArray:()=>In,escapeRegExp:()=>fi,filterIndexed:()=>An,findOr:()=>Le,firstP:()=>sn,flattenDepth:()=>ve,flattenPath:()=>lo,flattenProp:()=>fo,floor:()=>Ue,fnull:()=>Nn,inRange:()=>$o,included:()=>Jn,invoke:()=>De,invokeArgs:()=>$e,isArray:()=>h,isArrayLike:()=>x,isAsyncFunction:()=>p,isBigInt:()=>St,isBlank:()=>Qt,isBoolean:()=>N,isDate:()=>V,isEmptyArray:()=>v,isEmptyString:()=>P,isError:()=>Zt,isEven:()=>Et,isFalse:()=>Mt,isFalsy:()=>Rt,isFinite:()=>ft,isFloat:()=>At,isFunction:()=>m,isGeneratorFunction:()=>y,isIndexed:()=>Kt,isInt32:()=>vt,isInteger:()=>ht,isInteger32:()=>vt,isInvalidDate:()=>H,isIterable:()=>b,isMap:()=>ct,isNaN:()=>J,isNaturalNumber:()=>Jt,isNegative:()=>rt,isNegativeZero:()=>et,isNilOrEmpty:()=>A,isNonEmptyArray:()=>g,isNonEmptyString:()=>q,isNonNegative:()=>ut,isNonPositive:()=>it,isNotArray:()=>d,isNotArrayLike:()=>M,isNotAsyncFunction:()=>R,isNotBoolean:()=>S,isNotDate:()=>z,isNotFinite:()=>yt,isNotFloat:()=>wt,isNotFunction:()=>_,isNotGeneratorFunction:()=>F,isNotInteger:()=>Nt,isNotMap:()=>at,isNotNaN:()=>X,isNotNil:()=>f,isNotNilOrEmpty:()=>ot,isNotNull:()=>l,isNotNumber:()=>Q,isNotObj:()=>k,isNotObjLike:()=>W,isNotObject:()=>k,isNotObjectLike:()=>W,isNotPair:()=>kt,isNotPlainObj:()=>D,isNotPlainObject:()=>D,isNotPrimitive:()=>Yt,isNotRegExp:()=>Ut,isNotSet:()=>Bt,isNotString:()=>j,isNotUndefined:()=>a,isNotValidDate:()=>H,isNotValidNumber:()=>jt,isNull:()=>s,isNumber:()=>G,isObj:()=>I,isObjLike:()=>U,isObject:()=>I,isObjectLike:()=>U,isOdd:()=>Ot,isPair:()=>It,isPlainObj:()=>$,isPlainObject:()=>$,isPositive:()=>tt,isPositiveZero:()=>nt,isPrimitive:()=>Xt,isPromise:()=>Tt,isPrototypeOf:()=>ho,isRegExp:()=>_t,isSafeInteger:()=>Gt,isSentinelValue:()=>Ht,isSet:()=>Wt,isSparseArray:()=>Ct,isString:()=>w,isSymbol:()=>$t,isThenable:()=>qt,isTrue:()=>xt,isTruthy:()=>Ft,isUint32:()=>gt,isUinteger32:()=>gt,isUndefined:()=>c,isValidDate:()=>Y,isValidNumber:()=>Pt,lastP:()=>vn,lengthEq:()=>yn,lengthGt:()=>Hn,lengthGte:()=>pn,lengthLt:()=>Qn,lengthLte:()=>te,lengthNotEq:()=>re,lensEq:()=>bo,lensIso:()=>Wo,lensNotEq:()=>vo,lensNotSatisfy:()=>No,lensSatisfies:()=>go,lensTraverse:()=>Ro,liftF:()=>dr,liftFN:()=>vr,list:()=>En,mapIndexed:()=>gn,mergePath:()=>eo,mergePaths:()=>no,mergeProp:()=>oo,mergeProps:()=>ro,move:()=>Yn,nand:()=>Go,neither:()=>Ko,noneP:()=>Ir,nonePass:()=>Xo,noop:()=>or,nor:()=>Zo,notAllPass:()=>Jo,notAllUnique:()=>je,notBoth:()=>zo,notEqual:()=>Do,omitBy:()=>io,omitIndexes:()=>Gn,overlaps:()=>Vo,padCharsEnd:()=>xi,padCharsStart:()=>Ii,padEnd:()=>Mi,padStart:()=>Fi,pathNotEq:()=>Co,pathOrLazy:()=>uo,paths:()=>Ve,pickIndexes:()=>On,propNotEq:()=>Bo,rangeStep:()=>Be,reduceIndexed:()=>Sn,reduceP:()=>Rn,reduceRightP:()=>Cn,rejectP:()=>Or,renameKey:()=>Ke,renameKeyWith:()=>Je,renameKeysWith:()=>Ze,repeatStr:()=>ue,replaceAll:()=>bi,resolveP:()=>Er,round:()=>Qo,seq:()=>Lr,sequencing:()=>Lr,sign:()=>ci,skipTake:()=>_e,sliceFrom:()=>Ln,sliceTo:()=>$n,sortByPaths:()=>Fe,sortByProp:()=>Te,sortByProps:()=>ke,spreadPath:()=>ao,spreadProp:()=>so,stubArray:()=>er,stubNull:()=>tr,stubObj:()=>rr,stubObject:()=>rr,stubString:()=>nr,stubUndefined:()=>u,subtractNum:()=>ai,thenCatchP:()=>xr,toArray:()=>we,toInt32:()=>bt,toInteger32:()=>bt,toNumber:()=>li,toUint32:()=>dt,toUinteger32:()=>dt,trimCharsEnd:()=>wi,trimCharsStart:()=>Pi,trimEnd:()=>Ai,trimLeft:()=>gi,trimRight:()=>Ai,trimStart:()=>gi,trunc:()=>oi,unzipObjWith:()=>yo,viewOr:()=>co,weave:()=>Nr,weaveLazy:()=>Sr,zipObjWith:()=>po});var i=e(871);const u=(0,i.always)(void 0);const c=(0,i.equals)(u());const a=(0,i.complement)(c);const s=(0,i.equals)(null);const l=(0,i.complement)(s);const f=(0,i.complement)(i.isNil);const y=(0,i.curryN)(1,(0,i.pipe)(i.type,(0,i.identical)("GeneratorFunction")));const p=(0,i.curryN)(1,(0,i.pipe)(i.type,(0,i.identical)("AsyncFunction")));const m=(0,i.anyPass)([(0,i.pipe)(i.type,(0,i.identical)("Function")),y,p]);const h=(0,i.curryN)(1,m(Array.isArray)?Array.isArray:(0,i.pipe)(i.type,(0,i.identical)("Array")));const b=(0,i.curryN)(1,function(t){return"undefined"!=typeof Symbol&&((0,i.hasIn)(Symbol.iterator,Object(t))&&m(t[Symbol.iterator]))});const v=(0,i.both)(h,i.isEmpty);const d=(0,i.complement)(h);const g=(0,i.both)(h,i.isNotEmpty);const N=(0,i.curryN)(1,(0,i.pipe)(i.type,(0,i.identical)("Boolean")));const S=(0,i.complement)(N);const A=(0,i.curryN)(1,(0,i.either)(i.isNil,i.isEmpty));const w=(0,i.curryN)(1,(0,i.pipe)(i.type,(0,i.identical)("String")));const P=(0,i.equals)("");const j=(0,i.complement)(w);function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}const E=function(t){return"object"===O(t)};const I=(0,i.curryN)(1,(0,i.both)(l,(0,i.either)(E,m)));const k=(0,i.complement)(I);const q=(0,i.allPass)([w,k,i.isNotEmpty]);function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}const x=(0,i.curryN)(1,function(t){return!!h(t)||!!t&&(!w(t)&&("object"===T(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&((0,i.has)(0,t)&&(0,i.has)(t.length-1,t)))))});const M=(0,i.complement)(x);const F=(0,i.complement)(y);const R=(0,i.complement)(p);const _=(0,i.complement)(m);const U=(0,i.curryN)(1,(0,i.both)(l,E));const W=(0,i.complement)(U);var B=(0,i.pipe)(i.type,(0,i.identical)("Object")),C=(0,i.pipe)(i.toString,(0,i.equals)((0,i.toString)(Object))),L=(0,i.pathSatisfies)((0,i.both)(m,C),["constructor"]);const $=(0,i.curryN)(1,function(t){if(!U(t)||!B(t))return!1;var r=Object.getPrototypeOf(t);return!!s(r)||L(r)});const D=(0,i.complement)($);const V=(0,i.curryN)(1,(0,i.pipe)(i.type,(0,i.identical)("Date")));const z=(0,i.complement)(V);const G=(0,i.curryN)(1,(0,i.pipe)(i.type,(0,i.identical)("Number")));const K=(0,i.both)(G,isNaN);var Z=(0,i.curryN)(1,K);const J=m(Number.isNaN)?(0,i.curryN)(1,Number.isNaN):Z;const X=(0,i.complement)(J);const Y=(0,i.curryN)(1,(0,i.both)(V,(0,i.pipe)((0,i.invoker)(0,"getTime"),X)));const H=(0,i.complement)(Y);const Q=(0,i.complement)(G);const tt=(0,i.both)(G,(0,i.lt)(0));const rt=(0,i.curryN)(1,(0,i.both)(G,(0,i.gt)(0)));const nt=(0,i.curryN)(1,(0,i.identical)(0));const et=(0,i.curryN)(1,(0,i.identical)(-0));const ot=(0,i.complement)(A);const it=(0,i.curryN)(1,(0,i.both)(G,(0,i.flip)(i.lte)(0)));const ut=(0,i.curryN)(1,(0,i.both)(G,(0,i.flip)(i.gte)(0)));const ct=(0,i.curryN)(1,(0,i.pipe)(i.type,(0,i.identical)("Map")));const at=(0,i.complement)(ct);const st=(0,i.both)(G,isFinite);var lt=(0,i.curryN)(1,st);const ft=m(Number.isFinite)?(0,i.curryN)(1,(0,i.bind)(Number.isFinite,Number)):lt;const yt=(0,i.complement)(ft);const pt=(0,i.both)(ft,(0,i.converge)(i.equals,[Math.floor,i.identity]));var mt=(0,i.curryN)(1,pt);const ht=m(Number.isInteger)?(0,i.curryN)(1,(0,i.bind)(Number.isInteger,Number)):mt;const bt=(0,i.curryN)(1,function(t){return t|0});const vt=(0,i.curryN)(1,function(t){return bt(t)===t});const dt=(0,i.curryN)(1,function(t){return t>>>0});const gt=(0,i.curryN)(1,function(t){return dt(t)===t});const Nt=(0,i.complement)(ht);const St=(0,i.curryN)(1,(0,i.pipe)(i.type,(0,i.identical)("BigInt")));const At=(0,i.both)(ft,(0,i.complement)(ht));const wt=(0,i.curryN)(1,(0,i.complement)(At));const Pt=(0,i.curryN)(1,(0,i.either)(ht,At));const jt=(0,i.complement)(Pt);const Ot=(0,i.curryN)(1,(0,i.both)(ht,(0,i.pipe)((0,i.flip)(i.modulo)(2),(0,i.complement)(i.equals)(0))));const Et=(0,i.curryN)(1,(0,i.both)(ht,(0,i.complement)(Ot)));const It=(0,i.curryN)(1,(0,i.both)(h,(0,i.pipe)(i.length,(0,i.equals)(2))));const kt=(0,i.complement)(It);const qt=(0,i.pathSatisfies)(m,["then"]);const Tt=(0,i.curryN)(1,(0,i.both)(I,(0,i.pipe)(i.toString,(0,i.equals)("[object Promise]"))));const xt=(0,i.curryN)(1,(0,i.identical)(!0));const Mt=(0,i.curryN)(1,(0,i.identical)(!1));const Ft=(0,i.curryN)(1,Boolean);const Rt=(0,i.complement)(Ft);const _t=(0,i.curryN)(1,(0,i.pipe)(i.type,(0,i.identical)("RegExp")));const Ut=(0,i.complement)(_t);const Wt=(0,i.curryN)(1,(0,i.pipe)(i.type,(0,i.identical)("Set")));const Bt=(0,i.complement)(Wt);const Ct=(0,i.both)(h,(0,i.converge)((0,i.complement)(i.identical),[(0,i.pipe)(i.values,i.length),i.length]));function Lt(t){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(t)}const $t=(0,i.curryN)(1,function(t){return"symbol"===Lt(t)||"object"===Lt(t)&&"Symbol"===(0,i.type)(t)});const Dt=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;const Vt=(0,i.both)(ht,function(t){return Math.abs(t)<=Dt});var zt=(0,i.curryN)(1,Vt);const Gt=m(Number.isSafeInteger)?(0,i.curryN)(1,(0,i.bind)(Number.isSafeInteger,Number)):zt;const Kt=(0,i.curryN)(1,(0,i.either)(w,h));const Zt=(0,i.curryN)(1,(0,i.pipe)(i.type,(0,i.identical)("Error")));const Jt=(0,i.curryN)(1,(0,i.both)(ht,(0,i.complement)(rt)));const Xt=(0,i.both)(k,(0,i.anyPass)([w,G,St,N,c,s,$t]));const Yt=(0,i.curryN)(1,(0,i.complement)(Xt));const Ht=(0,i.curryN)(1,function(t){return vt(t)&&0===~t});const Qt=(0,i.anyPass)([Mt,i.isNil,i.isEmpty,(0,i.test)(/^\s+$/gm)]);const tr=(0,i.always)(null);const rr=function(){return{}};const nr=(0,i.always)("");const er=function(){return[]};const or=(0,i.always)(u());var ir="fantasy-land/equals",ur="fantasy-land/lte",cr="fantasy-land/concat",ar="fantasy-land/empty",sr="fantasy-land/map",lr="fantasy-land/contramap",fr="fantasy-land/ap",yr="fantasy-land/of",pr="fantasy-land/chain",mr=(0,i.either)((0,i.pathSatisfies)(m,["map"]),(0,i.pathSatisfies)(m,[sr])),hr=(0,i.both)(mr,(0,i.either)((0,i.pathSatisfies)(m,["ap"]),(0,i.pathSatisfies)(m,[fr])));const br=(0,i.curryN)(2,function(t,r){if(!hr(t)||!hr(r))return(0,i.ap)(t,r);try{return t.ap(r)}catch(n){return r.ap(t)}});const vr=(0,i.curry)(function(t,r){var n=(0,i.curryN)(t,r);return(0,i.curryN)(t,function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];var o=(0,i.map)(n,(0,i.head)(r)),u=(0,i.slice)(1,1/0,r);return(0,i.reduce)(br,o,u)})});const dr=(0,i.curryN)(1,function(t){return vr(t.length,t)});const gr=(0,i.curry)(function(t,r,n){if(m(n.matchWith))return n.matchWith({Ok:function(t){var n=t.value;return r(n)},Error:function(r){var n=r.value;return t(n)},Just:function(t){var n=t.value;return r(n)},Nothing:function(){return t(void 0)},Success:function(t){var n=t.value;return r(n)},Failure:function(r){var n=r.value;return t(n)}});if(m(n.cata))return n.cata(t,r);if(m(n.getOrElse)){var e="RA.cata".concat(Math.random()),o=n.getOrElse(e);return o===e?t():r(o)}return n.either(t,r)});const Nr=(0,i.curryN)(2,function(t,r){return(0,i.curryN)(t.length,function(){return t.apply(void 0,arguments).run(r)})});const Sr=(0,i.curryN)(2,function(t,r){return(0,i.curryN)(t.length,function(){return t.apply(void 0,arguments).run(r())})});const Ar=(0,i.curryN)(2,function(t,r){return(0,i.curryN)(t,function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return r.apply(this,(0,i.reverse)(n))})});const wr=(0,i.converge)(Ar,[i.length,i.identity]);const Pr=(0,i.curryN)(1,(0,i.bind)(Promise.all,Promise));const jr=(0,i.invoker)(1,"catch");const Or=(0,i.bind)(Promise.reject,Promise);const Er=(0,i.bind)(Promise.resolve,Promise);const Ir=(0,i.curryN)(1,(0,i.pipe)((0,i.map)(Er),(0,i.map)(function(t){return t.then(Or,Er)}),Pr));var kr=(0,i.curry)(function(t,r){var n,e;return ht(r)&&ut(r)?n=r:(n=(0,i.propOr)(0,"timeout",r),e=(0,i.propOr)(e,"value",r)),new Promise(function(){for(var r=arguments.length,o=new Array(r),u=0;u<r;u++)o[u]=arguments[u];var c=t(o);setTimeout((0,i.partial)(c,[e]),n)})}),qr=kr((0,i.nth)(0));qr.reject=kr((0,i.nth)(1));const Tr=qr;const xr=(0,i.invoker)(2,"then");function Mr(t){return function(t){if(Array.isArray(t))return Fr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return Fr(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fr(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fr(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}var Rr=function(t){return{status:"fulfilled",value:t}},_r=function(t){return{status:"rejected",reason:t}};const Ur=function(t){var r=(0,i.map)(function(t){return Er(t).then(Rr).catch(_r)},Mr(t));return Pr(r)};var Wr=(0,i.curryN)(1,Ur);const Br=m(Promise.allSettled)?(0,i.curryN)(1,(0,i.bind)(Promise.allSettled,Promise)):Wr;const Cr=(0,i.curryN)(1,function(t){return(r=function(r){return t(function(t){return r(r)(t)})})(r);var r});const Lr=(0,i.curry)(function(t,r){return(0,i.tap)(function(r){return(0,i.map)(function(t){return t(r)})(t)})(r)});function $r(t){return function(t){if(Array.isArray(t))return Dr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return Dr(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dr(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dr(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}var Vr=(0,i.comparator)(function(t,r){return t.length>r.length}),zr=(0,i.pipe)((0,i.sort)(Vr),i.head,(0,i.prop)("length")),Gr=(0,i.curry)(function(t,r,n){var e=n.apply(void 0,$r(t));return f(e)?(0,i.reduced)(e):r});const Kr=(0,i.ifElse)(g,function(t){var r=zr(t);return(0,i.curryN)(r,function(){for(var r=arguments.length,n=new Array(r),e=0;e<r;e++)n[e]=arguments[e];return(0,i.reduce)(Gr(n),void 0,t)})},u);const Zr=(0,i.curryN)(1,function(t){function r(){var r=(0,i.bind)(t,this).apply(void 0,arguments),n=function(t){var e=Er(t.value);return t.done?e:e.then(function(t){return n(r.next(t))},function(t){return n(r.throw(t))})};try{return n(r.next())}catch(t){return Or(t)}}return t.length>0?(0,i.curryN)(t.length,r):r});function Jr(t){return Jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jr(t)}function Xr(t){return function(t){if(Array.isArray(t))return Yr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return Yr(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yr(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yr(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}function Hr(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,Qr(e.key),e)}}function Qr(t){var r=function(t,r){if("object"!=Jr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,r||"default");if("object"!=Jr(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Jr(r)?r:r+""}function tn(t,r,n){return r=on(r),function(t,r){if(r&&("object"==Jr(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,nn()?Reflect.construct(r,n||[],on(t).constructor):r.apply(t,n))}function rn(t){var r="function"==typeof Map?new Map:void 0;return rn=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(r){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return function(t,r,n){if(nn())return Reflect.construct.apply(null,arguments);var e=[null];e.push.apply(e,r);var o=new(t.bind.apply(t,e));return n&&en(o,n.prototype),o}(t,arguments,on(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),en(n,t)},rn(t)}function nn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(nn=function(){return!!t})()}function en(t,r){return en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},en(t,r)}function on(t){return on=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},on(t)}var un=function(t){function r(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),(t=tn(this,r,[e])).errors=n,t}return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&en(t,r)}(r,t),n=r,e&&Hr(n.prototype,e),o&&Hr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e,o}(rn(Error));const cn=function(t){var r=[];return new Promise(function(n,e){var o=function(n){r.push(n),r.length===t.length&&e(new un(r))};(0,i.map)(function(t){return Er(t).then(n).catch(o)},Xr(t))})};var an=(0,i.curryN)(1,cn);const sn=m(Promise.any)?(0,i.curryN)(1,(0,i.bind)(Promise.any,Promise)):an;var ln=(0,i.curry)(function(t,r,n){return(0,i.compose)(t(r),i.length)(n)});const fn=ln;const yn=fn(i.equals);const pn=fn((0,i.flip)(i.gte));function mn(t){return function(t){if(Array.isArray(t))return hn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return hn(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hn(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hn(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}var bn=(0,i.curryN)(1,function(t){var r=[],n=[],e=(0,i.bind)(r.push,r),o=(0,i.bind)(n.push,n),u=(0,i.map)(function(t){return Er(t).then(e).catch(o)},mn(t));return Pr(u).then(function(){if(!yn(0,r)||!yn(0,n))return pn(1,r)?(0,i.last)(r):Or(n)})});const vn=bn;const dn=(0,i.curry)(function(t,r,n){return t(n)?r:n});const gn=(0,i.addIndex)(i.map);const Nn=(0,i.curry)(function(t,r){return(0,i.curryN)(t.length,function(){for(var n=arguments.length,e=new Array(n),o=0;o<n;o++)e[o]=arguments[o];var u=gn(function(t,n){return dn(i.isNil,r[n],t)},e);return(0,i.apply)(t,u)})});const Sn=(0,i.addIndex)(i.reduce);const An=(0,i.addIndex)(i.filter);var wn=(0,i.addIndex)(i.filter),Pn=(0,i.curry)(function(t,r,n){return(0,i.includes)(n,t)}),jn=(0,i.curry)(function(t,r){return wn(Pn(t),r)});const On=jn;const En=(0,i.unapply)(i.identity);const In=(0,i.when)(d,(0,i.of)(Array));var kn={concat:i.identity};const qn=(0,i.pipe)((0,i.reduce)(i.concat,kn),(0,i.when)((0,i.identical)(kn),u));const Tn=(0,i.flip)(i.concat);function xn(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var e,o,i,u,c=[],a=!0,s=!1;try{if(i=(n=n.call(t)).next,0===r){if(Object(n)!==n)return;a=!1}else for(;!(a=(e=i.call(n)).done)&&(c.push(e.value),c.length!==r);a=!0);}catch(t){s=!0,o=t}finally{try{if(!a&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(s)throw o}}return c}}(t,r)||function(t,r){if(t){if("string"==typeof t)return Mn(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mn(t,r):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mn(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}var Fn=(0,i.curryN)(3,function(t,r,n){return Er(n).then(function(n){var e=(0,i.length)(n);return 0===e?r:(0,i.reduce)(function(r,n){return r.then(function(t){return Pr([t,n])}).then(function(r){var n=xn(r,2),o=n[0],i=n[1];return c(o)&&1===e?i:t(o,i)})})(Er(r),n)})});const Rn=Fn;function _n(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var e,o,i,u,c=[],a=!0,s=!1;try{if(i=(n=n.call(t)).next,0===r){if(Object(n)!==n)return;a=!1}else for(;!(a=(e=i.call(n)).done)&&(c.push(e.value),c.length!==r);a=!0);}catch(t){s=!0,o=t}finally{try{if(!a&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(s)throw o}}return c}}(t,r)||function(t,r){if(t){if("string"==typeof t)return Un(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Un(t,r):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Un(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}var Wn=(0,i.pipe)((0,i.reduceRight)(i.concat,""),(0,i.equals)("ba"))(["a","b"]),Bn=(0,i.curryN)(3,function(t,r,n){return Er(n).then(function(n){var e=(0,i.length)(n);return 0===e?r:(0,i.reduceRight)(function(r,n){var o,i;return Wn?(o=r,i=n):(o=n,i=r),o.then(function(t){return Pr([t,i])}).then(function(r){var n=_n(r,2),o=n[0],i=n[1];return c(o)&&1===e?i:t(i,o)})})(Er(r),n)})});const Cn=Bn;const Ln=(0,i.slice)(i.__,1/0);const $n=(0,i.slice)(0);var Dn=(0,i.addIndex)(i.reject),Vn=(0,i.curry)(function(t,r,n){return(0,i.includes)(n,t)}),zn=(0,i.curry)(function(t,r){return Dn(Vn(t),r)});const Gn=zn;const Kn=(0,i.reject)(Rt);const Zn=(0,i.flip)(i.append);const Jn=(0,i.flip)(i.includes);var Xn=(0,i.curry)(function(t,r,n){return(0,i.compose)((0,i.insert)(r,(0,i.nth)(t,n)),(0,i.remove)(t,1))(n)});const Yn=Xn;const Hn=fn((0,i.flip)(i.gt));const Qn=fn((0,i.flip)(i.lt));const te=fn((0,i.flip)(i.lte));const re=fn((0,i.complement)(i.equals));const ne=(0,i.curryN)(1,(0,i.pipe)(i.uniq,te(1)));const ee=function(t,r){var n=Number(r);if(n!==r&&(n=0),rt(n))throw new RangeError("repeat count must be non-negative");if(yt(n))throw new RangeError("repeat count must be less than infinity");if(n=Math.floor(n),0===t.length||0===n)return"";if(t.length*n>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var e=t.length*n;n=Math.floor(Math.log(n)/Math.log(2));for(var o=t;n;)o+=t,n-=1;return o+=o.substring(0,e-o.length)};var oe=(0,i.curry)(ee),ie=(0,i.flip)((0,i.invoker)(1,"repeat"));const ue=m(String.prototype.repeat)?ie:oe;const ce=(0,i.curryN)(1,(0,i.pipe)((0,i.uniqWith)(i.identical),te(1)));var ae=(0,i.curry)(function(t,r){return(0,i.all)((0,i.identical)(t),r)});const se=ae;var le=(0,i.curry)(function(t,r){return(0,i.all)((0,i.equals)(t),r)});const fe=le;const ye=function(t){return function r(n){for(var e,o,i,u=[],c=0;c<n.length;){if(x(n[c]))for(i=0,o=(e=t?r(n[c]):n[c]).length;i<o;)u[u.length]=e[i],i+=1;else u[u.length]=n[c];c+=1}return u}};function pe(t){return function(t){if(Array.isArray(t))return me(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return me(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function me(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}var he=ye(!1),be=(0,i.curry)(function(t,r){for(var n=t,e=pe(r);n>0;)e=he(e),n-=1;return e});const ve=be;function de(t){return function(t){if(Array.isArray(t))return ge(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return ge(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}const Ne=function(t,r,n){if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(f(r)&&_(r))throw new TypeError("Array.from: when provided, the second argument must be a function");return b(t)?function(t,r,n){var e=a(n)?(0,i.bind)(r,n):r;return a(r)?de(t).map(e):de(t)}(t,r,n):[]};var Se=(0,i.curryN)(1,Ne),Ae=m(Array.from)?(0,i.curryN)(1,Array.from):Se;const we=(0,i.ifElse)(b,Ae,i.values);const Pe=(0,i.converge)(yn,[i.length,i.uniq]);const je=(0,i.complement)(Pe);function Oe(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return Ee(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ee(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}var Ie=(0,i.curry)(function(t,r){var n,e,o,u;return(0,i.sort)((n=(0,i.map)(function(t){return(0,i.comparator)(function(r,n){return(0,i.lt)((0,i.prop)(t,r),(0,i.prop)(t,n))})},t),e=Oe(n),o=e[0],u=Ee(e).slice(1),(0,i.reduce)(i.either,o,u)),r)});const ke=Ie;var qe=(0,i.append)(i.__,[]);const Te=(0,i.useWith)(ke,[qe,i.identity]);var xe=(0,i.pipe)(i.path,i.ascend),Me=(0,i.map)(xe);const Fe=(0,i.useWith)(i.sortWith,[Me,i.identity]);var Re=(0,i.curry)(function(t,r){return(0,i.addIndex)(i.filter)((0,i.pipe)((0,i.nthArg)(1),(0,i.modulo)(i.__,t),(0,i.identical)(0)))(r)});const _e=Re;const Ue=(0,i.curryN)(1,(0,i.bind)(Math.floor,Math));var We=(0,i.curryN)(3,function(t,r,n){var e=0===t?(0,i.always)(r):function(n){return r+t*n},o=0===t?n-r:Ue((n-r)/t);return(0,i.map)(e,(0,i.range)(0,o))});const Be=We;var Ce=(0,i.curry)(function(t,r,n){return(0,i.pipe)((0,i.find)(r),(0,i.defaultTo)(t))(n)});const Le=Ce;const $e=(0,i.curryN)(3,function(t,r,n){var e=(0,i.path)(t,n),o=(0,i.path)((0,i.init)(t),n);if(!_(e)&&!v(t)){var u=(0,i.bind)(e,o);return(0,i.apply)(u,r)}});const De=$e(i.__,[],i.__);const Ve=(0,i.curry)(function(t,r){return(0,i.ap)([(0,i.path)(i.__,r)],t)});function ze(t){return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ze(t)}function Ge(t,r,n){return(r=function(t){var r=function(t,r){if("object"!=ze(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,r||"default");if("object"!=ze(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==ze(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}const Ke=(0,i.curry)(function(t,r,n){return(0,i.renameKeys)(Ge({},t,r),n)});const Ze=(0,i.curry)(function(t,r){return(0,i.pipe)(i.toPairs,(0,i.map)((0,i.over)((0,i.lensIndex)(0),t)),i.fromPairs)(r)});const Je=(0,i.curry)(function(t,r,n){return Ze((0,i.when)((0,i.equals)(r),t),n)});function Xe(t){return Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xe(t)}function Ye(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,e)}return n}function He(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Ye(Object(n),!0).forEach(function(r){Qe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Qe(t,r,n){return(r=function(t){var r=function(t,r){if("object"!=Xe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,r||"default");if("object"!=Xe(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Xe(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}const to=(0,i.curryN)(2,function(t,r){return He(He({},r),(0,i.renameKeys)(t,r))});const ro=(0,i.curryN)(2,(0,i.pipe)(i.props,i.mergeAll));const no=(0,i.curryN)(2,(0,i.pipe)(Ve,i.mergeAll));const eo=(0,i.curry)(function(t,r,n){return(0,i.over)((0,i.lensPath)(t),(0,i.mergeLeft)(r),n)});const oo=(0,i.curry)(function(t,r,n){return eo((0,i.of)(Array,t),r,n)});const io=(0,i.useWith)(i.pickBy,[i.complement,i.identity]);const uo=(0,i.curryN)(3,function(t,r,n){return(0,i.when)((0,i.identical)(t),(0,i.partial)((0,i.unary)(t),[n]),(0,i.pathOr)(t,r,n))});const co=(0,i.curryN)(3,function(t,r,n){return(0,i.defaultTo)(t,(0,i.view)(r,n))});const ao=(0,i.curryN)(2,(0,i.converge)(i.mergeRight,[i.dissocPath,(0,i.pathOr)({})]));const so=(0,i.curry)(function(t,r){return ao((0,i.of)(Array,t),r)});const lo=(0,i.curry)(function(t,r){return(0,i.mergeRight)(r,(0,i.pathOr)({},t,r))});const fo=(0,i.curry)(function(t,r){return lo((0,i.of)(Array,t),r)});const yo=(0,i.curryN)(2,function(t,r){return(0,i.pipe)(i.toPairs,(0,i.map)((0,i.pipe)(i.flip,i.apply)(t)),i.transpose,(0,i.when)(yn(0),function(){return[[],[]]}))(r)});const po=(0,i.curryN)(3,function(t,r,n){return(0,i.pipe)(i.zip,(0,i.map)((0,i.apply)(t)),i.fromPairs)(n,r)});var mo=(0,i.curry)(function(t,r){return Boolean($e(["prototype","isPrototypeOf"],[r],t))});const ho=mo;const bo=(0,i.curryN)(3,function(t,r,n){return(0,i.pipe)((0,i.view)(t),(0,i.equals)(r))(n)});const vo=(0,i.complement)(bo);const go=(0,i.curryN)(3,function(t,r,n){return(0,i.pipe)((0,i.view)(r),t,xt)(n)});const No=(0,i.complement)(go);var So=(0,i.either)((0,i.path)(["@@type"]),(0,i.path)(["constructor","@@type"])),Ao=((0,i.curry)(function(t,r){return So(r)===t}),(0,i.curryN)(2,(0,i.useWith)(i.equals,[So,So])));(0,i.complement)(Ao);function wo(t){return wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wo(t)}function Po(t,r,n){return(r=function(t){var r=function(t,r){if("object"!=wo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,r||"default");if("object"!=wo(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==wo(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var jo=Po({},sr,function(t){return this.constructor[yr](t(this.value))}),Oo=Po({},fr,function(t){var r=this;return t.map(function(t){return t(r.value)})}),Eo=Po({},ir,function(t){return Ao(this,t)&&(0,i.equals)(this.value,t.value)}),Io=Po({},cr,function(t){var r=this.value;return w(this.value)||G(this.value)?r=this.value+t.value:(0,i.pathSatisfies)(m,["value",cr],this)?r=this.value[cr](t.value):(0,i.pathSatisfies)(m,["value","concat"],this)&&(r=this.value.concat(t.value)),this.constructor[yr](r)}),ko=Po({},pr,function(t){var r=t(this.value);return Ao(this,r)?r:this}),qo=Po({},ur,function(t){return Ao(this,t)&&(this.value<t.value||this[ir](t))});function To(t){return To="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},To(t)}function xo(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,Mo(e.key),e)}}function Mo(t){var r=function(t,r){if("object"!=To(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,r||"default");if("object"!=To(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==To(r)?r:r+""}const Fo=function(t,r,n,e,o,u,c,a,s){function l(t){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,l),this.value=t}return f=l,p=[{key:t,value:function(t){return new l(t)}},{key:"of",value:function(t){return new l(t)}},{key:"@@type",get:function(){return"RA/Identity"}}],(y=[{key:"get",value:function(){return this.value}},{key:r,value:function(t){return Oo[fr].call(this,t)}},{key:"ap",value:function(t){return this[fr](t)}},{key:n,value:function(t){return jo[sr].call(this,t)}},{key:"map",value:function(t){return this[sr](t)}},{key:e,value:function(t){return Eo[ir].call(this,t)}},{key:"equals",value:function(t){return this[ir](t)}},{key:o,value:function(t){return Io[cr].call(this,t)}},{key:"concat",value:function(t){return this[cr](t)}},{key:u,value:function(t){return ko[pr].call(this,t)}},{key:"chain",value:function(t){return this[pr](t)}},{key:c,value:function(t){return qo[ur].call(this,t)}},{key:"lte",value:function(t){return this[ur](t)}},{key:a,value:function(){return this.constructor.of((0,i.empty)(this.value))}},{key:"empty",value:function(){return this[ar]()}},{key:s,value:function(t){var r=this;return this.constructor.of(function(n){return r.value(t(n))})}},{key:"contramap",value:function(t){return this[lr](t)}}])&&xo(f.prototype,y),p&&xo(f,p),Object.defineProperty(f,"prototype",{writable:!1}),f;var f,y,p}(yr,fr,sr,ir,cr,pr,ur,ar,lr);const Ro=(0,i.curryN)(1,function(t){var r={"fantasy-land/of":"function"==typeof t["fantasy-land/of"]?t["fantasy-land/of"]:"function"==typeof t.of?t.of:t};return(0,i.curry)(function(t,n){return Fo.of((0,i.traverse)(r,(0,i.pipe)(t,(0,i.prop)("value")),n))})});var _o=(0,i.curry)(function(t,r){return t.from(r)}),Uo=(0,i.curry)(function(t,r){return function(t,r){var n=function(r){return t(r)};return n.from=r,n}((0,i.curry)(function(n,e){return(0,i.map)(r,n(t(e)))}),(0,i.curry)(function(n,e){return(0,i.map)(t,n(r(e)))}))});Uo.from=_o;const Wo=Uo;const Bo=(0,i.complement)(i.propEq);const Co=(0,i.complement)(i.pathEq);var Lo=(0,i.ifElse)(i.gte,function(){throw new Error("low must not be greater than high in inRange(low, high, value)")},(0,i.useWith)(i.both,[i.lte,i.gt]));const $o=(0,i.curry)(function(t,r,n){return Lo(t,r)(n)});const Do=(0,i.complement)(i.equals);const Vo=(0,i.curryN)(2,function(t,r){return!!(0,i.isEmpty)(t)||(0,i.pipe)(i.intersection,i.isNotEmpty)(t,r)});const zo=(0,i.curry)((0,i.compose)(i.complement,i.both));const Go=(0,i.complement)(i.and);const Ko=(0,i.curry)((0,i.compose)(i.complement,i.either));const Zo=(0,i.complement)(i.or);const Jo=(0,i.curry)((0,i.compose)(i.complement,i.allPass));const Xo=(0,i.curryN)(1,(0,i.compose)(i.complement,i.anyPass));const Yo=(0,i.curry)(function(t,r){return(0,i.useWith)((0,i.compose)(t(Ft),En),r)});const Ho=(0,i.nAry)(0);const Qo=(0,i.curryN)(1,(0,i.bind)(Math.round,Math));const ti=(0,i.curryN)(1,(0,i.bind)(Math.ceil,Math));const ri=(0,i.flip)(i.divide);const ni=function(t){var r=Number(t);return ft(r)?r-r%1||(r<0?-0:0===r?r:0):r};var ei=(0,i.curryN)(1,ni);const oi=m(Math.trunc)?(0,i.curryN)(1,(0,i.bind)(Math.trunc,Math)):ei;const ii=function(t){return(t>0)-(t<0)||+t};var ui=(0,i.curryN)(1,ii);const ci=m(Math.sign)?(0,i.curryN)(1,(0,i.bind)(Math.sign,Math)):ui;const ai=(0,i.flip)(i.subtract);const si=Ko($t,(0,i.both)(I,Ko((0,i.hasIn)("toString"),(0,i.hasIn)("valueOf"))));const li=(0,i.ifElse)(si,Number,(0,i.always)(NaN));const fi=(0,i.when)(w,(0,i.replace)(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var yi=function(t,r){if("string"!=typeof t&&!(t instanceof String))throw TypeError("`".concat(r,"` must be a string"))};const pi=function(t,r,n){!function(t,r,n){if(null==n||null==t||null==r)throw TypeError("Input values must not be `null` or `undefined`")}(t,r,n),yi(n,"str"),yi(r,"replaceValue"),function(t){if(!("string"==typeof t||t instanceof String||t instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")}(t);var e=new RegExp(_t(t)?t:fi(t),"g");return(0,i.replace)(e,r,n)};var mi=(0,i.curryN)(3,pi),hi=(0,i.invoker)(2,"replaceAll");const bi=m(String.prototype.replaceAll)?hi:mi;var vi=(0,i.replace)(/^[\s\uFEFF\xA0]+/,""),di=(0,i.invoker)(0,"trimStart");const gi=m(String.prototype.trimStart)?di:vi;var Ni=(0,i.replace)(/[\s\uFEFF\xA0]+$/,""),Si=(0,i.invoker)(0,"trimEnd");const Ai=m(String.prototype.trimEnd)?Si:Ni;const wi=(0,i.curry)(function(t,r){return(0,i.pipe)((0,i.split)(""),(0,i.dropLastWhile)(Jn(t)),(0,i.join)(""))(r)});const Pi=(0,i.curry)(function(t,r){return(0,i.pipe)((0,i.split)(""),(0,i.dropWhile)(Jn(t)),(0,i.join)(""))(r)});const ji=function(t,r,n){var e=r|0,o=String(a(t)?t:" ");if(n.length>=e)return String(n);if((e-=n.length)>o.length){var i=e/o.length;o+=m(String.prototype.repeat)?o.repeat(i):ee(o,i)}return o.slice(0,e)+String(n)};var Oi=(0,i.flip)((0,i.invoker)(2,"padStart")),Ei=(0,i.curry)(ji);const Ii=m(String.prototype.padStart)?Oi:Ei;const ki=function(t,r,n){var e=r|0,o=String(a(t)?t:" ");if(n.length>e)return String(n);if((e-=n.length)>o.length){var i=e/o.length;o+=m(String.prototype.repeat)?o.repeat(i):ee(o,i)}return String(n)+o.slice(0,e)};var qi=(0,i.curry)(ki),Ti=(0,i.flip)((0,i.invoker)(2,"padEnd"));const xi=m(String.prototype.padEnd)?Ti:qi;const Mi=xi(" ");const Fi=Ii(" ");return o})());