@base44-preview/cli 0.0.35-pr.327.93263cb → 0.0.35-pr.328.a9bab06

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js CHANGED
@@ -12345,398 +12345,6 @@ var require_front_matter = __commonJS((exports, module) => {
12345
12345
  }
12346
12346
  });
12347
12347
 
12348
- // node_modules/dotenv/package.json
12349
- var require_package2 = __commonJS((exports, module) => {
12350
- module.exports = {
12351
- name: "dotenv",
12352
- version: "17.3.1",
12353
- description: "Loads environment variables from .env file",
12354
- main: "lib/main.js",
12355
- types: "lib/main.d.ts",
12356
- exports: {
12357
- ".": {
12358
- types: "./lib/main.d.ts",
12359
- require: "./lib/main.js",
12360
- default: "./lib/main.js"
12361
- },
12362
- "./config": "./config.js",
12363
- "./config.js": "./config.js",
12364
- "./lib/env-options": "./lib/env-options.js",
12365
- "./lib/env-options.js": "./lib/env-options.js",
12366
- "./lib/cli-options": "./lib/cli-options.js",
12367
- "./lib/cli-options.js": "./lib/cli-options.js",
12368
- "./package.json": "./package.json"
12369
- },
12370
- scripts: {
12371
- "dts-check": "tsc --project tests/types/tsconfig.json",
12372
- lint: "standard",
12373
- pretest: "npm run lint && npm run dts-check",
12374
- test: "tap run tests/**/*.js --allow-empty-coverage --disable-coverage --timeout=60000",
12375
- "test:coverage": "tap run tests/**/*.js --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov",
12376
- prerelease: "npm test",
12377
- release: "standard-version"
12378
- },
12379
- repository: {
12380
- type: "git",
12381
- url: "git://github.com/motdotla/dotenv.git"
12382
- },
12383
- homepage: "https://github.com/motdotla/dotenv#readme",
12384
- funding: "https://dotenvx.com",
12385
- keywords: [
12386
- "dotenv",
12387
- "env",
12388
- ".env",
12389
- "environment",
12390
- "variables",
12391
- "config",
12392
- "settings"
12393
- ],
12394
- readmeFilename: "README.md",
12395
- license: "BSD-2-Clause",
12396
- devDependencies: {
12397
- "@types/node": "^18.11.3",
12398
- decache: "^4.6.2",
12399
- sinon: "^14.0.1",
12400
- standard: "^17.0.0",
12401
- "standard-version": "^9.5.0",
12402
- tap: "^19.2.0",
12403
- typescript: "^4.8.4"
12404
- },
12405
- engines: {
12406
- node: ">=12"
12407
- },
12408
- browser: {
12409
- fs: false
12410
- }
12411
- };
12412
- });
12413
-
12414
- // node_modules/dotenv/lib/main.js
12415
- var require_main = __commonJS((exports, module) => {
12416
- var fs14 = __require("fs");
12417
- var path11 = __require("path");
12418
- var os = __require("os");
12419
- var crypto = __require("crypto");
12420
- var packageJson = require_package2();
12421
- var version2 = packageJson.version;
12422
- var TIPS = [
12423
- "\uD83D\uDD10 encrypt with Dotenvx: https://dotenvx.com",
12424
- "\uD83D\uDD10 prevent committing .env to code: https://dotenvx.com/precommit",
12425
- "\uD83D\uDD10 prevent building .env in docker: https://dotenvx.com/prebuild",
12426
- "\uD83E\uDD16 agentic secret storage: https://dotenvx.com/as2",
12427
- "⚡️ secrets for agents: https://dotenvx.com/as2",
12428
- "\uD83D\uDEE1️ auth for agents: https://vestauth.com",
12429
- "\uD83D\uDEE0️ run anywhere with `dotenvx run -- yourcommand`",
12430
- "⚙️ specify custom .env file path with { path: '/custom/path/.env' }",
12431
- "⚙️ enable debug logging with { debug: true }",
12432
- "⚙️ override existing env vars with { override: true }",
12433
- "⚙️ suppress all logs with { quiet: true }",
12434
- "⚙️ write to custom object with { processEnv: myObject }",
12435
- "⚙️ load multiple .env files with { path: ['.env.local', '.env'] }"
12436
- ];
12437
- function _getRandomTip() {
12438
- return TIPS[Math.floor(Math.random() * TIPS.length)];
12439
- }
12440
- function parseBoolean(value) {
12441
- if (typeof value === "string") {
12442
- return !["false", "0", "no", "off", ""].includes(value.toLowerCase());
12443
- }
12444
- return Boolean(value);
12445
- }
12446
- function supportsAnsi() {
12447
- return process.stdout.isTTY;
12448
- }
12449
- function dim(text) {
12450
- return supportsAnsi() ? `\x1B[2m${text}\x1B[0m` : text;
12451
- }
12452
- var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
12453
- function parse9(src) {
12454
- const obj = {};
12455
- let lines = src.toString();
12456
- lines = lines.replace(/\r\n?/mg, `
12457
- `);
12458
- let match;
12459
- while ((match = LINE.exec(lines)) != null) {
12460
- const key = match[1];
12461
- let value = match[2] || "";
12462
- value = value.trim();
12463
- const maybeQuote = value[0];
12464
- value = value.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
12465
- if (maybeQuote === '"') {
12466
- value = value.replace(/\\n/g, `
12467
- `);
12468
- value = value.replace(/\\r/g, "\r");
12469
- }
12470
- obj[key] = value;
12471
- }
12472
- return obj;
12473
- }
12474
- function _parseVault(options) {
12475
- options = options || {};
12476
- const vaultPath = _vaultPath(options);
12477
- options.path = vaultPath;
12478
- const result = DotenvModule.configDotenv(options);
12479
- if (!result.parsed) {
12480
- const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
12481
- err.code = "MISSING_DATA";
12482
- throw err;
12483
- }
12484
- const keys = _dotenvKey(options).split(",");
12485
- const length = keys.length;
12486
- let decrypted;
12487
- for (let i = 0;i < length; i++) {
12488
- try {
12489
- const key = keys[i].trim();
12490
- const attrs = _instructions(result, key);
12491
- decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
12492
- break;
12493
- } catch (error48) {
12494
- if (i + 1 >= length) {
12495
- throw error48;
12496
- }
12497
- }
12498
- }
12499
- return DotenvModule.parse(decrypted);
12500
- }
12501
- function _warn(message) {
12502
- console.error(`[dotenv@${version2}][WARN] ${message}`);
12503
- }
12504
- function _debug(message) {
12505
- console.log(`[dotenv@${version2}][DEBUG] ${message}`);
12506
- }
12507
- function _log(message) {
12508
- console.log(`[dotenv@${version2}] ${message}`);
12509
- }
12510
- function _dotenvKey(options) {
12511
- if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
12512
- return options.DOTENV_KEY;
12513
- }
12514
- if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {
12515
- return process.env.DOTENV_KEY;
12516
- }
12517
- return "";
12518
- }
12519
- function _instructions(result, dotenvKey) {
12520
- let uri;
12521
- try {
12522
- uri = new URL(dotenvKey);
12523
- } catch (error48) {
12524
- if (error48.code === "ERR_INVALID_URL") {
12525
- const err = new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
12526
- err.code = "INVALID_DOTENV_KEY";
12527
- throw err;
12528
- }
12529
- throw error48;
12530
- }
12531
- const key = uri.password;
12532
- if (!key) {
12533
- const err = new Error("INVALID_DOTENV_KEY: Missing key part");
12534
- err.code = "INVALID_DOTENV_KEY";
12535
- throw err;
12536
- }
12537
- const environment = uri.searchParams.get("environment");
12538
- if (!environment) {
12539
- const err = new Error("INVALID_DOTENV_KEY: Missing environment part");
12540
- err.code = "INVALID_DOTENV_KEY";
12541
- throw err;
12542
- }
12543
- const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
12544
- const ciphertext = result.parsed[environmentKey];
12545
- if (!ciphertext) {
12546
- const err = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
12547
- err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
12548
- throw err;
12549
- }
12550
- return { ciphertext, key };
12551
- }
12552
- function _vaultPath(options) {
12553
- let possibleVaultPath = null;
12554
- if (options && options.path && options.path.length > 0) {
12555
- if (Array.isArray(options.path)) {
12556
- for (const filepath of options.path) {
12557
- if (fs14.existsSync(filepath)) {
12558
- possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
12559
- }
12560
- }
12561
- } else {
12562
- possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
12563
- }
12564
- } else {
12565
- possibleVaultPath = path11.resolve(process.cwd(), ".env.vault");
12566
- }
12567
- if (fs14.existsSync(possibleVaultPath)) {
12568
- return possibleVaultPath;
12569
- }
12570
- return null;
12571
- }
12572
- function _resolveHome(envPath) {
12573
- return envPath[0] === "~" ? path11.join(os.homedir(), envPath.slice(1)) : envPath;
12574
- }
12575
- function _configVault(options) {
12576
- const debug = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || options && options.debug);
12577
- const quiet = parseBoolean(process.env.DOTENV_CONFIG_QUIET || options && options.quiet);
12578
- if (debug || !quiet) {
12579
- _log("Loading env from encrypted .env.vault");
12580
- }
12581
- const parsed = DotenvModule._parseVault(options);
12582
- let processEnv = process.env;
12583
- if (options && options.processEnv != null) {
12584
- processEnv = options.processEnv;
12585
- }
12586
- DotenvModule.populate(processEnv, parsed, options);
12587
- return { parsed };
12588
- }
12589
- function configDotenv(options) {
12590
- const dotenvPath = path11.resolve(process.cwd(), ".env");
12591
- let encoding = "utf8";
12592
- let processEnv = process.env;
12593
- if (options && options.processEnv != null) {
12594
- processEnv = options.processEnv;
12595
- }
12596
- let debug = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || options && options.debug);
12597
- let quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || options && options.quiet);
12598
- if (options && options.encoding) {
12599
- encoding = options.encoding;
12600
- } else {
12601
- if (debug) {
12602
- _debug("No encoding is specified. UTF-8 is used by default");
12603
- }
12604
- }
12605
- let optionPaths = [dotenvPath];
12606
- if (options && options.path) {
12607
- if (!Array.isArray(options.path)) {
12608
- optionPaths = [_resolveHome(options.path)];
12609
- } else {
12610
- optionPaths = [];
12611
- for (const filepath of options.path) {
12612
- optionPaths.push(_resolveHome(filepath));
12613
- }
12614
- }
12615
- }
12616
- let lastError;
12617
- const parsedAll = {};
12618
- for (const path12 of optionPaths) {
12619
- try {
12620
- const parsed = DotenvModule.parse(fs14.readFileSync(path12, { encoding }));
12621
- DotenvModule.populate(parsedAll, parsed, options);
12622
- } catch (e2) {
12623
- if (debug) {
12624
- _debug(`Failed to load ${path12} ${e2.message}`);
12625
- }
12626
- lastError = e2;
12627
- }
12628
- }
12629
- const populated = DotenvModule.populate(processEnv, parsedAll, options);
12630
- debug = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || debug);
12631
- quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || quiet);
12632
- if (debug || !quiet) {
12633
- const keysCount = Object.keys(populated).length;
12634
- const shortPaths = [];
12635
- for (const filePath of optionPaths) {
12636
- try {
12637
- const relative = path11.relative(process.cwd(), filePath);
12638
- shortPaths.push(relative);
12639
- } catch (e2) {
12640
- if (debug) {
12641
- _debug(`Failed to load ${filePath} ${e2.message}`);
12642
- }
12643
- lastError = e2;
12644
- }
12645
- }
12646
- _log(`injecting env (${keysCount}) from ${shortPaths.join(",")} ${dim(`-- tip: ${_getRandomTip()}`)}`);
12647
- }
12648
- if (lastError) {
12649
- return { parsed: parsedAll, error: lastError };
12650
- } else {
12651
- return { parsed: parsedAll };
12652
- }
12653
- }
12654
- function config9(options) {
12655
- if (_dotenvKey(options).length === 0) {
12656
- return DotenvModule.configDotenv(options);
12657
- }
12658
- const vaultPath = _vaultPath(options);
12659
- if (!vaultPath) {
12660
- _warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`);
12661
- return DotenvModule.configDotenv(options);
12662
- }
12663
- return DotenvModule._configVault(options);
12664
- }
12665
- function decrypt(encrypted, keyStr) {
12666
- const key = Buffer.from(keyStr.slice(-64), "hex");
12667
- let ciphertext = Buffer.from(encrypted, "base64");
12668
- const nonce = ciphertext.subarray(0, 12);
12669
- const authTag = ciphertext.subarray(-16);
12670
- ciphertext = ciphertext.subarray(12, -16);
12671
- try {
12672
- const aesgcm = crypto.createDecipheriv("aes-256-gcm", key, nonce);
12673
- aesgcm.setAuthTag(authTag);
12674
- return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
12675
- } catch (error48) {
12676
- const isRange = error48 instanceof RangeError;
12677
- const invalidKeyLength = error48.message === "Invalid key length";
12678
- const decryptionFailed = error48.message === "Unsupported state or unable to authenticate data";
12679
- if (isRange || invalidKeyLength) {
12680
- const err = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
12681
- err.code = "INVALID_DOTENV_KEY";
12682
- throw err;
12683
- } else if (decryptionFailed) {
12684
- const err = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
12685
- err.code = "DECRYPTION_FAILED";
12686
- throw err;
12687
- } else {
12688
- throw error48;
12689
- }
12690
- }
12691
- }
12692
- function populate(processEnv, parsed, options = {}) {
12693
- const debug = Boolean(options && options.debug);
12694
- const override = Boolean(options && options.override);
12695
- const populated = {};
12696
- if (typeof parsed !== "object") {
12697
- const err = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
12698
- err.code = "OBJECT_REQUIRED";
12699
- throw err;
12700
- }
12701
- for (const key of Object.keys(parsed)) {
12702
- if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
12703
- if (override === true) {
12704
- processEnv[key] = parsed[key];
12705
- populated[key] = parsed[key];
12706
- }
12707
- if (debug) {
12708
- if (override === true) {
12709
- _debug(`"${key}" is already defined and WAS overwritten`);
12710
- } else {
12711
- _debug(`"${key}" is already defined and was NOT overwritten`);
12712
- }
12713
- }
12714
- } else {
12715
- processEnv[key] = parsed[key];
12716
- populated[key] = parsed[key];
12717
- }
12718
- }
12719
- return populated;
12720
- }
12721
- var DotenvModule = {
12722
- configDotenv,
12723
- _configVault,
12724
- _parseVault,
12725
- config: config9,
12726
- decrypt,
12727
- parse: parse9,
12728
- populate
12729
- };
12730
- exports.configDotenv = DotenvModule.configDotenv;
12731
- exports._configVault = DotenvModule._configVault;
12732
- exports._parseVault = DotenvModule._parseVault;
12733
- exports.config = DotenvModule.config;
12734
- exports.decrypt = DotenvModule.decrypt;
12735
- exports.parse = DotenvModule.parse;
12736
- exports.populate = DotenvModule.populate;
12737
- module.exports = DotenvModule;
12738
- });
12739
-
12740
12348
  // node_modules/isexe/windows.js
12741
12349
  var require_windows = __commonJS((exports, module) => {
12742
12350
  module.exports = isexe;
@@ -12970,7 +12578,7 @@ var require_resolveCommand = __commonJS((exports, module) => {
12970
12578
  var which = require_which();
12971
12579
  var getPathKey = require_path_key();
12972
12580
  function resolveCommandAttempt(parsed, withoutPathExt) {
12973
- const env3 = parsed.options.env || process.env;
12581
+ const env2 = parsed.options.env || process.env;
12974
12582
  const cwd = process.cwd();
12975
12583
  const hasCustomCwd = parsed.options.cwd != null;
12976
12584
  const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;
@@ -12982,7 +12590,7 @@ var require_resolveCommand = __commonJS((exports, module) => {
12982
12590
  let resolved;
12983
12591
  try {
12984
12592
  resolved = which.sync(parsed.command, {
12985
- path: env3[getPathKey({ env: env3 })],
12593
+ path: env2[getPathKey({ env: env2 })],
12986
12594
  pathExt: withoutPathExt ? path11.delimiter : undefined
12987
12595
  });
12988
12596
  } catch (e2) {} finally {
@@ -13100,7 +12708,7 @@ var require_parse4 = __commonJS((exports, module) => {
13100
12708
  }
13101
12709
  return parsed;
13102
12710
  }
13103
- function parse10(command, args, options) {
12711
+ function parse9(command, args, options) {
13104
12712
  if (args && !Array.isArray(args)) {
13105
12713
  options = args;
13106
12714
  args = null;
@@ -13119,7 +12727,7 @@ var require_parse4 = __commonJS((exports, module) => {
13119
12727
  };
13120
12728
  return options.shell ? parsed : parseNonShell(parsed);
13121
12729
  }
13122
- module.exports = parse10;
12730
+ module.exports = parse9;
13123
12731
  });
13124
12732
 
13125
12733
  // node_modules/cross-spawn/lib/enoent.js
@@ -13172,16 +12780,16 @@ var require_enoent = __commonJS((exports, module) => {
13172
12780
  // node_modules/cross-spawn/index.js
13173
12781
  var require_cross_spawn = __commonJS((exports, module) => {
13174
12782
  var cp = __require("child_process");
13175
- var parse10 = require_parse4();
12783
+ var parse9 = require_parse4();
13176
12784
  var enoent = require_enoent();
13177
12785
  function spawn(command, args, options) {
13178
- const parsed = parse10(command, args, options);
12786
+ const parsed = parse9(command, args, options);
13179
12787
  const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
13180
12788
  enoent.hookChildProcess(spawned, parsed);
13181
12789
  return spawned;
13182
12790
  }
13183
12791
  function spawnSync(command, args, options) {
13184
- const parsed = parse10(command, args, options);
12792
+ const parsed = parse9(command, args, options);
13185
12793
  const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
13186
12794
  result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
13187
12795
  return result;
@@ -13189,7 +12797,7 @@ var require_cross_spawn = __commonJS((exports, module) => {
13189
12797
  module.exports = spawn;
13190
12798
  module.exports.spawn = spawn;
13191
12799
  module.exports.sync = spawnSync;
13192
- module.exports._parse = parse10;
12800
+ module.exports._parse = parse9;
13193
12801
  module.exports._enoent = enoent;
13194
12802
  });
13195
12803
 
@@ -108801,11 +108409,11 @@ function chooseDescription(descriptions, printWidth) {
108801
108409
  return firstWidth > printWidth && firstWidth > secondWidth ? secondDescription : firstDescription;
108802
108410
  }
108803
108411
  function createSchema(SchemaConstructor, parameters) {
108804
- const schema9 = new SchemaConstructor(parameters);
108805
- const subSchema = Object.create(schema9);
108412
+ const schema8 = new SchemaConstructor(parameters);
108413
+ const subSchema = Object.create(schema8);
108806
108414
  for (const handlerKey of HANDLER_KEYS) {
108807
108415
  if (handlerKey in parameters) {
108808
- subSchema[handlerKey] = normalizeHandler(parameters[handlerKey], schema9, Schema.prototype[handlerKey].length);
108416
+ subSchema[handlerKey] = normalizeHandler(parameters[handlerKey], schema8, Schema.prototype[handlerKey].length);
108809
108417
  }
108810
108418
  }
108811
108419
  return subSchema;
@@ -112145,9 +111753,9 @@ function optionInfoToSchema(optionInfo, {
112145
111753
  throw new Error(`Unexpected type ${optionInfo.type}`);
112146
111754
  }
112147
111755
  if (optionInfo.exception) {
112148
- parameters.validate = (value, schema9, utils3) => optionInfo.exception(value) || schema9.validate(value, utils3);
111756
+ parameters.validate = (value, schema8, utils3) => optionInfo.exception(value) || schema8.validate(value, utils3);
112149
111757
  } else {
112150
- parameters.validate = (value, schema9, utils3) => value === undefined || schema9.validate(value, utils3);
111758
+ parameters.validate = (value, schema8, utils3) => value === undefined || schema8.validate(value, utils3);
112151
111759
  }
112152
111760
  if (optionInfo.redirect) {
112153
111761
  handlers.redirect = (value) => !value ? undefined : {
@@ -112162,7 +111770,7 @@ function optionInfoToSchema(optionInfo, {
112162
111770
  }
112163
111771
  if (isCLI && !optionInfo.array) {
112164
111772
  const originalPreprocess = parameters.preprocess || ((x10) => x10);
112165
- parameters.preprocess = (value, schema9, utils3) => schema9.preprocess(originalPreprocess(Array.isArray(value) ? method_at_default2(0, value, -1) : value), utils3);
111773
+ parameters.preprocess = (value, schema8, utils3) => schema8.preprocess(originalPreprocess(Array.isArray(value) ? method_at_default2(0, value, -1) : value), utils3);
112166
111774
  }
112167
111775
  return optionInfo.array ? ArraySchema.create({
112168
111776
  ...isCLI ? {
@@ -113440,7 +113048,7 @@ var require2, __filename2, __dirname4, __create2, __defProp3, __getOwnPropDesc,
113440
113048
  __defProp3(to5, key2, { get: () => from[key2], enumerable: !(desc2 = __getOwnPropDesc(from, key2)) || desc2.enumerable });
113441
113049
  }
113442
113050
  return to5;
113443
- }, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp3(target, "default", { value: mod, enumerable: true }) : target, mod)), require_array2, require_errno2, require_fs5, require_path2, require_is_extglob2, require_is_glob2, require_glob_parent2, require_utils6, require_stringify3, require_is_number2, require_to_regex_range2, require_fill_range2, require_compile2, require_expand2, require_constants4, require_parse5, require_braces2, require_constants22, require_utils22, require_scan2, require_parse22, require_picomatch2, require_picomatch22, require_micromatch2, require_pattern2, require_merge22, require_stream5, require_string2, require_utils32, require_tasks2, require_async7, require_sync7, require_fs22, require_settings5, require_out5, require_queue_microtask2, require_run_parallel2, require_constants32, require_fs32, require_utils42, require_common4, require_async22, require_sync22, require_fs42, require_settings22, require_out22, require_reusify2, require_queue2, require_common22, require_reader3, require_async32, require_async42, require_stream22, require_sync32, require_sync42, require_settings32, require_out32, require_reader22, require_stream32, require_async52, require_matcher2, require_partial2, require_deep2, require_entry3, require_error3, require_entry22, require_provider2, require_async62, require_stream42, require_sync52, require_sync62, require_settings42, require_out42, require_picocolors2, require_debug, require_constants42, require_re, require_parse_options, require_identifiers, require_semver, require_compare, require_gte, require_pseudomap, require_map2, require_yallist, require_lru_cache, require_sigmund, require_fnmatch, require_ini, require_package3, require_src2, require_js_tokens, require_readlines, require_ignore2, index_exports, Diff = class {
113051
+ }, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp3(target, "default", { value: mod, enumerable: true }) : target, mod)), require_array2, require_errno2, require_fs5, require_path2, require_is_extglob2, require_is_glob2, require_glob_parent2, require_utils6, require_stringify3, require_is_number2, require_to_regex_range2, require_fill_range2, require_compile2, require_expand2, require_constants4, require_parse5, require_braces2, require_constants22, require_utils22, require_scan2, require_parse22, require_picomatch2, require_picomatch22, require_micromatch2, require_pattern2, require_merge22, require_stream5, require_string2, require_utils32, require_tasks2, require_async7, require_sync7, require_fs22, require_settings5, require_out5, require_queue_microtask2, require_run_parallel2, require_constants32, require_fs32, require_utils42, require_common4, require_async22, require_sync22, require_fs42, require_settings22, require_out22, require_reusify2, require_queue2, require_common22, require_reader3, require_async32, require_async42, require_stream22, require_sync32, require_sync42, require_settings32, require_out32, require_reader22, require_stream32, require_async52, require_matcher2, require_partial2, require_deep2, require_entry3, require_error3, require_entry22, require_provider2, require_async62, require_stream42, require_sync52, require_sync62, require_settings42, require_out42, require_picocolors2, require_debug, require_constants42, require_re, require_parse_options, require_identifiers, require_semver, require_compare, require_gte, require_pseudomap, require_map2, require_yallist, require_lru_cache, require_sigmund, require_fnmatch, require_ini, require_package2, require_src2, require_js_tokens, require_readlines, require_ignore2, index_exports, Diff = class {
113444
113052
  diff(oldStr, newStr, options8 = {}) {
113445
113053
  let callback;
113446
113054
  if (typeof options8 === "function") {
@@ -113739,9 +113347,9 @@ var require2, __filename2, __dirname4, __create2, __defProp3, __getOwnPropDesc,
113739
113347
  };
113740
113348
  applyNormalization();
113741
113349
  for (const key2 of Object.keys(this._utils.schemas)) {
113742
- const schema9 = this._utils.schemas[key2];
113350
+ const schema8 = this._utils.schemas[key2];
113743
113351
  if (!(key2 in newOptions)) {
113744
- const defaultResult = normalizeDefaultResult(schema9.default(this._utils));
113352
+ const defaultResult = normalizeDefaultResult(schema8.default(this._utils));
113745
113353
  if ("value" in defaultResult) {
113746
113354
  restOptionsArray.push({ [key2]: defaultResult.value });
113747
113355
  }
@@ -113752,13 +113360,13 @@ var require2, __filename2, __dirname4, __create2, __defProp3, __getOwnPropDesc,
113752
113360
  if (!(key2 in newOptions)) {
113753
113361
  continue;
113754
113362
  }
113755
- const schema9 = this._utils.schemas[key2];
113363
+ const schema8 = this._utils.schemas[key2];
113756
113364
  const value = newOptions[key2];
113757
- const newValue = schema9.postprocess(value, this._utils);
113365
+ const newValue = schema8.postprocess(value, this._utils);
113758
113366
  if (newValue === VALUE_UNCHANGED) {
113759
113367
  continue;
113760
113368
  }
113761
- this._applyValidation(newValue, key2, schema9);
113369
+ this._applyValidation(newValue, key2, schema8);
113762
113370
  newOptions[key2] = newValue;
113763
113371
  }
113764
113372
  this._applyPostprocess(newOptions);
@@ -113769,14 +113377,14 @@ var require2, __filename2, __dirname4, __create2, __defProp3, __getOwnPropDesc,
113769
113377
  const transferredOptionsArray = [];
113770
113378
  const { knownKeys, unknownKeys } = this._partitionOptionKeys(options8);
113771
113379
  for (const key2 of knownKeys) {
113772
- const schema9 = this._utils.schemas[key2];
113773
- const value = schema9.preprocess(options8[key2], this._utils);
113774
- this._applyValidation(value, key2, schema9);
113380
+ const schema8 = this._utils.schemas[key2];
113381
+ const value = schema8.preprocess(options8[key2], this._utils);
113382
+ this._applyValidation(value, key2, schema8);
113775
113383
  const appendTransferredOptions = ({ from, to: to5 }) => {
113776
113384
  transferredOptionsArray.push(typeof to5 === "string" ? { [to5]: from } : { [to5.key]: to5.value });
113777
113385
  };
113778
113386
  const warnDeprecated = ({ value: currentValue, redirectTo }) => {
113779
- const deprecatedResult = normalizeDeprecatedResult(schema9.deprecated(currentValue, this._utils), value, true);
113387
+ const deprecatedResult = normalizeDeprecatedResult(schema8.deprecated(currentValue, this._utils), value, true);
113780
113388
  if (deprecatedResult === false) {
113781
113389
  return;
113782
113390
  }
@@ -113794,13 +113402,13 @@ var require2, __filename2, __dirname4, __create2, __defProp3, __getOwnPropDesc,
113794
113402
  }
113795
113403
  }
113796
113404
  };
113797
- const forwardResult = normalizeForwardResult(schema9.forward(value, this._utils), value);
113405
+ const forwardResult = normalizeForwardResult(schema8.forward(value, this._utils), value);
113798
113406
  forwardResult.forEach(appendTransferredOptions);
113799
- const redirectResult = normalizeRedirectResult(schema9.redirect(value, this._utils), value);
113407
+ const redirectResult = normalizeRedirectResult(schema8.redirect(value, this._utils), value);
113800
113408
  redirectResult.redirect.forEach(appendTransferredOptions);
113801
113409
  if ("remain" in redirectResult) {
113802
113410
  const remainingValue = redirectResult.remain;
113803
- newOptions[key2] = key2 in newOptions ? schema9.overlap(newOptions[key2], remainingValue, this._utils) : remainingValue;
113411
+ newOptions[key2] = key2 in newOptions ? schema8.overlap(newOptions[key2], remainingValue, this._utils) : remainingValue;
113804
113412
  warnDeprecated({ value: remainingValue });
113805
113413
  }
113806
113414
  for (const { from, to: to5 } of redirectResult.redirect) {
@@ -113828,8 +113436,8 @@ var require2, __filename2, __dirname4, __create2, __defProp3, __getOwnPropDesc,
113828
113436
  const [knownKeys, unknownKeys] = partition(Object.keys(options8).filter((key2) => !this._identifyMissing(key2, options8)), (key2) => (key2 in this._utils.schemas));
113829
113437
  return { knownKeys, unknownKeys };
113830
113438
  }
113831
- _applyValidation(value, key2, schema9) {
113832
- const validateResult = normalizeValidateResult(schema9.validate(value, this._utils), value);
113439
+ _applyValidation(value, key2, schema8) {
113440
+ const validateResult = normalizeValidateResult(schema8.validate(value, this._utils), value);
113833
113441
  if (validateResult !== true) {
113834
113442
  throw this._invalidHandler(key2, validateResult.value, this._utils);
113835
113443
  }
@@ -113871,8 +113479,8 @@ var require2, __filename2, __dirname4, __create2, __defProp3, __getOwnPropDesc,
113871
113479
  for (const key2 of unknownKeys) {
113872
113480
  const value = postprocessed.override[key2];
113873
113481
  this._applyUnknownHandler(key2, value, options8, (knownResultKey, knownResultValue) => {
113874
- const schema9 = this._utils.schemas[knownResultKey];
113875
- this._applyValidation(knownResultValue, knownResultKey, schema9);
113482
+ const schema8 = this._utils.schemas[knownResultKey];
113483
+ this._applyValidation(knownResultValue, knownResultKey, schema8);
113876
113484
  options8[knownResultKey] = knownResultValue;
113877
113485
  });
113878
113486
  }
@@ -119380,8 +118988,8 @@ var init_prettier = __esm(() => {
119380
118988
  "node_modules/picocolors/picocolors.js"(exports, module) {
119381
118989
  var p4 = process || {};
119382
118990
  var argv = p4.argv || [];
119383
- var env3 = p4.env || {};
119384
- var isColorSupported2 = !(!!env3.NO_COLOR || argv.includes("--no-color")) && (!!env3.FORCE_COLOR || argv.includes("--color") || p4.platform === "win32" || (p4.stdout || {}).isTTY && env3.TERM !== "dumb" || !!env3.CI);
118991
+ var env2 = p4.env || {};
118992
+ var isColorSupported2 = !(!!env2.NO_COLOR || argv.includes("--no-color")) && (!!env2.FORCE_COLOR || argv.includes("--color") || p4.platform === "win32" || (p4.stdout || {}).isTTY && env2.TERM !== "dumb" || !!env2.CI);
119385
118993
  var formatter = (open2, close, replace3 = open2) => (input) => {
119386
118994
  let string4 = "" + input, index = string4.indexOf(close, open2.length);
119387
118995
  return ~index ? open2 + replaceClose(string4, close, replace3, index) + close : open2 + string4 + close;
@@ -121543,7 +121151,7 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
121543
121151
  exports.parseString = parseString2;
121544
121152
  }
121545
121153
  });
121546
- require_package3 = __commonJS2({
121154
+ require_package2 = __commonJS2({
121547
121155
  "node_modules/editorconfig/package.json"(exports, module) {
121548
121156
  module.exports = {
121549
121157
  name: "editorconfig",
@@ -121732,7 +121340,7 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
121732
121340
  var fnmatch_1 = __importDefault(require_fnmatch());
121733
121341
  var ini_1 = require_ini();
121734
121342
  exports.parseString = ini_1.parseString;
121735
- var package_json_1 = __importDefault(require_package3());
121343
+ var package_json_1 = __importDefault(require_package2());
121736
121344
  var knownProps = {
121737
121345
  end_of_line: true,
121738
121346
  indent_style: true,
@@ -127510,11 +127118,11 @@ var require_prettier = __commonJS((exports, module) => {
127510
127118
  var require_formatter = __commonJS((exports) => {
127511
127119
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P9, generator) {
127512
127120
  function adopt(value) {
127513
- return value instanceof P9 ? value : new P9(function(resolve6) {
127514
- resolve6(value);
127121
+ return value instanceof P9 ? value : new P9(function(resolve5) {
127122
+ resolve5(value);
127515
127123
  });
127516
127124
  }
127517
- return new (P9 || (P9 = Promise))(function(resolve6, reject) {
127125
+ return new (P9 || (P9 = Promise))(function(resolve5, reject) {
127518
127126
  function fulfilled(value) {
127519
127127
  try {
127520
127128
  step(generator.next(value));
@@ -127530,7 +127138,7 @@ var require_formatter = __commonJS((exports) => {
127530
127138
  }
127531
127139
  }
127532
127140
  function step(result) {
127533
- result.done ? resolve6(result.value) : adopt(result.value).then(fulfilled, rejected);
127141
+ result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected);
127534
127142
  }
127535
127143
  step((generator = generator.apply(thisArg, _arguments || [])).next());
127536
127144
  });
@@ -127585,23 +127193,23 @@ var require_JSONSchema = __commonJS((exports) => {
127585
127193
  exports.Parent = Symbol("Parent");
127586
127194
  exports.Types = Symbol("Types");
127587
127195
  exports.Intersection = Symbol("Intersection");
127588
- exports.getRootSchema = (0, lodash_1.memoize)((schema9) => {
127589
- const parent = schema9[exports.Parent];
127196
+ exports.getRootSchema = (0, lodash_1.memoize)((schema8) => {
127197
+ const parent = schema8[exports.Parent];
127590
127198
  if (!parent) {
127591
- return schema9;
127199
+ return schema8;
127592
127200
  }
127593
127201
  return (0, exports.getRootSchema)(parent);
127594
127202
  });
127595
- function isBoolean(schema9) {
127596
- return schema9 === true || schema9 === false;
127203
+ function isBoolean(schema8) {
127204
+ return schema8 === true || schema8 === false;
127597
127205
  }
127598
127206
  exports.isBoolean = isBoolean;
127599
- function isPrimitive(schema9) {
127600
- return !(0, lodash_1.isPlainObject)(schema9);
127207
+ function isPrimitive(schema8) {
127208
+ return !(0, lodash_1.isPlainObject)(schema8);
127601
127209
  }
127602
127210
  exports.isPrimitive = isPrimitive;
127603
- function isCompound(schema9) {
127604
- return Array.isArray(schema9.type) || "anyOf" in schema9 || "oneOf" in schema9;
127211
+ function isCompound(schema8) {
127212
+ return Array.isArray(schema8.type) || "anyOf" in schema8 || "oneOf" in schema8;
127605
127213
  }
127606
127214
  exports.isCompound = isCompound;
127607
127215
  });
@@ -127828,9 +127436,9 @@ var require_type2 = __commonJS((exports, module) => {
127828
127436
  var require_schema2 = __commonJS((exports, module) => {
127829
127437
  var YAMLException = require_exception2();
127830
127438
  var Type = require_type2();
127831
- function compileList(schema9, name2) {
127439
+ function compileList(schema8, name2) {
127832
127440
  var result = [];
127833
- schema9[name2].forEach(function(currentType) {
127441
+ schema8[name2].forEach(function(currentType) {
127834
127442
  var newIndex = result.length;
127835
127443
  result.forEach(function(previousType, previousIndex) {
127836
127444
  if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
@@ -129775,7 +129383,7 @@ var require_dumper2 = __commonJS((exports, module) => {
129775
129383
  "OFF"
129776
129384
  ];
129777
129385
  var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
129778
- function compileStyleMap(schema9, map2) {
129386
+ function compileStyleMap(schema8, map2) {
129779
129387
  var result, keys, index, length, tag, style, type;
129780
129388
  if (map2 === null)
129781
129389
  return {};
@@ -129787,7 +129395,7 @@ var require_dumper2 = __commonJS((exports, module) => {
129787
129395
  if (tag.slice(0, 2) === "!!") {
129788
129396
  tag = "tag:yaml.org,2002:" + tag.slice(2);
129789
129397
  }
129790
- type = schema9.compiledTypeMap["fallback"][tag];
129398
+ type = schema8.compiledTypeMap["fallback"][tag];
129791
129399
  if (type && _hasOwnProperty.call(type.styleAliases, style)) {
129792
129400
  style = type.styleAliases[style];
129793
129401
  }
@@ -130446,11 +130054,11 @@ var require_utils7 = __commonJS((exports) => {
130446
130054
  function traverseArray(arr, callback, processed) {
130447
130055
  arr.forEach((s5, k9) => traverse(s5, callback, processed, k9.toString()));
130448
130056
  }
130449
- function traverseIntersection(schema9, callback, processed) {
130450
- if (typeof schema9 !== "object" || !schema9) {
130057
+ function traverseIntersection(schema8, callback, processed) {
130058
+ if (typeof schema8 !== "object" || !schema8) {
130451
130059
  return;
130452
130060
  }
130453
- const r5 = schema9;
130061
+ const r5 = schema8;
130454
130062
  const intersection2 = r5[JSONSchema_1.Intersection];
130455
130063
  if (!intersection2) {
130456
130064
  return;
@@ -130459,60 +130067,60 @@ var require_utils7 = __commonJS((exports) => {
130459
130067
  traverseArray(intersection2.allOf, callback, processed);
130460
130068
  }
130461
130069
  }
130462
- function traverse(schema9, callback, processed = new Set, key2) {
130463
- if (processed.has(schema9)) {
130070
+ function traverse(schema8, callback, processed = new Set, key2) {
130071
+ if (processed.has(schema8)) {
130464
130072
  return;
130465
130073
  }
130466
- processed.add(schema9);
130467
- callback(schema9, key2 !== null && key2 !== undefined ? key2 : null);
130468
- if (schema9.anyOf) {
130469
- traverseArray(schema9.anyOf, callback, processed);
130074
+ processed.add(schema8);
130075
+ callback(schema8, key2 !== null && key2 !== undefined ? key2 : null);
130076
+ if (schema8.anyOf) {
130077
+ traverseArray(schema8.anyOf, callback, processed);
130470
130078
  }
130471
- if (schema9.allOf) {
130472
- traverseArray(schema9.allOf, callback, processed);
130079
+ if (schema8.allOf) {
130080
+ traverseArray(schema8.allOf, callback, processed);
130473
130081
  }
130474
- if (schema9.oneOf) {
130475
- traverseArray(schema9.oneOf, callback, processed);
130082
+ if (schema8.oneOf) {
130083
+ traverseArray(schema8.oneOf, callback, processed);
130476
130084
  }
130477
- if (schema9.properties) {
130478
- traverseObjectKeys(schema9.properties, callback, processed);
130085
+ if (schema8.properties) {
130086
+ traverseObjectKeys(schema8.properties, callback, processed);
130479
130087
  }
130480
- if (schema9.patternProperties) {
130481
- traverseObjectKeys(schema9.patternProperties, callback, processed);
130088
+ if (schema8.patternProperties) {
130089
+ traverseObjectKeys(schema8.patternProperties, callback, processed);
130482
130090
  }
130483
- if (schema9.additionalProperties && typeof schema9.additionalProperties === "object") {
130484
- traverse(schema9.additionalProperties, callback, processed);
130091
+ if (schema8.additionalProperties && typeof schema8.additionalProperties === "object") {
130092
+ traverse(schema8.additionalProperties, callback, processed);
130485
130093
  }
130486
- if (schema9.items) {
130487
- const { items } = schema9;
130094
+ if (schema8.items) {
130095
+ const { items } = schema8;
130488
130096
  if (Array.isArray(items)) {
130489
130097
  traverseArray(items, callback, processed);
130490
130098
  } else {
130491
130099
  traverse(items, callback, processed);
130492
130100
  }
130493
130101
  }
130494
- if (schema9.additionalItems && typeof schema9.additionalItems === "object") {
130495
- traverse(schema9.additionalItems, callback, processed);
130102
+ if (schema8.additionalItems && typeof schema8.additionalItems === "object") {
130103
+ traverse(schema8.additionalItems, callback, processed);
130496
130104
  }
130497
- if (schema9.dependencies) {
130498
- if (Array.isArray(schema9.dependencies)) {
130499
- traverseArray(schema9.dependencies, callback, processed);
130105
+ if (schema8.dependencies) {
130106
+ if (Array.isArray(schema8.dependencies)) {
130107
+ traverseArray(schema8.dependencies, callback, processed);
130500
130108
  } else {
130501
- traverseObjectKeys(schema9.dependencies, callback, processed);
130109
+ traverseObjectKeys(schema8.dependencies, callback, processed);
130502
130110
  }
130503
130111
  }
130504
- if (schema9.definitions) {
130505
- traverseObjectKeys(schema9.definitions, callback, processed);
130112
+ if (schema8.definitions) {
130113
+ traverseObjectKeys(schema8.definitions, callback, processed);
130506
130114
  }
130507
- if (schema9.$defs) {
130508
- traverseObjectKeys(schema9.$defs, callback, processed);
130115
+ if (schema8.$defs) {
130116
+ traverseObjectKeys(schema8.$defs, callback, processed);
130509
130117
  }
130510
- if (schema9.not) {
130511
- traverse(schema9.not, callback, processed);
130118
+ if (schema8.not) {
130119
+ traverse(schema8.not, callback, processed);
130512
130120
  }
130513
- traverseIntersection(schema9, callback, processed);
130514
- Object.keys(schema9).filter((key3) => !BLACKLISTED_KEYS.has(key3)).forEach((key3) => {
130515
- const child = schema9[key3];
130121
+ traverseIntersection(schema8, callback, processed);
130122
+ Object.keys(schema8).filter((key3) => !BLACKLISTED_KEYS.has(key3)).forEach((key3) => {
130123
+ const child = schema8[key3];
130516
130124
  if (child && typeof child === "object") {
130517
130125
  traverseObjectKeys(child, callback, processed);
130518
130126
  }
@@ -130594,14 +130202,14 @@ var require_utils7 = __commonJS((exports) => {
130594
130202
  return (_g2 = color()) === null || _g2 === undefined ? undefined : _g2.whiteBright.bgYellow;
130595
130203
  }
130596
130204
  }
130597
- function escapeBlockComment(schema9) {
130205
+ function escapeBlockComment(schema8) {
130598
130206
  const replacer = "* /";
130599
- if (schema9 === null || typeof schema9 !== "object") {
130207
+ if (schema8 === null || typeof schema8 !== "object") {
130600
130208
  return;
130601
130209
  }
130602
- for (const key2 of Object.keys(schema9)) {
130603
- if (key2 === "description" && typeof schema9[key2] === "string") {
130604
- schema9[key2] = schema9[key2].replace(/\*\//g, replacer);
130210
+ for (const key2 of Object.keys(schema8)) {
130211
+ if (key2 === "description" && typeof schema8[key2] === "string") {
130212
+ schema8[key2] = schema8[key2].replace(/\*\//g, replacer);
130605
130213
  }
130606
130214
  }
130607
130215
  }
@@ -130613,45 +130221,45 @@ var require_utils7 = __commonJS((exports) => {
130613
130221
  return path_1.posix.join(path_1.posix.normalize(outputPath), ...filePathRel);
130614
130222
  }
130615
130223
  exports.pathTransform = pathTransform;
130616
- function maybeStripDefault(schema9) {
130617
- if (!("default" in schema9)) {
130618
- return schema9;
130224
+ function maybeStripDefault(schema8) {
130225
+ if (!("default" in schema8)) {
130226
+ return schema8;
130619
130227
  }
130620
- switch (schema9.type) {
130228
+ switch (schema8.type) {
130621
130229
  case "array":
130622
- if (Array.isArray(schema9.default)) {
130623
- return schema9;
130230
+ if (Array.isArray(schema8.default)) {
130231
+ return schema8;
130624
130232
  }
130625
130233
  break;
130626
130234
  case "boolean":
130627
- if (typeof schema9.default === "boolean") {
130628
- return schema9;
130235
+ if (typeof schema8.default === "boolean") {
130236
+ return schema8;
130629
130237
  }
130630
130238
  break;
130631
130239
  case "integer":
130632
130240
  case "number":
130633
- if (typeof schema9.default === "number") {
130634
- return schema9;
130241
+ if (typeof schema8.default === "number") {
130242
+ return schema8;
130635
130243
  }
130636
130244
  break;
130637
130245
  case "string":
130638
- if (typeof schema9.default === "string") {
130639
- return schema9;
130246
+ if (typeof schema8.default === "string") {
130247
+ return schema8;
130640
130248
  }
130641
130249
  break;
130642
130250
  case "null":
130643
- if (schema9.default === null) {
130644
- return schema9;
130251
+ if (schema8.default === null) {
130252
+ return schema8;
130645
130253
  }
130646
130254
  break;
130647
130255
  case "object":
130648
- if ((0, lodash_1.isPlainObject)(schema9.default)) {
130649
- return schema9;
130256
+ if ((0, lodash_1.isPlainObject)(schema8.default)) {
130257
+ return schema8;
130650
130258
  }
130651
130259
  break;
130652
130260
  }
130653
- delete schema9.default;
130654
- return schema9;
130261
+ delete schema8.default;
130262
+ return schema8;
130655
130263
  }
130656
130264
  exports.maybeStripDefault = maybeStripDefault;
130657
130265
  function appendToDescription(existingDescription, ...values) {
@@ -130665,11 +130273,11 @@ ${values.join(`
130665
130273
  `);
130666
130274
  }
130667
130275
  exports.appendToDescription = appendToDescription;
130668
- function isSchemaLike(schema9) {
130669
- if (!(0, lodash_1.isPlainObject)(schema9)) {
130276
+ function isSchemaLike(schema8) {
130277
+ if (!(0, lodash_1.isPlainObject)(schema8)) {
130670
130278
  return false;
130671
130279
  }
130672
- const parent = schema9[JSONSchema_1.Parent];
130280
+ const parent = schema8[JSONSchema_1.Parent];
130673
130281
  if (parent === null) {
130674
130282
  return true;
130675
130283
  }
@@ -130686,7 +130294,7 @@ ${values.join(`
130686
130294
  "properties",
130687
130295
  "required"
130688
130296
  ];
130689
- if (JSON_SCHEMA_KEYWORDS.some((_10) => parent[_10] === schema9)) {
130297
+ if (JSON_SCHEMA_KEYWORDS.some((_10) => parent[_10] === schema8)) {
130690
130298
  return false;
130691
130299
  }
130692
130300
  return true;
@@ -130984,13 +130592,13 @@ var require_typesOfSchema = __commonJS((exports) => {
130984
130592
  exports.typesOfSchema = undefined;
130985
130593
  var lodash_1 = require_lodash2();
130986
130594
  var JSONSchema_1 = require_JSONSchema();
130987
- function typesOfSchema(schema9) {
130988
- if (schema9.tsType) {
130595
+ function typesOfSchema(schema8) {
130596
+ if (schema8.tsType) {
130989
130597
  return new Set(["CUSTOM_TYPE"]);
130990
130598
  }
130991
130599
  const matchedTypes = new Set;
130992
130600
  for (const [schemaType, f7] of Object.entries(matchers)) {
130993
- if (f7(schema9)) {
130601
+ if (f7(schema8)) {
130994
130602
  matchedTypes.add(schemaType);
130995
130603
  }
130996
130604
  }
@@ -131001,26 +130609,26 @@ var require_typesOfSchema = __commonJS((exports) => {
131001
130609
  }
131002
130610
  exports.typesOfSchema = typesOfSchema;
131003
130611
  var matchers = {
131004
- ALL_OF(schema9) {
131005
- return "allOf" in schema9;
130612
+ ALL_OF(schema8) {
130613
+ return "allOf" in schema8;
131006
130614
  },
131007
- ANY(schema9) {
131008
- if (Object.keys(schema9).length === 0) {
130615
+ ANY(schema8) {
130616
+ if (Object.keys(schema8).length === 0) {
131009
130617
  return true;
131010
130618
  }
131011
- return schema9.type === "any";
130619
+ return schema8.type === "any";
131012
130620
  },
131013
- ANY_OF(schema9) {
131014
- return "anyOf" in schema9;
130621
+ ANY_OF(schema8) {
130622
+ return "anyOf" in schema8;
131015
130623
  },
131016
- BOOLEAN(schema9) {
131017
- if ("enum" in schema9) {
130624
+ BOOLEAN(schema8) {
130625
+ if ("enum" in schema8) {
131018
130626
  return false;
131019
130627
  }
131020
- if (schema9.type === "boolean") {
130628
+ if (schema8.type === "boolean") {
131021
130629
  return true;
131022
130630
  }
131023
- if (!(0, JSONSchema_1.isCompound)(schema9) && typeof schema9.default === "boolean") {
130631
+ if (!(0, JSONSchema_1.isCompound)(schema8) && typeof schema8.default === "boolean") {
131024
130632
  return true;
131025
130633
  }
131026
130634
  return false;
@@ -131028,74 +130636,74 @@ var require_typesOfSchema = __commonJS((exports) => {
131028
130636
  CUSTOM_TYPE() {
131029
130637
  return false;
131030
130638
  },
131031
- NAMED_ENUM(schema9) {
131032
- return "enum" in schema9 && "tsEnumNames" in schema9;
130639
+ NAMED_ENUM(schema8) {
130640
+ return "enum" in schema8 && "tsEnumNames" in schema8;
131033
130641
  },
131034
- NAMED_SCHEMA(schema9) {
131035
- return "$id" in schema9 && (("patternProperties" in schema9) || ("properties" in schema9));
130642
+ NAMED_SCHEMA(schema8) {
130643
+ return "$id" in schema8 && (("patternProperties" in schema8) || ("properties" in schema8));
131036
130644
  },
131037
- NEVER(schema9) {
131038
- return schema9 === false;
130645
+ NEVER(schema8) {
130646
+ return schema8 === false;
131039
130647
  },
131040
- NULL(schema9) {
131041
- return schema9.type === "null";
130648
+ NULL(schema8) {
130649
+ return schema8.type === "null";
131042
130650
  },
131043
- NUMBER(schema9) {
131044
- if ("enum" in schema9) {
130651
+ NUMBER(schema8) {
130652
+ if ("enum" in schema8) {
131045
130653
  return false;
131046
130654
  }
131047
- if (schema9.type === "integer" || schema9.type === "number") {
130655
+ if (schema8.type === "integer" || schema8.type === "number") {
131048
130656
  return true;
131049
130657
  }
131050
- if (!(0, JSONSchema_1.isCompound)(schema9) && typeof schema9.default === "number") {
130658
+ if (!(0, JSONSchema_1.isCompound)(schema8) && typeof schema8.default === "number") {
131051
130659
  return true;
131052
130660
  }
131053
130661
  return false;
131054
130662
  },
131055
- OBJECT(schema9) {
131056
- return schema9.type === "object" && !(0, lodash_1.isPlainObject)(schema9.additionalProperties) && !schema9.allOf && !schema9.anyOf && !schema9.oneOf && !schema9.patternProperties && !schema9.properties && !schema9.required;
130663
+ OBJECT(schema8) {
130664
+ return schema8.type === "object" && !(0, lodash_1.isPlainObject)(schema8.additionalProperties) && !schema8.allOf && !schema8.anyOf && !schema8.oneOf && !schema8.patternProperties && !schema8.properties && !schema8.required;
131057
130665
  },
131058
- ONE_OF(schema9) {
131059
- return "oneOf" in schema9;
130666
+ ONE_OF(schema8) {
130667
+ return "oneOf" in schema8;
131060
130668
  },
131061
- REFERENCE(schema9) {
131062
- return "$ref" in schema9;
130669
+ REFERENCE(schema8) {
130670
+ return "$ref" in schema8;
131063
130671
  },
131064
- STRING(schema9) {
131065
- if ("enum" in schema9) {
130672
+ STRING(schema8) {
130673
+ if ("enum" in schema8) {
131066
130674
  return false;
131067
130675
  }
131068
- if (schema9.type === "string") {
130676
+ if (schema8.type === "string") {
131069
130677
  return true;
131070
130678
  }
131071
- if (!(0, JSONSchema_1.isCompound)(schema9) && typeof schema9.default === "string") {
130679
+ if (!(0, JSONSchema_1.isCompound)(schema8) && typeof schema8.default === "string") {
131072
130680
  return true;
131073
130681
  }
131074
130682
  return false;
131075
130683
  },
131076
- TYPED_ARRAY(schema9) {
131077
- if (schema9.type && schema9.type !== "array") {
130684
+ TYPED_ARRAY(schema8) {
130685
+ if (schema8.type && schema8.type !== "array") {
131078
130686
  return false;
131079
130687
  }
131080
- return "items" in schema9;
130688
+ return "items" in schema8;
131081
130689
  },
131082
- UNION(schema9) {
131083
- return Array.isArray(schema9.type);
130690
+ UNION(schema8) {
130691
+ return Array.isArray(schema8.type);
131084
130692
  },
131085
- UNNAMED_ENUM(schema9) {
131086
- if ("tsEnumNames" in schema9) {
130693
+ UNNAMED_ENUM(schema8) {
130694
+ if ("tsEnumNames" in schema8) {
131087
130695
  return false;
131088
130696
  }
131089
- if (schema9.type && schema9.type !== "boolean" && schema9.type !== "integer" && schema9.type !== "number" && schema9.type !== "string") {
130697
+ if (schema8.type && schema8.type !== "boolean" && schema8.type !== "integer" && schema8.type !== "number" && schema8.type !== "string") {
131090
130698
  return false;
131091
130699
  }
131092
- return "enum" in schema9;
130700
+ return "enum" in schema8;
131093
130701
  },
131094
130702
  UNNAMED_SCHEMA() {
131095
130703
  return false;
131096
130704
  },
131097
- UNTYPED_ARRAY(schema9) {
131098
- return schema9.type === "array" && !("items" in schema9);
130705
+ UNTYPED_ARRAY(schema8) {
130706
+ return schema8.type === "array" && !("items" in schema8);
131099
130707
  }
131100
130708
  };
131101
130709
  });
@@ -131106,10 +130714,10 @@ var require_applySchemaTyping = __commonJS((exports) => {
131106
130714
  exports.applySchemaTyping = undefined;
131107
130715
  var JSONSchema_1 = require_JSONSchema();
131108
130716
  var typesOfSchema_1 = require_typesOfSchema();
131109
- function applySchemaTyping(schema9) {
130717
+ function applySchemaTyping(schema8) {
131110
130718
  var _a7;
131111
- const types = (0, typesOfSchema_1.typesOfSchema)(schema9);
131112
- Object.defineProperty(schema9, JSONSchema_1.Types, {
130719
+ const types = (0, typesOfSchema_1.typesOfSchema)(schema8);
130720
+ Object.defineProperty(schema8, JSONSchema_1.Types, {
131113
130721
  enumerable: false,
131114
130722
  value: types,
131115
130723
  writable: false
@@ -131118,23 +130726,23 @@ var require_applySchemaTyping = __commonJS((exports) => {
131118
130726
  return;
131119
130727
  }
131120
130728
  const intersection2 = {
131121
- [JSONSchema_1.Parent]: schema9,
130729
+ [JSONSchema_1.Parent]: schema8,
131122
130730
  [JSONSchema_1.Types]: new Set(["ALL_OF"]),
131123
- $id: schema9.$id,
131124
- description: schema9.description,
131125
- name: schema9.name,
131126
- title: schema9.title,
131127
- allOf: (_a7 = schema9.allOf) !== null && _a7 !== undefined ? _a7 : [],
130731
+ $id: schema8.$id,
130732
+ description: schema8.description,
130733
+ name: schema8.name,
130734
+ title: schema8.title,
130735
+ allOf: (_a7 = schema8.allOf) !== null && _a7 !== undefined ? _a7 : [],
131128
130736
  required: [],
131129
130737
  additionalProperties: false
131130
130738
  };
131131
130739
  types.delete("ALL_OF");
131132
- delete schema9.allOf;
131133
- delete schema9.$id;
131134
- delete schema9.description;
131135
- delete schema9.name;
131136
- delete schema9.title;
131137
- Object.defineProperty(schema9, JSONSchema_1.Intersection, {
130740
+ delete schema8.allOf;
130741
+ delete schema8.$id;
130742
+ delete schema8.description;
130743
+ delete schema8.name;
130744
+ delete schema8.title;
130745
+ Object.defineProperty(schema8, JSONSchema_1.Intersection, {
131138
130746
  enumerable: false,
131139
130747
  value: intersection2,
131140
130748
  writable: false
@@ -131152,186 +130760,186 @@ var require_normalizer = __commonJS((exports) => {
131152
130760
  var applySchemaTyping_1 = require_applySchemaTyping();
131153
130761
  var util_1 = __require("util");
131154
130762
  var rules = new Map;
131155
- function hasType(schema9, type) {
131156
- return schema9.type === type || Array.isArray(schema9.type) && schema9.type.includes(type);
130763
+ function hasType(schema8, type) {
130764
+ return schema8.type === type || Array.isArray(schema8.type) && schema8.type.includes(type);
131157
130765
  }
131158
- function isObjectType(schema9) {
131159
- return schema9.properties !== undefined || hasType(schema9, "object") || hasType(schema9, "any");
130766
+ function isObjectType(schema8) {
130767
+ return schema8.properties !== undefined || hasType(schema8, "object") || hasType(schema8, "any");
131160
130768
  }
131161
- function isArrayType(schema9) {
131162
- return schema9.items !== undefined || hasType(schema9, "array") || hasType(schema9, "any");
130769
+ function isArrayType(schema8) {
130770
+ return schema8.items !== undefined || hasType(schema8, "array") || hasType(schema8, "any");
131163
130771
  }
131164
- function isEnumTypeWithoutTsEnumNames(schema9) {
131165
- return schema9.type === "string" && schema9.enum !== undefined && schema9.tsEnumNames === undefined;
130772
+ function isEnumTypeWithoutTsEnumNames(schema8) {
130773
+ return schema8.type === "string" && schema8.enum !== undefined && schema8.tsEnumNames === undefined;
131166
130774
  }
131167
- rules.set('Remove `type=["null"]` if `enum=[null]`', (schema9) => {
131168
- if (Array.isArray(schema9.enum) && schema9.enum.some((e8) => e8 === null) && Array.isArray(schema9.type) && schema9.type.includes("null")) {
131169
- schema9.type = schema9.type.filter((type) => type !== "null");
130775
+ rules.set('Remove `type=["null"]` if `enum=[null]`', (schema8) => {
130776
+ if (Array.isArray(schema8.enum) && schema8.enum.some((e8) => e8 === null) && Array.isArray(schema8.type) && schema8.type.includes("null")) {
130777
+ schema8.type = schema8.type.filter((type) => type !== "null");
131170
130778
  }
131171
130779
  });
131172
- rules.set("Destructure unary types", (schema9) => {
131173
- if (schema9.type && Array.isArray(schema9.type) && schema9.type.length === 1) {
131174
- schema9.type = schema9.type[0];
130780
+ rules.set("Destructure unary types", (schema8) => {
130781
+ if (schema8.type && Array.isArray(schema8.type) && schema8.type.length === 1) {
130782
+ schema8.type = schema8.type[0];
131175
130783
  }
131176
130784
  });
131177
- rules.set("Add empty `required` property if none is defined", (schema9) => {
131178
- if (isObjectType(schema9) && !("required" in schema9)) {
131179
- schema9.required = [];
130785
+ rules.set("Add empty `required` property if none is defined", (schema8) => {
130786
+ if (isObjectType(schema8) && !("required" in schema8)) {
130787
+ schema8.required = [];
131180
130788
  }
131181
130789
  });
131182
- rules.set("Transform `required`=false to `required`=[]", (schema9) => {
131183
- if (schema9.required === false) {
131184
- schema9.required = [];
130790
+ rules.set("Transform `required`=false to `required`=[]", (schema8) => {
130791
+ if (schema8.required === false) {
130792
+ schema8.required = [];
131185
130793
  }
131186
130794
  });
131187
- rules.set("Default additionalProperties", (schema9, _10, options8) => {
131188
- if (isObjectType(schema9) && !("additionalProperties" in schema9) && schema9.patternProperties === undefined) {
131189
- schema9.additionalProperties = options8.additionalProperties;
130795
+ rules.set("Default additionalProperties", (schema8, _10, options8) => {
130796
+ if (isObjectType(schema8) && !("additionalProperties" in schema8) && schema8.patternProperties === undefined) {
130797
+ schema8.additionalProperties = options8.additionalProperties;
131190
130798
  }
131191
130799
  });
131192
- rules.set("Transform id to $id", (schema9, fileName) => {
131193
- if (!(0, utils_1.isSchemaLike)(schema9)) {
130800
+ rules.set("Transform id to $id", (schema8, fileName) => {
130801
+ if (!(0, utils_1.isSchemaLike)(schema8)) {
131194
130802
  return;
131195
130803
  }
131196
- if (schema9.id && schema9.$id && schema9.id !== schema9.$id) {
131197
- throw ReferenceError(`Schema must define either id or $id, not both. Given id=${schema9.id}, $id=${schema9.$id} in ${fileName}`);
130804
+ if (schema8.id && schema8.$id && schema8.id !== schema8.$id) {
130805
+ throw ReferenceError(`Schema must define either id or $id, not both. Given id=${schema8.id}, $id=${schema8.$id} in ${fileName}`);
131198
130806
  }
131199
- if (schema9.id) {
131200
- schema9.$id = schema9.id;
131201
- delete schema9.id;
130807
+ if (schema8.id) {
130808
+ schema8.$id = schema8.id;
130809
+ delete schema8.id;
131202
130810
  }
131203
130811
  });
131204
- rules.set("Add an $id to anything that needs it", (schema9, fileName, _options, _key, dereferencedPaths) => {
131205
- if (!(0, utils_1.isSchemaLike)(schema9)) {
130812
+ rules.set("Add an $id to anything that needs it", (schema8, fileName, _options, _key, dereferencedPaths) => {
130813
+ if (!(0, utils_1.isSchemaLike)(schema8)) {
131206
130814
  return;
131207
130815
  }
131208
- if (!schema9.$id && !schema9[JSONSchema_1.Parent]) {
131209
- schema9.$id = (0, utils_1.toSafeString)((0, utils_1.justName)(fileName));
130816
+ if (!schema8.$id && !schema8[JSONSchema_1.Parent]) {
130817
+ schema8.$id = (0, utils_1.toSafeString)((0, utils_1.justName)(fileName));
131210
130818
  return;
131211
130819
  }
131212
- if (!isArrayType(schema9) && !isObjectType(schema9)) {
130820
+ if (!isArrayType(schema8) && !isObjectType(schema8)) {
131213
130821
  return;
131214
130822
  }
131215
- const dereferencedName = dereferencedPaths.get(schema9);
131216
- if (!schema9.$id && !schema9.title && dereferencedName) {
131217
- schema9.$id = (0, utils_1.toSafeString)((0, utils_1.justName)(dereferencedName));
130823
+ const dereferencedName = dereferencedPaths.get(schema8);
130824
+ if (!schema8.$id && !schema8.title && dereferencedName) {
130825
+ schema8.$id = (0, utils_1.toSafeString)((0, utils_1.justName)(dereferencedName));
131218
130826
  }
131219
130827
  if (dereferencedName) {
131220
- dereferencedPaths.delete(schema9);
130828
+ dereferencedPaths.delete(schema8);
131221
130829
  }
131222
130830
  });
131223
- rules.set("Escape closing JSDoc comment", (schema9) => {
131224
- (0, utils_1.escapeBlockComment)(schema9);
130831
+ rules.set("Escape closing JSDoc comment", (schema8) => {
130832
+ (0, utils_1.escapeBlockComment)(schema8);
131225
130833
  });
131226
- rules.set("Add JSDoc comments for minItems and maxItems", (schema9) => {
131227
- if (!isArrayType(schema9)) {
130834
+ rules.set("Add JSDoc comments for minItems and maxItems", (schema8) => {
130835
+ if (!isArrayType(schema8)) {
131228
130836
  return;
131229
130837
  }
131230
130838
  const commentsToAppend = [
131231
- "minItems" in schema9 ? `@minItems ${schema9.minItems}` : "",
131232
- "maxItems" in schema9 ? `@maxItems ${schema9.maxItems}` : ""
130839
+ "minItems" in schema8 ? `@minItems ${schema8.minItems}` : "",
130840
+ "maxItems" in schema8 ? `@maxItems ${schema8.maxItems}` : ""
131233
130841
  ].filter(Boolean);
131234
130842
  if (commentsToAppend.length) {
131235
- schema9.description = (0, utils_1.appendToDescription)(schema9.description, ...commentsToAppend);
130843
+ schema8.description = (0, utils_1.appendToDescription)(schema8.description, ...commentsToAppend);
131236
130844
  }
131237
130845
  });
131238
- rules.set("Optionally remove maxItems and minItems", (schema9, _fileName, options8) => {
131239
- if (!isArrayType(schema9)) {
130846
+ rules.set("Optionally remove maxItems and minItems", (schema8, _fileName, options8) => {
130847
+ if (!isArrayType(schema8)) {
131240
130848
  return;
131241
130849
  }
131242
- if ("minItems" in schema9 && options8.ignoreMinAndMaxItems) {
131243
- delete schema9.minItems;
130850
+ if ("minItems" in schema8 && options8.ignoreMinAndMaxItems) {
130851
+ delete schema8.minItems;
131244
130852
  }
131245
- if ("maxItems" in schema9 && (options8.ignoreMinAndMaxItems || options8.maxItems === -1)) {
131246
- delete schema9.maxItems;
130853
+ if ("maxItems" in schema8 && (options8.ignoreMinAndMaxItems || options8.maxItems === -1)) {
130854
+ delete schema8.maxItems;
131247
130855
  }
131248
130856
  });
131249
- rules.set("Normalize schema.minItems", (schema9, _fileName, options8) => {
130857
+ rules.set("Normalize schema.minItems", (schema8, _fileName, options8) => {
131250
130858
  if (options8.ignoreMinAndMaxItems) {
131251
130859
  return;
131252
130860
  }
131253
- if (!isArrayType(schema9)) {
130861
+ if (!isArrayType(schema8)) {
131254
130862
  return;
131255
130863
  }
131256
- const { minItems } = schema9;
131257
- schema9.minItems = typeof minItems === "number" ? minItems : 0;
130864
+ const { minItems } = schema8;
130865
+ schema8.minItems = typeof minItems === "number" ? minItems : 0;
131258
130866
  });
131259
- rules.set("Remove maxItems if it is big enough to likely cause OOMs", (schema9, _fileName, options8) => {
130867
+ rules.set("Remove maxItems if it is big enough to likely cause OOMs", (schema8, _fileName, options8) => {
131260
130868
  if (options8.ignoreMinAndMaxItems || options8.maxItems === -1) {
131261
130869
  return;
131262
130870
  }
131263
- if (!isArrayType(schema9)) {
130871
+ if (!isArrayType(schema8)) {
131264
130872
  return;
131265
130873
  }
131266
- const { maxItems, minItems } = schema9;
130874
+ const { maxItems, minItems } = schema8;
131267
130875
  if (maxItems !== undefined && maxItems - minItems > options8.maxItems) {
131268
- delete schema9.maxItems;
130876
+ delete schema8.maxItems;
131269
130877
  }
131270
130878
  });
131271
- rules.set("Normalize schema.items", (schema9, _fileName, options8) => {
130879
+ rules.set("Normalize schema.items", (schema8, _fileName, options8) => {
131272
130880
  if (options8.ignoreMinAndMaxItems) {
131273
130881
  return;
131274
130882
  }
131275
- const { maxItems, minItems } = schema9;
130883
+ const { maxItems, minItems } = schema8;
131276
130884
  const hasMaxItems = typeof maxItems === "number" && maxItems >= 0;
131277
130885
  const hasMinItems = typeof minItems === "number" && minItems > 0;
131278
- if (schema9.items && !Array.isArray(schema9.items) && (hasMaxItems || hasMinItems)) {
131279
- const items = schema9.items;
130886
+ if (schema8.items && !Array.isArray(schema8.items) && (hasMaxItems || hasMinItems)) {
130887
+ const items = schema8.items;
131280
130888
  const newItems = Array(maxItems || minItems || 0).fill(items);
131281
130889
  if (!hasMaxItems) {
131282
- schema9.additionalItems = items;
130890
+ schema8.additionalItems = items;
131283
130891
  }
131284
- schema9.items = newItems;
130892
+ schema8.items = newItems;
131285
130893
  }
131286
- if (Array.isArray(schema9.items) && hasMaxItems && maxItems < schema9.items.length) {
131287
- schema9.items = schema9.items.slice(0, maxItems);
130894
+ if (Array.isArray(schema8.items) && hasMaxItems && maxItems < schema8.items.length) {
130895
+ schema8.items = schema8.items.slice(0, maxItems);
131288
130896
  }
131289
- return schema9;
130897
+ return schema8;
131290
130898
  });
131291
- rules.set("Remove extends, if it is empty", (schema9) => {
131292
- if (!schema9.hasOwnProperty("extends")) {
130899
+ rules.set("Remove extends, if it is empty", (schema8) => {
130900
+ if (!schema8.hasOwnProperty("extends")) {
131293
130901
  return;
131294
130902
  }
131295
- if (schema9.extends == null || Array.isArray(schema9.extends) && schema9.extends.length === 0) {
131296
- delete schema9.extends;
130903
+ if (schema8.extends == null || Array.isArray(schema8.extends) && schema8.extends.length === 0) {
130904
+ delete schema8.extends;
131297
130905
  }
131298
130906
  });
131299
- rules.set("Make extends always an array, if it is defined", (schema9) => {
131300
- if (schema9.extends == null) {
130907
+ rules.set("Make extends always an array, if it is defined", (schema8) => {
130908
+ if (schema8.extends == null) {
131301
130909
  return;
131302
130910
  }
131303
- if (!Array.isArray(schema9.extends)) {
131304
- schema9.extends = [schema9.extends];
130911
+ if (!Array.isArray(schema8.extends)) {
130912
+ schema8.extends = [schema8.extends];
131305
130913
  }
131306
130914
  });
131307
- rules.set("Transform definitions to $defs", (schema9, fileName) => {
131308
- if (schema9.definitions && schema9.$defs && !(0, util_1.isDeepStrictEqual)(schema9.definitions, schema9.$defs)) {
131309
- throw ReferenceError(`Schema must define either definitions or $defs, not both. Given id=${schema9.id} in ${fileName}`);
130915
+ rules.set("Transform definitions to $defs", (schema8, fileName) => {
130916
+ if (schema8.definitions && schema8.$defs && !(0, util_1.isDeepStrictEqual)(schema8.definitions, schema8.$defs)) {
130917
+ throw ReferenceError(`Schema must define either definitions or $defs, not both. Given id=${schema8.id} in ${fileName}`);
131310
130918
  }
131311
- if (schema9.definitions) {
131312
- schema9.$defs = schema9.definitions;
131313
- delete schema9.definitions;
130919
+ if (schema8.definitions) {
130920
+ schema8.$defs = schema8.definitions;
130921
+ delete schema8.definitions;
131314
130922
  }
131315
130923
  });
131316
- rules.set("Transform const to singleton enum", (schema9) => {
131317
- if (schema9.const !== undefined) {
131318
- schema9.enum = [schema9.const];
131319
- delete schema9.const;
130924
+ rules.set("Transform const to singleton enum", (schema8) => {
130925
+ if (schema8.const !== undefined) {
130926
+ schema8.enum = [schema8.const];
130927
+ delete schema8.const;
131320
130928
  }
131321
130929
  });
131322
- rules.set("Add tsEnumNames to enum types", (schema9, _10, options8) => {
130930
+ rules.set("Add tsEnumNames to enum types", (schema8, _10, options8) => {
131323
130931
  var _a7;
131324
- if (isEnumTypeWithoutTsEnumNames(schema9) && options8.inferStringEnumKeysFromValues) {
131325
- schema9.tsEnumNames = (_a7 = schema9.enum) === null || _a7 === undefined ? undefined : _a7.map(String);
130932
+ if (isEnumTypeWithoutTsEnumNames(schema8) && options8.inferStringEnumKeysFromValues) {
130933
+ schema8.tsEnumNames = (_a7 = schema8.enum) === null || _a7 === undefined ? undefined : _a7.map(String);
131326
130934
  }
131327
130935
  });
131328
- rules.set("Pre-calculate schema types and intersections", (schema9) => {
131329
- if (schema9 !== null && typeof schema9 === "object") {
131330
- (0, applySchemaTyping_1.applySchemaTyping)(schema9);
130936
+ rules.set("Pre-calculate schema types and intersections", (schema8) => {
130937
+ if (schema8 !== null && typeof schema8 === "object") {
130938
+ (0, applySchemaTyping_1.applySchemaTyping)(schema8);
131331
130939
  }
131332
130940
  });
131333
130941
  function normalize(rootSchema, dereferencedPaths, filename, options8) {
131334
- rules.forEach((rule) => (0, utils_1.traverse)(rootSchema, (schema9, key2) => rule(schema9, filename, options8, key2, dereferencedPaths)));
130942
+ rules.forEach((rule) => (0, utils_1.traverse)(rootSchema, (schema8, key2) => rule(schema8, filename, options8, key2, dereferencedPaths)));
131335
130943
  return rootSchema;
131336
130944
  }
131337
130945
  exports.normalize = normalize;
@@ -131413,37 +131021,37 @@ var require_parser = __commonJS((exports) => {
131413
131021
  var AST_1 = require_AST();
131414
131022
  var JSONSchema_1 = require_JSONSchema();
131415
131023
  var utils_1 = require_utils7();
131416
- function parse11(schema9, options8, keyName, processed = new Map, usedNames = new Set) {
131417
- if ((0, JSONSchema_1.isPrimitive)(schema9)) {
131418
- if ((0, JSONSchema_1.isBoolean)(schema9)) {
131419
- return parseBooleanSchema(schema9, keyName, options8);
131024
+ function parse10(schema8, options8, keyName, processed = new Map, usedNames = new Set) {
131025
+ if ((0, JSONSchema_1.isPrimitive)(schema8)) {
131026
+ if ((0, JSONSchema_1.isBoolean)(schema8)) {
131027
+ return parseBooleanSchema(schema8, keyName, options8);
131420
131028
  }
131421
- return parseLiteral(schema9, keyName);
131029
+ return parseLiteral(schema8, keyName);
131422
131030
  }
131423
- const intersection2 = schema9[JSONSchema_1.Intersection];
131424
- const types = schema9[JSONSchema_1.Types];
131031
+ const intersection2 = schema8[JSONSchema_1.Intersection];
131032
+ const types = schema8[JSONSchema_1.Types];
131425
131033
  if (intersection2) {
131426
131034
  const ast = parseAsTypeWithCache(intersection2, "ALL_OF", options8, keyName, processed, usedNames);
131427
131035
  types.forEach((type) => {
131428
- ast.params.push(parseAsTypeWithCache(schema9, type, options8, keyName, processed, usedNames));
131036
+ ast.params.push(parseAsTypeWithCache(schema8, type, options8, keyName, processed, usedNames));
131429
131037
  });
131430
- (0, utils_1.log)("blue", "parser", "Types:", [...types], "Input:", schema9, "Output:", ast);
131038
+ (0, utils_1.log)("blue", "parser", "Types:", [...types], "Input:", schema8, "Output:", ast);
131431
131039
  return ast;
131432
131040
  }
131433
131041
  if (types.size === 1) {
131434
131042
  const type = [...types][0];
131435
- const ast = parseAsTypeWithCache(schema9, type, options8, keyName, processed, usedNames);
131436
- (0, utils_1.log)("blue", "parser", "Type:", type, "Input:", schema9, "Output:", ast);
131043
+ const ast = parseAsTypeWithCache(schema8, type, options8, keyName, processed, usedNames);
131044
+ (0, utils_1.log)("blue", "parser", "Type:", type, "Input:", schema8, "Output:", ast);
131437
131045
  return ast;
131438
131046
  }
131439
131047
  throw new ReferenceError("Expected intersection schema. Please file an issue on GitHub.");
131440
131048
  }
131441
- exports.parse = parse11;
131442
- function parseAsTypeWithCache(schema9, type, options8, keyName, processed = new Map, usedNames = new Set) {
131443
- let cachedTypeMap = processed.get(schema9);
131049
+ exports.parse = parse10;
131050
+ function parseAsTypeWithCache(schema8, type, options8, keyName, processed = new Map, usedNames = new Set) {
131051
+ let cachedTypeMap = processed.get(schema8);
131444
131052
  if (!cachedTypeMap) {
131445
131053
  cachedTypeMap = new Map;
131446
- processed.set(schema9, cachedTypeMap);
131054
+ processed.set(schema8, cachedTypeMap);
131447
131055
  }
131448
131056
  const cachedAST = cachedTypeMap.get(type);
131449
131057
  if (cachedAST) {
@@ -131451,10 +131059,10 @@ var require_parser = __commonJS((exports) => {
131451
131059
  }
131452
131060
  const ast = {};
131453
131061
  cachedTypeMap.set(type, ast);
131454
- return Object.assign(ast, parseNonLiteral(schema9, type, options8, keyName, processed, usedNames));
131062
+ return Object.assign(ast, parseNonLiteral(schema8, type, options8, keyName, processed, usedNames));
131455
131063
  }
131456
- function parseBooleanSchema(schema9, keyName, options8) {
131457
- if (schema9) {
131064
+ function parseBooleanSchema(schema8, keyName, options8) {
131065
+ if (schema8) {
131458
131066
  return {
131459
131067
  keyName,
131460
131068
  type: options8.unknownAny ? "UNKNOWN" : "ANY"
@@ -131465,240 +131073,240 @@ var require_parser = __commonJS((exports) => {
131465
131073
  type: "NEVER"
131466
131074
  };
131467
131075
  }
131468
- function parseLiteral(schema9, keyName) {
131076
+ function parseLiteral(schema8, keyName) {
131469
131077
  return {
131470
131078
  keyName,
131471
- params: schema9,
131079
+ params: schema8,
131472
131080
  type: "LITERAL"
131473
131081
  };
131474
131082
  }
131475
- function parseNonLiteral(schema9, type, options8, keyName, processed, usedNames) {
131476
- const definitions = getDefinitionsMemoized((0, JSONSchema_1.getRootSchema)(schema9));
131477
- const keyNameFromDefinition = (0, lodash_1.findKey)(definitions, (_10) => _10 === schema9);
131083
+ function parseNonLiteral(schema8, type, options8, keyName, processed, usedNames) {
131084
+ const definitions = getDefinitionsMemoized((0, JSONSchema_1.getRootSchema)(schema8));
131085
+ const keyNameFromDefinition = (0, lodash_1.findKey)(definitions, (_10) => _10 === schema8);
131478
131086
  switch (type) {
131479
131087
  case "ALL_OF":
131480
131088
  return {
131481
- comment: schema9.description,
131482
- deprecated: schema9.deprecated,
131089
+ comment: schema8.description,
131090
+ deprecated: schema8.deprecated,
131483
131091
  keyName,
131484
- standaloneName: standaloneName(schema9, keyNameFromDefinition, usedNames, options8),
131485
- params: schema9.allOf.map((_10) => parse11(_10, options8, undefined, processed, usedNames)),
131092
+ standaloneName: standaloneName(schema8, keyNameFromDefinition, usedNames, options8),
131093
+ params: schema8.allOf.map((_10) => parse10(_10, options8, undefined, processed, usedNames)),
131486
131094
  type: "INTERSECTION"
131487
131095
  };
131488
131096
  case "ANY":
131489
- return Object.assign(Object.assign({}, options8.unknownAny ? AST_1.T_UNKNOWN : AST_1.T_ANY), { comment: schema9.description, deprecated: schema9.deprecated, keyName, standaloneName: standaloneName(schema9, keyNameFromDefinition, usedNames, options8) });
131097
+ return Object.assign(Object.assign({}, options8.unknownAny ? AST_1.T_UNKNOWN : AST_1.T_ANY), { comment: schema8.description, deprecated: schema8.deprecated, keyName, standaloneName: standaloneName(schema8, keyNameFromDefinition, usedNames, options8) });
131490
131098
  case "ANY_OF":
131491
131099
  return {
131492
- comment: schema9.description,
131493
- deprecated: schema9.deprecated,
131100
+ comment: schema8.description,
131101
+ deprecated: schema8.deprecated,
131494
131102
  keyName,
131495
- standaloneName: standaloneName(schema9, keyNameFromDefinition, usedNames, options8),
131496
- params: schema9.anyOf.map((_10) => parse11(_10, options8, undefined, processed, usedNames)),
131103
+ standaloneName: standaloneName(schema8, keyNameFromDefinition, usedNames, options8),
131104
+ params: schema8.anyOf.map((_10) => parse10(_10, options8, undefined, processed, usedNames)),
131497
131105
  type: "UNION"
131498
131106
  };
131499
131107
  case "BOOLEAN":
131500
131108
  return {
131501
- comment: schema9.description,
131502
- deprecated: schema9.deprecated,
131109
+ comment: schema8.description,
131110
+ deprecated: schema8.deprecated,
131503
131111
  keyName,
131504
- standaloneName: standaloneName(schema9, keyNameFromDefinition, usedNames, options8),
131112
+ standaloneName: standaloneName(schema8, keyNameFromDefinition, usedNames, options8),
131505
131113
  type: "BOOLEAN"
131506
131114
  };
131507
131115
  case "CUSTOM_TYPE":
131508
131116
  return {
131509
- comment: schema9.description,
131510
- deprecated: schema9.deprecated,
131117
+ comment: schema8.description,
131118
+ deprecated: schema8.deprecated,
131511
131119
  keyName,
131512
- params: schema9.tsType,
131513
- standaloneName: standaloneName(schema9, keyNameFromDefinition, usedNames, options8),
131120
+ params: schema8.tsType,
131121
+ standaloneName: standaloneName(schema8, keyNameFromDefinition, usedNames, options8),
131514
131122
  type: "CUSTOM_TYPE"
131515
131123
  };
131516
131124
  case "NAMED_ENUM":
131517
131125
  return {
131518
- comment: schema9.description,
131519
- deprecated: schema9.deprecated,
131126
+ comment: schema8.description,
131127
+ deprecated: schema8.deprecated,
131520
131128
  keyName,
131521
- standaloneName: standaloneName(schema9, keyNameFromDefinition !== null && keyNameFromDefinition !== undefined ? keyNameFromDefinition : keyName, usedNames, options8),
131522
- params: schema9.enum.map((_10, n5) => ({
131129
+ standaloneName: standaloneName(schema8, keyNameFromDefinition !== null && keyNameFromDefinition !== undefined ? keyNameFromDefinition : keyName, usedNames, options8),
131130
+ params: schema8.enum.map((_10, n5) => ({
131523
131131
  ast: parseLiteral(_10, undefined),
131524
- keyName: schema9.tsEnumNames[n5]
131132
+ keyName: schema8.tsEnumNames[n5]
131525
131133
  })),
131526
131134
  type: "ENUM"
131527
131135
  };
131528
131136
  case "NAMED_SCHEMA":
131529
- return newInterface(schema9, options8, processed, usedNames, keyName);
131137
+ return newInterface(schema8, options8, processed, usedNames, keyName);
131530
131138
  case "NEVER":
131531
131139
  return {
131532
- comment: schema9.description,
131533
- deprecated: schema9.deprecated,
131140
+ comment: schema8.description,
131141
+ deprecated: schema8.deprecated,
131534
131142
  keyName,
131535
- standaloneName: standaloneName(schema9, keyNameFromDefinition, usedNames, options8),
131143
+ standaloneName: standaloneName(schema8, keyNameFromDefinition, usedNames, options8),
131536
131144
  type: "NEVER"
131537
131145
  };
131538
131146
  case "NULL":
131539
131147
  return {
131540
- comment: schema9.description,
131541
- deprecated: schema9.deprecated,
131148
+ comment: schema8.description,
131149
+ deprecated: schema8.deprecated,
131542
131150
  keyName,
131543
- standaloneName: standaloneName(schema9, keyNameFromDefinition, usedNames, options8),
131151
+ standaloneName: standaloneName(schema8, keyNameFromDefinition, usedNames, options8),
131544
131152
  type: "NULL"
131545
131153
  };
131546
131154
  case "NUMBER":
131547
131155
  return {
131548
- comment: schema9.description,
131549
- deprecated: schema9.deprecated,
131156
+ comment: schema8.description,
131157
+ deprecated: schema8.deprecated,
131550
131158
  keyName,
131551
- standaloneName: standaloneName(schema9, keyNameFromDefinition, usedNames, options8),
131159
+ standaloneName: standaloneName(schema8, keyNameFromDefinition, usedNames, options8),
131552
131160
  type: "NUMBER"
131553
131161
  };
131554
131162
  case "OBJECT":
131555
131163
  return {
131556
- comment: schema9.description,
131164
+ comment: schema8.description,
131557
131165
  keyName,
131558
- standaloneName: standaloneName(schema9, keyNameFromDefinition, usedNames, options8),
131166
+ standaloneName: standaloneName(schema8, keyNameFromDefinition, usedNames, options8),
131559
131167
  type: "OBJECT",
131560
- deprecated: schema9.deprecated
131168
+ deprecated: schema8.deprecated
131561
131169
  };
131562
131170
  case "ONE_OF":
131563
131171
  return {
131564
- comment: schema9.description,
131565
- deprecated: schema9.deprecated,
131172
+ comment: schema8.description,
131173
+ deprecated: schema8.deprecated,
131566
131174
  keyName,
131567
- standaloneName: standaloneName(schema9, keyNameFromDefinition, usedNames, options8),
131568
- params: schema9.oneOf.map((_10) => parse11(_10, options8, undefined, processed, usedNames)),
131175
+ standaloneName: standaloneName(schema8, keyNameFromDefinition, usedNames, options8),
131176
+ params: schema8.oneOf.map((_10) => parse10(_10, options8, undefined, processed, usedNames)),
131569
131177
  type: "UNION"
131570
131178
  };
131571
131179
  case "REFERENCE":
131572
- throw Error((0, util_1.format)("Refs should have been resolved by the resolver!", schema9));
131180
+ throw Error((0, util_1.format)("Refs should have been resolved by the resolver!", schema8));
131573
131181
  case "STRING":
131574
131182
  return {
131575
- comment: schema9.description,
131576
- deprecated: schema9.deprecated,
131183
+ comment: schema8.description,
131184
+ deprecated: schema8.deprecated,
131577
131185
  keyName,
131578
- standaloneName: standaloneName(schema9, keyNameFromDefinition, usedNames, options8),
131186
+ standaloneName: standaloneName(schema8, keyNameFromDefinition, usedNames, options8),
131579
131187
  type: "STRING"
131580
131188
  };
131581
131189
  case "TYPED_ARRAY":
131582
- if (Array.isArray(schema9.items)) {
131583
- const minItems2 = schema9.minItems;
131584
- const maxItems2 = schema9.maxItems;
131190
+ if (Array.isArray(schema8.items)) {
131191
+ const minItems2 = schema8.minItems;
131192
+ const maxItems2 = schema8.maxItems;
131585
131193
  const arrayType = {
131586
- comment: schema9.description,
131587
- deprecated: schema9.deprecated,
131194
+ comment: schema8.description,
131195
+ deprecated: schema8.deprecated,
131588
131196
  keyName,
131589
131197
  maxItems: maxItems2,
131590
131198
  minItems: minItems2,
131591
- standaloneName: standaloneName(schema9, keyNameFromDefinition, usedNames, options8),
131592
- params: schema9.items.map((_10) => parse11(_10, options8, undefined, processed, usedNames)),
131199
+ standaloneName: standaloneName(schema8, keyNameFromDefinition, usedNames, options8),
131200
+ params: schema8.items.map((_10) => parse10(_10, options8, undefined, processed, usedNames)),
131593
131201
  type: "TUPLE"
131594
131202
  };
131595
- if (schema9.additionalItems === true) {
131203
+ if (schema8.additionalItems === true) {
131596
131204
  arrayType.spreadParam = options8.unknownAny ? AST_1.T_UNKNOWN : AST_1.T_ANY;
131597
- } else if (schema9.additionalItems) {
131598
- arrayType.spreadParam = parse11(schema9.additionalItems, options8, undefined, processed, usedNames);
131205
+ } else if (schema8.additionalItems) {
131206
+ arrayType.spreadParam = parse10(schema8.additionalItems, options8, undefined, processed, usedNames);
131599
131207
  }
131600
131208
  return arrayType;
131601
131209
  } else {
131602
131210
  return {
131603
- comment: schema9.description,
131604
- deprecated: schema9.deprecated,
131211
+ comment: schema8.description,
131212
+ deprecated: schema8.deprecated,
131605
131213
  keyName,
131606
- standaloneName: standaloneName(schema9, keyNameFromDefinition, usedNames, options8),
131607
- params: parse11(schema9.items, options8, `{keyNameFromDefinition}Items`, processed, usedNames),
131214
+ standaloneName: standaloneName(schema8, keyNameFromDefinition, usedNames, options8),
131215
+ params: parse10(schema8.items, options8, `{keyNameFromDefinition}Items`, processed, usedNames),
131608
131216
  type: "ARRAY"
131609
131217
  };
131610
131218
  }
131611
131219
  case "UNION":
131612
131220
  return {
131613
- comment: schema9.description,
131614
- deprecated: schema9.deprecated,
131221
+ comment: schema8.description,
131222
+ deprecated: schema8.deprecated,
131615
131223
  keyName,
131616
- standaloneName: standaloneName(schema9, keyNameFromDefinition, usedNames, options8),
131617
- params: schema9.type.map((type2) => {
131618
- const member = Object.assign(Object.assign({}, (0, lodash_1.omit)(schema9, "$id", "description", "title")), { type: type2 });
131224
+ standaloneName: standaloneName(schema8, keyNameFromDefinition, usedNames, options8),
131225
+ params: schema8.type.map((type2) => {
131226
+ const member = Object.assign(Object.assign({}, (0, lodash_1.omit)(schema8, "$id", "description", "title")), { type: type2 });
131619
131227
  (0, utils_1.maybeStripDefault)(member);
131620
131228
  (0, applySchemaTyping_1.applySchemaTyping)(member);
131621
- return parse11(member, options8, undefined, processed, usedNames);
131229
+ return parse10(member, options8, undefined, processed, usedNames);
131622
131230
  }),
131623
131231
  type: "UNION"
131624
131232
  };
131625
131233
  case "UNNAMED_ENUM":
131626
131234
  return {
131627
- comment: schema9.description,
131628
- deprecated: schema9.deprecated,
131235
+ comment: schema8.description,
131236
+ deprecated: schema8.deprecated,
131629
131237
  keyName,
131630
- standaloneName: standaloneName(schema9, keyNameFromDefinition, usedNames, options8),
131631
- params: schema9.enum.map((_10) => parseLiteral(_10, undefined)),
131238
+ standaloneName: standaloneName(schema8, keyNameFromDefinition, usedNames, options8),
131239
+ params: schema8.enum.map((_10) => parseLiteral(_10, undefined)),
131632
131240
  type: "UNION"
131633
131241
  };
131634
131242
  case "UNNAMED_SCHEMA":
131635
- return newInterface(schema9, options8, processed, usedNames, keyName, keyNameFromDefinition);
131243
+ return newInterface(schema8, options8, processed, usedNames, keyName, keyNameFromDefinition);
131636
131244
  case "UNTYPED_ARRAY":
131637
- const minItems = schema9.minItems;
131638
- const maxItems = typeof schema9.maxItems === "number" ? schema9.maxItems : -1;
131245
+ const minItems = schema8.minItems;
131246
+ const maxItems = typeof schema8.maxItems === "number" ? schema8.maxItems : -1;
131639
131247
  const params = options8.unknownAny ? AST_1.T_UNKNOWN : AST_1.T_ANY;
131640
131248
  if (minItems > 0 || maxItems >= 0) {
131641
131249
  return {
131642
- comment: schema9.description,
131643
- deprecated: schema9.deprecated,
131250
+ comment: schema8.description,
131251
+ deprecated: schema8.deprecated,
131644
131252
  keyName,
131645
- maxItems: schema9.maxItems,
131253
+ maxItems: schema8.maxItems,
131646
131254
  minItems,
131647
131255
  params: Array(Math.max(maxItems, minItems) || 0).fill(params),
131648
131256
  spreadParam: maxItems >= 0 ? undefined : params,
131649
- standaloneName: standaloneName(schema9, keyNameFromDefinition, usedNames, options8),
131257
+ standaloneName: standaloneName(schema8, keyNameFromDefinition, usedNames, options8),
131650
131258
  type: "TUPLE"
131651
131259
  };
131652
131260
  }
131653
131261
  return {
131654
- comment: schema9.description,
131655
- deprecated: schema9.deprecated,
131262
+ comment: schema8.description,
131263
+ deprecated: schema8.deprecated,
131656
131264
  keyName,
131657
131265
  params,
131658
- standaloneName: standaloneName(schema9, keyNameFromDefinition, usedNames, options8),
131266
+ standaloneName: standaloneName(schema8, keyNameFromDefinition, usedNames, options8),
131659
131267
  type: "ARRAY"
131660
131268
  };
131661
131269
  }
131662
131270
  }
131663
- function standaloneName(schema9, keyNameFromDefinition, usedNames, options8) {
131271
+ function standaloneName(schema8, keyNameFromDefinition, usedNames, options8) {
131664
131272
  var _a7;
131665
- const name2 = ((_a7 = options8.customName) === null || _a7 === undefined ? undefined : _a7.call(options8, schema9, keyNameFromDefinition)) || schema9.title || schema9.$id || keyNameFromDefinition;
131273
+ const name2 = ((_a7 = options8.customName) === null || _a7 === undefined ? undefined : _a7.call(options8, schema8, keyNameFromDefinition)) || schema8.title || schema8.$id || keyNameFromDefinition;
131666
131274
  if (name2) {
131667
131275
  return (0, utils_1.generateName)(name2, usedNames);
131668
131276
  }
131669
131277
  }
131670
- function newInterface(schema9, options8, processed, usedNames, keyName, keyNameFromDefinition) {
131671
- const name2 = standaloneName(schema9, keyNameFromDefinition, usedNames, options8);
131278
+ function newInterface(schema8, options8, processed, usedNames, keyName, keyNameFromDefinition) {
131279
+ const name2 = standaloneName(schema8, keyNameFromDefinition, usedNames, options8);
131672
131280
  return {
131673
- comment: schema9.description,
131674
- deprecated: schema9.deprecated,
131281
+ comment: schema8.description,
131282
+ deprecated: schema8.deprecated,
131675
131283
  keyName,
131676
- params: parseSchema(schema9, options8, processed, usedNames, name2),
131284
+ params: parseSchema(schema8, options8, processed, usedNames, name2),
131677
131285
  standaloneName: name2,
131678
- superTypes: parseSuperTypes(schema9, options8, processed, usedNames),
131286
+ superTypes: parseSuperTypes(schema8, options8, processed, usedNames),
131679
131287
  type: "INTERFACE"
131680
131288
  };
131681
131289
  }
131682
- function parseSuperTypes(schema9, options8, processed, usedNames) {
131683
- const superTypes = schema9.extends;
131290
+ function parseSuperTypes(schema8, options8, processed, usedNames) {
131291
+ const superTypes = schema8.extends;
131684
131292
  if (!superTypes) {
131685
131293
  return [];
131686
131294
  }
131687
- return superTypes.map((_10) => parse11(_10, options8, undefined, processed, usedNames));
131295
+ return superTypes.map((_10) => parse10(_10, options8, undefined, processed, usedNames));
131688
131296
  }
131689
- function parseSchema(schema9, options8, processed, usedNames, parentSchemaName) {
131690
- let asts = (0, lodash_1.map)(schema9.properties, (value, key2) => ({
131691
- ast: parse11(value, options8, key2, processed, usedNames),
131297
+ function parseSchema(schema8, options8, processed, usedNames, parentSchemaName) {
131298
+ let asts = (0, lodash_1.map)(schema8.properties, (value, key2) => ({
131299
+ ast: parse10(value, options8, key2, processed, usedNames),
131692
131300
  isPatternProperty: false,
131693
- isRequired: (0, lodash_1.includes)(schema9.required || [], key2),
131301
+ isRequired: (0, lodash_1.includes)(schema8.required || [], key2),
131694
131302
  isUnreachableDefinition: false,
131695
131303
  keyName: key2
131696
131304
  }));
131697
131305
  let singlePatternProperty = false;
131698
- if (schema9.patternProperties) {
131699
- singlePatternProperty = !schema9.additionalProperties && Object.keys(schema9.patternProperties).length === 1;
131700
- asts = asts.concat((0, lodash_1.map)(schema9.patternProperties, (value, key2) => {
131701
- const ast = parse11(value, options8, key2, processed, usedNames);
131306
+ if (schema8.patternProperties) {
131307
+ singlePatternProperty = !schema8.additionalProperties && Object.keys(schema8.patternProperties).length === 1;
131308
+ asts = asts.concat((0, lodash_1.map)(schema8.patternProperties, (value, key2) => {
131309
+ const ast = parse10(value, options8, key2, processed, usedNames);
131702
131310
  const comment = `This interface was referenced by \`${parentSchemaName}\`'s JSON-Schema definition
131703
131311
  via the \`patternProperty\` "${key2.replace("*/", "*\\/")}".`;
131704
131312
  ast.comment = ast.comment ? `${ast.comment}
@@ -131707,15 +131315,15 @@ ${comment}` : comment;
131707
131315
  return {
131708
131316
  ast,
131709
131317
  isPatternProperty: !singlePatternProperty,
131710
- isRequired: singlePatternProperty || (0, lodash_1.includes)(schema9.required || [], key2),
131318
+ isRequired: singlePatternProperty || (0, lodash_1.includes)(schema8.required || [], key2),
131711
131319
  isUnreachableDefinition: false,
131712
131320
  keyName: singlePatternProperty ? "[k: string]" : key2
131713
131321
  };
131714
131322
  }));
131715
131323
  }
131716
131324
  if (options8.unreachableDefinitions) {
131717
- asts = asts.concat((0, lodash_1.map)(schema9.$defs, (value, key2) => {
131718
- const ast = parse11(value, options8, key2, processed, usedNames);
131325
+ asts = asts.concat((0, lodash_1.map)(schema8.$defs, (value, key2) => {
131326
+ const ast = parse10(value, options8, key2, processed, usedNames);
131719
131327
  const comment = `This interface was referenced by \`${parentSchemaName}\`'s JSON-Schema
131720
131328
  via the \`definition\` "${key2}".`;
131721
131329
  ast.comment = ast.comment ? `${ast.comment}
@@ -131724,13 +131332,13 @@ ${comment}` : comment;
131724
131332
  return {
131725
131333
  ast,
131726
131334
  isPatternProperty: false,
131727
- isRequired: (0, lodash_1.includes)(schema9.required || [], key2),
131335
+ isRequired: (0, lodash_1.includes)(schema8.required || [], key2),
131728
131336
  isUnreachableDefinition: true,
131729
131337
  keyName: key2
131730
131338
  };
131731
131339
  }));
131732
131340
  }
131733
- switch (schema9.additionalProperties) {
131341
+ switch (schema8.additionalProperties) {
131734
131342
  case undefined:
131735
131343
  case true:
131736
131344
  if (singlePatternProperty) {
@@ -131747,7 +131355,7 @@ ${comment}` : comment;
131747
131355
  return asts;
131748
131356
  default:
131749
131357
  return asts.concat({
131750
- ast: parse11(schema9.additionalProperties, options8, "[k: string]", processed, usedNames),
131358
+ ast: parse10(schema8.additionalProperties, options8, "[k: string]", processed, usedNames),
131751
131359
  isPatternProperty: false,
131752
131360
  isRequired: true,
131753
131361
  isUnreachableDefinition: false,
@@ -131755,22 +131363,22 @@ ${comment}` : comment;
131755
131363
  });
131756
131364
  }
131757
131365
  }
131758
- function getDefinitions(schema9, isSchema = true, processed = new Set) {
131759
- if (processed.has(schema9)) {
131366
+ function getDefinitions(schema8, isSchema = true, processed = new Set) {
131367
+ if (processed.has(schema8)) {
131760
131368
  return {};
131761
131369
  }
131762
- processed.add(schema9);
131763
- if (Array.isArray(schema9)) {
131764
- return schema9.reduce((prev, cur) => Object.assign(Object.assign({}, prev), getDefinitions(cur, false, processed)), {});
131370
+ processed.add(schema8);
131371
+ if (Array.isArray(schema8)) {
131372
+ return schema8.reduce((prev, cur) => Object.assign(Object.assign({}, prev), getDefinitions(cur, false, processed)), {});
131765
131373
  }
131766
- if ((0, lodash_1.isPlainObject)(schema9)) {
131767
- return Object.assign(Object.assign({}, isSchema && hasDefinitions(schema9) ? schema9.$defs : {}), Object.keys(schema9).reduce((prev, cur) => Object.assign(Object.assign({}, prev), getDefinitions(schema9[cur], false, processed)), {}));
131374
+ if ((0, lodash_1.isPlainObject)(schema8)) {
131375
+ return Object.assign(Object.assign({}, isSchema && hasDefinitions(schema8) ? schema8.$defs : {}), Object.keys(schema8).reduce((prev, cur) => Object.assign(Object.assign({}, prev), getDefinitions(schema8[cur], false, processed)), {}));
131768
131376
  }
131769
131377
  return {};
131770
131378
  }
131771
131379
  var getDefinitionsMemoized = (0, lodash_1.memoize)(getDefinitions);
131772
- function hasDefinitions(schema9) {
131773
- return "$defs" in schema9;
131380
+ function hasDefinitions(schema8) {
131381
+ return "$defs" in schema8;
131774
131382
  }
131775
131383
  });
131776
131384
 
@@ -132183,7 +131791,7 @@ var require_url = __commonJS((exports) => {
132183
131791
  };
132184
131792
  Object.defineProperty(exports, "__esModule", { value: true });
132185
131793
  exports.parse = undefined;
132186
- exports.resolve = resolve6;
131794
+ exports.resolve = resolve5;
132187
131795
  exports.cwd = cwd;
132188
131796
  exports.getProtocol = getProtocol;
132189
131797
  exports.getExtension = getExtension;
@@ -132209,9 +131817,9 @@ var require_url = __commonJS((exports) => {
132209
131817
  [/#/g, "%23"]
132210
131818
  ];
132211
131819
  var urlDecodePatterns = [/%23/g, "#", /%24/g, "$", /%26/g, "&", /%2C/g, ",", /%40/g, "@"];
132212
- var parse11 = (u4) => new URL(u4);
132213
- exports.parse = parse11;
132214
- function resolve6(from, to5) {
131820
+ var parse10 = (u4) => new URL(u4);
131821
+ exports.parse = parse10;
131822
+ function resolve5(from, to5) {
132215
131823
  const fromUrl = new URL((0, convert_path_to_posix_1.default)(from), "https://aaa.nonexistanturl.com");
132216
131824
  const resolvedUrl = new URL((0, convert_path_to_posix_1.default)(to5), fromUrl);
132217
131825
  const endSpaces = to5.match(/(\s*)$/)?.[1] || "";
@@ -132347,7 +131955,7 @@ var require_url = __commonJS((exports) => {
132347
131955
  }
132348
131956
  function relative2(from, to5) {
132349
131957
  if (!isFileSystemPath(from) || !isFileSystemPath(to5)) {
132350
- return resolve6(from, to5);
131958
+ return resolve5(from, to5);
132351
131959
  }
132352
131960
  const fromDir = path_1.default.dirname(stripHash(from));
132353
131961
  const toPath4 = stripHash(to5);
@@ -133023,7 +132631,7 @@ var require_plugins = __commonJS((exports) => {
133023
132631
  let plugin;
133024
132632
  let lastError;
133025
132633
  let index = 0;
133026
- return new Promise((resolve6, reject) => {
132634
+ return new Promise((resolve5, reject) => {
133027
132635
  runNextPlugin();
133028
132636
  function runNextPlugin() {
133029
132637
  plugin = plugins[index++];
@@ -133051,7 +132659,7 @@ var require_plugins = __commonJS((exports) => {
133051
132659
  }
133052
132660
  }
133053
132661
  function onSuccess(result) {
133054
- resolve6({
132662
+ resolve5({
133055
132663
  plugin,
133056
132664
  result
133057
132665
  });
@@ -133134,7 +132742,7 @@ var require_parse6 = __commonJS((exports) => {
133134
132742
  var url3 = __importStar(require_url());
133135
132743
  var plugins = __importStar(require_plugins());
133136
132744
  var errors_js_1 = require_errors();
133137
- async function parse11(path18, $refs, options8) {
132745
+ async function parse10(path18, $refs, options8) {
133138
132746
  const hashIndex = path18.indexOf("#");
133139
132747
  let hash2 = "";
133140
132748
  if (hashIndex >= 0) {
@@ -133210,7 +132818,7 @@ Parsed value is empty`);
133210
132818
  function isEmpty(value) {
133211
132819
  return value === undefined || typeof value === "object" && Object.keys(value).length === 0 || typeof value === "string" && value.trim().length === 0 || Buffer.isBuffer(value) && value.length === 0;
133212
132820
  }
133213
- exports.default = parse11;
132821
+ exports.default = parse10;
133214
132822
  });
133215
132823
 
133216
132824
  // node_modules/@apidevtools/json-schema-ref-parser/dist/lib/parsers/json.js
@@ -133475,9 +133083,9 @@ var require_type3 = __commonJS((exports, module) => {
133475
133083
  var require_schema3 = __commonJS((exports, module) => {
133476
133084
  var YAMLException = require_exception3();
133477
133085
  var Type = require_type3();
133478
- function compileList(schema9, name2) {
133086
+ function compileList(schema8, name2) {
133479
133087
  var result = [];
133480
- schema9[name2].forEach(function(currentType) {
133088
+ schema8[name2].forEach(function(currentType) {
133481
133089
  var newIndex = result.length;
133482
133090
  result.forEach(function(previousType, previousIndex) {
133483
133091
  if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
@@ -135422,7 +135030,7 @@ var require_dumper3 = __commonJS((exports, module) => {
135422
135030
  "OFF"
135423
135031
  ];
135424
135032
  var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
135425
- function compileStyleMap(schema9, map2) {
135033
+ function compileStyleMap(schema8, map2) {
135426
135034
  var result, keys, index, length, tag, style, type;
135427
135035
  if (map2 === null)
135428
135036
  return {};
@@ -135434,7 +135042,7 @@ var require_dumper3 = __commonJS((exports, module) => {
135434
135042
  if (tag.slice(0, 2) === "!!") {
135435
135043
  tag = "tag:yaml.org,2002:" + tag.slice(2);
135436
135044
  }
135437
- type = schema9.compiledTypeMap["fallback"][tag];
135045
+ type = schema8.compiledTypeMap["fallback"][tag];
135438
135046
  if (type && _hasOwnProperty.call(type.styleAliases, style)) {
135439
135047
  style = type.styleAliases[style];
135440
135048
  }
@@ -136369,7 +135977,7 @@ var require_normalize_args = __commonJS((exports) => {
136369
135977
  var options_js_1 = require_options();
136370
135978
  function normalizeArgs(_args) {
136371
135979
  let path18;
136372
- let schema9;
135980
+ let schema8;
136373
135981
  let options8;
136374
135982
  let callback;
136375
135983
  const args = Array.prototype.slice.call(_args);
@@ -136379,15 +135987,15 @@ var require_normalize_args = __commonJS((exports) => {
136379
135987
  if (typeof args[0] === "string") {
136380
135988
  path18 = args[0];
136381
135989
  if (typeof args[2] === "object") {
136382
- schema9 = args[1];
135990
+ schema8 = args[1];
136383
135991
  options8 = args[2];
136384
135992
  } else {
136385
- schema9 = undefined;
135993
+ schema8 = undefined;
136386
135994
  options8 = args[1];
136387
135995
  }
136388
135996
  } else {
136389
135997
  path18 = "";
136390
- schema9 = args[0];
135998
+ schema8 = args[0];
136391
135999
  options8 = args[1];
136392
136000
  }
136393
136001
  try {
@@ -136395,12 +136003,12 @@ var require_normalize_args = __commonJS((exports) => {
136395
136003
  } catch (e8) {
136396
136004
  console.error(`JSON Schema Ref Parser: Error normalizing options: ${e8}`);
136397
136005
  }
136398
- if (!options8.mutateInputSchema && typeof schema9 === "object") {
136399
- schema9 = JSON.parse(JSON.stringify(schema9));
136006
+ if (!options8.mutateInputSchema && typeof schema8 === "object") {
136007
+ schema8 = JSON.parse(JSON.stringify(schema8));
136400
136008
  }
136401
136009
  return {
136402
136010
  path: path18,
136403
- schema: schema9,
136011
+ schema: schema8,
136404
136012
  options: options8,
136405
136013
  callback
136406
136014
  };
@@ -137159,11 +136767,11 @@ var require_lib3 = __commonJS((exports) => {
137159
136767
  var require_resolver = __commonJS((exports) => {
137160
136768
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P9, generator) {
137161
136769
  function adopt(value) {
137162
- return value instanceof P9 ? value : new P9(function(resolve6) {
137163
- resolve6(value);
136770
+ return value instanceof P9 ? value : new P9(function(resolve5) {
136771
+ resolve5(value);
137164
136772
  });
137165
136773
  }
137166
- return new (P9 || (P9 = Promise))(function(resolve6, reject) {
136774
+ return new (P9 || (P9 = Promise))(function(resolve5, reject) {
137167
136775
  function fulfilled(value) {
137168
136776
  try {
137169
136777
  step(generator.next(value));
@@ -137179,7 +136787,7 @@ var require_resolver = __commonJS((exports) => {
137179
136787
  }
137180
136788
  }
137181
136789
  function step(result) {
137182
- result.done ? resolve6(result.value) : adopt(result.value).then(fulfilled, rejected);
136790
+ result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected);
137183
136791
  }
137184
136792
  step((generator = generator.apply(thisArg, _arguments || [])).next());
137185
136793
  });
@@ -137189,12 +136797,12 @@ var require_resolver = __commonJS((exports) => {
137189
136797
  var json_schema_ref_parser_1 = require_lib3();
137190
136798
  var utils_1 = require_utils7();
137191
136799
  function dereference(schema_1, _a7) {
137192
- return __awaiter(this, arguments, undefined, function* (schema9, { cwd, $refOptions }) {
137193
- (0, utils_1.log)("green", "dereferencer", "Dereferencing input schema:", cwd, schema9);
136800
+ return __awaiter(this, arguments, undefined, function* (schema8, { cwd, $refOptions }) {
136801
+ (0, utils_1.log)("green", "dereferencer", "Dereferencing input schema:", cwd, schema8);
137194
136802
  const parser = new json_schema_ref_parser_1.$RefParser;
137195
136803
  const dereferencedPaths = new WeakMap;
137196
- const dereferencedSchema = yield parser.dereference(cwd, schema9, Object.assign(Object.assign({}, $refOptions), { dereference: Object.assign(Object.assign({}, $refOptions.dereference), { onDereference($ref, schema10) {
137197
- dereferencedPaths.set(schema10, $ref);
136804
+ const dereferencedSchema = yield parser.dereference(cwd, schema8, Object.assign(Object.assign({}, $refOptions), { dereference: Object.assign(Object.assign({}, $refOptions.dereference), { onDereference($ref, schema9) {
136805
+ dereferencedPaths.set(schema9, $ref);
137198
136806
  } }) }));
137199
136807
  return { dereferencedPaths, dereferencedSchema };
137200
136808
  });
@@ -137208,46 +136816,46 @@ var require_validator = __commonJS((exports) => {
137208
136816
  exports.validate = undefined;
137209
136817
  var utils_1 = require_utils7();
137210
136818
  var rules = new Map;
137211
- rules.set("Enum members and tsEnumNames must be of the same length", (schema9) => {
137212
- if (schema9.enum && schema9.tsEnumNames && schema9.enum.length !== schema9.tsEnumNames.length) {
136819
+ rules.set("Enum members and tsEnumNames must be of the same length", (schema8) => {
136820
+ if (schema8.enum && schema8.tsEnumNames && schema8.enum.length !== schema8.tsEnumNames.length) {
137213
136821
  return false;
137214
136822
  }
137215
136823
  });
137216
- rules.set("tsEnumNames must be an array of strings", (schema9) => {
137217
- if (schema9.tsEnumNames && schema9.tsEnumNames.some((_10) => typeof _10 !== "string")) {
136824
+ rules.set("tsEnumNames must be an array of strings", (schema8) => {
136825
+ if (schema8.tsEnumNames && schema8.tsEnumNames.some((_10) => typeof _10 !== "string")) {
137218
136826
  return false;
137219
136827
  }
137220
136828
  });
137221
- rules.set("When both maxItems and minItems are present, maxItems >= minItems", (schema9) => {
137222
- const { maxItems, minItems } = schema9;
136829
+ rules.set("When both maxItems and minItems are present, maxItems >= minItems", (schema8) => {
136830
+ const { maxItems, minItems } = schema8;
137223
136831
  if (typeof maxItems === "number" && typeof minItems === "number") {
137224
136832
  return maxItems >= minItems;
137225
136833
  }
137226
136834
  });
137227
- rules.set("When maxItems exists, maxItems >= 0", (schema9) => {
137228
- const { maxItems } = schema9;
136835
+ rules.set("When maxItems exists, maxItems >= 0", (schema8) => {
136836
+ const { maxItems } = schema8;
137229
136837
  if (typeof maxItems === "number") {
137230
136838
  return maxItems >= 0;
137231
136839
  }
137232
136840
  });
137233
- rules.set("When minItems exists, minItems >= 0", (schema9) => {
137234
- const { minItems } = schema9;
136841
+ rules.set("When minItems exists, minItems >= 0", (schema8) => {
136842
+ const { minItems } = schema8;
137235
136843
  if (typeof minItems === "number") {
137236
136844
  return minItems >= 0;
137237
136845
  }
137238
136846
  });
137239
- rules.set("deprecated must be a boolean", (schema9) => {
137240
- const typeOfDeprecated = typeof schema9.deprecated;
136847
+ rules.set("deprecated must be a boolean", (schema8) => {
136848
+ const typeOfDeprecated = typeof schema8.deprecated;
137241
136849
  return typeOfDeprecated === "boolean" || typeOfDeprecated === "undefined";
137242
136850
  });
137243
- function validate2(schema9, filename) {
136851
+ function validate2(schema8, filename) {
137244
136852
  const errors4 = [];
137245
136853
  rules.forEach((rule, ruleName) => {
137246
- (0, utils_1.traverse)(schema9, (schema10, key2) => {
137247
- if (rule(schema10) === false) {
136854
+ (0, utils_1.traverse)(schema8, (schema9, key2) => {
136855
+ if (rule(schema9) === false) {
137248
136856
  errors4.push(`Error at key "${key2}" in file "${filename}": ${ruleName}`);
137249
136857
  }
137250
- return schema10;
136858
+ return schema9;
137251
136859
  });
137252
136860
  });
137253
136861
  return errors4;
@@ -137261,25 +136869,25 @@ var require_linker = __commonJS((exports) => {
137261
136869
  exports.link = undefined;
137262
136870
  var JSONSchema_1 = require_JSONSchema();
137263
136871
  var lodash_1 = require_lodash2();
137264
- function link2(schema9, parent = null) {
137265
- if (!Array.isArray(schema9) && !(0, lodash_1.isPlainObject)(schema9)) {
137266
- return schema9;
136872
+ function link2(schema8, parent = null) {
136873
+ if (!Array.isArray(schema8) && !(0, lodash_1.isPlainObject)(schema8)) {
136874
+ return schema8;
137267
136875
  }
137268
- if (schema9.hasOwnProperty(JSONSchema_1.Parent)) {
137269
- return schema9;
136876
+ if (schema8.hasOwnProperty(JSONSchema_1.Parent)) {
136877
+ return schema8;
137270
136878
  }
137271
- Object.defineProperty(schema9, JSONSchema_1.Parent, {
136879
+ Object.defineProperty(schema8, JSONSchema_1.Parent, {
137272
136880
  enumerable: false,
137273
136881
  value: parent,
137274
136882
  writable: false
137275
136883
  });
137276
- if (Array.isArray(schema9)) {
137277
- schema9.forEach((child) => link2(child, schema9));
136884
+ if (Array.isArray(schema8)) {
136885
+ schema8.forEach((child) => link2(child, schema8));
137278
136886
  }
137279
- for (const key2 in schema9) {
137280
- link2(schema9[key2], schema9);
136887
+ for (const key2 in schema8) {
136888
+ link2(schema8[key2], schema8);
137281
136889
  }
137282
- return schema9;
136890
+ return schema8;
137283
136891
  }
137284
136892
  exports.link = link2;
137285
136893
  });
@@ -137300,11 +136908,11 @@ var require_optionValidator = __commonJS((exports) => {
137300
136908
  var require_src3 = __commonJS((exports) => {
137301
136909
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P9, generator) {
137302
136910
  function adopt(value) {
137303
- return value instanceof P9 ? value : new P9(function(resolve6) {
137304
- resolve6(value);
136911
+ return value instanceof P9 ? value : new P9(function(resolve5) {
136912
+ resolve5(value);
137305
136913
  });
137306
136914
  }
137307
- return new (P9 || (P9 = Promise))(function(resolve6, reject) {
136915
+ return new (P9 || (P9 = Promise))(function(resolve5, reject) {
137308
136916
  function fulfilled(value) {
137309
136917
  try {
137310
136918
  step(generator.next(value));
@@ -137320,7 +136928,7 @@ var require_src3 = __commonJS((exports) => {
137320
136928
  }
137321
136929
  }
137322
136930
  function step(result) {
137323
- result.done ? resolve6(result.value) : adopt(result.value).then(fulfilled, rejected);
136931
+ result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected);
137324
136932
  }
137325
136933
  step((generator = generator.apply(thisArg, _arguments || [])).next());
137326
136934
  });
@@ -137371,8 +136979,8 @@ var require_src3 = __commonJS((exports) => {
137371
136979
  unknownAny: true
137372
136980
  };
137373
136981
  function compileFromFile(filename, options8 = exports.DEFAULT_OPTIONS) {
137374
- const schema9 = parseAsJSONSchema(filename);
137375
- return compile(schema9, (0, utils_1.stripExtension)(filename), Object.assign({ cwd: (0, path_1.dirname)(filename) }, options8));
136982
+ const schema8 = parseAsJSONSchema(filename);
136983
+ return compile(schema8, (0, utils_1.stripExtension)(filename), Object.assign({ cwd: (0, path_1.dirname)(filename) }, options8));
137376
136984
  }
137377
136985
  exports.compileFromFile = compileFromFile;
137378
136986
  function parseAsJSONSchema(filename) {
@@ -137382,7 +136990,7 @@ var require_src3 = __commonJS((exports) => {
137382
136990
  return (0, utils_1.parseFileAsJSONSchema)(filename, contents.toString());
137383
136991
  }
137384
136992
  function compile(schema_1, name_1) {
137385
- return __awaiter(this, arguments, undefined, function* (schema9, name2, options8 = {}) {
136993
+ return __awaiter(this, arguments, undefined, function* (schema8, name2, options8 = {}) {
137386
136994
  (0, optionValidator_1.validateOptions)(options8);
137387
136995
  const _options = (0, lodash_1.merge)({}, exports.DEFAULT_OPTIONS, options8);
137388
136996
  const start = Date.now();
@@ -137392,7 +137000,7 @@ var require_src3 = __commonJS((exports) => {
137392
137000
  if (!(0, lodash_1.endsWith)(_options.cwd, "/")) {
137393
137001
  _options.cwd += "/";
137394
137002
  }
137395
- const _schema = (0, lodash_1.cloneDeep)(schema9);
137003
+ const _schema = (0, lodash_1.cloneDeep)(schema8);
137396
137004
  const { dereferencedPaths, dereferencedSchema } = yield (0, resolver_1.dereference)(_schema, _options);
137397
137005
  if (process.env.VERBOSE) {
137398
137006
  if ((0, util_1.isDeepStrictEqual)(_schema, dereferencedSchema)) {
@@ -137517,7 +137125,7 @@ var require_vary = __commonJS((exports, module) => {
137517
137125
  if (!field) {
137518
137126
  throw new TypeError("field argument is required");
137519
137127
  }
137520
- var fields = !Array.isArray(field) ? parse11(String(field)) : field;
137128
+ var fields = !Array.isArray(field) ? parse10(String(field)) : field;
137521
137129
  for (var j10 = 0;j10 < fields.length; j10++) {
137522
137130
  if (!FIELD_NAME_REGEXP.test(fields[j10])) {
137523
137131
  throw new TypeError("field argument contains an invalid header name");
@@ -137527,7 +137135,7 @@ var require_vary = __commonJS((exports, module) => {
137527
137135
  return header2;
137528
137136
  }
137529
137137
  var val = header2;
137530
- var vals = parse11(header2.toLowerCase());
137138
+ var vals = parse10(header2.toLowerCase());
137531
137139
  if (fields.indexOf("*") !== -1 || vals.indexOf("*") !== -1) {
137532
137140
  return "*";
137533
137141
  }
@@ -137540,7 +137148,7 @@ var require_vary = __commonJS((exports, module) => {
137540
137148
  }
137541
137149
  return val;
137542
137150
  }
137543
- function parse11(header2) {
137151
+ function parse10(header2) {
137544
137152
  var end = 0;
137545
137153
  var list3 = [];
137546
137154
  var start = 0;
@@ -137792,13 +137400,13 @@ var require_ms = __commonJS((exports, module) => {
137792
137400
  options8 = options8 || {};
137793
137401
  var type = typeof val;
137794
137402
  if (type === "string" && val.length > 0) {
137795
- return parse11(val);
137403
+ return parse10(val);
137796
137404
  } else if (type === "number" && isFinite(val)) {
137797
137405
  return options8.long ? fmtLong(val) : fmtShort(val);
137798
137406
  }
137799
137407
  throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
137800
137408
  };
137801
- function parse11(str) {
137409
+ function parse10(str) {
137802
137410
  str = String(str);
137803
137411
  if (str.length > 100) {
137804
137412
  return;
@@ -137892,7 +137500,7 @@ var require_ms = __commonJS((exports, module) => {
137892
137500
 
137893
137501
  // node_modules/debug/src/common.js
137894
137502
  var require_common7 = __commonJS((exports, module) => {
137895
- function setup(env3) {
137503
+ function setup(env2) {
137896
137504
  createDebug.debug = createDebug;
137897
137505
  createDebug.default = createDebug;
137898
137506
  createDebug.coerce = coerce;
@@ -137901,8 +137509,8 @@ var require_common7 = __commonJS((exports, module) => {
137901
137509
  createDebug.enabled = enabled;
137902
137510
  createDebug.humanize = require_ms();
137903
137511
  createDebug.destroy = destroy;
137904
- Object.keys(env3).forEach((key2) => {
137905
- createDebug[key2] = env3[key2];
137512
+ Object.keys(env2).forEach((key2) => {
137513
+ createDebug[key2] = env2[key2];
137906
137514
  });
137907
137515
  createDebug.names = [];
137908
137516
  createDebug.skips = [];
@@ -139108,7 +138716,7 @@ var require_bytes = __commonJS((exports, module) => {
139108
138716
  */
139109
138717
  module.exports = bytes;
139110
138718
  module.exports.format = format3;
139111
- module.exports.parse = parse11;
138719
+ module.exports.parse = parse10;
139112
138720
  var formatThousandsRegExp = /\B(?=(\d{3})+(?!\d))/g;
139113
138721
  var formatDecimalsRegExp = /(?:\.0*|(\.[^0]+)0+)$/;
139114
138722
  var map2 = {
@@ -139122,7 +138730,7 @@ var require_bytes = __commonJS((exports, module) => {
139122
138730
  var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;
139123
138731
  function bytes(value, options8) {
139124
138732
  if (typeof value === "string") {
139125
- return parse11(value);
138733
+ return parse10(value);
139126
138734
  }
139127
138735
  if (typeof value === "number") {
139128
138736
  return format3(value, options8);
@@ -139166,7 +138774,7 @@ var require_bytes = __commonJS((exports, module) => {
139166
138774
  }
139167
138775
  return str + unitSeparator + unit;
139168
138776
  }
139169
- function parse11(val) {
138777
+ function parse10(val) {
139170
138778
  if (typeof val === "number" && !isNaN(val)) {
139171
138779
  return val;
139172
138780
  }
@@ -142945,11 +142553,11 @@ var require_raw_body = __commonJS((exports, module) => {
142945
142553
  if (done) {
142946
142554
  return readStream(stream, encoding, length, limit, wrap(done));
142947
142555
  }
142948
- return new Promise(function executor(resolve6, reject) {
142556
+ return new Promise(function executor(resolve5, reject) {
142949
142557
  readStream(stream, encoding, length, limit, function onRead2(err, buf) {
142950
142558
  if (err)
142951
142559
  return reject(err);
142952
- resolve6(buf);
142560
+ resolve5(buf);
142953
142561
  });
142954
142562
  });
142955
142563
  }
@@ -143270,7 +142878,7 @@ var require_content_type = __commonJS((exports) => {
143270
142878
  var QUOTE_REGEXP = /([\\"])/g;
143271
142879
  var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
143272
142880
  exports.format = format3;
143273
- exports.parse = parse11;
142881
+ exports.parse = parse10;
143274
142882
  function format3(obj) {
143275
142883
  if (!obj || typeof obj !== "object") {
143276
142884
  throw new TypeError("argument obj is required");
@@ -143294,7 +142902,7 @@ var require_content_type = __commonJS((exports) => {
143294
142902
  }
143295
142903
  return string4;
143296
142904
  }
143297
- function parse11(string4) {
142905
+ function parse10(string4) {
143298
142906
  if (!string4) {
143299
142907
  throw new TypeError("argument string is required");
143300
142908
  }
@@ -152861,7 +152469,7 @@ var require_media_typer = __commonJS((exports) => {
152861
152469
  var TYPE_NAME_REGEXP = /^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/;
152862
152470
  var TYPE_REGEXP = /^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/;
152863
152471
  exports.format = format3;
152864
- exports.parse = parse11;
152472
+ exports.parse = parse10;
152865
152473
  exports.test = test;
152866
152474
  function format3(obj) {
152867
152475
  if (!obj || typeof obj !== "object") {
@@ -152894,7 +152502,7 @@ var require_media_typer = __commonJS((exports) => {
152894
152502
  }
152895
152503
  return TYPE_REGEXP.test(string4.toLowerCase());
152896
152504
  }
152897
- function parse11(string4) {
152505
+ function parse10(string4) {
152898
152506
  if (!string4) {
152899
152507
  throw new TypeError("argument string is required");
152900
152508
  }
@@ -153083,7 +152691,7 @@ var require_read = __commonJS((exports, module) => {
153083
152691
  var hasBody = require_type_is().hasBody;
153084
152692
  var { getCharset } = require_utils8();
153085
152693
  module.exports = read3;
153086
- function read3(req, res, next, parse11, debug, options8) {
152694
+ function read3(req, res, next, parse10, debug, options8) {
153087
152695
  if (onFinished.isFinished(req)) {
153088
152696
  debug("body already parsed");
153089
152697
  next();
@@ -153171,7 +152779,7 @@ var require_read = __commonJS((exports, module) => {
153171
152779
  try {
153172
152780
  debug("parse body");
153173
152781
  str = typeof body !== "string" && encoding !== null ? iconv.decode(body, encoding) : body;
153174
- req.body = parse11(str, encoding);
152782
+ req.body = parse10(str, encoding);
153175
152783
  } catch (err) {
153176
152784
  next(createError2(400, err, {
153177
152785
  body: str,
@@ -153247,7 +152855,7 @@ var require_json5 = __commonJS((exports, module) => {
153247
152855
  const normalizedOptions = normalizeOptions5(options8, "application/json");
153248
152856
  var reviver = options8?.reviver;
153249
152857
  var strict = options8?.strict !== false;
153250
- function parse11(body) {
152858
+ function parse10(body) {
153251
152859
  if (body.length === 0) {
153252
152860
  return {};
153253
152861
  }
@@ -153273,7 +152881,7 @@ var require_json5 = __commonJS((exports, module) => {
153273
152881
  isValidCharset: (charset) => charset.slice(0, 4) === "utf-"
153274
152882
  };
153275
152883
  return function jsonParser(req, res, next) {
153276
- read3(req, res, next, parse11, debug, readOptions);
152884
+ read3(req, res, next, parse10, debug, readOptions);
153277
152885
  };
153278
152886
  }
153279
152887
  function createStrictSyntaxError(str, char) {
@@ -155616,11 +155224,11 @@ var require_parse7 = __commonJS((exports, module) => {
155616
155224
  // node_modules/qs/lib/index.js
155617
155225
  var require_lib6 = __commonJS((exports, module) => {
155618
155226
  var stringify = require_stringify4();
155619
- var parse11 = require_parse7();
155227
+ var parse10 = require_parse7();
155620
155228
  var formats = require_formats();
155621
155229
  module.exports = {
155622
155230
  formats,
155623
- parse: parse11,
155231
+ parse: parse10,
155624
155232
  stringify
155625
155233
  };
155626
155234
  });
@@ -155645,7 +155253,7 @@ var require_urlencoded = __commonJS((exports, module) => {
155645
155253
  throw new TypeError("option defaultCharset must be either utf-8 or iso-8859-1");
155646
155254
  }
155647
155255
  var queryparse = createQueryParser(options8);
155648
- function parse11(body, encoding) {
155256
+ function parse10(body, encoding) {
155649
155257
  return body.length ? queryparse(body, encoding) : {};
155650
155258
  }
155651
155259
  const readOptions = {
@@ -155653,7 +155261,7 @@ var require_urlencoded = __commonJS((exports, module) => {
155653
155261
  isValidCharset: (charset) => charset === "utf-8" || charset === "iso-8859-1"
155654
155262
  };
155655
155263
  return function urlencodedParser(req, res, next) {
155656
- read3(req, res, next, parse11, debug, readOptions);
155264
+ read3(req, res, next, parse10, debug, readOptions);
155657
155265
  };
155658
155266
  }
155659
155267
  function createQueryParser(options8) {
@@ -155846,7 +155454,7 @@ var require_parseurl = __commonJS((exports, module) => {
155846
155454
  * MIT Licensed
155847
155455
  */
155848
155456
  var url3 = __require("url");
155849
- var parse11 = url3.parse;
155457
+ var parse10 = url3.parse;
155850
155458
  var Url = url3.Url;
155851
155459
  module.exports = parseurl;
155852
155460
  module.exports.original = originalurl;
@@ -155878,7 +155486,7 @@ var require_parseurl = __commonJS((exports, module) => {
155878
155486
  }
155879
155487
  function fastparse(str) {
155880
155488
  if (typeof str !== "string" || str.charCodeAt(0) !== 47) {
155881
- return parse11(str);
155489
+ return parse10(str);
155882
155490
  }
155883
155491
  var pathname = str;
155884
155492
  var query = null;
@@ -155900,7 +155508,7 @@ var require_parseurl = __commonJS((exports, module) => {
155900
155508
  case 35:
155901
155509
  case 160:
155902
155510
  case 65279:
155903
- return parse11(str);
155511
+ return parse10(str);
155904
155512
  }
155905
155513
  }
155906
155514
  var url4 = Url !== undefined ? new Url : {};
@@ -155950,7 +155558,7 @@ var require_finalhandler = __commonJS((exports, module) => {
155950
155558
  module.exports = finalhandler;
155951
155559
  function finalhandler(req, res, options8) {
155952
155560
  var opts = options8 || {};
155953
- var env3 = opts.env || "development";
155561
+ var env2 = opts.env || "development";
155954
155562
  var onerror = opts.onerror;
155955
155563
  return function(err) {
155956
155564
  var headers;
@@ -155967,7 +155575,7 @@ var require_finalhandler = __commonJS((exports, module) => {
155967
155575
  } else {
155968
155576
  headers = getErrorHeaders(err);
155969
155577
  }
155970
- msg = getErrorMessage(err, status, env3);
155578
+ msg = getErrorMessage(err, status, env2);
155971
155579
  } else {
155972
155580
  status = 404;
155973
155581
  msg = "Cannot " + req.method + " " + encodeUrl(getResourceName(req));
@@ -155992,9 +155600,9 @@ var require_finalhandler = __commonJS((exports, module) => {
155992
155600
  }
155993
155601
  return { ...err.headers };
155994
155602
  }
155995
- function getErrorMessage(err, status, env3) {
155603
+ function getErrorMessage(err, status, env2) {
155996
155604
  var msg;
155997
- if (env3 !== "production") {
155605
+ if (env2 !== "production") {
155998
155606
  msg = err.stack;
155999
155607
  if (!msg && typeof err.toString === "function") {
156000
155608
  msg = err.toString();
@@ -156074,7 +155682,7 @@ var require_view = __commonJS((exports, module) => {
156074
155682
  var basename4 = path18.basename;
156075
155683
  var extname2 = path18.extname;
156076
155684
  var join15 = path18.join;
156077
- var resolve6 = path18.resolve;
155685
+ var resolve5 = path18.resolve;
156078
155686
  module.exports = View;
156079
155687
  function View(name2, options8) {
156080
155688
  var opts = options8 || {};
@@ -156108,7 +155716,7 @@ var require_view = __commonJS((exports, module) => {
156108
155716
  debug('lookup "%s"', name2);
156109
155717
  for (var i5 = 0;i5 < roots.length && !path19; i5++) {
156110
155718
  var root2 = roots[i5];
156111
- var loc = resolve6(root2, name2);
155719
+ var loc = resolve5(root2, name2);
156112
155720
  var dir = dirname11(loc);
156113
155721
  var file2 = basename4(loc);
156114
155722
  path19 = this.resolve(dir, file2);
@@ -156133,7 +155741,7 @@ var require_view = __commonJS((exports, module) => {
156133
155741
  });
156134
155742
  sync = false;
156135
155743
  };
156136
- View.prototype.resolve = function resolve7(dir, file2) {
155744
+ View.prototype.resolve = function resolve6(dir, file2) {
156137
155745
  var ext = this.ext;
156138
155746
  var path19 = join15(dir, file2);
156139
155747
  var stat2 = tryStat(path19);
@@ -156212,7 +155820,7 @@ var require_forwarded = __commonJS((exports, module) => {
156212
155820
  if (!req) {
156213
155821
  throw new TypeError("argument req is required");
156214
155822
  }
156215
- var proxyAddrs = parse11(req.headers["x-forwarded-for"] || "");
155823
+ var proxyAddrs = parse10(req.headers["x-forwarded-for"] || "");
156216
155824
  var socketAddr = getSocketAddr(req);
156217
155825
  var addrs = [socketAddr].concat(proxyAddrs);
156218
155826
  return addrs;
@@ -156220,7 +155828,7 @@ var require_forwarded = __commonJS((exports, module) => {
156220
155828
  function getSocketAddr(req) {
156221
155829
  return req.socket ? req.socket.remoteAddress : req.connection.remoteAddress;
156222
155830
  }
156223
- function parse11(header2) {
155831
+ function parse10(header2) {
156224
155832
  var end = header2.length;
156225
155833
  var list3 = [];
156226
155834
  var start = header2.length;
@@ -157250,7 +156858,7 @@ var require_is_promise = __commonJS((exports, module) => {
157250
156858
  var require_dist = __commonJS((exports) => {
157251
156859
  Object.defineProperty(exports, "__esModule", { value: true });
157252
156860
  exports.PathError = exports.TokenData = undefined;
157253
- exports.parse = parse11;
156861
+ exports.parse = parse10;
157254
156862
  exports.compile = compile2;
157255
156863
  exports.match = match;
157256
156864
  exports.pathToRegexp = pathToRegexp;
@@ -157296,7 +156904,7 @@ var require_dist = __commonJS((exports) => {
157296
156904
  }
157297
156905
  }
157298
156906
  exports.PathError = PathError;
157299
- function parse11(str, options8 = {}) {
156907
+ function parse10(str, options8 = {}) {
157300
156908
  const { encodePath = NOOP_VALUE } = options8;
157301
156909
  const chars = [...str];
157302
156910
  const tokens = [];
@@ -157386,7 +156994,7 @@ var require_dist = __commonJS((exports) => {
157386
156994
  }
157387
156995
  function compile2(path18, options8 = {}) {
157388
156996
  const { encode: encode5 = encodeURIComponent, delimiter = DEFAULT_DELIMITER } = options8;
157389
- const data = typeof path18 === "object" ? path18 : parse11(path18, options8);
156997
+ const data = typeof path18 === "object" ? path18 : parse10(path18, options8);
157390
156998
  const fn9 = tokensToFunction(data.tokens, delimiter, encode5);
157391
156999
  return function path19(params = {}) {
157392
157000
  const [path20, ...missing] = fn9(params);
@@ -157481,7 +157089,7 @@ var require_dist = __commonJS((exports) => {
157481
157089
  const flags = sensitive ? "" : "i";
157482
157090
  const sources = [];
157483
157091
  for (const input of pathsToArray(path18, [])) {
157484
- const data = typeof input === "object" ? input : parse11(input, options8);
157092
+ const data = typeof input === "object" ? input : parse10(input, options8);
157485
157093
  for (const tokens of flatten(data.tokens, 0, [])) {
157486
157094
  sources.push(toRegExpSource(tokens, delimiter, keys, data.originalPath));
157487
157095
  }
@@ -158292,7 +157900,7 @@ var require_application = __commonJS((exports, module) => {
158292
157900
  var compileETag = require_utils10().compileETag;
158293
157901
  var compileQueryParser = require_utils10().compileQueryParser;
158294
157902
  var compileTrust = require_utils10().compileTrust;
158295
- var resolve6 = __require("node:path").resolve;
157903
+ var resolve5 = __require("node:path").resolve;
158296
157904
  var once9 = require_once();
158297
157905
  var Router = require_router();
158298
157906
  var slice = Array.prototype.slice;
@@ -158320,10 +157928,10 @@ var require_application = __commonJS((exports, module) => {
158320
157928
  });
158321
157929
  };
158322
157930
  app.defaultConfiguration = function defaultConfiguration() {
158323
- var env3 = "development";
157931
+ var env2 = "development";
158324
157932
  this.enable("x-powered-by");
158325
157933
  this.set("etag", "weak");
158326
- this.set("env", env3);
157934
+ this.set("env", env2);
158327
157935
  this.set("query parser", "simple");
158328
157936
  this.set("subdomain offset", 2);
158329
157937
  this.set("trust proxy", false);
@@ -158331,7 +157939,7 @@ var require_application = __commonJS((exports, module) => {
158331
157939
  configurable: true,
158332
157940
  value: true
158333
157941
  });
158334
- debug("booting in %s mode", env3);
157942
+ debug("booting in %s mode", env2);
158335
157943
  this.on("mount", function onmount(parent) {
158336
157944
  if (this.settings[trustProxyDefaultSymbol] === true && typeof parent.settings["trust proxy fn"] === "function") {
158337
157945
  delete this.settings["trust proxy"];
@@ -158346,9 +157954,9 @@ var require_application = __commonJS((exports, module) => {
158346
157954
  this.mountpath = "/";
158347
157955
  this.locals.settings = this.settings;
158348
157956
  this.set("view", View);
158349
- this.set("views", resolve6("views"));
157957
+ this.set("views", resolve5("views"));
158350
157958
  this.set("jsonp callback name", "callback");
158351
- if (env3 === "production") {
157959
+ if (env2 === "production") {
158352
157960
  this.enable("view cache");
158353
157961
  }
158354
157962
  };
@@ -159311,7 +158919,7 @@ var require_request = __commonJS((exports, module) => {
159311
158919
  var http = __require("node:http");
159312
158920
  var fresh = require_fresh();
159313
158921
  var parseRange = require_range_parser();
159314
- var parse11 = require_parseurl();
158922
+ var parse10 = require_parseurl();
159315
158923
  var proxyaddr = require_proxy_addr();
159316
158924
  var req = Object.create(http.IncomingMessage.prototype);
159317
158925
  module.exports = req;
@@ -159357,7 +158965,7 @@ var require_request = __commonJS((exports, module) => {
159357
158965
  if (!queryparse) {
159358
158966
  return Object.create(null);
159359
158967
  }
159360
- var querystring = parse11(this).query;
158968
+ var querystring = parse10(this).query;
159361
158969
  return queryparse(querystring);
159362
158970
  });
159363
158971
  req.is = function is8(types) {
@@ -159402,7 +159010,7 @@ var require_request = __commonJS((exports, module) => {
159402
159010
  return subdomains2.slice(offset);
159403
159011
  });
159404
159012
  defineGetter(req, "path", function path18() {
159405
- return parse11(this).pathname;
159013
+ return parse10(this).pathname;
159406
159014
  });
159407
159015
  defineGetter(req, "host", function host() {
159408
159016
  var trust = this.app.get("trust proxy fn");
@@ -159460,7 +159068,7 @@ var require_content_disposition = __commonJS((exports, module) => {
159460
159068
  * MIT Licensed
159461
159069
  */
159462
159070
  module.exports = contentDisposition;
159463
- module.exports.parse = parse11;
159071
+ module.exports.parse = parse10;
159464
159072
  var basename4 = __require("path").basename;
159465
159073
  var ENCODE_URL_ATTR_CHAR_REGEXP = /[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g;
159466
159074
  var HEX_ESCAPE_REGEXP = /%[0-9A-Fa-f]{2}/;
@@ -159551,7 +159159,7 @@ var require_content_disposition = __commonJS((exports, module) => {
159551
159159
  function getlatin1(val) {
159552
159160
  return String(val).replace(NON_LATIN1_REGEXP, "?");
159553
159161
  }
159554
- function parse11(string4) {
159162
+ function parse10(string4) {
159555
159163
  if (!string4 || typeof string4 !== "string") {
159556
159164
  throw new TypeError("argument string is required");
159557
159165
  }
@@ -159620,19 +159228,19 @@ var require_content_disposition = __commonJS((exports, module) => {
159620
159228
  // node_modules/cookie-signature/index.js
159621
159229
  var require_cookie_signature = __commonJS((exports) => {
159622
159230
  var crypto = __require("crypto");
159623
- exports.sign = function(val, secret2) {
159231
+ exports.sign = function(val, secret) {
159624
159232
  if (typeof val != "string")
159625
159233
  throw new TypeError("Cookie value must be provided as a string.");
159626
- if (secret2 == null)
159234
+ if (secret == null)
159627
159235
  throw new TypeError("Secret key must be provided.");
159628
- return val + "." + crypto.createHmac("sha256", secret2).update(val).digest("base64").replace(/\=+$/, "");
159236
+ return val + "." + crypto.createHmac("sha256", secret).update(val).digest("base64").replace(/\=+$/, "");
159629
159237
  };
159630
- exports.unsign = function(input, secret2) {
159238
+ exports.unsign = function(input, secret) {
159631
159239
  if (typeof input != "string")
159632
159240
  throw new TypeError("Signed cookie string must be provided.");
159633
- if (secret2 == null)
159241
+ if (secret == null)
159634
159242
  throw new TypeError("Secret key must be provided.");
159635
- var tentativeValue = input.slice(0, input.lastIndexOf(".")), expectedInput = exports.sign(tentativeValue, secret2), expectedBuffer = Buffer.from(expectedInput), inputBuffer = Buffer.from(input);
159243
+ var tentativeValue = input.slice(0, input.lastIndexOf(".")), expectedInput = exports.sign(tentativeValue, secret), expectedBuffer = Buffer.from(expectedInput), inputBuffer = Buffer.from(input);
159636
159244
  return expectedBuffer.length === inputBuffer.length && crypto.timingSafeEqual(expectedBuffer, inputBuffer) ? tentativeValue : false;
159637
159245
  };
159638
159246
  });
@@ -159645,7 +159253,7 @@ var require_cookie = __commonJS((exports) => {
159645
159253
  * Copyright(c) 2015 Douglas Christopher Wilson
159646
159254
  * MIT Licensed
159647
159255
  */
159648
- exports.parse = parse11;
159256
+ exports.parse = parse10;
159649
159257
  exports.serialize = serialize2;
159650
159258
  var __toString = Object.prototype.toString;
159651
159259
  var __hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -159653,7 +159261,7 @@ var require_cookie = __commonJS((exports) => {
159653
159261
  var cookieValueRegExp = /^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/;
159654
159262
  var domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i;
159655
159263
  var pathValueRegExp = /^[\u0020-\u003A\u003D-\u007E]*$/;
159656
- function parse11(str, opt) {
159264
+ function parse10(str, opt) {
159657
159265
  if (typeof str !== "string") {
159658
159266
  throw new TypeError("argument str must be a string");
159659
159267
  }
@@ -159837,7 +159445,7 @@ var require_send = __commonJS((exports, module) => {
159837
159445
  var extname2 = path18.extname;
159838
159446
  var join15 = path18.join;
159839
159447
  var normalize = path18.normalize;
159840
- var resolve6 = path18.resolve;
159448
+ var resolve5 = path18.resolve;
159841
159449
  var sep = path18.sep;
159842
159450
  var BYTES_RANGE_REGEXP = /^ *bytes=/;
159843
159451
  var MAX_MAXAGE = 60 * 60 * 24 * 365 * 1000;
@@ -159866,7 +159474,7 @@ var require_send = __commonJS((exports, module) => {
159866
159474
  this._maxage = opts.maxAge || opts.maxage;
159867
159475
  this._maxage = typeof this._maxage === "string" ? ms8(this._maxage) : Number(this._maxage);
159868
159476
  this._maxage = !isNaN(this._maxage) ? Math.min(Math.max(0, this._maxage), MAX_MAXAGE) : 0;
159869
- this._root = opts.root ? resolve6(opts.root) : null;
159477
+ this._root = opts.root ? resolve5(opts.root) : null;
159870
159478
  }
159871
159479
  util2.inherits(SendStream, Stream2);
159872
159480
  SendStream.prototype.error = function error48(status, err) {
@@ -160015,7 +159623,7 @@ var require_send = __commonJS((exports, module) => {
160015
159623
  return res;
160016
159624
  }
160017
159625
  parts = normalize(path19).split(sep);
160018
- path19 = resolve6(path19);
159626
+ path19 = resolve5(path19);
160019
159627
  }
160020
159628
  if (containsDotFile(parts)) {
160021
159629
  debug('%s dotfile "%s"', this._dotfiles, path19);
@@ -160343,7 +159951,7 @@ var require_response = __commonJS((exports, module) => {
160343
159951
  var cookie = require_cookie();
160344
159952
  var send = require_send();
160345
159953
  var extname2 = path18.extname;
160346
- var resolve6 = path18.resolve;
159954
+ var resolve5 = path18.resolve;
160347
159955
  var vary = require_vary();
160348
159956
  var { Buffer: Buffer7 } = __require("node:buffer");
160349
159957
  var res = Object.create(http.ServerResponse.prototype);
@@ -160552,7 +160160,7 @@ var require_response = __commonJS((exports, module) => {
160552
160160
  }
160553
160161
  opts = Object.create(opts);
160554
160162
  opts.headers = headers;
160555
- var fullPath = !opts.root ? resolve6(path19) : path19;
160163
+ var fullPath = !opts.root ? resolve5(path19) : path19;
160556
160164
  return this.sendFile(fullPath, opts, done);
160557
160165
  };
160558
160166
  res.contentType = res.type = function contentType(type) {
@@ -160623,14 +160231,14 @@ var require_response = __commonJS((exports, module) => {
160623
160231
  };
160624
160232
  res.cookie = function(name2, value, options8) {
160625
160233
  var opts = { ...options8 };
160626
- var secret2 = this.req.secret;
160234
+ var secret = this.req.secret;
160627
160235
  var signed = opts.signed;
160628
- if (signed && !secret2) {
160236
+ if (signed && !secret) {
160629
160237
  throw new Error('cookieParser("secret") required for signed cookies');
160630
160238
  }
160631
160239
  var val = typeof value === "object" ? "j:" + JSON.stringify(value) : String(value);
160632
160240
  if (signed) {
160633
- val = "s:" + sign2(val, secret2);
160241
+ val = "s:" + sign2(val, secret);
160634
160242
  }
160635
160243
  if (opts.maxAge != null) {
160636
160244
  var maxAge = opts.maxAge - 0;
@@ -160813,7 +160421,7 @@ var require_serve_static = __commonJS((exports, module) => {
160813
160421
  var encodeUrl = require_encodeurl();
160814
160422
  var escapeHtml = require_escape_html();
160815
160423
  var parseUrl = require_parseurl();
160816
- var resolve6 = __require("path").resolve;
160424
+ var resolve5 = __require("path").resolve;
160817
160425
  var send = require_send();
160818
160426
  var url3 = __require("url");
160819
160427
  module.exports = serveStatic;
@@ -160832,7 +160440,7 @@ var require_serve_static = __commonJS((exports, module) => {
160832
160440
  throw new TypeError("option setHeaders must be function");
160833
160441
  }
160834
160442
  opts.maxage = opts.maxage || opts.maxAge || 0;
160835
- opts.root = resolve6(root2);
160443
+ opts.root = resolve5(root2);
160836
160444
  var onDirectory = redirect ? createRedirectDirectoryListener() : createNotFoundDirectoryListener();
160837
160445
  return function serveStatic2(req, res, next) {
160838
160446
  if (req.method !== "GET" && req.method !== "HEAD") {
@@ -163823,8 +163431,8 @@ var require_executor = __commonJS((exports, module) => {
163823
163431
  }
163824
163432
  resetBuffer() {
163825
163433
  this.buffer = new Waterfall;
163826
- this.buffer.chain(new Promise((resolve6) => {
163827
- this._triggerBuffer = resolve6;
163434
+ this.buffer.chain(new Promise((resolve5) => {
163435
+ this._triggerBuffer = resolve5;
163828
163436
  }));
163829
163437
  if (this.ready)
163830
163438
  this._triggerBuffer();
@@ -164844,7 +164452,7 @@ var require_storage = __commonJS((exports, module) => {
164844
164452
  throw e8;
164845
164453
  }
164846
164454
  };
164847
- var writeFileLinesAsync = (filename, lines, mode = DEFAULT_FILE_MODE) => new Promise((resolve6, reject) => {
164455
+ var writeFileLinesAsync = (filename, lines, mode = DEFAULT_FILE_MODE) => new Promise((resolve5, reject) => {
164848
164456
  try {
164849
164457
  const stream = writeFileStream(filename, { mode });
164850
164458
  const readable2 = Readable6.from(lines);
@@ -164861,7 +164469,7 @@ var require_storage = __commonJS((exports, module) => {
164861
164469
  if (err)
164862
164470
  reject(err);
164863
164471
  else
164864
- resolve6();
164472
+ resolve5();
164865
164473
  });
164866
164474
  });
164867
164475
  readable2.on("error", (err) => {
@@ -165032,7 +164640,7 @@ var require_persistence = __commonJS((exports, module) => {
165032
164640
  return { data: tdata, indexes };
165033
164641
  }
165034
164642
  treatRawStreamAsync(rawStream) {
165035
- return new Promise((resolve6, reject) => {
164643
+ return new Promise((resolve5, reject) => {
165036
164644
  const dataById = {};
165037
164645
  const indexes = {};
165038
164646
  let corruptItems = 0;
@@ -165075,7 +164683,7 @@ var require_persistence = __commonJS((exports, module) => {
165075
164683
  }
165076
164684
  }
165077
164685
  const data = Object.values(dataById);
165078
- resolve6({ data, indexes });
164686
+ resolve5({ data, indexes });
165079
164687
  });
165080
164688
  lineStream.on("error", function(err) {
165081
164689
  reject(err, null);
@@ -187070,7 +186678,7 @@ var require_extension = __commonJS((exports, module) => {
187070
186678
  else
187071
186679
  dest[name2].push(elem);
187072
186680
  }
187073
- function parse11(header2) {
186681
+ function parse10(header2) {
187074
186682
  const offers = Object.create(null);
187075
186683
  let params = Object.create(null);
187076
186684
  let mustUnescape = false;
@@ -187223,7 +186831,7 @@ var require_extension = __commonJS((exports, module) => {
187223
186831
  }).join(", ");
187224
186832
  }).join(", ");
187225
186833
  }
187226
- module.exports = { format: format3, parse: parse11 };
186834
+ module.exports = { format: format3, parse: parse10 };
187227
186835
  });
187228
186836
 
187229
186837
  // node_modules/ws/lib/websocket.js
@@ -187253,7 +186861,7 @@ var require_websocket2 = __commonJS((exports, module) => {
187253
186861
  var {
187254
186862
  EventTarget: { addEventListener, removeEventListener }
187255
186863
  } = require_event_target();
187256
- var { format: format3, parse: parse11 } = require_extension();
186864
+ var { format: format3, parse: parse10 } = require_extension();
187257
186865
  var { toBuffer } = require_buffer_util();
187258
186866
  var closeTimeout = 30 * 1000;
187259
186867
  var kAborted = Symbol("kAborted");
@@ -187796,7 +187404,7 @@ var require_websocket2 = __commonJS((exports, module) => {
187796
187404
  }
187797
187405
  let extensions;
187798
187406
  try {
187799
- extensions = parse11(secWebSocketExtensions);
187407
+ extensions = parse10(secWebSocketExtensions);
187800
187408
  } catch (err) {
187801
187409
  const message = "Invalid Sec-WebSocket-Extensions header";
187802
187410
  abortHandshake(websocket, socket, message);
@@ -188091,7 +187699,7 @@ var require_stream6 = __commonJS((exports, module) => {
188091
187699
  // node_modules/ws/lib/subprotocol.js
188092
187700
  var require_subprotocol = __commonJS((exports, module) => {
188093
187701
  var { tokenChars } = require_validation();
188094
- function parse11(header2) {
187702
+ function parse10(header2) {
188095
187703
  const protocols = new Set;
188096
187704
  let start = -1;
188097
187705
  let end = -1;
@@ -188130,7 +187738,7 @@ var require_subprotocol = __commonJS((exports, module) => {
188130
187738
  protocols.add(protocol);
188131
187739
  return protocols;
188132
187740
  }
188133
- module.exports = { parse: parse11 };
187741
+ module.exports = { parse: parse10 };
188134
187742
  });
188135
187743
 
188136
187744
  // node_modules/ws/lib/websocket-server.js
@@ -190686,13 +190294,13 @@ var require_broadcast_operator = __commonJS((exports) => {
190686
190294
  return true;
190687
190295
  }
190688
190296
  emitWithAck(ev2, ...args) {
190689
- return new Promise((resolve6, reject) => {
190297
+ return new Promise((resolve5, reject) => {
190690
190298
  args.push((err, responses) => {
190691
190299
  if (err) {
190692
190300
  err.responses = responses;
190693
190301
  return reject(err);
190694
190302
  } else {
190695
- return resolve6(responses);
190303
+ return resolve5(responses);
190696
190304
  }
190697
190305
  });
190698
190306
  this.emit(ev2, ...args);
@@ -190880,12 +190488,12 @@ var require_socket2 = __commonJS((exports) => {
190880
190488
  }
190881
190489
  emitWithAck(ev2, ...args) {
190882
190490
  const withErr = this.flags.timeout !== undefined;
190883
- return new Promise((resolve6, reject) => {
190491
+ return new Promise((resolve5, reject) => {
190884
190492
  args.push((arg1, arg2) => {
190885
190493
  if (withErr) {
190886
- return arg1 ? reject(arg1) : resolve6(arg2);
190494
+ return arg1 ? reject(arg1) : resolve5(arg2);
190887
190495
  } else {
190888
- return resolve6(arg1);
190496
+ return resolve5(arg1);
190889
190497
  }
190890
190498
  });
190891
190499
  this.emit(ev2, ...args);
@@ -191340,13 +190948,13 @@ var require_namespace = __commonJS((exports) => {
191340
190948
  return true;
191341
190949
  }
191342
190950
  serverSideEmitWithAck(ev2, ...args) {
191343
- return new Promise((resolve6, reject) => {
190951
+ return new Promise((resolve5, reject) => {
191344
190952
  args.push((err, responses) => {
191345
190953
  if (err) {
191346
190954
  err.responses = responses;
191347
190955
  return reject(err);
191348
190956
  } else {
191349
- return resolve6(responses);
190957
+ return resolve5(responses);
191350
190958
  }
191351
190959
  });
191352
190960
  this.serverSideEmit(ev2, ...args);
@@ -192030,7 +191638,7 @@ var require_cluster_adapter = __commonJS((exports) => {
192030
191638
  return localSockets;
192031
191639
  }
192032
191640
  const requestId = randomId();
192033
- return new Promise((resolve6, reject) => {
191641
+ return new Promise((resolve5, reject) => {
192034
191642
  const timeout3 = setTimeout(() => {
192035
191643
  const storedRequest2 = this.requests.get(requestId);
192036
191644
  if (storedRequest2) {
@@ -192040,7 +191648,7 @@ var require_cluster_adapter = __commonJS((exports) => {
192040
191648
  }, opts.flags.timeout || DEFAULT_TIMEOUT);
192041
191649
  const storedRequest = {
192042
191650
  type: MessageType.FETCH_SOCKETS,
192043
- resolve: resolve6,
191651
+ resolve: resolve5,
192044
191652
  timeout: timeout3,
192045
191653
  current: 0,
192046
191654
  expected: expectedResponseCount,
@@ -192250,7 +191858,7 @@ var require_cluster_adapter = __commonJS((exports) => {
192250
191858
  return localSockets;
192251
191859
  }
192252
191860
  const requestId = randomId();
192253
- return new Promise((resolve6, reject) => {
191861
+ return new Promise((resolve5, reject) => {
192254
191862
  const timeout3 = setTimeout(() => {
192255
191863
  const storedRequest2 = this.customRequests.get(requestId);
192256
191864
  if (storedRequest2) {
@@ -192260,7 +191868,7 @@ var require_cluster_adapter = __commonJS((exports) => {
192260
191868
  }, opts.flags.timeout || DEFAULT_TIMEOUT);
192261
191869
  const storedRequest = {
192262
191870
  type: MessageType.FETCH_SOCKETS,
192263
- resolve: resolve6,
191871
+ resolve: resolve5,
192264
191872
  timeout: timeout3,
192265
191873
  missingUids: new Set([...this.nodesMap.keys()]),
192266
191874
  responses: localSockets
@@ -192545,7 +192153,7 @@ var require_uws = __commonJS((exports) => {
192545
192153
  });
192546
192154
 
192547
192155
  // node_modules/socket.io/package.json
192548
- var require_package4 = __commonJS((exports, module) => {
192156
+ var require_package3 = __commonJS((exports, module) => {
192549
192157
  module.exports = {
192550
192158
  name: "socket.io",
192551
192159
  version: "4.8.3",
@@ -192701,7 +192309,7 @@ var require_dist4 = __commonJS((exports, module) => {
192701
192309
  var uws_1 = require_uws();
192702
192310
  var cors_1 = __importDefault(require_lib4());
192703
192311
  var debug = (0, debug_1.default)("socket.io:server");
192704
- var clientVersion = require_package4().version;
192312
+ var clientVersion = require_package3().version;
192705
192313
  var dotMapRegex = /\.map/;
192706
192314
 
192707
192315
  class Server extends typed_events_1.StrictEventEmitter {
@@ -192989,13 +192597,13 @@ var require_dist4 = __commonJS((exports, module) => {
192989
192597
  this.engine.close();
192990
192598
  (0, uws_1.restoreAdapter)();
192991
192599
  if (this.httpServer) {
192992
- return new Promise((resolve6) => {
192600
+ return new Promise((resolve5) => {
192993
192601
  this.httpServer.close((err) => {
192994
192602
  fn9 && fn9(err);
192995
192603
  if (err) {
192996
192604
  debug("server was not running");
192997
192605
  }
192998
- resolve6();
192606
+ resolve5();
192999
192607
  });
193000
192608
  });
193001
192609
  } else {
@@ -217018,68 +216626,6 @@ async function getUserInfo(accessToken) {
217018
216626
  }
217019
216627
  return result.data;
217020
216628
  }
217021
- // src/core/resources/secret/schema.ts
217022
- var ListSecretsResponseSchema = exports_external.record(exports_external.string(), exports_external.string());
217023
- var SetSecretsResponseSchema = exports_external.object({
217024
- success: exports_external.boolean()
217025
- });
217026
- var DeleteSecretResponseSchema = exports_external.object({
217027
- success: exports_external.boolean()
217028
- });
217029
-
217030
- // src/core/resources/secret/api.ts
217031
- async function listSecrets() {
217032
- const appClient = getAppClient();
217033
- let response;
217034
- try {
217035
- response = await appClient.get("secrets");
217036
- } catch (error48) {
217037
- throw await ApiError.fromHttpError(error48, "listing secrets");
217038
- }
217039
- const result = ListSecretsResponseSchema.safeParse(await response.json());
217040
- if (!result.success) {
217041
- throw new SchemaValidationError("Invalid response from server", result.error);
217042
- }
217043
- return result.data;
217044
- }
217045
- async function setSecrets(secrets) {
217046
- const appClient = getAppClient();
217047
- let response;
217048
- try {
217049
- response = await appClient.post("secrets", {
217050
- json: secrets
217051
- });
217052
- } catch (error48) {
217053
- throw await ApiError.fromHttpError(error48, "setting secrets");
217054
- }
217055
- const result = SetSecretsResponseSchema.safeParse(await response.json());
217056
- if (!result.success) {
217057
- throw new SchemaValidationError("Invalid response from server", result.error);
217058
- }
217059
- return result.data;
217060
- }
217061
- async function deleteSecret(name2) {
217062
- const appClient = getAppClient();
217063
- let response;
217064
- try {
217065
- response = await appClient.delete("secrets", {
217066
- searchParams: { secret_name: name2 }
217067
- });
217068
- } catch (error48) {
217069
- throw await ApiError.fromHttpError(error48, "deleting secret");
217070
- }
217071
- const result = DeleteSecretResponseSchema.safeParse(await response.json());
217072
- if (!result.success) {
217073
- throw new SchemaValidationError("Invalid response from server", result.error);
217074
- }
217075
- return result.data;
217076
- }
217077
- // src/core/utils/env.ts
217078
- var import_dotenv = __toESM(require_main(), 1);
217079
- async function parseEnvFile(filePath) {
217080
- const content = await readTextFile(filePath);
217081
- return import_dotenv.parse(content);
217082
- }
217083
216629
  // node_modules/chalk/source/vendor/ansi-styles/index.js
217084
216630
  var ANSI_BACKGROUND_OFFSET = 10;
217085
216631
  var wrapAnsi16 = (offset = 0) => (code2) => `\x1B[${code2 + offset}m`;
@@ -217267,7 +216813,7 @@ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process5.
217267
216813
  const terminatorPosition = argv.indexOf("--");
217268
216814
  return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
217269
216815
  }
217270
- var { env: env2 } = process5;
216816
+ var { env } = process5;
217271
216817
  var flagForceColor;
217272
216818
  if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
217273
216819
  flagForceColor = 0;
@@ -217275,14 +216821,14 @@ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || has
217275
216821
  flagForceColor = 1;
217276
216822
  }
217277
216823
  function envForceColor() {
217278
- if ("FORCE_COLOR" in env2) {
217279
- if (env2.FORCE_COLOR === "true") {
216824
+ if ("FORCE_COLOR" in env) {
216825
+ if (env.FORCE_COLOR === "true") {
217280
216826
  return 1;
217281
216827
  }
217282
- if (env2.FORCE_COLOR === "false") {
216828
+ if (env.FORCE_COLOR === "false") {
217283
216829
  return 0;
217284
216830
  }
217285
- return env2.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
216831
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
217286
216832
  }
217287
216833
  }
217288
216834
  function translateLevel(level) {
@@ -217313,14 +216859,14 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
217313
216859
  return 2;
217314
216860
  }
217315
216861
  }
217316
- if ("TF_BUILD" in env2 && "AGENT_NAME" in env2) {
216862
+ if ("TF_BUILD" in env && "AGENT_NAME" in env) {
217317
216863
  return 1;
217318
216864
  }
217319
216865
  if (haveStream && !streamIsTTY && forceColor === undefined) {
217320
216866
  return 0;
217321
216867
  }
217322
216868
  const min = forceColor || 0;
217323
- if (env2.TERM === "dumb") {
216869
+ if (env.TERM === "dumb") {
217324
216870
  return min;
217325
216871
  }
217326
216872
  if (process5.platform === "win32") {
@@ -217330,33 +216876,33 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
217330
216876
  }
217331
216877
  return 1;
217332
216878
  }
217333
- if ("CI" in env2) {
217334
- if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => (key in env2))) {
216879
+ if ("CI" in env) {
216880
+ if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => (key in env))) {
217335
216881
  return 3;
217336
216882
  }
217337
- if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => (sign in env2)) || env2.CI_NAME === "codeship") {
216883
+ if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => (sign in env)) || env.CI_NAME === "codeship") {
217338
216884
  return 1;
217339
216885
  }
217340
216886
  return min;
217341
216887
  }
217342
- if ("TEAMCITY_VERSION" in env2) {
217343
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
216888
+ if ("TEAMCITY_VERSION" in env) {
216889
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
217344
216890
  }
217345
- if (env2.COLORTERM === "truecolor") {
216891
+ if (env.COLORTERM === "truecolor") {
217346
216892
  return 3;
217347
216893
  }
217348
- if (env2.TERM === "xterm-kitty") {
216894
+ if (env.TERM === "xterm-kitty") {
217349
216895
  return 3;
217350
216896
  }
217351
- if (env2.TERM === "xterm-ghostty") {
216897
+ if (env.TERM === "xterm-ghostty") {
217352
216898
  return 3;
217353
216899
  }
217354
- if (env2.TERM === "wezterm") {
216900
+ if (env.TERM === "wezterm") {
217355
216901
  return 3;
217356
216902
  }
217357
- if ("TERM_PROGRAM" in env2) {
217358
- const version2 = Number.parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
217359
- switch (env2.TERM_PROGRAM) {
216903
+ if ("TERM_PROGRAM" in env) {
216904
+ const version2 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
216905
+ switch (env.TERM_PROGRAM) {
217360
216906
  case "iTerm.app": {
217361
216907
  return version2 >= 3 ? 3 : 2;
217362
216908
  }
@@ -217365,13 +216911,13 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
217365
216911
  }
217366
216912
  }
217367
216913
  }
217368
- if (/-256(color)?$/i.test(env2.TERM)) {
216914
+ if (/-256(color)?$/i.test(env.TERM)) {
217369
216915
  return 2;
217370
216916
  }
217371
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
216917
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
217372
216918
  return 1;
217373
216919
  }
217374
- if ("COLORTERM" in env2) {
216920
+ if ("COLORTERM" in env) {
217375
216921
  return 1;
217376
216922
  }
217377
216923
  return min;
@@ -218210,12 +217756,12 @@ var NO_ESCAPE_REGEXP = /^[\w./-]+$/;
218210
217756
  // node_modules/is-unicode-supported/index.js
218211
217757
  import process7 from "node:process";
218212
217758
  function isUnicodeSupported() {
218213
- const { env: env3 } = process7;
218214
- const { TERM, TERM_PROGRAM } = env3;
217759
+ const { env: env2 } = process7;
217760
+ const { TERM, TERM_PROGRAM } = env2;
218215
217761
  if (process7.platform !== "win32") {
218216
217762
  return TERM !== "linux";
218217
217763
  }
218218
- return Boolean(env3.WT_SESSION) || Boolean(env3.TERMINUS_SUBLIME) || env3.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env3.TERMINAL_EMULATOR === "JetBrains-JediTerm";
217764
+ return Boolean(env2.WT_SESSION) || Boolean(env2.TERMINUS_SUBLIME) || env2.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env2.TERMINAL_EMULATOR === "JetBrains-JediTerm";
218219
217765
  }
218220
217766
 
218221
217767
  // node_modules/figures/index.js
@@ -218728,13 +218274,13 @@ import path12 from "node:path";
218728
218274
  // node_modules/npm-run-path/node_modules/path-key/index.js
218729
218275
  function pathKey(options = {}) {
218730
218276
  const {
218731
- env: env3 = process.env,
218277
+ env: env2 = process.env,
218732
218278
  platform: platform6 = process.platform
218733
218279
  } = options;
218734
218280
  if (platform6 !== "win32") {
218735
218281
  return "PATH";
218736
218282
  }
218737
- return Object.keys(env3).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
218283
+ return Object.keys(env2).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
218738
218284
  }
218739
218285
 
218740
218286
  // node_modules/npm-run-path/node_modules/unicorn-magic/node.js
@@ -218794,12 +218340,12 @@ var applyExecPath = (result, pathParts, execPath, cwdPath) => {
218794
218340
  result.push(pathPart);
218795
218341
  }
218796
218342
  };
218797
- var npmRunPathEnv = ({ env: env3 = process8.env, ...options } = {}) => {
218798
- env3 = { ...env3 };
218799
- const pathName = pathKey({ env: env3 });
218800
- options.path = env3[pathName];
218801
- env3[pathName] = npmRunPath(options);
218802
- return env3;
218343
+ var npmRunPathEnv = ({ env: env2 = process8.env, ...options } = {}) => {
218344
+ env2 = { ...env2 };
218345
+ const pathName = pathKey({ env: env2 });
218346
+ options.path = env2[pathName];
218347
+ env2[pathName] = npmRunPath(options);
218348
+ return env2;
218803
218349
  };
218804
218350
 
218805
218351
  // node_modules/execa/lib/terminate/kill.js
@@ -220148,17 +219694,17 @@ var addDefaultOptions = ({
220148
219694
  serialization
220149
219695
  });
220150
219696
  var getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath: nodePath2 }) => {
220151
- const env3 = extendEnv ? { ...process10.env, ...envOption } : envOption;
219697
+ const env2 = extendEnv ? { ...process10.env, ...envOption } : envOption;
220152
219698
  if (preferLocal || node) {
220153
219699
  return npmRunPathEnv({
220154
- env: env3,
219700
+ env: env2,
220155
219701
  cwd: localDirectory,
220156
219702
  execPath: nodePath2,
220157
219703
  preferLocal,
220158
219704
  addExecPath: node
220159
219705
  });
220160
219706
  }
220161
- return env3;
219707
+ return env2;
220162
219708
  };
220163
219709
 
220164
219710
  // node_modules/execa/lib/arguments/shell.js
@@ -224418,7 +223964,6 @@ var package_default = {
224418
223964
  commander: "^12.1.0",
224419
223965
  "common-tags": "^1.8.2",
224420
223966
  cors: "^2.8.5",
224421
- dotenv: "17.3.1",
224422
223967
  ejs: "^3.1.10",
224423
223968
  execa: "^9.6.1",
224424
223969
  express: "^5.0.1",
@@ -226065,114 +225610,8 @@ function getLogsCommand(context) {
226065
225610
  });
226066
225611
  }
226067
225612
 
226068
- // src/cli/commands/secrets/delete.ts
226069
- async function deleteSecretAction(key) {
226070
- await runTask(`Deleting secret "${key}"`, async () => {
226071
- return await deleteSecret(key);
226072
- }, {
226073
- successMessage: `Secret "${key}" deleted`,
226074
- errorMessage: `Failed to delete secret "${key}"`
226075
- });
226076
- return {
226077
- outroMessage: "Secret deleted successfully."
226078
- };
226079
- }
226080
- function getSecretsDeleteCommand(context) {
226081
- return new Command("delete").description("Delete a secret").argument("<key>", "Secret name to delete").action(async (key) => {
226082
- await runCommand(() => deleteSecretAction(key), { requireAuth: true }, context);
226083
- });
226084
- }
226085
-
226086
- // src/cli/commands/secrets/list.ts
226087
- async function listSecretsAction() {
226088
- const secrets = await runTask("Fetching secrets from Base44", async () => {
226089
- return await listSecrets();
226090
- }, {
226091
- successMessage: "Secrets fetched successfully",
226092
- errorMessage: "Failed to fetch secrets"
226093
- });
226094
- const names = Object.keys(secrets);
226095
- if (names.length === 0) {
226096
- return { outroMessage: "No secrets configured." };
226097
- }
226098
- for (const name2 of names) {
226099
- R2.info(name2);
226100
- }
226101
- return {
226102
- outroMessage: `Found ${names.length} secrets.`
226103
- };
226104
- }
226105
- function getSecretsListCommand(context) {
226106
- return new Command("list").description("List secret names").action(async () => {
226107
- await runCommand(listSecretsAction, { requireAuth: true }, context);
226108
- });
226109
- }
226110
-
226111
- // src/cli/commands/secrets/set.ts
226112
- import { resolve as resolve3 } from "node:path";
226113
- function parseEntries(entries) {
226114
- const secrets = {};
226115
- for (const entry of entries) {
226116
- const eqIndex = entry.indexOf("=");
226117
- if (eqIndex === -1) {
226118
- throw new InvalidInputError(`Invalid format: "${entry}". Expected KEY=VALUE.`);
226119
- }
226120
- const key = entry.slice(0, eqIndex);
226121
- const value = entry.slice(eqIndex + 1);
226122
- if (!key) {
226123
- throw new InvalidInputError(`Invalid format: "${entry}". Key cannot be empty.`);
226124
- }
226125
- secrets[key] = value;
226126
- }
226127
- return secrets;
226128
- }
226129
- function validateInput(command) {
226130
- const entries = command.args;
226131
- const { envFile } = command.opts();
226132
- const hasEntries = entries.length > 0;
226133
- const hasEnvFile = Boolean(envFile);
226134
- if (!hasEntries && !hasEnvFile) {
226135
- throw new InvalidInputError("Provide KEY=VALUE pairs or use --env-file. Example: base44 secrets set KEY1=VALUE1 KEY2=VALUE2");
226136
- }
226137
- if (hasEntries && hasEnvFile) {
226138
- throw new InvalidInputError("Provide KEY=VALUE pairs or --env-file, but not both.");
226139
- }
226140
- }
226141
- async function setSecretsAction(entries, options) {
226142
- let secrets;
226143
- if (options.envFile) {
226144
- secrets = await parseEnvFile(resolve3(options.envFile));
226145
- if (Object.keys(secrets).length === 0) {
226146
- throw new InvalidInputError("The env file contains no valid KEY=VALUE entries.");
226147
- }
226148
- } else {
226149
- secrets = parseEntries(entries);
226150
- }
226151
- const names = Object.keys(secrets);
226152
- await runTask(`Setting ${names.length} secrets`, async () => {
226153
- return await setSecrets(secrets);
226154
- }, {
226155
- successMessage: `${names.length} secrets set successfully`,
226156
- errorMessage: "Failed to set secrets"
226157
- });
226158
- R2.info(`Set: ${names.join(", ")}`);
226159
- return {
226160
- outroMessage: "Secrets set successfully."
226161
- };
226162
- }
226163
- function getSecretsSetCommand(context) {
226164
- return new Command("set").description("Set one or more secrets (KEY=VALUE format)").argument("[entries...]", "KEY=VALUE pairs (e.g. KEY1=VALUE1 KEY2=VALUE2)").option("--env-file <path>", "Path to .env file").hook("preAction", validateInput).action(async (entries, options) => {
226165
- await runCommand(() => setSecretsAction(entries, options), { requireAuth: true }, context);
226166
- });
226167
- }
226168
-
226169
- // src/cli/commands/secrets/index.ts
226170
- function getSecretsCommand(context) {
226171
- return new Command("secrets").description("Manage project secrets (environment variables)").addCommand(getSecretsListCommand(context)).addCommand(getSecretsSetCommand(context)).addCommand(getSecretsDeleteCommand(context));
226172
- }
226173
-
226174
225613
  // src/cli/commands/site/deploy.ts
226175
- import { resolve as resolve4 } from "node:path";
225614
+ import { resolve as resolve3 } from "node:path";
226176
225615
  async function deployAction2(options) {
226177
225616
  const { project: project2 } = await readProjectConfig();
226178
225617
  if (!project2.site?.outputDirectory) {
@@ -226184,7 +225623,7 @@ async function deployAction2(options) {
226184
225623
  ]
226185
225624
  });
226186
225625
  }
226187
- const outputDir = resolve4(project2.root, project2.site.outputDirectory);
225626
+ const outputDir = resolve3(project2.root, project2.site.outputDirectory);
226188
225627
  if (!options.yes) {
226189
225628
  const shouldDeploy = await Re({
226190
225629
  message: `Deploy site from ${project2.site.outputDirectory}?`
@@ -226286,9 +225725,9 @@ async function generateContent(input) {
226286
225725
  `);
226287
225726
  }
226288
225727
  async function compileEntity(entity2) {
226289
- const { name: name2, ...schema9 } = entity2;
225728
+ const { name: name2, ...schema8 } = entity2;
226290
225729
  const jsonSchema = {
226291
- ...schema9,
225730
+ ...schema8,
226292
225731
  title: name2,
226293
225732
  additionalProperties: false
226294
225733
  };
@@ -226392,14 +225831,14 @@ var getLocalHosts = () => {
226392
225831
  }
226393
225832
  return results;
226394
225833
  };
226395
- var checkAvailablePort = (options8) => new Promise((resolve6, reject) => {
225834
+ var checkAvailablePort = (options8) => new Promise((resolve5, reject) => {
226396
225835
  const server = net.createServer();
226397
225836
  server.unref();
226398
225837
  server.on("error", reject);
226399
225838
  server.listen(options8, () => {
226400
225839
  const { port } = server.address();
226401
225840
  server.close(() => {
226402
- resolve6(port);
225841
+ resolve5(port);
226403
225842
  });
226404
225843
  });
226405
225844
  });
@@ -226623,7 +226062,7 @@ class FunctionManager {
226623
226062
  });
226624
226063
  }
226625
226064
  waitForReady(name2, runningFunc) {
226626
- return new Promise((resolve6, reject) => {
226065
+ return new Promise((resolve5, reject) => {
226627
226066
  runningFunc.process.on("exit", (code2) => {
226628
226067
  if (!runningFunc.ready) {
226629
226068
  clearTimeout(timeout3);
@@ -226646,7 +226085,7 @@ class FunctionManager {
226646
226085
  runningFunc.ready = true;
226647
226086
  clearTimeout(timeout3);
226648
226087
  runningFunc.process.stdout?.off("data", onData);
226649
- resolve6(runningFunc.port);
226088
+ resolve5(runningFunc.port);
226650
226089
  }
226651
226090
  };
226652
226091
  runningFunc.process.stdout?.on("data", onData);
@@ -227035,7 +226474,7 @@ async function createDevServer(options8) {
227035
226474
  app.use((req, res, next) => {
227036
226475
  return remoteProxy(req, res, next);
227037
226476
  });
227038
- return new Promise((resolve6, reject) => {
226477
+ return new Promise((resolve5, reject) => {
227039
226478
  const server = app.listen(port, "127.0.0.1", (err) => {
227040
226479
  if (err) {
227041
226480
  if ("code" in err && err.code === "EADDRINUSE") {
@@ -227055,7 +226494,7 @@ async function createDevServer(options8) {
227055
226494
  };
227056
226495
  process.on("SIGINT", shutdown);
227057
226496
  process.on("SIGTERM", shutdown);
227058
- resolve6({
226497
+ resolve5({
227059
226498
  port,
227060
226499
  server
227061
226500
  });
@@ -227090,7 +226529,7 @@ function getDevCommand(context) {
227090
226529
  }
227091
226530
 
227092
226531
  // src/cli/commands/project/eject.ts
227093
- import { resolve as resolve6 } from "node:path";
226532
+ import { resolve as resolve5 } from "node:path";
227094
226533
  var import_lodash2 = __toESM(require_lodash(), 1);
227095
226534
  async function eject(options8) {
227096
226535
  const projects = await listProjects();
@@ -227136,7 +226575,7 @@ async function eject(options8) {
227136
226575
  Ne("Operation cancelled.");
227137
226576
  throw new CLIExitError(0);
227138
226577
  }
227139
- const resolvedPath = resolve6(selectedPath);
226578
+ const resolvedPath = resolve5(selectedPath);
227140
226579
  await runTask("Downloading your project's code...", async (updateMessage) => {
227141
226580
  await createProjectFilesForExistingProject({
227142
226581
  projectId,
@@ -227199,7 +226638,6 @@ function createProgram(context) {
227199
226638
  program2.addCommand(getAgentsCommand(context));
227200
226639
  program2.addCommand(getConnectorsCommand(context));
227201
226640
  program2.addCommand(getFunctionsDeployCommand(context));
227202
- program2.addCommand(getSecretsCommand(context));
227203
226641
  program2.addCommand(getSiteCommand(context));
227204
226642
  program2.addCommand(getTypesCommand(context));
227205
226643
  program2.addCommand(getDevCommand(context), { hidden: true });
@@ -229499,14 +228937,14 @@ async function addSourceContext(frames) {
229499
228937
  return frames;
229500
228938
  }
229501
228939
  function getContextLinesFromFile(path18, ranges, output) {
229502
- return new Promise((resolve7) => {
228940
+ return new Promise((resolve6) => {
229503
228941
  const stream = createReadStream2(path18);
229504
228942
  const lineReaded = createInterface2({
229505
228943
  input: stream
229506
228944
  });
229507
228945
  function destroyStreamAndResolve() {
229508
228946
  stream.destroy();
229509
- resolve7();
228947
+ resolve6();
229510
228948
  }
229511
228949
  let lineNumber = 0;
229512
228950
  let currentRangeIndex = 0;
@@ -230618,15 +230056,15 @@ class PostHogBackendClient extends PostHogCoreStateless {
230618
230056
  return true;
230619
230057
  if (this.featureFlagsPoller === undefined)
230620
230058
  return false;
230621
- return new Promise((resolve7) => {
230059
+ return new Promise((resolve6) => {
230622
230060
  const timeout3 = setTimeout(() => {
230623
230061
  cleanup();
230624
- resolve7(false);
230062
+ resolve6(false);
230625
230063
  }, timeoutMs);
230626
230064
  const cleanup = this._events.on("localEvaluationFlagsLoaded", (count2) => {
230627
230065
  clearTimeout(timeout3);
230628
230066
  cleanup();
230629
- resolve7(count2 > 0);
230067
+ resolve6(count2 > 0);
230630
230068
  });
230631
230069
  });
230632
230070
  }
@@ -231438,4 +230876,4 @@ export {
231438
230876
  CLIExitError
231439
230877
  };
231440
230878
 
231441
- //# debugId=98FA533F62AFEDA364756E2164756E21
230879
+ //# debugId=7558064655620E3C64756E2164756E21