@storm-software/config-tools 1.41.5 → 1.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -4271,7 +4271,7 @@ var require_jiti = __commonJS({
4271
4271
  const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable2();
4272
4272
  return stackTraceLimitIsWritable && (userStackTraceLimit2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit2), error;
4273
4273
  });
4274
- const packageJsonReader2 = { read: function(jsonPath) {
4274
+ const packageJsonReader = { read: function(jsonPath) {
4275
4275
  try {
4276
4276
  return { string: external_node_fs_namespaceObject.readFileSync(external_node_path_namespaceObject.toNamespacedPath(external_node_path_namespaceObject.join(external_node_path_namespaceObject.dirname(jsonPath), "package.json")), "utf8") };
4277
4277
  } catch (error) {
@@ -4286,7 +4286,7 @@ var require_jiti = __commonJS({
4286
4286
  const existing = packageJsonCache.get(path5);
4287
4287
  if (void 0 !== existing)
4288
4288
  return existing;
4289
- const source = packageJsonReader2.read(path5).string;
4289
+ const source = packageJsonReader.read(path5).string;
4290
4290
  if (void 0 === source) {
4291
4291
  const packageConfig2 = { pjsonPath: path5, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
4292
4292
  return packageJsonCache.set(path5, packageConfig2), packageConfig2;
@@ -4349,7 +4349,7 @@ var require_jiti = __commonJS({
4349
4349
  }, "http:": getHttpProtocolModuleFormat2, "https:": getHttpProtocolModuleFormat2, "node:": () => "builtin" };
4350
4350
  function getHttpProtocolModuleFormat2() {
4351
4351
  }
4352
- const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSepRegEx2 = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
4352
+ const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSepRegEx = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
4353
4353
  function emitInvalidSegmentDeprecation2(target, request, match, packageJsonUrl, internal, base, isTarget) {
4354
4354
  const pjsonPath = (0, external_node_url_namespaceObject.fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request);
4355
4355
  external_node_process_namespaceObject.emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match ? "" : `matched to "${match}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, external_node_url_namespaceObject.fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
@@ -4636,7 +4636,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
4636
4636
  else
4637
4637
  resolved = packageImportsResolve2(specifier, base, conditions);
4638
4638
  return external_node_assert_namespaceObject(void 0 !== resolved, "expected to be defined"), "file:" !== resolved.protocol ? resolved : function(resolved2, base2, preserveSymlinks2) {
4639
- if (null !== encodedSepRegEx2.exec(resolved2.pathname))
4639
+ if (null !== encodedSepRegEx.exec(resolved2.pathname))
4640
4640
  throw new ERR_INVALID_MODULE_SPECIFIER2(resolved2.pathname, 'must not include encoded "/" or "\\" characters', (0, external_node_url_namespaceObject.fileURLToPath)(base2));
4641
4641
  const filePath = (0, external_node_url_namespaceObject.fileURLToPath)(resolved2), stats = tryStatSync2(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
4642
4642
  if (stats.isDirectory()) {
@@ -10242,7 +10242,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
10242
10242
  const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable2();
10243
10243
  return stackTraceLimitIsWritable && (userStackTraceLimit2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit2), error;
10244
10244
  });
10245
- var packageJsonReader2 = { read: function(jsonPath) {
10245
+ var packageJsonReader = { read: function(jsonPath) {
10246
10246
  try {
10247
10247
  return { string: _fs().default.readFileSync(_path().toNamespacedPath(_path().join(_path().dirname(jsonPath), "package.json")), "utf8") };
10248
10248
  } catch (error) {
@@ -10257,7 +10257,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
10257
10257
  const existing = packageJsonCache.get(path5);
10258
10258
  if (void 0 !== existing)
10259
10259
  return existing;
10260
- const source = packageJsonReader2.read(path5).string;
10260
+ const source = packageJsonReader.read(path5).string;
10261
10261
  if (void 0 === source) {
10262
10262
  const packageConfig2 = { pjsonPath: path5, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
10263
10263
  return packageJsonCache.set(path5, packageConfig2), packageConfig2;
@@ -10324,7 +10324,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
10324
10324
  return hasOwnProperty3.call(protocolHandlers2, url.protocol) && protocolHandlers2[url.protocol](url, context, true) || null;
10325
10325
  }
10326
10326
  const { ERR_INVALID_ARG_VALUE } = codes2, DEFAULT_CONDITIONS = Object.freeze(["node", "import"]), DEFAULT_CONDITIONS_SET2 = new Set(DEFAULT_CONDITIONS);
10327
- const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], experimentalNetworkImports = false, { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSepRegEx2 = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
10327
+ const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], experimentalNetworkImports = false, { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSepRegEx = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
10328
10328
  function emitInvalidSegmentDeprecation2(target, request, match, packageJsonUrl, internal, base, isTarget) {
10329
10329
  const pjsonPath = (0, _url().fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request);
10330
10330
  _process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match ? "" : `matched to "${match}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
@@ -10609,7 +10609,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
10609
10609
  else
10610
10610
  resolved = packageImportsResolve2(specifier, base, conditions);
10611
10611
  return _assert()(void 0 !== resolved, "expected to be defined"), "file:" !== resolved.protocol ? resolved : function(resolved2, base2, preserveSymlinks2) {
10612
- if (null !== encodedSepRegEx2.exec(resolved2.pathname))
10612
+ if (null !== encodedSepRegEx.exec(resolved2.pathname))
10613
10613
  throw new ERR_INVALID_MODULE_SPECIFIER2(resolved2.pathname, 'must not include encoded "/" or "\\" characters', (0, _url().fileURLToPath)(base2));
10614
10614
  const filePath = (0, _url().fileURLToPath)(resolved2), stats = tryStatSync2(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
10615
10615
  if (stats.isDirectory()) {
@@ -66483,11 +66483,11 @@ Parser.acorn = {
66483
66483
  nonASCIIwhitespace
66484
66484
  };
66485
66485
 
66486
- // node_modules/.pnpm/mlly@1.6.1/node_modules/mlly/dist/index.mjs
66486
+ // node_modules/.pnpm/mlly@1.7.0/node_modules/mlly/dist/index.mjs
66487
66487
  init_dist2();
66488
66488
  init_dist();
66489
66489
  import { builtinModules, createRequire } from "node:module";
66490
- import fs, { realpathSync, statSync, Stats, promises } from "node:fs";
66490
+ import fs, { realpathSync, statSync, promises } from "node:fs";
66491
66491
  import { fileURLToPath as fileURLToPath$1, URL as URL$1, pathToFileURL as pathToFileURL$1 } from "node:url";
66492
66492
  import assert from "node:assert";
66493
66493
  import process$1 from "node:process";
@@ -66620,21 +66620,21 @@ codes.ERR_INVALID_PACKAGE_CONFIG = createError(
66620
66620
  codes.ERR_INVALID_PACKAGE_TARGET = createError(
66621
66621
  "ERR_INVALID_PACKAGE_TARGET",
66622
66622
  /**
66623
- * @param {string} pkgPath
66623
+ * @param {string} packagePath
66624
66624
  * @param {string} key
66625
66625
  * @param {unknown} target
66626
66626
  * @param {boolean} [isImport=false]
66627
66627
  * @param {string} [base]
66628
66628
  */
66629
- (pkgPath, key, target, isImport = false, base = void 0) => {
66630
- const relError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
66629
+ (packagePath, key, target, isImport = false, base = void 0) => {
66630
+ const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
66631
66631
  if (key === ".") {
66632
66632
  assert(isImport === false);
66633
- return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ""}${relError ? '; targets must start with "./"' : ""}`;
66633
+ return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
66634
66634
  }
66635
66635
  return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify(
66636
66636
  target
66637
- )} defined for '${key}' in the package config ${pkgPath}package.json${base ? ` imported from ${base}` : ""}${relError ? '; targets must start with "./"' : ""}`;
66637
+ )} defined for '${key}' in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
66638
66638
  },
66639
66639
  Error
66640
66640
  );
@@ -66670,14 +66670,14 @@ codes.ERR_PACKAGE_IMPORT_NOT_DEFINED = createError(
66670
66670
  codes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
66671
66671
  "ERR_PACKAGE_PATH_NOT_EXPORTED",
66672
66672
  /**
66673
- * @param {string} pkgPath
66673
+ * @param {string} packagePath
66674
66674
  * @param {string} subpath
66675
66675
  * @param {string} [base]
66676
66676
  */
66677
- (pkgPath, subpath, base = void 0) => {
66677
+ (packagePath, subpath, base = void 0) => {
66678
66678
  if (subpath === ".")
66679
- return `No "exports" main defined in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
66680
- return `Package subpath '${subpath}' is not defined by "exports" in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
66679
+ return `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
66680
+ return `Package subpath '${subpath}' is not defined by "exports" in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
66681
66681
  },
66682
66682
  Error
66683
66683
  );
@@ -66686,14 +66686,19 @@ codes.ERR_UNSUPPORTED_DIR_IMPORT = createError(
66686
66686
  "Directory import '%s' is not supported resolving ES modules imported from %s",
66687
66687
  Error
66688
66688
  );
66689
+ codes.ERR_UNSUPPORTED_RESOLVE_REQUEST = createError(
66690
+ "ERR_UNSUPPORTED_RESOLVE_REQUEST",
66691
+ 'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',
66692
+ TypeError
66693
+ );
66689
66694
  codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
66690
66695
  "ERR_UNKNOWN_FILE_EXTENSION",
66691
66696
  /**
66692
- * @param {string} ext
66697
+ * @param {string} extension
66693
66698
  * @param {string} path
66694
66699
  */
66695
- (ext, path5) => {
66696
- return `Unknown file extension "${ext}" for ${path5}`;
66700
+ (extension, path5) => {
66701
+ return `Unknown file extension "${extension}" for ${path5}`;
66697
66702
  },
66698
66703
  TypeError
66699
66704
  );
@@ -66716,20 +66721,20 @@ codes.ERR_INVALID_ARG_VALUE = createError(
66716
66721
  // Note: extra classes have been shaken out.
66717
66722
  // , RangeError
66718
66723
  );
66719
- function createError(sym, value2, def) {
66724
+ function createError(sym, value2, constructor) {
66720
66725
  messages.set(sym, value2);
66721
- return makeNodeErrorWithCode(def, sym);
66726
+ return makeNodeErrorWithCode(constructor, sym);
66722
66727
  }
66723
66728
  function makeNodeErrorWithCode(Base, key) {
66724
66729
  return NodeError;
66725
- function NodeError(...args) {
66730
+ function NodeError(...parameters) {
66726
66731
  const limit = Error.stackTraceLimit;
66727
66732
  if (isErrorStackTraceLimitWritable())
66728
66733
  Error.stackTraceLimit = 0;
66729
66734
  const error = new Base();
66730
66735
  if (isErrorStackTraceLimitWritable())
66731
66736
  Error.stackTraceLimit = limit;
66732
- const message = getMessage(key, args, error);
66737
+ const message = getMessage(key, parameters, error);
66733
66738
  Object.defineProperties(error, {
66734
66739
  // Note: no need to implement `kIsNodeError` symbol, would be hard,
66735
66740
  // probably.
@@ -66767,10 +66772,10 @@ function isErrorStackTraceLimitWritable() {
66767
66772
  }
66768
66773
  return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
66769
66774
  }
66770
- function hideStackFrames(fn2) {
66771
- const hidden = nodeInternalPrefix + fn2.name;
66772
- Object.defineProperty(fn2, "name", { value: hidden });
66773
- return fn2;
66775
+ function hideStackFrames(wrappedFunction) {
66776
+ const hidden = nodeInternalPrefix + wrappedFunction.name;
66777
+ Object.defineProperty(wrappedFunction, "name", { value: hidden });
66778
+ return wrappedFunction;
66774
66779
  }
66775
66780
  var captureLargerStackTrace = hideStackFrames(
66776
66781
  /**
@@ -66790,29 +66795,29 @@ var captureLargerStackTrace = hideStackFrames(
66790
66795
  return error;
66791
66796
  }
66792
66797
  );
66793
- function getMessage(key, args, self2) {
66798
+ function getMessage(key, parameters, self2) {
66794
66799
  const message = messages.get(key);
66795
66800
  assert(message !== void 0, "expected `message` to be found");
66796
66801
  if (typeof message === "function") {
66797
66802
  assert(
66798
- message.length <= args.length,
66803
+ message.length <= parameters.length,
66799
66804
  // Default options do not count.
66800
- `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${message.length}).`
66805
+ `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`
66801
66806
  );
66802
- return Reflect.apply(message, self2, args);
66807
+ return Reflect.apply(message, self2, parameters);
66803
66808
  }
66804
66809
  const regex = /%[dfijoOs]/g;
66805
66810
  let expectedLength = 0;
66806
66811
  while (regex.exec(message) !== null)
66807
66812
  expectedLength++;
66808
66813
  assert(
66809
- expectedLength === args.length,
66810
- `Code: ${key}; The provided arguments length (${args.length}) does not match the required ones (${expectedLength}).`
66814
+ expectedLength === parameters.length,
66815
+ `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`
66811
66816
  );
66812
- if (args.length === 0)
66817
+ if (parameters.length === 0)
66813
66818
  return message;
66814
- args.unshift(message);
66815
- return Reflect.apply(format2, null, args);
66819
+ parameters.unshift(message);
66820
+ return Reflect.apply(format2, null, parameters);
66816
66821
  }
66817
66822
  function determineSpecificType(value2) {
66818
66823
  if (value2 === null || value2 === void 0) {
@@ -66836,8 +66841,6 @@ function determineSpecificType(value2) {
66836
66841
  var hasOwnProperty$1 = {}.hasOwnProperty;
66837
66842
  var { ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes;
66838
66843
  var cache = /* @__PURE__ */ new Map();
66839
- var reader = { read: read2 };
66840
- var packageJsonReader = reader;
66841
66844
  function read2(jsonPath, { base, specifier }) {
66842
66845
  const existing = cache.get(jsonPath);
66843
66846
  if (existing) {
@@ -66903,21 +66906,20 @@ function read2(jsonPath, { base, specifier }) {
66903
66906
  return result;
66904
66907
  }
66905
66908
  function getPackageScopeConfig(resolved) {
66906
- let packageJSONUrl = new URL$1("package.json", resolved);
66909
+ let packageJSONUrl = new URL("package.json", resolved);
66907
66910
  while (true) {
66908
66911
  const packageJSONPath2 = packageJSONUrl.pathname;
66909
66912
  if (packageJSONPath2.endsWith("node_modules/package.json")) {
66910
66913
  break;
66911
66914
  }
66912
- const packageConfig = packageJsonReader.read(
66913
- fileURLToPath$1(packageJSONUrl),
66914
- { specifier: resolved }
66915
- );
66915
+ const packageConfig = read2(fileURLToPath$1(packageJSONUrl), {
66916
+ specifier: resolved
66917
+ });
66916
66918
  if (packageConfig.exists) {
66917
66919
  return packageConfig;
66918
66920
  }
66919
66921
  const lastPackageJSONUrl = packageJSONUrl;
66920
- packageJSONUrl = new URL$1("../package.json", packageJSONUrl);
66922
+ packageJSONUrl = new URL("../package.json", packageJSONUrl);
66921
66923
  if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) {
66922
66924
  break;
66923
66925
  }
@@ -66926,16 +66928,11 @@ function getPackageScopeConfig(resolved) {
66926
66928
  return {
66927
66929
  pjsonPath: packageJSONPath,
66928
66930
  exists: false,
66929
- main: void 0,
66930
- name: void 0,
66931
- type: "none",
66932
- exports: void 0,
66933
- imports: void 0
66931
+ type: "none"
66934
66932
  };
66935
66933
  }
66936
66934
  function getPackageType(url) {
66937
- const packageConfig = getPackageScopeConfig(url);
66938
- return packageConfig.type;
66935
+ return getPackageScopeConfig(url).type;
66939
66936
  }
66940
66937
  var { ERR_UNKNOWN_FILE_EXTENSION } = codes;
66941
66938
  var hasOwnProperty2 = {}.hasOwnProperty;
@@ -66986,29 +66983,29 @@ function extname2(url) {
66986
66983
  return "";
66987
66984
  }
66988
66985
  function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
66989
- const ext = extname2(url);
66990
- if (ext === ".js") {
66986
+ const value2 = extname2(url);
66987
+ if (value2 === ".js") {
66991
66988
  const packageType = getPackageType(url);
66992
66989
  if (packageType !== "none") {
66993
66990
  return packageType;
66994
66991
  }
66995
66992
  return "commonjs";
66996
66993
  }
66997
- if (ext === "") {
66994
+ if (value2 === "") {
66998
66995
  const packageType = getPackageType(url);
66999
66996
  if (packageType === "none" || packageType === "commonjs") {
67000
66997
  return "commonjs";
67001
66998
  }
67002
66999
  return "module";
67003
67000
  }
67004
- const format3 = extensionFormatMap[ext];
67001
+ const format3 = extensionFormatMap[value2];
67005
67002
  if (format3)
67006
67003
  return format3;
67007
67004
  if (ignoreErrors) {
67008
67005
  return void 0;
67009
67006
  }
67010
67007
  const filepath = fileURLToPath$1(url);
67011
- throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath);
67008
+ throw new ERR_UNKNOWN_FILE_EXTENSION(value2, filepath);
67012
67009
  }
67013
67010
  function getHttpProtocolModuleFormat() {
67014
67011
  }
@@ -67028,14 +67025,15 @@ var {
67028
67025
  ERR_MODULE_NOT_FOUND,
67029
67026
  ERR_PACKAGE_IMPORT_NOT_DEFINED,
67030
67027
  ERR_PACKAGE_PATH_NOT_EXPORTED,
67031
- ERR_UNSUPPORTED_DIR_IMPORT
67028
+ ERR_UNSUPPORTED_DIR_IMPORT,
67029
+ ERR_UNSUPPORTED_RESOLVE_REQUEST
67032
67030
  } = codes;
67033
67031
  var own = {}.hasOwnProperty;
67034
67032
  var invalidSegmentRegEx = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i;
67035
67033
  var deprecatedInvalidSegmentRegEx = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i;
67036
67034
  var invalidPackageNameRegEx = /^\.|%|\\/;
67037
67035
  var patternRegEx = /\*/g;
67038
- var encodedSepRegEx = /%2f|%5c/i;
67036
+ var encodedSeparatorRegEx = /%2f|%5c/i;
67039
67037
  var emittedPackageWarnings = /* @__PURE__ */ new Set();
67040
67038
  var doubleSlashRegEx = /[/\\]{2}/;
67041
67039
  function emitInvalidSegmentDeprecation(target, request, match, packageJsonUrl, internal, base, isTarget) {
@@ -67058,21 +67056,21 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
67058
67056
  if (format3 !== "module")
67059
67057
  return;
67060
67058
  const urlPath = fileURLToPath$1(url.href);
67061
- const pkgPath = fileURLToPath$1(new URL$1(".", packageJsonUrl));
67059
+ const packagePath = fileURLToPath$1(new URL$1(".", packageJsonUrl));
67062
67060
  const basePath = fileURLToPath$1(base);
67063
67061
  if (!main) {
67064
67062
  process$1.emitWarning(
67065
- `No "main" or "exports" field defined in the package.json for ${pkgPath} resolving the main entry point "${urlPath.slice(
67066
- pkgPath.length
67063
+ `No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(
67064
+ packagePath.length
67067
67065
  )}", imported from ${basePath}.
67068
67066
  Default "index" lookups for the main are deprecated for ES modules.`,
67069
67067
  "DeprecationWarning",
67070
67068
  "DEP0151"
67071
67069
  );
67072
- } else if (path2.resolve(pkgPath, main) !== urlPath) {
67070
+ } else if (path2.resolve(packagePath, main) !== urlPath) {
67073
67071
  process$1.emitWarning(
67074
- `Package ${pkgPath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
67075
- pkgPath.length
67072
+ `Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
67073
+ packagePath.length
67076
67074
  )}", imported from ${basePath}.
67077
67075
  Automatic extension resolution of the "main" field is deprecated for ES modules.`,
67078
67076
  "DeprecationWarning",
@@ -67084,7 +67082,6 @@ function tryStatSync(path5) {
67084
67082
  try {
67085
67083
  return statSync(path5);
67086
67084
  } catch {
67087
- return new Stats();
67088
67085
  }
67089
67086
  }
67090
67087
  function fileExists(url) {
@@ -67141,7 +67138,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
67141
67138
  );
67142
67139
  }
67143
67140
  function finalizeResolution(resolved, base, preserveSymlinks) {
67144
- if (encodedSepRegEx.exec(resolved.pathname) !== null) {
67141
+ if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {
67145
67142
  throw new ERR_INVALID_MODULE_SPECIFIER(
67146
67143
  resolved.pathname,
67147
67144
  'must not include encoded "/" or "\\" characters',
@@ -67163,12 +67160,12 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
67163
67160
  const stats = tryStatSync(
67164
67161
  filePath.endsWith("/") ? filePath.slice(-1) : filePath
67165
67162
  );
67166
- if (stats.isDirectory()) {
67163
+ if (stats && stats.isDirectory()) {
67167
67164
  const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, fileURLToPath$1(base));
67168
67165
  error.url = String(resolved);
67169
67166
  throw error;
67170
67167
  }
67171
- if (!stats.isFile()) {
67168
+ if (!stats || !stats.isFile()) {
67172
67169
  const error = new ERR_MODULE_NOT_FOUND(
67173
67170
  filePath || resolved.pathname,
67174
67171
  base && fileURLToPath$1(base),
@@ -67426,13 +67423,13 @@ function isConditionalExportsMainSugar(exports, packageJsonUrl, base) {
67426
67423
  const keys = Object.getOwnPropertyNames(exports);
67427
67424
  let isConditionalSugar = false;
67428
67425
  let i2 = 0;
67429
- let j3 = -1;
67430
- while (++j3 < keys.length) {
67431
- const key = keys[j3];
67432
- const curIsConditionalSugar = key === "" || key[0] !== ".";
67426
+ let keyIndex = -1;
67427
+ while (++keyIndex < keys.length) {
67428
+ const key = keys[keyIndex];
67429
+ const currentIsConditionalSugar = key === "" || key[0] !== ".";
67433
67430
  if (i2++ === 0) {
67434
- isConditionalSugar = curIsConditionalSugar;
67435
- } else if (isConditionalSugar !== curIsConditionalSugar) {
67431
+ isConditionalSugar = currentIsConditionalSugar;
67432
+ } else if (isConditionalSugar !== currentIsConditionalSugar) {
67436
67433
  throw new ERR_INVALID_PACKAGE_CONFIG(
67437
67434
  fileURLToPath$1(packageJsonUrl),
67438
67435
  base,
@@ -67668,7 +67665,7 @@ function packageResolve(specifier, base, conditions) {
67668
67665
  let lastPath;
67669
67666
  do {
67670
67667
  const stat = tryStatSync(packageJsonPath.slice(0, -13));
67671
- if (!stat.isDirectory()) {
67668
+ if (!stat || !stat.isDirectory()) {
67672
67669
  lastPath = packageJsonPath;
67673
67670
  packageJsonUrl = new URL$1(
67674
67671
  (isScoped ? "../../../../node_modules/" : "../../../node_modules/") + packageName + "/package.json",
@@ -67677,10 +67674,7 @@ function packageResolve(specifier, base, conditions) {
67677
67674
  packageJsonPath = fileURLToPath$1(packageJsonUrl);
67678
67675
  continue;
67679
67676
  }
67680
- const packageConfig2 = packageJsonReader.read(packageJsonPath, {
67681
- base,
67682
- specifier
67683
- });
67677
+ const packageConfig2 = read2(packageJsonPath, { base, specifier });
67684
67678
  if (packageConfig2.exports !== void 0 && packageConfig2.exports !== null) {
67685
67679
  return packageExportsResolve(
67686
67680
  packageJsonUrl,
@@ -67716,19 +67710,29 @@ function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
67716
67710
  }
67717
67711
  function moduleResolve(specifier, base, conditions, preserveSymlinks) {
67718
67712
  const protocol = base.protocol;
67719
- const isRemote = protocol === "http:" || protocol === "https:";
67713
+ const isData = protocol === "data:";
67714
+ const isRemote = isData || protocol === "http:" || protocol === "https:";
67720
67715
  let resolved;
67721
67716
  if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
67722
- resolved = new URL$1(specifier, base);
67723
- } else if (!isRemote && specifier[0] === "#") {
67717
+ try {
67718
+ resolved = new URL$1(specifier, base);
67719
+ } catch (error_) {
67720
+ const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
67721
+ error.cause = error_;
67722
+ throw error;
67723
+ }
67724
+ } else if (protocol === "file:" && specifier[0] === "#") {
67724
67725
  resolved = packageImportsResolve(specifier, base, conditions);
67725
67726
  } else {
67726
67727
  try {
67727
67728
  resolved = new URL$1(specifier);
67728
- } catch {
67729
- if (!isRemote) {
67730
- resolved = packageResolve(specifier, base, conditions);
67729
+ } catch (error_) {
67730
+ if (isRemote && !builtinModules.includes(specifier)) {
67731
+ const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
67732
+ error.cause = error_;
67733
+ throw error;
67731
67734
  }
67735
+ resolved = packageResolve(specifier, base, conditions);
67732
67736
  }
67733
67737
  }
67734
67738
  assert(resolved !== void 0, "expected to be defined");
@@ -72252,23 +72256,19 @@ var z2 = /* @__PURE__ */ Object.freeze({
72252
72256
  });
72253
72257
 
72254
72258
  // packages/config/src/schema.ts
72255
- var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d232a").describe("The dark background color of the workspace");
72259
+ var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#22272E").describe("The dark background color of the workspace");
72256
72260
  var LightColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
72257
- var PrimaryColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary color of the workspace");
72258
- var SecondaryColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The secondary color of the workspace");
72259
- var TertiaryColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ec5990").describe("The tertiary color of the workspace");
72260
- var AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#6366f1").describe("The accent color of the workspace");
72261
+ var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The first brand specific color of the workspace");
72262
+ var AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
72261
72263
  var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace");
72262
- var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The informational color of the workspace");
72264
+ var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#316DCA").describe("The informational color of the workspace");
72263
72265
  var WarningColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
72264
- var ErrorColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#990000").describe("The error color of the workspace");
72265
- var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace");
72266
+ var ErrorColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#a40e26").describe("The error color of the workspace");
72267
+ var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
72266
72268
  var DarkThemeColorConfigSchema = z2.object({
72267
72269
  foreground: LightColorSchema,
72268
72270
  background: DarkColorSchema,
72269
- primary: PrimaryColorSchema,
72270
- secondary: SecondaryColorSchema,
72271
- tertiary: TertiaryColorSchema,
72271
+ brand: BrandColorSchema,
72272
72272
  accent: AccentColorSchema,
72273
72273
  success: SuccessColorSchema,
72274
72274
  info: InfoColorSchema,
@@ -72279,9 +72279,7 @@ var DarkThemeColorConfigSchema = z2.object({
72279
72279
  var LightThemeColorConfigSchema = z2.object({
72280
72280
  foreground: DarkColorSchema,
72281
72281
  background: LightColorSchema,
72282
- primary: PrimaryColorSchema,
72283
- secondary: SecondaryColorSchema,
72284
- tertiary: TertiaryColorSchema,
72282
+ brand: BrandColorSchema,
72285
72283
  accent: AccentColorSchema,
72286
72284
  success: SuccessColorSchema,
72287
72285
  info: InfoColorSchema,
@@ -72296,9 +72294,7 @@ var MultiThemeColorConfigSchema = z2.object({
72296
72294
  var SingleThemeColorConfigSchema = z2.object({
72297
72295
  dark: DarkColorSchema,
72298
72296
  light: LightColorSchema,
72299
- primary: PrimaryColorSchema,
72300
- secondary: SecondaryColorSchema,
72301
- tertiary: TertiaryColorSchema,
72297
+ brand: BrandColorSchema,
72302
72298
  accent: AccentColorSchema,
72303
72299
  success: SuccessColorSchema,
72304
72300
  info: InfoColorSchema,
@@ -72345,7 +72341,7 @@ var StormConfigSchema = z2.object({
72345
72341
  runtimeVersion: z2.string().trim().regex(
72346
72342
  /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
72347
72343
  ).default("1.0.0").describe("The global version of the Storm runtime"),
72348
- packageManager: z2.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
72344
+ packageManager: z2.enum(["npm", "yarn", "pnpm", "bun"]).default("pnpm").describe("The package manager used by the repository"),
72349
72345
  timezone: z2.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
72350
72346
  locale: z2.string().trim().default("en-US").describe("The default locale of the workspace"),
72351
72347
  logLevel: z2.enum([
@@ -72375,9 +72371,7 @@ var StormConfigSchema = z2.object({
72375
72371
  var COLOR_KEYS = [
72376
72372
  "dark",
72377
72373
  "light",
72378
- "primary",
72379
- "secondary",
72380
- "tertiary",
72374
+ "brand",
72381
72375
  "accent",
72382
72376
  "success",
72383
72377
  "info",
@@ -72388,17 +72382,26 @@ var COLOR_KEYS = [
72388
72382
 
72389
72383
  // packages/config-tools/src/utilities/get-default-config.ts
72390
72384
  var DEFAULT_COLOR_CONFIG = {
72391
- dark: "#1d232a",
72392
- light: "#f4f4f5",
72393
- primary: "#1fb2a6",
72394
- secondary: "#0ea5e9",
72395
- tertiary: "#ec5990",
72396
- accent: "#6366f1",
72397
- success: "#087f5b",
72398
- info: "#0ea5e9",
72399
- warning: "#fcc419",
72400
- error: "#990000",
72401
- fatal: "#7d1a1a"
72385
+ light: {
72386
+ background: "#f4f4f5",
72387
+ foreground: "#1d232a",
72388
+ brand: "#1fb2a6",
72389
+ accent: "#8250df",
72390
+ success: "#087f5b",
72391
+ info: "#0550ae",
72392
+ warning: "#e3b341",
72393
+ error: "#a40e26"
72394
+ },
72395
+ dark: {
72396
+ background: "#22272E",
72397
+ foreground: "#fcfcf5",
72398
+ brand: "#1fb2a6",
72399
+ accent: "#8256D0",
72400
+ success: "#087f5b",
72401
+ info: "#316DCA",
72402
+ warning: "#F3D371",
72403
+ error: "#d1242f"
72404
+ }
72402
72405
  };
72403
72406
  var DEFAULT_STORM_CONFIG = {
72404
72407
  name: "storm",
@@ -72586,7 +72589,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
72586
72589
  return (message) => {
72587
72590
  console.error(
72588
72591
  `
72589
- ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#b62324").whiteBright(
72592
+ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
72590
72593
  " \u{1F480} Fatal "
72591
72594
  )} ${_chalk.hex(colors.error ?? "#f85149")(formatLogMessage(message))}
72592
72595
  `
@@ -72641,9 +72644,9 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
72641
72644
  return (message) => {
72642
72645
  console.debug(
72643
72646
  `
72644
- ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.primary ?? "#1fb2a6").whiteBright(
72647
+ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
72645
72648
  " \u{1F6E0} Debug "
72646
- )} ${_chalk.hex(colors.primary ?? "#1fb2a6")(formatLogMessage(message))}
72649
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
72647
72650
  `
72648
72651
  );
72649
72652
  };
@@ -72651,9 +72654,9 @@ ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.
72651
72654
  return (message) => {
72652
72655
  console.log(
72653
72656
  `
72654
- ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.primary ?? "#1fb2a6").whiteBright(
72657
+ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
72655
72658
  " \u2709 System "
72656
- )} ${_chalk.hex(colors.primary ?? "#1fb2a6")(formatLogMessage(message))}
72659
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
72657
72660
  `
72658
72661
  );
72659
72662
  };
@@ -72681,7 +72684,7 @@ var getStopwatch = (name) => {
72681
72684
  };
72682
72685
  };
72683
72686
  var formatLogMessage = (message, prefix = "-") => {
72684
- return typeof message === "string" ? message : typeof message === "object" ? `
72687
+ return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : typeof message === "object" ? `
72685
72688
  ${Object.keys(message).map(
72686
72689
  (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], `${prefix}-`) : message[key]}`
72687
72690
  ).join("\n")}` : message;
@@ -72976,15 +72979,13 @@ var getConfigEnv = () => {
72976
72979
  };
72977
72980
  var getThemeColorConfigEnv = (prefix, theme) => {
72978
72981
  const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
72979
- return process.env[`${prefix}${themeName}LIGHT_PRIMARY`] || process.env[`${prefix}${themeName}DARK_PRIMARY`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
72982
+ return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
72980
72983
  };
72981
72984
  var getSingleThemeColorConfigEnv = (prefix) => {
72982
72985
  return {
72983
72986
  dark: process.env[`${prefix}DARK`],
72984
72987
  light: process.env[`${prefix}LIGHT`],
72985
- primary: process.env[`${prefix}PRIMARY`],
72986
- secondary: process.env[`${prefix}SECONDARY`],
72987
- tertiary: process.env[`${prefix}TERTIARY`],
72988
+ brand: process.env[`${prefix}BRAND`],
72988
72989
  accent: process.env[`${prefix}ACCENT`],
72989
72990
  success: process.env[`${prefix}SUCCESS`],
72990
72991
  info: process.env[`${prefix}INFO`],
@@ -73005,9 +73006,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
73005
73006
  return {
73006
73007
  foreground: process.env[`${prefix}FOREGROUND`],
73007
73008
  background: process.env[`${prefix}BACKGROUND`],
73008
- primary: process.env[`${prefix}PRIMARY`],
73009
- secondary: process.env[`${prefix}SECONDARY`],
73010
- tertiary: process.env[`${prefix}TERTIARY`],
73009
+ brand: process.env[`${prefix}BRAND`],
73011
73010
  accent: process.env[`${prefix}ACCENT`],
73012
73011
  success: process.env[`${prefix}SUCCESS`],
73013
73012
  info: process.env[`${prefix}INFO`],
@@ -73166,7 +73165,7 @@ var setConfigEnv = (config) => {
73166
73165
  }
73167
73166
  };
73168
73167
  var setThemeColorConfigEnv = (prefix, config) => {
73169
- return config?.light?.primary || config?.dark?.primary ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
73168
+ return config?.light?.brand || config?.dark?.brand ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
73170
73169
  };
73171
73170
  var setSingleThemeColorConfigEnv = (prefix, config) => {
73172
73171
  if (config.dark) {
@@ -73175,14 +73174,8 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
73175
73174
  if (config.light) {
73176
73175
  process.env[`${prefix}LIGHT`] = config.light;
73177
73176
  }
73178
- if (config.primary) {
73179
- process.env[`${prefix}PRIMARY`] = config.primary;
73180
- }
73181
- if (config.secondary) {
73182
- process.env[`${prefix}SECONDARY`] = config.secondary;
73183
- }
73184
- if (config.tertiary) {
73185
- process.env[`${prefix}TERTIARY`] = config.tertiary;
73177
+ if (config.brand) {
73178
+ process.env[`${prefix}BRAND`] = config.brand;
73186
73179
  }
73187
73180
  if (config.accent) {
73188
73181
  process.env[`${prefix}ACCENT`] = config.accent;
@@ -73216,14 +73209,8 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
73216
73209
  if (config.background) {
73217
73210
  process.env[`${prefix}BACKGROUND`] = config.background;
73218
73211
  }
73219
- if (config.primary) {
73220
- process.env[`${prefix}PRIMARY`] = config.primary;
73221
- }
73222
- if (config.secondary) {
73223
- process.env[`${prefix}SECONDARY`] = config.secondary;
73224
- }
73225
- if (config.tertiary) {
73226
- process.env[`${prefix}TERTIARY`] = config.tertiary;
73212
+ if (config.brand) {
73213
+ process.env[`${prefix}BRAND`] = config.brand;
73227
73214
  }
73228
73215
  if (config.accent) {
73229
73216
  process.env[`${prefix}ACCENT`] = config.accent;