@eslint-react/core 1.43.2-next.1 → 1.45.0-beta.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.mjs CHANGED
@@ -8,9 +8,13 @@ import * as VAR from '@eslint-react/var';
8
8
  import { isMatching, P, match } from 'ts-pattern';
9
9
  import birecord from 'birecord';
10
10
 
11
- // src/component/component-collector.ts
11
+ var __defProp = Object.defineProperty;
12
+ var __export = (target, all) => {
13
+ for (var name in all)
14
+ __defProp(target, name, { get: all[name], enumerable: true });
15
+ };
12
16
 
13
- // ../../node_modules/.pnpm/@zod+core@0.1.0/node_modules/@zod/core/dist/esm/core.js
17
+ // ../../node_modules/.pnpm/@zod+core@0.3.3/node_modules/@zod/core/dist/esm/core.js
14
18
  // @__NO_SIDE_EFFECTS__
15
19
  function $constructor(name, initializer) {
16
20
  class _6 {
@@ -51,6 +55,87 @@ var globalConfig = {};
51
55
  function config(config2) {
52
56
  return globalConfig;
53
57
  }
58
+
59
+ // ../../node_modules/.pnpm/@zod+core@0.3.3/node_modules/@zod/core/dist/esm/util.js
60
+ var util_exports = {};
61
+ __export(util_exports, {
62
+ BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
63
+ NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
64
+ aborted: () => aborted,
65
+ allowsEval: () => allowsEval,
66
+ assert: () => assert,
67
+ assertEqual: () => assertEqual,
68
+ assertIs: () => assertIs,
69
+ assertNever: () => assertNever,
70
+ assertNotEqual: () => assertNotEqual,
71
+ assignProp: () => assignProp,
72
+ cached: () => cached,
73
+ cleanInterfaceKey: () => cleanInterfaceKey,
74
+ cleanInterfaceShape: () => cleanInterfaceShape,
75
+ cleanRegex: () => cleanRegex,
76
+ clone: () => clone,
77
+ createTransparentProxy: () => createTransparentProxy,
78
+ defineLazy: () => defineLazy,
79
+ esc: () => esc,
80
+ escapeRegex: () => escapeRegex,
81
+ extend: () => extend,
82
+ extendObjectLike: () => extendObjectLike,
83
+ finalizeIssue: () => finalizeIssue,
84
+ floatSafeRemainder: () => floatSafeRemainder,
85
+ getElementAtPath: () => getElementAtPath,
86
+ getLengthableOrigin: () => getLengthableOrigin,
87
+ getParsedType: () => getParsedType,
88
+ getSizableOrigin: () => getSizableOrigin,
89
+ getValidEnumValues: () => getValidEnumValues,
90
+ isObject: () => isObject,
91
+ isPlainObject: () => isPlainObject,
92
+ issue: () => issue,
93
+ joinValues: () => joinValues,
94
+ jsonStringifyReplacer: () => jsonStringifyReplacer,
95
+ mergeObjectLike: () => mergeObjectLike,
96
+ normalizeObjectLikeDef: () => normalizeObjectLikeDef,
97
+ normalizeParams: () => normalizeParams,
98
+ nullish: () => nullish,
99
+ numKeys: () => numKeys,
100
+ omit: () => omit,
101
+ optionalInterfaceKeys: () => optionalInterfaceKeys,
102
+ optionalObjectKeys: () => optionalObjectKeys,
103
+ partialObjectLike: () => partialObjectLike,
104
+ pick: () => pick,
105
+ prefixIssues: () => prefixIssues,
106
+ primitiveTypes: () => primitiveTypes,
107
+ promiseAllObject: () => promiseAllObject,
108
+ propertyKeyTypes: () => propertyKeyTypes,
109
+ randomString: () => randomString,
110
+ requiredObjectLike: () => requiredObjectLike,
111
+ splitChecksAndParams: () => splitChecksAndParams,
112
+ stringifyPrimitive: () => stringifyPrimitive,
113
+ unwrapMessage: () => unwrapMessage
114
+ });
115
+ function assertEqual(val) {
116
+ return val;
117
+ }
118
+ function assertNotEqual(val) {
119
+ return val;
120
+ }
121
+ function assertIs(_arg) {
122
+ }
123
+ function assertNever(_x) {
124
+ throw new Error();
125
+ }
126
+ function assert(_6) {
127
+ }
128
+ function getValidEnumValues(obj) {
129
+ const validKeys = Object.keys(obj).filter((k) => typeof obj[obj[k]] !== "number");
130
+ const filtered = {};
131
+ for (const k of validKeys) {
132
+ filtered[k] = obj[k];
133
+ }
134
+ return Object.values(filtered);
135
+ }
136
+ function joinValues(array2, separator = "|") {
137
+ return array2.map((val) => stringifyPrimitive(val)).join(separator);
138
+ }
54
139
  function jsonStringifyReplacer(_6, value) {
55
140
  if (typeof value === "bigint")
56
141
  return value.toString();
@@ -67,11 +152,22 @@ function cached(getter) {
67
152
  }
68
153
  };
69
154
  }
155
+ function nullish(input) {
156
+ return input === null || input === void 0;
157
+ }
70
158
  function cleanRegex(source) {
71
159
  const start = source.startsWith("^") ? 1 : 0;
72
160
  const end = source.endsWith("$") ? source.length - 1 : source.length;
73
161
  return source.slice(start, end);
74
162
  }
163
+ function floatSafeRemainder(val, step) {
164
+ const valDecCount = (val.toString().split(".")[1] || "").length;
165
+ const stepDecCount = (step.toString().split(".")[1] || "").length;
166
+ const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
167
+ const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
168
+ const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
169
+ return valInt % stepInt / 10 ** decCount;
170
+ }
75
171
  function defineLazy(object2, key, getter) {
76
172
  Object.defineProperty(object2, key, {
77
173
  get() {
@@ -90,6 +186,30 @@ function defineLazy(object2, key, getter) {
90
186
  configurable: true
91
187
  });
92
188
  }
189
+ function assignProp(target, prop, value) {
190
+ Object.defineProperty(target, prop, {
191
+ value,
192
+ writable: true,
193
+ enumerable: true,
194
+ configurable: true
195
+ });
196
+ }
197
+ function getElementAtPath(obj, path) {
198
+ if (!path)
199
+ return obj;
200
+ return path.reduce((acc, key) => acc?.[key], obj);
201
+ }
202
+ function promiseAllObject(promisesObj) {
203
+ const keys = Object.keys(promisesObj);
204
+ const promises = keys.map((key) => promisesObj[key]);
205
+ return Promise.all(promises).then((results) => {
206
+ const resolvedObj = {};
207
+ for (let i = 0; i < keys.length; i++) {
208
+ resolvedObj[keys[i]] = results[i];
209
+ }
210
+ return resolvedObj;
211
+ });
212
+ }
93
213
  function randomString(length = 10) {
94
214
  const chars = "abcdefghijklmnopqrstuvwxyz";
95
215
  let str = "";
@@ -112,9 +232,78 @@ var allowsEval = cached(() => {
112
232
  return false;
113
233
  }
114
234
  });
235
+ function isPlainObject(data) {
236
+ return typeof data === "object" && data !== null && Object.getPrototypeOf(data) === Object.prototype;
237
+ }
238
+ function numKeys(data) {
239
+ let keyCount = 0;
240
+ for (const key in data) {
241
+ if (Object.prototype.hasOwnProperty.call(data, key)) {
242
+ keyCount++;
243
+ }
244
+ }
245
+ return keyCount;
246
+ }
247
+ var getParsedType = (data) => {
248
+ const t = typeof data;
249
+ switch (t) {
250
+ case "undefined":
251
+ return "undefined";
252
+ case "string":
253
+ return "string";
254
+ case "number":
255
+ return Number.isNaN(data) ? "nan" : "number";
256
+ case "boolean":
257
+ return "boolean";
258
+ case "function":
259
+ return "function";
260
+ case "bigint":
261
+ return "bigint";
262
+ case "symbol":
263
+ return "symbol";
264
+ case "object":
265
+ if (Array.isArray(data)) {
266
+ return "array";
267
+ }
268
+ if (data === null) {
269
+ return "null";
270
+ }
271
+ if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
272
+ return "promise";
273
+ }
274
+ if (typeof Map !== "undefined" && data instanceof Map) {
275
+ return "map";
276
+ }
277
+ if (typeof Set !== "undefined" && data instanceof Set) {
278
+ return "set";
279
+ }
280
+ if (typeof Date !== "undefined" && data instanceof Date) {
281
+ return "date";
282
+ }
283
+ if (typeof File !== "undefined" && data instanceof File) {
284
+ return "file";
285
+ }
286
+ return "object";
287
+ default:
288
+ throw new Error(`Unknown data type: ${t}`);
289
+ }
290
+ };
291
+ var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
292
+ var primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
293
+ function escapeRegex(str) {
294
+ return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
295
+ }
115
296
  function clone(inst, def) {
116
297
  return new inst._zod.constr(def);
117
298
  }
299
+ function splitChecksAndParams(_paramsOrChecks, _checks) {
300
+ const params = Array.isArray(_paramsOrChecks) ? {} : _paramsOrChecks ?? {};
301
+ const checks = Array.isArray(_paramsOrChecks) ? _paramsOrChecks : _checks ?? [];
302
+ return {
303
+ checks,
304
+ params
305
+ };
306
+ }
118
307
  function normalizeParams(_params) {
119
308
  const params = _params;
120
309
  if (!params)
@@ -131,11 +320,267 @@ function normalizeParams(_params) {
131
320
  return { ...params, error: () => params.error };
132
321
  return params;
133
322
  }
323
+ function createTransparentProxy(getter) {
324
+ let target;
325
+ return new Proxy({}, {
326
+ get(_6, prop, receiver) {
327
+ target ?? (target = getter());
328
+ return Reflect.get(target, prop, receiver);
329
+ },
330
+ set(_6, prop, value, receiver) {
331
+ target ?? (target = getter());
332
+ return Reflect.set(target, prop, value, receiver);
333
+ },
334
+ has(_6, prop) {
335
+ target ?? (target = getter());
336
+ return Reflect.has(target, prop);
337
+ },
338
+ deleteProperty(_6, prop) {
339
+ target ?? (target = getter());
340
+ return Reflect.deleteProperty(target, prop);
341
+ },
342
+ ownKeys(_6) {
343
+ target ?? (target = getter());
344
+ return Reflect.ownKeys(target);
345
+ },
346
+ getOwnPropertyDescriptor(_6, prop) {
347
+ target ?? (target = getter());
348
+ return Reflect.getOwnPropertyDescriptor(target, prop);
349
+ },
350
+ defineProperty(_6, prop, descriptor) {
351
+ target ?? (target = getter());
352
+ return Reflect.defineProperty(target, prop, descriptor);
353
+ }
354
+ // apply(target, thisArg, args) {
355
+ // return Reflect.apply(target, thisArg, args);
356
+ // },
357
+ // construct(target, args, newTarget) {
358
+ // return Reflect.construct(target, args, newTarget);
359
+ // },
360
+ });
361
+ }
362
+ function stringifyPrimitive(value) {
363
+ if (typeof value === "bigint")
364
+ return value.toString() + "n";
365
+ if (typeof value === "string")
366
+ return `"${value}"`;
367
+ return `${value}`;
368
+ }
134
369
  function optionalObjectKeys(shape) {
135
370
  return Object.keys(shape).filter((k) => {
136
371
  return shape[k]._zod.qout === "true";
137
372
  });
138
373
  }
374
+ function optionalInterfaceKeys(shape) {
375
+ return Object.keys(shape).filter((k) => {
376
+ return k.endsWith("?");
377
+ }).map((k) => k.replace(/\?$/, ""));
378
+ }
379
+ function cleanInterfaceKey(key) {
380
+ return key.replace(/^\?/, "").replace(/\?$/, "");
381
+ }
382
+ function cleanInterfaceShape(_shape) {
383
+ const keyMap = {};
384
+ const shape = {};
385
+ const optional2 = [];
386
+ const defaulted = [];
387
+ for (const [key, value] of Object.entries(_shape)) {
388
+ if (key.endsWith("?"))
389
+ optional2.push(key.slice(0, -1));
390
+ if (key.startsWith("?"))
391
+ defaulted.push(key.slice(1));
392
+ const cleanKey = cleanInterfaceKey(key);
393
+ shape[cleanKey] = value;
394
+ keyMap[cleanKey] = key;
395
+ }
396
+ return { shape, keyMap, optional: optional2, defaulted };
397
+ }
398
+ var NUMBER_FORMAT_RANGES = {
399
+ safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
400
+ int32: [-2147483648, 2147483647],
401
+ uint32: [0, 4294967295],
402
+ float32: [-34028234663852886e22, 34028234663852886e22],
403
+ float64: [-17976931348623157e292, 17976931348623157e292]
404
+ };
405
+ var BIGINT_FORMAT_RANGES = {
406
+ int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
407
+ uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
408
+ };
409
+ function pick(schema, mask) {
410
+ const newShape = {};
411
+ const newOptional = [];
412
+ const currShape = schema._zod.def.shape;
413
+ const currOptional = new Set(schema._zod.def.optional);
414
+ for (const key in mask) {
415
+ if (!(key in currShape)) {
416
+ throw new Error(`Unrecognized key: "${key}"`);
417
+ }
418
+ if (!mask[key])
419
+ continue;
420
+ newShape[key] = currShape[key];
421
+ if (currOptional.has(key)) {
422
+ newOptional.push(key);
423
+ }
424
+ }
425
+ return clone(schema, {
426
+ ...schema._zod.def,
427
+ shape: newShape,
428
+ optional: newOptional,
429
+ checks: []
430
+ });
431
+ }
432
+ function omit(schema, mask) {
433
+ const newShape = { ...schema._zod.def.shape };
434
+ const newOptional = new Set(schema._zod.def.optional);
435
+ for (const key in mask) {
436
+ if (!(key in schema._zod.def.shape)) {
437
+ throw new Error(`Unrecognized key: "${key}"`);
438
+ }
439
+ if (!mask[key])
440
+ continue;
441
+ delete newShape[key];
442
+ newOptional.delete(key);
443
+ }
444
+ return clone(schema, {
445
+ ...schema._zod.def,
446
+ shape: newShape,
447
+ optional: [...newOptional],
448
+ checks: []
449
+ });
450
+ }
451
+ function extend(schema, shape) {
452
+ const def = {
453
+ ...schema._zod.def,
454
+ get shape() {
455
+ const _shape = { ...schema._zod.def.shape, ...shape };
456
+ assignProp(this, "shape", _shape);
457
+ return _shape;
458
+ },
459
+ checks: []
460
+ // delete existing checks
461
+ };
462
+ defineLazy(def, "shape", () => ({ ...schema._zod.def.shape, ...shape }));
463
+ return clone(schema, def);
464
+ }
465
+ function mergeObjectLike(a, b) {
466
+ const bKeys = new Set(Object.keys(b._zod.def.shape));
467
+ const optional2 = [...a._zod.def.optional.filter((k) => !bKeys.has(k)), ...b._zod.def.optional];
468
+ return clone(a, {
469
+ ...a._zod.def,
470
+ get shape() {
471
+ const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
472
+ assignProp(this, "shape", _shape);
473
+ return _shape;
474
+ },
475
+ optional: optional2,
476
+ catchall: b._zod.def.catchall,
477
+ checks: []
478
+ // delete existing checks
479
+ });
480
+ }
481
+ function extendObjectLike(a, b) {
482
+ const bKeys = new Set(Object.keys(b._zod.def.shape));
483
+ const optional2 = [...a._zod.def.optional.filter((k) => !bKeys.has(k)), ...b._zod.def.optional];
484
+ return clone(a, {
485
+ ...a._zod.def,
486
+ get shape() {
487
+ const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
488
+ assignProp(this, "shape", _shape);
489
+ return _shape;
490
+ },
491
+ optional: optional2,
492
+ checks: []
493
+ // delete existent checks
494
+ });
495
+ }
496
+ function partialObjectLike(Class, schema, mask) {
497
+ const shape = { ...schema._zod.def.shape };
498
+ const optional2 = new Set(schema._zod.def.optional);
499
+ if (mask) {
500
+ for (const key in mask) {
501
+ if (!(key in shape)) {
502
+ throw new Error(`Unrecognized key: "${key}"`);
503
+ }
504
+ if (!mask[key])
505
+ continue;
506
+ shape[key] = new Class({
507
+ type: "optional",
508
+ innerType: schema._zod.def.shape[key]
509
+ });
510
+ optional2.add(key);
511
+ }
512
+ } else {
513
+ for (const key in schema._zod.def.shape) {
514
+ shape[key] = new Class({
515
+ type: "optional",
516
+ innerType: schema._zod.def.shape[key]
517
+ });
518
+ optional2.add(key);
519
+ }
520
+ }
521
+ return clone(schema, {
522
+ ...schema._zod.def,
523
+ shape,
524
+ optional: [...optional2],
525
+ checks: []
526
+ });
527
+ }
528
+ function requiredObjectLike(Class, schema, mask) {
529
+ const shape = { ...schema._zod.def.shape };
530
+ if (mask) {
531
+ for (const key in mask) {
532
+ if (!(key in shape)) {
533
+ throw new Error(`Unrecognized key: "${key}"`);
534
+ }
535
+ if (!mask[key])
536
+ continue;
537
+ shape[key] = new Class({
538
+ type: "nonoptional",
539
+ innerType: schema._zod.def.shape[key]
540
+ });
541
+ }
542
+ } else {
543
+ for (const key in schema._zod.def.shape) {
544
+ shape[key] = new Class({
545
+ type: "nonoptional",
546
+ innerType: schema._zod.def.shape[key]
547
+ });
548
+ }
549
+ }
550
+ return clone(schema, {
551
+ ...schema._zod.def,
552
+ shape,
553
+ optional: [],
554
+ checks: []
555
+ });
556
+ }
557
+ function normalizeObjectLikeDef(def) {
558
+ if (def.type === "interface") {
559
+ const keys = Object.keys(def.shape);
560
+ const keySet = new Set(Object.keys(def.shape));
561
+ return {
562
+ shape: { ...def.shape },
563
+ // resolve getters
564
+ keys,
565
+ keySet,
566
+ numKeys: keys.length,
567
+ optionalKeys: new Set(def.optional)
568
+ };
569
+ }
570
+ if (def.type === "object") {
571
+ const keys = Object.keys(def.shape);
572
+ const keySet = new Set(Object.keys(def.shape));
573
+ return {
574
+ shape: { ...def.shape },
575
+ // resolve getters
576
+ keys,
577
+ keySet,
578
+ numKeys: keys.length,
579
+ optionalKeys: new Set(def.optional)
580
+ };
581
+ }
582
+ throw new Error("Invalid object-like type");
583
+ }
139
584
  function aborted(x, startIndex = 0) {
140
585
  for (let i = startIndex; i < x.issues.length; i++) {
141
586
  if (x.issues[i].continue !== true)
@@ -167,8 +612,36 @@ function finalizeIssue(iss, ctx, config2) {
167
612
  }
168
613
  return full;
169
614
  }
615
+ function getSizableOrigin(input) {
616
+ if (input instanceof Set)
617
+ return "set";
618
+ if (input instanceof Map)
619
+ return "map";
620
+ if (input instanceof File)
621
+ return "file";
622
+ return "unknown";
623
+ }
624
+ function getLengthableOrigin(input) {
625
+ if (Array.isArray(input))
626
+ return "array";
627
+ if (typeof input === "string")
628
+ return "string";
629
+ return "unknown";
630
+ }
631
+ function issue(...args) {
632
+ const [iss, input, inst] = args;
633
+ if (typeof iss === "string") {
634
+ return {
635
+ message: iss,
636
+ code: "custom",
637
+ input,
638
+ inst
639
+ };
640
+ }
641
+ return { ...iss };
642
+ }
170
643
 
171
- // ../../node_modules/.pnpm/@zod+core@0.1.0/node_modules/@zod/core/dist/esm/errors.js
644
+ // ../../node_modules/.pnpm/@zod+core@0.3.3/node_modules/@zod/core/dist/esm/errors.js
172
645
  var ZOD_ERROR = Symbol.for("{{zod.error}}");
173
646
  var $ZodError = class {
174
647
  get message() {
@@ -185,7 +658,7 @@ var $ZodError = class {
185
658
  }
186
659
  };
187
660
 
188
- // ../../node_modules/.pnpm/@zod+core@0.1.0/node_modules/@zod/core/dist/esm/parse.js
661
+ // ../../node_modules/.pnpm/@zod+core@0.3.3/node_modules/@zod/core/dist/esm/parse.js
189
662
  function _parse(schema, value, _ctx) {
190
663
  const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
191
664
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -237,7 +710,7 @@ var string = (params) => {
237
710
  };
238
711
  var boolean = /true|false/i;
239
712
 
240
- // ../../node_modules/.pnpm/@zod+core@0.1.0/node_modules/@zod/core/dist/esm/doc.js
713
+ // ../../node_modules/.pnpm/@zod+core@0.3.3/node_modules/@zod/core/dist/esm/doc.js
241
714
  var Doc = class {
242
715
  constructor(args) {
243
716
  this.content = [];
@@ -269,13 +742,21 @@ var Doc = class {
269
742
  }
270
743
  };
271
744
 
272
- // ../../node_modules/.pnpm/@zod+core@0.1.0/node_modules/@zod/core/dist/esm/schemas.js
745
+ // ../../node_modules/.pnpm/@zod+core@0.3.3/node_modules/@zod/core/dist/esm/versions.js
746
+ var version = {
747
+ major: 0,
748
+ minor: 3,
749
+ patch: 3
750
+ };
751
+
752
+ // ../../node_modules/.pnpm/@zod+core@0.3.3/node_modules/@zod/core/dist/esm/schemas.js
273
753
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
274
754
  var _a;
275
755
  inst ?? (inst = {});
276
756
  inst._zod.id = def.type + "_" + randomString(10);
277
757
  inst._zod.def = def;
278
758
  inst._zod.computed = inst._zod.computed || {};
759
+ inst._zod.version = version;
279
760
  const checks = [...inst._zod.def.checks ?? []];
280
761
  def.type;
281
762
  if (inst._zod.traits.has("$ZodCheck")) {
@@ -343,7 +824,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
343
824
  return runChecks(result, checks, ctx);
344
825
  };
345
826
  }
346
- defineLazy(inst, "~standard", () => ({
827
+ inst["~standard"] = {
347
828
  validate: (value) => {
348
829
  const result = inst._zod.run({ value, issues: [] }, {});
349
830
  if (result instanceof Promise) {
@@ -359,7 +840,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
359
840
  },
360
841
  vendor: "zod",
361
842
  version: 1
362
- }));
843
+ };
363
844
  });
364
845
  var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
365
846
  $ZodType.init(inst, def);
@@ -564,7 +1045,9 @@ var $ZodObjectLike = /* @__PURE__ */ $constructor("$ZodObjectLike", (inst, def)
564
1045
  const fastEnabled = allowsEval.value;
565
1046
  const isObject2 = isObject;
566
1047
  const { catchall } = def;
1048
+ let value;
567
1049
  inst._zod.parse = (payload, ctx) => {
1050
+ value ?? (value = _normalized.value);
568
1051
  const input = payload.value;
569
1052
  if (!isObject2(input)) {
570
1053
  payload.issues.push({
@@ -582,7 +1065,7 @@ var $ZodObjectLike = /* @__PURE__ */ $constructor("$ZodObjectLike", (inst, def)
582
1065
  payload = fastpass(payload, ctx);
583
1066
  } else {
584
1067
  payload.value = {};
585
- const { keys, shape, optionalKeys } = _normalized.value;
1068
+ const { keys, shape, optionalKeys } = value;
586
1069
  for (const key of keys) {
587
1070
  const valueSchema = shape[key];
588
1071
  const r = valueSchema._zod.run({ value: input[key], issues: [] }, ctx);
@@ -602,14 +1085,17 @@ var $ZodObjectLike = /* @__PURE__ */ $constructor("$ZodObjectLike", (inst, def)
602
1085
  return proms.length ? Promise.all(proms).then(() => payload) : payload;
603
1086
  }
604
1087
  const unrecognized = [];
1088
+ const keySet = value.keySet;
1089
+ const _catchall = catchall._zod;
1090
+ const t = _catchall.def.type;
605
1091
  for (const key of Object.keys(input)) {
606
- if (_normalized.value.keySet.has(key))
1092
+ if (keySet.has(key))
607
1093
  continue;
608
- if (catchall._zod.def.type === "never") {
1094
+ if (t === "never") {
609
1095
  unrecognized.push(key);
610
1096
  continue;
611
1097
  }
612
- const r = catchall._zod.run({ value: input[key], issues: [] }, ctx);
1098
+ const r = _catchall.run({ value: input[key], issues: [] }, ctx);
613
1099
  if (r instanceof Promise) {
614
1100
  proms.push(r.then((r2) => handleObjectResult(r2, payload, key)));
615
1101
  } else {
@@ -650,7 +1136,7 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
650
1136
  };
651
1137
  });
652
1138
 
653
- // ../../node_modules/.pnpm/@zod+core@0.1.0/node_modules/@zod/core/dist/esm/api.js
1139
+ // ../../node_modules/.pnpm/@zod+core@0.3.3/node_modules/@zod/core/dist/esm/api.js
654
1140
  function _string(Class, params) {
655
1141
  return new Class({
656
1142
  type: "string",
@@ -664,7 +1150,7 @@ function _boolean(Class, params) {
664
1150
  });
665
1151
  }
666
1152
 
667
- // ../../node_modules/.pnpm/@zod+mini@4.0.0-beta.0/node_modules/@zod/mini/dist/esm/parse.js
1153
+ // ../../node_modules/.pnpm/@zod+mini@4.0.0-beta.20250411T005215_60e10b0f348e07070e4d24639ea7d4ee/node_modules/@zod/mini/dist/esm/parse.js
668
1154
  var parse2 = /* @__PURE__ */ _parse.bind({ Error: $ZodError });
669
1155
  var safeParse = /* @__PURE__ */ _safeParse.bind({ Error: $ZodError });
670
1156
  var parseAsync2 = /* @__PURE__ */ _parseAsync.bind({ Error: $ZodError });
@@ -672,7 +1158,7 @@ var safeParseAsync = /* @__PURE__ */ _safeParseAsync.bind({
672
1158
  Error: $ZodError
673
1159
  });
674
1160
 
675
- // ../../node_modules/.pnpm/@zod+mini@4.0.0-beta.0/node_modules/@zod/mini/dist/esm/schemas.js
1161
+ // ../../node_modules/.pnpm/@zod+mini@4.0.0-beta.20250411T005215_60e10b0f348e07070e4d24639ea7d4ee/node_modules/@zod/mini/dist/esm/schemas.js
676
1162
  var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
677
1163
  if (!inst._zod)
678
1164
  throw new Error("Uninitialized schema in mixin ZodMiniType.");
@@ -723,7 +1209,7 @@ function array(element, params) {
723
1209
  // get element() {
724
1210
  // return element;
725
1211
  // },
726
- ...normalizeParams(params)
1212
+ ...util_exports.normalizeParams(params)
727
1213
  });
728
1214
  }
729
1215
  var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
@@ -735,9 +1221,9 @@ function object(shape, params) {
735
1221
  type: "object",
736
1222
  shape: shape ?? {},
737
1223
  get optional() {
738
- return optionalObjectKeys(shape ?? {});
1224
+ return util_exports.optionalObjectKeys(shape ?? {});
739
1225
  },
740
- ...normalizeParams(params)
1226
+ ...util_exports.normalizeParams(params)
741
1227
  };
742
1228
  return new ZodMiniObject(def);
743
1229
  }
@@ -749,7 +1235,7 @@ function optional(innerType, params) {
749
1235
  return new ZodMiniOptional({
750
1236
  type: "optional",
751
1237
  innerType,
752
- ...normalizeParams(params)
1238
+ ...util_exports.normalizeParams(params)
753
1239
  });
754
1240
  }
755
1241
 
@@ -1007,6 +1493,7 @@ function isReactAPI(arg0, arg1) {
1007
1493
  function isReactAPICall(arg0, arg1) {
1008
1494
  return arg1 == null ? isCallFromReact(arg0) : isCallFromReactObject(arg0, arg1);
1009
1495
  }
1496
+ var isCaptureOwnerStack = isReactAPI("captureOwnerStack");
1010
1497
  var isChildrenCount = isReactAPI("Children", "count");
1011
1498
  var isChildrenForEach = isReactAPI("Children", "forEach");
1012
1499
  var isChildrenMap = isReactAPI("Children", "map");
@@ -1018,6 +1505,8 @@ var isCreateElement = isReactAPI("createElement");
1018
1505
  var isCreateRef = isReactAPI("createRef");
1019
1506
  var isForwardRef = isReactAPI("forwardRef");
1020
1507
  var isMemo = isReactAPI("memo");
1508
+ var isLazy = isReactAPI("lazy");
1509
+ var isCaptureOwnerStackCall = isReactAPICall("captureOwnerStack");
1021
1510
  var isChildrenCountCall = isReactAPICall("Children", "count");
1022
1511
  var isChildrenForEachCall = isReactAPICall("Children", "forEach");
1023
1512
  var isChildrenMapCall = isReactAPICall("Children", "map");
@@ -1029,6 +1518,7 @@ var isCreateElementCall = isReactAPICall("createElement");
1029
1518
  var isCreateRefCall = isReactAPICall("createRef");
1030
1519
  var isForwardRefCall = isReactAPICall("forwardRef");
1031
1520
  var isMemoCall = isReactAPICall("memo");
1521
+ var isLazyCall = isReactAPICall("lazy");
1032
1522
 
1033
1523
  // src/hook/hook-name.ts
1034
1524
  function isReactHookName(name) {
@@ -1378,7 +1868,7 @@ function isValidComponentDefinition(context, node, hint) {
1378
1868
  if (hint & ComponentDetectionHint.SkipArrayMapArgument && AST6.isArrayMapCall(node.parent)) {
1379
1869
  return false;
1380
1870
  }
1381
- const boundaryNode = AST6.findParentNode(
1871
+ const significantParent = AST6.findParentNode(
1382
1872
  node,
1383
1873
  AST6.isOneOf([
1384
1874
  AST_NODE_TYPES.JSXExpressionContainer,
@@ -1388,7 +1878,7 @@ function isValidComponentDefinition(context, node, hint) {
1388
1878
  AST_NODE_TYPES.ClassBody
1389
1879
  ])
1390
1880
  );
1391
- return boundaryNode == null || boundaryNode.type !== AST_NODE_TYPES.JSXExpressionContainer;
1881
+ return significantParent == null || significantParent.type !== AST_NODE_TYPES.JSXExpressionContainer;
1392
1882
  }
1393
1883
  function isComponentWrapperCall(context, node) {
1394
1884
  if (node.type !== AST_NODE_TYPES.CallExpression) return false;
@@ -1643,4 +2133,4 @@ function isAssignmentToThisState(node) {
1643
2133
  return left.type === AST_NODE_TYPES.MemberExpression && AST6.isThisExpression(left.object) && AST6.getPropertyName(left.property) === "state";
1644
2134
  }
1645
2135
 
1646
- export { ComponentDetectionHint, ComponentFlag, ComponentPhaseRelevance, DEFAULT_COMPONENT_DETECTION_HINT, getComponentFlagFromInitPath, getComponentNameFromId, getFunctionComponentId, getInstanceId, hasNoneOrLooseComponentName, isAssignmentToThisState, isCallFromReact, isCallFromReactObject, isChildrenCount, isChildrenCountCall, isChildrenForEach, isChildrenForEachCall, isChildrenMap, isChildrenMapCall, isChildrenOfCreateElement, isChildrenOnly, isChildrenOnlyCall, isChildrenToArray, isChildrenToArrayCall, isClassComponent, isCloneElement, isCloneElementCall, isComponentDidCatch, isComponentDidMount, isComponentDidUpdate, isComponentName, isComponentNameLoose, isComponentWillMount, isComponentWillReceiveProps, isComponentWillUnmount, isComponentWillUpdate, isComponentWrapperCall, isComponentWrapperCallLoose, isCreateContext, isCreateContextCall, isCreateElement, isCreateElementCall, isCreateRef, isCreateRefCall, isDeclaredInRenderPropLoose, isDirectValueOfRenderPropertyLoose, isForwardRef, isForwardRefCall, isFromReact, isFromReactLoose, isFromReactObject, isFromReactStrict, isFunctionOfComponentDidMount, isFunctionOfComponentWillUnmount, isFunctionOfRender, isFunctionOfRenderMethod, isFunctionOfUseEffectCleanup, isFunctionOfUseEffectSetup, isGetChildContext, isGetDefaultProps, isGetDerivedStateFromError, isGetDerivedStateFromProps, isGetInitialState, isGetSnapshotBeforeUpdate, isInitializedFromReact, isInsideRenderMethod, isInstanceIdEqual, isInversePhase, isMemo, isMemoCall, isPureComponent, isReactAPI, isReactAPICall, isReactHook, isReactHookCall, isReactHookCallWithName, isReactHookCallWithNameAlias, isReactHookCallWithNameLoose, isReactHookName, isRenderFunctionLoose, isRenderLike, isRenderMethodLike, isRenderPropLoose, isShouldComponentUpdate, isThisSetState, isUnsafeComponentWillMount, isUnsafeComponentWillReceiveProps, isUnsafeComponentWillUpdate, isUseActionStateCall, isUseCall, isUseCallbackCall, isUseContextCall, isUseDebugValueCall, isUseDeferredValueCall, isUseEffectCall, isUseEffectCallLoose, isUseFormStatusCall, isUseIdCall, isUseImperativeHandleCall, isUseInsertionEffectCall, isUseLayoutEffectCall, isUseMemoCall, isUseOptimisticCall, isUseReducerCall, isUseRefCall, isUseStateCall, isUseSyncExternalStoreCall, isUseTransitionCall, isValidComponentDefinition, useComponentCollector, useComponentCollectorLegacy, useHookCollector };
2136
+ export { ComponentDetectionHint, ComponentFlag, ComponentPhaseRelevance, DEFAULT_COMPONENT_DETECTION_HINT, getComponentFlagFromInitPath, getComponentNameFromId, getFunctionComponentId, getInstanceId, hasNoneOrLooseComponentName, isAssignmentToThisState, isCallFromReact, isCallFromReactObject, isCaptureOwnerStack, isCaptureOwnerStackCall, isChildrenCount, isChildrenCountCall, isChildrenForEach, isChildrenForEachCall, isChildrenMap, isChildrenMapCall, isChildrenOfCreateElement, isChildrenOnly, isChildrenOnlyCall, isChildrenToArray, isChildrenToArrayCall, isClassComponent, isCloneElement, isCloneElementCall, isComponentDidCatch, isComponentDidMount, isComponentDidUpdate, isComponentName, isComponentNameLoose, isComponentWillMount, isComponentWillReceiveProps, isComponentWillUnmount, isComponentWillUpdate, isComponentWrapperCall, isComponentWrapperCallLoose, isCreateContext, isCreateContextCall, isCreateElement, isCreateElementCall, isCreateRef, isCreateRefCall, isDeclaredInRenderPropLoose, isDirectValueOfRenderPropertyLoose, isForwardRef, isForwardRefCall, isFromReact, isFromReactLoose, isFromReactObject, isFromReactStrict, isFunctionOfComponentDidMount, isFunctionOfComponentWillUnmount, isFunctionOfRender, isFunctionOfRenderMethod, isFunctionOfUseEffectCleanup, isFunctionOfUseEffectSetup, isGetChildContext, isGetDefaultProps, isGetDerivedStateFromError, isGetDerivedStateFromProps, isGetInitialState, isGetSnapshotBeforeUpdate, isInitializedFromReact, isInsideRenderMethod, isInstanceIdEqual, isInversePhase, isLazy, isLazyCall, isMemo, isMemoCall, isPureComponent, isReactAPI, isReactAPICall, isReactHook, isReactHookCall, isReactHookCallWithName, isReactHookCallWithNameAlias, isReactHookCallWithNameLoose, isReactHookName, isRenderFunctionLoose, isRenderLike, isRenderMethodLike, isRenderPropLoose, isShouldComponentUpdate, isThisSetState, isUnsafeComponentWillMount, isUnsafeComponentWillReceiveProps, isUnsafeComponentWillUpdate, isUseActionStateCall, isUseCall, isUseCallbackCall, isUseContextCall, isUseDebugValueCall, isUseDeferredValueCall, isUseEffectCall, isUseEffectCallLoose, isUseFormStatusCall, isUseIdCall, isUseImperativeHandleCall, isUseInsertionEffectCall, isUseLayoutEffectCall, isUseMemoCall, isUseOptimisticCall, isUseReducerCall, isUseRefCall, isUseStateCall, isUseSyncExternalStoreCall, isUseTransitionCall, isValidComponentDefinition, useComponentCollector, useComponentCollectorLegacy, useHookCollector };