@sisense/mcp-server 0.2.1

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 (37) hide show
  1. package/LICENSE.md +35 -0
  2. package/README.md +121 -0
  3. package/dist/ai-hspmgr2c.js +3148 -0
  4. package/dist/fileFromPath-s6ap5vrh.js +128 -0
  5. package/dist/index-29n08mw7.js +95 -0
  6. package/dist/index-atgbxy7h.js +98603 -0
  7. package/dist/index-d6843g0v.js +372 -0
  8. package/dist/index-dcrjg3fk.js +207 -0
  9. package/dist/index-dxfb3krz.js +1489 -0
  10. package/dist/index-er0yspcy.js +918 -0
  11. package/dist/index-g8bgq79c.js +53 -0
  12. package/dist/index-p1pxtmwn.js +162 -0
  13. package/dist/index-qdth51hx.js +250 -0
  14. package/dist/index-tqba2rwh.js +603 -0
  15. package/dist/index-vrapm0b4.js +765 -0
  16. package/dist/index-vx54d05h.js +475 -0
  17. package/dist/sse-server-3343e7xh.js +117 -0
  18. package/dist/sse-server-36t17nga.js +12127 -0
  19. package/dist/sse-server-3e0efmg2.js +6276 -0
  20. package/dist/sse-server-4b60tg0c.js +136 -0
  21. package/dist/sse-server-4g9za0qq.js +89 -0
  22. package/dist/sse-server-4jjec4fz.js +9753 -0
  23. package/dist/sse-server-5tmgacdx.js +62 -0
  24. package/dist/sse-server-7wcvyxyj.js +31 -0
  25. package/dist/sse-server-brx9qtyd.js +2131 -0
  26. package/dist/sse-server-epd916s3.js +167 -0
  27. package/dist/sse-server-gt7tx6n2.js +2240 -0
  28. package/dist/sse-server-mkesh468.js +53 -0
  29. package/dist/sse-server-nwjjjz6x.js +113 -0
  30. package/dist/sse-server-qj4zxq0f.js +267 -0
  31. package/dist/sse-server-rr3dp62e.js +116721 -0
  32. package/dist/sse-server-ss0mydv4.js +3980 -0
  33. package/dist/sse-server-txz5g5t0.js +5328 -0
  34. package/dist/sse-server.js +30432 -0
  35. package/dist/view.html +3016 -0
  36. package/dist/widget-renderer-66ws3xtk.js +312 -0
  37. package/package.json +82 -0
