@gengage/assistant-fe 0.6.23 → 0.6.25
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/agentic/index.d.ts +1 -1
- package/dist/agentic/index.js +684 -639
- package/dist/agentic/types.d.ts +17 -2
- package/dist/agentic/worker.d.ts +1 -1
- package/dist/agentic/worker.js +294 -237
- package/dist/agentic.iife.js +8 -8
- package/dist/{api-paths-BmN07ddR.js → api-paths-C0t52SV3.js} +1 -1
- package/dist/chat-runtime.js +1 -1
- package/dist/chat.iife.js +1 -1
- package/dist/chat.js +1 -1
- package/dist/{common-sx2gD-IP.js → common-aUI01FdB.js} +1 -1
- package/dist/common.js +5 -5
- package/dist/{connection-warning-D5T4gHSM.js → connection-warning-DkdoruU2.js} +1 -1
- package/dist/{fastIntent-BFAGybCb.js → fastIntent-iu8Z5MpN.js} +1 -1
- package/dist/index.js +10 -10
- package/dist/native.iife.js +1 -1
- package/dist/qna-runtime.js +1 -1
- package/dist/qna.iife.js +1 -1
- package/dist/qna.js +1 -1
- package/dist/{route-params-5KSvTyeb.js → route-params-UDemctx_.js} +330 -313
- package/dist/{runtime-DM7DHhH9.js → runtime-Cu05VoNY.js} +3 -3
- package/dist/{runtime-BD2fW-ed.js → runtime-DGUqplEx.js} +3 -3
- package/dist/{runtime-DQ3ULuNF.js → runtime-aSV5XfKR.js} +3 -3
- package/dist/{simbut-hkt_4H97.js → simbut-S9Kviutm.js} +1 -1
- package/dist/simbut.iife.js +1 -1
- package/dist/simbut.js +1 -1
- package/dist/{simrel-BbkK5Bwt.js → simrel-BTn7A6VC.js} +1 -1
- package/dist/simrel-runtime.js +1 -1
- package/dist/simrel.iife.js +1 -1
- package/dist/simrel.js +2 -2
- package/dist/{widget-base-BPKfPh0N.js → widget-base-T-AFCGg6.js} +1 -1
- package/package.json +1 -1
package/dist/agentic/worker.js
CHANGED
|
@@ -1,88 +1,91 @@
|
|
|
1
|
-
import { buildPhotoSimilarityProfile as
|
|
2
|
-
import { $ as
|
|
3
|
-
function
|
|
4
|
-
const
|
|
5
|
-
let
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
if (
|
|
9
|
-
if (
|
|
10
|
-
typeof
|
|
1
|
+
import { buildPhotoSimilarityProfile as V, buildProductSimilarityProfile as W, buildSimilarityQueries as G, normalizeSimilarityText as X, rankSimilarProducts as Y, rankSimilarProductsAsync as Z, scoreSimilarityCandidate as ee, tokenizeSimilarityText as te } from "./algos/similarity.js";
|
|
2
|
+
import { $ as ae, A as oe, B as v, C as ne, D as S, E as ce, F as se, G as b, H as ie, I as ue, J as le, K as de, L as pe, M as ye, N as me, O as A, P as fe, Q as _e, R as ke, S as Pe, T, U as ge, V as I, W as he, X as we, Y as xe, Z as U, _ as ve, a as Se, at as C, b as be, ct as Ae, d as Te, dt as Ie, et as Ue, f as Ce, ft as Be, g as Re, gt as Ke, h as Me, ht as Fe, i as Le, it as je, j as ze, k as B, lt as R, m as Ee, n as Oe, nt as K, o as Je, ot as qe, p as Ne, pt as M, q as $e, r as De, rt as He, s as Qe, st as F, t as Ve, tt as We, u as Ge, ut as Xe, v as Ye, w as L, x as j, y as Ze, z } from "../route-params-UDemctx_.js";
|
|
3
|
+
function et(e) {
|
|
4
|
+
const t = self, r = /* @__PURE__ */ new Map(), a = M(t), l = z(a);
|
|
5
|
+
let s = null, y = null, p = null, f = "";
|
|
6
|
+
t.addEventListener("message", (o) => {
|
|
7
|
+
const i = o.data;
|
|
8
|
+
if (i) {
|
|
9
|
+
if (i.type === "abort") {
|
|
10
|
+
typeof i.id == "number" && (r.get(i.id)?.abort(), r.delete(i.id));
|
|
11
11
|
return;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
i.type === "invoke" && k(i);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
async function k(o) {
|
|
17
|
-
|
|
18
|
-
accountId: String(o.accountId ||
|
|
17
|
+
s = {
|
|
18
|
+
accountId: String(o.accountId || e.accountId || ""),
|
|
19
19
|
beUrl: o.beUrl || "",
|
|
20
20
|
...o.devJwtSecret ? { devJwtSecret: o.devJwtSecret } : {},
|
|
21
21
|
...o.tokenBrokerUrl ? { tokenBrokerUrl: o.tokenBrokerUrl } : {},
|
|
22
22
|
...o.tokenBrokerAudience ? { tokenBrokerAudience: o.tokenBrokerAudience } : {},
|
|
23
|
-
locale: o.defaultLocale ||
|
|
23
|
+
locale: o.defaultLocale || e.defaultLocale || "en-GB",
|
|
24
24
|
parentUrl: o.parentUrl || ""
|
|
25
25
|
};
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
const i = [
|
|
27
|
+
s.accountId,
|
|
28
|
+
s.devJwtSecret || "",
|
|
29
|
+
s.tokenBrokerUrl || "",
|
|
30
|
+
s.tokenBrokerAudience || ""
|
|
31
31
|
].join(`
|
|
32
32
|
`);
|
|
33
|
-
(!
|
|
34
|
-
accountId:
|
|
35
|
-
locale:
|
|
36
|
-
parentUrl:
|
|
33
|
+
(!p || f !== i) && (p = F(s), f = i), y ||= new R({
|
|
34
|
+
accountId: s.accountId,
|
|
35
|
+
locale: s.locale,
|
|
36
|
+
parentUrl: s.parentUrl,
|
|
37
37
|
rpc: a,
|
|
38
|
-
persistentPanelKeys:
|
|
39
|
-
panelKeyLimits:
|
|
40
|
-
messageLimit:
|
|
41
|
-
maxThreads:
|
|
42
|
-
threadTtlMs:
|
|
38
|
+
persistentPanelKeys: e.contextPersistence?.panelKeys,
|
|
39
|
+
panelKeyLimits: e.contextPersistence?.panelKeyLimits,
|
|
40
|
+
messageLimit: e.contextPersistence?.messageLimit,
|
|
41
|
+
maxThreads: e.contextPersistence?.maxThreads,
|
|
42
|
+
threadTtlMs: e.contextPersistence?.threadTtlMs
|
|
43
43
|
});
|
|
44
|
-
const
|
|
45
|
-
r.set(o.id,
|
|
46
|
-
const
|
|
47
|
-
|
|
44
|
+
const n = new AbortController();
|
|
45
|
+
r.set(o.id, n);
|
|
46
|
+
const u = (c) => {
|
|
47
|
+
t.postMessage({
|
|
48
48
|
id: o.id,
|
|
49
49
|
type: "event",
|
|
50
|
-
event:
|
|
50
|
+
event: c
|
|
51
|
+
});
|
|
52
|
+
}, d = (c) => {
|
|
53
|
+
o.debugActivity === !0 && t.postMessage({
|
|
54
|
+
id: o.id,
|
|
55
|
+
type: "activity",
|
|
56
|
+
entry: c
|
|
51
57
|
});
|
|
52
58
|
};
|
|
53
59
|
try {
|
|
54
|
-
const
|
|
55
|
-
await
|
|
60
|
+
const c = s, P = p;
|
|
61
|
+
await v({
|
|
56
62
|
request: o.request || {},
|
|
57
63
|
accountModule: {
|
|
58
|
-
...
|
|
59
|
-
accountId:
|
|
64
|
+
...e,
|
|
65
|
+
accountId: c.accountId,
|
|
66
|
+
trace: async (w) => {
|
|
67
|
+
d({
|
|
68
|
+
kind: "flow/trace",
|
|
69
|
+
event: w
|
|
70
|
+
}), await e.trace?.(w);
|
|
71
|
+
}
|
|
60
72
|
},
|
|
61
|
-
contextStore:
|
|
62
|
-
beClient:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
input: v,
|
|
70
|
-
cacheTtlS: w,
|
|
71
|
-
cacheKey: A,
|
|
72
|
-
browserCache: T,
|
|
73
|
-
...S ? { signal: S } : {}
|
|
74
|
-
});
|
|
75
|
-
} },
|
|
76
|
-
toolBridge: d,
|
|
77
|
-
emit: s,
|
|
73
|
+
contextStore: y,
|
|
74
|
+
beClient: E({
|
|
75
|
+
config: c,
|
|
76
|
+
jwtProvider: P,
|
|
77
|
+
postActivity: d
|
|
78
|
+
}),
|
|
79
|
+
toolBridge: l,
|
|
80
|
+
emit: u,
|
|
78
81
|
rpc: a,
|
|
79
|
-
signal:
|
|
80
|
-
}),
|
|
82
|
+
signal: n.signal
|
|
83
|
+
}), t.postMessage({
|
|
81
84
|
id: o.id,
|
|
82
85
|
type: "end"
|
|
83
86
|
});
|
|
84
|
-
} catch (
|
|
85
|
-
|
|
87
|
+
} catch (c) {
|
|
88
|
+
n.signal.aborted || (u(C(c)), u(U()), t.postMessage({
|
|
86
89
|
id: o.id,
|
|
87
90
|
type: "end"
|
|
88
91
|
}));
|
|
@@ -91,8 +94,62 @@ function ae(t) {
|
|
|
91
94
|
}
|
|
92
95
|
}
|
|
93
96
|
}
|
|
97
|
+
function E({ config: e, jwtProvider: t, postActivity: r }) {
|
|
98
|
+
return { async invoke({ op: a, input: l, signal: s, cacheTtlS: y, cacheKey: p, browserCache: f }) {
|
|
99
|
+
const k = performance.now(), o = e.accountId.replace(/-agentic$/u, ""), i = `${String(e.beUrl).replace(/\/+$/u, "")}/v1/execute`;
|
|
100
|
+
r({
|
|
101
|
+
kind: "be/request",
|
|
102
|
+
source: "worker-fetch",
|
|
103
|
+
url: i,
|
|
104
|
+
op: a,
|
|
105
|
+
opDomain: o,
|
|
106
|
+
params: l || {},
|
|
107
|
+
rawBody: {
|
|
108
|
+
op_domain: o,
|
|
109
|
+
op_name: a,
|
|
110
|
+
op_payload: l,
|
|
111
|
+
...y !== void 0 ? { cache_ttl_s: y } : {},
|
|
112
|
+
...p !== void 0 ? { cache_key: p } : {}
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
try {
|
|
116
|
+
const n = await K({
|
|
117
|
+
beUrl: e.beUrl,
|
|
118
|
+
accountId: e.accountId,
|
|
119
|
+
jwtProvider: t,
|
|
120
|
+
parentUrl: e.parentUrl,
|
|
121
|
+
op: a,
|
|
122
|
+
input: l,
|
|
123
|
+
cacheTtlS: y,
|
|
124
|
+
cacheKey: p,
|
|
125
|
+
browserCache: f,
|
|
126
|
+
...s ? { signal: s } : {}
|
|
127
|
+
});
|
|
128
|
+
return r({
|
|
129
|
+
kind: "be/response",
|
|
130
|
+
source: "worker-fetch",
|
|
131
|
+
url: i,
|
|
132
|
+
status: 200,
|
|
133
|
+
op: a,
|
|
134
|
+
opDomain: o,
|
|
135
|
+
latencyMs: Math.max(0, Math.round(performance.now() - k)),
|
|
136
|
+
result: n
|
|
137
|
+
}), n;
|
|
138
|
+
} catch (n) {
|
|
139
|
+
throw r({
|
|
140
|
+
kind: "be/response",
|
|
141
|
+
source: "worker-fetch",
|
|
142
|
+
url: i,
|
|
143
|
+
op: a,
|
|
144
|
+
opDomain: o,
|
|
145
|
+
latencyMs: Math.max(0, Math.round(performance.now() - k)),
|
|
146
|
+
error: n instanceof Error ? n.message : String(n)
|
|
147
|
+
}), n;
|
|
148
|
+
}
|
|
149
|
+
} };
|
|
150
|
+
}
|
|
94
151
|
var h = { patterns: [
|
|
95
|
-
...
|
|
152
|
+
...S,
|
|
96
153
|
{
|
|
97
154
|
pattern: /(?:adresim|adres|address)\s*[:=]?\s*[^.;\n]{0,160}/giu,
|
|
98
155
|
replacement: "[address]"
|
|
@@ -101,80 +158,80 @@ var h = { patterns: [
|
|
|
101
158
|
pattern: /[^\s,.;]{2,}\s+(?:mahallesi|mah\.|sokak|sk\.|cadde|cad\.)\s+[^.;\n]{0,120}/giu,
|
|
102
159
|
replacement: "[address]"
|
|
103
160
|
}
|
|
104
|
-
] },
|
|
105
|
-
function
|
|
106
|
-
return String(
|
|
161
|
+
] }, O = "llm-flow-routing-v1";
|
|
162
|
+
function J(e) {
|
|
163
|
+
return String(e?.payload?.text || e?.payload?.query || e?.action?.payload?.text || "");
|
|
107
164
|
}
|
|
108
|
-
function
|
|
109
|
-
return e
|
|
165
|
+
function tt(e, t = {}) {
|
|
166
|
+
return t[e?.type || e?.action?.type] || "";
|
|
110
167
|
}
|
|
111
|
-
function
|
|
168
|
+
function rt({ accountId: e, cacheTtlS: t = 3600, browserCacheTtlMs: r, promptVersion: a = O, cacheable: l = !0, piiPatternPack: s = h, utterance: y, compactPageContext: p = N, compactStructuredContext: f = $, extraInput: k, cacheKeyParts: o, onError: i = [] } = {}) {
|
|
112
169
|
return {
|
|
113
170
|
kind: "be_op",
|
|
114
171
|
op: "intent",
|
|
115
|
-
input: (
|
|
116
|
-
const { request:
|
|
117
|
-
return
|
|
118
|
-
utterance: x(
|
|
119
|
-
request:
|
|
120
|
-
context:
|
|
121
|
-
bag:
|
|
172
|
+
input: (n) => {
|
|
173
|
+
const { request: u, context: d, bag: c, accountConfig: P } = n;
|
|
174
|
+
return L(_({
|
|
175
|
+
utterance: x(u, {
|
|
176
|
+
request: u,
|
|
177
|
+
context: d,
|
|
178
|
+
bag: c,
|
|
122
179
|
accountConfig: P
|
|
123
|
-
},
|
|
124
|
-
page_context: p
|
|
125
|
-
structured_context:
|
|
126
|
-
locale:
|
|
127
|
-
...
|
|
180
|
+
}, y, s),
|
|
181
|
+
page_context: m(p, c.page, n),
|
|
182
|
+
structured_context: m(f, d, n),
|
|
183
|
+
locale: d.meta.locale,
|
|
184
|
+
..._(m(k, n))
|
|
128
185
|
}), P, "intent");
|
|
129
186
|
},
|
|
130
187
|
out: "route",
|
|
131
|
-
cache: (
|
|
132
|
-
ttlS:
|
|
188
|
+
cache: (n) => m(l, n) ? j({
|
|
189
|
+
ttlS: t,
|
|
133
190
|
promptVersion: a
|
|
134
191
|
}) : void 0,
|
|
135
192
|
...r ? { browserCache: { ttlMs: r } } : {},
|
|
136
|
-
cacheKey: ({ request:
|
|
137
|
-
if (
|
|
138
|
-
request:
|
|
139
|
-
context:
|
|
140
|
-
bag:
|
|
141
|
-
accountConfig:
|
|
193
|
+
cacheKey: ({ request: n, context: u, bag: d, accountConfig: c }) => {
|
|
194
|
+
if (m(l, {
|
|
195
|
+
request: n,
|
|
196
|
+
context: u,
|
|
197
|
+
bag: d,
|
|
198
|
+
accountConfig: c
|
|
142
199
|
}))
|
|
143
|
-
return
|
|
144
|
-
account:
|
|
200
|
+
return I("intent", {
|
|
201
|
+
account: e,
|
|
145
202
|
prompt: a,
|
|
146
|
-
locale:
|
|
147
|
-
utterance:
|
|
148
|
-
request:
|
|
149
|
-
context:
|
|
150
|
-
bag:
|
|
151
|
-
accountConfig:
|
|
152
|
-
},
|
|
153
|
-
page: p
|
|
154
|
-
request:
|
|
155
|
-
context:
|
|
156
|
-
bag:
|
|
157
|
-
accountConfig:
|
|
203
|
+
locale: u.meta.locale,
|
|
204
|
+
utterance: b(x(n, {
|
|
205
|
+
request: n,
|
|
206
|
+
context: u,
|
|
207
|
+
bag: d,
|
|
208
|
+
accountConfig: c
|
|
209
|
+
}, y, s), u.meta.locale),
|
|
210
|
+
page: m(p, d.page, {
|
|
211
|
+
request: n,
|
|
212
|
+
context: u,
|
|
213
|
+
bag: d,
|
|
214
|
+
accountConfig: c
|
|
158
215
|
}),
|
|
159
|
-
panel:
|
|
160
|
-
request:
|
|
161
|
-
context:
|
|
162
|
-
bag:
|
|
163
|
-
accountConfig:
|
|
216
|
+
panel: m(f, u, {
|
|
217
|
+
request: n,
|
|
218
|
+
context: u,
|
|
219
|
+
bag: d,
|
|
220
|
+
accountConfig: c
|
|
164
221
|
}),
|
|
165
|
-
...
|
|
166
|
-
request:
|
|
167
|
-
context:
|
|
168
|
-
bag:
|
|
169
|
-
accountConfig:
|
|
222
|
+
..._(m(o, {
|
|
223
|
+
request: n,
|
|
224
|
+
context: u,
|
|
225
|
+
bag: d,
|
|
226
|
+
accountConfig: c
|
|
170
227
|
}))
|
|
171
228
|
});
|
|
172
229
|
},
|
|
173
|
-
onError:
|
|
230
|
+
onError: i
|
|
174
231
|
};
|
|
175
232
|
}
|
|
176
|
-
function
|
|
177
|
-
const r = String(
|
|
233
|
+
function at(e, t = "product") {
|
|
234
|
+
const r = String(e?.intent?.kind || e?.kind || "").trim();
|
|
178
235
|
return {
|
|
179
236
|
product_search: "search",
|
|
180
237
|
add_to_cart: "cart",
|
|
@@ -188,16 +245,16 @@ function ce(t, e = "product") {
|
|
|
188
245
|
consulting_redirect: "consulting",
|
|
189
246
|
handoff_shopping: "consulting",
|
|
190
247
|
handOffShopping: "consulting"
|
|
191
|
-
}[r] || r ||
|
|
248
|
+
}[r] || r || t;
|
|
192
249
|
}
|
|
193
|
-
function
|
|
194
|
-
return
|
|
250
|
+
function ot(e, t) {
|
|
251
|
+
return q(e, t).query || "";
|
|
195
252
|
}
|
|
196
|
-
function
|
|
197
|
-
const r =
|
|
198
|
-
return
|
|
253
|
+
function q(e, t) {
|
|
254
|
+
const r = t.route?.search_params || t.route?.searchParams || {}, a = e?.payload || {}, l = r.query || a.query;
|
|
255
|
+
return _({
|
|
199
256
|
...r,
|
|
200
|
-
query:
|
|
257
|
+
query: l,
|
|
201
258
|
text: r.text || a.text,
|
|
202
259
|
facetParams: r.facetParams || r.facet_params || a.facetParams || a.facet_params,
|
|
203
260
|
facets: r.facets || a.facets,
|
|
@@ -208,135 +265,135 @@ function $(t, e) {
|
|
|
208
265
|
maxPrice: r.maxPrice || a.maxPrice
|
|
209
266
|
});
|
|
210
267
|
}
|
|
211
|
-
function
|
|
212
|
-
return (
|
|
268
|
+
function nt(e) {
|
|
269
|
+
return (e.route?.flow_params && typeof e.route.flow_params == "object" ? e.route.flow_params : null) || (e.route?.flowParams && typeof e.route.flowParams == "object" ? e.route.flowParams : null) || {};
|
|
213
270
|
}
|
|
214
|
-
function
|
|
215
|
-
const
|
|
216
|
-
return
|
|
217
|
-
pageType:
|
|
218
|
-
sku:
|
|
219
|
-
product_name:
|
|
220
|
-
category_names: Array.isArray(
|
|
271
|
+
function N(e = {}) {
|
|
272
|
+
const t = e?.product && typeof e.product == "object" ? e.product : null;
|
|
273
|
+
return _({
|
|
274
|
+
pageType: e?.pageType || e?.type || "other",
|
|
275
|
+
sku: e?.sku || t?.sku,
|
|
276
|
+
product_name: t?.name || t?.title,
|
|
277
|
+
category_names: Array.isArray(t?.category_names) ? t.category_names.slice(0, 5) : void 0
|
|
221
278
|
});
|
|
222
279
|
}
|
|
223
|
-
function
|
|
224
|
-
const
|
|
225
|
-
return
|
|
226
|
-
screen_type:
|
|
227
|
-
screen_sku_list: Array.isArray(
|
|
228
|
-
chat_mentioned_skus: Array.isArray(
|
|
229
|
-
last_search:
|
|
230
|
-
current_panel_product_count: Array.isArray(
|
|
280
|
+
function $(e = {}) {
|
|
281
|
+
const t = e.panel || {};
|
|
282
|
+
return _({
|
|
283
|
+
screen_type: t.screen_type,
|
|
284
|
+
screen_sku_list: Array.isArray(t.screen_sku_list) ? t.screen_sku_list.slice(0, 24) : void 0,
|
|
285
|
+
chat_mentioned_skus: Array.isArray(t.chat_mentioned_skus) ? t.chat_mentioned_skus.slice(0, 12) : void 0,
|
|
286
|
+
last_search: D(t.last_search),
|
|
287
|
+
current_panel_product_count: Array.isArray(t.last_search_products) ? t.last_search_products.length : 0
|
|
231
288
|
});
|
|
232
289
|
}
|
|
233
|
-
function
|
|
234
|
-
return !
|
|
235
|
-
query: g(
|
|
236
|
-
source:
|
|
237
|
-
count:
|
|
238
|
-
category: g(
|
|
239
|
-
goal: g(
|
|
290
|
+
function D(e) {
|
|
291
|
+
return !e || typeof e != "object" ? null : _({
|
|
292
|
+
query: g(e.query),
|
|
293
|
+
source: e.source,
|
|
294
|
+
count: e.count,
|
|
295
|
+
category: g(e.category),
|
|
296
|
+
goal: g(e.goal)
|
|
240
297
|
});
|
|
241
298
|
}
|
|
242
|
-
function
|
|
243
|
-
return
|
|
299
|
+
function H(e, t = h) {
|
|
300
|
+
return T(e, t) || g(B(e) || J(e), t);
|
|
244
301
|
}
|
|
245
|
-
function x(
|
|
246
|
-
const
|
|
247
|
-
return
|
|
302
|
+
function x(e, t, r, a) {
|
|
303
|
+
const l = m(r, e, t);
|
|
304
|
+
return l ? String(l) : H(e, a);
|
|
248
305
|
}
|
|
249
|
-
function g(
|
|
250
|
-
return
|
|
306
|
+
function g(e, t = h) {
|
|
307
|
+
return A(String(e || ""), t);
|
|
251
308
|
}
|
|
252
|
-
function
|
|
253
|
-
return typeof
|
|
309
|
+
function m(e, t, r) {
|
|
310
|
+
return typeof e == "function" ? e(t, r) : e;
|
|
254
311
|
}
|
|
255
|
-
function
|
|
256
|
-
return Object.fromEntries(Object.entries(
|
|
312
|
+
function _(e) {
|
|
313
|
+
return Object.fromEntries(Object.entries(e || {}).filter(([, t]) => t != null && t !== "" && (!Array.isArray(t) || t.length)));
|
|
257
314
|
}
|
|
258
315
|
export {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
316
|
+
He as AgentError,
|
|
317
|
+
R as ContextStore,
|
|
318
|
+
ve as FALLBACK_STATUS,
|
|
319
|
+
we as action,
|
|
320
|
+
ze as actionButtonsUiSpec,
|
|
321
|
+
se as alignProductsToTable,
|
|
322
|
+
T as anonymousRequestText,
|
|
323
|
+
je as beErrorToAgentError,
|
|
324
|
+
V as buildPhotoSimilarityProfile,
|
|
325
|
+
W as buildProductSimilarityProfile,
|
|
326
|
+
G as buildSimilarityQueries,
|
|
327
|
+
C as caughtToStreamError,
|
|
328
|
+
ne as compactAccountConfig,
|
|
329
|
+
ke as compactContextProducts,
|
|
330
|
+
Me as compactObject,
|
|
331
|
+
Qe as compactProductSurfaceForLlm,
|
|
332
|
+
ue as comparisonResultForUi,
|
|
333
|
+
ye as comparisonUiSpec,
|
|
334
|
+
oe as createFlow,
|
|
335
|
+
F as createJwtProvider,
|
|
336
|
+
Ce as createPrivacyHelpers,
|
|
337
|
+
Re as createReadPageStep,
|
|
338
|
+
z as createToolBridge,
|
|
339
|
+
M as createWorkerRpc,
|
|
340
|
+
be as declarativeBeOpCache,
|
|
341
|
+
ce as defaultPiiPatternPack,
|
|
342
|
+
S as defaultPiiPatterns,
|
|
343
|
+
U as done,
|
|
344
|
+
Ie as elapsedMs,
|
|
345
|
+
_e as error,
|
|
346
|
+
tt as explicitRoute,
|
|
347
|
+
Ye as fallbackStatus,
|
|
348
|
+
Ve as firstArrayValue,
|
|
349
|
+
nt as flowParamsFromRoute,
|
|
350
|
+
Fe as handleMainRpc,
|
|
351
|
+
Ee as homePanelReset,
|
|
352
|
+
qe as httpErrorToAgentError,
|
|
353
|
+
j as inputHashCachePolicy,
|
|
354
|
+
K as invokeBeOp,
|
|
355
|
+
Ze as isFallbackStatus,
|
|
356
|
+
I as llmCacheKey,
|
|
357
|
+
rt as llmIntentStep,
|
|
358
|
+
Ge as mergeProductSurfaceEvidence,
|
|
359
|
+
ae as metadata,
|
|
360
|
+
Ae as mintDevJwt,
|
|
361
|
+
pe as normalizeComparisonTable,
|
|
362
|
+
de as normalizeProduct,
|
|
363
|
+
X as normalizeSimilarityText,
|
|
364
|
+
Be as nowIso,
|
|
365
|
+
Ne as plainMessageContent,
|
|
366
|
+
me as productDetailsUiSpec,
|
|
367
|
+
ie as productFactsKey,
|
|
368
|
+
ge as productSkuKey,
|
|
369
|
+
Te as productSurfaceReviewText,
|
|
370
|
+
fe as productsUiSpec,
|
|
371
|
+
Y as rankSimilarProducts,
|
|
372
|
+
Z as rankSimilarProductsAsync,
|
|
373
|
+
A as redactPii,
|
|
374
|
+
B as requestText,
|
|
375
|
+
xe as resolveFlow,
|
|
376
|
+
Le as retailAnonymizeMessages,
|
|
377
|
+
Se as retailAnonymousRequestText,
|
|
378
|
+
Je as retailRedactPii,
|
|
379
|
+
Oe as routeFlowParams,
|
|
380
|
+
at as routeKind,
|
|
381
|
+
De as routeSkuList,
|
|
382
|
+
J as routeText,
|
|
383
|
+
Ke as runMainRpc,
|
|
384
|
+
v as runTurn,
|
|
385
|
+
ee as scoreSimilarityCandidate,
|
|
386
|
+
q as searchInputFromRoute,
|
|
387
|
+
ot as searchQueryFromRoute,
|
|
388
|
+
he as stableKey,
|
|
389
|
+
et as startWorker,
|
|
390
|
+
Xe as stickyContextKey,
|
|
391
|
+
Ue as textChunk,
|
|
392
|
+
b as textKey,
|
|
393
|
+
te as tokenizeSimilarityText,
|
|
394
|
+
$e as trimProductFactsCore,
|
|
395
|
+
le as trimProductFactsListCore,
|
|
396
|
+
We as uiSpec,
|
|
397
|
+
L as withAccountConfig,
|
|
398
|
+
Pe as withDeclarativeBeOpCache
|
|
342
399
|
};
|