functype 0.8.29 → 0.8.31

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 (96) hide show
  1. package/README.md +21 -21
  2. package/dist/chunk-2U34DUZU.js +1 -0
  3. package/dist/chunk-B42G4XDT.js +1 -0
  4. package/dist/chunk-HD6YYUHO.mjs +1 -0
  5. package/dist/chunk-JF5YGNCO.mjs +1 -0
  6. package/dist/chunk-SQWNJC6O.js +1 -0
  7. package/dist/chunk-YBXR3LKX.mjs +1 -0
  8. package/dist/collections/index.d.mts +2 -1
  9. package/dist/collections/index.d.ts +2 -1
  10. package/dist/core/base/Base.d.mts +11 -0
  11. package/dist/core/base/Base.d.ts +11 -0
  12. package/dist/core/base/Base.js +1 -0
  13. package/dist/core/base/Base.mjs +1 -0
  14. package/dist/core/error/Throwable.d.mts +12 -0
  15. package/dist/core/error/Throwable.d.ts +12 -0
  16. package/dist/core/error/Throwable.js +1 -0
  17. package/dist/core/error/Throwable.mjs +1 -0
  18. package/dist/core/task/Task.d.mts +32 -0
  19. package/dist/core/task/Task.d.ts +32 -0
  20. package/dist/core/task/Task.js +1 -0
  21. package/dist/core/task/Task.mjs +1 -0
  22. package/dist/either/Either.d.mts +2 -1
  23. package/dist/either/Either.d.ts +2 -1
  24. package/dist/either/Either.js +1 -1
  25. package/dist/either/Either.mjs +1 -1
  26. package/dist/{index-CFxuzA1t.d.mts → index-C05iGqWH.d.mts} +4 -13
  27. package/dist/{index-BFM7JSfS.d.ts → index-CgK2qCd3.d.ts} +4 -13
  28. package/dist/index.d.mts +2 -1
  29. package/dist/index.d.ts +2 -1
  30. package/dist/index.js +1 -1
  31. package/dist/index.mjs +1 -1
  32. package/dist/iterable/Seq.d.mts +2 -1
  33. package/dist/iterable/Seq.d.ts +2 -1
  34. package/dist/iterable/Seq.js +1 -1
  35. package/dist/iterable/Seq.mjs +1 -1
  36. package/dist/iterable/index.d.mts +2 -1
  37. package/dist/iterable/index.d.ts +2 -1
  38. package/dist/iterable/index.js +1 -1
  39. package/dist/iterable/index.mjs +1 -1
  40. package/dist/list/List.d.mts +2 -1
  41. package/dist/list/List.d.ts +2 -1
  42. package/dist/list/List.js +1 -1
  43. package/dist/list/List.mjs +1 -1
  44. package/dist/map/Map.d.mts +2 -1
  45. package/dist/map/Map.d.ts +2 -1
  46. package/dist/map/Map.js +1 -1
  47. package/dist/map/Map.mjs +1 -1
  48. package/dist/option/Option.d.mts +2 -1
  49. package/dist/option/Option.d.ts +2 -1
  50. package/dist/option/Option.js +1 -1
  51. package/dist/option/Option.mjs +1 -1
  52. package/dist/set/Set.d.mts +2 -1
  53. package/dist/set/Set.d.ts +2 -1
  54. package/dist/set/Set.js +1 -1
  55. package/dist/set/Set.mjs +1 -1
  56. package/dist/try/Try.d.mts +2 -1
  57. package/dist/try/Try.d.ts +2 -1
  58. package/dist/try/Try.js +1 -1
  59. package/dist/try/Try.mjs +1 -1
  60. package/dist/util/index.d.mts +2 -1
  61. package/dist/util/index.d.ts +2 -1
  62. package/dist/util/index.js +1 -1
  63. package/dist/util/index.mjs +1 -1
  64. package/dist/valuable/Valuable.d.mts +6 -0
  65. package/dist/valuable/Valuable.d.ts +6 -0
  66. package/dist/valuable/Valuable.js +1 -0
  67. package/dist/valuable/Valuable.mjs +1 -0
  68. package/package.json +19 -15
  69. package/dist/chunk-2WWZ32O4.js +0 -1
  70. package/dist/chunk-BNGW33I2.mjs +0 -1
  71. package/dist/either/EitherT.d.mts +0 -5
  72. package/dist/either/EitherT.d.ts +0 -5
  73. package/dist/either/EitherT.js +0 -1
  74. package/dist/either/EitherT.mjs +0 -1
  75. package/lib/TaskPromise.d.ts +0 -3
  76. package/lib/collections/index.d.ts +0 -8
  77. package/lib/either/Either.d.ts +0 -52
  78. package/lib/either/EitherT.d.ts +0 -9
  79. package/lib/error/ParseError.d.ts +0 -6
  80. package/lib/functor/index.d.ts +0 -15
  81. package/lib/identity/Identity.d.ts +0 -4
  82. package/lib/index.d.ts +0 -22
  83. package/lib/iterable/Seq.d.ts +0 -31
  84. package/lib/iterable/index.d.ts +0 -22
  85. package/lib/list/List.d.ts +0 -26
  86. package/lib/map/Map.d.ts +0 -17
  87. package/lib/map/shim.d.ts +0 -2
  88. package/lib/option/Option.d.ts +0 -30
  89. package/lib/serializable/Serializable.d.ts +0 -15
  90. package/lib/set/Set.d.ts +0 -15
  91. package/lib/set/shim.d.ts +0 -2
  92. package/lib/try/Try.d.ts +0 -18
  93. package/lib/tuple/Tuple.d.ts +0 -9
  94. package/lib/typeable/Typeable.d.ts +0 -4
  95. package/lib/util/index.d.ts +0 -3
  96. package/lib/util/isIterable.d.ts +0 -1