@@ -0,0 +1,3148 @@
1
+ import {
2
+ $ye,
3
+ B0,
4
+ B2e,
5
+ Cg,
6
+ DQ,
7
+ De,
8
+ Dt,
9
+ Dt1 as Dt2,
10
+ F1,
11
+ GN,
12
+ Gg,
13
+ H2e,
14
+ It,
15
+ K_e,
16
+ Kd,
17
+ Kt,
18
+ Lye,
19
+ MC,
20
+ Mt,
21
+ Nt,
22
+ Ov,
23
+ Pw,
24
+ Q_e,
25
+ Qt,
26
+ Rc,
27
+ SC,
28
+ TC,
29
+ Tt,
30
+ Ul,
31
+ Ve,
32
+ Yg,
33
+ ae,
34
+ awe,
35
+ b,
36
+ cn,
37
+ ewe,
38
+ gr,
39
+ iee,
40
+ ir,
41
+ iwe,
42
+ jg,
43
+ jt,
44
+ k2e,
45
+ mh,
46
+ nr,
47
+ nv,
48
+ nwe,
49
+ owe,
50
+ q2e,
51
+ qd,
52
+ qe,
53
+ qs,
54
+ require_jsx_runtime,
55
+ require_react,
56
+ rwe,
57
+ sv,
58
+ te,
59
+ twe,
60
+ vK,
61
+ wg,
62
+ xu,
63
+ yi,
64
+ yt,
65
+ ze
66
+ } from "./sse-server-rr3dp62e.js";
67
+ import {
68
+ Lt,
69
+ Sh,
70
+ Xg,
71
+ bs,
72
+ ip,
73
+ se
74
+ } from "./sse-server-3e0efmg2.js";
75
+ import {
76
+ __toESM
77
+ } from "./sse-server-7wcvyxyj.js";
78
+
79
+ // node_modules/@sisense/sdk-ui/dist/ai.js
80
+ var Y = __toESM(require_react(), 1);
81
+ var import_react = __toESM(require_react(), 1);
82
+ var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
83
+ var Sn = Object.defineProperty;
84
+ var Mn = Object.defineProperties;
85
+ var Tn = Object.getOwnPropertyDescriptors;
86
+ var Re = Object.getOwnPropertySymbols;
87
+ var gt = Object.prototype.hasOwnProperty;
88
+ var ft = Object.prototype.propertyIsEnumerable;
89
+ var Ae = (e, t, n) => (t in e) ? Sn(e, t, { enumerable: true, configurable: true, writable: true, value: n }) : e[t] = n;
90
+ var M = (e, t) => {
91
+ for (var n in t || (t = {}))
92
+ gt.call(t, n) && Ae(e, n, t[n]);
93
+ if (Re)
94
+ for (var n of Re(t))
95
+ ft.call(t, n) && Ae(e, n, t[n]);
96
+ return e;
97
+ };
98
+ var L = (e, t) => Mn(e, Tn(t));
99
+ var qe2 = (e, t) => {
100
+ var n = {};
101
+ for (var r in e)
102
+ gt.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
103
+ if (e != null && Re)
104
+ for (var r of Re(e))
105
+ t.indexOf(r) < 0 && ft.call(e, r) && (n[r] = e[r]);
106
+ return n;
107
+ };
108
+ var z = (e, t, n) => Ae(e, typeof t != "symbol" ? t + "" : t, n);
109
+ var J = (e, t, n) => new Promise((r, s) => {
110
+ var c = (d) => {
111
+ try {
112
+ p(n.next(d));
113
+ } catch (h) {
114
+ s(h);
115
+ }
116
+ }, a = (d) => {
117
+ try {
118
+ p(n.throw(d));
119
+ } catch (h) {
120
+ s(h);
121
+ }
122
+ }, p = (d) => d.done ? r(d.value) : Promise.resolve(d.value).then(c, a);
123
+ p((n = n.apply(e, t)).next());
124
+ });
125
+
126
+ class pr extends xu {
127
+ constructor(t, n) {
128
+ super(), this.client = t, this.setOptions(n), this.bindMethods(), this.updateResult();
129
+ }
130
+ bindMethods() {
131
+ this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
132
+ }
133
+ setOptions(t) {
134
+ var n;
135
+ const r = this.options;
136
+ this.options = this.client.defaultMutationOptions(t), B0(r, this.options) || this.client.getMutationCache().notify({
137
+ type: "observerOptionsUpdated",
138
+ mutation: this.currentMutation,
139
+ observer: this
140
+ }), (n = this.currentMutation) == null || n.setOptions(this.options);
141
+ }
142
+ onUnsubscribe() {
143
+ if (!this.hasListeners()) {
144
+ var t;
145
+ (t = this.currentMutation) == null || t.removeObserver(this);
146
+ }
147
+ }
148
+ onMutationUpdate(t) {
149
+ this.updateResult();
150
+ const n = {
151
+ listeners: true
152
+ };
153
+ t.type === "success" ? n.onSuccess = true : t.type === "error" && (n.onError = true), this.notify(n);
154
+ }
155
+ getCurrentResult() {
156
+ return this.currentResult;
157
+ }
158
+ reset() {
159
+ this.currentMutation = undefined, this.updateResult(), this.notify({
160
+ listeners: true
161
+ });
162
+ }
163
+ mutate(t, n) {
164
+ return this.mutateOptions = n, this.currentMutation && this.currentMutation.removeObserver(this), this.currentMutation = this.client.getMutationCache().build(this.client, L(M({}, this.options), {
165
+ variables: typeof t != "undefined" ? t : this.options.variables
166
+ })), this.currentMutation.addObserver(this), this.currentMutation.execute();
167
+ }
168
+ updateResult() {
169
+ const t = this.currentMutation ? this.currentMutation.state : k2e(), n = t.status === "loading", r = L(M({}, t), {
170
+ isLoading: n,
171
+ isPending: n,
172
+ isSuccess: t.status === "success",
173
+ isError: t.status === "error",
174
+ isIdle: t.status === "idle",
175
+ mutate: this.mutate,
176
+ reset: this.reset
177
+ });
178
+ this.currentResult = r;
179
+ }
180
+ notify(t) {
181
+ Kt.batch(() => {
182
+ if (this.mutateOptions && this.hasListeners()) {
183
+ if (t.onSuccess) {
184
+ var n, r, s, c;
185
+ (n = (r = this.mutateOptions).onSuccess) == null || n.call(r, this.currentResult.data, this.currentResult.variables, this.currentResult.context), (s = (c = this.mutateOptions).onSettled) == null || s.call(c, this.currentResult.data, null, this.currentResult.variables, this.currentResult.context);
186
+ } else if (t.onError) {
187
+ var a, p, d, h;
188
+ (a = (p = this.mutateOptions).onError) == null || a.call(p, this.currentResult.error, this.currentResult.variables, this.currentResult.context), (d = (h = this.mutateOptions).onSettled) == null || d.call(h, undefined, this.currentResult.error, this.currentResult.variables, this.currentResult.context);
189
+ }
190
+ }
191
+ t.listeners && this.listeners.forEach(({
192
+ listener: m
193
+ }) => {
194
+ m(this.currentResult);
195
+ });
196
+ });
197
+ }
198
+ }
199
+ function tt(e, t, n) {
200
+ const r = rwe(e, t), s = H2e({
201
+ context: r.context
202
+ }), [c] = Y.useState(() => new pr(s, r));
203
+ Y.useEffect(() => {
204
+ c.setOptions(r);
205
+ }, [c, r]);
206
+ const a = B2e(Y.useCallback((d) => c.subscribe(Kt.batchCalls(d)), [c]), () => c.getCurrentResult(), () => c.getCurrentResult()), p = Y.useCallback((d, h) => {
207
+ c.mutate(d, h).catch(hr);
208
+ }, [c]);
209
+ if (a.error && q2e(c.options.useErrorBoundary, [a.error]))
210
+ throw a.error;
211
+ return L(M({}, a), {
212
+ mutate: p,
213
+ mutateAsync: a.mutate
214
+ });
215
+ }
216
+ function hr() {}
217
+ var Dt3 = import_react.createContext({});
218
+ var gr2 = () => import_react.useContext(Dt3);
219
+ var At = ({ children: e }) => {
220
+ const [t, n] = import_react.useState({}), r = import_react.useCallback((a, p) => {
221
+ var d;
222
+ return `${a}_${(d = p == null ? undefined : p.dashboardId) != null ? d : ""}`;
223
+ }, []), s = import_react.useCallback((a, p, d) => {
224
+ n((h) => L(M({}, h), {
225
+ [r(p, d)]: a
226
+ }));
227
+ }, [r]), c = import_react.useCallback((a, p) => t[r(a, p)], [t, r]);
228
+ return /* @__PURE__ */ ae(Dt3.Provider, { value: { saveChatId: s, getChatId: c }, children: e });
229
+ };
230
+
231
+ class fr {
232
+ constructor(t, n = false) {
233
+ z(this, "httpClient");
234
+ z(this, "getChatContexts", () => J(this, null, function* () {
235
+ return (yield this.httpClient.get("api/datasources//")) || [];
236
+ }));
237
+ z(this, "getNlgInsights", (t2) => this.httpClient.post("api/v2/ai/nlg/queryResult", t2));
238
+ z(this, "getQueryRecommendations", (t2, n2) => this.httpClient.get(`api/v2/ai/recommendations/query/${t2}/${n2.numOfRecommendations}${n2.userPrompt ? "?userPrompt=" + encodeURIComponent(n2.userPrompt) : ""}`));
239
+ z(this, "getNlqResult", (t2, n2) => this.httpClient.post(`api/v2/ai/nlq/query/${t2}`, n2));
240
+ z(this, "setLlmConfig", (t2) => this.httpClient.post("api/v2/settings/ai/llmProvider", t2).catch((n2) => {
241
+ console.error("Unable to set llm config", n2);
242
+ }));
243
+ z(this, "getAllChats", () => J(this, null, function* () {
244
+ return this.volatile ? [] : this.httpClient.get("api/v2/ai/chats");
245
+ }));
246
+ z(this, "getChatById", (t2) => this.httpClient.get(`api/v2/ai/chats/${t2}`));
247
+ z(this, "createChat", (t2, n2) => this.httpClient.post("api/v2/ai/chats", {
248
+ sourceId: t2,
249
+ volatile: this.volatile,
250
+ contextDetails: n2
251
+ }));
252
+ z(this, "postChat", (t2, n2) => this.httpClient.post(`api/v2/ai/chats/${t2}`, n2));
253
+ z(this, "deleteChatHistory", (t2) => this.httpClient.delete(`api/v2/ai/chats/${t2}/history`));
254
+ z(this, "sendFeedback", (t2) => this.httpClient.post("api/v2/ai/feedback", t2));
255
+ z(this, "ai", {
256
+ getNlgInsights: this.getNlgInsights,
257
+ getNlqResult: this.getNlqResult,
258
+ getQueryRecommendations: this.getQueryRecommendations,
259
+ setLlmConfig: this.setLlmConfig,
260
+ sendFeedback: this.sendFeedback,
261
+ chat: {
262
+ getAll: this.getAllChats,
263
+ getById: this.getChatById,
264
+ create: this.createChat,
265
+ post: this.postChat,
266
+ clearHistory: this.deleteChatHistory
267
+ }
268
+ });
269
+ this.volatile = n, this.httpClient = t;
270
+ }
271
+ }
272
+ var Cr = new nwe({
273
+ defaultOptions: {
274
+ queries: {
275
+ refetchOnWindowFocus: false,
276
+ refetchOnMount: false
277
+ }
278
+ }
279
+ });
280
+ var nt = import_react.createContext(undefined);
281
+ var ee = () => import_react.useContext(nt);
282
+ var mr = ({
283
+ children: e,
284
+ volatile: t
285
+ }) => {
286
+ const { app: n } = It(), r = import_react.useMemo(() => n ? new fr(n.httpClient, t) : undefined, [n, t]);
287
+ return /* @__PURE__ */ ae(nt.Provider, { value: r, children: /* @__PURE__ */ ae(iwe, { client: Cr, children: e }) });
288
+ };
289
+ function _1({ children: e, volatile: t }) {
290
+ return /* @__PURE__ */ ae(At, { children: /* @__PURE__ */ ae(mr, { volatile: t, children: e }) });
291
+ }
292
+ function qt(e) {
293
+ var t, n;
294
+ if ("jaql" in e)
295
+ return e;
296
+ {
297
+ const r = bs(e.dataSource), { filters: s = [], relations: c } = ip(e.filters), { metadata: a, filterRelations: p } = Sh({
298
+ dataSource: e.dataSource,
299
+ attributes: (t = e.dimensions) != null ? t : [],
300
+ measures: (n = e.measures) != null ? n : [],
301
+ filters: s,
302
+ filterRelations: c,
303
+ highlights: []
304
+ }, true), d = {
305
+ jaql: {
306
+ datasource: r,
307
+ metadata: a,
308
+ filterRelations: p
309
+ }
310
+ };
311
+ return e.verbosity && (d.verbosity = e.verbosity), d;
312
+ }
313
+ }
314
+ var He = (e, t = true) => {
315
+ const n = import_react.useMemo(() => qt(e), [e]), r = ee(), { data: s, error: c, isError: a, isLoading: p, isSuccess: d, refetch: h } = awe({
316
+ queryKey: ["getNlgInsights", n, r],
317
+ queryFn: () => r == null ? undefined : r.ai.getNlgInsights(n),
318
+ select: (m) => {
319
+ var x;
320
+ return (x = m == null ? undefined : m.data) == null ? undefined : x.answer;
321
+ },
322
+ enabled: !!r && t
323
+ });
324
+ return {
325
+ isLoading: p,
326
+ isError: a,
327
+ isSuccess: d,
328
+ data: s,
329
+ error: c,
330
+ refetch: import_react.useCallback(() => {
331
+ h();
332
+ }, [h])
333
+ };
334
+ };
335
+ var br = (e) => {
336
+ const r = e, { enabled: t } = r, n = qe2(r, ["enabled"]);
337
+ return He(n, t);
338
+ };
339
+ var K1 = K_e("useGetNlgInsights")(br);
340
+ var yr = [
341
+ "indicator",
342
+ "column",
343
+ "line",
344
+ "table",
345
+ "pie",
346
+ "bar"
347
+ ];
348
+ function zt(e) {
349
+ const { dataSource: t, query: n, chartTypes: r } = e;
350
+ return {
351
+ contextTitle: typeof t == "string" ? t : t.title,
352
+ request: {
353
+ text: n,
354
+ timezone: "UTC",
355
+ chartTypes: r != null ? r : [...yr]
356
+ }
357
+ };
358
+ }
359
+ function xr(e, t) {
360
+ return J(this, null, function* () {
361
+ const { contextTitle: n, request: r } = zt(e), s = yield t.ai.getNlqResult(n, r);
362
+ return {
363
+ widgetProps: s ? Dt(s, {
364
+ useCustomizedStyleOptions: e.enableAxisTitlesInWidgetProps || false
365
+ }) : undefined,
366
+ nlqResult: s
367
+ };
368
+ });
369
+ }
370
+ var vr = (e) => {
371
+ const { contextTitle: t, request: n } = zt(e), r = ee(), s = ["getNlqResult", t, n, r], { isLoading: c, isError: a, isSuccess: p, data: d, error: h, refetch: m } = awe({
372
+ queryKey: s,
373
+ queryFn: () => r ? xr(e, r).then((x) => x.widgetProps) : Promise.reject("No API available"),
374
+ enabled: !!r && e.enabled
375
+ });
376
+ return {
377
+ isLoading: c,
378
+ isError: a,
379
+ isSuccess: p,
380
+ data: d,
381
+ error: h,
382
+ refetch: import_react.useCallback(() => {
383
+ m();
384
+ }, [m])
385
+ };
386
+ };
387
+ var X1 = K_e("useGetNlqResult")(vr);
388
+ var kr = 4;
389
+ var Wt = (e) => {
390
+ const { contextTitle: t, count: n, enableAxisTitlesInWidgetProps: r, enabled: s, customPrompt: c } = e, a = ee(), p = n != null ? n : kr, d = (s === undefined || s === true) && p > 0, {
391
+ isLoading: h,
392
+ isError: m,
393
+ isSuccess: x,
394
+ data: i,
395
+ error: u,
396
+ refetch: l
397
+ } = awe({
398
+ queryKey: ["getQueryRecommendations", t, p, a],
399
+ queryFn: () => a == null ? undefined : a.ai.getQueryRecommendations(t, M({
400
+ numOfRecommendations: p
401
+ }, c ? { userPrompt: c } : null)),
402
+ enabled: !!a && d
403
+ }), f = import_react.useMemo(() => i == null ? undefined : i.map((g) => L(M({}, g), {
404
+ widgetProps: g.jaql ? Dt(g, {
405
+ useCustomizedStyleOptions: r
406
+ }) : undefined
407
+ })), [i, r]);
408
+ return {
409
+ isLoading: d ? h : false,
410
+ isError: m,
411
+ isSuccess: x,
412
+ data: f != null ? f : undefined,
413
+ error: u,
414
+ refetch: import_react.useCallback(() => {
415
+ l();
416
+ }, [l])
417
+ };
418
+ };
419
+ var J1 = K_e("useGetQueryRecommendations")(Wt);
420
+ var Zt = Object.freeze({
421
+ enableFollowupQuestions: false,
422
+ enableHeader: true,
423
+ enableInsights: true,
424
+ numOfRecommendations: 4,
425
+ numOfRecentPrompts: 5
426
+ });
427
+ var jt2 = import_react.createContext(M({}, Zt));
428
+ var ne = () => import_react.useContext(jt2);
429
+ var wr = ({ children: e, value: t }) => {
430
+ const { t: n } = qs(), r = Object.entries(t).reduce((s, [c, a]) => (a !== undefined && (s[c] = a), s), L(M({}, Zt), {
431
+ inputPromptText: n("ai.config.inputPromptText"),
432
+ welcomeText: n("ai.config.welcomeText"),
433
+ suggestionsWelcomeText: n("ai.config.suggestionsWelcomeText")
434
+ }));
435
+ return /* @__PURE__ */ ae(jt2.Provider, { value: r, children: e });
436
+ };
437
+ var rt = "chatHistory";
438
+ var Sr = (e) => {
439
+ const t = ee(), { hideHistory: n } = ne();
440
+ return awe({
441
+ queryKey: [rt, e, t],
442
+ queryFn: () => J(undefined, null, function* () {
443
+ if (!t || !e)
444
+ return;
445
+ if (n)
446
+ return [];
447
+ const r = yield t.ai.chat.getById(e);
448
+ return r == null ? undefined : r.chatHistory;
449
+ }),
450
+ enabled: !!t && !!e
451
+ });
452
+ };
453
+ var Gt = (e) => {
454
+ const t = ee(), n = H2e();
455
+ return tt({
456
+ mutationFn: () => J(undefined, null, function* () {
457
+ if (!(!t || !e))
458
+ return t.ai.chat.clearHistory(e);
459
+ }),
460
+ onError: (r) => {
461
+ console.error("Error when clearing history:", r);
462
+ },
463
+ onSettled: () => {
464
+ e && n.setQueriesData([rt, e], []);
465
+ }
466
+ });
467
+ };
468
+ var ot = (e) => {
469
+ const { data: t, isLoading: n, isError: r } = Sr(e), { mutate: s } = Gt(e);
470
+ return import_react.useEffect(() => {
471
+ r && s();
472
+ }, [r, s]), {
473
+ history: t,
474
+ isLoading: n,
475
+ isError: r
476
+ };
477
+ };
478
+ var Mr = () => {
479
+ const e = ee(), { data: t, isLoading: n, fetchStatus: r } = awe({
480
+ queryKey: ["getDataTopics", e],
481
+ queryFn: () => J(undefined, null, function* () {
482
+ if (e)
483
+ return e.getChatContexts();
484
+ }),
485
+ enabled: !!e
486
+ });
487
+ return { data: t, isLoading: n, fetchStatus: r };
488
+ };
489
+ var Tr = () => {
490
+ const e = ee(), { data: t, isLoading: n } = awe({
491
+ queryKey: ["getAllChats", e],
492
+ queryFn: () => e == null ? undefined : e.ai.chat.getAll(),
493
+ enabled: !!e
494
+ });
495
+ return {
496
+ data: t != null ? t : [],
497
+ isLoading: n
498
+ };
499
+ };
500
+ var $r = (e, t, n) => {
501
+ const r = H2e(), s = ee(), c = tt({
502
+ mutationFn: () => J(undefined, null, function* () {
503
+ if (!(!s || !e))
504
+ return s.ai.chat.create(e, n);
505
+ }),
506
+ onSuccess: () => r.invalidateQueries(["getAllChats"])
507
+ });
508
+ return import_react.useEffect(() => {
509
+ t && c.isIdle && c.mutate();
510
+ }, [t, c]), c;
511
+ };
512
+ var Rr = (e, t) => {
513
+ switch (e.responseType = e.responseType.toLowerCase(), e.responseType) {
514
+ case "nlq":
515
+ return {
516
+ content: JSON.stringify(e.data),
517
+ role: "assistant",
518
+ type: "nlq"
519
+ };
520
+ case "text":
521
+ case "error":
522
+ return {
523
+ content: e.data.answer,
524
+ role: "assistant"
525
+ };
526
+ default:
527
+ throw Error(`${t}${JSON.stringify(e)}`);
528
+ }
529
+ };
530
+ var Lr = (e, t) => {
531
+ const n = H2e(), r = import_react.useCallback((d) => {
532
+ e && n.setQueriesData([rt, e], (h) => h && [...h, d]);
533
+ }, [n, e]), { t: s } = qs(), c = ee(), { mutate: a, isLoading: p } = tt({
534
+ mutationFn: (d) => J(undefined, null, function* () {
535
+ if (!(!c || !e))
536
+ return c.ai.chat.post(e, {
537
+ text: d,
538
+ options: { enableFollowup: t }
539
+ });
540
+ }),
541
+ onMutate: (d) => {
542
+ r({
543
+ content: d,
544
+ role: "user"
545
+ });
546
+ },
547
+ onError: (d) => {
548
+ d instanceof Error && (console.error("Error when sending message:", d.message), r({
549
+ content: s(`ai.errors.${d.interpolationOptions.errorCode}`, {
550
+ defaultValue: s("ai.errors.unexpectedChatResponse")
551
+ }),
552
+ role: "assistant"
553
+ }));
554
+ },
555
+ onSuccess: (d) => {
556
+ if (!d)
557
+ return;
558
+ const h = s("ai.errors.unknownResponse");
559
+ r(Rr(d, h));
560
+ }
561
+ });
562
+ return { mutate: a, isLoading: p };
563
+ };
564
+ var it = (e, t, n = false) => {
565
+ var m;
566
+ const { data: r, isLoading: s } = Tr(), c = gr2(), a = c.getChatId(e, t) || ((m = r.find((x) => {
567
+ var i;
568
+ return x.contextTitle === e && ((i = x.contextDetails) == null ? undefined : i.dashboardId) === (t == null ? undefined : t.dashboardId);
569
+ })) == null ? undefined : m.chatId), { isError: p, data: d, isSuccess: h } = $r(e, n && !s && !a, t);
570
+ return import_react.useEffect(() => {
571
+ h && d && !a && c.saveChatId(d.chatId, e, t);
572
+ }, [d, h, e, t, a, c]), { chatId: a, isLoading: s, isError: p };
573
+ };
574
+ var Vt = (e) => import_react.useMemo(() => {
575
+ if (e != null && e.length) {
576
+ const t = e[e.length - 1];
577
+ if (st(t))
578
+ return JSON.parse(t.content);
579
+ }
580
+ return null;
581
+ }, [e]);
582
+ var st = (e) => !!e && ("type" in e) && e.type === "nlq";
583
+ var Er = (e) => !!e && ("type" in e) && e.type === "text";
584
+ var Ir = (e, t) => {
585
+ const { t: n } = qs(), { enableFollowupQuestions: r } = ne(), { chatId: s, isError: c } = it(e, t, true), [a, p] = import_react.useState(null), { history: d, isLoading: h, isError: m } = ot(s);
586
+ import_react.useEffect(() => {
587
+ c ? p(new Lt("ai.errors.chatUnavailable")) : m && p(new Lt("ai.errors.fetchHistory"));
588
+ }, [c, m, n]);
589
+ const { mutate: x, isLoading: i } = Lr(s, r), u = Vt(d);
590
+ return {
591
+ chatId: s,
592
+ history: d != null ? d : [],
593
+ lastNlqResponse: u,
594
+ sendMessage: x,
595
+ isAwaitingResponse: i,
596
+ isLoading: h,
597
+ lastError: a
598
+ };
599
+ };
600
+ var Y1 = ({
601
+ contextTitle: e,
602
+ contextDetails: t
603
+ }) => {
604
+ const { chatId: n } = it(e, t), { history: r } = ot(n);
605
+ return Vt(r);
606
+ };
607
+ var es = ({
608
+ contextTitle: e,
609
+ contextDetails: t
610
+ }) => {
611
+ const { chatId: n } = it(e, t), { history: r } = ot(n);
612
+ return import_react.useMemo(() => {
613
+ if (r != null && r.length) {
614
+ const s = r.slice().reverse().find(st);
615
+ if (s)
616
+ return JSON.parse(s.content);
617
+ }
618
+ return null;
619
+ }, [r]);
620
+ };
621
+ var Nr = 500;
622
+ var Pr = 500;
623
+ var Br = 500;
624
+ var Fr = 900;
625
+ var Hr = nr.div`
626
+ box-sizing: border-box;
627
+ position: relative;
628
+ display: flex;
629
+ flex-direction: column;
630
+ border: 1px solid #c6c9ce;
631
+ border-radius: ${({ theme: e }) => e.aiChat.borderRadius};
632
+ background-color: ${({ theme: e }) => e.aiChat.backgroundColor};
633
+ overflow: hidden;
634
+
635
+ min-width: ${Nr}px;
636
+ min-height: ${Pr}px;
637
+ width: ${({ width: e }) => e ? mt(e) : `${Br}px`};
638
+ height: ${({ height: e }) => e ? mt(e) : `${Fr}px`};
639
+
640
+ ${({ theme: e }) => wg`
641
+ font-size: ${e.aiChat.primaryFontSize[0]};
642
+ line-height: ${e.aiChat.primaryFontSize[1]};
643
+ `}
644
+ border: ${({ theme: e }) => e.aiChat.border === false ? "none" : e.aiChat.border};
645
+ `;
646
+ function mt(e) {
647
+ return typeof e == "number" ? `${e}px` : e;
648
+ }
649
+ function Or({ spin: e }) {
650
+ return /* @__PURE__ */ yi("svg", {
651
+ xmlns: "http://www.w3.org/2000/svg",
652
+ width: "24",
653
+ height: "24",
654
+ viewBox: "0 0 24 24",
655
+ fill: "none",
656
+ className: `${e ? "csdk-animate-spin" : ""}`,
657
+ children: [
658
+ /* @__PURE__ */ ae("path", {
659
+ fillRule: "evenodd",
660
+ clipRule: "evenodd",
661
+ d: "M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",
662
+ fill: "#262E3D",
663
+ fillOpacity: "0.3"
664
+ }),
665
+ /* @__PURE__ */ ae("path", {
666
+ fillRule: "evenodd",
667
+ clipRule: "evenodd",
668
+ d: "M20 12C20 16.4183 16.4183 20 12 20C11.2844 20 10.5908 19.906 9.93078 19.7298C9.96227 19.5889 9.97888 19.4423 9.97888 19.2918C9.97888 18.1873 9.08345 17.2918 7.97888 17.2918C6.87431 17.2918 5.97888 18.1873 5.97888 19.2918C5.97888 20.3964 6.87431 21.2918 7.97888 21.2918C8.56576 21.2918 9.0936 21.0391 9.45946 20.6364C10.2652 20.8731 11.1178 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3V4C16.4183 4 20 7.58172 20 12Z",
669
+ fill: "#22C3C3"
670
+ })
671
+ ]
672
+ });
673
+ }
674
+ function Oe() {
675
+ return /* @__PURE__ */ ae("div", { className: "csdk-m-auto", "aria-label": "loading spinner", children: /* @__PURE__ */ ae(Or, { spin: true }) });
676
+ }
677
+ var Dr = nr.div`
678
+ text-align: center;
679
+ font-size: 11px;
680
+ line-height: 18px;
681
+ white-space: pre-wrap;
682
+
683
+ display: flex;
684
+ flex-wrap: wrap;
685
+ align-items: center;
686
+ justify-content: center;
687
+ box-sizing: border-box;
688
+
689
+ color: ${({ theme: e }) => e.aiChat.secondaryTextColor};
690
+ `;
691
+ function Ar({ theme: e }) {
692
+ const { t } = qs();
693
+ return /* @__PURE__ */ yi(Dr, { theme: e, children: [
694
+ /* @__PURE__ */ ae("div", { children: t("ai.disclaimer.poweredByAi") }),
695
+ /* @__PURE__ */ yi("div", { children: [
696
+ " ",
697
+ t("ai.disclaimer.rateRequest")
698
+ ] })
699
+ ] });
700
+ }
701
+ var qr = nr.div`
702
+ display: flex;
703
+ flex-direction: column;
704
+ row-gap: 4px;
705
+ `;
706
+ var zr = nr.div`
707
+ font-size: 11px;
708
+ line-height: 18px;
709
+ font-weight: 300;
710
+ color: ${({ theme: e }) => e.aiChat.dropup.headers.textColor};
711
+ cursor: pointer;
712
+ padding: 4px 12px;
713
+ &:hover {
714
+ background-color: ${({ theme: e }) => e.aiChat.dropup.headers.hover.backgroundColor};
715
+ }
716
+ `;
717
+ var Wr = nr.div`
718
+ font-size: ${({ theme: e }) => e.aiChat.primaryFontSize[0]};
719
+ line-height: ${({ theme: e }) => e.aiChat.primaryFontSize[1]};
720
+ color: ${({ theme: e }) => e.aiChat.dropup.items.textColor};
721
+ cursor: pointer;
722
+ padding: 4px 12px;
723
+ &:hover {
724
+ background-color: ${({ theme: e }) => e.aiChat.dropup.items.hover.backgroundColor};
725
+ }
726
+ `;
727
+ function Zr({
728
+ title: e,
729
+ items: t,
730
+ onSelect: n,
731
+ alwaysExpanded: r = false
732
+ }) {
733
+ const [s, c] = import_react.useState(false), { themeSettings: a } = yt();
734
+ return /* @__PURE__ */ yi(qr, { children: [
735
+ /* @__PURE__ */ ae(zr, { onClick: () => c((p) => !p), theme: a, children: e.toUpperCase() }),
736
+ (s || r) && t.map((p, d) => /* @__PURE__ */ ae(Wr, { onClick: () => n(p), theme: a, children: p }, d))
737
+ ] });
738
+ }
739
+ var jr = nr.div`
740
+ font-family: ${({ theme: e }) => e.typography.fontFamily};
741
+ font-size: ${({ theme: e }) => e.aiChat.primaryFontSize[0]};
742
+ line-height: ${({ theme: e }) => e.aiChat.primaryFontSize[1]};
743
+ background-color: ${({ theme: e }) => e.aiChat.dropup.backgroundColor};
744
+ border-radius: ${({ theme: e }) => e.aiChat.dropup.borderRadius};
745
+ box-shadow: ${({ theme: e }) => e.aiChat.dropup.boxShadow};
746
+ padding-top: 8px;
747
+ padding-bottom: 8px;
748
+ display: flex;
749
+ flex-direction: column;
750
+ row-gap: 4px;
751
+ `;
752
+ var Gr = nr.div`
753
+ font-size: ${({ theme: e }) => e.aiChat.primaryFontSize[0]};
754
+ line-height: ${({ theme: e }) => e.aiChat.primaryFontSize[1]};
755
+ color: ${({ theme: e }) => e.aiChat.dropup.items.textColor};
756
+ padding: 4px 12px;
757
+ `;
758
+ var Qe = (e) => e.startsWith("/");
759
+ function Vr({
760
+ recentPrompts: e,
761
+ suggestions: t,
762
+ isLoading: n,
763
+ onSelection: r,
764
+ anchorEl: s,
765
+ text: c,
766
+ recommendationsError: a
767
+ }) {
768
+ const d = [
769
+ {
770
+ title: "/recent searches",
771
+ items: e,
772
+ onSelect: r
773
+ },
774
+ {
775
+ title: "/ai recommendations",
776
+ items: t,
777
+ onSelect: r
778
+ }
779
+ ].filter((i) => i.title.slice(0, c.length) === c), { themeSettings: h } = yt(), { t: m } = qs(), x = d.length === 1;
780
+ return /* @__PURE__ */ ae(mh, {
781
+ open: Qe(c) && d.length > 0,
782
+ anchorEl: s,
783
+ placement: "top-start",
784
+ modifiers: [
785
+ {
786
+ name: "offset",
787
+ options: {
788
+ offset: [0, 4]
789
+ }
790
+ }
791
+ ],
792
+ sx: { zIndex: 3 },
793
+ children: /* @__PURE__ */ yi(jr, { style: { width: s == null ? undefined : s.offsetWidth }, theme: h, children: [
794
+ n && /* @__PURE__ */ ae(Oe, {}),
795
+ !n && !a && d.map((i) => /* @__PURE__ */ ae(Zr, L(M({}, i), { alwaysExpanded: x }), i.title)),
796
+ a && /* @__PURE__ */ ae(Gr, { theme: h, children: m("ai.errors.recommendationsNotAvailable") })
797
+ ] })
798
+ });
799
+ }
800
+ var Ur = 500;
801
+ function Se({ title: e, placement: t = "top", children: n }) {
802
+ const { themeSettings: r } = yt();
803
+ return /* @__PURE__ */ ae(Ov, {
804
+ title: e,
805
+ placement: t,
806
+ disableInteractive: true,
807
+ componentsProps: {
808
+ tooltip: {
809
+ sx: {
810
+ bgcolor: r.aiChat.tooltips.backgroundColor,
811
+ color: r.aiChat.tooltips.textColor,
812
+ paddingX: "16px",
813
+ paddingY: "12px",
814
+ fontSize: "13px",
815
+ fontFamily: r.typography.fontFamily,
816
+ fontWeight: 400,
817
+ borderRadius: "4px",
818
+ boxShadow: r.aiChat.tooltips.boxShadow
819
+ }
820
+ },
821
+ arrow: {
822
+ sx: {
823
+ color: r.aiChat.tooltips.backgroundColor
824
+ }
825
+ }
826
+ },
827
+ arrow: true,
828
+ children: n
829
+ });
830
+ }
831
+ function Qr({ theme: e }) {
832
+ const t = e.aiChat.icons.color;
833
+ return /* @__PURE__ */ yi("svg", { xmlns: "http://www.w3.org/2000/svg", width: "25", height: "25", viewBox: "0 0 25 25", fill: "none", children: [
834
+ /* @__PURE__ */ ae("path", {
835
+ d: "M21.4095 11.1195L12.5644 6.0459C12.3247 5.90841 12.0189 5.99143 11.8816 6.23128L10.764 8.18434C10.6275 8.42284 10.709 8.72678 10.9466 8.86491L19.7108 13.9614C19.9464 14.0984 20.2483 14.0215 20.3897 13.7884L21.5883 11.8125C21.734 11.5723 21.6532 11.2592 21.4095 11.1195Z",
836
+ fill: t
837
+ }),
838
+ /* @__PURE__ */ ae("path", {
839
+ d: "M18.7329 8.60735L16.1048 7.07819L19.6668 0.928042C19.8041 0.6909 20.1068 0.608502 20.3454 0.743288L22.156 1.7661C22.3992 1.90347 22.4827 2.21344 22.3414 2.45438L18.7329 8.60735Z",
840
+ fill: t
841
+ }),
842
+ /* @__PURE__ */ ae("path", {
843
+ d: "M19.8544 14.9048L10.3563 9.43067C10.2184 9.35116 10.0413 9.39515 9.95275 9.52746C7.03423 13.8862 4.07448 15.2337 3.18167 16.0938C3.09276 16.1794 3.08414 16.3141 3.1538 16.416C3.74961 17.2879 5.10497 18.4425 6.05628 19.2048C6.17328 19.2985 6.34145 19.2903 6.44961 19.1865L9.97994 15.7973L7.69329 20.1066C7.61954 20.2456 7.66674 20.4186 7.80041 20.5017C11.6152 22.8708 14.2978 24.0437 16.9604 24.4472C17.1542 24.4766 17.3191 24.3106 17.3033 24.1152C17.007 20.469 19.0807 16.6112 19.8544 14.9048Z",
844
+ fill: t
845
+ })
846
+ ] });
847
+ }
848
+ function _r({ theme: e }) {
849
+ return /* @__PURE__ */ ae("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ ae("path", {
850
+ d: "M4 14L0 10L24 0L14 24L10 20L8.47667 16.9533L19 6.4L20 4.00001L17.6099 5L7.04354 15.5218L4 14Z",
851
+ fill: e.aiChat.icons.color
852
+ }) });
853
+ }
854
+ var Kr = nr.div`
855
+ display: flex;
856
+ flex-direction: row;
857
+ align-items: flex-end;
858
+ justify-content: space-between;
859
+
860
+ background-color: ${({ theme: e }) => e.aiChat.backgroundColor};
861
+ `;
862
+ var Xr = nr.button`
863
+ height: 34px;
864
+ background-color: inherit;
865
+ cursor: pointer;
866
+ border: none;
867
+ `;
868
+ var Jr = nr.textarea`
869
+ font-size: inherit;
870
+ line-height: inherit;
871
+ resize: none;
872
+ overflow-y: auto;
873
+ box-sizing: border-box;
874
+ // size style
875
+ max-height: 88px;
876
+ width: 100%;
877
+ // spacing style
878
+ padding-top: 7px;
879
+ padding-bottom: 7px;
880
+ padding-left: 16px;
881
+ padding-right: 16px;
882
+ margin-left: 10px;
883
+ margin-right: 10px;
884
+ // border style
885
+ border-width: 1px;
886
+ border-color: rgb(38 46 61 / 0.15);
887
+ border-radius: 0.5rem;
888
+ &:focus {
889
+ outline: 1px solid ${({ theme: e }) => e.aiChat.input.focus.outlineColor};
890
+ }
891
+ font-family: inherit;
892
+
893
+ color: ${({ theme: e }) => e.aiChat.primaryTextColor};
894
+
895
+ background-color: ${({ theme: e }) => e.aiChat.input.backgroundColor};
896
+ `;
897
+ var Yr = nr.button`
898
+ height: 34px;
899
+ background-color: inherit;
900
+ border-style: none;
901
+
902
+ color: ${({ theme: e }) => e.aiChat.primaryTextColor};
903
+
904
+ ${({ disabled: e }) => e ? wg`
905
+ opacity: 0.3;
906
+ cursor: not-allowed;
907
+ ` : wg`
908
+ opacity: 1;
909
+ cursor: pointer;
910
+ `}
911
+ `;
912
+ var eo = 34;
913
+ function to({
914
+ onSendMessage: e,
915
+ onClearHistoryClick: t,
916
+ disabled: n,
917
+ recentPrompts: r,
918
+ suggestions: s,
919
+ isLoading: c,
920
+ recommendationsError: a,
921
+ onChange: p
922
+ }) {
923
+ const [d, h] = import_react.useState(""), { inputPromptText: m } = ne(), x = import_react.useCallback(() => {
924
+ if (n)
925
+ return;
926
+ if (Qe(d)) {
927
+ h("");
928
+ return;
929
+ }
930
+ const k = d.trim();
931
+ k.length !== 0 && (e(k), h(""));
932
+ }, [n, e, d]), i = import_react.useCallback((k) => {
933
+ e(k), h("");
934
+ }, [e]), u = import_react.useCallback((k) => {
935
+ k.key === "Enter" ? (k.preventDefault(), x()) : k.key === "Escape" && Qe(d) && h("");
936
+ }, [x, d]), l = import_react.useCallback((k) => {
937
+ p == null || p(k.target.value), h(k.target.value);
938
+ }, [p]), f = import_react.useRef(null);
939
+ import_react.useLayoutEffect(() => {
940
+ f.current && (f.current.style.height = "inherit", f.current.style.height = `${Math.max(f.current.scrollHeight + 2, eo)}px`);
941
+ }, [d]), import_react.useLayoutEffect(() => {
942
+ f.current && f.current.focus({ preventScroll: true });
943
+ }, []);
944
+ const { themeSettings: g } = yt(), { t: y } = qs(), v = import_react.useCallback((k) => {
945
+ var $;
946
+ if (($ = document.getElementById("csdk-chatbot-frame")) != null && $.contains(k.relatedTarget)) {
947
+ const E = (T) => {
948
+ var I;
949
+ document.removeEventListener("mouseup", E), document.removeEventListener("keyup", E), T.type === "mouseup" && ((I = document.getSelection()) == null ? undefined : I.type) !== "Range" && k.target.focus({ preventScroll: true });
950
+ };
951
+ document.addEventListener("mouseup", E), document.addEventListener("keyup", E);
952
+ }
953
+ }, []);
954
+ return /* @__PURE__ */ yi(Kr, { theme: g, children: [
955
+ /* @__PURE__ */ ae(Vr, {
956
+ recentPrompts: r,
957
+ suggestions: s,
958
+ isLoading: c,
959
+ onSelection: i,
960
+ anchorEl: f.current,
961
+ text: d,
962
+ recommendationsError: a
963
+ }),
964
+ t && /* @__PURE__ */ ae(Se, { title: y("ai.buttons.clearChat"), placement: "bottom-start", children: /* @__PURE__ */ ae(Xr, { "aria-label": "clear history", onClick: t, children: /* @__PURE__ */ ae(Qr, { theme: g }) }) }),
965
+ /* @__PURE__ */ ae(Jr, {
966
+ "aria-label": "chat input",
967
+ onBlur: v,
968
+ maxLength: Ur,
969
+ ref: f,
970
+ rows: 1,
971
+ onChange: l,
972
+ spellCheck: "true",
973
+ placeholder: m,
974
+ value: d,
975
+ onKeyDown: u,
976
+ theme: g
977
+ }),
978
+ /* @__PURE__ */ ae(Yr, {
979
+ "aria-label": "send chat message",
980
+ disabled: n || d.length === 0,
981
+ onClick: x,
982
+ theme: g,
983
+ children: /* @__PURE__ */ ae("span", { "data-state": "closed", children: /* @__PURE__ */ ae(_r, { theme: g }) })
984
+ })
985
+ ] });
986
+ }
987
+ var no = nr.div`
988
+ margin: auto;
989
+ display: flex;
990
+ flex-direction: column;
991
+ align-items: center;
992
+ row-gap: 21px;
993
+ `;
994
+ var ro = nr.div`
995
+ color: ${({ theme: e }) => e.aiChat.primaryTextColor};
996
+ text-align: center;
997
+ font-weight: 600;
998
+ `;
999
+ var oo = nr.div`
1000
+ color: rgba(54, 163, 217, 1);
1001
+ cursor: pointer;
1002
+ `;
1003
+ function Ut({ text: e, action: t }) {
1004
+ const { themeSettings: n } = yt();
1005
+ return /* @__PURE__ */ yi(no, { children: [
1006
+ /* @__PURE__ */ ae(ro, { theme: n, children: e }),
1007
+ /* @__PURE__ */ ae(GN, {}),
1008
+ t && /* @__PURE__ */ ae(oo, { onClick: t.onClick, children: t.text })
1009
+ ] });
1010
+ }
1011
+ var io = nr.div`
1012
+ flex: 0 0 80px;
1013
+ padding-left: 14px;
1014
+ padding-right: 14px;
1015
+ display: flex;
1016
+ align-items: center;
1017
+ position: relative;
1018
+
1019
+ background-color: ${({ style: e }) => e.backgroundColor};
1020
+ `;
1021
+ var so = nr.div`
1022
+ font-size: 18px;
1023
+ line-height: 22px;
1024
+ font-weight: 600;
1025
+ margin-left: 20px;
1026
+
1027
+ color: ${({ style: e }) => e.textColor};
1028
+ `;
1029
+ var Qt2 = import_react.forwardRef(function({ title: t, leftNav: n, rightNav: r, style: s }, c) {
1030
+ return /* @__PURE__ */ yi(io, { ref: c, style: s, children: [
1031
+ n,
1032
+ /* @__PURE__ */ ae(so, { style: s, children: t }),
1033
+ r && /* @__PURE__ */ ae("div", { className: "csdk-ml-auto", children: r })
1034
+ ] });
1035
+ });
1036
+ var Le = nr.div`
1037
+ width: 5px;
1038
+ height: 5px;
1039
+ border-radius: 50%;
1040
+ background-color: ${(e) => e.color};
1041
+ animation: hop 0.9s ease-out infinite;
1042
+
1043
+ &:nth-of-type(2) {
1044
+ animation-delay: 0.1s;
1045
+ }
1046
+
1047
+ &:nth-of-type(3) {
1048
+ animation-delay: 0.2s;
1049
+ }
1050
+
1051
+ &:nth-of-type(4) {
1052
+ animation-delay: 0.3s;
1053
+ }
1054
+
1055
+ @keyframes hop {
1056
+ 0%,
1057
+ 40% {
1058
+ transform: translateY(0);
1059
+ }
1060
+ 20% {
1061
+ transform: translateY(-100%);
1062
+ }
1063
+ }
1064
+ `;
1065
+ function at() {
1066
+ const { themeSettings: e } = yt(), t = e.aiChat.icons.color;
1067
+ return /* @__PURE__ */ yi("div", {
1068
+ className: "csdk-flex csdk-justify-between csdk-w-[28px] csdk-py-[14.5px]",
1069
+ "aria-label": "loading dots",
1070
+ children: [
1071
+ /* @__PURE__ */ ae(Le, { color: t }),
1072
+ /* @__PURE__ */ ae(Le, { color: t }),
1073
+ /* @__PURE__ */ ae(Le, { color: t }),
1074
+ /* @__PURE__ */ ae(Le, { color: t })
1075
+ ]
1076
+ });
1077
+ }
1078
+ function le() {
1079
+ return le = Object.assign ? Object.assign.bind() : function(e) {
1080
+ for (var t = 1;t < arguments.length; t++) {
1081
+ var n = arguments[t];
1082
+ for (var r in n)
1083
+ Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
1084
+ }
1085
+ return e;
1086
+ }, le.apply(this, arguments);
1087
+ }
1088
+ var ao = ["children", "options"];
1089
+ var b2 = { blockQuote: "0", breakLine: "1", breakThematic: "2", codeBlock: "3", codeFenced: "4", codeInline: "5", footnote: "6", footnoteReference: "7", gfmTask: "8", heading: "9", headingSetext: "10", htmlBlock: "11", htmlComment: "12", htmlSelfClosing: "13", image: "14", link: "15", linkAngleBraceStyleDetector: "16", linkBareUrlDetector: "17", linkMailtoDetector: "18", newlineCoalescer: "19", orderedList: "20", paragraph: "21", ref: "22", refImage: "23", refLink: "24", table: "25", tableSeparator: "26", text: "27", textBolded: "28", textEmphasized: "29", textEscaped: "30", textMarked: "31", textStrikethroughed: "32", unorderedList: "33" };
1090
+ var bt;
1091
+ (function(e) {
1092
+ e[e.MAX = 0] = "MAX", e[e.HIGH = 1] = "HIGH", e[e.MED = 2] = "MED", e[e.LOW = 3] = "LOW", e[e.MIN = 4] = "MIN";
1093
+ })(bt || (bt = {}));
1094
+ var yt2 = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((e, t) => (e[t.toLowerCase()] = t, e), { class: "className", for: "htmlFor" });
1095
+ var xt = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" };
1096
+ var lo = ["style", "script"];
1097
+ var co = ["src", "href", "data", "formAction", "srcDoc", "action"];
1098
+ var uo = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi;
1099
+ var po = /mailto:/i;
1100
+ var ho = /\n{2,}$/;
1101
+ var _t = /^(\s*>[\s\S]*?)(?=\n\n|$)/;
1102
+ var go = /^ *> ?/gm;
1103
+ var fo = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/;
1104
+ var Co = /^ {2,}\n/;
1105
+ var mo = /^(?:( *[-*_])){3,} *(?:\n *)+\n/;
1106
+ var Kt2 = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/;
1107
+ var Xt = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/;
1108
+ var bo = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/;
1109
+ var yo = /^(?:\n *)*\n/;
1110
+ var xo = /\r\n?/g;
1111
+ var vo = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/;
1112
+ var ko = /^\[\^([^\]]+)]/;
1113
+ var wo = /\f/g;
1114
+ var So = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/;
1115
+ var Mo = /^\s*?\[(x|\s)\]/;
1116
+ var Jt = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/;
1117
+ var Yt = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/;
1118
+ var en = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/;
1119
+ var _e = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i;
1120
+ var To = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi;
1121
+ var tn = /^<!--[\s\S]*?(?:-->)/;
1122
+ var $o = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/;
1123
+ var Ke = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i;
1124
+ var Ro = /^\{.*\}$/;
1125
+ var Lo = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/;
1126
+ var Eo = /^<([^ >]+@[^ >]+)>/;
1127
+ var Io = /^<([^ >]+:\/[^ >]+)>/;
1128
+ var No = /-([a-z])?/gi;
1129
+ var nn = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/;
1130
+ var Po = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/;
1131
+ var Bo = /^!\[([^\]]*)\] ?\[([^\]]*)\]/;
1132
+ var Fo = /^\[([^\]]*)\] ?\[([^\]]*)\]/;
1133
+ var Ho = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/;
1134
+ var Oo = /\t/g;
1135
+ var Do = /(^ *\||\| *$)/g;
1136
+ var Ao = /^ *:-+: *$/;
1137
+ var qo = /^ *:-+ *$/;
1138
+ var zo = /^ *-+: *$/;
1139
+ var De2 = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)";
1140
+ var Wo = new RegExp(`^([*_])\\1${De2}\\1\\1(?!\\1)`);
1141
+ var Zo = new RegExp(`^([*_])${De2}\\1(?!\\1)`);
1142
+ var jo = new RegExp(`^(==)${De2}\\1`);
1143
+ var Go = new RegExp(`^(~~)${De2}\\1`);
1144
+ var Vo = /^\\([^0-9A-Za-z\s])/;
1145
+ var vt = /\\([^0-9A-Za-z\s])/g;
1146
+ var Uo = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/;
1147
+ var Qo = /^\n+/;
1148
+ var _o = /^([ \t]*)/;
1149
+ var Ko = /\\([^\\])/g;
1150
+ var Xo = /(?:^|\n)( *)$/;
1151
+ var lt = "(?:\\d+\\.)";
1152
+ var ct = "(?:[*+-])";
1153
+ function rn(e) {
1154
+ return "( *)(" + (e === 1 ? lt : ct) + ") +";
1155
+ }
1156
+ var on = rn(1);
1157
+ var sn = rn(2);
1158
+ function an(e) {
1159
+ return new RegExp("^" + (e === 1 ? on : sn));
1160
+ }
1161
+ var Jo = an(1);
1162
+ var Yo = an(2);
1163
+ function ln(e) {
1164
+ return new RegExp("^" + (e === 1 ? on : sn) + "[^\\n]*(?:\\n(?!\\1" + (e === 1 ? lt : ct) + " )[^\\n]*)*(\\n|$)", "gm");
1165
+ }
1166
+ var ei = ln(1);
1167
+ var ti = ln(2);
1168
+ function cn2(e) {
1169
+ const t = e === 1 ? lt : ct;
1170
+ return new RegExp("^( *)(" + t + ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + t + " (?!" + t + " ))\\n*|\\s*\\n*$)");
1171
+ }
1172
+ var dn = cn2(1);
1173
+ var un = cn2(2);
1174
+ function kt(e, t) {
1175
+ const n = t === 1, r = n ? dn : un, s = n ? ei : ti, c = n ? Jo : Yo;
1176
+ return { match: ge(function(a, p) {
1177
+ const d = Xo.exec(p.prevCapture);
1178
+ return d && (p.list || !p.inline && !p.simple) ? r.exec(a = d[1] + a) : null;
1179
+ }), order: 1, parse(a, p, d) {
1180
+ const h = n ? +a[2] : undefined, m = a[0].replace(ho, `
1181
+ `).match(s);
1182
+ let x = false;
1183
+ return { items: m.map(function(i, u) {
1184
+ const l = c.exec(i)[0].length, f = new RegExp("^ {1," + l + "}", "gm"), g = i.replace(f, "").replace(c, ""), y = u === m.length - 1, v = g.indexOf(`
1185
+
1186
+ `) !== -1 || y && x;
1187
+ x = v;
1188
+ const { inline: k, list: $ } = d;
1189
+ let E;
1190
+ d.list = true, v ? (d.inline = false, E = ve(g) + `
1191
+
1192
+ `) : (d.inline = true, E = ve(g));
1193
+ const T = p(E, d);
1194
+ return d.inline = k, d.list = $, T;
1195
+ }), ordered: n, start: h };
1196
+ }, render: (a, p, d) => e(a.ordered ? "ol" : "ul", { key: d.key, start: a.type === b2.orderedList ? a.start : undefined }, a.items.map(function(h, m) {
1197
+ return e("li", { key: m }, p(h, d));
1198
+ })) };
1199
+ }
1200
+ var ni = new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`);
1201
+ var ri = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;
1202
+ var pn = [_t, Kt2, Xt, Jt, en, Yt, nn, dn, un];
1203
+ var oi = [...pn, /^[^\n]+(?: \n|\n{2,})/, _e, tn, Ke];
1204
+ function ve(e) {
1205
+ let t = e.length;
1206
+ for (;t > 0 && e[t - 1] <= " "; )
1207
+ t--;
1208
+ return e.slice(0, t);
1209
+ }
1210
+ function be(e) {
1211
+ return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a").replace(/[çÇ]/g, "c").replace(/[ðÐ]/g, "d").replace(/[ÈÉÊËéèêë]/g, "e").replace(/[ÏïÎîÍíÌì]/g, "i").replace(/[Ññ]/g, "n").replace(/[øØœŒÕõÔôÓóÒò]/g, "o").replace(/[ÜüÛûÚúÙù]/g, "u").replace(/[ŸÿÝý]/g, "y").replace(/[^a-z0-9- ]/gi, "").replace(/ /gi, "-").toLowerCase();
1212
+ }
1213
+ function ii(e) {
1214
+ return zo.test(e) ? "right" : Ao.test(e) ? "center" : qo.test(e) ? "left" : null;
1215
+ }
1216
+ function wt(e, t, n, r) {
1217
+ const s = n.inTable;
1218
+ n.inTable = true;
1219
+ let c = [[]], a = "";
1220
+ function p() {
1221
+ if (!a)
1222
+ return;
1223
+ const d = c[c.length - 1];
1224
+ d.push.apply(d, t(a, n)), a = "";
1225
+ }
1226
+ return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((d, h, m) => {
1227
+ d.trim() === "|" && (p(), r) ? h !== 0 && h !== m.length - 1 && c.push([]) : a += d;
1228
+ }), p(), n.inTable = s, c;
1229
+ }
1230
+ function si(e, t, n) {
1231
+ n.inline = true;
1232
+ const r = e[2] ? e[2].replace(Do, "").split("|").map(ii) : [], s = e[3] ? function(a, p, d) {
1233
+ return a.trim().split(`
1234
+ `).map(function(h) {
1235
+ return wt(h, p, d, true);
1236
+ });
1237
+ }(e[3], t, n) : [], c = wt(e[1], t, n, !!s.length);
1238
+ return n.inline = false, s.length ? { align: r, cells: s, header: c, type: b2.table } : { children: c, type: b2.paragraph };
1239
+ }
1240
+ function St(e, t) {
1241
+ return e.align[t] == null ? {} : { textAlign: e.align[t] };
1242
+ }
1243
+ function ge(e) {
1244
+ return e.inline = 1, e;
1245
+ }
1246
+ function oe(e) {
1247
+ return ge(function(t, n) {
1248
+ return n.inline ? e.exec(t) : null;
1249
+ });
1250
+ }
1251
+ function ie(e) {
1252
+ return ge(function(t, n) {
1253
+ return n.inline || n.simple ? e.exec(t) : null;
1254
+ });
1255
+ }
1256
+ function te2(e) {
1257
+ return function(t, n) {
1258
+ return n.inline || n.simple ? null : e.exec(t);
1259
+ };
1260
+ }
1261
+ function ye(e) {
1262
+ return ge(function(t) {
1263
+ return e.exec(t);
1264
+ });
1265
+ }
1266
+ function ai(e, t) {
1267
+ if (t.inline || t.simple)
1268
+ return null;
1269
+ let n = "";
1270
+ e.split(`
1271
+ `).every((s) => (s += `
1272
+ `, !pn.some((c) => c.test(s)) && (n += s, !!s.trim())));
1273
+ const r = ve(n);
1274
+ return r == "" ? null : [n, , r];
1275
+ }
1276
+ var li = /(javascript|vbscript|data(?!:image)):/i;
1277
+ function ci(e) {
1278
+ try {
1279
+ const t = decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g, "");
1280
+ if (li.test(t))
1281
+ return null;
1282
+ } catch (t) {
1283
+ return null;
1284
+ }
1285
+ return e;
1286
+ }
1287
+ function Mt2(e) {
1288
+ return e.replace(Ko, "$1");
1289
+ }
1290
+ function Ee(e, t, n) {
1291
+ const r = n.inline || false, s = n.simple || false;
1292
+ n.inline = true, n.simple = true;
1293
+ const c = e(t, n);
1294
+ return n.inline = r, n.simple = s, c;
1295
+ }
1296
+ function di(e, t, n) {
1297
+ const r = n.inline || false, s = n.simple || false;
1298
+ n.inline = false, n.simple = true;
1299
+ const c = e(t, n);
1300
+ return n.inline = r, n.simple = s, c;
1301
+ }
1302
+ function ui(e, t, n) {
1303
+ const r = n.inline || false;
1304
+ n.inline = false;
1305
+ const s = e(t, n);
1306
+ return n.inline = r, s;
1307
+ }
1308
+ var We = (e, t, n) => ({ children: Ee(t, e[2], n) });
1309
+ function Ze() {
1310
+ return {};
1311
+ }
1312
+ function je() {
1313
+ return null;
1314
+ }
1315
+ function pi(...e) {
1316
+ return e.filter(Boolean).join(" ");
1317
+ }
1318
+ function Ge(e, t, n) {
1319
+ let r = e;
1320
+ const s = t.split(".");
1321
+ for (;s.length && (r = r[s[0]], r !== undefined); )
1322
+ s.shift();
1323
+ return r || n;
1324
+ }
1325
+ function hi(e = "", t = {}) {
1326
+ function n(i, u, ...l) {
1327
+ const f = Ge(t.overrides, `${i}.props`, {});
1328
+ return t.createElement(function(g, y) {
1329
+ const v = Ge(y, g);
1330
+ return v ? typeof v == "function" || typeof v == "object" && "render" in v ? v : Ge(y, `${g}.component`, g) : g;
1331
+ }(i, t.overrides), le({}, u, f, { className: pi(u == null ? undefined : u.className, f.className) || undefined }), ...l);
1332
+ }
1333
+ function r(i) {
1334
+ i = i.replace(So, "");
1335
+ let u = false;
1336
+ t.forceInline ? u = true : t.forceBlock || (u = Ho.test(i) === false);
1337
+ const l = h(d(u ? i : `${ve(i).replace(Qo, "")}
1338
+
1339
+ `, { inline: u }));
1340
+ for (;typeof l[l.length - 1] == "string" && !l[l.length - 1].trim(); )
1341
+ l.pop();
1342
+ if (t.wrapper === null)
1343
+ return l;
1344
+ const f = t.wrapper || (u ? "span" : "div");
1345
+ let g;
1346
+ if (l.length > 1 || t.forceWrapper)
1347
+ g = l;
1348
+ else {
1349
+ if (l.length === 1)
1350
+ return g = l[0], typeof g == "string" ? n("span", { key: "outer" }, g) : g;
1351
+ g = null;
1352
+ }
1353
+ return t.createElement(f, { key: "outer" }, g);
1354
+ }
1355
+ function s(i, u) {
1356
+ const l = u.match(uo);
1357
+ return l ? l.reduce(function(f, g) {
1358
+ const y = g.indexOf("=");
1359
+ if (y !== -1) {
1360
+ const v = function(T) {
1361
+ return T.indexOf("-") !== -1 && T.match($o) === null && (T = T.replace(No, function(I, H) {
1362
+ return H.toUpperCase();
1363
+ })), T;
1364
+ }(g.slice(0, y)).trim(), k = function(T) {
1365
+ const I = T[0];
1366
+ return (I === '"' || I === "'") && T.length >= 2 && T[T.length - 1] === I ? T.slice(1, -1) : T;
1367
+ }(g.slice(y + 1).trim()), $ = yt2[v] || v;
1368
+ if ($ === "ref")
1369
+ return f;
1370
+ const E = f[$] = function(T, I, H, ae2) {
1371
+ return I === "style" ? function(Q) {
1372
+ const j = [];
1373
+ let W = "", V = false, N = false, _ = "";
1374
+ if (!Q)
1375
+ return j;
1376
+ for (let U = 0;U < Q.length; U++) {
1377
+ const D = Q[U];
1378
+ if (D !== '"' && D !== "'" || V || (N ? D === _ && (N = false, _ = "") : (N = true, _ = D)), D === "(" && W.endsWith("url") ? V = true : D === ")" && V && (V = false), D !== ";" || N || V)
1379
+ W += D;
1380
+ else {
1381
+ const G = W.trim();
1382
+ if (G) {
1383
+ const re = G.indexOf(":");
1384
+ if (re > 0) {
1385
+ const ce = G.slice(0, re).trim(), de = G.slice(re + 1).trim();
1386
+ j.push([ce, de]);
1387
+ }
1388
+ }
1389
+ W = "";
1390
+ }
1391
+ }
1392
+ const K = W.trim();
1393
+ if (K) {
1394
+ const U = K.indexOf(":");
1395
+ if (U > 0) {
1396
+ const D = K.slice(0, U).trim(), G = K.slice(U + 1).trim();
1397
+ j.push([D, G]);
1398
+ }
1399
+ }
1400
+ return j;
1401
+ }(H).reduce(function(Q, [j, W]) {
1402
+ return Q[j.replace(/(-[a-z])/g, (V) => V[1].toUpperCase())] = ae2(W, T, j), Q;
1403
+ }, {}) : co.indexOf(I) !== -1 ? ae2(H, T, I) : (H.match(Ro) && (H = H.slice(1, H.length - 1)), H === "true" || H !== "false" && H);
1404
+ }(i, v, k, t.sanitizer);
1405
+ typeof E == "string" && (_e.test(E) || Ke.test(E)) && (f[$] = r(E.trim()));
1406
+ } else
1407
+ g !== "style" && (f[yt2[g] || g] = true);
1408
+ return f;
1409
+ }, {}) : null;
1410
+ }
1411
+ t.overrides = t.overrides || {}, t.sanitizer = t.sanitizer || ci, t.slugify = t.slugify || be, t.namedCodesToUnicode = t.namedCodesToUnicode ? le({}, xt, t.namedCodesToUnicode) : xt, t.createElement = t.createElement || Y.createElement;
1412
+ const c = [], a = {}, p = { [b2.blockQuote]: { match: te2(_t), order: 1, parse(i, u, l) {
1413
+ const [, f, g] = i[0].replace(go, "").match(fo);
1414
+ return { alert: f, children: u(g, l) };
1415
+ }, render(i, u, l) {
1416
+ const f = { key: l.key };
1417
+ return i.alert && (f.className = "markdown-alert-" + t.slugify(i.alert.toLowerCase(), be), i.children.unshift({ attrs: {}, children: [{ type: b2.text, text: i.alert }], noInnerParse: true, type: b2.htmlBlock, tag: "header" })), n("blockquote", f, u(i.children, l));
1418
+ } }, [b2.breakLine]: { match: ye(Co), order: 1, parse: Ze, render: (i, u, l) => n("br", { key: l.key }) }, [b2.breakThematic]: { match: te2(mo), order: 1, parse: Ze, render: (i, u, l) => n("hr", { key: l.key }) }, [b2.codeBlock]: { match: te2(Xt), order: 0, parse: (i) => ({ lang: undefined, text: ve(i[0].replace(/^ {4}/gm, "")).replace(vt, "$1") }), render: (i, u, l) => n("pre", { key: l.key }, n("code", le({}, i.attrs, { className: i.lang ? `lang-${i.lang}` : "" }), i.text)) }, [b2.codeFenced]: { match: te2(Kt2), order: 0, parse: (i) => ({ attrs: s("code", i[3] || ""), lang: i[2] || undefined, text: i[4], type: b2.codeBlock }) }, [b2.codeInline]: { match: ie(bo), order: 3, parse: (i) => ({ text: i[2].replace(vt, "$1") }), render: (i, u, l) => n("code", { key: l.key }, i.text) }, [b2.footnote]: { match: te2(vo), order: 0, parse: (i) => (c.push({ footnote: i[2], identifier: i[1] }), {}), render: je }, [b2.footnoteReference]: { match: oe(ko), order: 1, parse: (i) => ({ target: `#${t.slugify(i[1], be)}`, text: i[1] }), render: (i, u, l) => n("a", { key: l.key, href: t.sanitizer(i.target, "a", "href") }, n("sup", { key: l.key }, i.text)) }, [b2.gfmTask]: { match: oe(Mo), order: 1, parse: (i) => ({ completed: i[1].toLowerCase() === "x" }), render: (i, u, l) => n("input", { checked: i.completed, key: l.key, readOnly: true, type: "checkbox" }) }, [b2.heading]: { match: te2(t.enforceAtxHeadings ? Yt : Jt), order: 1, parse: (i, u, l) => ({ children: Ee(u, i[2], l), id: t.slugify(i[2], be), level: i[1].length }), render: (i, u, l) => n(`h${i.level}`, { id: i.id, key: l.key }, u(i.children, l)) }, [b2.headingSetext]: { match: te2(en), order: 0, parse: (i, u, l) => ({ children: Ee(u, i[1], l), level: i[2] === "=" ? 1 : 2, type: b2.heading }) }, [b2.htmlBlock]: { match: ye(_e), order: 1, parse(i, u, l) {
1419
+ const [, f] = i[3].match(_o), g = new RegExp(`^${f}`, "gm"), y = i[3].replace(g, ""), v = (k = y, oi.some((H) => H.test(k)) ? ui : Ee);
1420
+ var k;
1421
+ const $ = i[1].toLowerCase(), E = lo.indexOf($) !== -1, T = (E ? $ : i[1]).trim(), I = { attrs: s(T, i[2]), noInnerParse: E, tag: T };
1422
+ return l.inAnchor = l.inAnchor || $ === "a", E ? I.text = i[3] : I.children = v(u, y, l), l.inAnchor = false, I;
1423
+ }, render: (i, u, l) => n(i.tag, le({ key: l.key }, i.attrs), i.text || (i.children ? u(i.children, l) : "")) }, [b2.htmlSelfClosing]: { match: ye(Ke), order: 1, parse(i) {
1424
+ const u = i[1].trim();
1425
+ return { attrs: s(u, i[2] || ""), tag: u };
1426
+ }, render: (i, u, l) => n(i.tag, le({}, i.attrs, { key: l.key })) }, [b2.htmlComment]: { match: ye(tn), order: 1, parse: () => ({}), render: je }, [b2.image]: { match: ie(ri), order: 1, parse: (i) => ({ alt: i[1], target: Mt2(i[2]), title: i[3] }), render: (i, u, l) => n("img", { key: l.key, alt: i.alt || undefined, title: i.title || undefined, src: t.sanitizer(i.target, "img", "src") }) }, [b2.link]: { match: oe(ni), order: 3, parse: (i, u, l) => ({ children: di(u, i[1], l), target: Mt2(i[2]), title: i[3] }), render: (i, u, l) => n("a", { key: l.key, href: t.sanitizer(i.target, "a", "href"), title: i.title }, u(i.children, l)) }, [b2.linkAngleBraceStyleDetector]: { match: oe(Io), order: 0, parse: (i) => ({ children: [{ text: i[1], type: b2.text }], target: i[1], type: b2.link }) }, [b2.linkBareUrlDetector]: { match: ge((i, u) => u.inAnchor || t.disableAutoLink ? null : oe(Lo)(i, u)), order: 0, parse: (i) => ({ children: [{ text: i[1], type: b2.text }], target: i[1], title: undefined, type: b2.link }) }, [b2.linkMailtoDetector]: { match: oe(Eo), order: 0, parse(i) {
1427
+ let u = i[1], l = i[1];
1428
+ return po.test(l) || (l = "mailto:" + l), { children: [{ text: u.replace("mailto:", ""), type: b2.text }], target: l, type: b2.link };
1429
+ } }, [b2.orderedList]: kt(n, 1), [b2.unorderedList]: kt(n, 2), [b2.newlineCoalescer]: { match: te2(yo), order: 3, parse: Ze, render: () => `
1430
+ ` }, [b2.paragraph]: { match: ge(ai), order: 3, parse: We, render: (i, u, l) => n("p", { key: l.key }, u(i.children, l)) }, [b2.ref]: { match: oe(Po), order: 0, parse: (i) => (a[i[1]] = { target: i[2], title: i[4] }, {}), render: je }, [b2.refImage]: { match: ie(Bo), order: 0, parse: (i) => ({ alt: i[1] || undefined, ref: i[2] }), render: (i, u, l) => a[i.ref] ? n("img", { key: l.key, alt: i.alt, src: t.sanitizer(a[i.ref].target, "img", "src"), title: a[i.ref].title }) : null }, [b2.refLink]: { match: oe(Fo), order: 0, parse: (i, u, l) => ({ children: u(i[1], l), fallbackChildren: i[0], ref: i[2] }), render: (i, u, l) => a[i.ref] ? n("a", { key: l.key, href: t.sanitizer(a[i.ref].target, "a", "href"), title: a[i.ref].title }, u(i.children, l)) : n("span", { key: l.key }, i.fallbackChildren) }, [b2.table]: { match: te2(nn), order: 1, parse: si, render(i, u, l) {
1431
+ const f = i;
1432
+ return n("table", { key: l.key }, n("thead", null, n("tr", null, f.header.map(function(g, y) {
1433
+ return n("th", { key: y, style: St(f, y) }, u(g, l));
1434
+ }))), n("tbody", null, f.cells.map(function(g, y) {
1435
+ return n("tr", { key: y }, g.map(function(v, k) {
1436
+ return n("td", { key: k, style: St(f, k) }, u(v, l));
1437
+ }));
1438
+ })));
1439
+ } }, [b2.text]: { match: ye(Uo), order: 4, parse: (i) => ({ text: i[0].replace(To, (u, l) => t.namedCodesToUnicode[l] ? t.namedCodesToUnicode[l] : u) }), render: (i) => i.text }, [b2.textBolded]: { match: ie(Wo), order: 2, parse: (i, u, l) => ({ children: u(i[2], l) }), render: (i, u, l) => n("strong", { key: l.key }, u(i.children, l)) }, [b2.textEmphasized]: { match: ie(Zo), order: 3, parse: (i, u, l) => ({ children: u(i[2], l) }), render: (i, u, l) => n("em", { key: l.key }, u(i.children, l)) }, [b2.textEscaped]: { match: ie(Vo), order: 1, parse: (i) => ({ text: i[1], type: b2.text }) }, [b2.textMarked]: { match: ie(jo), order: 3, parse: We, render: (i, u, l) => n("mark", { key: l.key }, u(i.children, l)) }, [b2.textStrikethroughed]: { match: ie(Go), order: 3, parse: We, render: (i, u, l) => n("del", { key: l.key }, u(i.children, l)) } };
1440
+ t.disableParsingRawHTML === true && (delete p[b2.htmlBlock], delete p[b2.htmlSelfClosing]);
1441
+ const d = function(i) {
1442
+ let u = Object.keys(i);
1443
+ function l(f, g) {
1444
+ let y, v, k = [], $ = "", E = "";
1445
+ for (g.prevCapture = g.prevCapture || "";f; ) {
1446
+ let T = 0;
1447
+ for (;T < u.length; ) {
1448
+ if ($ = u[T], y = i[$], g.inline && !y.match.inline) {
1449
+ T++;
1450
+ continue;
1451
+ }
1452
+ const I = y.match(f, g);
1453
+ if (I) {
1454
+ E = I[0], g.prevCapture += E, f = f.substring(E.length), v = y.parse(I, l, g), v.type == null && (v.type = $), k.push(v);
1455
+ break;
1456
+ }
1457
+ T++;
1458
+ }
1459
+ }
1460
+ return g.prevCapture = "", k;
1461
+ }
1462
+ return u.sort(function(f, g) {
1463
+ let y = i[f].order, v = i[g].order;
1464
+ return y !== v ? y - v : f < g ? -1 : 1;
1465
+ }), function(f, g) {
1466
+ return l(function(y) {
1467
+ return y.replace(xo, `
1468
+ `).replace(wo, "").replace(Oo, " ");
1469
+ }(f), g);
1470
+ };
1471
+ }(p), h = (m = /* @__PURE__ */ function(i, u) {
1472
+ return function(l, f, g) {
1473
+ const y = i[l.type].render;
1474
+ return u ? u(() => y(l, f, g), l, f, g) : y(l, f, g);
1475
+ };
1476
+ }(p, t.renderRule), function i(u, l = {}) {
1477
+ if (Array.isArray(u)) {
1478
+ const f = l.key, g = [];
1479
+ let y = false;
1480
+ for (let v = 0;v < u.length; v++) {
1481
+ l.key = v;
1482
+ const k = i(u[v], l), $ = typeof k == "string";
1483
+ $ && y ? g[g.length - 1] += k : k !== null && g.push(k), y = $;
1484
+ }
1485
+ return l.key = f, g;
1486
+ }
1487
+ return m(u, i, l);
1488
+ });
1489
+ var m;
1490
+ const x = r(e);
1491
+ return c.length ? n("div", null, x, n("footer", { key: "footer" }, c.map(function(i) {
1492
+ return n("div", { id: t.slugify(i.identifier, be), key: i.identifier }, i.identifier, h(d(i.footnote, { inline: true })));
1493
+ }))) : x;
1494
+ }
1495
+ var gi = (e) => {
1496
+ let { children: t = "", options: n } = e, r = function(s, c) {
1497
+ if (s == null)
1498
+ return {};
1499
+ var a, p, d = {}, h = Object.keys(s);
1500
+ for (p = 0;p < h.length; p++)
1501
+ c.indexOf(a = h[p]) >= 0 || (d[a] = s[a]);
1502
+ return d;
1503
+ }(e, ao);
1504
+ return Y.cloneElement(hi(t, n), r);
1505
+ };
1506
+ var fi = nr.div`
1507
+ display: flex;
1508
+
1509
+ ${({ align: e }) => e === "right" ? wg`
1510
+ justify-content: flex-end;
1511
+ ` : wg`
1512
+ justify-content: flex-start;
1513
+ `}
1514
+ `;
1515
+ var hn = nr.div`
1516
+ font-size: inherit;
1517
+ line-height: inherit;
1518
+ padding-top: 8.5px;
1519
+ padding-bottom: 8.5px;
1520
+ padding-left: 0.5rem;
1521
+ padding-right: 0.5rem;
1522
+ white-space: pre-wrap;
1523
+ overflow-wrap: break-word;
1524
+ box-sizing: border-box;
1525
+
1526
+ ${({ align: e }) => e === "right" ? wg`
1527
+ text-align: right;
1528
+ border-radius: 10px 10px 0px 10px;
1529
+ ` : wg`
1530
+ text-align: left;
1531
+ border-radius: 10px 10px 10px 0px;
1532
+ `}
1533
+
1534
+ ${({ align: e }) => e !== "full" ? wg`
1535
+ max-width: 85%;
1536
+ ` : ""}
1537
+
1538
+ color: ${({ theme: e }) => e.aiChat.primaryTextColor};
1539
+ background-color: ${({ theme: e, align: t }) => t === "right" ? e.aiChat.userMessages.backgroundColor : e.aiChat.systemMessages.backgroundColor};
1540
+ `;
1541
+ var se2 = ({ align: e, children: t }) => {
1542
+ const { themeSettings: n } = yt();
1543
+ return /* @__PURE__ */ ae(fi, { theme: n, align: e, children: /* @__PURE__ */ ae(hn, { theme: n, align: e, children: typeof t == "string" ? /* @__PURE__ */ ae(gi, { children: t }) : t }) });
1544
+ };
1545
+ function Ci() {
1546
+ const { welcomeText: e } = ne();
1547
+ return e === false ? null : /* @__PURE__ */ ae(se2, { align: "left", children: e });
1548
+ }
1549
+ var mi = nr.div`
1550
+ display: flex;
1551
+
1552
+ ${({ align: e }) => e === "right" ? wg`
1553
+ justify-content: flex-end;
1554
+ ` : wg`
1555
+ justify-content: flex-start;
1556
+ `}
1557
+ `;
1558
+ var bi = nr.button`
1559
+ font-family: inherit;
1560
+ font-size: inherit;
1561
+ line-height: inherit;
1562
+ border: ${({ theme: e }) => e.aiChat.clickableMessages.border};
1563
+ padding: 0;
1564
+ cursor: pointer;
1565
+
1566
+ color: ${({ theme: e }) => e.aiChat.clickableMessages.textColor};
1567
+ background-color: ${({ theme: e }) => e.aiChat.clickableMessages.backgroundColor};
1568
+ &:hover {
1569
+ color: ${({ theme: e }) => e.aiChat.clickableMessages.hover.textColor};
1570
+ background-color: ${({ theme: e }) => e.aiChat.clickableMessages.hover.backgroundColor};
1571
+ }
1572
+ border-radius: 20px;
1573
+
1574
+ ${({ align: e }) => e === "right" ? wg`
1575
+ text-align: right;
1576
+ ` : wg`
1577
+ text-align: left;
1578
+ `}
1579
+
1580
+ ${({ align: e }) => e !== "full" ? wg`
1581
+ max-width: 382px;
1582
+ ` : ""}
1583
+
1584
+ ${({ theme: e }) => {
1585
+ const { borderGradient: t, borderRadius: n } = e.aiChat.suggestions;
1586
+ if (t) {
1587
+ const [r, s] = t;
1588
+ return wg`
1589
+ border: none;
1590
+ position: relative;
1591
+ border-radius: ${n};
1592
+ &:before {
1593
+ content: '';
1594
+ position: absolute;
1595
+ top: 0;
1596
+ left: 0;
1597
+ right: 0;
1598
+ bottom: 0;
1599
+ border-radius: ${n};
1600
+ border: 1px solid transparent;
1601
+ background: linear-gradient(30deg, ${r}, ${s}) border-box;
1602
+ -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
1603
+ -webkit-mask-composite: destination-out;
1604
+ mask-composite: exclude;
1605
+ }
1606
+ `;
1607
+ }
1608
+ return "";
1609
+ }}
1610
+ `;
1611
+ function Pe({
1612
+ children: e,
1613
+ align: t,
1614
+ onClick: n,
1615
+ onMouseEnter: r,
1616
+ onMouseLeave: s,
1617
+ accessibleName: c
1618
+ }) {
1619
+ const { themeSettings: a } = yt();
1620
+ return /* @__PURE__ */ ae(mi, { align: t, children: /* @__PURE__ */ ae(bi, {
1621
+ "aria-label": c,
1622
+ theme: a,
1623
+ onClick: n,
1624
+ align: t,
1625
+ onMouseEnter: r,
1626
+ onMouseLeave: s,
1627
+ children: e
1628
+ }) });
1629
+ }
1630
+ function yi2({ onCancel: e, onConfirm: t }) {
1631
+ const { t: n } = qs();
1632
+ return /* @__PURE__ */ yi(Rc, { children: [
1633
+ /* @__PURE__ */ ae(se2, { align: "left", children: n("ai.clearHistoryPrompt") }),
1634
+ /* @__PURE__ */ yi("div", { className: "csdk-flex csdk-gap-x-2", children: [
1635
+ /* @__PURE__ */ ae(Pe, { align: "right", onClick: t, accessibleName: "confirm clear chat", children: /* @__PURE__ */ ae("div", { className: "csdk-py-[6px] csdk-px-[20px]", children: n("ai.buttons.yes") }) }),
1636
+ /* @__PURE__ */ ae(Pe, { align: "right", onClick: e, accessibleName: "cancel clear chat", children: /* @__PURE__ */ ae("div", { className: "csdk-py-[6px] csdk-px-[20px]", children: n("ai.buttons.no") }) })
1637
+ ] })
1638
+ ] });
1639
+ }
1640
+ var xi = Lye("toLowerCase");
1641
+ function vi() {
1642
+ const { themeSettings: e } = yt();
1643
+ return /* @__PURE__ */ ae("svg", { width: "24", height: "25", viewBox: "0 0 24 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ ae("path", {
1644
+ fillRule: "evenodd",
1645
+ clipRule: "evenodd",
1646
+ d: "M11.5 3.5C11.2239 3.5 11 3.72386 11 4V5C11 5.27614 11.2239 5.5 11.5 5.5C11.7761 5.5 12 5.27614 12 5V4C12 3.72386 11.7761 3.5 11.5 3.5ZM20 11C20 10.7239 19.7761 10.5 19.5 10.5H18.5C18.2239 10.5 18 10.7239 18 11C18 11.2761 18.2239 11.5 18.5 11.5H19.5C19.7761 11.5 20 11.2761 20 11ZM6.06066 5.35355C5.8654 5.15829 5.54882 5.15829 5.35355 5.35355C5.15829 5.54882 5.15829 5.8654 5.35355 6.06066L6.06066 6.76777C6.25592 6.96303 6.5725 6.96303 6.76777 6.76777C6.96303 6.5725 6.96303 6.25592 6.76777 6.06066L6.06066 5.35355ZM5 11C5 10.7239 4.77614 10.5 4.5 10.5H3.5C3.22386 10.5 3 10.7239 3 11C3 11.2761 3.22386 11.5 3.5 11.5H4.5C4.77614 11.5 5 11.2761 5 11ZM17.7678 6.06066C17.963 5.8654 17.963 5.54882 17.7678 5.35355C17.5725 5.15829 17.2559 5.15829 17.0607 5.35355L16.3536 6.06066C16.1583 6.25592 16.1583 6.5725 16.3536 6.76777C16.5488 6.96303 16.8654 6.96303 17.0607 6.76777L17.7678 6.06066ZM12.1443 6.53487C14.6635 6.81824 16.6511 8.67684 16.9597 11.0379C17.1678 12.6385 16.5623 14.2379 15.3244 15.3575C14.5049 16.1022 14.0038 17.2023 14 18.2722V19.5H9V18.2753C8.98626 17.1847 8.46545 16.0683 7.62521 15.3139C6.04513 13.8436 5.56667 11.6251 6.41329 9.69484C7.25992 7.76454 9.26456 6.50321 11.4909 6.5C11.7093 6.50004 11.9274 6.51167 12.1443 6.53487ZM11.4927 7.5C9.675 7.50258 8.03521 8.51877 7.34062 10.0785C6.64391 11.643 7.03778 13.4417 8.32278 14.6196C9.36662 15.5426 9.98356 16.8913 10.0003 18.2029V18.5H13.0001L13.0001 18.1969C13.0048 16.9143 13.6014 15.5805 14.6246 14.6649C15.6402 13.7602 16.1379 12.4652 15.9669 11.1689C15.7132 9.25779 14.0849 7.75729 12.0264 7.52799C11.8487 7.50938 11.67 7.50004 11.4927 7.5ZM14.1068 12.5099H13.1068C13.1068 10.7222 12.3371 9.95246 10.6235 10.0096L10.5901 9.01014C12.8765 8.93393 14.1068 10.1642 14.1068 12.5099ZM13 21.5V20.5H10V21.5H13Z",
1647
+ fill: e.aiChat.icons.color
1648
+ }) });
1649
+ }
1650
+ function ki({ onClick: e }) {
1651
+ const { t } = qs();
1652
+ return /* @__PURE__ */ ae(Pe, { align: "left", onClick: e, children: /* @__PURE__ */ yi("div", {
1653
+ className: "csdk-py-[5px] csdk-px-2 csdk-flex csdk-items-center csdk-gap-x-1 csdk-select-none",
1654
+ children: [
1655
+ /* @__PURE__ */ ae(vi, {}),
1656
+ t("ai.buttons.insights")
1657
+ ]
1658
+ }) });
1659
+ }
1660
+ function wi(e) {
1661
+ return Mt("MuiDialog", e);
1662
+ }
1663
+ var Ve2 = Tt("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]);
1664
+ var gn = /* @__PURE__ */ Y.createContext({});
1665
+ gn.displayName = "DialogContext";
1666
+ var Si = De(TC, {
1667
+ name: "MuiDialog",
1668
+ slot: "Backdrop",
1669
+ overrides: (e, t) => t.backdrop
1670
+ })({
1671
+ zIndex: -1
1672
+ });
1673
+ var Mi = (e) => {
1674
+ const {
1675
+ classes: t,
1676
+ scroll: n,
1677
+ maxWidth: r,
1678
+ fullWidth: s,
1679
+ fullScreen: c
1680
+ } = e, a = {
1681
+ root: ["root"],
1682
+ container: ["container", `scroll${ze(n)}`],
1683
+ paper: ["paper", `paperScroll${ze(n)}`, `paperWidth${ze(String(r))}`, s && "paperFullWidth", c && "paperFullScreen"]
1684
+ };
1685
+ return jt(a, wi, t);
1686
+ };
1687
+ var Ti = De(SC, {
1688
+ name: "MuiDialog",
1689
+ slot: "Root",
1690
+ overridesResolver: (e, t) => t.root
1691
+ })({
1692
+ "@media print": {
1693
+ position: "absolute !important"
1694
+ }
1695
+ });
1696
+ var $i = De("div", {
1697
+ name: "MuiDialog",
1698
+ slot: "Container",
1699
+ overridesResolver: (e, t) => {
1700
+ const {
1701
+ ownerState: n
1702
+ } = e;
1703
+ return [t.container, t[`scroll${ze(n.scroll)}`]];
1704
+ }
1705
+ })({
1706
+ height: "100%",
1707
+ "@media print": {
1708
+ height: "auto"
1709
+ },
1710
+ outline: 0,
1711
+ variants: [{
1712
+ props: {
1713
+ scroll: "paper"
1714
+ },
1715
+ style: {
1716
+ display: "flex",
1717
+ justifyContent: "center",
1718
+ alignItems: "center"
1719
+ }
1720
+ }, {
1721
+ props: {
1722
+ scroll: "body"
1723
+ },
1724
+ style: {
1725
+ overflowY: "auto",
1726
+ overflowX: "hidden",
1727
+ textAlign: "center",
1728
+ "&::after": {
1729
+ content: '""',
1730
+ display: "inline-block",
1731
+ verticalAlign: "middle",
1732
+ height: "100%",
1733
+ width: "0"
1734
+ }
1735
+ }
1736
+ }]
1737
+ });
1738
+ var Ri = De(Gg, {
1739
+ name: "MuiDialog",
1740
+ slot: "Paper",
1741
+ overridesResolver: (e, t) => {
1742
+ const {
1743
+ ownerState: n
1744
+ } = e;
1745
+ return [t.paper, t[`scrollPaper${ze(n.scroll)}`], t[`paperWidth${ze(String(n.maxWidth))}`], n.fullWidth && t.paperFullWidth, n.fullScreen && t.paperFullScreen];
1746
+ }
1747
+ })(Qt(({
1748
+ theme: e
1749
+ }) => ({
1750
+ margin: 32,
1751
+ position: "relative",
1752
+ overflowY: "auto",
1753
+ "@media print": {
1754
+ overflowY: "visible",
1755
+ boxShadow: "none"
1756
+ },
1757
+ variants: [{
1758
+ props: {
1759
+ scroll: "paper"
1760
+ },
1761
+ style: {
1762
+ display: "flex",
1763
+ flexDirection: "column",
1764
+ maxHeight: "calc(100% - 64px)"
1765
+ }
1766
+ }, {
1767
+ props: {
1768
+ scroll: "body"
1769
+ },
1770
+ style: {
1771
+ display: "inline-block",
1772
+ verticalAlign: "middle",
1773
+ textAlign: "initial"
1774
+ }
1775
+ }, {
1776
+ props: ({
1777
+ ownerState: t
1778
+ }) => !t.maxWidth,
1779
+ style: {
1780
+ maxWidth: "calc(100% - 64px)"
1781
+ }
1782
+ }, {
1783
+ props: {
1784
+ maxWidth: "xs"
1785
+ },
1786
+ style: {
1787
+ maxWidth: e.breakpoints.unit === "px" ? Math.max(e.breakpoints.values.xs, 444) : `max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,
1788
+ [`&.${Ve2.paperScrollBody}`]: {
1789
+ [e.breakpoints.down(Math.max(e.breakpoints.values.xs, 444) + 32 * 2)]: {
1790
+ maxWidth: "calc(100% - 64px)"
1791
+ }
1792
+ }
1793
+ }
1794
+ }, ...Object.keys(e.breakpoints.values).filter((t) => t !== "xs").map((t) => ({
1795
+ props: {
1796
+ maxWidth: t
1797
+ },
1798
+ style: {
1799
+ maxWidth: `${e.breakpoints.values[t]}${e.breakpoints.unit}`,
1800
+ [`&.${Ve2.paperScrollBody}`]: {
1801
+ [e.breakpoints.down(e.breakpoints.values[t] + 32 * 2)]: {
1802
+ maxWidth: "calc(100% - 64px)"
1803
+ }
1804
+ }
1805
+ }
1806
+ })), {
1807
+ props: ({
1808
+ ownerState: t
1809
+ }) => t.fullWidth,
1810
+ style: {
1811
+ width: "calc(100% - 64px)"
1812
+ }
1813
+ }, {
1814
+ props: ({
1815
+ ownerState: t
1816
+ }) => t.fullScreen,
1817
+ style: {
1818
+ margin: 0,
1819
+ width: "100%",
1820
+ maxWidth: "100%",
1821
+ height: "100%",
1822
+ maxHeight: "none",
1823
+ borderRadius: 0,
1824
+ [`&.${Ve2.paperScrollBody}`]: {
1825
+ margin: 0,
1826
+ maxWidth: "100%"
1827
+ }
1828
+ }
1829
+ }]
1830
+ })));
1831
+ var fn = /* @__PURE__ */ Y.forwardRef(function(t, n) {
1832
+ const r = Dt2({
1833
+ props: t,
1834
+ name: "MuiDialog"
1835
+ }), s = qd(), c = {
1836
+ enter: s.transitions.duration.enteringScreen,
1837
+ exit: s.transitions.duration.leavingScreen
1838
+ }, ht = r, {
1839
+ "aria-describedby": a,
1840
+ "aria-labelledby": p,
1841
+ "aria-modal": d = true,
1842
+ BackdropComponent: h,
1843
+ BackdropProps: m,
1844
+ children: x,
1845
+ className: i,
1846
+ disableEscapeKeyDown: u = false,
1847
+ fullScreen: l = false,
1848
+ fullWidth: f = false,
1849
+ maxWidth: g = "sm",
1850
+ onBackdropClick: y,
1851
+ onClick: v,
1852
+ onClose: k,
1853
+ open: $,
1854
+ PaperComponent: E = Gg,
1855
+ PaperProps: T = {},
1856
+ scroll: I = "paper",
1857
+ slots: H = {},
1858
+ slotProps: ae2 = {},
1859
+ TransitionComponent: Q = MC,
1860
+ transitionDuration: j = c,
1861
+ TransitionProps: W
1862
+ } = ht, V = qe2(ht, [
1863
+ "aria-describedby",
1864
+ "aria-labelledby",
1865
+ "aria-modal",
1866
+ "BackdropComponent",
1867
+ "BackdropProps",
1868
+ "children",
1869
+ "className",
1870
+ "disableEscapeKeyDown",
1871
+ "fullScreen",
1872
+ "fullWidth",
1873
+ "maxWidth",
1874
+ "onBackdropClick",
1875
+ "onClick",
1876
+ "onClose",
1877
+ "open",
1878
+ "PaperComponent",
1879
+ "PaperProps",
1880
+ "scroll",
1881
+ "slots",
1882
+ "slotProps",
1883
+ "TransitionComponent",
1884
+ "transitionDuration",
1885
+ "TransitionProps"
1886
+ ]), N = L(M({}, r), {
1887
+ disableEscapeKeyDown: u,
1888
+ fullScreen: l,
1889
+ fullWidth: f,
1890
+ maxWidth: g,
1891
+ scroll: I
1892
+ }), _ = Mi(N), K = Y.useRef(), U = (ue) => {
1893
+ K.current = ue.target === ue.currentTarget;
1894
+ }, D = (ue) => {
1895
+ v && v(ue), K.current && (K.current = null, y && y(ue), k && k(ue, "backdropClick"));
1896
+ }, G = Cg(p), re = Y.useMemo(() => ({
1897
+ titleId: G
1898
+ }), [G]), ce = M({
1899
+ transition: Q
1900
+ }, H), de = M({
1901
+ transition: W,
1902
+ paper: T,
1903
+ backdrop: m
1904
+ }, ae2), P = {
1905
+ slots: ce,
1906
+ slotProps: de
1907
+ }, [X, Te] = gr("root", {
1908
+ elementType: Ti,
1909
+ shouldForwardComponentProp: true,
1910
+ externalForwardedProps: P,
1911
+ ownerState: N,
1912
+ className: Ve(_.root, i),
1913
+ ref: n
1914
+ }), [pt, $e] = gr("backdrop", {
1915
+ elementType: Si,
1916
+ shouldForwardComponentProp: true,
1917
+ externalForwardedProps: P,
1918
+ ownerState: N
1919
+ }), [bn, yn] = gr("paper", {
1920
+ elementType: Ri,
1921
+ shouldForwardComponentProp: true,
1922
+ externalForwardedProps: P,
1923
+ ownerState: N,
1924
+ className: Ve(_.paper, T.className)
1925
+ }), [xn, vn] = gr("container", {
1926
+ elementType: $i,
1927
+ externalForwardedProps: P,
1928
+ ownerState: N,
1929
+ className: Ve(_.container)
1930
+ }), [kn, wn] = gr("transition", {
1931
+ elementType: MC,
1932
+ externalForwardedProps: P,
1933
+ ownerState: N,
1934
+ additionalProps: {
1935
+ appear: true,
1936
+ in: $,
1937
+ timeout: j,
1938
+ role: "presentation"
1939
+ }
1940
+ });
1941
+ return /* @__PURE__ */ import_jsx_runtime.jsx(X, L(M(M({
1942
+ closeAfterTransition: true,
1943
+ slots: {
1944
+ backdrop: pt
1945
+ },
1946
+ slotProps: {
1947
+ backdrop: M({
1948
+ transitionDuration: j,
1949
+ as: h
1950
+ }, $e)
1951
+ },
1952
+ disableEscapeKeyDown: u,
1953
+ onClose: k,
1954
+ open: $,
1955
+ onClick: D
1956
+ }, Te), V), {
1957
+ children: /* @__PURE__ */ import_jsx_runtime.jsx(kn, L(M({}, wn), {
1958
+ children: /* @__PURE__ */ import_jsx_runtime.jsx(xn, L(M({
1959
+ onMouseDown: U
1960
+ }, vn), {
1961
+ children: /* @__PURE__ */ import_jsx_runtime.jsx(bn, L(M({
1962
+ as: E,
1963
+ elevation: 24,
1964
+ role: "dialog",
1965
+ "aria-describedby": a,
1966
+ "aria-labelledby": G,
1967
+ "aria-modal": d
1968
+ }, yn), {
1969
+ children: /* @__PURE__ */ import_jsx_runtime.jsx(gn.Provider, {
1970
+ value: re,
1971
+ children: x
1972
+ })
1973
+ }))
1974
+ }))
1975
+ }))
1976
+ }));
1977
+ });
1978
+ fn.propTypes = {
1979
+ "aria-describedby": b.string,
1980
+ "aria-labelledby": b.string,
1981
+ "aria-modal": b.oneOfType([b.oneOf(["false", "true"]), b.bool]),
1982
+ BackdropComponent: b.elementType,
1983
+ BackdropProps: b.object,
1984
+ children: b.node,
1985
+ classes: b.object,
1986
+ className: b.string,
1987
+ disableEscapeKeyDown: b.bool,
1988
+ fullScreen: b.bool,
1989
+ fullWidth: b.bool,
1990
+ maxWidth: b.oneOfType([b.oneOf(["xs", "sm", "md", "lg", "xl", false]), b.string]),
1991
+ onBackdropClick: b.func,
1992
+ onClick: b.func,
1993
+ onClose: b.func,
1994
+ open: b.bool.isRequired,
1995
+ PaperComponent: b.elementType,
1996
+ PaperProps: b.object,
1997
+ scroll: b.oneOf(["body", "paper"]),
1998
+ slotProps: b.shape({
1999
+ backdrop: b.oneOfType([b.func, b.object]),
2000
+ container: b.oneOfType([b.func, b.object]),
2001
+ paper: b.oneOfType([b.func, b.object]),
2002
+ root: b.oneOfType([b.func, b.object]),
2003
+ transition: b.oneOfType([b.func, b.object])
2004
+ }),
2005
+ slots: b.shape({
2006
+ backdrop: b.elementType,
2007
+ container: b.elementType,
2008
+ paper: b.elementType,
2009
+ root: b.elementType,
2010
+ transition: b.elementType
2011
+ }),
2012
+ sx: b.oneOfType([b.arrayOf(b.oneOfType([b.func, b.object, b.bool])), b.func, b.object]),
2013
+ TransitionComponent: b.elementType,
2014
+ transitionDuration: b.oneOfType([b.number, b.shape({
2015
+ appear: b.number,
2016
+ enter: b.number,
2017
+ exit: b.number
2018
+ })]),
2019
+ TransitionProps: b.object
2020
+ };
2021
+ function Li({ fillColor: e = "#262E3D" }) {
2022
+ return /* @__PURE__ */ yi("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "30", viewBox: "0 0 30 30", fill: "none", children: [
2023
+ /* @__PURE__ */ ae("rect", { x: "1", y: "1", width: "28", height: "28", rx: "14", stroke: "#9EA2AB" }),
2024
+ /* @__PURE__ */ ae("path", {
2025
+ fillRule: "evenodd",
2026
+ clipRule: "evenodd",
2027
+ d: "M14.2929 15L9.14645 9.85355C8.95118 9.65829 8.95118 9.34171 9.14645 9.14645C9.34171 8.95118 9.65829 8.95118 9.85355 9.14645L15 14.2929L20.1464 9.14645C20.3417 8.95118 20.6583 8.95118 20.8536 9.14645C21.0488 9.34171 21.0488 9.65829 20.8536 9.85355L15.7071 15L20.8536 20.1464C21.0488 20.3417 21.0488 20.6583 20.8536 20.8536C20.6583 21.0488 20.3417 21.0488 20.1464 20.8536L15 15.7071L9.85355 20.8536C9.65829 21.0488 9.34171 21.0488 9.14645 20.8536C8.95118 20.6583 8.95118 20.3417 9.14645 20.1464L14.2929 15Z",
2028
+ fill: e
2029
+ })
2030
+ ] });
2031
+ }
2032
+ var Cn = {
2033
+ row: {
2034
+ hover: "rgba(224, 224, 224, 0.3)"
2035
+ },
2036
+ secondary: {
2037
+ default: "rgba(38, 46, 61, 0.1)",
2038
+ hover: "rgba(38, 46, 61, 0.17)"
2039
+ },
2040
+ text: {
2041
+ active: "rgba(38, 46, 61, 1)",
2042
+ content: "rgba(38, 46, 61, 0.8)",
2043
+ secondary: "rgba(38, 46, 61, 0.55)",
2044
+ disabled: "rgba(38, 46, 61, 0.3)",
2045
+ link: "rgba(54, 163, 217, 1)",
2046
+ accented: "rgba(12, 14, 18, 1)",
2047
+ linkButton: "#1eaff3",
2048
+ primary: "#262E3D"
2049
+ },
2050
+ UI: {
2051
+ default: "#6e737d",
2052
+ additional: "rgba(38, 46, 61, 0.4)",
2053
+ guiding: "rgba(38, 46, 61, 0.1)"
2054
+ },
2055
+ background: {
2056
+ workspace: "rgba(255, 255, 255, 1)",
2057
+ supporting: "rgba(249, 249, 251, 1)",
2058
+ priority: "rgba(244, 244, 248, 1)"
2059
+ },
2060
+ primary: {
2061
+ primary: "rgba(255, 203, 5, 1)",
2062
+ default: "#FFC805",
2063
+ hover: "#F2B900"
2064
+ },
2065
+ interaction: {
2066
+ defaultHover: "rgba(12, 14, 18, 0.07)",
2067
+ guidingHover: "rgba(38, 46, 61, 0.17)",
2068
+ linkHovered: "rgba(50, 147, 197, 1)",
2069
+ primaryHovered: "rgba(242, 185, 0, 1)"
2070
+ },
2071
+ semantic: {
2072
+ info: "rgba(52, 150, 200, 1)",
2073
+ success: "rgba(34, 195, 195, 1)",
2074
+ warning: "rgba(242, 185, 0, 1)",
2075
+ error: "rgba(231, 71, 39, 1)",
2076
+ infoBG: "rgba(52, 150, 200, 0.1)",
2077
+ successBG: "rgba(34, 195, 195, 0.1)",
2078
+ warningBG: "rgba(242, 185, 0, 0.1)",
2079
+ errorBG: "rgba(231, 71, 39, 0.1)"
2080
+ },
2081
+ sisenseDark: {
2082
+ text: {
2083
+ active: "rgba(235, 239, 247, 1)",
2084
+ content: "rgba(235, 239, 247, 0.8)",
2085
+ secondary: "rgba(235, 239, 247, 0.55)",
2086
+ disabled: "rgba(235, 239, 247, 0.3)",
2087
+ link: "rgba(50, 147, 197, 1)",
2088
+ accented: "rgba(12, 14, 18, 1)"
2089
+ },
2090
+ ui: {
2091
+ default: "rgba(235, 239, 247, 0.67)",
2092
+ additional: "rgba(235, 239, 247, 0.4)",
2093
+ guiding: "rgba(235, 239, 247, 0.1)"
2094
+ },
2095
+ background: {
2096
+ workspace: "rgba(12, 14, 18, 1)",
2097
+ supporting: "rgba(249, 249, 251, 1)",
2098
+ priority: "rgba(244, 244, 248, 1)"
2099
+ },
2100
+ interaction: {
2101
+ defaultHover: "rgba(12, 14, 18, 0.07)",
2102
+ guidingHover: "rgba(235, 239, 247, 0.17)",
2103
+ linkHovered: "rgba(50, 147, 197, 1)",
2104
+ primaryHovered: "rgba(242, 185, 0, 1)"
2105
+ },
2106
+ semantic: {
2107
+ info: "rgba(52, 150, 200, 1)",
2108
+ success: "rgba(34, 195, 195, 1)",
2109
+ warning: "rgba(242, 185, 0, 1)",
2110
+ error: "rgba(231, 71, 39, 1)",
2111
+ infoBG: "rgba(52, 150, 200, 0.1)",
2112
+ successBG: "rgba(34, 195, 195, 0.1)",
2113
+ warningBG: "rgba(242, 185, 0, 0.1)",
2114
+ errorBG: "rgba(231, 71, 39, 0.1)"
2115
+ }
2116
+ }
2117
+ };
2118
+ var Ei = {
2119
+ shouldForwardProp: (e) => !e.startsWith("$")
2120
+ };
2121
+ var Me = nr(Ul, Ei)(({ $hoverColor: e }) => ({
2122
+ padding: 2,
2123
+ "&.MuiIconButton-root:hover": {
2124
+ backgroundColor: e != null ? e : Cn.interaction.defaultHover
2125
+ }
2126
+ }));
2127
+ function Ii({ fill: e = "rgba(38, 46, 61, 0.67)" }) {
2128
+ return /* @__PURE__ */ ae("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ ae("path", {
2129
+ fillRule: "evenodd",
2130
+ clipRule: "evenodd",
2131
+ d: "M13.0503 10.2426L17.2929 6H14.5C14.2239 6 14 5.77614 14 5.5C14 5.22386 14.2239 5 14.5 5H18.5C18.7761 5 19 5.22386 19 5.5V9.5C19 9.77614 18.7761 10 18.5 10C18.2239 10 18 9.77614 18 9.5V6.70711L13.7574 10.9497C13.5621 11.145 13.2455 11.145 13.0503 10.9497C12.855 10.7545 12.855 10.4379 13.0503 10.2426ZM10.1464 13.1464L6 17.2929V14.5C6 14.2239 5.77614 14 5.5 14C5.22386 14 5 14.2239 5 14.5V18.5C5 18.7761 5.22386 19 5.5 19H9.5C9.77614 19 10 18.7761 10 18.5C10 18.2239 9.77614 18 9.5 18H6.70711L10.8536 13.8536C11.0488 13.6583 11.0488 13.3417 10.8536 13.1464C10.6583 12.9512 10.3417 12.9512 10.1464 13.1464Z",
2132
+ fill: e
2133
+ }) });
2134
+ }
2135
+ function Ni({ fill: e = "rgba(38, 46, 61, 0.67)" }) {
2136
+ return /* @__PURE__ */ ae("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ ae("path", {
2137
+ fillRule: "evenodd",
2138
+ clipRule: "evenodd",
2139
+ d: "M17.25 12C17.25 14.8995 14.8995 17.25 12 17.25C9.10051 17.25 6.75 14.8995 6.75 12C6.75 9.10051 9.10051 6.75 12 6.75C14.8995 6.75 17.25 9.10051 17.25 12ZM18 12C18 15.3137 15.3137 18 12 18C8.68629 18 6 15.3137 6 12C6 8.68629 8.68629 6 12 6C15.3137 6 18 8.68629 18 12ZM11.625 9.375V10.1239H12.375V9.375H11.625ZM12.375 14.6239V10.8739H11.625V14.6239H12.375Z",
2140
+ fill: e
2141
+ }) });
2142
+ }
2143
+ function Pi() {
2144
+ return /* @__PURE__ */ ae("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ ae("path", {
2145
+ fillRule: "evenodd",
2146
+ clipRule: "evenodd",
2147
+ d: "M4.64372 12C4.64372 15.3137 7.33002 18 10.6437 18C12.6857 18 14.4894 16.9799 15.5731 15.4216C15.7307 15.195 16.0347 15.1118 16.2737 15.2498C16.5131 15.3879 16.5964 15.6953 16.4413 15.924C15.1825 17.7803 13.0555 19 10.6437 19C6.77773 19 3.64372 15.866 3.64372 12C3.64372 8.13401 6.77773 5 10.6437 5C13.8766 5 16.5977 7.19162 17.4021 10.1702L18.0347 8.56524C18.1359 8.30833 18.4263 8.18215 18.6832 8.2834C18.9401 8.38466 19.0663 8.67501 18.965 8.93192L17.865 11.723C17.7638 11.9799 17.4734 12.1061 17.2165 12.0048L14.4255 10.9048C14.1685 10.8035 14.0424 10.5132 14.1436 10.2563C14.2449 9.99935 14.5352 9.87317 14.7921 9.97442L16.4897 10.6435C15.8749 7.98316 13.4909 6 10.6437 6C7.33002 6 4.64372 8.68629 4.64372 12Z",
2148
+ fill: "#262E3D",
2149
+ fillOpacity: "0.67"
2150
+ }) });
2151
+ }
2152
+ var dt = (e) => nv(e.chart.backgroundColor);
2153
+ var Bi = ({ title: e }) => {
2154
+ const { themeSettings: t } = yt();
2155
+ return /* @__PURE__ */ ae(Se, { title: e, children: /* @__PURE__ */ ae(Me, { disableTouchRipple: true, $hoverColor: dt(t), children: /* @__PURE__ */ ae(Ni, { fill: t.chart.textColor }) }) });
2156
+ };
2157
+ var Fi = ({ items: e }) => {
2158
+ const [t, n] = import_react.useState(null), r = (a) => {
2159
+ n(a.currentTarget);
2160
+ }, s = () => {
2161
+ n(null);
2162
+ }, { themeSettings: c } = yt();
2163
+ return /* @__PURE__ */ yi(Rc, { children: [
2164
+ /* @__PURE__ */ ae(Me, {
2165
+ onClick: r,
2166
+ $hoverColor: dt(c),
2167
+ "aria-label": "three dots button",
2168
+ children: /* @__PURE__ */ ae(twe, { fill: c.chart.textColor })
2169
+ }),
2170
+ /* @__PURE__ */ ae(Yg, {
2171
+ anchorEl: t,
2172
+ anchorOrigin: {
2173
+ vertical: "bottom",
2174
+ horizontal: "center"
2175
+ },
2176
+ transformOrigin: {
2177
+ vertical: "top",
2178
+ horizontal: "right"
2179
+ },
2180
+ open: !!t,
2181
+ onClose: s,
2182
+ children: e.map((a) => /* @__PURE__ */ yi(jg, {
2183
+ onClick: () => {
2184
+ a.onClick(), s();
2185
+ },
2186
+ sx: {
2187
+ fontSize: "13px",
2188
+ fontFamily: c.typography.fontFamily,
2189
+ color: Cn.text.content
2190
+ },
2191
+ disableRipple: true,
2192
+ children: [
2193
+ a.icon,
2194
+ /* @__PURE__ */ ae("div", { className: "csdk-ml-1", children: a.title })
2195
+ ]
2196
+ }, a.title))
2197
+ })
2198
+ ] });
2199
+ };
2200
+ var Hi = ({ onClick: e }) => {
2201
+ const { themeSettings: t } = yt(), { t: n } = qs();
2202
+ return /* @__PURE__ */ ae(Se, { title: n("ai.preview"), children: /* @__PURE__ */ ae(Me, { onClick: e, $hoverColor: dt(t), children: /* @__PURE__ */ ae(Ii, { fill: t.chart.textColor }) }) });
2203
+ };
2204
+ var Oi = nr.div`
2205
+ display: flex;
2206
+ padding-top: 6px;
2207
+ padding-bottom: 6px;
2208
+ `;
2209
+ function Di({
2210
+ infoTooltipText: e,
2211
+ onRefresh: t,
2212
+ onExpand: n
2213
+ }) {
2214
+ const r = import_react.useMemo(() => [
2215
+ {
2216
+ title: "Refresh",
2217
+ onClick: t,
2218
+ icon: /* @__PURE__ */ ae(Pi, {})
2219
+ }
2220
+ ], [t]);
2221
+ return /* @__PURE__ */ yi(Oi, { "aria-label": "chatbot chart toolbar", children: [
2222
+ /* @__PURE__ */ ae(Bi, { title: e != null ? e : "" }),
2223
+ /* @__PURE__ */ ae(Fi, { items: r }),
2224
+ /* @__PURE__ */ ae(Hi, { onClick: n })
2225
+ ] });
2226
+ }
2227
+ function Ai({ content: e }) {
2228
+ const [t, n] = import_react.useState(false), { themeSettings: r } = yt(), { inlineElement: s, expandedElement: c } = import_react.useMemo(() => {
2229
+ const a = Dt(e, { useCustomizedStyleOptions: true });
2230
+ if (a === undefined || !cn(a))
2231
+ throw new Lt("errors.otherWidgetTypesNotSupported");
2232
+ const { detailedDescription: p } = e, { styleOptions: d } = a, h = {
2233
+ cornerRadius: "Small",
2234
+ header: {
2235
+ renderToolbar: (i) => /* @__PURE__ */ ae(Di, {
2236
+ infoTooltipText: p,
2237
+ onRefresh: i,
2238
+ onExpand: () => n(true)
2239
+ })
2240
+ }
2241
+ };
2242
+ let m, x;
2243
+ if (sv(a.chartType))
2244
+ m = /* @__PURE__ */ ae("div", { className: "csdk-h-[245px]", children: /* @__PURE__ */ ae(ewe, L(M({}, a), { styleOptions: h })) }), x = /* @__PURE__ */ ae(ewe, L(M({}, a), { styleOptions: { header: { hidden: true } } }));
2245
+ else {
2246
+ const i = L(M({}, d), {
2247
+ header: { hidden: true }
2248
+ }), u = M(L(M({}, d), {
2249
+ legend: undefined,
2250
+ xAxis: undefined,
2251
+ yAxis: undefined
2252
+ }), h);
2253
+ delete u.legend, delete u.xAxis, delete u.yAxis, m = /* @__PURE__ */ ae("div", { children: /* @__PURE__ */ ae(ewe, L(M({}, a), { styleOptions: u })) }), x = /* @__PURE__ */ ae(ewe, L(M({}, a), {
2254
+ styleOptions: M({ cornerRadius: "None" }, i)
2255
+ }));
2256
+ }
2257
+ return { inlineElement: m, expandedElement: x };
2258
+ }, [e]);
2259
+ return /* @__PURE__ */ yi(Rc, { children: [
2260
+ s,
2261
+ /* @__PURE__ */ yi(fn, {
2262
+ open: t,
2263
+ onClose: () => n(false),
2264
+ maxWidth: "xl",
2265
+ fullWidth: true,
2266
+ PaperProps: {
2267
+ sx: {
2268
+ backgroundColor: r.chart.backgroundColor,
2269
+ color: r.aiChat.primaryTextColor
2270
+ }
2271
+ },
2272
+ children: [
2273
+ /* @__PURE__ */ yi("div", { className: "csdk-flex csdk-items-center csdk-justify-between csdk-mt-[16px] csdk-mx-[16px] csdk-pl-[20px]", children: [
2274
+ /* @__PURE__ */ ae("div", { className: "csdk-text-ai-lg csdk-semibold", children: e.queryTitle }),
2275
+ /* @__PURE__ */ ae(Ul, { onClick: () => n(false), "aria-label": "close expanded chart", children: /* @__PURE__ */ ae(Li, { fillColor: r.aiChat.primaryTextColor }) })
2276
+ ] }),
2277
+ /* @__PURE__ */ ae("div", { className: "csdk-h-screen csdk-mt-[8px] csdk-mb-[24px] csdk-mx-[16px]", children: c })
2278
+ ]
2279
+ })
2280
+ ] });
2281
+ }
2282
+ function qi({ theme: e }) {
2283
+ return /* @__PURE__ */ ae("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ ae("path", {
2284
+ fillRule: "evenodd",
2285
+ clipRule: "evenodd",
2286
+ d: "M18.5798 9.61098C18.8749 9.98744 19.0165 10.391 18.9985 10.8066C18.9804 11.2643 18.7757 11.6227 18.607 11.8426C18.8027 12.3305 18.878 13.0984 18.2245 13.6947C17.7456 14.1315 16.9325 14.3273 15.806 14.2732C15.014 14.237 14.3513 14.0893 14.3243 14.0833H14.3213C14.1708 14.0562 14.011 14.0231 13.8484 13.9869C13.8363 14.1797 13.8696 14.6585 14.2249 15.7367C14.6465 17.0196 14.6225 18.0016 14.1466 18.6581C13.6466 19.3478 12.8485 19.4019 12.6136 19.4019C12.3877 19.4019 12.1799 19.3086 12.0324 19.137C11.6981 18.7484 11.7373 18.0317 11.7793 17.7004C11.3818 16.6342 10.2676 14.02 9.32479 13.2943C9.30668 13.2822 9.2917 13.2671 9.27671 13.2521C8.99949 12.9599 8.81287 12.6437 8.68642 12.3667C8.50861 12.463 8.30687 12.5173 8.08995 12.5173H6.25291C5.56014 12.5173 5 11.954 5 11.2643L5 6.37029C5 5.67764 5.56323 5.11738 6.25291 5.11738H8.08995C8.35803 5.11738 8.60804 5.20179 8.81287 5.34635L9.52051 5.26191C9.62905 5.24692 11.5565 5.00297 13.5352 5.04209C13.8935 5.01502 14.2309 5 14.5441 5C15.0832 5 15.5531 5.04209 15.9445 5.12649C16.8661 5.32222 17.4957 5.71366 17.8148 6.28898C18.0588 6.72865 18.0588 7.16543 18.0197 7.44247C18.6191 7.98454 18.7244 8.58394 18.7033 9.00555C18.6913 9.2495 18.637 9.4573 18.5798 9.61098ZM6.25291 5.93058C6.00896 5.93058 5.81324 6.12939 5.81324 6.37029V11.2674C5.81324 11.5112 6.0119 11.7071 6.25291 11.7071H8.08995C8.33393 11.7071 8.52981 11.5083 8.52981 11.2674V6.37338C8.52981 6.12939 8.33096 5.93352 8.08995 5.93352H6.25291V5.93058ZM17.8088 9.96331C17.6823 9.83083 17.6582 9.6289 17.7547 9.47229C17.7547 9.46935 17.878 9.25849 17.8932 8.96937C17.9142 8.5748 17.7245 8.22555 17.327 7.92731C17.1854 7.81893 17.1282 7.63217 17.1885 7.46351C17.1885 7.46057 17.3179 7.06291 17.1072 6.68645C16.9052 6.32516 16.4566 6.06619 15.7759 5.92162C15.2309 5.80413 14.4899 5.78293 13.5805 5.85529H13.5383C11.6017 5.81309 9.64403 6.06619 9.62302 6.06912H9.61994L9.31583 6.1053C9.3339 6.18955 9.34286 6.27998 9.34286 6.37029V11.2674C9.34286 11.3968 9.32185 11.5233 9.28567 11.6408C9.33992 11.8425 9.49051 12.2914 9.84582 12.6739C11.1982 13.7461 12.5203 17.3631 12.5775 17.5197C12.6017 17.583 12.6075 17.6521 12.5956 17.7214C12.5443 18.0587 12.5624 18.4715 12.6347 18.5949C12.7943 18.5919 13.225 18.5467 13.484 18.1883C13.7912 17.7636 13.7791 17.0046 13.4478 15.9988C12.9419 14.4657 12.8997 13.6587 13.3003 13.3033C13.4991 13.1256 13.7641 13.1165 13.9569 13.1858C14.1406 13.228 14.3153 13.2641 14.4809 13.2912C14.4929 13.2943 14.508 13.2973 14.52 13.3003C15.4447 13.5021 17.1011 13.6255 17.6763 13.1015C18.1642 12.6558 17.8179 12.0655 17.7788 12.0022C17.6673 11.8336 17.7004 11.6137 17.851 11.4782C17.854 11.4752 18.1702 11.177 18.1852 10.7764C18.1973 10.5085 18.0708 10.2343 17.8088 9.96331Z",
2287
+ fill: e.aiChat.icons.color
2288
+ }) });
2289
+ }
2290
+ function zi({ onClick: e, disabled: t }) {
2291
+ const { themeSettings: n } = yt(), { t: r } = qs();
2292
+ return /* @__PURE__ */ ae(Se, { title: r("ai.buttons.incorrectResponse"), children: /* @__PURE__ */ ae(Me, {
2293
+ "aria-label": "thumbs-down",
2294
+ onClick: e,
2295
+ $hoverColor: n.aiChat.icons.feedbackIcons.hoverColor,
2296
+ disabled: t,
2297
+ children: /* @__PURE__ */ ae(qi, { theme: n })
2298
+ }) });
2299
+ }
2300
+ function Wi({ theme: e }) {
2301
+ return /* @__PURE__ */ ae("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ ae("path", {
2302
+ fillRule: "evenodd",
2303
+ clipRule: "evenodd",
2304
+ d: "M18.5798 14.7911C18.8749 14.4146 19.0165 14.011 18.9985 13.5954C18.9804 13.1377 18.7757 12.7793 18.607 12.5595C18.8027 12.0715 18.878 11.3036 18.2245 10.7073C17.7456 10.2705 16.9325 10.0748 15.806 10.1289C15.014 10.1651 14.3513 10.3127 14.3243 10.3187H14.3213C14.1708 10.3458 14.011 10.3789 13.8484 10.4151C13.8363 10.2223 13.8696 9.74345 14.2248 8.66522C14.6465 7.38231 14.6225 6.40041 14.1466 5.74397C13.6466 5.05425 12.8485 5 12.6136 5C12.3877 5 12.1799 5.09336 12.0324 5.26499C11.6981 5.6535 11.7373 6.37026 11.7793 6.70158C11.3818 7.76777 10.2676 10.382 9.32479 11.1077C9.30668 11.1198 9.2917 11.1349 9.27671 11.1499C8.99949 11.4421 8.81287 11.7583 8.68642 12.0353C8.50861 11.939 8.30687 11.8848 8.08995 11.8848H6.25291C5.56014 11.8848 5 12.448 5 13.1377V18.0318C5 18.7244 5.56323 19.2847 6.25291 19.2847H8.08995C8.35803 19.2847 8.60804 19.2003 8.81287 19.0557L9.52051 19.1401C9.62905 19.1551 11.5565 19.3991 13.5352 19.36C13.8935 19.387 14.2309 19.402 14.5441 19.402C15.0832 19.402 15.5531 19.36 15.9445 19.2756C16.8661 19.0798 17.4957 18.6884 17.8148 18.1131C18.0588 17.6734 18.0588 17.2366 18.0197 16.9596C18.6191 16.4175 18.7244 15.8181 18.7033 15.3965C18.6913 15.1525 18.637 14.9447 18.5798 14.7911ZM6.25291 18.4715C6.00896 18.4715 5.81324 18.2727 5.81324 18.0318V13.1346C5.81324 12.8908 6.0119 12.6949 6.25291 12.6949H8.08995C8.33393 12.6949 8.52981 12.8937 8.52981 13.1346V18.0287C8.52981 18.2727 8.33096 18.4685 8.08995 18.4685H6.25291V18.4715ZM17.8088 14.4387C17.6823 14.5712 17.6582 14.7731 17.7547 14.9298C17.7547 14.9327 17.878 15.1436 17.8932 15.4327C17.9142 15.8272 17.7245 16.1765 17.327 16.4747C17.1854 16.5831 17.1282 16.7699 17.1885 16.9385C17.1885 16.9415 17.3179 17.3391 17.1072 17.7156C16.9052 18.0769 16.4566 18.3359 15.7759 18.4804C15.2309 18.5979 14.4898 18.6191 13.5805 18.5468H13.5383C11.6017 18.589 9.64403 18.3359 9.62302 18.3329H9.61994L9.31583 18.2967C9.3339 18.2125 9.34286 18.1221 9.34286 18.0318V13.1346C9.34286 13.0052 9.32185 12.8787 9.28567 12.7612C9.33992 12.5595 9.49051 12.1106 9.84582 11.7281C11.1981 10.6559 12.5203 7.03893 12.5775 6.88232C12.6016 6.81908 12.6075 6.74981 12.5956 6.68058C12.5443 6.34323 12.5624 5.93058 12.6347 5.80718C12.7943 5.81015 13.225 5.85529 13.484 6.21365C13.7912 6.63837 13.7791 7.39733 13.4478 8.40316C12.9419 9.93624 12.8997 10.7433 13.3003 11.0987C13.4991 11.2764 13.7641 11.2855 13.9569 11.2162C14.1406 11.174 14.3153 11.1378 14.4809 11.1108C14.4929 11.1077 14.508 11.1048 14.52 11.1017C15.4447 10.8999 17.1011 10.7765 17.6763 11.3005C18.1642 11.7462 17.8179 12.3365 17.7788 12.3998C17.6673 12.5684 17.7004 12.7883 17.851 12.9238C17.854 12.9268 18.1702 13.225 18.1852 13.6256C18.1973 13.8935 18.0708 14.1677 17.8088 14.4387Z",
2305
+ fill: e.aiChat.icons.color
2306
+ }) });
2307
+ }
2308
+ function Zi({ onClick: e, disabled: t }) {
2309
+ const { themeSettings: n } = yt(), { t: r } = qs();
2310
+ return /* @__PURE__ */ ae(Se, { title: r("ai.buttons.correctResponse"), children: /* @__PURE__ */ ae(Me, {
2311
+ "aria-label": "thumbs-up",
2312
+ onClick: e,
2313
+ $hoverColor: n.aiChat.icons.feedbackIcons.hoverColor,
2314
+ disabled: t,
2315
+ children: /* @__PURE__ */ ae(Wi, { theme: n })
2316
+ }) });
2317
+ }
2318
+ var ji = () => {
2319
+ const [e, t] = import_react.useState(false), n = import_react.useRef(null), r = import_react.useCallback(() => {
2320
+ t(true);
2321
+ }, []), s = import_react.useCallback(() => {
2322
+ t(false);
2323
+ }, []);
2324
+ return [import_react.useCallback((a) => {
2325
+ var p;
2326
+ ((p = n.current) == null ? undefined : p.nodeType) === Node.ELEMENT_NODE && (n.current.removeEventListener("mouseenter", r), n.current.removeEventListener("mouseleave", s)), (a == null ? undefined : a.nodeType) === Node.ELEMENT_NODE && (a.addEventListener("mouseenter", r), a.addEventListener("mouseleave", s)), n.current = a;
2327
+ }, [r, s]), e];
2328
+ };
2329
+ var Gi = nr.div`
2330
+ display: flex;
2331
+ flex-direction: column;
2332
+ row-gap: ${({ theme: e }) => e.aiChat.body.gapBetweenMessages};
2333
+ `;
2334
+ function Vi({ visible: e, onSend: t }) {
2335
+ const [n, r] = import_react.useState(false), s = import_react.useCallback((a) => {
2336
+ r(true), t(a === "up" ? 1 : -1);
2337
+ }, [t]), c = `csdk-transition-opacity csdk-delay-150 csdk-duration-500 ${n ? "csdk-opacity-0" : "csdk-opacity-100"}`;
2338
+ return e ? /* @__PURE__ */ yi("div", { className: `csdk-flex csdk-items-center ${c}`, children: [
2339
+ /* @__PURE__ */ ae(Zi, { onClick: () => s("up"), disabled: n }),
2340
+ /* @__PURE__ */ ae(zi, { onClick: () => s("down"), disabled: n })
2341
+ ] }) : null;
2342
+ }
2343
+ function Xe({
2344
+ sourceId: e,
2345
+ data: t,
2346
+ type: n,
2347
+ buttonVisibility: r = "onHover",
2348
+ renderContent: s
2349
+ }) {
2350
+ const c = ee(), a = Q_e(import_react.useCallback((x) => {
2351
+ c && c.ai.sendFeedback({
2352
+ sourceId: e,
2353
+ type: n,
2354
+ data: t,
2355
+ rating: x
2356
+ });
2357
+ }, [c, e, t, n]), 200), [p, d] = ji(), h = import_react.useMemo(() => r === "onHover" ? d : r !== "never", [d, r]), { themeSettings: m } = yt();
2358
+ return /* @__PURE__ */ ae(Gi, { ref: p, theme: m, children: s(/* @__PURE__ */ ae(Vi, { onSend: a, visible: h })) });
2359
+ }
2360
+ var Ui = 18 * 5;
2361
+ function ut({ text: e }) {
2362
+ const [t, n] = import_react.useState(true), [r, s] = import_react.useState(false), { t: c } = qs(), a = import_react.useRef(null);
2363
+ return import_react.useLayoutEffect(() => {
2364
+ a.current && a.current.scrollHeight > Ui && s(true);
2365
+ }, [e]), /* @__PURE__ */ yi("div", { children: [
2366
+ /* @__PURE__ */ ae("div", { ref: a, className: `${t ? "csdk-line-clamp-5" : ""} csdk-whitespace-pre-wrap`, children: e }),
2367
+ r && /* @__PURE__ */ ae("div", { className: "csdk-mt-3 csdk-flex csdk-justify-end", children: /* @__PURE__ */ ae("div", {
2368
+ className: "csdk-text-ai-xs csdk-text-text-link csdk-cursor-pointer",
2369
+ onClick: () => n((p) => !p),
2370
+ children: c(t ? "ai.buttons.readMore" : "ai.buttons.collapse")
2371
+ }) })
2372
+ ] });
2373
+ }
2374
+ function Qi({ nlgRequest: e }) {
2375
+ const { data: t, isLoading: n, isError: r } = He(e), { t: s } = qs();
2376
+ return n ? /* @__PURE__ */ ae(at, {}) : r ? /* @__PURE__ */ ae(se2, { align: "left", children: s("ai.errors.unexpected") }) : /* @__PURE__ */ ae(se2, { align: "full", children: /* @__PURE__ */ ae(ut, { text: t != null ? t : s("ai.errors.insightsNotAvailable") }) });
2377
+ }
2378
+ var Tt2 = nr.div`
2379
+ display: flex;
2380
+ align-items: center;
2381
+ column-gap: 10px;
2382
+ `;
2383
+ var _i = (e) => !!e && "aeiou".includes(e[0]);
2384
+ function Ki({ data: e, alwaysShowFeedback: t }) {
2385
+ const { chatMode: n = "analyze", enableInsights: r } = ne(), { themeSettings: s } = yt(), { queryTitle: c, chartRecommendations: a, jaql: p, userMsg: d, clarification: h = "" } = e;
2386
+ console.debug(`JAQL for ${c}`, p), console.debug(`chart recommendations for ${c}`, a);
2387
+ const m = "chartType" in a ? a.chartType : "table";
2388
+ let x;
2389
+ _i(m) ? x = `an ${m}` : x = `a ${m}`, m !== "table" && (x += " chart");
2390
+ const i = p.datasource.title, [u, l] = import_react.useState(false), f = import_react.useCallback(() => {
2391
+ l((k) => !k);
2392
+ }, []), g = {
2393
+ jaql: {
2394
+ datasource: p.datasource,
2395
+ metadata: p.metadata
2396
+ }
2397
+ }, y = n === "analyze", v = `${d}${d && h ? `
2398
+ ` : ""}${h}`;
2399
+ return /* @__PURE__ */ yi(Rc, { children: [
2400
+ /* @__PURE__ */ ae(Xe, {
2401
+ sourceId: i,
2402
+ data: e,
2403
+ type: "chats/nlq",
2404
+ buttonVisibility: t ? "always" : "onHover",
2405
+ renderContent: (k) => /* @__PURE__ */ yi(Rc, { children: [
2406
+ /* @__PURE__ */ yi(Tt2, { children: [
2407
+ /* @__PURE__ */ ae(hn, { align: "left", theme: s, children: v || `Here's ${x} showing ${xi(c)}.` }),
2408
+ k
2409
+ ] }),
2410
+ y && /* @__PURE__ */ ae(Ai, { content: e })
2411
+ ] })
2412
+ }),
2413
+ r && /* @__PURE__ */ ae(Xe, {
2414
+ sourceId: i,
2415
+ data: g,
2416
+ type: "nlg/queryResult",
2417
+ buttonVisibility: u ? "onHover" : "never",
2418
+ renderContent: (k) => /* @__PURE__ */ yi(Rc, { children: [
2419
+ /* @__PURE__ */ yi(Tt2, { children: [
2420
+ /* @__PURE__ */ ae(ki, { onClick: f }),
2421
+ k
2422
+ ] }),
2423
+ u && /* @__PURE__ */ ae(Qi, { nlgRequest: g })
2424
+ ] })
2425
+ })
2426
+ ] });
2427
+ }
2428
+ function Xi({ message: e, isLastMessage: t }) {
2429
+ if (st(e)) {
2430
+ const r = JSON.parse(e.content);
2431
+ return /* @__PURE__ */ ae(Ki, { data: r, alwaysShowFeedback: t });
2432
+ }
2433
+ const n = Er(e) ? JSON.parse(e.content).answer : e.content;
2434
+ return /* @__PURE__ */ ae(se2, { align: e.role === "user" ? "right" : "left", children: n });
2435
+ }
2436
+ var Ji = import_react.memo(Xi);
2437
+ var Yi = ({
2438
+ error: e,
2439
+ displayMessage: t
2440
+ }) => (console.debug("Unexpected error occurred when resolving a chat message:", e), /* @__PURE__ */ ae(se2, { align: "left", children: t }));
2441
+ function e1({ messages: e }) {
2442
+ const { t } = qs();
2443
+ return /* @__PURE__ */ ae(Rc, { children: e.map((n, r) => /* @__PURE__ */ ae(Pw, {
2444
+ fallbackRender: (s) => Yi(L(M({}, s), {
2445
+ displayMessage: t("ai.errors.unexpected")
2446
+ })),
2447
+ children: /* @__PURE__ */ ae(Ji, { message: n, isLastMessage: r === e.length - 1 }, r)
2448
+ }, r)) });
2449
+ }
2450
+ function mn({ color: e }) {
2451
+ return /* @__PURE__ */ ae("svg", {
2452
+ width: "100%",
2453
+ height: "100%",
2454
+ viewBox: "0 0 4 8",
2455
+ fill: "none",
2456
+ xmlns: "http://www.w3.org/2000/svg",
2457
+ children: /* @__PURE__ */ ae("path", {
2458
+ d: "M3.87815 0.825307C4.05781 0.615598 4.03345 0.299954 3.82374 0.120297C3.61403 -0.05936 3.29838 -0.034998 3.11873 0.174711L0.120288 3.67471C-0.040096 3.86192 -0.040096 4.1381 0.120288 4.32531L3.11873 7.82531C3.29838 8.03502 3.61403 8.05938 3.82374 7.87972C4.03345 7.70006 4.05781 7.38442 3.87815 7.17471L1.15839 4.00001L3.87815 0.825307Z",
2459
+ fill: e
2460
+ })
2461
+ });
2462
+ }
2463
+ function t1({ onClick: e, color: t }) {
2464
+ return /* @__PURE__ */ ae("div", {
2465
+ "aria-label": "go back",
2466
+ className: "csdk-w-5 csdk-h-5 csdk-flex csdk-p-[4px] csdk-ml-[6px] csdk-cursor-pointer",
2467
+ onClick: e,
2468
+ children: /* @__PURE__ */ ae(mn, { color: t })
2469
+ });
2470
+ }
2471
+ function n1() {
2472
+ const { themeSettings: e } = yt();
2473
+ return /* @__PURE__ */ ae("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ ae("path", {
2474
+ fillRule: "evenodd",
2475
+ clipRule: "evenodd",
2476
+ d: "M15.1747 9.1203L12 11.8401L8.82529 9.1203C8.61558 8.94064 8.29994 8.965 8.12028 9.17471C7.94062 9.38442 7.96498 9.70006 8.17469 9.87972L11.6747 12.8782C11.8619 13.0385 12.1381 13.0385 12.3253 12.8782L15.8253 9.87972C16.035 9.70006 16.0594 9.38442 15.8797 9.17471C15.7 8.965 15.3844 8.94064 15.1747 9.1203ZM15.8797 12.1731C15.7 11.9634 15.3844 11.9391 15.1747 12.1187L12 14.8385L8.82529 12.1187C8.61558 11.9391 8.29994 11.9634 8.12028 12.1731C7.94062 12.3829 7.96498 12.6985 8.17469 12.8782L11.6747 15.8766C11.8619 16.037 12.1381 16.037 12.3253 15.8766L15.8253 12.8782C16.035 12.6985 16.0594 12.3829 15.8797 12.1731Z",
2477
+ fill: e.aiChat.primaryTextColor
2478
+ }) });
2479
+ }
2480
+ var r1 = (e, t) => {
2481
+ const n = new te(e);
2482
+ return n.alpha = t, n;
2483
+ };
2484
+ var o1 = nr.div`
2485
+ font-size: inherit;
2486
+ line-height: inherit;
2487
+ padding-left: 8px;
2488
+ padding-right: 8px;
2489
+ padding-top: 4px;
2490
+ border-radius: 16px;
2491
+ margin-bottom: 4px;
2492
+ box-shadow: ${({ theme: e }) => `0 4px 8px 0 ${r1(e.aiChat.primaryTextColor, 0.2)}`};
2493
+ cursor: pointer;
2494
+ color: ${({ theme: e }) => e.aiChat.clickableMessages.textColor};
2495
+ background-color: ${({ theme: e }) => e.aiChat.clickableMessages.backgroundColor};
2496
+
2497
+ &:hover {
2498
+ color: ${({ theme: e }) => e.aiChat.clickableMessages.hover.textColor};
2499
+ background-color: ${({ theme: e }) => e.aiChat.clickableMessages.hover.backgroundColor};
2500
+ box-shadow: none;
2501
+ `;
2502
+ var i1 = ({ onClick: e }) => {
2503
+ const { themeSettings: t } = yt();
2504
+ return /* @__PURE__ */ ae(o1, { theme: t, onClick: e, children: /* @__PURE__ */ ae(n1, {}) });
2505
+ };
2506
+ var s1 = ({ isVisible: e, onClick: t, anchorElement: n }) => /* @__PURE__ */ ae(mh, { anchorEl: n, open: e, placement: "top", sx: { zIndex: 2 }, children: /* @__PURE__ */ ae(i1, { onClick: t }) });
2507
+ var a1 = nr.button`
2508
+ font-size: inherit;
2509
+ line-height: inherit;
2510
+ box-sizing: border-box;
2511
+ border-width: 1px;
2512
+ padding-left: 1rem;
2513
+ padding-right: 1rem;
2514
+ padding-top: 0.5rem;
2515
+ padding-bottom: 0.5rem;
2516
+ cursor: pointer;
2517
+ text-align: left;
2518
+ max-width: 85%;
2519
+
2520
+ font-family: ${({ theme: e }) => e.typography.fontFamily};
2521
+ color: ${({ theme: e }) => e.aiChat.suggestions.textColor};
2522
+ background-color: ${({ theme: e }) => e.aiChat.suggestions.backgroundColor};
2523
+ border: ${({ theme: e }) => e.aiChat.suggestions.border};
2524
+ border-radius: ${({ theme: e }) => e.aiChat.suggestions.borderRadius};
2525
+ &:hover {
2526
+ background-color: ${({ theme: e }) => e.aiChat.suggestions.hover.backgroundColor};
2527
+ color: ${({ theme: e }) => e.aiChat.suggestions.hover.textColor};
2528
+ }
2529
+
2530
+ ${({ theme: e }) => {
2531
+ const { borderGradient: t, borderRadius: n } = e.aiChat.suggestions;
2532
+ if (t) {
2533
+ const [r, s] = t;
2534
+ return wg`
2535
+ border: none;
2536
+ position: relative;
2537
+ border-radius: ${n};
2538
+ &:before {
2539
+ content: '';
2540
+ position: absolute;
2541
+ top: 0;
2542
+ left: 0;
2543
+ right: 0;
2544
+ bottom: 0;
2545
+ border-radius: ${n};
2546
+ border: 1px solid transparent;
2547
+ background: linear-gradient(30deg, ${r}, ${s}) border-box;
2548
+ -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
2549
+ -webkit-mask-composite: destination-out;
2550
+ mask-composite: exclude;
2551
+ }
2552
+ `;
2553
+ }
2554
+ return "";
2555
+ }}
2556
+ `;
2557
+ function $t({ question: e, onClick: t }) {
2558
+ const { themeSettings: n } = yt();
2559
+ return /* @__PURE__ */ ae(a1, { onClick: t, theme: n, children: e });
2560
+ }
2561
+ var l1 = nr.div`
2562
+ display: flex;
2563
+ flex-direction: column;
2564
+ align-items: flex-start;
2565
+ row-gap: ${({ theme: e }) => e.aiChat.suggestions.gap};
2566
+ `;
2567
+ function c1({ questions: e, onSelection: t }) {
2568
+ const { t: n } = qs(), [r, s] = import_react.useState(true), c = import_react.useMemo(() => r && e.length > 5 ? e.slice(0, 4) : e, [e, r]), { themeSettings: a } = yt();
2569
+ return /* @__PURE__ */ yi(l1, { "aria-label": "list of suggested questions", theme: a, children: [
2570
+ c.map((p) => /* @__PURE__ */ ae($t, { question: p, onClick: () => t(p) }, p)),
2571
+ c.length < e.length && /* @__PURE__ */ ae($t, { question: n("ai.buttons.seeMore"), onClick: () => s(false) })
2572
+ ] });
2573
+ }
2574
+ var d1 = nr.div`
2575
+ width: 283px;
2576
+ height: 32px;
2577
+ border-radius: 10px;
2578
+ background: ${({ theme: e }) => {
2579
+ const [t, n] = e.aiChat.suggestions.loadingGradient;
2580
+ return `linear-gradient(
2581
+ to right,
2582
+ ${t} 0%,
2583
+ ${n} 50%,
2584
+ ${t} 100%
2585
+ )`;
2586
+ }};
2587
+ background-size: 200% auto;
2588
+ animation: gradient 2s linear infinite;
2589
+
2590
+ @keyframes gradient {
2591
+ 0% {
2592
+ background-position: 0 0;
2593
+ }
2594
+ 100% {
2595
+ background-position: -200% 0;
2596
+ }
2597
+ }
2598
+ `;
2599
+ var u1 = nr.div`
2600
+ display: flex;
2601
+ flex-direction: column;
2602
+ row-gap: 1rem;
2603
+ `;
2604
+ function p1() {
2605
+ const { themeSettings: e } = yt();
2606
+ return /* @__PURE__ */ ae(u1, { children: Array.from({ length: 3 }, (t, n) => /* @__PURE__ */ ae(d1, { theme: e }, n)) });
2607
+ }
2608
+ function h1({ questions: e, isLoading: t, onSelection: n }) {
2609
+ const r = e.length > 0, { suggestionsWelcomeText: s } = ne();
2610
+ return t ? /* @__PURE__ */ ae(p1, {}) : r ? /* @__PURE__ */ yi(Rc, { children: [
2611
+ s && /* @__PURE__ */ ae(se2, { align: "left", children: s }),
2612
+ /* @__PURE__ */ ae(c1, { onSelection: n, questions: e })
2613
+ ] }) : null;
2614
+ }
2615
+ var g1 = nr.div`
2616
+ display: flex;
2617
+ flex-direction: column;
2618
+ row-gap: ${({ theme: e }) => e.aiChat.body.gapBetweenMessages};
2619
+ overflow-y: scroll;
2620
+ padding-left: ${({ theme: e }) => e.aiChat.body.paddingLeft};
2621
+ padding-right: ${({ theme: e }) => e.aiChat.body.paddingRight};
2622
+ padding-top: ${({ theme: e }) => e.aiChat.body.paddingTop};
2623
+ padding-bottom: ${({ theme: e }) => e.aiChat.body.paddingBottom};
2624
+ flex: initial;
2625
+ height: 100%;
2626
+ `;
2627
+ var f1 = nr.div`
2628
+ padding-left: ${({ theme: e }) => e.aiChat.footer.paddingLeft};
2629
+ padding-right: ${({ theme: e }) => e.aiChat.footer.paddingRight};
2630
+ padding-top: ${({ theme: e }) => e.aiChat.footer.paddingTop};
2631
+ padding-bottom: ${({ theme: e }) => e.aiChat.footer.paddingBottom};
2632
+ display: flex;
2633
+ flex-direction: column;
2634
+ row-gap: 6px;
2635
+ `;
2636
+ var C1 = nr.div`
2637
+ display: flex;
2638
+ flex-direction: column;
2639
+ row-gap: ${({ theme: e }) => e.aiChat.suggestions.gap};
2640
+ `;
2641
+ function m1({ contextTitle: e, onGoBack: t, contextDetails: n }) {
2642
+ var re, ce, de;
2643
+ const { t: r } = qs(), {
2644
+ enableFollowupQuestions: s,
2645
+ enableHeader: c,
2646
+ numOfRecentPrompts: a,
2647
+ numOfRecommendations: p,
2648
+ customPrompt: d
2649
+ } = ne(), { themeSettings: h } = yt(), {
2650
+ data: m,
2651
+ isLoading: x,
2652
+ isError: i
2653
+ } = Wt({
2654
+ contextTitle: e,
2655
+ count: p,
2656
+ customPrompt: d
2657
+ }), u = import_react.useMemo(() => m == null ? undefined : m.map((P) => P.nlqPrompt), [m]), {
2658
+ history: l,
2659
+ lastNlqResponse: f,
2660
+ isAwaitingResponse: g,
2661
+ sendMessage: y,
2662
+ isLoading: v,
2663
+ chatId: k,
2664
+ lastError: $
2665
+ } = Ir(e, n), { mutate: E, isLoading: T } = Gt(k), [I, H] = import_react.useState(false), [ae2, Q] = import_react.useState(false), j = () => H(true), W = () => H(false), V = () => {
2666
+ E(), W();
2667
+ }, N = import_react.useRef(null), _ = import_react.useRef(null), K = () => {
2668
+ if (!(N != null && N.current))
2669
+ return;
2670
+ const { scrollTop: P, clientHeight: X, scrollHeight: Te } = N.current;
2671
+ if (P === undefined || X === undefined || Te === undefined)
2672
+ return;
2673
+ const $e = Te - P - X > X / 2;
2674
+ ae2 !== $e && Q($e);
2675
+ };
2676
+ import_react.useLayoutEffect(() => {
2677
+ N.current && (N.current.scrollTop = N.current.scrollHeight);
2678
+ }, [l, I, g]);
2679
+ const U = import_react.useRef(null), D = c ? /* @__PURE__ */ ae(Qt2, {
2680
+ ref: U,
2681
+ title: e,
2682
+ leftNav: t && /* @__PURE__ */ ae(t1, { onClick: t, color: h.aiChat.header.textColor }),
2683
+ style: h.aiChat.header
2684
+ }) : null, G = import_react.useMemo(() => [
2685
+ ...new Set(l.filter((P) => P.role === "user").filter((P) => !(u != null && u.includes(P.content))).map((P) => P.content).reverse())
2686
+ ].slice(0, a), [l, a, u]);
2687
+ return ($ == null ? undefined : $.message) === r("ai.errors.chatUnavailable") ? /* @__PURE__ */ yi(Rc, { children: [
2688
+ c && D,
2689
+ /* @__PURE__ */ ae(Ut, { text: $.message })
2690
+ ] }) : /* @__PURE__ */ yi(Rc, { children: [
2691
+ D,
2692
+ /* @__PURE__ */ yi(g1, { ref: N, theme: h, onScroll: K, children: [
2693
+ /* @__PURE__ */ ae(s1, {
2694
+ isVisible: ae2,
2695
+ anchorElement: _.current,
2696
+ onClick: () => {
2697
+ var P, X;
2698
+ (X = N.current) == null || X.scroll({
2699
+ top: (P = N.current) == null ? undefined : P.scrollHeight,
2700
+ behavior: "smooth"
2701
+ });
2702
+ }
2703
+ }),
2704
+ /* @__PURE__ */ ae(Ci, {}),
2705
+ /* @__PURE__ */ ae(h1, {
2706
+ questions: u || [],
2707
+ isLoading: x,
2708
+ onSelection: y
2709
+ }),
2710
+ $ && /* @__PURE__ */ ae(se2, { align: "left", children: $.message }),
2711
+ v ? /* @__PURE__ */ ae(Oe, {}) : /* @__PURE__ */ ae(e1, { messages: l }),
2712
+ s && f && ((ce = (re = f.followupQuestions) == null ? undefined : re.length) != null ? ce : 0) > 0 && /* @__PURE__ */ ae(C1, { theme: h, children: (de = f.followupQuestions) == null ? undefined : de.slice(0, 2).map((P, X) => /* @__PURE__ */ ae(Pe, {
2713
+ align: "left",
2714
+ onClick: () => {
2715
+ y(P);
2716
+ },
2717
+ children: /* @__PURE__ */ ae("div", { className: "csdk-py-[7px] csdk-px-4", children: P })
2718
+ }, X)) }),
2719
+ (g || T) && /* @__PURE__ */ ae(at, {}),
2720
+ I && /* @__PURE__ */ ae(yi2, {
2721
+ onCancel: W,
2722
+ onConfirm: V
2723
+ })
2724
+ ] }),
2725
+ /* @__PURE__ */ yi(f1, { ref: _, theme: h, children: [
2726
+ /* @__PURE__ */ ae(to, {
2727
+ onSendMessage: y,
2728
+ disabled: g || v,
2729
+ onClearHistoryClick: j,
2730
+ suggestions: u || [],
2731
+ recentPrompts: G,
2732
+ isLoading: x || v,
2733
+ recommendationsError: i,
2734
+ onChange: W
2735
+ }),
2736
+ /* @__PURE__ */ ae(Ar, { theme: h })
2737
+ ] })
2738
+ ] });
2739
+ }
2740
+ var b1 = nr.button`
2741
+ font-family: ${({ theme: e }) => e.typography.fontFamily};
2742
+ padding: 20px;
2743
+ border: none;
2744
+ display: flex;
2745
+ align-items: center;
2746
+ justify-content: space-between;
2747
+ text-align: left;
2748
+ border-radius: 15px;
2749
+ box-shadow: 0px 1px 2px rgba(9, 9, 10, 0.1), 0px 2px 4px rgba(9, 9, 10, 0.1);
2750
+ cursor: pointer;
2751
+
2752
+ background-color: ${({ theme: e }) => e.aiChat.dataTopics.items.backgroundColor};
2753
+ `;
2754
+ var y1 = nr.div`
2755
+ font-size: 1.05rem;
2756
+ line-height: 28px;
2757
+
2758
+ color: ${({ theme: e }) => e.aiChat.dataTopics.items.textColor};
2759
+ `;
2760
+ var x1 = nr.div`
2761
+ font-size: ${({ theme: e }) => e.aiChat.primaryFontSize[0]};
2762
+ line-height: ${({ theme: e }) => e.aiChat.primaryFontSize[1]};
2763
+
2764
+ color: ${({ theme: e }) => nv(e.aiChat.dataTopics.items.textColor, 0, 0.5)};
2765
+ `;
2766
+ var v1 = nr.div`
2767
+ width: 16px;
2768
+ height: 16px;
2769
+ transform: rotate(180deg);
2770
+ `;
2771
+ function k1(e) {
2772
+ const { title: t, description: n, onClick: r } = e, { themeSettings: s } = yt();
2773
+ return /* @__PURE__ */ yi(b1, { onClick: r, theme: s, children: [
2774
+ /* @__PURE__ */ yi("div", { children: [
2775
+ /* @__PURE__ */ ae(y1, { theme: s, children: t }),
2776
+ /* @__PURE__ */ ae(x1, { theme: s, children: n })
2777
+ ] }),
2778
+ /* @__PURE__ */ ae(v1, { children: /* @__PURE__ */ ae(mn, { color: s.aiChat.icons.color }) })
2779
+ ] });
2780
+ }
2781
+ var w1 = nr.div`
2782
+ padding: 20px;
2783
+ display: flex;
2784
+ flex-direction: column;
2785
+ gap: 20px;
2786
+ overflow: auto;
2787
+ `;
2788
+ var S1 = nr.div`
2789
+ font-size: 24px;
2790
+ line-height: 32px;
2791
+ font-weight: 600;
2792
+ text-align: center;
2793
+ padding-bottom: 4px;
2794
+
2795
+ color: ${({ theme: e }) => e.aiChat.primaryTextColor};
2796
+ `;
2797
+ var M1 = nr.div`
2798
+ font-size: 15px;
2799
+ line-height: 22px;
2800
+
2801
+ color: ${({ theme: e }) => e.aiChat.primaryTextColor};
2802
+ `;
2803
+ function T1(e) {
2804
+ const { dataTopics: t } = e, { themeSettings: n } = yt(), { t: r } = qs();
2805
+ return /* @__PURE__ */ yi(w1, { children: [
2806
+ /* @__PURE__ */ ae(S1, { theme: n, children: r("ai.dataTopics") }),
2807
+ /* @__PURE__ */ yi(M1, { theme: n, children: [
2808
+ r("ai.chatbotDescription"),
2809
+ /* @__PURE__ */ ae("br", {}),
2810
+ /* @__PURE__ */ ae("br", {}),
2811
+ r("ai.topicSelectPrompt")
2812
+ ] }),
2813
+ t.map((s) => /* @__PURE__ */ F1(k1, L(M({}, s), { key: s.title })))
2814
+ ] });
2815
+ }
2816
+ var $1 = "#000000";
2817
+ var R1 = "#FFFFFF";
2818
+ function L1({ isDarkBackground: e = false }) {
2819
+ const t = e ? R1 : $1;
2820
+ return /* @__PURE__ */ yi("svg", {
2821
+ width: "32",
2822
+ height: "32",
2823
+ viewBox: "0 0 500 504",
2824
+ fill: "none",
2825
+ xmlns: "http://www.w3.org/2000/svg",
2826
+ children: [
2827
+ /* @__PURE__ */ ae("path", {
2828
+ d: "M365.111 69.5654C350.571 69.5654 338.747 81.3237 338.747 95.7826C338.747 110.241 350.571 122 365.111 122C379.651 122 391.476 110.241 391.476 95.7826C391.476 81.3237 379.651 69.5654 365.111 69.5654Z",
2829
+ fill: t
2830
+ }),
2831
+ /* @__PURE__ */ ae("path", {
2832
+ d: "M135.365 147.679C120.824 147.679 109 159.437 109 173.896C109 188.355 120.824 200.113 135.365 200.113C149.905 200.113 161.715 188.355 161.715 173.896C161.715 159.437 149.891 147.679 135.365 147.679Z",
2833
+ fill: t
2834
+ }),
2835
+ /* @__PURE__ */ ae("path", {
2836
+ d: "M135.365 225.789C120.824 225.789 109 237.547 109 252.006C109 266.465 120.824 278.21 135.365 278.21C149.905 278.21 161.715 266.451 161.715 252.006C161.715 237.561 149.891 225.789 135.365 225.789Z",
2837
+ fill: t
2838
+ }),
2839
+ /* @__PURE__ */ ae("path", {
2840
+ d: "M364.401 225.789C349.861 225.789 338.037 237.547 338.037 252.006C338.037 266.465 349.861 278.21 364.401 278.21C378.941 278.21 390.766 266.451 390.766 252.006C390.766 237.561 378.941 225.789 364.401 225.789Z",
2841
+ fill: t
2842
+ }),
2843
+ /* @__PURE__ */ ae("path", {
2844
+ d: "M365.111 303.899C350.571 303.899 338.747 315.658 338.747 330.117C338.747 344.575 350.571 356.334 365.111 356.334C379.651 356.334 391.476 344.575 391.476 330.117C391.476 315.658 379.651 303.899 365.111 303.899Z",
2845
+ fill: t
2846
+ }),
2847
+ /* @__PURE__ */ ae("path", {
2848
+ d: "M135.365 382.013C120.824 382.013 109 393.771 109 408.23C109 422.689 120.824 434.447 135.365 434.447C149.905 434.447 161.715 422.689 161.715 408.23C161.715 393.771 149.891 382.013 135.365 382.013Z",
2849
+ fill: t
2850
+ }),
2851
+ /* @__PURE__ */ ae("path", {
2852
+ d: "M289.516 142.11C271.898 142.11 257.567 156.362 257.567 173.895C257.567 191.429 271.898 205.666 289.516 205.666C307.135 205.666 321.466 191.415 321.466 173.895C321.466 156.375 307.135 142.11 289.516 142.11Z",
2853
+ fill: t
2854
+ }),
2855
+ /* @__PURE__ */ ae("path", {
2856
+ d: "M210.96 142.11C193.342 142.11 179.01 156.362 179.01 173.895C179.01 191.429 193.342 205.666 210.96 205.666C228.578 205.666 242.909 191.415 242.909 173.895C242.909 156.375 228.578 142.11 210.96 142.11Z",
2857
+ fill: t
2858
+ }),
2859
+ /* @__PURE__ */ ae("path", {
2860
+ d: "M289.516 220.224C271.898 220.224 257.567 234.475 257.567 252.008C257.567 269.542 271.898 283.779 289.516 283.779C307.135 283.779 321.466 269.528 321.466 252.008C321.466 234.489 307.135 220.224 289.516 220.224Z",
2861
+ fill: t
2862
+ }),
2863
+ /* @__PURE__ */ ae("path", {
2864
+ d: "M210.96 220.224C193.342 220.224 179.01 234.475 179.01 252.008C179.01 269.542 193.342 283.779 210.96 283.779C228.578 283.779 242.909 269.528 242.909 252.008C242.909 234.489 228.578 220.224 210.96 220.224Z",
2865
+ fill: t
2866
+ }),
2867
+ /* @__PURE__ */ ae("path", {
2868
+ d: "M289.516 298.334C271.898 298.334 257.567 312.585 257.567 330.105C257.567 347.624 271.898 361.889 289.516 361.889C307.135 361.889 321.466 347.638 321.466 330.105C321.466 312.571 307.135 298.334 289.516 298.334Z",
2869
+ fill: t
2870
+ }),
2871
+ /* @__PURE__ */ ae("path", {
2872
+ d: "M210.96 298.334C193.342 298.334 179.01 312.585 179.01 330.105C179.01 347.624 193.342 361.889 210.96 361.889C228.578 361.889 242.909 347.638 242.909 330.105C242.909 312.571 228.578 298.334 210.96 298.334Z",
2873
+ fill: t
2874
+ }),
2875
+ /* @__PURE__ */ ae("path", {
2876
+ d: "M289.516 64C271.898 64 257.567 78.2512 257.567 95.7847C257.567 113.318 271.898 127.555 289.516 127.555C307.135 127.555 321.466 113.304 321.466 95.7847C321.466 78.265 307.135 64 289.516 64Z",
2877
+ fill: t
2878
+ }),
2879
+ /* @__PURE__ */ ae("path", {
2880
+ d: "M210.96 64C193.342 64 179.01 78.2512 179.01 95.7847C179.01 113.318 193.342 127.555 210.96 127.555C228.578 127.555 242.909 113.304 242.909 95.7847C242.909 78.265 228.578 64 210.96 64Z",
2881
+ fill: t
2882
+ }),
2883
+ /* @__PURE__ */ ae("path", {
2884
+ d: "M289.516 376.442C271.898 376.442 257.567 390.694 257.567 408.213C257.567 425.733 271.898 439.998 289.516 439.998C307.135 439.998 321.466 425.747 321.466 408.213C321.466 390.68 307.135 376.442 289.516 376.442Z",
2885
+ fill: t
2886
+ }),
2887
+ /* @__PURE__ */ ae("path", {
2888
+ d: "M210.96 376.442C193.342 376.442 179.01 390.694 179.01 408.213C179.01 425.733 193.342 439.998 210.96 439.998C228.578 439.998 242.909 425.747 242.909 408.213C242.909 390.68 228.578 376.442 210.96 376.442Z",
2889
+ fill: t
2890
+ })
2891
+ ]
2892
+ });
2893
+ }
2894
+ var E1 = nr.div`
2895
+ margin-left: 14px;
2896
+ margin-top: 3px;
2897
+ `;
2898
+ var I1 = nr.div`
2899
+ display: flex;
2900
+ flex-direction: column;
2901
+ justify-content: top;
2902
+ overflow: hidden;
2903
+ height: 100%;
2904
+
2905
+ background-color: ${({ theme: e }) => e.aiChat.dataTopics.backgroundColor};
2906
+ `;
2907
+ function N1({ dataTopicsList: e, onDataTopicClick: t }) {
2908
+ const { enableHeader: n } = ne(), { themeSettings: r } = yt(), { t: s } = qs(), c = import_react.useMemo(() => e == null ? undefined : e.map((p) => ({
2909
+ title: p,
2910
+ onClick: () => t(p)
2911
+ })), [e, t]), a = ir(qe(r.aiChat.header.backgroundColor)) > 0.5;
2912
+ return /* @__PURE__ */ yi(Rc, { children: [
2913
+ n ? /* @__PURE__ */ ae(Qt2, {
2914
+ title: s("ai.analyticsChatbot"),
2915
+ leftNav: /* @__PURE__ */ ae(E1, { children: /* @__PURE__ */ ae(L1, { isDarkBackground: a }) }),
2916
+ style: r.aiChat.header
2917
+ }) : null,
2918
+ /* @__PURE__ */ yi(I1, { theme: r, children: [
2919
+ !c && /* @__PURE__ */ ae(Oe, {}),
2920
+ c && /* @__PURE__ */ ae(T1, { dataTopics: c })
2921
+ ] })
2922
+ ] });
2923
+ }
2924
+ function P1() {
2925
+ const [e, t] = import_react.useState(), [n, r] = import_react.useState(), { data: s, fetchStatus: c } = Mr(), { dataTopicsList: a, contextDetails: p } = ne(), { t: d } = qs(), h = d("ai.errors.noAvailableDataTopics"), m = import_react.useCallback((l) => {
2926
+ l.length ? l.length === 1 && (r(undefined), t(l[0])) : r(h);
2927
+ }, [h]), x = import_react.useMemo(() => {
2928
+ if (s && c === "idle") {
2929
+ const f = (a != null && a.length ? s == null ? undefined : s.filter((g) => a == null ? undefined : a.includes(g.title)) : s).map((g) => g.title);
2930
+ return m(f), f;
2931
+ }
2932
+ return [];
2933
+ }, [s, c, a, m]), i = H2e(), u = import_react.useCallback(() => {
2934
+ r(undefined), i.invalidateQueries(["getDataTopics"]);
2935
+ }, [i]);
2936
+ return n ? /* @__PURE__ */ ae(Ut, {
2937
+ text: n,
2938
+ action: { text: d("ai.buttons.refresh"), onClick: u }
2939
+ }) : x.length === 1 && !e ? /* @__PURE__ */ ae(Oe, {}) : e ? /* @__PURE__ */ ae(m1, {
2940
+ contextTitle: e,
2941
+ contextDetails: p,
2942
+ onGoBack: x.length === 1 ? undefined : () => t(undefined)
2943
+ }) : /* @__PURE__ */ ae(N1, {
2944
+ dataTopicsList: x,
2945
+ onDataTopicClick: (l) => t(l)
2946
+ });
2947
+ }
2948
+ var ts = Kd({
2949
+ componentName: "Chatbot"
2950
+ })((e) => {
2951
+ const { width: t, height: n, config: r } = e, { themeSettings: s } = yt();
2952
+ return /* @__PURE__ */ ae(wr, { value: r != null ? r : {}, children: /* @__PURE__ */ ae(Hr, {
2953
+ id: "csdk-chatbot-frame",
2954
+ width: t,
2955
+ height: n,
2956
+ theme: s,
2957
+ tabIndex: 0,
2958
+ children: /* @__PURE__ */ ae(P1, {})
2959
+ }) });
2960
+ });
2961
+ var ns = Kd({
2962
+ componentName: "GetNlgInsights"
2963
+ })(function(t) {
2964
+ const { data: n, isLoading: r, isError: s } = He(t), { t: c } = qs();
2965
+ if (s)
2966
+ return /* @__PURE__ */ ae(Rc, { children: c("ai.errors.unexpected") });
2967
+ const a = n != null ? n : c("ai.errors.insightsNotAvailable");
2968
+ return /* @__PURE__ */ ae(ut, { text: r ? "Loading..." : a });
2969
+ });
2970
+ function B1({ theme: e }) {
2971
+ const t = e.general.brandColor;
2972
+ return /* @__PURE__ */ yi("svg", {
2973
+ xmlns: "http://www.w3.org/2000/svg",
2974
+ width: "24",
2975
+ height: "24",
2976
+ viewBox: "-2 -3 24 24",
2977
+ fill: "none",
2978
+ children: [
2979
+ /* @__PURE__ */ ae("path", {
2980
+ fillRule: "evenodd",
2981
+ clipRule: "evenodd",
2982
+ d: "M12.0533 3.62671e-06C12.0557 -9.45649e-05 12.0577 0.00181346 12.0578 0.00422597C12.1926 3.98958 15.4422 7.18501 19.4491 7.23273C19.4494 7.23273 19.4496 7.23296 19.4496 7.23325C19.4496 7.23356 19.4494 7.23381 19.4491 7.23382C15.3869 7.2822 12.1029 10.5659 12.054 14.628C12.054 14.6283 12.0538 14.6285 12.0535 14.6285C12.0532 14.6285 12.0529 14.6283 12.0529 14.628C12.0047 10.6218 8.80995 7.37281 4.8253 7.23765C4.82287 7.23757 4.82095 7.23552 4.82105 7.2331C4.82114 7.23081 4.82301 7.22897 4.8253 7.2289C8.75488 7.0956 11.9163 3.93392 12.0491 0.004224C12.0492 0.00194873 12.051 9.62326e-05 12.0533 3.62671e-06Z",
2983
+ fill: t
2984
+ }),
2985
+ /* @__PURE__ */ ae("path", {
2986
+ fillRule: "evenodd",
2987
+ clipRule: "evenodd",
2988
+ d: "M9.0973 12.7759C7.1172 12.7236 5.51984 11.1352 5.45331 9.1587C5.45326 9.1573 5.45209 9.1562 5.4507 9.15625C5.44938 9.1563 5.44832 9.15738 5.44828 9.15869C5.38204 11.1266 3.79825 12.7098 1.83009 12.7751C1.82969 12.7752 1.82936 12.7755 1.82935 12.7759C1.82933 12.7763 1.82967 12.7767 1.83009 12.7767C3.8264 12.8429 5.42727 14.4708 5.45019 16.4778C5.45019 16.4781 5.45045 16.4784 5.45077 16.4784C5.45111 16.4784 5.4514 16.4781 5.4514 16.4778C5.47442 14.4622 7.089 12.8289 9.0973 12.7759Z",
2989
+ fill: t
2990
+ }),
2991
+ /* @__PURE__ */ ae("path", {
2992
+ fillRule: "evenodd",
2993
+ clipRule: "evenodd",
2994
+ d: "M2.8778 2.15728C2.87779 2.15701 2.8779 2.15674 2.8781 2.15655C2.87874 2.15591 2.87983 2.15638 2.87981 2.15728C2.87934 2.17566 2.87911 2.1941 2.87911 2.21259C2.87911 3.36434 3.78842 4.30371 4.92829 4.35195C3.78842 4.40019 2.87911 5.33955 2.87911 6.4913C2.87911 6.56284 2.88262 6.63356 2.88947 6.7033C2.89045 6.7133 2.8783 6.71912 2.87119 6.71202C2.86894 6.70976 2.86781 6.70662 2.86813 6.70344C2.87499 6.63366 2.8785 6.56289 2.8785 6.4913C2.8785 5.33956 1.96921 4.40021 0.829346 4.35195C1.96921 4.30369 2.8785 3.36433 2.8785 2.21259C2.8785 2.1941 2.87827 2.17566 2.8778 2.15728ZM5.16566 4.35485C5.16834 4.35503 5.16981 4.35179 5.16791 4.34989C5.16732 4.3493 5.1665 4.34899 5.16567 4.34905C5.14802 4.35023 5.13031 4.3512 5.11255 4.35195C5.13031 4.3527 5.14801 4.35367 5.16566 4.35485Z",
2995
+ fill: t
2996
+ })
2997
+ ]
2998
+ });
2999
+ }
3000
+ var F12 = nr.div`
3001
+ display: flex;
3002
+ flex-direction: row;
3003
+ align-items: center;
3004
+ gap: 10px;
3005
+ margin: 24px 0;
3006
+ max-width: 640px;
3007
+ color: ${({ theme: e }) => e.chart.textColor};
3008
+ background-color: ${({ theme: e }) => e.chart.backgroundColor};
3009
+ `;
3010
+ var H1 = nr.div`
3011
+ align-self: flex-start;
3012
+ `;
3013
+ var O1 = ({ summary: e, nlgRequest: t }) => {
3014
+ const { themeSettings: n } = yt();
3015
+ return /* @__PURE__ */ ae(Xe, {
3016
+ sourceId: t.jaql.datasource.title,
3017
+ data: t,
3018
+ type: "chart/insights",
3019
+ buttonVisibility: "always",
3020
+ renderContent: (r) => /* @__PURE__ */ yi(F12, { theme: n, children: [
3021
+ /* @__PURE__ */ ae(H1, { theme: n, children: /* @__PURE__ */ ae(B1, { theme: n }) }),
3022
+ /* @__PURE__ */ ae(ut, { text: e }),
3023
+ r
3024
+ ] })
3025
+ });
3026
+ };
3027
+ var D1 = (e, t) => e.nlqResponse.timestamp === t.nlqResponse.timestamp;
3028
+ var rs = import_react.memo(function({
3029
+ nlqResponse: t,
3030
+ onDataReady: n,
3031
+ styleOptions: r,
3032
+ widgetProps: s,
3033
+ filters: c = []
3034
+ }) {
3035
+ const a = t.timestamp, p = import_react.useMemo(() => L(M({}, t), {
3036
+ queryTitle: $ye(t.queryTitle)
3037
+ }), [a]), { connectToWidgetProps: d } = owe({
3038
+ initialFilters: c
3039
+ }), [h, m] = import_react.useState(null);
3040
+ import_react.useEffect(() => {
3041
+ const g = Dt(p, {
3042
+ useCustomizedStyleOptions: true
3043
+ });
3044
+ if (!g)
3045
+ m(null);
3046
+ else {
3047
+ r && g.styleOptions && (g.styleOptions = se(g.styleOptions, r));
3048
+ const y = d(g, {
3049
+ shouldAffectFilters: false,
3050
+ applyMode: "filter"
3051
+ });
3052
+ m(y);
3053
+ }
3054
+ }, [p, d, r]);
3055
+ const x = import_react.useMemo(() => {
3056
+ const g = h && cn(h) ? Xg(h == null ? undefined : h.filters) : [], y = p.jaql.metadata.filter((v) => !v.jaql.filter).concat(g.filter((v) => !v.config.disabled).map((v) => v.jaql()));
3057
+ return L(M({}, p), {
3058
+ jaql: L(M({}, p.jaql), { metadata: y }),
3059
+ verbosity: "Low"
3060
+ });
3061
+ }, [p, h]), { data: i, isLoading: u, isError: l } = He(x);
3062
+ if (u || !h)
3063
+ return /* @__PURE__ */ ae(at, {});
3064
+ if (!cn(h))
3065
+ return /* @__PURE__ */ ae(Rc, {});
3066
+ const f = s || L(M({}, h), {
3067
+ styleOptions: r,
3068
+ onDataReady: n
3069
+ });
3070
+ return /* @__PURE__ */ ae(ewe, L(M({}, f), {
3071
+ highlightSelectionDisabled: true,
3072
+ topSlot: i && !l && /* @__PURE__ */ ae(O1, { nlgRequest: x, summary: i })
3073
+ }));
3074
+ }, D1);
3075
+ var A1 = new nwe({
3076
+ defaultOptions: {
3077
+ queries: {
3078
+ refetchOnWindowFocus: false,
3079
+ refetchOnMount: false
3080
+ }
3081
+ }
3082
+ });
3083
+ function os({
3084
+ children: e,
3085
+ context: t
3086
+ }) {
3087
+ return /* @__PURE__ */ ae(At, { children: /* @__PURE__ */ ae(nt.Provider, { value: t == null ? undefined : t.api, children: /* @__PURE__ */ ae(iwe, { client: A1, children: e }) }) });
3088
+ }
3089
+ function q1(e) {
3090
+ const t = vK(e), { attributes: n, measures: r } = iee(t);
3091
+ return { attributes: n, measures: r };
3092
+ }
3093
+ function z1(e, t, n) {
3094
+ const { dataSource: r, dataOptions: s, chartType: c, filters: a } = e, p = r != null ? r : t;
3095
+ if (!p)
3096
+ throw new Error("dataSource is required. Provide it in ChartWidgetProps or as defaultDataSource parameter.");
3097
+ const { attributes: d, measures: h } = sv(c) ? q1(s) : DQ(s, c);
3098
+ return {
3099
+ dataSource: p,
3100
+ dimensions: d,
3101
+ measures: h,
3102
+ filters: a,
3103
+ verbosity: n
3104
+ };
3105
+ }
3106
+ function is(e, t, n) {
3107
+ return J(this, null, function* () {
3108
+ var a;
3109
+ if (!cn(e))
3110
+ throw new Error("Only ChartWidgetProps are supported for now");
3111
+ const r = z1(e, n == null ? undefined : n.defaultDataSource, n == null ? undefined : n.verbosity), s = qt(r), c = yield t.post("api/v2/ai/nlg/queryResult", s);
3112
+ if (!((a = c == null ? undefined : c.data) != null && a.answer))
3113
+ throw new Error("Invalid response from NLG insights API");
3114
+ return c.data.answer;
3115
+ });
3116
+ }
3117
+ (function() {
3118
+ var t;
3119
+ try {
3120
+ if (typeof document != "undefined") {
3121
+ var e = document.createElement("style");
3122
+ e.nonce = (t = document.head.querySelector("meta[property=csp-nonce]")) == null ? undefined : t.content, e.appendChild(document.createTextNode('@charset "UTF-8";.csdk-boxplot-tooltip-row{display:flex;justify-content:space-between}.csdk-boxplot-tooltip-row>*{margin-right:10px}.csdk-boxplot-tooltip-row>*:last-child{margin-right:0}.csdk-treemap-tooltip-wrapper{min-width:210px;color:#acacac;font-size:14px;line-height:16px;background:#fff;border-radius:10px;overflow:hidden;margin-right:-1px;padding-bottom:10px}.csdk-treemap-tooltip-level{display:flex;align-items:center;position:relative;padding:8px;font-size:14px;border-bottom:1px solid #ccc}.csdk-treemap-tooltip-level span{padding:0 2px}.csdk-treemap-tooltip-value{padding:10px 10px 0;font-size:12px;line-height:16px}.highcharts-sunburst-series.highcharts-legend-item{pointer-events:none!important}[class|=csdk],[class|=csdk]:before,[class|=csdk]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#d5d5d5;font-family:inherit}.csdk-accessible button:focus-visible,.csdk-accessible a:focus-visible,.csdk-accessible textarea:focus-visible,.csdk-accessible select:focus-visible,.csdk-accessible input:focus-visible,.csdk-accessible [tabindex]:focus-visible{outline:-webkit-focus-ring-color auto 1px}.csdk-accessible .MuiTouchRipple-root{display:none}:root{--csdk-tw-border-spacing-x: 0;--csdk-tw-border-spacing-y: 0;--csdk-tw-translate-x: 0;--csdk-tw-translate-y: 0;--csdk-tw-rotate: 0;--csdk-tw-skew-x: 0;--csdk-tw-skew-y: 0;--csdk-tw-scale-x: 1;--csdk-tw-scale-y: 1;--csdk-tw-pan-x: ;--csdk-tw-pan-y: ;--csdk-tw-pinch-zoom: ;--csdk-tw-scroll-snap-strictness: proximity;--csdk-tw-gradient-from-position: ;--csdk-tw-gradient-via-position: ;--csdk-tw-gradient-to-position: ;--csdk-tw-ordinal: ;--csdk-tw-slashed-zero: ;--csdk-tw-numeric-figure: ;--csdk-tw-numeric-spacing: ;--csdk-tw-numeric-fraction: ;--csdk-tw-ring-inset: ;--csdk-tw-ring-offset-width: 0px;--csdk-tw-ring-offset-color: #fff;--csdk-tw-ring-color: rgb(59 130 246 / .5);--csdk-tw-ring-offset-shadow: 0 0 #0000;--csdk-tw-ring-shadow: 0 0 #0000;--csdk-tw-shadow: 0 0 #0000;--csdk-tw-shadow-colored: 0 0 #0000;--csdk-tw-blur: ;--csdk-tw-brightness: ;--csdk-tw-contrast: ;--csdk-tw-grayscale: ;--csdk-tw-hue-rotate: ;--csdk-tw-invert: ;--csdk-tw-saturate: ;--csdk-tw-sepia: ;--csdk-tw-drop-shadow: ;--csdk-tw-backdrop-blur: ;--csdk-tw-backdrop-brightness: ;--csdk-tw-backdrop-contrast: ;--csdk-tw-backdrop-grayscale: ;--csdk-tw-backdrop-hue-rotate: ;--csdk-tw-backdrop-invert: ;--csdk-tw-backdrop-opacity: ;--csdk-tw-backdrop-saturate: ;--csdk-tw-backdrop-sepia: ;--csdk-tw-contain-size: ;--csdk-tw-contain-layout: ;--csdk-tw-contain-paint: ;--csdk-tw-contain-style: }::backdrop{--csdk-tw-border-spacing-x: 0;--csdk-tw-border-spacing-y: 0;--csdk-tw-translate-x: 0;--csdk-tw-translate-y: 0;--csdk-tw-rotate: 0;--csdk-tw-skew-x: 0;--csdk-tw-skew-y: 0;--csdk-tw-scale-x: 1;--csdk-tw-scale-y: 1;--csdk-tw-pan-x: ;--csdk-tw-pan-y: ;--csdk-tw-pinch-zoom: ;--csdk-tw-scroll-snap-strictness: proximity;--csdk-tw-gradient-from-position: ;--csdk-tw-gradient-via-position: ;--csdk-tw-gradient-to-position: ;--csdk-tw-ordinal: ;--csdk-tw-slashed-zero: ;--csdk-tw-numeric-figure: ;--csdk-tw-numeric-spacing: ;--csdk-tw-numeric-fraction: ;--csdk-tw-ring-inset: ;--csdk-tw-ring-offset-width: 0px;--csdk-tw-ring-offset-color: #fff;--csdk-tw-ring-color: rgb(59 130 246 / .5);--csdk-tw-ring-offset-shadow: 0 0 #0000;--csdk-tw-ring-shadow: 0 0 #0000;--csdk-tw-shadow: 0 0 #0000;--csdk-tw-shadow-colored: 0 0 #0000;--csdk-tw-blur: ;--csdk-tw-brightness: ;--csdk-tw-contrast: ;--csdk-tw-grayscale: ;--csdk-tw-hue-rotate: ;--csdk-tw-invert: ;--csdk-tw-saturate: ;--csdk-tw-sepia: ;--csdk-tw-drop-shadow: ;--csdk-tw-backdrop-blur: ;--csdk-tw-backdrop-brightness: ;--csdk-tw-backdrop-contrast: ;--csdk-tw-backdrop-grayscale: ;--csdk-tw-backdrop-hue-rotate: ;--csdk-tw-backdrop-invert: ;--csdk-tw-backdrop-opacity: ;--csdk-tw-backdrop-saturate: ;--csdk-tw-backdrop-sepia: ;--csdk-tw-contain-size: ;--csdk-tw-contain-layout: ;--csdk-tw-contain-paint: ;--csdk-tw-contain-style: }.csdk-absolute{position:absolute}.csdk-relative{position:relative}.csdk-left-2{left:.5rem}.csdk-right-0{right:0}.csdk-right-\\[-15px\\]{right:-15px}.csdk-right-\\[-5px\\]{right:-5px}.csdk-right-\\[0px\\]{right:0}.csdk-right-\\[4px\\]{right:4px}.csdk-top-1\\/2{top:50%}.csdk-top-\\[3px\\]{top:3px}.csdk-top-\\[7px\\]{top:7px}.csdk-m-auto{margin:auto}.csdk-m-checkbox,.csdk-m-radio{margin:6px 10px 6px 6px}.csdk-mx-\\[16px\\]{margin-left:16px;margin-right:16px}.csdk-my-1{margin-top:.25rem;margin-bottom:.25rem}.csdk-my-\\[2px\\]{margin-top:2px;margin-bottom:2px}.csdk-my-\\[5px\\]{margin-top:5px;margin-bottom:5px}.csdk-mb-1{margin-bottom:.25rem}.csdk-mb-\\[10px\\]{margin-bottom:10px}.csdk-mb-\\[24px\\]{margin-bottom:24px}.csdk-mb-\\[3px\\]{margin-bottom:3px}.csdk-mb-\\[4px\\]{margin-bottom:4px}.csdk-mb-px{margin-bottom:1px}.csdk-ml-1{margin-left:.25rem}.csdk-ml-1\\.5{margin-left:.375rem}.csdk-ml-2{margin-left:.5rem}.csdk-ml-\\[10px\\]{margin-left:10px}.csdk-ml-\\[4px\\]{margin-left:4px}.csdk-ml-\\[5px\\]{margin-left:5px}.csdk-ml-\\[6px\\]{margin-left:6px}.csdk-ml-\\[7px\\]{margin-left:7px}.csdk-ml-\\[8px\\]{margin-left:8px}.csdk-ml-auto{margin-left:auto}.csdk-mr-2{margin-right:.5rem}.csdk-mr-\\[5px\\]{margin-right:5px}.csdk-mr-\\[7px\\]{margin-right:7px}.csdk-mt-2{margin-top:.5rem}.csdk-mt-3{margin-top:.75rem}.csdk-mt-\\[-2px\\]{margin-top:-2px}.csdk-mt-\\[16px\\]{margin-top:16px}.csdk-mt-\\[2px\\]{margin-top:2px}.csdk-mt-\\[6px\\]{margin-top:6px}.csdk-mt-\\[8px\\]{margin-top:8px}.csdk-box-border{box-sizing:border-box}.csdk-line-clamp-5{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5}.csdk-flex{display:flex}.csdk-grid{display:grid}.csdk-h-5{height:1.25rem}.csdk-h-6{height:1.5rem}.csdk-h-\\[100\\%\\]{height:100%}.csdk-h-\\[10px\\]{height:10px}.csdk-h-\\[18px\\]{height:18px}.csdk-h-\\[20px\\]{height:20px}.csdk-h-\\[245px\\]{height:245px}.csdk-h-button{height:28px}.csdk-h-checkbox{height:12px}.csdk-h-full{height:100%}.csdk-h-radio{height:12px}.csdk-h-screen{height:100vh}.csdk-max-h-32{max-height:8rem}.csdk-min-h-\\[20px\\]{min-height:20px}.csdk-min-h-\\[32px\\]{min-height:32px}.csdk-w-5{width:1.25rem}.csdk-w-\\[100\\%\\]{width:100%}.csdk-w-\\[10px\\]{width:10px}.csdk-w-\\[152px\\]{width:152px}.csdk-w-\\[18px\\]{width:18px}.csdk-w-\\[240px\\]{width:240px}.csdk-w-\\[28px\\]{width:28px}.csdk-w-\\[300px\\]{width:300px}.csdk-w-\\[60px\\]{width:60px}.csdk-w-checkbox{width:12px}.csdk-w-fit{width:-moz-fit-content;width:fit-content}.csdk-w-full{width:100%}.csdk-w-radio{width:12px}.csdk-min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.csdk-max-w-xs{max-width:20rem}.csdk-shrink-0{flex-shrink:0}.csdk-grow{flex-grow:1}.csdk-grow-0{flex-grow:0}.-csdk-translate-y-1\\/2{--csdk-tw-translate-y: -50%;transform:translate(var(--csdk-tw-translate-x),var(--csdk-tw-translate-y)) rotate(var(--csdk-tw-rotate)) skew(var(--csdk-tw-skew-x)) skewY(var(--csdk-tw-skew-y)) scaleX(var(--csdk-tw-scale-x)) scaleY(var(--csdk-tw-scale-y))}.csdk-translate-x-1\\/2{--csdk-tw-translate-x: 50%;transform:translate(var(--csdk-tw-translate-x),var(--csdk-tw-translate-y)) rotate(var(--csdk-tw-rotate)) skew(var(--csdk-tw-skew-x)) skewY(var(--csdk-tw-skew-y)) scaleX(var(--csdk-tw-scale-x)) scaleY(var(--csdk-tw-scale-y))}.-csdk-rotate-90{--csdk-tw-rotate: -90deg;transform:translate(var(--csdk-tw-translate-x),var(--csdk-tw-translate-y)) rotate(var(--csdk-tw-rotate)) skew(var(--csdk-tw-skew-x)) skewY(var(--csdk-tw-skew-y)) scaleX(var(--csdk-tw-scale-x)) scaleY(var(--csdk-tw-scale-y))}.csdk-rotate-45{--csdk-tw-rotate: 45deg;transform:translate(var(--csdk-tw-translate-x),var(--csdk-tw-translate-y)) rotate(var(--csdk-tw-rotate)) skew(var(--csdk-tw-skew-x)) skewY(var(--csdk-tw-skew-y)) scaleX(var(--csdk-tw-scale-x)) scaleY(var(--csdk-tw-scale-y))}.csdk-scale-x-\\[-1\\]{--csdk-tw-scale-x: -1;transform:translate(var(--csdk-tw-translate-x),var(--csdk-tw-translate-y)) rotate(var(--csdk-tw-rotate)) skew(var(--csdk-tw-skew-x)) skewY(var(--csdk-tw-skew-y)) scaleX(var(--csdk-tw-scale-x)) scaleY(var(--csdk-tw-scale-y))}.csdk-transform{transform:translate(var(--csdk-tw-translate-x),var(--csdk-tw-translate-y)) rotate(var(--csdk-tw-rotate)) skew(var(--csdk-tw-skew-x)) skewY(var(--csdk-tw-skew-y)) scaleX(var(--csdk-tw-scale-x)) scaleY(var(--csdk-tw-scale-y))}@keyframes csdk-spin{to{transform:rotate(360deg)}}.csdk-animate-spin{animation:csdk-spin 1s linear infinite}.csdk-cursor-pointer{cursor:pointer}.csdk-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.csdk-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.csdk-flex-row{flex-direction:row}.csdk-flex-col{flex-direction:column}.csdk-flex-wrap{flex-wrap:wrap}.csdk-items-center{align-items:center}.csdk-justify-end{justify-content:flex-end}.csdk-justify-center{justify-content:center}.csdk-justify-between{justify-content:space-between}.csdk-justify-evenly{justify-content:space-evenly}.csdk-gap-1{gap:.25rem}.csdk-gap-2{gap:.5rem}.csdk-gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.csdk-gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.csdk-gap-y-0{row-gap:0px}.csdk-gap-y-0\\.5{row-gap:.125rem}.csdk-gap-y-4{row-gap:1rem}.csdk-self-center{align-self:center}.csdk-overflow-auto{overflow:auto}.csdk-overflow-hidden{overflow:hidden}.\\!csdk-overflow-visible{overflow:visible!important}.csdk-whitespace-nowrap{white-space:nowrap}.csdk-whitespace-pre-wrap{white-space:pre-wrap}.csdk-rounded{border-radius:.25rem}.csdk-rounded-\\[4px\\]{border-radius:4px}.csdk-rounded-full{border-radius:9999px}.csdk-rounded-md{border-radius:.375rem}.csdk-border{border-width:1px}.csdk-border-0{border-width:0px}.csdk-border-input{border-width:1px}.csdk-border-b{border-bottom-width:1px}.csdk-border-l{border-left-width:1px}.csdk-border-l-\\[70px\\]{border-left-width:70px}.csdk-border-r-\\[70px\\]{border-right-width:70px}.csdk-border-t{border-top-width:1px}.csdk-border-t-\\[13px\\]{border-top-width:13px}.csdk-border-solid{border-style:solid}.csdk-border-none{border-style:none}.csdk-border-UI-default{--csdk-tw-border-opacity: 1;border-color:rgb(110 115 125 / var(--csdk-tw-border-opacity))}.csdk-border-\\[\\#e4e4e4\\]{--csdk-tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--csdk-tw-border-opacity))}.csdk-border-transparent{border-color:transparent}.csdk-border-l-\\[transparent\\]{border-left-color:transparent}.csdk-border-r-\\[transparent\\]{border-right-color:transparent}.csdk-bg-background-priority{background-color:#f4f4f8}.csdk-bg-primary-primary{background-color:#ffcb05}.csdk-bg-transparent{background-color:transparent}.csdk-bg-white{--csdk-tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--csdk-tw-bg-opacity))}.csdk-p-1{padding:.25rem}.csdk-p-1\\.5{padding:.375rem}.csdk-p-3{padding:.75rem}.csdk-p-\\[10px\\]{padding:10px}.csdk-p-\\[12px\\]{padding:12px}.csdk-p-\\[20px\\]{padding:20px}.csdk-p-\\[4px\\]{padding:4px}.csdk-p-button{padding:4px 24px}.csdk-p-px{padding:1px}.csdk-px-2{padding-left:.5rem;padding-right:.5rem}.csdk-px-4{padding-left:1rem;padding-right:1rem}.csdk-px-\\[12px\\]{padding-left:12px;padding-right:12px}.csdk-px-\\[20px\\]{padding-left:20px;padding-right:20px}.csdk-px-\\[8px\\]{padding-left:8px;padding-right:8px}.csdk-py-\\[14\\.5px\\]{padding-top:14.5px;padding-bottom:14.5px}.csdk-py-\\[5px\\]{padding-top:5px;padding-bottom:5px}.csdk-py-\\[6px\\]{padding-top:6px;padding-bottom:6px}.csdk-py-\\[7px\\]{padding-top:7px;padding-bottom:7px}.csdk-pb-\\[0px\\]{padding-bottom:0}.csdk-pl-1{padding-left:.25rem}.csdk-pl-2{padding-left:.5rem}.csdk-pl-2\\.5{padding-left:.625rem}.csdk-pl-3{padding-left:.75rem}.csdk-pl-\\[20px\\]{padding-left:20px}.csdk-pr-10{padding-right:2.5rem}.csdk-pt-48{padding-top:12rem}.csdk-text-left{text-align:left}.csdk-text-\\[13px\\]{font-size:13px}.csdk-text-ai-lg{font-size:18px;line-height:22px}.csdk-text-ai-sm{font-size:13px;line-height:18px}.csdk-text-ai-xs{font-size:11px;line-height:18px}.csdk-text-xs{font-size:.75rem;line-height:1rem}.csdk-font-normal{font-weight:400}.csdk-leading-4{line-height:1rem}.csdk-leading-\\[16px\\]{line-height:16px}.csdk-leading-\\[18px\\]{line-height:18px}.csdk-leading-none{line-height:1}.csdk-text-UI-default{--csdk-tw-text-opacity: 1;color:rgb(110 115 125 / var(--csdk-tw-text-opacity))}.csdk-text-semantic-error{color:#e74727}.csdk-text-text-active{color:#262e3d}.csdk-text-text-content{color:#262e3dcc}.csdk-text-text-link{color:#36a3d9}.csdk-text-text-linkButton{--csdk-tw-text-opacity: 1;color:rgb(30 175 243 / var(--csdk-tw-text-opacity))}.csdk-accent-UI-default{accent-color:#6e737d}.csdk-opacity-0{opacity:0}.csdk-opacity-100{opacity:1}.csdk-opacity-50{opacity:.5}.csdk-shadow-md{--csdk-tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--csdk-tw-shadow-colored: 0 4px 6px -1px var(--csdk-tw-shadow-color), 0 2px 4px -2px var(--csdk-tw-shadow-color);box-shadow:var(--csdk-tw-ring-offset-shadow, 0 0 #0000),var(--csdk-tw-ring-shadow, 0 0 #0000),var(--csdk-tw-shadow)}.csdk-shadow-gray-500{--csdk-tw-shadow-color: #6b7280;--csdk-tw-shadow: var(--csdk-tw-shadow-colored)}.csdk-outline-0{outline-width:0px}.csdk-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.csdk-transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.csdk-delay-150{transition-delay:.15s}.csdk-duration-500{transition-duration:.5s}.invalid\\:csdk-border-input:invalid{border-width:1px}.invalid\\:csdk-border-solid:invalid{border-style:solid}.invalid\\:csdk-border-semantic-error:invalid{border-color:#e74727}.hover\\:csdk-border-2:hover{border-width:2px}.hover\\:csdk-bg-interaction-primaryHovered:hover{background-color:#f2b900}.hover\\:csdk-bg-row-hover:hover{background-color:#e0e0e04d}.focus\\:csdk-border-input:focus{border-width:1px}.focus\\:csdk-border-solid:focus{border-style:solid}.focus\\:csdk-border-UI-default:focus{--csdk-tw-border-opacity: 1;border-color:rgb(110 115 125 / var(--csdk-tw-border-opacity))}.disabled\\:csdk-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:csdk-opacity-30:disabled{opacity:.3}._container_1wquj_1{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:0 20px;text-align:center;margin:15px}._container_1wquj_1 ._card_1wquj_11{position:relative;padding:10px;box-shadow:0 2px 4px #0000001a;border-radius:4px;z-index:1;width:100%}._container_1wquj_1 ._text_1wquj_19{font-size:13px;text-align:center;font-weight:700;word-wrap:break-word}.csdk-context-menu-selected-with-dot{position:relative}.csdk-context-menu-selected-with-dot:before{content:"";position:absolute;left:12px;top:calc(50% - 3px);width:6px;height:6px;background-color:#000;border-radius:50%}._wrapper_g0ngm_1{width:100%;height:100%;position:relative}._title_g0ngm_7{font-size:18px;color:#9ea2ab;letter-spacing:normal;text-align:center;position:absolute;width:100%;top:11%}._image_g0ngm_18{width:66.6%;height:100%;margin:0 auto;display:block}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.csdk-map-container .leaflet-interactive{outline:none}._alert_box_10ttx_1{position:absolute;display:flex;justify-content:center;z-index:1;margin-top:1%}._alert_box_10ttx_1 ._content_10ttx_8{background-color:#616161;padding:5px;border-radius:3px;text-align:center}._alert_box_10ttx_1 ._content_10ttx_8 ._alert_10ttx_1{color:#fff;margin:0 8px;line-height:1;font-size:12px}.highcharts-series.highcharts-area-series.area-series--without-pointer-events .highcharts-area{pointer-events:none}.highcharts-heatmap-series .highcharts-point.csdk-highcharts-point-blured{opacity:.5}.csdk-scattermap-tooltip-container{color:#5b6372;margin:4px 6px}.csdk-scattermap-tooltip-content{text-align:left}.csdk-scattermap-tooltip-label{font-size:15px;line-height:18px}.csdk-scattermap-tooltip-category{color:#9ea2ab;padding-right:20px}.csdk-scattermap-tooltip-row{display:flex;justify-content:space-between}.public_Scrollbar_main.public_Scrollbar_mainActive,.public_Scrollbar_main{background-color:#fff;border-left:1px solid #d3d3d3}.fixedDataTable_isRTL .public_Scrollbar_main.public_Scrollbar_mainActive,.fixedDataTable_isRTL .public_Scrollbar_main{border-right:1px solid #d3d3d3;border-left-width:0}.public_Scrollbar_mainOpaque,.public_Scrollbar_mainOpaque.public_Scrollbar_mainActive,.public_Scrollbar_mainOpaque:hover{background-color:#fff}.public_Scrollbar_face:after{background-color:#c2c2c2}.public_Scrollbar_main:hover .public_Scrollbar_face:after,.public_Scrollbar_mainActive .public_Scrollbar_face:after,.public_Scrollbar_faceActive:after{background-color:#7d7d7d}.public_fixedDataTableCell_main{background-color:#fff;border-color:#d3d3d3}.public_fixedDataTableCell_highlighted{background-color:#f4f4f4}.public_fixedDataTableCell_cellContent{padding:8px}.public_fixedDataTableCell_columnResizerKnob{background-color:#0284ff}.public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_wrap1 .public_fixedDataTableCell_cellContent{margin-left:12px}.public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_wrap.public_fixedDataTableCell_cellContent{padding-left:20px}.fixedDataTable_isRTL .public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_wrap1 .public_fixedDataTableCell_cellContent{margin-left:auto;margin-right:12px}.fixedDataTable_isRTL .public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_wrap.public_fixedDataTableCell_cellContent{padding-right:20px}.public_fixedDataTableCell_reordering{z-index:2}.public_fixedDataTableCell_resizeReorderCellContainer{position:fixed;background-color:#f6f7f8;background-image:linear-gradient(#fff,#efefef);border-color:#d3d3d3;border-right-style:solid;border-right-width:1px}.fixedDataTableCellLayout_columnReorderContainer{border-color:#0284ff;background-color:#0000001a;width:12px;margin-right:-12px;float:left;cursor:move}.fixedDataTable_isRTL .fixedDataTableCellLayout_columnReorderContainer{margin-right:auto;margin-left:-12px;float:right}.fixedDataTableCellLayout_columnReorderContainer:after{content:"::";position:absolute;top:50%;left:1px;transform:translateY(-50%)}.fixedDataTable_isRTL .fixedDataTableCellLayout_columnReorderContainer:after{left:auto;right:1px}.public_fixedDataTableColumnResizerLine_main{border-color:#0284ff;width:1px}.public_fixedDataTable_main,.public_fixedDataTable_header,.public_fixedDataTable_hasBottomBorder{border-color:#d3d3d3}.public_fixedDataTable_header .public_fixedDataTableCell_main{font-weight:700}.public_fixedDataTable_header,.public_fixedDataTable_scrollbarSpacer,.public_fixedDataTable_header .public_fixedDataTableCell_main{background-color:#f6f7f8;background-image:linear-gradient(#fff,#efefef)}.public_fixedDataTable_scrollbarSpacer{position:absolute;z-index:99;top:0}.public_fixedDataTable_footer .public_fixedDataTableCell_main{background-color:#f6f7f8;border-color:#d3d3d3}.public_fixedDataTable_topShadow{background-image:linear-gradient(180deg,#0000001a,#0000)}.public_fixedDataTable_bottomShadow{background-image:linear-gradient(0deg,#0000001a,#0000)}.public_fixedDataTable_horizontalScrollbar .public_Scrollbar_mainHorizontal,.public_fixedDataTableRow_main{background-color:#fff}.public_fixedDataTableRow_highlighted,.public_fixedDataTableRow_highlighted .public_fixedDataTableCell_main{background-color:#f6f7f8}.public_fixedDataTableRow_fixedColumnsDivider{border-color:#d3d3d3}.public_fixedDataTableRow_columnsShadow{background-image:linear-gradient(90deg,#0000001a,#0000)}.fixedDataTable_isRTL .public_fixedDataTableRow_columnsShadow{background-image:linear-gradient(270deg,#0000001a,#0000)}.public_fixedDataTableRow_columnsRightShadow{transform:rotate(180deg)}.ScrollbarLayout_main{box-sizing:border-box;outline:none;overflow:hidden;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ScrollbarLayout_mainVertical{bottom:0;right:0;top:0;width:15px}.ScrollbarLayout_mainHorizontal{height:15px;left:0}.ScrollbarLayout_face{left:0;overflow:hidden;position:absolute;z-index:1;display:flex;justify-content:center;align-items:center}.ScrollbarLayout_face:after{border-radius:6px;content:"";display:block;position:absolute;transition-duration:.25s;transition-timing-function:ease;transition-property:background-color,height,width}.ScrollbarLayout_faceHorizontal{bottom:0;left:0;top:0}.ScrollbarLayout_faceHorizontal:after{width:100%;height:calc(100% - 8px)}.fixedDataTable_isRTL .ScrollbarLayout_faceHorizontal,.fixedDataTable_isRTL .ScrollbarLayout_faceHorizontal:after{right:0;left:auto}.ScrollbarLayout_faceHorizontal.public_Scrollbar_faceActive:after,.ScrollbarLayout_main:hover .ScrollbarLayout_faceHorizontal:after{height:calc(100% - 4px)}.ScrollbarLayout_faceVertical{left:0;right:0;top:0}.ScrollbarLayout_faceVertical:after{height:100%;width:calc(100% - 8px)}.ScrollbarLayout_main:hover .ScrollbarLayout_faceVertical:after,.ScrollbarLayout_faceVertical.public_Scrollbar_faceActive:after{width:calc(100% - 4px)}.fixedDataTableCellGroupLayout_cellGroup{backface-visibility:hidden;left:0;overflow:hidden;position:absolute;top:0;white-space:nowrap}.fixedDataTable_isRTL .fixedDataTableCellGroupLayout_cellGroup{right:0;left:auto}.fixedDataTableCellGroupLayout_cellGroup>.public_fixedDataTableCell_main{display:inline-block;vertical-align:top;white-space:normal}.fixedDataTableCellGroupLayout_cellGroupWrapper{position:absolute;top:0}.fixedDataTableCellLayout_main{border-right-style:solid;border-right-width:1px;border-width:0 1px 0 0;box-sizing:border-box;display:block;overflow:hidden;position:absolute;white-space:normal}.fixedDataTable_isRTL .fixedDataTableCellLayout_main{border-right-width:0;border-left-style:solid;border-left-width:1px}.fixedDataTableCellLayout_lastChild{border-width:0 1px 1px 0}.fixedDataTableCellLayout_alignRight{text-align:right}.fixedDataTableCellLayout_alignCenter{text-align:center}.fixedDataTableCellLayout_wrap{display:table-cell;vertical-align:middle;box-sizing:border-box}.fixedDataTableCellLayout_wrap1{display:table}.fixedDataTableCellLayout_wrap2{display:table-row}.fixedDataTableCellLayout_wrap3{display:table-cell;vertical-align:middle}.fixedDataTableCellLayout_columnResizerContainer{position:absolute;right:0;width:6px;z-index:1}.fixedDataTable_isRTL .fixedDataTableCellLayout_columnResizerContainer{left:0;right:auto}.fixedDataTableCellLayout_columnResizerContainer:hover{cursor:ew-resize;background-color:#0284ff}.fixedDataTableColumnResizerLineLayout_mouseArea{cursor:ew-resize;position:absolute;right:-5px;width:12px}.fixedDataTable_isRTL .fixedDataTableColumnResizerLineLayout_mouseArea{right:auto;left:-5px}.fixedDataTableColumnResizerLineLayout_main{border-right-style:solid;border-right-width:1px;box-sizing:border-box;position:absolute;z-index:100;pointer-events:none}.fixedDataTable_isRTL .fixedDataTableColumnResizerLineLayout_main{border-right-width:0;border-left-style:solid;border-left-width:1px}.fixedDataTableLayout_main{border-style:solid;border-width:1px;box-sizing:border-box;overflow:hidden;position:relative}.fixedDataTableLayout_header,.fixedDataTableLayout_hasBottomBorder{border-bottom-style:solid;border-bottom-width:1px}.fixedDataTableLayout_footer .public_fixedDataTableCell_main{border-top-style:solid;border-top-width:1px}.fixedDataTableLayout_topShadow,.fixedDataTableLayout_bottomShadow{height:4px;left:0;position:absolute;right:0;z-index:1}.fixedDataTableLayout_bottomShadow{margin-top:-4px}.fixedDataTableLayout_rowsContainer{overflow:hidden;position:relative}.fixedDataTableRowLayout_main{box-sizing:border-box;overflow:hidden;position:absolute;top:0}.fixedDataTableRowLayout_body{left:0;right:0;position:absolute;top:0}.fixedDataTableRowLayout_rowExpanded{box-sizing:border-box;left:0;position:absolute}.fixedDataTableRowLayout_fixedColumnsDivider{backface-visibility:hidden;border-left-style:solid;border-left-width:1px;left:0;position:absolute;top:0;width:0}.fixedDataTable_isRTL .fixedDataTableRowLayout_fixedColumnsDivider{border-left-width:0;border-right-style:solid;border-right-width:1px}.fixedDataTableRowLayout_columnsShadow{position:absolute;width:4px}.fixedDataTableRowLayout_columnsRightShadow{right:1px}.fixedDataTable_isRTL .fixedDataTableRowLayout_columnsRightShadow{left:1px;right:auto}.fixedDataTableRowLayout_rowWrapper{position:absolute;top:0}._headerCell_2qf2w_16{display:flex;justify-content:left;align-items:center;margin-left:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400;width:100%;cursor:pointer}._headerCell_2qf2w_16:hover ._noSort_2qf2w_29._standard_2qf2w_29{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjMiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00LjMxMyAxN2g3LjY2N2EuNDkuNDkgMCAwMS40NzkuNS40OS40OSAwIDAxLS40OC41SDQuMzE0YS40OS40OSAwIDAxLS40NzktLjVjMC0uMjc2LjIxNS0uNS40OC0uNXptNS43NS0zaC01Ljc1YS40OS40OSAwIDAwLS40NzkuNWMwIC4yNzYuMjE1LjUuNDguNWg1Ljc1YS40OS40OSAwIDAwLjQ3OC0uNS40OS40OSAwIDAwLS40NzktLjV6bS01Ljc1LTNoMy44MzNhLjQ5LjQ5IDAgMDEuNDguNS40OS40OSAwIDAxLS40OC41SDQuMzEzYS40OS40OSAwIDAxLS40NzktLjVjMC0uMjc2LjIxNS0uNS40OC0uNXptMC0zSDYuMjNhLjQ5LjQ5IDAgMDEuNDc5LjUuNDkuNDkgMCAwMS0uNDguNUg0LjMxNGEuNDkuNDkgMCAwMS0uNDc5LS41YzAtLjI3Ni4yMTUtLjUuNDgtLjV6bTEwLjU0MiAwYS40OS40OSAwIDAwLS40OC41djQuNzkzbC0yLjA1Ny0yLjE0N2EuNDY1LjQ2NSAwIDAwLS42NzggMCAuNTE1LjUxNSAwIDAwMCAuNzA4bDIuODY2IDIuOTlhLjQ2OC40NjggMCAwMC42OTYgMGwyLjg2Ni0yLjk5YS41MTYuNTE2IDAgMDAwLS43MDguNDY1LjQ2NSAwIDAwLS42NzggMGwtMi4wNTYgMi4xNDZWOC41YS40OS40OSAwIDAwLS40OC0uNXoiIGZpbGw9IiM1QzYzNzIiLz48L3N2Zz4K)}._headerCell_2qf2w_16:hover ._noSort_2qf2w_29._caret_2qf2w_33{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjk5OSAxMy44NGwzLjE3NS0yLjcxOWEuNS41IDAgMDEuNjUuNzZsLTMuNSAyLjk5OGEuNS41IDAgMDEtLjY1IDBsLTMuNS0yLjk5OGEuNS41IDAgMDEuNjUtLjc2TDEyIDEzLjg0MXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K);transform:rotate(180deg)}._headerLabel_2qf2w_38{text-align:left;overflow:hidden}._icon_2qf2w_43{margin-right:10px;width:20px;box-sizing:border-box;display:inline-block}._numberIcon_2qf2w_50{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE3IDVINmEyIDIgMCAwIDAtMiAydjEwYTIgMiAwIDAgMCAyIDJoMTFhMiAyIDAgMCAwIDItMlY3YTIgMiAwIDAgMC0yLTJ6TTUgN2ExIDEgMCAwIDEgMS0xaDExYTEgMSAwIDAgMSAxIDF2MTBhMSAxIDAgMCAxLTEgMUg2YTEgMSAwIDAgMS0xLTFWN3ptNC41IDRoLjc2NmwtLjU3MiAySDguNWEuNS41IDAgMCAwIDAgMWguOTA5bC0uMzkgMS4zNjNhLjUuNSAwIDAgMCAuOTYyLjI3NEwxMC40NDkgMTRoMS45NmwtLjM5IDEuMzYzYS41LjUgMCAwIDAgLjk2Mi4yNzRMMTMuNDQ5IDE0SDE0LjVhLjUuNSAwIDAgMCAwLTFoLS43NjZsLjU3Mi0ySDE1LjVhLjUuNSAwIDAgMCAwLTFoLS45MDlsLjM5LTEuMzYzYS41LjUgMCAwIDAtLjk2Mi0uMjc0TDEzLjU1MSAxMGgtMS45NmwuMzktMS4zNjNhLjUuNSAwIDAgMC0uOTYyLS4yNzRMMTAuNTUxIDEwSDkuNWEuNS41IDAgMCAwIDAgMXptMy43NjYgMGgtMS45NmwtLjU3MiAyaDEuOTZsLjU3Mi0yeiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._dateIcon_2qf2w_54{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkgNVYzLjVhLjUuNSAwIDAgMSAxIDBWNWgzVjMuNWEuNS41IDAgMCAxIDEgMFY1aDNhMiAyIDAgMCAxIDIgMnYxMGEyIDIgMCAwIDEtMiAySDZhMiAyIDAgMCAxLTItMlY3YTIgMiAwIDAgMSAyLTJoM3ptMSAxaDN2LjVhLjUuNSAwIDAgMCAxIDBWNmgzYTEgMSAwIDAgMSAxIDF2MUg1VjdhMSAxIDAgMCAxIDEtMWgzdi41YS41LjUgMCAwIDAgMSAwVjZ6TTUgMTdWOWgxM3Y4YTEgMSAwIDAgMS0xIDFINmExIDEgMCAwIDEtMS0xem05LjUtNWgtNmEuNS41IDAgMCAxIDAtMWg2YS41LjUgMCAwIDEgMCAxem0tNiAyaDZhLjUuNSAwIDAgMCAwLTFoLTZhLjUuNSAwIDAgMCAwIDF6bTYgMmgtNmEuNS41IDAgMCAxIDAtMWg2YS41LjUgMCAwIDEgMCAxeiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._textIcon_2qf2w_58{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTYgNWgxMWEyIDIgMCAwIDEgMiAydjEwYTIgMiAwIDAgMS0yIDJINmEyIDIgMCAwIDEtMi0yVjdhMiAyIDAgMCAxIDItMnptMCAxYTEgMSAwIDAgMC0xIDF2MTBhMSAxIDAgMCAwIDEgMWgxMWExIDEgMCAwIDAgMS0xVjdhMSAxIDAgMCAwLTEtMUg2em04IDEwSDlhLjUuNSAwIDAgMSAwLTFoMlY5SDguNWEuNS41IDAgMCAwLS41LjV2MmEuNS41IDAgMCAxLTEgMHYtMkExLjUgMS41IDAgMCAxIDguNSA4aDZBMS41IDEuNSAwIDAgMSAxNiA5LjV2MmEuNS41IDAgMCAxLTEgMHYtMmEuNS41IDAgMCAwLS41LS41SDEydjZoMmEuNS41IDAgMCAxIDAgMXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K)}._booleanIcon_2qf2w_62{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE3IDVINmEyIDIgMCAwIDAtMiAydjEwYTIgMiAwIDAgMCAyIDJoMTFhMiAyIDAgMCAwIDItMlY3YTIgMiAwIDAgMC0yLTJ6TTUgN2ExIDEgMCAwIDEgMS0xaDExYTEgMSAwIDAgMSAxIDF2MTBhMSAxIDAgMCAxLTEgMUg2YTEgMSAwIDAgMS0xLTFWN3oiIGZpbGw9IiM1QjYzNzIiLz48cGF0aCBkPSJNOC44IDE1LjM5NGEuNS41IDAgMCAxLS4xLS43TDEzLjQyOCA4LjRhLjUuNSAwIDEgMSAuOC42TDkuNSAxNS4yOTRhLjUuNSAwIDAgMS0uNy4xeiIgZmlsbD0iIzVCNjM3MiIvPjxyZWN0IHg9IjYiIHk9IjgiIHdpZHRoPSI1IiBoZWlnaHQ9IjEiIHJ4PSIuNSIgZmlsbD0iIzVCNjM3MiIvPjxwYXRoIGQ9Ik04LjUgOGEuNS41IDAgMCAxIC41LjV2NGEuNS41IDAgMCAxLTEgMHYtNGEuNS41IDAgMCAxIC41LS41eiIgZmlsbD0iIzVCNjM3MiIvPjxyZWN0IHg9IjEzIiB5PSIxMiIgd2lkdGg9IjQiIGhlaWdodD0iMSIgcng9Ii41IiBmaWxsPSIjNUI2MzcyIi8+PHJlY3QgeD0iMTMiIHk9IjE0IiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiByeD0iLjUiIGZpbGw9IiM1QjYzNzIiLz48cGF0aCBkPSJNMTMuNSAxMmEuNS41IDAgMCAxIC41LjV2NGEuNS41IDAgMCAxLTEgMHYtNGEuNS41IDAgMCAxIC41LS41eiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._sortIcon_2qf2w_66{position:absolute;right:0;width:24px;height:24px;background-repeat:no-repeat}._sortAscending_2qf2w_74._standard_2qf2w_29{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjMiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00LjMxMyAxN2g3LjY2N2EuNDkuNDkgMCAwMS40NzkuNS40OS40OSAwIDAxLS40OC41SDQuMzE0YS40OS40OSAwIDAxLS40NzktLjVjMC0uMjc2LjIxNS0uNS40OC0uNXptNS43NS0zaC01Ljc1YS40OS40OSAwIDAwLS40NzkuNWMwIC4yNzYuMjE1LjUuNDguNWg1Ljc1YS40OS40OSAwIDAwLjQ3OC0uNS40OS40OSAwIDAwLS40NzktLjV6bS01Ljc1LTNoMy44MzNhLjQ5LjQ5IDAgMDEuNDguNS40OS40OSAwIDAxLS40OC41SDQuMzEzYS40OS40OSAwIDAxLS40NzktLjVjMC0uMjc2LjIxNS0uNS40OC0uNXptMC0zSDYuMjNhLjQ5LjQ5IDAgMDEuNDc5LjUuNDkuNDkgMCAwMS0uNDguNUg0LjMxNGEuNDkuNDkgMCAwMS0uNDc5LS41YzAtLjI3Ni4yMTUtLjUuNDgtLjV6bTEwLjU0MiAwYS40OS40OSAwIDAwLS40OC41djQuNzkzbC0yLjA1Ny0yLjE0N2EuNDY1LjQ2NSAwIDAwLS42NzggMCAuNTE1LjUxNSAwIDAwMCAuNzA4bDIuODY2IDIuOTlhLjQ2OC40NjggMCAwMC42OTYgMGwyLjg2Ni0yLjk5YS41MTYuNTE2IDAgMDAwLS43MDguNDY1LjQ2NSAwIDAwLS42NzggMGwtMi4wNTYgMi4xNDZWOC41YS40OS40OSAwIDAwLS40OC0uNXoiIGZpbGw9IiM1QzYzNzIiLz48L3N2Zz4K)}._sortDescending_2qf2w_78._standard_2qf2w_29{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjMiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00LjMxMyA3aDcuNjY3YS40OS40OSAwIDAwLjQ3OS0uNS40OS40OSAwIDAwLS40OC0uNUg0LjMxNGEuNDkuNDkgMCAwMC0uNDc5LjVjMCAuMjc2LjIxNS41LjQ4LjV6bTUuNzUgM2gtNS43NWEuNDkuNDkgMCAwMS0uNDc5LS41YzAtLjI3Ni4yMTUtLjUuNDgtLjVoNS43NWEuNDkuNDkgMCAwMS40NzguNS40OS40OSAwIDAxLS40NzkuNXptLTUuNzUgM2gzLjgzM2EuNDkuNDkgMCAwMC40OC0uNS40OS40OSAwIDAwLS40OC0uNUg0LjMxM2EuNDkuNDkgMCAwMC0uNDc5LjVjMCAuMjc2LjIxNS41LjQ4LjV6bTAgM0g2LjIzYS40OS40OSAwIDAwLjQ3OS0uNS40OS40OSAwIDAwLS40OC0uNUg0LjMxNGEuNDkuNDkgMCAwMC0uNDc5LjVjMCAuMjc2LjIxNS41LjQ4LjV6bTEwLjU0MiAwYS40OS40OSAwIDAxLS40OC0uNXYtNC43OTNsLTIuMDU3IDIuMTQ3YS40NjUuNDY1IDAgMDEtLjY3OCAwIC41MTUuNTE1IDAgMDEwLS43MDhsMi44NjYtMi45OWEuNDY4LjQ2OCAwIDAxLjY5NiAwbDIuODY2IDIuOTlhLjUxNi41MTYgMCAwMTAgLjcwOC40NjUuNDY1IDAgMDEtLjY3OCAwbC0yLjA1Ni0yLjE0NlYxNS41YS40OS40OSAwIDAxLS40OC41eiIgZmlsbD0iIzVDNjM3MiIvPjwvc3ZnPgo=)}._sortAscending_2qf2w_74._caret_2qf2w_33{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjk5OSAxMy44NGwzLjE3NS0yLjcxOWEuNS41IDAgMDEuNjUuNzZsLTMuNSAyLjk5OGEuNS41IDAgMDEtLjY1IDBsLTMuNS0yLjk5OGEuNS41IDAgMDEuNjUtLjc2TDEyIDEzLjg0MXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K);transform:rotate(180deg)}._sortAscending_2qf2w_74._caret_2qf2w_33:hover{transform:rotate(0)}._sortDescending_2qf2w_78._caret_2qf2w_33{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjk5OSAxMy44NGwzLjE3NS0yLjcxOWEuNS41IDAgMDEuNjUuNzZsLTMuNSAyLjk5OGEuNS41IDAgMDEtLjY1IDBsLTMuNS0yLjk5OGEuNS41IDAgMDEuNjUtLjc2TDEyIDEzLjg0MXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K)}._sortDescending_2qf2w_78._caret_2qf2w_33:hover{transform:rotate(180deg)}._headerLabel_2qf2w_38{text-align:left;flex-grow:1}._headerLabel_2qf2w_38,._headerLabel_2qf2w_38 *{overflow:hidden;text-overflow:ellipsis}._icon_t30x8_1{width:24px;height:24px;margin-right:5px;box-sizing:border-box;display:inline-block;background-repeat:no-repeat;flex-grow:0}._numberIcon_t30x8_11{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE3IDVINmEyIDIgMCAwIDAtMiAydjEwYTIgMiAwIDAgMCAyIDJoMTFhMiAyIDAgMCAwIDItMlY3YTIgMiAwIDAgMC0yLTJ6TTUgN2ExIDEgMCAwIDEgMS0xaDExYTEgMSAwIDAgMSAxIDF2MTBhMSAxIDAgMCAxLTEgMUg2YTEgMSAwIDAgMS0xLTFWN3ptNC41IDRoLjc2NmwtLjU3MiAySDguNWEuNS41IDAgMCAwIDAgMWguOTA5bC0uMzkgMS4zNjNhLjUuNSAwIDAgMCAuOTYyLjI3NEwxMC40NDkgMTRoMS45NmwtLjM5IDEuMzYzYS41LjUgMCAwIDAgLjk2Mi4yNzRMMTMuNDQ5IDE0SDE0LjVhLjUuNSAwIDAgMCAwLTFoLS43NjZsLjU3Mi0ySDE1LjVhLjUuNSAwIDAgMCAwLTFoLS45MDlsLjM5LTEuMzYzYS41LjUgMCAwIDAtLjk2Mi0uMjc0TDEzLjU1MSAxMGgtMS45NmwuMzktMS4zNjNhLjUuNSAwIDAgMC0uOTYyLS4yNzRMMTAuNTUxIDEwSDkuNWEuNS41IDAgMCAwIDAgMXptMy43NjYgMGgtMS45NmwtLjU3MiAyaDEuOTZsLjU3Mi0yeiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._dateIcon_t30x8_15{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkgNVYzLjVhLjUuNSAwIDAgMSAxIDBWNWgzVjMuNWEuNS41IDAgMCAxIDEgMFY1aDNhMiAyIDAgMCAxIDIgMnYxMGEyIDIgMCAwIDEtMiAySDZhMiAyIDAgMCAxLTItMlY3YTIgMiAwIDAgMSAyLTJoM3ptMSAxaDN2LjVhLjUuNSAwIDAgMCAxIDBWNmgzYTEgMSAwIDAgMSAxIDF2MUg1VjdhMSAxIDAgMCAxIDEtMWgzdi41YS41LjUgMCAwIDAgMSAwVjZ6TTUgMTdWOWgxM3Y4YTEgMSAwIDAgMS0xIDFINmExIDEgMCAwIDEtMS0xem05LjUtNWgtNmEuNS41IDAgMCAxIDAtMWg2YS41LjUgMCAwIDEgMCAxem0tNiAyaDZhLjUuNSAwIDAgMCAwLTFoLTZhLjUuNSAwIDAgMCAwIDF6bTYgMmgtNmEuNS41IDAgMCAxIDAtMWg2YS41LjUgMCAwIDEgMCAxeiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._textIcon_t30x8_19{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTYgNWgxMWEyIDIgMCAwIDEgMiAydjEwYTIgMiAwIDAgMS0yIDJINmEyIDIgMCAwIDEtMi0yVjdhMiAyIDAgMCAxIDItMnptMCAxYTEgMSAwIDAgMC0xIDF2MTBhMSAxIDAgMCAwIDEgMWgxMWExIDEgMCAwIDAgMS0xVjdhMSAxIDAgMCAwLTEtMUg2em04IDEwSDlhLjUuNSAwIDAgMSAwLTFoMlY5SDguNWEuNS41IDAgMCAwLS41LjV2MmEuNS41IDAgMCAxLTEgMHYtMkExLjUgMS41IDAgMCAxIDguNSA4aDZBMS41IDEuNSAwIDAgMSAxNiA5LjV2MmEuNS41IDAgMCAxLTEgMHYtMmEuNS41IDAgMCAwLS41LS41SDEydjZoMmEuNS41IDAgMCAxIDAgMXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K)}._booleanIcon_t30x8_23{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE3IDVINmEyIDIgMCAwIDAtMiAydjEwYTIgMiAwIDAgMCAyIDJoMTFhMiAyIDAgMCAwIDItMlY3YTIgMiAwIDAgMC0yLTJ6TTUgN2ExIDEgMCAwIDEgMS0xaDExYTEgMSAwIDAgMSAxIDF2MTBhMSAxIDAgMCAxLTEgMUg2YTEgMSAwIDAgMS0xLTFWN3oiIGZpbGw9IiM1QjYzNzIiLz48cGF0aCBkPSJNOC44IDE1LjM5NGEuNS41IDAgMCAxLS4xLS43TDEzLjQyOCA4LjRhLjUuNSAwIDEgMSAuOC42TDkuNSAxNS4yOTRhLjUuNSAwIDAgMS0uNy4xeiIgZmlsbD0iIzVCNjM3MiIvPjxyZWN0IHg9IjYiIHk9IjgiIHdpZHRoPSI1IiBoZWlnaHQ9IjEiIHJ4PSIuNSIgZmlsbD0iIzVCNjM3MiIvPjxwYXRoIGQ9Ik04LjUgOGEuNS41IDAgMCAxIC41LjV2NGEuNS41IDAgMCAxLTEgMHYtNGEuNS41IDAgMCAxIC41LS41eiIgZmlsbD0iIzVCNjM3MiIvPjxyZWN0IHg9IjEzIiB5PSIxMiIgd2lkdGg9IjQiIGhlaWdodD0iMSIgcng9Ii41IiBmaWxsPSIjNUI2MzcyIi8+PHJlY3QgeD0iMTMiIHk9IjE0IiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiByeD0iLjUiIGZpbGw9IiM1QjYzNzIiLz48cGF0aCBkPSJNMTMuNSAxMmEuNS41IDAgMCAxIC41LjV2NGEuNS41IDAgMCAxLTEgMHYtNGEuNS41IDAgMCAxIC41LS41eiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._tableWrapper_1ode4_16 .public_fixedDataTable_header,._tableWrapper_1ode4_16 .public_fixedDataTable_scrollbarSpacer,._tableWrapper_1ode4_16 .public_fixedDataTable_header .public_fixedDataTableCell_main{background-color:transparent;background-image:none;border-bottom:1px solid #edeef1}._tableWrapper_1ode4_16 .public_fixedDataTable_scrollbarSpacer{margin-left:3px}._tableWrapper_1ode4_16 .public_fixedDataTable_main,._tableWrapper_1ode4_16 .fixedDataTableLayout_main{border:none}._tableWrapper_1ode4_16 .public_fixedDataTableRow_highlighted,._tableWrapper_1ode4_16 .public_fixedDataTableRow_highlighted .public_fixedDataTableCell_main,._tableWrapper_1ode4_16 .public_fixedDataTableRow_main{background-color:transparent}._tableWrapper_1ode4_16 .public_fixedDataTableCell_main{background-color:transparent;border-color:#edeef1}._tableWrapper_1ode4_16 .public_fixedDataTable_header,._tableWrapper_1ode4_16 .public_fixedDataTable_hasBottomBorder,._tableWrapper_1ode4_16 .public_fixedDataTable_scrollbarSpacer{border-bottom:none}._tableWrapper_1ode4_16 .public_fixedDataTable_header .fixedDataTableCellGroupLayout_cellGroup{border-top:1px solid #edeef1;border-bottom:1px solid #edeef1;box-sizing:border-box}._tableWrapper_1ode4_16 .public_Scrollbar_main{border-left:none;background-color:transparent}._tableWrapper_1ode4_16 .fixedDataTableRowLayout_rowWrapper{border-left:1px solid #edeef1}._tableWrapper_1ode4_16 .public_Scrollbar_main.public_Scrollbar_mainOpaque{left:-1px}._tableWrapper_1ode4_16 .public_fixedDataTableCell_cellContent{padding:0 24px 0 12px}._tableWrapper_1ode4_16{height:100%;width:100%;box-sizing:border-box;-webkit-user-select:text;-moz-user-select:text;user-select:text}._table_1ode4_16{background:transparent;font-size:13px;border:none}._tableHeader_1ode4_78{color:#5c6372;background-color:transparent;margin:0;border:none;width:100%;overflow:hidden;box-sizing:border-box}._tableCell_1ode4_88{color:#5c6372;background-color:transparent;border:none;border-right:1px solid #edeef1;border-bottom:1px solid #edeef1;overflow:hidden;width:100%;box-sizing:border-box}._tableCellContent_1ode4_99{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._headerColor_1ode4_105,._rowColor_1ode4_109{background-color:#f9f9fb}._component_1rw9b_1{flex-grow:1;font-family:Open Sans}.csdk-drilldown-hierarchy-nested-menu-item .csdk-menu-item-content{position:relative;padding-left:13px}.csdk-drilldown-hierarchy-nested-menu-item .csdk-menu-item-content:before{top:2px;left:0;position:absolute;content:"";display:block;height:14px;width:1px;background:#c3c3c3}.react-datepicker__navigation-icon:before,.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow{border-color:#ccc;border-style:solid;border-width:3px 3px 0 0;content:"";display:block;height:9px;position:absolute;top:6px;width:9px}.react-datepicker-wrapper{display:inline-block;padding:0;border:0}.react-datepicker{font-family:Helvetica Neue,helvetica,arial,sans-serif;font-size:.8rem;background-color:#fff;color:#000;border:1px solid #aeaeae;border-radius:.3rem;display:inline-block;position:relative;line-height:initial}.react-datepicker--time-only .react-datepicker__time-container{border-left:0}.react-datepicker--time-only .react-datepicker__time,.react-datepicker--time-only .react-datepicker__time-box{border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker-popper{z-index:1;line-height:0}.react-datepicker-popper .react-datepicker__triangle{stroke:#aeaeae}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{fill:#f0f0f0;color:#f0f0f0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle{fill:#fff;color:#fff}.react-datepicker__header{text-align:center;background-color:#f0f0f0;border-bottom:1px solid #aeaeae;border-top-left-radius:.3rem;padding:8px 0;position:relative}.react-datepicker__header--time{padding-bottom:8px;padding-left:5px;padding-right:5px}.react-datepicker__header--time:not(.react-datepicker__header--time--only){border-top-left-radius:0}.react-datepicker__header:not(.react-datepicker__header--has-time-select){border-top-right-radius:.3rem}.react-datepicker__year-dropdown-container--select,.react-datepicker__month-dropdown-container--select,.react-datepicker__month-year-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__month-dropdown-container--scroll,.react-datepicker__month-year-dropdown-container--scroll{display:inline-block;margin:0 15px}.react-datepicker__current-month,.react-datepicker-time__header,.react-datepicker-year-header{margin-top:0;color:#000;font-weight:700;font-size:.944rem}h2.react-datepicker__current-month{padding:0;margin:0}.react-datepicker-time__header{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.react-datepicker__navigation{align-items:center;background:none;display:flex;justify-content:center;text-align:center;cursor:pointer;position:absolute;top:2px;padding:0;border:none;z-index:1;height:32px;width:32px;text-indent:-999em;overflow:hidden}.react-datepicker__navigation--previous{left:2px}.react-datepicker__navigation--next{right:2px}.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:85px}.react-datepicker__navigation--years{position:relative;top:0;display:block;margin-left:auto;margin-right:auto}.react-datepicker__navigation--years-previous{top:4px}.react-datepicker__navigation--years-upcoming{top:-4px}.react-datepicker__navigation:hover *:before{border-color:#a6a6a6}.react-datepicker__navigation-icon{position:relative;top:-1px;font-size:20px;width:0}.react-datepicker__navigation-icon--next{left:-2px}.react-datepicker__navigation-icon--next:before{transform:rotate(45deg);left:-7px}.react-datepicker__navigation-icon--previous{right:-2px}.react-datepicker__navigation-icon--previous:before{transform:rotate(225deg);right:-7px}.react-datepicker__month-container{float:left}.react-datepicker__year{margin:.4rem;text-align:center}.react-datepicker__year-wrapper{display:flex;flex-wrap:wrap;max-width:180px}.react-datepicker__year .react-datepicker__year-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__month{margin:.4rem;text-align:center}.react-datepicker__month .react-datepicker__month-text,.react-datepicker__month .react-datepicker__quarter-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__input-time-container{clear:both;width:100%;float:left;margin:5px 0 10px 15px;text-align:left}.react-datepicker__input-time-container .react-datepicker-time__caption,.react-datepicker__input-time-container .react-datepicker-time__input-container{display:inline-block}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input{display:inline-block;margin-left:10px}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input{width:auto}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]{-moz-appearance:textfield}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter{margin-left:5px;display:inline-block}.react-datepicker__time-container{float:right;border-left:1px solid #aeaeae;width:85px}.react-datepicker__time-container--with-today-button{display:inline;border:1px solid #aeaeae;border-radius:.3rem;position:absolute;right:-87px;top:0}.react-datepicker__time-container .react-datepicker__time{position:relative;background:#fff;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box{width:85px;overflow-x:hidden;margin:0 auto;text-align:center;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list{list-style:none;margin:0;height:calc(195px + .85rem);overflow-y:scroll;padding-right:0;padding-left:0;width:100%;box-sizing:content-box}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item{height:30px;padding:5px 10px;white-space:nowrap}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover{cursor:pointer;background-color:#f0f0f0}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{background-color:#216ba5;color:#fff;font-weight:700}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#216ba5}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled{color:#ccc}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover{cursor:default;background-color:transparent}.react-datepicker__week-number{color:#ccc;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__week-number.react-datepicker__week-number--clickable{cursor:pointer}.react-datepicker__week-number.react-datepicker__week-number--clickable:not(.react-datepicker__week-number--selected):hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__week-number--selected{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__week-number--selected:hover{background-color:#1d5d90}.react-datepicker__day-names{white-space:nowrap;margin-bottom:-8px}.react-datepicker__week{white-space:nowrap}.react-datepicker__day-name,.react-datepicker__day,.react-datepicker__time-name{color:#000;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__day,.react-datepicker__month-text,.react-datepicker__quarter-text,.react-datepicker__year-text{cursor:pointer}.react-datepicker__day:not([aria-disabled=true]):hover,.react-datepicker__month-text:not([aria-disabled=true]):hover,.react-datepicker__quarter-text:not([aria-disabled=true]):hover,.react-datepicker__year-text:not([aria-disabled=true]):hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day--today,.react-datepicker__month-text--today,.react-datepicker__quarter-text--today,.react-datepicker__year-text--today{font-weight:700}.react-datepicker__day--highlighted,.react-datepicker__month-text--highlighted,.react-datepicker__quarter-text--highlighted,.react-datepicker__year-text--highlighted{border-radius:.3rem;background-color:#3dcc4a;color:#fff}.react-datepicker__day--highlighted:not([aria-disabled=true]):hover,.react-datepicker__month-text--highlighted:not([aria-disabled=true]):hover,.react-datepicker__quarter-text--highlighted:not([aria-disabled=true]):hover,.react-datepicker__year-text--highlighted:not([aria-disabled=true]):hover{background-color:#32be3f}.react-datepicker__day--highlighted-custom-1,.react-datepicker__month-text--highlighted-custom-1,.react-datepicker__quarter-text--highlighted-custom-1,.react-datepicker__year-text--highlighted-custom-1{color:#f0f}.react-datepicker__day--highlighted-custom-2,.react-datepicker__month-text--highlighted-custom-2,.react-datepicker__quarter-text--highlighted-custom-2,.react-datepicker__year-text--highlighted-custom-2{color:green}.react-datepicker__day--holidays,.react-datepicker__month-text--holidays,.react-datepicker__quarter-text--holidays,.react-datepicker__year-text--holidays{position:relative;border-radius:.3rem;background-color:#ff6803;color:#fff}.react-datepicker__day--holidays .overlay,.react-datepicker__month-text--holidays .overlay,.react-datepicker__quarter-text--holidays .overlay,.react-datepicker__year-text--holidays .overlay{position:absolute;bottom:100%;left:50%;transform:translate(-50%);background-color:#333;color:#fff;padding:4px;border-radius:4px;white-space:nowrap;visibility:hidden;opacity:0;transition:visibility 0s,opacity .3s ease-in-out}.react-datepicker__day--holidays:not([aria-disabled=true]):hover,.react-datepicker__month-text--holidays:not([aria-disabled=true]):hover,.react-datepicker__quarter-text--holidays:not([aria-disabled=true]):hover,.react-datepicker__year-text--holidays:not([aria-disabled=true]):hover{background-color:#cf5300}.react-datepicker__day--holidays:hover .overlay,.react-datepicker__month-text--holidays:hover .overlay,.react-datepicker__quarter-text--holidays:hover .overlay,.react-datepicker__year-text--holidays:hover .overlay{visibility:visible;opacity:1}.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range,.react-datepicker__month-text--selected,.react-datepicker__month-text--in-selecting-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--selected,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--selected,.react-datepicker__year-text--in-selecting-range,.react-datepicker__year-text--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__day--selected:not([aria-disabled=true]):hover,.react-datepicker__day--in-selecting-range:not([aria-disabled=true]):hover,.react-datepicker__day--in-range:not([aria-disabled=true]):hover,.react-datepicker__month-text--selected:not([aria-disabled=true]):hover,.react-datepicker__month-text--in-selecting-range:not([aria-disabled=true]):hover,.react-datepicker__month-text--in-range:not([aria-disabled=true]):hover,.react-datepicker__quarter-text--selected:not([aria-disabled=true]):hover,.react-datepicker__quarter-text--in-selecting-range:not([aria-disabled=true]):hover,.react-datepicker__quarter-text--in-range:not([aria-disabled=true]):hover,.react-datepicker__year-text--selected:not([aria-disabled=true]):hover,.react-datepicker__year-text--in-selecting-range:not([aria-disabled=true]):hover,.react-datepicker__year-text--in-range:not([aria-disabled=true]):hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected{border-radius:.3rem;background-color:#bad9f1;color:#000}.react-datepicker__day--keyboard-selected:not([aria-disabled=true]):hover,.react-datepicker__month-text--keyboard-selected:not([aria-disabled=true]):hover,.react-datepicker__quarter-text--keyboard-selected:not([aria-disabled=true]):hover,.react-datepicker__year-text--keyboard-selected:not([aria-disabled=true]):hover{background-color:#1d5d90}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range){background-color:#216ba580}.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range){background-color:#f0f0f0;color:#000}.react-datepicker__day--disabled,.react-datepicker__month-text--disabled,.react-datepicker__quarter-text--disabled,.react-datepicker__year-text--disabled{cursor:default;color:#ccc}.react-datepicker__day--disabled .overlay,.react-datepicker__month-text--disabled .overlay,.react-datepicker__quarter-text--disabled .overlay,.react-datepicker__year-text--disabled .overlay{position:absolute;bottom:70%;left:50%;transform:translate(-50%);background-color:#333;color:#fff;padding:4px;border-radius:4px;white-space:nowrap;visibility:hidden;opacity:0;transition:visibility 0s,opacity .3s ease-in-out}.react-datepicker__input-container{position:relative;display:inline-block;width:100%}.react-datepicker__input-container .react-datepicker__calendar-icon{position:absolute;padding:.5rem;box-sizing:content-box}.react-datepicker__view-calendar-icon input{padding:6px 10px 5px 25px}.react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{border:1px solid transparent;border-radius:.3rem;position:relative}.react-datepicker__year-read-view:hover,.react-datepicker__month-read-view:hover,.react-datepicker__month-year-read-view:hover{cursor:pointer}.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow{border-top-color:#b3b3b3}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow{transform:rotate(135deg);right:-16px;top:0}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown,.react-datepicker__month-year-dropdown{background-color:#f0f0f0;position:absolute;width:50%;left:25%;top:30px;z-index:1;text-align:center;border-radius:.3rem;border:1px solid #aeaeae}.react-datepicker__year-dropdown:hover,.react-datepicker__month-dropdown:hover,.react-datepicker__month-year-dropdown:hover{cursor:pointer}.react-datepicker__year-dropdown--scrollable,.react-datepicker__month-dropdown--scrollable,.react-datepicker__month-year-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__year-option,.react-datepicker__month-option,.react-datepicker__month-year-option{line-height:20px;width:100%;display:block;margin-left:auto;margin-right:auto}.react-datepicker__year-option:first-of-type,.react-datepicker__month-option:first-of-type,.react-datepicker__month-year-option:first-of-type{border-top-left-radius:.3rem;border-top-right-radius:.3rem}.react-datepicker__year-option:last-of-type,.react-datepicker__month-option:last-of-type,.react-datepicker__month-year-option:last-of-type{-webkit-user-select:none;-moz-user-select:none;user-select:none;border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__year-option:hover,.react-datepicker__month-option:hover,.react-datepicker__month-year-option:hover{background-color:#ccc}.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b3b3}.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b3b3}.react-datepicker__year-option--selected,.react-datepicker__month-option--selected,.react-datepicker__month-year-option--selected{position:absolute;left:15px}.react-datepicker__close-icon{cursor:pointer;background-color:transparent;border:0;outline:0;padding:0 6px 0 0;position:absolute;top:0;right:0;height:100%;display:table-cell;vertical-align:middle}.react-datepicker__close-icon:after{cursor:pointer;background-color:#216ba5;color:#fff;border-radius:50%;height:16px;width:16px;padding:2px;font-size:12px;line-height:1;text-align:center;display:table-cell;vertical-align:middle;content:"×"}.react-datepicker__close-icon--disabled{cursor:default}.react-datepicker__close-icon--disabled:after{cursor:default;background-color:#ccc}.react-datepicker__today-button{background:#f0f0f0;border-top:1px solid #aeaeae;cursor:pointer;text-align:center;font-weight:700;padding:5px 0;clear:left}.react-datepicker__portal{position:fixed;width:100vw;height:100vh;background-color:#000c;left:0;top:0;justify-content:center;align-items:center;display:flex;z-index:2147483647}.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:3rem;line-height:3rem}@media (max-width: 400px),(max-height: 550px){.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:2rem;line-height:2rem}}.react-datepicker__portal .react-datepicker__current-month,.react-datepicker__portal .react-datepicker-time__header{font-size:1.44rem}.react-datepicker__children-container{width:13.8rem;margin:.4rem;padding-right:.2rem;padding-left:.2rem;height:auto}.react-datepicker__aria-live{position:absolute;clip-path:circle(0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;white-space:nowrap}.react-datepicker__calendar-icon{width:1em;height:1em;vertical-align:-.125em}')), document.head.appendChild(e);
3123
+ }
3124
+ } catch (a) {
3125
+ console.error("vite-plugin-css-injected-by-js", a);
3126
+ }
3127
+ })();
3128
+ export {
3129
+ Nt as widgetComposer,
3130
+ Y1 as useLastNlqResponse,
3131
+ J1 as useGetQueryRecommendations,
3132
+ X1 as useGetNlqResult,
3133
+ K1 as useGetNlgInsights,
3134
+ es as useFinalNlqResponse,
3135
+ Ir as useChatSession,
3136
+ zt as prepareGetNlqResultPayload,
3137
+ qt as prepareGetNlgInsightsPayload,
3138
+ is as getNlgInsightsFromWidget,
3139
+ xr as executeGetNlqResult,
3140
+ rs as NlqChartWidget,
3141
+ yr as NLQ_RESULT_CHART_TYPES,
3142
+ ns as GetNlgInsights,
3143
+ kr as DEFAULT_RECOMMENDATIONS_COUNT,
3144
+ os as CustomAiContextProvider,
3145
+ ts as Chatbot,
3146
+ fr as ChatRestApi,
3147
+ _1 as AiContextProvider
3148
+ };