@fses/workbench-app 0.2.16 → 0.2.18

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 (64) hide show
  1. package/WORKBENCH-CLOSURE.json +18 -12
  2. package/dist/Workspace-JvnSC-w9.js +23186 -0
  3. package/dist/canvas/api/index.js +1 -1
  4. package/dist/{canvasFacade-B2EHgdqA.js → canvasFacade-B8jYm_aO.js} +748 -748
  5. package/dist/cardFactory-DmEBcCf4.js +1460 -0
  6. package/dist/extensions/index.js +1 -1
  7. package/dist/fses-workbench-app.js +5 -5
  8. package/dist/{index-CMM-5ObU.js → index-D-WW3bXH.js} +350 -346
  9. package/dist/internal/personal-workbench/components/workbench/WorkbenchStudio.vue.d.ts +3 -2
  10. package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartDisplayData.d.ts +0 -5
  11. package/dist/internal/personal-workbench/lib/assistantPersonaProfiles.d.ts +6 -6
  12. package/dist/internal/personal-workbench/lib/cardStyleConfig.d.ts +26 -26
  13. package/dist/internal/personal-workbench/lib/echartsOptionEditorBridge.d.ts +0 -5
  14. package/dist/internal/personal-workbench/lib/historyCardBindingRestore.fixture.d.ts +0 -5
  15. package/dist/internal/personal-workbench/lib/runtimePrimitiveRegistry.d.ts +1 -1
  16. package/dist/internal/personal-workbench/lib/vueRuntimeAdapters.d.ts +18 -6
  17. package/dist/internal/personal-workbench/lib/workbenchCanvasBusinessGapChecklist.d.ts +1 -1
  18. package/dist/internal/personal-workbench/lib/workbenchCardRecommendationFallback.d.ts +1 -1
  19. package/dist/internal/personal-workbench/lib/workbenchCardRecommendationReturnItemUpsert.d.ts +0 -5
  20. package/dist/internal/personal-workbench/lib/workbenchDataBindingBadge.d.ts +0 -5
  21. package/dist/internal/personal-workbench/lib/workbenchImageComposeEntry.d.ts +1 -1
  22. package/dist/internal/personal-workbench/lib/workbenchLayout.d.ts +0 -5
  23. package/dist/runtime/index.js +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/{useWorkbenchRuntime-DLf_FgC7.js → useWorkbenchRuntime-D_AtkXIX.js} +7938 -7900
  26. package/dist/version.d.ts +1 -1
  27. package/dist/{workbenchCustomComponentRegistry-Bt94Lgko.js → workbenchCustomComponentRegistry-CWUPjCnJ.js} +74 -74
  28. package/node_modules/@byteluck-fe/locale-message/README.md +2 -0
  29. package/node_modules/@byteluck-fe/locale-message/dist/index.d.ts +37 -0
  30. package/node_modules/@byteluck-fe/locale-message/dist/locale-message.js +55 -0
  31. package/node_modules/@byteluck-fe/locale-message/package.json +37 -0
  32. package/node_modules/@fses/ai-chat/dist/components/ContextUsageRing.vue.d.ts +5 -0
  33. package/node_modules/@fses/ai-chat/dist/components/FsesAiChat.vue.d.ts +14 -1
  34. package/node_modules/@fses/ai-chat/dist/composables/types.d.ts +9 -0
  35. package/node_modules/@fses/ai-chat/dist/fses-ai-chat.js +5832 -5670
  36. package/node_modules/@fses/ai-chat/dist/fses-ai-chat.umd.cjs +16 -18
  37. package/node_modules/@fses/ai-chat/dist/index.d.ts +1 -1
  38. package/node_modules/@fses/ai-chat/dist/style.css +1 -1
  39. package/node_modules/@fses/ai-chat/dist/utils/attachment-upload.d.ts +0 -5
  40. package/node_modules/@fses/ai-chat/package.json +6 -5
  41. package/node_modules/@fses/workbench-card/dist/fses-workbench-card-renderers.js +10144 -9914
  42. package/node_modules/@fses/workbench-card/dist/fses-workbench-card.js +1517 -1503
  43. package/node_modules/@fses/workbench-card/dist/fses-workbench-card.umd.cjs +1 -1
  44. package/node_modules/@fses/workbench-card/dist/renderers/chart/chartRendererRegistry.d.ts +97 -97
  45. package/node_modules/@fses/workbench-card/dist/renderers/style.css +1 -1
  46. package/node_modules/@fses/workbench-card/package.json +4 -1
  47. package/node_modules/@fses/workbench-card/src/registry/cardRegistry.ts +99 -98
  48. package/node_modules/@fses/workbench-card/src/registry/compositeCardPatterns.ts +31 -30
  49. package/node_modules/@fses/workbench-card/src/registry/echartsTemplateCategories.ts +24 -23
  50. package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.js +765 -764
  51. package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.ts +765 -764
  52. package/node_modules/@fses/workbench-card/src/renderers/WorkbenchBlockRenderer.vue +143 -129
  53. package/node_modules/@fses/workbench-card/src/renderers/chart/ChartRegistry.vue +4 -3
  54. package/node_modules/@fses/workbench-card/src/renderers/chart/EChartsProtocolRenderer.vue +2 -1
  55. package/node_modules/@fses/workbench-card/src/renderers/chart/chartRendererRegistry.ts +99 -98
  56. package/node_modules/@fses/workbench-card/src/renderers/chart/useEchart.ts +30 -29
  57. package/node_modules/@fses/workbench-card/src/renderers/native/nativeBindings.ts +11 -10
  58. package/node_modules/@fses/workbench-card/src/renderers/nested/nestedBlockBindings.ts +102 -101
  59. package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceCompositeBindings.ts +364 -363
  60. package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceRiskAndStrategyBindings.ts +90 -89
  61. package/node_modules/@fses/workbench-card/src/renderers/useWorkbenchBlockRendererBindings.ts +33 -32
  62. package/package.json +4 -3
  63. package/dist/Workspace-CfKvji6S.js +0 -22896
  64. package/dist/cardFactory-BK3CA-Gn.js +0 -1443
