@freecodecamp/universe-cli 0.10.0 → 0.10.1

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 (2) hide show
  1. package/dist/index.cjs +991 -714
  2. package/package.json +7 -7
package/dist/index.cjs CHANGED
@@ -3044,20 +3044,27 @@ const { program, createCommand, createArgument, createOption, CommanderError, In
3044
3044
  exports.InvalidOptionArgumentError = InvalidArgumentError;
3045
3045
  })))(), 1)).default;
3046
3046
  //#endregion
3047
- //#region node_modules/.pnpm/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.js
3048
- const isAmbiguous = (x) => {
3049
- return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
3050
- };
3047
+ //#region node_modules/.pnpm/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/utils.js
3048
+ const getCodePointsLength = (() => {
3049
+ const SURROGATE_PAIR_RE = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
3050
+ return (input) => {
3051
+ let surrogatePairsNr = 0;
3052
+ SURROGATE_PAIR_RE.lastIndex = 0;
3053
+ while (SURROGATE_PAIR_RE.test(input)) surrogatePairsNr += 1;
3054
+ return input.length - surrogatePairsNr;
3055
+ };
3056
+ })();
3051
3057
  const isFullWidth = (x) => {
3052
3058
  return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
3053
3059
  };
3054
- const isWide = (x) => {
3055
- return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9800 && x <= 9811 || x === 9855 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12771 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 19903 || x >= 19968 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101632 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129672 || x >= 129680 && x <= 129725 || x >= 129727 && x <= 129733 || x >= 129742 && x <= 129755 || x >= 129760 && x <= 129768 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
3060
+ const isWideNotCJKTNotEmoji = (x) => {
3061
+ return x === 8987 || x === 9001 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12771 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 19903 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
3056
3062
  };
3057
3063
  //#endregion
3058
- //#region node_modules/.pnpm/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.js
3059
- const ANSI_RE = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y;
3064
+ //#region node_modules/.pnpm/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/index.js
3065
+ const ANSI_RE = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y;
3060
3066
  const CONTROL_RE = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
3067
+ const CJKT_WIDE_RE = /(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/uy;
3061
3068
  const TAB_RE = /\t{1,1000}/y;
3062
3069
  const EMOJI_RE = /[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/uy;
3063
3070
  const LATIN_RE = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
@@ -3070,14 +3077,21 @@ const getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {
3070
3077
  const LIMIT = truncationOptions.limit ?? Infinity;
3071
3078
  const ELLIPSIS = truncationOptions.ellipsis ?? "";
3072
3079
  const ELLIPSIS_WIDTH = truncationOptions?.ellipsisWidth ?? (ELLIPSIS ? getStringTruncatedWidth(ELLIPSIS, NO_TRUNCATION$1, widthOptions).width : 0);
3073
- const ANSI_WIDTH = widthOptions.ansiWidth ?? 0;
3080
+ const ANSI_WIDTH = 0;
3074
3081
  const CONTROL_WIDTH = widthOptions.controlWidth ?? 0;
3075
3082
  const TAB_WIDTH = widthOptions.tabWidth ?? 8;
3076
- const AMBIGUOUS_WIDTH = widthOptions.ambiguousWidth ?? 1;
3077
3083
  const EMOJI_WIDTH = widthOptions.emojiWidth ?? 2;
3078
- const FULL_WIDTH_WIDTH = widthOptions.fullWidthWidth ?? 2;
3084
+ const FULL_WIDTH_WIDTH = 2;
3079
3085
  const REGULAR_WIDTH = widthOptions.regularWidth ?? 1;
3080
- const WIDE_WIDTH = widthOptions.wideWidth ?? 2;
3086
+ const WIDE_WIDTH = widthOptions.wideWidth ?? FULL_WIDTH_WIDTH;
3087
+ const PARSE_BLOCKS = [
3088
+ [LATIN_RE, REGULAR_WIDTH],
3089
+ [ANSI_RE, ANSI_WIDTH],
3090
+ [CONTROL_RE, CONTROL_WIDTH],
3091
+ [TAB_RE, TAB_WIDTH],
3092
+ [EMOJI_RE, EMOJI_WIDTH],
3093
+ [CJKT_WIDE_RE, WIDE_WIDTH]
3094
+ ];
3081
3095
  let indexPrev = 0;
3082
3096
  let index = 0;
3083
3097
  let length = input.length;
@@ -3096,8 +3110,7 @@ const getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {
3096
3110
  for (const char of unmatched.replaceAll(MODIFIER_RE, "")) {
3097
3111
  const codePoint = char.codePointAt(0) || 0;
3098
3112
  if (isFullWidth(codePoint)) widthExtra = FULL_WIDTH_WIDTH;
3099
- else if (isWide(codePoint)) widthExtra = WIDE_WIDTH;
3100
- else if (AMBIGUOUS_WIDTH !== REGULAR_WIDTH && isAmbiguous(codePoint)) widthExtra = AMBIGUOUS_WIDTH;
3113
+ else if (isWideNotCJKTNotEmoji(codePoint)) widthExtra = WIDE_WIDTH;
3101
3114
  else widthExtra = REGULAR_WIDTH;
3102
3115
  if (width + widthExtra > truncationLimit) truncationIndex = Math.min(truncationIndex, Math.max(unmatchedStart, indexPrev) + lengthExtra);
3103
3116
  if (width + widthExtra > LIMIT) {
@@ -3109,77 +3122,24 @@ const getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {
3109
3122
  }
3110
3123
  unmatchedStart = unmatchedEnd = 0;
3111
3124
  }
3112
- if (index >= length) break;
3113
- LATIN_RE.lastIndex = index;
3114
- if (LATIN_RE.test(input)) {
3115
- lengthExtra = LATIN_RE.lastIndex - index;
3116
- widthExtra = lengthExtra * REGULAR_WIDTH;
3117
- if (width + widthExtra > truncationLimit) truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / REGULAR_WIDTH));
3118
- if (width + widthExtra > LIMIT) {
3119
- truncationEnabled = true;
3120
- break;
3121
- }
3122
- width += widthExtra;
3123
- unmatchedStart = indexPrev;
3124
- unmatchedEnd = index;
3125
- index = indexPrev = LATIN_RE.lastIndex;
3126
- continue;
3127
- }
3128
- ANSI_RE.lastIndex = index;
3129
- if (ANSI_RE.test(input)) {
3130
- if (width + ANSI_WIDTH > truncationLimit) truncationIndex = Math.min(truncationIndex, index);
3131
- if (width + ANSI_WIDTH > LIMIT) {
3132
- truncationEnabled = true;
3133
- break;
3134
- }
3135
- width += ANSI_WIDTH;
3136
- unmatchedStart = indexPrev;
3137
- unmatchedEnd = index;
3138
- index = indexPrev = ANSI_RE.lastIndex;
3139
- continue;
3140
- }
3141
- CONTROL_RE.lastIndex = index;
3142
- if (CONTROL_RE.test(input)) {
3143
- lengthExtra = CONTROL_RE.lastIndex - index;
3144
- widthExtra = lengthExtra * CONTROL_WIDTH;
3145
- if (width + widthExtra > truncationLimit) truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / CONTROL_WIDTH));
3146
- if (width + widthExtra > LIMIT) {
3147
- truncationEnabled = true;
3148
- break;
3149
- }
3150
- width += widthExtra;
3151
- unmatchedStart = indexPrev;
3152
- unmatchedEnd = index;
3153
- index = indexPrev = CONTROL_RE.lastIndex;
3154
- continue;
3155
- }
3156
- TAB_RE.lastIndex = index;
3157
- if (TAB_RE.test(input)) {
3158
- lengthExtra = TAB_RE.lastIndex - index;
3159
- widthExtra = lengthExtra * TAB_WIDTH;
3160
- if (width + widthExtra > truncationLimit) truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / TAB_WIDTH));
3161
- if (width + widthExtra > LIMIT) {
3162
- truncationEnabled = true;
3163
- break;
3164
- }
3165
- width += widthExtra;
3166
- unmatchedStart = indexPrev;
3167
- unmatchedEnd = index;
3168
- index = indexPrev = TAB_RE.lastIndex;
3169
- continue;
3170
- }
3171
- EMOJI_RE.lastIndex = index;
3172
- if (EMOJI_RE.test(input)) {
3173
- if (width + EMOJI_WIDTH > truncationLimit) truncationIndex = Math.min(truncationIndex, index);
3174
- if (width + EMOJI_WIDTH > LIMIT) {
3175
- truncationEnabled = true;
3176
- break;
3125
+ if (index >= length) break outer;
3126
+ for (let i = 0, l = PARSE_BLOCKS.length; i < l; i++) {
3127
+ const [BLOCK_RE, BLOCK_WIDTH] = PARSE_BLOCKS[i];
3128
+ BLOCK_RE.lastIndex = index;
3129
+ if (BLOCK_RE.test(input)) {
3130
+ lengthExtra = BLOCK_RE === CJKT_WIDE_RE ? getCodePointsLength(input.slice(index, BLOCK_RE.lastIndex)) : BLOCK_RE === EMOJI_RE ? 1 : BLOCK_RE.lastIndex - index;
3131
+ widthExtra = lengthExtra * BLOCK_WIDTH;
3132
+ if (width + widthExtra > truncationLimit) truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / BLOCK_WIDTH));
3133
+ if (width + widthExtra > LIMIT) {
3134
+ truncationEnabled = true;
3135
+ break outer;
3136
+ }
3137
+ width += widthExtra;
3138
+ unmatchedStart = indexPrev;
3139
+ unmatchedEnd = index;
3140
+ index = indexPrev = BLOCK_RE.lastIndex;
3141
+ continue outer;
3177
3142
  }
3178
- width += EMOJI_WIDTH;
3179
- unmatchedStart = indexPrev;
3180
- unmatchedEnd = index;
3181
- index = indexPrev = EMOJI_RE.lastIndex;
3182
- continue;
3183
3143
  }
3184
3144
  index += 1;
3185
3145
  }
@@ -3191,7 +3151,7 @@ const getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {
3191
3151
  };
3192
3152
  };
3193
3153
  //#endregion
3194
- //#region node_modules/.pnpm/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.js
3154
+ //#region node_modules/.pnpm/fast-string-width@3.0.2/node_modules/fast-string-width/dist/index.js
3195
3155
  const NO_TRUNCATION = {
3196
3156
  limit: Infinity,
3197
3157
  ellipsis: "",
@@ -3201,7 +3161,7 @@ const fastStringWidth = (input, options = {}) => {
3201
3161
  return getStringTruncatedWidth(input, NO_TRUNCATION, options).width;
3202
3162
  };
3203
3163
  //#endregion
3204
- //#region node_modules/.pnpm/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.js
3164
+ //#region node_modules/.pnpm/fast-wrap-ansi@0.2.2/node_modules/fast-wrap-ansi/lib/main.js
3205
3165
  const ESC = "\x1B";
3206
3166
  const CSI = "›";
3207
3167
  const END_CODE = 39;
@@ -3338,8 +3298,10 @@ const exec = (string, columns, options = {}) => {
3338
3298
  for (let i = 0; i < preString.length; i++) {
3339
3299
  const character = preString[i];
3340
3300
  returnValue += character;
3341
- if (!inSurrogate) inSurrogate = character >= "\ud800" && character <= "\udbff";
3342
- else continue;
3301
+ if (!inSurrogate) {
3302
+ inSurrogate = character >= "\ud800" && character <= "\udbff";
3303
+ if (inSurrogate) continue;
3304
+ } else inSurrogate = false;
3343
3305
  if (character === ESC || character === CSI) {
3344
3306
  GROUP_REGEX.lastIndex = i + 1;
3345
3307
  const groups = GROUP_REGEX.exec(preString)?.groups;
@@ -3364,7 +3326,7 @@ function wrapAnsi(string, columns, options) {
3364
3326
  return String(string).normalize().split(CRLF_OR_LF).map((line) => exec(line, columns, options)).join("\n");
3365
3327
  }
3366
3328
  //#endregion
3367
- //#region node_modules/.pnpm/@clack+core@1.2.0/node_modules/@clack/core/dist/index.mjs
3329
+ //#region node_modules/.pnpm/@clack+core@1.4.0/node_modules/@clack/core/dist/index.mjs
3368
3330
  var import_src = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
3369
3331
  const ESC = "\x1B";
3370
3332
  const CSI = `${ESC}[`;
@@ -3417,12 +3379,12 @@ var import_src = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
3417
3379
  beep
3418
3380
  };
3419
3381
  })))();
