@trilogy-data/trilogy-studio-components 0.1.29 → 0.1.30

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 (90) hide show
  1. package/README.md +1 -0
  2. package/dist/AssetAutoImporter-BA8C4p09.js +403 -0
  3. package/dist/{ChatCreatorModal-C0OHgrEB.js → ChatCreatorModal-94gZ9D-y.js} +1 -1
  4. package/dist/{CodeBlock-CS86Ipg1.js → CodeBlock-C9o09ipr.js} +1 -1
  5. package/dist/{CommunityModels-BxJKe8_v.js → CommunityModels-D48H9Bqt.js} +6 -6
  6. package/dist/{ConnectionView-D-1gQNQ7.js → ConnectionView-sEXGE8Vs.js} +5 -5
  7. package/dist/{CreateEditorFromDatasourcePopup-RkNgUdzU.js → CreateEditorFromDatasourcePopup-BUoegyem.js} +2 -2
  8. package/dist/{Dashboard-DWJPKIeQ.js → Dashboard-C6adKZ7q.js} +202 -203
  9. package/dist/{DashboardImportSelector-t6tKq5N4.js → DashboardImportSelector-CQqXshDj.js} +1 -1
  10. package/dist/{DashboardMobile-CxObMuv6.js → DashboardMobile-BU1nDLQv.js} +42 -42
  11. package/dist/{Editor-DD1inQuU.js → Editor-DO4VRvek.js} +9 -10
  12. package/dist/{ErrorMessage-D5JeF3Iz.js → ErrorMessage-Cz7q7vJI.js} +1 -1
  13. package/dist/{GlobalChatPanel-BArWsM8Y.js → GlobalChatPanel-Ct6oSj_A.js} +6 -6
  14. package/dist/{IDE-D5GKLVYn.js → IDE-kdaEhA4g.js} +19 -20
  15. package/dist/{JobsView-By7OZgj_.js → JobsView-BcyWrDRf.js} +11 -11
  16. package/dist/{LLMChat-B-q_7sa4.js → LLMChat-Dg8VvTIP.js} +19 -19
  17. package/dist/{LLMView-8BKf70Ay.js → LLMView-CZNNYXC1.js} +61 -61
  18. package/dist/{LoadingView-Da0HfQ56.js → LoadingView-k2CIKiN7.js} +1 -1
  19. package/dist/{MarkdownRenderer-CQppLv_n.js → MarkdownRenderer-Dlb_KGmk.js} +1 -1
  20. package/dist/{MobileIDE-C81gvbco.js → MobileIDE-BQcdjWUT.js} +26 -27
  21. package/dist/{ModelCard-BMDgFDyQ.js → ModelCard-Dn2b5WLs.js} +5 -5
  22. package/dist/{ModelView-C4B8qJwX.js → ModelView-BEi83zrX.js} +6 -6
  23. package/dist/{PageLoading-CRl9HNIg.js → PageLoading-C7H6q6U6.js} +233 -233
  24. package/dist/{ResultComponent-C-A8sbr1.js → ResultComponent-DW9Q9tp9.js} +5 -5
  25. package/dist/{Results-C1nNHU7C.js → Results-N2OttUlb.js} +14 -14
  26. package/dist/{StatusIcon-v2EhaU49.js → StatusIcon-B21tjIXx.js} +1 -1
  27. package/dist/{StoreTokenModal-BV_gLE94.js → StoreTokenModal-CHgvjLGl.js} +1 -1
  28. package/dist/{SymbolsPane-CuVCamJf.js → SymbolsPane-DUrLpSSw.js} +11 -11
  29. package/dist/{TutorialPage-DGQGx3vF.js → TutorialPage-DHgPuFN0.js} +11 -11
  30. package/dist/{VegaLiteChart-BIeSuNU8.js → VegaLiteChart-BqHLSptG.js} +6689 -6690
  31. package/dist/{WelcomePage-T757Ynnn.js → WelcomePage-CN6ptsoF.js} +3 -3
  32. package/dist/agent.js +1349 -0
  33. package/dist/{cssMode-zpO2ap2B.js → cssMode-DW4OByy3.js} +2 -2
  34. package/dist/dashboard.js +66 -66
  35. package/dist/{editor.main-BQh6DxDB.js → editor.main-TuTbSVcN.js} +22 -22
  36. package/dist/{editorStore-k4IbmW9-.js → editorStore-Czhpct1j.js} +1695 -1125
  37. package/dist/entry.agent.d.ts +12 -0
  38. package/dist/entry.agent.d.ts.map +1 -0
  39. package/dist/entry.llm.d.ts +1 -1
  40. package/dist/entry.llm.d.ts.map +1 -1
  41. package/dist/{freemarker2-DQBqlEXc.js → freemarker2-ZGcKAI8o.js} +1 -1
  42. package/dist/{globalChatRuntime-BWahbZxZ.js → globalChatRuntime-BnMYNYqe.js} +30 -30
  43. package/dist/{handlebars-tgYxaM70.js → handlebars-B3s0Qrrb.js} +1 -1
  44. package/dist/{helpers-DDKx6kkf.js → helpers-B3tq3RZK.js} +17 -17
  45. package/dist/{html-jJahD3Mi.js → html-DM1koKCG.js} +1 -1
  46. package/dist/{htmlMode-BA1-8l2e.js → htmlMode-CpPImbDh.js} +2 -2
  47. package/dist/{javascript-Cypfo7va.js → javascript-jClqu73w.js} +1 -1
  48. package/dist/{jsonMode-xJye8PWS.js → jsonMode-CwFYTPO9.js} +2 -2
  49. package/dist/{liquid-BGDrv5da.js → liquid-C6l-UINC.js} +1 -1
  50. package/dist/llm/chatAgentPrompt.d.ts +4 -16
  51. package/dist/llm/chatAgentPrompt.d.ts.map +1 -1
  52. package/dist/llm/dashboardAgentRuntime.d.ts +10 -10
  53. package/dist/llm/dashboardAgentTools.d.ts +10 -10
  54. package/dist/llm/data/prompts.d.ts +1 -1
  55. package/dist/llm/data/prompts.d.ts.map +1 -1
  56. package/dist/llm/data/trilogySyntax.generated.d.ts +3 -3
  57. package/dist/llm/data/trilogySyntax.generated.d.ts.map +1 -1
  58. package/dist/llm/returnToUserTool.d.ts +20 -0
  59. package/dist/llm/returnToUserTool.d.ts.map +1 -0
  60. package/dist/llm/toolLoopCore.d.ts +7 -0
  61. package/dist/llm/toolLoopCore.d.ts.map +1 -1
  62. package/dist/llm/utils.d.ts.map +1 -1
  63. package/dist/{llm--BDQ6qkZ.js → llm-Bc1CfjOE.js} +2233 -2786
  64. package/dist/llm.js +3 -3
  65. package/dist/{localStorage-BYwXjN4M.js → localStorage-Cy0sHlT0.js} +18 -18
  66. package/dist/{lspLanguageFeatures-V3e_p9oN.js → lspLanguageFeatures-GDtuGOTD.js} +1 -1
  67. package/dist/{mdx-BUR1aImW.js → mdx-BQEQ0k1f.js} +1 -1
  68. package/dist/monaco.js +3 -3
  69. package/dist/{python-YLkl0pc6.js → python-USoVCfWY.js} +1 -1
  70. package/dist/{razor-BP8TRMDY.js → razor-BxmgiR-q.js} +1 -1
  71. package/dist/{reconcile-D-vMtlgJ.js → reconcile-DtPcgEjQ.js} +1 -1
  72. package/dist/{remoteStoreSync-PLFQCOmY.js → remoteStoreSync-CscErZ-I.js} +2 -2
  73. package/dist/{stores-S6dQ5cjI.js → stores-DgdADCiH.js} +325 -325
  74. package/dist/stores.js +3 -4
  75. package/dist/{tsMode-BH9HS_sH.js → tsMode-BEQ7aXX4.js} +1 -1
  76. package/dist/{typescript-BM-ynfk9.js → typescript-CzBSjjfY.js} +1 -1
  77. package/dist/{useChatWithTools-Bkd9MeMh.js → useChatWithTools-CMhGxdyr.js} +7 -7
  78. package/dist/{useDashboard-50rwbG0x.js → useDashboard-CjZgjmgb.js} +1148 -1148
  79. package/dist/{useGlobalChatPanel-JJZaHao8.js → useGlobalChatPanel-Doeilj18.js} +69 -70
  80. package/dist/views/LLMView.vue.d.ts +23 -23
  81. package/dist/views/TutorialPage.vue.d.ts +10 -10
  82. package/dist/views.js +147 -148
  83. package/dist/vite.agent.config.d.ts +3 -0
  84. package/dist/vite.agent.config.d.ts.map +1 -0
  85. package/dist/{workers-B9Eybl-M.js → workers-CHvkad0r.js} +2 -2
  86. package/dist/{xml-M5WFPSpA.js → xml-ODdyS0gX.js} +1 -1
  87. package/dist/{yaml-CEeFwjz9.js → yaml-PCBTA2qD.js} +1 -1
  88. package/package.json +7 -2
  89. package/dist/AssetAutoImporter-CCbTLQ9v.js +0 -403
  90. package/dist/rolldown-runtime-B0aSnxlc.js +0 -20
@@ -1,12 +1,11 @@
1
- import { n as e } from "./rolldown-runtime-B0aSnxlc.js";
2
- import { t } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
3
- import { n, o as r, s as i } from "./config-DwTONafa.js";
4
- import { n as a, r as o } from "./screenBridge-BLlMdfhn.js";
5
- import { cn as s, dn as c } from "./llm--BDQ6qkZ.js";
6
- import { p as l } from "./stores-S6dQ5cjI.js";
7
- import { S as u, c as d, i as f, t as p } from "./editorStore-k4IbmW9-.js";
8
- import { n as m, t as h } from "./useGlobalChatPanel-JJZaHao8.js";
9
- import { a as g, i as _, m as v, n as y, o as b, r as x, s as ee, t as S } from "./useDashboard-50rwbG0x.js";
1
+ import { fn as e, ln as t, pn as n } from "./llm-Bc1CfjOE.js";
2
+ import { t as r } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
3
+ import { n as i, o as a, s as o } from "./config-DwTONafa.js";
4
+ import { n as s, r as c } from "./screenBridge-BLlMdfhn.js";
5
+ import { S as l, c as u, i as d, t as f } from "./editorStore-Czhpct1j.js";
6
+ import { p } from "./stores-DgdADCiH.js";
7
+ import { n as m, t as h } from "./useGlobalChatPanel-Doeilj18.js";
8
+ import { a as g, i as _, m as v, n as y, o as b, r as x, s as ee, t as S } from "./useDashboard-CjZgjmgb.js";
10
9
  import { Fragment as C, Teleport as w, computed as T, createBlock as E, createCommentVNode as te, createElementBlock as D, createElementVNode as O, createVNode as k, defineComponent as A, getCurrentInstance as ne, inject as re, nextTick as j, normalizeClass as ie, normalizeStyle as ae, onBeforeMount as oe, onBeforeUnmount as se, onMounted as ce, openBlock as M, provide as le, ref as N, renderList as P, renderSlot as ue, toDisplayString as F, unref as I, useSlots as de, vShow as L, watch as R, withCtx as fe, withDirectives as z } from "vue";