@@ -1,31 +1,31 @@
1
- import { toRefs as re, shallowReadonly as W, inject as te, defineComponent as T, provide as ne, openBlock as g, createElementBlock as k, renderSlot as y, createElementVNode as A, normalizeClass as q, normalizeStyle as R, withModifiers as oe, createCommentVNode as P, createVNode as z, Transition as ae, withCtx as w, computed as se, createBlock as K, defineAsyncComponent as ie, unref as de } from "vue";
2
- import { d as ce } from "./cardFactory-BK3CA-Gn.js";
3
- import "./canvasFacade-B2EHgdqA.js";
4
- import { b as le } from "./useWorkbenchRuntime-DLf_FgC7.js";
5
- import "./workbenchCustomComponentRegistry-Bt94Lgko.js";
6
- const ue = "0.2.16", x = "workbench-app-version";
7
- function fe() {
8
- if (typeof document > "u" || document.querySelector(`meta[name="${x}"]`)) return !1;
1
+ import { toRefs as ne, shallowReadonly as F, inject as oe, defineComponent as T, provide as ae, openBlock as w, createElementBlock as k, renderSlot as y, createElementVNode as C, normalizeClass as L, normalizeStyle as R, withModifiers as se, unref as _, createCommentVNode as P, createVNode as G, Transition as ie, withCtx as A, computed as de, createBlock as Y, defineAsyncComponent as ce } from "vue";
2
+ import { d as o, e as le } from "./cardFactory-DmEBcCf4.js";
3
+ import "./canvasFacade-B8jYm_aO.js";
4
+ import { b as ue } from "./useWorkbenchRuntime-D_AtkXIX.js";
5
+ import "./workbenchCustomComponentRegistry-CWUPjCnJ.js";
6
+ const fe = "0.2.18", U = "workbench-app-version";
7
+ function me() {
8
+ if (typeof document > "u" || document.querySelector(`meta[name="${U}"]`)) return !1;
9
9
  const e = document.createElement("meta");
10
- return e.name = x, e.content = ue, document.head.appendChild(e), !0;
10
+ return e.name = U, e.content = fe, document.head.appendChild(e), !0;
11
11
  }
12
- fe();
13
- const G = Symbol("workbench-app-context");
14
- function me(e) {
15
- const { adapters: r, config: t, extensions: n } = re(e);
12
+ me();
13
+ const J = Symbol("workbench-app-context");
14
+ function he(e) {
15
+ const { adapters: r, config: t, extensions: n } = ne(e);
16
16
  return {
17
- adapters: W(r),
18
- config: W(t),
19
- extensions: W(n)
17
+ adapters: F(r),
18
+ config: F(t),
19
+ extensions: F(n)
20
20
  };
21
21
  }
22
- function er() {
23
- const e = te(G);
22
+ function nr() {
23
+ const e = oe(J);
24
24
  if (!e)
25
25
  throw new Error("useWorkbenchAppContext must be used inside WorkbenchWorkspaceCore");
26
26
  return e;
27
27
  }
28
- const he = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
28
+ const be = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
29
29
  __name: "WorkbenchWorkspaceCore",
30
30
  props: {
31
31
  adapters: {},
@@ -33,11 +33,11 @@ const he = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
33
33
  extensions: {}
34
34
  },
35
35
  setup(e) {
36
- return ne(G, me(e)), (t, n) => (g(), k("div", he, [
36
+ return ae(J, he(e)), (t, n) => (w(), k("div", be, [
37
37
  y(t.$slots, "default")
38
38
  ]));
39
39
  }
40
- }), ye = { class: "workbench-shell" }, be = ["aria-hidden", "inert"], ge = { class: "workbench-studio-panel__body" }, L = 48, we = /* @__PURE__ */ T({
40
+ }), ye = { class: "workbench-shell" }, ge = ["aria-label"], we = ["aria-hidden", "inert"], Ae = { class: "workbench-studio-panel__body" }, Ie = ["aria-label"], V = 48, ke = /* @__PURE__ */ T({
41
41
  __name: "WorkbenchShell",
42
42
  props: {
43
43
  studioPanelWidth: {},
@@ -52,55 +52,57 @@ const he = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
52
52
  emits: ["startDrag"],
53
53
  setup(e, { emit: r }) {
54
54
  const t = r;
55
- return (n, o) => (g(), k("div", ye, [
56
- A("div", {
57
- class: q(["workbench-shell__body", { "workbench-shell__body--dragging": e.dragging }])
55
+ return (n, a) => (w(), k("div", ye, [
56
+ C("div", {
57
+ class: L(["workbench-shell__body", { "workbench-shell__body--dragging": e.dragging }])
58
58
  }, [
59
- A("div", {
59
+ C("div", {
60
60
  class: "workbench-shell__canvas-pane",
61
61
  style: R({
62
- flexBasis: e.drawerOpen ? `calc(100% - ${e.drawerWidth || 392}px)` : e.canvasFocusMode || !e.studioPanelEnabled ? "100%" : e.studioPanelCollapsed ? `calc(100% - ${L}px)` : `calc(100% - ${e.studioPanelWidth}px - 8px)`
62
+ flexBasis: e.drawerOpen ? `calc(100% - ${e.drawerWidth || 392}px)` : e.canvasFocusMode || !e.studioPanelEnabled ? "100%" : e.studioPanelCollapsed ? `calc(100% - ${V}px)` : `calc(100% - ${e.studioPanelWidth}px - 8px)`
63
63
  })
64
64
  }, [
65
65
  y(n.$slots, "left", {}, void 0, !0)
66
66
  ], 4),
67
- e.studioPanelEnabled && !e.studioPanelCollapsed && !e.canvasFocusMode && !e.drawerOpen ? (g(), k("div", {
67
+ e.studioPanelEnabled && !e.studioPanelCollapsed && !e.canvasFocusMode && !e.drawerOpen ? (w(), k("div", {
68
68
  key: 0,
69
69
  "aria-orientation": "vertical",
70
- "aria-label": "调整问数栏宽度",
70
+ "data-i18n-aria-label": "FWA.8cb91787571066462",
71
+ "aria-label": _(o)("FWA.8cb91787571066462"),
71
72
  class: "workbench-splitter",
72
73
  role: "separator",
73
- onPointerdown: o[0] || (o[0] = (d) => t("startDrag", d)),
74
- onDragstart: o[1] || (o[1] = oe(() => {
74
+ onPointerdown: a[0] || (a[0] = (c) => t("startDrag", c)),
75
+ onDragstart: a[1] || (a[1] = se(() => {
75
76
  }, ["prevent"]))
76
- }, [...o[2] || (o[2] = [
77
- A("div", { class: "workbench-splitter__track" }, null, -1)
78
- ])], 32)) : P("", !0),
79
- e.studioPanelEnabled && !e.canvasFocusMode && !e.drawerOpen ? (g(), k("div", {
77
+ }, [...a[2] || (a[2] = [
78
+ C("div", { class: "workbench-splitter__track" }, null, -1)
79
+ ])], 40, ge)) : P("", !0),
80
+ e.studioPanelEnabled && !e.canvasFocusMode && !e.drawerOpen ? (w(), k("div", {
80
81
  key: 1,
81
- class: q(["workbench-studio-panel", { "workbench-studio-panel--collapsed": e.studioPanelCollapsed }]),
82
+ class: L(["workbench-studio-panel", { "workbench-studio-panel--collapsed": e.studioPanelCollapsed }]),
82
83
  style: R({ flexBasis: e.studioPanelCollapsed ? "0px" : `${e.studioPanelWidth}px` }),
83
84
  "aria-hidden": e.studioPanelCollapsed ? "true" : void 0,
84
85
  inert: e.studioPanelCollapsed ? !0 : void 0
85
86
  }, [
86
- A("div", ge, [
87
+ C("div", Ae, [
87
88
  y(n.$slots, "right", {}, void 0, !0)
88
89
  ])
89
- ], 14, be)) : P("", !0),
90
- z(ae, { name: "workbench-assistant-rail-shell" }, {
91
- default: w(() => [
92
- e.studioPanelEnabled && e.studioPanelCollapsed && !e.canvasFocusMode && !e.drawerOpen ? (g(), k("div", {
90
+ ], 14, we)) : P("", !0),
91
+ G(ie, { name: "workbench-assistant-rail-shell" }, {
92
+ default: A(() => [
93
+ e.studioPanelEnabled && e.studioPanelCollapsed && !e.canvasFocusMode && !e.drawerOpen ? (w(), k("div", {
93
94
  key: 0,
94
95
  class: "workbench-assistant-rail-shell",
95
- style: R({ flexBasis: `${L}px` }),
96
- "aria-label": "收起状态问数助手入口"
96
+ style: R({ flexBasis: `${V}px` }),
97
+ "data-i18n-aria-label": "FWA.f0e91787570935726",
98
+ "aria-label": _(o)("FWA.f0e91787570935726")
97
99
  }, [
98
100
  y(n.$slots, "collapsed-right", {}, void 0, !0)
99
- ], 4)) : P("", !0)
101
+ ], 12, Ie)) : P("", !0)
100
102
  ]),
101
103
  _: 3
102
104
  }),
103
- e.drawerOpen ? (g(), k("div", {
105
+ e.drawerOpen ? (w(), k("div", {
104
106
  key: 2,
105
107
  class: "workbench-shell__drawer",
106
108
  style: R({ flexBasis: `${e.drawerWidth || 392}px` })
@@ -110,12 +112,12 @@ const he = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
110
112
  ], 2)
111
113
  ]));
112
114
  }
113
- }), Ie = (e, r) => {
115
+ }), Se = (e, r) => {
114
116
  const t = e.__vccOpts || e;
115
- for (const [n, o] of r)
116
- t[n] = o;
117
+ for (const [n, a] of r)
118
+ t[n] = a;
117
119
  return t;
118
- }, ke = /* @__PURE__ */ Ie(we, [["__scopeId", "data-v-352c4f8f"]]), rr = /* @__PURE__ */ T({
120
+ }, We = /* @__PURE__ */ Se(ke, [["__scopeId", "data-v-1cfa390d"]]), or = /* @__PURE__ */ T({
119
121
  __name: "WorkbenchAppHost",
120
122
  props: {
121
123
  adapters: {},
@@ -124,7 +126,7 @@ const he = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
124
126
  runtime: {}
125
127
  },
126
128
  setup(e) {
127
- const r = e, t = se(() => ({
129
+ const r = e, t = de(() => ({
128
130
  canvasFocusMode: r.runtime.canvasFocusMode ?? !1,
129
131
  drawerOpen: r.runtime.drawerOpen ?? !1,
130
132
  drawerWidth: r.runtime.drawerWidth,
@@ -134,13 +136,13 @@ const he = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
134
136
  studioPanelEnabled: r.runtime.studioPanelEnabled ?? !0,
135
137
  studioPanelWidth: r.runtime.studioPanelWidth ?? 420
136
138
  }));
137
- return (n, o) => (g(), K(pe, {
139
+ return (n, a) => (w(), Y(pe, {
138
140
  adapters: r.adapters,
139
141
  config: r.config,
140
142
  extensions: r.extensions
141
143
  }, {
142
- default: w(() => [
143
- z(ke, {
144
+ default: A(() => [
145
+ G(We, {
144
146
  "canvas-focus-mode": t.value.canvasFocusMode,
145
147
  "drawer-open": t.value.drawerOpen,
146
148
  "drawer-width": t.value.drawerWidth,
@@ -149,21 +151,21 @@ const he = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
149
151
  "studio-panel-collapsed": t.value.studioPanelCollapsed,
150
152
  "studio-panel-enabled": t.value.studioPanelEnabled,
151
153
  "studio-panel-width": t.value.studioPanelWidth,
152
- onStartDrag: o[0] || (o[0] = (d) => {
153
- var h, b;
154
- return (b = (h = r.runtime).startStudioPanelDrag) == null ? void 0 : b.call(h, d);
154
+ onStartDrag: a[0] || (a[0] = (c) => {
155
+ var b, g;
156
+ return (g = (b = r.runtime).startStudioPanelDrag) == null ? void 0 : g.call(b, c);
155
157
  })
156
158
  }, {
157
- left: w(() => [
159
+ left: A(() => [
158
160
  y(n.$slots, "left")
159
161
  ]),
160
- right: w(() => [
162
+ right: A(() => [
161
163
  y(n.$slots, "right")
162
164
  ]),
163
- "collapsed-right": w(() => [
165
+ "collapsed-right": A(() => [
164
166
  y(n.$slots, "collapsed-right")
165
167
  ]),
166
- drawer: w(() => [
168
+ drawer: A(() => [
167
169
  y(n.$slots, "drawer")
168
170
  ]),
169
171
  _: 3
@@ -172,7 +174,7 @@ const he = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
172
174
  _: 3
173
175
  }, 8, ["adapters", "config", "extensions"]));
174
176
  }
175
- }), tr = /* @__PURE__ */ T({
177
+ }), ar = /* @__PURE__ */ T({
176
178
  __name: "WorkbenchApplication",
177
179
  props: {
178
180
  adapters: {},
@@ -182,39 +184,39 @@ const he = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
182
184
  },
183
185
  setup(e) {
184
186
  const r = e;
185
- ce(r.adapters, r.config, r.extensions);
186
- const t = ie(() => import("./Workspace-CfKvji6S.js"));
187
- return (n, o) => (g(), K(de(t), {
187
+ le(r.adapters, r.config, r.extensions);
188
+ const t = ce(() => import("./Workspace-JvnSC-w9.js"));
189
+ return (n, a) => (w(), Y(_(t), {
188
190
  "embed-in-portal": r.embedInPortal
189
191
  }, {
190
- "before-workbench": w(() => [
192
+ "before-workbench": A(() => [
191
193
  y(n.$slots, "before-workbench")
192
194
  ]),
193
195
  _: 3
194
196
  }, 8, ["embed-in-portal"]));
195
197
  }
196
198
  });
197
- function nr(e) {
199
+ function sr(e) {
198
200
  return {
199
201
  getItem: (r) => e.getItem(r),
200
202
  removeItem: (r) => e.removeItem(r),
201
203
  setItem: (r, t) => e.setItem(r, t)
202
204
  };
203
205
  }
204
- const Se = {
206
+ const Ce = {
205
207
  resolveAssetUrl: (e) => e
206
208
  }, S = {
207
209
  debug: (e, r) => console.debug(e, r),
208
210
  error: (e, r) => console.error(e, r),
209
211
  info: (e, r) => console.info(e, r),
210
212
  warn: (e, r) => console.warn(e, r)
211
- }, Ce = {
213
+ }, Re = {
212
214
  error: (e) => S.error(e),
213
215
  info: (e) => S.info(e),
214
216
  success: (e) => S.info(e),
215
217
  warning: (e) => S.warn(e)
216
218
  };
217
- function or(e = {}) {
219
+ function ir(e = {}) {
218
220
  const r = /* @__PURE__ */ new Map();
219
221
  return {
220
222
  agentTransportAdapter: {
@@ -222,12 +224,12 @@ function or(e = {}) {
222
224
  },
223
225
  requestJson: async () => ({})
224
226
  },
225
- assetAdapter: Se,
227
+ assetAdapter: Ce,
226
228
  identityAdapter: {
227
229
  readIdentity: () => ({ appId: "test-app", roleId: "default", tenantId: "test-tenant", userId: "test-user" })
228
230
  },
229
231
  loggerAdapter: S,
230
- messageAdapter: Ce,
232
+ messageAdapter: Re,
231
233
  platformRequestAdapter: {
232
234
  ensureSessionReady: async () => !0,
233
235
  requestJson: async () => ({})
@@ -254,7 +256,7 @@ function or(e = {}) {
254
256
  ...e
255
257
  };
256
258
  }
257
- const Ae = [
259
+ const Pe = [
258
260
  "attachments",
259
261
  "cards",
260
262
  "cardRecommendationDraft",
@@ -276,27 +278,27 @@ const Ae = [
276
278
  "thinkingProcessMessages",
277
279
  "workbenchTurnId"
278
280
  ];
279
- function ar(e, r) {
280
- for (const t of Ae)
281
+ function dr(e, r) {
282
+ for (const t of Pe)
281
283
  e[t] = r[t];
282
284
  }
283
- function Re(e) {
285
+ function Ee(e) {
284
286
  const r = e.cardRecommendationDraft;
285
287
  if (!r || typeof r != "object") return "";
286
288
  const t = r.sourceTurnId;
287
289
  return typeof t == "string" && t.trim() ? t.trim() : "";
288
290
  }
289
- function Pe(e) {
291
+ function Te(e) {
290
292
  const r = e.cardRecommendationDraft;
291
293
  if (!r || typeof r != "object") return "";
292
294
  const t = r.placementTurnId;
293
295
  return typeof t == "string" && t.trim() ? t.trim() : "";
294
296
  }
295
- function Y(e) {
297
+ function X(e) {
296
298
  const r = e.workbenchTurnId;
297
299
  return typeof r == "string" && r.trim() ? r.trim() : "";
298
300
  }
299
- function J(e) {
301
+ function Z(e) {
300
302
  if (typeof e != "string" || !e.startsWith("workbench-turn-")) return "";
301
303
  const r = ["-reply", "-conclusion-stream", "-item-", "-process-", "-task-", "-card-mutation-confirmation"];
302
304
  for (const t of r) {
@@ -305,46 +307,48 @@ function J(e) {
305
307
  }
306
308
  return "";
307
309
  }
308
- function _(e, r) {
310
+ function M(e, r) {
309
311
  var n;
310
312
  if (e.role !== "assistant" || !((n = e.content) != null && n.trim())) return !1;
311
- const t = Y(e);
312
- return t ? t === r : J(e.id) !== r ? !1 : typeof e.id == "string" && (e.id.endsWith("-reply") || e.id.endsWith("-conclusion-stream"));
313
+ const t = X(e);
314
+ return t ? t === r : Z(e.id) !== r ? !1 : typeof e.id == "string" && (e.id.endsWith("-reply") || e.id.endsWith("-conclusion-stream"));
313
315
  }
314
- function U(e, r) {
315
- return !!(r && e.some((t) => _(t, r)));
316
+ function Q(e, r) {
317
+ return !!(r && e.some((t) => M(t, r)));
316
318
  }
317
- function Ee(e, r) {
318
- const t = Re(r), n = Pe(r);
319
- return U(e, t) ? t : U(e, n) ? n : n || Y(r) || t || J(r.id);
319
+ function Fe(e, r) {
320
+ const t = Ee(r), n = Te(r);
321
+ return Q(e, t) ? t : Q(e, n) ? n : n || X(r) || t || Z(r.id);
320
322
  }
321
- function sr(e) {
323
+ function cr(e) {
322
324
  for (const r of e.appendedMessages.values()) {
323
325
  if (!r.cardRecommendationDraft) continue;
324
- const t = Ee(e.messages, r);
326
+ const t = Fe(e.messages, r);
325
327
  if (!t) continue;
326
328
  const n = e.messages.indexOf(r);
327
329
  if (n < 0) continue;
328
- const o = e.messages.findIndex((b) => _(b, t));
329
- if (o < 0 || n === o + 1) continue;
330
- const [d] = e.messages.splice(n, 1), h = e.messages.findIndex((b) => _(b, t));
331
- if (h < 0) {
332
- e.messages.splice(n, 0, d);
330
+ const a = e.messages.findIndex((g) => M(g, t));
331
+ if (a < 0 || n === a + 1) continue;
332
+ const [c] = e.messages.splice(n, 1), b = e.messages.findIndex((g) => M(g, t));
333
+ if (b < 0) {
334
+ e.messages.splice(n, 0, c);
333
335
  continue;
334
336
  }
335
- e.messages.splice(h + 1, 0, d);
337
+ e.messages.splice(b + 1, 0, c);
336
338
  }
337
339
  }
338
- function Te(e) {
340
+ function _e(e) {
339
341
  return !e.thinkingProcess;
340
342
  }
341
- function We(e) {
343
+ function Me(e) {
342
344
  const r = e.content.trim();
343
- return Te(e) ? `${r.replace(/完成(?:,用时 .*)?$/u, "").trim()}完成` : r;
345
+ if (!_e(e)) return r;
346
+ const t = r.replace(/完成(?:,用时 .*)?$/u, "").trim();
347
+ return o("FWA.cc001787570980831", { p0: t });
344
348
  }
345
- function ir(e, r) {
349
+ function lr(e, r) {
346
350
  return {
347
- content: We(e),
351
+ content: Me(e),
348
352
  loading: !1,
349
353
  ...typeof e.startTime == "number" ? { startTime: e.startTime } : {},
350
354
  ...typeof e.endTime == "number" ? { endTime: e.endTime } : typeof r == "number" ? { endTime: r } : {}
@@ -353,218 +357,218 @@ function ir(e, r) {
353
357
  function p(e) {
354
358
  return e && typeof e == "object" && !Array.isArray(e) ? e : {};
355
359
  }
356
- function a(e) {
360
+ function s(e) {
357
361
  return typeof e == "string" ? e.trim() : typeof e == "number" || typeof e == "boolean" ? String(e) : "";
358
362
  }
359
- function V(e) {
363
+ function j(e) {
360
364
  return Array.isArray(e) ? String(e.length) : "";
361
365
  }
362
- function X(e) {
366
+ function ee(e) {
363
367
  const r = p(e);
364
368
  return [
365
- a(r.bindingId),
366
- a(r.id),
367
- a(r.metricId),
368
- a(r.metricCode),
369
- a(r.source),
370
- a(r.bindingKind),
371
- a(r.serviceOperation),
372
- a(r.refreshApi),
373
- a(r.contractHash)
369
+ s(r.bindingId),
370
+ s(r.id),
371
+ s(r.metricId),
372
+ s(r.metricCode),
373
+ s(r.source),
374
+ s(r.bindingKind),
375
+ s(r.serviceOperation),
376
+ s(r.refreshApi),
377
+ s(r.contractHash)
374
378
  ].join("|");
375
379
  }
376
- function Z(e) {
380
+ function re(e) {
377
381
  const r = p(e), t = p(r.data);
378
382
  return [
379
- a(r.resultId),
380
- a(r.sourceTurnId),
381
- a(r.rowCount),
382
- V(r.rows || t.rows),
383
- V(r.columns || t.columns),
384
- X(r.dataBinding || t.dataBinding)
383
+ s(r.resultId),
384
+ s(r.sourceTurnId),
385
+ s(r.rowCount),
386
+ j(r.rows || t.rows),
387
+ j(r.columns || t.columns),
388
+ ee(r.dataBinding || t.dataBinding)
385
389
  ].join("|");
386
390
  }
387
- function _e(e) {
388
- const r = p(e), t = p(r.blockPlan), n = p(t.data), o = p(t.meta), d = p(o.queryResult);
391
+ function Be(e) {
392
+ const r = p(e), t = p(r.blockPlan), n = p(t.data), a = p(t.meta), c = p(a.queryResult);
389
393
  return [
390
- a(r.recommendationId),
391
- a(r.capabilityId),
392
- a(r.title),
393
- a(r.previewStatus),
394
- a(r.nextAction),
395
- a(r.dataShape),
396
- a(t.id),
397
- a(t.title),
398
- X(r.dataBinding || n.dataBinding),
399
- Z(r.queryResult || d)
394
+ s(r.recommendationId),
395
+ s(r.capabilityId),
396
+ s(r.title),
397
+ s(r.previewStatus),
398
+ s(r.nextAction),
399
+ s(r.dataShape),
400
+ s(t.id),
401
+ s(t.title),
402
+ ee(r.dataBinding || n.dataBinding),
403
+ re(r.queryResult || c)
400
404
  ].join(":");
401
405
  }
402
- function dr(e) {
406
+ function ur(e) {
403
407
  const r = p(e), t = typeof r.type == "string" ? r.type : "";
404
408
  if (t === "card_recommendations_ready") {
405
- const n = Array.isArray(r.recommendations) ? r.recommendations : [], o = le({
409
+ const n = Array.isArray(r.recommendations) ? r.recommendations : [], a = ue({
406
410
  payload: r,
407
- conversationId: a(r.conversationId),
411
+ conversationId: s(r.conversationId),
408
412
  groupType: t
409
413
  });
410
414
  return [
411
415
  t,
412
- o.renderKey,
413
- a(r.sourceTurnId),
414
- a(r.placementTurnId),
415
- Z(r.queryResult),
416
- n.map(_e).join(",")
416
+ a.renderKey,
417
+ s(r.sourceTurnId),
418
+ s(r.placementTurnId),
419
+ re(r.queryResult),
420
+ n.map(Be).join(",")
417
421
  ].join(":");
418
422
  }
419
423
  if (t === "query_result_table_ready") {
420
- const n = p(r.queryResult), o = Array.isArray(n.rows) ? n.rows.length : "", d = Array.isArray(n.columns) ? n.columns.length : "";
421
- return `${t}:${o}:${d}:${n.rowCount ?? ""}`;
424
+ const n = p(r.queryResult), a = Array.isArray(n.rows) ? n.rows.length : "", c = Array.isArray(n.columns) ? n.columns.length : "";
425
+ return `${t}:${a}:${c}:${n.rowCount ?? ""}`;
422
426
  }
423
427
  return t;
424
428
  }
425
- const Me = /* @__PURE__ */ new Set(["pending", "running"]), Be = "/data-binding-candidate/query", De = "/workbench/v2/documents/", Ne = "/data-bindings/";
426
- function ve(e) {
429
+ const De = /* @__PURE__ */ new Set(["pending", "running"]), Ne = "/data-binding-candidate/query", ve = "/workbench/v2/documents/", Oe = "/data-bindings/";
430
+ function He(e) {
427
431
  return typeof (e == null ? void 0 : e.refreshApi) == "string" ? e.refreshApi.trim() : "";
428
432
  }
429
- function Oe(e) {
430
- return e.includes(Be);
433
+ function $e(e) {
434
+ return e.includes(Ne);
431
435
  }
432
- function ee(e) {
436
+ function te(e) {
433
437
  let r = e;
434
438
  try {
435
439
  r = new URL(e, "http://localhost").pathname;
436
440
  } catch {
437
441
  r = e;
438
442
  }
439
- return r.includes(De) && r.includes(Ne);
443
+ return r.includes(ve) && r.includes(Oe);
440
444
  }
441
- function M(e) {
445
+ function B(e) {
442
446
  return !!(e && typeof e == "object" && !Array.isArray(e));
443
447
  }
444
- function m(e) {
445
- if (!M(e)) return !1;
448
+ function h(e) {
449
+ if (!B(e)) return !1;
446
450
  const r = typeof e.source == "string" ? e.source.trim().toLowerCase() : "", t = typeof e.sourceType == "string" ? e.sourceType.trim().toLowerCase() : "", n = typeof e.composeSource == "string" ? e.composeSource.trim().toLowerCase() : "";
447
- return r === "image" || t === "image" || n === "image" || m(e.params);
451
+ return r === "image" || t === "image" || n === "image" || h(e.params);
448
452
  }
449
- function C(e) {
450
- return M(e) ? m(e) || m(e.recognition) ? !0 : M(e.v2) ? C(e.v2) : !1 : !1;
453
+ function W(e) {
454
+ return B(e) ? h(e) || h(e.recognition) ? !0 : B(e.v2) ? W(e.v2) : !1 : !1;
451
455
  }
452
- function $e(e, r, t) {
453
- return (r == null ? void 0 : r.suppressImageComposeAutoRefresh) !== !0 || !ee(t) ? !1 : m(e == null ? void 0 : e.params) || m(e) || m(r) || m(r == null ? void 0 : r.source) || m(r == null ? void 0 : r.data) || C(r == null ? void 0 : r.recognition) || C(r == null ? void 0 : r.meta);
456
+ function qe(e, r, t) {
457
+ return (r == null ? void 0 : r.suppressImageComposeAutoRefresh) !== !0 || !te(t) ? !1 : h(e == null ? void 0 : e.params) || h(e) || h(r) || h(r == null ? void 0 : r.source) || h(r == null ? void 0 : r.data) || W(r == null ? void 0 : r.recognition) || W(r == null ? void 0 : r.meta);
454
458
  }
455
- function He(e, r) {
456
- return m(e == null ? void 0 : e.params) || m(e) || m(r) || m(r == null ? void 0 : r.source) || m(r == null ? void 0 : r.data) || C(r == null ? void 0 : r.recognition) || C(r == null ? void 0 : r.meta);
459
+ function xe(e, r) {
460
+ return h(e == null ? void 0 : e.params) || h(e) || h(r) || h(r == null ? void 0 : r.source) || h(r == null ? void 0 : r.data) || W(r == null ? void 0 : r.recognition) || W(r == null ? void 0 : r.meta);
457
461
  }
458
- function cr(e, r) {
462
+ function fr(e, r) {
459
463
  if (!e) return !1;
460
- const t = ve(e);
461
- if (!t || Oe(t) || $e(e, r, t)) return !1;
464
+ const t = He(e);
465
+ if (!t || $e(t) || qe(e, r, t)) return !1;
462
466
  const n = typeof (e == null ? void 0 : e.status) == "string" ? e.status.trim().toLowerCase() : "";
463
- return !(Me.has(n) || ee(t) && He(e, r));
467
+ return !(De.has(n) || te(t) && xe(e, r));
464
468
  }
465
- function lr(e) {
469
+ function mr(e) {
466
470
  var n;
467
- const r = (n = e.title) == null ? void 0 : n.trim(), t = r ? Fe(r) : void 0;
468
- return t || `字段 ${e.index + 1}`;
471
+ const r = (n = e.title) == null ? void 0 : n.trim(), t = r ? Le(r) : void 0;
472
+ return t || o("FWA.56db1787570894461", { p0: e.index + 1 });
469
473
  }
470
- function Fe(e) {
474
+ function Le(e) {
471
475
  const r = e.replace(/[A-Za-z0-9_./\\()[\]{}::,,;;#%+\-=]+/gu, "").replace(/\s+/gu, "").trim();
472
476
  return r && /[\u3400-\u9fff]/u.test(r) ? r : void 0;
473
477
  }
474
- function B(e, r = {}, t = "-") {
478
+ function D(e, r = {}, t = "-") {
475
479
  return Number.isFinite(e) ? new Intl.NumberFormat("zh-CN", r).format(e) : t;
476
480
  }
477
- function ur(e, r = "") {
478
- return r === "percent" ? `${(e * 100).toFixed(1)}%` : r === "currency" ? Math.abs(e) >= 1e8 ? `¥${(e / 1e8).toFixed(2)}亿` : Math.abs(e) >= 1e4 ? `¥${(e / 1e4).toFixed(1)}万` : `¥${B(e)}` : B(e);
481
+ function hr(e, r = "") {
482
+ return r === "percent" ? `${(e * 100).toFixed(1)}%` : r === "currency" ? Math.abs(e) >= 1e8 ? o("FWA.15b51787570950350", { p0: (e / 1e8).toFixed(2) }) : Math.abs(e) >= 1e4 ? o("FWA.e1c91787570950875", { p0: (e / 1e4).toFixed(1) }) : `¥${D(e)}` : D(e);
479
483
  }
480
- function fr(e, r = {}) {
481
- return e === 0 ? "-" : B(e, r);
484
+ function br(e, r = {}) {
485
+ return e === 0 ? "-" : D(e, r);
482
486
  }
483
- function Q(e = {}) {
484
- var t, n, o, d, h, b, N, v, O, $, H, F;
487
+ function K(e = {}) {
488
+ var t, n, a, c, b, g, v, O, H, $, q, x;
485
489
  const r = {
486
- workspaceId: l([
487
- s((t = e.routeQuery) == null ? void 0 : t.workspaceId),
488
- c(e.locationSearch, "workspaceId"),
489
- u(e.locationHash, "workspaceId"),
490
- f(e.locationPathname, "workspaceId")
490
+ workspaceId: u([
491
+ i((t = e.routeQuery) == null ? void 0 : t.workspaceId),
492
+ l(e.locationSearch, "workspaceId"),
493
+ f(e.locationHash, "workspaceId"),
494
+ m(e.locationPathname, "workspaceId")
491
495
  ]),
492
- userId: l([
493
- s((n = e.routeQuery) == null ? void 0 : n.userId),
494
- c(e.locationSearch, "userId"),
495
- u(e.locationHash, "userId"),
496
- f(e.locationPathname, "userId")
496
+ userId: u([
497
+ i((n = e.routeQuery) == null ? void 0 : n.userId),
498
+ l(e.locationSearch, "userId"),
499
+ f(e.locationHash, "userId"),
500
+ m(e.locationPathname, "userId")
497
501
  ]),
498
- tenantId: j(e, ["tenantId", "tenant_id", "tenant-id"]),
499
- appId: j(e, ["appId", "app_id", "app-id"]),
502
+ tenantId: z(e, ["tenantId", "tenant_id", "tenant-id"]),
503
+ appId: z(e, ["appId", "app_id", "app-id"]),
500
504
  roleId: "",
501
- mode: l([
502
- s((o = e.routeQuery) == null ? void 0 : o.mode),
503
- c(e.locationSearch, "mode"),
504
- u(e.locationHash, "mode"),
505
- f(e.locationPathname, "mode")
505
+ mode: u([
506
+ i((a = e.routeQuery) == null ? void 0 : a.mode),
507
+ l(e.locationSearch, "mode"),
508
+ f(e.locationHash, "mode"),
509
+ m(e.locationPathname, "mode")
506
510
  ]),
507
- fdeMode: l([
508
- s((d = e.routeQuery) == null ? void 0 : d.fdeMode),
509
- c(e.locationSearch, "fdeMode"),
510
- u(e.locationHash, "fdeMode"),
511
- f(e.locationPathname, "fdeMode")
511
+ fdeMode: u([
512
+ i((c = e.routeQuery) == null ? void 0 : c.fdeMode),
513
+ l(e.locationSearch, "fdeMode"),
514
+ f(e.locationHash, "fdeMode"),
515
+ m(e.locationPathname, "fdeMode")
512
516
  ]),
513
- workbenchEditable: l([
514
- s((h = e.routeQuery) == null ? void 0 : h.workbenchEditable),
515
- c(e.locationSearch, "workbenchEditable"),
516
- u(e.locationHash, "workbenchEditable"),
517
- f(e.locationPathname, "workbenchEditable")
517
+ workbenchEditable: u([
518
+ i((b = e.routeQuery) == null ? void 0 : b.workbenchEditable),
519
+ l(e.locationSearch, "workbenchEditable"),
520
+ f(e.locationHash, "workbenchEditable"),
521
+ m(e.locationPathname, "workbenchEditable")
518
522
  ]),
519
- conversationId: l([
520
- s((b = e.routeQuery) == null ? void 0 : b.conversationId),
521
- c(e.locationSearch, "conversationId"),
522
- u(e.locationHash, "conversationId"),
523
- f(e.locationPathname, "conversationId")
523
+ conversationId: u([
524
+ i((g = e.routeQuery) == null ? void 0 : g.conversationId),
525
+ l(e.locationSearch, "conversationId"),
526
+ f(e.locationHash, "conversationId"),
527
+ m(e.locationPathname, "conversationId")
524
528
  ]),
525
- resourceId: l([
526
- s((N = e.routeQuery) == null ? void 0 : N.resourceId),
527
- c(e.locationSearch, "resourceId"),
528
- u(e.locationHash, "resourceId"),
529
- f(e.locationPathname, "resourceId")
529
+ resourceId: u([
530
+ i((v = e.routeQuery) == null ? void 0 : v.resourceId),
531
+ l(e.locationSearch, "resourceId"),
532
+ f(e.locationHash, "resourceId"),
533
+ m(e.locationPathname, "resourceId")
530
534
  ]),
531
- fdeResourceId: l([
532
- s((v = e.routeQuery) == null ? void 0 : v.fdeResourceId),
533
- c(e.locationSearch, "fdeResourceId"),
534
- u(e.locationHash, "fdeResourceId"),
535
- f(e.locationPathname, "fdeResourceId")
535
+ fdeResourceId: u([
536
+ i((O = e.routeQuery) == null ? void 0 : O.fdeResourceId),
537
+ l(e.locationSearch, "fdeResourceId"),
538
+ f(e.locationHash, "fdeResourceId"),
539
+ m(e.locationPathname, "fdeResourceId")
536
540
  ]),
537
- path: l([
538
- s((O = e.routeQuery) == null ? void 0 : O.path),
539
- c(e.locationSearch, "path"),
540
- u(e.locationHash, "path"),
541
- f(e.locationPathname, "path")
541
+ path: u([
542
+ i((H = e.routeQuery) == null ? void 0 : H.path),
543
+ l(e.locationSearch, "path"),
544
+ f(e.locationHash, "path"),
545
+ m(e.locationPathname, "path")
542
546
  ]),
543
- fdePath: l([
544
- s(($ = e.routeQuery) == null ? void 0 : $.fdePath),
545
- c(e.locationSearch, "fdePath"),
546
- u(e.locationHash, "fdePath"),
547
- f(e.locationPathname, "fdePath")
547
+ fdePath: u([
548
+ i(($ = e.routeQuery) == null ? void 0 : $.fdePath),
549
+ l(e.locationSearch, "fdePath"),
550
+ f(e.locationHash, "fdePath"),
551
+ m(e.locationPathname, "fdePath")
548
552
  ]),
549
- name: l([
550
- s((H = e.routeQuery) == null ? void 0 : H.name),
551
- c(e.locationSearch, "name"),
552
- u(e.locationHash, "name"),
553
- f(e.locationPathname, "name")
553
+ name: u([
554
+ i((q = e.routeQuery) == null ? void 0 : q.name),
555
+ l(e.locationSearch, "name"),
556
+ f(e.locationHash, "name"),
557
+ m(e.locationPathname, "name")
554
558
  ]),
555
- fdeName: l([
556
- s((F = e.routeQuery) == null ? void 0 : F.fdeName),
557
- c(e.locationSearch, "fdeName"),
558
- u(e.locationHash, "fdeName"),
559
- f(e.locationPathname, "fdeName")
559
+ fdeName: u([
560
+ i((x = e.routeQuery) == null ? void 0 : x.fdeName),
561
+ l(e.locationSearch, "fdeName"),
562
+ f(e.locationHash, "fdeName"),
563
+ m(e.locationPathname, "fdeName")
560
564
  ])
561
565
  };
562
- return Le(r);
566
+ return Qe(r);
563
567
  }
564
- function mr(e) {
568
+ function pr(e) {
565
569
  if (typeof window > "u")
566
- return Q({ routeQuery: e });
567
- const r = Q({
570
+ return K({ routeQuery: e });
571
+ const r = K({
568
572
  routeQuery: e,
569
573
  locationPathname: window.location.pathname,
570
574
  locationSearch: window.location.search,
@@ -572,67 +576,67 @@ function mr(e) {
572
576
  });
573
577
  return {
574
578
  ...r,
575
- userId: r.userId || qe(window)
579
+ userId: r.userId || Ue(window)
576
580
  };
577
581
  }
578
- function s(e) {
579
- return Array.isArray(e) ? s(e[0]) : typeof e == "string" ? e.trim() : "";
582
+ function i(e) {
583
+ return Array.isArray(e) ? i(e[0]) : typeof e == "string" ? e.trim() : "";
580
584
  }
581
- function c(e, r) {
585
+ function l(e, r) {
582
586
  var t;
583
587
  return e && ((t = new URLSearchParams(e.startsWith("?") ? e.slice(1) : e).get(r)) == null ? void 0 : t.trim()) || "";
584
588
  }
585
- function u(e, r) {
589
+ function f(e, r) {
586
590
  if (!e) return "";
587
591
  const t = e.indexOf("?");
588
592
  if (t < 0) return "";
589
- const n = e.indexOf("#", t + 1), o = n >= 0 ? e.slice(t + 1, n) : e.slice(t + 1);
590
- return c(o, r);
593
+ const n = e.indexOf("#", t + 1), a = n >= 0 ? e.slice(t + 1, n) : e.slice(t + 1);
594
+ return l(a, r);
591
595
  }
592
- function f(e, r) {
596
+ function m(e, r) {
593
597
  if (!e || !e.includes("=")) return "";
594
598
  const t = e.split("/").filter(Boolean).find((n) => n.includes("="));
595
- return t ? c(t, r) : "";
599
+ return t ? l(t, r) : "";
596
600
  }
597
- function j(e, r) {
598
- return l(r.flatMap((t) => {
601
+ function z(e, r) {
602
+ return u(r.flatMap((t) => {
599
603
  var n;
600
604
  return [
601
- s((n = e.routeQuery) == null ? void 0 : n[t]),
602
- c(e.locationSearch, t),
603
- u(e.locationHash, t),
604
- f(e.locationPathname, t)
605
+ i((n = e.routeQuery) == null ? void 0 : n[t]),
606
+ l(e.locationSearch, t),
607
+ f(e.locationHash, t),
608
+ m(e.locationPathname, t)
605
609
  ];
606
610
  }));
607
611
  }
608
- function l(e) {
612
+ function u(e) {
609
613
  return e.find((r) => r.trim()) || "";
610
614
  }
611
- function qe(e) {
615
+ function Ue(e) {
612
616
  const r = [
613
617
  e.__BT_WORKBENCH_USER__,
614
618
  e.__BT_RUNTIME_IDENTITY__,
615
619
  e.__BT_RUNTIME_CONTEXT__
616
620
  ];
617
621
  for (const t of r) {
618
- const n = xe(t);
622
+ const n = Ve(t);
619
623
  if (n) return n;
620
624
  }
621
625
  return "";
622
626
  }
623
- function xe(e) {
627
+ function Ve(e) {
624
628
  if (!e || typeof e != "object" || Array.isArray(e)) return "";
625
629
  const r = e;
626
- return l([
627
- s(r.userId),
628
- s(r.user_id),
629
- s(r.egoUserinfo),
630
- s(r.egoUserInfo),
631
- s(r["ego-userinfo"])
630
+ return u([
631
+ i(r.userId),
632
+ i(r.user_id),
633
+ i(r.egoUserinfo),
634
+ i(r.egoUserInfo),
635
+ i(r["ego-userinfo"])
632
636
  ]);
633
637
  }
634
- function Le(e) {
635
- if (!Ue(e)) return e;
638
+ function Qe(e) {
639
+ if (!je(e)) return e;
636
640
  const r = e.fdeResourceId || e.resourceId;
637
641
  return {
638
642
  ...e,
@@ -642,11 +646,11 @@ function Le(e) {
642
646
  fdeResourceId: r
643
647
  };
644
648
  }
645
- function Ue(e) {
649
+ function je(e) {
646
650
  const r = e.mode.trim().toLowerCase(), t = e.fdeMode.trim().toLowerCase();
647
651
  return r === "fde" || t === "true" || t === "1" || t === "yes";
648
652
  }
649
- const i = {
653
+ const d = {
650
654
  radius: "standard",
651
655
  border: "light",
652
656
  shadow: "soft",
@@ -654,64 +658,64 @@ const i = {
654
658
  textureColor: "#ffffff",
655
659
  motion: "none",
656
660
  density: "standard"
657
- }, hr = [
661
+ }, yr = [
658
662
  {
659
663
  key: "radius",
660
- label: "圆角",
664
+ label: o("FWA.71e11787571689316"),
661
665
  options: [
662
- { value: "square", label: "直角" },
663
- { value: "small", label: "小圆角" },
664
- { value: "standard", label: "标准圆角" },
665
- { value: "large", label: "大圆角" }
666
+ { value: "square", label: o("FWA.fbad1787571689609") },
667
+ { value: "small", label: o("FWA.50721787571587373") },
668
+ { value: "standard", label: o("FWA.e83b1787571408644") },
669
+ { value: "large", label: o("FWA.c0491787571587595") }
666
670
  ]
667
671
  },
668
672
  {
669
673
  key: "border",
670
- label: "边框",
674
+ label: o("FWA.49d21787571689615"),
671
675
  options: [
672
- { value: "none", label: "无边框" },
673
- { value: "light", label: "浅色细边框" },
674
- { value: "strong", label: "强边框" }
676
+ { value: "none", label: o("FWA.f0961787571587988") },
677
+ { value: "light", label: o("FWA.36d41787571258647") },
678
+ { value: "strong", label: o("FWA.35961787571588423") }
675
679
  ]
676
680
  },
677
681
  {
678
682
  key: "shadow",
679
- label: "阴影",
683
+ label: o("FWA.30c71787571689687"),
680
684
  options: [
681
- { value: "none", label: "无阴影" },
682
- { value: "soft", label: "弱悬浮" },
683
- { value: "strong", label: "强悬浮" }
685
+ { value: "none", label: o("FWA.6e7c1787571588944") },
686
+ { value: "soft", label: o("FWA.db821787571589152") },
687
+ { value: "strong", label: o("FWA.7fbe1787571589516") }
684
688
  ]
685
689
  },
686
690
  {
687
691
  key: "texture",
688
- label: "质感",
692
+ label: o("FWA.e4e81787571690132"),
689
693
  options: [
690
- { value: "white", label: "纯白" },
691
- { value: "muted", label: "浅灰底" },
692
- { value: "glass", label: "磨砂玻璃" },
693
- { value: "texture", label: "纹理底" }
694
+ { value: "white", label: o("FWA.3e791787571690179") },
695
+ { value: "muted", label: o("FWA.2b471787571590077") },
696
+ { value: "glass", label: o("FWA.c3e41787571409224") },
697
+ { value: "texture", label: o("FWA.6b941787571590518") }
694
698
  ]
695
699
  },
696
700
  {
697
701
  key: "motion",
698
- label: "动效",
702
+ label: o("FWA.f1801787571690658"),
699
703
  options: [
700
- { value: "none", label: "无动效" },
701
- { value: "lift", label: "悬浮微动" },
702
- { value: "glow", label: "渐变光效" }
704
+ { value: "none", label: o("FWA.252a1787571591043") },
705
+ { value: "lift", label: o("FWA.f1bf1787571410166") },
706
+ { value: "glow", label: o("FWA.8a811787571410691") }
703
707
  ]
704
708
  },
705
709
  {
706
710
  key: "density",
707
- label: "密度",
711
+ label: o("FWA.b02d1787571690666"),
708
712
  options: [
709
- { value: "loose", label: "宽松版" },
710
- { value: "standard", label: "标准版" },
711
- { value: "compact", label: "高密度紧凑版" }
713
+ { value: "loose", label: o("FWA.2d611787571591242") },
714
+ { value: "standard", label: o("FWA.780f1787571591588") },
715
+ { value: "compact", label: o("FWA.6a711787571146025") }
712
716
  ]
713
717
  }
714
- ], Ve = {
718
+ ], Ke = {
715
719
  radius: ["square", "small", "standard", "large"],
716
720
  border: ["none", "light", "strong"],
717
721
  shadow: ["none", "soft", "strong"],
@@ -719,53 +723,53 @@ const i = {
719
723
  motion: ["none", "lift", "glow"],
720
724
  density: ["loose", "standard", "compact"]
721
725
  };
722
- function D(e) {
726
+ function N(e) {
723
727
  return e && typeof e == "object" && !Array.isArray(e) ? e : {};
724
728
  }
725
729
  function I(e, r) {
726
- const t = i[e];
727
- return typeof r == "string" && Ve[e].includes(r) ? r : t;
730
+ const t = d[e];
731
+ return typeof r == "string" && Ke[e].includes(r) ? r : t;
728
732
  }
729
- function Qe(e) {
730
- return typeof e == "string" && /^#[0-9a-fA-F]{6}$/.test(e) ? e.toLowerCase() : i.textureColor;
733
+ function ze(e) {
734
+ return typeof e == "string" && /^#[0-9a-fA-F]{6}$/.test(e) ? e.toLowerCase() : d.textureColor;
731
735
  }
732
736
  function E(e) {
733
- const r = D(e);
737
+ const r = N(e);
734
738
  return {
735
739
  radius: I("radius", r.radius),
736
740
  border: I("border", r.border),
737
741
  shadow: I("shadow", r.shadow),
738
742
  texture: I("texture", r.texture),
739
- textureColor: Qe(r.textureColor),
743
+ textureColor: ze(r.textureColor),
740
744
  motion: I("motion", r.motion),
741
745
  density: I("density", r.density)
742
746
  };
743
747
  }
744
- function pr(e) {
748
+ function gr(e) {
745
749
  const r = E(e);
746
- return r.radius === i.radius && r.border === i.border && r.shadow === i.shadow && r.texture === i.texture && r.textureColor === i.textureColor && r.motion === i.motion && r.density === i.density;
750
+ return r.radius === d.radius && r.border === d.border && r.shadow === d.shadow && r.texture === d.texture && r.textureColor === d.textureColor && r.motion === d.motion && r.density === d.density;
747
751
  }
748
- const je = {
752
+ const Ge = {
749
753
  square: 0,
750
754
  small: 4,
751
755
  standard: 8,
752
756
  large: 16
753
- }, ze = {
757
+ }, Ye = {
754
758
  none: "none",
755
759
  soft: "soft",
756
760
  standard: "soft",
757
761
  strong: "strong"
758
- }, Ke = {
762
+ }, Je = {
759
763
  thumbnail: "compact",
760
764
  compact: "compact",
761
765
  standard: "standard",
762
766
  expanded: "loose"
763
767
  };
764
- function yr(e) {
768
+ function wr(e) {
765
769
  const r = E(e);
766
770
  return {
767
771
  cardStyle: {
768
- cardRadius: je[r.radius],
772
+ cardRadius: Ge[r.radius],
769
773
  cardShadow: r.shadow === "strong" ? "strong" : r.shadow,
770
774
  density: r.density === "loose" ? "expanded" : r.density,
771
775
  ...r.texture === "color" ? { backgroundColor: r.textureColor } : {},
@@ -773,53 +777,53 @@ function yr(e) {
773
777
  }
774
778
  };
775
779
  }
776
- function br(e) {
777
- const r = D(e == null ? void 0 : e.cardStyle), t = D(r.shell);
780
+ function Ar(e) {
781
+ const r = N(e == null ? void 0 : e.cardStyle), t = N(r.shell);
778
782
  if (Object.keys(t).length > 0)
779
783
  return E(t);
780
- const n = typeof r.cardRadius == "number" ? r.cardRadius <= 0 ? "square" : r.cardRadius <= 4 ? "small" : r.cardRadius >= 16 ? "large" : "standard" : i.radius, o = typeof r.cardShadow == "string" && ze[r.cardShadow] || i.shadow, d = typeof r.density == "string" && Ke[r.density] || i.density, h = typeof r.backgroundColor == "string" ? r.backgroundColor : void 0;
784
+ const n = typeof r.cardRadius == "number" ? r.cardRadius <= 0 ? "square" : r.cardRadius <= 4 ? "small" : r.cardRadius >= 16 ? "large" : "standard" : d.radius, a = typeof r.cardShadow == "string" && Ye[r.cardShadow] || d.shadow, c = typeof r.density == "string" && Je[r.density] || d.density, b = typeof r.backgroundColor == "string" ? r.backgroundColor : void 0;
781
785
  return E({
782
786
  radius: n,
783
- border: i.border,
784
- shadow: o,
785
- texture: h ? "color" : i.texture,
786
- textureColor: h,
787
- motion: i.motion,
788
- density: d
787
+ border: d.border,
788
+ shadow: a,
789
+ texture: b ? "color" : d.texture,
790
+ textureColor: b,
791
+ motion: d.motion,
792
+ density: c
789
793
  });
790
794
  }
791
- const gr = "@fses/workbench-app";
795
+ const Ir = "@fses/workbench-app";
792
796
  export {
793
- Ce as A,
794
- fr as B,
795
- er as C,
796
- i as D,
797
- hr as W,
798
- Ie as _,
799
- We as a,
800
- ar as b,
801
- ir as c,
802
- dr as d,
803
- mr as e,
804
- ur as f,
805
- rr as g,
806
- br as h,
807
- pr as i,
808
- yr as j,
809
- G as k,
810
- gr as l,
811
- ue as m,
797
+ Re as A,
798
+ br as B,
799
+ nr as C,
800
+ d as D,
801
+ yr as W,
802
+ Se as _,
803
+ Me as a,
804
+ dr as b,
805
+ lr as c,
806
+ ur as d,
807
+ pr as e,
808
+ hr as f,
809
+ or as g,
810
+ Ar as h,
811
+ gr as i,
812
+ wr as j,
813
+ J as k,
814
+ Ir as l,
815
+ fe as m,
812
816
  E as n,
813
- tr as o,
814
- sr as p,
815
- ke as q,
816
- lr as r,
817
- cr as s,
817
+ ar as o,
818
+ cr as p,
819
+ We as q,
820
+ mr as r,
821
+ fr as s,
818
822
  pe as t,
819
- nr as u,
820
- me as v,
821
- ve as w,
822
- or as x,
823
- Se as y,
823
+ sr as u,
824
+ he as v,
825
+ He as w,
826
+ ir as x,
827
+ Ce as y,
824
828
  S as z
825
829
  };