@mastra/slack 1.7.3-alpha.0 → 1.7.3

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/index.cjs CHANGED
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
20
20
  value: mod,
21
21
  enumerable: true
22
22
  }) : target, mod));
@@ -315,7 +315,7 @@ function buildManifest(options) {
315
315
  if (slashCommands.length > 0) scopes.push("commands");
316
316
  const MAX_DESC = 139;
317
317
  const rawDescription = description ?? `${name} - Powered by Mastra`;
318
- const shortDescription = rawDescription.length > MAX_DESC ? rawDescription.slice(0, MAX_DESC - 3) + "..." : rawDescription;
318
+ const shortDescription = rawDescription.length > MAX_DESC ? rawDescription.slice(0, 136) + "..." : rawDescription;
319
319
  const manifest = {
320
320
  display_information: {
321
321
  name,
@@ -360,7 +360,7 @@ function buildManifest(options) {
360
360
  return manifest;
361
361
  }
362
362
  //#endregion
363
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/util.js
363
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/util.js
364
364
  function getEnumValues(entries) {
365
365
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
366
366
  return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
@@ -660,6 +660,17 @@ function prefixIssues(path, issues) {
660
660
  function unwrapMessage(message) {
661
661
  return typeof message === "string" ? message : message?.message;
662
662
  }
663
+ /** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
664
+ function sizeCaps(defChecks) {
665
+ const caps = [];
666
+ for (const ch of defChecks ?? []) {
667
+ const d = ch._zod.def;
668
+ if (!/_(length|size)$|_equals$/.test(d.check)) break;
669
+ const max = d.maximum ?? d.length ?? d.size;
670
+ if (max >= 0) caps.push([max, ch]);
671
+ }
672
+ return caps;
673
+ }
663
674
  function attachSchema(issues, start, inst) {
664
675
  var _a;
665
676
  for (let i = start; i < issues.length; i++) (_a = issues[i]).schema ?? (_a.schema = inst);
@@ -667,8 +678,10 @@ function attachSchema(issues, start, inst) {
667
678
  function finalizeIssue(iss, ctx, config) {
668
679
  var _a;
669
680
  const traits = iss.inst?._zod?.traits;
670
- if (traits?.has("$ZodType")) if (traits.has("$ZodCheck")) (_a = iss).schema ?? (_a.schema = iss.inst);
671
- else iss.schema = iss.inst;
681
+ if (traits?.has("$ZodType")) {
682
+ if (traits.has("$ZodCheck")) (_a = iss).schema ?? (_a.schema = iss.inst);
683
+ else iss.schema = iss.inst;
684
+ }
672
685
  const schemaError = iss.schema !== iss.inst ? iss.schema?._zod.def?.error : void 0;
673
686
  const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(schemaError?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
674
687
  const full = {};
@@ -750,6 +763,7 @@ function hide(inst, key, value) {
750
763
  return own(inst, key, value, false);
751
764
  }
752
765
  /** Adds members a table derives from the instance: each builds on first read and shadows as own data, and assignment shadows the same way, as when these were own properties. */
766
+ /* @__NO_SIDE_EFFECTS__ */
753
767
  function derived(computes, table) {
754
768
  for (const key in computes) {
755
769
  const compute = computes[key];
@@ -874,7 +888,7 @@ function constantCatch(value) {
874
888
  return fn;
875
889
  }
876
890
  //#endregion
877
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/core.js
891
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/core.js
878
892
  var _a$1;
879
893
  const _zodDesc = {
880
894
  value: void 0,
@@ -901,6 +915,7 @@ function newError(Definition) {
901
915
  }
902
916
  return new Definition();
903
917
  }
918
+ /* @__NO_SIDE_EFFECTS__ */
904
919
  function $constructor(name, initializer, proto, params) {
905
920
  const zodProto = {};
906
921
  function Internals(def) {
@@ -980,7 +995,7 @@ function config(newConfig) {
980
995
  return globalConfig;
981
996
  }
982
997
  //#endregion
983
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/errors.js
998
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/errors.js
984
999
  function _getMessage() {
985
1000
  const internals = this._zod;
986
1001
  internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
@@ -1031,19 +1046,20 @@ const initializer$1 = (inst, def) => {
1031
1046
  });
1032
1047
  }
1033
1048
  };
1034
- const $ZodError = $constructor("$ZodError", initializer$1);
1035
- $constructor("$ZodError", initializer$1, void 0, { Parent: Error });
1049
+ const $ZodError = /* @__PURE__ */ $constructor("$ZodError", initializer$1);
1036
1050
  /** Get-or-create `obj[key]` as an own data property. A path segment naming an inherited member
1037
1051
  * ("toString", "constructor") would otherwise read through to the prototype, and assigning
1038
1052
  * "__proto__" would hit the setter instead of creating a key. */
1039
1053
  function node(obj, key, make) {
1040
- if (!Object.prototype.hasOwnProperty.call(obj, key)) if (key === "__proto__") Object.defineProperty(obj, key, {
1041
- value: make(),
1042
- writable: true,
1043
- enumerable: true,
1044
- configurable: true
1045
- });
1046
- else obj[key] = make();
1054
+ if (!Object.prototype.hasOwnProperty.call(obj, key)) {
1055
+ if (key === "__proto__") Object.defineProperty(obj, key, {
1056
+ value: make(),
1057
+ writable: true,
1058
+ enumerable: true,
1059
+ configurable: true
1060
+ });
1061
+ else obj[key] = make();
1062
+ }
1047
1063
  return obj[key];
1048
1064
  }
1049
1065
  function flattenError(error, mapper = (issue) => issue.message) {
@@ -1094,7 +1110,7 @@ function formatError(error, mapper = (issue) => issue.message) {
1094
1110
  return fieldErrors;
1095
1111
  }
1096
1112
  //#endregion
1097
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/parse.js
1113
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/parse.js
1098
1114
  function finalizeParams(callee, params) {
1099
1115
  return {
1100
1116
  callee: params?.callee ?? callee,
@@ -1297,7 +1313,7 @@ const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
1297
1313
  return _safeParseAsync(_Err)(schema, value, _ctx);
1298
1314
  };
1299
1315
  //#endregion
1300
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/regexes.js
1316
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/regexes.js
1301
1317
  /**
1302
1318
  * @deprecated CUID v1 is deprecated by its authors due to information leakage
1303
1319
  * (timestamps embedded in the id). Use {@link cuid2} instead.
@@ -1366,7 +1382,7 @@ const anyString = /^[\s\S]{0,}$/;
1366
1382
  const lowercase = /^[^A-Z]*$/;
1367
1383
  const uppercase = /^[^a-z]*$/;
1368
1384
  //#endregion
1369
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/checks.js
1385
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/checks.js
1370
1386
  const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
1371
1387
  var _a;
1372
1388
  inst._zod ?? (inst._zod = {});
@@ -1546,7 +1562,7 @@ const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (ins
1546
1562
  };
1547
1563
  });
1548
1564
  //#endregion
1549
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/doc.js
1565
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/doc.js
1550
1566
  var Doc = class {
1551
1567
  constructor(args = [], closed = {}) {
1552
1568
  this.content = [];
@@ -1580,14 +1596,14 @@ var Doc = class {
1580
1596
  }
1581
1597
  };
1582
1598
  //#endregion
1583
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/versions.js
1599
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/versions.js
1584
1600
  const version = {
1585
1601
  major: 4,
1586
1602
  minor: 6,
1587
- patch: 5
1603
+ patch: 7
1588
1604
  };
1589
1605
  //#endregion
1590
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/schemas.js
1606
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/schemas.js
1591
1607
  const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
1592
1608
  var _a;
1593
1609
  inst ?? (inst = {});
@@ -2042,6 +2058,26 @@ const $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
2042
2058
  return payload;
2043
2059
  };
2044
2060
  });
2061
+ function capSize(inst, size) {
2062
+ const caps = sizeCaps(inst._zod.def.checks);
2063
+ if (!caps.length) return;
2064
+ const cap = Math.min(...caps.map((c) => c[0]));
2065
+ const parse = inst._zod.parse;
2066
+ inst._zod.parse = (payload, ctx) => {
2067
+ const n = size(payload.value);
2068
+ if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
2069
+ for (const [max, ch] of sizeCaps(inst._zod.def.checks)) if (n > max && ch._zod.def.when(payload)) {
2070
+ const start = payload.issues.length;
2071
+ ch._zod.check(payload);
2072
+ payload.issues[start].continue = false;
2073
+ attachSchema(payload.issues, start, inst);
2074
+ return payload;
2075
+ }
2076
+ }
2077
+ return parse(payload, ctx);
2078
+ };
2079
+ }
2080
+ const arraySize = (input) => Array.isArray(input) ? input.length : -1;
2045
2081
  function handleArrayResult(result, final, index) {
2046
2082
  if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
2047
2083
  final.value[index] = result.value;
@@ -2079,6 +2115,7 @@ const $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
2079
2115
  if (proms.length) return Promise.all(proms).then(() => payload);
2080
2116
  return payload;
2081
2117
  };
2118
+ capSize(inst, arraySize);
2082
2119
  });
2083
2120
  function handlePropertyResult(result, final, key, input, optin, optout) {
2084
2121
  const isPresent = key in input;
@@ -2763,7 +2800,7 @@ function handleRefineResult(result, payload, input, inst) {
2763
2800
  }
2764
2801
  }
2765
2802
  //#endregion
2766
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/memoizer.js
2803
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/memoizer.js
2767
2804
  var $ZodCyclicError = class extends Error {
2768
2805
  constructor() {
2769
2806
  super(`Cannot parse a reference cycle that closes through a transform`);
@@ -3016,7 +3053,7 @@ function isBackEdge(ctx, value) {
3016
3053
  return backEdges !== void 0 && isRef(value) && backEdges.has(value);
3017
3054
  }
3018
3055
  //#endregion
3019
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/locales/en.js
3056
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/locales/en.js
3020
3057
  const error = () => {
3021
3058
  const Sizable = {
3022
3059
  string: {
@@ -3124,7 +3161,7 @@ function en_default() {
3124
3161
  return { localeError: error() };
3125
3162
  }
3126
3163
  //#endregion
3127
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/registries.js
3164
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/registries.js
3128
3165
  var _a;
3129
3166
  var $ZodRegistry = class {
3130
3167
  constructor() {
@@ -3171,7 +3208,7 @@ function registry() {
3171
3208
  (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
3172
3209
  const globalRegistry = globalThis.__zod_globalRegistry;
3173
3210
  //#endregion
3174
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/api.js
3211
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/api.js
3175
3212
  function snapshotChecks(def) {
3176
3213
  if (def.checks) def.checks = [...def.checks];
3177
3214
  return def;
@@ -3611,7 +3648,7 @@ function _check(fn, params) {
3611
3648
  return ch;
3612
3649
  }
3613
3650
  //#endregion
3614
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/to-json-schema.js
3651
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/to-json-schema.js
3615
3652
  function assignProps(target, ...sources) {
3616
3653
  for (const source of sources) for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProp(target, key, source[key]);
3617
3654
  return target;
@@ -3976,8 +4013,10 @@ function finalize(ctx, schema) {
3976
4013
  }
3977
4014
  }
3978
4015
  if (ctx.external) ctx.sharedEmitDoneFor = ctx.external;
3979
- if (ctx.external) {} else if (Object.keys(defs).length > 0) if (ctx.target === "draft-2020-12") result.$defs = defs;
3980
- else result.definitions = defs;
4016
+ if (ctx.external) {} else if (Object.keys(defs).length > 0) {
4017
+ if (ctx.target === "draft-2020-12") result.$defs = defs;
4018
+ else result.definitions = defs;
4019
+ }
3981
4020
  try {
3982
4021
  const finalized = JSON.parse(JSON.stringify(result));
3983
4022
  Object.defineProperty(finalized, "~standard", {
@@ -4053,7 +4092,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
4053
4092
  return finalize(ctx, schema);
4054
4093
  };
4055
4094
  //#endregion
4056
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/json-schema-processors.js
4095
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/json-schema-processors.js
4057
4096
  const narrowMin = (agg, key, value) => {
4058
4097
  if (agg[key] === void 0 || value > agg[key]) agg[key] = value;
4059
4098
  };
@@ -4343,7 +4382,7 @@ const optionalProcessor = (schema, ctx, _json, params) => {
4343
4382
  seen.ref = def.innerType;
4344
4383
  };
4345
4384
  //#endregion
4346
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/classic/errors.js
4385
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/classic/errors.js
4347
4386
  const _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
4348
4387
  function _lazyMethod(proto, key, make) {
4349
4388
  Object.defineProperty(proto, key, {
@@ -4393,7 +4432,7 @@ const initializer = (inst, issues) => {
4393
4432
  };
4394
4433
  const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, void 0, { Parent: Error });
4395
4434
  //#endregion
4396
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/classic/parse.js
4435
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/classic/parse.js
4397
4436
  const parse = /* @__PURE__ */ _parse(ZodRealError);
4398
4437
  const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
4399
4438
  const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -4407,7 +4446,7 @@ const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
4407
4446
  const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
4408
4447
  const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
4409
4448
  //#endregion
4410
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/classic/schemas.js
4449
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/classic/schemas.js
4411
4450
  function _ensureDefaultLocale() {
4412
4451
  if (!globalConfig.localeError) config(en_default());
4413
4452
  }