@burdenoff/fe-libs 2026.1027.4 → 2026.1027.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +2 -5
  2. package/dist/chrome/ProfileSwitcher.js +106 -105
  3. package/dist/node_modules/@openuidev/devtools/dist/index.js +34 -35
  4. package/dist/node_modules/@openuidev/lang-core/dist/index.js +826 -828
  5. package/dist/node_modules/@openuidev/react-lang/dist/index.js +6 -7
  6. package/dist/shared/assistant/openui/library.js +73 -73
  7. package/package.json +1 -1
  8. package/dist/node_modules/react-dom/cjs/react-dom-client.development.js +0 -11168
  9. package/dist/node_modules/react-dom/cjs/react-dom-client.production.js +0 -7384
  10. package/dist/node_modules/react-dom/client.js +0 -19
  11. package/dist/node_modules/scheduler/cjs/scheduler.development.js +0 -203
  12. package/dist/node_modules/scheduler/cjs/scheduler.production.js +0 -203
  13. package/dist/node_modules/scheduler/index.js +0 -10
  14. package/dist/node_modules/zod/v4/classic/errors.js +0 -23
  15. package/dist/node_modules/zod/v4/classic/iso.js +0 -31
  16. package/dist/node_modules/zod/v4/classic/parse.js +0 -6
  17. package/dist/node_modules/zod/v4/classic/schemas.js +0 -339
  18. package/dist/node_modules/zod/v4/core/api.js +0 -491
  19. package/dist/node_modules/zod/v4/core/checks.js +0 -283
  20. package/dist/node_modules/zod/v4/core/core.js +0 -44
  21. package/dist/node_modules/zod/v4/core/doc.js +0 -23
  22. package/dist/node_modules/zod/v4/core/errors.js +0 -41
  23. package/dist/node_modules/zod/v4/core/json-schema-processors.js +0 -306
  24. package/dist/node_modules/zod/v4/core/parse.js +0 -68
  25. package/dist/node_modules/zod/v4/core/regexes.js +0 -25
  26. package/dist/node_modules/zod/v4/core/registries.js +0 -40
  27. package/dist/node_modules/zod/v4/core/schemas.js +0 -796
  28. package/dist/node_modules/zod/v4/core/to-json-schema.js +0 -222
  29. package/dist/node_modules/zod/v4/core/util.js +0 -266
  30. package/dist/node_modules/zod/v4/core/versions.js +0 -8