package/README.md CHANGED
@@ -1,21 +1,21 @@
1
- # functype
2
-
3
- A small functional library for TypeScript inspired by Scala Standard Library.
4
-
5
- [![Node.js Build](https://github.com/jordanburke/functype/actions/workflows/pnpm-build.yml/badge.svg)](https://github.com/jordanburke/functype/actions/workflows/pnpm-build.yml)
6
-
7
- ## Installation
8
-
9
- You can install `functype` using any package manager:
10
-
11
- ```bash
12
- npm install functype
13
- ```
14
-
15
- ```bash
16
- pnpm install functype
17
- ```
18
-
19
- ```bash
20
- yarn install functype
21
- ```
1
+ # functype
2
+
3
+ A small functional library for TypeScript inspired by Scala Standard Library.
4
+
5
+ [![Node.js Build](https://github.com/jordanburke/functype/actions/workflows/pnpm-build.yml/badge.svg)](https://github.com/jordanburke/functype/actions/workflows/pnpm-build.yml)
6
+
7
+ ## Installation
8
+
9
+ You can install `functype` using any package manager:
10
+
11
+ ```bash
12
+ npm install functype
13
+ ```
14
+
15
+ ```bash
16
+ pnpm install functype
17
+ ```
18
+
19
+ ```bash
20
+ yarn install functype
21
+ ```
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var o="Throwable",r= exports.a =(e,a)=>{let t=e instanceof Error?e.message:typeof e=="string"?e:"An unknown error occurred",s=e instanceof Error?e.stack:void 0,n=new Error(t);return n.name=o,{_tag:o,name:n.name,message:n.message,stack:_nullishCoalesce(s, () => (n.stack)),data:a}};r.NAME=o;exports.a = r;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkOXLZ6UIZjs = require('./chunk-OXLZ6UIZ.js');var _chunkBNNK42JCjs = require('./chunk-BNNK42JC.js');var _chunk5VTXJIR3js = require('./chunk-5VTXJIR3.js');var _chunk3VJERXBPjs = require('./chunk-3VJERXBP.js');var _safestablestringify = require('safe-stable-stringify'); var _safestablestringify2 = _interopRequireDefault(_safestablestringify);var c=e=>{let t=_chunkBNNK42JCjs.a.call(void 0, e)?e:e instanceof Object&&"toArray"in e?e.toArray():[],r=Array.from(t),f="Seq";return{[Symbol.iterator]:()=>r[Symbol.iterator](),get length(){return r.length},_tag:f,map:o=>c(r.map(o)),flatMap:o=>c(r.flatMap(n=>o(n).toArray())),forEach:o=>r.forEach(o),count:o=>r.filter(o).length,exists:o=>r.some(o),filter:o=>c(r.filter(o)),filterNot:o=>c(r.filter(n=>!o(n))),find:o=>L(r.find(o)),get head(){return r[0]},get headOption(){return r.length>0?L(r[0]):A()},get isEmpty(){return r.length===0},get size(){return r.length},toArray:()=>[...r],reduce:o=>r.reduce(o),reduceRight:o=>r.reduceRight(o),foldLeft:o=>n=>r.reduce(n,o),foldRight:o=>n=>r.reduceRight((u,U)=>n(U,u),o),toString:()=>`Seq(${_safestablestringify2.default.call(void 0, e)})`,toValue:()=>({_tag:f,value:r})}},T= exports.e =e=>c(e);var R=e=>{let t=_chunkBNNK42JCjs.a.call(void 0, e)?new (0, _chunk3VJERXBPjs.a)(e):new (0, _chunk3VJERXBPjs.a)(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _2 => _2.toArray, 'call', _3 => _3()]), () => ([]))),r=T(t),f={...r,add:o=>R([...t,o]),remove:o=>{let n=new (0, _chunk3VJERXBPjs.a)(t);return n.delete(o),R(n)},contains:o=>t.has(o),has:o=>t.has(o),map:o=>R(r.map(o)),flatMap:o=>R(r.flatMap(o)),toList:()=>p(t),toSet:()=>f,toString:()=>`Set(${Array.from(t).toString()})`};return f},x= exports.f =e=>R(e);var d=e=>{function t(n){return n!=null&&typeof n[Symbol.iterator]=="function"}let r=Array.isArray(e)?e:t(e)?Array.from(e):[],f=T(r),o={...f,_tag:"List",length:r.length,map:n=>d(r.map(n)),flatMap:n=>d(f.flatMap(n)),remove:n=>{let u=r.indexOf(n);return o.removeAt(u)},contains:n=>r.includes(n),add:n=>d([...r,n]),removeAt:n=>n<0||n>=r.length?o:d([...r.slice(0,n),...r.slice(n+1)]),get:n=>L(r[n]),concat:n=>d([...r,...n.toArray()]),toList:()=>o,toSet:()=>x(r),toValue:()=>({_tag:"List",value:r}),toString:()=>`List(${_safestablestringify2.default.call(void 0, p(r))})`};return new Proxy(o,{get(n,u){return typeof u=="symbol"||isNaN(Number(u))?n[u]:n.get(Number(u))}})},p= exports.g =e=>d(e),j= exports.h =e=>d(e);console.assert(j);var v=e=>({_tag:"Right",value:e,isLeft:()=>!1,isRight:()=>!0,getOrElse:t=>e,getOrThrow:()=>e,map:t=>s(t(e)),mapAsync:t=>t(e).then(r=>s(r)).catch(r=>Promise.resolve(i(r))),merge:t=>t.isLeft()?i(t.value):s([e,t.value]),flatMap:t=>t(e),flatMapAsync:t=>t(e).catch(r=>i(r)),toOption:()=>y(e),toList:()=>p([e]),toString:()=>`Right(${_safestablestringify2.default.call(void 0, e)})`,[Symbol.iterator]:function*(){yield e},yield:function*(){yield e},traverse:t=>{let r=t(e);return r.isLeft()?i(r.value):s([r.value])},lazyMap:function*(t){yield s(t(e))},tap:t=>(t(e),s(e)),tapLeft:t=>s(e),mapLeft:t=>s(e),bimap:(t,r)=>s(r(e)),fold:(t,r)=>r(e),swap:()=>i(e),then:(t,r)=>Promise.resolve(e).then(t,r)}),V=e=>({_tag:"Left",value:e,isLeft:()=>!0,isRight:()=>!1,getOrElse:t=>t,getOrThrow:()=>{throw e},map:t=>i(e),mapAsync:t=>Promise.resolve(i(e)),merge:t=>i(e),flatMap:t=>i(e),flatMapAsync:t=>Promise.resolve(i(e)),toOption:()=>A(),toList:()=>p(),toString:()=>`Left(${_safestablestringify2.default.call(void 0, e)})`,[Symbol.iterator]:function*(){},yield:function*(){},traverse:t=>i(e),lazyMap:function*(t){yield i(e)},tap:t=>i(e),tapLeft:t=>(t(e),i(e)),mapLeft:t=>i(t(e)),bimap:(t,r)=>i(t(e)),fold:(t,r)=>t(e),swap:()=>s(e),then:(t,r)=>Promise.reject(e).then(null,r)}),s= exports.i =e=>v(e),i= exports.j =e=>V(e),Ee= exports.k =e=>e.isRight(),xe= exports.l =e=>e.isLeft(),Ue= exports.m =(e,t)=>{try{return s(e())}catch(r){return i(t(r))}},G= exports.n =e=>v(e);console.assert(G);var D=e=>V(e);console.assert(D);var Be=async(e,t)=>{try{let r=await e();return s(r)}catch(r){return i(t(r))}},H= exports.q ={sequence:e=>{let t=[];for(let r of e){if(r.isLeft())return i(r.value);t.push(r.value)}return s(t)},traverse:(e,t)=>H.sequence(e.map(t)),fromNullable:(e,t)=>e==null?i(t):s(e),fromPredicate:(e,t,r)=>t(e)?s(e):i(r),ap:(e,t)=>e.flatMap(r=>t.map(r)),fromPromise:async(e,t)=>{try{let r=await e;return s(r)}catch(r){return i(t(r))}}};var m=e=>{let t={values:new (0, _chunk5VTXJIR3js.a)(e)},r=()=>Array.from(t.values.entries()).map(([a,l])=>_chunkOXLZ6UIZjs.a.call(void 0, [a,l])),f=a=>m(new (0, _chunk5VTXJIR3js.a)(t.values).set(a.toArray()[0],a.toArray()[1]).entries()),o=a=>{let l=new (0, _chunk5VTXJIR3js.a)(t.values);return l.delete(a)?m(l.entries()):m(t.values.entries())},n=a=>t.values.get(a[0])===a[1],u=()=>t.values.size,U=a=>m(Array.from(t.values.entries()).map(([l,F])=>[l,a(F)])),I=a=>{let l=m(t.values.entries()).toList();return m(l.flatMap(a).toArray())},M=a=>T(r()).reduce(a),w=a=>T(r()).reduceRight(a),P=a=>l=>T(r()).foldLeft(a)(l),k=a=>l=>T(r()).foldRight(a)(l),q=a=>L(t.values.get(a)),z=(a,l)=>L(t.values.get(a)).getOrElse(l),N=()=>t.values.size===0;return{add:f,remove:o,contains:n,get size(){return u()},map:U,flatMap:I,reduce:M,reduceRight:w,foldLeft:P,foldRight:k,get:q,getOrElse:z,get isEmpty(){return N()},orElse:(a,l)=>L(t.values.get(a)).orElse(l),toList:()=>p(r()),toSet:()=>x(r()),toString:()=>`Map(${r().toString()})`}},Pe= exports.r =e=>m(e);var K=e=>({_tag:"Success",value:e,error:void 0,isSuccess:()=>!0,isFailure:()=>!1,get:()=>e,getOrElse:t=>e,orElse:t=>K(e),orThrow:t=>e,toEither:()=>s(e),map:t=>J(()=>t(e)),flatMap:t=>t(e),toString:()=>`Success(${_safestablestringify2.default.call(void 0, e)})`}),B=e=>({_tag:"Failure",value:void 0,error:e,isSuccess:()=>!1,isFailure:()=>!0,get:()=>{throw e},getOrElse:t=>t,orElse:t=>t,orThrow:t=>{throw t},toEither:()=>i(e),map:t=>B(e),flatMap:t=>B(e),toString:()=>`Failure(${_safestablestringify2.default.call(void 0, e)}))`}),J= exports.s =e=>{try{return K(e())}catch(t){return B(t instanceof Error?t:new Error(String(t)))}};var y=e=>({_tag:"Some",value:e,isEmpty:!1,get:()=>e,getOrElse:()=>e,orElse:()=>y(e),map:t=>y(t(e)),filter(t){return t(e)?y(e):h},flatMap:t=>t(e),reduce:t=>t(void 0,e),reduceRight:t=>t(void 0,e),foldLeft:t=>r=>r(t,e),foldRight:t=>r=>r(e,t),toList:()=>p([e]),contains:t=>t===e,size:1,toEither:t=>s(e),toString:()=>`Some(${_safestablestringify2.default.call(void 0, e)})`,toValue:()=>({_tag:"Some",value:e})}),h={_tag:"None",value:void 0,isEmpty:!0,get:()=>{throw new Error("Cannot call get() on None")},getOrElse:e=>e,orElse:e=>e,map:e=>h,filter(e){return h},flatMap:e=>h,reduce:()=>{},reduceRight:()=>{},foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>p([]),contains:()=>!1,size:0,toEither:e=>i(e),toString:()=>"None",toValue:()=>({_tag:"None",value:void 0})},A= exports.b =()=>h,L= exports.c =e=>e!=null?y(e):A();exports.a = y; exports.b = A; exports.c = L; exports.d = c; exports.e = T; exports.f = x; exports.g = p; exports.h = j; exports.i = s; exports.j = i; exports.k = Ee; exports.l = xe; exports.m = Ue; exports.n = G; exports.o = D; exports.p = Be; exports.q = H; exports.r = Pe; exports.s = J;
@@ -0,0 +1 @@
1
+ var o="Throwable",r=(e,a)=>{let t=e instanceof Error?e.message:typeof e=="string"?e:"An unknown error occurred",s=e instanceof Error?e.stack:void 0,n=new Error(t);return n.name=o,{_tag:o,name:n.name,message:n.message,stack:s??n.stack,data:a}};r.NAME=o;export{r as a};
@@ -0,0 +1 @@
1
+ import{a as t}from"./chunk-V7DKESTM.mjs";function e(r){return{...t(r),toString(){return`${r}()`}}}export{e as a};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5O6YELD3js = require('./chunk-5O6YELD3.js');function e(r){return{..._chunk5O6YELD3js.a.call(void 0, r),toString(){return`${r}()`}}}exports.a = e;
@@ -0,0 +1 @@
1
+ import{a as S}from"./chunk-2I2NKDFN.mjs";import{a as g}from"./chunk-RRAIFS3D.mjs";import{a as E}from"./chunk-377WQNCB.mjs";import{a as b}from"./chunk-HA5XD5KC.mjs";import Q from"safe-stable-stringify";import _ from"safe-stable-stringify";import $ from"safe-stable-stringify";import C from"safe-stable-stringify";var c=e=>{let t=g(e)?e:e instanceof Object&&"toArray"in e?e.toArray():[],r=Array.from(t),f="Seq";return{[Symbol.iterator]:()=>r[Symbol.iterator](),get length(){return r.length},_tag:f,map:o=>c(r.map(o)),flatMap:o=>c(r.flatMap(n=>o(n).toArray())),forEach:o=>r.forEach(o),count:o=>r.filter(o).length,exists:o=>r.some(o),filter:o=>c(r.filter(o)),filterNot:o=>c(r.filter(n=>!o(n))),find:o=>L(r.find(o)),get head(){return r[0]},get headOption(){return r.length>0?L(r[0]):A()},get isEmpty(){return r.length===0},get size(){return r.length},toArray:()=>[...r],reduce:o=>r.reduce(o),reduceRight:o=>r.reduceRight(o),foldLeft:o=>n=>r.reduce(n,o),foldRight:o=>n=>r.reduceRight((u,U)=>n(U,u),o),toString:()=>`Seq(${C(e)})`,toValue:()=>({_tag:f,value:r})}},T=e=>c(e);var R=e=>{let t=g(e)?new b(e):new b(e?.toArray()??[]),r=T(t),f={...r,add:o=>R([...t,o]),remove:o=>{let n=new b(t);return n.delete(o),R(n)},contains:o=>t.has(o),has:o=>t.has(o),map:o=>R(r.map(o)),flatMap:o=>R(r.flatMap(o)),toList:()=>p(t),toSet:()=>f,toString:()=>`Set(${Array.from(t).toString()})`};return f},x=e=>R(e);var d=e=>{function t(n){return n!=null&&typeof n[Symbol.iterator]=="function"}let r=Array.isArray(e)?e:t(e)?Array.from(e):[],f=T(r),o={...f,_tag:"List",length:r.length,map:n=>d(r.map(n)),flatMap:n=>d(f.flatMap(n)),remove:n=>{let u=r.indexOf(n);return o.removeAt(u)},contains:n=>r.includes(n),add:n=>d([...r,n]),removeAt:n=>n<0||n>=r.length?o:d([...r.slice(0,n),...r.slice(n+1)]),get:n=>L(r[n]),concat:n=>d([...r,...n.toArray()]),toList:()=>o,toSet:()=>x(r),toValue:()=>({_tag:"List",value:r}),toString:()=>`List(${$(p(r))})`};return new Proxy(o,{get(n,u){return typeof u=="symbol"||isNaN(Number(u))?n[u]:n.get(Number(u))}})},p=e=>d(e),j=e=>d(e);console.assert(j);var v=e=>({_tag:"Right",value:e,isLeft:()=>!1,isRight:()=>!0,getOrElse:t=>e,getOrThrow:()=>e,map:t=>s(t(e)),mapAsync:t=>t(e).then(r=>s(r)).catch(r=>Promise.resolve(i(r))),merge:t=>t.isLeft()?i(t.value):s([e,t.value]),flatMap:t=>t(e),flatMapAsync:t=>t(e).catch(r=>i(r)),toOption:()=>y(e),toList:()=>p([e]),toString:()=>`Right(${_(e)})`,[Symbol.iterator]:function*(){yield e},yield:function*(){yield e},traverse:t=>{let r=t(e);return r.isLeft()?i(r.value):s([r.value])},lazyMap:function*(t){yield s(t(e))},tap:t=>(t(e),s(e)),tapLeft:t=>s(e),mapLeft:t=>s(e),bimap:(t,r)=>s(r(e)),fold:(t,r)=>r(e),swap:()=>i(e),then:(t,r)=>Promise.resolve(e).then(t,r)}),V=e=>({_tag:"Left",value:e,isLeft:()=>!0,isRight:()=>!1,getOrElse:t=>t,getOrThrow:()=>{throw e},map:t=>i(e),mapAsync:t=>Promise.resolve(i(e)),merge:t=>i(e),flatMap:t=>i(e),flatMapAsync:t=>Promise.resolve(i(e)),toOption:()=>A(),toList:()=>p(),toString:()=>`Left(${_(e)})`,[Symbol.iterator]:function*(){},yield:function*(){},traverse:t=>i(e),lazyMap:function*(t){yield i(e)},tap:t=>i(e),tapLeft:t=>(t(e),i(e)),mapLeft:t=>i(t(e)),bimap:(t,r)=>i(t(e)),fold:(t,r)=>t(e),swap:()=>s(e),then:(t,r)=>Promise.reject(e).then(null,r)}),s=e=>v(e),i=e=>V(e),Ee=e=>e.isRight(),xe=e=>e.isLeft(),Ue=(e,t)=>{try{return s(e())}catch(r){return i(t(r))}},G=e=>v(e);console.assert(G);var D=e=>V(e);console.assert(D);var Be=async(e,t)=>{try{let r=await e();return s(r)}catch(r){return i(t(r))}},H={sequence:e=>{let t=[];for(let r of e){if(r.isLeft())return i(r.value);t.push(r.value)}return s(t)},traverse:(e,t)=>H.sequence(e.map(t)),fromNullable:(e,t)=>e==null?i(t):s(e),fromPredicate:(e,t,r)=>t(e)?s(e):i(r),ap:(e,t)=>e.flatMap(r=>t.map(r)),fromPromise:async(e,t)=>{try{let r=await e;return s(r)}catch(r){return i(t(r))}}};var m=e=>{let t={values:new E(e)},r=()=>Array.from(t.values.entries()).map(([a,l])=>S([a,l])),f=a=>m(new E(t.values).set(a.toArray()[0],a.toArray()[1]).entries()),o=a=>{let l=new E(t.values);return l.delete(a)?m(l.entries()):m(t.values.entries())},n=a=>t.values.get(a[0])===a[1],u=()=>t.values.size,U=a=>m(Array.from(t.values.entries()).map(([l,F])=>[l,a(F)])),I=a=>{let l=m(t.values.entries()).toList();return m(l.flatMap(a).toArray())},M=a=>T(r()).reduce(a),w=a=>T(r()).reduceRight(a),P=a=>l=>T(r()).foldLeft(a)(l),k=a=>l=>T(r()).foldRight(a)(l),q=a=>L(t.values.get(a)),z=(a,l)=>L(t.values.get(a)).getOrElse(l),N=()=>t.values.size===0;return{add:f,remove:o,contains:n,get size(){return u()},map:U,flatMap:I,reduce:M,reduceRight:w,foldLeft:P,foldRight:k,get:q,getOrElse:z,get isEmpty(){return N()},orElse:(a,l)=>L(t.values.get(a)).orElse(l),toList:()=>p(r()),toSet:()=>x(r()),toString:()=>`Map(${r().toString()})`}},Pe=e=>m(e);import O from"safe-stable-stringify";var K=e=>({_tag:"Success",value:e,error:void 0,isSuccess:()=>!0,isFailure:()=>!1,get:()=>e,getOrElse:t=>e,orElse:t=>K(e),orThrow:t=>e,toEither:()=>s(e),map:t=>J(()=>t(e)),flatMap:t=>t(e),toString:()=>`Success(${O(e)})`}),B=e=>({_tag:"Failure",value:void 0,error:e,isSuccess:()=>!1,isFailure:()=>!0,get:()=>{throw e},getOrElse:t=>t,orElse:t=>t,orThrow:t=>{throw t},toEither:()=>i(e),map:t=>B(e),flatMap:t=>B(e),toString:()=>`Failure(${O(e)}))`}),J=e=>{try{return K(e())}catch(t){return B(t instanceof Error?t:new Error(String(t)))}};var y=e=>({_tag:"Some",value:e,isEmpty:!1,get:()=>e,getOrElse:()=>e,orElse:()=>y(e),map:t=>y(t(e)),filter(t){return t(e)?y(e):h},flatMap:t=>t(e),reduce:t=>t(void 0,e),reduceRight:t=>t(void 0,e),foldLeft:t=>r=>r(t,e),foldRight:t=>r=>r(e,t),toList:()=>p([e]),contains:t=>t===e,size:1,toEither:t=>s(e),toString:()=>`Some(${Q(e)})`,toValue:()=>({_tag:"Some",value:e})}),h={_tag:"None",value:void 0,isEmpty:!0,get:()=>{throw new Error("Cannot call get() on None")},getOrElse:e=>e,orElse:e=>e,map:e=>h,filter(e){return h},flatMap:e=>h,reduce:()=>{},reduceRight:()=>{},foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>p([]),contains:()=>!1,size:0,toEither:e=>i(e),toString:()=>"None",toValue:()=>({_tag:"None",value:void 0})},A=()=>h,L=e=>e!=null?y(e):A();export{y as a,A as b,L as c,c as d,T as e,x as f,p as g,j as h,s as i,i as j,Ee as k,xe as l,Ue as m,G as n,D as o,Be as p,H as q,Pe as r,J as s};
@@ -1,5 +1,6 @@
1
- export { d as Collection, C as Converters } from '../index-CFxuzA1t.mjs';
1
+ export { d as Collection, C as Converters } from '../index-C05iGqWH.mjs';
2
2
  import '../functor/index.mjs';
3
3
  import '../identity/Identity.mjs';
4
4
  import '../tuple/Tuple.mjs';
5
5
  import '../typeable/Typeable.mjs';
6
+ import '../valuable/Valuable.mjs';
@@ -1,5 +1,6 @@
1
- export { d as Collection, C as Converters } from '../index-BFM7JSfS.js';
1
+ export { d as Collection, C as Converters } from '../index-CgK2qCd3.js';
2
2
  import '../functor/index.js';
3
3
  import '../identity/Identity.js';
4
4
  import '../tuple/Tuple.js';
5
5
  import '../typeable/Typeable.js';
6
+ import '../valuable/Valuable.js';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Base Object from which most other objects inherit
3
+ * @param type
4
+ * @constructor
5
+ */
6
+ declare function Base(type: string): {
7
+ toString(): string;
8
+ _tag: string;
9
+ };
10
+
11
+ export { Base };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Base Object from which most other objects inherit
3
+ * @param type
4
+ * @constructor
5
+ */
6
+ declare function Base(type: string): {
7
+ toString(): string;
8
+ _tag: string;
9
+ };
10
+
11
+ export { Base };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSQWNJC6Ojs = require('../../chunk-SQWNJC6O.js');require('../../chunk-5O6YELD3.js');exports.Base = _chunkSQWNJC6Ojs.a;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-JF5YGNCO.mjs";import"../../chunk-V7DKESTM.mjs";export{a as Base};
@@ -0,0 +1,12 @@
1
+ import { Typeable } from '../../typeable/Typeable.mjs';
2
+
3
+ declare const NAME: "Throwable";
4
+ type Throwable = Error & Typeable<typeof NAME> & {
5
+ readonly data?: unknown;
6
+ };
7
+ declare const Throwable: {
8
+ (srcError: unknown, data?: unknown): Throwable;
9
+ NAME: "Throwable";
10
+ };
11
+
12
+ export { Throwable };
@@ -0,0 +1,12 @@
1
+ import { Typeable } from '../../typeable/Typeable.js';
2
+
3
+ declare const NAME: "Throwable";
4
+ type Throwable = Error & Typeable<typeof NAME> & {
5
+ readonly data?: unknown;
6
+ };
7
+ declare const Throwable: {
8
+ (srcError: unknown, data?: unknown): Throwable;
9
+ NAME: "Throwable";
10
+ };
11
+
12
+ export { Throwable };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2U34DUZUjs = require('../../chunk-2U34DUZU.js');exports.Throwable = _chunk2U34DUZUjs.a;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-HD6YYUHO.mjs";export{a as Throwable};
@@ -0,0 +1,32 @@
1
+ import { E as Either } from '../../index-C05iGqWH.mjs';
2
+ import { Throwable } from '../error/Throwable.mjs';
3
+ import '../../functor/index.mjs';
4
+ import '../../identity/Identity.mjs';
5
+ import '../../tuple/Tuple.mjs';
6
+ import '../../typeable/Typeable.mjs';
7
+ import '../../valuable/Valuable.mjs';
8
+
9
+ type AppException<T> = Either<Throwable, T>;
10
+ /**
11
+ * AppException factory function
12
+ * @param error
13
+ * @param data
14
+ * @constructor
15
+ */
16
+ declare const AppException: <T>(error: unknown, data?: unknown) => AppException<T>;
17
+ type AppResult<T> = Either<Throwable, T>;
18
+ declare const AppResult: <T>(data: T) => AppResult<T>;
19
+ type Task<T> = Either<Throwable, T>;
20
+ declare function Task<T>(f: () => T, e?: (error: unknown) => unknown): Task<T>;
21
+ declare namespace Task {
22
+ var success: <T>(data: T) => AppResult<T>;
23
+ var fail: <T>(error: unknown) => AppException<T>;
24
+ }
25
+ type AsyncTask<T> = Promise<Task<T>>;
26
+ declare function AsyncTask<T>(f: () => T, e?: (error: unknown) => unknown): AsyncTask<T>;
27
+ declare namespace AsyncTask {
28
+ var success: <T>(data: T) => AppResult<T>;
29
+ var fail: <T>(error: unknown) => AppException<T>;
30
+ }
31
+
32
+ export { AppException, AppResult, AsyncTask, Task };
@@ -0,0 +1,32 @@
1
+ import { E as Either } from '../../index-CgK2qCd3.js';
2
+ import { Throwable } from '../error/Throwable.js';
3
+ import '../../functor/index.js';
4
+ import '../../identity/Identity.js';
5
+ import '../../tuple/Tuple.js';
6
+ import '../../typeable/Typeable.js';
7
+ import '../../valuable/Valuable.js';
8
+
9
+ type AppException<T> = Either<Throwable, T>;
10
+ /**
11
+ * AppException factory function
12
+ * @param error
13
+ * @param data
14
+ * @constructor
15
+ */
16
+ declare const AppException: <T>(error: unknown, data?: unknown) => AppException<T>;
17
+ type AppResult<T> = Either<Throwable, T>;
18
+ declare const AppResult: <T>(data: T) => AppResult<T>;
19
+ type Task<T> = Either<Throwable, T>;
20
+ declare function Task<T>(f: () => T, e?: (error: unknown) => unknown): Task<T>;
21
+ declare namespace Task {
22
+ var success: <T>(data: T) => AppResult<T>;
23
+ var fail: <T>(error: unknown) => AppException<T>;
24
+ }
25
+ type AsyncTask<T> = Promise<Task<T>>;
26
+ declare function AsyncTask<T>(f: () => T, e?: (error: unknown) => unknown): AsyncTask<T>;
27
+ declare namespace AsyncTask {
28
+ var success: <T>(data: T) => AppResult<T>;
29
+ var fail: <T>(error: unknown) => AppException<T>;
30
+ }
31
+
32
+ export { AppException, AppResult, AsyncTask, Task };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSQWNJC6Ojs = require('../../chunk-SQWNJC6O.js');var _chunk2U34DUZUjs = require('../../chunk-2U34DUZU.js');var _chunkB42G4XDTjs = require('../../chunk-B42G4XDT.js');require('../../chunk-OXLZ6UIZ.js');require('../../chunk-BNNK42JC.js');require('../../chunk-5O6YELD3.js');require('../../chunk-5VTXJIR3.js');require('../../chunk-3VJERXBP.js');require('../../chunk-XORABVON.js');require('../../chunk-K3EKBPQE.js');var e=(r,t)=>{let n=_chunk2U34DUZUjs.a.call(void 0, r,t);return{..._chunkSQWNJC6Ojs.a.call(void 0, "AppException"),..._chunkB42G4XDTjs.j.call(void 0, n)}},o= exports.AppResult =r=>({..._chunkSQWNJC6Ojs.a.call(void 0, "AppResult"),..._chunkB42G4XDTjs.i.call(void 0, r)});function c(r,t=n=>n){try{return o(r())}catch(n){return e(t(n))}}c.success=r=>o(r);c.fail=r=>e(r);async function a(r,t=n=>n){try{let n=await r();return o(n)}catch(n){let i=await t(n);return e(i)}}a.success=r=>o(r);a.fail=r=>e(r);exports.AppException = e; exports.AppResult = o; exports.AsyncTask = a; exports.Task = c;
@@ -0,0 +1 @@
1
+ import{a as T}from"../../chunk-JF5YGNCO.mjs";import{a as u}from"../../chunk-HD6YYUHO.mjs";import{i as p,j as s}from"../../chunk-YBXR3LKX.mjs";import"../../chunk-2I2NKDFN.mjs";import"../../chunk-RRAIFS3D.mjs";import"../../chunk-V7DKESTM.mjs";import"../../chunk-377WQNCB.mjs";import"../../chunk-HA5XD5KC.mjs";import"../../chunk-V2J3R5IU.mjs";import"../../chunk-2ML63TYF.mjs";var e=(r,t)=>{let n=u(r,t);return{...T("AppException"),...s(n)}},o=r=>({...T("AppResult"),...p(r)});function c(r,t=n=>n){try{return o(r())}catch(n){return e(t(n))}}c.success=r=>o(r);c.fail=r=>e(r);async function a(r,t=n=>n){try{let n=await r();return o(n)}catch(n){let i=await t(n);return e(i)}}a.success=r=>o(r);a.fail=r=>e(r);export{e as AppException,o as AppResult,a as AsyncTask,c as Task};
@@ -1,5 +1,6 @@
1
1
  import '../functor/index.mjs';
2
- export { E as Either, f as Left, R as Right, e as TestEither, j as TypeCheckLeft, h as TypeCheckRight, g as isLeft, i as isRight, t as tryCatch, k as tryCatchAsync, l as tryCatchSync } from '../index-CFxuzA1t.mjs';
2
+ export { E as Either, f as Left, R as Right, e as TestEither, j as TypeCheckLeft, h as TypeCheckRight, g as isLeft, i as isRight, t as tryCatch, k as tryCatchAsync } from '../index-C05iGqWH.mjs';
3
3
  import '../typeable/Typeable.mjs';
4
4
  import '../identity/Identity.mjs';
5
5
  import '../tuple/Tuple.mjs';
6
+ import '../valuable/Valuable.mjs';
@@ -1,5 +1,6 @@
1
1
  import '../functor/index.js';
2
- export { E as Either, f as Left, R as Right, e as TestEither, j as TypeCheckLeft, h as TypeCheckRight, g as isLeft, i as isRight, t as tryCatch, k as tryCatchAsync, l as tryCatchSync } from '../index-BFM7JSfS.js';
2
+ export { E as Either, f as Left, R as Right, e as TestEither, j as TypeCheckLeft, h as TypeCheckRight, g as isLeft, i as isRight, t as tryCatch, k as tryCatchAsync } from '../index-CgK2qCd3.js';
3
3
  import '../typeable/Typeable.js';
4
4
  import '../identity/Identity.js';
5
5
  import '../tuple/Tuple.js';
6
+ import '../valuable/Valuable.js';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2WWZ32O4js = require('../chunk-2WWZ32O4.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-5O6YELD3.js');require('../chunk-BNNK42JC.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-K3EKBPQE.js');require('../chunk-XORABVON.js');exports.Either = _chunk2WWZ32O4js.r; exports.Left = _chunk2WWZ32O4js.j; exports.Right = _chunk2WWZ32O4js.i; exports.TypeCheckLeft = _chunk2WWZ32O4js.o; exports.TypeCheckRight = _chunk2WWZ32O4js.n; exports.isLeft = _chunk2WWZ32O4js.l; exports.isRight = _chunk2WWZ32O4js.k; exports.tryCatch = _chunk2WWZ32O4js.m; exports.tryCatchAsync = _chunk2WWZ32O4js.p; exports.tryCatchSync = _chunk2WWZ32O4js.q;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkB42G4XDTjs = require('../chunk-B42G4XDT.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-BNNK42JC.js');require('../chunk-5O6YELD3.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');exports.Either = _chunkB42G4XDTjs.q; exports.Left = _chunkB42G4XDTjs.j; exports.Right = _chunkB42G4XDTjs.i; exports.TypeCheckLeft = _chunkB42G4XDTjs.o; exports.TypeCheckRight = _chunkB42G4XDTjs.n; exports.isLeft = _chunkB42G4XDTjs.l; exports.isRight = _chunkB42G4XDTjs.k; exports.tryCatch = _chunkB42G4XDTjs.m; exports.tryCatchAsync = _chunkB42G4XDTjs.p;
@@ -1 +1 @@
1
- import{i as a,j as b,k as c,l as d,m as e,n as f,o as g,p as h,q as i,r as j}from"../chunk-BNGW33I2.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-V2J3R5IU.mjs";export{j as Either,b as Left,a as Right,g as TypeCheckLeft,f as TypeCheckRight,d as isLeft,c as isRight,e as tryCatch,h as tryCatchAsync,i as tryCatchSync};
1
+ import{i as a,j as b,k as c,l as d,m as e,n as f,o as g,p as h,q as i}from"../chunk-YBXR3LKX.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";export{i as Either,b as Left,a as Right,g as TypeCheckLeft,f as TypeCheckRight,d as isLeft,c as isRight,e as tryCatch,h as tryCatchAsync};
@@ -2,6 +2,7 @@ import { Type, Functor } from './functor/index.mjs';
2
2
  import './identity/Identity.mjs';
3
3
  import { Tuple } from './tuple/Tuple.mjs';
4
4
  import { Typeable } from './typeable/Typeable.mjs';
5
+ import { Valuable } from './valuable/Valuable.mjs';
5
6
 
6
7
  declare const Some: <T extends Type>(value: T) => Option<T>;
7
8
  declare const None: <T extends Type>() => Option<T>;
@@ -28,7 +29,7 @@ type Option<T extends Type> = {
28
29
  _tag: "Some" | "None";
29
30
  value: T;
30
31
  };
31
- } & (Traversable<T> & Functor<T> & Typeable<"Some" | "None">);
32
+ } & (Traversable<T> & Functor<T> & Typeable<"Some" | "None"> & Valuable<T>);
32
33
  declare const Option: <T extends Type>(value: T | null | undefined) => Option<T>;
