@yuku123/z-agent-component 0.1.3 → 0.1.5

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.
@@ -0,0 +1,555 @@
1
+ import { createRequest as x } from "@yuku123/z-frontend-common";
2
+ import le from "react";
3
+ import * as z from "echarts/core";
4
+ import { BarChart as ce, LineChart as ue } from "echarts/charts";
5
+ import { GridComponent as ge, LegendComponent as fe, TitleComponent as de, TooltipComponent as Ae } from "echarts/components";
6
+ import { CanvasRenderer as Te } from "echarts/renderers";
7
+ import me from "echarts-for-react/lib/core";
8
+ const H = x({ baseURL: "/api", timeout: 15e3 }), j = x({ baseURL: "/api", timeout: 15e3 }), C = x({ baseURL: "/api", timeout: 15e3 });
9
+ function $(r) {
10
+ const n = function(o, p = {}) {
11
+ const l = { ...p };
12
+ return l.body !== void 0 && (l.data = l.body, delete l.body), typeof l.method == "string" && (l.method = l.method.toUpperCase()), l.url = o, r.request(l);
13
+ };
14
+ return ["get", "post", "put", "delete", "patch", "head", "request", "create", "interceptors"].forEach((o) => {
15
+ typeof r[o] == "function" ? n[o] = r[o].bind(r) : n[o] = r[o];
16
+ }), n;
17
+ }
18
+ const Ee = $(H);
19
+ $(j);
20
+ $(C);
21
+ function Ie({ apiBase: r } = {}) {
22
+ if (r !== void 0)
23
+ for (const n of [H, j, C])
24
+ n.defaults.baseURL = r;
25
+ }
26
+ const M = { GET: "GET", DELETE: "DELETE" }, b = {};
27
+ function e(r, n, a, o, p) {
28
+ b[r] || (b[r] = {}), b[r][n] = { verb: a, path: o, transform: p };
29
+ }
30
+ function he(r, n) {
31
+ let a = 0;
32
+ return r.replace(/\{(\w+)\}/g, () => String(n[a++] ?? ""));
33
+ }
34
+ class be extends Error {
35
+ constructor(n, a, o) {
36
+ super(`[apiRouter] ${n}.${a}() 未注册路由(${o}):本次没有发出任何请求。若该端点本应存在,请先在 agent/api/routes.js 里 reg('${n}', '${a}', ...)。`), this.name = "ApiRouteError", this.__missing_route = !0, this.api = n, this.method = a;
37
+ }
38
+ }
39
+ class ve extends Error {
40
+ constructor(n, a, o) {
41
+ super(`[apiRouter] ${n}.${a}() 参数形状不对:${o}`), this.name = "ApiParamError", this.__param_shape = !0, this.api = n, this.method = a;
42
+ }
43
+ }
44
+ function Oe(r, n) {
45
+ return n.startsWith("/ctc/ac") || n.startsWith("/ctc/authorization") || n.startsWith("/ctc/surl") ? C : n.startsWith("/auth/") ? j : Ee;
46
+ }
47
+ function Se(r) {
48
+ const n = { data: void 0, params: void 0 };
49
+ if (!r.length) return n;
50
+ const a = r[0];
51
+ if (a && typeof a == "object" && !Array.isArray(a) && ("data" in a || "params" in a) ? ("data" in a && (n.data = a.data), "params" in a && (n.params = a.params)) : n.data = a, r.length > 1) {
52
+ const o = r[1];
53
+ o && typeof o == "object" && !Array.isArray(o) && ("params" in o ? n.params = o.params : "data" in o ? n.data = o.data : n.params = o);
54
+ }
55
+ return n;
56
+ }
57
+ function Pe(r, n, a, o) {
58
+ const p = {};
59
+ if (r === M.GET || r === M.DELETE) {
60
+ const i = n[0];
61
+ if (i != null) {
62
+ if (typeof i != "object" || Array.isArray(i))
63
+ throw new ve(
64
+ a,
65
+ o,
66
+ `GET/DELETE 端点收到标量参数 ${JSON.stringify(i)},query 参数名未知,请改用 {params:{<参数名>: 值}}`
67
+ );
68
+ p.params = "params" in i ? i.params : i;
69
+ }
70
+ return p;
71
+ }
72
+ const { data: l, params: d } = Se(n);
73
+ return l !== void 0 && (p.data = l), d !== void 0 && (p.params = d), p;
74
+ }
75
+ function f(r) {
76
+ return new Proxy({}, {
77
+ get: (n, a) => {
78
+ if (!(a === "then" || typeof a == "symbol"))
79
+ return a === "toJSON" || a === "constructor" || a === "toString" ? () => `[apiRouter:${r}]` : async (...o) => {
80
+ var l, d;
81
+ const p = (l = b[r]) == null ? void 0 : l[a];
82
+ if (!p) {
83
+ const i = b[r] ? "方法名未注册" : "api key 未注册", A = new be(r, a, i);
84
+ throw console.error(A.message), A;
85
+ }
86
+ try {
87
+ const i = he(p.path, o), A = Oe(p.verb, i), P = Pe(p.verb, o, r, a), m = await A.request({
88
+ method: p.verb,
89
+ url: i,
90
+ ...P
91
+ });
92
+ return p.transform ? p.transform(m, o) : m;
93
+ } catch (i) {
94
+ if (i && i.__missing_route) throw i;
95
+ if (i && i.__param_shape)
96
+ throw console.error(i.message), i;
97
+ i && typeof i == "object" && (i.__api_error = !0, i.__api = r, i.__api_method = a);
98
+ const A = (d = i == null ? void 0 : i.response) == null ? void 0 : d.status;
99
+ throw console.error(
100
+ `[apiRouter] ${r}.${a}() 请求失败${A ? `(HTTP ${A})` : ""}:${(i == null ? void 0 : i.message) || i}`
101
+ ), i;
102
+ }
103
+ };
104
+ }
105
+ });
106
+ }
107
+ e("llmApi", "toolTemplateList", "GET", "/z-llm/config/tool-template/list");
108
+ e("mcpApi", "list", "GET", "/mcp/server/list");
109
+ e("mcpApi", "listTools", "POST", "/mcp/server/tools/list");
110
+ e("mcpApi", "callTool", "POST", "/mcp/server/tools/call");
111
+ e("ossApi", "listBuckets", "GET", "/v1/bucket");
112
+ e("ossApi", "getBucketStats", "GET", "/v1/bucket/stats");
113
+ e("ossApi", "createBucket", "POST", "/v1/bucket");
114
+ e("ossApi", "deleteBucket", "DELETE", "/v1/bucket");
115
+ e("ossApi", "setBucketAcl", "PUT", "/v1/bucket/acl");
116
+ e("ossApi", "listObjects", "GET", "/v1/object");
117
+ e("ossApi", "presignedUrl", "GET", "/v1/object/url");
118
+ e("ossApi", "uploadObject", "POST", "/v1/object");
119
+ e("ossApi", "downloadUrl", "GET", "/v1/object/url");
120
+ e("ossApi", "deleteObject", "DELETE", "/v1/object");
121
+ e("ossApi", "copyObject", "POST", "/v1/object/copy");
122
+ e("ossApi", "batchDelete", "POST", "/v1/object/batch-delete");
123
+ e("ossApi", "createFolder", "POST", "/v1/folder");
124
+ e("scriptApi", "list", "GET", "/script/list");
125
+ e("scriptApi", "create", "POST", "/script");
126
+ e("scriptApi", "update", "POST", "/script/update");
127
+ e("scriptApi", "delete", "POST", "/script/delete");
128
+ e("scriptApi", "publish", "POST", "/script/publish");
129
+ e("scriptApi", "unpublish", "POST", "/script/unpublish");
130
+ e("scriptApi", "run", "POST", "/script/run");
131
+ e("scriptApi", "importCurl", "POST", "/script/import-curl");
132
+ e("scriptApi", "importOpenApi", "POST", "/script/import-openapi");
133
+ e("scriptApi", "previewMapping", "POST", "/script/preview-mapping");
134
+ e("skillApi", "search", "GET", "/skill/search");
135
+ e("skillApi", "categories", "GET", "/skill/categories");
136
+ e("skillApi", "sources", "GET", "/skill/sources");
137
+ e("skillApi", "stats", "GET", "/skill/stats");
138
+ e("skillApi", "installed", "GET", "/skill/installed");
139
+ e("skillApi", "detail", "GET", "/skill/detail");
140
+ e("skillApi", "content", "GET", "/skill/content");
141
+ e("skillApi", "install", "POST", "/skill/install");
142
+ e("skillApi", "uninstall", "DELETE", "/skill/uninstall");
143
+ e("skillApi", "refresh", "POST", "/skill/refresh");
144
+ e("agentApi", "appPage", "POST", "/agent/app/page");
145
+ e("agentApi", "appGet", "GET", "/agent/app/get");
146
+ e("agentApi", "appCreate", "POST", "/agent/app");
147
+ e("agentApi", "appUpdate", "POST", "/agent/app/update");
148
+ e("agentApi", "appDelete", "POST", "/agent/app/delete");
149
+ e("agentApi", "appPublish", "POST", "/agent/app/publish");
150
+ e("agentApi", "appUpgrade", "POST", "/agent/app/upgrade");
151
+ e("agentApi", "appToggleShare", "POST", "/agent/app/toggleShare");
152
+ e("agentApi", "versions", "GET", "/agent/app/versions");
153
+ e("agentApi", "groupTree", "GET", "/agent/group/tree");
154
+ e("agentApi", "groupCreate", "POST", "/agent/group");
155
+ e("agentApi", "groupUpdate", "POST", "/agent/group/update");
156
+ e("agentApi", "groupDelete", "POST", "/agent/group/delete");
157
+ e("agentApi", "chatHistory", "GET", "/agent/chat/history");
158
+ e("agentApi", "chatStream", "POST", "/agent/chat/send");
159
+ e("agentApi", "chatClear", "POST", "/agent/chat/clear");
160
+ e("agentApi", "shareVerify", "GET", "/agent/share/verify");
161
+ e("flowApi", "list", "GET", "/agent/flow/list");
162
+ e("flowApi", "get", "GET", "/agent/flow/byId");
163
+ e("flowApi", "byFlowId", "GET", "/agent/flow/byFlowId");
164
+ e("flowApi", "versions", "GET", "/agent/flow/versions");
165
+ e("flowApi", "create", "POST", "/agent/flow/create");
166
+ e("flowApi", "update", "POST", "/agent/flow/update");
167
+ e("flowApi", "publish", "POST", "/agent/flow/publish");
168
+ e("flowApi", "archive", "POST", "/agent/flow/archive");
169
+ e("flowApi", "newVersion", "POST", "/agent/flow/newVersion");
170
+ e("flowApi", "delete", "POST", "/agent/flow/delete");
171
+ e("flowApi", "execute", "POST", "/agent/flow/execute");
172
+ e("flowApi", "health", "GET", "/agent/flow/health");
173
+ e("statsApi", "overview", "GET", "/agent/stats/overview");
174
+ e("statsApi", "trend", "GET", "/agent/stats/trend");
175
+ e("statsApi", "latency", "GET", "/agent/stats/latency");
176
+ e("statsApi", "byApp", "GET", "/agent/stats/by-app");
177
+ e("statsApi", "byUser", "GET", "/agent/stats/by-user");
178
+ e("statsApi", "health", "GET", "/agent/stats/health");
179
+ e("pluginApi", "page", "GET", "/agent/plugin/page");
180
+ e("pluginApi", "get", "GET", "/agent/plugin/byId");
181
+ e("pluginApi", "byCode", "GET", "/agent/plugin/byCode");
182
+ e("pluginApi", "create", "POST", "/agent/plugin/create");
183
+ e("pluginApi", "update", "POST", "/agent/plugin/update");
184
+ e("pluginApi", "status", "POST", "/agent/plugin/status");
185
+ e("pluginApi", "delete", "POST", "/agent/plugin/delete");
186
+ e("pluginApi", "execute", "POST", "/agent/plugin/execute");
187
+ e("pluginApi", "builtinBeans", "GET", "/agent/plugin/builtin-beans");
188
+ e("pluginApi", "health", "GET", "/agent/plugin/health");
189
+ e("triggerApi", "page", "GET", "/agent/trigger/page");
190
+ e("triggerApi", "get", "GET", "/agent/trigger/byId");
191
+ e("triggerApi", "create", "POST", "/agent/trigger/create");
192
+ e("triggerApi", "update", "POST", "/agent/trigger/update");
193
+ e("triggerApi", "status", "POST", "/agent/trigger/status");
194
+ e("triggerApi", "delete", "POST", "/agent/trigger/delete");
195
+ e("triggerApi", "fire", "POST", "/agent/trigger/fire");
196
+ e("triggerApi", "health", "GET", "/agent/trigger/health");
197
+ e("templateApi", "page", "GET", "/agent/template/page");
198
+ e("templateApi", "get", "GET", "/agent/template/byId");
199
+ e("templateApi", "hot", "GET", "/agent/template/hot");
200
+ e("templateApi", "create", "POST", "/agent/template/create");
201
+ e("templateApi", "update", "POST", "/agent/template/update");
202
+ e("templateApi", "status", "POST", "/agent/template/status");
203
+ e("templateApi", "delete", "POST", "/agent/template/delete");
204
+ e("templateApi", "fork", "POST", "/agent/template/fork");
205
+ e("templateApi", "health", "GET", "/agent/template/health");
206
+ e("textGenApi", "page", "GET", "/agent/textgen/page");
207
+ e("textGenApi", "get", "GET", "/agent/textgen/byId");
208
+ e("textGenApi", "results", "GET", "/agent/textgen/results");
209
+ e("textGenApi", "create", "POST", "/agent/textgen/create");
210
+ e("textGenApi", "delete", "POST", "/agent/textgen/delete");
211
+ e("textGenApi", "run", "POST", "/agent/textgen/run");
212
+ e("textGenApi", "createAndRun", "POST", "/agent/textgen/createAndRun");
213
+ e("textGenApi", "health", "GET", "/agent/textgen/health");
214
+ e("humanInputApi", "inbox", "GET", "/agent/human/inbox");
215
+ e("humanInputApi", "listByExecution", "GET", "/agent/human/execution");
216
+ e("humanInputApi", "getById", "GET", "/agent/human/byId");
217
+ e("humanInputApi", "getByCode", "GET", "/agent/human/by-code");
218
+ e("humanInputApi", "decide", "POST", "/agent/human/decide");
219
+ e("humanInputApi", "create", "POST", "/agent/human/create");
220
+ e("humanInputApi", "health", "GET", "/agent/human/health");
221
+ e("productApi", "page", "GET", "/v1/products");
222
+ e("productApi", "create", "POST", "/v1/products");
223
+ e("productApi", "update", "PUT", "/v1/products");
224
+ e("productApi", "delete", "DELETE", "/v1/products");
225
+ e("productApi", "publish", "POST", "/v1/products/publish");
226
+ e("productApi", "offline", "POST", "/v1/products/offline");
227
+ e("productApi", "configGet", "GET", "/v1/products/config");
228
+ e("productApi", "configSave", "PUT", "/v1/products/config");
229
+ e("sceneApi", "page", "GET", "/v1/scenes");
230
+ e("sceneApi", "create", "POST", "/v1/scenes");
231
+ e("sceneApi", "update", "PUT", "/v1/scenes");
232
+ e("sceneApi", "delete", "DELETE", "/v1/scenes");
233
+ e("sceneApi", "duplicate", "POST", "/v1/scenes/duplicate");
234
+ e("sceneApi", "publish", "POST", "/v1/scenes/publish");
235
+ e("sceneApi", "offline", "POST", "/v1/scenes/offline");
236
+ e("sceneApi", "execute", "POST", "/v1/scenes/execute");
237
+ e("sceneApi", "canvasGet", "GET", "/v1/scenes/canvas");
238
+ e("sceneApi", "configGet", "GET", "/v1/scenes/config");
239
+ e("sceneApi", "nodes", "GET", "/v1/scenes/nodes");
240
+ e("sceneApi", "chatHistory", "GET", "/v1/scenes/chat-history");
241
+ const Le = f("agentApi"), Ue = f("flowApi"), De = f("statsApi");
242
+ f("pluginApi");
243
+ f("memoryApi");
244
+ f("triggerApi");
245
+ const Ne = f("templateApi");
246
+ f("textGenApi");
247
+ f("humanInputApi");
248
+ const Ye = f("llmApi"), qe = f("mcpApi"), Fe = f("scriptApi"), We = f("skillApi"), Me = f("productApi"), Ve = f("sceneApi"), Be = f("ossApi");
249
+ var S = { exports: {} }, E = {};
250
+ /**
251
+ * @license React
252
+ * react-jsx-runtime.production.js
253
+ *
254
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
255
+ *
256
+ * This source code is licensed under the MIT license found in the
257
+ * LICENSE file in the root directory of this source tree.
258
+ */
259
+ var V;
260
+ function _e() {
261
+ if (V) return E;
262
+ V = 1;
263
+ var r = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
264
+ function a(o, p, l) {
265
+ var d = null;
266
+ if (l !== void 0 && (d = "" + l), p.key !== void 0 && (d = "" + p.key), "key" in p) {
267
+ l = {};
268
+ for (var i in p)
269
+ i !== "key" && (l[i] = p[i]);
270
+ } else l = p;
271
+ return p = l.ref, {
272
+ $$typeof: r,
273
+ type: o,
274
+ key: d,
275
+ ref: p !== void 0 ? p : null,
276
+ props: l
277
+ };
278
+ }
279
+ return E.Fragment = n, E.jsx = a, E.jsxs = a, E;
280
+ }
281
+ var h = {};
282
+ /**
283
+ * @license React
284
+ * react-jsx-runtime.development.js
285
+ *
286
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
287
+ *
288
+ * This source code is licensed under the MIT license found in the
289
+ * LICENSE file in the root directory of this source tree.
290
+ */
291
+ var B;
292
+ function ye() {
293
+ return B || (B = 1, process.env.NODE_ENV !== "production" && (function() {
294
+ function r(t) {
295
+ if (t == null) return null;
296
+ if (typeof t == "function")
297
+ return t.$$typeof === se ? null : t.displayName || t.name || null;
298
+ if (typeof t == "string") return t;
299
+ switch (t) {
300
+ case _:
301
+ return "Fragment";
302
+ case Q:
303
+ return "Profiler";
304
+ case Z:
305
+ return "StrictMode";
306
+ case re:
307
+ return "Suspense";
308
+ case ae:
309
+ return "SuspenseList";
310
+ case ie:
311
+ return "Activity";
312
+ }
313
+ if (typeof t == "object")
314
+ switch (typeof t.tag == "number" && console.error(
315
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
316
+ ), t.$$typeof) {
317
+ case X:
318
+ return "Portal";
319
+ case ee:
320
+ return t.displayName || "Context";
321
+ case K:
322
+ return (t._context.displayName || "Context") + ".Consumer";
323
+ case te:
324
+ var s = t.render;
325
+ return t = t.displayName, t || (t = s.displayName || s.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
326
+ case ne:
327
+ return s = t.displayName || null, s !== null ? s : r(t.type) || "Memo";
328
+ case y:
329
+ s = t._payload, t = t._init;
330
+ try {
331
+ return r(t(s));
332
+ } catch {
333
+ }
334
+ }
335
+ return null;
336
+ }
337
+ function n(t) {
338
+ return "" + t;
339
+ }
340
+ function a(t) {
341
+ try {
342
+ n(t);
343
+ var s = !1;
344
+ } catch {
345
+ s = !0;
346
+ }
347
+ if (s) {
348
+ s = console;
349
+ var c = s.error, u = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
350
+ return c.call(
351
+ s,
352
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
353
+ u
354
+ ), n(t);
355
+ }
356
+ }
357
+ function o(t) {
358
+ if (t === _) return "<>";
359
+ if (typeof t == "object" && t !== null && t.$$typeof === y)
360
+ return "<...>";
361
+ try {
362
+ var s = r(t);
363
+ return s ? "<" + s + ">" : "<...>";
364
+ } catch {
365
+ return "<...>";
366
+ }
367
+ }
368
+ function p() {
369
+ var t = R.A;
370
+ return t === null ? null : t.getOwner();
371
+ }
372
+ function l() {
373
+ return Error("react-stack-top-frame");
374
+ }
375
+ function d(t) {
376
+ if (D.call(t, "key")) {
377
+ var s = Object.getOwnPropertyDescriptor(t, "key").get;
378
+ if (s && s.isReactWarning) return !1;
379
+ }
380
+ return t.key !== void 0;
381
+ }
382
+ function i(t, s) {
383
+ function c() {
384
+ N || (N = !0, console.error(
385
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
386
+ s
387
+ ));
388
+ }
389
+ c.isReactWarning = !0, Object.defineProperty(t, "key", {
390
+ get: c,
391
+ configurable: !0
392
+ });
393
+ }
394
+ function A() {
395
+ var t = r(this.type);
396
+ return Y[t] || (Y[t] = !0, console.error(
397
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
398
+ )), t = this.props.ref, t !== void 0 ? t : null;
399
+ }
400
+ function P(t, s, c, u, O, G) {
401
+ var g = c.ref;
402
+ return t = {
403
+ $$typeof: U,
404
+ type: t,
405
+ key: s,
406
+ props: c,
407
+ _owner: u
408
+ }, (g !== void 0 ? g : null) !== null ? Object.defineProperty(t, "ref", {
409
+ enumerable: !1,
410
+ get: A
411
+ }) : Object.defineProperty(t, "ref", { enumerable: !1, value: null }), t._store = {}, Object.defineProperty(t._store, "validated", {
412
+ configurable: !1,
413
+ enumerable: !1,
414
+ writable: !0,
415
+ value: 0
416
+ }), Object.defineProperty(t, "_debugInfo", {
417
+ configurable: !1,
418
+ enumerable: !1,
419
+ writable: !0,
420
+ value: null
421
+ }), Object.defineProperty(t, "_debugStack", {
422
+ configurable: !1,
423
+ enumerable: !1,
424
+ writable: !0,
425
+ value: O
426
+ }), Object.defineProperty(t, "_debugTask", {
427
+ configurable: !1,
428
+ enumerable: !1,
429
+ writable: !0,
430
+ value: G
431
+ }), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
432
+ }
433
+ function m(t, s, c, u, O, G) {
434
+ var g = s.children;
435
+ if (g !== void 0)
436
+ if (u)
437
+ if (oe(g)) {
438
+ for (u = 0; u < g.length; u++)
439
+ I(g[u]);
440
+ Object.freeze && Object.freeze(g);
441
+ } else
442
+ console.error(
443
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
444
+ );
445
+ else I(g);
446
+ if (D.call(s, "key")) {
447
+ g = r(t);
448
+ var T = Object.keys(s).filter(function(pe) {
449
+ return pe !== "key";
450
+ });
451
+ u = 0 < T.length ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}", W[g + u] || (T = 0 < T.length ? "{" + T.join(": ..., ") + ": ...}" : "{}", console.error(
452
+ `A props object containing a "key" prop is being spread into JSX:
453
+ let props = %s;
454
+ <%s {...props} />
455
+ React keys must be passed directly to JSX without using spread:
456
+ let props = %s;
457
+ <%s key={someKey} {...props} />`,
458
+ u,
459
+ g,
460
+ T,
461
+ g
462
+ ), W[g + u] = !0);
463
+ }
464
+ if (g = null, c !== void 0 && (a(c), g = "" + c), d(s) && (a(s.key), g = "" + s.key), "key" in s) {
465
+ c = {};
466
+ for (var w in s)
467
+ w !== "key" && (c[w] = s[w]);
468
+ } else c = s;
469
+ return g && i(
470
+ c,
471
+ typeof t == "function" ? t.displayName || t.name || "Unknown" : t
472
+ ), P(
473
+ t,
474
+ g,
475
+ c,
476
+ p(),
477
+ O,
478
+ G
479
+ );
480
+ }
481
+ function I(t) {
482
+ L(t) ? t._store && (t._store.validated = 1) : typeof t == "object" && t !== null && t.$$typeof === y && (t._payload.status === "fulfilled" ? L(t._payload.value) && t._payload.value._store && (t._payload.value._store.validated = 1) : t._store && (t._store.validated = 1));
483
+ }
484
+ function L(t) {
485
+ return typeof t == "object" && t !== null && t.$$typeof === U;
486
+ }
487
+ var v = le, U = Symbol.for("react.transitional.element"), X = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), Z = Symbol.for("react.strict_mode"), Q = Symbol.for("react.profiler"), K = Symbol.for("react.consumer"), ee = Symbol.for("react.context"), te = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), ae = Symbol.for("react.suspense_list"), ne = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), se = Symbol.for("react.client.reference"), R = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, oe = Array.isArray, k = console.createTask ? console.createTask : function() {
488
+ return null;
489
+ };
490
+ v = {
491
+ react_stack_bottom_frame: function(t) {
492
+ return t();
493
+ }
494
+ };
495
+ var N, Y = {}, q = v.react_stack_bottom_frame.bind(
496
+ v,
497
+ l
498
+ )(), F = k(o(l)), W = {};
499
+ h.Fragment = _, h.jsx = function(t, s, c) {
500
+ var u = 1e4 > R.recentlyCreatedOwnerStacks++;
501
+ return m(
502
+ t,
503
+ s,
504
+ c,
505
+ !1,
506
+ u ? Error("react-stack-top-frame") : q,
507
+ u ? k(o(t)) : F
508
+ );
509
+ }, h.jsxs = function(t, s, c) {
510
+ var u = 1e4 > R.recentlyCreatedOwnerStacks++;
511
+ return m(
512
+ t,
513
+ s,
514
+ c,
515
+ !0,
516
+ u ? Error("react-stack-top-frame") : q,
517
+ u ? k(o(t)) : F
518
+ );
519
+ };
520
+ })()), h;
521
+ }
522
+ var J;
523
+ function Re() {
524
+ return J || (J = 1, process.env.NODE_ENV === "production" ? S.exports = _e() : S.exports = ye()), S.exports;
525
+ }
526
+ var ke = Re();
527
+ z.use([
528
+ ce,
529
+ ue,
530
+ ge,
531
+ fe,
532
+ de,
533
+ Ae,
534
+ Te
535
+ ]);
536
+ function Je(r) {
537
+ return /* @__PURE__ */ ke.jsx(me, { echarts: z, ...r });
538
+ }
539
+ export {
540
+ Je as R,
541
+ Le as a,
542
+ De as b,
543
+ Ie as c,
544
+ Fe as d,
545
+ We as e,
546
+ Ue as f,
547
+ ke as j,
548
+ Ye as l,
549
+ qe as m,
550
+ Be as o,
551
+ Me as p,
552
+ Ve as s,
553
+ Ne as t,
554
+ Ee as u
555
+ };