@@ -1,222 +0,0 @@
1
- import { globalRegistry as e } from "./registries.js";
2
- //#region node_modules/zod/v4/core/to-json-schema.js
3
- function t(t) {
4
- let n = t?.target ?? "draft-2020-12";
5
- return n === "draft-4" && (n = "draft-04"), n === "draft-7" && (n = "draft-07"), {
6
- processors: t.processors ?? {},
7
- metadataRegistry: t?.metadata ?? e,
8
- target: n,
9
- unrepresentable: t?.unrepresentable ?? "throw",
10
- override: t?.override ?? (() => {}),
11
- io: t?.io ?? "output",
12
- counter: 0,
13
- seen: /* @__PURE__ */ new Map(),
14
- cycles: t?.cycles ?? "ref",
15
- reused: t?.reused ?? "inline",
16
- external: t?.external ?? void 0
17
- };
18
- }
19
- function n(e, t, r = {
20
- path: [],
21
- schemaPath: []
22
- }) {
23
- var i;
24
- let o = e._zod.def, s = t.seen.get(e);
25
- if (s) return s.count++, r.schemaPath.includes(e) && (s.cycle = r.path), s.schema;
26
- let c = {
27
- schema: {},
28
- count: 1,
29
- cycle: void 0,
30
- path: r.path
31
- };
32
- t.seen.set(e, c);
33
- let l = e._zod.toJSONSchema?.();
34
- if (l) c.schema = l;
35
- else {
36
- let i = {
37
- ...r,
38
- schemaPath: [...r.schemaPath, e],
39
- path: r.path
40
- };
41
- if (e._zod.processJSONSchema) e._zod.processJSONSchema(t, c.schema, i);
42
- else {
43
- let n = c.schema, r = t.processors[o.type];
44
- if (!r) throw Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);
45
- r(e, t, n, i);
46
- }
47
- let a = e._zod.parent;
48
- a && (c.ref ||= a, n(a, t, i), t.seen.get(a).isParent = !0);
49
- }
50
- let u = t.metadataRegistry.get(e);
51
- return u && Object.assign(c.schema, u), t.io === "input" && a(e) && (delete c.schema.examples, delete c.schema.default), t.io === "input" && c.schema._prefault && ((i = c.schema).default ?? (i.default = c.schema._prefault)), delete c.schema._prefault, t.seen.get(e).schema;
52
- }
53
- function r(e, t) {
54
- let n = e.seen.get(t);
55
- if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
56
- let r = /* @__PURE__ */ new Map();
57
- for (let t of e.seen.entries()) {
58
- let n = e.metadataRegistry.get(t[0])?.id;
59
- if (n) {
60
- let e = r.get(n);
61
- if (e && e !== t[0]) throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);
62
- r.set(n, t[0]);
63
- }
64
- }
65
- let i = (t) => {
66
- let r = e.target === "draft-2020-12" ? "$defs" : "definitions";
67
- if (e.external) {
68
- let n = e.external.registry.get(t[0])?.id, i = e.external.uri ?? ((e) => e);
69
- if (n) return { ref: i(n) };
70
- let a = t[1].defId ?? t[1].schema.id ?? `schema${e.counter++}`;
71
- return t[1].defId = a, {
72
- defId: a,
73
- ref: `${i("__shared")}#/${r}/${a}`
74
- };
75
- }
76
- if (t[1] === n) return { ref: "#" };
77
- let i = `#/${r}/`, a = t[1].schema.id ?? `__schema${e.counter++}`;
78
- return {
79
- defId: a,
80
- ref: i + a
81
- };
82
- }, a = (e) => {
83
- if (e[1].schema.$ref) return;
84
- let t = e[1], { ref: n, defId: r } = i(e);
85
- t.def = { ...t.schema }, r && (t.defId = r);
86
- let a = t.schema;
87
- for (let e in a) delete a[e];
88
- a.$ref = n;
89
- };
90
- if (e.cycles === "throw") for (let t of e.seen.entries()) {
91
- let e = t[1];
92
- if (e.cycle) throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
93
-
94
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);
95
- }
96
- for (let n of e.seen.entries()) {
97
- let r = n[1];
98
- if (t === n[0]) {
99
- a(n);
100
- continue;
101
- }
102
- if (e.external) {
103
- let r = e.external.registry.get(n[0])?.id;
104
- if (t !== n[0] && r) {
105
- a(n);
106
- continue;
107
- }
108
- }
109
- if (e.metadataRegistry.get(n[0])?.id) {
110
- a(n);
111
- continue;
112
- }
113
- if (r.cycle) {
114
- a(n);
115
- continue;
116
- }
117
- if (r.count > 1 && e.reused === "ref") {
118
- a(n);
119
- continue;
120
- }
121
- }
122
- }
123
- function i(e, t) {
124
- let n = e.seen.get(t);
125
- if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
126
- let r = (t) => {
127
- let n = e.seen.get(t);
128
- if (n.ref === null) return;
129
- let i = n.def ?? n.schema, a = { ...i }, o = n.ref;
130
- if (n.ref = null, o) {
131
- r(o);
132
- let n = e.seen.get(o), s = n.schema;
133
- if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : Object.assign(i, s), Object.assign(i, a), t._zod.parent === o) for (let e in i) e === "$ref" || e === "allOf" || e in a || delete i[e];
134
- if (s.$ref && n.def) for (let e in i) e === "$ref" || e === "allOf" || e in n.def && JSON.stringify(i[e]) === JSON.stringify(n.def[e]) && delete i[e];
135
- }
136
- let s = t._zod.parent;
137
- if (s && s !== o) {
138
- r(s);
139
- let t = e.seen.get(s);
140
- if (t?.schema.$ref && (i.$ref = t.schema.$ref, t.def)) for (let e in i) e === "$ref" || e === "allOf" || e in t.def && JSON.stringify(i[e]) === JSON.stringify(t.def[e]) && delete i[e];
141
- }
142
- e.override({
143
- zodSchema: t,
144
- jsonSchema: i,
145
- path: n.path ?? []
146
- });
147
- };
148
- for (let t of [...e.seen.entries()].reverse()) r(t[0]);
149
- let i = {};
150
- if (e.target === "draft-2020-12" ? i.$schema = "https://json-schema.org/draft/2020-12/schema" : e.target === "draft-07" ? i.$schema = "http://json-schema.org/draft-07/schema#" : e.target === "draft-04" ? i.$schema = "http://json-schema.org/draft-04/schema#" : e.target, e.external?.uri) {
151
- let n = e.external.registry.get(t)?.id;
152
- if (!n) throw Error("Schema is missing an `id` property");
153
- i.$id = e.external.uri(n);
154
- }
155
- Object.assign(i, n.def ?? n.schema);
156
- let a = e.external?.defs ?? {};
157
- for (let t of e.seen.entries()) {
158
- let e = t[1];
159
- e.def && e.defId && (a[e.defId] = e.def);
160
- }
161
- e.external || Object.keys(a).length > 0 && (e.target === "draft-2020-12" ? i.$defs = a : i.definitions = a);
162
- try {
163
- let n = JSON.parse(JSON.stringify(i));
164
- return Object.defineProperty(n, "~standard", {
165
- value: {
166
- ...t["~standard"],
167
- jsonSchema: {
168
- input: s(t, "input", e.processors),
169
- output: s(t, "output", e.processors)
170
- }
171
- },
172
- enumerable: !1,
173
- writable: !1
174
- }), n;
175
- } catch {
176
- throw Error("Error converting schema to JSON.");
177
- }
178
- }
179
- function a(e, t) {
180
- let n = t ?? { seen: /* @__PURE__ */ new Set() };
181
- if (n.seen.has(e)) return !1;
182
- n.seen.add(e);
183
- let r = e._zod.def;
184
- if (r.type === "transform") return !0;
185
- if (r.type === "array") return a(r.element, n);
186
- if (r.type === "set") return a(r.valueType, n);
187
- if (r.type === "lazy") return a(r.getter(), n);
188
- if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return a(r.innerType, n);
189
- if (r.type === "intersection") return a(r.left, n) || a(r.right, n);
190
- if (r.type === "record" || r.type === "map") return a(r.keyType, n) || a(r.valueType, n);
191
- if (r.type === "pipe") return a(r.in, n) || a(r.out, n);
192
- if (r.type === "object") {
193
- for (let e in r.shape) if (a(r.shape[e], n)) return !0;
194
- return !1;
195
- }
196
- if (r.type === "union") {
197
- for (let e of r.options) if (a(e, n)) return !0;
198
- return !1;
199
- }
200
- if (r.type === "tuple") {
201
- for (let e of r.items) if (a(e, n)) return !0;
202
- return !!(r.rest && a(r.rest, n));
203
- }
204
- return !1;
205
- }
206
- var o = (e, a = {}) => (o) => {
207
- let s = t({
208
- ...o,
209
- processors: a
210
- });
211
- return n(e, s), r(s, e), i(s, e);
212
- }, s = (e, a, o = {}) => (s) => {
213
- let { libraryOptions: c, target: l } = s ?? {}, u = t({
214
- ...c ?? {},
215
- target: l,
216
- io: a,
217
- processors: o
218
- });
219
- return n(e, u), r(u, e), i(u, e);
220
- };
221
- //#endregion
222
- export { s as createStandardJSONSchemaMethod, o as createToJSONSchemaMethod, r as extractDefs, i as finalize, t as initializeContext, n as process };
@@ -1,266 +0,0 @@
1
- //#region node_modules/zod/v4/core/util.js
2
- function e(e) {
3
- let t = Object.values(e).filter((e) => typeof e == "number");
4
- return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
5
- }
6
- function t(e, t) {
7
- return typeof t == "bigint" ? t.toString() : t;
8
- }
9
- function n(e) {
10
- return { get value() {
11
- {
12
- let t = e();
13
- return Object.defineProperty(this, "value", { value: t }), t;
14
- }
15
- throw Error("cached value already set");
16
- } };
17
- }
18
- function r(e) {
19
- return e == null;
20
- }
21
- function i(e) {
22
- let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
23
- return e.slice(t, n);
24
- }
25
- function a(e, t) {
26
- let n = (e.toString().split(".")[1] || "").length, r = t.toString(), i = (r.split(".")[1] || "").length;
27
- if (i === 0 && /\d?e-\d?/.test(r)) {
28
- let e = r.match(/\d?e-(\d?)/);
29
- e?.[1] && (i = Number.parseInt(e[1]));
30
- }
31
- let a = n > i ? n : i;
32
- return Number.parseInt(e.toFixed(a).replace(".", "")) % Number.parseInt(t.toFixed(a).replace(".", "")) / 10 ** a;
33
- }
34
- var o = Symbol("evaluating");
35
- function s(e, t, n) {
36
- let r;
37
- Object.defineProperty(e, t, {
38
- get() {
39
- if (r !== o) return r === void 0 && (r = o, r = n()), r;
40
- },
41
- set(n) {
42
- Object.defineProperty(e, t, { value: n });
43
- },
44
- configurable: !0
45
- });
46
- }
47
- function c(e, t, n) {
48
- Object.defineProperty(e, t, {
49
- value: n,
50
- writable: !0,
51
- enumerable: !0,
52
- configurable: !0
53
- });
54
- }
55
- function l(...e) {
56
- let t = {};
57
- for (let n of e) Object.assign(t, Object.getOwnPropertyDescriptors(n));
58
- return Object.defineProperties({}, t);
59
- }
60
- function u(e) {
61
- return JSON.stringify(e);
62
- }
63
- function d(e) {
64
- return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
65
- }
66
- var f = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
67
- function p(e) {
68
- return typeof e == "object" && !!e && !Array.isArray(e);
69
- }
70
- var m = n(() => {
71
- if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
72
- try {
73
- return Function(""), !0;
74
- } catch {
75
- return !1;
76
- }
77
- });
78
- function h(e) {
79
- if (p(e) === !1) return !1;
80
- let t = e.constructor;
81
- if (t === void 0 || typeof t != "function") return !0;
82
- let n = t.prototype;
83
- return !(p(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
84
- }
85
- function g(e) {
86
- return h(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
87
- }
88
- var _ = new Set([
89
- "string",
90
- "number",
91
- "symbol"
92
- ]);
93
- function v(e) {
94
- return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
95
- }
96
- function y(e, t, n) {
97
- let r = new e._zod.constr(t ?? e._zod.def);
98
- return (!t || n?.parent) && (r._zod.parent = e), r;
99
- }
100
- function b(e) {
101
- let t = e;
102
- if (!t) return {};
103
- if (typeof t == "string") return { error: () => t };
104
- if (t?.message !== void 0) {
105
- if (t?.error !== void 0) throw Error("Cannot specify both `message` and `error` params");
106
- t.error = t.message;
107
- }
108
- return delete t.message, typeof t.error == "string" ? {
109
- ...t,
110
- error: () => t.error
111
- } : t;
112
- }
113
- function x(e) {
114
- return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
115
- }
116
- var S = {
117
- safeint: [-(2 ** 53 - 1), 2 ** 53 - 1],
118
- int32: [-2147483648, 2147483647],
119
- uint32: [0, 4294967295],
120
- float32: [-34028234663852886e22, 34028234663852886e22],
121
- float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
122
- };
123
- function C(e, t) {
124
- let n = e._zod.def, r = n.checks;
125
- if (r && r.length > 0) throw Error(".pick() cannot be used on object schemas containing refinements");
126
- return y(e, l(e._zod.def, {
127
- get shape() {
128
- let e = {};
129
- for (let r in t) {
130
- if (!(r in n.shape)) throw Error(`Unrecognized key: "${r}"`);
131
- t[r] && (e[r] = n.shape[r]);
132
- }
133
- return c(this, "shape", e), e;
134
- },
135
- checks: []
136
- }));
137
- }
138
- function w(e, t) {
139
- let n = e._zod.def, r = n.checks;
140
- if (r && r.length > 0) throw Error(".omit() cannot be used on object schemas containing refinements");
141
- return y(e, l(e._zod.def, {
142
- get shape() {
143
- let r = { ...e._zod.def.shape };
144
- for (let e in t) {
145
- if (!(e in n.shape)) throw Error(`Unrecognized key: "${e}"`);
146
- t[e] && delete r[e];
147
- }
148
- return c(this, "shape", r), r;
149
- },
150
- checks: []
151
- }));
152
- }
153
- function T(e, t) {
154
- if (!h(t)) throw Error("Invalid input to extend: expected a plain object");
155
- let n = e._zod.def.checks;
156
- if (n && n.length > 0) {
157
- let n = e._zod.def.shape;
158
- for (let e in t) if (Object.getOwnPropertyDescriptor(n, e) !== void 0) throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
159
- }
160
- return y(e, l(e._zod.def, { get shape() {
161
- let n = {
162
- ...e._zod.def.shape,
163
- ...t
164
- };
165
- return c(this, "shape", n), n;
166
- } }));
167
- }
168
- function E(e, t) {
169
- if (!h(t)) throw Error("Invalid input to safeExtend: expected a plain object");
170
- return y(e, l(e._zod.def, { get shape() {
171
- let n = {
172
- ...e._zod.def.shape,
173
- ...t
174
- };
175
- return c(this, "shape", n), n;
176
- } }));
177
- }
178
- function D(e, t) {
179
- return y(e, l(e._zod.def, {
180
- get shape() {
181
- let n = {
182
- ...e._zod.def.shape,
183
- ...t._zod.def.shape
184
- };
185
- return c(this, "shape", n), n;
186
- },
187
- get catchall() {
188
- return t._zod.def.catchall;
189
- },
190
- checks: []
191
- }));
192
- }
193
- function O(e, t, n) {
194
- let r = t._zod.def.checks;
195
- if (r && r.length > 0) throw Error(".partial() cannot be used on object schemas containing refinements");
196
- return y(t, l(t._zod.def, {
197
- get shape() {
198
- let r = t._zod.def.shape, i = { ...r };
199
- if (n) for (let t in n) {
200
- if (!(t in r)) throw Error(`Unrecognized key: "${t}"`);
201
- n[t] && (i[t] = e ? new e({
202
- type: "optional",
203
- innerType: r[t]
204
- }) : r[t]);
205
- }
206
- else for (let t in r) i[t] = e ? new e({
207
- type: "optional",
208
- innerType: r[t]
209
- }) : r[t];
210
- return c(this, "shape", i), i;
211
- },
212
- checks: []
213
- }));
214
- }
215
- function k(e, t, n) {
216
- return y(t, l(t._zod.def, { get shape() {
217
- let r = t._zod.def.shape, i = { ...r };
218
- if (n) for (let t in n) {
219
- if (!(t in i)) throw Error(`Unrecognized key: "${t}"`);
220
- n[t] && (i[t] = new e({
221
- type: "nonoptional",
222
- innerType: r[t]
223
- }));
224
- }
225
- else for (let t in r) i[t] = new e({
226
- type: "nonoptional",
227
- innerType: r[t]
228
- });
229
- return c(this, "shape", i), i;
230
- } }));
231
- }
232
- function A(e, t = 0) {
233
- if (e.aborted === !0) return !0;
234
- for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
235
- return !1;
236
- }
237
- function j(e, t) {
238
- return t.map((t) => {
239
- var n;
240
- return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
241
- });
242
- }
243
- function M(e) {
244
- return typeof e == "string" ? e : e?.message;
245
- }
246
- function N(e, t, n) {
247
- let r = {
248
- ...e,
249
- path: e.path ?? []
250
- };
251
- return e.message || (r.message = M(e.inst?._zod.def?.error?.(e)) ?? M(t?.error?.(e)) ?? M(n.customError?.(e)) ?? M(n.localeError?.(e)) ?? "Invalid input"), delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
252
- }
253
- function P(e) {
254
- return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
255
- }
256
- function F(...e) {
257
- let [t, n, r] = e;
258
- return typeof t == "string" ? {
259
- message: t,
260
- code: "custom",
261
- input: n,
262
- inst: r
263
- } : { ...t };
264
- }
265
- //#endregion
266
- export { S as NUMBER_FORMAT_RANGES, A as aborted, m as allowsEval, n as cached, f as captureStackTrace, i as cleanRegex, y as clone, s as defineLazy, u as esc, v as escapeRegex, T as extend, N as finalizeIssue, a as floatSafeRemainder, e as getEnumValues, P as getLengthableOrigin, p as isObject, h as isPlainObject, F as issue, t as jsonStringifyReplacer, D as merge, l as mergeDefs, b as normalizeParams, r as nullish, w as omit, x as optionalKeys, O as partial, C as pick, j as prefixIssues, _ as propertyKeyTypes, k as required, E as safeExtend, g as shallowClone, d as slugify };
@@ -1,8 +0,0 @@
1
- //#region node_modules/zod/v4/core/versions.js
2
- var e = {
3
- major: 4,
4
- minor: 3,
5
- patch: 6
6
- };
7
- //#endregion
8
- export { e as version };