modern-ts 0.8.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 (261) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +223 -0
  3. package/README.zh-CN.md +223 -0
  4. package/dist/chunks/Errors-BWEYu-AB.cjs +2 -0
  5. package/dist/chunks/Errors-BWEYu-AB.cjs.map +1 -0
  6. package/dist/chunks/Errors-DwUAvFIF.mjs +63 -0
  7. package/dist/chunks/Errors-DwUAvFIF.mjs.map +1 -0
  8. package/dist/chunks/Math-CGEH1ClN.mjs +68 -0
  9. package/dist/chunks/Math-CGEH1ClN.mjs.map +1 -0
  10. package/dist/chunks/Math-CWZVxSF-.cjs +2 -0
  11. package/dist/chunks/Math-CWZVxSF-.cjs.map +1 -0
  12. package/dist/chunks/base-B9k8Lqvf.mjs +56 -0
  13. package/dist/chunks/base-B9k8Lqvf.mjs.map +1 -0
  14. package/dist/chunks/base-BTXL1y_I.cjs +2 -0
  15. package/dist/chunks/base-BTXL1y_I.cjs.map +1 -0
  16. package/dist/chunks/base-BpECeKwU.mjs +19 -0
  17. package/dist/chunks/base-BpECeKwU.mjs.map +1 -0
  18. package/dist/chunks/base-BvHqpP_s.cjs +2 -0
  19. package/dist/chunks/base-BvHqpP_s.cjs.map +1 -0
  20. package/dist/chunks/base-K-RHLZ-S.mjs +46 -0
  21. package/dist/chunks/base-K-RHLZ-S.mjs.map +1 -0
  22. package/dist/chunks/base-r6kn0B0D.cjs +2 -0
  23. package/dist/chunks/base-r6kn0B0D.cjs.map +1 -0
  24. package/dist/chunks/combine-async-DcG-3p8i.cjs +2 -0
  25. package/dist/chunks/combine-async-DcG-3p8i.cjs.map +1 -0
  26. package/dist/chunks/combine-async-Dcg4ya1R.mjs +236 -0
  27. package/dist/chunks/combine-async-Dcg4ya1R.mjs.map +1 -0
  28. package/dist/chunks/delay-CG3cD7bk.cjs +2 -0
  29. package/dist/chunks/delay-CG3cD7bk.cjs.map +1 -0
  30. package/dist/chunks/delay-CKIXpP71.mjs +32 -0
  31. package/dist/chunks/delay-CKIXpP71.mjs.map +1 -0
  32. package/dist/chunks/helper-BVabbpmX.mjs +165 -0
  33. package/dist/chunks/helper-BVabbpmX.mjs.map +1 -0
  34. package/dist/chunks/helper-tsqZMRHW.cjs +3 -0
  35. package/dist/chunks/helper-tsqZMRHW.cjs.map +1 -0
  36. package/dist/chunks/local-8JVtLN0O.mjs +10 -0
  37. package/dist/chunks/local-8JVtLN0O.mjs.map +1 -0
  38. package/dist/chunks/local-Da4yU-nE.cjs +2 -0
  39. package/dist/chunks/local-Da4yU-nE.cjs.map +1 -0
  40. package/dist/chunks/types-B7X_LBjM.cjs +2 -0
  41. package/dist/chunks/types-B7X_LBjM.cjs.map +1 -0
  42. package/dist/chunks/types-DE2SnSbz.mjs +5 -0
  43. package/dist/chunks/types-DE2SnSbz.mjs.map +1 -0
  44. package/dist/index.cjs +2 -0
  45. package/dist/index.cjs.map +1 -0
  46. package/dist/index.mjs +759 -0
  47. package/dist/index.mjs.map +1 -0
  48. package/dist/subpath/Arr.cjs +2 -0
  49. package/dist/subpath/Arr.cjs.map +1 -0
  50. package/dist/subpath/Arr.mjs +539 -0
  51. package/dist/subpath/Arr.mjs.map +1 -0
  52. package/dist/subpath/Concurrent.cjs +15 -0
  53. package/dist/subpath/Concurrent.cjs.map +1 -0
  54. package/dist/subpath/Concurrent.mjs +4044 -0
  55. package/dist/subpath/Concurrent.mjs.map +1 -0
  56. package/dist/subpath/FetchQ.cjs +2 -0
  57. package/dist/subpath/FetchQ.cjs.map +1 -0
  58. package/dist/subpath/FetchQ.mjs +519 -0
  59. package/dist/subpath/FetchQ.mjs.map +1 -0
  60. package/dist/subpath/Fit.cjs +2 -0
  61. package/dist/subpath/Fit.cjs.map +1 -0
  62. package/dist/subpath/Fit.mjs +914 -0
  63. package/dist/subpath/Fit.mjs.map +1 -0
  64. package/dist/subpath/Lazy.cjs +2 -0
  65. package/dist/subpath/Lazy.cjs.map +1 -0
  66. package/dist/subpath/Lazy.mjs +72 -0
  67. package/dist/subpath/Lazy.mjs.map +1 -0
  68. package/dist/subpath/Maps.cjs +2 -0
  69. package/dist/subpath/Maps.cjs.map +1 -0
  70. package/dist/subpath/Maps.mjs +123 -0
  71. package/dist/subpath/Maps.mjs.map +1 -0
  72. package/dist/subpath/Maybe.cjs +2 -0
  73. package/dist/subpath/Maybe.cjs.map +1 -0
  74. package/dist/subpath/Maybe.mjs +329 -0
  75. package/dist/subpath/Maybe.mjs.map +1 -0
  76. package/dist/subpath/Reactive.cjs +2 -0
  77. package/dist/subpath/Reactive.cjs.map +1 -0
  78. package/dist/subpath/Reactive.mjs +1204 -0
  79. package/dist/subpath/Reactive.mjs.map +1 -0
  80. package/dist/subpath/Reader.cjs +2 -0
  81. package/dist/subpath/Reader.cjs.map +1 -0
  82. package/dist/subpath/Reader.mjs +75 -0
  83. package/dist/subpath/Reader.mjs.map +1 -0
  84. package/dist/subpath/ReaderT.cjs +2 -0
  85. package/dist/subpath/ReaderT.cjs.map +1 -0
  86. package/dist/subpath/ReaderT.mjs +148 -0
  87. package/dist/subpath/ReaderT.mjs.map +1 -0
  88. package/dist/subpath/Resource.cjs +2 -0
  89. package/dist/subpath/Resource.cjs.map +1 -0
  90. package/dist/subpath/Resource.mjs +150 -0
  91. package/dist/subpath/Resource.mjs.map +1 -0
  92. package/dist/subpath/Result.cjs +2 -0
  93. package/dist/subpath/Result.cjs.map +1 -0
  94. package/dist/subpath/Result.mjs +337 -0
  95. package/dist/subpath/Result.mjs.map +1 -0
  96. package/dist/subpath/Sets.cjs +2 -0
  97. package/dist/subpath/Sets.cjs.map +1 -0
  98. package/dist/subpath/Sets.mjs +92 -0
  99. package/dist/subpath/Sets.mjs.map +1 -0
  100. package/dist/subpath/Str.cjs +2 -0
  101. package/dist/subpath/Str.cjs.map +1 -0
  102. package/dist/subpath/Str.mjs +114 -0
  103. package/dist/subpath/Str.mjs.map +1 -0
  104. package/dist/subpath/TxScope.cjs +2 -0
  105. package/dist/subpath/TxScope.cjs.map +1 -0
  106. package/dist/subpath/TxScope.mjs +138 -0
  107. package/dist/subpath/TxScope.mjs.map +1 -0
  108. package/dist/subpath/TypeTool.cjs +2 -0
  109. package/dist/subpath/TypeTool.cjs.map +1 -0
  110. package/dist/subpath/TypeTool.mjs +9 -0
  111. package/dist/subpath/TypeTool.mjs.map +1 -0
  112. package/dist/subpath/Utils.cjs +2 -0
  113. package/dist/subpath/Utils.cjs.map +1 -0
  114. package/dist/subpath/Utils.mjs +835 -0
  115. package/dist/subpath/Utils.mjs.map +1 -0
  116. package/dist/subpath/VirtualTime.cjs +2 -0
  117. package/dist/subpath/VirtualTime.cjs.map +1 -0
  118. package/dist/subpath/VirtualTime.mjs +1186 -0
  119. package/dist/subpath/VirtualTime.mjs.map +1 -0
  120. package/dist/types/Arr.d.ts +2 -0
  121. package/dist/types/Concurrent/Lock/condition_variable.d.ts +138 -0
  122. package/dist/types/Concurrent/Lock/mutex.d.ts +185 -0
  123. package/dist/types/Concurrent/Lock/rwlock.d.ts +253 -0
  124. package/dist/types/Concurrent/Lock/semaphore.d.ts +208 -0
  125. package/dist/types/Concurrent/Valve/__export__.d.ts +5 -0
  126. package/dist/types/Concurrent/Valve/circuit-breaker.d.ts +146 -0
  127. package/dist/types/Concurrent/Valve/leaky-bucket.d.ts +115 -0
  128. package/dist/types/Concurrent/Valve/sliding-window.d.ts +91 -0
  129. package/dist/types/Concurrent/Valve/token-bucket.d.ts +68 -0
  130. package/dist/types/Concurrent/__export__.d.ts +15 -0
  131. package/dist/types/Concurrent/barrier.d.ts +255 -0
  132. package/dist/types/Concurrent/channel.d.ts +239 -0
  133. package/dist/types/Concurrent/delay.d.ts +42 -0
  134. package/dist/types/Concurrent/ext/map.d.ts +82 -0
  135. package/dist/types/Concurrent/ext/other.d.ts +113 -0
  136. package/dist/types/Concurrent/ext/race.d.ts +31 -0
  137. package/dist/types/Concurrent/ext/some.d.ts +64 -0
  138. package/dist/types/Concurrent/limiter.d.ts +131 -0
  139. package/dist/types/Concurrent/scheduler.d.ts +171 -0
  140. package/dist/types/Concurrent/task-scope.d.ts +282 -0
  141. package/dist/types/Concurrent.d.ts +2 -0
  142. package/dist/types/Errors.d.ts +66 -0
  143. package/dist/types/FetchQ.d.ts +2 -0
  144. package/dist/types/Fit/__export__.d.ts +5 -0
  145. package/dist/types/Fit/base.d.ts +325 -0
  146. package/dist/types/Fit/parser.d.ts +110 -0
  147. package/dist/types/Fit/standard-schema.d.ts +127 -0
  148. package/dist/types/Fit/sugar.d.ts +274 -0
  149. package/dist/types/Fit/tool.d.ts +585 -0
  150. package/dist/types/Fit.d.ts +2 -0
  151. package/dist/types/Lazy.d.ts +2 -0
  152. package/dist/types/Maps.d.ts +2 -0
  153. package/dist/types/Maybe/__export__.d.ts +6 -0
  154. package/dist/types/Maybe/base.d.ts +62 -0
  155. package/dist/types/Maybe/consumers-async.d.ts +58 -0
  156. package/dist/types/Maybe/consumers.d.ts +63 -0
  157. package/dist/types/Maybe/operators-async.d.ts +145 -0
  158. package/dist/types/Maybe/operators.d.ts +177 -0
  159. package/dist/types/Maybe/types.d.ts +12 -0
  160. package/dist/types/Maybe.d.ts +2 -0
  161. package/dist/types/MockClock/Timeline.d.ts +392 -0
  162. package/dist/types/MockClock/TimerHandle.d.ts +159 -0
  163. package/dist/types/MockClock/TimerHeap.d.ts +21 -0
  164. package/dist/types/MockClock/VirtualTimeManager.d.ts +23 -0
  165. package/dist/types/MockClock/__export__.d.ts +104 -0
  166. package/dist/types/MockClock/hooks/__export__.d.ts +9 -0
  167. package/dist/types/MockClock/hooks/hookAbortSignal.d.ts +3 -0
  168. package/dist/types/MockClock/hooks/hookDate.d.ts +3 -0
  169. package/dist/types/MockClock/hooks/hookIntl.d.ts +3 -0
  170. package/dist/types/MockClock/hooks/hookMessageChannel.d.ts +3 -0
  171. package/dist/types/MockClock/hooks/hookMicrotasks.d.ts +3 -0
  172. package/dist/types/MockClock/hooks/hookOs.d.ts +3 -0
  173. package/dist/types/MockClock/hooks/hookPerformance.d.ts +3 -0
  174. package/dist/types/MockClock/hooks/hookProcess.d.ts +3 -0
  175. package/dist/types/MockClock/hooks/hookTimers.d.ts +3 -0
  176. package/dist/types/MockClock/types.d.ts +103 -0
  177. package/dist/types/Other/FetchQ.d.ts +320 -0
  178. package/dist/types/Other/deque.d.ts +59 -0
  179. package/dist/types/Other/disjointSet.d.ts +53 -0
  180. package/dist/types/Other/heap.d.ts +41 -0
  181. package/dist/types/Other/lazy.d.ts +127 -0
  182. package/dist/types/Other/queue.d.ts +42 -0
  183. package/dist/types/Other/secret.d.ts +111 -0
  184. package/dist/types/Other/stack.d.ts +40 -0
  185. package/dist/types/Reactive/__export__.d.ts +4 -0
  186. package/dist/types/Reactive/event_emitter.d.ts +195 -0
  187. package/dist/types/Reactive/flow-combination.d.ts +74 -0
  188. package/dist/types/Reactive/flow.d.ts +180 -0
  189. package/dist/types/Reactive/pace.d.ts +80 -0
  190. package/dist/types/Reactive.d.ts +2 -0
  191. package/dist/types/Reader/__export-readerT__.d.ts +4 -0
  192. package/dist/types/Reader/__export-reader__.d.ts +4 -0
  193. package/dist/types/Reader/local.d.ts +39 -0
  194. package/dist/types/Reader/reader-async.d.ts +84 -0
  195. package/dist/types/Reader/reader.d.ts +96 -0
  196. package/dist/types/Reader/readerT-async.d.ts +186 -0
  197. package/dist/types/Reader/readerT.d.ts +178 -0
  198. package/dist/types/Reader/types.d.ts +37 -0
  199. package/dist/types/Reader.d.ts +2 -0
  200. package/dist/types/ReaderT.d.ts +2 -0
  201. package/dist/types/Resource/TxScope-async.d.ts +86 -0
  202. package/dist/types/Resource/TxScope.d.ts +85 -0
  203. package/dist/types/Resource/__export-TxScope__.d.ts +2 -0
  204. package/dist/types/Resource/__export-resource__.d.ts +2 -0
  205. package/dist/types/Resource/resource-async.d.ts +79 -0
  206. package/dist/types/Resource/resource.d.ts +78 -0
  207. package/dist/types/Resource/types.d.ts +79 -0
  208. package/dist/types/Resource.d.ts +2 -0
  209. package/dist/types/Result/Consumers/branch-async.d.ts +77 -0
  210. package/dist/types/Result/Consumers/branch.d.ts +70 -0
  211. package/dist/types/Result/Consumers/inspect.d.ts +66 -0
  212. package/dist/types/Result/Operators/Async/combine-async.d.ts +69 -0
  213. package/dist/types/Result/Operators/Async/partition-async.d.ts +29 -0
  214. package/dist/types/Result/Operators/Async/reduce-async.d.ts +15 -0
  215. package/dist/types/Result/Operators/Async/transform-async.d.ts +90 -0
  216. package/dist/types/Result/Operators/combine.d.ts +60 -0
  217. package/dist/types/Result/Operators/flatten.d.ts +26 -0
  218. package/dist/types/Result/Operators/partition.d.ts +25 -0
  219. package/dist/types/Result/Operators/reduce.d.ts +12 -0
  220. package/dist/types/Result/Operators/transform.d.ts +70 -0
  221. package/dist/types/Result/__export__.d.ts +14 -0
  222. package/dist/types/Result/base.d.ts +115 -0
  223. package/dist/types/Result/types.d.ts +34 -0
  224. package/dist/types/Result.d.ts +2 -0
  225. package/dist/types/Sets.d.ts +2 -0
  226. package/dist/types/Str.d.ts +2 -0
  227. package/dist/types/TxScope.d.ts +2 -0
  228. package/dist/types/TypeTool.d.ts +2 -0
  229. package/dist/types/Utils/Array/__export__.d.ts +10 -0
  230. package/dist/types/Utils/Array/filtering.d.ts +89 -0
  231. package/dist/types/Utils/Array/flatten.d.ts +45 -0
  232. package/dist/types/Utils/Array/grouping.d.ts +44 -0
  233. package/dist/types/Utils/Array/iteration.d.ts +86 -0
  234. package/dist/types/Utils/Array/operators.d.ts +62 -0
  235. package/dist/types/Utils/Array/randomization.d.ts +76 -0
  236. package/dist/types/Utils/Array/set.d.ts +108 -0
  237. package/dist/types/Utils/Array/slice.d.ts +189 -0
  238. package/dist/types/Utils/Array/sorting.d.ts +55 -0
  239. package/dist/types/Utils/Array/zip.d.ts +93 -0
  240. package/dist/types/Utils/Functions/__export__.d.ts +5 -0
  241. package/dist/types/Utils/Functions/base.d.ts +157 -0
  242. package/dist/types/Utils/Functions/curry.d.ts +73 -0
  243. package/dist/types/Utils/Functions/debounce.d.ts +240 -0
  244. package/dist/types/Utils/Functions/defer.d.ts +43 -0
  245. package/dist/types/Utils/Functions/pipe.d.ts +205 -0
  246. package/dist/types/Utils/Map.d.ts +284 -0
  247. package/dist/types/Utils/Math.d.ts +225 -0
  248. package/dist/types/Utils/Object/__export__.d.ts +2 -0
  249. package/dist/types/Utils/Object/base.d.ts +131 -0
  250. package/dist/types/Utils/Object/clone.d.ts +81 -0
  251. package/dist/types/Utils/Predicates.d.ts +361 -0
  252. package/dist/types/Utils/Set.d.ts +105 -0
  253. package/dist/types/Utils/String.d.ts +217 -0
  254. package/dist/types/Utils/__export__.d.ts +9 -0
  255. package/dist/types/Utils/type-tool.d.ts +168 -0
  256. package/dist/types/Utils.d.ts +2 -0
  257. package/dist/types/VirtualTime.d.ts +2 -0
  258. package/dist/types/helper.d.ts +71 -0
  259. package/dist/types/index.d.ts +21 -0
  260. package/dist/types/unknown-error.d.ts +98 -0
  261. package/package.json +179 -0
