@opencode-ai/cli-windows-arm64 0.0.0-beta-202606050000

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/bin/chunk-047brskp.js.map +10 -0
  2. package/bin/chunk-087s56gx.js.map +11 -0
  3. package/bin/chunk-0fd7e98q.js.map +10 -0
  4. package/bin/chunk-0fxqxahr.js.map +23 -0
  5. package/bin/chunk-0m0ysqkf.js.map +10 -0
  6. package/bin/chunk-0twas8m4.js.map +10 -0
  7. package/bin/chunk-0w8srq86.js.map +9 -0
  8. package/bin/chunk-0zaxan0f.js.map +10 -0
  9. package/bin/chunk-10g9mzpr.js.map +10 -0
  10. package/bin/chunk-1ks336sp.js.map +10 -0
  11. package/bin/chunk-1m5frevr.js.map +11 -0
  12. package/bin/chunk-1qafz13b.js.map +10 -0
  13. package/bin/chunk-1v1eg9ea.js.map +10 -0
  14. package/bin/chunk-1xcexrst.js.map +10 -0
  15. package/bin/chunk-1zdchkt5.js.map +19 -0
  16. package/bin/chunk-24ytprtt.js.map +15 -0
  17. package/bin/chunk-2gdcvx81.js.map +576 -0
  18. package/bin/chunk-37mqnge5.js.map +16 -0
  19. package/bin/chunk-3h1gycas.js.map +167 -0
  20. package/bin/chunk-3n2hpq8t.js.map +73 -0
  21. package/bin/chunk-3n6fe6h1.js.map +10 -0
  22. package/bin/chunk-3s93j8bp.js.map +10 -0
  23. package/bin/chunk-4kkfbnqc.js.map +10 -0
  24. package/bin/chunk-4q3zgnq0.js.map +51 -0
  25. package/bin/chunk-58crwv73.js.map +10 -0
  26. package/bin/chunk-59ag69w3.js.map +10 -0
  27. package/bin/chunk-5czy6c2t.js.map +10 -0
  28. package/bin/chunk-5vshf5d9.js.map +17 -0
  29. package/bin/chunk-61ex0ysa.js.map +10 -0
  30. package/bin/chunk-6bm18v4w.js.map +10 -0
  31. package/bin/chunk-6c8zad0q.js.map +10 -0
  32. package/bin/chunk-6m6559kj.js.map +10 -0
  33. package/bin/chunk-6t6j2syw.js.map +10 -0
  34. package/bin/chunk-753zwk10.js.map +10 -0
  35. package/bin/chunk-778262wk.js.map +17 -0
  36. package/bin/chunk-77cxfwjv.js.map +20 -0
  37. package/bin/chunk-78g08k7w.js.map +10 -0
  38. package/bin/chunk-7e33eexw.js.map +10 -0
  39. package/bin/chunk-7h3thzht.js.map +10 -0
  40. package/bin/chunk-7p88mnrp.js.map +10 -0
  41. package/bin/chunk-8g9cx71s.js.map +10 -0
  42. package/bin/chunk-8m4e6jm9.js.map +37 -0
  43. package/bin/chunk-9777kknm.js.map +10 -0
  44. package/bin/chunk-9av9p5be.js.map +10 -0
  45. package/bin/chunk-9pxszgex.js.map +10 -0
  46. package/bin/chunk-9rp9xyz4.js.map +11 -0
  47. package/bin/chunk-9t3ktng1.js.map +10 -0
  48. package/bin/chunk-9y4bxd9z.js.map +10 -0
  49. package/bin/chunk-a0wmwbtm.js.map +10 -0
  50. package/bin/chunk-addegf2c.js.map +56 -0
  51. package/bin/chunk-aqr51qaz.js.map +12 -0
  52. package/bin/chunk-ar99dprb.js.map +9 -0
  53. package/bin/chunk-aspg97y0.js.map +13 -0
  54. package/bin/chunk-b16pmd6c.js.map +10 -0
  55. package/bin/chunk-bt4a2b38.js.map +10 -0
  56. package/bin/chunk-bvgxtvy5.js.map +10 -0
  57. package/bin/chunk-c405mav2.js.map +10 -0
  58. package/bin/chunk-c8jy587n.js.map +9 -0
  59. package/bin/chunk-cq3s2bc3.js.map +11 -0
  60. package/bin/chunk-cxavw1f9.js.map +27 -0
  61. package/bin/chunk-d2d2qyc8.js.map +10 -0
  62. package/bin/chunk-d6q844vr.js.map +10 -0
  63. package/bin/chunk-d7en3gra.js.map +20 -0
  64. package/bin/chunk-de8e7pt7.js.map +10 -0
  65. package/bin/chunk-en70h511.js.map +11 -0
  66. package/bin/chunk-f1dc53f5.js.map +20 -0
  67. package/bin/chunk-f5tfppa3.js.map +9 -0
  68. package/bin/chunk-fr19nwzq.js.map +9 -0
  69. package/bin/chunk-g2hzewm5.js.map +15 -0
  70. package/bin/chunk-g75pjf1s.js.map +10 -0
  71. package/bin/chunk-h6jav6rr.js.map +9 -0
  72. package/bin/chunk-h77hc9q0.js.map +9 -0
  73. package/bin/chunk-hcrstn1a.js.map +131 -0
  74. package/bin/chunk-hhes0fb4.js.map +10 -0
  75. package/bin/chunk-j49r3r0h.js.map +50 -0
  76. package/bin/chunk-j96y437a.js.map +9 -0
  77. package/bin/chunk-jen69edq.js.map +33 -0
  78. package/bin/chunk-jscajwnx.js.map +9 -0
  79. package/bin/chunk-jwpekcgc.js.map +10 -0
  80. package/bin/chunk-k12sqt5c.js.map +10 -0
  81. package/bin/chunk-kbksyj8q.js.map +81 -0
  82. package/bin/chunk-m31nxbnx.js.map +10 -0
  83. package/bin/chunk-m5rn1t9e.js.map +10 -0
  84. package/bin/chunk-m6jr02jt.js.map +10 -0
  85. package/bin/chunk-mb38k8t0.js.map +10 -0
  86. package/bin/chunk-mjtn9njj.js.map +13 -0
  87. package/bin/chunk-mww4n4f4.js.map +13 -0
  88. package/bin/chunk-mxmh510w.js.map +9 -0
  89. package/bin/chunk-n4bc2p29.js.map +9 -0
  90. package/bin/chunk-n5f9tqke.js.map +10 -0
  91. package/bin/chunk-ny339t5n.js.map +9 -0
  92. package/bin/chunk-nyhw1wge.js.map +9 -0
  93. package/bin/chunk-p7vb6q61.js.map +10 -0
  94. package/bin/chunk-p9fsk8xk.js.map +28 -0
  95. package/bin/chunk-ph8xj7gz.js.map +9 -0
  96. package/bin/chunk-ppjn2gwr.js.map +20 -0
  97. package/bin/chunk-pvt3zcpb.js.map +10 -0
  98. package/bin/chunk-pzcbqccc.js.map +10 -0
  99. package/bin/chunk-q2z8hcc9.js.map +11 -0
  100. package/bin/chunk-q8d3f8vv.js.map +10 -0
  101. package/bin/chunk-qsj8gt5c.js.map +10 -0
  102. package/bin/chunk-qt4k35pb.js.map +9 -0
  103. package/bin/chunk-qxp1n90a.js.map +10 -0
  104. package/bin/chunk-r4xfgh1d.js.map +10 -0
  105. package/bin/chunk-rcbp13zr.js.map +10 -0
  106. package/bin/chunk-rg3jde5f.js.map +9 -0
  107. package/bin/chunk-rt3p96q3.js.map +193 -0
  108. package/bin/chunk-s6p78e64.js.map +10 -0
  109. package/bin/chunk-sfvtysgk.js.map +11 -0
  110. package/bin/chunk-sy53xwps.js.map +388 -0
  111. package/bin/chunk-tb0f4dfz.js.map +11 -0
  112. package/bin/chunk-tjaapjgk.js.map +10 -0
  113. package/bin/chunk-tp53m8fs.js.map +10 -0
  114. package/bin/chunk-tx4d8n2c.js.map +10 -0
  115. package/bin/chunk-v4k8v6ad.js.map +10 -0
  116. package/bin/chunk-v5t5sfsa.js.map +13 -0
  117. package/bin/chunk-v6m6x911.js.map +11 -0
  118. package/bin/chunk-vht6r6mg.js.map +10 -0
  119. package/bin/chunk-vn7d3q1a.js.map +13 -0
  120. package/bin/chunk-vqn23nvj.js.map +37 -0
  121. package/bin/chunk-wsc1m3ya.js.map +10 -0
  122. package/bin/chunk-wzt86v8e.js.map +10 -0
  123. package/bin/chunk-x0j6zt83.js.map +10 -0
  124. package/bin/chunk-xnyqakct.js.map +10 -0
  125. package/bin/chunk-xtwd1g04.js.map +10 -0
  126. package/bin/chunk-y1y94hd9.js.map +113 -0
  127. package/bin/chunk-yj84ce63.js.map +10 -0
  128. package/bin/chunk-yjd4gfrw.js.map +10 -0
  129. package/bin/chunk-ymbn2qrb.js.map +11 -0
  130. package/bin/chunk-yrctbw5z.js.map +10 -0
  131. package/bin/chunk-z24btbc0.js.map +9 -0
  132. package/bin/chunk-z6004x1f.js.map +10 -0
  133. package/bin/chunk-z8txj8wr.js.map +10 -0
  134. package/bin/chunk-z9nnfhja.js.map +10 -0
  135. package/bin/index.js.map +12 -0
  136. package/bin/lildax.exe +0 -0
  137. package/package.json +15 -0
