ramda-adjunct 5.1.0 → 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 (95) hide show
  1. package/CHANGELOG.md +10 -1
  2. package/README.md +2 -2
  3. package/dist/RA.node.js +5644 -5736
  4. package/dist/RA.node.min.js +1 -1
  5. package/dist/RA.web.js +5650 -5742
  6. package/dist/RA.web.min.js +1 -1
  7. package/dist/RA.web.standalone.js +11760 -11501
  8. package/dist/RA.web.standalone.min.js +1 -1
  9. package/es/copyKeys.js +2 -3
  10. package/es/index.js +0 -1
  11. package/es/internal/ap.js +1 -1
  12. package/es/internal/ponyfills/Math.trunc.js +0 -2
  13. package/es/internal/ponyfills/Number.isFinite.js +0 -2
  14. package/es/internal/ponyfills/Number.isNaN.js +0 -2
  15. package/es/internal/ponyfills/Promise.any.js +1 -1
  16. package/es/internal/ponyfills/String.padEnd.js +0 -1
  17. package/es/internal/ponyfills/String.padStart.js +0 -1
  18. package/es/internal/ponyfills/String.repeat.js +1 -1
  19. package/es/isArrayLike.js +1 -2
  20. package/es/isMap.js +3 -3
  21. package/es/isNotAsyncFunction.js +1 -2
  22. package/es/isNotFunction.js +1 -2
  23. package/es/isNotGeneratorFunction.js +1 -2
  24. package/es/isNotObj.js +1 -2
  25. package/es/isNotObjLike.js +1 -2
  26. package/es/isNotPlainObj.js +1 -2
  27. package/es/isObj.js +1 -2
  28. package/es/isObjLike.js +1 -2
  29. package/es/isPlainObj.js +1 -2
  30. package/es/isSentinelValue.js +1 -1
  31. package/es/isValidDate.js +1 -2
  32. package/es/lensTraverse.js +1 -3
  33. package/es/mergeProp.js +2 -2
  34. package/es/nand.js +1 -2
  35. package/es/neither.js +1 -2
  36. package/es/nor.js +1 -2
  37. package/es/notBoth.js +1 -2
  38. package/es/omitBy.js +1 -2
  39. package/es/pathNotEq.js +1 -2
  40. package/es/reduceP.js +0 -1
  41. package/es/reduceRightP.js +0 -1
  42. package/es/renameKey.js +1 -2
  43. package/es/resolveP.js +1 -2
  44. package/es/seq.js +0 -2
  45. package/es/sortByProps.js +1 -1
  46. package/es/stubUndefined.js +1 -2
  47. package/es/toInteger32.js +1 -1
  48. package/es/toUinteger32.js +0 -1
  49. package/lib/anyP.js +1 -2
  50. package/lib/copyKeys.js +2 -4
  51. package/lib/fantasy-land/Identity.js +1 -2
  52. package/lib/fantasy-land/traits.js +1 -2
  53. package/lib/index.js +2 -4
  54. package/lib/internal/ap.js +2 -3
  55. package/lib/internal/ponyfills/Math.trunc.js +0 -2
  56. package/lib/internal/ponyfills/Number.isFinite.js +0 -1
  57. package/lib/internal/ponyfills/Number.isNaN.js +0 -1
  58. package/lib/internal/ponyfills/Promise.any.js +1 -1
  59. package/lib/internal/ponyfills/String.padEnd.js +0 -1
  60. package/lib/internal/ponyfills/String.padStart.js +0 -1
  61. package/lib/internal/ponyfills/String.repeat.js +1 -1
  62. package/lib/isArrayLike.js +1 -2
  63. package/lib/isMap.js +3 -3
  64. package/lib/isNotAsyncFunction.js +1 -2
  65. package/lib/isNotFunction.js +1 -2
  66. package/lib/isNotGeneratorFunction.js +1 -2
  67. package/lib/isNotObj.js +1 -2
  68. package/lib/isNotObjLike.js +1 -2
  69. package/lib/isNotPlainObj.js +1 -2
  70. package/lib/isObj.js +1 -2
  71. package/lib/isObjLike.js +1 -2
  72. package/lib/isPlainObj.js +1 -2
  73. package/lib/isSentinelValue.js +1 -1
  74. package/lib/isValidDate.js +1 -2
  75. package/lib/lensTraverse.js +1 -2
  76. package/lib/mergeProp.js +2 -2
  77. package/lib/nand.js +1 -1
  78. package/lib/neither.js +1 -2
  79. package/lib/nor.js +1 -1
  80. package/lib/notBoth.js +1 -2
  81. package/lib/omitBy.js +1 -2
  82. package/lib/pathNotEq.js +1 -2
  83. package/lib/reduceP.js +0 -1
  84. package/lib/reduceRightP.js +0 -1
  85. package/lib/renameKey.js +1 -3
  86. package/lib/resolveP.js +1 -2
  87. package/lib/seq.js +0 -2
  88. package/lib/sortByProps.js +1 -1
  89. package/lib/stubUndefined.js +1 -1
  90. package/lib/toInteger32.js +1 -1
  91. package/lib/toUinteger32.js +0 -1
  92. package/package.json +63 -86
  93. package/types/index.d.ts +12 -21
  94. package/es/renameKeys.js +0 -39
  95. 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={};e.r(o),e.d(o,{Identity:()=>Ro,Y:()=>Cr,allEqual:()=>ne,allEqualTo:()=>fe,allIdentical:()=>ce,allIdenticalTo:()=>se,allP:()=>Pr,allSettledP:()=>Br,allUnique:()=>Pe,anyP:()=>sn,appendFlipped:()=>Zn,argsPass:()=>Ho,async:()=>Zr,cata:()=>gr,catchP:()=>jr,ceil:()=>ri,compact:()=>Kn,concatAll:()=>qn,concatRight:()=>Tn,copyKeys:()=>ro,curryRight:()=>wr,curryRightN:()=>Ar,defaultWhen:()=>dn,delayP:()=>Tr,dispatch:()=>Kr,divideNum:()=>ni,dropArgs:()=>Qo,ensureArray:()=>In,escapeRegExp:()=>yi,filterIndexed:()=>An,findOr:()=>Le,firstP:()=>sn,flattenDepth:()=>ve,flattenPath:()=>fo,flattenProp:()=>yo,floor:()=>Ue,fnull:()=>Nn,inRange:()=>Do,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:()=>bo,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:()=>vo,lensIso:()=>Bo,lensNotEq:()=>go,lensNotSatisfy:()=>So,lensSatisfies:()=>No,lensTraverse:()=>_o,liftF:()=>dr,liftFN:()=>vr,list:()=>En,mapIndexed:()=>gn,mergePath:()=>oo,mergePaths:()=>eo,mergeProp:()=>io,mergeProps:()=>no,move:()=>Yn,nand:()=>Ko,neither:()=>Zo,noneP:()=>Ir,nonePass:()=>Yo,noop:()=>or,nor:()=>Jo,notAllPass:()=>Xo,notAllUnique:()=>je,notBoth:()=>Go,notEqual:()=>Vo,omitBy:()=>uo,omitIndexes:()=>Gn,overlaps:()=>zo,padCharsEnd:()=>Mi,padCharsStart:()=>ki,padEnd:()=>Fi,padStart:()=>Ri,pathNotEq:()=>Lo,pathOrLazy:()=>co,paths:()=>Ve,pickIndexes:()=>On,propNotEq:()=>Co,rangeStep:()=>Be,reduceIndexed:()=>Sn,reduceP:()=>Rn,reduceRightP:()=>Cn,rejectP:()=>Or,renameKey:()=>Je,renameKeyWith:()=>Xe,renameKeys:()=>Ge,renameKeysWith:()=>ze,repeatStr:()=>ue,replaceAll:()=>vi,resolveP:()=>Er,round:()=>ti,seq:()=>Lr,sequencing:()=>Lr,sign:()=>ai,skipTake:()=>_e,sliceFrom:()=>Ln,sliceTo:()=>$n,sortByPaths:()=>Fe,sortByProp:()=>Te,sortByProps:()=>ke,spreadPath:()=>so,spreadProp:()=>lo,stubArray:()=>er,stubNull:()=>tr,stubObj:()=>rr,stubObject:()=>rr,stubString:()=>nr,stubUndefined:()=>u,subtractNum:()=>si,thenCatchP:()=>xr,toArray:()=>we,toInt32:()=>bt,toInteger32:()=>bt,toNumber:()=>fi,toUint32:()=>dt,toUinteger32:()=>dt,trimCharsEnd:()=>Pi,trimCharsStart:()=>ji,trimEnd:()=>wi,trimLeft:()=>Ni,trimRight:()=>wi,trimStart:()=>Ni,trunc:()=>ii,unzipObjWith:()=>po,viewOr:()=>ao,weave:()=>Nr,weaveLazy:()=>Sr,zipObjWith:()=>mo});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=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)}));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 Ge=(0,i.curry)((function(t,r){return ze(function(t){return function(r){return(0,i.has)(r,t)?t[r]:r}}(t),r)}));function Ke(t){return Ke="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},Ke(t)}function Ze(t,r,n){return(r=function(t){var r=function(t,r){if("object"!=Ke(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,r||"default");if("object"!=Ke(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Ke(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}const Je=(0,i.curry)((function(t,r,n){return Ge(Ze({},t,r),n)}));const Xe=(0,i.curry)((function(t,r,n){return ze((0,i.when)((0,i.equals)(r),t),n)}));function Ye(t){return Ye="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},Ye(t)}function He(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 Qe(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?He(Object(n),!0).forEach((function(r){to(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function to(t,r,n){return(r=function(t){var r=function(t,r){if("object"!=Ye(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,r||"default");if("object"!=Ye(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Ye(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}const ro=(0,i.curryN)(2,(function(t,r){return Qe(Qe({},r),Ge(t,r))}));const no=(0,i.curryN)(2,(0,i.pipe)(i.props,i.mergeAll));const eo=(0,i.curryN)(2,(0,i.pipe)(Ve,i.mergeAll));const oo=(0,i.curry)((function(t,r,n){return(0,i.over)((0,i.lensPath)(t),(0,i.mergeLeft)(r),n)}));const io=(0,i.curry)((function(t,r,n){return oo((0,i.of)(Array,t),r,n)}));const uo=(0,i.useWith)(i.pickBy,[i.complement,i.identity]);const co=(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 ao=(0,i.curryN)(3,(function(t,r,n){return(0,i.defaultTo)(t,(0,i.view)(r,n))}));const so=(0,i.curryN)(2,(0,i.converge)(i.mergeRight,[i.dissocPath,(0,i.pathOr)({})]));const lo=(0,i.curry)((function(t,r){return so((0,i.of)(Array,t),r)}));const fo=(0,i.curry)((function(t,r){return(0,i.mergeRight)(r,(0,i.pathOr)({},t,r))}));const yo=(0,i.curry)((function(t,r){return fo((0,i.of)(Array,t),r)}));const po=(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 mo=(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 ho=(0,i.curry)((function(t,r){return Boolean($e(["prototype","isPrototypeOf"],[r],t))}));const bo=ho;const vo=(0,i.curryN)(3,(function(t,r,n){return(0,i.pipe)((0,i.view)(t),(0,i.equals)(r))(n)}));const go=(0,i.complement)(vo);const No=(0,i.curryN)(3,(function(t,r,n){return(0,i.pipe)((0,i.view)(r),t,xt)(n)}));const So=(0,i.complement)(No);var Ao=(0,i.either)((0,i.path)(["@@type"]),(0,i.path)(["constructor","@@type"])),wo=((0,i.curry)((function(t,r){return Ao(r)===t})),(0,i.curryN)(2,(0,i.useWith)(i.equals,[Ao,Ao])));(0,i.complement)(wo);function Po(t){return Po="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},Po(t)}function jo(t,r,n){return(r=function(t){var r=function(t,r){if("object"!=Po(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,r||"default");if("object"!=Po(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Po(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var Oo=jo({},sr,(function(t){return this.constructor[yr](t(this.value))})),Eo=jo({},fr,(function(t){var r=this;return t.map((function(t){return t(r.value)}))})),Io=jo({},ir,(function(t){return wo(this,t)&&(0,i.equals)(this.value,t.value)})),ko=jo({},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)})),qo=jo({},pr,(function(t){var r=t(this.value);return wo(this,r)?r:this})),To=jo({},ur,(function(t){return wo(this,t)&&(this.value<t.value||this[ir](t))}));function xo(t){return xo="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},xo(t)}function Mo(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,Fo(e.key),e)}}function Fo(t){var r=function(t,r){if("object"!=xo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,r||"default");if("object"!=xo(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==xo(r)?r:r+""}const Ro=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 Eo[fr].call(this,t)}},{key:"ap",value:function(t){return this[fr](t)}},{key:n,value:function(t){return Oo[sr].call(this,t)}},{key:"map",value:function(t){return this[sr](t)}},{key:e,value:function(t){return Io[ir].call(this,t)}},{key:"equals",value:function(t){return this[ir](t)}},{key:o,value:function(t){return ko[cr].call(this,t)}},{key:"concat",value:function(t){return this[cr](t)}},{key:u,value:function(t){return qo[pr].call(this,t)}},{key:"chain",value:function(t){return this[pr](t)}},{key:c,value:function(t){return To[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)}}])&&Mo(f.prototype,y),p&&Mo(f,p),Object.defineProperty(f,"prototype",{writable:!1}),f;var f,y,p}(yr,fr,sr,ir,cr,pr,ur,ar,lr);const _o=(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 Ro.of((0,i.traverse)(r,(0,i.pipe)(t,(0,i.prop)("value")),n))}))}));var Uo=(0,i.curry)((function(t,r){return t.from(r)})),Wo=(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)))})))}));Wo.from=Uo;const Bo=Wo;const Co=(0,i.complement)(i.propEq);const Lo=(0,i.complement)(i.pathEq);var $o=(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 Do=(0,i.curry)((function(t,r,n){return $o(t,r)(n)}));const Vo=(0,i.complement)(i.equals);const zo=(0,i.curryN)(2,(function(t,r){return!!(0,i.isEmpty)(t)||(0,i.pipe)(i.intersection,i.isNotEmpty)(t,r)}));const Go=(0,i.curry)((0,i.compose)(i.complement,i.both));const Ko=(0,i.complement)(i.and);const Zo=(0,i.curry)((0,i.compose)(i.complement,i.either));const Jo=(0,i.complement)(i.or);const Xo=(0,i.curry)((0,i.compose)(i.complement,i.allPass));const Yo=(0,i.curryN)(1,(0,i.compose)(i.complement,i.anyPass));const Ho=(0,i.curry)((function(t,r){return(0,i.useWith)((0,i.compose)(t(Ft),En),r)}));const Qo=(0,i.nAry)(0);const ti=(0,i.curryN)(1,(0,i.bind)(Math.round,Math));const ri=(0,i.curryN)(1,(0,i.bind)(Math.ceil,Math));const ni=(0,i.flip)(i.divide);const ei=function(t){var r=Number(t);return ft(r)?r-r%1||(r<0?-0:0===r?r:0):r};var oi=(0,i.curryN)(1,ei);const ii=m(Math.trunc)?(0,i.curryN)(1,(0,i.bind)(Math.trunc,Math)):oi;const ui=function(t){return(t>0)-(t<0)||+t};var ci=(0,i.curryN)(1,ui);const ai=m(Math.sign)?(0,i.curryN)(1,(0,i.bind)(Math.sign,Math)):ci;const si=(0,i.flip)(i.subtract);const li=Zo($t,(0,i.both)(I,Zo((0,i.hasIn)("toString"),(0,i.hasIn)("valueOf"))));const fi=(0,i.ifElse)(li,Number,(0,i.always)(NaN));const yi=(0,i.when)(w,(0,i.replace)(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var pi=function(t,r){if("string"!=typeof t&&!(t instanceof String))throw TypeError("`".concat(r,"` must be a string"))};const mi=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),pi(n,"str"),pi(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:yi(t),"g");return(0,i.replace)(e,r,n)};var hi=(0,i.curryN)(3,mi),bi=(0,i.invoker)(2,"replaceAll");const vi=m(String.prototype.replaceAll)?bi:hi;var di=(0,i.replace)(/^[\s\uFEFF\xA0]+/,""),gi=(0,i.invoker)(0,"trimStart");const Ni=m(String.prototype.trimStart)?gi:di;var Si=(0,i.replace)(/[\s\uFEFF\xA0]+$/,""),Ai=(0,i.invoker)(0,"trimEnd");const wi=m(String.prototype.trimEnd)?Ai:Si;const Pi=(0,i.curry)((function(t,r){return(0,i.pipe)((0,i.split)(""),(0,i.dropLastWhile)(Jn(t)),(0,i.join)(""))(r)}));const ji=(0,i.curry)((function(t,r){return(0,i.pipe)((0,i.split)(""),(0,i.dropWhile)(Jn(t)),(0,i.join)(""))(r)}));const Oi=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 Ei=(0,i.flip)((0,i.invoker)(2,"padStart")),Ii=(0,i.curry)(Oi);const ki=m(String.prototype.padStart)?Ei:Ii;const qi=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 Ti=(0,i.curry)(qi),xi=(0,i.flip)((0,i.invoker)(2,"padEnd"));const Mi=m(String.prototype.padEnd)?xi:Ti;const Fi=Mi(" ");const Ri=ki(" ");return 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})());