lalph 0.3.28 → 0.3.30

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.
package/dist/cli.mjs CHANGED
@@ -44,7 +44,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
44
44
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
45
45
 
46
46
  //#endregion
47
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Pipeable.js
47
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Pipeable.js
48
48
  /**
49
49
  * @since 2.0.0
50
50
  */
@@ -104,7 +104,7 @@ const Class$4 = /* @__PURE__ */ function() {
104
104
  }();
105
105
 
106
106
  //#endregion
107
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Function.js
107
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Function.js
108
108
  /**
109
109
  * Creates a function that can be used in a data-last (aka `pipe`able) or
110
110
  * data-first style.
@@ -373,7 +373,7 @@ function memoize(f) {
373
373
  }
374
374
 
375
375
  //#endregion
376
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/equal.js
376
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/equal.js
377
377
  /** @internal */
378
378
  const getAllObjectKeys = (obj) => {
379
379
  const keys = new Set(Reflect.ownKeys(obj));
@@ -393,7 +393,7 @@ const getAllObjectKeys = (obj) => {
393
393
  const byReferenceInstances = /* @__PURE__ */ new WeakSet();
394
394
 
395
395
  //#endregion
396
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Predicate.js
396
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Predicate.js
397
397
  /**
398
398
  * Predicate and Refinement helpers for runtime checks, filtering, and type narrowing.
399
399
  * This module provides small, pure functions you can combine to decide whether a
@@ -1071,7 +1071,7 @@ function isRegExp$1(input) {
1071
1071
  const or = /* @__PURE__ */ dual(2, (self, that) => (a) => self(a) || that(a));
1072
1072
 
1073
1073
  //#endregion
1074
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Hash.js
1074
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Hash.js
1075
1075
  /**
1076
1076
  * This module provides utilities for hashing values in TypeScript.
1077
1077
  *
@@ -1421,9 +1421,41 @@ function withVisitedTracking$1(obj, fn) {
1421
1421
  }
1422
1422
 
1423
1423
  //#endregion
1424
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Equal.js
1424
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Equal.js
1425
1425
  /**
1426
- * The unique identifier used to identify objects that implement the `Equal` interface.
1426
+ * The unique string identifier for the {@link Equal} interface.
1427
+ *
1428
+ * Use this as a computed property key when implementing custom equality on a
1429
+ * class or object literal.
1430
+ *
1431
+ * When to use:
1432
+ * - As the method name when implementing the {@link Equal} interface.
1433
+ * - To check manually whether an object carries an equality method (prefer
1434
+ * {@link isEqual} instead).
1435
+ *
1436
+ * Behavior:
1437
+ * - Pure constant — no allocation or side effects.
1438
+ *
1439
+ * **Example** (implementing Equal on a class)
1440
+ *
1441
+ * ```ts
1442
+ * import { Equal, Hash } from "effect"
1443
+ *
1444
+ * class UserId implements Equal.Equal {
1445
+ * constructor(readonly id: string) {}
1446
+ *
1447
+ * [Equal.symbol](that: Equal.Equal): boolean {
1448
+ * return that instanceof UserId && this.id === that.id
1449
+ * }
1450
+ *
1451
+ * [Hash.symbol](): number {
1452
+ * return Hash.string(this.id)
1453
+ * }
1454
+ * }
1455
+ * ```
1456
+ *
1457
+ * @see {@link Equal} — the interface that uses this symbol
1458
+ * @see {@link isEqual} — type guard for `Equal` implementors
1427
1459
  *
1428
1460
  * @since 2.0.0
1429
1461
  */
@@ -1546,37 +1578,61 @@ function makeCompareSet(equivalence) {
1546
1578
  }
1547
1579
  const compareSets = /* @__PURE__ */ makeCompareSet(compareBoth);
1548
1580
  /**
1549
- * Determines if a value implements the `Equal` interface.
1581
+ * Checks whether a value implements the {@link Equal} interface.
1582
+ *
1583
+ * When to use:
1584
+ * - To branch on whether a value supports custom equality before calling
1585
+ * its `[Equal.symbol]` method directly.
1586
+ * - In generic utility code that needs to distinguish `Equal` implementors
1587
+ * from plain values.
1588
+ *
1589
+ * Behavior:
1590
+ * - Pure function, no side effects.
1591
+ * - Returns `true` if and only if `u` has a property keyed by
1592
+ * {@link symbol}.
1593
+ * - Acts as a TypeScript type guard, narrowing the input to {@link Equal}.
1594
+ *
1595
+ * **Example** (type guard)
1550
1596
  *
1551
- * @example
1552
1597
  * ```ts
1553
1598
  * import { Equal, Hash } from "effect"
1554
- * import * as assert from "node:assert"
1555
1599
  *
1556
- * class MyClass implements Equal.Equal {
1600
+ * class Token implements Equal.Equal {
1601
+ * constructor(readonly value: string) {}
1557
1602
  * [Equal.symbol](that: Equal.Equal): boolean {
1558
- * return that instanceof MyClass
1603
+ * return that instanceof Token && this.value === that.value
1559
1604
  * }
1560
1605
  * [Hash.symbol](): number {
1561
- * return 0
1606
+ * return Hash.string(this.value)
1562
1607
  * }
1563
1608
  * }
1564
1609
  *
1565
- * const instance = new MyClass()
1566
- * assert(Equal.isEqual(instance) === true)
1567
- * assert(Equal.isEqual({}) === false)
1568
- * assert(Equal.isEqual(42) === false)
1610
+ * console.log(Equal.isEqual(new Token("abc"))) // true
1611
+ * console.log(Equal.isEqual({ x: 1 })) // false
1612
+ * console.log(Equal.isEqual(42)) // false
1569
1613
  * ```
1570
1614
  *
1615
+ * @see {@link Equal} — the interface being checked
1616
+ * @see {@link symbol} — the property key that signals `Equal` support
1617
+ *
1571
1618
  * @category guards
1572
1619
  * @since 2.0.0
1573
1620
  */
1574
1621
  const isEqual = (u) => hasProperty(u, symbol$4);
1575
1622
  /**
1576
- * Creates an `Equivalence` instance using the `equals` function.
1577
- * This allows the equality logic to be used with APIs that expect an `Equivalence`.
1623
+ * Wraps {@link equals} as an `Equivalence<A>`.
1624
+ *
1625
+ * When to use:
1626
+ * - When an API (e.g. `Array.dedupeWith`, `Equivalence.mapInput`) requires an
1627
+ * `Equivalence` and you want to reuse `Equal.equals`.
1628
+ *
1629
+ * Behavior:
1630
+ * - Returns a function `(a: A, b: A) => boolean` that delegates to
1631
+ * {@link equals}.
1632
+ * - Pure; allocates a thin wrapper on each call.
1633
+ *
1634
+ * **Example** (deduplicating with Equal semantics)
1578
1635
  *
1579
- * @example
1580
1636
  * ```ts
1581
1637
  * import { Array, Equal } from "effect"
1582
1638
  *
@@ -1585,35 +1641,48 @@ const isEqual = (u) => hasProperty(u, symbol$4);
1585
1641
  * console.log(result) // [1, 2, 3]
1586
1642
  * ```
1587
1643
  *
1644
+ * @see {@link equals} — the underlying comparison function
1645
+ *
1588
1646
  * @category instances
1589
1647
  * @since 2.0.0
1590
1648
  */
1591
1649
  const asEquivalence = () => equals$2;
1592
1650
  /**
1593
- * Marks an object to use reference equality instead of structural equality, without creating a proxy.
1651
+ * Permanently marks an object to use reference equality, without creating a
1652
+ * proxy.
1594
1653
  *
1595
- * Unlike `byReference`, this function directly modifies the object's equality behavior
1596
- * without creating a proxy wrapper. This is more performant but "unsafe" because
1597
- * it permanently changes how the object is compared.
1654
+ * When to use:
1655
+ * - When you want reference equality semantics and can accept that the
1656
+ * original object is **permanently** modified.
1657
+ * - When proxy overhead is unacceptable (hot paths, large collections).
1658
+ *
1659
+ * Behavior:
1660
+ * - Adds `obj` to an internal WeakSet. From that point on, {@link equals}
1661
+ * treats it as reference-only.
1662
+ * - Returns the **same** object (not a copy or proxy), so
1663
+ * `byReferenceUnsafe(x) === x`.
1664
+ * - The marking is irreversible for the lifetime of the object.
1665
+ * - Does **not** affect the object's prototype, properties, or behavior
1666
+ * beyond equality checks.
1667
+ *
1668
+ * **Example** (marking an object for reference equality)
1598
1669
  *
1599
- * @example
1600
1670
  * ```ts
1601
1671
  * import { Equal } from "effect"
1602
- * import * as assert from "node:assert"
1603
1672
  *
1604
1673
  * const obj1 = { a: 1, b: 2 }
1605
1674
  * const obj2 = { a: 1, b: 2 }
1606
1675
  *
1607
- * // Mark obj1 for reference equality (modifies obj1 directly)
1608
- * const obj1ByRef = Equal.byReferenceUnsafe(obj1)
1609
- * assert(obj1ByRef === obj1) // Same object, no proxy created
1610
- * assert(Equal.equals(obj1ByRef, obj2) === false) // uses reference equality
1611
- * assert(Equal.equals(obj1ByRef, obj1ByRef) === true) // same reference
1676
+ * Equal.byReferenceUnsafe(obj1)
1612
1677
  *
1613
- * // The original obj1 is now permanently marked for reference equality
1614
- * assert(Equal.equals(obj1, obj2) === false) // obj1 uses reference equality
1678
+ * console.log(Equal.equals(obj1, obj2)) // false (reference)
1679
+ * console.log(Equal.equals(obj1, obj1)) // true (same reference)
1680
+ * console.log(obj1 === Equal.byReferenceUnsafe(obj1)) // true (same object)
1615
1681
  * ```
1616
1682
  *
1683
+ * @see {@link byReference} — safer alternative that creates a proxy
1684
+ * @see {@link equals} — the comparison function affected by this opt-out
1685
+ *
1617
1686
  * @category utility
1618
1687
  * @since 2.0.0
1619
1688
  */
@@ -1623,7 +1692,7 @@ const byReferenceUnsafe = (obj) => {
1623
1692
  };
1624
1693
 
1625
1694
  //#endregion
1626
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Redactable.js
1695
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Redactable.js
1627
1696
  /**
1628
1697
  * @since 4.0.0
1629
1698
  */
@@ -1718,38 +1787,129 @@ const emptyServiceMap$1 = {
1718
1787
  };
1719
1788
 
1720
1789
  //#endregion
1721
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Formatter.js
1790
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Formatter.js
1722
1791
  /**
1792
+ * Utilities for converting arbitrary JavaScript values into human-readable
1793
+ * strings, with support for circular references, redaction, and common JS
1794
+ * types that `JSON.stringify` handles poorly.
1795
+ *
1796
+ * Mental model:
1797
+ * - A `Formatter<Value, Format>` is a callable `(value: Value) => Format`.
1798
+ * - {@link format} is the general-purpose pretty-printer: it handles
1799
+ * primitives, arrays, objects, `BigInt`, `Symbol`, `Date`, `RegExp`,
1800
+ * `Set`, `Map`, class instances, and circular references.
1801
+ * - {@link formatJson} is a safe `JSON.stringify` wrapper that silently
1802
+ * drops circular references and applies redaction.
1803
+ * - Both functions accept a `space` option for indentation control.
1804
+ *
1805
+ * Common tasks:
1806
+ * - Pretty-print any value for debugging / logging -> {@link format}
1807
+ * - Serialize to JSON safely (no circular throws) -> {@link formatJson}
1808
+ * - Format a single object property key -> {@link formatPropertyKey}
1809
+ * - Format a property path like `["a"]["b"]` -> {@link formatPath}
1810
+ * - Format a `Date` to ISO string safely -> {@link formatDate}
1811
+ *
1812
+ * Gotchas:
1813
+ * - {@link format} output is **not** valid JSON; use {@link formatJson} when
1814
+ * you need parseable JSON.
1815
+ * - {@link format} calls `toString()` on objects by default; pass
1816
+ * `ignoreToString: true` to disable.
1817
+ * - {@link formatJson} silently omits circular references (the key is
1818
+ * dropped from the output).
1819
+ * - Values implementing the `Redactable` protocol are automatically
1820
+ * redacted by both {@link format} and {@link formatJson}.
1821
+ *
1822
+ * **Example** (Pretty-print a value)
1823
+ *
1824
+ * ```ts
1825
+ * import { Formatter } from "effect"
1826
+ *
1827
+ * const obj = { name: "Alice", scores: [100, 97] }
1828
+ * console.log(Formatter.format(obj))
1829
+ * // {"name":"Alice","scores":[100,97]}
1830
+ *
1831
+ * console.log(Formatter.format(obj, { space: 2 }))
1832
+ * // {
1833
+ * // "name": "Alice",
1834
+ * // "scores": [
1835
+ * // 100,
1836
+ * // 97
1837
+ * // ]
1838
+ * // }
1839
+ * ```
1840
+ *
1841
+ * See also: {@link Formatter}, {@link format}, {@link formatJson}
1842
+ *
1723
1843
  * @since 4.0.0
1724
1844
  */
1725
1845
  /**
1726
1846
  * Converts any JavaScript value into a human-readable string.
1727
1847
  *
1728
- * For objects that don't have a `toString` method, it applies redaction to
1729
- * protect sensitive information.
1848
+ * When to use:
1849
+ * - Pretty-printing values for debugging, logging, or error messages.
1850
+ * - You need to handle `BigInt`, `Symbol`, `Set`, `Map`, `Date`, `RegExp`,
1851
+ * or class instances that `JSON.stringify` cannot represent.
1852
+ * - You want circular references shown as `"[Circular]"` instead of
1853
+ * throwing.
1730
1854
  *
1731
- * Unlike `JSON.stringify`, this formatter:
1732
- * - Handles circular references (printed as `"[Circular]"`).
1733
- * - Supports additional types like `BigInt`, `Symbol`, `Set`, `Map`, `Date`, `RegExp`, and
1734
- * objects with custom `toString` methods.
1735
- * - Includes constructor names for class instances (e.g. `MyClass({"a":1})`).
1736
- * - Does not guarantee valid JSON output — the result is intended for debugging and inspection.
1855
+ * Behavior:
1856
+ * - Does not mutate input.
1857
+ * - Output is **not** valid JSON; use {@link formatJson} when you need
1858
+ * parseable JSON.
1859
+ * - Primitives: stringified naturally (`null`, `undefined`, `123`, `true`).
1860
+ * Strings are JSON-quoted.
1861
+ * - Objects with a custom `toString` (not `Object.prototype.toString`):
1862
+ * `toString()` is called unless `ignoreToString` is `true`.
1863
+ * - Errors with a `cause`: formatted as `"<message> (cause: <cause>)"`.
1864
+ * - Iterables (`Set`, `Map`, etc.): formatted as
1865
+ * `ClassName([...elements])`.
1866
+ * - Class instances: wrapped as `ClassName({...})`.
1867
+ * - `Redactable` values are automatically redacted.
1868
+ * - Arrays/objects with 0–1 entries are inline; larger ones are
1869
+ * pretty-printed when `space` is set.
1870
+ * - Circular references are replaced with `"[Circular]"`.
1871
+ *
1872
+ * Options:
1873
+ * - `space` — indentation unit (number of spaces, or a string like
1874
+ * `"\t"`). Defaults to `0` (compact).
1875
+ * - `ignoreToString` — skip calling `toString()`. Defaults to `false`.
1737
1876
  *
1738
- * Formatting rules:
1739
- * - Primitives are stringified naturally (`null`, `undefined`, `123`, `"abc"`, `true`).
1740
- * - Strings are JSON-quoted.
1741
- * - Arrays and objects with a single element/property are formatted inline.
1742
- * - Larger arrays/objects are pretty-printed with optional indentation.
1743
- * - Circular references are replaced with the literal `"[Circular]"`.
1877
+ * **Example** (Compact output)
1744
1878
  *
1745
- * **Options**:
1746
- * - `space`: Indentation used when pretty-printing:
1747
- * - If a number, that many spaces will be used.
1748
- * - If a string, the string is used as the indentation unit (e.g. `"\t"`).
1749
- * - If `0`, empty string, or `undefined`, output is compact (no indentation).
1750
- * Defaults to `0`.
1751
- * - `ignoreToString`: If `true`, the `toString` method is not called on the value.
1752
- * Defaults to `false`.
1879
+ * ```ts
1880
+ * import { Formatter } from "effect"
1881
+ *
1882
+ * console.log(Formatter.format({ a: 1, b: [2, 3] }))
1883
+ * // {"a":1,"b":[2,3]}
1884
+ * ```
1885
+ *
1886
+ * **Example** (Pretty-printed output)
1887
+ *
1888
+ * ```ts
1889
+ * import { Formatter } from "effect"
1890
+ *
1891
+ * console.log(Formatter.format({ a: 1, b: [2, 3] }, { space: 2 }))
1892
+ * // {
1893
+ * // "a": 1,
1894
+ * // "b": [
1895
+ * // 2,
1896
+ * // 3
1897
+ * // ]
1898
+ * // }
1899
+ * ```
1900
+ *
1901
+ * **Example** (Circular reference handling)
1902
+ *
1903
+ * ```ts
1904
+ * import { Formatter } from "effect"
1905
+ *
1906
+ * const obj: any = { name: "loop" }
1907
+ * obj.self = obj
1908
+ * console.log(Formatter.format(obj))
1909
+ * // {"name":"loop","self":[Circular]}
1910
+ * ```
1911
+ *
1912
+ * See also: {@link formatJson}, {@link Formatter}
1753
1913
  *
1754
1914
  * @since 4.0.0
1755
1915
  */
@@ -1801,7 +1961,29 @@ function format$4(input, options) {
1801
1961
  }
1802
1962
  const CIRCULAR = "[Circular]";
1803
1963
  /**
1804
- * Fast path for formatting property keys.
1964
+ * Formats a single property key for display.
1965
+ *
1966
+ * When to use:
1967
+ * - You are building a custom formatter that needs to render object keys.
1968
+ *
1969
+ * Behavior:
1970
+ * - String keys are JSON-quoted (e.g. `"foo"`).
1971
+ * - Symbol and number keys are converted with `String()`.
1972
+ * - Pure function; does not mutate input.
1973
+ *
1974
+ * **Example** (Format property keys)
1975
+ *
1976
+ * ```ts
1977
+ * import { Formatter } from "effect"
1978
+ *
1979
+ * console.log(Formatter.formatPropertyKey("name"))
1980
+ * // "name"
1981
+ *
1982
+ * console.log(Formatter.formatPropertyKey(Symbol.for("id")))
1983
+ * // Symbol(id)
1984
+ * ```
1985
+ *
1986
+ * See also: {@link formatPath}, {@link format}
1805
1987
  *
1806
1988
  * @internal
1807
1989
  */
@@ -1809,7 +1991,28 @@ function formatPropertyKey(name) {
1809
1991
  return typeof name === "string" ? JSON.stringify(name) : String(name);
1810
1992
  }
1811
1993
  /**
1812
- * Fast path for formatting property paths.
1994
+ * Formats an array of property keys as a bracket-notation path string.
1995
+ *
1996
+ * When to use:
1997
+ * - You need to display a path through a nested object (e.g. in error
1998
+ * messages or schema validation output).
1999
+ *
2000
+ * Behavior:
2001
+ * - Each key is wrapped in brackets and formatted via
2002
+ * {@link formatPropertyKey}.
2003
+ * - Returns an empty string for an empty path.
2004
+ * - Pure function; does not mutate input.
2005
+ *
2006
+ * **Example** (Render a property path)
2007
+ *
2008
+ * ```ts
2009
+ * import { Formatter } from "effect"
2010
+ *
2011
+ * console.log(Formatter.formatPath(["users", 0, "name"]))
2012
+ * // ["users"][0]["name"]
2013
+ * ```
2014
+ *
2015
+ * See also: {@link formatPropertyKey}, {@link format}
1813
2016
  *
1814
2017
  * @internal
1815
2018
  */
@@ -1817,7 +2020,31 @@ function formatPath(path) {
1817
2020
  return path.map((key) => `[${formatPropertyKey(key)}]`).join("");
1818
2021
  }
1819
2022
  /**
1820
- * Fast path for formatting dates.
2023
+ * Formats a `Date` as an ISO 8601 string, returning `"Invalid Date"` for
2024
+ * invalid dates instead of throwing.
2025
+ *
2026
+ * When to use:
2027
+ * - You want a safe `toISOString()` that never throws.
2028
+ *
2029
+ * Behavior:
2030
+ * - Returns `date.toISOString()` on success.
2031
+ * - Returns `"Invalid Date"` if `toISOString()` throws (e.g. for
2032
+ * `new Date(NaN)`).
2033
+ * - Pure function; does not mutate input.
2034
+ *
2035
+ * **Example** (Safe date formatting)
2036
+ *
2037
+ * ```ts
2038
+ * import { Formatter } from "effect"
2039
+ *
2040
+ * console.log(Formatter.formatDate(new Date("2024-01-15T10:30:00Z")))
2041
+ * // 2024-01-15T10:30:00.000Z
2042
+ *
2043
+ * console.log(Formatter.formatDate(new Date("invalid")))
2044
+ * // Invalid Date
2045
+ * ```
2046
+ *
2047
+ * See also: {@link format}
1821
2048
  *
1822
2049
  * @internal
1823
2050
  */
@@ -1837,42 +2064,62 @@ function safeToString(input) {
1837
2064
  }
1838
2065
  }
1839
2066
  /**
1840
- * Safely stringifies objects that may contain circular references.
2067
+ * Safely stringifies a value to JSON, silently dropping circular references.
1841
2068
  *
1842
- * This function performs JSON.stringify with circular reference detection and handling.
1843
- * It also applies redaction to sensitive values and provides a safe fallback for
1844
- * any objects that can't be serialized normally.
2069
+ * When to use:
2070
+ * - You need valid JSON output (unlike {@link format}).
2071
+ * - The input may contain circular references and you want them silently
2072
+ * omitted rather than throwing a `TypeError`.
2073
+ *
2074
+ * Behavior:
2075
+ * - Does not mutate input.
2076
+ * - Uses `JSON.stringify` internally with a replacer that tracks seen
2077
+ * objects.
2078
+ * - Circular references are replaced with `undefined` (omitted from
2079
+ * output).
2080
+ * - `Redactable` values are automatically redacted before serialization.
2081
+ * - Types not supported by JSON (`BigInt`, `Symbol`, `undefined`,
2082
+ * functions) follow standard `JSON.stringify` behavior (omitted or
2083
+ * `null` in arrays).
1845
2084
  *
1846
- * **Options**:
1847
- * - `space`: Indentation used when pretty-printing:
1848
- * - If a number, that many spaces will be used.
1849
- * - If a string, the string is used as the indentation unit (e.g. `"\t"`).
1850
- * - If `0`, empty string, or `undefined`, output is compact (no indentation).
1851
- * Defaults to `0`.
2085
+ * Options:
2086
+ * - `space` indentation unit (number of spaces, or a string like
2087
+ * `"\t"`). Defaults to `0` (compact).
2088
+ *
2089
+ * **Example** (Compact JSON)
1852
2090
  *
1853
- * @example
1854
2091
  * ```ts
1855
- * import { formatJson } from "effect/Formatter"
2092
+ * import { Formatter } from "effect"
1856
2093
  *
1857
- * // Normal object
1858
- * const simple = { name: "Alice", age: 30 }
1859
- * console.log(formatJson(simple))
2094
+ * console.log(Formatter.formatJson({ name: "Alice", age: 30 }))
1860
2095
  * // {"name":"Alice","age":30}
2096
+ * ```
1861
2097
  *
1862
- * // Object with circular reference
1863
- * const circular: any = { name: "test" }
1864
- * circular.self = circular
1865
- * console.log(formatJson(circular))
1866
- * // {"name":"test"} (circular reference omitted)
2098
+ * **Example** (Circular reference handling)
2099
+ *
2100
+ * ```ts
2101
+ * import { Formatter } from "effect"
1867
2102
  *
1868
- * // With formatting
1869
- * console.log(formatJson(simple, { space: 2 }))
2103
+ * const obj: any = { name: "test" }
2104
+ * obj.self = obj
2105
+ * console.log(Formatter.formatJson(obj))
2106
+ * // {"name":"test"}
2107
+ * ```
2108
+ *
2109
+ * **Example** (Pretty-printed JSON)
2110
+ *
2111
+ * ```ts
2112
+ * import { Formatter } from "effect"
2113
+ *
2114
+ * console.log(Formatter.formatJson({ name: "Alice", age: 30 }, { space: 2 }))
1870
2115
  * // {
1871
2116
  * // "name": "Alice",
1872
2117
  * // "age": 30
1873
2118
  * // }
1874
2119
  * ```
1875
2120
  *
2121
+ * See also: {@link format}, {@link Formatter}
2122
+ *
1876
2123
  * @since 4.0.0
1877
2124
  */
1878
2125
  function formatJson$1(input, options) {
@@ -1883,7 +2130,7 @@ function formatJson$1(input, options) {
1883
2130
  }
1884
2131
 
1885
2132
  //#endregion
1886
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Inspectable.js
2133
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Inspectable.js
1887
2134
  /**
1888
2135
  * This module provides utilities for making values inspectable and debuggable in TypeScript.
1889
2136
  *
@@ -2087,7 +2334,7 @@ var Class$3 = class {
2087
2334
  };
2088
2335
 
2089
2336
  //#endregion
2090
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Utils.js
2337
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Utils.js
2091
2338
  /**
2092
2339
  * @since 2.0.0
2093
2340
  */
@@ -2165,7 +2412,7 @@ const internalCall = isNotOptimizedAway ? standard[InternalTypeId] : forced[Inte
2165
2412
  const genConstructor = function* () {}.constructor;
2166
2413
 
2167
2414
  //#endregion
2168
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/core.js
2415
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/core.js
2169
2416
  /** @internal */
2170
2417
  const EffectTypeId$1 = `~effect/Effect`;
2171
2418
  /** @internal */
@@ -2565,29 +2812,38 @@ const done$2 = (value) => {
2565
2812
  };
2566
2813
 
2567
2814
  //#endregion
2568
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Data.js
2815
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Data.js
2569
2816
  /**
2570
- * Provides a constructor for a Case Class.
2817
+ * Base class for immutable data types.
2818
+ *
2819
+ * Extend `Class` with a type parameter to declare fields. The constructor
2820
+ * accepts those fields as a single object argument. When there are no fields
2821
+ * the argument is optional.
2822
+ *
2823
+ * - Use when you need a lightweight immutable value type with `.pipe()` support.
2824
+ * - Instances are `Readonly` and `Pipeable`.
2825
+ * - If you also need a `_tag` discriminator, use {@link TaggedClass} instead.
2826
+ * - If you need a yieldable error, use {@link Error} or {@link TaggedError}.
2827
+ *
2828
+ * **Example** (defining a value class)
2571
2829
  *
2572
- * @example
2573
2830
  * ```ts
2574
2831
  * import { Data, Equal } from "effect"
2575
- * import * as assert from "node:assert"
2576
2832
  *
2577
2833
  * class Person extends Data.Class<{ readonly name: string }> {}
2578
2834
  *
2579
- * // Creating instances of Person
2580
2835
  * const mike1 = new Person({ name: "Mike" })
2581
2836
  * const mike2 = new Person({ name: "Mike" })
2582
- * const john = new Person({ name: "John" })
2583
2837
  *
2584
- * // Checking equality
2585
- * assert.deepStrictEqual(Equal.equals(mike1, mike2), true)
2586
- * assert.deepStrictEqual(Equal.equals(mike1, john), false)
2838
+ * console.log(Equal.equals(mike1, mike2))
2839
+ * // true
2587
2840
  * ```
2588
2841
  *
2589
- * @since 2.0.0
2842
+ * @see {@link TaggedClass} — adds a `_tag` field
2843
+ * @see {@link Error} — yieldable error variant
2844
+ *
2590
2845
  * @category constructors
2846
+ * @since 2.0.0
2591
2847
  */
2592
2848
  const Class$2 = class extends Class$4 {
2593
2849
  constructor(props) {
@@ -2596,44 +2852,64 @@ const Class$2 = class extends Class$4 {
2596
2852
  }
2597
2853
  };
2598
2854
  /**
2599
- * Create a constructor for a tagged union of `Data` structs.
2855
+ * Creates runtime constructors, type guards, and pattern matching for a
2856
+ * {@link TaggedEnum} type.
2600
2857
  *
2601
- * You can also pass a `TaggedEnum.WithGenerics` if you want to add generics to
2602
- * the constructor.
2858
+ * Returns an object with:
2859
+ * - One constructor per variant (keyed by tag name)
2860
+ * - `$is(tag)` — returns a type-guard function
2861
+ * - `$match` — exhaustive pattern matching (data-first or data-last)
2862
+ *
2863
+ * - Use when you have a `TaggedEnum` type and need to construct/inspect values.
2864
+ * - Constructors produce **plain objects** (not class instances).
2865
+ * - For generic enums, pass a {@link TaggedEnum.WithGenerics} interface.
2866
+ *
2867
+ * **Example** (basic usage)
2603
2868
  *
2604
- * @example
2605
2869
  * ```ts
2606
2870
  * import { Data } from "effect"
2607
2871
  *
2608
- * const { BadRequest, NotFound } = Data.taggedEnum<
2609
- * | {
2610
- * readonly _tag: "BadRequest"
2611
- * readonly status: 400
2612
- * readonly message: string
2613
- * }
2614
- * | {
2615
- * readonly _tag: "NotFound"
2616
- * readonly status: 404
2617
- * readonly message: string
2618
- * }
2619
- * >()
2872
+ * type HttpError = Data.TaggedEnum<{
2873
+ * BadRequest: { readonly message: string }
2874
+ * NotFound: { readonly url: string }
2875
+ * }>
2876
+ *
2877
+ * const { BadRequest, NotFound, $is, $match } = Data.taggedEnum<HttpError>()
2878
+ *
2879
+ * const err = NotFound({ url: "/missing" })
2620
2880
  *
2621
- * const notFound = NotFound({ status: 404, message: "Not Found" })
2881
+ * // Type guard
2882
+ * console.log($is("NotFound")(err)) // true
2883
+ *
2884
+ * // Pattern matching
2885
+ * const msg = $match(err, {
2886
+ * BadRequest: (e) => e.message,
2887
+ * NotFound: (e) => `${e.url} not found`
2888
+ * })
2889
+ * console.log(msg) // "/missing not found"
2622
2890
  * ```
2623
2891
  *
2624
- * @example
2892
+ * **Example** (generic tagged enum)
2893
+ *
2894
+ * ```ts
2625
2895
  * import { Data } from "effect"
2626
2896
  *
2627
2897
  * type MyResult<E, A> = Data.TaggedEnum<{
2628
2898
  * Failure: { readonly error: E }
2629
2899
  * Success: { readonly value: A }
2630
2900
  * }>
2631
- * interface MyResultDefinition extends Data.TaggedEnum.WithGenerics<2> {
2901
+ * interface MyResultDef extends Data.TaggedEnum.WithGenerics<2> {
2632
2902
  * readonly taggedEnum: MyResult<this["A"], this["B"]>
2633
2903
  * }
2634
- * const { Failure, Success } = Data.taggedEnum<MyResultDefinition>()
2904
+ * const { Failure, Success } = Data.taggedEnum<MyResultDef>()
2905
+ *
2906
+ * const ok = Success({ value: 42 })
2907
+ * // ok: { readonly _tag: "Success"; readonly value: number }
2908
+ * ```
2635
2909
  *
2636
- * const success = Success({ value: 1 })
2910
+ * @see {@link TaggedEnum} the type-level companion
2911
+ * @see {@link TaggedEnum.Constructor} — the returned object type
2912
+ * @see {@link TaggedEnum.WithGenerics} — generic enum support
2637
2913
  *
2638
2914
  * @category constructors
2639
2915
  * @since 2.0.0
@@ -2657,69 +2933,85 @@ function taggedMatch() {
2657
2933
  return arguments[1][value._tag](value);
2658
2934
  }
2659
2935
  /**
2660
- * Create a structured error constructor that supports Effect's error handling.
2936
+ * Base class for yieldable errors.
2661
2937
  *
2662
- * This constructor creates errors that are both `Cause.YieldableError` (can be
2663
- * yielded in Effect generators) and have structural equality semantics.
2938
+ * Extends `Cause.YieldableError`, so instances can be yielded inside
2939
+ * `Effect.gen` to fail the enclosing effect. Fields are passed as a single
2940
+ * object; when there are no fields the argument is optional.
2941
+ *
2942
+ * - Use for errors that do **not** need tag-based discrimination.
2943
+ * - If you need `Effect.catchTag` support, use {@link TaggedError} instead.
2944
+ * - If a `message` field is provided, it becomes the error's `.message`.
2945
+ *
2946
+ * **Example** (defining a yieldable error)
2664
2947
  *
2665
- * @example
2666
2948
  * ```ts
2667
2949
  * import { Data, Effect } from "effect"
2668
2950
  *
2669
- * class NetworkError extends Data.Error<{ code: number; message: string }> {}
2951
+ * class NetworkError extends Data.Error<{
2952
+ * readonly code: number
2953
+ * readonly message: string
2954
+ * }> {}
2670
2955
  *
2671
2956
  * const program = Effect.gen(function*() {
2672
- * yield* new NetworkError({ code: 500, message: "Server error" })
2957
+ * yield* new NetworkError({ code: 500, message: "timeout" })
2673
2958
  * })
2674
2959
  *
2960
+ * // The effect fails with a NetworkError
2675
2961
  * Effect.runSync(Effect.exit(program))
2676
- * // Exit.fail(NetworkError({ code: 500, message: "Server error" }))
2677
2962
  * ```
2678
2963
  *
2964
+ * @see {@link TaggedError} — adds a `_tag` for `Effect.catchTag`
2965
+ * @see {@link Class} — non-error data class
2966
+ *
2679
2967
  * @category constructors
2680
2968
  * @since 2.0.0
2681
2969
  */
2682
2970
  const Error$2 = Error$3;
2683
2971
  /**
2684
- * Create a tagged error constructor with a specific tag for discriminated unions.
2972
+ * Creates a tagged error class with a `_tag` discriminator.
2685
2973
  *
2686
- * This constructor creates errors with a `_tag` property that are both
2687
- * `Cause.YieldableError` and have structural equality semantics.
2974
+ * Like {@link Error}, but instances also carry a `readonly _tag` property,
2975
+ * enabling `Effect.catchTag` and `Effect.catchTags` for tag-based recovery.
2976
+ * The `_tag` is excluded from the constructor argument.
2977
+ *
2978
+ * - Use for domain errors in Effect applications where you want
2979
+ * discriminated-union error handling.
2980
+ * - Yielding an instance inside `Effect.gen` fails the effect with this error.
2981
+ *
2982
+ * **Example** (tag-based error recovery)
2688
2983
  *
2689
- * @example
2690
2984
  * ```ts
2691
- * import { Data, Effect, pipe } from "effect"
2985
+ * import { Data, Effect } from "effect"
2692
2986
  *
2693
- * class NetworkError extends Data.TaggedError("NetworkError")<{
2694
- * code: number
2695
- * message: string
2987
+ * class NotFound extends Data.TaggedError("NotFound")<{
2988
+ * readonly resource: string
2696
2989
  * }> {}
2697
2990
  *
2698
- * class ValidationError extends Data.TaggedError("ValidationError")<{
2699
- * field: string
2700
- * message: string
2991
+ * class Forbidden extends Data.TaggedError("Forbidden")<{
2992
+ * readonly reason: string
2701
2993
  * }> {}
2702
2994
  *
2703
2995
  * const program = Effect.gen(function*() {
2704
- * yield* new NetworkError({ code: 500, message: "Server error" })
2996
+ * yield* new NotFound({ resource: "/users/42" })
2705
2997
  * })
2706
2998
  *
2707
- * const result = pipe(
2708
- * program,
2709
- * Effect.catchTag(
2710
- * "NetworkError",
2711
- * (error) => Effect.succeed(`Network error: ${error.message}`)
2712
- * )
2999
+ * const recovered = program.pipe(
3000
+ * Effect.catchTag("NotFound", (e) =>
3001
+ * Effect.succeed(`missing: ${e.resource}`))
2713
3002
  * )
2714
3003
  * ```
2715
3004
  *
3005
+ * @see {@link Error} — without a `_tag`
3006
+ * @see {@link TaggedClass} — tagged class that is not an error
3007
+ *
2716
3008
  * @category constructors
2717
3009
  * @since 2.0.0
2718
3010
  */
2719
3011
  const TaggedError = TaggedError$1;
2720
3012
 
2721
3013
  //#endregion
2722
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Order.js
3014
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Order.js
2723
3015
  /**
2724
3016
  * This module provides the `Order` type class for defining total orderings on types.
2725
3017
  * An `Order` is a comparison function that returns `-1` (less than), `0` (equal), or `1` (greater than).
@@ -3404,7 +3696,7 @@ const clamp$2 = (O) => dual(2, (self, options) => min$3(O)(options.maximum, max$
3404
3696
  const isBetween$1 = (O) => dual(2, (self, options) => !isLessThan$4(O)(self, options.minimum) && !isGreaterThan$4(O)(self, options.maximum));
3405
3697
 
3406
3698
  //#endregion
3407
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/UndefinedOr.js
3699
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/UndefinedOr.js
3408
3700
  /**
3409
3701
  * @since 4.0.0
3410
3702
  */
@@ -3425,7 +3717,7 @@ const liftThrowable = (f) => (...a) => {
3425
3717
  };
3426
3718
 
3427
3719
  //#endregion
3428
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Duration.js
3720
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Duration.js
3429
3721
  const TypeId$68 = "~effect/time/Duration";
3430
3722
  const bigint0$2 = /* @__PURE__ */ BigInt(0);
3431
3723
  const bigint24 = /* @__PURE__ */ BigInt(24);
@@ -3434,23 +3726,23 @@ const bigint1e3 = /* @__PURE__ */ BigInt(1e3);
3434
3726
  const bigint1e6 = /* @__PURE__ */ BigInt(1e6);
3435
3727
  const DURATION_REGEXP = /^(-?\d+(?:\.\d+)?)\s+(nanos?|micros?|millis?|seconds?|minutes?|hours?|days?|weeks?)$/;
3436
3728
  /**
3437
- * Decodes a `DurationInput` into a `Duration`.
3729
+ * Decodes a `Duration.Input` into a `Duration`.
3438
3730
  *
3439
- * If the input is not a valid `DurationInput`, it throws an error.
3731
+ * If the input is not a valid `Duration.Input`, it throws an error.
3440
3732
  *
3441
3733
  * @example
3442
3734
  * ```ts
3443
3735
  * import { Duration } from "effect"
3444
3736
  *
3445
- * const duration1 = Duration.fromDurationInputUnsafe(1000) // 1000 milliseconds
3446
- * const duration2 = Duration.fromDurationInputUnsafe("5 seconds")
3447
- * const duration3 = Duration.fromDurationInputUnsafe([2, 500_000_000]) // 2 seconds and 500ms
3737
+ * const duration1 = Duration.fromInputUnsafe(1000) // 1000 milliseconds
3738
+ * const duration2 = Duration.fromInputUnsafe("5 seconds")
3739
+ * const duration3 = Duration.fromInputUnsafe([2, 500_000_000]) // 2 seconds and 500ms
3448
3740
  * ```
3449
3741
  *
3450
3742
  * @since 2.0.0
3451
3743
  * @category constructors
3452
3744
  */
3453
- const fromDurationInputUnsafe = (input) => {
3745
+ const fromInputUnsafe = (input) => {
3454
3746
  if (isDuration(input)) return input;
3455
3747
  if (isNumber$1(input)) return millis(input);
3456
3748
  if (isBigInt(input)) return nanos(input);
@@ -3485,10 +3777,10 @@ const fromDurationInputUnsafe = (input) => {
3485
3777
  }
3486
3778
  }
3487
3779
  }
3488
- throw new Error(`Invalid DurationInput: ${input}`);
3780
+ throw new Error(`Invalid Input: ${input}`);
3489
3781
  };
3490
3782
  /**
3491
- * Safely decodes a `DurationInput` value into a `Duration`, returning
3783
+ * Safely decodes a `Input` value into a `Duration`, returning
3492
3784
  * `undefined` if decoding fails.
3493
3785
  *
3494
3786
  * **Example**
@@ -3496,15 +3788,15 @@ const fromDurationInputUnsafe = (input) => {
3496
3788
  * ```ts
3497
3789
  * import { Duration } from "effect"
3498
3790
  *
3499
- * Duration.fromDurationInput(1000)?.pipe(Duration.toSeconds) // 1
3791
+ * Duration.fromInput(1000)?.pipe(Duration.toSeconds) // 1
3500
3792
  *
3501
- * Duration.fromDurationInput("invalid" as any) // undefined
3793
+ * Duration.fromInput("invalid" as any) // undefined
3502
3794
  * ```
3503
3795
  *
3504
3796
  * @category constructors
3505
3797
  * @since 4.0.0
3506
3798
  */
3507
- const fromDurationInput = /* @__PURE__ */ liftThrowable(fromDurationInputUnsafe);
3799
+ const fromInput$2 = /* @__PURE__ */ liftThrowable(fromInputUnsafe);
3508
3800
  const zeroDurationValue = {
3509
3801
  _tag: "Millis",
3510
3802
  millis: 0
@@ -3848,7 +4140,7 @@ const weeks = (weeks) => make$63(weeks * 6048e5);
3848
4140
  * @since 2.0.0
3849
4141
  * @category getters
3850
4142
  */
3851
- const toMillis = (self) => match$8(self, {
4143
+ const toMillis = (self) => match$8(fromInputUnsafe(self), {
3852
4144
  onMillis: identity,
3853
4145
  onNanos: (nanos) => Number(nanos) / 1e6,
3854
4146
  onInfinity: () => Infinity,
@@ -4162,7 +4454,7 @@ const format$3 = (self) => {
4162
4454
  };
4163
4455
 
4164
4456
  //#endregion
4165
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Equivalence.js
4457
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Equivalence.js
4166
4458
  /**
4167
4459
  * Creates a custom equivalence relation with an optimized reference equality check.
4168
4460
  *
@@ -4493,7 +4785,22 @@ function Struct$1(fields) {
4493
4785
  }
4494
4786
 
4495
4787
  //#endregion
4496
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/option.js
4788
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/doNotation.js
4789
+ /** @internal */
4790
+ const let_$2 = (map) => dual(3, (self, name, f) => map(self, (a) => ({
4791
+ ...a,
4792
+ [name]: f(a)
4793
+ })));
4794
+ /** @internal */
4795
+ const bindTo$2 = (map) => dual(2, (self, name) => map(self, (a) => ({ [name]: a })));
4796
+ /** @internal */
4797
+ const bind$3 = (map, flatMap) => dual(3, (self, name, f) => flatMap(self, (a) => map(f(a), (b) => ({
4798
+ ...a,
4799
+ [name]: b
4800
+ }))));
4801
+
4802
+ //#endregion
4803
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/option.js
4497
4804
  /**
4498
4805
  * @since 2.0.0
4499
4806
  */
@@ -4565,7 +4872,7 @@ const some$3 = (value) => {
4565
4872
  };
4566
4873
 
4567
4874
  //#endregion
4568
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/result.js
4875
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/result.js
4569
4876
  const TypeId$66 = "~effect/data/Result";
4570
4877
  const CommonProto = {
4571
4878
  [TypeId$66]: {
@@ -4647,7 +4954,7 @@ const getSuccess$3 = (self) => isFailure$5(self) ? none$5 : some$3(self.success)
4647
4954
  const fromOption$4 = /* @__PURE__ */ dual(2, (self, onNone) => isNone$1(self) ? fail$9(onNone()) : succeed$7(self.value));
4648
4955
 
4649
4956
  //#endregion
4650
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Option.js
4957
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Option.js
4651
4958
  /**
4652
4959
  * Creates an `Option` representing the absence of a value.
4653
4960
  *
@@ -5390,7 +5697,7 @@ const makeEquivalence$5 = (isEquivalent) => make$62((x, y) => isNone(x) ? isNone
5390
5697
  const liftPredicate = /* @__PURE__ */ dual(2, (b, predicate) => predicate(b) ? some$2(b) : none$4());
5391
5698
 
5392
5699
  //#endregion
5393
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Result.js
5700
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Result.js
5394
5701
  /**
5395
5702
  * Creates a `Result` holding a `Success` value.
5396
5703
  *
@@ -5753,7 +6060,7 @@ const getOrThrow$1 = /* @__PURE__ */ getOrThrowWith(identity);
5753
6060
  const succeedNone$2 = /* @__PURE__ */ succeed$6(none$5);
5754
6061
 
5755
6062
  //#endregion
5756
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Filter.js
6063
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Filter.js
5757
6064
  /**
5758
6065
  * Applies a filter, predicate, or refinement to an input and returns a boxed
5759
6066
  * result. Extra arguments are forwarded to the function.
@@ -5912,7 +6219,7 @@ const toOption = (self) => (input) => {
5912
6219
  };
5913
6220
 
5914
6221
  //#endregion
5915
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/array.js
6222
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/array.js
5916
6223
  /**
5917
6224
  * @since 2.0.0
5918
6225
  */
@@ -5920,7 +6227,7 @@ const toOption = (self) => (input) => {
5920
6227
  const isArrayNonEmpty$1 = (self) => self.length > 0;
5921
6228
 
5922
6229
  //#endregion
5923
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Tuple.js
6230
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Tuple.js
5924
6231
  /**
5925
6232
  * Creates an `Equivalence` for tuples by comparing corresponding elements
5926
6233
  * using the provided per-position `Equivalence`s. Two tuples are equivalent
@@ -5978,7 +6285,7 @@ const makeEquivalence$4 = Tuple$1;
5978
6285
  const makeOrder$2 = Tuple$2;
5979
6286
 
5980
6287
  //#endregion
5981
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Iterable.js
6288
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Iterable.js
5982
6289
  /**
5983
6290
  * Return the number of elements in a `Iterable`.
5984
6291
  *
@@ -6192,7 +6499,7 @@ const filter$8 = /* @__PURE__ */ dual(2, (self, predicate) => ({ [Symbol.iterato
6192
6499
  } }));
6193
6500
 
6194
6501
  //#endregion
6195
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Record.js
6502
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Record.js
6196
6503
  /**
6197
6504
  * Creates a new, empty record.
6198
6505
  *
@@ -6396,7 +6703,7 @@ const makeEquivalence$3 = (equivalence) => {
6396
6703
  };
6397
6704
 
6398
6705
  //#endregion
6399
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Array.js
6706
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Array.js
6400
6707
  /**
6401
6708
  * Utilities for working with immutable arrays (and non-empty arrays) in a
6402
6709
  * functional style. All functions treat arrays as immutable — they return new
@@ -7334,7 +7641,7 @@ const dedupeWith = /* @__PURE__ */ dual(2, (self, isEquivalent) => {
7334
7641
  const join$3 = /* @__PURE__ */ dual(2, (self, sep) => fromIterable$4(self).join(sep));
7335
7642
 
7336
7643
  //#endregion
7337
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/ServiceMap.js
7644
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/ServiceMap.js
7338
7645
  const ServiceTypeId = "~effect/ServiceMap/Service";
7339
7646
  /**
7340
7647
  * @example
@@ -7848,7 +8155,7 @@ const mergeAll$1 = (...ctxs) => {
7848
8155
  const Reference = Service$1;
7849
8156
 
7850
8157
  //#endregion
7851
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Scheduler.js
8158
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Scheduler.js
7852
8159
  /**
7853
8160
  * @since 4.0.0
7854
8161
  * @category references
@@ -8077,7 +8384,7 @@ var MixedScheduler = class {
8077
8384
  const MaxOpsBeforeYield = /* @__PURE__ */ Reference("effect/Scheduler/MaxOpsBeforeYield", { defaultValue: () => 2048 });
8078
8385
 
8079
8386
  //#endregion
8080
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Tracer.js
8387
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Tracer.js
8081
8388
  /**
8082
8389
  * @since 2.0.0
8083
8390
  * @category tags
@@ -8262,7 +8569,7 @@ const randomHexString = /* @__PURE__ */ function() {
8262
8569
  }();
8263
8570
 
8264
8571
  //#endregion
8265
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/References.js
8572
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/References.js
8266
8573
  /**
8267
8574
  * This module provides a collection of reference implementations for commonly used
8268
8575
  * Effect runtime configuration values. These references allow you to access and
@@ -8725,12 +9032,12 @@ const MinimumLogLevel = /* @__PURE__ */ Reference("effect/References/MinimumLogL
8725
9032
  const CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpans", { defaultValue: () => [] });
8726
9033
 
8727
9034
  //#endregion
8728
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/metric.js
9035
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/metric.js
8729
9036
  /** @internal */
8730
9037
  const FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
8731
9038
 
8732
9039
  //#endregion
8733
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/tracer.js
9040
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/tracer.js
8734
9041
  /** @internal */
8735
9042
  const addSpanStackTrace = (options) => {
8736
9043
  if (options?.captureStackTrace === false) return options;
@@ -8761,11 +9068,11 @@ const makeStackCleaner = (line) => (stack) => {
8761
9068
  const spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
8762
9069
 
8763
9070
  //#endregion
8764
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/version.js
9071
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/version.js
8765
9072
  const version$1 = "dev";
8766
9073
 
8767
9074
  //#endregion
8768
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/effect.js
9075
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/effect.js
8769
9076
  /** @internal */
8770
9077
  var Interrupt$1 = class extends ReasonBase {
8771
9078
  fiberId;
@@ -9228,6 +9535,7 @@ const fiberJoin = (self) => {
9228
9535
  /** @internal */
9229
9536
  const fiberJoinAll = (self) => callback$2((resume) => {
9230
9537
  const fibers = Array.from(self);
9538
+ if (fibers.length === 0) return resume(succeed$5(empty$15()));
9231
9539
  const out = new Array(fibers.length);
9232
9540
  const cancels = empty$15();
9233
9541
  let done = 0;
@@ -10155,7 +10463,7 @@ const onInterrupt$1 = /* @__PURE__ */ dual(2, (self, finalizer) => onErrorIf$1(c
10155
10463
  const acquireUseRelease$1 = (acquire, use, release) => uninterruptibleMask$1((restore) => flatMap$4(acquire, (a) => onExitPrimitive$1(restore(use(a)), (exit) => release(a, exit), true)));
10156
10464
  /** @internal */
10157
10465
  const cachedInvalidateWithTTL$1 = /* @__PURE__ */ dual(2, (self, ttl) => sync$1(() => {
10158
- const ttlMillis = toMillis(fromDurationInputUnsafe(ttl));
10466
+ const ttlMillis = toMillis(fromInputUnsafe(ttl));
10159
10467
  const isFinite = Number.isFinite(ttlMillis);
10160
10468
  const latch = makeLatchUnsafe(false);
10161
10469
  let expiresAt = 0;
@@ -10365,6 +10673,14 @@ const filter$5 = /* @__PURE__ */ dual((args) => isIterable(args[0]) && !isEffect
10365
10673
  }), out);
10366
10674
  }));
10367
10675
  /** @internal */
10676
+ const Do$1 = /* @__PURE__ */ succeed$5({});
10677
+ /** @internal */
10678
+ const bindTo$1 = /* @__PURE__ */ bindTo$2(map$11);
10679
+ /** @internal */
10680
+ const bind$2 = /* @__PURE__ */ bind$3(map$11, flatMap$4);
10681
+ /** @internal */
10682
+ const let_$1 = /* @__PURE__ */ let_$2(map$11);
10683
+ /** @internal */
10368
10684
  const forkChild$1 = /* @__PURE__ */ dual((args) => isEffect$1(args[0]), (self, options) => withFiber$1((fiber) => {
10369
10685
  interruptChildrenPatch();
10370
10686
  return succeed$5(forkUnsafe$1(fiber, self, options?.startImmediately, false, options?.uninterruptible ?? false));
@@ -10504,22 +10820,25 @@ var Semaphore = class {
10504
10820
  get free() {
10505
10821
  return this.permits - this.taken;
10506
10822
  }
10507
- take = (n) => callback$2((resume) => {
10508
- if (this.free < n) {
10509
- const observer = () => {
10510
- if (this.free < n) return;
10511
- this.waiters.delete(observer);
10512
- this.taken += n;
10513
- resume(succeed$5(n));
10514
- };
10515
- this.waiters.add(observer);
10516
- return sync$1(() => {
10517
- this.waiters.delete(observer);
10823
+ take = (n) => {
10824
+ const take = suspend$4(() => {
10825
+ if (this.free < n) return callback$2((resume) => {
10826
+ if (this.free >= n) return resume(take);
10827
+ const observer = () => {
10828
+ if (this.free < n) return;
10829
+ this.waiters.delete(observer);
10830
+ resume(take);
10831
+ };
10832
+ this.waiters.add(observer);
10833
+ return sync$1(() => {
10834
+ this.waiters.delete(observer);
10835
+ });
10518
10836
  });
10519
- }
10520
- this.taken += n;
10521
- return resume(succeed$5(n));
10522
- });
10837
+ this.taken += n;
10838
+ return succeed$5(n);
10839
+ });
10840
+ return take;
10841
+ };
10523
10842
  updateTakenUnsafe(fiber, f) {
10524
10843
  this.taken = f(this.taken);
10525
10844
  if (this.waiters.size > 0) fiber.currentScheduler.scheduleTask(() => {
@@ -10542,7 +10861,7 @@ var Semaphore = class {
10542
10861
  }));
10543
10862
  release = (n) => this.updateTaken((taken) => taken - n);
10544
10863
  releaseAll = /* @__PURE__ */ this.updateTaken((_) => 0);
10545
- withPermits = (n) => (self) => uninterruptibleMask$1((restore) => flatMap$4(restore(this.take(n)), (permits) => ensuring$3(restore(self), this.release(permits))));
10864
+ withPermits = (n) => (self) => uninterruptibleMask$1((restore) => flatMap$4(restore(this.take(n)), (permits) => onExitPrimitive$1(restore(self), () => this.release(permits), true)));
10546
10865
  withPermit = /* @__PURE__ */ this.withPermits(1);
10547
10866
  withPermitsIfAvailable = (n) => (self) => uninterruptibleMask$1((restore) => suspend$4(() => {
10548
10867
  if (this.free < n) return succeedNone$1;
@@ -10818,7 +11137,7 @@ const processOrPerformanceNow = /* @__PURE__ */ function() {
10818
11137
  /** @internal */
10819
11138
  const clockWith$2 = (f) => withFiber$1((fiber) => f(fiber.getRef(ClockRef)));
10820
11139
  /** @internal */
10821
- const sleep$1 = (duration) => clockWith$2((clock) => clock.sleep(fromDurationInputUnsafe(duration)));
11140
+ const sleep$1 = (duration) => clockWith$2((clock) => clock.sleep(fromInputUnsafe(duration)));
10822
11141
  /** @internal */
10823
11142
  const currentTimeMillis$1 = /* @__PURE__ */ clockWith$2((clock) => clock.currentTimeMillis);
10824
11143
  /** @internal */
@@ -11119,7 +11438,7 @@ function interruptChildrenPatch() {
11119
11438
  const undefined_$2 = /* @__PURE__ */ succeed$5(void 0);
11120
11439
 
11121
11440
  //#endregion
11122
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Exit.js
11441
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Exit.js
11123
11442
  ExitTypeId;
11124
11443
  /**
11125
11444
  * Tests whether an unknown value is an Exit.
@@ -11794,7 +12113,7 @@ const getCause = exitGetCause;
11794
12113
  const findErrorOption$1 = exitFindErrorOption;
11795
12114
 
11796
12115
  //#endregion
11797
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Deferred.js
12116
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Deferred.js
11798
12117
  const DeferredProto = {
11799
12118
  ["~effect/Deferred"]: {
11800
12119
  _A: identity,
@@ -12055,7 +12374,7 @@ const doneUnsafe = (self, effect) => {
12055
12374
  const into = /* @__PURE__ */ dual(2, (self, deferred) => uninterruptibleMask$1((restore) => flatMap$4(exit$1(restore(self)), (exit) => done$1(deferred, exit))));
12056
12375
 
12057
12376
  //#endregion
12058
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Scope.js
12377
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Scope.js
12059
12378
  /**
12060
12379
  * The `Scope` module provides functionality for managing resource lifecycles
12061
12380
  * and cleanup operations in a functional and composable manner.
@@ -12335,7 +12654,7 @@ const closeUnsafe = scopeCloseUnsafe;
12335
12654
  const use$1 = scopeUse;
12336
12655
 
12337
12656
  //#endregion
12338
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Layer.js
12657
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Layer.js
12339
12658
  const TypeId$64 = "~effect/Layer";
12340
12659
  const MemoMapTypeId = "~effect/Layer/MemoMap";
12341
12660
  /**
@@ -13196,7 +13515,7 @@ const orDie$3 = (self) => fromBuildUnsafe((memoMap, scope) => orDie$4(self.build
13196
13515
  const fresh = (self) => fromBuildUnsafe((_, scope) => self.build(makeMemoMapUnsafe(), scope));
13197
13516
 
13198
13517
  //#endregion
13199
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/ExecutionPlan.js
13518
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/ExecutionPlan.js
13200
13519
  /**
13201
13520
  * @since 3.16.0
13202
13521
  * @category Type IDs
@@ -13230,7 +13549,7 @@ const CurrentMetadata$1 = /* @__PURE__ */ Reference("effect/ExecutionPlan/Curren
13230
13549
  }) });
13231
13550
 
13232
13551
  //#endregion
13233
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Cause.js
13552
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Cause.js
13234
13553
  /**
13235
13554
  * Unique brand for `Cause` values, used for runtime type checks via {@link isCause}.
13236
13555
  *
@@ -14232,7 +14551,7 @@ const reasonAnnotations = reasonAnnotations$1;
14232
14551
  const annotations = causeAnnotations;
14233
14552
 
14234
14553
  //#endregion
14235
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Clock.js
14554
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Clock.js
14236
14555
  /**
14237
14556
  * A reference to the current Clock service in the environment.
14238
14557
  *
@@ -14308,7 +14627,7 @@ const currentTimeMillis = currentTimeMillis$1;
14308
14627
  const currentTimeNanos = currentTimeNanos$1;
14309
14628
 
14310
14629
  //#endregion
14311
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/dateTime.js
14630
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/dateTime.js
14312
14631
  /** @internal */
14313
14632
  const TypeId$61 = "~effect/time/DateTime";
14314
14633
  /** @internal */
@@ -14579,14 +14898,7 @@ const setZoneNamed$1 = /* @__PURE__ */ dual(isDateTimeArgs, (self, zoneId, optio
14579
14898
  /** @internal */
14580
14899
  const setZoneNamedUnsafe$1 = /* @__PURE__ */ dual(isDateTimeArgs, (self, zoneId, options) => setZone$1(self, zoneMakeNamedUnsafe$1(zoneId), options));
14581
14900
  /** @internal */
14582
- const distance$1 = /* @__PURE__ */ dual(2, (self, other) => toEpochMillis$1(other) - toEpochMillis$1(self));
14583
- /** @internal */
14584
- const distanceDurationResult$1 = /* @__PURE__ */ dual(2, (self, other) => {
14585
- const diffMillis = distance$1(self, other);
14586
- return diffMillis > 0 ? succeed$6(millis(diffMillis)) : fail$8(millis(-diffMillis));
14587
- });
14588
- /** @internal */
14589
- const distanceDuration$1 = /* @__PURE__ */ dual(2, (self, other) => millis(Math.abs(distance$1(self, other))));
14901
+ const distance$1 = /* @__PURE__ */ dual(2, (self, other) => millis(toEpochMillis$1(other) - toEpochMillis$1(self)));
14590
14902
  /** @internal */
14591
14903
  const min$1 = /* @__PURE__ */ min$3(Order$5);
14592
14904
  /** @internal */
@@ -14766,9 +15078,9 @@ const withDateUtc$1 = /* @__PURE__ */ dual(2, (self, f) => f(toDateUtc$1(self)))
14766
15078
  /** @internal */
14767
15079
  const match$2 = /* @__PURE__ */ dual(2, (self, options) => self._tag === "Utc" ? options.onUtc(self) : options.onZoned(self));
14768
15080
  /** @internal */
14769
- const addDuration$1 = /* @__PURE__ */ dual(2, (self, duration) => mapEpochMillis$1(self, (millis) => millis + toMillis(fromDurationInputUnsafe(duration))));
15081
+ const addDuration$1 = /* @__PURE__ */ dual(2, (self, duration) => mapEpochMillis$1(self, (millis) => millis + toMillis(fromInputUnsafe(duration))));
14770
15082
  /** @internal */
14771
- const subtractDuration$1 = /* @__PURE__ */ dual(2, (self, duration) => mapEpochMillis$1(self, (millis) => millis - toMillis(fromDurationInputUnsafe(duration))));
15083
+ const subtractDuration$1 = /* @__PURE__ */ dual(2, (self, duration) => mapEpochMillis$1(self, (millis) => millis - toMillis(fromInputUnsafe(duration))));
14772
15084
  const addMillis = (date, amount) => {
14773
15085
  date.setTime(date.getTime() + amount);
14774
15086
  };
@@ -14919,7 +15231,7 @@ const formatIsoOffset$1 = (self) => {
14919
15231
  const formatIsoZoned$1 = (self) => self.zone._tag === "Offset" ? formatIsoOffset$1(self) : `${formatIsoOffset$1(self)}[${self.zone.id}]`;
14920
15232
 
14921
15233
  //#endregion
14922
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Number.js
15234
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Number.js
14923
15235
  /**
14924
15236
  * This module provides utility functions and type class instances for working with the `number` type in TypeScript.
14925
15237
  * It includes functions for basic arithmetic operations.
@@ -14996,7 +15308,7 @@ const Order$4 = Number$6;
14996
15308
  const Equivalence$5 = Number$5;
14997
15309
 
14998
15310
  //#endregion
14999
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/String.js
15311
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/String.js
15000
15312
  /**
15001
15313
  * This module provides utility functions and type class instances for working with the `string` type in TypeScript.
15002
15314
  * It includes functions for basic string manipulation.
@@ -15091,7 +15403,7 @@ const trim = (self) => self.trim();
15091
15403
  const isNonEmpty$1 = (self) => self.length > 0;
15092
15404
 
15093
15405
  //#endregion
15094
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Pull.js
15406
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Pull.js
15095
15407
  /**
15096
15408
  * @since 4.0.0
15097
15409
  */
@@ -15173,7 +15485,7 @@ const matchEffect$1 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffec
15173
15485
  }));
15174
15486
 
15175
15487
  //#endregion
15176
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Schedule.js
15488
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Schedule.js
15177
15489
  /**
15178
15490
  * This module provides utilities for creating and composing schedules for retrying operations,
15179
15491
  * repeating effects, and implementing various timing strategies.
@@ -15531,7 +15843,7 @@ const eitherWith = /* @__PURE__ */ dual(3, (self, other, combine) => fromStep(ma
15531
15843
  * @category constructors
15532
15844
  */
15533
15845
  const exponential = (base, factor = 2) => {
15534
- const baseMillis = toMillis(fromDurationInputUnsafe(base));
15846
+ const baseMillis = toMillis(fromInputUnsafe(base));
15535
15847
  return fromStepWithMetadata(succeed$5((meta) => {
15536
15848
  const duration = millis(baseMillis * Math.pow(factor, meta.attempt - 1));
15537
15849
  return succeed$5([duration, duration]);
@@ -15675,7 +15987,7 @@ const recurs = (times) => while_(forever$1, ({ attempt }) => succeed$5(attempt <
15675
15987
  * @category constructors
15676
15988
  */
15677
15989
  const spaced = (duration) => {
15678
- const decoded = fromDurationInputUnsafe(duration);
15990
+ const decoded = fromInputUnsafe(duration);
15679
15991
  return fromStepWithMetadata(succeed$5((meta) => succeed$5([meta.attempt - 1, decoded])));
15680
15992
  };
15681
15993
  const while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map$11(toStep(self), (step) => {
@@ -15719,13 +16031,13 @@ const while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map$11(toSt
15719
16031
  const forever$1 = /* @__PURE__ */ spaced(zero$1);
15720
16032
 
15721
16033
  //#endregion
15722
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/layer.js
16034
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/layer.js
15723
16035
  const provideLayer = (self, layer, options) => scopedWith$1((scope) => flatMap$4(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope) : buildWithScope(layer, scope), (context) => provideServices$1(self, context)));
15724
16036
  /** @internal */
15725
16037
  const provide$2 = /* @__PURE__ */ dual((args) => isEffect$1(args[0]), (self, source, options) => isServiceMap(source) ? provideServices$1(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll(...source) : source, options));
15726
16038
 
15727
16039
  //#endregion
15728
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/schedule.js
16040
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/schedule.js
15729
16041
  /** @internal */
15730
16042
  const repeatOrElse$1 = /* @__PURE__ */ dual(3, (self, schedule, orElse) => flatMap$4(toStepWithMetadata(schedule), (step) => {
15731
16043
  let meta = CurrentMetadata.defaultValue();
@@ -15787,7 +16099,7 @@ const buildFromOptions = (options) => {
15787
16099
  };
15788
16100
 
15789
16101
  //#endregion
15790
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/executionPlan.js
16102
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/executionPlan.js
15791
16103
  /** @internal */
15792
16104
  const withExecutionPlan$1 = /* @__PURE__ */ dual(2, (self, plan) => suspend$4(() => {
15793
16105
  let i = 0;
@@ -15846,7 +16158,7 @@ const scheduleFromStep = (step, first) => {
15846
16158
  const scheduleOnce = /* @__PURE__ */ recurs(1);
15847
16159
 
15848
16160
  //#endregion
15849
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Request.js
16161
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Request.js
15850
16162
  const TypeId$59 = "~effect/Request";
15851
16163
  const requestVariance = /* @__PURE__ */ byReferenceUnsafe({
15852
16164
  _E: (_) => _,
@@ -15867,7 +16179,7 @@ const RequestPrototype = {
15867
16179
  const makeEntry = (options) => options;
15868
16180
 
15869
16181
  //#endregion
15870
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/request.js
16182
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/request.js
15871
16183
  /** @internal */
15872
16184
  const request$2 = /* @__PURE__ */ dual(2, (self, resolver) => {
15873
16185
  const withResolver = (resolver) => callback$2((resume) => {
@@ -15967,7 +16279,7 @@ function runBatch(batch) {
15967
16279
  }
15968
16280
 
15969
16281
  //#endregion
15970
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Effect.js
16282
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Effect.js
15971
16283
  const TypeId$58 = EffectTypeId$1;
15972
16284
  /**
15973
16285
  * Tests if a value is an `Effect`.
@@ -16624,6 +16936,43 @@ const callback$1 = callback$2;
16624
16936
  */
16625
16937
  const never$4 = never$5;
16626
16938
  /**
16939
+ * An `Effect` containing an empty record `{}`, used as the starting point for
16940
+ * do notation chains.
16941
+ *
16942
+ * @example
16943
+ * ```ts
16944
+ * import { Effect } from "effect"
16945
+ * import { pipe } from "effect/Function"
16946
+ *
16947
+ * const program = pipe(
16948
+ * Effect.Do,
16949
+ * Effect.bind("x", () => Effect.succeed(2)),
16950
+ * Effect.bind("y", ({ x }) => Effect.succeed(x + 1)),
16951
+ * Effect.let("sum", ({ x, y }) => x + y)
16952
+ * )
16953
+ * ```
16954
+ *
16955
+ * @since 4.0.0
16956
+ * @category Do notation
16957
+ */
16958
+ const Do = Do$1;
16959
+ /**
16960
+ * Gives a name to the success value of an `Effect`, creating a single-key
16961
+ * record used in do notation pipelines.
16962
+ *
16963
+ * @since 4.0.0
16964
+ * @category Do notation
16965
+ */
16966
+ const bindTo = bindTo$1;
16967
+ const let_ = let_$1;
16968
+ /**
16969
+ * Adds an `Effect` value to the do notation record under a given name.
16970
+ *
16971
+ * @since 4.0.0
16972
+ * @category Do notation
16973
+ */
16974
+ const bind$1 = bind$2;
16975
+ /**
16627
16976
  * Provides a way to write effectful code using generator functions, simplifying
16628
16977
  * control flow and error handling.
16629
16978
  *
@@ -22372,7 +22721,7 @@ const catchEager = catchEager$1;
22372
22721
  const fnUntracedEager = fnUntracedEager$1;
22373
22722
 
22374
22723
  //#endregion
22375
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/record.js
22724
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/record.js
22376
22725
  /**
22377
22726
  * @since 4.0.0
22378
22727
  */
@@ -22389,7 +22738,7 @@ function set$10(self, key, value) {
22389
22738
  }
22390
22739
 
22391
22740
  //#endregion
22392
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/schema/annotations.js
22741
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/schema/annotations.js
22393
22742
  /** @internal */
22394
22743
  function resolve$2(ast) {
22395
22744
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
@@ -22412,7 +22761,7 @@ const getExpected = /* @__PURE__ */ memoize((ast) => {
22412
22761
  });
22413
22762
 
22414
22763
  //#endregion
22415
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/RegExp.js
22764
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/RegExp.js
22416
22765
  /**
22417
22766
  * This module provides utility functions for working with RegExp in TypeScript.
22418
22767
  *
@@ -22467,7 +22816,7 @@ const isRegExp = isRegExp$1;
22467
22816
  const escape = (string) => string.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
22468
22817
 
22469
22818
  //#endregion
22470
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/DateTime.js
22819
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/DateTime.js
22471
22820
  TypeId$61;
22472
22821
  TimeZoneTypeId;
22473
22822
  /**
@@ -23014,10 +23363,12 @@ const setZoneNamed = setZoneNamed$1;
23014
23363
  */
23015
23364
  const setZoneNamedUnsafe = setZoneNamedUnsafe$1;
23016
23365
  /**
23017
- * Calulate the difference between two `DateTime` values, returning the number
23018
- * of milliseconds the `other` DateTime is from `self`.
23366
+ * Calulate the difference between two `DateTime` values, returning a
23367
+ * `Duration` representing the amount of time between them.
23019
23368
  *
23020
- * If `other` is *after* `self`, the result will be a positive number.
23369
+ * If `other` is *after* `self`, the result will be a positive `Duration`. If
23370
+ * `other` is *before* `self`, the result will be a negative `Duration`. If they
23371
+ * are equal, the result will be a `Duration` of zero.
23021
23372
  *
23022
23373
  * @since 3.6.0
23023
23374
  * @category comparisons
@@ -23029,60 +23380,13 @@ const setZoneNamedUnsafe = setZoneNamedUnsafe$1;
23029
23380
  * const now = yield* DateTime.now
23030
23381
  * const other = DateTime.add(now, { minutes: 1 })
23031
23382
  *
23032
- * // returns 60000
23383
+ * // returns Duration.minutes(1)
23033
23384
  * DateTime.distance(now, other)
23034
23385
  * })
23035
23386
  * ```
23036
23387
  */
23037
23388
  const distance = distance$1;
23038
23389
  /**
23039
- * Calulate the difference between two `DateTime` values.
23040
- *
23041
- * If the `other` DateTime is before `self`, the result will be a negative
23042
- * `Duration`, returned as a `Failure`.
23043
- *
23044
- * If the `other` DateTime is after `self`, the result will be a positive
23045
- * `Duration`, returned as a `Success`.
23046
- *
23047
- * @since 3.6.0
23048
- * @category comparisons
23049
- * @example
23050
- * ```ts
23051
- * import { DateTime, Effect } from "effect"
23052
- *
23053
- * Effect.gen(function*() {
23054
- * const now = yield* DateTime.now
23055
- * const other = DateTime.add(now, { minutes: 1 })
23056
- *
23057
- * // returns Result.succeed(Duration.minutes(1))
23058
- * DateTime.distanceDurationResult(now, other)
23059
- *
23060
- * // returns Result.fail(Duration.minutes(1))
23061
- * DateTime.distanceDurationResult(other, now)
23062
- * })
23063
- * ```
23064
- */
23065
- const distanceDurationResult = distanceDurationResult$1;
23066
- /**
23067
- * Calulate the distance between two `DateTime` values.
23068
- *
23069
- * @since 3.6.0
23070
- * @category comparisons
23071
- * @example
23072
- * ```ts
23073
- * import { DateTime, Effect } from "effect"
23074
- *
23075
- * Effect.gen(function*() {
23076
- * const now = yield* DateTime.now
23077
- * const other = DateTime.add(now, { minutes: 1 })
23078
- *
23079
- * // returns Duration.minutes(1)
23080
- * DateTime.distanceDuration(now, other)
23081
- * })
23082
- * ```
23083
- */
23084
- const distanceDuration = distanceDuration$1;
23085
- /**
23086
23390
  * Returns the earlier of two `DateTime` values.
23087
23391
  *
23088
23392
  * @example
@@ -24081,7 +24385,7 @@ const formatIsoZoned = formatIsoZoned$1;
24081
24385
  const layerCurrentZoneNamed = /* @__PURE__ */ flow(zoneMakeNamedEffect$1, /* @__PURE__ */ effect$1(CurrentTimeZone));
24082
24386
 
24083
24387
  //#endregion
24084
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Encoding.js
24388
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Encoding.js
24085
24389
  /**
24086
24390
  * Encoding & decoding for Base64 (RFC4648), Base64Url, and Hex.
24087
24391
  *
@@ -24415,7 +24719,7 @@ const base64codes = [
24415
24719
  const base64UrlEncodeUint8Array = (data) => base64EncodeUint8Array(data).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
24416
24720
 
24417
24721
  //#endregion
24418
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/redacted.js
24722
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/redacted.js
24419
24723
  /** @internal */
24420
24724
  const redactedRegistry = /* @__PURE__ */ new WeakMap();
24421
24725
  /** @internal */
@@ -24425,7 +24729,7 @@ const value$3 = (self) => {
24425
24729
  };
24426
24730
 
24427
24731
  //#endregion
24428
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Redacted.js
24732
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Redacted.js
24429
24733
  /**
24430
24734
  * The Redacted module provides functionality for handling sensitive information
24431
24735
  * securely within your application. By using the `Redacted` data type, you can
@@ -24508,7 +24812,7 @@ const Proto$20 = {
24508
24812
  const value$2 = value$3;
24509
24813
 
24510
24814
  //#endregion
24511
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/SchemaIssue.js
24815
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/SchemaIssue.js
24512
24816
  const TypeId$56 = "~effect/SchemaIssue/Issue";
24513
24817
  /**
24514
24818
  * Returns `true` if the given value is an {@link Issue}.
@@ -25236,7 +25540,7 @@ function formatOption(actual) {
25236
25540
  }
25237
25541
 
25238
25542
  //#endregion
25239
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/SchemaGetter.js
25543
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/SchemaGetter.js
25240
25544
  /**
25241
25545
  * Composable transformation primitives for the Effect Schema system.
25242
25546
  *
@@ -25844,7 +26148,7 @@ function collectBracketPathEntries(isLeaf) {
25844
26148
  }
25845
26149
 
25846
26150
  //#endregion
25847
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/BigDecimal.js
26151
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/BigDecimal.js
25848
26152
  /**
25849
26153
  * This module provides utility functions and type class instances for working with the `BigDecimal` type in TypeScript.
25850
26154
  * It includes functions for basic arithmetic operations.
@@ -26261,7 +26565,7 @@ const isZero = (n) => n.value === bigint0;
26261
26565
  const isNegative = (n) => n.value < bigint0;
26262
26566
 
26263
26567
  //#endregion
26264
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/SchemaTransformation.js
26568
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/SchemaTransformation.js
26265
26569
  /**
26266
26570
  * Bidirectional transformations for the Effect Schema system.
26267
26571
  *
@@ -26819,7 +27123,7 @@ const dateTimeUtcFromString = /* @__PURE__ */ transformOrFail({
26819
27123
  });
26820
27124
 
26821
27125
  //#endregion
26822
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/SchemaAST.js
27126
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/SchemaAST.js
26823
27127
  /**
26824
27128
  * Abstract Syntax Tree (AST) representation for Effect schemas.
26825
27129
  *
@@ -28853,7 +29157,7 @@ const resolveTitle = resolveTitle$1;
28853
29157
  const resolveDescription = resolveDescription$1;
28854
29158
 
28855
29159
  //#endregion
28856
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Brand.js
29160
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Brand.js
28857
29161
  /**
28858
29162
  * This function returns a `Constructor` that **does not apply any runtime
28859
29163
  * checks**, it just returns the provided value. It can be used to create
@@ -28875,7 +29179,7 @@ function nominal() {
28875
29179
  }
28876
29180
 
28877
29181
  //#endregion
28878
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/PlatformError.js
29182
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/PlatformError.js
28879
29183
  /**
28880
29184
  * @since 4.0.0
28881
29185
  */
@@ -28936,7 +29240,7 @@ const systemError = (options) => new PlatformError(new SystemError(options));
28936
29240
  const badArgument = (options) => new PlatformError(new BadArgument(options));
28937
29241
 
28938
29242
  //#endregion
28939
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Chunk.js
29243
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Chunk.js
28940
29244
  /**
28941
29245
  * The `Chunk` module provides an immutable, high-performance sequence data structure
28942
29246
  * optimized for functional programming patterns. A `Chunk` is a persistent data structure
@@ -29678,7 +29982,7 @@ const reduce$2 = reduce$3;
29678
29982
  const reduceRight = reduceRight$1;
29679
29983
 
29680
29984
  //#endregion
29681
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Fiber.js
29985
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Fiber.js
29682
29986
  `${version$1}`;
29683
29987
  const await_ = fiberAwait;
29684
29988
  /**
@@ -29886,7 +30190,7 @@ const getCurrent = getCurrentFiber;
29886
30190
  const runIn = fiberRunIn;
29887
30191
 
29888
30192
  //#endregion
29889
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Latch.js
30193
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Latch.js
29890
30194
  /**
29891
30195
  * Creates a new Latch unsafely.
29892
30196
  *
@@ -29959,7 +30263,7 @@ const makeUnsafe$9 = makeLatchUnsafe;
29959
30263
  const make$51 = makeLatch;
29960
30264
 
29961
30265
  //#endregion
29962
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/MutableList.js
30266
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/MutableList.js
29963
30267
  /**
29964
30268
  * A unique symbol used to represent an empty result when taking elements from a MutableList.
29965
30269
  * This symbol is returned by `take` when the list is empty, allowing for safe type checking.
@@ -30380,7 +30684,7 @@ const filter$3 = (self, f) => {
30380
30684
  const remove$6 = (self, value) => filter$3(self, (v) => v !== value);
30381
30685
 
30382
30686
  //#endregion
30383
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/MutableRef.js
30687
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/MutableRef.js
30384
30688
  const TypeId$50 = "~effect/MutableRef";
30385
30689
  const MutableRefProto = {
30386
30690
  [TypeId$50]: TypeId$50,
@@ -30465,7 +30769,7 @@ const set$9 = /* @__PURE__ */ dual(2, (self, value) => {
30465
30769
  });
30466
30770
 
30467
30771
  //#endregion
30468
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/PubSub.js
30772
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/PubSub.js
30469
30773
  /**
30470
30774
  * This module provides utilities for working with publish-subscribe (PubSub) systems.
30471
30775
  *
@@ -30699,7 +31003,7 @@ var PubSubImpl = class {
30699
31003
  };
30700
31004
 
30701
31005
  //#endregion
30702
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Queue.js
31006
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Queue.js
30703
31007
  const TypeId$48 = "~effect/Queue";
30704
31008
  const EnqueueTypeId = "~effect/Queue/Enqueue";
30705
31009
  const DequeueTypeId = "~effect/Queue/Dequeue";
@@ -31330,7 +31634,7 @@ const finalize = (self, exit) => {
31330
31634
  };
31331
31635
 
31332
31636
  //#endregion
31333
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/MutableHashMap.js
31637
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/MutableHashMap.js
31334
31638
  const TypeId$47 = "~effect/collections/MutableHashMap";
31335
31639
  const MutableHashMapProto = {
31336
31640
  [TypeId$47]: TypeId$47,
@@ -31697,7 +32001,7 @@ const clear$1 = (self) => {
31697
32001
  const size$2 = (self) => self.backing.size;
31698
32002
 
31699
32003
  //#endregion
31700
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Semaphore.js
32004
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Semaphore.js
31701
32005
  /**
31702
32006
  * Unsafely creates a new Semaphore.
31703
32007
  *
@@ -31772,7 +32076,7 @@ const makeUnsafe$8 = makeSemaphoreUnsafe;
31772
32076
  const make$46 = makeSemaphore;
31773
32077
 
31774
32078
  //#endregion
31775
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Channel.js
32079
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Channel.js
31776
32080
  /**
31777
32081
  * The `Channel` module provides a powerful abstraction for bi-directional communication
31778
32082
  * and streaming operations. A `Channel` is a nexus of I/O operations that supports both
@@ -33119,7 +33423,7 @@ const toPull$1 = /* @__PURE__ */ fnUntraced(function* (self) {
33119
33423
  const toPullScoped = (self, scope) => toTransform(self)(done(), scope);
33120
33424
 
33121
33425
  //#endregion
33122
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/stream.js
33426
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/stream.js
33123
33427
  const TypeId$45 = "~effect/Stream";
33124
33428
  const streamVariance = {
33125
33429
  _R: identity,
@@ -33140,7 +33444,7 @@ const fromChannel$2 = (channel) => {
33140
33444
  };
33141
33445
 
33142
33446
  //#endregion
33143
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Sink.js
33447
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Sink.js
33144
33448
  const TypeId$44 = "~effect/Sink";
33145
33449
  const endVoid = /* @__PURE__ */ succeed$1([void 0]);
33146
33450
  const sinkVariance = {
@@ -33346,7 +33650,7 @@ const forEachArray = (f) => fromTransform((upstream) => upstream.pipe(flatMap$2(
33346
33650
  const unwrap$1 = (effect) => fromChannel$1(unwrap$2(map$8(effect, toChannel$1)));
33347
33651
 
33348
33652
  //#endregion
33349
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/RcMap.js
33653
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/RcMap.js
33350
33654
  /**
33351
33655
  * @since 3.5.0
33352
33656
  */
@@ -33409,7 +33713,7 @@ const make$45 = (options) => withFiber((fiber) => {
33409
33713
  lookup: options.lookup,
33410
33714
  services,
33411
33715
  scope,
33412
- idleTimeToLive: typeof options.idleTimeToLive === "function" ? flow(options.idleTimeToLive, fromDurationInputUnsafe) : constant(fromDurationInputUnsafe(options.idleTimeToLive ?? zero$1)),
33716
+ idleTimeToLive: typeof options.idleTimeToLive === "function" ? flow(options.idleTimeToLive, fromInputUnsafe) : constant(fromInputUnsafe(options.idleTimeToLive ?? zero$1)),
33413
33717
  capacity: Math.max(options.capacity ?? Number.POSITIVE_INFINITY, 0)
33414
33718
  });
33415
33719
  return as(addFinalizerExit(scope, () => {
@@ -33546,7 +33850,7 @@ const invalidate$4 = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced(function
33546
33850
  }, uninterruptible));
33547
33851
 
33548
33852
  //#endregion
33549
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/rcRef.js
33853
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/rcRef.js
33550
33854
  const TypeId$42 = "~effect/RcRef";
33551
33855
  const stateEmpty = { _tag: "Empty" };
33552
33856
  const stateClosed = { _tag: "Closed" };
@@ -33576,7 +33880,7 @@ var RcRefImpl = class {
33576
33880
  const make$44 = (options) => withFiber((fiber) => {
33577
33881
  const services = fiber.services;
33578
33882
  const scope = get$12(services, Scope);
33579
- const ref = new RcRefImpl(options.acquire, services, scope, options.idleTimeToLive ? fromDurationInputUnsafe(options.idleTimeToLive) : void 0);
33883
+ const ref = new RcRefImpl(options.acquire, services, scope, options.idleTimeToLive ? fromInputUnsafe(options.idleTimeToLive) : void 0);
33580
33884
  return as(addFinalizerExit(scope, () => {
33581
33885
  const close$1 = ref.state._tag === "Acquired" ? close(ref.state.scope, void_$2) : void_$1;
33582
33886
  ref.state = stateClosed;
@@ -33648,7 +33952,7 @@ const invalidate$3 = (self_) => {
33648
33952
  };
33649
33953
 
33650
33954
  //#endregion
33651
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/RcRef.js
33955
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/RcRef.js
33652
33956
  /**
33653
33957
  * Create an `RcRef` from an acquire `Effect`.
33654
33958
  *
@@ -33723,7 +34027,7 @@ const get$8 = get$9;
33723
34027
  const invalidate$2 = invalidate$3;
33724
34028
 
33725
34029
  //#endregion
33726
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Stream.js
34030
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Stream.js
33727
34031
  /**
33728
34032
  * @since 2.0.0
33729
34033
  */
@@ -34080,7 +34384,7 @@ const fromReadableStream = (options) => fromChannel(fromTransform$1(fnUntraced(f
34080
34384
  return flatMap$2(tryPromise({
34081
34385
  try: () => reader.read(),
34082
34386
  catch: (reason) => options.onError(reason)
34083
- }), ({ done: done$8, value }) => done$8 ? done() : succeed$1(of$1(value)));
34387
+ }), ({ done: done$10, value }) => done$10 ? done() : succeed$1(of$1(value)));
34084
34388
  })));
34085
34389
  /**
34086
34390
  * Like `Stream.unfold`, but allows the emission of values to end one step further
@@ -34368,7 +34672,7 @@ const orDie = (self) => fromChannel(orDie$1(self.channel));
34368
34672
  */
34369
34673
  const debounce = /* @__PURE__ */ dual(2, (self, duration) => transformPull(self, fnUntraced(function* (pull, scope) {
34370
34674
  const clock = yield* Clock;
34371
- const durationMs = toMillis(fromDurationInputUnsafe(duration));
34675
+ const durationMs = toMillis(fromInputUnsafe(duration));
34372
34676
  let lastArr;
34373
34677
  let cause;
34374
34678
  let emitAtMs = Infinity;
@@ -34437,7 +34741,7 @@ const debounce = /* @__PURE__ */ dual(2, (self, duration) => transformPull(self,
34437
34741
  * @category Aggregation
34438
34742
  */
34439
34743
  const transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull(self, (upstream, scope) => sync(() => {
34440
- let done$11;
34744
+ let done$9;
34441
34745
  let leftover;
34442
34746
  const upstreamWithLeftover = suspend$3(() => {
34443
34747
  if (leftover !== void 0) {
@@ -34447,14 +34751,14 @@ const transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull(self, (u
34447
34751
  }
34448
34752
  return upstream;
34449
34753
  }).pipe(catch_$1((error) => {
34450
- done$11 = fail$6(error);
34754
+ done$9 = fail$6(error);
34451
34755
  return done();
34452
34756
  }));
34453
34757
  const pull = map$8(suspend$3(() => sink.transform(upstreamWithLeftover, scope)), ([value, leftover_]) => {
34454
34758
  leftover = leftover_;
34455
34759
  return of$1(value);
34456
34760
  });
34457
- return suspend$3(() => done$11 ? done$11 : pull);
34761
+ return suspend$3(() => done$9 ? done$9 : pull);
34458
34762
  })));
34459
34763
  /**
34460
34764
  * Pipes this stream through a channel that consumes and emits chunked elements.
@@ -34894,7 +35198,7 @@ const toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (
34894
35198
  const toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map$8(services(), (context) => toReadableStreamWith(self, context, options)));
34895
35199
 
34896
35200
  //#endregion
34897
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/FileSystem.js
35201
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/FileSystem.js
34898
35202
  /**
34899
35203
  * This module provides a comprehensive file system abstraction that supports both synchronous
34900
35204
  * and asynchronous file operations through Effect. It includes utilities for file I/O, directory
@@ -35117,7 +35421,7 @@ const FileDescriptor = /* @__PURE__ */ nominal();
35117
35421
  var WatchBackend = class extends Service$1()("effect/platform/FileSystem/WatchBackend") {};
35118
35422
 
35119
35423
  //#endregion
35120
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Path.js
35424
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Path.js
35121
35425
  /**
35122
35426
  * @since 4.0.0
35123
35427
  */
@@ -35542,7 +35846,7 @@ const posixImpl = /* @__PURE__ */ Path$1.of({
35542
35846
  });
35543
35847
 
35544
35848
  //#endregion
35545
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/ConfigProvider.js
35849
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/ConfigProvider.js
35546
35850
  /**
35547
35851
  * Creates a `Value` node representing a terminal string leaf.
35548
35852
  *
@@ -35817,7 +36121,7 @@ function trieNodeAt(root, path) {
35817
36121
  }
35818
36122
 
35819
36123
  //#endregion
35820
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/LogLevel.js
36124
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/LogLevel.js
35821
36125
  /**
35822
36126
  * @since 4.0.0
35823
36127
  * @category models
@@ -35918,7 +36222,7 @@ const isGreaterThan$1 = isLogLevelGreaterThan;
35918
36222
  const isLessThan$1 = /* @__PURE__ */ isLessThan$4(Order);
35919
36223
 
35920
36224
  //#endregion
35921
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/hashMap.js
36225
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/hashMap.js
35922
36226
  /**
35923
36227
  * @since 2.0.0
35924
36228
  */
@@ -36647,7 +36951,7 @@ const every$1 = /* @__PURE__ */ dual(2, (self, predicate) => {
36647
36951
  });
36648
36952
 
36649
36953
  //#endregion
36650
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/HashMap.js
36954
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/HashMap.js
36651
36955
  /**
36652
36956
  * @since 2.0.0
36653
36957
  */
@@ -37452,7 +37756,7 @@ const some = some$1;
37452
37756
  const every = every$1;
37453
37757
 
37454
37758
  //#endregion
37455
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Struct.js
37759
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Struct.js
37456
37760
  /**
37457
37761
  * Creates an `Equivalence` for a struct by providing an `Equivalence` for each
37458
37762
  * property. Two structs are equivalent when all their corresponding properties
@@ -37550,7 +37854,7 @@ const makeOrder = Struct$2;
37550
37854
  const lambda = (f) => f;
37551
37855
 
37552
37856
  //#endregion
37553
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/SchemaParser.js
37857
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/SchemaParser.js
37554
37858
  /**
37555
37859
  * @since 4.0.0
37556
37860
  */
@@ -37788,7 +38092,7 @@ const recur$1 = /* @__PURE__ */ memoize((ast) => {
37788
38092
  });
37789
38093
 
37790
38094
  //#endregion
37791
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/JsonPointer.js
38095
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/JsonPointer.js
37792
38096
  /**
37793
38097
  * Utilities for escaping and unescaping JSON Pointer reference tokens according to RFC 6901.
37794
38098
  *
@@ -37882,7 +38186,7 @@ function escapeToken(token) {
37882
38186
  }
37883
38187
 
37884
38188
  //#endregion
37885
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/schema/schema.js
38189
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/schema/schema.js
37886
38190
  /** @internal */
37887
38191
  const TypeId$38 = "~effect/Schema/Schema";
37888
38192
  const SchemaProto = {
@@ -37911,7 +38215,7 @@ function make$38(ast, options) {
37911
38215
  }
37912
38216
 
37913
38217
  //#endregion
37914
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/schema/to-codec.js
38218
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/schema/to-codec.js
37915
38219
  /** @internal */
37916
38220
  const toCodecJson$1 = /* @__PURE__ */ toCodec((ast) => {
37917
38221
  const out = toCodecJsonBase(ast);
@@ -37981,7 +38285,7 @@ function makeReorder(getPriority) {
37981
38285
  const unknownToNull = /* @__PURE__ */ new Link(null_, /* @__PURE__ */ new Transformation(/* @__PURE__ */ passthrough$1(), /* @__PURE__ */ transform$3(() => null)));
37982
38286
 
37983
38287
  //#endregion
37984
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/internal/schema/representation.js
38288
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/internal/schema/representation.js
37985
38289
  /** @internal */
37986
38290
  function fromAST(ast) {
37987
38291
  const { references, representations: schemas } = fromASTs([ast]);
@@ -38593,7 +38897,7 @@ function getPartPattern(part) {
38593
38897
  }
38594
38898
 
38595
38899
  //#endregion
38596
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Schema.js
38900
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Schema.js
38597
38901
  const TypeId$37 = TypeId$38;
38598
38902
  /**
38599
38903
  * An API for creating schemas for parametric types.
@@ -40693,7 +40997,7 @@ const Uint8ArrayFromBase64 = /* @__PURE__ */ Base64String.pipe(/* @__PURE__ */ d
40693
40997
  * @since 4.0.0
40694
40998
  */
40695
40999
  const DateTimeUtc = /* @__PURE__ */ declare((u) => isDateTime(u) && isUtc(u), {
40696
- typeConstructor: { _tag: "DateTime.Utc" },
41000
+ typeConstructor: { _tag: "effect/DateTime.Utc" },
40697
41001
  generation: {
40698
41002
  runtime: `Schema.DateTimeUtc`,
40699
41003
  Type: `DateTime.Utc`,
@@ -40766,7 +41070,7 @@ const DateTimeUtcFromMillis = /* @__PURE__ */ Number$1.pipe(/* @__PURE__ */ deco
40766
41070
  * @since 4.0.0
40767
41071
  */
40768
41072
  const TimeZoneOffset = /* @__PURE__ */ declare(isTimeZoneOffset, {
40769
- typeConstructor: { _tag: "DateTime.TimeZone.Offset" },
41073
+ typeConstructor: { _tag: "effect/DateTime.TimeZone.Offset" },
40770
41074
  generation: {
40771
41075
  runtime: `Schema.TimeZoneOffset`,
40772
41076
  Type: `DateTime.TimeZone.Offset`,
@@ -40792,7 +41096,7 @@ const TimeZoneOffset = /* @__PURE__ */ declare(isTimeZoneOffset, {
40792
41096
  * @since 4.0.0
40793
41097
  */
40794
41098
  const TimeZoneNamed = /* @__PURE__ */ declare(isTimeZoneNamed, {
40795
- typeConstructor: { _tag: "DateTime.TimeZone.Named" },
41099
+ typeConstructor: { _tag: "effect/DateTime.TimeZone.Named" },
40796
41100
  generation: {
40797
41101
  runtime: `Schema.TimeZoneNamed`,
40798
41102
  Type: `DateTime.TimeZone.Named`,
@@ -40822,7 +41126,7 @@ const TimeZoneNamed = /* @__PURE__ */ declare(isTimeZoneNamed, {
40822
41126
  * @since 4.0.0
40823
41127
  */
40824
41128
  const TimeZone = /* @__PURE__ */ declare(isTimeZone, {
40825
- typeConstructor: { _tag: "DateTime.TimeZone" },
41129
+ typeConstructor: { _tag: "effect/DateTime.TimeZone" },
40826
41130
  generation: {
40827
41131
  runtime: `Schema.TimeZone`,
40828
41132
  Type: `DateTime.TimeZone`,
@@ -41068,7 +41372,7 @@ function onSerializerEnsureArray(ast) {
41068
41372
  }
41069
41373
 
41070
41374
  //#endregion
41071
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Config.js
41375
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Config.js
41072
41376
  const TypeId$36 = "~effect/Config";
41073
41377
  /**
41074
41378
  * The error type produced when config loading or validation fails.
@@ -41445,7 +41749,7 @@ const Boolean$1 = /* @__PURE__ */ Literals([...TrueValues.literals, ...FalseValu
41445
41749
  * - Pass to {@link schema} for custom paths, or use the {@link duration}
41446
41750
  * convenience constructor.
41447
41751
  *
41448
- * Accepts any string that `Duration.fromDurationInput` can parse (e.g.
41752
+ * Accepts any string that `Duration.fromInput` can parse (e.g.
41449
41753
  * `"10 seconds"`, `"500 millis"`).
41450
41754
  *
41451
41755
  * @see {@link duration} – convenience constructor
@@ -41455,7 +41759,7 @@ const Boolean$1 = /* @__PURE__ */ Literals([...TrueValues.literals, ...FalseValu
41455
41759
  */
41456
41760
  const Duration = /* @__PURE__ */ String$1.pipe(/* @__PURE__ */ decodeTo(Duration$1, {
41457
41761
  decode: /* @__PURE__ */ transformOrFail$1((s) => {
41458
- const d = fromDurationInput(s);
41762
+ const d = fromInput$2(s);
41459
41763
  return d ? succeed$1(d) : fail$4(new InvalidValue$1(some$2(s)));
41460
41764
  }),
41461
41765
  encode: /* @__PURE__ */ forbidden(() => "Encoding Duration is not supported")
@@ -41557,7 +41861,7 @@ function int(name) {
41557
41861
  }
41558
41862
 
41559
41863
  //#endregion
41560
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/CliError.js
41864
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/CliError.js
41561
41865
  /**
41562
41866
  * @since 4.0.0
41563
41867
  */
@@ -52561,7 +52865,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin$1(((exports) => {
52561
52865
  }));
52562
52866
 
52563
52867
  //#endregion
52564
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/Primitive.js
52868
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/Primitive.js
52565
52869
  var import_ini = /* @__PURE__ */ __toESM(require_ini(), 1);
52566
52870
  var import_toml = /* @__PURE__ */ __toESM(require_toml(), 1);
52567
52871
  var import_dist = /* @__PURE__ */ __toESM(require_dist(), 1);
@@ -52833,7 +53137,7 @@ const getTypeName = (primitive) => {
52833
53137
  const getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
52834
53138
 
52835
53139
  //#endregion
52836
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Terminal.js
53140
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Terminal.js
52837
53141
  const TypeId$34 = "~effect/platform/Terminal";
52838
53142
  const QuitErrorTypeId = "effect/platform/Terminal/QuitError";
52839
53143
  /**
@@ -52871,7 +53175,7 @@ const make$35 = (impl) => Terminal.of({
52871
53175
  });
52872
53176
 
52873
53177
  //#endregion
52874
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/internal/ansi.js
53178
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/internal/ansi.js
52875
53179
  const ESC = "\x1B[";
52876
53180
  const BEL = "\x07";
52877
53181
  const SEP = ";";
@@ -52962,7 +53266,7 @@ const eraseLines = (rows) => {
52962
53266
  };
52963
53267
 
52964
53268
  //#endregion
52965
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/Prompt.js
53269
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/Prompt.js
52966
53270
  /**
52967
53271
  * @since 4.0.0
52968
53272
  */
@@ -53955,7 +54259,7 @@ const entriesToDisplay = (cursor, total, maxVisible) => {
53955
54259
  };
53956
54260
 
53957
54261
  //#endregion
53958
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/Param.js
54262
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/Param.js
53959
54263
  /**
53960
54264
  * @internal
53961
54265
  *
@@ -54674,7 +54978,7 @@ const getParamMetadata = (param) => {
54674
54978
  };
54675
54979
 
54676
54980
  //#endregion
54677
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/Argument.js
54981
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/Argument.js
54678
54982
  /**
54679
54983
  * Creates a positional path argument.
54680
54984
  *
@@ -54736,7 +55040,7 @@ const withDescription$2 = /* @__PURE__ */ dual(2, (self, description) => withDes
54736
55040
  const withDefault$1 = withDefault$2;
54737
55041
 
54738
55042
  //#endregion
54739
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/CliOutput.js
55043
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/CliOutput.js
54740
55044
  /**
54741
55045
  * Service reference for the CLI output formatter. Provides a default implementation
54742
55046
  * that can be overridden for custom formatting or testing.
@@ -54938,7 +55242,7 @@ const formatHelpDocImpl = (doc, colors) => {
54938
55242
  };
54939
55243
 
54940
55244
  //#endregion
54941
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Console.js
55245
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Console.js
54942
55246
  /**
54943
55247
  * A reference to the current console service in the Effect system.
54944
55248
  *
@@ -55031,7 +55335,7 @@ const log = (...args) => consoleWith((console) => sync$1(() => {
55031
55335
  }));
55032
55336
 
55033
55337
  //#endregion
55034
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/internal/config.js
55338
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/internal/config.js
55035
55339
  const ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
55036
55340
  /**
55037
55341
  * Parses a Command.Config into a ConfigInternal.
@@ -55101,7 +55405,7 @@ const reconstructTree = (tree, results) => {
55101
55405
  };
55102
55406
 
55103
55407
  //#endregion
55104
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/internal/command.js
55408
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/internal/command.js
55105
55409
  /**
55106
55410
  * Command Implementation
55107
55411
  * ======================
@@ -55254,7 +55558,7 @@ const getHelpForCommandPath = (command, commandPath) => {
55254
55558
  };
55255
55559
 
55256
55560
  //#endregion
55257
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/internal/completions/CommandDescriptor.js
55561
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/internal/completions/CommandDescriptor.js
55258
55562
  const toFlagType = (single) => {
55259
55563
  switch (single.primitiveType._tag) {
55260
55564
  case "Boolean": return { _tag: "Boolean" };
@@ -55336,7 +55640,7 @@ const fromCommand = (cmd) => {
55336
55640
  };
55337
55641
 
55338
55642
  //#endregion
55339
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
55643
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
55340
55644
  const escapeForBash = (s) => s.replace(/'/g, "'\\''");
55341
55645
  const sanitizeFunctionName = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
55342
55646
  const flagNamesForWordlist = (flag) => {
@@ -55488,7 +55792,7 @@ const generate$3 = (executableName, descriptor) => {
55488
55792
  };
55489
55793
 
55490
55794
  //#endregion
55491
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
55795
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
55492
55796
  const escapeFishString = (s) => s.replace(/'/g, "\\'");
55493
55797
  /**
55494
55798
  * Build a Fish condition that checks the current subcommand context.
@@ -55627,7 +55931,7 @@ const generate$2 = (executableName, descriptor) => {
55627
55931
  };
55628
55932
 
55629
55933
  //#endregion
55630
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
55934
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
55631
55935
  const escapeZsh = (s) => s.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
55632
55936
  const sanitize = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
55633
55937
  /**
@@ -55765,7 +56069,7 @@ const generate$1 = (executableName, descriptor) => {
55765
56069
  };
55766
56070
 
55767
56071
  //#endregion
55768
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/internal/completions/Completions.js
56072
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/internal/completions/Completions.js
55769
56073
  /**
55770
56074
  * Top-level completions dispatcher.
55771
56075
  *
@@ -55784,7 +56088,7 @@ const generate = (executableName, shell, descriptor) => {
55784
56088
  };
55785
56089
 
55786
56090
  //#endregion
55787
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/internal/lexer.js
56091
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/internal/lexer.js
55788
56092
  /** @internal */
55789
56093
  function lex(argv) {
55790
56094
  const endIndex = argv.indexOf("--");
@@ -55836,7 +56140,7 @@ const lexTokens = (args) => {
55836
56140
  };
55837
56141
 
55838
56142
  //#endregion
55839
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
56143
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
55840
56144
  /**
55841
56145
  * Simple Levenshtein distance implementation (small N, no perf worries)
55842
56146
  */
@@ -55865,7 +56169,7 @@ const suggest = (input, candidates) => {
55865
56169
  };
55866
56170
 
55867
56171
  //#endregion
55868
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/Flag.js
56172
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/Flag.js
55869
56173
  /**
55870
56174
  * Creates a boolean flag that can be enabled or disabled.
55871
56175
  *
@@ -56115,7 +56419,7 @@ const withFallbackConfig = /* @__PURE__ */ dual(2, (self, config) => withFallbac
56115
56419
  const map$1 = /* @__PURE__ */ dual(2, (self, f) => map$2(self, f));
56116
56420
 
56117
56421
  //#endregion
56118
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/internal/builtInFlags.js
56422
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/internal/builtInFlags.js
56119
56423
  /**
56120
56424
  * Built-in options that are automatically available for CLI commands.
56121
56425
  * @since 4.0.0
@@ -56169,7 +56473,7 @@ const completionsFlag = /* @__PURE__ */ choice("completions", [
56169
56473
  ]).pipe(optional, /* @__PURE__ */ map$1((v) => map$14(v, (s) => s === "sh" ? "bash" : s)), /* @__PURE__ */ withDescription$1("Print shell completion script for the given shell"));
56170
56474
 
56171
56475
  //#endregion
56172
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/internal/parser.js
56476
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/internal/parser.js
56173
56477
  /**
56174
56478
  * Parsing Pipeline for CLI Commands
56175
56479
  * ==================================
@@ -56480,7 +56784,7 @@ const scanCommandLevel = (tokens, context) => {
56480
56784
  };
56481
56785
 
56482
56786
  //#endregion
56483
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/cli/Command.js
56787
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/cli/Command.js
56484
56788
  /**
56485
56789
  * @since 4.0.0
56486
56790
  */
@@ -56826,7 +57130,7 @@ const runWith = (command, config) => {
56826
57130
  };
56827
57131
 
56828
57132
  //#endregion
56829
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Cache.js
57133
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Cache.js
56830
57134
  /**
56831
57135
  * @since 4.0.0
56832
57136
  */
@@ -56896,7 +57200,7 @@ const makeWith$1 = (options) => servicesWith$1((services) => {
56896
57200
  self.lookup = (key) => updateServices$1(options.lookup(key), (input) => merge$4(services, input));
56897
57201
  self.map = make$47();
56898
57202
  self.capacity = options.capacity;
56899
- self.timeToLive = options.timeToLive ? (exit, key) => fromDurationInputUnsafe(options.timeToLive(exit, key)) : defaultTimeToLive;
57203
+ self.timeToLive = options.timeToLive ? (exit, key) => fromInputUnsafe(options.timeToLive(exit, key)) : defaultTimeToLive;
56900
57204
  return succeed$5(self);
56901
57205
  });
56902
57206
  /**
@@ -57244,7 +57548,7 @@ const invalidate$1 = /* @__PURE__ */ dual(2, (self, key) => sync$1(() => {
57244
57548
  }));
57245
57549
 
57246
57550
  //#endregion
57247
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/FiberHandle.js
57551
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/FiberHandle.js
57248
57552
  /**
57249
57553
  * @since 2.0.0
57250
57554
  */
@@ -57440,7 +57744,7 @@ const runImpl$2 = (self, effect, options) => withFiber((parent) => {
57440
57744
  });
57441
57745
 
57442
57746
  //#endregion
57443
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/FiberMap.js
57747
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/FiberMap.js
57444
57748
  /**
57445
57749
  * @since 2.0.0
57446
57750
  */
@@ -57671,7 +57975,7 @@ const runImpl$1 = (self, key, effect, options) => withFiber((parent) => {
57671
57975
  });
57672
57976
 
57673
57977
  //#endregion
57674
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/FiberSet.js
57978
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/FiberSet.js
57675
57979
  /**
57676
57980
  * @since 2.0.0
57677
57981
  */
@@ -57924,7 +58228,7 @@ const awaitEmpty = (self) => whileLoop({
57924
58228
  });
57925
58229
 
57926
58230
  //#endregion
57927
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/PrimaryKey.js
58231
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/PrimaryKey.js
57928
58232
  /**
57929
58233
  * The unique identifier used to identify objects that implement the `PrimaryKey` interface.
57930
58234
  *
@@ -57962,7 +58266,7 @@ const symbol$1 = "~effect/interfaces/PrimaryKey";
57962
58266
  const value$1 = (self) => self[symbol$1]();
57963
58267
 
57964
58268
  //#endregion
57965
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/LayerMap.js
58269
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/LayerMap.js
57966
58270
  const TypeId$26 = "~effect/LayerMap";
57967
58271
  /**
57968
58272
  * @since 3.14.0
@@ -58129,7 +58433,7 @@ const Service = () => (id, options) => {
58129
58433
  };
58130
58434
 
58131
58435
  //#endregion
58132
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Logger.js
58436
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Logger.js
58133
58437
  /**
58134
58438
  * @since 2.0.0
58135
58439
  *
@@ -58577,7 +58881,7 @@ const consolePretty = consolePretty$1;
58577
58881
  const tracerLogger = tracerLogger$1;
58578
58882
 
58579
58883
  //#endregion
58580
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Ref.js
58884
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Ref.js
58581
58885
  const RefProto = {
58582
58886
  ["~effect/Ref"]: { _A: identity },
58583
58887
  ...PipeInspectableProto,
@@ -58619,7 +58923,7 @@ const makeUnsafe$2 = (value) => {
58619
58923
  };
58620
58924
 
58621
58925
  //#endregion
58622
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/reactivity/Reactivity.js
58926
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/reactivity/Reactivity.js
58623
58927
  /**
58624
58928
  * @since 4.0.0
58625
58929
  */
@@ -58756,7 +59060,7 @@ const keysToHashes = (keys, f) => {
58756
59060
  };
58757
59061
 
58758
59062
  //#endregion
58759
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/persistence/KeyValueStore.js
59063
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/persistence/KeyValueStore.js
58760
59064
  /**
58761
59065
  * @since 4.0.0
58762
59066
  */
@@ -58900,7 +59204,7 @@ const toSchemaStore = (self, schema) => {
58900
59204
  };
58901
59205
 
58902
59206
  //#endregion
58903
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/persistence/Persistable.js
59207
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/persistence/Persistable.js
58904
59208
  /**
58905
59209
  * @since 4.0.0
58906
59210
  * @category Symbols
@@ -58957,7 +59261,7 @@ const deserializeExit = (self, encoded) => {
58957
59261
  };
58958
59262
 
58959
59263
  //#endregion
58960
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/persistence/Persistence.js
59264
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/persistence/Persistence.js
58961
59265
  /**
58962
59266
  * @since 4.0.0
58963
59267
  */
@@ -59018,34 +59322,34 @@ const layer$17 = /* @__PURE__ */ effect$1(Persistence)(/* @__PURE__ */ gen(funct
59018
59322
  continue;
59019
59323
  }
59020
59324
  const eff = deserializeExit(key, result);
59021
- const exit$4 = isExit(eff) ? eff : yield* exit(eff);
59022
- if (isFailure$2(exit$4)) {
59325
+ const exit$3 = isExit(eff) ? eff : yield* exit(eff);
59326
+ if (isFailure$2(exit$3)) {
59023
59327
  toRemove ??= [];
59024
59328
  toRemove.push(value$1(key));
59025
59329
  out[i] = void 0;
59026
59330
  continue;
59027
59331
  }
59028
- out[i] = exit$4.value;
59332
+ out[i] = exit$3.value;
59029
59333
  }
59030
59334
  if (toRemove) for (let i = 0; i < toRemove.length; i++) yield* forkIn(storage.remove(toRemove[i]), scope$5);
59031
59335
  return out;
59032
59336
  }),
59033
59337
  set(key, value) {
59034
- const ttl = fromDurationInputUnsafe(timeToLive(value, key));
59338
+ const ttl = fromInputUnsafe(timeToLive(value, key));
59035
59339
  if (isZero$1(ttl) || isNegative$1(ttl)) return void_$1;
59036
59340
  return serializeExit(key, value).pipe(flatMap$2((encoded) => storage.set(value$1(key), encoded, isFinite$2(ttl) ? ttl : void 0)));
59037
59341
  },
59038
59342
  setMany: fnUntraced(function* (entries) {
59039
59343
  const encodedEntries = empty$15();
59040
59344
  for (const [key, value] of entries) {
59041
- const ttl = fromDurationInputUnsafe(timeToLive(value, key));
59345
+ const ttl = fromInputUnsafe(timeToLive(value, key));
59042
59346
  if (isZero$1(ttl) || isNegative$1(ttl)) continue;
59043
59347
  const encoded = serializeExit(key, value);
59044
- const exit$3 = isExit(encoded) ? encoded : yield* exit(encoded);
59045
- if (isFailure$2(exit$3)) return yield* exit$3;
59348
+ const exit$4 = isExit(encoded) ? encoded : yield* exit(encoded);
59349
+ if (isFailure$2(exit$4)) return yield* exit$4;
59046
59350
  encodedEntries.push([
59047
59351
  value$1(key),
59048
- exit$3.value,
59352
+ exit$4.value,
59049
59353
  isFinite$2(ttl) ? ttl : void 0
59050
59354
  ]);
59051
59355
  }
@@ -59134,7 +59438,7 @@ const layerKvs$1 = /* @__PURE__ */ layer$17.pipe(/* @__PURE__ */ provide$3(layer
59134
59438
  const unsafeTtlToExpires = (clock, ttl) => ttl ? clock.currentTimeMillisUnsafe() + toMillis(ttl) : null;
59135
59439
 
59136
59440
  //#endregion
59137
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/SynchronizedRef.js
59441
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/SynchronizedRef.js
59138
59442
  const TypeId$24 = "~effect/SynchronizedRef";
59139
59443
  const Proto$10 = {
59140
59444
  ...PipeInspectableProto,
@@ -59158,7 +59462,7 @@ const makeUnsafe$1 = (value) => {
59158
59462
  };
59159
59463
 
59160
59464
  //#endregion
59161
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/ScopedRef.js
59465
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/ScopedRef.js
59162
59466
  /**
59163
59467
  * @since 2.0.0
59164
59468
  */
@@ -59224,7 +59528,7 @@ const set$4 = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced(function* (self
59224
59528
  }, uninterruptible, (effect, self) => self.backing.semaphore.withPermit(effect)));
59225
59529
 
59226
59530
  //#endregion
59227
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Runtime.js
59531
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Runtime.js
59228
59532
  /**
59229
59533
  * This module provides utilities for running Effect programs and managing their execution lifecycle.
59230
59534
  *
@@ -59360,7 +59664,7 @@ const makeRunMain = (f) => dual((args) => isEffect(args[0]), (effect, options) =
59360
59664
  });
59361
59665
 
59362
59666
  //#endregion
59363
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/Stdio.js
59667
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/Stdio.js
59364
59668
  /**
59365
59669
  * @since 4.0.0
59366
59670
  * @category Type IDs
@@ -59381,7 +59685,7 @@ const make$25 = (options) => ({
59381
59685
  });
59382
59686
 
59383
59687
  //#endregion
59384
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/SubscriptionRef.js
59688
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/SubscriptionRef.js
59385
59689
  /**
59386
59690
  * @since 2.0.0
59387
59691
  */
@@ -60887,7 +61191,7 @@ _Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /
60887
61191
  var src_default = new Mime(types, types$1)._freeze();
60888
61192
 
60889
61193
  //#endregion
60890
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.6_effect@4.0.0-beta.6_ioredis@5.9.2/node_modules/@effect/platform-node/dist/Mime.js
61194
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.10_effect@4.0.0-beta.10_ioredis@5.9.2/node_modules/@effect/platform-node/dist/Mime.js
60891
61195
  /**
60892
61196
  * @since 1.0.0
60893
61197
  */
@@ -60898,7 +61202,7 @@ var src_default = new Mime(types, types$1)._freeze();
60898
61202
  var Mime_default = src_default;
60899
61203
 
60900
61204
  //#endregion
60901
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
61205
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
60902
61206
  /**
60903
61207
  * A module providing a generic service interface for spawning child processes.
60904
61208
  *
@@ -60944,7 +61248,7 @@ const makeHandle = (params) => Object.assign(Object.create(HandleProto), params)
60944
61248
  const ChildProcessSpawner = /* @__PURE__ */ Service$1("effect/process/ChildProcessSpawner");
60945
61249
 
60946
61250
  //#endregion
60947
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/process/ChildProcess.js
61251
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/process/ChildProcess.js
60948
61252
  const TypeId$20 = "~effect/unstable/process/ChildProcess";
60949
61253
  const Proto$7 = {
60950
61254
  ...PipeInspectableProto,
@@ -61281,7 +61585,7 @@ const concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || pre
61281
61585
  ];
61282
61586
 
61283
61587
  //#endregion
61284
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.6_effect@4.0.0-beta.6/node_modules/@effect/platform-node-shared/dist/internal/utils.js
61588
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.10_effect@4.0.0-beta.10/node_modules/@effect/platform-node-shared/dist/internal/utils.js
61285
61589
  /** @internal */
61286
61590
  const handleErrnoException = (module, method) => (err, [path]) => {
61287
61591
  let reason = "Unknown";
@@ -61319,7 +61623,7 @@ const handleErrnoException = (module, method) => (err, [path]) => {
61319
61623
  };
61320
61624
 
61321
61625
  //#endregion
61322
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.6_effect@4.0.0-beta.6/node_modules/@effect/platform-node-shared/dist/NodeSink.js
61626
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.10_effect@4.0.0-beta.10/node_modules/@effect/platform-node-shared/dist/NodeSink.js
61323
61627
  /**
61324
61628
  * @category constructors
61325
61629
  * @since 1.0.0
@@ -61358,7 +61662,7 @@ const pullIntoWritable = (options) => options.pull.pipe(flatMap$2((chunk) => {
61358
61662
  }) : identity);
61359
61663
 
61360
61664
  //#endregion
61361
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.6_effect@4.0.0-beta.6/node_modules/@effect/platform-node-shared/dist/NodeStream.js
61665
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.10_effect@4.0.0-beta.10/node_modules/@effect/platform-node-shared/dist/NodeStream.js
61362
61666
  /**
61363
61667
  * @since 1.0.0
61364
61668
  */
@@ -61490,7 +61794,7 @@ const readableToPullUnsafe = (options) => {
61490
61794
  const defaultOnError = (error) => new UnknownError(error);
61491
61795
 
61492
61796
  //#endregion
61493
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.6_effect@4.0.0-beta.6/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
61797
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.10_effect@4.0.0-beta.10/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
61494
61798
  const toError = (error) => error instanceof globalThis.Error ? error : new globalThis.Error(String(error));
61495
61799
  const toPlatformError = (method, error, command) => {
61496
61800
  const { commands } = flattenCommand(command);
@@ -61833,7 +62137,7 @@ const flattenCommand = (command) => {
61833
62137
  };
61834
62138
 
61835
62139
  //#endregion
61836
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/Cookies.js
62140
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/Cookies.js
61837
62141
  /**
61838
62142
  * @since 4.0.0
61839
62143
  */
@@ -62092,7 +62396,7 @@ function makeCookie(name, value, options) {
62092
62396
  if (options !== void 0) {
62093
62397
  if (options.domain !== void 0 && !fieldContentRegExp.test(options.domain)) return fail$8(CookiesError.fromReason("InvalidCookieDomain"));
62094
62398
  if (options.path !== void 0 && !fieldContentRegExp.test(options.path)) return fail$8(CookiesError.fromReason("InvalidCookiePath"));
62095
- if (options.maxAge !== void 0 && !isFinite$2(fromDurationInputUnsafe(options.maxAge))) return fail$8(CookiesError.fromReason("CookieInfinityMaxAge"));
62399
+ if (options.maxAge !== void 0 && !isFinite$2(fromInputUnsafe(options.maxAge))) return fail$8(CookiesError.fromReason("CookieInfinityMaxAge"));
62096
62400
  }
62097
62401
  return succeed$6(Object.assign(Object.create(CookieProto), {
62098
62402
  name,
@@ -62121,7 +62425,7 @@ function serializeCookie(self) {
62121
62425
  if (self.options === void 0) return str;
62122
62426
  const options = self.options;
62123
62427
  if (options.maxAge !== void 0) {
62124
- const maxAge = toSeconds(fromDurationInputUnsafe(options.maxAge));
62428
+ const maxAge = toSeconds(fromInputUnsafe(options.maxAge));
62125
62429
  str += "; Max-Age=" + Math.trunc(maxAge);
62126
62430
  }
62127
62431
  if (options.domain !== void 0) str += "; Domain=" + options.domain;
@@ -62223,7 +62527,7 @@ const tryDecodeURIComponent = (str) => {
62223
62527
  };
62224
62528
 
62225
62529
  //#endregion
62226
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/Headers.js
62530
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/Headers.js
62227
62531
  /**
62228
62532
  * @since 4.0.0
62229
62533
  */
@@ -62344,7 +62648,7 @@ const CurrentRedactedNames = /* @__PURE__ */ Reference("effect/Headers/CurrentRe
62344
62648
  ] });
62345
62649
 
62346
62650
  //#endregion
62347
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/HttpClientError.js
62651
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/HttpClientError.js
62348
62652
  /**
62349
62653
  * @since 4.0.0
62350
62654
  */
@@ -62483,7 +62787,7 @@ var EmptyBodyError = class extends TaggedError("EmptyBodyError") {
62483
62787
  };
62484
62788
 
62485
62789
  //#endregion
62486
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/UrlParams.js
62790
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/UrlParams.js
62487
62791
  /**
62488
62792
  * @since 4.0.0
62489
62793
  */
@@ -62535,7 +62839,7 @@ const fromInput = (input) => {
62535
62839
  return make$21(out);
62536
62840
  };
62537
62841
  const fromInputNested = (input) => {
62538
- const entries = Symbol.iterator in input ? fromIterable$4(input) : Object.entries(input);
62842
+ const entries = typeof input[Symbol.iterator] === "function" ? fromIterable$4(input) : Object.entries(input);
62539
62843
  const out = [];
62540
62844
  for (const [key, value] of entries) if (Array.isArray(value)) {
62541
62845
  for (let i = 0; i < value.length; i++) if (value[i] !== void 0) out.push([key, String(value[i])]);
@@ -62696,7 +63000,7 @@ const schemaRecord = /* @__PURE__ */ UrlParamsSchema.pipe(/* @__PURE__ */ decode
62696
63000
  })));
62697
63001
 
62698
63002
  //#endregion
62699
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/HttpBody.js
63003
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/HttpBody.js
62700
63004
  /**
62701
63005
  * @since 4.0.0
62702
63006
  */
@@ -62844,7 +63148,7 @@ var Stream = class extends Proto$3 {
62844
63148
  const stream$3 = (body, contentType, contentLength) => new Stream(body, contentType ?? "application/octet-stream", contentLength);
62845
63149
 
62846
63150
  //#endregion
62847
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/HttpClientRequest.js
63151
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/HttpClientRequest.js
62848
63152
  const TypeId$14 = "~effect/http/HttpClientRequest";
62849
63153
  const Proto$2 = {
62850
63154
  [TypeId$14]: TypeId$14,
@@ -62990,7 +63294,7 @@ const setBody = /* @__PURE__ */ dual(2, (self, body) => {
62990
63294
  const bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput(input))));
62991
63295
 
62992
63296
  //#endregion
62993
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
63297
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
62994
63298
  /**
62995
63299
  * @since 4.0.0
62996
63300
  */
@@ -63042,7 +63346,7 @@ const inspect = (self, that) => {
63042
63346
  };
63043
63347
 
63044
63348
  //#endregion
63045
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/HttpClientResponse.js
63349
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/HttpClientResponse.js
63046
63350
  /**
63047
63351
  * @since 4.0.0
63048
63352
  */
@@ -63166,7 +63470,7 @@ var WebHttpClientResponse = class extends Class$3 {
63166
63470
  };
63167
63471
 
63168
63472
  //#endregion
63169
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/HttpMethod.js
63473
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/HttpMethod.js
63170
63474
  /**
63171
63475
  * @since 4.0.0
63172
63476
  */
@@ -63177,11 +63481,12 @@ const allShort = [
63177
63481
  ["DELETE", "del"],
63178
63482
  ["PATCH", "patch"],
63179
63483
  ["HEAD", "head"],
63180
- ["OPTIONS", "options"]
63484
+ ["OPTIONS", "options"],
63485
+ ["TRACE", "trace"]
63181
63486
  ];
63182
63487
 
63183
63488
  //#endregion
63184
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/HttpTraceContext.js
63489
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/HttpTraceContext.js
63185
63490
  /**
63186
63491
  * @since 4.0.0
63187
63492
  */
@@ -63250,7 +63555,7 @@ const w3c = (headers) => {
63250
63555
  };
63251
63556
 
63252
63557
  //#endregion
63253
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/HttpClient.js
63558
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/HttpClient.js
63254
63559
  const TypeId$11 = "~effect/http/HttpClient";
63255
63560
  /**
63256
63561
  * @since 4.0.0
@@ -63361,7 +63666,7 @@ const mapRequest = /* @__PURE__ */ dual(2, (self, f) => makeWith(self.postproces
63361
63666
  /**
63362
63667
  * Retries common transient errors, such as rate limiting, timeouts or network issues.
63363
63668
  *
63364
- * Use `mode` to focus on retrying errors, transient responses, or both.
63669
+ * Use `retryOn` to focus on retrying errors, transient responses, or both.
63365
63670
  *
63366
63671
  * Specifying a `while` predicate allows you to consider other errors as
63367
63672
  * transient, and is ignored in "response-only" mode.
@@ -63371,15 +63676,15 @@ const mapRequest = /* @__PURE__ */ dual(2, (self, f) => makeWith(self.postproces
63371
63676
  */
63372
63677
  const retryTransient = /* @__PURE__ */ dual(2, (self, options) => {
63373
63678
  const isOnlySchedule = isSchedule(options);
63374
- const mode = isOnlySchedule ? "both" : options.mode ?? "both";
63679
+ const retryOn = isOnlySchedule ? "errors-and-responses" : options.retryOn ?? "errors-and-responses";
63375
63680
  const schedule = isOnlySchedule ? options : options.schedule;
63376
63681
  const passthroughSchedule = schedule && passthrough$2(schedule);
63377
63682
  const times = isOnlySchedule ? void 0 : options.times;
63378
- return transformResponse(self, flow(mode === "errors-only" ? identity : repeat({
63683
+ return transformResponse(self, flow(retryOn === "errors-only" ? identity : repeat({
63379
63684
  schedule: passthroughSchedule,
63380
63685
  times,
63381
63686
  while: isTransientResponse
63382
- }), mode === "response-only" ? identity : retry$1({
63687
+ }), retryOn === "response-only" ? identity : retry$1({
63383
63688
  while: isOnlySchedule || options.while === void 0 ? isTransientError : or(isTransientError, options.while),
63384
63689
  schedule,
63385
63690
  times
@@ -64093,7 +64398,7 @@ const httpMethods = [
64093
64398
  const make$17 = make$18;
64094
64399
 
64095
64400
  //#endregion
64096
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/Template.js
64401
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/Template.js
64097
64402
  /**
64098
64403
  * @since 4.0.0
64099
64404
  */
@@ -64143,7 +64448,7 @@ function isSuccess$1(u) {
64143
64448
  }
64144
64449
 
64145
64450
  //#endregion
64146
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/HttpServerResponse.js
64451
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/HttpServerResponse.js
64147
64452
  /**
64148
64453
  * @since 4.0.0
64149
64454
  */
@@ -64246,7 +64551,7 @@ const makeResponse = (options) => {
64246
64551
  };
64247
64552
 
64248
64553
  //#endregion
64249
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/HttpServerRespondable.js
64554
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/HttpServerRespondable.js
64250
64555
  /**
64251
64556
  * @since 4.0.0
64252
64557
  */
@@ -64284,7 +64589,7 @@ const toResponseOrElseDefect = (u, orElse) => {
64284
64589
  };
64285
64590
 
64286
64591
  //#endregion
64287
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/HttpServerError.js
64592
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/HttpServerError.js
64288
64593
  /**
64289
64594
  * @since 4.0.0
64290
64595
  */
@@ -64484,7 +64789,7 @@ const exitResponse = (exit) => {
64484
64789
  };
64485
64790
 
64486
64791
  //#endregion
64487
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/socket/Socket.js
64792
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/socket/Socket.js
64488
64793
  /**
64489
64794
  * @since 4.0.0
64490
64795
  * @category Type IDs
@@ -65620,7 +65925,7 @@ const defaultIsFile = defaultIsFile$1;
65620
65925
  const decodeField = decodeField$1;
65621
65926
 
65622
65927
  //#endregion
65623
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/Multipart.js
65928
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/Multipart.js
65624
65929
  /**
65625
65930
  * @since 4.0.0
65626
65931
  */
@@ -65876,7 +66181,7 @@ const MaxFileSize = /* @__PURE__ */ Reference("effect/http/Multipart/MaxFileSize
65876
66181
  const FieldMimeTypes = /* @__PURE__ */ Reference("effect/http/Multipart/FieldMimeTypes", { defaultValue: /* @__PURE__ */ constant(["application/json"]) });
65877
66182
 
65878
66183
  //#endregion
65879
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/HttpServerRequest.js
66184
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/HttpServerRequest.js
65880
66185
  /**
65881
66186
  * @since 4.0.0
65882
66187
  * @category Type IDs
@@ -66029,7 +66334,7 @@ const toURL = (self) => {
66029
66334
  };
66030
66335
 
66031
66336
  //#endregion
66032
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/HttpMiddleware.js
66337
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/HttpMiddleware.js
66033
66338
  /**
66034
66339
  * @since 4.0.0
66035
66340
  */
@@ -66038,17 +66343,14 @@ const toURL = (self) => {
66038
66343
  * @category constructors
66039
66344
  */
66040
66345
  const make$11 = (middleware) => middleware;
66041
- /**
66042
- * @since 4.0.0
66043
- * @category Logger
66044
- */
66045
- const LoggerDisabled = /* @__PURE__ */ Reference("effect/http/HttpMiddleware/LoggerDisabled", { defaultValue: constFalse });
66346
+ const loggerDisabledRequests = /* @__PURE__ */ new WeakSet();
66046
66347
  /**
66047
66348
  * @since 4.0.0
66048
66349
  * @category Logger
66049
66350
  */
66050
66351
  const withLoggerDisabled = (self) => withFiber((fiber) => {
66051
- fiber.setServices(add$3(fiber.services, LoggerDisabled, true));
66352
+ const request = getUnsafe$5(fiber.services, HttpServerRequest);
66353
+ loggerDisabledRequests.add(request);
66052
66354
  return self;
66053
66355
  });
66054
66356
  /**
@@ -66070,7 +66372,7 @@ const logger = /* @__PURE__ */ make$11((httpApp) => {
66070
66372
  return withFiber((fiber) => {
66071
66373
  const request = getUnsafe$5(fiber.services, HttpServerRequest);
66072
66374
  return withLogSpan(flatMap$2(exit(httpApp), (exit) => {
66073
- if (fiber.getRef(LoggerDisabled)) return exit;
66375
+ if (loggerDisabledRequests.has(request)) return exit;
66074
66376
  else if (exit._tag === "Failure") {
66075
66377
  const [response, cause] = causeResponseStripped(exit.cause);
66076
66378
  return andThen(annotateLogs(log$1(cause ?? "Sent HTTP Response"), {
@@ -66132,7 +66434,7 @@ const tracer = /* @__PURE__ */ make$11((httpApp) => withFiber((fiber) => {
66132
66434
  }));
66133
66435
 
66134
66436
  //#endregion
66135
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/HttpEffect.js
66437
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/HttpEffect.js
66136
66438
  /**
66137
66439
  * @since 4.0.0
66138
66440
  * @category combinators
@@ -66205,7 +66507,7 @@ const scoped = (effect) => withFiber((fiber) => {
66205
66507
  const PreResponseHandlers = /* @__PURE__ */ Reference("effect/http/HttpEffect/PreResponseHandlers", { defaultValue: () => void 0 });
66206
66508
 
66207
66509
  //#endregion
66208
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/Etag.js
66510
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/Etag.js
66209
66511
  /**
66210
66512
  * @since 4.0.0
66211
66513
  */
@@ -66269,7 +66571,7 @@ const layerWeak = /* @__PURE__ */ succeed$2(Generator)({
66269
66571
  });
66270
66572
 
66271
66573
  //#endregion
66272
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/HttpPlatform.js
66574
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/HttpPlatform.js
66273
66575
  /**
66274
66576
  * @since 4.0.0
66275
66577
  */
@@ -66336,7 +66638,7 @@ const layer$14 = /* @__PURE__ */ effect$1(HttpPlatform)(flatMap$2(FileSystem.asE
66336
66638
  }))).pipe(/* @__PURE__ */ provide$3(layerWeak));
66337
66639
 
66338
66640
  //#endregion
66339
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/HttpServer.js
66641
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/HttpServer.js
66340
66642
  /**
66341
66643
  * @since 4.0.0
66342
66644
  */
@@ -66399,7 +66701,7 @@ const makeTestClient = /* @__PURE__ */ gen(function* () {
66399
66701
  const layerTestClient = /* @__PURE__ */ effect$1(HttpClient)(makeTestClient);
66400
66702
 
66401
66703
  //#endregion
66402
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/HttpRouter.js
66704
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/HttpRouter.js
66403
66705
  /**
66404
66706
  * @since 4.0.0
66405
66707
  */
@@ -70266,7 +70568,7 @@ var import_websocket = /* @__PURE__ */ __toESM(require_websocket(), 1);
70266
70568
  var import_websocket_server = /* @__PURE__ */ __toESM(require_websocket_server(), 1);
70267
70569
 
70268
70570
  //#endregion
70269
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.6_effect@4.0.0-beta.6/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
70571
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.10_effect@4.0.0-beta.10/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
70270
70572
  /**
70271
70573
  * @since 1.0.0
70272
70574
  */
@@ -70616,7 +70918,7 @@ const makeFileSystem = /* @__PURE__ */ map$8(/* @__PURE__ */ serviceOption(Watch
70616
70918
  const layer$12 = /* @__PURE__ */ effect$1(FileSystem)(makeFileSystem);
70617
70919
 
70618
70920
  //#endregion
70619
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.6_effect@4.0.0-beta.6_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeFileSystem.js
70921
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.10_effect@4.0.0-beta.10_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeFileSystem.js
70620
70922
  /**
70621
70923
  * @since 1.0.0
70622
70924
  */
@@ -70627,7 +70929,7 @@ const layer$12 = /* @__PURE__ */ effect$1(FileSystem)(makeFileSystem);
70627
70929
  const layer$11 = layer$12;
70628
70930
 
70629
70931
  //#endregion
70630
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.6_effect@4.0.0-beta.6_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
70932
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.10_effect@4.0.0-beta.10_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
70631
70933
  /**
70632
70934
  * @since 1.0.0
70633
70935
  */
@@ -70698,7 +71000,7 @@ var NodeHttpIncomingMessage = class extends Class$3 {
70698
71000
  };
70699
71001
 
70700
71002
  //#endregion
70701
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/http/FetchHttpClient.js
71003
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/http/FetchHttpClient.js
70702
71004
  /**
70703
71005
  * @since 4.0.0
70704
71006
  */
@@ -70745,7 +71047,7 @@ const fetch$1 = /* @__PURE__ */ make$19((request, url, signal, fiber) => {
70745
71047
  const layer$10 = /* @__PURE__ */ layerMergedServices(/* @__PURE__ */ succeed$1(fetch$1));
70746
71048
 
70747
71049
  //#endregion
70748
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.6_effect@4.0.0-beta.6_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeHttpPlatform.js
71050
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.10_effect@4.0.0-beta.10_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeHttpPlatform.js
70749
71051
  /**
70750
71052
  * @since 1.0.0
70751
71053
  */
@@ -70869,7 +71171,7 @@ var FileStream = class extends Readable {
70869
71171
  };
70870
71172
 
70871
71173
  //#endregion
70872
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.6_effect@4.0.0-beta.6_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeMultipart.js
71174
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.10_effect@4.0.0-beta.10_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeMultipart.js
70873
71175
  /**
70874
71176
  * @since 1.0.0
70875
71177
  */
@@ -70965,7 +71267,7 @@ function convertError(cause) {
70965
71267
  }
70966
71268
 
70967
71269
  //#endregion
70968
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.6_effect@4.0.0-beta.6/node_modules/@effect/platform-node-shared/dist/NodePath.js
71270
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.10_effect@4.0.0-beta.10/node_modules/@effect/platform-node-shared/dist/NodePath.js
70969
71271
  /**
70970
71272
  * @since 1.0.0
70971
71273
  */
@@ -71017,7 +71319,7 @@ const layer$8 = /* @__PURE__ */ succeed$2(Path$1)({
71017
71319
  });
71018
71320
 
71019
71321
  //#endregion
71020
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.6_effect@4.0.0-beta.6_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodePath.js
71322
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.10_effect@4.0.0-beta.10_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodePath.js
71021
71323
  /**
71022
71324
  * @since 1.0.0
71023
71325
  */
@@ -71038,7 +71340,7 @@ const layerPosix = layerPosix$1;
71038
71340
  const layerWin32 = layerWin32$1;
71039
71341
 
71040
71342
  //#endregion
71041
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.6_effect@4.0.0-beta.6/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
71343
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.10_effect@4.0.0-beta.10/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
71042
71344
  /**
71043
71345
  * @since 1.0.0
71044
71346
  */
@@ -71078,7 +71380,7 @@ const layer$6 = /* @__PURE__ */ succeed$2(Stdio, /* @__PURE__ */ make$25({
71078
71380
  }));
71079
71381
 
71080
71382
  //#endregion
71081
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.6_effect@4.0.0-beta.6_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeStdio.js
71383
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.10_effect@4.0.0-beta.10_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeStdio.js
71082
71384
  /**
71083
71385
  * @since 1.0.0
71084
71386
  */
@@ -71089,7 +71391,7 @@ const layer$6 = /* @__PURE__ */ succeed$2(Stdio, /* @__PURE__ */ make$25({
71089
71391
  const layer$5 = layer$6;
71090
71392
 
71091
71393
  //#endregion
71092
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.6_effect@4.0.0-beta.6/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
71394
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.10_effect@4.0.0-beta.10/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
71093
71395
  /**
71094
71396
  * @since 1.0.0
71095
71397
  * @category constructors
@@ -71160,7 +71462,7 @@ function defaultShouldQuit(input) {
71160
71462
  }
71161
71463
 
71162
71464
  //#endregion
71163
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.6_effect@4.0.0-beta.6_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeTerminal.js
71465
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.10_effect@4.0.0-beta.10_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeTerminal.js
71164
71466
  /**
71165
71467
  * @since 1.0.0
71166
71468
  */
@@ -71176,7 +71478,7 @@ const make$4 = make$5;
71176
71478
  const layer$3 = layer$4;
71177
71479
 
71178
71480
  //#endregion
71179
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.6_effect@4.0.0-beta.6_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeServices.js
71481
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.10_effect@4.0.0-beta.10_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeServices.js
71180
71482
  /**
71181
71483
  * @since 1.0.0
71182
71484
  * @category layer
@@ -71184,7 +71486,7 @@ const layer$3 = layer$4;
71184
71486
  const layer$2 = /* @__PURE__ */ provideMerge(layer$16, /* @__PURE__ */ mergeAll(layer$11, layer$7, layer$5, layer$3));
71185
71487
 
71186
71488
  //#endregion
71187
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.6_effect@4.0.0-beta.6_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeHttpServer.js
71489
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.10_effect@4.0.0-beta.10_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeHttpServer.js
71188
71490
  /**
71189
71491
  * @since 1.0.0
71190
71492
  */
@@ -71471,7 +71773,7 @@ const handleCause = (nodeResponse, originalResponse) => (originalCause) => flatM
71471
71773
  });
71472
71774
 
71473
71775
  //#endregion
71474
- //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.6_effect@4.0.0-beta.6/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
71776
+ //#region node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.10_effect@4.0.0-beta.10/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
71475
71777
  /**
71476
71778
  * @since 1.0.0
71477
71779
  * @category Run main
@@ -71498,7 +71800,7 @@ const runMain$1 = /* @__PURE__ */ makeRunMain(({ fiber, teardown }) => {
71498
71800
  });
71499
71801
 
71500
71802
  //#endregion
71501
- //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.6_effect@4.0.0-beta.6_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeRuntime.js
71803
+ //#region node_modules/.pnpm/@effect+platform-node@4.0.0-beta.10_effect@4.0.0-beta.10_ioredis@5.9.2/node_modules/@effect/platform-node/dist/NodeRuntime.js
71502
71804
  /**
71503
71805
  * @since 1.0.0
71504
71806
  */
@@ -71532,7 +71834,7 @@ const runMain$1 = /* @__PURE__ */ makeRunMain(({ fiber, teardown }) => {
71532
71834
  const runMain = runMain$1;
71533
71835
 
71534
71836
  //#endregion
71535
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/persistence/PersistedCache.js
71837
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/persistence/PersistedCache.js
71536
71838
  /**
71537
71839
  * @since 4.0.0
71538
71840
  */
@@ -71893,7 +72195,7 @@ const CliAgentFromId = Literals(allCliAgents.map((agent) => agent.id)).pipe(deco
71893
72195
  })));
71894
72196
 
71895
72197
  //#endregion
71896
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/reactivity/AsyncResult.js
72198
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/reactivity/AsyncResult.js
71897
72199
  /**
71898
72200
  * @since 4.0.0
71899
72201
  */
@@ -72056,7 +72358,7 @@ const toExit = (self) => {
72056
72358
  };
72057
72359
 
72058
72360
  //#endregion
72059
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/reactivity/AtomRegistry.js
72361
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/reactivity/AtomRegistry.js
72060
72362
  /**
72061
72363
  * @since 4.0.0
72062
72364
  */
@@ -72644,7 +72946,7 @@ function batchRebuildNode(node) {
72644
72946
  }
72645
72947
 
72646
72948
  //#endregion
72647
- //#region node_modules/.pnpm/effect@4.0.0-beta.6/node_modules/effect/dist/unstable/reactivity/Atom.js
72949
+ //#region node_modules/.pnpm/effect@4.0.0-beta.10/node_modules/effect/dist/unstable/reactivity/Atom.js
72648
72950
  /**
72649
72951
  * @since 4.0.0
72650
72952
  */
@@ -72663,7 +72965,7 @@ const WritableTypeId = "~effect/reactivity/Atom/Writable";
72663
72965
  * @category combinators
72664
72966
  */
72665
72967
  const setIdleTTL = /* @__PURE__ */ dual(2, (self, durationInput) => {
72666
- const duration = fromDurationInputUnsafe(durationInput);
72968
+ const duration = fromInputUnsafe(durationInput);
72667
72969
  const isFinite = isFinite$2(duration);
72668
72970
  return Object.assign(Object.create(Object.getPrototypeOf(self)), {
72669
72971
  ...self,
@@ -73111,7 +73413,7 @@ const transform = /* @__PURE__ */ dual(2, (self, f) => isWritable(self) ? writab
73111
73413
  * @category combinators
73112
73414
  */
73113
73415
  const withRefresh = /* @__PURE__ */ dual(2, (self, duration) => {
73114
- const millis = toMillis(fromDurationInputUnsafe(duration));
73416
+ const millis = toMillis(fromInputUnsafe(duration));
73115
73417
  return transform(self, function(get) {
73116
73418
  const handle = setTimeout(() => get.refresh(self), millis);
73117
73419
  get.addFinalizer(() => clearTimeout(handle));
@@ -157026,12 +157328,11 @@ var ReviewComment = class extends Class$1("ReviewComment")({
157026
157328
  var NodeComments = class extends Class$1("NodeComments")({ nodes: Array$1(ReviewComment) }) {};
157027
157329
  var ReviewThreadsNode = class extends Class$1("ReviewThreadsNode")({
157028
157330
  isCollapsed: Boolean$2,
157029
- isOutdated: Boolean$2,
157030
157331
  isResolved: Boolean$2,
157031
157332
  comments: NodeComments
157032
157333
  }) {
157033
157334
  commentNodes = this.comments.nodes;
157034
- shouldDisplayThread = !this.isCollapsed && !this.isOutdated;
157335
+ shouldDisplayThread = !this.isCollapsed && !this.isResolved;
157035
157336
  };
157036
157337
  var ReviewThreads = class extends Class$1("ReviewThreads")({ nodes: Array$1(ReviewThreadsNode) }) {};
157037
157338
 
@@ -157135,7 +157436,6 @@ query FetchPRComments($owner: String!, $repo: String!, $pr: Int!) {
157135
157436
  reviewThreads(first: 100) {
157136
157437
  nodes {
157137
157438
  isCollapsed
157138
- isOutdated
157139
157439
  isResolved
157140
157440
  comments(first: 100) {
157141
157441
  nodes {
@@ -158153,7 +158453,7 @@ const makeExecHelpers = fnUntraced(function* (options) {
158153
158453
  const now = nowUnsafe();
158154
158454
  const deadline = addDuration(lastOutputAt, options.stallTimeout);
158155
158455
  if (isLessThan$2(deadline, now)) return fail$4(new RunnerStalled());
158156
- const timeUntilDeadline = distanceDuration(deadline, now);
158456
+ const timeUntilDeadline = distance(deadline, now);
158157
158457
  return flatMap$2(sleep(timeUntilDeadline), loop);
158158
158458
  });
158159
158459
  const handle = yield* provide(command.asEffect());
@@ -158972,7 +159272,7 @@ const commandSource = make$34("source").pipe(withDescription("Select the issue s
158972
159272
 
158973
159273
  //#endregion
158974
159274
  //#region package.json
158975
- var version = "0.3.28";
159275
+ var version = "0.3.30";
158976
159276
 
158977
159277
  //#endregion
158978
159278
  //#region src/commands/projects/ls.ts