@@ -0,0 +1,20 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../node_modules/.bun/ms@2.1.3/node_modules/ms/index.js", "../../node_modules/.bun/debug@4.4.3+759ce506b1ed1a42/node_modules/debug/src/common.js", "../../node_modules/.bun/debug@4.4.3+759ce506b1ed1a42/node_modules/debug/src/browser.js", "../../node_modules/.bun/has-flag@4.0.0/node_modules/has-flag/index.js", "../../node_modules/.bun/supports-color@7.2.0/node_modules/supports-color/index.js", "../../node_modules/.bun/debug@4.4.3+759ce506b1ed1a42/node_modules/debug/src/node.js", "../../node_modules/.bun/debug@4.4.3+759ce506b1ed1a42/node_modules/debug/src/index.js", "../../node_modules/.bun/agent-base@7.1.4/node_modules/agent-base/dist/helpers.js", "../../node_modules/.bun/agent-base@7.1.4/node_modules/agent-base/dist/index.js", "../../node_modules/.bun/https-proxy-agent@7.0.6+759ce506b1ed1a42/node_modules/https-proxy-agent/dist/parse-proxy-response.js", "../../node_modules/.bun/https-proxy-agent@7.0.6+759ce506b1ed1a42/node_modules/https-proxy-agent/dist/index.js"],
4
+ "sourcesContent": [
5
+ "/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n",
6
+ "\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '')\n\t\t\t.trim()\n\t\t\t.replace(/\\s+/g, ',')\n\t\t\t.split(',')\n\t\t\t.filter(Boolean);\n\n\t\tfor (const ns of split) {\n\t\t\tif (ns[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(ns.slice(1));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(ns);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Checks if the given string matches a namespace template, honoring\n\t * asterisks as wildcards.\n\t *\n\t * @param {String} search\n\t * @param {String} template\n\t * @return {Boolean}\n\t */\n\tfunction matchesTemplate(search, template) {\n\t\tlet searchIndex = 0;\n\t\tlet templateIndex = 0;\n\t\tlet starIndex = -1;\n\t\tlet matchIndex = 0;\n\n\t\twhile (searchIndex < search.length) {\n\t\t\tif (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {\n\t\t\t\t// Match character or proceed with wildcard\n\t\t\t\tif (template[templateIndex] === '*') {\n\t\t\t\t\tstarIndex = templateIndex;\n\t\t\t\t\tmatchIndex = searchIndex;\n\t\t\t\t\ttemplateIndex++; // Skip the '*'\n\t\t\t\t} else {\n\t\t\t\t\tsearchIndex++;\n\t\t\t\t\ttemplateIndex++;\n\t\t\t\t}\n\t\t\t} else if (starIndex !== -1) { // eslint-disable-line no-negated-condition\n\t\t\t\t// Backtrack to the last '*' and try to match more characters\n\t\t\t\ttemplateIndex = starIndex + 1;\n\t\t\t\tmatchIndex++;\n\t\t\t\tsearchIndex = matchIndex;\n\t\t\t} else {\n\t\t\t\treturn false; // No match\n\t\t\t}\n\t\t}\n\n\t\t// Handle trailing '*' in template\n\t\twhile (templateIndex < template.length && template[templateIndex] === '*') {\n\t\t\ttemplateIndex++;\n\t\t}\n\n\t\treturn templateIndex === template.length;\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names,\n\t\t\t...createDebug.skips.map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tfor (const skip of createDebug.skips) {\n\t\t\tif (matchesTemplate(name, skip)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (const ns of createDebug.names) {\n\t\t\tif (matchesTemplate(name, ns)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n",
7
+ "/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\tlet m;\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\t// eslint-disable-next-line no-return-assign\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/)) && parseInt(m[1], 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n",
8
+ "'use strict';\n\nmodule.exports = (flag, argv = process.argv) => {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n};\n",
9
+ "'use strict';\nconst os = require('os');\nconst tty = require('tty');\nconst hasFlag = require('has-flag');\n\nconst {env} = process;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false') ||\n\thasFlag('color=never')) {\n\tforceColor = 0;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = 1;\n}\n\nif ('FORCE_COLOR' in env) {\n\tif (env.FORCE_COLOR === 'true') {\n\t\tforceColor = 1;\n\t} else if (env.FORCE_COLOR === 'false') {\n\t\tforceColor = 0;\n\t} else {\n\t\tforceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);\n\t}\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(haveStream, streamIsTTY) {\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (hasFlag('color=16m') ||\n\t\thasFlag('color=full') ||\n\t\thasFlag('color=truecolor')) {\n\t\treturn 3;\n\t}\n\n\tif (hasFlag('color=256')) {\n\t\treturn 2;\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream, stream && stream.isTTY);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: translateLevel(supportsColor(true, tty.isatty(1))),\n\tstderr: translateLevel(supportsColor(true, tty.isatty(2)))\n};\n",
10
+ "/**\n * Module dependencies.\n */\n\nconst tty = require('tty');\nconst util = require('util');\n\n/**\n * This is the Node.js implementation of `debug()`.\n */\n\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.destroy = util.deprecate(\n\t() => {},\n\t'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'\n);\n\n/**\n * Colors.\n */\n\nexports.colors = [6, 2, 3, 4, 5, 1];\n\ntry {\n\t// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)\n\t// eslint-disable-next-line import/no-extraneous-dependencies\n\tconst supportsColor = require('supports-color');\n\n\tif (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {\n\t\texports.colors = [\n\t\t\t20,\n\t\t\t21,\n\t\t\t26,\n\t\t\t27,\n\t\t\t32,\n\t\t\t33,\n\t\t\t38,\n\t\t\t39,\n\t\t\t40,\n\t\t\t41,\n\t\t\t42,\n\t\t\t43,\n\t\t\t44,\n\t\t\t45,\n\t\t\t56,\n\t\t\t57,\n\t\t\t62,\n\t\t\t63,\n\t\t\t68,\n\t\t\t69,\n\t\t\t74,\n\t\t\t75,\n\t\t\t76,\n\t\t\t77,\n\t\t\t78,\n\t\t\t79,\n\t\t\t80,\n\t\t\t81,\n\t\t\t92,\n\t\t\t93,\n\t\t\t98,\n\t\t\t99,\n\t\t\t112,\n\t\t\t113,\n\t\t\t128,\n\t\t\t129,\n\t\t\t134,\n\t\t\t135,\n\t\t\t148,\n\t\t\t149,\n\t\t\t160,\n\t\t\t161,\n\t\t\t162,\n\t\t\t163,\n\t\t\t164,\n\t\t\t165,\n\t\t\t166,\n\t\t\t167,\n\t\t\t168,\n\t\t\t169,\n\t\t\t170,\n\t\t\t171,\n\t\t\t172,\n\t\t\t173,\n\t\t\t178,\n\t\t\t179,\n\t\t\t184,\n\t\t\t185,\n\t\t\t196,\n\t\t\t197,\n\t\t\t198,\n\t\t\t199,\n\t\t\t200,\n\t\t\t201,\n\t\t\t202,\n\t\t\t203,\n\t\t\t204,\n\t\t\t205,\n\t\t\t206,\n\t\t\t207,\n\t\t\t208,\n\t\t\t209,\n\t\t\t214,\n\t\t\t215,\n\t\t\t220,\n\t\t\t221\n\t\t];\n\t}\n} catch (error) {\n\t// Swallow - we only care if `supports-color` is available; it doesn't have to be.\n}\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\nexports.inspectOpts = Object.keys(process.env).filter(key => {\n\treturn /^debug_/i.test(key);\n}).reduce((obj, key) => {\n\t// Camel-case\n\tconst prop = key\n\t\t.substring(6)\n\t\t.toLowerCase()\n\t\t.replace(/_([a-z])/g, (_, k) => {\n\t\t\treturn k.toUpperCase();\n\t\t});\n\n\t// Coerce string value into JS value\n\tlet val = process.env[key];\n\tif (/^(yes|on|true|enabled)$/i.test(val)) {\n\t\tval = true;\n\t} else if (/^(no|off|false|disabled)$/i.test(val)) {\n\t\tval = false;\n\t} else if (val === 'null') {\n\t\tval = null;\n\t} else {\n\t\tval = Number(val);\n\t}\n\n\tobj[prop] = val;\n\treturn obj;\n}, {});\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n\treturn 'colors' in exports.inspectOpts ?\n\t\tBoolean(exports.inspectOpts.colors) :\n\t\ttty.isatty(process.stderr.fd);\n}\n\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\tconst {namespace: name, useColors} = this;\n\n\tif (useColors) {\n\t\tconst c = this.color;\n\t\tconst colorCode = '\\u001B[3' + (c < 8 ? c : '8;5;' + c);\n\t\tconst prefix = ` ${colorCode};1m${name} \\u001B[0m`;\n\n\t\targs[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n\t\targs.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\\u001B[0m');\n\t} else {\n\t\targs[0] = getDate() + name + ' ' + args[0];\n\t}\n}\n\nfunction getDate() {\n\tif (exports.inspectOpts.hideDate) {\n\t\treturn '';\n\t}\n\treturn new Date().toISOString() + ' ';\n}\n\n/**\n * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.\n */\n\nfunction log(...args) {\n\treturn process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\\n');\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\tif (namespaces) {\n\t\tprocess.env.DEBUG = namespaces;\n\t} else {\n\t\t// If you set a process.env field to null or undefined, it gets cast to the\n\t\t// string 'null' or 'undefined'. Just delete instead.\n\t\tdelete process.env.DEBUG;\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n\treturn process.env.DEBUG;\n}\n\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\nfunction init(debug) {\n\tdebug.inspectOpts = {};\n\n\tconst keys = Object.keys(exports.inspectOpts);\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tdebug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nformatters.o = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts)\n\t\t.split('\\n')\n\t\t.map(str => str.trim())\n\t\t.join(' ');\n};\n\n/**\n * Map %O to `util.inspect()`, allowing multiple lines if needed.\n */\n\nformatters.O = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts);\n};\n",
11
+ "/**\n * Detect Electron renderer / nwjs process, which is node, but we should\n * treat as a browser.\n */\n\nif (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {\n\tmodule.exports = require('./browser.js');\n} else {\n\tmodule.exports = require('./node.js');\n}\n",
12
+ "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.req = exports.json = exports.toBuffer = void 0;\nconst http = __importStar(require(\"http\"));\nconst https = __importStar(require(\"https\"));\nasync function toBuffer(stream) {\n let length = 0;\n const chunks = [];\n for await (const chunk of stream) {\n length += chunk.length;\n chunks.push(chunk);\n }\n return Buffer.concat(chunks, length);\n}\nexports.toBuffer = toBuffer;\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nasync function json(stream) {\n const buf = await toBuffer(stream);\n const str = buf.toString('utf8');\n try {\n return JSON.parse(str);\n }\n catch (_err) {\n const err = _err;\n err.message += ` (input: ${str})`;\n throw err;\n }\n}\nexports.json = json;\nfunction req(url, opts = {}) {\n const href = typeof url === 'string' ? url : url.href;\n const req = (href.startsWith('https:') ? https : http).request(url, opts);\n const promise = new Promise((resolve, reject) => {\n req\n .once('response', resolve)\n .once('error', reject)\n .end();\n });\n req.then = promise.then.bind(promise);\n return req;\n}\nexports.req = req;\n//# sourceMappingURL=helpers.js.map",
13
+ "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Agent = void 0;\nconst net = __importStar(require(\"net\"));\nconst http = __importStar(require(\"http\"));\nconst https_1 = require(\"https\");\n__exportStar(require(\"./helpers\"), exports);\nconst INTERNAL = Symbol('AgentBaseInternalState');\nclass Agent extends http.Agent {\n constructor(opts) {\n super(opts);\n this[INTERNAL] = {};\n }\n /**\n * Determine whether this is an `http` or `https` request.\n */\n isSecureEndpoint(options) {\n if (options) {\n // First check the `secureEndpoint` property explicitly, since this\n // means that a parent `Agent` is \"passing through\" to this instance.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (typeof options.secureEndpoint === 'boolean') {\n return options.secureEndpoint;\n }\n // If no explicit `secure` endpoint, check if `protocol` property is\n // set. This will usually be the case since using a full string URL\n // or `URL` instance should be the most common usage.\n if (typeof options.protocol === 'string') {\n return options.protocol === 'https:';\n }\n }\n // Finally, if no `protocol` property was set, then fall back to\n // checking the stack trace of the current call stack, and try to\n // detect the \"https\" module.\n const { stack } = new Error();\n if (typeof stack !== 'string')\n return false;\n return stack\n .split('\\n')\n .some((l) => l.indexOf('(https.js:') !== -1 ||\n l.indexOf('node:https:') !== -1);\n }\n // In order to support async signatures in `connect()` and Node's native\n // connection pooling in `http.Agent`, the array of sockets for each origin\n // has to be updated synchronously. This is so the length of the array is\n // accurate when `addRequest()` is next called. We achieve this by creating a\n // fake socket and adding it to `sockets[origin]` and incrementing\n // `totalSocketCount`.\n incrementSockets(name) {\n // If `maxSockets` and `maxTotalSockets` are both Infinity then there is no\n // need to create a fake socket because Node.js native connection pooling\n // will never be invoked.\n if (this.maxSockets === Infinity && this.maxTotalSockets === Infinity) {\n return null;\n }\n // All instances of `sockets` are expected TypeScript errors. The\n // alternative is to add it as a private property of this class but that\n // will break TypeScript subclassing.\n if (!this.sockets[name]) {\n // @ts-expect-error `sockets` is readonly in `@types/node`\n this.sockets[name] = [];\n }\n const fakeSocket = new net.Socket({ writable: false });\n this.sockets[name].push(fakeSocket);\n // @ts-expect-error `totalSocketCount` isn't defined in `@types/node`\n this.totalSocketCount++;\n return fakeSocket;\n }\n decrementSockets(name, socket) {\n if (!this.sockets[name] || socket === null) {\n return;\n }\n const sockets = this.sockets[name];\n const index = sockets.indexOf(socket);\n if (index !== -1) {\n sockets.splice(index, 1);\n // @ts-expect-error `totalSocketCount` isn't defined in `@types/node`\n this.totalSocketCount--;\n if (sockets.length === 0) {\n // @ts-expect-error `sockets` is readonly in `@types/node`\n delete this.sockets[name];\n }\n }\n }\n // In order to properly update the socket pool, we need to call `getName()` on\n // the core `https.Agent` if it is a secureEndpoint.\n getName(options) {\n const secureEndpoint = this.isSecureEndpoint(options);\n if (secureEndpoint) {\n // @ts-expect-error `getName()` isn't defined in `@types/node`\n return https_1.Agent.prototype.getName.call(this, options);\n }\n // @ts-expect-error `getName()` isn't defined in `@types/node`\n return super.getName(options);\n }\n createSocket(req, options, cb) {\n const connectOpts = {\n ...options,\n secureEndpoint: this.isSecureEndpoint(options),\n };\n const name = this.getName(connectOpts);\n const fakeSocket = this.incrementSockets(name);\n Promise.resolve()\n .then(() => this.connect(req, connectOpts))\n .then((socket) => {\n this.decrementSockets(name, fakeSocket);\n if (socket instanceof http.Agent) {\n try {\n // @ts-expect-error `addRequest()` isn't defined in `@types/node`\n return socket.addRequest(req, connectOpts);\n }\n catch (err) {\n return cb(err);\n }\n }\n this[INTERNAL].currentSocket = socket;\n // @ts-expect-error `createSocket()` isn't defined in `@types/node`\n super.createSocket(req, options, cb);\n }, (err) => {\n this.decrementSockets(name, fakeSocket);\n cb(err);\n });\n }\n createConnection() {\n const socket = this[INTERNAL].currentSocket;\n this[INTERNAL].currentSocket = undefined;\n if (!socket) {\n throw new Error('No socket was returned in the `connect()` function');\n }\n return socket;\n }\n get defaultPort() {\n return (this[INTERNAL].defaultPort ??\n (this.protocol === 'https:' ? 443 : 80));\n }\n set defaultPort(v) {\n if (this[INTERNAL]) {\n this[INTERNAL].defaultPort = v;\n }\n }\n get protocol() {\n return (this[INTERNAL].protocol ??\n (this.isSecureEndpoint() ? 'https:' : 'http:'));\n }\n set protocol(v) {\n if (this[INTERNAL]) {\n this[INTERNAL].protocol = v;\n }\n }\n}\nexports.Agent = Agent;\n//# sourceMappingURL=index.js.map",
14
+ "\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.parseProxyResponse = void 0;\nconst debug_1 = __importDefault(require(\"debug\"));\nconst debug = (0, debug_1.default)('https-proxy-agent:parse-proxy-response');\nfunction parseProxyResponse(socket) {\n return new Promise((resolve, reject) => {\n // we need to buffer any HTTP traffic that happens with the proxy before we get\n // the CONNECT response, so that if the response is anything other than an \"200\"\n // response code, then we can re-play the \"data\" events on the socket once the\n // HTTP parser is hooked up...\n let buffersLength = 0;\n const buffers = [];\n function read() {\n const b = socket.read();\n if (b)\n ondata(b);\n else\n socket.once('readable', read);\n }\n function cleanup() {\n socket.removeListener('end', onend);\n socket.removeListener('error', onerror);\n socket.removeListener('readable', read);\n }\n function onend() {\n cleanup();\n debug('onend');\n reject(new Error('Proxy connection ended before receiving CONNECT response'));\n }\n function onerror(err) {\n cleanup();\n debug('onerror %o', err);\n reject(err);\n }\n function ondata(b) {\n buffers.push(b);\n buffersLength += b.length;\n const buffered = Buffer.concat(buffers, buffersLength);\n const endOfHeaders = buffered.indexOf('\\r\\n\\r\\n');\n if (endOfHeaders === -1) {\n // keep buffering\n debug('have not received end of HTTP headers yet...');\n read();\n return;\n }\n const headerParts = buffered\n .slice(0, endOfHeaders)\n .toString('ascii')\n .split('\\r\\n');\n const firstLine = headerParts.shift();\n if (!firstLine) {\n socket.destroy();\n return reject(new Error('No header received from proxy CONNECT response'));\n }\n const firstLineParts = firstLine.split(' ');\n const statusCode = +firstLineParts[1];\n const statusText = firstLineParts.slice(2).join(' ');\n const headers = {};\n for (const header of headerParts) {\n if (!header)\n continue;\n const firstColon = header.indexOf(':');\n if (firstColon === -1) {\n socket.destroy();\n return reject(new Error(`Invalid header from proxy CONNECT response: \"${header}\"`));\n }\n const key = header.slice(0, firstColon).toLowerCase();\n const value = header.slice(firstColon + 1).trimStart();\n const current = headers[key];\n if (typeof current === 'string') {\n headers[key] = [current, value];\n }\n else if (Array.isArray(current)) {\n current.push(value);\n }\n else {\n headers[key] = value;\n }\n }\n debug('got proxy server response: %o %o', firstLine, headers);\n cleanup();\n resolve({\n connect: {\n statusCode,\n statusText,\n headers,\n },\n buffered,\n });\n }\n socket.on('error', onerror);\n socket.on('end', onend);\n read();\n });\n}\nexports.parseProxyResponse = parseProxyResponse;\n//# sourceMappingURL=parse-proxy-response.js.map",
15
+ "\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.HttpsProxyAgent = void 0;\nconst net = __importStar(require(\"net\"));\nconst tls = __importStar(require(\"tls\"));\nconst assert_1 = __importDefault(require(\"assert\"));\nconst debug_1 = __importDefault(require(\"debug\"));\nconst agent_base_1 = require(\"agent-base\");\nconst url_1 = require(\"url\");\nconst parse_proxy_response_1 = require(\"./parse-proxy-response\");\nconst debug = (0, debug_1.default)('https-proxy-agent');\nconst setServernameFromNonIpHost = (options) => {\n if (options.servername === undefined &&\n options.host &&\n !net.isIP(options.host)) {\n return {\n ...options,\n servername: options.host,\n };\n }\n return options;\n};\n/**\n * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to\n * the specified \"HTTP(s) proxy server\" in order to proxy HTTPS requests.\n *\n * Outgoing HTTP requests are first tunneled through the proxy server using the\n * `CONNECT` HTTP request method to establish a connection to the proxy server,\n * and then the proxy server connects to the destination target and issues the\n * HTTP request from the proxy server.\n *\n * `https:` requests have their socket connection upgraded to TLS once\n * the connection to the proxy server has been established.\n */\nclass HttpsProxyAgent extends agent_base_1.Agent {\n constructor(proxy, opts) {\n super(opts);\n this.options = { path: undefined };\n this.proxy = typeof proxy === 'string' ? new url_1.URL(proxy) : proxy;\n this.proxyHeaders = opts?.headers ?? {};\n debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href);\n // Trim off the brackets from IPv6 addresses\n const host = (this.proxy.hostname || this.proxy.host).replace(/^\\[|\\]$/g, '');\n const port = this.proxy.port\n ? parseInt(this.proxy.port, 10)\n : this.proxy.protocol === 'https:'\n ? 443\n : 80;\n this.connectOpts = {\n // Attempt to negotiate http/1.1 for proxy servers that support http/2\n ALPNProtocols: ['http/1.1'],\n ...(opts ? omit(opts, 'headers') : null),\n host,\n port,\n };\n }\n /**\n * Called when the node-core HTTP client library is creating a\n * new HTTP request.\n */\n async connect(req, opts) {\n const { proxy } = this;\n if (!opts.host) {\n throw new TypeError('No \"host\" provided');\n }\n // Create a socket connection to the proxy server.\n let socket;\n if (proxy.protocol === 'https:') {\n debug('Creating `tls.Socket`: %o', this.connectOpts);\n socket = tls.connect(setServernameFromNonIpHost(this.connectOpts));\n }\n else {\n debug('Creating `net.Socket`: %o', this.connectOpts);\n socket = net.connect(this.connectOpts);\n }\n const headers = typeof this.proxyHeaders === 'function'\n ? this.proxyHeaders()\n : { ...this.proxyHeaders };\n const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;\n let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\\r\\n`;\n // Inject the `Proxy-Authorization` header if necessary.\n if (proxy.username || proxy.password) {\n const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;\n headers['Proxy-Authorization'] = `Basic ${Buffer.from(auth).toString('base64')}`;\n }\n headers.Host = `${host}:${opts.port}`;\n if (!headers['Proxy-Connection']) {\n headers['Proxy-Connection'] = this.keepAlive\n ? 'Keep-Alive'\n : 'close';\n }\n for (const name of Object.keys(headers)) {\n payload += `${name}: ${headers[name]}\\r\\n`;\n }\n const proxyResponsePromise = (0, parse_proxy_response_1.parseProxyResponse)(socket);\n socket.write(`${payload}\\r\\n`);\n const { connect, buffered } = await proxyResponsePromise;\n req.emit('proxyConnect', connect);\n this.emit('proxyConnect', connect, req);\n if (connect.statusCode === 200) {\n req.once('socket', resume);\n if (opts.secureEndpoint) {\n // The proxy is connecting to a TLS server, so upgrade\n // this socket connection to a TLS connection.\n debug('Upgrading socket connection to TLS');\n return tls.connect({\n ...omit(setServernameFromNonIpHost(opts), 'host', 'path', 'port'),\n socket,\n });\n }\n return socket;\n }\n // Some other status code that's not 200... need to re-play the HTTP\n // header \"data\" events onto the socket once the HTTP machinery is\n // attached so that the node core `http` can parse and handle the\n // error status code.\n // Close the original socket, and a new \"fake\" socket is returned\n // instead, so that the proxy doesn't get the HTTP request\n // written to it (which may contain `Authorization` headers or other\n // sensitive data).\n //\n // See: https://hackerone.com/reports/541502\n socket.destroy();\n const fakeSocket = new net.Socket({ writable: false });\n fakeSocket.readable = true;\n // Need to wait for the \"socket\" event to re-play the \"data\" events.\n req.once('socket', (s) => {\n debug('Replaying proxy buffer for failed request');\n (0, assert_1.default)(s.listenerCount('data') > 0);\n // Replay the \"buffered\" Buffer onto the fake `socket`, since at\n // this point the HTTP module machinery has been hooked up for\n // the user.\n s.push(buffered);\n s.push(null);\n });\n return fakeSocket;\n }\n}\nHttpsProxyAgent.protocols = ['http', 'https'];\nexports.HttpsProxyAgent = HttpsProxyAgent;\nfunction resume(socket) {\n socket.resume();\n}\nfunction omit(obj, ...keys) {\n const ret = {};\n let key;\n for (key in obj) {\n if (!keys.includes(key)) {\n ret[key] = obj[key];\n }\n }\n return ret;\n}\n//# sourceMappingURL=index.js.map"
16
+ ],
17
+ "mappings": ";+EAIA,IAAI,EAAI,KACJ,EAAI,EAAI,GACR,EAAI,EAAI,GACR,EAAI,EAAI,GACR,GAAI,EAAI,EACR,GAAI,EAAI,OAgBZ,GAAO,QAAU,QAAS,CAAC,EAAK,EAAS,CACvC,EAAU,GAAW,CAAC,EACtB,IAAI,EAAO,OAAO,EAClB,GAAI,IAAS,UAAY,EAAI,OAAS,EACpC,OAAO,GAAM,CAAG,EACX,QAAI,IAAS,UAAY,SAAS,CAAG,EAC1C,OAAO,EAAQ,KAAO,GAAQ,CAAG,EAAI,GAAS,CAAG,EAEnD,MAAU,MACR,wDACE,KAAK,UAAU,CAAG,CACtB,GAWF,SAAS,EAAK,CAAC,EAAK,CAElB,GADA,EAAM,OAAO,CAAG,EACZ,EAAI,OAAS,IACf,OAEF,IAAI,EAAQ,mIAAmI,KAC7I,CACF,EACA,GAAI,CAAC,EACH,OAEF,IAAI,EAAI,WAAW,EAAM,EAAE,EACvB,GAAQ,EAAM,IAAM,MAAM,YAAY,EAC1C,OAAQ,OACD,YACA,WACA,UACA,SACA,IACH,OAAO,EAAI,OACR,YACA,WACA,IACH,OAAO,EAAI,OACR,WACA,UACA,IACH,OAAO,EAAI,MACR,YACA,WACA,UACA,SACA,IACH,OAAO,EAAI,MACR,cACA,aACA,WACA,UACA,IACH,OAAO,EAAI,MACR,cACA,aACA,WACA,UACA,IACH,O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EAAO,MAAM,GAAG;AAAA,CAAa,EAC7B,IAAQ,UAAS,YAAa,MAAM,EAGpC,GAFA,EAAI,KAAK,eAAgB,CAAO,EAChC,KAAK,KAAK,eAAgB,EAAS,CAAG,EAClC,EAAQ,aAAe,IAAK,CAE5B,GADA,EAAI,KAAK,SAAU,EAAM,EACrB,EAAK,eAIL,OADA,EAAM,oCAAoC,EACnC,GAAI,QAAQ,IACZ,GAAK,GAA2B,CAAI,EAAG,OAAQ,OAAQ,MAAM,EAChE,QACJ,CAAC,EAEL,OAAO,EAYX,EAAO,QAAQ,EACf,IAAM,EAAa,IAAI,EAAI,OAAO,CAAE,SAAU,EAAM,CAAC,EAYrD,OAXA,EAAW,SAAW,GAEtB,EAAI,KAAK,SAAU,CAAC,IAAM,CACtB,EAAM,2CAA2C,GAChD,EAAG,GAAS,SAAS,EAAE,cAAc,MAAM,EAAI,CAAC,EAIjD,EAAE,KAAK,CAAQ,EACf,EAAE,KAAK,IAAI,EACd,EACM,EAEf,CACA,EAAgB,UAAY,CAAC,OAAQ,OAAO,EAC5C,EAAQ,gBAAkB,EAC1B,SAAS,EAAM,CAAC,EAAQ,CACpB,EAAO,OAAO,EAElB,SAAS,EAAI,CAAC,KAAQ,EAAM,CACxB,IAAM,EAAM,CAAC,EACT,EACJ,IAAK,KAAO,EACR,GAAI,CAAC,EAAK,SAAS,CAAG,EAClB,EAAI,GAAO,EAAI,GAGvB,OAAO",
18
+ "debugId": "D2A6E1723279E62364756E2164756E21",
19
+ "names": []
20
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "F58F4DF83211BAE864756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "D8310FB4A82CFAE564756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../node_modules/.bun/effect@4.0.0-beta.74/node_modules/effect/dist/FiberSet.js", "../../node_modules/.bun/effect@4.0.0-beta.74/node_modules/effect/dist/LayerMap.js", "../../node_modules/.bun/effect@4.0.0-beta.74/node_modules/effect/dist/ManagedRuntime.js", "../../node_modules/.bun/effect@4.0.0-beta.74/node_modules/effect/dist/Random.js", "../../node_modules/.bun/effect@4.0.0-beta.74/node_modules/effect/dist/Ref.js", "../../node_modules/.bun/effect@4.0.0-beta.74/node_modules/effect/dist/SynchronizedRef.js"],
4
+ "sourcesContent": [
5
+ "/**\n * The `FiberSet` module provides a scoped container for managing many fibers as\n * one lifecycle. A `FiberSet<A, E>` tracks fibers whose successful values are\n * compatible with `A` and whose failures are compatible with `E`, removes each\n * fiber when it completes, and interrupts all still-running fibers when the\n * owning `Scope` closes.\n *\n * **Mental model**\n *\n * - A `FiberSet` is an owned, scoped collection of fibers\n * - Fibers can be added directly with {@link add} / {@link addUnsafe}\n * - Effects can be forked into the set with {@link run}, {@link runtime}, or\n * {@link runtimePromise}\n * - Completed fibers are automatically removed from the set\n * - Closing the scope or calling {@link clear} interrupts the currently tracked\n * fibers\n * - {@link join} waits for the set's first non-ignored failure, while\n * {@link awaitEmpty} waits until all tracked fibers have completed\n *\n * **Common tasks**\n *\n * - Create a scoped set: {@link make}\n * - Create scoped runners: {@link makeRuntime}, {@link makeRuntimePromise}\n * - Add an existing fiber: {@link add}\n * - Fork an effect into the set: {@link run}\n * - Interrupt tracked fibers: {@link clear}\n * - Observe the set: {@link size}, {@link awaitEmpty}, {@link join}\n * - Check a value: {@link isFiberSet}\n *\n * **Gotchas**\n *\n * - `FiberSet` values are scoped; use them inside `Effect.scoped` or another\n * scope owner so their fibers are interrupted reliably\n * - Adding or running into a closed set interrupts the fiber immediately\n * - By default, interruptions are not treated as failures for {@link join};\n * use the `propagateInterruption` option when interruption should be\n * propagated\n *\n * @since 2.0.0\n */\nimport * as Cause from \"./Cause.js\";\nimport * as Deferred from \"./Deferred.js\";\nimport * as Effect from \"./Effect.js\";\nimport * as Exit from \"./Exit.js\";\nimport * as Fiber from \"./Fiber.js\";\nimport * as Filter from \"./Filter.js\";\nimport { constVoid, dual } from \"./Function.js\";\nimport { PipeInspectableProto } from \"./internal/core.js\";\nimport * as Iterable from \"./Iterable.js\";\nimport * as Predicate from \"./Predicate.js\";\nconst TypeId = \"~effect/FiberSet\";\n/**\n * Checks whether a value is a FiberSet.\n *\n * **Example** (Checking if a value is a FiberSet)\n *\n * ```ts\n * import { Effect, FiberSet } from \"effect\"\n *\n * Effect.gen(function*() {\n * const set = yield* FiberSet.make()\n *\n * console.log(FiberSet.isFiberSet(set)) // true\n * console.log(FiberSet.isFiberSet({})) // false\n * })\n * ```\n *\n * @category refinements\n * @since 2.0.0\n */\nexport const isFiberSet = u => Predicate.hasProperty(u, TypeId);\nconst Proto = {\n [TypeId]: TypeId,\n [Symbol.iterator]() {\n if (this.state._tag === \"Closed\") {\n return Iterable.empty();\n }\n return this.state.backing[Symbol.iterator]();\n },\n ...PipeInspectableProto,\n toJSON() {\n return {\n _id: \"FiberMap\",\n state: this.state\n };\n }\n};\nconst makeUnsafe = (backing, deferred) => {\n const self = Object.create(Proto);\n self.state = {\n _tag: \"Open\",\n backing\n };\n self.deferred = deferred;\n return self;\n};\n/**\n * Creates a scoped `FiberSet` for storing fibers.\n *\n * **Details**\n *\n * When the associated Scope is closed, all fibers in the set will be\n * interrupted. You can add fibers to the set using `FiberSet.add` or\n * `FiberSet.run`, and the fibers will be automatically removed from the\n * FiberSet when they complete.\n *\n * **Example** (Creating a scoped FiberSet)\n *\n * ```ts\n * import { Effect, FiberSet } from \"effect\"\n *\n * Effect.gen(function*() {\n * const set = yield* FiberSet.make()\n *\n * // run some effects and add the fibers to the set\n * yield* FiberSet.run(set, Effect.never)\n * yield* FiberSet.run(set, Effect.never)\n *\n * yield* Effect.sleep(1000)\n * }).pipe(\n * Effect.scoped // The fibers will be interrupted when the scope is closed\n * )\n * ```\n *\n * @category constructors\n * @since 2.0.0\n */\nexport const make = () => Effect.acquireRelease(Effect.sync(() => makeUnsafe(new Set(), Deferred.makeUnsafe())), set => Effect.suspend(() => {\n const state = set.state;\n if (state._tag === \"Closed\") return Effect.void;\n set.state = {\n _tag: \"Closed\"\n };\n const fibers = state.backing;\n return Fiber.interruptAll(fibers).pipe(Deferred.into(set.deferred));\n}));\n/**\n * Creates a scoped run function that forks effects into a new `FiberSet`.\n *\n * **Details**\n *\n * Each call returns the forked fiber and adds it to the set. Managed fibers are\n * removed when they complete and are interrupted when the set's scope closes.\n *\n * **Example** (Creating a scoped runtime)\n *\n * ```ts\n * import { Effect, Fiber, FiberSet } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const runFork = yield* FiberSet.makeRuntime()\n *\n * // Fork effects using the runtime\n * const fiber1 = runFork(Effect.succeed(\"hello\"))\n * const fiber2 = runFork(Effect.succeed(\"world\"))\n *\n * const result1 = yield* Fiber.await(fiber1)\n * const result2 = yield* Fiber.await(fiber2)\n *\n * console.log(result1, result2) // \"hello\" \"world\"\n * })\n * ```\n *\n * @category constructors\n * @since 2.0.0\n */\nexport const makeRuntime = () => Effect.flatMap(make(), self => runtime(self)());\n/**\n * Creates a scoped run function that forks effects into a new `FiberSet` and\n * returns a `Promise` for each effect result.\n *\n * **Details**\n *\n * Managed fibers are removed when they complete and are interrupted when the\n * set's scope closes. Each Promise resolves with the effect's success value or\n * rejects with the squashed failure cause.\n *\n * **Example** (Creating a promise runtime)\n *\n * ```ts\n * import { Effect, FiberSet } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const runPromise = yield* FiberSet.makeRuntimePromise()\n *\n * // Run effects as promises\n * const promise1 = runPromise(Effect.succeed(\"hello\"))\n * const promise2 = runPromise(Effect.succeed(\"world\"))\n *\n * const result1 = yield* Effect.promise(() => promise1)\n * const result2 = yield* Effect.promise(() => promise2)\n *\n * console.log(result1, result2) // \"hello\" \"world\"\n * })\n * ```\n *\n * @category constructors\n * @since 3.13.0\n */\nexport const makeRuntimePromise = () => Effect.flatMap(make(), self => runtimePromise(self)());\nconst internalFiberId = -1;\nconst isInternalInterruption = /*#__PURE__*/Filter.toPredicate(/*#__PURE__*/Filter.compose(Cause.filterInterruptors, /*#__PURE__*/Filter.has(internalFiberId)));\n/**\n * Adds an existing fiber to the `FiberSet` using a synchronous, unsafe\n * mutation.\n *\n * **Details**\n *\n * When the fiber completes, it is removed from the set. If the set is already\n * closed, the supplied fiber is interrupted immediately. Non-interruption\n * failures are recorded for `FiberSet.join`.\n *\n * **Example** (Adding a fiber unsafely)\n *\n * ```ts\n * import { Effect, FiberSet } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const set = yield* FiberSet.make()\n * const fiber = yield* Effect.forkChild(Effect.succeed(\"hello\"))\n *\n * // Unsafe add - doesn't return an Effect\n * FiberSet.addUnsafe(set, fiber)\n *\n * // The fiber is now managed by the set\n * console.log(yield* FiberSet.size(set)) // 1\n * })\n * ```\n *\n * @category combinators\n * @since 4.0.0\n */\nexport const addUnsafe = /*#__PURE__*/dual(args => isFiberSet(args[0]), (self, fiber, options) => {\n if (self.state._tag === \"Closed\") {\n fiber.interruptUnsafe(internalFiberId);\n return;\n } else if (self.state.backing.has(fiber)) {\n return;\n }\n self.state.backing.add(fiber);\n fiber.addObserver(exit => {\n if (self.state._tag === \"Closed\") {\n return;\n }\n self.state.backing.delete(fiber);\n if (Exit.isFailure(exit) && (options?.propagateInterruption === true ? !isInternalInterruption(exit.cause) : !Cause.hasInterruptsOnly(exit.cause))) {\n Deferred.doneUnsafe(self.deferred, exit);\n }\n });\n});\n/**\n * Adds a fiber to the FiberSet. When the fiber completes, it will be removed.\n *\n * **Example** (Adding a fiber)\n *\n * ```ts\n * import { Effect, FiberSet } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const set = yield* FiberSet.make()\n * const fiber = yield* Effect.forkChild(Effect.succeed(\"hello\"))\n *\n * // Add the fiber to the set\n * yield* FiberSet.add(set, fiber)\n *\n * // The fiber is now managed by the set\n * console.log(yield* FiberSet.size(set)) // 1\n * })\n * ```\n *\n * @category combinators\n * @since 2.0.0\n */\nexport const add = /*#__PURE__*/dual(args => isFiberSet(args[0]), (self, fiber, options) => Effect.sync(() => addUnsafe(self, fiber, options)));\n/**\n * Interrupts all fibers in the `FiberSet` and clears the set.\n *\n * **Example** (Clearing all fibers)\n *\n * ```ts\n * import { Effect, FiberSet } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const set = yield* FiberSet.make()\n *\n * // Add some fibers\n * yield* FiberSet.run(set, Effect.never)\n * yield* FiberSet.run(set, Effect.never)\n *\n * console.log(yield* FiberSet.size(set)) // 2\n *\n * // Clear all fibers\n * yield* FiberSet.clear(set)\n *\n * console.log(yield* FiberSet.size(set)) // 0\n * })\n * ```\n *\n * @category combinators\n * @since 2.0.0\n */\nexport const clear = self => Effect.suspend(() => {\n if (self.state._tag === \"Closed\") {\n return Effect.void;\n }\n return Fiber.interruptAllAs(self.state.backing, internalFiberId);\n});\nconst constInterruptedFiber = /*#__PURE__*/function () {\n let fiber = undefined;\n return () => {\n if (fiber === undefined) {\n fiber = Effect.runFork(Effect.interrupt);\n }\n return fiber;\n };\n}();\n/**\n * Forks an Effect and add the forked fiber to the FiberSet.\n * When the fiber completes, it will be removed from the FiberSet.\n *\n * **Example** (Forking effects into a set)\n *\n * ```ts\n * import { Effect, Fiber, FiberSet } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const set = yield* FiberSet.make()\n *\n * // Fork and add to set\n * const fiber1 = yield* FiberSet.run(set, Effect.succeed(\"hello\"))\n * const fiber2 = yield* FiberSet.run(set, Effect.succeed(\"world\"))\n *\n * // Get results\n * const result1 = yield* Fiber.await(fiber1)\n * const result2 = yield* Fiber.await(fiber2)\n *\n * console.log(result1, result2) // \"hello\" \"world\"\n * })\n * ```\n *\n * @category combinators\n * @since 2.0.0\n */\nexport const run = function () {\n const self = arguments[0];\n if (!Effect.isEffect(arguments[1])) {\n const options = arguments[1];\n return effect => runImpl(self, effect, options);\n }\n return runImpl(self, arguments[1], arguments[2]);\n};\nconst runImpl = (self, effect, options) => Effect.withFiber(parent => {\n if (self.state._tag === \"Closed\") {\n return Effect.sync(constInterruptedFiber);\n }\n const fiber = Effect.runForkWith(parent.context)(effect);\n addUnsafe(self, fiber, options);\n return Effect.succeed(fiber);\n});\n/**\n * Captures a `Runtime` and uses it to fork effects into the `FiberSet`.\n *\n * **Example** (Capturing a runtime)\n *\n * ```ts\n * import { Context, Effect, FiberSet } from \"effect\"\n *\n * interface Users {\n * readonly _: unique symbol\n * }\n * const Users = Context.Service<Users, {\n * getAll: Effect.Effect<Array<unknown>>\n * }>(\"Users\")\n *\n * Effect.gen(function*() {\n * const set = yield* FiberSet.make()\n * const run = yield* FiberSet.runtime(set)<Users>()\n *\n * // run some effects and add the fibers to the set\n * run(Effect.andThen(Users, (_) => _.getAll))\n * }).pipe(\n * Effect.scoped // The fibers will be interrupted when the scope is closed\n * )\n * ```\n *\n * @category combinators\n * @since 2.0.0\n */\nexport const runtime = self => () => Effect.map(Effect.context(), services => {\n const runFork = Effect.runForkWith(services);\n return (effect, options) => {\n if (self.state._tag === \"Closed\") {\n return constInterruptedFiber();\n }\n const fiber = runFork(effect, options);\n addUnsafe(self, fiber);\n return fiber;\n };\n});\n/**\n * Captures a `Runtime` and returns a Promise-based runner that forks effects\n * into the `FiberSet`.\n *\n * **When to use**\n *\n * Use when you need to bridge effects to `Promise` values while still tracking\n * their fibers in a `FiberSet`.\n *\n * **Details**\n *\n * The returned run function returns a `Promise` for each effect result.\n *\n * **Example** (Running effects as promises)\n *\n * ```ts\n * import { Effect, FiberSet } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const set = yield* FiberSet.make()\n * const runPromise = yield* FiberSet.runtimePromise(set)()\n *\n * // Run effects as promises\n * const promise1 = runPromise(Effect.succeed(\"hello\"))\n * const promise2 = runPromise(Effect.succeed(\"world\"))\n *\n * const result1 = yield* Effect.promise(() => promise1)\n * const result2 = yield* Effect.promise(() => promise2)\n *\n * console.log(result1, result2) // \"hello\" \"world\"\n * })\n * ```\n *\n * @see {@link runtime} for a runner that returns the forked `Fiber`\n *\n * @category combinators\n * @since 3.13.0\n */\nexport const runtimePromise = self => () => Effect.map(runtime(self)(), runFork => (effect, options) => new Promise((resolve, reject) => runFork(effect, options).addObserver(exit => {\n if (Exit.isSuccess(exit)) {\n resolve(exit.value);\n } else {\n reject(Cause.squash(exit.cause));\n }\n})));\n/**\n * Gets the number of fibers currently in the FiberSet.\n *\n * **Example** (Checking the set size)\n *\n * ```ts\n * import { Effect, FiberSet } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const set = yield* FiberSet.make()\n *\n * console.log(yield* FiberSet.size(set)) // 0\n *\n * // Add some fibers\n * yield* FiberSet.run(set, Effect.never)\n * yield* FiberSet.run(set, Effect.never)\n *\n * console.log(yield* FiberSet.size(set)) // 2\n * })\n * ```\n *\n * @category combinators\n * @since 2.0.0\n */\nexport const size = self => Effect.sync(() => self.state._tag === \"Closed\" ? 0 : self.state.backing.size);\n/**\n * Joins all fibers in the FiberSet. If any fiber in the set terminates with a failure,\n * the returned Effect will terminate with the first failure that occurred.\n *\n * **Example** (Joining failing fibers)\n *\n * ```ts\n * import { Effect, FiberSet } from \"effect\"\n *\n * Effect.gen(function*() {\n * const set = yield* FiberSet.make()\n * yield* FiberSet.add(set, Effect.runFork(Effect.fail(\"error\")))\n *\n * // parent fiber will fail with \"error\"\n * yield* FiberSet.join(set)\n * })\n * ```\n *\n * @category combinators\n * @since 2.0.0\n */\nexport const join = self => Deferred.await(self.deferred);\n/**\n * Waits until the fiber set is empty.\n *\n * **Example** (Waiting for an empty set)\n *\n * ```ts\n * import { Effect, FiberSet } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const set = yield* FiberSet.make()\n *\n * // Add some fibers that will complete\n * yield* FiberSet.run(set, Effect.sleep(100))\n * yield* FiberSet.run(set, Effect.sleep(200))\n *\n * // Wait for all fibers to complete\n * yield* FiberSet.awaitEmpty(set)\n *\n * console.log(yield* FiberSet.size(set)) // 0\n * })\n * ```\n *\n * @category combinators\n * @since 3.13.0\n */\nexport const awaitEmpty = self => Effect.whileLoop({\n while: () => self.state._tag === \"Open\" && self.state.backing.size > 0,\n body: () => Fiber.await(Iterable.headUnsafe(self)),\n step: constVoid\n});\n//# sourceMappingURL=FiberSet.js.map",
6
+ "/**\n * The `LayerMap` module provides utilities for managing scoped resources that\n * are selected by key and built from `Layer` values. A `LayerMap<K, I, E>` turns\n * a key into a cached service `Context<I>`, so applications can lazily acquire\n * and reuse different resource instances such as tenant clients, regional\n * connections, environment-specific services, or other keyed infrastructure.\n *\n * **Mental model**\n *\n * - A `LayerMap` is a scoped, reference-counted cache of contexts produced by layers\n * - Keys identify which layer-backed resource set should be acquired\n * - Resources are acquired on demand when a key is requested\n * - The same key reuses the cached context while it remains live\n * - Cached resources are finalized when invalidated, when their scope closes, or after idle expiration\n * - The layers built by a `LayerMap` share the current layer memoization map\n *\n * **Common tasks**\n *\n * - Create from a lookup function: {@link make}\n * - Create from a fixed record of layers: {@link fromRecord}\n * - Define a service wrapper with accessor helpers: {@link Service}\n * - Retrieve a layer for a key: {@link LayerMap.get}\n * - Retrieve a scoped context directly: {@link LayerMap.contextEffect}\n * - Force a cached entry to be rebuilt later: {@link LayerMap.invalidate}\n * - Remove idle entries automatically with the `idleTimeToLive` option\n * - Eagerly build known entries with `preloadKeys` or `preload`\n *\n * **Gotchas**\n *\n * - `contextEffect` requires a `Scope.Scope` because it exposes the acquired context directly\n * - `get` returns a `Layer` that can be provided to programs expecting the keyed services\n * - Invalidating a key finalizes the current cached resources for that key; the next access rebuilds them\n * - Preloading moves layer construction errors to `LayerMap` creation instead of first use\n *\n * @since 3.14.0\n */\nimport * as Context from \"./Context.js\";\nimport * as Effect from \"./Effect.js\";\nimport { identity } from \"./Function.js\";\nimport * as Layer from \"./Layer.js\";\nimport * as RcMap from \"./RcMap.js\";\nimport * as Scope from \"./Scope.js\";\nconst TypeId = \"~effect/LayerMap\";\n/**\n * Creates a `LayerMap` that dynamically provides resources based on a key.\n *\n * **Example** (Creating a layer map)\n *\n * ```ts\n * import { Context, Effect, Layer, LayerMap } from \"effect\"\n *\n * // Define a service key\n * const DatabaseService = Context.Service<{\n * readonly query: (sql: string) => Effect.Effect<string>\n * }>(\"Database\")\n *\n * // Create a LayerMap that provides different database configurations\n * const program = Effect.gen(function*() {\n * const layerMap = yield* LayerMap.make(\n * (env: string) =>\n * Layer.succeed(DatabaseService)({\n * query: Effect.fn(\"DatabaseService.query\")((sql) => Effect.succeed(`${env}: ${sql}`))\n * }),\n * { idleTimeToLive: \"5 seconds\" }\n * )\n *\n * // Get a layer for a specific environment\n * const devLayer = layerMap.get(\"development\")\n *\n * // Use the layer to provide the service\n * const result = yield* Effect.provide(\n * Effect.gen(function*() {\n * const db = yield* DatabaseService\n * return yield* db.query(\"SELECT * FROM users\")\n * }),\n * devLayer\n * )\n *\n * console.log(result) // \"development: SELECT * FROM users\"\n * })\n * ```\n *\n * @category constructors\n * @since 3.14.0\n */\nexport const make = /*#__PURE__*/Effect.fnUntraced(function* (lookup, options) {\n const context = yield* Effect.context();\n const memoMap = Layer.CurrentMemoMap.getOrCreate(context);\n const rcMap = yield* RcMap.make({\n lookup: key => Effect.contextWith(_ => Layer.buildWithMemoMap(lookup(key), memoMap, Context.get(_, Scope.Scope))),\n idleTimeToLive: options?.idleTimeToLive\n });\n return identity({\n [TypeId]: TypeId,\n rcMap,\n get: key => Layer.effectContext(RcMap.get(rcMap, key)),\n contextEffect: key => RcMap.get(rcMap, key),\n invalidate: key => RcMap.invalidate(rcMap, key)\n });\n});\n/**\n * Creates a `LayerMap` from a record of predefined layers.\n *\n * **Details**\n *\n * The record keys become the keys accepted by the returned `LayerMap`, and the\n * record values are the layers built for those keys.\n *\n * **Example** (Creating a layer map from a record)\n *\n * ```ts\n * import { Context, Effect, Layer, LayerMap } from \"effect\"\n *\n * // Define service keys\n * const DevDatabase = Context.Service<{\n * readonly query: (sql: string) => Effect.Effect<string>\n * }>(\"DevDatabase\")\n *\n * const ProdDatabase = Context.Service<{\n * readonly query: (sql: string) => Effect.Effect<string>\n * }>(\"ProdDatabase\")\n *\n * // Create predefined layers\n * const layers = {\n * development: Layer.succeed(DevDatabase)({\n * query: Effect.fn(\"DevDatabase.query\")((sql) => Effect.succeed(`DEV: ${sql}`))\n * }),\n * production: Layer.succeed(ProdDatabase)({\n * query: Effect.fn(\"ProdDatabase.query\")((sql) => Effect.succeed(`PROD: ${sql}`))\n * })\n * } as const\n *\n * // Create a LayerMap from the record\n * const program = Effect.gen(function*() {\n * const layerMap = yield* LayerMap.fromRecord(layers, {\n * idleTimeToLive: \"10 seconds\"\n * })\n *\n * // Get layers by key\n * const devLayer = layerMap.get(\"development\")\n * const prodLayer = layerMap.get(\"production\")\n *\n * console.log(\"LayerMap created from record\")\n * })\n * ```\n *\n * @category constructors\n * @since 3.14.0\n */\nexport const fromRecord = (layers, options) => make(key => layers[key], {\n ...options,\n preloadKeys: options?.preload ? Object.keys(layers) : undefined\n});\n/**\n * Create a `LayerMap` service that provides a dynamic set of resources based on\n * a key.\n *\n * **Example** (Defining a layer map service)\n *\n * ```ts\n * import { Console, Context, Effect, Layer, LayerMap } from \"effect\"\n *\n * // Define a service key\n * const Greeter = Context.Service<{\n * readonly greet: Effect.Effect<string>\n * }>(\"Greeter\")\n *\n * // Create a service that wraps a LayerMap\n * class GreeterMap extends LayerMap.Service<GreeterMap>()(\"GreeterMap\", {\n * // Define the lookup function for the layer map\n * lookup: (name: string) =>\n * Layer.succeed(Greeter)({\n * greet: Effect.succeed(`Hello, ${name}!`)\n * }),\n *\n * // If a layer is not used for a certain amount of time, it can be removed\n * idleTimeToLive: \"5 seconds\"\n * }) {}\n *\n * // Usage\n * const program = Effect.gen(function*() {\n * // Access and use the Greeter service\n * const greeter = yield* Greeter\n * yield* Console.log(yield* greeter.greet)\n * }).pipe(\n * // Use the GreeterMap service to provide a variant of the Greeter service\n * Effect.provide(GreeterMap.get(\"John\"))\n * ).pipe(\n * // Provide the GreeterMap layer\n * Effect.provide(GreeterMap.layer)\n * )\n * ```\n *\n * @category services\n * @since 3.14.0\n */\nexport const Service = () => (id, options) => {\n const Err = globalThis.Error;\n const limit = Err.stackTraceLimit;\n Err.stackTraceLimit = 2;\n const creationError = new Err();\n Err.stackTraceLimit = limit;\n function TagClass() {}\n const TagClass_ = TagClass;\n Object.setPrototypeOf(TagClass, Object.getPrototypeOf(Context.Service(id)));\n TagClass.key = id;\n Object.defineProperty(TagClass, \"stack\", {\n get() {\n return creationError.stack;\n }\n });\n TagClass_.layerNoDeps = Layer.effect(TagClass_)(\"lookup\" in options ? make(options.lookup, options) : fromRecord(options.layers, options));\n TagClass_.layer = options.dependencies && options.dependencies.length > 0 ? Layer.provide(TagClass_.layerNoDeps, options.dependencies) : TagClass_.layerNoDeps;\n TagClass_.get = key => Layer.unwrap(Effect.map(TagClass_, layerMap => layerMap.get(key)));\n TagClass_.contextEffect = key => Effect.flatMap(TagClass_, layerMap => layerMap.contextEffect(key));\n TagClass_.invalidate = key => Effect.flatMap(TagClass_, layerMap => layerMap.invalidate(key));\n return TagClass;\n};\n//# sourceMappingURL=LayerMap.js.map",
7
+ "import * as Effect from \"./Effect.js\";\nimport * as Exit from \"./Exit.js\";\nimport * as Fiber from \"./Fiber.js\";\nimport * as Layer from \"./Layer.js\";\nimport { hasProperty } from \"./Predicate.js\";\nimport * as Scope from \"./Scope.js\";\nconst TypeId = \"~effect/ManagedRuntime\";\n/**\n * Checks whether the provided argument is a `ManagedRuntime`.\n *\n * **When to use**\n *\n * Use to narrow an unknown value before treating it as a `ManagedRuntime`.\n *\n * **Details**\n *\n * The guard checks the internal `ManagedRuntime` marker property. It does not\n * build the layer or inspect the runtime's services.\n *\n * **Gotchas**\n *\n * Disposed runtimes still carry the marker, so this guard does not prove the\n * runtime is still usable.\n *\n * @see {@link make} for creating managed runtimes this guard recognizes\n *\n * @category guards\n * @since 3.9.0\n */\nexport const isManagedRuntime = input => hasProperty(input, TypeId);\n/**\n * Creates a `ManagedRuntime` from a layer.\n *\n * **When to use**\n *\n * Use to create a reusable runtime from a `Layer` for application entry points\n * or integration code that runs many effects without rebuilding services.\n *\n * **Details**\n *\n * The layer is built lazily on first use and its context is cached for\n * subsequent runs. Resources acquired by the layer are owned by the runtime and\n * are released when `dispose` or `disposeEffect` is run. `options.memoMap` can\n * be used to share layer memoization with other layer builds.\n *\n * **Gotchas**\n *\n * Dispose the runtime when it is no longer needed. A runtime cannot be reused\n * after disposal.\n *\n * **Example** (Creating a managed runtime)\n *\n * ```ts\n * import { Context, Effect, Layer, ManagedRuntime } from \"effect\"\n *\n * class Notifications extends Context.Service<Notifications, {\n * readonly notify: (message: string) => Effect.Effect<void>\n * }>()(\"Notifications\") {\n * static readonly layer = Layer.succeed(this)({\n * notify: Effect.fn(\"Notifications.notify\")((message) =>\n * Effect.sync(() => console.log(message))\n * )\n * })\n * }\n *\n * const runtime = ManagedRuntime.make(Notifications.layer)\n *\n * const program = Effect.flatMap(\n * Notifications,\n * (_) => _.notify(\"Hello, world!\")\n * ).pipe(Effect.ensuring(runtime.disposeEffect))\n *\n * runtime.runPromise(program)\n * // Hello, world!\n * ```\n *\n * @see {@link ManagedRuntime} for the returned runtime interface\n * @see {@link Layer.MemoMap} for shared layer memoization\n * @see {@link Layer.build} for lower-level scoped layer construction\n *\n * @category runtime class\n * @since 2.0.0\n */\nexport const make = (layer, options) => {\n const memoMap = options?.memoMap ?? Layer.makeMemoMapUnsafe();\n const scope = Scope.makeUnsafe(\"parallel\");\n const layerScope = Scope.forkUnsafe(scope, \"sequential\");\n const defaultRunOptions = {\n onFiberStart: Fiber.runIn(scope)\n };\n const mergeRunOptions = options => options ? {\n ...options,\n onFiberStart: options.onFiberStart ? fiber => {\n defaultRunOptions.onFiberStart(fiber);\n options.onFiberStart(fiber);\n } : defaultRunOptions.onFiberStart\n } : defaultRunOptions;\n let buildFiber;\n const contextEffect = Effect.withFiber(fiber => {\n if (!buildFiber) {\n buildFiber = Effect.runFork(Effect.tap(Layer.buildWithMemoMap(layer, memoMap, layerScope), context => Effect.sync(() => {\n self.cachedContext = context;\n })), {\n ...defaultRunOptions,\n scheduler: fiber.currentScheduler\n });\n }\n return Effect.flatten(Fiber.await(buildFiber));\n });\n const self = {\n [TypeId]: TypeId,\n memoMap,\n scope,\n contextEffect: contextEffect,\n cachedContext: undefined,\n context() {\n return self.cachedContext === undefined ? Effect.runPromise(self.contextEffect) : Promise.resolve(self.cachedContext);\n },\n dispose() {\n return Effect.runPromise(self.disposeEffect);\n },\n disposeEffect: Effect.suspend(() => {\n ;\n self.contextEffect = Effect.die(\"ManagedRuntime disposed\");\n self.cachedContext = undefined;\n return Scope.close(self.scope, Exit.void);\n }),\n runFork(effect, options) {\n return self.cachedContext === undefined ? Effect.runFork(provide(self, effect), mergeRunOptions(options)) : Effect.runForkWith(self.cachedContext)(effect, mergeRunOptions(options));\n },\n runCallback(effect, options) {\n return self.cachedContext === undefined ? Effect.runCallback(provide(self, effect), mergeRunOptions(options)) : Effect.runCallbackWith(self.cachedContext)(effect, mergeRunOptions(options));\n },\n runSyncExit(effect) {\n return self.cachedContext === undefined ? Effect.runSyncExit(provide(self, effect)) : Effect.runSyncExitWith(self.cachedContext)(effect);\n },\n runSync(effect) {\n return self.cachedContext === undefined ? Effect.runSync(provide(self, effect)) : Effect.runSyncWith(self.cachedContext)(effect);\n },\n runPromiseExit(effect, options) {\n return self.cachedContext === undefined ? Effect.runPromiseExit(provide(self, effect), mergeRunOptions(options)) : Effect.runPromiseExitWith(self.cachedContext)(effect, mergeRunOptions(options));\n },\n runPromise(effect, options) {\n return self.cachedContext === undefined ? Effect.runPromise(provide(self, effect), mergeRunOptions(options)) : Effect.runPromiseWith(self.cachedContext)(effect, mergeRunOptions(options));\n }\n };\n return self;\n};\nfunction provide(managed, effect) {\n return Effect.flatMap(managed.contextEffect, context => Effect.provideContext(effect, context));\n}\n//# sourceMappingURL=ManagedRuntime.js.map",
8
+ "import * as Effect from \"./Effect.js\";\nimport { dual } from \"./Function.js\";\nimport * as random from \"./internal/random.js\";\nimport * as Predicate from \"./Predicate.js\";\n/**\n * Represents a service for generating pseudo-random numbers.\n *\n * **When to use**\n *\n * Use to access or provide the random-number generator service used by Effect\n * programs.\n *\n * **Gotchas**\n *\n * The default implementation is based on `Math.random` and is not\n * cryptographically secure. Replace the service with a cryptographically secure\n * implementation before using these generators for security-sensitive values.\n *\n * **Example** (Accessing the random service)\n *\n * ```ts\n * import { Effect, Random } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const float = yield* Random.next\n * const integer = yield* Random.nextInt\n * const inRange = yield* Random.nextIntBetween(1, 100)\n *\n * console.log(\"Float:\", float)\n * console.log(\"Integer:\", integer)\n * console.log(\"In range:\", inRange)\n * })\n * ```\n *\n * @category Random Number Generators\n * @since 2.0.0\n */\nexport const Random = random.Random;\nconst randomWith = f => Effect.withFiber(fiber => Effect.succeed(f(fiber.getRef(Random))));\n/**\n * Generates a random number between 0 (inclusive) and 1 (exclusive).\n *\n * **When to use**\n *\n * Use to generate a pseudo-random floating-point number in the standard\n * `[0, 1)` range.\n *\n * **Example** (Generating a random number)\n *\n * ```ts\n * import { Effect, Random } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const randomDouble = yield* Random.next\n * console.log(\"Random double:\", randomDouble)\n * })\n * ```\n *\n * @category Random Number Generators\n * @since 2.0.0\n */\nexport const next = /*#__PURE__*/randomWith(r => r.nextDoubleUnsafe());\n/**\n * Generates a random boolean value.\n *\n * **When to use**\n *\n * Use to make a pseudo-random true-or-false choice.\n *\n * **Example** (Generating a random boolean)\n *\n * ```ts\n * import { Effect, Random } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const value = yield* Random.nextBoolean\n * console.log(\"Random boolean:\", value)\n * })\n * ```\n *\n * @category Random Number Generators\n * @since 2.0.0\n */\nexport const nextBoolean = /*#__PURE__*/randomWith(r => r.nextDoubleUnsafe() > 0.5);\n/**\n * Generates a random integer between `Number.MIN_SAFE_INTEGER` (inclusive)\n * and `Number.MAX_SAFE_INTEGER` (inclusive).\n *\n * **When to use**\n *\n * Use to generate a pseudo-random safe integer across the full safe-integer\n * range.\n *\n * **Example** (Generating a random integer)\n *\n * ```ts\n * import { Effect, Random } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const randomInt = yield* Random.nextInt\n * console.log(\"Random integer:\", randomInt)\n * })\n * ```\n *\n * @category Random Number Generators\n * @since 2.0.0\n */\nexport const nextInt = /*#__PURE__*/randomWith(r => r.nextIntUnsafe());\n/**\n * Generates a random number between `min` (inclusive) and `max` (exclusive).\n *\n * **When to use**\n *\n * Use to generate a pseudo-random floating-point number within a numeric range.\n *\n * **Example** (Generating a bounded random number)\n *\n * ```ts\n * import { Effect, Random } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const randomDouble = yield* Random.nextBetween(0, 1)\n * console.log(\"Random double: \", randomDouble)\n * })\n * ```\n *\n * @category Random Number Generators\n * @since 4.0.0\n */\nexport const nextBetween = (min, max) => randomWith(r => r.nextDoubleUnsafe() * (max - min) + min);\n/**\n * Generates a random integer between `min` and `max`.\n *\n * **When to use**\n *\n * Use to generate a pseudo-random integer within a rounded numeric range.\n *\n * **Details**\n *\n * The lower bound is rounded up with `Math.ceil` and the upper bound is\n * rounded down with `Math.floor`. By default the range is inclusive; set\n * `options.halfOpen: true` to exclude the upper bound.\n *\n * **Example** (Generating a bounded random integer)\n *\n * ```ts\n * import { Effect, Random } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const diceRoll1 = yield* Random.nextIntBetween(1, 6)\n * const diceRoll2 = yield* Random.nextIntBetween(1, 6, {\n * halfOpen: true\n * })\n * const diceRoll3 = yield* Random.nextIntBetween(0, 10)\n * })\n * ```\n *\n * @category Random Number Generators\n * @since 2.0.0\n */\nexport const nextIntBetween = (min, max, options) => {\n const extra = options?.halfOpen === true ? 0 : 1;\n return randomWith(r => {\n const minInt = Math.ceil(min);\n const maxInt = Math.floor(max);\n return Math.floor(r.nextDoubleUnsafe() * (maxInt - minInt + extra)) + minInt;\n });\n};\n/**\n * Uses the pseudo-random number generator to shuffle the specified iterable.\n *\n * **When to use**\n *\n * Use to randomly reorder an iterable using the active `Random` service.\n *\n * **Example** (Shuffling values)\n *\n * ```ts\n * import { Effect, Random } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const values = yield* Random.shuffle([1, 2, 3, 4, 5])\n * console.log(values)\n * })\n * ```\n *\n * @category Random Number Generators\n * @since 2.0.0\n */\nexport const shuffle = elements => randomWith(r => {\n const buffer = Array.from(elements);\n for (let i = buffer.length - 1; i >= 1; i = i - 1) {\n const index = Math.min(i, Math.floor(r.nextDoubleUnsafe() * (i + 1)));\n const value = buffer[i];\n buffer[i] = buffer[index];\n buffer[index] = value;\n }\n return buffer;\n});\n/**\n * Seeds the pseudo-random number generator with the specified value.\n *\n * **When to use**\n *\n * Use to run an effect with a deterministic pseudo-random sequence.\n *\n * **Details**\n *\n * Using the same seed produces the same random sequence, which is useful for\n * tests and reproducible simulations.\n *\n * **Gotchas**\n *\n * Use an unpredictable seed when uniqueness or unpredictability matters.\n *\n * **Example** (Seeding random generation)\n *\n * ```ts\n * import { Effect, Random } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const value1 = yield* Random.next\n * const value2 = yield* Random.next\n * console.log(value1, value2)\n * })\n *\n * // Same seed produces same sequence\n * const seeded1 = program.pipe(Random.withSeed(\"my-seed\"))\n * const seeded2 = program.pipe(Random.withSeed(\"my-seed\"))\n *\n * // Both will output identical values\n * Effect.runPromise(seeded1)\n * Effect.runPromise(seeded2)\n * ```\n *\n * @category Seeding\n * @since 4.0.0\n */\nexport const withSeed = /*#__PURE__*/dual(2, (self, seed) => Effect.provideService(self, Random, ISAAC_CSPRNG(seed)));\n/*///////////////////////////////////////////////////////////////////////////////////////////////////\nThis is a derivative work copyright (c) 2025 Effectful Technologies Inc, under MIT license.\nThis is a derivative work copyright (c) 2018, William P. \"Mac\" McMeans, under BSD license.\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n3. Neither the name of isaacCSPRNG nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\nOriginal work copyright (c) 2012 Yves-Marie K. Rinquin, under MIT license.\nhttps://github.com/rubycon/isaac.js\n///////////////////////////////////////////////////////////////////////////////////////////////////*/\nfunction ISAAC_CSPRNG(userSeed) {\n // Internal State\n const memory = new Array(256);\n const result = new Array(256);\n let accumulator = 0;\n let lastResult = 0;\n let generation = 0;\n let counter = 0;\n // Initial Seed\n const internalSeed = Predicate.isUndefined(userSeed) ? getInitialSeed() : userSeed;\n seed(internalSeed);\n function getInitialSeed() {\n const uint32a = new Uint32Array(2);\n crypto.getRandomValues(uint32a);\n return uint32a[0] + uint32a[1];\n }\n function reset() {\n accumulator = 0;\n lastResult = 0;\n counter = 0;\n for (let i = 0; i < 256; ++i) {\n memory[i] = 0;\n result[i] = 0;\n }\n generation = 0;\n }\n function seed(userSeed) {\n // The golden ratio ( 2654435769 )\n // See https://stackoverflow.com/questions/4948780/magic-number-in-boosthash-combine\n const magicNumber = 0x9e3779b9;\n let a = magicNumber;\n let b = magicNumber;\n let c = magicNumber;\n let d = magicNumber;\n let e = magicNumber;\n let f = magicNumber;\n let g = magicNumber;\n let h = magicNumber;\n let i = 0;\n let seed;\n if (Predicate.isString(userSeed)) {\n seed = toIntArray(userSeed);\n } else {\n seed = [userSeed];\n }\n reset();\n for (i = 0; i < seed.length; i++) {\n result[i & 0xff] += seed[i];\n }\n function mix() {\n a ^= b << 11;\n d = add32(d, a);\n b = add32(b, c);\n b ^= c >>> 2;\n e = add32(e, b);\n c = add32(c, d);\n c ^= d << 8;\n f = add32(f, c);\n d = add32(d, e);\n d ^= e >>> 16;\n g = add32(g, d);\n e = add32(e, f);\n e ^= f << 10;\n h = add32(h, e);\n f = add32(f, g);\n f ^= g >>> 4;\n a = add32(a, f);\n g = add32(g, h);\n g ^= h << 8;\n b = add32(b, g);\n h = add32(h, a);\n h ^= a >>> 9;\n c = add32(c, h);\n a = add32(a, b);\n }\n // Scramble the seed\n for (i = 0; i < 4; i++) {\n mix();\n }\n for (i = 0; i < 256; i += 8) {\n // Use all the information in the seed\n a = add32(a, result[i]);\n b = add32(b, result[i + 1]);\n c = add32(c, result[i + 2]);\n d = add32(d, result[i + 3]);\n e = add32(e, result[i + 4]);\n f = add32(f, result[i + 5]);\n g = add32(g, result[i + 6]);\n h = add32(h, result[i + 7]);\n mix();\n // Fill in the memory with messy stuff\n memory[i] = a;\n memory[i + 1] = b;\n memory[i + 2] = c;\n memory[i + 3] = d;\n memory[i + 4] = e;\n memory[i + 5] = f;\n memory[i + 6] = g;\n memory[i + 7] = h;\n }\n // Second pass to make sure seed affects memory\n for (i = 0; i < 256; i += 8) {\n a = add32(a, memory[i]);\n b = add32(b, memory[i + 1]);\n c = add32(c, memory[i + 2]);\n d = add32(d, memory[i + 3]);\n e = add32(e, memory[i + 4]);\n f = add32(f, memory[i + 5]);\n g = add32(g, memory[i + 6]);\n h = add32(h, memory[i + 7]);\n mix();\n // Fill in the memory with messy stuff (again)\n memory[i] = a;\n memory[i + 1] = b;\n memory[i + 2] = c;\n memory[i + 3] = d;\n memory[i + 4] = e;\n memory[i + 5] = f;\n memory[i + 6] = g;\n memory[i + 7] = h;\n }\n pnrg();\n generation = 256;\n }\n function pnrg(n) {\n let i = 0;\n let x = 0;\n let y = 0;\n n = Predicate.isUndefined(n) ? 1 : Math.abs(Math.floor(n));\n while (n--) {\n counter = add32(counter, 1);\n lastResult = add32(lastResult, counter);\n for (i = 0; i < 256; i++) {\n switch (i & 3) {\n case 0:\n {\n accumulator ^= accumulator << 13;\n break;\n }\n case 1:\n {\n accumulator ^= accumulator >>> 6;\n break;\n }\n case 2:\n {\n accumulator ^= accumulator << 2;\n break;\n }\n case 3:\n {\n accumulator ^= accumulator >>> 16;\n break;\n }\n }\n accumulator = add32(memory[i + 128 & 0xff], accumulator);\n x = memory[i];\n memory[i] = add32(memory[x >>> 2 & 0xff], add32(accumulator, lastResult));\n y = memory[i];\n result[i] = add32(memory[y >>> 10 & 0xff], x);\n lastResult = result[i];\n }\n }\n }\n /**\n * Returns a signed, random integer in the range [-2^31, 2^31).\n */\n function nextInt32() {\n if (!generation--) {\n pnrg();\n generation = 255;\n }\n return result[generation];\n }\n function nextIntUnsafe() {\n return Math.floor(nextDoubleUnsafe() * (Number.MAX_SAFE_INTEGER - Number.MIN_SAFE_INTEGER + 1)) + Number.MIN_SAFE_INTEGER;\n }\n /**\n * Returns a 53-bit fraction in the range [0, 1).\n */\n function nextDoubleUnsafe() {\n const hi = nextInt32() >>> 0 & 0x1FFFFF; // take top 21 bits\n const lo = nextInt32() >>> 0; // full 32 bits\n // 53-bit integer\n const combined = hi * 4294967296 + lo;\n return combined / 0x20000000000000; // [0, 1)\n }\n return {\n nextIntUnsafe,\n nextDoubleUnsafe\n };\n}\n/**\n * 32-bit addition with overflow handling (JavaScript numbers are 53-bit).\n *\n * Example: add32(0xFFFFFFFF, 0x00000001) = 0x00000000 (wraps around)\n */\nfunction add32(x, y) {\n // Add lower 16 bits separately to handle carry\n // Example: x=0x12345678, y=0xABCDEF01\n // lsb = (0x5678 + 0xEF01) = 0x14579\n const lsb = (x & 0xffff) + (y & 0xffff);\n // Add upper 16 bits + carry from lower addition\n // msb = (0x1234 + 0xABCD + (0x14579 >>> 16)) = (0x1234 + 0xABCD + 0x1) = 0xBE02\n const msb = (x >>> 16) + (y >>> 16) + (lsb >>> 16);\n // Combine: upper 16 bits | lower 16 bits (masked to prevent double carry)\n // return (0xBE02 << 16) | (0x14579 & 0xffff) = 0xBE024579\n return msb << 16 | lsb & 0xffff;\n}\n/**\n * Convert a UTF-16 strings to UTF-8 encoded 32-bit integers (little-endian).\n */\nfunction toIntArray(seed) {\n let c1 = 0; // First UTF-16 code unit\n let c2 = 0; // Second UTF-16 code unit (for surrogate pairs)\n let unicode = 0; // Combined unicode code point from surrogate pair\n const result = []; // Result array of 32-bit integers\n const buffer = []; // Temporary buffer for the UTF-8 bytes (max 4 bytes)\n const length = seed.length - 1;\n let index = 0;\n while (index < length) {\n c1 = seed.charCodeAt(index++);\n c2 = seed.charCodeAt(index + 1);\n // 0x0000 - 0x007f: ASCII, single byte UTF-8: 0xxxxxxxx\n // Example: 'A' (0x41) -> [0x41]\n if (c1 < 0x0080) {\n buffer.push(c1);\n } //\n // 0x0080 - 0x07ff: Two byte UTF-8: 110xxxxx 10xxxxxx\n // Example: '¢' (0xA2) -> [0xC2, 0xA2]\n else if (c1 < 0x0800) {\n // First byte: upper 5 bits + 110xxxxx marker\n // 0xA2 >>> 6 (0x02), & 0x1f = 0x02, | 0xc0 = 0xC2\n buffer.push(c1 >>> 6 & 0x1f | 0xc0);\n // Second byte: lower 6 bits + 10xxxxxxxx marker\n // 0xA2 & 0x3f = 0x22, | 0x80 = 0xA2\n buffer.push(c1 >>> 0 & 0x3f | 0x80);\n } //\n // 0x0800 - 0xffff (non-surrogate): Three byte UTF-8: 1110xxxx 10xxxxxx 10xxxxxx\n // Example: '€' (0x20AC) -> [0xE2, 0x82, 0xAC]\n else if ((c1 & 0xf800) != 0xd800) {\n // First byte: top 4 bits + 1110xxxx marker\n // 0x20AC >>> 12 = 0x02, & 0x0f = 0x02, | 0xe0 = 0xE2\n buffer.push(c1 >>> 12 & 0x0f | 0xe0);\n // Second byte: middle 6 bits + 10xxxxxx marker\n // 0x20AC >>> 6 = 0x82, & 0x3f = 0x02, | 0x80 = 0x82\n buffer.push(c1 >>> 6 & 0x3f | 0x80);\n // Third byte: lower 6 bits + 10xxxxxx marker\n // 0x20AC & 0x3f = 0x2C, | 0x80 = 0xAC\n buffer.push(c1 >>> 0 & 0x3f | 0x80);\n } //\n // 0xd800 - 0xdfff: Surrogate pairs, four byte UTF-8: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx\n // Example: '𐍈' (U+10348, surrogates 0xD800 0xDF48) -> [0xF0, 0x90, 0x8D, 0x88]\n else if ((c1 & 0xfc00) == 0xd800 && (c2 & 0xfc00) == 0xdc00) {\n // Decode surrogate pair: combine 10 bits from each + 0x10000\n // ((0xDF48 & 0x3f) | ((0xD800 & 0x3f) << 10)) + 0x10000 = 0x10348\n unicode = (c2 & 0x3f | (c1 & 0x3f) << 10) + 0x10000;\n // First byte: top 3 bits + 11110xxx marker\n // 0x10348 >>> 18 = 0x00, & 0x07 = 0x00, | 0xf0 = 0xF0\n buffer.push(unicode >>> 18 & 0x07 | 0xf0);\n // Second byte: next 6 bits + 10xxxxxx marker\n // 0x10348 >>> 12 = 0x10, & 0x3f = 0x10, | 0x80 = 0x90\n buffer.push(unicode >>> 12 & 0x3f | 0x80);\n // Third byte: next 6 bits + 10xxxxxx marker\n // 0x10348 >>> 6 = 0x40D, & 0x3f = 0x0D, | 0x80 = 0x8D\n buffer.push(unicode >>> 6 & 0x3f | 0x80);\n // Fourth byte: lower 6 bits + 10xxxxxx marker\n // 0x10348 & 0x3f = 0x08, | 0x80 = 0x88\n buffer.push(unicode >>> 0 & 0x3f | 0x80);\n index++; // Skip second surrogate\n } else {\n // invalid char\n }\n // Pack 4 UTF-8 bytes -> 32-bit int (little-endian)\n // Example: [0xE2, 0x82, 0xAC, 0x00] -> 0x00ACE2E2\n if (buffer.length > 3) {\n result.push(buffer.shift() << 0 |\n // Byte 0 at bits 0-7: 0xE2 << 0 = 0x000000E2\n buffer.shift() << 8 |\n // Byte 1 at bits 8-15: 0x82 << 8 = 0x00008200\n buffer.shift() << 16 |\n // Byte 2 at bits 16-23: 0xAC << 16 = 0x00AC0000\n buffer.shift() << 24 // Byte 3 at bits 24-31: 0x00 << 24 = 0x00000000\n );\n // Result: 0x00AC82E2\n }\n }\n return result;\n}\n//# sourceMappingURL=Random.js.map",
9
+ "/**\n * The `Ref` module provides fiber-safe mutable references for state inside\n * Effect programs. A `Ref<A>` holds one value of type `A` and exposes reads,\n * writes, and atomic transformations as effects, so state changes compose with\n * Effect's concurrency model.\n *\n * **Mental model**\n *\n * - {@link make} creates a reference with an initial value\n * - {@link get} reads the current value, and {@link set} replaces it\n * - {@link update}, {@link updateAndGet}, and {@link getAndUpdate} transform\n * the current value atomically\n * - {@link modify} updates the value and returns a separate result computed\n * from the previous value\n * - The `Some` variants use `Option` to leave the value unchanged when a\n * partial update does not apply\n *\n * **Common tasks**\n *\n * - Create refs: {@link make}, {@link makeUnsafe}\n * - Read and write: {@link get}, {@link set}, {@link getAndSet},\n * {@link setAndGet}\n * - Update state: {@link update}, {@link updateAndGet}, {@link getAndUpdate}\n * - Update conditionally: {@link updateSome}, {@link updateSomeAndGet},\n * {@link getAndUpdateSome}, {@link modifySome}\n * - Compute while updating: {@link modify}\n *\n * **Example** (Updating shared state)\n *\n * ```ts\n * import { Effect, Ref } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const counter = yield* Ref.make(0)\n *\n * const next = yield* Ref.updateAndGet(counter, (n) => n + 1)\n * const label = yield* Ref.modify(counter, (n) => [`count=${n}`, n + 1])\n *\n * return { label, next }\n * })\n * ```\n *\n * **Gotchas**\n *\n * - Each `Ref` operation is atomic for that reference, but multiple refs are\n * not updated transactionally as a group\n * - If the new value depends on the old value, prefer {@link update} or\n * {@link modify} over a separate {@link get} followed by {@link set}\n * - Unsafe operations are synchronous low-level accessors; prefer effectful\n * operations in application code\n *\n * @since 2.0.0\n */\nimport * as Effect from \"./Effect.js\";\nimport { dual, identity } from \"./Function.js\";\nimport { PipeInspectableProto } from \"./internal/core.js\";\nimport * as MutableRef from \"./MutableRef.js\";\nconst TypeId = \"~effect/Ref\";\nconst RefProto = {\n [TypeId]: {\n _A: identity\n },\n ...PipeInspectableProto,\n toJSON() {\n return {\n _id: \"Ref\",\n ref: this.ref\n };\n }\n};\n/**\n * Creates a new Ref with the specified initial value (unsafe version).\n *\n * **When to use**\n *\n * Use when you need immediate synchronous construction and can guarantee\n * that creating the `Ref` outside of `Effect` is safe.\n *\n * **Gotchas**\n *\n * Prefer `Ref.make` for Effect-wrapped creation in Effect programs.\n *\n * **Example** (Creating a ref unsafely)\n *\n * ```ts\n * import { Ref } from \"effect\"\n *\n * // Create a ref directly without Effect\n * const counter = Ref.makeUnsafe(0)\n *\n * // Get the current value\n * const value = Ref.getUnsafe(counter)\n * console.log(value) // 0\n *\n * // Note: This is unsafe and should be used carefully\n * // Prefer Ref.make for Effect-wrapped creation\n * ```\n *\n * @category constructors\n * @since 4.0.0\n */\nexport const makeUnsafe = value => {\n const self = Object.create(RefProto);\n self.ref = MutableRef.make(value);\n return self;\n};\n/**\n * Creates a new Ref with the specified initial value.\n *\n * **When to use**\n *\n * Use to create shared mutable state inside an Effect program.\n *\n * **Example** (Creating a ref)\n *\n * ```ts\n * import { Effect, Ref } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const ref = yield* Ref.make(42)\n * const value = yield* Ref.get(ref)\n * console.log(value) // 42\n * })\n * ```\n *\n * @see {@link makeUnsafe} for synchronous construction outside Effect code\n *\n * @category constructors\n * @since 2.0.0\n */\nexport const make = value => Effect.sync(() => makeUnsafe(value));\n/**\n * Gets the current value of the Ref.\n *\n * **When to use**\n *\n * Use to read the current value without changing it.\n *\n * **Example** (Getting the current value)\n *\n * ```ts\n * import { Effect, Ref } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const ref = yield* Ref.make(42)\n * const value = yield* Ref.get(ref)\n * console.log(value) // 42\n * })\n * ```\n *\n * @see {@link set} for replacing the current value\n *\n * @category getters\n * @since 2.0.0\n */\nexport const get = self => Effect.sync(() => self.ref.current);\n/**\n * Sets the value of the Ref to the specified value.\n *\n * **When to use**\n *\n * Use to replace the current value with a known value.\n *\n * **Example** (Setting a value)\n *\n * ```ts\n * import { Effect, Ref } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const ref = yield* Ref.make(0)\n * yield* Ref.set(ref, 42)\n * const value = yield* Ref.get(ref)\n * console.log(value) // 42\n * })\n *\n * // Using multiple operations\n * const program2 = Effect.gen(function*() {\n * const ref = yield* Ref.make(0)\n * yield* Ref.set(ref, 100)\n * const value = yield* Ref.get(ref)\n * console.log(value) // 100\n * })\n * ```\n *\n * @see {@link getAndSet} for setting while returning the previous value\n * @see {@link setAndGet} for setting while returning the new value\n *\n * @category setters\n * @since 2.0.0\n */\nexport const set = /*#__PURE__*/dual(2, (self, value) => Effect.sync(() => MutableRef.set(self.ref, value)));\n/**\n * Gets the current value of the Ref, sets it to the specified value, and returns the previous value atomically.\n *\n * **When to use**\n *\n * Use to replace the value while returning the previous value.\n *\n * **Example** (Replacing a value atomically)\n *\n * ```ts\n * import { Effect, Ref } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const ref = yield* Ref.make(\"initial\")\n *\n * // Get current value and set new value atomically\n * const previous = yield* Ref.getAndSet(ref, \"updated\")\n * console.log(previous) // \"initial\"\n *\n * const current = yield* Ref.get(ref)\n * console.log(current) // \"updated\"\n * })\n * ```\n *\n * @see {@link set} for setting without returning the previous value\n * @see {@link getAndUpdate} for deriving the new value from the previous value\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const getAndSet = /*#__PURE__*/dual(2, (self, value) => Effect.sync(() => {\n const current = self.ref.current;\n self.ref.current = value;\n return current;\n}));\n/**\n * Gets the current value of the Ref, updates it with the given function, and returns the previous value atomically.\n *\n * **When to use**\n *\n * Use to derive a new value while returning the previous value.\n *\n * **Example** (Updating and returning the previous value)\n *\n * ```ts\n * import { Effect, Ref } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const counter = yield* Ref.make(10)\n *\n * // Get current value and update it atomically\n * const previous = yield* Ref.getAndUpdate(counter, (n) => n * 2)\n * console.log(previous) // 10\n *\n * const current = yield* Ref.get(counter)\n * console.log(current) // 20\n * })\n * ```\n *\n * @see {@link update} for updating without returning the previous value\n * @see {@link updateAndGet} for returning the new value instead\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const getAndUpdate = /*#__PURE__*/dual(2, (self, f) => Effect.sync(() => {\n const current = self.ref.current;\n self.ref.current = f(current);\n return current;\n}));\n/**\n * Gets the current value of the Ref and updates it atomically with the given partial function.\n *\n * **When to use**\n *\n * Use to return the previous value while applying a conditional update.\n *\n * **Details**\n *\n * If the partial function returns `Option.some`, the Ref is updated with the\n * new value. If it returns `Option.none`, the Ref is left unchanged. The effect\n * always returns the value that was in the Ref before the attempted update.\n *\n * **Example** (Conditionally updating and returning the previous value)\n *\n * ```ts\n * import { Effect, Option, Ref } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const counter = yield* Ref.make(5)\n *\n * // Only update if value is greater than 3\n * const previous1 = yield* Ref.getAndUpdateSome(\n * counter,\n * (n) => n > 3 ? Option.some(n * 2) : Option.none()\n * )\n * console.log(previous1) // 5\n *\n * const current1 = yield* Ref.get(counter)\n * console.log(current1) // 10\n *\n * // Try to update again (won't update since 10 > 3 is true but let's say condition is n < 3)\n * const previous2 = yield* Ref.getAndUpdateSome(\n * counter,\n * (n) => n < 3 ? Option.some(n * 2) : Option.none()\n * )\n * console.log(previous2) // 10\n *\n * const current2 = yield* Ref.get(counter)\n * console.log(current2) // 10 (unchanged)\n * })\n * ```\n *\n * @see {@link getAndUpdate} for always applying an update\n * @see {@link updateSome} for conditional updates without returning the previous value\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const getAndUpdateSome = /*#__PURE__*/dual(2, (self, pf) => Effect.sync(() => {\n const current = self.ref.current;\n const option = pf(current);\n if (option._tag === \"Some\") {\n self.ref.current = option.value;\n }\n return current;\n}));\n/**\n * Sets the value of the Ref atomically to the specified value and returns the new value.\n *\n * **When to use**\n *\n * Use when you want to set a value and immediately get it back in one\n * atomic operation.\n *\n * **Example** (Setting and returning the new value)\n *\n * ```ts\n * import { Effect, Ref } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const ref = yield* Ref.make(10)\n *\n * // Set new value and get it back in one operation\n * const newValue = yield* Ref.setAndGet(ref, 42)\n * console.log(newValue) // 42\n *\n * // Verify the ref contains the new value\n * const current = yield* Ref.get(ref)\n * console.log(current) // 42\n * })\n *\n * // Useful for sequential operations\n * const program2 = Effect.gen(function*() {\n * const counter = yield* Ref.make(0)\n *\n * const newValue = yield* Ref.setAndGet(counter, 20)\n * console.log(newValue) // 20\n * })\n * ```\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const setAndGet = /*#__PURE__*/dual(2, (self, value) => Effect.sync(() => self.ref.current = value));\n/**\n * Modifies the value of the Ref atomically using the given function.\n *\n * **When to use**\n *\n * Use to compute both a separate return value and the next stored value in one\n * atomic update.\n *\n * **Details**\n *\n * The function receives the current value and returns a tuple of\n * `[result, newValue]`. The Ref is updated with `newValue`, and `result` is\n * returned by the effect.\n *\n * **Example** (Modifying a value atomically)\n *\n * ```ts\n * import { Effect, Ref } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const counter = yield* Ref.make(10)\n *\n * // Modify the ref and return some computation result\n * const result = yield* Ref.modify(counter, (n) => [\n * `Previous value was ${n}`, // Return value\n * n * 2 // New ref value\n * ])\n *\n * console.log(result) // \"Previous value was 10\"\n *\n * const current = yield* Ref.get(counter)\n * console.log(current) // 20\n * })\n *\n * // Example with more complex computation\n * const program2 = Effect.gen(function*() {\n * const state = yield* Ref.make({ count: 0, total: 0 })\n *\n * const incremented = yield* Ref.modify(state, (s) => [\n * s.count, // Return previous count\n * { count: s.count + 1, total: s.total + s.count + 1 } // New state\n * ])\n *\n * console.log(incremented) // 0\n * })\n * ```\n *\n * @see {@link updateAndGet} for returning the new stored value\n * @see {@link modifySome} for optionally updating while returning a separate result\n *\n * @category setters\n * @since 2.0.0\n */\nexport const modify = /*#__PURE__*/dual(2, (self, f) => Effect.sync(() => {\n const [b, a] = f(self.ref.current);\n self.ref.current = a;\n return b;\n}));\n/**\n * Computes a result atomically and optionally updates the value of the `Ref`.\n *\n * **When to use**\n *\n * Use to compute a return value while optionally updating the stored value.\n *\n * **Details**\n *\n * The callback receives the current value and returns `[result, nextValue]`,\n * where `nextValue` is an `Option`. If `nextValue` is `Option.some(value)`,\n * the `Ref` is updated to `value`; if it is `Option.none()`, the `Ref` is left\n * unchanged. The returned effect always succeeds with `result`.\n *\n * **Example** (Conditionally modifying a value)\n *\n * ```ts\n * import { Effect, Option, Ref } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const counter = yield* Ref.make(5)\n *\n * // Only modify if value is greater than 3\n * const result1 = yield* Ref.modifySome(\n * counter,\n * (n) =>\n * n > 3\n * ? [`incremented ${n}`, Option.some(n + 10)]\n * : [\"no change\", Option.none()]\n * )\n *\n * console.log(result1) // \"incremented 5\"\n *\n * const current1 = yield* Ref.get(counter)\n * console.log(current1) // 15\n *\n * // Try to modify with a condition that fails\n * const result2 = yield* Ref.modifySome(\n * counter,\n * (n) =>\n * n < 10\n * ? [`decremented ${n}`, Option.some(n - 5)]\n * : [\"no change\", Option.none()]\n * )\n *\n * console.log(result2) // \"no change\"\n *\n * const current2 = yield* Ref.get(counter)\n * console.log(current2) // 15 (unchanged)\n * })\n * ```\n *\n * @see {@link modify} for always storing a new value\n * @see {@link updateSome} for optional updates without a separate return value\n *\n * @category setters\n * @since 2.0.0\n */\nexport const modifySome = /*#__PURE__*/dual(2, (self, pf) => modify(self, value => {\n const [b, option] = pf(value);\n return [b, option._tag === \"None\" ? value : option.value];\n}));\n/**\n * Updates the value of the Ref atomically using the given function.\n *\n * **When to use**\n *\n * Use to apply a state transition without returning a value.\n *\n * **Example** (Updating a value)\n *\n * ```ts\n * import { Effect, Ref } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const counter = yield* Ref.make(5)\n *\n * // Update the value\n * yield* Ref.update(counter, (n) => n * 2)\n *\n * const value = yield* Ref.get(counter)\n * console.log(value) // 10\n * })\n *\n * // Using multiple operations\n * const program2 = Effect.gen(function*() {\n * const counter = yield* Ref.make(5)\n * yield* Ref.update(counter, (n: number) => n + 10)\n * const value = yield* Ref.get(counter)\n * console.log(value) // 15\n * })\n * ```\n *\n * @see {@link updateAndGet} for returning the new value\n * @see {@link getAndUpdate} for returning the previous value\n *\n * @category setters\n * @since 2.0.0\n */\nexport const update = /*#__PURE__*/dual(2, (self, f) => Effect.sync(() => {\n self.ref.current = f(self.ref.current);\n}));\n/**\n * Updates the value of the Ref atomically using the given function and returns the new value.\n *\n * **When to use**\n *\n * Use to apply a state transition and return the new stored value.\n *\n * **Example** (Updating and returning the new value)\n *\n * ```ts\n * import { Effect, Ref } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const counter = yield* Ref.make(5)\n *\n * // Update and get the new value in one operation\n * const newValue = yield* Ref.updateAndGet(counter, (n) => n * 3)\n * console.log(newValue) // 15\n *\n * // Verify the ref contains the new value\n * const current = yield* Ref.get(counter)\n * console.log(current) // 15\n * })\n * ```\n *\n * @see {@link update} for updating without returning the new value\n * @see {@link getAndUpdate} for returning the previous value instead\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const updateAndGet = /*#__PURE__*/dual(2, (self, f) => Effect.sync(() => self.ref.current = f(self.ref.current)));\n/**\n * Updates the value of the Ref atomically using the given partial function.\n *\n * **When to use**\n *\n * Use to apply a conditional update without returning a value.\n *\n * **Details**\n *\n * If the partial function returns `Option.some`, the Ref is updated with the\n * new value. If it returns `Option.none`, the Ref is left unchanged.\n *\n * **Example** (Conditionally updating a value)\n *\n * ```ts\n * import { Effect, Option, Ref } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const counter = yield* Ref.make(5)\n *\n * // Only update if value is even\n * yield* Ref.updateSome(\n * counter,\n * (n) => n % 2 === 0 ? Option.some(n * 2) : Option.none()\n * )\n *\n * let current = yield* Ref.get(counter)\n * console.log(current) // 5 (unchanged because 5 is odd)\n *\n * // Set to even number and try again\n * yield* Ref.set(counter, 6)\n * yield* Ref.updateSome(\n * counter,\n * (n) => n % 2 === 0 ? Option.some(n * 2) : Option.none()\n * )\n *\n * current = yield* Ref.get(counter)\n * console.log(current) // 12 (updated because 6 is even)\n * })\n * ```\n *\n * @see {@link update} for always applying an update\n * @see {@link updateSomeAndGet} for returning the resulting current value\n *\n * @category setters\n * @since 2.0.0\n */\nexport const updateSome = /*#__PURE__*/dual(2, (self, f) => Effect.sync(() => {\n const option = f(self.ref.current);\n if (option._tag === \"Some\") {\n self.ref.current = option.value;\n }\n}));\n/**\n * Updates the value of the Ref atomically using the given partial function and returns the current value.\n *\n * **When to use**\n *\n * Use to apply a conditional update and return the resulting current value.\n *\n * **Details**\n *\n * If the partial function returns `Option.some`, the Ref is updated with the\n * new value. If it returns `Option.none`, the Ref is left unchanged. The effect\n * returns the current value of the Ref after the potential update.\n *\n * **Example** (Conditionally updating and returning the current value)\n *\n * ```ts\n * import { Effect, Option, Ref } from \"effect\"\n *\n * const program = Effect.gen(function*() {\n * const counter = yield* Ref.make(10)\n *\n * // Only update if value is greater than 5\n * const result1 = yield* Ref.updateSomeAndGet(\n * counter,\n * (n) => n > 5 ? Option.some(n / 2) : Option.none()\n * )\n * console.log(result1) // 5 (updated and returned)\n *\n * // Try to update again with same condition\n * const result2 = yield* Ref.updateSomeAndGet(\n * counter,\n * (n) => n > 5 ? Option.some(n / 2) : Option.none()\n * )\n * console.log(result2) // 5 (unchanged because 5 is not > 5)\n * })\n * ```\n *\n * @see {@link updateSome} for conditional updates without returning a value\n * @see {@link updateAndGet} for always updating and returning the new value\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const updateSomeAndGet = /*#__PURE__*/dual(2, (self, pf) => Effect.sync(() => {\n const option = pf(self.ref.current);\n if (option._tag === \"Some\") {\n self.ref.current = option.value;\n }\n return self.ref.current;\n}));\n/**\n * Gets the current value of the Ref synchronously (unsafe version).\n *\n * **When to use**\n *\n * Use when you need immediate synchronous access and can guarantee that\n * reading the `Ref` outside of `Effect` is safe.\n *\n * **Gotchas**\n *\n * Prefer `Ref.get` for Effect-wrapped access in Effect programs.\n *\n * **Example** (Reading a ref unsafely)\n *\n * ```ts\n * import { Ref } from \"effect\"\n *\n * // Create a ref directly\n * const counter = Ref.makeUnsafe(42)\n *\n * // Get the value synchronously\n * const value = Ref.getUnsafe(counter)\n * console.log(value) // 42\n *\n * // Note: This is unsafe and should be used carefully\n * // Prefer Ref.get for Effect-wrapped access\n * ```\n *\n * @category getters\n * @since 4.0.0\n */\nexport const getUnsafe = self => self.ref.current;\n//# sourceMappingURL=Ref.js.map",
10
+ "/**\n * The `SynchronizedRef` module provides mutable references whose updates are\n * serialized, including updates that run effects before deciding the next\n * value. A `SynchronizedRef<A>` behaves like a `Ref<A>` for reading and basic\n * updates, but uses an internal semaphore so concurrent modifications observe a\n * consistent current value and apply one at a time.\n *\n * **When to use**\n *\n * Use to coordinate shared state that may be updated by many fibers\n * - Running effectful state transitions that must not overlap\n * - Computing both a return value and a new stored value atomically\n * - Applying partial updates with `Option`, where `None` leaves the value\n * unchanged\n *\n * **Gotchas**\n *\n * - Effectful update functions run while the semaphore is held, so long-running\n * effects delay other updates to the same ref\n * - Failed effectful updates do not replace the stored value\n * - `getUnsafe` and `makeUnsafe` bypass the `Effect` API and should be reserved\n * for low-level or carefully controlled code\n *\n * @since 2.0.0\n */\nimport * as Effect from \"./Effect.js\";\nimport { dual } from \"./Function.js\";\nimport { PipeInspectableProto } from \"./internal/core.js\";\nimport * as Option from \"./Option.js\";\nimport * as Ref from \"./Ref.js\";\nimport * as Semaphore from \"./Semaphore.js\";\nconst TypeId = \"~effect/SynchronizedRef\";\nconst Proto = {\n ...PipeInspectableProto,\n [TypeId]: TypeId,\n toJSON() {\n return {\n _id: \"SynchronizedRef\",\n value: this.backing.ref.current\n };\n }\n};\n/**\n * Creates a `SynchronizedRef` synchronously from an initial value.\n *\n * **When to use**\n *\n * Use when synchronous construction is required outside an Effect workflow.\n *\n * @category constructors\n * @since 4.0.0\n */\nexport const makeUnsafe = value => {\n const self = Object.create(Proto);\n self.semaphore = Semaphore.makeUnsafe(1);\n self.backing = Ref.makeUnsafe(value);\n return self;\n};\n/**\n * Creates a `SynchronizedRef` from an initial value, wrapped in an `Effect`.\n *\n * **When to use**\n *\n * Use to create a synchronized reference inside an Effect program when later\n * updates may run effects and must be serialized.\n *\n * **Details**\n *\n * The returned effect constructs a fresh `SynchronizedRef` by delegating to\n * `makeUnsafe` when the effect is evaluated.\n *\n * @see {@link makeUnsafe} for synchronous construction when the caller controls safe initialization\n * @see {@link Ref.make} for a plain `Ref` when updates do not need effectful synchronization\n *\n * @category constructors\n * @since 2.0.0\n */\nexport const make = value => Effect.sync(() => makeUnsafe(value));\n/**\n * Reads the current value synchronously, bypassing the `Effect` API and the\n * ref's semaphore.\n *\n * **When to use**\n *\n * Use when you need immediate synchronous access to a `SynchronizedRef` value\n * in low-level code that can safely read outside an `Effect`.\n *\n * @see {@link get} for the Effect-wrapped read when composing inside Effect programs\n *\n * @category getters\n * @since 4.0.0\n */\nexport const getUnsafe = self => self.backing.ref.current;\n/**\n * Returns an `Effect` that reads the current value of the `SynchronizedRef`.\n *\n * **When to use**\n *\n * Use to read the current value of a `SynchronizedRef` inside an `Effect`\n * program without changing it.\n *\n * @see {@link getUnsafe} for synchronous reads when the caller controls safe access outside `Effect`\n *\n * @category getters\n * @since 2.0.0\n */\nexport const get = self => Effect.sync(() => getUnsafe(self));\n/**\n * Sets a new value atomically and returns the previous value, serialized by the\n * ref's semaphore.\n *\n * **When to use**\n *\n * Use to replace a `SynchronizedRef` with a known value when the previous value\n * is also needed.\n *\n * @see {@link set} for setting a value without returning the previous value\n * @see {@link setAndGet} for setting a value and returning the new value\n * @see {@link getAndUpdate} for deriving the new value from the current value\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const getAndSet = /*#__PURE__*/dual(2, (self, value) => self.semaphore.withPermit(Ref.getAndSet(self.backing, value)));\n/**\n * Updates the current value atomically with a function and returns the previous\n * value, serialized by the ref's semaphore.\n *\n * **When to use**\n *\n * Use to run a pure state update when the previous stored value is also needed.\n *\n * @see {@link update} for updating without returning a value\n * @see {@link updateAndGet} for updating and returning the new value\n * @see {@link getAndUpdateEffect} for effectful updates that return the previous value\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const getAndUpdate = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Ref.getAndUpdate(self.backing, f)));\n/**\n * Runs an effectful update atomically while holding the ref's semaphore, sets\n * the new value if the effect succeeds, and returns the previous value.\n *\n * **When to use**\n *\n * Use when an effectful state transition must return the previous stored value.\n *\n * @see {@link getAndUpdate} for pure updates that return the previous value\n * @see {@link updateEffect} for effectful updates without returning a value\n * @see {@link updateAndGetEffect} for effectful updates that return the new value\n * @see {@link modifyEffect} for effectful updates with a custom return value\n * @see {@link getAndUpdateSomeEffect} for conditional effectful updates that return the previous value\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const getAndUpdateEffect = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Effect.suspend(() => {\n const value = getUnsafe(self);\n return Effect.map(f(value), newValue => {\n self.backing.ref.current = newValue;\n return value;\n });\n})));\n/**\n * Applies a partial update atomically and returns the previous value. If the\n * function returns `Option.some`, the ref is updated; if it returns\n * `Option.none`, the ref is left unchanged.\n *\n * **When to use**\n *\n * Use to return the previous value while applying a pure conditional update.\n *\n * @see {@link getAndUpdate} for always applying a pure update\n * @see {@link updateSome} for applying a pure conditional update without returning the previous value\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const getAndUpdateSome = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Ref.getAndUpdateSome(self, pf)));\n/**\n * Runs an effectful partial update atomically while holding the ref's semaphore\n * and returns the previous value. `Option.some` updates the ref; `Option.none`\n * leaves it unchanged.\n *\n * **When to use**\n *\n * Use to return the previous value while running an effectful conditional\n * update.\n *\n * @see {@link getAndUpdateSome} for the pure conditional variant\n * @see {@link updateSomeEffect} for effectful conditional updates without returning the previous value\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const getAndUpdateSomeEffect = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Effect.suspend(() => {\n const value = getUnsafe(self);\n return Effect.flatMap(pf(value), option => {\n if (Option.isNone(option)) {\n return Effect.succeed(value);\n }\n self.backing.ref.current = option.value;\n return Effect.succeed(value);\n });\n})));\n/**\n * Computes a return value and a new ref value atomically, stores the new value,\n * and returns the computed result.\n *\n * **When to use**\n *\n * Use to derive a separate result and the next stored value from the same\n * current value in one serialized pure update.\n *\n * @see {@link modifyEffect} for effectfully deriving both the result and next stored value\n * @see {@link modifySome} for deriving a result and optionally updating the stored value\n * @see {@link updateAndGet} for returning the new stored value instead of a separate result\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const modify = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Ref.modify(self.backing, f)));\n/**\n * Runs an effectful modification atomically while holding the ref's semaphore,\n * stores the new value if the effect succeeds, and returns the computed result.\n *\n * **When to use**\n *\n * Use to effectfully compute both a separate return value and the next stored\n * value in one serialized update.\n *\n * @see {@link modify} for the pure variant\n * @see {@link updateEffect} for effectfully storing a new value without a separate result\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const modifyEffect = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Effect.suspend(() => {\n const value = getUnsafe(self);\n return Effect.map(f(value), ([b, a]) => {\n self.backing.ref.current = a;\n return b;\n });\n})));\n/**\n * Computes a return value and an optional new ref value atomically.\n * `Option.some` updates the ref; `Option.none` leaves it unchanged.\n *\n * **When to use**\n *\n * Use to compute a return value while optionally updating the stored value.\n *\n * @see {@link modify} for always storing a new value\n * @see {@link updateSome} for optional updates without a separate return value\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const modifySome = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Ref.modifySome(self.backing, pf)));\n/**\n * Runs an effectful modification atomically while holding the ref's semaphore.\n * The effect computes a return value and an optional new ref value;\n * `Option.some` updates the ref and `Option.none` leaves it unchanged.\n *\n * **When to use**\n *\n * Use to effectfully compute a return value while optionally updating the\n * stored value.\n *\n * @see {@link modifySome} for the pure variant\n * @see {@link updateSomeEffect} for effectful optional updates without a separate return value\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const modifySomeEffect = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Effect.suspend(() => {\n const value = getUnsafe(self);\n return Effect.flatMap(pf(value), ([b, maybeA]) => {\n if (Option.isNone(maybeA)) {\n return Effect.succeed(b);\n }\n self.backing.ref.current = maybeA.value;\n return Effect.succeed(b);\n });\n})));\n/**\n * Sets the value of the `SynchronizedRef`, serialized by the ref's semaphore.\n *\n * **When to use**\n *\n * Use to replace the current value of a `SynchronizedRef` with a known value\n * while keeping the write serialized with other synchronized updates.\n *\n * @see {@link getAndSet} for replacing the value when the previous value is needed\n * @see {@link setAndGet} for replacing the value when the new value should be returned\n * @see {@link update} for deriving the next value from the current value\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const set = /*#__PURE__*/dual(2, (self, value) => self.semaphore.withPermit(Ref.set(self.backing, value)));\n/**\n * Sets the value of the `SynchronizedRef` and returns the new value.\n *\n * **When to use**\n *\n * Use to replace the current value with a known value and return that new\n * value.\n *\n * @see {@link set} for setting without returning a value\n * @see {@link getAndSet} for setting while returning the previous value\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const setAndGet = /*#__PURE__*/dual(2, (self, value) => self.semaphore.withPermit(Ref.setAndGet(self.backing, value)));\n/**\n * Updates the value of the `SynchronizedRef` with a function, serialized by the\n * ref's semaphore.\n *\n * **When to use**\n *\n * Use to apply a pure state transition to a `SynchronizedRef` as a serialized\n * `Effect`.\n *\n * @see {@link updateEffect} for effectfully deriving the next value\n * @see {@link updateAndGet} for returning the new stored value\n * @see {@link getAndUpdate} for returning the previous stored value\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const update = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Ref.update(self.backing, f)));\n/**\n * Runs an effectful update while holding the ref's semaphore and stores the new\n * value if the effect succeeds.\n *\n * **When to use**\n *\n * Use to run an effectful state transition on a `SynchronizedRef` when storing\n * the new value is the only result you need.\n *\n * @see {@link update} for a pure state transition\n * @see {@link getAndUpdateEffect} for returning the previous stored value\n * @see {@link updateAndGetEffect} for returning the new stored value\n * @see {@link modifyEffect} for returning a separate result while storing a new value\n * @see {@link updateSomeEffect} for effectfully applying only some state transitions\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const updateEffect = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Effect.suspend(() => {\n const value = getUnsafe(self);\n return Effect.map(f(value), newValue => {\n self.backing.ref.current = newValue;\n });\n})));\n/**\n * Updates the value of the `SynchronizedRef` with a function and returns the\n * new value.\n *\n * **When to use**\n *\n * Use to apply a pure state transition and return the new stored value.\n *\n * @see {@link update} for updating without returning the new value\n * @see {@link getAndUpdate} for updating while returning the previous value\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const updateAndGet = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Ref.updateAndGet(self.backing, f)));\n/**\n * Runs an effectful update while holding the ref's semaphore, stores the new\n * value if the effect succeeds, and returns that new value.\n *\n * **When to use**\n *\n * Use to run an effectful state transition and return the new stored value.\n *\n * @see {@link updateEffect} for effectful updates without returning the new value\n * @see {@link updateAndGet} for the pure variant\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const updateAndGetEffect = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Effect.suspend(() => {\n const value = getUnsafe(self);\n return Effect.map(f(value), newValue => {\n self.backing.ref.current = newValue;\n return newValue;\n });\n})));\n/**\n * Applies a partial update to the current value. `Option.some` stores the new\n * value; `Option.none` leaves the ref unchanged.\n *\n * **When to use**\n *\n * Use to apply a pure conditional update without returning a value.\n *\n * @see {@link update} for always applying a pure update\n * @see {@link updateSomeAndGet} for returning the resulting current value\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const updateSome = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Ref.updateSome(self.backing, f)));\n/**\n * Runs an effectful partial update while holding the ref's semaphore.\n * `Option.some` stores the new value; `Option.none` leaves the ref unchanged.\n *\n * **When to use**\n *\n * Use to run an effectful conditional update without returning a value.\n *\n * @see {@link updateSome} for the pure conditional variant\n * @see {@link updateEffect} for effectful updates that always store a new value\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const updateSomeEffect = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Effect.suspend(() => {\n const value = getUnsafe(self);\n return Effect.map(pf(value), option => {\n if (Option.isNone(option)) {\n return;\n }\n self.backing.ref.current = option.value;\n });\n})));\n/**\n * Applies a partial update and returns the resulting current value.\n * `Option.some` stores and returns the new value; `Option.none` returns the\n * unchanged value.\n *\n * **When to use**\n *\n * Use to apply a pure conditional update and return the resulting current\n * value.\n *\n * @see {@link updateSome} for conditional updates without returning a value\n * @see {@link updateAndGet} for always applying a pure update and returning the new value\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const updateSomeAndGet = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Ref.updateSomeAndGet(self.backing, pf)));\n/**\n * Runs an effectful partial update while holding the ref's semaphore and\n * returns the resulting current value. `Option.some` stores and returns the new\n * value; `Option.none` returns the unchanged value.\n *\n * **When to use**\n *\n * Use to run an effectful conditional update and return the resulting current\n * value.\n *\n * @see {@link updateSomeEffect} for effectful conditional updates without returning a value\n * @see {@link updateAndGetEffect} for effectful updates that always store and return a new value\n *\n * @category mutations\n * @since 2.0.0\n */\nexport const updateSomeAndGetEffect = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Effect.suspend(() => {\n const value = getUnsafe(self);\n return Effect.flatMap(pf(value), option => {\n if (Option.isNone(option)) {\n return Effect.succeed(value);\n }\n self.backing.ref.current = option.value;\n return Effect.succeed(option.value);\n });\n})));\n//# sourceMappingURL=SynchronizedRef.js.map"
11
+ ],
12
+ "mappings": ";o+BAkDA,SAAM,EAAS,mBAoBF,EAAa,KAAe,EAAY,EAAG,CAAM,EACxD,GAAQ,EACX,GAAS,GACT,OAAO,SAAS,EAAG,CAClB,GAAI,KAAK,MAAM,OAAS,SACtB,OAAgB,GAAM,EAExB,OAAO,KAAK,MAAM,QAAQ,OAAO,UAAU,MAE1C,EACH,MAAM,EAAG,CACP,MAAO,CACL,IAAK,WACL,MAAO,KAAK,KACd,EAEJ,EACM,GAAa,CAAC,EAAS,IAAa,CACxC,IAAM,EAAO,OAAO,OAAO,EAAK,EAMhC,OALA,EAAK,MAAQ,CACX,KAAM,OACN,SACF,EACA,EAAK,SAAW,EACT,GAiCI,EAAO,IAAa,GAAsB,EAAK,IAAM,GAAW,IAAI,IAAgB,GAAW,CAAC,CAAC,EAAG,KAAc,EAAQ,IAAM,CAC3I,IAAM,EAAQ,EAAI,MAClB,GAAI,EAAM,OAAS,SAAU,OAAc,EAC3C,EAAI,MAAQ,CACV,KAAM,QAC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,EAAG,KAAY,CAEtC,OADA,EAAK,QAAQ,IAAI,QAAU,EACpB,EACR,EACF,CAAC,CAAC,EAeU,GAA0B,EAAK,EAAG,CAAC,EAAM,IAAM,EAAK,UAAU,WAAe,GAAW,EAAK,QAAS,CAAC,CAAC,CAAC,EAezG,GAAgC,EAAK,EAAG,CAAC,EAAM,IAAO,EAAK,UAAU,WAAkB,EAAQ,IAAM,CAChH,IAAM,EAAQ,EAAU,CAAI,EAC5B,OAAc,EAAI,EAAG,CAAK,EAAG,KAAU,CACrC,GAAW,EAAO,CAAM,EACtB,OAEF,EAAK,QAAQ,IAAI,QAAU,EAAO,MACnC,EACF,CAAC,CAAC,EAiBU,GAAgC,EAAK,EAAG,CAAC,EAAM,IAAO,EAAK,UAAU,WAAe,GAAiB,EAAK,QAAS,CAAE,CAAC,CAAC,EAiBvH,GAAsC,EAAK,EAAG,CAAC,EAAM,IAAO,EAAK,UAAU,WAAkB,EAAQ,IAAM,CACtH,IAAM,EAAQ,EAAU,CAAI,EAC5B,OAAc,EAAQ,EAAG,CAAK,EAAG,KAAU,CACzC,GAAW,EAAO,CAAM,EACtB,OAAc,EAAQ,CAAK,EAG7B,OADA,EAAK,QAAQ,IAAI,QAAU,EAAO,MACpB,EAAQ,EAAO,KAAK,EACnC,EACF,CAAC,CAAC",
13
+ "debugId": "85F9DEDC00B9E32B64756E2164756E21",
14
+ "names": []
15
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../node_modules/.bun/@aws-sdk+nested-clients@3.997.13/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js"],
4
+ "sourcesContent": [
5
+ "'use strict';\n\nvar client$1 = require('@aws-sdk/core/client');\nvar core = require('@smithy/core');\nvar client = require('@smithy/core/client');\nvar config = require('@smithy/core/config');\nvar endpoints = require('@smithy/core/endpoints');\nvar protocols = require('@smithy/core/protocols');\nvar retry = require('@smithy/core/retry');\nvar schema = require('@smithy/core/schema');\nvar httpAuthSchemes = require('@aws-sdk/core/httpAuthSchemes');\nvar serde = require('@smithy/core/serde');\nvar nodeHttpHandler = require('@smithy/node-http-handler');\nvar protocols$1 = require('@aws-sdk/core/protocols');\n\nconst defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {\n return {\n operation: client.getSmithyContext(context).operation,\n region: (await client.normalizeProvider(config.region)()) ||\n (() => {\n throw new Error(\"expected `region` to be configured for `aws.auth#sigv4`\");\n })(),\n };\n};\nfunction createAwsAuthSigv4HttpAuthOption(authParameters) {\n return {\n schemeId: \"aws.auth#sigv4\",\n signingProperties: {\n name: \"sso-oauth\",\n region: authParameters.region,\n },\n propertiesExtractor: (config, context) => ({\n signingProperties: {\n config,\n context,\n },\n }),\n };\n}\nfunction createSmithyApiNoAuthHttpAuthOption(authParameters) {\n return {\n schemeId: \"smithy.api#noAuth\",\n };\n}\nconst defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {\n const options = [];\n switch (authParameters.operation) {\n case \"CreateToken\": {\n options.push(createSmithyApiNoAuthHttpAuthOption());\n break;\n }\n default: {\n options.push(createAwsAuthSigv4HttpAuthOption(authParameters));\n }\n }\n return options;\n};\nconst resolveHttpAuthSchemeConfig = (config) => {\n const config_0 = httpAuthSchemes.resolveAwsSdkSigV4Config(config);\n return Object.assign(config_0, {\n authSchemePreference: client.normalizeProvider(config.authSchemePreference ?? []),\n });\n};\n\nconst resolveClientEndpointParameters = (options) => {\n return Object.assign(options, {\n useDualstackEndpoint: options.useDualstackEndpoint ?? false,\n useFipsEndpoint: options.useFipsEndpoint ?? false,\n defaultSigningName: \"sso-oauth\",\n });\n};\nconst commonParams = {\n UseFIPS: { type: \"builtInParams\", name: \"useFipsEndpoint\" },\n Endpoint: { type: \"builtInParams\", name: \"endpoint\" },\n Region: { type: \"builtInParams\", name: \"region\" },\n UseDualStack: { type: \"builtInParams\", name: \"useDualstackEndpoint\" },\n};\n\nvar version = \"3.997.12\";\nvar packageInfo = {\n\tversion: version};\n\nconst k = \"ref\";\nconst a = -1, b = true, c = \"isSet\", d = \"PartitionResult\", e = \"booleanEquals\", f = \"getAttr\", g = { [k]: \"Endpoint\" }, h = { [k]: d }, i = {}, j = [{ [k]: \"Region\" }];\nconst _data = {\n conditions: [\n [c, [g]],\n [c, j],\n [\"aws.partition\", j, d],\n [e, [{ [k]: \"UseFIPS\" }, b]],\n [e, [{ [k]: \"UseDualStack\" }, b]],\n [e, [{ fn: f, argv: [h, \"supportsDualStack\"] }, b]],\n [e, [{ fn: f, argv: [h, \"supportsFIPS\"] }, b]],\n [\"stringEquals\", [{ fn: f, argv: [h, \"name\"] }, \"aws-us-gov\"]],\n ],\n results: [\n [a],\n [a, \"Invalid Configuration: FIPS and custom endpoint are not supported\"],\n [a, \"Invalid Configuration: Dualstack and custom endpoint are not supported\"],\n [g, i],\n [\"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}\", i],\n [a, \"FIPS and DualStack are enabled, but this partition does not support one or both\"],\n [\"https://oidc.{Region}.amazonaws.com\", i],\n [\"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}\", i],\n [a, \"FIPS is enabled but this partition does not support FIPS\"],\n [\"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}\", i],\n [a, \"DualStack is enabled but this partition does not support DualStack\"],\n [\"https://oidc.{Region}.{PartitionResult#dnsSuffix}\", i],\n [a, \"Invalid Configuration: Missing Region\"],\n ],\n};\nconst root = 2;\nconst r = 100_000_000;\nconst nodes = new Int32Array([\n -1,\n 1,\n -1,\n 0,\n 13,\n 3,\n 1,\n 4,\n r + 12,\n 2,\n 5,\n r + 12,\n 3,\n 8,\n 6,\n 4,\n 7,\n r + 11,\n 5,\n r + 9,\n r + 10,\n 4,\n 11,\n 9,\n 6,\n 10,\n r + 8,\n 7,\n r + 6,\n r + 7,\n 5,\n 12,\n r + 5,\n 6,\n r + 4,\n r + 5,\n 3,\n r + 1,\n 14,\n 4,\n r + 2,\n r + 3,\n]);\nconst bdd = endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);\n\nconst cache = new endpoints.EndpointCache({\n size: 50,\n params: [\"Endpoint\", \"Region\", \"UseDualStack\", \"UseFIPS\"],\n});\nconst defaultEndpointResolver = (endpointParams, context = {}) => {\n return cache.get(endpointParams, () => endpoints.decideEndpoint(bdd, {\n endpointParams: endpointParams,\n logger: context.logger,\n }));\n};\nendpoints.customEndpointFunctions.aws = client$1.awsEndpointFunctions;\n\nclass SSOOIDCServiceException extends client.ServiceException {\n constructor(options) {\n super(options);\n Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);\n }\n}\n\nclass AccessDeniedException extends SSOOIDCServiceException {\n name = \"AccessDeniedException\";\n $fault = \"client\";\n error;\n reason;\n error_description;\n constructor(opts) {\n super({\n name: \"AccessDeniedException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, AccessDeniedException.prototype);\n this.error = opts.error;\n this.reason = opts.reason;\n this.error_description = opts.error_description;\n }\n}\nclass AuthorizationPendingException extends SSOOIDCServiceException {\n name = \"AuthorizationPendingException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"AuthorizationPendingException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, AuthorizationPendingException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nclass ExpiredTokenException extends SSOOIDCServiceException {\n name = \"ExpiredTokenException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"ExpiredTokenException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, ExpiredTokenException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nclass InternalServerException extends SSOOIDCServiceException {\n name = \"InternalServerException\";\n $fault = \"server\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"InternalServerException\",\n $fault: \"server\",\n ...opts,\n });\n Object.setPrototypeOf(this, InternalServerException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nclass InvalidClientException extends SSOOIDCServiceException {\n name = \"InvalidClientException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"InvalidClientException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidClientException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nclass InvalidGrantException extends SSOOIDCServiceException {\n name = \"InvalidGrantException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"InvalidGrantException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidGrantException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nclass InvalidRequestException extends SSOOIDCServiceException {\n name = \"InvalidRequestException\";\n $fault = \"client\";\n error;\n reason;\n error_description;\n constructor(opts) {\n super({\n name: \"InvalidRequestException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidRequestException.prototype);\n this.error = opts.error;\n this.reason = opts.reason;\n this.error_description = opts.error_description;\n }\n}\nclass InvalidScopeException extends SSOOIDCServiceException {\n name = \"InvalidScopeException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"InvalidScopeException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, InvalidScopeException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nclass SlowDownException extends SSOOIDCServiceException {\n name = \"SlowDownException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"SlowDownException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, SlowDownException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nclass UnauthorizedClientException extends SSOOIDCServiceException {\n name = \"UnauthorizedClientException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"UnauthorizedClientException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, UnauthorizedClientException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\nclass UnsupportedGrantTypeException extends SSOOIDCServiceException {\n name = \"UnsupportedGrantTypeException\";\n $fault = \"client\";\n error;\n error_description;\n constructor(opts) {\n super({\n name: \"UnsupportedGrantTypeException\",\n $fault: \"client\",\n ...opts,\n });\n Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n}\n\nconst _ADE = \"AccessDeniedException\";\nconst _APE = \"AuthorizationPendingException\";\nconst _AT = \"AccessToken\";\nconst _CS = \"ClientSecret\";\nconst _CT = \"CreateToken\";\nconst _CTR = \"CreateTokenRequest\";\nconst _CTRr = \"CreateTokenResponse\";\nconst _CV = \"CodeVerifier\";\nconst _ETE = \"ExpiredTokenException\";\nconst _ICE = \"InvalidClientException\";\nconst _IGE = \"InvalidGrantException\";\nconst _IRE = \"InvalidRequestException\";\nconst _ISE = \"InternalServerException\";\nconst _ISEn = \"InvalidScopeException\";\nconst _IT = \"IdToken\";\nconst _RT = \"RefreshToken\";\nconst _SDE = \"SlowDownException\";\nconst _UCE = \"UnauthorizedClientException\";\nconst _UGTE = \"UnsupportedGrantTypeException\";\nconst _aT = \"accessToken\";\nconst _c = \"client\";\nconst _cI = \"clientId\";\nconst _cS = \"clientSecret\";\nconst _cV = \"codeVerifier\";\nconst _co = \"code\";\nconst _dC = \"deviceCode\";\nconst _e = \"error\";\nconst _eI = \"expiresIn\";\nconst _ed = \"error_description\";\nconst _gT = \"grantType\";\nconst _h = \"http\";\nconst _hE = \"httpError\";\nconst _iT = \"idToken\";\nconst _r = \"reason\";\nconst _rT = \"refreshToken\";\nconst _rU = \"redirectUri\";\nconst _s = \"smithy.ts.sdk.synthetic.com.amazonaws.ssooidc\";\nconst _sc = \"scope\";\nconst _se = \"server\";\nconst _tT = \"tokenType\";\nconst n0 = \"com.amazonaws.ssooidc\";\nconst _s_registry = schema.TypeRegistry.for(_s);\nvar SSOOIDCServiceException$ = [-3, _s, \"SSOOIDCServiceException\", 0, [], []];\n_s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);\nconst n0_registry = schema.TypeRegistry.for(n0);\nvar AccessDeniedException$ = [\n -3,\n n0,\n _ADE,\n { [_e]: _c, [_hE]: 400 },\n [_e, _r, _ed],\n [0, 0, 0],\n];\nn0_registry.registerError(AccessDeniedException$, AccessDeniedException);\nvar AuthorizationPendingException$ = [\n -3,\n n0,\n _APE,\n { [_e]: _c, [_hE]: 400 },\n [_e, _ed],\n [0, 0],\n];\nn0_registry.registerError(AuthorizationPendingException$, AuthorizationPendingException);\nvar ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];\nn0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);\nvar InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];\nn0_registry.registerError(InternalServerException$, InternalServerException);\nvar InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];\nn0_registry.registerError(InvalidClientException$, InvalidClientException);\nvar InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];\nn0_registry.registerError(InvalidGrantException$, InvalidGrantException);\nvar InvalidRequestException$ = [\n -3,\n n0,\n _IRE,\n { [_e]: _c, [_hE]: 400 },\n [_e, _r, _ed],\n [0, 0, 0],\n];\nn0_registry.registerError(InvalidRequestException$, InvalidRequestException);\nvar InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];\nn0_registry.registerError(InvalidScopeException$, InvalidScopeException);\nvar SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];\nn0_registry.registerError(SlowDownException$, SlowDownException);\nvar UnauthorizedClientException$ = [\n -3,\n n0,\n _UCE,\n { [_e]: _c, [_hE]: 400 },\n [_e, _ed],\n [0, 0],\n];\nn0_registry.registerError(UnauthorizedClientException$, UnauthorizedClientException);\nvar UnsupportedGrantTypeException$ = [\n -3,\n n0,\n _UGTE,\n { [_e]: _c, [_hE]: 400 },\n [_e, _ed],\n [0, 0],\n];\nn0_registry.registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);\nconst errorTypeRegistries = [_s_registry, n0_registry];\nvar AccessToken = [0, n0, _AT, 8, 0];\nvar ClientSecret = [0, n0, _CS, 8, 0];\nvar CodeVerifier = [0, n0, _CV, 8, 0];\nvar IdToken = [0, n0, _IT, 8, 0];\nvar RefreshToken = [0, n0, _RT, 8, 0];\nvar CreateTokenRequest$ = [\n 3,\n n0,\n _CTR,\n 0,\n [_cI, _cS, _gT, _dC, _co, _rT, _sc, _rU, _cV],\n [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],\n 3,\n];\nvar CreateTokenResponse$ = [\n 3,\n n0,\n _CTRr,\n 0,\n [_aT, _tT, _eI, _rT, _iT],\n [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],\n];\nvar CreateToken$ = [\n 9,\n n0,\n _CT,\n { [_h]: [\"POST\", \"/token\", 200] },\n () => CreateTokenRequest$,\n () => CreateTokenResponse$,\n];\n\nconst getRuntimeConfig$1 = (config) => {\n return {\n apiVersion: \"2019-06-10\",\n base64Decoder: config?.base64Decoder ?? serde.fromBase64,\n base64Encoder: config?.base64Encoder ?? serde.toBase64,\n disableHostPrefix: config?.disableHostPrefix ?? false,\n endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,\n extensions: config?.extensions ?? [],\n httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOOIDCHttpAuthSchemeProvider,\n httpAuthSchemes: config?.httpAuthSchemes ?? [\n {\n schemeId: \"aws.auth#sigv4\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"aws.auth#sigv4\"),\n signer: new httpAuthSchemes.AwsSdkSigV4Signer(),\n },\n {\n schemeId: \"smithy.api#noAuth\",\n identityProvider: (ipc) => ipc.getIdentityProvider(\"smithy.api#noAuth\") || (async () => ({})),\n signer: new core.NoAuthSigner(),\n },\n ],\n logger: config?.logger ?? new client.NoOpLogger(),\n protocol: config?.protocol ?? protocols$1.AwsRestJsonProtocol,\n protocolSettings: config?.protocolSettings ?? {\n defaultNamespace: \"com.amazonaws.ssooidc\",\n errorTypeRegistries,\n version: \"2019-06-10\",\n serviceTarget: \"AWSSSOOIDCService\",\n },\n serviceId: config?.serviceId ?? \"SSO OIDC\",\n urlParser: config?.urlParser ?? protocols.parseUrl,\n utf8Decoder: config?.utf8Decoder ?? serde.fromUtf8,\n utf8Encoder: config?.utf8Encoder ?? serde.toUtf8,\n };\n};\n\nconst getRuntimeConfig = (config$1) => {\n client.emitWarningIfUnsupportedVersion(process.version);\n const defaultsMode = config.resolveDefaultsModeConfig(config$1);\n const defaultConfigProvider = () => defaultsMode().then(client.loadConfigsForDefaultMode);\n const clientSharedValues = getRuntimeConfig$1(config$1);\n client$1.emitWarningIfUnsupportedVersion(process.version);\n const loaderConfig = {\n profile: config$1?.profile,\n logger: clientSharedValues.logger,\n };\n return {\n ...clientSharedValues,\n ...config$1,\n runtime: \"node\",\n defaultsMode,\n authSchemePreference: config$1?.authSchemePreference ?? config.loadConfig(httpAuthSchemes.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),\n bodyLengthChecker: config$1?.bodyLengthChecker ?? serde.calculateBodyLength,\n defaultUserAgentProvider: config$1?.defaultUserAgentProvider ??\n client$1.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),\n maxAttempts: config$1?.maxAttempts ?? config.loadConfig(retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config$1),\n region: config$1?.region ??\n config.loadConfig(config.NODE_REGION_CONFIG_OPTIONS, { ...config.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),\n requestHandler: nodeHttpHandler.NodeHttpHandler.create(config$1?.requestHandler ?? defaultConfigProvider),\n retryMode: config$1?.retryMode ??\n config.loadConfig({\n ...retry.NODE_RETRY_MODE_CONFIG_OPTIONS,\n default: async () => (await defaultConfigProvider()).retryMode || retry.DEFAULT_RETRY_MODE,\n }, config$1),\n sha256: config$1?.sha256 ?? serde.Hash.bind(null, \"sha256\"),\n streamCollector: config$1?.streamCollector ?? nodeHttpHandler.streamCollector,\n useDualstackEndpoint: config$1?.useDualstackEndpoint ?? config.loadConfig(config.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n useFipsEndpoint: config$1?.useFipsEndpoint ?? config.loadConfig(config.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),\n userAgentAppId: config$1?.userAgentAppId ?? config.loadConfig(client$1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),\n };\n};\n\nconst getHttpAuthExtensionConfiguration = (runtimeConfig) => {\n const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;\n let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;\n let _credentials = runtimeConfig.credentials;\n return {\n setHttpAuthScheme(httpAuthScheme) {\n const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);\n if (index === -1) {\n _httpAuthSchemes.push(httpAuthScheme);\n }\n else {\n _httpAuthSchemes.splice(index, 1, httpAuthScheme);\n }\n },\n httpAuthSchemes() {\n return _httpAuthSchemes;\n },\n setHttpAuthSchemeProvider(httpAuthSchemeProvider) {\n _httpAuthSchemeProvider = httpAuthSchemeProvider;\n },\n httpAuthSchemeProvider() {\n return _httpAuthSchemeProvider;\n },\n setCredentials(credentials) {\n _credentials = credentials;\n },\n credentials() {\n return _credentials;\n },\n };\n};\nconst resolveHttpAuthRuntimeConfig = (config) => {\n return {\n httpAuthSchemes: config.httpAuthSchemes(),\n httpAuthSchemeProvider: config.httpAuthSchemeProvider(),\n credentials: config.credentials(),\n };\n};\n\nconst resolveRuntimeExtensions = (runtimeConfig, extensions) => {\n const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));\n extensions.forEach((extension) => extension.configure(extensionConfiguration));\n return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));\n};\n\nclass SSOOIDCClient extends client.Client {\n config;\n constructor(...[configuration]) {\n const _config_0 = getRuntimeConfig(configuration || {});\n super(_config_0);\n this.initConfig = _config_0;\n const _config_1 = resolveClientEndpointParameters(_config_0);\n const _config_2 = client$1.resolveUserAgentConfig(_config_1);\n const _config_3 = retry.resolveRetryConfig(_config_2);\n const _config_4 = config.resolveRegionConfig(_config_3);\n const _config_5 = client$1.resolveHostHeaderConfig(_config_4);\n const _config_6 = endpoints.resolveEndpointConfig(_config_5);\n const _config_7 = resolveHttpAuthSchemeConfig(_config_6);\n const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);\n this.config = _config_8;\n this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));\n this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));\n this.middlewareStack.use(retry.getRetryPlugin(this.config));\n this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));\n this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));\n this.middlewareStack.use(client$1.getLoggerPlugin(this.config));\n this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));\n this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {\n httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider,\n identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({\n \"aws.auth#sigv4\": config.credentials,\n }),\n }));\n this.middlewareStack.use(core.getHttpSigningPlugin(this.config));\n }\n destroy() {\n super.destroy();\n }\n}\n\nclass CreateTokenCommand extends client.Command\n .classBuilder()\n .ep(commonParams)\n .m(function (Command, cs, config, o) {\n return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];\n})\n .s(\"AWSSSOOIDCService\", \"CreateToken\", {})\n .n(\"SSOOIDCClient\", \"CreateTokenCommand\")\n .sc(CreateToken$)\n .build() {\n}\n\nconst commands = {\n CreateTokenCommand,\n};\nclass SSOOIDC extends SSOOIDCClient {\n}\nclient.createAggregatedClient(commands, SSOOIDC);\n\nconst AccessDeniedExceptionReason = {\n KMS_ACCESS_DENIED: \"KMS_AccessDeniedException\",\n};\nconst InvalidRequestExceptionReason = {\n KMS_DISABLED_KEY: \"KMS_DisabledException\",\n KMS_INVALID_KEY_USAGE: \"KMS_InvalidKeyUsageException\",\n KMS_INVALID_STATE: \"KMS_InvalidStateException\",\n KMS_KEY_NOT_FOUND: \"KMS_NotFoundException\",\n};\n\nexports.$Command = client.Command;\nexports.__Client = client.Client;\nexports.AccessDeniedException = AccessDeniedException;\nexports.AccessDeniedException$ = AccessDeniedException$;\nexports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;\nexports.AuthorizationPendingException = AuthorizationPendingException;\nexports.AuthorizationPendingException$ = AuthorizationPendingException$;\nexports.CreateToken$ = CreateToken$;\nexports.CreateTokenCommand = CreateTokenCommand;\nexports.CreateTokenRequest$ = CreateTokenRequest$;\nexports.CreateTokenResponse$ = CreateTokenResponse$;\nexports.ExpiredTokenException = ExpiredTokenException;\nexports.ExpiredTokenException$ = ExpiredTokenException$;\nexports.InternalServerException = InternalServerException;\nexports.InternalServerException$ = InternalServerException$;\nexports.InvalidClientException = InvalidClientException;\nexports.InvalidClientException$ = InvalidClientException$;\nexports.InvalidGrantException = InvalidGrantException;\nexports.InvalidGrantException$ = InvalidGrantException$;\nexports.InvalidRequestException = InvalidRequestException;\nexports.InvalidRequestException$ = InvalidRequestException$;\nexports.InvalidRequestExceptionReason = InvalidRequestExceptionReason;\nexports.InvalidScopeException = InvalidScopeException;\nexports.InvalidScopeException$ = InvalidScopeException$;\nexports.SSOOIDC = SSOOIDC;\nexports.SSOOIDCClient = SSOOIDCClient;\nexports.SSOOIDCServiceException = SSOOIDCServiceException;\nexports.SSOOIDCServiceException$ = SSOOIDCServiceException$;\nexports.SlowDownException = SlowDownException;\nexports.SlowDownException$ = SlowDownException$;\nexports.UnauthorizedClientException = UnauthorizedClientException;\nexports.UnauthorizedClientException$ = UnauthorizedClientException$;\nexports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;\nexports.UnsupportedGrantTypeException$ = UnsupportedGrantTypeException$;\nexports.errorTypeRegistries = errorTypeRegistries;\n"
6
+ ],
7
+ "mappings": ";sVAEA,SAAI,YACA,YACA,YACA,YACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,QAEE,GAAiD,MAAO,EAAQ,EAAS,IAAU,CACrF,MAAO,CACH,UAAW,EAAO,iBAAiB,CAAO,EAAE,UAC5C,OAAS,MAAM,EAAO,kBAAkB,EAAO,MAAM,EAAE,IAClD,IAAM,CACH,MAAU,MAAM,yDAAyD,IAC1E,CACX,GAEJ,SAAS,EAAgC,CAAC,EAAgB,CACtD,MAAO,CACH,SAAU,iBACV,kBAAmB,CACf,KAAM,YACN,OAAQ,EAAe,MAC3B,EACA,oBAAqB,CAAC,EAAQ,KAAa,CACvC,kBAAmB,CACf,SACA,SACJ,CACJ,EACJ,EAEJ,SAAS,EAAmC,CAAC,EAAgB,CACzD,MAAO,CACH,SAAU,mBACd,EAEJ,IAAM,GAAuC,CAAC,IAAmB,CAC7D,IAAM,EAAU,CAAC,EACjB,OAAQ,EAAe,eACd,cAAe,CAChB,EAAQ,KAAK,GAAoC,CAAC,EAClD,KACJ,SAEI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b,GAAG,EAAY,EACf,EAAE,QAAS,CAAC,EAAS,EAAI,EAAQ,EAAG,CACrC,MAAO,CAAC,EAAU,kBAAkB,EAAQ,EAAQ,iCAAiC,CAAC,CAAC,EAC1F,EACI,EAAE,oBAAqB,cAAe,CAAC,CAAC,EACxC,EAAE,gBAAiB,oBAAoB,EACvC,GAAG,EAAY,EACf,MAAM,CAAE,CACb,CAEA,IAAM,GAAW,CACb,oBACJ,EACA,MAAM,UAAgB,CAAc,CACpC,CACA,EAAO,uBAAuB,GAAU,CAAO,EAE/C,IAAM,GAA8B,CAChC,kBAAmB,2BACvB,EACM,GAAgC,CAClC,iBAAkB,wBAClB,sBAAuB,+BACvB,kBAAmB,4BACnB,kBAAmB,uBACvB,EAEA,IAA0B,QAAlB,GACkB,OAAlB,IAAW,EACX,GAAwB,EACxB,GAAyB,GACzB,GAA8B,GAC9B,GAAgC,EAChC,GAAiC,GACjC,GAAe,GACf,GAAqB,EACrB,GAAsB,GACtB,GAAuB,GACvB,GAAwB,EACxB,GAAyB,GACzB,GAA0B,EAC1B,GAA2B,GAC3B,GAAyB,EACzB,GAA0B,GAC1B,GAAwB,EACxB,GAAyB,GACzB,GAA0B,EAC1B,GAA2B,GAC3B,GAAgC,GAChC,GAAwB,EACxB,GAAyB,GACzB,GAAU,EACV,GAAgB,EAChB,GAA0B,EAC1B,GAA2B,GAC3B,GAAoB,EACpB,GAAqB,GACrB,GAA8B,EAC9B,GAA+B,GAC/B,GAAgC,EAChC,GAAiC,GACjC,GAAsB",
8
+ "debugId": "5F9595E7D3102D2E64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "815C68B41A5F369E64756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "99903D3BE70094B264756E2164756E21",
8
+ "names": []
9
+ }