@@ -0,0 +1,914 @@
1
+ import { O as st, E as ot, i as at } from "../chunks/base-K-RHLZ-S.mjs";
2
+ import { P as rt } from "../chunks/Errors-DwUAvFIF.mjs";
3
+ import { d as x } from "../chunks/helper-BVabbpmX.mjs";
4
+ const F = Symbol("Void");
5
+ var w = /* @__PURE__ */ ((t) => (t[t.that = 0] = "that", t[t.off = 1] = "off", t[t.transform = 2] = "transform", t[t.shape = 3] = "shape", t[t.toArray = 4] = "toArray", t))(w || {});
6
+ class s {
7
+ ops = new Array();
8
+ is_optional = !1;
9
+ get Ops() {
10
+ return this.ops;
11
+ }
12
+ get isOptional() {
13
+ return this.is_optional;
14
+ }
15
+ // -- 内部方法:从现有操作数组创建实例 --
16
+ static _fromOps(e) {
17
+ const n = new s();
18
+ return n.ops = e, n;
19
+ }
20
+ that(e, n) {
21
+ return this.ops.push({
22
+ type: 0,
23
+ predicate: e,
24
+ message: n
25
+ }), this;
26
+ }
27
+ off(e, n) {
28
+ const r = {
29
+ type: 1,
30
+ predicate: e
31
+ };
32
+ return arguments.length > 1 && (r.defaultValue = n), this.ops.push(r), this;
33
+ }
34
+ // ============================================
35
+ // transform: 值变换
36
+ // ============================================
37
+ /**
38
+ * Adds a transformation that converts the value to a new type.
39
+ *
40
+ * The transform function receives the current value and can return a new value
41
+ * of any type. Async transforms are supported via MaybePromise.
42
+ *
43
+ * @template U - The output type of the transformation
44
+ * @param fn - A function that transforms the value
45
+ * @returns A new Fit with type U (Awaited for async transforms)
46
+ */
47
+ transform(e) {
48
+ return this.ops.push({
49
+ type: 2,
50
+ fn: e
51
+ }), this;
52
+ }
53
+ // ============================================
54
+ // toShaped: 对象形状校验
55
+ // ============================================
56
+ /**
57
+ * Adds object shape validation with typed field schemas.
58
+ *
59
+ * Each field in the shape is validated by its own Fit schema. The resulting
60
+ * type is derived from the field schemas, with optional fields marked with `?`
61
+ * and readonly fields marked with `readonly`.
62
+ *
63
+ * Cannot be called on a readonly Fit or after another toShaped call.
64
+ *
65
+ * @template F - Record of field name to Fit schema
66
+ * @param fields - An object mapping field names to their Fit schemas
67
+ * @returns A new Fit with the derived shape type
68
+ */
69
+ toShaped(e) {
70
+ return this.ops.push({
71
+ type: 3,
72
+ fields: e
73
+ }), this;
74
+ }
75
+ // ============================================
76
+ // toArray: 数组元素校验
77
+ // ============================================
78
+ /**
79
+ * Adds array validation where each element is validated by the given schema.
80
+ *
81
+ * Cannot be called on a readonly Fit or after another toArray call.
82
+ *
83
+ * @template E - The element type after validation
84
+ * @template EBail - The element's Bail type
85
+ * @template EChecked - The element's Checked type
86
+ * @template EOptional - Whether elements are optional
87
+ * @template EReadonly - Whether elements are readonly
88
+ * @template EShape - Whether elements have shape validation
89
+ * @param elementFit - The Fit schema to validate each array element
90
+ * @returns A new Fit with array type
91
+ */
92
+ toArray(e) {
93
+ return this.ops.push({
94
+ type: 4,
95
+ elementFit: e
96
+ }), this;
97
+ }
98
+ /**
99
+ * Creates a copy of this Fit instance with its own operation array.
100
+ *
101
+ * Useful when you want to branch a validation pipeline without affecting
102
+ * the original.
103
+ *
104
+ * @returns A new Fit instance with copied operations
105
+ */
106
+ fork() {
107
+ const e = s._fromOps([...this.ops]);
108
+ return e.is_optional = this.is_optional, e;
109
+ }
110
+ }
111
+ const wt = (t) => t, u = (t) => (t.is_optional = !0, t), Ot = () => new s(), kt = (t) => new s().toShaped(t), vt = (t) => new s().toArray(t), P = (t) => typeof t == "string", W = (t) => typeof t == "number", U = (t) => typeof t == "boolean", Z = (t) => typeof t == "symbol", B = (t) => typeof t == "bigint", K = (t) => typeof t == "function", S = (t) => typeof t == "object" && t !== null, I = (t) => Array.isArray(t), it = (t) => t === void 0, ct = (t) => t === null, L = (t) => t == null, ft = (t) => t == null || typeof t != "object" && typeof t != "function", G = (t) => t instanceof Date, X = (t) => t instanceof RegExp, Y = (t) => t instanceof Error, q = (t) => t instanceof Map, z = (t) => t instanceof Set, C = (t) => t instanceof WeakMap, H = (t) => t instanceof WeakSet, J = (t) => S(t) && !I(t), Q = (t) => S(t) && Symbol.iterator in t, tt = (t) => S(t) && Symbol.asyncIterator in t, jt = (t, e) => (n) => {
112
+ if (!S(n)) return !1;
113
+ for (const r in n)
114
+ if (Object.prototype.hasOwnProperty.call(n, r) && (!t(r) || !e(n[r])))
115
+ return !1;
116
+ return !0;
117
+ }, lt = (t) => !!t, ut = (t) => !t, pt = (t) => L(t) ? !0 : P(t) || I(t) ? t.length === 0 : q(t) || z(t) ? t.size === 0 : S(t) ? Object.keys(t).length === 0 : !1, St = (t) => !pt(t), At = (t) => (e) => e === t, Et = (t) => (e) => e !== t, $t = (t) => (e) => e > t, Mt = (t) => (e) => e >= t, It = (t) => (e) => e < t, Nt = (t) => (e) => e <= t, Vt = (t, e) => (n) => n > t && n < e, Rt = (t, e) => (n) => n >= t && n <= e, et = (...t) => (e) => t.includes(e), Wt = (...t) => (e) => !t.includes(e), xt = (
118
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
119
+ ((t) => (e) => e instanceof t)
120
+ ), Dt = (t) => (e) => e.length >= t, Ft = (t) => (e) => e.length <= t, Pt = (t, e) => (n) => n.length >= t && n.length <= e, qt = (t) => (e) => t.test(e), zt = (t) => (e) => e.startsWith(t), Tt = (t) => (e) => e.endsWith(t), Ut = (t) => (e) => e.includes(t), Zt = (t) => t === t.trim(), Bt = (t) => t.length > 0, Kt = (t) => /^\d+$/.test(t), Lt = (t) => /^[a-zA-Z]+$/.test(t), Gt = (t) => /^[a-zA-Z0-9]+$/.test(t), Xt = (t) => /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(t), Yt = (t) => {
121
+ const e = /^(?!\.)(?!.*?\.\.)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~.-]+@((?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,})$/u;
122
+ return !t || t.length > 254 ? !1 : e.test(t);
123
+ }, Ct = (t) => {
124
+ try {
125
+ return new URL(t), !0;
126
+ } catch {
127
+ return !1;
128
+ }
129
+ }, Ht = (t) => /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t), Jt = (t) => /^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(t), Qt = (t) => (e) => e >= t, te = (t) => (e) => e <= t, ee = (t, e) => (n) => n >= t && n <= e, nt = (t) => Number.isInteger(t), ne = (t) => Number.isSafeInteger(t), se = (t) => t > 0, oe = (t) => t < 0, ae = (t) => t <= 0, re = (t) => t >= 0, ie = (t) => Number.isFinite(t), ce = (t) => Number.isNaN(t), fe = (t) => t % 2 === 0, le = (t) => t % 2 !== 0, ue = (t) => (e) => e % t === 0, pe = (t) => (e) => e.length >= t, de = (t) => (e) => e.length <= t, he = (t, e) => (n) => n.length >= t && n.length <= e, _e = (t) => (e) => e.length === t, ye = (t) => t.length > 0, me = (t) => new Set(t).size === t.length, be = (t) => (e) => {
130
+ const n = [...e].sort(t);
131
+ return e.every((r, a) => r === n[a]);
132
+ }, ge = (t) => (e) => e.every(t), we = (t) => (e) => e.some(t), Oe = (t) => (e) => t in e, ke = (t) => (e) => Object.prototype.hasOwnProperty.call(e, t), ve = (...t) => (e) => t.every((n) => n in e), je = (...t) => (e) => {
133
+ const n = Object.keys(e).sort(), r = [...t].sort();
134
+ return n.length === r.length && n.every((a, b) => a === r[b]);
135
+ };
136
+ function Se(...t) {
137
+ return ((e) => t.some((n) => n(e)));
138
+ }
139
+ function Ae(...t) {
140
+ return ((e) => t.every((n) => n(e)));
141
+ }
142
+ const Ee = (t, e) => (n) => {
143
+ if (typeof n != "object" || n === null) return !1;
144
+ const a = n[t], b = e[a];
145
+ return b?.(n) ?? !1;
146
+ }, $e = (t) => (e) => I(e) && e.every(t), Me = (t) => (e) => {
147
+ if (!S(e)) return !1;
148
+ for (const n in t)
149
+ if (!(n in e) || !t[n](e[n])) return !1;
150
+ return !0;
151
+ }, Ie = (t, e, n = !1) => (r) => W(r) && r >= t && r <= e && (!n || nt(r)), Ne = (t) => W(t) && nt(t) && t >= 0, p = (t) => t == null || t === F, Ve = () => new s().that(P), Re = () => new s().that(W), We = () => new s().that(U), xe = () => new s().that(Z), De = () => new s().that(B), Fe = () => new s().that(K), Pe = () => new s().that(S), qe = () => new s().that(I), ze = () => new s().that(it), Te = () => new s().that(ct), Ue = () => new s().that(L), Ze = () => new s().that(ft), Be = () => new s().that(G), Ke = () => new s().that(X), Le = () => new s().that(Y), Ge = () => new s().that(q), Xe = () => new s().that(z), Ye = () => new s().that(C), Ce = () => new s().that(H), He = () => new s().that(J), Je = () => new s().that(Q), Qe = () => new s().that(tt), tn = (...t) => new s().that(et(...t)), en = () => new s().that(lt), nn = () => new s().that(ut), sn = (t = void 0) => {
152
+ const e = new s();
153
+ return u(e).off(p, t).that(P);
154
+ }, on = (...t) => {
155
+ const e = new s();
156
+ return u(e).off(p, void 0).that(
157
+ et(...t)
158
+ );
159
+ }, an = (t = void 0) => {
160
+ const e = new s();
161
+ return u(e).off(p, t).that(W);
162
+ }, rn = (t = void 0) => {
163
+ const e = new s();
164
+ return u(e).off(p, t).that(U);
165
+ }, cn = (t = void 0) => {
166
+ const e = new s();
167
+ return u(e).off(p, t).that(Z);
168
+ }, fn = (t = void 0) => {
169
+ const e = new s();
170
+ return u(e).off(p, t).that(B);
171
+ }, ln = (t = void 0) => {
172
+ const e = new s();
173
+ return u(e).off(p, t).that(K);
174
+ }, un = (t = void 0) => {
175
+ const e = new s();
176
+ return u(e).off(p, t).that(S);
177
+ }, pn = (t = void 0) => {
178
+ const e = new s();
179
+ return u(e).off(p, t).that(I);
180
+ }, dn = (t = void 0) => {
181
+ const e = new s();
182
+ return u(e).off(p, t).that(G);
183
+ }, hn = (t = void 0) => {
184
+ const e = new s();
185
+ return u(e).off(p, t).that(X);
186
+ }, _n = (t = void 0) => {
187
+ const e = new s();
188
+ return u(e).off(p, t).that(Y);
189
+ }, yn = (t = void 0) => {
190
+ const e = new s();
191
+ return u(e).off(p, t).that(q);
192
+ }, mn = (t = void 0) => {
193
+ const e = new s();
194
+ return u(e).off(p, t).that(z);
195
+ }, bn = (t = void 0) => {
196
+ const e = new s();
197
+ return u(e).off(p, t).that(C);
198
+ }, gn = (t = void 0) => {
199
+ const e = new s();
200
+ return u(e).off(p, t).that(H);
201
+ }, wn = (t = void 0) => {
202
+ const e = new s();
203
+ return u(e).off(p, t).that(J);
204
+ }, On = (t = void 0) => {
205
+ const e = new s();
206
+ return u(e).off(p, t).that(Q);
207
+ }, kn = (t = void 0) => {
208
+ const e = new s();
209
+ return u(e).off(p, t).that(tt);
210
+ };
211
+ function vn(t, e = void 0) {
212
+ const r = new s().off(p, e).toShaped(t);
213
+ return u(r);
214
+ }
215
+ function jn(t, e = void 0) {
216
+ const r = new s().off(p, e).toArray(t);
217
+ return u(r);
218
+ }
219
+ const dt = "Validation failed", ht = (t, e) => {
220
+ switch (t) {
221
+ case "assertion":
222
+ return e.extra?.message;
223
+ case "missing_field":
224
+ return `Missing required field: ${e.key}`;
225
+ case "not_object":
226
+ return `Expected an object, but got ${e.received}`;
227
+ case "not_array":
228
+ return `Expected an array, but got ${e.received}`;
229
+ case "unknown_field":
230
+ return `Unknown field(s): ${e.extra?.keys}`;
231
+ case "max_deep":
232
+ return `Maximum recursion depth ${e.depth} exceeded`;
233
+ case "too_many_unknown":
234
+ return `Too many unknown fields (limit: ${e.extra?.limit})`;
235
+ }
236
+ }, D = (t) => t === null ? "null" : typeof t, A = (t, e, n, r) => (t.validation.push({ path: e.slice(), kind: n, message: r }), t.validation.length), E = (t, e, n, r) => (t.structure.push({ path: e.slice(), kind: n, detail: r }), t.structure.length), _t = (t, e, n) => {
237
+ const {
238
+ strict: r = !0,
239
+ abortEarly: a = !0,
240
+ maxDeep: b = 10,
241
+ maxUnknownKeys: N = 30,
242
+ formatMessage: m = ht
243
+ } = n ?? {}, V = e.Ops;
244
+ if (V.length === 0)
245
+ throw new rt(
246
+ "validateShape: fit.Ops is empty, did you forget to add operations?"
247
+ );
248
+ const _ = { validation: [], structure: [] };
249
+ let f = 0;
250
+ const i = [], k = (o, R, O) => {
251
+ for (let $ = 0; $ < R.length; $++) {
252
+ const y = R[$];
253
+ switch (y.type) {
254
+ // 断言检查:验证值是否满足谓词条件
255
+ case w.that: {
256
+ if (!y.predicate(o)) {
257
+ const d = y.message, h = d ? typeof d == "string" ? d : d(o) : dt;
258
+ if (A(
259
+ _,
260
+ i,
261
+ "assertion",
262
+ m("assertion", { extra: { message: h } })
263
+ ), f++, a) return o;
264
+ }
265
+ break;
266
+ }
267
+ // 短路处理:满足条件时提前返回默认值或原值
268
+ case w.off: {
269
+ if (y.predicate(o))
270
+ return "defaultValue" in y ? y.defaultValue : o;
271
+ break;
272
+ }
273
+ // 变换操作:对值进行转换处理
274
+ case w.transform: {
275
+ o = y.fn(o);
276
+ break;
277
+ }
278
+ // 对象形状校验:递归验证对象字段
279
+ case w.shape: {
280
+ if (O >= b) {
281
+ if (E(
282
+ _,
283
+ i,
284
+ "max_deep",
285
+ m("max_deep", { depth: b })
286
+ ), f++, a) return o;
287
+ break;
288
+ }
289
+ if (typeof o != "object" || o === null) {
290
+ if (A(
291
+ _,
292
+ i,
293
+ "not_object",
294
+ m("not_object", { received: D(o) })
295
+ ), f++, a) return o;
296
+ break;
297
+ }
298
+ const d = o, h = y.fields, l = {}, v = /* @__PURE__ */ new Set();
299
+ let g = [];
300
+ for (const c in d)
301
+ if (Object.hasOwn(d, c)) {
302
+ if (c in h) {
303
+ v.add(c), i.push(c);
304
+ const j = h[c], M = k(
305
+ d[c],
306
+ j.Ops,
307
+ O + 1
308
+ );
309
+ if (a && f > 0)
310
+ return i.pop(), l;
311
+ l[c] = M, i.pop();
312
+ } else if (r && (g.push(c), g.length > N && (E(
313
+ _,
314
+ i,
315
+ "too_many_unknown",
316
+ m("too_many_unknown", {
317
+ extra: {
318
+ limit: N,
319
+ keys: g.join(", ")
320
+ }
321
+ })
322
+ ), f++, g = [], a)))
323
+ return l;
324
+ }
325
+ if (r && g.length > 0 && f === 0 && (E(
326
+ _,
327
+ i,
328
+ "unknown_field",
329
+ m("unknown_field", {
330
+ extra: { keys: g.join(", ") }
331
+ })
332
+ ), f++, a))
333
+ return l;
334
+ for (const c of Object.keys(h)) {
335
+ if (v.has(c)) continue;
336
+ i.push(c);
337
+ const j = h[c];
338
+ if (!j.isOptional && (A(
339
+ _,
340
+ i,
341
+ "missing_field",
342
+ m("missing_field", { key: c })
343
+ ), f++, a))
344
+ return i.pop(), l;
345
+ const M = k(F, j.Ops, O);
346
+ if (a && f > 0)
347
+ return i.pop(), l;
348
+ l[c] = M, i.pop();
349
+ }
350
+ o = l;
351
+ break;
352
+ }
353
+ // 数组校验:递归验证数组元素
354
+ case w.toArray: {
355
+ if (O >= b) {
356
+ if (E(
357
+ _,
358
+ i,
359
+ "max_deep",
360
+ m("max_deep", { depth: b })
361
+ ), f++, a) return o;
362
+ break;
363
+ }
364
+ if (!Array.isArray(o)) {
365
+ if (A(
366
+ _,
367
+ i,
368
+ "not_array",
369
+ m("not_array", { received: D(o) })
370
+ ), f++, a) return o;
371
+ break;
372
+ }
373
+ const d = y.elementFit, h = [];
374
+ for (let l = 0; l < o.length; l++) {
375
+ i.push(`[${l}]`);
376
+ const v = k(
377
+ o[l],
378
+ d.Ops,
379
+ O + 1
380
+ );
381
+ if (a && f > 0)
382
+ return i.pop(), h;
383
+ h.push(v), i.pop();
384
+ }
385
+ o = h;
386
+ break;
387
+ }
388
+ }
389
+ }
390
+ return o;
391
+ }, T = k(t, V, 0);
392
+ return f > 0 ? ot(_) : st(T);
393
+ }, yt = async (t, e, n) => {
394
+ const {
395
+ strict: r = !0,
396
+ abortEarly: a = !0,
397
+ maxDeep: b = 10,
398
+ maxUnknownKeys: N = 30,
399
+ formatMessage: m = ht
400
+ } = n ?? {}, V = e.Ops;
401
+ if (V.length === 0)
402
+ throw new rt(
403
+ "validateAsync: fit.Ops is empty, did you forget to add operations?"
404
+ );
405
+ const _ = { validation: [], structure: [] };
406
+ let f = 0;
407
+ const i = [], k = async (o, R, O) => {
408
+ for (let $ = 0; $ < R.length; $++) {
409
+ const y = R[$];
410
+ switch (y.type) {
411
+ // 异步断言检查
412
+ case w.that: {
413
+ if (!await x(y.predicate(o))) {
414
+ const d = y.message, h = d ? typeof d == "string" ? d : await x(d(o)) : dt;
415
+ if (A(
416
+ _,
417
+ i,
418
+ "assertion",
419
+ m("assertion", { extra: { message: h } })
420
+ ), f++, a)
421
+ return o;
422
+ }
423
+ break;
424
+ }
425
+ // 异步短路处理
426
+ case w.off: {
427
+ if (await x(y.predicate(o)))
428
+ return "defaultValue" in y ? y.defaultValue : o;
429
+ break;
430
+ }
431
+ // 异步变换操作
432
+ case w.transform: {
433
+ o = await x(y.fn(o));
434
+ break;
435
+ }
436
+ // 异步对象形状校验
437
+ case w.shape: {
438
+ if (O >= b) {
439
+ if (E(
440
+ _,
441
+ i,
442
+ "max_deep",
443
+ m("max_deep", { depth: b })
444
+ ), f++, a) return o;
445
+ break;
446
+ }
447
+ if (typeof o != "object" || o === null) {
448
+ if (A(
449
+ _,
450
+ i,
451
+ "not_object",
452
+ m("not_object", { received: D(o) })
453
+ ), f++, a) return o;
454
+ break;
455
+ }
456
+ const d = o, h = y.fields, l = {}, v = /* @__PURE__ */ new Set();
457
+ let g = [];
458
+ for (const c in d)
459
+ if (Object.hasOwn(d, c)) {
460
+ if (c in h) {
461
+ v.add(c), i.push(c);
462
+ const j = h[c], M = await k(
463
+ d[c],
464
+ j.Ops,
465
+ O + 1
466
+ );
467
+ if (a && f > 0)
468
+ return i.pop(), l;
469
+ l[c] = M, i.pop();
470
+ } else if (r && (g.push(c), g.length > N && (E(
471
+ _,
472
+ i,
473
+ "too_many_unknown",
474
+ m("too_many_unknown", {
475
+ extra: {
476
+ limit: N,
477
+ keys: g.join(", ")
478
+ }
479
+ })
480
+ ), f++, g = [], a)))
481
+ return l;
482
+ }
483
+ if (r && g.length > 0 && f === 0 && (E(
484
+ _,
485
+ i,
486
+ "unknown_field",
487
+ m("unknown_field", {
488
+ extra: { keys: g.join(", ") }
489
+ })
490
+ ), f++, a))
491
+ return l;
492
+ for (const c of Object.keys(h)) {
493
+ if (v.has(c)) continue;
494
+ i.push(c);
495
+ const j = h[c];
496
+ if (!j.isOptional && (A(
497
+ _,
498
+ i,
499
+ "missing_field",
500
+ m("missing_field", { key: c })
501
+ ), f++, a))
502
+ return i.pop(), l;
503
+ const M = await k(F, j.Ops, O);
504
+ if (a && f > 0)
505
+ return i.pop(), l;
506
+ l[c] = M, i.pop();
507
+ }
508
+ o = l;
509
+ break;
510
+ }
511
+ // 异步数组校验
512
+ case w.toArray: {
513
+ if (O >= b) {
514
+ if (E(
515
+ _,
516
+ i,
517
+ "max_deep",
518
+ m("max_deep", { depth: b })
519
+ ), f++, a) return o;
520
+ break;
521
+ }
522
+ if (!Array.isArray(o)) {
523
+ if (A(
524
+ _,
525
+ i,
526
+ "not_array",
527
+ m("not_array", { received: D(o) })
528
+ ), f++, a) return o;
529
+ break;
530
+ }
531
+ const d = y.elementFit, h = [];
532
+ for (let l = 0; l < o.length; l++) {
533
+ i.push(`[${l}]`);
534
+ const v = await k(
535
+ o[l],
536
+ d.Ops,
537
+ O + 1
538
+ );
539
+ if (a && f > 0)
540
+ return i.pop(), h;
541
+ h.push(v), i.pop();
542
+ }
543
+ o = h;
544
+ break;
545
+ }
546
+ }
547
+ }
548
+ return o;
549
+ }, T = await k(t, V, 0);
550
+ return f > 0 ? ot(_) : st(T);
551
+ }, mt = "fit-schema", Sn = /^\d+$/, bt = (t) => {
552
+ const e = t.length;
553
+ if (e === 0) return [];
554
+ const n = new Array(e);
555
+ for (let r = 0; r < e; r++) {
556
+ const a = t[r];
557
+ if (a[0] === "[" && a[a.length - 1] === "]") {
558
+ const b = a.slice(1, -1);
559
+ if (Sn.test(b)) {
560
+ n[r] = { key: Number(b) };
561
+ continue;
562
+ }
563
+ }
564
+ n[r] = a;
565
+ }
566
+ return n;
567
+ }, An = (t) => {
568
+ const e = [];
569
+ for (const n of t)
570
+ e.push({
571
+ message: n.message,
572
+ path: bt(n.path)
573
+ });
574
+ return e;
575
+ }, En = (t) => {
576
+ const e = [];
577
+ for (const n of t)
578
+ e.push({
579
+ message: n.detail,
580
+ path: bt(n.path)
581
+ });
582
+ return e;
583
+ }, gt = (t) => [
584
+ ...An(t.validation),
585
+ ...En(t.structure)
586
+ ], $n = (t) => ({
587
+ "~standard": {
588
+ version: 1,
589
+ vendor: mt,
590
+ types: {
591
+ input: void 0,
592
+ output: void 0
593
+ },
594
+ validate: (n, r) => {
595
+ const a = _t(n, t);
596
+ return at(a) ? { issues: gt(a.error) } : { value: a.value };
597
+ }
598
+ }
599
+ }), Mn = (t) => ({
600
+ "~standard": {
601
+ version: 1,
602
+ vendor: mt,
603
+ types: {
604
+ input: void 0,
605
+ output: void 0
606
+ },
607
+ validate: async (n, r) => {
608
+ const a = await yt(n, t);
609
+ return at(a) ? { issues: gt(a.error) } : { value: a.value };
610
+ }
611
+ }
612
+ }), Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
613
+ __proto__: null,
614
+ Array: qe,
615
+ ArrayOpt: pn,
616
+ AsyncIterable: Qe,
617
+ AsyncIterableOpt: kn,
618
+ Bigint: De,
619
+ BigintOpt: fn,
620
+ Boolean: We,
621
+ BooleanOpt: rn,
622
+ Date: Be,
623
+ DateOpt: dn,
624
+ Error: Le,
625
+ ErrorOpt: _n,
626
+ Falsy: nn,
627
+ Fit: s,
628
+ Function: Fe,
629
+ FunctionOpt: ln,
630
+ ItemsOpt: jn,
631
+ Iterable: Je,
632
+ IterableOpt: On,
633
+ Map: Ge,
634
+ MapOpt: yn,
635
+ Null: Te,
636
+ Nullish: Ue,
637
+ Number: Re,
638
+ NumberOpt: an,
639
+ Object: Pe,
640
+ ObjectOpt: un,
641
+ OneOf: tn,
642
+ OneOfOpt: on,
643
+ PlainObject: He,
644
+ PlainObjectOpt: wn,
645
+ Primitive: Ze,
646
+ RegExp: Ke,
647
+ RegExpOpt: hn,
648
+ Set: Xe,
649
+ SetOpt: mn,
650
+ ShapeOpt: vn,
651
+ String: Ve,
652
+ StringOpt: sn,
653
+ Symbol: xe,
654
+ SymbolOpt: cn,
655
+ Truthy: en,
656
+ Undefined: ze,
657
+ Void: F,
658
+ WeakMap: Ye,
659
+ WeakMapOpt: bn,
660
+ WeakSet: Ce,
661
+ WeakSetOpt: gn,
662
+ alpha_string: Lt,
663
+ alphanumeric_string: Gt,
664
+ and: Ae,
665
+ arr_len: _e,
666
+ arr_len_range: he,
667
+ arr_max_len: de,
668
+ arr_min_len: pe,
669
+ array: I,
670
+ arrayOf: $e,
671
+ asyncIterable: tt,
672
+ between: Vt,
673
+ betweenInclusive: Rt,
674
+ bigint: B,
675
+ boolean: U,
676
+ date: G,
677
+ discriminatedUnion: Ee,
678
+ email: Yt,
679
+ empty: pt,
680
+ ends_with: Tt,
681
+ eq: At,
682
+ error: Y,
683
+ even: fe,
684
+ every: ge,
685
+ exact_keys: je,
686
+ falsy: ut,
687
+ finite: ie,
688
+ fit: Ot,
689
+ function: K,
690
+ gt: $t,
691
+ gte: Mt,
692
+ has_key: Oe,
693
+ has_own: ke,
694
+ hex_color: Jt,
695
+ includes: Ut,
696
+ instanceOf: xt,
697
+ integer: nt,
698
+ iso_datetime: Xt,
699
+ items: vt,
700
+ iterable: Q,
701
+ keys: ve,
702
+ len_range: Pt,
703
+ lt: It,
704
+ lte: Nt,
705
+ map: q,
706
+ matches: qt,
707
+ max: te,
708
+ max_len: Ft,
709
+ min: Qt,
710
+ min_len: Dt,
711
+ multiple_of: ue,
712
+ nan: ce,
713
+ negative: oe,
714
+ neq: Et,
715
+ nonEmpty: St,
716
+ nonNegativeInt: Ne,
717
+ non_empty_array: ye,
718
+ non_empty_string: Bt,
719
+ non_negative: re,
720
+ non_positive: ae,
721
+ notOneOf: Wt,
722
+ null: ct,
723
+ nullish: L,
724
+ numRange: Ie,
725
+ number: W,
726
+ numeric_string: Kt,
727
+ object: S,
728
+ objectShape: Me,
729
+ odd: le,
730
+ oneOf: et,
731
+ optionality: p,
732
+ plainObject: J,
733
+ positive: se,
734
+ primitive: ft,
735
+ range: ee,
736
+ record: jt,
737
+ regexp: X,
738
+ safe_integer: ne,
739
+ set: z,
740
+ shape: kt,
741
+ some: we,
742
+ sorted: be,
743
+ starts_with: zt,
744
+ string: P,
745
+ symbol: Z,
746
+ toOptional: u,
747
+ toReadonly: wt,
748
+ toStandardSchema: $n,
749
+ toStandardSchemaAsync: Mn,
750
+ trimmed: Zt,
751
+ truthy: lt,
752
+ type: w,
753
+ undefined: it,
754
+ union: Se,
755
+ unique: me,
756
+ url: Ct,
757
+ uuid: Ht,
758
+ validate: _t,
759
+ validateAsync: yt,
760
+ weakMap: C,
761
+ weakSet: H
762
+ }, Symbol.toStringTag, { value: "Module" }));
763
+ export {
764
+ qe as Array,
765
+ pn as ArrayOpt,
766
+ Qe as AsyncIterable,
767
+ kn as AsyncIterableOpt,
768
+ De as Bigint,
769
+ fn as BigintOpt,
770
+ We as Boolean,
771
+ rn as BooleanOpt,
772
+ Be as Date,
773
+ dn as DateOpt,
774
+ Le as Error,
775
+ _n as ErrorOpt,
776
+ nn as Falsy,
777
+ s as Fit,
778
+ Fe as Function,
779
+ ln as FunctionOpt,
780
+ jn as ItemsOpt,
781
+ Je as Iterable,
782
+ On as IterableOpt,
783
+ Ge as Map,
784
+ yn as MapOpt,
785
+ Te as Null,
786
+ Ue as Nullish,
787
+ Re as Number,
788
+ an as NumberOpt,
789
+ Pe as Object,
790
+ un as ObjectOpt,
791
+ tn as OneOf,
792
+ on as OneOfOpt,
793
+ He as PlainObject,
794
+ wn as PlainObjectOpt,
795
+ Ze as Primitive,
796
+ Ke as RegExp,
797
+ hn as RegExpOpt,
798
+ Xe as Set,
799
+ mn as SetOpt,
800
+ vn as ShapeOpt,
801
+ Ve as String,
802
+ sn as StringOpt,
803
+ xe as Symbol,
804
+ cn as SymbolOpt,
805
+ en as Truthy,
806
+ ze as Undefined,
807
+ F as Void,
808
+ Ye as WeakMap,
809
+ bn as WeakMapOpt,
810
+ Ce as WeakSet,
811
+ gn as WeakSetOpt,
812
+ Rn as _,
813
+ Lt as alpha_string,
814
+ Gt as alphanumeric_string,
815
+ Ae as and,
816
+ _e as arr_len,
817
+ he as arr_len_range,
818
+ de as arr_max_len,
819
+ pe as arr_min_len,
820
+ I as array,
821
+ $e as arrayOf,
822
+ tt as asyncIterable,
823
+ Vt as between,
824
+ Rt as betweenInclusive,
825
+ B as bigint,
826
+ U as boolean,
827
+ G as date,
828
+ Ee as discriminatedUnion,
829
+ Yt as email,
830
+ pt as empty,
831
+ Tt as ends_with,
832
+ At as eq,
833
+ Y as error,
834
+ fe as even,
835
+ ge as every,
836
+ je as exact_keys,
837
+ ut as falsy,
838
+ ie as finite,
839
+ Ot as fit,
840
+ K as function,
841
+ $t as gt,
842
+ Mt as gte,
843
+ Oe as has_key,
844
+ ke as has_own,
845
+ Jt as hex_color,
846
+ Ut as includes,
847
+ xt as instanceOf,
848
+ nt as integer,
849
+ Xt as iso_datetime,
850
+ vt as items,
851
+ Q as iterable,
852
+ ve as keys,
853
+ Pt as len_range,
854
+ It as lt,
855
+ Nt as lte,
856
+ q as map,
857
+ qt as matches,
858
+ te as max,
859
+ Ft as max_len,
860
+ Qt as min,
861
+ Dt as min_len,
862
+ ue as multiple_of,
863
+ ce as nan,
864
+ oe as negative,
865
+ Et as neq,
866
+ St as nonEmpty,
867
+ Ne as nonNegativeInt,
868
+ ye as non_empty_array,
869
+ Bt as non_empty_string,
870
+ re as non_negative,
871
+ ae as non_positive,
872
+ Wt as notOneOf,
873
+ ct as null,
874
+ L as nullish,
875
+ Ie as numRange,
876
+ W as number,
877
+ Kt as numeric_string,
878
+ S as object,
879
+ Me as objectShape,
880
+ le as odd,
881
+ et as oneOf,
882
+ p as optionality,
883
+ J as plainObject,
884
+ se as positive,
885
+ ft as primitive,
886
+ ee as range,
887
+ jt as record,
888
+ X as regexp,
889
+ ne as safe_integer,
890
+ z as set,
891
+ kt as shape,
892
+ we as some,
893
+ be as sorted,
894
+ zt as starts_with,
895
+ P as string,
896
+ Z as symbol,
897
+ u as toOptional,
898
+ wt as toReadonly,
899
+ $n as toStandardSchema,
900
+ Mn as toStandardSchemaAsync,
901
+ Zt as trimmed,
902
+ lt as truthy,
903
+ w as type,
904
+ it as undefined,
905
+ Se as union,
906
+ me as unique,
907
+ Ct as url,
908
+ Ht as uuid,
909
+ _t as validate,
910
+ yt as validateAsync,
911
+ C as weakMap,
912
+ H as weakSet
913
+ };
914
+ //# sourceMappingURL=Fit.mjs.map