3420
- function d$1(r, t, e) {
3421
- if (!e.some((o) => !o.disabled)) return r;
3422
- const s = r + t, i = Math.max(e.length - 1, 0), n = s < 0 ? i : s > i ? 0 : s;
3423
- return e[n].disabled ? d$1(n, t < 0 ? -1 : 1, e) : n;
3382
+ function f(r, t, s) {
3383
+ if (!s.some((o) => !o.disabled)) return r;
3384
+ const e = r + t, i = Math.max(s.length - 1, 0), n = e < 0 ? i : e > i ? 0 : e;
3385
+ return s[n].disabled ? f(n, t < 0 ? -1 : 1, s) : n;
3424
3386
  }
3425
- const u = {
3387
+ const h = {
3426
3388
  actions: new Set([
3427
3389
  "up",
3428
3390
  "down",
@@ -3469,33 +3431,33 @@ const u = {
3469
3431
  }
3470
3432
  }
3471
3433
  };
3472
- function V$1(r, t) {
3473
- if (typeof r == "string") return u.aliases.get(r) === t;
3474
- for (const e of r) if (e !== void 0 && V$1(e, t)) return !0;
3434
+ function C(r, t) {
3435
+ if (typeof r == "string") return h.aliases.get(r) === t;
3436
+ for (const s of r) if (s !== void 0 && C(s, t)) return !0;
3475
3437
  return !1;
3476
3438
  }
3477
- function j(r, t) {
3439
+ function Y$1(r, t) {
3478
3440
  if (r === t) return;
3479
- const e = r.split(`
3480
- `), s = t.split(`
3481
- `), i = Math.max(e.length, s.length), n = [];
3482
- for (let o = 0; o < i; o++) e[o] !== s[o] && n.push(o);
3441
+ const s = r.split(`
3442
+ `), e = t.split(`
3443
+ `), i = Math.max(s.length, e.length), n = [];
3444
+ for (let o = 0; o < i; o++) s[o] !== e[o] && n.push(o);
3483
3445
  return {
3484
3446
  lines: n,
3485
- numLinesBefore: e.length,
3486
- numLinesAfter: s.length,
3447
+ numLinesBefore: s.length,
3448
+ numLinesAfter: e.length,
3487
3449
  numLines: i
3488
3450
  };
3489
3451
  }
3490
- const Y$1 = globalThis.process.platform.startsWith("win"), C = Symbol("clack:cancel");
3491
- function q(r) {
3492
- return r === C;
3452
+ const q$1 = globalThis.process.platform.startsWith("win"), k = Symbol("clack:cancel");
3453
+ function R$1(r) {
3454
+ return r === k;
3493
3455
  }
3494
3456
  function w$1(r, t) {
3495
- const e = r;
3496
- e.isTTY && e.setRawMode(t);
3457
+ const s = r;
3458
+ s.isTTY && s.setRawMode(t);
3497
3459
  }
3498
- function z$1({ input: r = node_process.stdin, output: t = node_process.stdout, overwrite: e = !0, hideCursor: s = !0 } = {}) {
3460
+ function W({ input: r = node_process.stdin, output: t = node_process.stdout, overwrite: s = !0, hideCursor: e = !0 } = {}) {
3499
3461
  const i = node_readline.createInterface({
3500
3462
  input: r,
3501
3463
  output: t,
@@ -3503,37 +3465,48 @@ function z$1({ input: r = node_process.stdin, output: t = node_process.stdout, o
3503
3465
  tabSize: 1
3504
3466
  });
3505
3467
  node_readline.emitKeypressEvents(r, i), r instanceof node_tty.ReadStream && r.isTTY && r.setRawMode(!0);
3506
- const n = (o, { name: a, sequence: h }) => {
3507
- if (V$1([
3468
+ const n = (o, { name: u, sequence: a }) => {
3469
+ if (C([
3508
3470
  String(o),
3509
- a,
3510
- h
3471
+ u,
3472
+ a
3511
3473
  ], "cancel")) {
3512
- s && t.write(import_src.cursor.show), process.exit(0);
3474
+ e && t.write(import_src.cursor.show), process.exit(0);
3513
3475
  return;
3514
3476
  }
3515
- if (!e) return;
3516
- const f = a === "return" ? 0 : -1, v = a === "return" ? -1 : 0;
3517
- node_readline.moveCursor(t, f, v, () => {
3477
+ if (!s) return;
3478
+ const c = u === "return" ? 0 : -1, y = u === "return" ? -1 : 0;
3479
+ node_readline.moveCursor(t, c, y, () => {
3518
3480
  node_readline.clearLine(t, 1, () => {
3519
3481
  r.once("keypress", n);
3520
3482
  });
3521
3483
  });
3522
3484
  };
3523
- return s && t.write(import_src.cursor.hide), r.once("keypress", n), () => {
3524
- r.off("keypress", n), s && t.write(import_src.cursor.show), r instanceof node_tty.ReadStream && r.isTTY && !Y$1 && r.setRawMode(!1), i.terminal = !1, i.close();
3485
+ return e && t.write(import_src.cursor.hide), r.once("keypress", n), () => {
3486
+ r.off("keypress", n), e && t.write(import_src.cursor.show), r instanceof node_tty.ReadStream && r.isTTY && !q$1 && r.setRawMode(!1), i.terminal = !1, i.close();
3525
3487
  };
3526
3488
  }
3527
- const O$1 = (r) => "columns" in r && typeof r.columns == "number" ? r.columns : 80, A = (r) => "rows" in r && typeof r.rows == "number" ? r.rows : 20;
3528
- function R(r, t, e, s = e) {
3529
- return wrapAnsi(t, O$1(r ?? node_process.stdout) - e.length, {
3489
+ const A = (r) => "columns" in r && typeof r.columns == "number" ? r.columns : 80, L = (r) => "rows" in r && typeof r.rows == "number" ? r.rows : 20;
3490
+ function B(r, t, s, e = s, i = s, n) {
3491
+ return wrapAnsi(t, A(r ?? node_process.stdout) - s.length, {
3530
3492
  hard: !0,
3531
3493
  trim: !1
3532
3494
  }).split(`
3533
- `).map((n, o) => `${o === 0 ? s : e}${n}`).join(`
3495
+ `).map((u, a, l) => {
3496
+ const c = n ? n(u, a) : u;
3497
+ return a === 0 ? `${e}${c}` : a === l.length - 1 ? `${i}${c}` : `${s}${c}`;
3498
+ }).join(`
3534
3499
  `);
3535
3500
  }
3536
- let p = class {
3501
+ function P$1(r, t) {
3502
+ if ("~standard" in r) {
3503
+ const s = r["~standard"].validate(t);
3504
+ if (s instanceof Promise) throw new TypeError("Schema validation must be synchronous. Update `validate()` and remove any asynchronous logic.");
3505
+ return s.issues?.at(0)?.message;
3506
+ }
3507
+ return r(t);
3508
+ }
3509
+ var m = class {
3537
3510
  input;
3538
3511
  output;
3539
3512
  _abortSignal;
@@ -3548,35 +3521,35 @@ let p = class {
3548
3521
  error = "";
3549
3522
  value;
3550
3523
  userInput = "";
3551
- constructor(t, e = !0) {
3552
- const { input: s = node_process.stdin, output: i = node_process.stdout, render: n, signal: o, ...a } = t;
3553
- this.opts = a, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = n.bind(this), this._track = e, this._abortSignal = o, this.input = s, this.output = i;
3524
+ constructor(t, s = !0) {
3525
+ const { input: e = node_process.stdin, output: i = node_process.stdout, render: n, signal: o, ...u } = t;
3526
+ this.opts = u, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = n.bind(this), this._track = s, this._abortSignal = o, this.input = e, this.output = i;
3554
3527
  }
3555
3528
  unsubscribe() {
3556
3529
  this._subscribers.clear();
3557
3530
  }
3558
- setSubscriber(t, e) {
3559
- const s = this._subscribers.get(t) ?? [];
3560
- s.push(e), this._subscribers.set(t, s);
3531
+ setSubscriber(t, s) {
3532
+ const e = this._subscribers.get(t) ?? [];
3533
+ e.push(s), this._subscribers.set(t, e);
3561
3534
  }
3562
- on(t, e) {
3563
- this.setSubscriber(t, { cb: e });
3535
+ on(t, s) {
3536
+ this.setSubscriber(t, { cb: s });
3564
3537
  }
3565
- once(t, e) {
3538
+ once(t, s) {
3566
3539
  this.setSubscriber(t, {
3567
- cb: e,
3540
+ cb: s,
3568
3541
  once: !0
3569
3542
  });
3570
3543
  }
3571
- emit(t, ...e) {
3572
- const s = this._subscribers.get(t) ?? [], i = [];
3573
- for (const n of s) n.cb(...e), n.once && i.push(() => s.splice(s.indexOf(n), 1));
3544
+ emit(t, ...s) {
3545
+ const e = this._subscribers.get(t) ?? [], i = [];
3546
+ for (const n of e) n.cb(...s), n.once && i.push(() => e.splice(e.indexOf(n), 1));
3574
3547
  for (const n of i) n();
3575
3548
  }
3576
3549
  prompt() {
3577
3550
  return new Promise((t) => {
3578
3551
  if (this._abortSignal) {
3579
- if (this._abortSignal.aborted) return this.state = "cancel", this.close(), t(C);
3552
+ if (this._abortSignal.aborted) return this.state = "cancel", this.close(), t(k);
3580
3553
  this._abortSignal.addEventListener("abort", () => {
3581
3554
  this.state = "cancel", this.close();
3582
3555
  }, { once: !0 });
@@ -3590,18 +3563,21 @@ let p = class {
3590
3563
  }), this.rl.prompt(), this.opts.initialUserInput !== void 0 && this._setUserInput(this.opts.initialUserInput, !0), this.input.on("keypress", this.onKeypress), w$1(this.input, !0), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
3591
3564
  this.output.write(import_src.cursor.show), this.output.off("resize", this.render), w$1(this.input, !1), t(this.value);
3592
3565
  }), this.once("cancel", () => {
3593
- this.output.write(import_src.cursor.show), this.output.off("resize", this.render), w$1(this.input, !1), t(C);
3566
+ this.output.write(import_src.cursor.show), this.output.off("resize", this.render), w$1(this.input, !1), t(k);
3594
3567
  });
3595
3568
  });
3596
3569
  }
3597
- _isActionKey(t, e) {
3570
+ _isActionKey(t, s) {
3598
3571
  return t === " ";
3599
3572
  }
3573
+ _shouldSubmit(t, s) {
3574
+ return !0;
3575
+ }
3600
3576
  _setValue(t) {
3601
3577
  this.value = t, this.emit("value", this.value);
3602
3578
  }
3603
- _setUserInput(t, e) {
3604
- this.userInput = t ?? "", this.emit("userInput", this.userInput), e && this._track && this.rl && (this.rl.write(this.userInput), this._cursor = this.rl.cursor);
3579
+ _setUserInput(t, s) {
3580
+ this.userInput = t ?? "", this.emit("userInput", this.userInput), s && this._track && this.rl && (this.rl.write(this.userInput), this._cursor = this.rl.cursor);
3605
3581
  }
3606
3582
  _clearUserInput() {
3607
3583
  this.rl?.write(null, {
@@ -3609,21 +3585,21 @@ let p = class {
3609
3585
  name: "u"
3610
3586
  }), this._setUserInput("");
3611
3587
  }
3612
- onKeypress(t, e) {
3613
- if (this._track && e.name !== "return" && (e.name && this._isActionKey(t, e) && this.rl?.write(null, {
3588
+ onKeypress(t, s) {
3589
+ if (this._track && s.name !== "return" && (s.name && this._isActionKey(t, s) && this.rl?.write(null, {
3614
3590
  ctrl: !0,
3615
3591
  name: "h"
3616
- }), this._cursor = this.rl?.cursor ?? 0, this._setUserInput(this.rl?.line)), this.state === "error" && (this.state = "active"), e?.name && (!this._track && u.aliases.has(e.name) && this.emit("cursor", u.aliases.get(e.name)), u.actions.has(e.name) && this.emit("cursor", e.name)), t && (t.toLowerCase() === "y" || t.toLowerCase() === "n") && this.emit("confirm", t.toLowerCase() === "y"), this.emit("key", t?.toLowerCase(), e), e?.name === "return") {
3592
+ }), this._cursor = this.rl?.cursor ?? 0, this._setUserInput(this.rl?.line)), this.state === "error" && (this.state = "active"), s?.name && (!this._track && h.aliases.has(s.name) && this.emit("cursor", h.aliases.get(s.name)), h.actions.has(s.name) && this.emit("cursor", s.name)), t && (t.toLowerCase() === "y" || t.toLowerCase() === "n") && this.emit("confirm", t.toLowerCase() === "y"), this.emit("key", t, s), s?.name === "return" && this._shouldSubmit(t, s)) {
3617
3593
  if (this.opts.validate) {
3618
- const s = this.opts.validate(this.value);
3619
- s && (this.error = s instanceof Error ? s.message : s, this.state = "error", this.rl?.write(this.userInput));
3594
+ const e = P$1(this.opts.validate, this.value);
3595
+ e && (this.error = e instanceof Error ? e.message : e, this.state = "error", this.rl?.write(this.userInput));
3620
3596
  }
3621
3597
  this.state !== "error" && (this.state = "submit");
3622
3598
  }
3623
- V$1([
3599
+ C([
3624
3600
  t,
3625
- e?.name,
3626
- e?.sequence
3601
+ s?.name,
3602
+ s?.sequence
3627
3603
  ], "cancel") && (this.state = "cancel"), (this.state === "submit" || this.state === "cancel") && this.emit("finalize"), this.render(), (this.state === "submit" || this.state === "cancel") && this.close();
3628
3604
  }
3629
3605
  close() {
@@ -3646,30 +3622,30 @@ let p = class {
3646
3622
  if (t !== this._prevFrame) {
3647
3623
  if (this.state === "initial") this.output.write(import_src.cursor.hide);
3648
3624
  else {
3649
- const e = j(this._prevFrame, t), s = A(this.output);
3650
- if (this.restoreCursor(), e) {
3651
- const i = Math.max(0, e.numLinesAfter - s), n = Math.max(0, e.numLinesBefore - s);
3652
- let o = e.lines.find((a) => a >= i);
3625
+ const s = Y$1(this._prevFrame, t), e = L(this.output);
3626
+ if (this.restoreCursor(), s) {
3627
+ const i = Math.max(0, s.numLinesAfter - e), n = Math.max(0, s.numLinesBefore - e);
3628
+ let o = s.lines.find((u) => u >= i);
3653
3629
  if (o === void 0) {
3654
3630
  this._prevFrame = t;
3655
3631
  return;
3656
3632
  }
3657
- if (e.lines.length === 1) {
3633
+ if (s.lines.length === 1) {
3658
3634
  this.output.write(import_src.cursor.move(0, o - n)), this.output.write(import_src.erase.lines(1));
3659
- const a = t.split(`
3635
+ const u = t.split(`
3660
3636
  `);
3661
- this.output.write(a[o]), this._prevFrame = t, this.output.write(import_src.cursor.move(0, a.length - o - 1));
3637
+ this.output.write(u[o]), this._prevFrame = t, this.output.write(import_src.cursor.move(0, u.length - o - 1));
3662
3638
  return;
3663
- } else if (e.lines.length > 1) {
3639
+ } else if (s.lines.length > 1) {
3664
3640
  if (i < n) o = i;
3665
3641
  else {
3666
- const h = o - n;
3667
- h > 0 && this.output.write(import_src.cursor.move(0, h));
3642
+ const a = o - n;
3643
+ a > 0 && this.output.write(import_src.cursor.move(0, a));
3668
3644
  }
3669
3645
  this.output.write(import_src.erase.down());
3670
- const a = t.split(`
3646
+ const u = t.split(`
3671
3647
  `).slice(o);
3672
- this.output.write(a.join(`
3648
+ this.output.write(u.join(`
3673
3649
  `)), this._prevFrame = t;
3674
3650
  return;
3675
3651
  }
@@ -3680,7 +3656,7 @@ let p = class {
3680
3656
  }
3681
3657
  }
3682
3658
  };
3683
- var Q$1 = class extends p {
3659
+ var Z = class extends m {
3684
3660
  get cursor() {
3685
3661
  return this.value ? 0 : 1;
3686
3662
  }
@@ -3690,14 +3666,20 @@ var Q$1 = class extends p {
3690
3666
  constructor(t) {
3691
3667
  super(t, !1), this.value = !!t.initialValue, this.on("userInput", () => {
3692
3668
  this.value = this._value;
3693
- }), this.on("confirm", (e) => {
3694
- this.output.write(import_src.cursor.move(0, -1)), this.value = e, this.state = "submit", this.close();
3669
+ }), this.on("confirm", (s) => {
3670
+ this.output.write(import_src.cursor.move(0, -1)), this.value = s, this.state = "submit", this.close();
3695
3671
  }), this.on("cursor", () => {
3696
3672
  this.value = !this.value;
3697
3673
  });
3698
3674
  }
3699
3675
  };
3700
- var nt$1 = class extends p {
3676
+ new Set([
3677
+ "up",
3678
+ "down",
3679
+ "left",
3680
+ "right"
3681
+ ]);
3682
+ var ht$1 = class extends m {
3701
3683
  options;
3702
3684
  cursor = 0;
3703
3685
  get _selectedValue() {
@@ -3708,29 +3690,29 @@ var nt$1 = class extends p {
3708
3690
  }
3709
3691
  constructor(t) {
3710
3692
  super(t, !1), this.options = t.options;
3711
- const e = this.options.findIndex(({ value: i }) => i === t.initialValue), s = e === -1 ? 0 : e;
3712
- this.cursor = this.options[s].disabled ? d$1(s, 1, this.options) : s, this.changeValue(), this.on("cursor", (i) => {
3693
+ const s = this.options.findIndex(({ value: i }) => i === t.initialValue), e = s === -1 ? 0 : s;
3694
+ this.cursor = this.options[e].disabled ? f(e, 1, this.options) : e, this.changeValue(), this.on("cursor", (i) => {
3713
3695
  switch (i) {
3714
3696
  case "left":
3715
3697
  case "up":
3716
- this.cursor = d$1(this.cursor, -1, this.options);
3698
+ this.cursor = f(this.cursor, -1, this.options);
3717
3699
  break;
3718
3700
  case "down":
3719
3701
  case "right":
3720
- this.cursor = d$1(this.cursor, 1, this.options);
3702
+ this.cursor = f(this.cursor, 1, this.options);
3721
3703
  break;
3722
3704
  }
3723
3705
  this.changeValue();
3724
3706
  });
3725
3707
  }
3726
3708
  };
3727
- var at$1 = class extends p {
3709
+ var ct$1 = class extends m {
3728
3710
  get userInputWithCursor() {
3729
3711
  if (this.state === "submit") return this.userInput;
3730
3712
  const t = this.userInput;
3731
3713
  if (this.cursor >= t.length) return `${this.userInput}\u2588`;
3732
- const e = t.slice(0, this.cursor), [s, ...i] = t.slice(this.cursor);
3733
- return `${e}${(0, node_util.styleText)("inverse", s)}${i.join("")}`;
3714
+ const s = t.slice(0, this.cursor), [e, ...i] = t.slice(this.cursor);
3715
+ return `${s}${(0, node_util.styleText)("inverse", e)}${i.join("")}`;
3734
3716
  }
3735
3717
  get cursor() {
3736
3718
  return this._cursor;
@@ -3739,148 +3721,148 @@ var at$1 = class extends p {
3739
3721
  super({
3740
3722
  ...t,
3741
3723
  initialUserInput: t.initialUserInput ?? t.initialValue
3742
- }), this.on("userInput", (e) => {
3743
- this._setValue(e);
3724
+ }), this.on("userInput", (s) => {
3725
+ this._setValue(s);
3744
3726
  }), this.on("finalize", () => {
3745
3727
  this.value || (this.value = t.defaultValue), this.value === void 0 && (this.value = "");
3746
3728
  });
3747
3729
  }
3748
3730
  };
3749
3731
  //#endregion
3750
- //#region node_modules/.pnpm/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs
3751
- function Ze() {
3732
+ //#region node_modules/.pnpm/@clack+prompts@1.5.0/node_modules/@clack/prompts/dist/index.mjs
3733
+ function se() {
3752
3734
  return node_process.default.platform !== "win32" ? node_process.default.env.TERM !== "linux" : !!node_process.default.env.CI || !!node_process.default.env.WT_SESSION || !!node_process.default.env.TERMINUS_SUBLIME || node_process.default.env.ConEmuTask === "{cmd::Cmder}" || node_process.default.env.TERM_PROGRAM === "Terminus-Sublime" || node_process.default.env.TERM_PROGRAM === "vscode" || node_process.default.env.TERM === "xterm-256color" || node_process.default.env.TERM === "alacritty" || node_process.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
3753
3735
  }
3754
- const ee = Ze(), ae = () => process.env.CI === "true", w = (e, i) => ee ? e : i, _e = w("◆", "*"), oe = w("■", "x"), ue = w("▲", "x"), F = w("◇", "o"), d = w("│", "|"), E = w("└", "—"), z = w("●", ">"), H = w("○", " "), he = w("●", "•"), pe = w("◆", "*"), me = w("▲", "!"), ge = w("■", "x"), V = (e) => {
3755
- switch (e) {
3736
+ const tt = se(), at = () => process.env.CI === "true", w = (t, i) => tt ? t : i, _t = w("◆", "*"), ut = w("■", "x"), lt = w("▲", "x"), H = w("◇", "o"), $ = w("│", "|"), x = w("└", "—"), z = w("●", ">"), U = w("○", " "), pt = w("●", "•"), mt = w("◆", "*"), gt = w("▲", "!"), yt = w("■", "x"), P = (t) => {
3737
+ switch (t) {
3756
3738
  case "initial":
3757
- case "active": return (0, node_util.styleText)("cyan", _e);
3758
- case "cancel": return (0, node_util.styleText)("red", oe);
3759
- case "error": return (0, node_util.styleText)("yellow", ue);
3760
- case "submit": return (0, node_util.styleText)("green", F);
3739
+ case "active": return (0, node_util.styleText)("cyan", _t);
3740
+ case "cancel": return (0, node_util.styleText)("red", ut);
3741
+ case "error": return (0, node_util.styleText)("yellow", lt);
3742
+ case "submit": return (0, node_util.styleText)("green", H);
3761
3743
  }
3762
- }, ye = (e) => {
3763
- switch (e) {
3744
+ }, ft = (t) => {
3745
+ switch (t) {
3764
3746
  case "initial":
3765
- case "active": return (0, node_util.styleText)("cyan", d);
3766
- case "cancel": return (0, node_util.styleText)("red", d);
3767
- case "error": return (0, node_util.styleText)("yellow", d);
3768
- case "submit": return (0, node_util.styleText)("green", d);
3769
- }
3770
- }, et = (e, i, s, r, u) => {
3771
- let n = i, o = 0;
3772
- for (let c = s; c < r; c++) {
3773
- const a = e[c];
3774
- if (n = n - a.length, o++, n <= u) break;
3775
- }
3747
+ case "active": return (0, node_util.styleText)("cyan", $);
3748
+ case "cancel": return (0, node_util.styleText)("red", $);
3749
+ case "error": return (0, node_util.styleText)("yellow", $);
3750
+ case "submit": return (0, node_util.styleText)("green", $);
3751
+ }
3752
+ }, Pt = (t, i, s, r, u, n = !1) => {
3753
+ let a = i, c = 0;
3754
+ if (n) for (let o = r - 1; o >= s && (a -= t[o].length, c++, !(a <= u)); o--);
3755
+ else for (let o = s; o < r && (a -= t[o].length, c++, !(a <= u)); o++);
3776
3756
  return {
3777
- lineCount: n,
3778
- removals: o
3757
+ lineCount: a,
3758
+ removals: c
3779
3759
  };
3780
- }, Y = ({ cursor: e, options: i, style: s, output: r = process.stdout, maxItems: u = Number.POSITIVE_INFINITY, columnPadding: n = 0, rowPadding: o = 4 }) => {
3781
- const c = O$1(r) - n, a = A(r), l = (0, node_util.styleText)("dim", "..."), $ = Math.max(a - o, 0), y = Math.max(Math.min(u, $), 5);
3760
+ }, F = ({ cursor: t, options: i, style: s, output: r = process.stdout, maxItems: u = Number.POSITIVE_INFINITY, columnPadding: n = 0, rowPadding: a = 4 }) => {
3761
+ const c = A(r) - n, o = L(r), l = (0, node_util.styleText)("dim", "..."), d = Math.max(o - a, 0), g = Math.max(Math.min(u, d), 5);
3782
3762
  let p = 0;
3783
- e >= y - 3 && (p = Math.max(Math.min(e - y + 3, i.length - y), 0));
3784
- let m = y < i.length && p > 0, g = y < i.length && p + y < i.length;
3785
- const S = Math.min(p + y, i.length), h = [];
3786
- let f = 0;
3787
- m && f++, g && f++;
3788
- const v = p + (m ? 1 : 0), T = S - (g ? 1 : 0);
3789
- for (let b = v; b < T; b++) {
3790
- const x = wrapAnsi(s(i[b], b === e), c, {
3763
+ t >= g - 3 && (p = Math.max(Math.min(t - g + 3, i.length - g), 0));
3764
+ let f = g < i.length && p > 0, h = g < i.length && p + g < i.length;
3765
+ const I = Math.min(p + g, i.length), m = [];
3766
+ let y = 0;
3767
+ f && y++, h && y++;
3768
+ const v = p + (f ? 1 : 0), C = I - (h ? 1 : 0);
3769
+ for (let b = v; b < C; b++) {
3770
+ const G = wrapAnsi(s(i[b], b === t), c, {
3791
3771
  hard: !0,
3792
3772
  trim: !1
3793
3773
  }).split(`
3794
3774
  `);
3795
- h.push(x), f += x.length;
3796
- }
3797
- if (f > $) {
3798
- let b = 0, x = 0, G = f;
3799
- const M = e - v, R = (j, D) => et(h, G, j, D, $);
3800
- m ? ({lineCount: G, removals: b} = R(0, M), G > $ && ({lineCount: G, removals: x} = R(M + 1, h.length))) : ({lineCount: G, removals: x} = R(M + 1, h.length), G > $ && ({lineCount: G, removals: b} = R(0, M))), b > 0 && (m = !0, h.splice(0, b)), x > 0 && (g = !0, h.splice(h.length - x, x));
3801
- }
3802
- const C = [];
3803
- m && C.push(l);
3804
- for (const b of h) for (const x of b) C.push(x);
3805
- return g && C.push(l), C;
3775
+ m.push(G), y += G.length;
3776
+ }
3777
+ if (y > d) {
3778
+ let b = 0, G = 0, M = y;
3779
+ const N = t - v;
3780
+ let O = d;
3781
+ const j = () => Pt(m, M, 0, N, O), k = () => Pt(m, M, N + 1, m.length, O, !0);
3782
+ f ? ({lineCount: M, removals: b} = j(), M > O && (h || (O -= 1), {lineCount: M, removals: G} = k())) : (h || (O -= 1), {lineCount: M, removals: G} = k(), M > O && (O -= 1, {lineCount: M, removals: b} = j())), b > 0 && (f = !0, m.splice(0, b)), G > 0 && (h = !0, m.splice(m.length - G, G));
3783
+ }
3784
+ const S = [];
3785
+ f && S.push(l);
3786
+ for (const b of m) for (const G of b) S.push(G);
3787
+ return h && S.push(l), S;
3806
3788
  };
3807
- const ot = (e) => {
3808
- const i = e.active ?? "Yes", s = e.inactive ?? "No";
3809
- return new Q$1({
3789
+ const le = (t) => {
3790
+ const i = t.active ?? "Yes", s = t.inactive ?? "No";
3791
+ return new Z({
3810
3792
  active: i,
3811
3793
  inactive: s,
3812
- signal: e.signal,
3813
- input: e.input,
3814
- output: e.output,
3815
- initialValue: e.initialValue ?? !0,
3794
+ signal: t.signal,
3795
+ input: t.input,
3796
+ output: t.output,
3797
+ initialValue: t.initialValue ?? !0,
3816
3798
  render() {
3817
- const r = e.withGuide ?? u.withGuide, u$4 = `${V(this.state)} `, n = r ? `${(0, node_util.styleText)("gray", d)} ` : "", o = R(e.output, e.message, n, u$4), c = `${r ? `${(0, node_util.styleText)("gray", d)}
3818
- ` : ""}${o}
3819
- `, a = this.value ? i : s;
3799
+ const r = t.withGuide ?? h.withGuide, u = `${P(this.state)} `, n = r ? `${(0, node_util.styleText)("gray", $)} ` : "", a = B(t.output, t.message, n, u), c = `${r ? `${(0, node_util.styleText)("gray", $)}
3800
+ ` : ""}${a}
3801
+ `, o = this.value ? i : s;
3820
3802
  switch (this.state) {
3821
- case "submit": return `${c}${r ? `${(0, node_util.styleText)("gray", d)} ` : ""}${(0, node_util.styleText)("dim", a)}`;
3822
- case "cancel": return `${c}${r ? `${(0, node_util.styleText)("gray", d)} ` : ""}${(0, node_util.styleText)(["strikethrough", "dim"], a)}${r ? `
3823
- ${(0, node_util.styleText)("gray", d)}` : ""}`;
3803
+ case "submit": return `${c}${r ? `${(0, node_util.styleText)("gray", $)} ` : ""}${(0, node_util.styleText)("dim", o)}`;
3804
+ case "cancel": return `${c}${r ? `${(0, node_util.styleText)("gray", $)} ` : ""}${(0, node_util.styleText)(["strikethrough", "dim"], o)}${r ? `
3805
+ ${(0, node_util.styleText)("gray", $)}` : ""}`;
3824
3806
  default: {
3825
- const l = r ? `${(0, node_util.styleText)("cyan", d)} ` : "", $ = r ? (0, node_util.styleText)("cyan", E) : "";
3826
- return `${c}${l}${this.value ? `${(0, node_util.styleText)("green", z)} ${i}` : `${(0, node_util.styleText)("dim", H)} ${(0, node_util.styleText)("dim", i)}`}${e.vertical ? r ? `
3827
- ${(0, node_util.styleText)("cyan", d)} ` : `
3828
- ` : ` ${(0, node_util.styleText)("dim", "/")} `}${this.value ? `${(0, node_util.styleText)("dim", H)} ${(0, node_util.styleText)("dim", s)}` : `${(0, node_util.styleText)("green", z)} ${s}`}
3829
- ${$}
3807
+ const l = r ? `${(0, node_util.styleText)("cyan", $)} ` : "", d = r ? (0, node_util.styleText)("cyan", x) : "";
3808
+ return `${c}${l}${this.value ? `${(0, node_util.styleText)("green", z)} ${i}` : `${(0, node_util.styleText)("dim", U)} ${(0, node_util.styleText)("dim", i)}`}${t.vertical ? r ? `
3809
+ ${(0, node_util.styleText)("cyan", $)} ` : `
3810
+ ` : ` ${(0, node_util.styleText)("dim", "/")} `}${this.value ? `${(0, node_util.styleText)("dim", U)} ${(0, node_util.styleText)("dim", s)}` : `${(0, node_util.styleText)("green", z)} ${s}`}
3811
+ ${d}
3830
3812
  `;
3831
3813
  }
3832
3814
  }
3833
3815
  }
3834
3816
  }).prompt();
3835
- }, O = {
3836
- message: (e = [], { symbol: i = (0, node_util.styleText)("gray", d), secondarySymbol: s = (0, node_util.styleText)("gray", d), output: r = process.stdout, spacing: u$7 = 1, withGuide: n } = {}) => {
3837
- const o = [], c = n ?? u.withGuide, a = c ? s : "", l = c ? `${i} ` : "", $ = c ? `${s} ` : "";
3838
- for (let p = 0; p < u$7; p++) o.push(a);
3839
- const y = Array.isArray(e) ? e : e.split(`
3817
+ }, R = {
3818
+ message: (t = [], { symbol: i = (0, node_util.styleText)("gray", $), secondarySymbol: s = (0, node_util.styleText)("gray", $), output: r = process.stdout, spacing: u = 1, withGuide: n } = {}) => {
3819
+ const a = [], c = n ?? h.withGuide, o = c ? s : "", l = c ? `${i} ` : "", d = c ? `${s} ` : "";
3820
+ for (let p = 0; p < u; p++) a.push(o);
3821
+ const g = Array.isArray(t) ? t : t.split(`
3840
3822
  `);
3841
- if (y.length > 0) {
3842
- const [p, ...m] = y;
3843
- p.length > 0 ? o.push(`${l}${p}`) : o.push(c ? i : "");
3844
- for (const g of m) g.length > 0 ? o.push(`${$}${g}`) : o.push(c ? s : "");
3823
+ if (g.length > 0) {
3824
+ const [p, ...f] = g;
3825
+ p.length > 0 ? a.push(`${l}${p}`) : a.push(c ? i : "");
3826
+ for (const h of f) h.length > 0 ? a.push(`${d}${h}`) : a.push(c ? s : "");
3845
3827
  }
3846
- r.write(`${o.join(`
3828
+ r.write(`${a.join(`
3847
3829
  `)}
3848
3830
  `);
3849
3831
  },
3850
- info: (e, i) => {
3851
- O.message(e, {
3832
+ info: (t, i) => {
3833
+ R.message(t, {
3852
3834
  ...i,
3853
- symbol: (0, node_util.styleText)("blue", he)
3835
+ symbol: (0, node_util.styleText)("blue", pt)
3854
3836
  });
3855
3837
  },
3856
- success: (e, i) => {
3857
- O.message(e, {
3838
+ success: (t, i) => {
3839
+ R.message(t, {
3858
3840
  ...i,
3859
- symbol: (0, node_util.styleText)("green", pe)
3841
+ symbol: (0, node_util.styleText)("green", mt)
3860
3842
  });
3861
3843
  },
3862
- step: (e, i) => {
3863
- O.message(e, {
3844
+ step: (t, i) => {
3845
+ R.message(t, {
3864
3846
  ...i,
3865
- symbol: (0, node_util.styleText)("green", F)
3847
+ symbol: (0, node_util.styleText)("green", H)
3866
3848
  });
3867
3849
  },
3868
- warn: (e, i) => {
3869
- O.message(e, {
3850
+ warn: (t, i) => {
3851
+ R.message(t, {
3870
3852
  ...i,
3871
- symbol: (0, node_util.styleText)("yellow", me)
3853
+ symbol: (0, node_util.styleText)("yellow", gt)
3872
3854
  });
3873
3855
  },
3874
- warning: (e, i) => {
3875
- O.warn(e, i);
3856
+ warning: (t, i) => {
3857
+ R.warn(t, i);
3876
3858
  },
3877
- error: (e, i) => {
3878
- O.message(e, {
3859
+ error: (t, i) => {
3860
+ R.message(t, {
3879
3861
  ...i,
3880
- symbol: (0, node_util.styleText)("red", ge)
3862
+ symbol: (0, node_util.styleText)("red", yt)
3881
3863
  });
3882
3864
  }
3883
- }, Ct = (e) => (0, node_util.styleText)("magenta", e), fe = ({ indicator: e = "dots", onCancel: i, output: s = process.stdout, cancelMessage: r, errorMessage: u$11, frames: n = ee ? [
3865
+ }, _e = (t) => (0, node_util.styleText)("magenta", t), vt = ({ indicator: t = "dots", onCancel: i, output: s = process.stdout, cancelMessage: r, errorMessage: u, frames: n = tt ? [
3884
3866
  "◒",
3885
3867
  "◐",
3886
3868
  "◓",
@@ -3890,178 +3872,178 @@ ${$}
3890
3872
  "o",
3891
3873
  "O",
3892
3874
  "0"
3893
- ], delay: o = ee ? 80 : 120, signal: c, ...a } = {}) => {
3894
- const l = ae();
3895
- let $, y, p = !1, m = !1, g = "", S, h = performance.now();
3896
- const f = O$1(s), v = a?.styleFrame ?? Ct, T = (_) => {
3897
- const A = _ > 1 ? u$11 ?? u.messages.error : r ?? u.messages.cancel;
3898
- m = _ === 1, p && (W(A, _), m && typeof i == "function" && i());
3899
- }, C = () => T(2), b = () => T(1), x = () => {
3900
- process.on("uncaughtExceptionMonitor", C), process.on("unhandledRejection", C), process.on("SIGINT", b), process.on("SIGTERM", b), process.on("exit", T), c && c.addEventListener("abort", b);
3901
- }, G = () => {
3902
- process.removeListener("uncaughtExceptionMonitor", C), process.removeListener("unhandledRejection", C), process.removeListener("SIGINT", b), process.removeListener("SIGTERM", b), process.removeListener("exit", T), c && c.removeEventListener("abort", b);
3875
+ ], delay: a = tt ? 80 : 120, signal: c, ...o } = {}) => {
3876
+ const l = at();
3877
+ let d, g, p = !1, f = !1, h$2 = "", I, m = performance.now();
3878
+ const y = A(s), v = o?.styleFrame ?? _e, C = (_) => {
3879
+ const A = _ > 1 ? u ?? h.messages.error : r ?? h.messages.cancel;
3880
+ f = _ === 1, p && (W$1(A, _), f && typeof i == "function" && i());
3881
+ }, S = () => C(2), b = () => C(1), G = () => {
3882
+ process.on("uncaughtExceptionMonitor", S), process.on("unhandledRejection", S), process.on("SIGINT", b), process.on("SIGTERM", b), process.on("exit", C), c && c.addEventListener("abort", b);
3903
3883
  }, M = () => {
3904
- if (S === void 0) return;
3884
+ process.removeListener("uncaughtExceptionMonitor", S), process.removeListener("unhandledRejection", S), process.removeListener("SIGINT", b), process.removeListener("SIGTERM", b), process.removeListener("exit", C), c && c.removeEventListener("abort", b);
3885
+ }, N = () => {
3886
+ if (I === void 0) return;
3905
3887
  l && s.write(`
3906
3888
  `);
3907
- const _ = wrapAnsi(S, f, {
3889
+ const _ = wrapAnsi(I, y, {
3908
3890
  hard: !0,
3909
3891
  trim: !1
3910
3892
  }).split(`
3911
3893
  `);
3912
3894
  _.length > 1 && s.write(import_src.cursor.up(_.length - 1)), s.write(import_src.cursor.to(0)), s.write(import_src.erase.down());
3913
- }, R = (_) => _.replace(/\.+$/, ""), j = (_) => {
3914
- const A = (performance.now() - _) / 1e3, k = Math.floor(A / 60), L = Math.floor(A % 60);
3915
- return k > 0 ? `[${k}m ${L}s]` : `[${L}s]`;
3916
- }, D = a.withGuide ?? u.withGuide, ie = (_ = "") => {
3917
- p = !0, $ = z$1({ output: s }), g = R(_), h = performance.now(), D && s.write(`${(0, node_util.styleText)("gray", d)}
3895
+ }, O = (_) => _.replace(/\.+$/, ""), j = (_) => {
3896
+ const A = (performance.now() - _) / 1e3, L = Math.floor(A / 60), D = Math.floor(A % 60);
3897
+ return L > 0 ? `[${L}m ${D}s]` : `[${D}s]`;
3898
+ }, k = o.withGuide ?? h.withGuide, rt = (_ = "") => {
3899
+ p = !0, d = W({ output: s }), h$2 = O(_), m = performance.now(), k && s.write(`${(0, node_util.styleText)("gray", $)}
3918
3900
  `);
3919
- let A = 0, k = 0;
3920
- x(), y = setInterval(() => {
3921
- if (l && g === S) return;
3922
- M(), S = g;
3923
- const L = v(n[A]);
3901
+ let A = 0, L = 0;
3902
+ G(), g = setInterval(() => {
3903
+ if (l && h$2 === I) return;
3904
+ N(), I = h$2;
3905
+ const D = v(n[A]);
3924
3906
  let Z;
3925
- if (l) Z = `${L} ${g}...`;
3926
- else if (e === "timer") Z = `${L} ${g} ${j(h)}`;
3907
+ if (l) Z = `${D} ${h$2}...`;
3908
+ else if (t === "timer") Z = `${D} ${h$2} ${j(m)}`;
3927
3909
  else {
3928
- const Be = ".".repeat(Math.floor(k)).slice(0, 3);
3929
- Z = `${L} ${g}${Be}`;
3910
+ const Lt = ".".repeat(Math.floor(L)).slice(0, 3);
3911
+ Z = `${D} ${h$2}${Lt}`;
3930
3912
  }
3931
- const Ne = wrapAnsi(Z, f, {
3913
+ const kt = wrapAnsi(Z, y, {
3932
3914
  hard: !0,
3933
3915
  trim: !1
3934
3916
  });
3935
- s.write(Ne), A = A + 1 < n.length ? A + 1 : 0, k = k < 4 ? k + .125 : 0;
3936
- }, o);
3937
- }, W = (_ = "", A = 0, k = !1) => {
3917
+ s.write(kt), A = A + 1 < n.length ? A + 1 : 0, L = L < 4 ? L + .125 : 0;
3918
+ }, a);
3919
+ }, W$1 = (_ = "", A = 0, L = !1) => {
3938
3920
  if (!p) return;
3939
- p = !1, clearInterval(y), M();
3940
- const L = A === 0 ? (0, node_util.styleText)("green", F) : A === 1 ? (0, node_util.styleText)("red", oe) : (0, node_util.styleText)("red", ue);
3941
- g = _ ?? g, k || (e === "timer" ? s.write(`${L} ${g} ${j(h)}
3942
- `) : s.write(`${L} ${g}
3943
- `)), G(), $();
3921
+ p = !1, clearInterval(g), N();
3922
+ const D = A === 0 ? (0, node_util.styleText)("green", H) : A === 1 ? (0, node_util.styleText)("red", ut) : (0, node_util.styleText)("red", lt);
3923
+ h$2 = _ ?? h$2, L || (t === "timer" ? s.write(`${D} ${h$2} ${j(m)}
3924
+ `) : s.write(`${D} ${h$2}
3925
+ `)), M(), d();
3944
3926
  };
3945
3927
  return {
3946
- start: ie,
3947
- stop: (_ = "") => W(_, 0),
3928
+ start: rt,
3929
+ stop: (_ = "") => W$1(_, 0),
3948
3930
  message: (_ = "") => {
3949
- g = R(_ ?? g);
3931
+ h$2 = O(_ ?? h$2);
3950
3932
  },
3951
- cancel: (_ = "") => W(_, 1),
3952
- error: (_ = "") => W(_, 2),
3953
- clear: () => W("", 0, !0),
3933
+ cancel: (_ = "") => W$1(_, 1),
3934
+ error: (_ = "") => W$1(_, 2),
3935
+ clear: () => W$1("", 0, !0),
3954
3936
  get isCancelled() {
3955
- return m;
3937
+ return f;
3956
3938
  }
3957
3939
  };
3958
- }, re = (e, i) => e.includes(`
3959
- `) ? e.split(`
3940
+ }, it = (t, i) => t.includes(`
3941
+ `) ? t.split(`
3960
3942
  `).map((s) => i(s)).join(`
3961
- `) : i(e), _t = (e) => {
3943
+ `) : i(t), Ee = (t) => {
3962
3944
  const i = (s, r) => {
3963
3945
  const u = s.label ?? String(s.value);
3964
3946
  switch (r) {
3965
- case "disabled": return `${(0, node_util.styleText)("gray", H)} ${re(u, (n) => (0, node_util.styleText)("gray", n))}${s.hint ? ` ${(0, node_util.styleText)("dim", `(${s.hint ?? "disabled"})`)}` : ""}`;
3966
- case "selected": return `${re(u, (n) => (0, node_util.styleText)("dim", n))}`;
3947
+ case "disabled": return `${(0, node_util.styleText)("gray", U)} ${it(u, (n) => (0, node_util.styleText)("gray", n))}${s.hint ? ` ${(0, node_util.styleText)("dim", `(${s.hint ?? "disabled"})`)}` : ""}`;
3948
+ case "selected": return `${it(u, (n) => (0, node_util.styleText)("dim", n))}`;
3967
3949
  case "active": return `${(0, node_util.styleText)("green", z)} ${u}${s.hint ? ` ${(0, node_util.styleText)("dim", `(${s.hint})`)}` : ""}`;
3968
- case "cancelled": return `${re(u, (n) => (0, node_util.styleText)(["strikethrough", "dim"], n))}`;
3969
- default: return `${(0, node_util.styleText)("dim", H)} ${re(u, (n) => (0, node_util.styleText)("dim", n))}`;
3950
+ case "cancelled": return `${it(u, (n) => (0, node_util.styleText)(["strikethrough", "dim"], n))}`;
3951
+ default: return `${(0, node_util.styleText)("dim", U)} ${it(u, (n) => (0, node_util.styleText)("dim", n))}`;
3970
3952
  }
3971
3953
  };
3972
- return new nt$1({
3973
- options: e.options,
3974
- signal: e.signal,
3975
- input: e.input,
3976
- output: e.output,
3977
- initialValue: e.initialValue,
3954
+ return new ht$1({
3955
+ options: t.options,
3956
+ signal: t.signal,
3957
+ input: t.input,
3958
+ output: t.output,
3959
+ initialValue: t.initialValue,
3978
3960
  render() {
3979
- const s = e.withGuide ?? u.withGuide, r = `${V(this.state)} `, u$12 = `${ye(this.state)} `, n = R(e.output, e.message, u$12, r), o = `${s ? `${(0, node_util.styleText)("gray", d)}
3961
+ const s = t.withGuide ?? h.withGuide, r = `${P(this.state)} `, u = `${ft(this.state)} `, n = B(t.output, t.message, u, r), a = `${s ? `${(0, node_util.styleText)("gray", $)}
3980
3962
  ` : ""}${n}
3981
3963
  `;
3982
3964
  switch (this.state) {
3983
3965
  case "submit": {
3984
- const c = s ? `${(0, node_util.styleText)("gray", d)} ` : "";
3985
- return `${o}${R(e.output, i(this.options[this.cursor], "selected"), c)}`;
3966
+ const c = s ? `${(0, node_util.styleText)("gray", $)} ` : "";
3967
+ return `${a}${B(t.output, i(this.options[this.cursor], "selected"), c)}`;
3986
3968
  }
3987
3969
  case "cancel": {
3988
- const c = s ? `${(0, node_util.styleText)("gray", d)} ` : "";
3989
- return `${o}${R(e.output, i(this.options[this.cursor], "cancelled"), c)}${s ? `
3990
- ${(0, node_util.styleText)("gray", d)}` : ""}`;
3970
+ const c = s ? `${(0, node_util.styleText)("gray", $)} ` : "";
3971
+ return `${a}${B(t.output, i(this.options[this.cursor], "cancelled"), c)}${s ? `
3972
+ ${(0, node_util.styleText)("gray", $)}` : ""}`;
3991
3973
  }
3992
3974
  default: {
3993
- const c = s ? `${(0, node_util.styleText)("cyan", d)} ` : "", a = s ? (0, node_util.styleText)("cyan", E) : "", l = o.split(`
3994
- `).length, $ = s ? 2 : 1;
3995
- return `${o}${c}${Y({
3996
- output: e.output,
3975
+ const c = s ? `${(0, node_util.styleText)("cyan", $)} ` : "", o = s ? (0, node_util.styleText)("cyan", x) : "", l = a.split(`
3976
+ `).length, d = s ? 2 : 1;
3977
+ return `${a}${c}${F({
3978
+ output: t.output,
3997
3979
  cursor: this.cursor,
3998
3980
  options: this.options,
3999
- maxItems: e.maxItems,
3981
+ maxItems: t.maxItems,
4000
3982
  columnPadding: c.length,
4001
- rowPadding: l + $,
4002
- style: (y, p) => i(y, y.disabled ? "disabled" : p ? "active" : "inactive")
3983
+ rowPadding: l + d,
3984
+ style: (g, p) => i(g, g.disabled ? "disabled" : p ? "active" : "inactive")
4003
3985
  }).join(`
4004
3986
  ${c}`)}
4005
- ${a}
3987
+ ${o}
4006
3988
  `;
4007
3989
  }
4008
3990
  }
4009
3991
  }
4010
3992
  }).prompt();
4011
- }, je = `${(0, node_util.styleText)("gray", d)} `, K = {
4012
- message: async (e, { symbol: i = (0, node_util.styleText)("gray", d) } = {}) => {
4013
- process.stdout.write(`${(0, node_util.styleText)("gray", d)}
3993
+ }, Bt = `${(0, node_util.styleText)("gray", $)} `, q = {
3994
+ message: async (t, { symbol: i = (0, node_util.styleText)("gray", $) } = {}) => {
3995
+ process.stdout.write(`${(0, node_util.styleText)("gray", $)}
4014
3996
  ${i} `);
4015
3997
  let s = 3;
4016
- for await (let r of e) {
3998
+ for await (let r of t) {
4017
3999
  r = r.replace(/\n/g, `
4018
- ${je}`), r.includes(`
4000
+ ${Bt}`), r.includes(`
4019
4001
  `) && (s = 3 + (0, node_util.stripVTControlCharacters)(r.slice(r.lastIndexOf(`
4020
4002
  `))).length);
4021
4003
  const u = (0, node_util.stripVTControlCharacters)(r).length;
4022
4004
  s + u < process.stdout.columns ? (s += u, process.stdout.write(r)) : (process.stdout.write(`
4023
- ${je}${r.trimStart()}`), s = 3 + (0, node_util.stripVTControlCharacters)(r.trimStart()).length);
4005
+ ${Bt}${r.trimStart()}`), s = 3 + (0, node_util.stripVTControlCharacters)(r.trimStart()).length);
4024
4006
  }
4025
4007
  process.stdout.write(`
4026
4008
  `);
4027
4009
  },
4028
- info: (e) => K.message(e, { symbol: (0, node_util.styleText)("blue", he) }),
4029
- success: (e) => K.message(e, { symbol: (0, node_util.styleText)("green", pe) }),
4030
- step: (e) => K.message(e, { symbol: (0, node_util.styleText)("green", F) }),
4031
- warn: (e) => K.message(e, { symbol: (0, node_util.styleText)("yellow", me) }),
4032
- warning: (e) => K.warn(e),
4033
- error: (e) => K.message(e, { symbol: (0, node_util.styleText)("red", ge) })
4034
- }, Ot = (e) => new at$1({
4035
- validate: e.validate,
4036
- placeholder: e.placeholder,
4037
- defaultValue: e.defaultValue,
4038
- initialValue: e.initialValue,
4039
- output: e.output,
4040
- signal: e.signal,
4041
- input: e.input,
4010
+ info: (t) => q.message(t, { symbol: (0, node_util.styleText)("blue", pt) }),
4011
+ success: (t) => q.message(t, { symbol: (0, node_util.styleText)("green", mt) }),
4012
+ step: (t) => q.message(t, { symbol: (0, node_util.styleText)("green", H) }),
4013
+ warn: (t) => q.message(t, { symbol: (0, node_util.styleText)("yellow", gt) }),
4014
+ warning: (t) => q.warn(t),
4015
+ error: (t) => q.message(t, { symbol: (0, node_util.styleText)("red", yt) })
4016
+ }, Re = (t) => new ct$1({
4017
+ validate: t.validate,
4018
+ placeholder: t.placeholder,
4019
+ defaultValue: t.defaultValue,
4020
+ initialValue: t.initialValue,
4021
+ output: t.output,
4022
+ signal: t.signal,
4023
+ input: t.input,
4042
4024
  render() {
4043
- const i = e?.withGuide ?? u.withGuide, s = `${`${i ? `${(0, node_util.styleText)("gray", d)}
4044
- ` : ""}${V(this.state)} `}${e.message}
4045
- `, r = e.placeholder ? (0, node_util.styleText)("inverse", e.placeholder[0]) + (0, node_util.styleText)("dim", e.placeholder.slice(1)) : (0, node_util.styleText)(["inverse", "hidden"], "_"), u$13 = this.userInput ? this.userInputWithCursor : r, n = this.value ?? "";
4025
+ const i = t?.withGuide ?? h.withGuide, s = `${`${i ? `${(0, node_util.styleText)("gray", $)}
4026
+ ` : ""}${P(this.state)} `}${t.message}
4027
+ `, r = t.placeholder ? (0, node_util.styleText)("inverse", t.placeholder[0]) + (0, node_util.styleText)("dim", t.placeholder.slice(1)) : (0, node_util.styleText)(["inverse", "hidden"], "_"), u = this.userInput ? this.userInputWithCursor : r, n = this.value ?? "";
4046
4028
  switch (this.state) {
4047
4029
  case "error": {
4048
- const o = this.error ? ` ${(0, node_util.styleText)("yellow", this.error)}` : "", c = i ? `${(0, node_util.styleText)("yellow", d)} ` : "", a = i ? (0, node_util.styleText)("yellow", E) : "";
4030
+ const a = this.error ? ` ${(0, node_util.styleText)("yellow", this.error)}` : "", c = i ? `${(0, node_util.styleText)("yellow", $)} ` : "", o = i ? (0, node_util.styleText)("yellow", x) : "";
4049
4031
  return `${s.trim()}
4050
- ${c}${u$13}
4051
- ${a}${o}
4032
+ ${c}${u}
4033
+ ${o}${a}
4052
4034
  `;
4053
4035
  }
4054
4036
  case "submit": {
4055
- const o = n ? ` ${(0, node_util.styleText)("dim", n)}` : "";
4056
- return `${s}${i ? (0, node_util.styleText)("gray", d) : ""}${o}`;
4037
+ const a = n ? ` ${(0, node_util.styleText)("dim", n)}` : "";
4038
+ return `${s}${i ? (0, node_util.styleText)("gray", $) : ""}${a}`;
4057
4039
  }
4058
4040
  case "cancel": {
4059
- const o = n ? ` ${(0, node_util.styleText)(["strikethrough", "dim"], n)}` : "", c = i ? (0, node_util.styleText)("gray", d) : "";
4060
- return `${s}${c}${o}${n.trim() ? `
4041
+ const a = n ? ` ${(0, node_util.styleText)(["strikethrough", "dim"], n)}` : "", c = i ? (0, node_util.styleText)("gray", $) : "";
4042
+ return `${s}${c}${a}${n.trim() ? `
4061
4043
  ${c}` : ""}`;
4062
4044
  }
4063
- default: return `${s}${i ? `${(0, node_util.styleText)("cyan", d)} ` : ""}${u$13}
4064
- ${i ? (0, node_util.styleText)("cyan", E) : ""}
4045
+ default: return `${s}${i ? `${(0, node_util.styleText)("cyan", $)} ` : ""}${u}
4046
+ ${i ? (0, node_util.styleText)("cyan", x) : ""}
4065
4047
  `;
4066
4048
  }
4067
4049
  }
@@ -4412,7 +4394,7 @@ function createIgnoreFilter(patterns) {
4412
4394
  };
4413
4395
  }
4414
4396
  //#endregion
4415
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.js
4397
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js
4416
4398
  var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => {
4417
4399
  const ALIAS = Symbol.for("yaml.alias");
4418
4400
  const DOC = Symbol.for("yaml.document");
@@ -4462,7 +4444,7 @@ var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => {
4462
4444
  exports.isSeq = isSeq;
4463
4445
  }));
4464
4446
  //#endregion
4465
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/visit.js
4447
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/visit.js
4466
4448
  var require_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
4467
4449
  var identity = require_identity();
4468
4450
  const BREAK = Symbol("break visit");
@@ -4652,7 +4634,7 @@ var require_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
4652
4634
  exports.visitAsync = visitAsync;
4653
4635
  }));
4654
4636
  //#endregion
4655
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js
4637
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js
4656
4638
  var require_directives = /* @__PURE__ */ __commonJSMin(((exports) => {
4657
4639
  var identity = require_identity();
4658
4640
  var visit = require_visit();
@@ -4817,7 +4799,7 @@ var require_directives = /* @__PURE__ */ __commonJSMin(((exports) => {
4817
4799
  exports.Directives = Directives;
4818
4800
  }));
4819
4801
  //#endregion
4820
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js
4802
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js
4821
4803
  var require_anchors = /* @__PURE__ */ __commonJSMin(((exports) => {
4822
4804
  var identity = require_identity();
4823
4805
  var visit = require_visit();
@@ -4884,7 +4866,7 @@ var require_anchors = /* @__PURE__ */ __commonJSMin(((exports) => {
4884
4866
  exports.findNewAnchor = findNewAnchor;
4885
4867
  }));
4886
4868
  //#endregion
4887
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js
4869
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js
4888
4870
  var require_applyReviver = /* @__PURE__ */ __commonJSMin(((exports) => {
4889
4871
  /**
4890
4872
  * Applies the JSON.parse reviver algorithm as defined in the ECMA-262 spec,
@@ -4924,7 +4906,7 @@ var require_applyReviver = /* @__PURE__ */ __commonJSMin(((exports) => {
4924
4906
  exports.applyReviver = applyReviver;
4925
4907
  }));
4926
4908
  //#endregion
4927
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.js
4909
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js
4928
4910
  var require_toJS = /* @__PURE__ */ __commonJSMin(((exports) => {
4929
4911
  var identity = require_identity();
4930
4912
  /**
@@ -4961,7 +4943,7 @@ var require_toJS = /* @__PURE__ */ __commonJSMin(((exports) => {
4961
4943
  exports.toJS = toJS;
4962
4944
  }));
4963
4945
  //#endregion
4964
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.js
4946
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js
4965
4947
  var require_Node = /* @__PURE__ */ __commonJSMin(((exports) => {
4966
4948
  var applyReviver = require_applyReviver();
4967
4949
  var identity = require_identity();
@@ -4995,7 +4977,7 @@ var require_Node = /* @__PURE__ */ __commonJSMin(((exports) => {
4995
4977
  exports.NodeBase = NodeBase;
4996
4978
  }));
4997
4979
  //#endregion
4998
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.js
4980
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js
4999
4981
  var require_Alias = /* @__PURE__ */ __commonJSMin(((exports) => {
5000
4982
  var anchors = require_anchors();
5001
4983
  var visit = require_visit();
@@ -5015,6 +4997,7 @@ var require_Alias = /* @__PURE__ */ __commonJSMin(((exports) => {
5015
4997
  * instance of the `source` anchor before this node.
5016
4998
  */
5017
4999
  resolve(doc, ctx) {
5000
+ if (ctx?.maxAliasCount === 0) throw new ReferenceError("Alias resolution is disabled");
5018
5001
  let nodes;
5019
5002
  if (ctx?.aliasResolveCache) nodes = ctx.aliasResolveCache;
5020
5003
  else {
@@ -5088,7 +5071,7 @@ var require_Alias = /* @__PURE__ */ __commonJSMin(((exports) => {
5088
5071
  exports.Alias = Alias;
5089
5072
  }));
5090
5073
  //#endregion
5091
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.js
5074
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js
5092
5075
  var require_Scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
5093
5076
  var identity = require_identity();
5094
5077
  var Node = require_Node();
@@ -5115,7 +5098,7 @@ var require_Scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
5115
5098
  exports.isScalarValue = isScalarValue;
5116
5099
  }));
5117
5100
  //#endregion
5118
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js
5101
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js
5119
5102
  var require_createNode = /* @__PURE__ */ __commonJSMin(((exports) => {
5120
5103
  var Alias = require_Alias();
5121
5104
  var identity = require_identity();
@@ -5178,7 +5161,7 @@ var require_createNode = /* @__PURE__ */ __commonJSMin(((exports) => {
5178
5161
  exports.createNode = createNode;
5179
5162
  }));
5180
5163
  //#endregion
5181
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.js
5164
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js
5182
5165
  var require_Collection = /* @__PURE__ */ __commonJSMin(((exports) => {
5183
5166
  var createNode = require_createNode();
5184
5167
  var identity = require_identity();
@@ -5299,7 +5282,7 @@ var require_Collection = /* @__PURE__ */ __commonJSMin(((exports) => {
5299
5282
  exports.isEmptyPath = isEmptyPath;
5300
5283
  }));
5301
5284
  //#endregion
5302
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.js
5285
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js
5303
5286
  var require_stringifyComment = /* @__PURE__ */ __commonJSMin(((exports) => {
5304
5287
  /**
5305
5288
  * Stringifies a comment.
@@ -5319,7 +5302,7 @@ var require_stringifyComment = /* @__PURE__ */ __commonJSMin(((exports) => {
5319
5302
  exports.stringifyComment = stringifyComment;
5320
5303
  }));
5321
5304
  //#endregion
5322
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.js
5305
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js
5323
5306
  var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
5324
5307
  const FOLD_FLOW = "flow";
5325
5308
  const FOLD_BLOCK = "block";
@@ -5435,7 +5418,7 @@ var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
5435
5418
  exports.foldFlowLines = foldFlowLines;
5436
5419
  }));
5437
5420
  //#endregion
5438
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.js
5421
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js
5439
5422
  var require_stringifyString = /* @__PURE__ */ __commonJSMin(((exports) => {
5440
5423
  var Scalar = require_Scalar();
5441
5424
  var foldFlowLines = require_foldFlowLines();
@@ -5659,7 +5642,7 @@ var require_stringifyString = /* @__PURE__ */ __commonJSMin(((exports) => {
5659
5642
  exports.stringifyString = stringifyString;
5660
5643
  }));
5661
5644
  //#endregion
5662
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.js
5645
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js
5663
5646
  var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
5664
5647
  var anchors = require_anchors();
5665
5648
  var identity = require_identity();
@@ -5767,7 +5750,7 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
5767
5750
  exports.stringify = stringify;
5768
5751
  }));
5769
5752
  //#endregion
5770
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.js
5753
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js
5771
5754
  var require_stringifyPair = /* @__PURE__ */ __commonJSMin(((exports) => {
5772
5755
  var identity = require_identity();
5773
5756
  var Scalar = require_Scalar();
@@ -5864,7 +5847,7 @@ var require_stringifyPair = /* @__PURE__ */ __commonJSMin(((exports) => {
5864
5847
  exports.stringifyPair = stringifyPair;
5865
5848
  }));
5866
5849
  //#endregion
5867
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/log.js
5850
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/log.js
5868
5851
  var require_log = /* @__PURE__ */ __commonJSMin(((exports) => {
5869
5852
  var node_process$3 = require("process");
5870
5853
  function debug(logLevel, ...messages) {
@@ -5878,7 +5861,7 @@ var require_log = /* @__PURE__ */ __commonJSMin(((exports) => {
5878
5861
  exports.warn = warn;
5879
5862
  }));
5880
5863
  //#endregion
5881
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.js
5864
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js
5882
5865
  var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
5883
5866
  var identity = require_identity();
5884
5867
  var Scalar = require_Scalar();
@@ -5893,13 +5876,13 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
5893
5876
  };
5894
5877
  const isMergeKey = (ctx, key) => (merge.identify(key) || identity.isScalar(key) && (!key.type || key.type === Scalar.Scalar.PLAIN) && merge.identify(key.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge.tag && tag.default);
5895
5878
  function addMergeToJSMap(ctx, map, value) {
5896
- value = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
5897
- if (identity.isSeq(value)) for (const it of value.items) mergeValue(ctx, map, it);
5898
- else if (Array.isArray(value)) for (const it of value) mergeValue(ctx, map, it);
5899
- else mergeValue(ctx, map, value);
5879
+ const source = resolveAliasValue(ctx, value);
5880
+ if (identity.isSeq(source)) for (const it of source.items) mergeValue(ctx, map, it);
5881
+ else if (Array.isArray(source)) for (const it of source) mergeValue(ctx, map, it);
5882
+ else mergeValue(ctx, map, source);
5900
5883
  }
5901
5884
  function mergeValue(ctx, map, value) {
5902
- const source = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
5885
+ const source = resolveAliasValue(ctx, value);
5903
5886
  if (!identity.isMap(source)) throw new Error("Merge sources must be maps or map aliases");
5904
5887
  const srcMap = source.toJSON(null, ctx, Map);
5905
5888
  for (const [key, value] of srcMap) if (map instanceof Map) {
@@ -5913,12 +5896,15 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
5913
5896
  });
5914
5897
  return map;
5915
5898
  }
5899
+ function resolveAliasValue(ctx, value) {
5900
+ return ctx && identity.isAlias(value) ? value.resolve(ctx.doc, ctx) : value;
5901
+ }
5916
5902
  exports.addMergeToJSMap = addMergeToJSMap;
5917
5903
  exports.isMergeKey = isMergeKey;
5918
5904
  exports.merge = merge;
5919
5905
  }));
5920
5906
  //#endregion
5921
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.js
5907
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js
5922
5908
  var require_addPairToJSMap = /* @__PURE__ */ __commonJSMin(((exports) => {
5923
5909
  var log = require_log();
5924
5910
  var merge = require_merge();
@@ -5969,7 +5955,7 @@ var require_addPairToJSMap = /* @__PURE__ */ __commonJSMin(((exports) => {
5969
5955
  exports.addPairToJSMap = addPairToJSMap;
5970
5956
  }));
5971
5957
  //#endregion
5972
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.js
5958
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js
5973
5959
  var require_Pair = /* @__PURE__ */ __commonJSMin(((exports) => {
5974
5960
  var createNode = require_createNode();
5975
5961
  var stringifyPair = require_stringifyPair();
@@ -6002,7 +5988,7 @@ var require_Pair = /* @__PURE__ */ __commonJSMin(((exports) => {
6002
5988
  exports.createPair = createPair;
6003
5989
  }));
6004
5990
  //#endregion
6005
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.js
5991
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js
6006
5992
  var require_stringifyCollection = /* @__PURE__ */ __commonJSMin(((exports) => {
6007
5993
  var identity = require_identity();
6008
5994
  var stringify = require_stringify();
@@ -6120,7 +6106,7 @@ var require_stringifyCollection = /* @__PURE__ */ __commonJSMin(((exports) => {
6120
6106
  exports.stringifyCollection = stringifyCollection;
6121
6107
  }));
6122
6108
  //#endregion
6123
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.js
6109
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js
6124
6110
  var require_YAMLMap = /* @__PURE__ */ __commonJSMin(((exports) => {
6125
6111
  var stringifyCollection = require_stringifyCollection();
6126
6112
  var addPairToJSMap = require_addPairToJSMap();
@@ -6229,7 +6215,7 @@ var require_YAMLMap = /* @__PURE__ */ __commonJSMin(((exports) => {
6229
6215
  exports.findPair = findPair;
6230
6216
  }));
6231
6217
  //#endregion
6232
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.js
6218
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js
6233
6219
  var require_map = /* @__PURE__ */ __commonJSMin(((exports) => {
6234
6220
  var identity = require_identity();
6235
6221
  var YAMLMap = require_YAMLMap();
@@ -6246,7 +6232,7 @@ var require_map = /* @__PURE__ */ __commonJSMin(((exports) => {
6246
6232
  };
6247
6233
  }));
6248
6234
  //#endregion
6249
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.js
6235
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js
6250
6236
  var require_YAMLSeq = /* @__PURE__ */ __commonJSMin(((exports) => {
6251
6237
  var createNode = require_createNode();
6252
6238
  var stringifyCollection = require_stringifyCollection();
@@ -6352,7 +6338,7 @@ var require_YAMLSeq = /* @__PURE__ */ __commonJSMin(((exports) => {
6352
6338
  exports.YAMLSeq = YAMLSeq;
6353
6339
  }));
6354
6340
  //#endregion
6355
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.js
6341
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js
6356
6342
  var require_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
6357
6343
  var identity = require_identity();
6358
6344
  var YAMLSeq = require_YAMLSeq();
@@ -6369,7 +6355,7 @@ var require_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
6369
6355
  };
6370
6356
  }));
6371
6357
  //#endregion
6372
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.js
6358
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js
6373
6359
  var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
6374
6360
  var stringifyString = require_stringifyString();
6375
6361
  exports.string = {
@@ -6384,7 +6370,7 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
6384
6370
  };
6385
6371
  }));
6386
6372
  //#endregion
6387
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.js
6373
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js
6388
6374
  var require_null = /* @__PURE__ */ __commonJSMin(((exports) => {
6389
6375
  var Scalar = require_Scalar();
6390
6376
  const nullTag = {
@@ -6399,7 +6385,7 @@ var require_null = /* @__PURE__ */ __commonJSMin(((exports) => {
6399
6385
  exports.nullTag = nullTag;
6400
6386
  }));
6401
6387
  //#endregion
6402
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.js
6388
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js
6403
6389
  var require_bool$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
6404
6390
  var Scalar = require_Scalar();
6405
6391
  const boolTag = {
@@ -6418,14 +6404,14 @@ var require_bool$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
6418
6404
  exports.boolTag = boolTag;
6419
6405
  }));
6420
6406
  //#endregion
6421
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.js
6407
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js
6422
6408
  var require_stringifyNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
6423
6409
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
6424
6410
  if (typeof value === "bigint") return String(value);
6425
6411
  const num = typeof value === "number" ? value : Number(value);
6426
6412
  if (!isFinite(num)) return isNaN(num) ? ".nan" : num < 0 ? "-.inf" : ".inf";
6427
6413
  let n = Object.is(value, -0) ? "-0" : JSON.stringify(value);
6428
- if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^\d/.test(n)) {
6414
+ if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^-?\d/.test(n) && !n.includes("e")) {
6429
6415
  let i = n.indexOf(".");
6430
6416
  if (i < 0) {
6431
6417
  i = n.length;
@@ -6439,7 +6425,7 @@ var require_stringifyNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
6439
6425
  exports.stringifyNumber = stringifyNumber;
6440
6426
  }));
6441
6427
  //#endregion
6442
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.js
6428
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js
6443
6429
  var require_float$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
6444
6430
  var Scalar = require_Scalar();
6445
6431
  var stringifyNumber = require_stringifyNumber();
@@ -6480,7 +6466,7 @@ var require_float$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
6480
6466
  exports.floatNaN = floatNaN;
6481
6467
  }));
6482
6468
  //#endregion
6483
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.js
6469
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js
6484
6470
  var require_int$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
6485
6471
  var stringifyNumber = require_stringifyNumber();
6486
6472
  const intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -6521,7 +6507,7 @@ var require_int$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
6521
6507
  exports.intOct = intOct;
6522
6508
  }));
6523
6509
  //#endregion
6524
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.js
6510
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js
6525
6511
  var require_schema$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
6526
6512
  var map = require_map();
6527
6513
  var _null = require_null();
@@ -6545,7 +6531,7 @@ var require_schema$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
6545
6531
  ];
6546
6532
  }));
6547
6533
  //#endregion
6548
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.js
6534
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js
6549
6535
  var require_schema$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
6550
6536
  var Scalar = require_Scalar();
6551
6537
  var map = require_map();
@@ -6607,7 +6593,7 @@ var require_schema$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
6607
6593
  });
6608
6594
  }));
6609
6595
  //#endregion
6610
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.js
6596
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js
6611
6597
  var require_binary = /* @__PURE__ */ __commonJSMin(((exports) => {
6612
6598
  var node_buffer = require("buffer");
6613
6599
  var Scalar = require_Scalar();
@@ -6663,7 +6649,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports) => {
6663
6649
  };
6664
6650
  }));
6665
6651
  //#endregion
6666
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
6652
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
6667
6653
  var require_pairs = /* @__PURE__ */ __commonJSMin(((exports) => {
6668
6654
  var identity = require_identity();
6669
6655
  var Pair = require_Pair();
@@ -6723,7 +6709,7 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports) => {
6723
6709
  exports.resolvePairs = resolvePairs;
6724
6710
  }));
6725
6711
  //#endregion
6726
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.js
6712
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js
6727
6713
  var require_omap = /* @__PURE__ */ __commonJSMin(((exports) => {
6728
6714
  var identity = require_identity();
6729
6715
  var toJS = require_toJS();
@@ -6786,7 +6772,7 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports) => {
6786
6772
  exports.omap = omap;
6787
6773
  }));
6788
6774
  //#endregion
6789
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.js
6775
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js
6790
6776
  var require_bool = /* @__PURE__ */ __commonJSMin(((exports) => {
6791
6777
  var Scalar = require_Scalar();
6792
6778
  function boolStringify({ value, source }, ctx) {
@@ -6813,7 +6799,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin(((exports) => {
6813
6799
  exports.trueTag = trueTag;
6814
6800
  }));
6815
6801
  //#endregion
6816
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.js
6802
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js
6817
6803
  var require_float = /* @__PURE__ */ __commonJSMin(((exports) => {
6818
6804
  var Scalar = require_Scalar();
6819
6805
  var stringifyNumber = require_stringifyNumber();
@@ -6857,7 +6843,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports) => {
6857
6843
  exports.floatNaN = floatNaN;
6858
6844
  }));
6859
6845
  //#endregion
6860
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.js
6846
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js
6861
6847
  var require_int = /* @__PURE__ */ __commonJSMin(((exports) => {
6862
6848
  var stringifyNumber = require_stringifyNumber();
6863
6849
  const intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -6932,7 +6918,7 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports) => {
6932
6918
  exports.intOct = intOct;
6933
6919
  }));
6934
6920
  //#endregion
6935
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.js
6921
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js
6936
6922
  var require_set = /* @__PURE__ */ __commonJSMin(((exports) => {
6937
6923
  var identity = require_identity();
6938
6924
  var Pair = require_Pair();
@@ -7000,7 +6986,7 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports) => {
7000
6986
  exports.set = set;
7001
6987
  }));
7002
6988
  //#endregion
7003
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
6989
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
7004
6990
  var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports) => {
7005
6991
  var stringifyNumber = require_stringifyNumber();
7006
6992
  /** Internal types handle bigint as number, because TS can't figure it out. */
@@ -7083,7 +7069,7 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports) => {
7083
7069
  exports.timestamp = timestamp;
7084
7070
  }));
7085
7071
  //#endregion
7086
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.js
7072
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js
7087
7073
  var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
7088
7074
  var map = require_map();
7089
7075
  var _null = require_null();
@@ -7123,7 +7109,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
7123
7109
  ];
7124
7110
  }));
7125
7111
  //#endregion
7126
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/tags.js
7112
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js
7127
7113
  var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => {
7128
7114
  var map = require_map();
7129
7115
  var _null = require_null();
@@ -7207,7 +7193,7 @@ var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => {
7207
7193
  exports.getTags = getTags;
7208
7194
  }));
7209
7195
  //#endregion
7210
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.js
7196
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js
7211
7197
  var require_Schema = /* @__PURE__ */ __commonJSMin(((exports) => {
7212
7198
  var identity = require_identity();
7213
7199
  var map = require_map();
@@ -7235,7 +7221,7 @@ var require_Schema = /* @__PURE__ */ __commonJSMin(((exports) => {
7235
7221
  };
7236
7222
  }));
7237
7223
  //#endregion
7238
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.js
7224
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js
7239
7225
  var require_stringifyDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
7240
7226
  var identity = require_identity();
7241
7227
  var stringify = require_stringify();
@@ -7296,7 +7282,7 @@ var require_stringifyDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
7296
7282
  exports.stringifyDocument = stringifyDocument;
7297
7283
  }));
7298
7284
  //#endregion
7299
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js
7285
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js
7300
7286
  var require_Document = /* @__PURE__ */ __commonJSMin(((exports) => {
7301
7287
  var Alias = require_Alias();
7302
7288
  var Collection = require_Collection();
@@ -7577,7 +7563,7 @@ var require_Document = /* @__PURE__ */ __commonJSMin(((exports) => {
7577
7563
  exports.Document = Document;
7578
7564
  }));
7579
7565
  //#endregion
7580
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/errors.js
7566
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/errors.js
7581
7567
  var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
7582
7568
  var YAMLError = class extends Error {
7583
7569
  constructor(name, pos, code, message) {
@@ -7630,7 +7616,7 @@ var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
7630
7616
  exports.prettifyError = prettifyError;
7631
7617
  }));
7632
7618
  //#endregion
7633
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js
7619
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js
7634
7620
  var require_resolve_props = /* @__PURE__ */ __commonJSMin(((exports) => {
7635
7621
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
7636
7622
  let spaceBefore = false;
@@ -7737,7 +7723,7 @@ var require_resolve_props = /* @__PURE__ */ __commonJSMin(((exports) => {
7737
7723
  exports.resolveProps = resolveProps;
7738
7724
  }));
7739
7725
  //#endregion
7740
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js
7726
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js
7741
7727
  var require_util_contains_newline = /* @__PURE__ */ __commonJSMin(((exports) => {
7742
7728
  function containsNewline(key) {
7743
7729
  if (!key) return null;
@@ -7766,7 +7752,7 @@ var require_util_contains_newline = /* @__PURE__ */ __commonJSMin(((exports) =>
7766
7752
  exports.containsNewline = containsNewline;
7767
7753
  }));
7768
7754
  //#endregion
7769
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js
7755
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js
7770
7756
  var require_util_flow_indent_check = /* @__PURE__ */ __commonJSMin(((exports) => {
7771
7757
  var utilContainsNewline = require_util_contains_newline();
7772
7758
  function flowIndentCheck(indent, fc, onError) {
@@ -7778,7 +7764,7 @@ var require_util_flow_indent_check = /* @__PURE__ */ __commonJSMin(((exports) =>
7778
7764
  exports.flowIndentCheck = flowIndentCheck;
7779
7765
  }));
7780
7766
  //#endregion
7781
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js
7767
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js
7782
7768
  var require_util_map_includes = /* @__PURE__ */ __commonJSMin(((exports) => {
7783
7769
  var identity = require_identity();
7784
7770
  function mapIncludes(ctx, items, search) {
@@ -7790,7 +7776,7 @@ var require_util_map_includes = /* @__PURE__ */ __commonJSMin(((exports) => {
7790
7776
  exports.mapIncludes = mapIncludes;
7791
7777
  }));
7792
7778
  //#endregion
7793
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.js
7779
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js
7794
7780
  var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
7795
7781
  var Pair = require_Pair();
7796
7782
  var YAMLMap = require_YAMLMap();
@@ -7874,7 +7860,7 @@ var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
7874
7860
  exports.resolveBlockMap = resolveBlockMap;
7875
7861
  }));
7876
7862
  //#endregion
7877
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js
7863
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js
7878
7864
  var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
7879
7865
  var YAMLSeq = require_YAMLSeq();
7880
7866
  var resolveProps = require_resolve_props();
@@ -7916,7 +7902,7 @@ var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
7916
7902
  exports.resolveBlockSeq = resolveBlockSeq;
7917
7903
  }));
7918
7904
  //#endregion
7919
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js
7905
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js
7920
7906
  var require_resolve_end = /* @__PURE__ */ __commonJSMin(((exports) => {
7921
7907
  function resolveEnd(end, offset, reqSpace, onError) {
7922
7908
  let comment = "";
@@ -7954,7 +7940,7 @@ var require_resolve_end = /* @__PURE__ */ __commonJSMin(((exports) => {
7954
7940
  exports.resolveEnd = resolveEnd;
7955
7941
  }));
7956
7942
  //#endregion
7957
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js
7943
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js
7958
7944
  var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
7959
7945
  var identity = require_identity();
7960
7946
  var Pair = require_Pair();
@@ -8109,7 +8095,7 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
8109
8095
  exports.resolveFlowCollection = resolveFlowCollection;
8110
8096
  }));
8111
8097
  //#endregion
8112
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.js
8098
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js
8113
8099
  var require_compose_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
8114
8100
  var identity = require_identity();
8115
8101
  var Scalar = require_Scalar();
@@ -8161,7 +8147,7 @@ var require_compose_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
8161
8147
  exports.composeCollection = composeCollection;
8162
8148
  }));
8163
8149
  //#endregion
8164
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.js
8150
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js
8165
8151
  var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
8166
8152
  var Scalar = require_Scalar();
8167
8153
  function resolveBlockScalar(ctx, scalar, onError) {
@@ -8337,7 +8323,7 @@ var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
8337
8323
  exports.resolveBlockScalar = resolveBlockScalar;
8338
8324
  }));
8339
8325
  //#endregion
8340
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js
8326
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js
8341
8327
  var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
8342
8328
  var Scalar = require_Scalar();
8343
8329
  var resolveEnd = require_resolve_end();
@@ -8471,11 +8457,7 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
8471
8457
  next = source[++i + 1];
8472
8458
  while (next === " " || next === " ") next = source[++i + 1];
8473
8459
  } else if (next === "x" || next === "u" || next === "U") {
8474
- const length = {
8475
- x: 2,
8476
- u: 4,
8477
- U: 8
8478
- }[next];
8460
+ const length = next === "x" ? 2 : next === "u" ? 4 : 8;
8479
8461
  res += parseCharCode(source, i + 1, length, onError);
8480
8462
  i += length;
8481
8463
  } else {
@@ -8535,17 +8517,18 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
8535
8517
  function parseCharCode(source, offset, length, onError) {
8536
8518
  const cc = source.substr(offset, length);
8537
8519
  const code = cc.length === length && /^[0-9a-fA-F]+$/.test(cc) ? parseInt(cc, 16) : NaN;
8538
- if (isNaN(code)) {
8520
+ try {
8521
+ return String.fromCodePoint(code);
8522
+ } catch {
8539
8523
  const raw = source.substr(offset - 2, length + 2);
8540
8524
  onError(offset - 2, "BAD_DQ_ESCAPE", `Invalid escape sequence ${raw}`);
8541
8525
  return raw;
8542
8526
  }
8543
- return String.fromCodePoint(code);
8544
8527
  }
8545
8528
  exports.resolveFlowScalar = resolveFlowScalar;
8546
8529
  }));
8547
8530
  //#endregion
8548
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.js
8531
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js
8549
8532
  var require_compose_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
8550
8533
  var identity = require_identity();
8551
8534
  var Scalar = require_Scalar();
@@ -8604,7 +8587,7 @@ var require_compose_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
8604
8587
  exports.composeScalar = composeScalar;
8605
8588
  }));
8606
8589
  //#endregion
8607
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js
8590
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js
8608
8591
  var require_util_empty_scalar_position = /* @__PURE__ */ __commonJSMin(((exports) => {
8609
8592
  function emptyScalarPosition(offset, before, pos) {
8610
8593
  if (before) {
@@ -8631,7 +8614,7 @@ var require_util_empty_scalar_position = /* @__PURE__ */ __commonJSMin(((exports
8631
8614
  exports.emptyScalarPosition = emptyScalarPosition;
8632
8615
  }));
8633
8616
  //#endregion
8634
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.js
8617
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js
8635
8618
  var require_compose_node = /* @__PURE__ */ __commonJSMin(((exports) => {
8636
8619
  var Alias = require_Alias();
8637
8620
  var identity = require_identity();
@@ -8720,7 +8703,7 @@ var require_compose_node = /* @__PURE__ */ __commonJSMin(((exports) => {
8720
8703
  exports.composeNode = composeNode;
8721
8704
  }));
8722
8705
  //#endregion
8723
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.js
8706
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js
8724
8707
  var require_compose_doc = /* @__PURE__ */ __commonJSMin(((exports) => {
8725
8708
  var Document = require_Document();
8726
8709
  var composeNode = require_compose_node();
@@ -8762,7 +8745,7 @@ var require_compose_doc = /* @__PURE__ */ __commonJSMin(((exports) => {
8762
8745
  exports.composeDoc = composeDoc;
8763
8746
  }));
8764
8747
  //#endregion
8765
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/composer.js
8748
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js
8766
8749
  var require_composer = /* @__PURE__ */ __commonJSMin(((exports) => {
8767
8750
  var node_process$2 = require("process");
8768
8751
  var directives = require_directives();
@@ -8846,8 +8829,8 @@ var require_composer = /* @__PURE__ */ __commonJSMin(((exports) => {
8846
8829
  }
8847
8830
  }
8848
8831
  if (afterDoc) {
8849
- Array.prototype.push.apply(doc.errors, this.errors);
8850
- Array.prototype.push.apply(doc.warnings, this.warnings);
8832
+ for (let i = 0; i < this.errors.length; ++i) doc.errors.push(this.errors[i]);
8833
+ for (let i = 0; i < this.warnings.length; ++i) doc.warnings.push(this.warnings[i]);
8851
8834
  } else {
8852
8835
  doc.errors = this.errors;
8853
8836
  doc.warnings = this.warnings;
@@ -8960,7 +8943,7 @@ var require_composer = /* @__PURE__ */ __commonJSMin(((exports) => {
8960
8943
  exports.Composer = Composer;
8961
8944
  }));
8962
8945
  //#endregion
8963
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.js
8946
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js
8964
8947
  var require_cst_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
8965
8948
  var resolveBlockScalar = require_resolve_block_scalar();
8966
8949
  var resolveFlowScalar = require_resolve_flow_scalar();
@@ -9227,7 +9210,7 @@ var require_cst_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
9227
9210
  exports.setScalarValue = setScalarValue;
9228
9211
  }));
9229
9212
  //#endregion
9230
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.js
9213
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js
9231
9214
  var require_cst_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
9232
9215
  /**
9233
9216
  * Stringify a CST document, token, or collection item
@@ -9278,7 +9261,7 @@ var require_cst_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
9278
9261
  exports.stringify = stringify;
9279
9262
  }));
9280
9263
  //#endregion
9281
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.js
9264
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js
9282
9265
  var require_cst_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
9283
9266
  const BREAK = Symbol("break visit");
9284
9267
  const SKIP = Symbol("skip children");
@@ -9369,7 +9352,7 @@ var require_cst_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
9369
9352
  exports.visit = visit;
9370
9353
  }));
9371
9354
  //#endregion
9372
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst.js
9355
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js
9373
9356
  var require_cst = /* @__PURE__ */ __commonJSMin(((exports) => {
9374
9357
  var cstScalar = require_cst_scalar();
9375
9358
  var cstStringify = require_cst_stringify();
@@ -9448,7 +9431,7 @@ var require_cst = /* @__PURE__ */ __commonJSMin(((exports) => {
9448
9431
  exports.tokenType = tokenType;
9449
9432
  }));
9450
9433
  //#endregion
9451
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.js
9434
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js
9452
9435
  var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
9453
9436
  var cst = require_cst();
9454
9437
  function isEmpty(ch) {
@@ -9662,7 +9645,7 @@ var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
9662
9645
  const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true));
9663
9646
  this.indentNext = this.indentValue + 1;
9664
9647
  this.indentValue += n;
9665
- return yield* this.parseBlockStart();
9648
+ return "block-start";
9666
9649
  }
9667
9650
  return "doc";
9668
9651
  }
@@ -9906,22 +9889,34 @@ var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
9906
9889
  return 0;
9907
9890
  }
9908
9891
  *pushIndicators() {
9909
- switch (this.charAt(0)) {
9910
- case "!": return (yield* this.pushTag()) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
9911
- case "&": return (yield* this.pushUntil(isNotAnchorChar)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
9912
- case "-":
9913
- case "?":
9914
- case ":": {
9915
- const inFlow = this.flowLevel > 0;
9916
- const ch1 = this.charAt(1);
9917
- if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
9918
- if (!inFlow) this.indentNext = this.indentValue + 1;
9919
- else if (this.flowKey) this.flowKey = false;
9920
- return (yield* this.pushCount(1)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
9892
+ let n = 0;
9893
+ loop: while (true) {
9894
+ switch (this.charAt(0)) {
9895
+ case "!":
9896
+ n += yield* this.pushTag();
9897
+ n += yield* this.pushSpaces(true);
9898
+ continue loop;
9899
+ case "&":
9900
+ n += yield* this.pushUntil(isNotAnchorChar);
9901
+ n += yield* this.pushSpaces(true);
9902
+ continue loop;
9903
+ case "-":
9904
+ case "?":
9905
+ case ":": {
9906
+ const inFlow = this.flowLevel > 0;
9907
+ const ch1 = this.charAt(1);
9908
+ if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
9909
+ if (!inFlow) this.indentNext = this.indentValue + 1;
9910
+ else if (this.flowKey) this.flowKey = false;
9911
+ n += yield* this.pushCount(1);
9912
+ n += yield* this.pushSpaces(true);
9913
+ continue loop;
9914
+ }
9921
9915
  }
9922
9916
  }
9917
+ break loop;
9923
9918
  }
9924
- return 0;
9919
+ return n;
9925
9920
  }
9926
9921
  *pushTag() {
9927
9922
  if (this.charAt(1) === "<") {
@@ -9967,7 +9962,7 @@ var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
9967
9962
  exports.Lexer = Lexer;
9968
9963
  }));
9969
9964
  //#endregion
9970
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.js
9965
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js
9971
9966
  var require_line_counter = /* @__PURE__ */ __commonJSMin(((exports) => {
9972
9967
  /**
9973
9968
  * Tracks newlines during parsing in order to provide an efficient API for
@@ -10014,7 +10009,7 @@ var require_line_counter = /* @__PURE__ */ __commonJSMin(((exports) => {
10014
10009
  exports.LineCounter = LineCounter;
10015
10010
  }));
10016
10011
  //#endregion
10017
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/parser.js
10012
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js
10018
10013
  var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
10019
10014
  var node_process$1 = require("process");
10020
10015
  var cst = require_cst();
@@ -10068,14 +10063,18 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
10068
10063
  while (prev[++i]?.type === "space");
10069
10064
  return prev.splice(i, prev.length);
10070
10065
  }
10066
+ function arrayPushArray(target, source) {
10067
+ if (source.length < 1e5) Array.prototype.push.apply(target, source);
10068
+ else for (let i = 0; i < source.length; ++i) target.push(source[i]);
10069
+ }
10071
10070
  function fixFlowSeqItems(fc) {
10072
10071
  if (fc.start.type === "flow-seq-start") {
10073
10072
  for (const it of fc.items) if (it.sep && !it.value && !includesToken(it.start, "explicit-key-ind") && !includesToken(it.sep, "map-value-ind")) {
10074
10073
  if (it.key) it.value = it.key;
10075
10074
  delete it.key;
10076
- if (isFlowToken(it.value)) if (it.value.end) Array.prototype.push.apply(it.value.end, it.sep);
10075
+ if (isFlowToken(it.value)) if (it.value.end) arrayPushArray(it.value.end, it.sep);
10077
10076
  else it.value.end = it.sep;
10078
- else Array.prototype.push.apply(it.start, it.sep);
10077
+ else arrayPushArray(it.start, it.sep);
10079
10078
  delete it.sep;
10080
10079
  }
10081
10080
  }
@@ -10447,7 +10446,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
10447
10446
  if (this.atIndentedComment(it.start, map.indent)) {
10448
10447
  const end = map.items[map.items.length - 2]?.value?.end;
10449
10448
  if (Array.isArray(end)) {
10450
- Array.prototype.push.apply(end, it.start);
10449
+ arrayPushArray(end, it.start);
10451
10450
  end.push(this.sourceToken);
10452
10451
  map.items.pop();
10453
10452
  return;
@@ -10645,7 +10644,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
10645
10644
  if (this.atIndentedComment(it.start, seq.indent)) {
10646
10645
  const end = seq.items[seq.items.length - 2]?.value?.end;
10647
10646
  if (Array.isArray(end)) {
10648
- Array.prototype.push.apply(end, it.start);
10647
+ arrayPushArray(end, it.start);
10649
10648
  end.push(this.sourceToken);
10650
10649
  seq.items.pop();
10651
10650
  return;
@@ -10873,7 +10872,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
10873
10872
  exports.Parser = Parser;
10874
10873
  }));
10875
10874
  //#endregion
10876
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/public-api.js
10875
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/public-api.js
10877
10876
  var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
10878
10877
  var composer = require_composer();
10879
10878
  var Document = require_Document();
@@ -10960,7 +10959,7 @@ var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
10960
10959
  exports.stringify = stringify;
10961
10960
  }));
10962
10961
  //#endregion
10963
- //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/index.js
10962
+ //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/index.js
10964
10963
  var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
10965
10964
  var composer = require_composer();
10966
10965
  var Document = require_Document();
@@ -11007,7 +11006,9 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
11007
11006
  exports.visit = visit.visit;
11008
11007
  exports.visitAsync = visit.visitAsync;
11009
11008
  }));
11010
- Object.freeze({ status: "aborted" });
11009
+ //#endregion
11010
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
11011
+ var _a$1;
11011
11012
  function $constructor(name, initializer, params) {
11012
11013
  function init(inst, def) {
11013
11014
  if (!inst._zod) Object.defineProperty(inst, "_zod", {
@@ -11058,13 +11059,14 @@ var $ZodEncodeError = class extends Error {
11058
11059
  this.name = "ZodEncodeError";
11059
11060
  }
11060
11061
  };
11061
- const globalConfig = {};
11062
+ (_a$1 = globalThis).__zod_globalConfig ?? (_a$1.__zod_globalConfig = {});
11063
+ const globalConfig = globalThis.__zod_globalConfig;
11062
11064
  function config(newConfig) {
11063
11065
  if (newConfig) Object.assign(globalConfig, newConfig);
11064
11066
  return globalConfig;
11065
11067
  }
11066
11068
  //#endregion
11067
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
11069
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
11068
11070
  function getEnumValues(entries) {
11069
11071
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
11070
11072
  return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
@@ -11091,7 +11093,7 @@ function cleanRegex(source) {
11091
11093
  const end = source.endsWith("$") ? source.length - 1 : source.length;
11092
11094
  return source.slice(start, end);
11093
11095
  }
11094
- const EVALUATING = Symbol("evaluating");
11096
+ const EVALUATING = /* @__PURE__*/ Symbol("evaluating");
11095
11097
  function defineLazy(object, key, getter) {
11096
11098
  let value = void 0;
11097
11099
  Object.defineProperty(object, key, {
@@ -11132,7 +11134,8 @@ const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace
11132
11134
  function isObject(data) {
11133
11135
  return typeof data === "object" && data !== null && !Array.isArray(data);
11134
11136
  }
11135
- const allowsEval = cached(() => {
11137
+ const allowsEval = /* @__PURE__*/ cached(() => {
11138
+ if (globalConfig.jitless) return false;
11136
11139
  if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) return false;
11137
11140
  try {
11138
11141
  new Function("");
@@ -11154,9 +11157,11 @@ function isPlainObject$1(o) {
11154
11157
  function shallowClone(o) {
11155
11158
  if (isPlainObject$1(o)) return { ...o };
11156
11159
  if (Array.isArray(o)) return [...o];
11160
+ if (o instanceof Map) return new Map(o);
11161
+ if (o instanceof Set) return new Set(o);
11157
11162
  return o;
11158
11163
  }
11159
- const propertyKeyTypes = new Set([
11164
+ const propertyKeyTypes = /* @__PURE__*/ new Set([
11160
11165
  "string",
11161
11166
  "number",
11162
11167
  "symbol"
@@ -11254,6 +11259,7 @@ function safeExtend(schema, shape) {
11254
11259
  } }));
11255
11260
  }
11256
11261
  function merge(a, b) {
11262
+ if (a._zod.def.checks?.length) throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
11257
11263
  return clone(a, mergeDefs(a._zod.def, {
11258
11264
  get shape() {
11259
11265
  const _shape = {
@@ -11266,7 +11272,7 @@ function merge(a, b) {
11266
11272
  get catchall() {
11267
11273
  return b._zod.def.catchall;
11268
11274
  },
11269
- checks: []
11275
+ checks: b._zod.def.checks ?? []
11270
11276
  }));
11271
11277
  }
11272
11278
  function partial(Class, schema, mask) {
@@ -11319,6 +11325,11 @@ function aborted(x, startIndex = 0) {
11319
11325
  for (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue !== true) return true;
11320
11326
  return false;
11321
11327
  }
11328
+ function explicitlyAborted(x, startIndex = 0) {
11329
+ if (x.aborted === true) return true;
11330
+ for (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue === false) return true;
11331
+ return false;
11332
+ }
11322
11333
  function prefixIssues(path, issues) {
11323
11334
  return issues.map((iss) => {
11324
11335
  var _a;
@@ -11331,15 +11342,12 @@ function unwrapMessage(message) {
11331
11342
  return typeof message === "string" ? message : message?.message;
11332
11343
  }
11333
11344
  function finalizeIssue(iss, ctx, config) {
11334
- const full = {
11335
- ...iss,
11336
- path: iss.path ?? []
11337
- };
11338
- if (!iss.message) full.message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
11339
- delete full.inst;
11340
- delete full.continue;
11341
- if (!ctx?.reportInput) delete full.input;
11342
- return full;
11345
+ const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
11346
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
11347
+ rest.path ?? (rest.path = []);
11348
+ rest.message = message;
11349
+ if (ctx?.reportInput) rest.input = _input;
11350
+ return rest;
11343
11351
  }
11344
11352
  function getLengthableOrigin(input) {
11345
11353
  if (Array.isArray(input)) return "array";
@@ -11357,7 +11365,7 @@ function issue(...args) {
11357
11365
  return { ...iss };
11358
11366
  }
11359
11367
  //#endregion
11360
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
11368
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
11361
11369
  const initializer$1 = (inst, def) => {
11362
11370
  inst.name = "$ZodError";
11363
11371
  Object.defineProperty(inst, "_zod", {
@@ -11390,23 +11398,26 @@ function flattenError(error, mapper = (issue) => issue.message) {
11390
11398
  }
11391
11399
  function formatError(error, mapper = (issue) => issue.message) {
11392
11400
  const fieldErrors = { _errors: [] };
11393
- const processError = (error) => {
11394
- for (const issue of error.issues) if (issue.code === "invalid_union" && issue.errors.length) issue.errors.map((issues) => processError({ issues }));
11395
- else if (issue.code === "invalid_key") processError({ issues: issue.issues });
11396
- else if (issue.code === "invalid_element") processError({ issues: issue.issues });
11397
- else if (issue.path.length === 0) fieldErrors._errors.push(mapper(issue));
11401
+ const processError = (error, path = []) => {
11402
+ for (const issue of error.issues) if (issue.code === "invalid_union" && issue.errors.length) issue.errors.map((issues) => processError({ issues }, [...path, ...issue.path]));
11403
+ else if (issue.code === "invalid_key") processError({ issues: issue.issues }, [...path, ...issue.path]);
11404
+ else if (issue.code === "invalid_element") processError({ issues: issue.issues }, [...path, ...issue.path]);
11398
11405
  else {
11399
- let curr = fieldErrors;
11400
- let i = 0;
11401
- while (i < issue.path.length) {
11402
- const el = issue.path[i];
11403
- if (!(i === issue.path.length - 1)) curr[el] = curr[el] || { _errors: [] };
11404
- else {
11405
- curr[el] = curr[el] || { _errors: [] };
11406
- curr[el]._errors.push(mapper(issue));
11406
+ const fullpath = [...path, ...issue.path];
11407
+ if (fullpath.length === 0) fieldErrors._errors.push(mapper(issue));
11408
+ else {
11409
+ let curr = fieldErrors;
11410
+ let i = 0;
11411
+ while (i < fullpath.length) {
11412
+ const el = fullpath[i];
11413
+ if (!(i === fullpath.length - 1)) curr[el] = curr[el] || { _errors: [] };
11414
+ else {
11415
+ curr[el] = curr[el] || { _errors: [] };
11416
+ curr[el]._errors.push(mapper(issue));
11417
+ }
11418
+ curr = curr[el];
11419
+ i++;
11407
11420
  }
11408
- curr = curr[el];
11409
- i++;
11410
11421
  }
11411
11422
  }
11412
11423
  };
@@ -11414,9 +11425,12 @@ function formatError(error, mapper = (issue) => issue.message) {
11414
11425
  return fieldErrors;
11415
11426
  }
11416
11427
  //#endregion
11417
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
11428
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
11418
11429
  const _parse = (_Err) => (schema, value, _ctx, _params) => {
11419
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
11430
+ const ctx = _ctx ? {
11431
+ ..._ctx,
11432
+ async: false
11433
+ } : { async: false };
11420
11434
  const result = schema._zod.run({
11421
11435
  value,
11422
11436
  issues: []
@@ -11430,7 +11444,10 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
11430
11444
  return result.value;
11431
11445
  };
11432
11446
  const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
11433
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
11447
+ const ctx = _ctx ? {
11448
+ ..._ctx,
11449
+ async: true
11450
+ } : { async: true };
11434
11451
  let result = schema._zod.run({
11435
11452
  value,
11436
11453
  issues: []
@@ -11463,7 +11480,10 @@ const _safeParse = (_Err) => (schema, value, _ctx) => {
11463
11480
  };
11464
11481
  const safeParse$1 = /* @__PURE__*/ _safeParse($ZodRealError);
11465
11482
  const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
11466
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
11483
+ const ctx = _ctx ? {
11484
+ ..._ctx,
11485
+ async: true
11486
+ } : { async: true };
11467
11487
  let result = schema._zod.run({
11468
11488
  value,
11469
11489
  issues: []
@@ -11479,36 +11499,53 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
11479
11499
  };
11480
11500
  const safeParseAsync$1 = /* @__PURE__*/ _safeParseAsync($ZodRealError);
11481
11501
  const _encode = (_Err) => (schema, value, _ctx) => {
11482
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
11502
+ const ctx = _ctx ? {
11503
+ ..._ctx,
11504
+ direction: "backward"
11505
+ } : { direction: "backward" };
11483
11506
  return _parse(_Err)(schema, value, ctx);
11484
11507
  };
11485
11508
  const _decode = (_Err) => (schema, value, _ctx) => {
11486
11509
  return _parse(_Err)(schema, value, _ctx);
11487
11510
  };
11488
11511
  const _encodeAsync = (_Err) => async (schema, value, _ctx) => {
11489
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
11512
+ const ctx = _ctx ? {
11513
+ ..._ctx,
11514
+ direction: "backward"
11515
+ } : { direction: "backward" };
11490
11516
  return _parseAsync(_Err)(schema, value, ctx);
11491
11517
  };
11492
11518
  const _decodeAsync = (_Err) => async (schema, value, _ctx) => {
11493
11519
  return _parseAsync(_Err)(schema, value, _ctx);
11494
11520
  };
11495
11521
  const _safeEncode = (_Err) => (schema, value, _ctx) => {
11496
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
11522
+ const ctx = _ctx ? {
11523
+ ..._ctx,
11524
+ direction: "backward"
11525
+ } : { direction: "backward" };
11497
11526
  return _safeParse(_Err)(schema, value, ctx);
11498
11527
  };
11499
11528
  const _safeDecode = (_Err) => (schema, value, _ctx) => {
11500
11529
  return _safeParse(_Err)(schema, value, _ctx);
11501
11530
  };
11502
11531
  const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
11503
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
11532
+ const ctx = _ctx ? {
11533
+ ..._ctx,
11534
+ direction: "backward"
11535
+ } : { direction: "backward" };
11504
11536
  return _safeParseAsync(_Err)(schema, value, ctx);
11505
11537
  };
11506
11538
  const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
11507
11539
  return _safeParseAsync(_Err)(schema, value, _ctx);
11508
11540
  };
11509
11541
  //#endregion
11510
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
11511
- const cuid = /^[cC][^\s-]{8,}$/;
11542
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
11543
+ /**
11544
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
11545
+ * (timestamps embedded in the id). Use {@link cuid2} instead.
11546
+ * See https://github.com/paralleldrive/cuid.
11547
+ */
11548
+ const cuid = /^[cC][0-9a-z]{6,}$/;
11512
11549
  const cuid2 = /^[0-9a-z]+$/;
11513
11550
  const ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
11514
11551
  const xid = /^[0-9a-vA-V]{20}$/;
@@ -11537,6 +11574,7 @@ const cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-
11537
11574
  const cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
11538
11575
  const base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
11539
11576
  const base64url = /^[A-Za-z0-9_-]*$/;
11577
+ const httpProtocol = /^https?$/;
11540
11578
  const e164 = /^\+[1-9]\d{6,14}$/;
11541
11579
  const dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
11542
11580
  const date$1 = /*@__PURE__*/ new RegExp(`^${dateSource}$`);
@@ -11563,7 +11601,7 @@ const boolean$1 = /^(?:true|false)$/i;
11563
11601
  const lowercase = /^[^A-Z]*$/;
11564
11602
  const uppercase = /^[^a-z]*$/;
11565
11603
  //#endregion
11566
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
11604
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
11567
11605
  const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
11568
11606
  var _a;
11569
11607
  inst._zod ?? (inst._zod = {});
@@ -11782,7 +11820,7 @@ const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (ins
11782
11820
  };
11783
11821
  });
11784
11822
  //#endregion
11785
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
11823
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
11786
11824
  var Doc = class {
11787
11825
  constructor(args = []) {
11788
11826
  this.content = [];
@@ -11813,14 +11851,14 @@ var Doc = class {
11813
11851
  }
11814
11852
  };
11815
11853
  //#endregion
11816
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
11854
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
11817
11855
  const version$1 = {
11818
11856
  major: 4,
11819
- minor: 3,
11820
- patch: 6
11857
+ minor: 4,
11858
+ patch: 3
11821
11859
  };
11822
11860
  //#endregion
11823
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
11861
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
11824
11862
  const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
11825
11863
  var _a;
11826
11864
  inst ?? (inst = {});
@@ -11841,6 +11879,7 @@ const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
11841
11879
  let asyncResult;
11842
11880
  for (const ch of checks) {
11843
11881
  if (ch._zod.def.when) {
11882
+ if (explicitlyAborted(payload)) continue;
11844
11883
  if (!ch._zod.def.when(payload)) continue;
11845
11884
  } else if (isAborted) continue;
11846
11885
  const currLen = payload.issues.length;
@@ -11960,6 +11999,19 @@ const $ZodURL = /*@__PURE__*/ $constructor("$ZodURL", (inst, def) => {
11960
11999
  inst._zod.check = (payload) => {
11961
12000
  try {
11962
12001
  const trimmed = payload.value.trim();
12002
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
12003
+ if (!/^https?:\/\//i.test(trimmed)) {
12004
+ payload.issues.push({
12005
+ code: "invalid_format",
12006
+ format: "url",
12007
+ note: "Invalid URL format",
12008
+ input: payload.value,
12009
+ inst,
12010
+ continue: !def.abort
12011
+ });
12012
+ return;
12013
+ }
12014
+ }
11963
12015
  const url = new URL(trimmed);
11964
12016
  if (def.hostname) {
11965
12017
  def.hostname.lastIndex = 0;
@@ -12007,6 +12059,11 @@ const $ZodNanoID = /*@__PURE__*/ $constructor("$ZodNanoID", (inst, def) => {
12007
12059
  def.pattern ?? (def.pattern = nanoid);
12008
12060
  $ZodStringFormat.init(inst, def);
12009
12061
  });
12062
+ /**
12063
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
12064
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
12065
+ * See https://github.com/paralleldrive/cuid.
12066
+ */
12010
12067
  const $ZodCUID = /*@__PURE__*/ $constructor("$ZodCUID", (inst, def) => {
12011
12068
  def.pattern ?? (def.pattern = cuid);
12012
12069
  $ZodStringFormat.init(inst, def);
@@ -12096,6 +12153,7 @@ const $ZodCIDRv6 = /*@__PURE__*/ $constructor("$ZodCIDRv6", (inst, def) => {
12096
12153
  });
12097
12154
  function isValidBase64(data) {
12098
12155
  if (data === "") return true;
12156
+ if (/\s/.test(data)) return false;
12099
12157
  if (data.length % 4 !== 0) return false;
12100
12158
  try {
12101
12159
  atob(data);
@@ -12237,13 +12295,23 @@ const $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
12237
12295
  return payload;
12238
12296
  };
12239
12297
  });
12240
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
12298
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
12299
+ const isPresent = key in input;
12241
12300
  if (result.issues.length) {
12242
- if (isOptionalOut && !(key in input)) return;
12301
+ if (isOptionalIn && isOptionalOut && !isPresent) return;
12243
12302
  final.issues.push(...prefixIssues(key, result.issues));
12244
12303
  }
12304
+ if (!isPresent && !isOptionalIn) {
12305
+ if (!result.issues.length) final.issues.push({
12306
+ code: "invalid_type",
12307
+ expected: "nonoptional",
12308
+ input: void 0,
12309
+ path: [key]
12310
+ });
12311
+ return;
12312
+ }
12245
12313
  if (result.value === void 0) {
12246
- if (key in input) final.value[key] = void 0;
12314
+ if (isPresent) final.value[key] = void 0;
12247
12315
  } else final.value[key] = result.value;
12248
12316
  }
12249
12317
  function normalizeDef(def) {
@@ -12263,8 +12331,10 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
12263
12331
  const keySet = def.keySet;
12264
12332
  const _catchall = def.catchall._zod;
12265
12333
  const t = _catchall.def.type;
12334
+ const isOptionalIn = _catchall.optin === "optional";
12266
12335
  const isOptionalOut = _catchall.optout === "optional";
12267
12336
  for (const key in input) {
12337
+ if (key === "__proto__") continue;
12268
12338
  if (keySet.has(key)) continue;
12269
12339
  if (t === "never") {
12270
12340
  unrecognized.push(key);
@@ -12274,8 +12344,8 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
12274
12344
  value: input[key],
12275
12345
  issues: []
12276
12346
  }, ctx);
12277
- if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalOut)));
12278
- else handlePropertyResult(r, payload, key, input, isOptionalOut);
12347
+ if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));
12348
+ else handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
12279
12349
  }
12280
12350
  if (unrecognized.length) payload.issues.push({
12281
12351
  code: "unrecognized_keys",
@@ -12311,13 +12381,13 @@ const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
12311
12381
  }
12312
12382
  return propValues;
12313
12383
  });
12314
- const isObject$2 = isObject;
12384
+ const isObject$1 = isObject;
12315
12385
  const catchall = def.catchall;
12316
12386
  let value;
12317
12387
  inst._zod.parse = (payload, ctx) => {
12318
12388
  value ?? (value = _normalized.value);
12319
12389
  const input = payload.value;
12320
- if (!isObject$2(input)) {
12390
+ if (!isObject$1(input)) {
12321
12391
  payload.issues.push({
12322
12392
  expected: "object",
12323
12393
  code: "invalid_type",
@@ -12331,13 +12401,14 @@ const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
12331
12401
  const shape = value.shape;
12332
12402
  for (const key of value.keys) {
12333
12403
  const el = shape[key];
12404
+ const isOptionalIn = el._zod.optin === "optional";
12334
12405
  const isOptionalOut = el._zod.optout === "optional";
12335
12406
  const r = el._zod.run({
12336
12407
  value: input[key],
12337
12408
  issues: []
12338
12409
  }, ctx);
12339
- if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalOut)));
12340
- else handlePropertyResult(r, payload, key, input, isOptionalOut);
12410
+ if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut)));
12411
+ else handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
12341
12412
  }
12342
12413
  if (!catchall) return proms.length ? Promise.all(proms).then(() => payload) : payload;
12343
12414
  return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
@@ -12366,9 +12437,11 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
12366
12437
  for (const key of normalized.keys) {
12367
12438
  const id = ids[key];
12368
12439
  const k = esc(key);
12369
- const isOptionalOut = shape[key]?._zod?.optout === "optional";
12440
+ const schema = shape[key];
12441
+ const isOptionalIn = schema?._zod?.optin === "optional";
12442
+ const isOptionalOut = schema?._zod?.optout === "optional";
12370
12443
  doc.write(`const ${id} = ${parseStr(key)};`);
12371
- if (isOptionalOut) doc.write(`
12444
+ if (isOptionalIn && isOptionalOut) doc.write(`
12372
12445
  if (${id}.issues.length) {
12373
12446
  if (${k} in input) {
12374
12447
  payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
@@ -12386,6 +12459,32 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
12386
12459
  newResult[${k}] = ${id}.value;
12387
12460
  }
12388
12461
 
12462
+ `);
12463
+ else if (!isOptionalIn) doc.write(`
12464
+ const ${id}_present = ${k} in input;
12465
+ if (${id}.issues.length) {
12466
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
12467
+ ...iss,
12468
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
12469
+ })));
12470
+ }
12471
+ if (!${id}_present && !${id}.issues.length) {
12472
+ payload.issues.push({
12473
+ code: "invalid_type",
12474
+ expected: "nonoptional",
12475
+ input: undefined,
12476
+ path: [${k}]
12477
+ });
12478
+ }
12479
+
12480
+ if (${id}_present) {
12481
+ if (${id}.value === undefined) {
12482
+ newResult[${k}] = undefined;
12483
+ } else {
12484
+ newResult[${k}] = ${id}.value;
12485
+ }
12486
+ }
12487
+
12389
12488
  `);
12390
12489
  else doc.write(`
12391
12490
  if (${id}.issues.length) {
@@ -12411,7 +12510,7 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
12411
12510
  return (payload, ctx) => fn(shape, payload, ctx);
12412
12511
  };
12413
12512
  let fastpass;
12414
- const isObject$1 = isObject;
12513
+ const isObject$2 = isObject;
12415
12514
  const jit = !globalConfig.jitless;
12416
12515
  const fastEnabled = jit && allowsEval.value;
12417
12516
  const catchall = def.catchall;
@@ -12419,7 +12518,7 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
12419
12518
  inst._zod.parse = (payload, ctx) => {
12420
12519
  value ?? (value = _normalized.value);
12421
12520
  const input = payload.value;
12422
- if (!isObject$1(input)) {
12521
+ if (!isObject$2(input)) {
12423
12522
  payload.issues.push({
12424
12523
  expected: "object",
12425
12524
  code: "invalid_type",
@@ -12468,10 +12567,9 @@ const $ZodUnion = /*@__PURE__*/ $constructor("$ZodUnion", (inst, def) => {
12468
12567
  return new RegExp(`^(${patterns.map((p) => cleanRegex(p.source)).join("|")})$`);
12469
12568
  }
12470
12569
  });
12471
- const single = def.options.length === 1;
12472
- const first = def.options[0]._zod.run;
12570
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
12473
12571
  inst._zod.parse = (payload, ctx) => {
12474
- if (single) return first(payload, ctx);
12572
+ if (first) return first(payload, ctx);
12475
12573
  let async = false;
12476
12574
  const results = [];
12477
12575
  for (const option of def.options) {
@@ -12612,20 +12710,23 @@ const $ZodEnum = /*@__PURE__*/ $constructor("$ZodEnum", (inst, def) => {
12612
12710
  });
12613
12711
  const $ZodTransform = /*@__PURE__*/ $constructor("$ZodTransform", (inst, def) => {
12614
12712
  $ZodType.init(inst, def);
12713
+ inst._zod.optin = "optional";
12615
12714
  inst._zod.parse = (payload, ctx) => {
12616
12715
  if (ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name);
12617
12716
  const _out = def.transform(payload.value, payload);
12618
12717
  if (ctx.async) return (_out instanceof Promise ? _out : Promise.resolve(_out)).then((output) => {
12619
12718
  payload.value = output;
12719
+ payload.fallback = true;
12620
12720
  return payload;
12621
12721
  });
12622
12722
  if (_out instanceof Promise) throw new $ZodAsyncError();
12623
12723
  payload.value = _out;
12724
+ payload.fallback = true;
12624
12725
  return payload;
12625
12726
  };
12626
12727
  });
12627
12728
  function handleOptionalResult(result, input) {
12628
- if (result.issues.length && input === void 0) return {
12729
+ if (input === void 0 && (result.issues.length || result.fallback)) return {
12629
12730
  issues: [],
12630
12731
  value: void 0
12631
12732
  };
@@ -12644,9 +12745,10 @@ const $ZodOptional = /*@__PURE__*/ $constructor("$ZodOptional", (inst, def) => {
12644
12745
  });
12645
12746
  inst._zod.parse = (payload, ctx) => {
12646
12747
  if (def.innerType._zod.optin === "optional") {
12748
+ const input = payload.value;
12647
12749
  const result = def.innerType._zod.run(payload, ctx);
12648
- if (result instanceof Promise) return result.then((r) => handleOptionalResult(r, payload.value));
12649
- return handleOptionalResult(result, payload.value);
12750
+ if (result instanceof Promise) return result.then((r) => handleOptionalResult(r, input));
12751
+ return handleOptionalResult(result, input);
12650
12752
  }
12651
12753
  if (payload.value === void 0) return payload;
12652
12754
  return def.innerType._zod.run(payload, ctx);
@@ -12731,7 +12833,7 @@ function handleNonOptionalResult(payload, inst) {
12731
12833
  }
12732
12834
  const $ZodCatch = /*@__PURE__*/ $constructor("$ZodCatch", (inst, def) => {
12733
12835
  $ZodType.init(inst, def);
12734
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
12836
+ inst._zod.optin = "optional";
12735
12837
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
12736
12838
  defineLazy(inst._zod, "values", () => def.innerType._zod.values);
12737
12839
  inst._zod.parse = (payload, ctx) => {
@@ -12746,6 +12848,7 @@ const $ZodCatch = /*@__PURE__*/ $constructor("$ZodCatch", (inst, def) => {
12746
12848
  input: payload.value
12747
12849
  });
12748
12850
  payload.issues = [];
12851
+ payload.fallback = true;
12749
12852
  }
12750
12853
  return payload;
12751
12854
  });
@@ -12757,6 +12860,7 @@ const $ZodCatch = /*@__PURE__*/ $constructor("$ZodCatch", (inst, def) => {
12757
12860
  input: payload.value
12758
12861
  });
12759
12862
  payload.issues = [];
12863
+ payload.fallback = true;
12760
12864
  }
12761
12865
  return payload;
12762
12866
  };
@@ -12785,7 +12889,8 @@ function handlePipeResult(left, next, ctx) {
12785
12889
  }
12786
12890
  return next._zod.run({
12787
12891
  value: left.value,
12788
- issues: left.issues
12892
+ issues: left.issues,
12893
+ fallback: left.fallback
12789
12894
  }, ctx);
12790
12895
  }
12791
12896
  const $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
@@ -12832,7 +12937,7 @@ function handleRefineResult(result, payload, input, inst) {
12832
12937
  }
12833
12938
  }
12834
12939
  //#endregion
12835
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
12940
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
12836
12941
  var _a;
12837
12942
  var $ZodRegistry = class {
12838
12943
  constructor() {
@@ -12879,7 +12984,7 @@ function registry() {
12879
12984
  (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
12880
12985
  const globalRegistry = globalThis.__zod_globalRegistry;
12881
12986
  //#endregion
12882
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
12987
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
12883
12988
  // @__NO_SIDE_EFFECTS__
12884
12989
  function _string(Class, params) {
12885
12990
  return new Class({
@@ -12980,6 +13085,11 @@ function _nanoid(Class, params) {
12980
13085
  ...normalizeParams(params)
12981
13086
  });
12982
13087
  }
13088
+ /**
13089
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
13090
+ * (timestamps embedded in the id). Use {@link _cuid2} instead.
13091
+ * See https://github.com/paralleldrive/cuid.
13092
+ */
12983
13093
  // @__NO_SIDE_EFFECTS__
12984
13094
  function _cuid(Class, params) {
12985
13095
  return new Class({
@@ -13289,7 +13399,7 @@ function _refine(Class, fn, _params) {
13289
13399
  });
13290
13400
  }
13291
13401
  // @__NO_SIDE_EFFECTS__
13292
- function _superRefine(fn) {
13402
+ function _superRefine(fn, params) {
13293
13403
  const ch = /* @__PURE__ */ _check((payload) => {
13294
13404
  payload.addIssue = (issue$2) => {
13295
13405
  if (typeof issue$2 === "string") payload.issues.push(issue(issue$2, payload.value, ch._zod.def));
@@ -13304,7 +13414,7 @@ function _superRefine(fn) {
13304
13414
  }
13305
13415
  };
13306
13416
  return fn(payload.value, payload);
13307
- });
13417
+ }, params);
13308
13418
  return ch;
13309
13419
  }
13310
13420
  // @__NO_SIDE_EFFECTS__
@@ -13317,7 +13427,7 @@ function _check(fn, params) {
13317
13427
  return ch;
13318
13428
  }
13319
13429
  //#endregion
13320
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
13430
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
13321
13431
  function initializeContext(params) {
13322
13432
  let target = params?.target ?? "draft-2020-12";
13323
13433
  if (target === "draft-4") target = "draft-04";
@@ -13383,7 +13493,7 @@ function process$1(schema, ctx, _params = {
13383
13493
  delete result.schema.examples;
13384
13494
  delete result.schema.default;
13385
13495
  }
13386
- if (ctx.io === "input" && result.schema._prefault) (_a = result.schema).default ?? (_a.default = result.schema._prefault);
13496
+ if (ctx.io === "input" && "_prefault" in result.schema) (_a = result.schema).default ?? (_a.default = result.schema._prefault);
13387
13497
  delete result.schema._prefault;
13388
13498
  return ctx.seen.get(schema).schema;
13389
13499
  }
@@ -13523,10 +13633,15 @@ function finalize(ctx, schema) {
13523
13633
  result.$id = ctx.external.uri(id);
13524
13634
  }
13525
13635
  Object.assign(result, root.def ?? root.schema);
13636
+ const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
13637
+ if (rootMetaId !== void 0 && result.id === rootMetaId) delete result.id;
13526
13638
  const defs = ctx.external?.defs ?? {};
13527
13639
  for (const entry of ctx.seen.entries()) {
13528
13640
  const seen = entry[1];
13529
- if (seen.def && seen.defId) defs[seen.defId] = seen.def;
13641
+ if (seen.def && seen.defId) {
13642
+ if (seen.def.id === seen.defId) delete seen.def.id;
13643
+ defs[seen.defId] = seen.def;
13644
+ }
13530
13645
  }
13531
13646
  if (ctx.external) {} else if (Object.keys(defs).length > 0) if (ctx.target === "draft-2020-12") result.$defs = defs;
13532
13647
  else result.definitions = defs;
@@ -13560,7 +13675,10 @@ function isTransforming(_schema, _ctx) {
13560
13675
  if (def.type === "promise" || def.type === "optional" || def.type === "nonoptional" || def.type === "nullable" || def.type === "readonly" || def.type === "default" || def.type === "prefault") return isTransforming(def.innerType, ctx);
13561
13676
  if (def.type === "intersection") return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
13562
13677
  if (def.type === "record" || def.type === "map") return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
13563
- if (def.type === "pipe") return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
13678
+ if (def.type === "pipe") {
13679
+ if (_schema._zod.traits.has("$ZodCodec")) return true;
13680
+ return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
13681
+ }
13564
13682
  if (def.type === "object") {
13565
13683
  for (const key in def.shape) if (isTransforming(def.shape[key], ctx)) return true;
13566
13684
  return false;
@@ -13602,7 +13720,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
13602
13720
  return finalize(ctx, schema);
13603
13721
  };
13604
13722
  //#endregion
13605
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
13723
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
13606
13724
  const formatMap = {
13607
13725
  guid: "uuid",
13608
13726
  url: "uri",
@@ -13770,7 +13888,8 @@ const catchProcessor = (schema, ctx, json, params) => {
13770
13888
  };
13771
13889
  const pipeProcessor = (schema, ctx, _json, params) => {
13772
13890
  const def = schema._zod.def;
13773
- const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
13891
+ const inIsTransform = def.in._zod.traits.has("$ZodTransform");
13892
+ const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
13774
13893
  process$1(innerType, ctx, params);
13775
13894
  const seen = ctx.seen.get(schema);
13776
13895
  seen.ref = innerType;
@@ -13789,7 +13908,7 @@ const optionalProcessor = (schema, ctx, _json, params) => {
13789
13908
  seen.ref = def.innerType;
13790
13909
  };
13791
13910
  //#endregion
13792
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js
13911
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
13793
13912
  const ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => {
13794
13913
  $ZodISODateTime.init(inst, def);
13795
13914
  ZodStringFormat.init(inst, def);
@@ -13819,7 +13938,7 @@ function duration(params) {
13819
13938
  return /* @__PURE__ */ _isoDuration(ZodISODuration, params);
13820
13939
  }
13821
13940
  //#endregion
13822
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
13941
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
13823
13942
  const initializer = (inst, issues) => {
13824
13943
  $ZodError.init(inst, issues);
13825
13944
  inst.name = "ZodError";
@@ -13839,10 +13958,9 @@ const initializer = (inst, issues) => {
13839
13958
  } }
13840
13959
  });
13841
13960
  };
13842
- $constructor("ZodError", initializer);
13843
- const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
13961
+ const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error });
13844
13962
  //#endregion
13845
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
13963
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
13846
13964
  const parse = /* @__PURE__ */ _parse(ZodRealError);
13847
13965
  const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
13848
13966
  const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -13856,7 +13974,43 @@ const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
13856
13974
  const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
13857
13975
  const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
13858
13976
  //#endregion
13859
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
13977
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
13978
+ const _installedGroups = /* @__PURE__ */ new WeakMap();
13979
+ function _installLazyMethods(inst, group, methods) {
13980
+ const proto = Object.getPrototypeOf(inst);
13981
+ let installed = _installedGroups.get(proto);
13982
+ if (!installed) {
13983
+ installed = /* @__PURE__ */ new Set();
13984
+ _installedGroups.set(proto, installed);
13985
+ }
13986
+ if (installed.has(group)) return;
13987
+ installed.add(group);
13988
+ for (const key in methods) {
13989
+ const fn = methods[key];
13990
+ Object.defineProperty(proto, key, {
13991
+ configurable: true,
13992
+ enumerable: false,
13993
+ get() {
13994
+ const bound = fn.bind(this);
13995
+ Object.defineProperty(this, key, {
13996
+ configurable: true,
13997
+ writable: true,
13998
+ enumerable: true,
13999
+ value: bound
14000
+ });
14001
+ return bound;
14002
+ },
14003
+ set(v) {
14004
+ Object.defineProperty(this, key, {
14005
+ configurable: true,
14006
+ writable: true,
14007
+ enumerable: true,
14008
+ value: v
14009
+ });
14010
+ }
14011
+ });
14012
+ }
14013
+ }
13860
14014
  const ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
13861
14015
  $ZodType.init(inst, def);
13862
14016
  Object.assign(inst["~standard"], { jsonSchema: {
@@ -13867,20 +14021,6 @@ const ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
13867
14021
  inst.def = def;
13868
14022
  inst.type = def.type;
13869
14023
  Object.defineProperty(inst, "_def", { value: def });
13870
- inst.check = (...checks) => {
13871
- return inst.clone(mergeDefs(def, { checks: [...def.checks ?? [], ...checks.map((ch) => typeof ch === "function" ? { _zod: {
13872
- check: ch,
13873
- def: { check: "custom" },
13874
- onattach: []
13875
- } } : ch)] }), { parent: true });
13876
- };
13877
- inst.with = inst.check;
13878
- inst.clone = (def, params) => clone(inst, def, params);
13879
- inst.brand = () => inst;
13880
- inst.register = ((reg, meta) => {
13881
- reg.add(inst, meta);
13882
- return inst;
13883
- });
13884
14024
  inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
13885
14025
  inst.safeParse = (data, params) => safeParse(inst, data, params);
13886
14026
  inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
@@ -13894,43 +14034,106 @@ const ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
13894
14034
  inst.safeDecode = (data, params) => safeDecode(inst, data, params);
13895
14035
  inst.safeEncodeAsync = async (data, params) => safeEncodeAsync(inst, data, params);
13896
14036
  inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
13897
- inst.refine = (check, params) => inst.check(refine(check, params));
13898
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
13899
- inst.overwrite = (fn) => inst.check(/* @__PURE__ */ _overwrite(fn));
13900
- inst.optional = () => optional(inst);
13901
- inst.exactOptional = () => exactOptional(inst);
13902
- inst.nullable = () => nullable(inst);
13903
- inst.nullish = () => optional(nullable(inst));
13904
- inst.nonoptional = (params) => nonoptional(inst, params);
13905
- inst.array = () => array(inst);
13906
- inst.or = (arg) => union([inst, arg]);
13907
- inst.and = (arg) => intersection(inst, arg);
13908
- inst.transform = (tx) => pipe(inst, transform(tx));
13909
- inst.default = (def) => _default(inst, def);
13910
- inst.prefault = (def) => prefault(inst, def);
13911
- inst.catch = (params) => _catch(inst, params);
13912
- inst.pipe = (target) => pipe(inst, target);
13913
- inst.readonly = () => readonly(inst);
13914
- inst.describe = (description) => {
13915
- const cl = inst.clone();
13916
- globalRegistry.add(cl, { description });
13917
- return cl;
13918
- };
14037
+ _installLazyMethods(inst, "ZodType", {
14038
+ check(...chks) {
14039
+ const def = this.def;
14040
+ return this.clone(mergeDefs(def, { checks: [...def.checks ?? [], ...chks.map((ch) => typeof ch === "function" ? { _zod: {
14041
+ check: ch,
14042
+ def: { check: "custom" },
14043
+ onattach: []
14044
+ } } : ch)] }), { parent: true });
14045
+ },
14046
+ with(...chks) {
14047
+ return this.check(...chks);
14048
+ },
14049
+ clone(def, params) {
14050
+ return clone(this, def, params);
14051
+ },
14052
+ brand() {
14053
+ return this;
14054
+ },
14055
+ register(reg, meta) {
14056
+ reg.add(this, meta);
14057
+ return this;
14058
+ },
14059
+ refine(check, params) {
14060
+ return this.check(refine(check, params));
14061
+ },
14062
+ superRefine(refinement, params) {
14063
+ return this.check(superRefine(refinement, params));
14064
+ },
14065
+ overwrite(fn) {
14066
+ return this.check(/* @__PURE__ */ _overwrite(fn));
14067
+ },
14068
+ optional() {
14069
+ return optional(this);
14070
+ },
14071
+ exactOptional() {
14072
+ return exactOptional(this);
14073
+ },
14074
+ nullable() {
14075
+ return nullable(this);
14076
+ },
14077
+ nullish() {
14078
+ return optional(nullable(this));
14079
+ },
14080
+ nonoptional(params) {
14081
+ return nonoptional(this, params);
14082
+ },
14083
+ array() {
14084
+ return array(this);
14085
+ },
14086
+ or(arg) {
14087
+ return union([this, arg]);
14088
+ },
14089
+ and(arg) {
14090
+ return intersection(this, arg);
14091
+ },
14092
+ transform(tx) {
14093
+ return pipe(this, transform(tx));
14094
+ },
14095
+ default(d) {
14096
+ return _default(this, d);
14097
+ },
14098
+ prefault(d) {
14099
+ return prefault(this, d);
14100
+ },
14101
+ catch(params) {
14102
+ return _catch(this, params);
14103
+ },
14104
+ pipe(target) {
14105
+ return pipe(this, target);
14106
+ },
14107
+ readonly() {
14108
+ return readonly(this);
14109
+ },
14110
+ describe(description) {
14111
+ const cl = this.clone();
14112
+ globalRegistry.add(cl, { description });
14113
+ return cl;
14114
+ },
14115
+ meta(...args) {
14116
+ if (args.length === 0) return globalRegistry.get(this);
14117
+ const cl = this.clone();
14118
+ globalRegistry.add(cl, args[0]);
14119
+ return cl;
14120
+ },
14121
+ isOptional() {
14122
+ return this.safeParse(void 0).success;
14123
+ },
14124
+ isNullable() {
14125
+ return this.safeParse(null).success;
14126
+ },
14127
+ apply(fn) {
14128
+ return fn(this);
14129
+ }
14130
+ });
13919
14131
  Object.defineProperty(inst, "description", {
13920
14132
  get() {
13921
14133
  return globalRegistry.get(inst)?.description;
13922
14134
  },
13923
14135
  configurable: true
13924
14136
  });
13925
- inst.meta = (...args) => {
13926
- if (args.length === 0) return globalRegistry.get(inst);
13927
- const cl = inst.clone();
13928
- globalRegistry.add(cl, args[0]);
13929
- return cl;
13930
- };
13931
- inst.isOptional = () => inst.safeParse(void 0).success;
13932
- inst.isNullable = () => inst.safeParse(null).success;
13933
- inst.apply = (fn) => fn(inst);
13934
14137
  return inst;
13935
14138
  });
13936
14139
  /** @internal */
@@ -13942,21 +14145,53 @@ const _ZodString = /*@__PURE__*/ $constructor("_ZodString", (inst, def) => {
13942
14145
  inst.format = bag.format ?? null;
13943
14146
  inst.minLength = bag.minimum ?? null;
13944
14147
  inst.maxLength = bag.maximum ?? null;
13945
- inst.regex = (...args) => inst.check(/* @__PURE__ */ _regex(...args));
13946
- inst.includes = (...args) => inst.check(/* @__PURE__ */ _includes(...args));
13947
- inst.startsWith = (...args) => inst.check(/* @__PURE__ */ _startsWith(...args));
13948
- inst.endsWith = (...args) => inst.check(/* @__PURE__ */ _endsWith(...args));
13949
- inst.min = (...args) => inst.check(/* @__PURE__ */ _minLength(...args));
13950
- inst.max = (...args) => inst.check(/* @__PURE__ */ _maxLength(...args));
13951
- inst.length = (...args) => inst.check(/* @__PURE__ */ _length(...args));
13952
- inst.nonempty = (...args) => inst.check(/* @__PURE__ */ _minLength(1, ...args));
13953
- inst.lowercase = (params) => inst.check(/* @__PURE__ */ _lowercase(params));
13954
- inst.uppercase = (params) => inst.check(/* @__PURE__ */ _uppercase(params));
13955
- inst.trim = () => inst.check(/* @__PURE__ */ _trim());
13956
- inst.normalize = (...args) => inst.check(/* @__PURE__ */ _normalize(...args));
13957
- inst.toLowerCase = () => inst.check(/* @__PURE__ */ _toLowerCase());
13958
- inst.toUpperCase = () => inst.check(/* @__PURE__ */ _toUpperCase());
13959
- inst.slugify = () => inst.check(/* @__PURE__ */ _slugify());
14148
+ _installLazyMethods(inst, "_ZodString", {
14149
+ regex(...args) {
14150
+ return this.check(/* @__PURE__ */ _regex(...args));
14151
+ },
14152
+ includes(...args) {
14153
+ return this.check(/* @__PURE__ */ _includes(...args));
14154
+ },
14155
+ startsWith(...args) {
14156
+ return this.check(/* @__PURE__ */ _startsWith(...args));
14157
+ },
14158
+ endsWith(...args) {
14159
+ return this.check(/* @__PURE__ */ _endsWith(...args));
14160
+ },
14161
+ min(...args) {
14162
+ return this.check(/* @__PURE__ */ _minLength(...args));
14163
+ },
14164
+ max(...args) {
14165
+ return this.check(/* @__PURE__ */ _maxLength(...args));
14166
+ },
14167
+ length(...args) {
14168
+ return this.check(/* @__PURE__ */ _length(...args));
14169
+ },
14170
+ nonempty(...args) {
14171
+ return this.check(/* @__PURE__ */ _minLength(1, ...args));
14172
+ },
14173
+ lowercase(params) {
14174
+ return this.check(/* @__PURE__ */ _lowercase(params));
14175
+ },
14176
+ uppercase(params) {
14177
+ return this.check(/* @__PURE__ */ _uppercase(params));
14178
+ },
14179
+ trim() {
14180
+ return this.check(/* @__PURE__ */ _trim());
14181
+ },
14182
+ normalize(...args) {
14183
+ return this.check(/* @__PURE__ */ _normalize(...args));
14184
+ },
14185
+ toLowerCase() {
14186
+ return this.check(/* @__PURE__ */ _toLowerCase());
14187
+ },
14188
+ toUpperCase() {
14189
+ return this.check(/* @__PURE__ */ _toUpperCase());
14190
+ },
14191
+ slugify() {
14192
+ return this.check(/* @__PURE__ */ _slugify());
14193
+ }
14194
+ });
13960
14195
  });
13961
14196
  const ZodString = /*@__PURE__*/ $constructor("ZodString", (inst, def) => {
13962
14197
  $ZodString.init(inst, def);
@@ -14020,6 +14255,11 @@ const ZodNanoID = /*@__PURE__*/ $constructor("ZodNanoID", (inst, def) => {
14020
14255
  $ZodNanoID.init(inst, def);
14021
14256
  ZodStringFormat.init(inst, def);
14022
14257
  });
14258
+ /**
14259
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
14260
+ * (timestamps embedded in the id). Use {@link ZodCUID2} instead.
14261
+ * See https://github.com/paralleldrive/cuid.
14262
+ */
14023
14263
  const ZodCUID = /*@__PURE__*/ $constructor("ZodCUID", (inst, def) => {
14024
14264
  $ZodCUID.init(inst, def);
14025
14265
  ZodStringFormat.init(inst, def);
@@ -14101,11 +14341,23 @@ const ZodArray = /*@__PURE__*/ $constructor("ZodArray", (inst, def) => {
14101
14341
  ZodType.init(inst, def);
14102
14342
  inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
14103
14343
  inst.element = def.element;
14104
- inst.min = (minLength, params) => inst.check(/* @__PURE__ */ _minLength(minLength, params));
14105
- inst.nonempty = (params) => inst.check(/* @__PURE__ */ _minLength(1, params));
14106
- inst.max = (maxLength, params) => inst.check(/* @__PURE__ */ _maxLength(maxLength, params));
14107
- inst.length = (len, params) => inst.check(/* @__PURE__ */ _length(len, params));
14108
- inst.unwrap = () => inst.element;
14344
+ _installLazyMethods(inst, "ZodArray", {
14345
+ min(n, params) {
14346
+ return this.check(/* @__PURE__ */ _minLength(n, params));
14347
+ },
14348
+ nonempty(params) {
14349
+ return this.check(/* @__PURE__ */ _minLength(1, params));
14350
+ },
14351
+ max(n, params) {
14352
+ return this.check(/* @__PURE__ */ _maxLength(n, params));
14353
+ },
14354
+ length(n, params) {
14355
+ return this.check(/* @__PURE__ */ _length(n, params));
14356
+ },
14357
+ unwrap() {
14358
+ return this.element;
14359
+ }
14360
+ });
14109
14361
  });
14110
14362
  function array(element, params) {
14111
14363
  return /* @__PURE__ */ _array(ZodArray, element, params);
@@ -14117,38 +14369,62 @@ const ZodObject = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => {
14117
14369
  defineLazy(inst, "shape", () => {
14118
14370
  return def.shape;
14119
14371
  });
14120
- inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
14121
- inst.catchall = (catchall) => inst.clone({
14122
- ...inst._zod.def,
14123
- catchall
14124
- });
14125
- inst.passthrough = () => inst.clone({
14126
- ...inst._zod.def,
14127
- catchall: unknown()
14128
- });
14129
- inst.loose = () => inst.clone({
14130
- ...inst._zod.def,
14131
- catchall: unknown()
14132
- });
14133
- inst.strict = () => inst.clone({
14134
- ...inst._zod.def,
14135
- catchall: never()
14136
- });
14137
- inst.strip = () => inst.clone({
14138
- ...inst._zod.def,
14139
- catchall: void 0
14372
+ _installLazyMethods(inst, "ZodObject", {
14373
+ keyof() {
14374
+ return _enum(Object.keys(this._zod.def.shape));
14375
+ },
14376
+ catchall(catchall) {
14377
+ return this.clone({
14378
+ ...this._zod.def,
14379
+ catchall
14380
+ });
14381
+ },
14382
+ passthrough() {
14383
+ return this.clone({
14384
+ ...this._zod.def,
14385
+ catchall: unknown()
14386
+ });
14387
+ },
14388
+ loose() {
14389
+ return this.clone({
14390
+ ...this._zod.def,
14391
+ catchall: unknown()
14392
+ });
14393
+ },
14394
+ strict() {
14395
+ return this.clone({
14396
+ ...this._zod.def,
14397
+ catchall: never()
14398
+ });
14399
+ },
14400
+ strip() {
14401
+ return this.clone({
14402
+ ...this._zod.def,
14403
+ catchall: void 0
14404
+ });
14405
+ },
14406
+ extend(incoming) {
14407
+ return extend(this, incoming);
14408
+ },
14409
+ safeExtend(incoming) {
14410
+ return safeExtend(this, incoming);
14411
+ },
14412
+ merge(other) {
14413
+ return merge(this, other);
14414
+ },
14415
+ pick(mask) {
14416
+ return pick(this, mask);
14417
+ },
14418
+ omit(mask) {
14419
+ return omit(this, mask);
14420
+ },
14421
+ partial(...args) {
14422
+ return partial(ZodOptional, this, args[0]);
14423
+ },
14424
+ required(...args) {
14425
+ return required(ZodNonOptional, this, args[0]);
14426
+ }
14140
14427
  });
14141
- inst.extend = (incoming) => {
14142
- return extend(inst, incoming);
14143
- };
14144
- inst.safeExtend = (incoming) => {
14145
- return safeExtend(inst, incoming);
14146
- };
14147
- inst.merge = (other) => merge(inst, other);
14148
- inst.pick = (mask) => pick(inst, mask);
14149
- inst.omit = (mask) => omit(inst, mask);
14150
- inst.partial = (...args) => partial(ZodOptional, inst, args[0]);
14151
- inst.required = (...args) => required(ZodNonOptional, inst, args[0]);
14152
14428
  });
14153
14429
  function object(shape, params) {
14154
14430
  return new ZodObject({
@@ -14239,9 +14515,11 @@ const ZodTransform = /*@__PURE__*/ $constructor("ZodTransform", (inst, def) => {
14239
14515
  const output = def.transform(payload.value, payload);
14240
14516
  if (output instanceof Promise) return output.then((output) => {
14241
14517
  payload.value = output;
14518
+ payload.fallback = true;
14242
14519
  return payload;
14243
14520
  });
14244
14521
  payload.value = output;
14522
+ payload.fallback = true;
14245
14523
  return payload;
14246
14524
  };
14247
14525
  });
@@ -14379,8 +14657,8 @@ const ZodCustom = /*@__PURE__*/ $constructor("ZodCustom", (inst, def) => {
14379
14657
  function refine(fn, _params = {}) {
14380
14658
  return /* @__PURE__ */ _refine(ZodCustom, fn, _params);
14381
14659
  }
14382
- function superRefine(fn) {
14383
- return /* @__PURE__ */ _superRefine(fn);
14660
+ function superRefine(fn, params) {
14661
+ return /* @__PURE__ */ _superRefine(fn, params);
14384
14662
  }
14385
14663
  //#endregion
14386
14664
  //#region src/lib/platform-yaml.schema.ts
@@ -15105,12 +15383,11 @@ async function uploadFiles(options, deps = {}) {
15105
15383
  const tasks = options.files.map((file) => limit(async () => {
15106
15384
  try {
15107
15385
  const body = await read(file.absPath);
15108
- const bodyAsBodyInit = body;
15109
15386
  await options.client.deployUpload({
15110
15387
  deployId: options.deployId,
15111
15388
  jwt: options.jwt,
15112
15389
  path: file.relPath,
15113
- body: bodyAsBodyInit,
15390
+ body,
15114
15391
  contentType: getContentType(file.relPath)
15115
15392
  });
15116
15393
  uploaded.push(file.relPath);
@@ -15238,7 +15515,7 @@ function outputError(ctx, code, message, optsOrIssues) {
15238
15515
  ...redactObject(opts.extras)
15239
15516
  } : envelope;
15240
15517
  process.stdout.write(JSON.stringify(payload) + "\n");
15241
- } else (opts.logError ?? ((m) => O.error(m, { output: process.stderr })))(redactedMessage);
15518
+ } else (opts.logError ?? ((m) => R.error(m, { output: process.stderr })))(redactedMessage);
15242
15519
  }
15243
15520
  //#endregion
15244
15521
  //#region src/commands/deploy.ts
@@ -15329,11 +15606,11 @@ async function deploy(options, deps = {}) {
15329
15606
  const build = deps.runBuild ?? runBuild;
15330
15607
  const walk = deps.walkFiles ?? walkFiles;
15331
15608
  const upload = deps.uploadFiles ?? uploadFiles;
15332
- const mkSpinner = deps.createSpinner ?? (() => fe());
15333
- const success = deps.logSuccess ?? ((s) => O.success(s));
15334
- const info = deps.logInfo ?? ((s) => O.info(s));
15335
- const warn = deps.logWarn ?? ((s) => O.warn(s));
15336
- const error = deps.logError ?? ((s) => O.error(s));
15609
+ const mkSpinner = deps.createSpinner ?? (() => vt());
15610
+ const success = deps.logSuccess ?? ((s) => R.success(s));
15611
+ const info = deps.logInfo ?? ((s) => R.info(s));
15612
+ const warn = deps.logWarn ?? ((s) => R.warn(s));
15613
+ const error = deps.logError ?? ((s) => R.error(s));
15337
15614
  const exit = deps.exit ?? exitWithCode;
15338
15615
  try {
15339
15616
  const identity = await resolveId({ env });
@@ -15539,21 +15816,21 @@ const defaultDetectGitRemote = (cwd) => {
15539
15816
  };
15540
15817
  const defaultPromptText = async (opts) => {
15541
15818
  const validate = opts.validate;
15542
- const r = await Ot({
15819
+ const r = await Re({
15543
15820
  message: opts.message,
15544
15821
  placeholder: opts.defaultValue,
15545
15822
  defaultValue: opts.defaultValue,
15546
15823
  ...validate ? { validate: (v) => validate(v ?? "") } : {}
15547
15824
  });
15548
- if (q(r)) throw new ConfirmError("init cancelled");
15825
+ if (R$1(r)) throw new ConfirmError("init cancelled");
15549
15826
  return r.trim().length > 0 ? r.trim() : opts.defaultValue;
15550
15827
  };
15551
15828
  const defaultPromptConfirm$2 = async (message, initial) => {
15552
- const r = await ot({
15829
+ const r = await le({
15553
15830
  message,
15554
15831
  initialValue: initial
15555
15832
  });
15556
- if (q(r)) throw new ConfirmError("init cancelled");
15833
+ if (R$1(r)) throw new ConfirmError("init cancelled");
15557
15834
  return r === true;
15558
15835
  };
15559
15836
  function emitJson$8(envelope) {
@@ -15626,9 +15903,9 @@ async function init(options, deps = {}) {
15626
15903
  const isTTY = deps.isTTY ?? Boolean(process.stdin.isTTY);
15627
15904
  const promptText = deps.promptText ?? defaultPromptText;
15628
15905
  const promptConfirm = deps.promptConfirm ?? defaultPromptConfirm$2;
15629
- const success = deps.logSuccess ?? ((s) => O.success(s));
15630
- const info = deps.logInfo ?? ((s) => O.info(s));
15631
- const error = deps.logError ?? ((s) => O.error(s));
15906
+ const success = deps.logSuccess ?? ((s) => R.success(s));
15907
+ const info = deps.logInfo ?? ((s) => R.info(s));
15908
+ const error = deps.logError ?? ((s) => R.error(s));
15632
15909
  const exit = deps.exit ?? exitWithCode;
15633
15910
  const interactive = isTTY && !options.yes && !options.json;
15634
15911
  try {
@@ -15808,9 +16085,9 @@ async function login(options, deps = {}) {
15808
16085
  const runFlow = deps.runDeviceFlow ?? runDeviceFlow;
15809
16086
  const save = deps.saveToken ?? saveToken;
15810
16087
  const load = deps.loadToken ?? loadToken;
15811
- const success = deps.logSuccess ?? ((s) => O.success(s));
15812
- const info = deps.logInfo ?? ((s) => O.info(s));
15813
- const error = deps.logError ?? ((s) => O.error(s));
16088
+ const success = deps.logSuccess ?? ((s) => R.success(s));
16089
+ const info = deps.logInfo ?? ((s) => R.info(s));
16090
+ const error = deps.logError ?? ((s) => R.error(s));
15814
16091
  const exit = deps.exit ?? exitWithCode;
15815
16092
  const envClientId = env["UNIVERSE_GH_CLIENT_ID"];
15816
16093
  const clientId = envClientId && envClientId.trim().length > 0 ? envClientId : DEFAULT_GH_CLIENT_ID;
@@ -15871,7 +16148,7 @@ async function login(options, deps = {}) {
15871
16148
  }));
15872
16149
  else {
15873
16150
  success("Logged in. Token stored at ~/.config/universe-cli/token.");
15874
- if (selfCheck.checked && selfCheck.warning) (deps.logWarn ?? ((s) => O.warn(s)))(selfCheck.warning);
16151
+ if (selfCheck.checked && selfCheck.warning) (deps.logWarn ?? ((s) => R.warn(s)))(selfCheck.warning);
15875
16152
  }
15876
16153
  }
15877
16154
  /**
@@ -15912,8 +16189,8 @@ function emitJson$6(envelope) {
15912
16189
  async function logout(options, deps = {}) {
15913
16190
  const load = deps.loadToken ?? loadToken;
15914
16191
  const del = deps.deleteToken ?? deleteToken;
15915
- const success = deps.logSuccess ?? ((s) => O.success(s));
15916
- const info = deps.logInfo ?? ((s) => O.info(s));
16192
+ const success = deps.logSuccess ?? ((s) => R.success(s));
16193
+ const info = deps.logInfo ?? ((s) => R.info(s));
15917
16194
  const existing = await load();
15918
16195
  await del();
15919
16196
  if (options.json) {
@@ -16006,9 +16283,9 @@ async function ls$2(options, deps = {}) {
16006
16283
  const readYaml = deps.readPlatformYaml ?? defaultReadPlatformYaml$2;
16007
16284
  const resolveId = deps.resolveIdentity ?? resolveIdentity;
16008
16285
  const mkClient = deps.createProxyClient ?? createProxyClient;
16009
- const success = deps.logSuccess ?? ((s) => O.success(s));
16010
- const info = deps.logInfo ?? ((s) => O.info(s));
16011
- const error = deps.logError ?? ((s) => O.error(s));
16286
+ const success = deps.logSuccess ?? ((s) => R.success(s));
16287
+ const info = deps.logInfo ?? ((s) => R.info(s));
16288
+ const error = deps.logError ?? ((s) => R.error(s));
16012
16289
  const exit = deps.exit ?? exitWithCode;
16013
16290
  try {
16014
16291
  const identity = await resolveId({ env });
@@ -16068,11 +16345,11 @@ async function ls$2(options, deps = {}) {
16068
16345
  //#endregion
16069
16346
  //#region src/commands/promote.ts
16070
16347
  const defaultPromptConfirm$1 = async (msg) => {
16071
- const r = await ot({
16348
+ const r = await le({
16072
16349
  message: msg,
16073
16350
  initialValue: false
16074
16351
  });
16075
- if (q(r)) return false;
16352
+ if (R$1(r)) return false;
16076
16353
  return r === true;
16077
16354
  };
16078
16355
  const defaultReadPlatformYaml$1 = async (cwd) => {
@@ -16099,8 +16376,8 @@ async function promote(options, deps = {}) {
16099
16376
  const readYaml = deps.readPlatformYaml ?? defaultReadPlatformYaml$1;
16100
16377
  const resolveId = deps.resolveIdentity ?? resolveIdentity;
16101
16378
  const mkClient = deps.createProxyClient ?? createProxyClient;
16102
- const success = deps.logSuccess ?? ((s) => O.success(s));
16103
- const error = deps.logError ?? ((s) => O.error(s));
16379
+ const success = deps.logSuccess ?? ((s) => R.success(s));
16380
+ const error = deps.logError ?? ((s) => R.error(s));
16104
16381
  const exit = deps.exit ?? exitWithCode;
16105
16382
  const promptConfirm = deps.promptConfirm ?? defaultPromptConfirm$1;
16106
16383
  try {
@@ -16198,11 +16475,11 @@ async function promote(options, deps = {}) {
16198
16475
  //#endregion
16199
16476
  //#region src/commands/rollback.ts
16200
16477
  const defaultPromptConfirm = async (msg) => {
16201
- const r = await ot({
16478
+ const r = await le({
16202
16479
  message: msg,
16203
16480
  initialValue: false
16204
16481
  });
16205
- if (q(r)) return false;
16482
+ if (R$1(r)) return false;
16206
16483
  return r === true;
16207
16484
  };
16208
16485
  const defaultReadPlatformYaml = async (cwd) => {
@@ -16229,8 +16506,8 @@ async function rollback(options, deps = {}) {
16229
16506
  const readYaml = deps.readPlatformYaml ?? defaultReadPlatformYaml;
16230
16507
  const resolveId = deps.resolveIdentity ?? resolveIdentity;
16231
16508
  const mkClient = deps.createProxyClient ?? createProxyClient;
16232
- const success = deps.logSuccess ?? ((s) => O.success(s));
16233
- const error = deps.logError ?? ((s) => O.error(s));
16509
+ const success = deps.logSuccess ?? ((s) => R.success(s));
16510
+ const error = deps.logError ?? ((s) => R.error(s));
16234
16511
  const exit = deps.exit ?? exitWithCode;
16235
16512
  const promptConfirm = deps.promptConfirm ?? defaultPromptConfirm;
16236
16513
  try {
@@ -16302,8 +16579,8 @@ async function whoami(options, deps = {}) {
16302
16579
  const env = deps.env ?? process.env;
16303
16580
  const resolve = deps.resolveIdentity ?? resolveIdentity;
16304
16581
  const mkClient = deps.createProxyClient ?? createProxyClient;
16305
- const success = deps.logSuccess ?? ((s) => O.success(s));
16306
- const error = deps.logError ?? ((s) => O.error(s));
16582
+ const success = deps.logSuccess ?? ((s) => R.success(s));
16583
+ const error = deps.logError ?? ((s) => R.error(s));
16307
16584
  const exit = deps.exit ?? exitWithCode;
16308
16585
  const identity = await resolve({ env });
16309
16586
  if (!identity) {
@@ -16404,8 +16681,8 @@ function formatTable(rows) {
16404
16681
  }
16405
16682
  async function ls$1(options, deps = {}) {
16406
16683
  const command = "sites ls";
16407
- const success = deps.logSuccess ?? ((s) => O.message(s));
16408
- const error = deps.logError ?? ((s) => O.error(s));
16684
+ const success = deps.logSuccess ?? ((s) => R.message(s));
16685
+ const error = deps.logError ?? ((s) => R.error(s));
16409
16686
  const exit = deps.exit ?? exitWithCode;
16410
16687
  try {
16411
16688
  const { client, identitySource } = await setupClient$1(deps);
@@ -16437,8 +16714,8 @@ async function ls$1(options, deps = {}) {
16437
16714
  //#region src/commands/sites/register.ts
16438
16715
  async function register(options, deps = {}) {
16439
16716
  const command = "sites register";
16440
- const success = deps.logSuccess ?? ((s) => O.success(s));
16441
- const error = deps.logError ?? ((s) => O.error(s));
16717
+ const success = deps.logSuccess ?? ((s) => R.success(s));
16718
+ const error = deps.logError ?? ((s) => R.error(s));
16442
16719
  const exit = deps.exit ?? exitWithCode;
16443
16720
  try {
16444
16721
  if (!options.slug || options.slug.trim().length === 0) throw new UsageError("slug is required (positional argument)");
@@ -16476,8 +16753,8 @@ async function register(options, deps = {}) {
16476
16753
  //#region src/commands/sites/rm.ts
16477
16754
  async function rm$1(options, deps = {}) {
16478
16755
  const command = "sites rm";
16479
- const success = deps.logSuccess ?? ((s) => O.success(s));
16480
- const error = deps.logError ?? ((s) => O.error(s));
16756
+ const success = deps.logSuccess ?? ((s) => R.success(s));
16757
+ const error = deps.logError ?? ((s) => R.error(s));
16481
16758
  const exit = deps.exit ?? exitWithCode;
16482
16759
  try {
16483
16760
  if (!options.slug || options.slug.trim().length === 0) throw new UsageError("slug is required (positional argument)");
@@ -16507,8 +16784,8 @@ async function rm$1(options, deps = {}) {
16507
16784
  //#region src/commands/sites/update.ts
16508
16785
  async function update(options, deps = {}) {
16509
16786
  const command = "sites update";
16510
- const success = deps.logSuccess ?? ((s) => O.success(s));
16511
- const error = deps.logError ?? ((s) => O.error(s));
16787
+ const success = deps.logSuccess ?? ((s) => R.success(s));
16788
+ const error = deps.logError ?? ((s) => R.error(s));
16512
16789
  const exit = deps.exit ?? exitWithCode;
16513
16790
  try {
16514
16791
  if (!options.slug || options.slug.trim().length === 0) throw new UsageError("slug is required (positional argument)");
@@ -16544,10 +16821,10 @@ async function update(options, deps = {}) {
16544
16821
  //#endregion
16545
16822
  //#region src/commands/repo/_shared.ts
16546
16823
  const defaultRepoPrompts = {
16547
- text: Ot,
16548
- select: _t,
16549
- confirm: ot,
16550
- isCancel: q
16824
+ text: Re,
16825
+ select: Ee,
16826
+ confirm: le,
16827
+ isCancel: R$1
16551
16828
  };
16552
16829
  function emitJson(envelope) {
16553
16830
  process.stdout.write(JSON.stringify(envelope) + "\n");
@@ -16602,8 +16879,8 @@ function formatRepoTable(rows, emptyMsg = "No repo requests.") {
16602
16879
  //#region src/commands/repo/approve.ts
16603
16880
  async function approve(options, deps = {}) {
16604
16881
  const command = "repo approve";
16605
- const success = deps.logSuccess ?? ((s) => O.success(s));
16606
- const error = deps.logError ?? ((s) => O.error(s));
16882
+ const success = deps.logSuccess ?? ((s) => R.success(s));
16883
+ const error = deps.logError ?? ((s) => R.error(s));
16607
16884
  const exit = deps.exit ?? exitWithCode;
16608
16885
  const prompts = deps.prompts ?? defaultRepoPrompts;
16609
16886
  const isTTY = deps.isTTY ?? Boolean(process.stdout.isTTY);
@@ -16718,8 +16995,8 @@ async function promptTemplate(client, prompts) {
16718
16995
  }
16719
16996
  async function create(options, deps = {}) {
16720
16997
  const command = "repo create";
16721
- const success = deps.logSuccess ?? ((s) => O.success(s));
16722
- const error = deps.logError ?? ((s) => O.error(s));
16998
+ const success = deps.logSuccess ?? ((s) => R.success(s));
16999
+ const error = deps.logError ?? ((s) => R.error(s));
16723
17000
  const exit = deps.exit ?? exitWithCode;
16724
17001
  const prompts = deps.prompts ?? defaultRepoPrompts;
16725
17002
  const isTTY = deps.isTTY ?? Boolean(process.stdout.isTTY);
@@ -16833,8 +17110,8 @@ async function create(options, deps = {}) {
16833
17110
  const LS_STATUSES = [...repoStatusSchema.options, "all"];
16834
17111
  async function ls(options, deps = {}) {
16835
17112
  const command = "repo ls";
16836
- const message = deps.logMessage ?? ((s) => O.message(s));
16837
- const error = deps.logError ?? ((s) => O.error(s));
17113
+ const message = deps.logMessage ?? ((s) => R.message(s));
17114
+ const error = deps.logError ?? ((s) => R.error(s));
16838
17115
  const exit = deps.exit ?? exitWithCode;
16839
17116
  let identitySource;
16840
17117
  try {
@@ -16874,8 +17151,8 @@ async function ls(options, deps = {}) {
16874
17151
  //#region src/commands/repo/reject.ts
16875
17152
  async function reject(options, deps = {}) {
16876
17153
  const command = "repo reject";
16877
- const success = deps.logSuccess ?? ((s) => O.success(s));
16878
- const error = deps.logError ?? ((s) => O.error(s));
17154
+ const success = deps.logSuccess ?? ((s) => R.success(s));
17155
+ const error = deps.logError ?? ((s) => R.error(s));
16879
17156
  const exit = deps.exit ?? exitWithCode;
16880
17157
  const prompts = deps.prompts ?? defaultRepoPrompts;
16881
17158
  const isTTY = deps.isTTY ?? Boolean(process.stdout.isTTY);
@@ -16927,8 +17204,8 @@ async function reject(options, deps = {}) {
16927
17204
  //#region src/commands/repo/rm.ts
16928
17205
  async function rm(options, deps = {}) {
16929
17206
  const command = "repo rm";
16930
- const success = deps.logSuccess ?? ((s) => O.success(s));
16931
- const error = deps.logError ?? ((s) => O.error(s));
17207
+ const success = deps.logSuccess ?? ((s) => R.success(s));
17208
+ const error = deps.logError ?? ((s) => R.error(s));
16932
17209
  const exit = deps.exit ?? exitWithCode;
16933
17210
  const prompts = deps.prompts ?? defaultRepoPrompts;
16934
17211
  const isTTY = deps.isTTY ?? Boolean(process.stdout.isTTY);
@@ -16987,8 +17264,8 @@ function humanRow(row) {
16987
17264
  }
16988
17265
  async function status(options, deps = {}) {
16989
17266
  const command = "repo status";
16990
- const message = deps.logMessage ?? ((s) => O.message(s));
16991
- const error = deps.logError ?? ((s) => O.error(s));
17267
+ const message = deps.logMessage ?? ((s) => R.message(s));
17268
+ const error = deps.logError ?? ((s) => R.error(s));
16992
17269
  const exit = deps.exit ?? exitWithCode;
16993
17270
  let identitySource;
16994
17271
  try {
@@ -17210,7 +17487,7 @@ function installExitNotice(current) {
17210
17487
  }
17211
17488
  //#endregion
17212
17489
  //#region src/cli.ts
17213
- const version = "0.10.0";
17490
+ const version = "0.10.1";
17214
17491
  function handleActionError(command, json, err) {
17215
17492
  const ctx = {
17216
17493
  json,