11
10
  //#region node_modules/.pnpm/vue3-grid-layout-next@1.0.7_typescript@5.9.3/node_modules/vue3-grid-layout-next/dist/vue3-grid-layout.js
12
11
  var pe = Object.defineProperty, B = (e, t, n) => t in e ? pe(e, t, {
@@ -261,33 +260,33 @@ function Ge(e) {
261
260
  let t = e;
262
261
  W.document = t.document, W.DocumentFragment = t.DocumentFragment || G, W.SVGElement = t.SVGElement || G, W.SVGSVGElement = t.SVGSVGElement || G, W.SVGElementInstance = t.SVGElementInstance || G, W.Element = t.Element || G, W.HTMLElement = t.HTMLElement || W.Element, W.Event = t.Event, W.Touch = t.Touch || G, W.PointerEvent = t.PointerEvent || t.MSPointerEvent;
263
262
  }
264
- var Ke = (e) => !!(e && e.Window) && e instanceof e.Window, qe, Je;
265
- function Ye(e) {
263
+ var Ke = (e) => !!(e && e.Window) && e instanceof e.Window, qe, q;
264
+ function Je(e) {
266
265
  qe = e;
267
266
  let t = e.document.createTextNode("");
268
- t.ownerDocument !== e.document && typeof e.wrap == "function" && e.wrap(t) === t && (e = e.wrap(e)), Je = e;
267
+ t.ownerDocument !== e.document && typeof e.wrap == "function" && e.wrap(t) === t && (e = e.wrap(e)), q = e;
269
268
  }
270
- typeof window < "u" && window && Ye(window);
271
- function Xe(e) {
272
- return Ke(e) ? e : (e.ownerDocument || e).defaultView || Je.window;
269
+ typeof window < "u" && window && Je(window);
270
+ function Ye(e) {
271
+ return Ke(e) ? e : (e.ownerDocument || e).defaultView || q.window;
273
272
  }
274
- var Ze = (e) => e === Je || Ke(e), Qe = (e) => $e(e) && e.nodeType === 11, $e = (e) => !!e && typeof e == "object", et = (e) => typeof e == "function", q = {
275
- window: Ze,
276
- docFrag: Qe,
277
- object: $e,
278
- func: et,
273
+ var Xe = (e) => e === q || Ke(e), Ze = (e) => Qe(e) && e.nodeType === 11, Qe = (e) => !!e && typeof e == "object", $e = (e) => typeof e == "function", J = {
274
+ window: Xe,
275
+ docFrag: Ze,
276
+ object: Qe,
277
+ func: $e,
279
278
  number: (e) => typeof e == "number",
280
279
  bool: (e) => typeof e == "boolean",
281
280
  string: (e) => typeof e == "string",
282
281
  element: (e) => {
283
282
  if (!e || typeof e != "object") return !1;
284
- let t = Xe(e) || Je;
283
+ let t = Ye(e) || q;
285
284
  return /object|function/.test(typeof Element) ? e instanceof Element || e instanceof t.Element : e.nodeType === 1 && typeof e.nodeName == "string";
286
285
  },
287
- plainObject: (e) => $e(e) && !!e.constructor && /function Object\b/.test(e.constructor.toString()),
288
- array: (e) => $e(e) && typeof e.length < "u" && et(e.splice)
289
- }, J = {
290
- init: tt,
286
+ plainObject: (e) => Qe(e) && !!e.constructor && /function Object\b/.test(e.constructor.toString()),
287
+ array: (e) => Qe(e) && typeof e.length < "u" && $e(e.splice)
288
+ }, Y = {
289
+ init: et,
291
290
  supportsTouch: null,
292
291
  supportsPointerEvent: null,
293
292
  isIOS7: null,
@@ -298,9 +297,9 @@ var Ze = (e) => e === Je || Ke(e), Qe = (e) => $e(e) && e.nodeType === 11, $e =
298
297
  pEventTypes: null,
299
298
  wheelEvent: null
300
299
  };
301
- function tt(e) {
300
+ function et(e) {
302
301
  let t = K.Element, n = e.navigator || {};
303
- J.supportsTouch = "ontouchstart" in e || q.func(e.DocumentTouch) && K.document instanceof e.DocumentTouch, J.supportsPointerEvent = n.pointerEnabled !== !1 && !!K.PointerEvent, J.isIOS = /iP(hone|od|ad)/.test(n.platform), J.isIOS7 = /iP(hone|od|ad)/.test(n.platform) && /OS 7[^\d]/.test(n.appVersion), J.isIe9 = /MSIE 9/.test(n.userAgent), J.isOperaMobile = n.appName === "Opera" && J.supportsTouch && /Presto/.test(n.userAgent), J.prefixedMatchesSelector = "matches" in t.prototype ? "matches" : "webkitMatchesSelector" in t.prototype ? "webkitMatchesSelector" : "mozMatchesSelector" in t.prototype ? "mozMatchesSelector" : "oMatchesSelector" in t.prototype ? "oMatchesSelector" : "msMatchesSelector", J.pEventTypes = J.supportsPointerEvent ? K.PointerEvent === e.MSPointerEvent ? {
302
+ Y.supportsTouch = "ontouchstart" in e || J.func(e.DocumentTouch) && K.document instanceof e.DocumentTouch, Y.supportsPointerEvent = n.pointerEnabled !== !1 && !!K.PointerEvent, Y.isIOS = /iP(hone|od|ad)/.test(n.platform), Y.isIOS7 = /iP(hone|od|ad)/.test(n.platform) && /OS 7[^\d]/.test(n.appVersion), Y.isIe9 = /MSIE 9/.test(n.userAgent), Y.isOperaMobile = n.appName === "Opera" && Y.supportsTouch && /Presto/.test(n.userAgent), Y.prefixedMatchesSelector = "matches" in t.prototype ? "matches" : "webkitMatchesSelector" in t.prototype ? "webkitMatchesSelector" : "mozMatchesSelector" in t.prototype ? "mozMatchesSelector" : "oMatchesSelector" in t.prototype ? "oMatchesSelector" : "msMatchesSelector", Y.pEventTypes = Y.supportsPointerEvent ? K.PointerEvent === e.MSPointerEvent ? {
304
303
  up: "MSPointerUp",
305
304
  down: "MSPointerDown",
306
305
  over: "mouseover",
@@ -314,10 +313,10 @@ function tt(e) {
314
313
  out: "pointerout",
315
314
  move: "pointermove",
316
315
  cancel: "pointercancel"
317
- } : null, J.wheelEvent = K.document && "onmousewheel" in K.document ? "mousewheel" : "wheel";
316
+ } : null, Y.wheelEvent = K.document && "onmousewheel" in K.document ? "mousewheel" : "wheel";
318
317
  }
319
- var Y = J;
320
- function X(e, t) {
318
+ var X = Y;
319
+ function Z(e, t) {
321
320
  if (e.contains) return e.contains(t);
322
321
  for (; t;) {
323
322
  if (t === e) return !0;
@@ -325,28 +324,28 @@ function X(e, t) {
325
324
  }
326
325
  return !1;
327
326
  }
328
- function nt(e, t) {
329
- for (; q.element(e);) {
327
+ function tt(e, t) {
328
+ for (; J.element(e);) {
330
329
  if (rt(e, t)) return e;
331
- e = Z(e);
330
+ e = nt(e);
332
331
  }
333
332
  return null;
334
333
  }
335
- function Z(e) {
334
+ function nt(e) {
336
335
  let t = e.parentNode;
337
- if (q.docFrag(t)) {
338
- for (; (t = t.host) && q.docFrag(t););
336
+ if (J.docFrag(t)) {
337
+ for (; (t = t.host) && J.docFrag(t););
339
338
  return t;
340
339
  }
341
340
  return t;
342
341
  }
343
342
  function rt(e, t) {
344
- return Je !== qe && (t = t.replace(/\/deep\//g, " ")), e[Y.prefixedMatchesSelector](t);
343
+ return q !== qe && (t = t.replace(/\/deep\//g, " ")), e[X.prefixedMatchesSelector](t);
345
344
  }
346
345
  function it(e, t, n) {
347
- for (; q.element(e);) {
346
+ for (; J.element(e);) {
348
347
  if (rt(e, t)) return !0;
349
- if (e = Z(e), e === n) return rt(e, t);
348
+ if (e = nt(e), e === n) return rt(e, t);
350
349
  }
351
350
  return !1;
352
351
  }
@@ -354,7 +353,7 @@ function at(e) {
354
353
  return e.correspondingUseElement || e;
355
354
  }
356
355
  function ot(e) {
357
- return e ||= Je, {
356
+ return e ||= q, {
358
357
  x: e.scrollX || e.document.documentElement.scrollLeft,
359
358
  y: e.scrollY || e.document.documentElement.scrollTop
360
359
  };
@@ -372,14 +371,14 @@ function st(e) {
372
371
  }
373
372
  function ct(e) {
374
373
  let t = st(e);
375
- if (!Y.isIOS7 && t) {
376
- let n = ot(Xe(e));
374
+ if (!X.isIOS7 && t) {
375
+ let n = ot(Ye(e));
377
376
  t.left += n.x, t.right += n.x, t.top += n.y, t.bottom += n.y;
378
377
  }
379
378
  return t;
380
379
  }
381
380
  function lt(e) {
382
- return q.string(e) ? (K.document.querySelector(e), !0) : !1;
381
+ return J.string(e) ? (K.document.querySelector(e), !0) : !1;
383
382
  }
384
383
  function Q(e, t) {
385
384
  for (let n in t) e[n] = t[n];
@@ -388,7 +387,7 @@ function Q(e, t) {
388
387
  function ut(e, t) {
389
388
  let n = !1;
390
389
  return function() {
391
- return n ||= (Je.console.warn(t), !0), e.apply(this, arguments);
390
+ return n ||= (q.console.warn(t), !0), e.apply(this, arguments);
392
391
  };
393
392
  }
394
393
  function dt(e, t) {
@@ -422,10 +421,10 @@ function pt(e, t, n, r, i) {
422
421
  return i.fire("auto-start:check", a), a.action;
423
422
  }
424
423
  function mt(e) {
425
- return q.bool(e) ? (this.options.styleCursor = e, this) : e === null ? (delete this.options.styleCursor, this) : this.options.styleCursor;
424
+ return J.bool(e) ? (this.options.styleCursor = e, this) : e === null ? (delete this.options.styleCursor, this) : this.options.styleCursor;
426
425
  }
427
426
  function ht(e) {
428
- return q.func(e) ? (this.options.actionChecker = e, this) : e === null ? (delete this.options.actionChecker, this) : this.options.actionChecker;
427
+ return J.func(e) ? (this.options.actionChecker = e, this) : e === null ? (delete this.options.actionChecker, this) : this.options.actionChecker;
429
428
  }
430
429
  var gt = {
431
430
  id: "auto-start/interactableMethods",
@@ -488,11 +487,11 @@ function wt(e, t, n, r, i) {
488
487
  function c(e) {
489
488
  a.push(e), o.push(s);
490
489
  }
491
- for (; q.element(s);) {
490
+ for (; J.element(s);) {
492
491
  a = [], o = [], i.interactables.forEachMatch(s, c);
493
492
  let l = Ct(e, t, n, a, o, r, i);
494
493
  if (l.action && !l.interactable.options[l.action.name].manualStart) return l;
495
- s = Z(s);
494
+ s = nt(s);
496
495
  }
497
496
  return {
498
497
  action: null,
@@ -513,7 +512,7 @@ function Et(e, t, n, r) {
513
512
  return s > 0;
514
513
  }
515
514
  function Dt(e, t) {
516
- return q.number(e) ? (t.autoStart.maxInteractions = e, this) : t.autoStart.maxInteractions;
515
+ return J.number(e) ? (t.autoStart.maxInteractions = e, this) : t.autoStart.maxInteractions;
517
516
  }
518
517
  function Ot(e, t, n) {
519
518
  let { cursorElement: r } = n.autoStart;
@@ -528,7 +527,7 @@ function kt(e, t) {
528
527
  let a = "";
529
528
  if (i.name) {
530
529
  let o = n.options[i.name].cursorChecker;
531
- a = q.func(o) ? o(i, n, r, e._interacting) : t.actions.map[i.name].getCursor(i);
530
+ a = J.func(o) ? o(i, n, r, e._interacting) : t.actions.map[i.name].getCursor(i);
532
531
  }
533
532
  Ot(e.element, a || "", t);
534
533
  }
@@ -560,13 +559,13 @@ function jt({ interaction: e, eventTarget: t, dx: n, dy: r }, i) {
560
559
  if (a && a.name === "drag" && Mt(l, r) && At.validateAction(a, r, n, t, i)) return r;
561
560
  }
562
561
  };
563
- for (; q.element(n);) {
562
+ for (; J.element(n);) {
564
563
  let t = i.interactables.forEachMatch(n, r);
565
564
  if (t) {
566
565
  e.prepared.name = "drag", e.interactable = t, e.element = n;
567
566
  break;
568
567
  }
569
- n = Z(n);
568
+ n = nt(n);
570
569
  }
571
570
  }
572
571
  }
@@ -626,7 +625,7 @@ function Ut(e) {
626
625
  let t = {};
627
626
  for (let n in e) {
628
627
  let r = e[n];
629
- t[n] = q.plainObject(r) ? Ut(r) : q.array(r) ? Bt(r) : r;
628
+ t[n] = J.plainObject(r) ? Ut(r) : J.array(r) ? Bt(r) : r;
630
629
  }
631
630
  return t;
632
631
  }
@@ -651,10 +650,10 @@ var Jt = {
651
650
  init: qt
652
651
  };
653
652
  function Yt(e, t, n) {
654
- if (n ||= {}, q.string(e) && e.search(" ") !== -1 && (e = Xt(e)), q.array(e)) return e.reduce((e, r) => Q(e, Yt(r, t, n)), n);
655
- if (q.object(e) && (t = e, e = ""), q.func(t)) n[e] = n[e] || [], n[e].push(t);
656
- else if (q.array(t)) for (let r of t) Yt(e, r, n);
657
- else if (q.object(t)) for (let r in t) Yt(Xt(r).map((t) => `${e}${t}`), t[r], n);
653
+ if (n ||= {}, J.string(e) && e.search(" ") !== -1 && (e = Xt(e)), J.array(e)) return e.reduce((e, r) => Q(e, Yt(r, t, n)), n);
654
+ if (J.object(e) && (t = e, e = ""), J.func(t)) n[e] = n[e] || [], n[e].push(t);
655
+ else if (J.array(t)) for (let r of t) Yt(e, r, n);
656
+ else if (J.object(t)) for (let r in t) Yt(Xt(r).map((t) => `${e}${t}`), t[r], n);
658
657
  return n;
659
658
  }
660
659
  function Xt(e) {
@@ -693,11 +692,11 @@ var Qt = class {
693
692
  }
694
693
  };
695
694
  function $t(e, t, n) {
696
- return e === "parent" ? Z(n) : e === "self" ? t.getRect(n) : nt(n, e);
695
+ return e === "parent" ? nt(n) : e === "self" ? t.getRect(n) : tt(n, e);
697
696
  }
698
697
  function en(e, t, n, r) {
699
698
  let i = e;
700
- return q.string(i) ? i = $t(i, t, n) : q.func(i) && (i = i(...r)), q.element(i) && (i = ct(i)), i;
699
+ return J.string(i) ? i = $t(i, t, n) : J.func(i) && (i = i(...r)), J.element(i) && (i = ct(i)), i;
701
700
  }
702
701
  function tn(e) {
703
702
  return e && {
@@ -897,13 +896,13 @@ function vn(e, t) {
897
896
  return t ||= {
898
897
  x: 0,
899
898
  y: 0
900
- }, Y.isOperaMobile && gn(e) ? (_n("screen", e, t), t.x += window.scrollX, t.y += window.scrollY) : _n("page", e, t), t;
899
+ }, X.isOperaMobile && gn(e) ? (_n("screen", e, t), t.x += window.scrollX, t.y += window.scrollY) : _n("page", e, t), t;
901
900
  }
902
901
  function yn(e, t) {
903
- return t ||= {}, Y.isOperaMobile && gn(e) ? _n("screen", e, t) : _n("client", e, t), t;
902
+ return t ||= {}, X.isOperaMobile && gn(e) ? _n("screen", e, t) : _n("client", e, t), t;
904
903
  }
905
904
  function bn(e) {
906
- return q.number(e.pointerId) ? e.pointerId : e.identifier;
905
+ return J.number(e.pointerId) ? e.pointerId : e.identifier;
907
906
  }
908
907
  function xn(e, t, n) {
909
908
  let r = t.length > 1 ? Cn(t) : t[0];
@@ -911,7 +910,7 @@ function xn(e, t, n) {
911
910
  }
912
911
  function Sn(e) {
913
912
  let t = [];
914
- return q.array(e) ? (t[0] = e[0], t[1] = e[1]) : e.type === "touchend" ? e.touches.length === 1 ? (t[0] = e.touches[0], t[1] = e.changedTouches[0]) : e.touches.length === 0 && (t[0] = e.changedTouches[0], t[1] = e.changedTouches[1]) : (t[0] = e.touches[0], t[1] = e.touches[1]), t;
913
+ return J.array(e) ? (t[0] = e[0], t[1] = e[1]) : e.type === "touchend" ? e.touches.length === 1 ? (t[0] = e.touches[0], t[1] = e.changedTouches[0]) : e.touches.length === 0 && (t[0] = e.changedTouches[0], t[1] = e.changedTouches[1]) : (t[0] = e.touches[0], t[1] = e.touches[1]), t;
915
914
  }
916
915
  function Cn(e) {
917
916
  let t = {
@@ -949,7 +948,7 @@ function En(e, t) {
949
948
  return 180 * Math.atan2(o, a) / Math.PI;
950
949
  }
951
950
  function Dn(e) {
952
- return q.string(e.pointerType) ? e.pointerType : q.number(e.pointerType) ? [
951
+ return J.string(e.pointerType) ? e.pointerType : J.number(e.pointerType) ? [
953
952
  void 0,
954
953
  void 0,
955
954
  "touch",
@@ -958,7 +957,7 @@ function Dn(e) {
958
957
  ][e.pointerType] : /touch/.test(e.type || "") || e instanceof K.Touch ? "touch" : "mouse";
959
958
  }
960
959
  function On(e) {
961
- let t = q.func(e.composedPath) ? e.composedPath() : e.path;
960
+ let t = J.func(e.composedPath) ? e.composedPath() : e.path;
962
961
  return [at(t ? t[0] : e.target), at(e.currentTarget)];
963
962
  }
964
963
  function kn() {
@@ -984,26 +983,26 @@ function jn(e) {
984
983
  let i = e.interactables.get(n, r);
985
984
  return i || (i = e.interactables.new(n, r), i.events.global = t.globalEvents), i;
986
985
  };
987
- return t.getPointerAverage = Cn, t.getTouchBBox = wn, t.getTouchDistance = Tn, t.getTouchAngle = En, t.getElementRect = ct, t.getElementClientRect = st, t.matchesSelector = rt, t.closest = nt, t.globalEvents = {}, t.version = "1.10.18", t.scope = e, t.use = function(e, t) {
986
+ return t.getPointerAverage = Cn, t.getTouchBBox = wn, t.getTouchDistance = Tn, t.getTouchAngle = En, t.getElementRect = ct, t.getElementClientRect = st, t.matchesSelector = rt, t.closest = tt, t.globalEvents = {}, t.version = "1.10.18", t.scope = e, t.use = function(e, t) {
988
987
  return this.scope.usePlugin(e, t), this;
989
988
  }, t.isSet = function(e, t) {
990
989
  return !!this.scope.interactables.get(e, t && t.context);
991
990
  }, t.on = ut(function(e, t, n) {
992
- if (q.string(e) && e.search(" ") !== -1 && (e = e.trim().split(/ +/)), q.array(e)) {
991
+ if (J.string(e) && e.search(" ") !== -1 && (e = e.trim().split(/ +/)), J.array(e)) {
993
992
  for (let r of e) this.on(r, t, n);
994
993
  return this;
995
994
  }
996
- if (q.object(e)) {
995
+ if (J.object(e)) {
997
996
  for (let n in e) this.on(n, e[n], t);
998
997
  return this;
999
998
  }
1000
999
  return An(e, this.scope.actions) ? this.globalEvents[e] ? this.globalEvents[e].push(t) : this.globalEvents[e] = [t] : this.scope.events.add(this.scope.document, e, t, { options: n }), this;
1001
1000
  }, "The interact.on() method is being deprecated"), t.off = ut(function(e, t, n) {
1002
- if (q.string(e) && e.search(" ") !== -1 && (e = e.trim().split(/ +/)), q.array(e)) {
1001
+ if (J.string(e) && e.search(" ") !== -1 && (e = e.trim().split(/ +/)), J.array(e)) {
1003
1002
  for (let r of e) this.off(r, t, n);
1004
1003
  return this;
1005
1004
  }
1006
- if (q.object(e)) {
1005
+ if (J.object(e)) {
1007
1006
  for (let n in e) this.off(n, e[n], t);
1008
1007
  return this;
1009
1008
  }
@@ -1015,14 +1014,14 @@ function jn(e) {
1015
1014
  }, "The interact.off() method is being deprecated"), t.debug = function() {
1016
1015
  return this.scope;
1017
1016
  }, t.supportsTouch = function() {
1018
- return Y.supportsTouch;
1017
+ return X.supportsTouch;
1019
1018
  }, t.supportsPointerEvent = function() {
1020
- return Y.supportsPointerEvent;
1019
+ return X.supportsPointerEvent;
1021
1020
  }, t.stop = function() {
1022
1021
  for (let e of this.scope.interactions.list) e.stop();
1023
1022
  return this;
1024
1023
  }, t.pointerMoveTolerance = function(e) {
1025
- return q.number(e) ? (this.scope.interactions.pointerMoveTolerance = e, this) : this.scope.interactions.pointerMoveTolerance;
1024
+ return J.number(e) ? (this.scope.interactions.pointerMoveTolerance = e, this) : this.scope.interactions.pointerMoveTolerance;
1026
1025
  }, t.addDocument = function(e, t) {
1027
1026
  this.scope.addDocument(e, t);
1028
1027
  }, t.removeDocument = function(e) {
@@ -1031,7 +1030,7 @@ function jn(e) {
1031
1030
  }
1032
1031
  var Mn = class {
1033
1032
  constructor(e, t, n, r) {
1034
- V(this, "options"), V(this, "_actions"), V(this, "target"), V(this, "events", new Qt()), V(this, "_context"), V(this, "_win"), V(this, "_doc"), V(this, "_scopeEvents"), V(this, "_rectChecker"), this._actions = t.actions, this.target = e, this._context = t.context || n, this._win = Xe(lt(e) ? this._context : e), this._doc = this._win.document, this._scopeEvents = r, this.set(t);
1033
+ V(this, "options"), V(this, "_actions"), V(this, "target"), V(this, "events", new Qt()), V(this, "_context"), V(this, "_win"), V(this, "_doc"), V(this, "_scopeEvents"), V(this, "_rectChecker"), this._actions = t.actions, this.target = e, this._context = t.context || n, this._win = Ye(lt(e) ? this._context : e), this._doc = this._win.document, this._scopeEvents = r, this.set(t);
1035
1034
  }
1036
1035
  get _defaults() {
1037
1036
  return {
@@ -1041,29 +1040,29 @@ var Mn = class {
1041
1040
  };
1042
1041
  }
1043
1042
  setOnEvents(e, t) {
1044
- return q.func(t.onstart) && this.on(`${e}start`, t.onstart), q.func(t.onmove) && this.on(`${e}move`, t.onmove), q.func(t.onend) && this.on(`${e}end`, t.onend), q.func(t.oninertiastart) && this.on(`${e}inertiastart`, t.oninertiastart), this;
1043
+ return J.func(t.onstart) && this.on(`${e}start`, t.onstart), J.func(t.onmove) && this.on(`${e}move`, t.onmove), J.func(t.onend) && this.on(`${e}end`, t.onend), J.func(t.oninertiastart) && this.on(`${e}inertiastart`, t.oninertiastart), this;
1045
1044
  }
1046
1045
  updatePerActionListeners(e, t, n) {
1047
- (q.array(t) || q.object(t)) && this.off(e, t), (q.array(n) || q.object(n)) && this.on(e, n);
1046
+ (J.array(t) || J.object(t)) && this.off(e, t), (J.array(n) || J.object(n)) && this.on(e, n);
1048
1047
  }
1049
1048
  setPerAction(e, t) {
1050
1049
  let n = this._defaults;
1051
1050
  for (let r in t) {
1052
1051
  let i = r, a = this.options[e], o = t[i];
1053
- i === "listeners" && this.updatePerActionListeners(e, a.listeners, o), q.array(o) ? a[i] = Bt(o) : q.plainObject(o) ? (a[i] = Q(a[i] || {}, Ut(o)), q.object(n.perAction[i]) && "enabled" in n.perAction[i] && (a[i].enabled = o.enabled !== !1)) : q.bool(o) && q.object(n.perAction[i]) ? a[i].enabled = o : a[i] = o;
1052
+ i === "listeners" && this.updatePerActionListeners(e, a.listeners, o), J.array(o) ? a[i] = Bt(o) : J.plainObject(o) ? (a[i] = Q(a[i] || {}, Ut(o)), J.object(n.perAction[i]) && "enabled" in n.perAction[i] && (a[i].enabled = o.enabled !== !1)) : J.bool(o) && J.object(n.perAction[i]) ? a[i].enabled = o : a[i] = o;
1054
1053
  }
1055
1054
  }
1056
1055
  getRect(e) {
1057
- return e ||= q.element(this.target) ? this.target : null, q.string(this.target) && (e ||= this._context.querySelector(this.target)), ct(e);
1056
+ return e ||= J.element(this.target) ? this.target : null, J.string(this.target) && (e ||= this._context.querySelector(this.target)), ct(e);
1058
1057
  }
1059
1058
  rectChecker(e) {
1060
- return q.func(e) ? (this._rectChecker = e, this.getRect = (e) => {
1059
+ return J.func(e) ? (this._rectChecker = e, this.getRect = (e) => {
1061
1060
  let t = Q({}, this._rectChecker(e));
1062
1061
  return "width" in t || (t.width = t.right - t.left, t.height = t.bottom - t.top), t;
1063
1062
  }, this) : e === null ? (delete this.getRect, delete this._rectChecker, this) : this.getRect;
1064
1063
  }
1065
1064
  _backCompatOption(e, t) {
1066
- if (lt(t) || q.object(t)) {
1065
+ if (lt(t) || J.object(t)) {
1067
1066
  this.options[e] = t;
1068
1067
  for (let n in this._actions.map) this.options[n][e] = t;
1069
1068
  return this;
@@ -1080,26 +1079,26 @@ var Mn = class {
1080
1079
  return this._context;
1081
1080
  }
1082
1081
  inContext(e) {
1083
- return this._context === e.ownerDocument || X(this._context, e);
1082
+ return this._context === e.ownerDocument || Z(this._context, e);
1084
1083
  }
1085
1084
  testIgnoreAllow(e, t, n) {
1086
1085
  return !this.testIgnore(e.ignoreFrom, t, n) && this.testAllow(e.allowFrom, t, n);
1087
1086
  }
1088
1087
  testAllow(e, t, n) {
1089
- return e ? q.element(n) ? q.string(e) ? it(n, e, t) : q.element(e) ? X(e, n) : !1 : !1 : !0;
1088
+ return e ? J.element(n) ? J.string(e) ? it(n, e, t) : J.element(e) ? Z(e, n) : !1 : !1 : !0;
1090
1089
  }
1091
1090
  testIgnore(e, t, n) {
1092
- return !e || !q.element(n) ? !1 : q.string(e) ? it(n, e, t) : q.element(e) ? X(e, n) : !1;
1091
+ return !e || !J.element(n) ? !1 : J.string(e) ? it(n, e, t) : J.element(e) ? Z(e, n) : !1;
1093
1092
  }
1094
1093
  fire(e) {
1095
1094
  return this.events.fire(e), this;
1096
1095
  }
1097
1096
  _onOff(e, t, n, r) {
1098
- q.object(t) && !q.array(t) && (r = n, n = null);
1097
+ J.object(t) && !J.array(t) && (r = n, n = null);
1099
1098
  let i = e === "on" ? "add" : "remove", a = Yt(t, n);
1100
1099
  for (let t in a) {
1101
- t === "wheel" && (t = Y.wheelEvent);
1102
- for (let n of a[t]) An(t, this._actions) ? this.events[e](t, n) : q.string(this.target) ? this._scopeEvents[`${i}Delegate`](this.target, this._context, t, n, r) : this._scopeEvents[i](this.target, t, n, r);
1100
+ t === "wheel" && (t = X.wheelEvent);
1101
+ for (let n of a[t]) An(t, this._actions) ? this.events[e](t, n) : J.string(this.target) ? this._scopeEvents[`${i}Delegate`](this.target, this._context, t, n, r) : this._scopeEvents[i](this.target, t, n, r);
1103
1102
  }
1104
1103
  return this;
1105
1104
  }
@@ -1111,16 +1110,16 @@ var Mn = class {
1111
1110
  }
1112
1111
  set(e) {
1113
1112
  let t = this._defaults;
1114
- q.object(e) || (e = {}), this.options = Ut(t.base);
1113
+ J.object(e) || (e = {}), this.options = Ut(t.base);
1115
1114
  for (let n in this._actions.methodDict) {
1116
1115
  let r = n, i = this._actions.methodDict[r];
1117
1116
  this.options[r] = {}, this.setPerAction(r, Q(Q({}, t.perAction), t.actions[r])), this[i](e[r]);
1118
1117
  }
1119
- for (let t in e) q.func(this[t]) && this[t](e[t]);
1118
+ for (let t in e) J.func(this[t]) && this[t](e[t]);
1120
1119
  return this;
1121
1120
  }
1122
1121
  unset() {
1123
- if (q.string(this.target)) for (let e in this._scopeEvents.delegatedEvents) {
1122
+ if (J.string(this.target)) for (let e in this._scopeEvents.delegatedEvents) {
1124
1123
  let t = this._scopeEvents.delegatedEvents[e];
1125
1124
  for (let n = t.length - 1; n >= 0; n--) {
1126
1125
  let { selector: r, context: i, listeners: a } = t[n];
@@ -1133,7 +1132,7 @@ var Mn = class {
1133
1132
  }, Nn = class {
1134
1133
  constructor(e) {
1135
1134
  V(this, "list", []), V(this, "selectorMap", {}), V(this, "scope"), this.scope = e, e.addListeners({ "interactable:unset": ({ interactable: e }) => {
1136
- let { target: t, _context: n } = e, r = q.string(t) ? this.selectorMap[t] : t[this.scope.id], i = Vt(r, (e) => e.context === n);
1135
+ let { target: t, _context: n } = e, r = J.string(t) ? this.selectorMap[t] : t[this.scope.id], i = Vt(r, (e) => e.context === n);
1137
1136
  r[i] && (r[i].context = null, r[i].interactable = null), r.splice(i, 1);
1138
1137
  } });
1139
1138
  }
@@ -1143,7 +1142,7 @@ var Mn = class {
1143
1142
  context: n._context,
1144
1143
  interactable: n
1145
1144
  };
1146
- return this.scope.addDocument(n._doc), this.list.push(n), q.string(e) ? (this.selectorMap[e] || (this.selectorMap[e] = []), this.selectorMap[e].push(r)) : (n.target[this.scope.id] || Object.defineProperty(e, this.scope.id, {
1145
+ return this.scope.addDocument(n._doc), this.list.push(n), J.string(e) ? (this.selectorMap[e] || (this.selectorMap[e] = []), this.selectorMap[e].push(r)) : (n.target[this.scope.id] || Object.defineProperty(e, this.scope.id, {
1147
1146
  value: [],
1148
1147
  configurable: !0
1149
1148
  }), e[this.scope.id].push(r)), this.scope.fire("interactable:new", {
@@ -1154,7 +1153,7 @@ var Mn = class {
1154
1153
  }), n;
1155
1154
  }
1156
1155
  get(e, t) {
1157
- let n = t && t.context || this.scope.document, r = q.string(e), i = r ? this.selectorMap[e] : e[this.scope.id];
1156
+ let n = t && t.context || this.scope.document, r = J.string(e), i = r ? this.selectorMap[e] : e[this.scope.id];
1158
1157
  if (!i) return null;
1159
1158
  let a = Ht(i, (t) => t.context === n && (r || t.interactable.inContext(e)));
1160
1159
  return a && a.interactable;
@@ -1162,7 +1161,7 @@ var Mn = class {
1162
1161
  forEachMatch(e, t) {
1163
1162
  for (let n of this.list) {
1164
1163
  let r;
1165
- if ((q.string(n.target) ? q.element(e) && rt(e, n.target) : e === n.target) && n.inContext(e) && (r = t(n)), r !== void 0) return r;
1164
+ if ((J.string(n.target) ? J.element(e) && rt(e, n.target) : e === n.target) && n.inContext(e) && (r = t(n)), r !== void 0) return r;
1166
1165
  }
1167
1166
  }
1168
1167
  };
@@ -1248,16 +1247,16 @@ function Pn(e) {
1248
1247
  }
1249
1248
  function u(e, t) {
1250
1249
  let n = In(t), i = new Fn(e), a = r[e.type], [o] = On(e), s = o;
1251
- for (; q.element(s);) {
1250
+ for (; J.element(s);) {
1252
1251
  for (let e = 0; e < a.length; e++) {
1253
1252
  let t = a[e], { selector: r, context: c } = t;
1254
- if (rt(s, r) && X(c, o) && X(c, s)) {
1253
+ if (rt(s, r) && Z(c, o) && Z(c, s)) {
1255
1254
  let { listeners: e } = t;
1256
1255
  i.currentTarget = s;
1257
1256
  for (let [t, { capture: r, passive: a }] of e) r === n.capture && a === n.passive && t(i);
1258
1257
  }
1259
1258
  }
1260
- s = Z(s);
1259
+ s = nt(s);
1261
1260
  }
1262
1261
  }
1263
1262
  function d(e) {
@@ -1280,7 +1279,7 @@ var Fn = class {
1280
1279
  }
1281
1280
  };
1282
1281
  function In(e) {
1283
- if (!q.object(e)) return {
1282
+ if (!J.object(e)) return {
1284
1283
  capture: !!e,
1285
1284
  passive: !1
1286
1285
  };
@@ -1478,7 +1477,7 @@ var Vn = 0, Hn = class {
1478
1477
  }
1479
1478
  };
1480
1479
  function Un(e) {
1481
- return /^(always|never|auto)$/.test(e) ? (this.options.preventDefault = e, this) : q.bool(e) ? (this.options.preventDefault = e ? "always" : "never", this) : this.options.preventDefault;
1480
+ return /^(always|never|auto)$/.test(e) ? (this.options.preventDefault = e, this) : J.bool(e) ? (this.options.preventDefault = e ? "always" : "never", this) : this.options.preventDefault;
1482
1481
  }
1483
1482
  function Wn(e, t, n) {
1484
1483
  let r = e.options.preventDefault;
@@ -1488,10 +1487,10 @@ function Wn(e, t, n) {
1488
1487
  return;
1489
1488
  }
1490
1489
  if (t.events.supportsPassive && /^touch(start|move)$/.test(n.type)) {
1491
- let e = Xe(n.target).document, r = t.getDocOptions(e);
1490
+ let e = Ye(n.target).document, r = t.getDocOptions(e);
1492
1491
  if (!(r && r.events) || r.events.passive !== !1) return;
1493
1492
  }
1494
- /^(mouse|pointer|touch)*(down|start)/i.test(n.type) || q.element(n.target) && rt(n.target, "input,select,textarea,[contenteditable=true],[contenteditable=true] *") || n.preventDefault();
1493
+ /^(mouse|pointer|touch)*(down|start)/i.test(n.type) || J.element(n.target) && rt(n.target, "input,select,textarea,[contenteditable=true],[contenteditable=true] *") || n.preventDefault();
1495
1494
  }
1496
1495
  }
1497
1496
  function Gn({ interaction: e, event: t }) {
@@ -1504,7 +1503,7 @@ function Kn(e) {
1504
1503
  }, e.interactions.docEvents.push({
1505
1504
  type: "dragstart",
1506
1505
  listener(t) {
1507
- for (let n of e.interactions.list) if (n.element && (n.element === t.target || X(n.element, t.target))) {
1506
+ for (let n of e.interactions.list) if (n.element && (n.element === t.target || Z(n.element, t.target))) {
1508
1507
  n.interactable.checkAndPreventDefault(t);
1509
1508
  return;
1510
1509
  }
@@ -1540,7 +1539,7 @@ var qn = {
1540
1539
  let r = n;
1541
1540
  if (t.simulation && t.simulation.allowResume && t.pointerType === e) for (; r;) {
1542
1541
  if (r === t.element) return t;
1543
- r = Z(r);
1542
+ r = nt(r);
1544
1543
  }
1545
1544
  }
1546
1545
  return null;
@@ -1586,7 +1585,7 @@ var Xn = Jn, Zn = [
1586
1585
  function Qn(e) {
1587
1586
  let t = {};
1588
1587
  for (let n of Zn) t[n] = $n(n, e);
1589
- let n = Y.pEventTypes, r;
1588
+ let n = X.pEventTypes, r;
1590
1589
  r = K.PointerEvent ? [
1591
1590
  {
1592
1591
  type: n.down,
@@ -1668,7 +1667,7 @@ function Qn(e) {
1668
1667
  pointerMoveTolerance: 1
1669
1668
  };
1670
1669
  function i() {
1671
- for (let t of e.interactions.list) if (t.pointerIsDown && t.pointerType === "touch" && !t._interacting) for (let n of t.pointers) e.documents.some(({ doc: e }) => X(e, n.downTarget)) || t.removePointer(n.pointer, n.event);
1670
+ for (let t of e.interactions.list) if (t.pointerIsDown && t.pointerType === "touch" && !t._interacting) for (let n of t.pointers) e.documents.some(({ doc: e }) => Z(e, n.downTarget)) || t.removePointer(n.pointer, n.event);
1672
1671
  }
1673
1672
  e.usePlugin(qn);
1674
1673
  }
@@ -1696,7 +1695,7 @@ function $n(e, t) {
1696
1695
  }
1697
1696
  } else {
1698
1697
  let e = !1;
1699
- if (!Y.supportsPointerEvent && /mouse/.test(n.type)) {
1698
+ if (!X.supportsPointerEvent && /mouse/.test(n.type)) {
1700
1699
  for (let t = 0; t < r.length && !e; t++) e = r[t].pointerType !== "mouse" && r[t].pointerIsDown;
1701
1700
  e = e || t.now() - t.prevTouchTime < 500 || n.timeStamp === 0;
1702
1701
  }
@@ -1753,7 +1752,7 @@ var nr = {
1753
1752
  methodNames: Zn
1754
1753
  }, rr = class {
1755
1754
  constructor() {
1756
- V(this, "id", `__interact_scope_${Math.floor(Math.random() * 100)}`), V(this, "isInitialized", !1), V(this, "listenerMaps", []), V(this, "browser", Y), V(this, "defaults", Ut(ln)), V(this, "Eventable", Qt), V(this, "actions", {
1755
+ V(this, "id", `__interact_scope_${Math.floor(Math.random() * 100)}`), V(this, "isInitialized", !1), V(this, "listenerMaps", []), V(this, "browser", X), V(this, "defaults", Ut(ln)), V(this, "Eventable", Qt), V(this, "actions", {
1757
1756
  map: {},
1758
1757
  phases: {
1759
1758
  start: !0,
@@ -1819,7 +1818,7 @@ var nr = {
1819
1818
  }
1820
1819
  addDocument(e, t) {
1821
1820
  if (this.getDocIndex(e) !== -1) return !1;
1822
- let n = Xe(e);
1821
+ let n = Ye(e);
1823
1822
  t = t ? Q({}, t) : {}, this.documents.push({
1824
1823
  doc: e,
1825
1824
  options: t
@@ -1831,7 +1830,7 @@ var nr = {
1831
1830
  });
1832
1831
  }
1833
1832
  removeDocument(e) {
1834
- let t = this.getDocIndex(e), n = Xe(e), r = this.documents[t].options;
1833
+ let t = this.getDocIndex(e), n = Ye(e), r = this.documents[t].options;
1835
1834
  this.events.remove(n, "unload", this.onWindowUnload), this.documents.splice(t, 1), this.events.documents.splice(t, 1), this.fire("scope:remove-document", {
1836
1835
  doc: e,
1837
1836
  window: n,
@@ -1852,7 +1851,7 @@ var nr = {
1852
1851
  }
1853
1852
  };
1854
1853
  function ir(e, t) {
1855
- return e.isInitialized = !0, q.window(t) && Ye(t), K.init(t), Y.init(t), Jt.init(t), e.window = t, e.document = t.document, e.usePlugin(nr), e.usePlugin(Ln), e;
1854
+ return e.isInitialized = !0, J.window(t) && Je(t), K.init(t), X.init(t), Jt.init(t), e.window = t, e.document = t.document, e.usePlugin(nr), e.usePlugin(Ln), e;
1856
1855
  }
1857
1856
  function ar(e) {
1858
1857
  return e && e.replace(/\/.*$/, "");
@@ -1894,7 +1893,7 @@ var $ = {
1894
1893
  };
1895
1894
  if (r.x || r.y) {
1896
1895
  let i = dr(a);
1897
- q.window(a) ? a.scrollBy(r.x, r.y) : a && (a.scrollLeft += r.x, a.scrollTop += r.y);
1896
+ J.window(a) ? a.scrollBy(r.x, r.y) : a && (a.scrollLeft += r.x, a.scrollTop += r.y);
1898
1897
  let o = dr(a), s = {
1899
1898
  x: o.x - i.x,
1900
1899
  y: o.y - i.y
@@ -1922,7 +1921,7 @@ var $ = {
1922
1921
  return;
1923
1922
  }
1924
1923
  let n, r, i, a, { interactable: o, element: s } = e, c = e.prepared.name, l = o.options[c].autoScroll, u = ur(l.container, o, s);
1925
- if (q.window(u)) a = t.clientX < $.margin, n = t.clientY < $.margin, r = t.clientX > u.innerWidth - $.margin, i = t.clientY > u.innerHeight - $.margin;
1924
+ if (J.window(u)) a = t.clientX < $.margin, n = t.clientY < $.margin, r = t.clientX > u.innerWidth - $.margin, i = t.clientY > u.innerHeight - $.margin;
1926
1925
  else {
1927
1926
  let e = st(u);
1928
1927
  a = t.clientX < e.left + $.margin, n = t.clientY < e.top + $.margin, r = t.clientX > e.right - $.margin, i = t.clientY > e.bottom - $.margin;
@@ -1931,10 +1930,10 @@ var $ = {
1931
1930
  }
1932
1931
  };
1933
1932
  function ur(e, t, n) {
1934
- return (q.string(e) ? $t(e, t, n) : e) || Xe(n);
1933
+ return (J.string(e) ? $t(e, t, n) : e) || Ye(n);
1935
1934
  }
1936
1935
  function dr(e) {
1937
- return q.window(e) && (e = window.document.body), {
1936
+ return J.window(e) && (e = window.document.body), {
1938
1937
  x: e.scrollLeft,
1939
1938
  y: e.scrollTop
1940
1939
  };
@@ -1987,7 +1986,7 @@ var gr = {
1987
1986
  }
1988
1987
  },
1989
1988
  draggable: function(e) {
1990
- return q.object(e) ? (this.options.drag.enabled = e.enabled !== !1, this.setPerAction("drag", e), this.setOnEvents("drag", e), /^(xy|x|y|start)$/.test(e.lockAxis) && (this.options.drag.lockAxis = e.lockAxis), /^(xy|x|y)$/.test(e.startAxis) && (this.options.drag.startAxis = e.startAxis), this) : q.bool(e) ? (this.options.drag.enabled = e, this) : this.options.drag;
1989
+ return J.object(e) ? (this.options.drag.enabled = e.enabled !== !1, this.setPerAction("drag", e), this.setOnEvents("drag", e), /^(xy|x|y|start)$/.test(e.lockAxis) && (this.options.drag.lockAxis = e.lockAxis), /^(xy|x|y)$/.test(e.startAxis) && (this.options.drag.startAxis = e.startAxis), this) : J.bool(e) ? (this.options.drag.enabled = e, this) : this.options.drag;
1991
1990
  },
1992
1991
  beforeMove: mr,
1993
1992
  move: hr,
@@ -2011,7 +2010,7 @@ function yr(e) {
2011
2010
  if (!i) return;
2012
2011
  let o = Q({}, t.coords.cur.page), s = n.options.resize;
2013
2012
  if (!(!(s && s.enabled) || t.pointerIsDown && /mouse|pointer/.test(t.pointerType) && (a & s.mouseButtons) === 0)) {
2014
- if (q.object(s.edges)) {
2013
+ if (J.object(s.edges)) {
2015
2014
  let n = {
2016
2015
  left: !1,
2017
2016
  right: !1,
@@ -2034,12 +2033,12 @@ function yr(e) {
2034
2033
  }
2035
2034
  }
2036
2035
  function br(e, t, n) {
2037
- return q.object(t) ? (e.options.resize.enabled = t.enabled !== !1, e.setPerAction("resize", t), e.setOnEvents("resize", t), q.string(t.axis) && /^x$|^y$|^xy$/.test(t.axis) ? e.options.resize.axis = t.axis : t.axis === null && (e.options.resize.axis = n.defaults.actions.resize.axis), q.bool(t.preserveAspectRatio) ? e.options.resize.preserveAspectRatio = t.preserveAspectRatio : q.bool(t.square) && (e.options.resize.square = t.square), e) : q.bool(t) ? (e.options.resize.enabled = t, e) : e.options.resize;
2036
+ return J.object(t) ? (e.options.resize.enabled = t.enabled !== !1, e.setPerAction("resize", t), e.setOnEvents("resize", t), J.string(t.axis) && /^x$|^y$|^xy$/.test(t.axis) ? e.options.resize.axis = t.axis : t.axis === null && (e.options.resize.axis = n.defaults.actions.resize.axis), J.bool(t.preserveAspectRatio) ? e.options.resize.preserveAspectRatio = t.preserveAspectRatio : J.bool(t.square) && (e.options.resize.square = t.square), e) : J.bool(t) ? (e.options.resize.enabled = t, e) : e.options.resize;
2038
2037
  }
2039
2038
  function xr(e, t, n, r, i, a, o) {
2040
2039
  if (!t) return !1;
2041
2040
  if (t === !0) {
2042
- let t = q.number(a.width) ? a.width : a.right - a.left, r = q.number(a.height) ? a.height : a.bottom - a.top;
2041
+ let t = J.number(a.width) ? a.width : a.right - a.left, r = J.number(a.height) ? a.height : a.bottom - a.top;
2043
2042
  if (o = Math.min(o, Math.abs((e === "left" || e === "right" ? t : r) / 2)), t < 0 && (e === "left" ? e = "right" : e === "right" && (e = "left")), r < 0 && (e === "top" ? e = "bottom" : e === "bottom" && (e = "top")), e === "left") {
2044
2043
  let e = t >= 0 ? a.left : a.right;
2045
2044
  return n.x < e + o;
@@ -2051,7 +2050,7 @@ function xr(e, t, n, r, i, a, o) {
2051
2050
  if (e === "right") return n.x > (t >= 0 ? a.right : a.left) - o;
2052
2051
  if (e === "bottom") return n.y > (r >= 0 ? a.bottom : a.top) - o;
2053
2052
  }
2054
- return q.element(r) ? q.element(t) ? t === r : it(r, t, i) : !1;
2053
+ return J.element(r) ? J.element(t) ? t === r : it(r, t, i) : !1;
2055
2054
  }
2056
2055
  function Sr(e) {
2057
2056
  return e.isIe9 ? {
@@ -2529,7 +2528,7 @@ function Gr({ coords: e, interaction: t, state: n }) {
2529
2528
  e.x = Math.max(Math.min(o.right - i.right, e.x), o.left + i.left), e.y = Math.max(Math.min(o.bottom - i.bottom, e.y), o.top + i.top);
2530
2529
  }
2531
2530
  function Kr(e, t, n) {
2532
- return q.func(e) ? en(e, t.interactable, t.element, [
2531
+ return J.func(e) ? en(e, t.interactable, t.element, [
2533
2532
  n.x,
2534
2533
  n.y,
2535
2534
  t
@@ -2671,10 +2670,10 @@ function ui(e) {
2671
2670
  let n = s.x - e.x, r = s.y - e.y;
2672
2671
  for (let a = 0, o = i.targets.length; a < o; a++) {
2673
2672
  let o = i.targets[a], s;
2674
- s = q.func(o) ? o(n, r, t._proxy, e, a) : o, s && c.push({
2675
- x: (q.number(s.x) ? s.x : n) + e.x,
2676
- y: (q.number(s.y) ? s.y : r) + e.y,
2677
- range: q.number(s.range) ? s.range : i.range,
2673
+ s = J.func(o) ? o(n, r, t._proxy, e, a) : o, s && c.push({
2674
+ x: (J.number(s.x) ? s.x : n) + e.x,
2675
+ y: (J.number(s.y) ? s.y : r) + e.y,
2676
+ range: J.number(s.range) ? s.range : i.range,
2678
2677
  source: o,
2679
2678
  index: a,
2680
2679
  offset: e
@@ -2740,7 +2739,7 @@ function hi(e) {
2740
2739
  n.options = Q({}, i), n.options.targets = [];
2741
2740
  for (let e of i.targets || []) {
2742
2741
  let r;
2743
- if (r = q.func(e) ? e(o.x, o.y, t) : e, r) {
2742
+ if (r = J.func(e) ? e(o.x, o.y, t) : e, r) {
2744
2743
  for (let [e, t] of n.targetFields) if (e in r || t in r) {
2745
2744
  r.x = r[e], r.y = r[t];
2746
2745
  break;
@@ -2851,14 +2850,14 @@ var Ti = [
2851
2850
  }
2852
2851
  ];
2853
2852
  function Ei(e, t, n) {
2854
- let r = e.style[t] || Je.getComputedStyle(e)[t];
2853
+ let r = e.style[t] || q.getComputedStyle(e)[t];
2855
2854
  return n.test((r || "").toString());
2856
2855
  }
2857
2856
  function Di(e, t, n) {
2858
2857
  let r = e;
2859
- for (; q.element(r);) {
2858
+ for (; J.element(r);) {
2860
2859
  if (Ei(r, t, n)) return !0;
2861
- r = Z(r);
2860
+ r = nt(r);
2862
2861
  }
2863
2862
  return !1;
2864
2863
  }
@@ -4275,13 +4274,13 @@ var va = /* @__PURE__ */ A({
4275
4274
  //#endregion
4276
4275
  //#region components/dashboard/useDashboardAgentAutoRun.ts
4277
4276
  function ya(e, t = {}) {
4278
- let n = l(), r = f(), i = u(), a = p(), o = re("llmConnectionStore", null), s = re("queryExecutionService", null);
4277
+ let n = p(), r = d(), i = l(), a = f(), o = re("llmConnectionStore", null), s = re("queryExecutionService", null);
4279
4278
  async function c(c) {
4280
4279
  let l = e.value;
4281
4280
  if (!l || !c.trim()) return null;
4282
4281
  if (!o || !s) return console.error("Dashboard agent auto-run unavailable: missing llm connection store or query service"), null;
4283
4282
  try {
4284
- let e = await d({
4283
+ let e = await u({
4285
4284
  dashboardId: l.id,
4286
4285
  prompt: c,
4287
4286
  stores: {
@@ -4328,53 +4327,53 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4328
4327
  viewMode: { type: Boolean }
4329
4328
  },
4330
4329
  emits: ["fullScreen"],
4331
- setup(e, { emit: t }) {
4332
- let u = e, d = t, f = l(), p = T(() => {
4333
- let e = Object.values(f.dashboards).find((e) => e.id === u.name);
4334
- if (!e && u.connectionId) try {
4335
- return f.newDashboard(u.name, u.connectionId);
4330
+ setup(n, { emit: r }) {
4331
+ let l = n, u = r, d = p(), f = T(() => {
4332
+ let e = Object.values(d.dashboards).find((e) => e.id === l.name);
4333
+ if (!e && l.connectionId) try {
4334
+ return d.newDashboard(l.name, l.connectionId);
4336
4335
  } catch (e) {
4337
4336
  return console.error("Failed to create dashboard:", e), null;
4338
4337
  }
4339
4338
  return e;
4340
- }), { layout: A, editMode: ne, selectedConnection: ie, filterError: oe, globalCompletion: ce, showAddItemModal: le, showQueryEditor: ue, showMarkdownEditor: de, showFreeformEditor: pe, editingItem: B, dashboardMaxWidth: V, handleFilterChange: H, handleFilterClear: me, handleImportChange: he, validateFilter: ge, onConnectionChange: _e, toggleMode: ve, onLayoutUpdated: ye, openAddItemModal: be, addItem: xe, clearItems: Se, removeItem: Ce, copyItem: we, closeAddModal: Te, openEditor: Ee, saveContent: De, closeEditors: Oe, getDashboardQueryExecutor: ke, getItemData: U, setItemData: Ae, handleRefresh: je, setCrossFilter: Me, removeFilter: Ne, unSelect: Pe, dashboardCreated: Fe, updateTitle: Ie, updateTheme: Le } = S(p, {
4341
- connectionId: u.connectionId,
4342
- maxWidth: u.maxWidth,
4343
- viewMode: u.viewMode,
4339
+ }), { layout: A, editMode: ne, selectedConnection: ie, filterError: oe, globalCompletion: ce, showAddItemModal: le, showQueryEditor: ue, showMarkdownEditor: de, showFreeformEditor: pe, editingItem: B, dashboardMaxWidth: V, handleFilterChange: H, handleFilterClear: me, handleImportChange: he, validateFilter: ge, onConnectionChange: _e, toggleMode: ve, onLayoutUpdated: ye, openAddItemModal: be, addItem: xe, clearItems: Se, removeItem: Ce, copyItem: we, closeAddModal: Te, openEditor: Ee, saveContent: De, closeEditors: Oe, getDashboardQueryExecutor: ke, getItemData: U, setItemData: Ae, handleRefresh: je, setCrossFilter: Me, removeFilter: Ne, unSelect: Pe, dashboardCreated: Fe, updateTitle: Ie, updateTheme: Le } = S(f, {
4340
+ connectionId: l.connectionId,
4341
+ maxWidth: l.maxWidth,
4342
+ viewMode: l.viewMode,
4344
4343
  isMobile: !1
4345
4344
  }, {
4346
4345
  layoutUpdated: (e) => ye(e),
4347
- dimensionsUpdate: (e) => X(e),
4348
- triggerResize: () => nt(),
4349
- fullScreen: (e) => d("fullScreen", e)
4350
- }), Re = re("userSettingsStore", null), ze = r(Re), Be = i(), Ve = T(() => c({
4351
- theme: p.value?.theme,
4346
+ dimensionsUpdate: (e) => Z(e),
4347
+ triggerResize: () => tt(),
4348
+ fullScreen: (e) => u("fullScreen", e)
4349
+ }), Re = re("userSettingsStore", null), ze = a(Re), Be = o(), Ve = T(() => e({
4350
+ theme: f.value?.theme,
4352
4351
  mode: ze.value
4353
- })), He = T(() => s(Ve.value.vars, n(Be.value?.theme)?.variables)), Ue = T(() => p.value?.state === "editing" || !1), We = N(!1), W = N(!1), G = N(null), K = h(), Ge = T(() => K.isOpen.value), Ke = re("llmConnectionStore"), qe = T(() => !!Ke?.activeConnection), { submitPrompt: Je } = ya(p, { onStarted: (e) => K.openPanel(e) }), Ye = T(() => !!p.value && A.value.length === 0 && !Ge.value);
4354
- function Xe() {
4352
+ })), He = T(() => t(Ve.value.vars, i(Be.value?.theme)?.variables)), Ue = T(() => f.value?.state === "editing" || !1), We = N(!1), W = N(!1), G = N(null), K = h(), Ge = T(() => K.isOpen.value), Ke = re("llmConnectionStore"), qe = T(() => !!Ke?.activeConnection), { submitPrompt: q } = ya(f, { onStarted: (e) => K.openPanel(e) }), Je = T(() => !!f.value && A.value.length === 0 && !Ge.value);
4353
+ function Ye() {
4355
4354
  if (K.isOpen.value) {
4356
4355
  K.closePanel();
4357
4356
  return;
4358
4357
  }
4359
- K.openPanel(p.value?.chatId || void 0);
4358
+ K.openPanel(f.value?.chatId || void 0);
4360
4359
  }
4361
- function Ze(e) {
4362
- e && e.trim() && Je(e);
4360
+ function Xe(e) {
4361
+ e && e.trim() && q(e);
4363
4362
  }
4364
- function Qe(e) {
4363
+ function Ze(e) {
4365
4364
  return je(e);
4366
4365
  }
4367
- R(() => p.value?.id, (e, t) => {
4368
- t && o(t), e && a({
4366
+ R(() => f.value?.id, (e, t) => {
4367
+ t && c(t), e && s({
4369
4368
  dashboardId: e,
4370
- refreshItem: Qe,
4369
+ refreshItem: Ze,
4371
4370
  captureImage: st,
4372
4371
  getDashboardQueryExecutor: () => ke(e) || null
4373
4372
  });
4374
4373
  }, { immediate: !0 }), se(() => {
4375
- p.value?.id && o(p.value.id);
4374
+ f.value?.id && c(f.value.id);
4376
4375
  });
4377
- function $e(e = 2) {
4376
+ function Qe(e = 2) {
4378
4377
  return new Promise((t) => {
4379
4378
  let n = (e) => {
4380
4379
  if (e <= 0) {
@@ -4386,17 +4385,17 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4386
4385
  n(e);
4387
4386
  });
4388
4387
  }
4389
- function et(e) {
4388
+ function $e(e) {
4390
4389
  return (e || "dashboard").replace(/[<>:"/\\|?*\u0000-\u001f]/g, " ").replace(/\s+/g, " ").trim() || "dashboard";
4391
4390
  }
4392
- function q(e) {
4391
+ function J(e) {
4393
4392
  let t = e.getBoundingClientRect(), n = e.querySelector(".vue-grid-layout"), r = n ? n.getBoundingClientRect().bottom - t.top : 0;
4394
4393
  return {
4395
4394
  width: Math.max(1, Math.ceil(t.width)),
4396
4395
  height: Math.max(1, Math.ceil(Math.max(e.scrollHeight, r)))
4397
4396
  };
4398
4397
  }
4399
- function J(e) {
4398
+ function Y(e) {
4400
4399
  let t = [], n = Array.from(e.querySelectorAll(".vue-grid-item[data-i]"));
4401
4400
  for (let e of n) {
4402
4401
  let n = e.dataset.i;
@@ -4418,7 +4417,7 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4418
4417
  }
4419
4418
  return t;
4420
4419
  }
4421
- let tt = [
4420
+ let et = [
4422
4421
  "vue-grid-placeholder",
4423
4422
  "vue-resizable-handle",
4424
4423
  "content-edit-overlay",
@@ -4428,47 +4427,47 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4428
4427
  "edit-indicator",
4429
4428
  "filter-remove-btn"
4430
4429
  ];
4431
- function Y(e) {
4430
+ function X(e) {
4432
4431
  if (!(e instanceof Element)) return !0;
4433
4432
  let t = e.classList;
4434
- return !(tt.some((e) => t.contains(e)) || t.contains("vega-container") && !t.contains("vega-active"));
4433
+ return !(et.some((e) => t.contains(e)) || t.contains("vega-container") && !t.contains("vega-active"));
4435
4434
  }
4436
- function X(e) {
4437
- if (!p.value) return;
4435
+ function Z(e) {
4436
+ if (!f.value) return;
4438
4437
  let t = document.querySelector(`.vue-grid-item[data-i="${e}"] .grid-item-content`);
4439
4438
  if (t) {
4440
- let n = t.getBoundingClientRect(), r = U(e, p.value.id).type === "section-header" ? 0 : 36, i = Math.floor(n.width), a = Math.floor(n.height - r);
4441
- p.value.id && Ae(e, p.value.id, {
4439
+ let n = t.getBoundingClientRect(), r = U(e, f.value.id).type === "section-header" ? 0 : 36, i = Math.floor(n.width), a = Math.floor(n.height - r);
4440
+ f.value.id && Ae(e, f.value.id, {
4442
4441
  width: i,
4443
4442
  height: a
4444
4443
  });
4445
4444
  }
4446
4445
  }
4447
- function nt() {
4448
- p.value && A.value.forEach((e) => {
4449
- X(e.i);
4446
+ function tt() {
4447
+ f.value && A.value.forEach((e) => {
4448
+ Z(e.i);
4450
4449
  });
4451
4450
  }
4452
- function Z() {
4451
+ function nt() {
4453
4452
  We.value = !0, j(() => {
4454
- nt();
4453
+ tt();
4455
4454
  });
4456
4455
  }
4457
4456
  function rt(e) {
4458
4457
  We.value === !0 && (ye(e), j(() => {
4459
- nt();
4458
+ tt();
4460
4459
  }));
4461
4460
  }
4462
4461
  function it(e) {
4463
- ve(e), d("fullScreen", e === "fullscreen"), j(() => {
4464
- nt();
4462
+ ve(e), u("fullScreen", e === "fullscreen"), j(() => {
4463
+ tt();
4465
4464
  });
4466
4465
  }
4467
4466
  async function at() {
4468
4467
  let { domToBlob: e } = await import("./dist-1z5KURzS.js"), t = G.value;
4469
4468
  if (!t) throw Error("the dashboard is not currently on screen (its tab is not the visible one), so there is nothing to render. Ask the user to reopen the dashboard, or continue without the screenshot.");
4470
- await j(), await $e(3), "fonts" in document && await document.fonts.ready;
4471
- let n = q(t), r = J(t), i = window.getComputedStyle(t), a = [
4469
+ await j(), await Qe(3), "fonts" in document && await document.fonts.ready;
4470
+ let n = J(t), r = Y(t), i = window.getComputedStyle(t), a = [
4472
4471
  "--dashboard-canvas-bg",
4473
4472
  "--main-bg-color",
4474
4473
  "--trilogy-embed-dashboard-background"
@@ -4478,7 +4477,7 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4478
4477
  height: n.height,
4479
4478
  scale: Math.max(2, Math.min(window.devicePixelRatio || 1, 3)),
4480
4479
  backgroundColor: a,
4481
- filter: Y,
4480
+ filter: X,
4482
4481
  features: { restoreScrollPosition: !0 }
4483
4482
  });
4484
4483
  if (!o || o.size === 0) throw Error("Failed to create dashboard image");
@@ -4490,11 +4489,11 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4490
4489
  };
4491
4490
  }
4492
4491
  async function ot() {
4493
- if (p.value && !W.value) {
4492
+ if (f.value && !W.value) {
4494
4493
  W.value = !0;
4495
4494
  try {
4496
4495
  let { blob: e } = await at(), t = URL.createObjectURL(e), n = document.createElement("a");
4497
- n.download = `${et(p.value.name)}_${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}.png`, n.href = t, document.body.appendChild(n), n.click(), document.body.removeChild(n), URL.revokeObjectURL(t);
4496
+ n.download = `${$e(f.value.name)}_${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}.png`, n.href = t, document.body.appendChild(n), n.click(), document.body.removeChild(n), URL.revokeObjectURL(t);
4498
4497
  } catch (e) {
4499
4498
  console.error("Error exporting image:", e), alert("Failed to export image. Please try again.");
4500
4499
  } finally {
@@ -4503,7 +4502,7 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4503
4502
  }
4504
4503
  }
4505
4504
  async function st() {
4506
- if (!p.value) throw Error("No dashboard loaded");
4505
+ if (!f.value) throw Error("No dashboard loaded");
4507
4506
  let { blob: e, width: t, height: n, overflows: r } = await at();
4508
4507
  return {
4509
4508
  base64: await new Promise((t, n) => {
@@ -4519,14 +4518,14 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4519
4518
  overflows: r
4520
4519
  };
4521
4520
  }
4522
- return (t, n) => p.value ? (M(), D("div", {
4521
+ return (e, t) => f.value ? (M(), D("div", {
4523
4522
  key: 0,
4524
4523
  class: "dashboard-container",
4525
4524
  style: ae(He.value)
4526
4525
  }, [
4527
4526
  k(v, {
4528
- dashboard: p.value,
4529
- "edits-locked": p.value.state === "locked",
4527
+ dashboard: f.value,
4528
+ "edits-locked": f.value.state === "locked",
4530
4529
  "selected-connection": I(ie),
4531
4530
  filterError: I(oe),
4532
4531
  globalCompletion: I(ce),
@@ -4545,7 +4544,7 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4545
4544
  onTitleUpdate: I(Ie),
4546
4545
  onThemeChange: I(Le),
4547
4546
  onExportImage: ot,
4548
- onToggleChat: Xe
4547
+ onToggleChat: Ye
4549
4548
  }, null, 8, [
4550
4549
  "dashboard",
4551
4550
  "edits-locked",
@@ -4565,9 +4564,9 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4565
4564
  "onTitleUpdate",
4566
4565
  "onThemeChange"
4567
4566
  ]),
4568
- O("div", ba, [O("div", xa, [Ye.value ? (M(), D("div", Sa, [k(y, {
4569
- "dashboard-id": p.value.id,
4570
- onStartChatWithPrompt: Ze
4567
+ O("div", ba, [O("div", xa, [Je.value ? (M(), D("div", Sa, [k(y, {
4568
+ "dashboard-id": f.value.id,
4569
+ onStartChatWithPrompt: Xe
4571
4570
  }, null, 8, ["dashboard-id"])])) : te("", !0), z(O("div", Ca, [O("div", {
4572
4571
  ref_key: "gridContentRef",
4573
4572
  ref: G,
@@ -4584,7 +4583,7 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4584
4583
  "vertical-compact": !0,
4585
4584
  "use-css-transforms": !0,
4586
4585
  onLayoutUpdated: rt,
4587
- onLayoutReady: Z
4586
+ onLayoutReady: nt
4588
4587
  }, {
4589
4588
  default: fe(() => [(M(!0), D(C, null, P(I(A), (e) => (M(), E(I(Ai), {
4590
4589
  key: e.i,
@@ -4599,7 +4598,7 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4599
4598
  "drag-handle-class": ".grid-item-drag-handle"
4600
4599
  }, {
4601
4600
  default: fe(() => [k(ee, {
4602
- "dashboard-id": p.value.id,
4601
+ "dashboard-id": f.value.id,
4603
4602
  item: e,
4604
4603
  "edit-mode": I(ne),
4605
4604
  "get-item-data": I(U),
@@ -4610,7 +4609,7 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4610
4609
  onEditContent: I(Ee),
4611
4610
  onRemoveFilter: I(Ne),
4612
4611
  onBackgroundClick: I(Pe),
4613
- onUpdateDimensions: X,
4612
+ onUpdateDimensions: Z,
4614
4613
  onCopyItem: I(we),
4615
4614
  onRemoveItem: I(Ce)
4616
4615
  }, null, 8, [
@@ -4645,7 +4644,7 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4645
4644
  "is-draggable",
4646
4645
  "is-resizable",
4647
4646
  "layout"
4648
- ])], 4)], 512), [[L, !Ye.value]])])]),
4647
+ ])], 4)], 512), [[L, !Je.value]])])]),
4649
4648
  k(b, {
4650
4649
  show: I(le),
4651
4650
  onAdd: I(xe),
@@ -4659,10 +4658,10 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4659
4658
  key: 0,
4660
4659
  to: "body"
4661
4660
  }, [k(g, {
4662
- connectionName: I(U)(I(B).i, p.value.id).connectionName || "",
4663
- imports: I(U)(I(B).i, p.value.id).imports || [],
4664
- rootContent: I(U)(I(B).i, p.value.id).rootContent || [],
4665
- content: I(U)(I(B).i, p.value.id).content,
4661
+ connectionName: I(U)(I(B).i, f.value.id).connectionName || "",
4662
+ imports: I(U)(I(B).i, f.value.id).imports || [],
4663
+ rootContent: I(U)(I(B).i, f.value.id).rootContent || [],
4664
+ content: I(U)(I(B).i, f.value.id).content,
4666
4665
  onSave: I(De),
4667
4666
  onCancel: I(Oe)
4668
4667
  }, null, 8, [
@@ -4677,10 +4676,10 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4677
4676
  key: 1,
4678
4677
  to: "body"
4679
4678
  }, [k(_, {
4680
- connectionName: I(U)(I(B).i, p.value.id).connectionName || "",
4681
- imports: I(U)(I(B).i, p.value.id).imports || [],
4682
- rootContent: I(U)(I(B).i, p.value.id).rootContent || [],
4683
- content: I(U)(I(B).i, p.value.id).structured_content,
4679
+ connectionName: I(U)(I(B).i, f.value.id).connectionName || "",
4680
+ imports: I(U)(I(B).i, f.value.id).imports || [],
4681
+ rootContent: I(U)(I(B).i, f.value.id).rootContent || [],
4682
+ content: I(U)(I(B).i, f.value.id).structured_content,
4684
4683
  onSave: I(De),
4685
4684
  onCancel: I(Oe)
4686
4685
  }, null, 8, [
@@ -4695,10 +4694,10 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4695
4694
  key: 2,
4696
4695
  to: "body"
4697
4696
  }, [k(x, {
4698
- connectionName: I(U)(I(B).i, p.value.id).connectionName || "",
4699
- imports: I(U)(I(B).i, p.value.id).imports || [],
4700
- rootContent: I(U)(I(B).i, p.value.id).rootContent || [],
4701
- content: I(U)(I(B).i, p.value.id).freeformData || null,
4697
+ connectionName: I(U)(I(B).i, f.value.id).connectionName || "",
4698
+ imports: I(U)(I(B).i, f.value.id).imports || [],
4699
+ rootContent: I(U)(I(B).i, f.value.id).rootContent || [],
4700
+ content: I(U)(I(B).i, f.value.id).freeformData || null,
4702
4701
  onSave: I(De),
4703
4702
  onCancel: I(Oe)
4704
4703
  }, null, 8, [
@@ -4709,13 +4708,13 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4709
4708
  "onSave",
4710
4709
  "onCancel"
4711
4710
  ])])) : te("", !0)
4712
- ], 4)) : (M(), D("div", wa, [e.name ? (M(), D(C, { key: 0 }, [n[0] ||= O("h2", null, "Dashboard Not Found", -1), O("p", null, "The dashboard \"" + F(e.name) + "\" could not be found.", 1)], 64)) : (M(), E(m, {
4711
+ ], 4)) : (M(), D("div", wa, [n.name ? (M(), D(C, { key: 0 }, [t[0] ||= O("h2", null, "Dashboard Not Found", -1), O("p", null, "The dashboard \"" + F(n.name) + "\" could not be found.", 1)], 64)) : (M(), E(m, {
4713
4712
  key: 1,
4714
4713
  class: "inline-creator",
4715
4714
  visible: !0,
4716
4715
  onDashboardCreated: I(Fe)
4717
4716
  }, null, 8, ["onDashboardCreated"]))]));
4718
4717
  }
4719
- }), Ea = /* @__PURE__ */ e({ default: () => Da }), Da = /*#__PURE__*/ t(Ta, [["__scopeId", "data-v-e6610097"]]);
4718
+ }), Ea = /* @__PURE__ */ n({ default: () => Da }), Da = /*#__PURE__*/ r(Ta, [["__scopeId", "data-v-e6610097"]]);
4720
4719
  //#endregion
4721
4720
  export { Ea as n, Da as t };