33
34
 
34
35
  declare const createSeq: <A>(values?: Iterable<A> | _Iterable_<A>) => Seq<A>;
@@ -134,7 +135,6 @@ declare const tryCatch: <L extends Type, R extends Type>(f: () => R, onError: (e
134
135
  declare const TypeCheckRight: <L extends Type, R extends Type>(value: R) => TestEither<L, R>;
135
136
  declare const TypeCheckLeft: <L extends Type, R extends Type>(value: L) => TestEither<L, R>;
136
137
  declare const tryCatchAsync: <L extends Type, R extends Type>(f: () => Promise<R>, onError: (error: unknown) => L) => Promise<Either<L, R>>;
137
- declare const tryCatchSync: <L extends Type, R extends Type>(f: () => R, onError: (error: unknown) => L) => Either<L, R>;
138
138
  type Either<L extends Type, R extends Type> = {
139
139
  readonly _tag: "Left" | "Right";
140
140
  value: L | R;
@@ -160,7 +160,7 @@ type Either<L extends Type, R extends Type> = {
160
160
  bimap: <L2 extends Type, R2 extends Type>(fl: (value: L) => L2, fr: (value: R) => R2) => Either<L2, R2>;
161
161
  fold: <T extends Type>(onLeft: (value: L) => T, onRight: (value: R) => T) => T;
162
162
  swap: () => Either<R, L>;
163
- } & Typeable<"Left" | "Right">;
163
+ } & Typeable<"Left" | "Right"> & PromiseLike<R>;
164
164
  declare const Either: {
165
165
  sequence: <L extends Type, R extends Type>(eithers: Either<L, R>[]) => Either<L, R[]>;
166
166
  traverse: <L extends Type, R extends Type, U extends Type>(arr: R[], f: (value: R) => Either<L, U>) => Either<L, U[]>;
@@ -170,15 +170,6 @@ declare const Either: {
170
170
  fromPromise: <L, R>(promise: Promise<R>, onRejected: (reason: unknown) => L) => Promise<Either<L, R>>;
171
171
  };
172
172
 
173
- type EitherT<L, R> = {
174
- value: Promise<Either<L, R>>;
175
- map<U>(f: (value: R) => U): EitherT<L, U>;
176
- flatMap<U>(f: (value: R) => EitherT<L, U>): EitherT<L, U>;
177
- mapLeft<U>(f: (value: L) => U): EitherT<U, R>;
178
- fold<U>(onLeft: (error: L) => U, onRight: (value: R) => U): Promise<U>;
179
- };
180
- declare function EitherT<L, R>(value: Promise<Either<L, R>>): EitherT<L, R>;
181
-
182
173
  type SafeTraversable<K, V> = Omit<Traversable<Tuple<[K, V]>>, "map" | "flatMap">;
183
174
  type Map<K, V> = {
184
175
  add(item: Tuple<[K, V]>): Map<K, V>;
@@ -218,4 +209,4 @@ type Traversable<A extends Type> = Functor<A> & {
218
209
  foldRight<B>(z: B): (op: (a: A, b: B) => B) => B;
219
210
  };
220
211
 
221
- export { type Converters as C, Either as E, List as L, Map as M, None as N, Option as O, Right as R, Some as S, TestList as T, type _Iterable_ as _, Seq as a, Set as b, createSeq as c, type Collection as d, type TestEither as e, Left as f, isLeft as g, TypeCheckRight as h, isRight as i, TypeCheckLeft as j, tryCatchAsync as k, tryCatchSync as l, EitherT as m, Try as n, type Traversable as o, tryCatch as t };
212
+ export { type Converters as C, Either as E, List as L, Map as M, None as N, Option as O, Right as R, Some as S, TestList as T, type _Iterable_ as _, Seq as a, Set as b, createSeq as c, type Collection as d, type TestEither as e, Left as f, isLeft as g, TypeCheckRight as h, isRight as i, TypeCheckLeft as j, tryCatchAsync as k, Try as l, type Traversable as m, tryCatch as t };
@@ -2,6 +2,7 @@ import { Type, Functor } from './functor/index.js';
2
2
  import './identity/Identity.js';
3
3
  import { Tuple } from './tuple/Tuple.js';
4
4
  import { Typeable } from './typeable/Typeable.js';
5
+ import { Valuable } from './valuable/Valuable.js';
5
6
 
6
7
  declare const Some: <T extends Type>(value: T) => Option<T>;
7
8
  declare const None: <T extends Type>() => Option<T>;
@@ -28,7 +29,7 @@ type Option<T extends Type> = {
28
29
  _tag: "Some" | "None";
29
30
  value: T;
30
31
  };
31
- } & (Traversable<T> & Functor<T> & Typeable<"Some" | "None">);
32
+ } & (Traversable<T> & Functor<T> & Typeable<"Some" | "None"> & Valuable<T>);
32
33
  declare const Option: <T extends Type>(value: T | null | undefined) => Option<T>;
33
34
 
34
35
  declare const createSeq: <A>(values?: Iterable<A> | _Iterable_<A>) => Seq<A>;
@@ -134,7 +135,6 @@ declare const tryCatch: <L extends Type, R extends Type>(f: () => R, onError: (e
134
135
  declare const TypeCheckRight: <L extends Type, R extends Type>(value: R) => TestEither<L, R>;
135
136
  declare const TypeCheckLeft: <L extends Type, R extends Type>(value: L) => TestEither<L, R>;
136
137
  declare const tryCatchAsync: <L extends Type, R extends Type>(f: () => Promise<R>, onError: (error: unknown) => L) => Promise<Either<L, R>>;
137
- declare const tryCatchSync: <L extends Type, R extends Type>(f: () => R, onError: (error: unknown) => L) => Either<L, R>;
138
138
  type Either<L extends Type, R extends Type> = {
139
139
  readonly _tag: "Left" | "Right";
140
140
  value: L | R;
@@ -160,7 +160,7 @@ type Either<L extends Type, R extends Type> = {
160
160
  bimap: <L2 extends Type, R2 extends Type>(fl: (value: L) => L2, fr: (value: R) => R2) => Either<L2, R2>;
161
161
  fold: <T extends Type>(onLeft: (value: L) => T, onRight: (value: R) => T) => T;
162
162
  swap: () => Either<R, L>;
163
- } & Typeable<"Left" | "Right">;
163
+ } & Typeable<"Left" | "Right"> & PromiseLike<R>;
164
164
  declare const Either: {
165
165
  sequence: <L extends Type, R extends Type>(eithers: Either<L, R>[]) => Either<L, R[]>;
166
166
  traverse: <L extends Type, R extends Type, U extends Type>(arr: R[], f: (value: R) => Either<L, U>) => Either<L, U[]>;
@@ -170,15 +170,6 @@ declare const Either: {
170
170
  fromPromise: <L, R>(promise: Promise<R>, onRejected: (reason: unknown) => L) => Promise<Either<L, R>>;
171
171
  };
172
172
 
173
- type EitherT<L, R> = {
174
- value: Promise<Either<L, R>>;
175
- map<U>(f: (value: R) => U): EitherT<L, U>;
176
- flatMap<U>(f: (value: R) => EitherT<L, U>): EitherT<L, U>;
177
- mapLeft<U>(f: (value: L) => U): EitherT<U, R>;
178
- fold<U>(onLeft: (error: L) => U, onRight: (value: R) => U): Promise<U>;
179
- };
180
- declare function EitherT<L, R>(value: Promise<Either<L, R>>): EitherT<L, R>;
181
-
182
173
  type SafeTraversable<K, V> = Omit<Traversable<Tuple<[K, V]>>, "map" | "flatMap">;
183
174
  type Map<K, V> = {
184
175
  add(item: Tuple<[K, V]>): Map<K, V>;
@@ -218,4 +209,4 @@ type Traversable<A extends Type> = Functor<A> & {
218
209
  foldRight<B>(z: B): (op: (a: A, b: B) => B) => B;
219
210
  };
220
211
 
221
- export { type Converters as C, Either as E, List as L, Map as M, None as N, Option as O, Right as R, Some as S, TestList as T, type _Iterable_ as _, Seq as a, Set as b, createSeq as c, type Collection as d, type TestEither as e, Left as f, isLeft as g, TypeCheckRight as h, isRight as i, TypeCheckLeft as j, tryCatchAsync as k, tryCatchSync as l, EitherT as m, Try as n, type Traversable as o, tryCatch as t };
212
+ export { type Converters as C, Either as E, List as L, Map as M, None as N, Option as O, Right as R, Some as S, TestList as T, type _Iterable_ as _, Seq as a, Set as b, createSeq as c, type Collection as d, type TestEither as e, Left as f, isLeft as g, TypeCheckRight as h, isRight as i, TypeCheckLeft as j, tryCatchAsync as k, Try as l, type Traversable as m, tryCatch as t };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { AbstractFunctor, ArrayFunctor, ArrayType, Functor, SingleType, Type } from './functor/index.mjs';
2
- export { E as Either, m as EitherT, f as Left, L as List, M as Map, N as None, O as Option, R as Right, a as Seq, b as Set, S as Some, e as TestEither, T as TestList, o as Traversable, n as Try, j as TypeCheckLeft, h as TypeCheckRight, _ as _Iterable_, g as isLeft, i as isRight, t as tryCatch, k as tryCatchAsync, l as tryCatchSync } from './index-CFxuzA1t.mjs';
2
+ export { E as Either, f as Left, L as List, M as Map, N as None, O as Option, R as Right, a as Seq, b as Set, S as Some, e as TestEither, T as TestList, m as Traversable, l as Try, j as TypeCheckLeft, h as TypeCheckRight, _ as _Iterable_, g as isLeft, i as isRight, t as tryCatch, k as tryCatchAsync } from './index-C05iGqWH.mjs';
3
3
  export { Identity } from './identity/Identity.mjs';
4
4
  export { Tuple } from './tuple/Tuple.mjs';
5
5
  export { Typeable } from './typeable/Typeable.mjs';
6
+ import './valuable/Valuable.mjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { AbstractFunctor, ArrayFunctor, ArrayType, Functor, SingleType, Type } from './functor/index.js';
2
- export { E as Either, m as EitherT, f as Left, L as List, M as Map, N as None, O as Option, R as Right, a as Seq, b as Set, S as Some, e as TestEither, T as TestList, o as Traversable, n as Try, j as TypeCheckLeft, h as TypeCheckRight, _ as _Iterable_, g as isLeft, i as isRight, t as tryCatch, k as tryCatchAsync, l as tryCatchSync } from './index-BFM7JSfS.js';
2
+ export { E as Either, f as Left, L as List, M as Map, N as None, O as Option, R as Right, a as Seq, b as Set, S as Some, e as TestEither, T as TestList, m as Traversable, l as Try, j as TypeCheckLeft, h as TypeCheckRight, _ as _Iterable_, g as isLeft, i as isRight, t as tryCatch, k as tryCatchAsync } from './index-CgK2qCd3.js';
3
3
  export { Identity } from './identity/Identity.js';
4
4
  export { Tuple } from './tuple/Tuple.js';
5
5
  export { Typeable } from './typeable/Typeable.js';
6
+ import './valuable/Valuable.js';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2WWZ32O4js = require('./chunk-2WWZ32O4.js');var _chunkOXLZ6UIZjs = require('./chunk-OXLZ6UIZ.js');var _chunk5O6YELD3js = require('./chunk-5O6YELD3.js');require('./chunk-BNNK42JC.js');require('./chunk-5VTXJIR3.js');require('./chunk-3VJERXBP.js');require('./chunk-K3EKBPQE.js');require('./chunk-XORABVON.js');exports.Either = _chunk2WWZ32O4js.r; exports.EitherT = _chunk2WWZ32O4js.s; exports.Left = _chunk2WWZ32O4js.j; exports.List = _chunk2WWZ32O4js.g; exports.Map = _chunk2WWZ32O4js.t; exports.None = _chunk2WWZ32O4js.b; exports.Option = _chunk2WWZ32O4js.c; exports.Right = _chunk2WWZ32O4js.i; exports.Seq = _chunk2WWZ32O4js.e; exports.Set = _chunk2WWZ32O4js.f; exports.Some = _chunk2WWZ32O4js.a; exports.TestList = _chunk2WWZ32O4js.h; exports.Try = _chunk2WWZ32O4js.u; exports.Tuple = _chunkOXLZ6UIZjs.a; exports.TypeCheckLeft = _chunk2WWZ32O4js.o; exports.TypeCheckRight = _chunk2WWZ32O4js.n; exports.Typeable = _chunk5O6YELD3js.a; exports.isLeft = _chunk2WWZ32O4js.l; exports.isRight = _chunk2WWZ32O4js.k; exports.tryCatch = _chunk2WWZ32O4js.m; exports.tryCatchAsync = _chunk2WWZ32O4js.p; exports.tryCatchSync = _chunk2WWZ32O4js.q;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkB42G4XDTjs = require('./chunk-B42G4XDT.js');var _chunkOXLZ6UIZjs = require('./chunk-OXLZ6UIZ.js');require('./chunk-BNNK42JC.js');var _chunk5O6YELD3js = require('./chunk-5O6YELD3.js');require('./chunk-5VTXJIR3.js');require('./chunk-3VJERXBP.js');require('./chunk-XORABVON.js');require('./chunk-K3EKBPQE.js');exports.Either = _chunkB42G4XDTjs.q; exports.Left = _chunkB42G4XDTjs.j; exports.List = _chunkB42G4XDTjs.g; exports.Map = _chunkB42G4XDTjs.r; exports.None = _chunkB42G4XDTjs.b; exports.Option = _chunkB42G4XDTjs.c; exports.Right = _chunkB42G4XDTjs.i; exports.Seq = _chunkB42G4XDTjs.e; exports.Set = _chunkB42G4XDTjs.f; exports.Some = _chunkB42G4XDTjs.a; exports.TestList = _chunkB42G4XDTjs.h; exports.Try = _chunkB42G4XDTjs.s; exports.Tuple = _chunkOXLZ6UIZjs.a; exports.TypeCheckLeft = _chunkB42G4XDTjs.o; exports.TypeCheckRight = _chunkB42G4XDTjs.n; exports.Typeable = _chunk5O6YELD3js.a; exports.isLeft = _chunkB42G4XDTjs.l; exports.isRight = _chunkB42G4XDTjs.k; exports.tryCatch = _chunkB42G4XDTjs.m; exports.tryCatchAsync = _chunkB42G4XDTjs.p;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{a,b,c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,n as m,o as n,p as o,q as p,r as q,s as r,t,u}from"./chunk-BNGW33I2.mjs";import{a as s}from"./chunk-2I2NKDFN.mjs";import{a as v}from"./chunk-V7DKESTM.mjs";import"./chunk-RRAIFS3D.mjs";import"./chunk-377WQNCB.mjs";import"./chunk-HA5XD5KC.mjs";import"./chunk-2ML63TYF.mjs";import"./chunk-V2J3R5IU.mjs";export{q as Either,r as EitherT,i as Left,f as List,t as Map,b as None,c as Option,h as Right,d as Seq,e as Set,a as Some,g as TestList,u as Try,s as Tuple,n as TypeCheckLeft,m as TypeCheckRight,v as Typeable,k as isLeft,j as isRight,l as tryCatch,o as tryCatchAsync,p as tryCatchSync};
1
+ import{a,b,c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,n as m,o as n,p as o,q as p,r,s}from"./chunk-YBXR3LKX.mjs";import{a as q}from"./chunk-2I2NKDFN.mjs";import"./chunk-RRAIFS3D.mjs";import{a as t}from"./chunk-V7DKESTM.mjs";import"./chunk-377WQNCB.mjs";import"./chunk-HA5XD5KC.mjs";import"./chunk-V2J3R5IU.mjs";import"./chunk-2ML63TYF.mjs";export{p as Either,i as Left,f as List,r as Map,b as None,c as Option,h as Right,d as Seq,e as Set,a as Some,g as TestList,s as Try,q as Tuple,n as TypeCheckLeft,m as TypeCheckRight,t as Typeable,k as isLeft,j as isRight,l as tryCatch,o as tryCatchAsync};
@@ -1,5 +1,6 @@
1
- export { a as Seq, c as createSeq } from '../index-CFxuzA1t.mjs';
1
+ export { a as Seq, c as createSeq } from '../index-C05iGqWH.mjs';
2
2
  import '../typeable/Typeable.mjs';
3
3
  import '../functor/index.mjs';
4
4
  import '../identity/Identity.mjs';
5
5
  import '../tuple/Tuple.mjs';
6
+ import '../valuable/Valuable.mjs';
@@ -1,5 +1,6 @@
1
- export { a as Seq, c as createSeq } from '../index-BFM7JSfS.js';
1
+ export { a as Seq, c as createSeq } from '../index-CgK2qCd3.js';
2
2
  import '../typeable/Typeable.js';
3
3
  import '../functor/index.js';
4
4
  import '../identity/Identity.js';
5
5
  import '../tuple/Tuple.js';
6
+ import '../valuable/Valuable.js';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2WWZ32O4js = require('../chunk-2WWZ32O4.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-5O6YELD3.js');require('../chunk-BNNK42JC.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-K3EKBPQE.js');require('../chunk-XORABVON.js');exports.Seq = _chunk2WWZ32O4js.e; exports.createSeq = _chunk2WWZ32O4js.d;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkB42G4XDTjs = require('../chunk-B42G4XDT.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-BNNK42JC.js');require('../chunk-5O6YELD3.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');exports.Seq = _chunkB42G4XDTjs.e; exports.createSeq = _chunkB42G4XDTjs.d;
@@ -1 +1 @@
1
- import{d as a,e as b}from"../chunk-BNGW33I2.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-V2J3R5IU.mjs";export{b as Seq,a as createSeq};
1
+ import{d as a,e as b}from"../chunk-YBXR3LKX.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";export{b as Seq,a as createSeq};
@@ -1,5 +1,6 @@
1
1
  import '../functor/index.mjs';
2
- export { a as Seq, _ as _Iterable_ } from '../index-CFxuzA1t.mjs';
2
+ export { a as Seq, _ as _Iterable_ } from '../index-C05iGqWH.mjs';
3
3
  import '../identity/Identity.mjs';
4
4
  import '../tuple/Tuple.mjs';
5
5
  import '../typeable/Typeable.mjs';
6
+ import '../valuable/Valuable.mjs';
@@ -1,5 +1,6 @@
1
1
  import '../functor/index.js';
2
- export { a as Seq, _ as _Iterable_ } from '../index-BFM7JSfS.js';
2
+ export { a as Seq, _ as _Iterable_ } from '../index-CgK2qCd3.js';
3
3
  import '../identity/Identity.js';
4
4
  import '../tuple/Tuple.js';
5
5
  import '../typeable/Typeable.js';
6
+ import '../valuable/Valuable.js';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2WWZ32O4js = require('../chunk-2WWZ32O4.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-5O6YELD3.js');require('../chunk-BNNK42JC.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-K3EKBPQE.js');require('../chunk-XORABVON.js');exports.Seq = _chunk2WWZ32O4js.e;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkB42G4XDTjs = require('../chunk-B42G4XDT.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-BNNK42JC.js');require('../chunk-5O6YELD3.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');exports.Seq = _chunkB42G4XDTjs.e;
@@ -1 +1 @@
1
- import{e as a}from"../chunk-BNGW33I2.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-V2J3R5IU.mjs";export{a as Seq};
1
+ import{e as a}from"../chunk-YBXR3LKX.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";export{a as Seq};
@@ -1,5 +1,6 @@
1
- export { L as List, T as TestList } from '../index-CFxuzA1t.mjs';
1
+ export { L as List, T as TestList } from '../index-C05iGqWH.mjs';
2
2
  import '../typeable/Typeable.mjs';
3
3
  import '../functor/index.mjs';
4
4
  import '../identity/Identity.mjs';
5
5
  import '../tuple/Tuple.mjs';
6
+ import '../valuable/Valuable.mjs';
@@ -1,5 +1,6 @@
1
- export { L as List, T as TestList } from '../index-BFM7JSfS.js';
1
+ export { L as List, T as TestList } from '../index-CgK2qCd3.js';
2
2
  import '../typeable/Typeable.js';
3
3
  import '../functor/index.js';
4
4
  import '../identity/Identity.js';
5
5
  import '../tuple/Tuple.js';
6
+ import '../valuable/Valuable.js';
package/dist/list/List.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2WWZ32O4js = require('../chunk-2WWZ32O4.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-5O6YELD3.js');require('../chunk-BNNK42JC.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-K3EKBPQE.js');require('../chunk-XORABVON.js');exports.List = _chunk2WWZ32O4js.g; exports.TestList = _chunk2WWZ32O4js.h;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkB42G4XDTjs = require('../chunk-B42G4XDT.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-BNNK42JC.js');require('../chunk-5O6YELD3.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');exports.List = _chunkB42G4XDTjs.g; exports.TestList = _chunkB42G4XDTjs.h;
@@ -1 +1 @@
1
- import{g as a,h as b}from"../chunk-BNGW33I2.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-V2J3R5IU.mjs";export{a as List,b as TestList};
1
+ import{g as a,h as b}from"../chunk-YBXR3LKX.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";export{a as List,b as TestList};
@@ -1,5 +1,6 @@
1
- export { M as Map } from '../index-CFxuzA1t.mjs';
1
+ export { M as Map } from '../index-C05iGqWH.mjs';
2
2
  import '../tuple/Tuple.mjs';
3
3
  import '../functor/index.mjs';
4
4
  import '../identity/Identity.mjs';
5
5
  import '../typeable/Typeable.mjs';
6
+ import '../valuable/Valuable.mjs';
package/dist/map/Map.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- export { M as Map } from '../index-BFM7JSfS.js';
1
+ export { M as Map } from '../index-CgK2qCd3.js';
2
2
  import '../tuple/Tuple.js';
3
3
  import '../functor/index.js';
4
4
  import '../identity/Identity.js';
5
5
  import '../typeable/Typeable.js';
6
+ import '../valuable/Valuable.js';
package/dist/map/Map.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2WWZ32O4js = require('../chunk-2WWZ32O4.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-5O6YELD3.js');require('../chunk-BNNK42JC.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-K3EKBPQE.js');require('../chunk-XORABVON.js');exports.Map = _chunk2WWZ32O4js.t;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkB42G4XDTjs = require('../chunk-B42G4XDT.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-BNNK42JC.js');require('../chunk-5O6YELD3.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');exports.Map = _chunkB42G4XDTjs.r;
package/dist/map/Map.mjs CHANGED
@@ -1 +1 @@
1
- import{t as a}from"../chunk-BNGW33I2.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-V2J3R5IU.mjs";export{a as Map};
1
+ import{r as a}from"../chunk-YBXR3LKX.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";export{a as Map};
@@ -1,5 +1,6 @@
1
1
  import '../functor/index.mjs';
2
- export { N as None, O as Option, S as Some } from '../index-CFxuzA1t.mjs';
2
+ export { N as None, O as Option, S as Some } from '../index-C05iGqWH.mjs';
3
3
  import '../typeable/Typeable.mjs';
4
+ import '../valuable/Valuable.mjs';
4
5
  import '../identity/Identity.mjs';
5
6
  import '../tuple/Tuple.mjs';
@@ -1,5 +1,6 @@
1
1
  import '../functor/index.js';
2
- export { N as None, O as Option, S as Some } from '../index-BFM7JSfS.js';
2
+ export { N as None, O as Option, S as Some } from '../index-CgK2qCd3.js';
3
3
  import '../typeable/Typeable.js';
4
+ import '../valuable/Valuable.js';
4
5
  import '../identity/Identity.js';
5
6
  import '../tuple/Tuple.js';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2WWZ32O4js = require('../chunk-2WWZ32O4.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-5O6YELD3.js');require('../chunk-BNNK42JC.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-K3EKBPQE.js');require('../chunk-XORABVON.js');exports.None = _chunk2WWZ32O4js.b; exports.Option = _chunk2WWZ32O4js.c; exports.Some = _chunk2WWZ32O4js.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkB42G4XDTjs = require('../chunk-B42G4XDT.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-BNNK42JC.js');require('../chunk-5O6YELD3.js');require('../chunk-5VTXJIR3.js');require('../chunk-3VJERXBP.js');require('../chunk-XORABVON.js');require('../chunk-K3EKBPQE.js');exports.None = _chunkB42G4XDTjs.b; exports.Option = _chunkB42G4XDTjs.c; exports.Some = _chunkB42G4XDTjs.a;
@@ -1 +1 @@
1
- import{a,b,c}from"../chunk-BNGW33I2.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-2ML63TYF.mjs";import"../chunk-V2J3R5IU.mjs";export{b as None,c as Option,a as Some};
1
+ import{a,b,c}from"../chunk-YBXR3LKX.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-RRAIFS3D.mjs";import"../chunk-V7DKESTM.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-V2J3R5IU.mjs";import"../chunk-2ML63TYF.mjs";export{b as None,c as Option,a as Some};