@trilogy-data/trilogy-studio-components 0.1.26 → 0.1.27

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 (138) hide show
  1. package/dist/AssetAutoImporter-OHphsfW9.js +403 -0
  2. package/dist/{ChatCreatorModal-CL-jBnc3.js → ChatCreatorModal-CuXha6Dg.js} +3 -3
  3. package/dist/{ChatModelSelect-Do-VRUFc.js → ChatModelSelect-Cz7axWjP.js} +1 -1
  4. package/dist/{CodeBlock-PT4no49I.js → CodeBlock-BBsaC6hX.js} +4 -4
  5. package/dist/{CommunityModels-Cmro0hV3.js → CommunityModels-CIQQhO-y.js} +7 -7
  6. package/dist/{ConnectionErrorPopup-FSs7U-Yl.js → ConnectionErrorPopup-7vpqgF0s.js} +1 -1
  7. package/dist/{ConnectionView-COnTTuA4.js → ConnectionView-7Jj_Ggdi.js} +49 -49
  8. package/dist/{CreateEditorFromDatasourcePopup-snOh1d5h.js → CreateEditorFromDatasourcePopup-CrVHUWFl.js} +4 -4
  9. package/dist/{Dashboard-BH9ZwMVJ.js → Dashboard-DxSi9W6Q.js} +276 -280
  10. package/dist/{DashboardImportSelector-DQSvu9T-.js → DashboardImportSelector-kuDRDYi8.js} +2 -2
  11. package/dist/{DashboardMobile-BUPtdN2V.js → DashboardMobile-CZEgTb0R.js} +39 -39
  12. package/dist/{DrilldownPane-CBs5ZojS.js → DrilldownPane-BheRHJMs.js} +5 -7
  13. package/dist/{Editor-DQsYpkwl.js → Editor-D6tdutTm.js} +105 -103
  14. package/dist/{ErrorMessage-XMn_08gJ.js → ErrorMessage-D5JeF3Iz.js} +4 -4
  15. package/dist/{GlobalChatPanel-DhnOaige.js → GlobalChatPanel-BXZh0sdD.js} +20 -21
  16. package/dist/{IDE-HLa8vybk.js → IDE-T8PmyAQ_.js} +200 -203
  17. package/dist/{JobsView-B97HBoIE.js → JobsView-Ca97MiSd.js} +13 -14
  18. package/dist/{LLMChat-CxJcPLEG.js → LLMChat-Cch33Yd_.js} +3 -3
  19. package/dist/{LLMView-C1MUf0c2.js → LLMView-BDb6wD74.js} +23 -23
  20. package/dist/{LoadingView-s1uznGwG.js → LoadingView-B-xFwd2N.js} +2 -2
  21. package/dist/{MarkdownRenderer-BNDuEyG-.js → MarkdownRenderer-BWvdx0k3.js} +531 -430
  22. package/dist/{MobileIDE-BpqXoaMR.js → MobileIDE-DpdEQEqc.js} +179 -182
  23. package/dist/{ModelCard-BhN25jaV.js → ModelCard-DkAMP4X9.js} +12 -13
  24. package/dist/{ModelView-DUDA_PtZ.js → ModelView-DomyhN8g.js} +7 -7
  25. package/dist/PageLoading-BAvKGo9h.js +5937 -0
  26. package/dist/{ResultComponent-CAn_r3BL.js → ResultComponent-zoOSoRLe.js} +8 -8
  27. package/dist/{Results-BJtlwebY.js → Results-dq-SlJbU.js} +17 -19
  28. package/dist/{StatusIcon-BylPx2EO.js → StatusIcon-AbxNvJ6p.js} +2 -2
  29. package/dist/{StoreTokenModal-zCSYhfrw.js → StoreTokenModal-CM8WXdu1.js} +2 -2
  30. package/dist/{SymbolsPane-KYSwN9Sv.js → SymbolsPane-DfaxeaPS.js} +6 -3
  31. package/dist/{TrilogyEmbedProvider-WA_dlv9e.js → TrilogyEmbedProvider-D3h0gYnX.js} +9 -9
  32. package/dist/{TutorialPage-NRcee6Dx.js → TutorialPage-BtEJG7cT.js} +27 -28
  33. package/dist/{VegaLiteChart-D1slfOUY.js → VegaLiteChart-BVyAab-o.js} +12131 -10947
  34. package/dist/{WelcomePage-D5mU2x1L.js → WelcomePage-BoqzYBLr.js} +5 -5
  35. package/dist/{embedTheme-Bub46ILG.js → _plugin-vue_export-helper-f9Rw-Il4.js} +14 -6
  36. package/dist/assets/{css.worker-9aDGcEUy.js → css.worker-niORQtzO.js} +14 -14
  37. package/dist/assets/{html.worker-D2LKDpnG.js → html.worker-CO5LvJpF.js} +17 -17
  38. package/dist/assets/json.worker-BezHzWUV.js +58 -0
  39. package/dist/assets/{ts.worker-Bz0-EaKK.js → ts.worker-CYhxGg0r.js} +107 -107
  40. package/dist/{results-DTgAKr5j.js → base-DuKnVD-A.js} +216 -45
  41. package/dist/components/FeedbackBanner.vue.d.ts +4 -0
  42. package/dist/components/FeedbackBanner.vue.d.ts.map +1 -0
  43. package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts +54 -0
  44. package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts.map +1 -0
  45. package/dist/components/dashboard/DashboardProvenance.vue.d.ts +30 -0
  46. package/dist/components/dashboard/DashboardProvenance.vue.d.ts.map +1 -0
  47. package/dist/components/dashboard/ReportLayout.vue.d.ts +19 -0
  48. package/dist/components/dashboard/ReportLayout.vue.d.ts.map +1 -0
  49. package/dist/components/editor/Editor.vue.d.ts +3 -3
  50. package/dist/components/editor/EditorCreatorIcon.vue.d.ts +62 -0
  51. package/dist/components/editor/EditorCreatorIcon.vue.d.ts.map +1 -0
  52. package/dist/components/editor/ValidationComponent.vue.d.ts +50 -0
  53. package/dist/components/editor/ValidationComponent.vue.d.ts.map +1 -0
  54. package/dist/components/model/ModelCard.vue.d.ts +3 -3
  55. package/dist/components/sidebar/LLMConnectionList.vue.d.ts.map +1 -1
  56. package/dist/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  57. package/dist/components/tutorial/TutorialPrompt.vue.d.ts +3 -3
  58. package/dist/components/tutorial/TutorialPrompt.vue.d.ts.map +1 -1
  59. package/dist/{remoteWorker-Dkv3TJ0j.js → connections-CWH3zwH2.js} +4544 -4126
  60. package/dist/connections.js +3 -4
  61. package/dist/{cssMode-D4Rzr1Cu.js → cssMode-zpO2ap2B.js} +5 -6
  62. package/dist/dashboard.js +28 -31
  63. package/dist/{dist-CXoL8kXK.js → dist-1z5KURzS.js} +55 -50
  64. package/dist/{dist-DKkuvbPb.js → dist-Bv3D2p5A.js} +20 -18
  65. package/dist/{editor.main-Cl8i7rHY.js → editor.main-BQh6DxDB.js} +33 -33
  66. package/dist/{editorRefinementRuntime-DoP9P5J2.js → editorStore-CAlMJftt.js} +1692 -575
  67. package/dist/embed.js +2 -2
  68. package/dist/{freemarker2-fW5NBILf.js → freemarker2-DQBqlEXc.js} +1 -1
  69. package/dist/{globalChatRuntime-DWZxeS57.js → globalChatRuntime-CyS7vH51.js} +16 -16
  70. package/dist/{handlebars-dG4w8UUY.js → handlebars-tgYxaM70.js} +1 -1
  71. package/dist/{helpers-BLQAgX3C.js → helpers-BbVlA3Pf.js} +34 -35
  72. package/dist/{html-1Dq70BdU.js → html-jJahD3Mi.js} +1 -1
  73. package/dist/{htmlMode--IQmLBeh.js → htmlMode-BA1-8l2e.js} +5 -6
  74. package/dist/{javascript-CTzBM4sF.js → javascript-Cypfo7va.js} +1 -1
  75. package/dist/{jsonMode-DzeJjIEH.js → jsonMode-xJye8PWS.js} +25 -25
  76. package/dist/{liquid-DlHThiki.js → liquid-BGDrv5da.js} +1 -1
  77. package/dist/llm-ClU-2rgk.js +18493 -0
  78. package/dist/llm.js +2 -3
  79. package/dist/{localStorage-D9uyOFEO.js → localStorage-CGQ1iJXt.js} +40 -43
  80. package/dist/{lspLanguageFeatures-Cdfs3EKq.js → lspLanguageFeatures-V3e_p9oN.js} +32 -32
  81. package/dist/{mdx-fn3g4PH5.js → mdx-BUR1aImW.js} +1 -1
  82. package/dist/monaco.js +3 -3
  83. package/dist/{python-CCVj0pFt.js → python-YLkl0pc6.js} +1 -1
  84. package/dist/{razor-Cj3flYnk.js → razor-BP8TRMDY.js} +1 -1
  85. package/dist/{reconcile-Dyf4UZmj.js → reconcile-DXIvGwBk.js} +1 -1
  86. package/dist/{remoteStoreSync-Z-yjlYtI.js → remoteStoreSync-CuQBWpWf.js} +3 -3
  87. package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
  88. package/dist/static/test_import.vue.d.ts +4 -0
  89. package/dist/static/test_import.vue.d.ts.map +1 -0
  90. package/dist/stores-LlyiwSbK.js +2604 -0
  91. package/dist/stores.js +4 -7
  92. package/dist/trilogy-studio-components.css +1 -1
  93. package/dist/{tsMode-GI4xMYAl.js → tsMode-BH9HS_sH.js} +64 -66
  94. package/dist/{typescript-CPibXi3J.js → typescript-BM-ynfk9.js} +1 -1
  95. package/dist/{useChatWithTools-B0HZ_DVh.js → useChatWithTools-m3Jn_SV-.js} +11 -11
  96. package/dist/{useDashboard-CdSnPe_6.js → useDashboard-BOAuvVEw.js} +1014 -1022
  97. package/dist/{tabulator_esm-CxLvGDp8.js → useGlobalChatPanel-DuP1q7_f.js} +1729 -711
  98. package/dist/{useResizableDialog-B0ePSts4.js → useResizableDialog-Cs90WJdF.js} +2 -2
  99. package/dist/views/ModelView.vue.d.ts +6 -6
  100. package/dist/views/ModelView.vue.d.ts.map +1 -1
  101. package/dist/views/TutorialPage.vue.d.ts +9 -9
  102. package/dist/views/TutorialPage.vue.d.ts.map +1 -1
  103. package/dist/views.js +192 -194
  104. package/dist/{editor.api2-ClD5pp8H.js → workers-B9Eybl-M.js} +16252 -15926
  105. package/dist/{xml-BNyphceI.js → xml-M5WFPSpA.js} +1 -1
  106. package/dist/{yaml-DE5Vz0PH.js → yaml-CEeFwjz9.js} +1 -1
  107. package/package.json +29 -20
  108. package/dist/AssetAutoImporter-CBzvBaOt.js +0 -405
  109. package/dist/DashboardCreatorInline-CDU7kLy3.js +0 -129
  110. package/dist/DataTable-DoRDynP1.js +0 -365
  111. package/dist/EditorCreatorInline-D6_y1H_h.js +0 -125
  112. package/dist/LoadingButton-OH3frQuO.js +0 -138
  113. package/dist/ModalDialog-D1EOG4rl.js +0 -42
  114. package/dist/ModelCreator-CCdC7EXt.js +0 -253
  115. package/dist/PageLoading-BzniJM0C.js +0 -2669
  116. package/dist/Tooltip-Dihir4zs.js +0 -103
  117. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  118. package/dist/assets/json.worker-CJ5MmO5Q.js +0 -58
  119. package/dist/base-C8IuZWqY.js +0 -164
  120. package/dist/connectionHistoryStorage-DKJHiKJY.js +0 -111
  121. package/dist/connectionHistoryStore-DQeBvStZ.js +0 -61
  122. package/dist/connections-CJSb1TZl.js +0 -229
  123. package/dist/constants-DgFEYN2b.js +0 -7
  124. package/dist/dashboardStore-ppM6nGks.js +0 -641
  125. package/dist/demoSetup-mwa-RDC6.js +0 -2942
  126. package/dist/editorRefinementToolExecutor-CVY3FA7k.js +0 -4624
  127. package/dist/editorStore-BhhmXbi-.js +0 -1019
  128. package/dist/formatting-BbJ5ICgh.js +0 -6
  129. package/dist/llm-BBOVWb-F.js +0 -11967
  130. package/dist/llmStore-DJM2JhzY.js +0 -153
  131. package/dist/monaco.contribution-ikesdolO.js +0 -128
  132. package/dist/stores-BT9hTLny.js +0 -1708
  133. package/dist/trilogy-BroD2Qmp.js +0 -4
  134. package/dist/urlStore-52HG6lsX.js +0 -55
  135. package/dist/useGlobalChatPanel-D_0luajQ.js +0 -85
  136. package/dist/useIsMobile-CNpUQAvk.js +0 -8
  137. package/dist/usePrismHighlight-DVyDiDAL.js +0 -183
  138. package/dist/workers-Br7ThUKL.js +0 -47
@@ -1,15 +1,12 @@
1
- import { n as e } from "./rolldown-runtime-Dqa2HsxW.js";
2
- import { n as t, o as n, s as r } from "./config-DwTONafa.js";
3
- import { t as i } from "./_plugin-vue_export-helper-B3ysoDQm.js";
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
4
  import { n as a, r as o } from "./screenBridge-BLlMdfhn.js";
5
- import { en as s, rn as c } from "./editorRefinementToolExecutor-CVY3FA7k.js";
6
- import "./stores-BT9hTLny.js";
7
- import { i as l, s as u } from "./editorRefinementRuntime-DoP9P5J2.js";
8
- import { r as d, t as f } from "./editorStore-BhhmXbi-.js";
9
- import { n as p } from "./dashboardStore-ppM6nGks.js";
10
- import { a as m, i as h, m as g, n as _, o as v, r as y, s as b, t as x } from "./useDashboard-CdSnPe_6.js";
11
- import { t as ee } from "./DashboardCreatorInline-CDU7kLy3.js";
12
- import { t as S } from "./useGlobalChatPanel-D_0luajQ.js";
5
+ import { sn as s, un as c } from "./llm-ClU-2rgk.js";
6
+ import { p as l } from "./stores-LlyiwSbK.js";
7
+ import { S as u, c as d, i as f, t as p } from "./editorStore-CAlMJftt.js";
8
+ import { n as m, t as h } from "./useGlobalChatPanel-DuP1q7_f.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-BOAuvVEw.js";
13
10
  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";
14
11
  //#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
15
12
  var pe = Object.defineProperty, B = (e, t, n) => t in e ? pe(e, t, {
@@ -264,33 +261,33 @@ function Ge(e) {
264
261
  let t = e;
265
262
  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;
266
263
  }
267
- var Ke = (e) => !!(e && e.Window) && e instanceof e.Window, qe, q;
268
- function Je(e) {
264
+ var Ke = (e) => !!(e && e.Window) && e instanceof e.Window, qe, Je;
265
+ function Ye(e) {
269
266
  qe = e;
270
267
  let t = e.document.createTextNode("");
271
- t.ownerDocument !== e.document && typeof e.wrap == "function" && e.wrap(t) === t && (e = e.wrap(e)), q = e;
268
+ t.ownerDocument !== e.document && typeof e.wrap == "function" && e.wrap(t) === t && (e = e.wrap(e)), Je = e;
272
269
  }
273
- typeof window < "u" && window && Je(window);
274
- function Ye(e) {
275
- return Ke(e) ? e : (e.ownerDocument || e).defaultView || q.window;
270
+ typeof window < "u" && window && Ye(window);
271
+ function Xe(e) {
272
+ return Ke(e) ? e : (e.ownerDocument || e).defaultView || Je.window;
276
273
  }
277
- 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 = {
278
- window: Xe,
279
- docFrag: Ze,
280
- object: Qe,
281
- func: $e,
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,
282
279
  number: (e) => typeof e == "number",
283
280
  bool: (e) => typeof e == "boolean",
284
281
  string: (e) => typeof e == "string",
285
282
  element: (e) => {
286
283
  if (!e || typeof e != "object") return !1;
287
- let t = Ye(e) || q;
284
+ let t = Xe(e) || Je;
288
285
  return /object|function/.test(typeof Element) ? e instanceof Element || e instanceof t.Element : e.nodeType === 1 && typeof e.nodeName == "string";
289
286
  },
290
- plainObject: (e) => Qe(e) && !!e.constructor && /function Object\b/.test(e.constructor.toString()),
291
- array: (e) => Qe(e) && typeof e.length < "u" && $e(e.splice)
292
- }, Y = {
293
- init: et,
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,
294
291
  supportsTouch: null,
295
292
  supportsPointerEvent: null,
296
293
  isIOS7: null,
@@ -301,9 +298,9 @@ var Xe = (e) => e === q || Ke(e), Ze = (e) => Qe(e) && e.nodeType === 11, Qe = (
301
298
  pEventTypes: null,
302
299
  wheelEvent: null
303
300
  };
304
- function et(e) {
301
+ function tt(e) {
305
302
  let t = K.Element, n = e.navigator || {};
306
- 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 ? {
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 ? {
307
304
  up: "MSPointerUp",
308
305
  down: "MSPointerDown",
309
306
  over: "mouseover",
@@ -317,10 +314,10 @@ function et(e) {
317
314
  out: "pointerout",
318
315
  move: "pointermove",
319
316
  cancel: "pointercancel"
320
- } : null, Y.wheelEvent = K.document && "onmousewheel" in K.document ? "mousewheel" : "wheel";
317
+ } : null, J.wheelEvent = K.document && "onmousewheel" in K.document ? "mousewheel" : "wheel";
321
318
  }
322
- var X = Y;
323
- function Z(e, t) {
319
+ var Y = J;
320
+ function X(e, t) {
324
321
  if (e.contains) return e.contains(t);
325
322
  for (; t;) {
326
323
  if (t === e) return !0;
@@ -328,28 +325,28 @@ function Z(e, t) {
328
325
  }
329
326
  return !1;
330
327
  }
331
- function tt(e, t) {
332
- for (; J.element(e);) {
328
+ function nt(e, t) {
329
+ for (; q.element(e);) {
333
330
  if (rt(e, t)) return e;
334
- e = nt(e);
331
+ e = Z(e);
335
332
  }
336
333
  return null;
337
334
  }
338
- function nt(e) {
335
+ function Z(e) {
339
336
  let t = e.parentNode;
340
- if (J.docFrag(t)) {
341
- for (; (t = t.host) && J.docFrag(t););
337
+ if (q.docFrag(t)) {
338
+ for (; (t = t.host) && q.docFrag(t););
342
339
  return t;
343
340
  }
344
341
  return t;
345
342
  }
346
343
  function rt(e, t) {
347
- return q !== qe && (t = t.replace(/\/deep\//g, " ")), e[X.prefixedMatchesSelector](t);
344
+ return Je !== qe && (t = t.replace(/\/deep\//g, " ")), e[Y.prefixedMatchesSelector](t);
348
345
  }
349
346
  function it(e, t, n) {
350
- for (; J.element(e);) {
347
+ for (; q.element(e);) {
351
348
  if (rt(e, t)) return !0;
352
- if (e = nt(e), e === n) return rt(e, t);
349
+ if (e = Z(e), e === n) return rt(e, t);
353
350
  }
354
351
  return !1;
355
352
  }
@@ -357,7 +354,7 @@ function at(e) {
357
354
  return e.correspondingUseElement || e;
358
355
  }
359
356
  function ot(e) {
360
- return e ||= q, {
357
+ return e ||= Je, {
361
358
  x: e.scrollX || e.document.documentElement.scrollLeft,
362
359
  y: e.scrollY || e.document.documentElement.scrollTop
363
360
  };
@@ -375,14 +372,14 @@ function st(e) {
375
372
  }
376
373
  function ct(e) {
377
374
  let t = st(e);
378
- if (!X.isIOS7 && t) {
379
- let n = ot(Ye(e));
375
+ if (!Y.isIOS7 && t) {
376
+ let n = ot(Xe(e));
380
377
  t.left += n.x, t.right += n.x, t.top += n.y, t.bottom += n.y;
381
378
  }
382
379
  return t;
383
380
  }
384
381
  function lt(e) {
385
- return J.string(e) ? (K.document.querySelector(e), !0) : !1;
382
+ return q.string(e) ? (K.document.querySelector(e), !0) : !1;
386
383
  }
387
384
  function Q(e, t) {
388
385
  for (let n in t) e[n] = t[n];
@@ -391,7 +388,7 @@ function Q(e, t) {
391
388
  function ut(e, t) {
392
389
  let n = !1;
393
390
  return function() {
394
- return n ||= (q.console.warn(t), !0), e.apply(this, arguments);
391
+ return n ||= (Je.console.warn(t), !0), e.apply(this, arguments);
395
392
  };
396
393
  }
397
394
  function dt(e, t) {
@@ -425,10 +422,10 @@ function pt(e, t, n, r, i) {
425
422
  return i.fire("auto-start:check", a), a.action;
426
423
  }
427
424
  function mt(e) {
428
- return J.bool(e) ? (this.options.styleCursor = e, this) : e === null ? (delete this.options.styleCursor, this) : this.options.styleCursor;
425
+ return q.bool(e) ? (this.options.styleCursor = e, this) : e === null ? (delete this.options.styleCursor, this) : this.options.styleCursor;
429
426
  }
430
427
  function ht(e) {
431
- return J.func(e) ? (this.options.actionChecker = e, this) : e === null ? (delete this.options.actionChecker, this) : this.options.actionChecker;
428
+ return q.func(e) ? (this.options.actionChecker = e, this) : e === null ? (delete this.options.actionChecker, this) : this.options.actionChecker;
432
429
  }
433
430
  var gt = {
434
431
  id: "auto-start/interactableMethods",
@@ -438,13 +435,13 @@ function _t(e) {
438
435
  let { interactStatic: t, defaults: n } = e;
439
436
  e.usePlugin(gt), n.base.actionChecker = null, n.base.styleCursor = !0, Q(n.perAction, {
440
437
  manualStart: !1,
441
- max: Infinity,
438
+ max: 1 / 0,
442
439
  maxPerElement: 1,
443
440
  allowFrom: null,
444
441
  ignoreFrom: null,
445
442
  mouseButtons: 1
446
443
  }), t.maxInteractions = (t) => Dt(t, e), e.autoStart = {
447
- maxInteractions: Infinity,
444
+ maxInteractions: 1 / 0,
448
445
  withinInteractionLimit: Et,
449
446
  cursorElement: null
450
447
  };
@@ -491,11 +488,11 @@ function wt(e, t, n, r, i) {
491
488
  function c(e) {
492
489
  a.push(e), o.push(s);
493
490
  }
494
- for (; J.element(s);) {
491
+ for (; q.element(s);) {
495
492
  a = [], o = [], i.interactables.forEachMatch(s, c);
496
493
  let l = Ct(e, t, n, a, o, r, i);
497
494
  if (l.action && !l.interactable.options[l.action.name].manualStart) return l;
498
- s = nt(s);
495
+ s = Z(s);
499
496
  }
500
497
  return {
501
498
  action: null,
@@ -516,7 +513,7 @@ function Et(e, t, n, r) {
516
513
  return s > 0;
517
514
  }
518
515
  function Dt(e, t) {
519
- return J.number(e) ? (t.autoStart.maxInteractions = e, this) : t.autoStart.maxInteractions;
516
+ return q.number(e) ? (t.autoStart.maxInteractions = e, this) : t.autoStart.maxInteractions;
520
517
  }
521
518
  function Ot(e, t, n) {
522
519
  let { cursorElement: r } = n.autoStart;
@@ -531,7 +528,7 @@ function kt(e, t) {
531
528
  let a = "";
532
529
  if (i.name) {
533
530
  let o = n.options[i.name].cursorChecker;
534
- a = J.func(o) ? o(i, n, r, e._interacting) : t.actions.map[i.name].getCursor(i);
531
+ a = q.func(o) ? o(i, n, r, e._interacting) : t.actions.map[i.name].getCursor(i);
535
532
  }
536
533
  Ot(e.element, a || "", t);
537
534
  }
@@ -563,13 +560,13 @@ function jt({ interaction: e, eventTarget: t, dx: n, dy: r }, i) {
563
560
  if (a && a.name === "drag" && Mt(l, r) && At.validateAction(a, r, n, t, i)) return r;
564
561
  }
565
562
  };
566
- for (; J.element(n);) {
563
+ for (; q.element(n);) {
567
564
  let t = i.interactables.forEachMatch(n, r);
568
565
  if (t) {
569
566
  e.prepared.name = "drag", e.interactable = t, e.element = n;
570
567
  break;
571
568
  }
572
- n = nt(n);
569
+ n = Z(n);
573
570
  }
574
571
  }
575
572
  }
@@ -629,7 +626,7 @@ function Ut(e) {
629
626
  let t = {};
630
627
  for (let n in e) {
631
628
  let r = e[n];
632
- J.plainObject(r) ? t[n] = Ut(r) : J.array(r) ? t[n] = Bt(r) : t[n] = r;
629
+ t[n] = q.plainObject(r) ? Ut(r) : q.array(r) ? Bt(r) : r;
633
630
  }
634
631
  return t;
635
632
  }
@@ -654,10 +651,10 @@ var Jt = {
654
651
  init: qt
655
652
  };
656
653
  function Yt(e, t, n) {
657
- 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);
658
- if (J.object(e) && (t = e, e = ""), J.func(t)) n[e] = n[e] || [], n[e].push(t);
659
- else if (J.array(t)) for (let r of t) Yt(e, r, n);
660
- else if (J.object(t)) for (let r in t) Yt(Xt(r).map((t) => `${e}${t}`), t[r], 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);
661
658
  return n;
662
659
  }
663
660
  function Xt(e) {
@@ -685,7 +682,7 @@ var Qt = class {
685
682
  let n = Yt(e, t);
686
683
  for (e in n) {
687
684
  let t = this.types[e];
688
- if (!(!t || !t.length)) for (let r of n[e]) {
685
+ if (t && t.length) for (let r of n[e]) {
689
686
  let e = t.indexOf(r);
690
687
  e !== -1 && t.splice(e, 1);
691
688
  }
@@ -696,11 +693,11 @@ var Qt = class {
696
693
  }
697
694
  };
698
695
  function $t(e, t, n) {
699
- return e === "parent" ? nt(n) : e === "self" ? t.getRect(n) : tt(n, e);
696
+ return e === "parent" ? Z(n) : e === "self" ? t.getRect(n) : nt(n, e);
700
697
  }
701
698
  function en(e, t, n, r) {
702
699
  let i = e;
703
- return J.string(i) ? i = $t(i, t, n) : J.func(i) && (i = i(...r)), J.element(i) && (i = ct(i)), i;
700
+ return q.string(i) ? i = $t(i, t, n) : q.func(i) && (i = i(...r)), q.element(i) && (i = ct(i)), i;
704
701
  }
705
702
  function tn(e) {
706
703
  return e && {
@@ -763,10 +760,10 @@ var ln = {
763
760
  client: f.client,
764
761
  timeStamp: e.coords.cur.timeStamp
765
762
  } : e.coords.cur;
766
- this.page = Q({}, p.page), this.client = Q({}, p.client), this.rect = Q({}, e.rect), this.timeStamp = p.timeStamp, d || (this.page.x -= l.x, this.page.y -= l.y, this.client.x -= l.x, this.client.y -= l.y), this.ctrlKey = t.ctrlKey, this.altKey = t.altKey, this.shiftKey = t.shiftKey, this.metaKey = t.metaKey, this.button = t.button, this.buttons = t.buttons, this.target = i, this.currentTarget = i, this.preEnd = a, this.type = o || n + (r || ""), this.interactable = s, this.t0 = u ? e.pointers[e.pointers.length - 1].downTime : f.t0, this.x0 = e.coords.start.page.x - l.x, this.y0 = e.coords.start.page.y - l.y, this.clientX0 = e.coords.start.client.x - l.x, this.clientY0 = e.coords.start.client.y - l.y, u || d ? this.delta = {
763
+ this.page = Q({}, p.page), this.client = Q({}, p.client), this.rect = Q({}, e.rect), this.timeStamp = p.timeStamp, d || (this.page.x -= l.x, this.page.y -= l.y, this.client.x -= l.x, this.client.y -= l.y), this.ctrlKey = t.ctrlKey, this.altKey = t.altKey, this.shiftKey = t.shiftKey, this.metaKey = t.metaKey, this.button = t.button, this.buttons = t.buttons, this.target = i, this.currentTarget = i, this.preEnd = a, this.type = o || n + (r || ""), this.interactable = s, this.t0 = u ? e.pointers[e.pointers.length - 1].downTime : f.t0, this.x0 = e.coords.start.page.x - l.x, this.y0 = e.coords.start.page.y - l.y, this.clientX0 = e.coords.start.client.x - l.x, this.clientY0 = e.coords.start.client.y - l.y, this.delta = u || d ? {
767
764
  x: 0,
768
765
  y: 0
769
- } : this.delta = {
766
+ } : {
770
767
  x: this[c].x - f[c].x,
771
768
  y: this[c].y - f[c].y
772
769
  }, this.dt = e.coords.delta.timeStamp, this.duration = this.timeStamp - this.t0, this.velocity = Q({}, e.coords.velocity[c]), this.speed = sn(this.velocity.x, this.velocity.y), this.swipe = d || r === "inertiastart" ? this.getSwipe() : null;
@@ -774,14 +771,14 @@ var ln = {
774
771
  getSwipe() {
775
772
  let e = this._interaction;
776
773
  if (e.prevEvent.speed < 600 || this.timeStamp - e.prevEvent.timeStamp > 150) return null;
777
- let t = 180 * Math.atan2(e.prevEvent.velocityY, e.prevEvent.velocityX) / Math.PI, n = 22.5;
774
+ let t = 180 * Math.atan2(e.prevEvent.velocityY, e.prevEvent.velocityX) / Math.PI;
778
775
  t < 0 && (t += 360);
779
- let r = 135 - n <= t && t < 247.5, i = 225 - n <= t && t < 337.5;
776
+ let n = 112.5 <= t && t < 247.5, r = 202.5 <= t && t < 337.5;
780
777
  return {
781
- up: i,
782
- down: !i && 45 - n <= t && t < 157.5,
783
- left: r,
784
- right: !r && (315 - n <= t || t < 67.5),
778
+ up: r,
779
+ down: !r && 22.5 <= t && t < 157.5,
780
+ left: n,
781
+ right: !n && (292.5 <= t || t < 67.5),
785
782
  angle: t,
786
783
  speed: e.prevEvent.speed,
787
784
  velocity: {
@@ -900,13 +897,13 @@ function vn(e, t) {
900
897
  return t ||= {
901
898
  x: 0,
902
899
  y: 0
903
- }, X.isOperaMobile && gn(e) ? (_n("screen", e, t), t.x += window.scrollX, t.y += window.scrollY) : _n("page", e, t), t;
900
+ }, Y.isOperaMobile && gn(e) ? (_n("screen", e, t), t.x += window.scrollX, t.y += window.scrollY) : _n("page", e, t), t;
904
901
  }
905
902
  function yn(e, t) {
906
- return t ||= {}, X.isOperaMobile && gn(e) ? _n("screen", e, t) : _n("client", e, t), t;
903
+ return t ||= {}, Y.isOperaMobile && gn(e) ? _n("screen", e, t) : _n("client", e, t), t;
907
904
  }
908
905
  function bn(e) {
909
- return J.number(e.pointerId) ? e.pointerId : e.identifier;
906
+ return q.number(e.pointerId) ? e.pointerId : e.identifier;
910
907
  }
911
908
  function xn(e, t, n) {
912
909
  let r = t.length > 1 ? Cn(t) : t[0];
@@ -914,7 +911,7 @@ function xn(e, t, n) {
914
911
  }
915
912
  function Sn(e) {
916
913
  let t = [];
917
- 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;
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;
918
915
  }
919
916
  function Cn(e) {
920
917
  let t = {
@@ -952,7 +949,7 @@ function En(e, t) {
952
949
  return 180 * Math.atan2(o, a) / Math.PI;
953
950
  }
954
951
  function Dn(e) {
955
- return J.string(e.pointerType) ? e.pointerType : J.number(e.pointerType) ? [
952
+ return q.string(e.pointerType) ? e.pointerType : q.number(e.pointerType) ? [
956
953
  void 0,
957
954
  void 0,
958
955
  "touch",
@@ -961,7 +958,7 @@ function Dn(e) {
961
958
  ][e.pointerType] : /touch/.test(e.type || "") || e instanceof K.Touch ? "touch" : "mouse";
962
959
  }
963
960
  function On(e) {
964
- let t = J.func(e.composedPath) ? e.composedPath() : e.path;
961
+ let t = q.func(e.composedPath) ? e.composedPath() : e.path;
965
962
  return [at(t ? t[0] : e.target), at(e.currentTarget)];
966
963
  }
967
964
  function kn() {
@@ -987,26 +984,26 @@ function jn(e) {
987
984
  let i = e.interactables.get(n, r);
988
985
  return i || (i = e.interactables.new(n, r), i.events.global = t.globalEvents), i;
989
986
  };
990
- 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) {
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) {
991
988
  return this.scope.usePlugin(e, t), this;
992
989
  }, t.isSet = function(e, t) {
993
990
  return !!this.scope.interactables.get(e, t && t.context);
994
991
  }, t.on = ut(function(e, t, n) {
995
- if (J.string(e) && e.search(" ") !== -1 && (e = e.trim().split(/ +/)), J.array(e)) {
992
+ if (q.string(e) && e.search(" ") !== -1 && (e = e.trim().split(/ +/)), q.array(e)) {
996
993
  for (let r of e) this.on(r, t, n);
997
994
  return this;
998
995
  }
999
- if (J.object(e)) {
996
+ if (q.object(e)) {
1000
997
  for (let n in e) this.on(n, e[n], t);
1001
998
  return this;
1002
999
  }
1003
1000
  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;
1004
1001
  }, "The interact.on() method is being deprecated"), t.off = ut(function(e, t, n) {
1005
- if (J.string(e) && e.search(" ") !== -1 && (e = e.trim().split(/ +/)), J.array(e)) {
1002
+ if (q.string(e) && e.search(" ") !== -1 && (e = e.trim().split(/ +/)), q.array(e)) {
1006
1003
  for (let r of e) this.off(r, t, n);
1007
1004
  return this;
1008
1005
  }
1009
- if (J.object(e)) {
1006
+ if (q.object(e)) {
1010
1007
  for (let n in e) this.off(n, e[n], t);
1011
1008
  return this;
1012
1009
  }
@@ -1018,14 +1015,14 @@ function jn(e) {
1018
1015
  }, "The interact.off() method is being deprecated"), t.debug = function() {
1019
1016
  return this.scope;
1020
1017
  }, t.supportsTouch = function() {
1021
- return X.supportsTouch;
1018
+ return Y.supportsTouch;
1022
1019
  }, t.supportsPointerEvent = function() {
1023
- return X.supportsPointerEvent;
1020
+ return Y.supportsPointerEvent;
1024
1021
  }, t.stop = function() {
1025
1022
  for (let e of this.scope.interactions.list) e.stop();
1026
1023
  return this;
1027
1024
  }, t.pointerMoveTolerance = function(e) {
1028
- return J.number(e) ? (this.scope.interactions.pointerMoveTolerance = e, this) : this.scope.interactions.pointerMoveTolerance;
1025
+ return q.number(e) ? (this.scope.interactions.pointerMoveTolerance = e, this) : this.scope.interactions.pointerMoveTolerance;
1029
1026
  }, t.addDocument = function(e, t) {
1030
1027
  this.scope.addDocument(e, t);
1031
1028
  }, t.removeDocument = function(e) {
@@ -1034,7 +1031,7 @@ function jn(e) {
1034
1031
  }
1035
1032
  var Mn = class {
1036
1033
  constructor(e, t, n, r) {
1037
- 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);
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);
1038
1035
  }
1039
1036
  get _defaults() {
1040
1037
  return {
@@ -1044,29 +1041,29 @@ var Mn = class {
1044
1041
  };
1045
1042
  }
1046
1043
  setOnEvents(e, t) {
1047
- 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;
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;
1048
1045
  }
1049
1046
  updatePerActionListeners(e, t, n) {
1050
- (J.array(t) || J.object(t)) && this.off(e, t), (J.array(n) || J.object(n)) && this.on(e, n);
1047
+ (q.array(t) || q.object(t)) && this.off(e, t), (q.array(n) || q.object(n)) && this.on(e, n);
1051
1048
  }
1052
1049
  setPerAction(e, t) {
1053
1050
  let n = this._defaults;
1054
1051
  for (let r in t) {
1055
1052
  let i = r, a = this.options[e], o = t[i];
1056
- 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;
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;
1057
1054
  }
1058
1055
  }
1059
1056
  getRect(e) {
1060
- return e ||= J.element(this.target) ? this.target : null, J.string(this.target) && (e ||= this._context.querySelector(this.target)), ct(e);
1057
+ return e ||= q.element(this.target) ? this.target : null, q.string(this.target) && (e ||= this._context.querySelector(this.target)), ct(e);
1061
1058
  }
1062
1059
  rectChecker(e) {
1063
- return J.func(e) ? (this._rectChecker = e, this.getRect = (e) => {
1060
+ return q.func(e) ? (this._rectChecker = e, this.getRect = (e) => {
1064
1061
  let t = Q({}, this._rectChecker(e));
1065
1062
  return "width" in t || (t.width = t.right - t.left, t.height = t.bottom - t.top), t;
1066
1063
  }, this) : e === null ? (delete this.getRect, delete this._rectChecker, this) : this.getRect;
1067
1064
  }
1068
1065
  _backCompatOption(e, t) {
1069
- if (lt(t) || J.object(t)) {
1066
+ if (lt(t) || q.object(t)) {
1070
1067
  this.options[e] = t;
1071
1068
  for (let n in this._actions.map) this.options[n][e] = t;
1072
1069
  return this;
@@ -1083,26 +1080,26 @@ var Mn = class {
1083
1080
  return this._context;
1084
1081
  }
1085
1082
  inContext(e) {
1086
- return this._context === e.ownerDocument || Z(this._context, e);
1083
+ return this._context === e.ownerDocument || X(this._context, e);
1087
1084
  }
1088
1085
  testIgnoreAllow(e, t, n) {
1089
1086
  return !this.testIgnore(e.ignoreFrom, t, n) && this.testAllow(e.allowFrom, t, n);
1090
1087
  }
1091
1088
  testAllow(e, t, n) {
1092
- return e ? J.element(n) ? J.string(e) ? it(n, e, t) : J.element(e) ? Z(e, n) : !1 : !1 : !0;
1089
+ return e ? q.element(n) ? q.string(e) ? it(n, e, t) : q.element(e) ? X(e, n) : !1 : !1 : !0;
1093
1090
  }
1094
1091
  testIgnore(e, t, n) {
1095
- return !e || !J.element(n) ? !1 : J.string(e) ? it(n, e, t) : J.element(e) ? Z(e, n) : !1;
1092
+ return !e || !q.element(n) ? !1 : q.string(e) ? it(n, e, t) : q.element(e) ? X(e, n) : !1;
1096
1093
  }
1097
1094
  fire(e) {
1098
1095
  return this.events.fire(e), this;
1099
1096
  }
1100
1097
  _onOff(e, t, n, r) {
1101
- J.object(t) && !J.array(t) && (r = n, n = null);
1098
+ q.object(t) && !q.array(t) && (r = n, n = null);
1102
1099
  let i = e === "on" ? "add" : "remove", a = Yt(t, n);
1103
1100
  for (let t in a) {
1104
- t === "wheel" && (t = X.wheelEvent);
1105
- 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);
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);
1106
1103
  }
1107
1104
  return this;
1108
1105
  }
@@ -1114,16 +1111,16 @@ var Mn = class {
1114
1111
  }
1115
1112
  set(e) {
1116
1113
  let t = this._defaults;
1117
- J.object(e) || (e = {}), this.options = Ut(t.base);
1114
+ q.object(e) || (e = {}), this.options = Ut(t.base);
1118
1115
  for (let n in this._actions.methodDict) {
1119
1116
  let r = n, i = this._actions.methodDict[r];
1120
1117
  this.options[r] = {}, this.setPerAction(r, Q(Q({}, t.perAction), t.actions[r])), this[i](e[r]);
1121
1118
  }
1122
- for (let t in e) J.func(this[t]) && this[t](e[t]);
1119
+ for (let t in e) q.func(this[t]) && this[t](e[t]);
1123
1120
  return this;
1124
1121
  }
1125
1122
  unset() {
1126
- if (J.string(this.target)) for (let e in this._scopeEvents.delegatedEvents) {
1123
+ if (q.string(this.target)) for (let e in this._scopeEvents.delegatedEvents) {
1127
1124
  let t = this._scopeEvents.delegatedEvents[e];
1128
1125
  for (let n = t.length - 1; n >= 0; n--) {
1129
1126
  let { selector: r, context: i, listeners: a } = t[n];
@@ -1136,7 +1133,7 @@ var Mn = class {
1136
1133
  }, Nn = class {
1137
1134
  constructor(e) {
1138
1135
  V(this, "list", []), V(this, "selectorMap", {}), V(this, "scope"), this.scope = e, e.addListeners({ "interactable:unset": ({ interactable: e }) => {
1139
- let { target: t, _context: n } = e, r = J.string(t) ? this.selectorMap[t] : t[this.scope.id], i = Vt(r, (e) => e.context === n);
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);
1140
1137
  r[i] && (r[i].context = null, r[i].interactable = null), r.splice(i, 1);
1141
1138
  } });
1142
1139
  }
@@ -1146,7 +1143,7 @@ var Mn = class {
1146
1143
  context: n._context,
1147
1144
  interactable: n
1148
1145
  };
1149
- 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, {
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, {
1150
1147
  value: [],
1151
1148
  configurable: !0
1152
1149
  }), e[this.scope.id].push(r)), this.scope.fire("interactable:new", {
@@ -1157,7 +1154,7 @@ var Mn = class {
1157
1154
  }), n;
1158
1155
  }
1159
1156
  get(e, t) {
1160
- let n = t && t.context || this.scope.document, r = J.string(e), i = r ? this.selectorMap[e] : e[this.scope.id];
1157
+ let n = t && t.context || this.scope.document, r = q.string(e), i = r ? this.selectorMap[e] : e[this.scope.id];
1161
1158
  if (!i) return null;
1162
1159
  let a = Ht(i, (t) => t.context === n && (r || t.interactable.inContext(e)));
1163
1160
  return a && a.interactable;
@@ -1165,7 +1162,7 @@ var Mn = class {
1165
1162
  forEachMatch(e, t) {
1166
1163
  for (let n of this.list) {
1167
1164
  let r;
1168
- 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;
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;
1169
1166
  }
1170
1167
  }
1171
1168
  };
@@ -1211,7 +1208,8 @@ function Pn(e) {
1211
1208
  if (r === "all") {
1212
1209
  for (let n = d.length - 1; n >= 0; n--) s(e, t, d[n], o);
1213
1210
  return;
1214
- } else for (let n = 0; n < d.length; n++) if (d[n] === r) {
1211
+ }
1212
+ for (let n = 0; n < d.length; n++) if (d[n] === r) {
1215
1213
  e.removeEventListener(t, r, a.supportsOptions ? o : o.capture), d.splice(n, 1), d.length === 0 && (delete l.events[t], u = !0);
1216
1214
  break;
1217
1215
  }
@@ -1250,16 +1248,16 @@ function Pn(e) {
1250
1248
  }
1251
1249
  function u(e, t) {
1252
1250
  let n = In(t), i = new Fn(e), a = r[e.type], [o] = On(e), s = o;
1253
- for (; J.element(s);) {
1251
+ for (; q.element(s);) {
1254
1252
  for (let e = 0; e < a.length; e++) {
1255
1253
  let t = a[e], { selector: r, context: c } = t;
1256
- if (rt(s, r) && Z(c, o) && Z(c, s)) {
1254
+ if (rt(s, r) && X(c, o) && X(c, s)) {
1257
1255
  let { listeners: e } = t;
1258
1256
  i.currentTarget = s;
1259
1257
  for (let [t, { capture: r, passive: a }] of e) r === n.capture && a === n.passive && t(i);
1260
1258
  }
1261
1259
  }
1262
- s = nt(s);
1260
+ s = Z(s);
1263
1261
  }
1264
1262
  }
1265
1263
  function d(e) {
@@ -1282,7 +1280,7 @@ var Fn = class {
1282
1280
  }
1283
1281
  };
1284
1282
  function In(e) {
1285
- if (!J.object(e)) return {
1283
+ if (!q.object(e)) return {
1286
1284
  capture: !!e,
1287
1285
  passive: !1
1288
1286
  };
@@ -1480,7 +1478,7 @@ var Vn = 0, Hn = class {
1480
1478
  }
1481
1479
  };
1482
1480
  function Un(e) {
1483
- return /^(always|never|auto)$/.test(e) ? (this.options.preventDefault = e, this) : J.bool(e) ? (this.options.preventDefault = e ? "always" : "never", this) : this.options.preventDefault;
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;
1484
1482
  }
1485
1483
  function Wn(e, t, n) {
1486
1484
  let r = e.options.preventDefault;
@@ -1490,10 +1488,10 @@ function Wn(e, t, n) {
1490
1488
  return;
1491
1489
  }
1492
1490
  if (t.events.supportsPassive && /^touch(start|move)$/.test(n.type)) {
1493
- let e = Ye(n.target).document, r = t.getDocOptions(e);
1491
+ let e = Xe(n.target).document, r = t.getDocOptions(e);
1494
1492
  if (!(r && r.events) || r.events.passive !== !1) return;
1495
1493
  }
1496
- /^(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();
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();
1497
1495
  }
1498
1496
  }
1499
1497
  function Gn({ interaction: e, event: t }) {
@@ -1506,7 +1504,7 @@ function Kn(e) {
1506
1504
  }, e.interactions.docEvents.push({
1507
1505
  type: "dragstart",
1508
1506
  listener(t) {
1509
- for (let n of e.interactions.list) if (n.element && (n.element === t.target || Z(n.element, t.target))) {
1507
+ for (let n of e.interactions.list) if (n.element && (n.element === t.target || X(n.element, t.target))) {
1510
1508
  n.interactable.checkAndPreventDefault(t);
1511
1509
  return;
1512
1510
  }
@@ -1542,7 +1540,7 @@ var qn = {
1542
1540
  let r = n;
1543
1541
  if (t.simulation && t.simulation.allowResume && t.pointerType === e) for (; r;) {
1544
1542
  if (r === t.element) return t;
1545
- r = nt(r);
1543
+ r = Z(r);
1546
1544
  }
1547
1545
  }
1548
1546
  return null;
@@ -1588,7 +1586,7 @@ var Xn = Jn, Zn = [
1588
1586
  function Qn(e) {
1589
1587
  let t = {};
1590
1588
  for (let n of Zn) t[n] = $n(n, e);
1591
- let n = X.pEventTypes, r;
1589
+ let n = Y.pEventTypes, r;
1592
1590
  r = K.PointerEvent ? [
1593
1591
  {
1594
1592
  type: n.down,
@@ -1670,7 +1668,7 @@ function Qn(e) {
1670
1668
  pointerMoveTolerance: 1
1671
1669
  };
1672
1670
  function i() {
1673
- 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);
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);
1674
1672
  }
1675
1673
  e.usePlugin(qn);
1676
1674
  }
@@ -1698,7 +1696,7 @@ function $n(e, t) {
1698
1696
  }
1699
1697
  } else {
1700
1698
  let e = !1;
1701
- if (!X.supportsPointerEvent && /mouse/.test(n.type)) {
1699
+ if (!Y.supportsPointerEvent && /mouse/.test(n.type)) {
1702
1700
  for (let t = 0; t < r.length && !e; t++) e = r[t].pointerType !== "mouse" && r[t].pointerIsDown;
1703
1701
  e = e || t.now() - t.prevTouchTime < 500 || n.timeStamp === 0;
1704
1702
  }
@@ -1755,7 +1753,7 @@ var nr = {
1755
1753
  methodNames: Zn
1756
1754
  }, rr = class {
1757
1755
  constructor() {
1758
- 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", {
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", {
1759
1757
  map: {},
1760
1758
  phases: {
1761
1759
  start: !0,
@@ -1821,7 +1819,7 @@ var nr = {
1821
1819
  }
1822
1820
  addDocument(e, t) {
1823
1821
  if (this.getDocIndex(e) !== -1) return !1;
1824
- let n = Ye(e);
1822
+ let n = Xe(e);
1825
1823
  t = t ? Q({}, t) : {}, this.documents.push({
1826
1824
  doc: e,
1827
1825
  options: t
@@ -1833,7 +1831,7 @@ var nr = {
1833
1831
  });
1834
1832
  }
1835
1833
  removeDocument(e) {
1836
- let t = this.getDocIndex(e), n = Ye(e), r = this.documents[t].options;
1834
+ let t = this.getDocIndex(e), n = Xe(e), r = this.documents[t].options;
1837
1835
  this.events.remove(n, "unload", this.onWindowUnload), this.documents.splice(t, 1), this.events.documents.splice(t, 1), this.fire("scope:remove-document", {
1838
1836
  doc: e,
1839
1837
  window: n,
@@ -1854,7 +1852,7 @@ var nr = {
1854
1852
  }
1855
1853
  };
1856
1854
  function ir(e, t) {
1857
- 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;
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;
1858
1856
  }
1859
1857
  function ar(e) {
1860
1858
  return e && e.replace(/\/.*$/, "");
@@ -1896,7 +1894,7 @@ var $ = {
1896
1894
  };
1897
1895
  if (r.x || r.y) {
1898
1896
  let i = dr(a);
1899
- J.window(a) ? a.scrollBy(r.x, r.y) : a && (a.scrollLeft += r.x, a.scrollTop += r.y);
1897
+ q.window(a) ? a.scrollBy(r.x, r.y) : a && (a.scrollLeft += r.x, a.scrollTop += r.y);
1900
1898
  let o = dr(a), s = {
1901
1899
  x: o.x - i.x,
1902
1900
  y: o.y - i.y
@@ -1924,7 +1922,7 @@ var $ = {
1924
1922
  return;
1925
1923
  }
1926
1924
  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);
1927
- if (J.window(u)) a = t.clientX < $.margin, n = t.clientY < $.margin, r = t.clientX > u.innerWidth - $.margin, i = t.clientY > u.innerHeight - $.margin;
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;
1928
1926
  else {
1929
1927
  let e = st(u);
1930
1928
  a = t.clientX < e.left + $.margin, n = t.clientY < e.top + $.margin, r = t.clientX > e.right - $.margin, i = t.clientY > e.bottom - $.margin;
@@ -1933,10 +1931,10 @@ var $ = {
1933
1931
  }
1934
1932
  };
1935
1933
  function ur(e, t, n) {
1936
- return (J.string(e) ? $t(e, t, n) : e) || Ye(n);
1934
+ return (q.string(e) ? $t(e, t, n) : e) || Xe(n);
1937
1935
  }
1938
1936
  function dr(e) {
1939
- return J.window(e) && (e = window.document.body), {
1937
+ return q.window(e) && (e = window.document.body), {
1940
1938
  x: e.scrollLeft,
1941
1939
  y: e.scrollTop
1942
1940
  };
@@ -1989,7 +1987,7 @@ var gr = {
1989
1987
  }
1990
1988
  },
1991
1989
  draggable: function(e) {
1992
- 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;
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;
1993
1991
  },
1994
1992
  beforeMove: mr,
1995
1993
  move: hr,
@@ -2013,7 +2011,7 @@ function yr(e) {
2013
2011
  if (!i) return;
2014
2012
  let o = Q({}, t.coords.cur.page), s = n.options.resize;
2015
2013
  if (!(!(s && s.enabled) || t.pointerIsDown && /mouse|pointer/.test(t.pointerType) && (a & s.mouseButtons) === 0)) {
2016
- if (J.object(s.edges)) {
2014
+ if (q.object(s.edges)) {
2017
2015
  let n = {
2018
2016
  left: !1,
2019
2017
  right: !1,
@@ -2036,12 +2034,12 @@ function yr(e) {
2036
2034
  }
2037
2035
  }
2038
2036
  function br(e, t, n) {
2039
- 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;
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;
2040
2038
  }
2041
2039
  function xr(e, t, n, r, i, a, o) {
2042
2040
  if (!t) return !1;
2043
2041
  if (t === !0) {
2044
- let t = J.number(a.width) ? a.width : a.right - a.left, r = J.number(a.height) ? a.height : a.bottom - a.top;
2042
+ let t = q.number(a.width) ? a.width : a.right - a.left, r = q.number(a.height) ? a.height : a.bottom - a.top;
2045
2043
  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") {
2046
2044
  let e = t >= 0 ? a.left : a.right;
2047
2045
  return n.x < e + o;
@@ -2053,7 +2051,7 @@ function xr(e, t, n, r, i, a, o) {
2053
2051
  if (e === "right") return n.x > (t >= 0 ? a.right : a.left) - o;
2054
2052
  if (e === "bottom") return n.y > (r >= 0 ? a.bottom : a.top) - o;
2055
2053
  }
2056
- return J.element(r) ? J.element(t) ? t === r : it(r, t, i) : !1;
2054
+ return q.element(r) ? q.element(t) ? t === r : it(r, t, i) : !1;
2057
2055
  }
2058
2056
  function Sr(e) {
2059
2057
  return e.isIe9 ? {
@@ -2184,10 +2182,10 @@ var kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2184
2182
  ["width", "height"]
2185
2183
  ].filter(([t, n]) => t in e || n in e), n = (n, r) => {
2186
2184
  let { range: i, limits: a = {
2187
- left: -Infinity,
2188
- right: Infinity,
2189
- top: -Infinity,
2190
- bottom: Infinity
2185
+ left: -1 / 0,
2186
+ right: 1 / 0,
2187
+ top: -1 / 0,
2188
+ bottom: 1 / 0
2191
2189
  }, offset: o = {
2192
2190
  x: 0,
2193
2191
  y: 0
@@ -2531,7 +2529,7 @@ function Gr({ coords: e, interaction: t, state: n }) {
2531
2529
  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);
2532
2530
  }
2533
2531
  function Kr(e, t, n) {
2534
- return J.func(e) ? en(e, t.interactable, t.element, [
2532
+ return q.func(e) ? en(e, t.interactable, t.element, [
2535
2533
  n.x,
2536
2534
  n.y,
2537
2535
  t
@@ -2548,15 +2546,15 @@ var qr = {
2548
2546
  enabled: !1
2549
2547
  }
2550
2548
  }, Jr = Fr(qr, "restrict"), Yr = {
2551
- top: Infinity,
2552
- left: Infinity,
2553
- bottom: -Infinity,
2554
- right: -Infinity
2549
+ top: 1 / 0,
2550
+ left: 1 / 0,
2551
+ bottom: -1 / 0,
2552
+ right: -1 / 0
2555
2553
  }, Xr = {
2556
- top: -Infinity,
2557
- left: -Infinity,
2558
- bottom: Infinity,
2559
- right: Infinity
2554
+ top: -1 / 0,
2555
+ left: -1 / 0,
2556
+ bottom: 1 / 0,
2557
+ right: 1 / 0
2560
2558
  };
2561
2559
  function Zr({ interaction: e, startOffset: t, state: n }) {
2562
2560
  let { options: r } = n, i;
@@ -2612,11 +2610,11 @@ var ei = {
2612
2610
  set: qr.set,
2613
2611
  defaults: ni
2614
2612
  }, "restrictRect"), ii = {
2615
- width: -Infinity,
2616
- height: -Infinity
2613
+ width: -1 / 0,
2614
+ height: -1 / 0
2617
2615
  }, ai = {
2618
- width: Infinity,
2619
- height: Infinity
2616
+ width: 1 / 0,
2617
+ height: 1 / 0
2620
2618
  };
2621
2619
  function oi(e) {
2622
2620
  return ei.start(e);
@@ -2673,10 +2671,10 @@ function ui(e) {
2673
2671
  let n = s.x - e.x, r = s.y - e.y;
2674
2672
  for (let a = 0, o = i.targets.length; a < o; a++) {
2675
2673
  let o = i.targets[a], s;
2676
- s = J.func(o) ? o(n, r, t._proxy, e, a) : o, s && c.push({
2677
- x: (J.number(s.x) ? s.x : n) + e.x,
2678
- y: (J.number(s.y) ? s.y : r) + e.y,
2679
- range: J.number(s.range) ? s.range : i.range,
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,
2680
2678
  source: o,
2681
2679
  index: a,
2682
2680
  offset: e
@@ -2695,7 +2693,7 @@ function ui(e) {
2695
2693
  };
2696
2694
  for (let e of c) {
2697
2695
  let t = e.range, n = e.x - s.x, r = e.y - s.y, i = sn(n, r), a = i <= t;
2698
- t === Infinity && l.inRange && l.range !== Infinity && (a = !1), (!l.target || (a ? l.inRange && t !== Infinity ? i / t < l.distance / l.range : t === Infinity && l.range !== Infinity || i < l.distance : !l.inRange && i < l.distance)) && (l.target = e, l.distance = i, l.range = t, l.inRange = a, l.delta.x = n, l.delta.y = r);
2696
+ t === 1 / 0 && l.inRange && l.range !== 1 / 0 && (a = !1), (!l.target || (a ? l.inRange && t !== 1 / 0 ? i / t < l.distance / l.range : t === 1 / 0 && l.range !== 1 / 0 || i < l.distance : !l.inRange && i < l.distance)) && (l.target = e, l.distance = i, l.range = t, l.inRange = a, l.delta.x = n, l.delta.y = r);
2699
2697
  }
2700
2698
  return l.inRange && (n.x = l.target.x, n.y = l.target.y), r.closest = l, l;
2701
2699
  }
@@ -2707,7 +2705,7 @@ var fi = {
2707
2705
  start: li,
2708
2706
  set: ui,
2709
2707
  defaults: {
2710
- range: Infinity,
2708
+ range: 1 / 0,
2711
2709
  targets: null,
2712
2710
  offset: null,
2713
2711
  offsetWithOrigin: !0,
@@ -2742,7 +2740,7 @@ function hi(e) {
2742
2740
  n.options = Q({}, i), n.options.targets = [];
2743
2741
  for (let e of i.targets || []) {
2744
2742
  let r;
2745
- if (r = J.func(e) ? e(o.x, o.y, t) : e, r) {
2743
+ if (r = q.func(e) ? e(o.x, o.y, t) : e, r) {
2746
2744
  for (let [e, t] of n.targetFields) if (e in r || t in r) {
2747
2745
  r.x = r[e], r.y = r[t];
2748
2746
  break;
@@ -2757,7 +2755,7 @@ var gi = {
2757
2755
  start: mi,
2758
2756
  set: hi,
2759
2757
  defaults: {
2760
- range: Infinity,
2758
+ range: 1 / 0,
2761
2759
  targets: null,
2762
2760
  offset: null,
2763
2761
  endOnly: !1,
@@ -2853,14 +2851,14 @@ var Ti = [
2853
2851
  }
2854
2852
  ];
2855
2853
  function Ei(e, t, n) {
2856
- let r = e.style[t] || q.getComputedStyle(e)[t];
2854
+ let r = e.style[t] || Je.getComputedStyle(e)[t];
2857
2855
  return n.test((r || "").toString());
2858
2856
  }
2859
2857
  function Di(e, t, n) {
2860
2858
  let r = e;
2861
- for (; J.element(r);) {
2859
+ for (; q.element(r);) {
2862
2860
  if (Ei(r, t, n)) return !0;
2863
- r = nt(r);
2861
+ r = Z(r);
2864
2862
  }
2865
2863
  return !1;
2866
2864
  }
@@ -2908,8 +2906,8 @@ var Ai = /* @__PURE__ */ A({
2908
2906
  },
2909
2907
  minH: { default: 1 },
2910
2908
  minW: { default: 1 },
2911
- maxH: { default: Infinity },
2912
- maxW: { default: Infinity },
2909
+ maxH: { default: 1 / 0 },
2910
+ maxW: { default: 1 / 0 },
2913
2911
  x: {},
2914
2912
  y: {},
2915
2913
  w: {},
@@ -2935,7 +2933,7 @@ var Ai = /* @__PURE__ */ A({
2935
2933
  "dragend"
2936
2934
  ],
2937
2935
  setup(e, { expose: t, emit: n }) {
2938
- let r = e, { proxy: i } = ki(), a = i?.$parent, o = re("eventBus"), s = N({}), c = N(1), l = N(100), u = N(30), d = N([10, 10]), f = N(Infinity), p = N(null), m = N(null), h = N(1), g = N(!0), _ = N(!0), v = N(!1), y = N(null), b = N(!1), x = N(null), ee = N(NaN), S = N(NaN), C = N(NaN), w = N(NaN), E = N({}), O = N(!1), k = N(!1), A = N(!1), ne = N(null), j = N(null), oe = N(null), le = N(null), P = N(r.x), F = N(r.y), I = N(r.w), L = N(r.h), fe = N(null), z = N(null), pe = T(() => m.value && !r.static), B = T(() => (p.value || m.value) && !r.static), V = T(() => navigator.userAgent.toLowerCase().indexOf("android") !== -1), H = T(() => a != null && a.isMirrored ? !O.value : O.value), me = T(() => ({
2936
+ let r = e, { proxy: i } = ki(), a = i?.$parent, o = re("eventBus"), s = N({}), c = N(1), l = N(100), u = N(30), d = N([10, 10]), f = N(1 / 0), p = N(null), m = N(null), h = N(1), g = N(!0), _ = N(!0), v = N(!1), y = N(null), b = N(!1), x = N(null), ee = N(NaN), S = N(NaN), C = N(NaN), w = N(NaN), E = N({}), O = N(!1), k = N(!1), A = N(!1), ne = N(null), j = N(null), oe = N(null), le = N(null), P = N(r.x), F = N(r.y), I = N(r.w), L = N(r.h), fe = N(null), z = N(null), pe = T(() => m.value && !r.static), B = T(() => (p.value || m.value) && !r.static), V = T(() => navigator.userAgent.toLowerCase().indexOf("android") !== -1), H = T(() => a != null && a.isMirrored ? !O.value : O.value), me = T(() => ({
2939
2937
  "vue-resizable": pe.value,
2940
2938
  static: r.static,
2941
2939
  resizing: b.value,
@@ -3051,12 +3049,10 @@ var Ai = /* @__PURE__ */ A({
3051
3049
  break;
3052
3050
  case "resizemove": {
3053
3051
  let e = Ne(C.value, w.value, i, a);
3054
- H.value ? s.width = Number(x.value?.width) - e.deltaX / h.value : s.width = Number(x.value?.width) + e.deltaX / h.value, s.height = Number(x.value?.height) + e.deltaY / h.value, x.value = s;
3052
+ s.width = H.value ? Number(x.value?.width) - e.deltaX / h.value : Number(x.value?.width) + e.deltaX / h.value, s.height = Number(x.value?.height) + e.deltaY / h.value, x.value = s;
3055
3053
  break;
3056
3054
  }
3057
- case "resizeend":
3058
- c = Fe(P.value, F.value, I.value, L.value), s.width = c.width, s.height = c.height, x.value = null, b.value = !1;
3059
- break;
3055
+ case "resizeend": c = Fe(P.value, F.value, I.value, L.value), s.width = c.width, s.height = c.height, x.value = null, b.value = !1;
3060
3056
  }
3061
3057
  c = Ve(s.height, s.width), c.w < r.minW && (c.w = r.minW), c.w > r.maxW && (c.w = r.maxW), c.h < r.minH && (c.h = r.minH), c.h > r.maxH && (c.h = r.maxH), c.h < 1 && (c.h = 1), c.w < 1 && (c.w = 1), C.value = i, w.value = a, (I.value !== c.w || L.value !== c.h) && n("resize", r.i, c.h, c.w, s.height, s.width), e.type === "resizeend" && (ne.value !== I.value || j.value !== L.value) && n("resized", r.i, c.h, c.w, s.height, s.width);
3062
3058
  let l = {
@@ -3082,20 +3078,20 @@ var Ai = /* @__PURE__ */ A({
3082
3078
  case "dragstart": {
3083
3079
  oe.value = P.value, le.value = F.value;
3084
3080
  let t = e.target, n = t.offsetParent.getBoundingClientRect(), r = t.getBoundingClientRect(), i = r.left / h.value, a = n.left / h.value, o = r.right / h.value, c = n.right / h.value, l = r.top / h.value, u = n.top / h.value;
3085
- H.value ? s.left = (o - c) * -1 : s.left = i - a, s.top = l - u, y.value = s, v.value = !0;
3081
+ s.left = H.value ? (o - c) * -1 : i - a, s.top = l - u, y.value = s, v.value = !0;
3086
3082
  break;
3087
3083
  }
3088
3084
  case "dragend": {
3089
3085
  if (!v.value) return;
3090
3086
  n("dragend", e, r.i);
3091
3087
  let t = e.target, i = t.offsetParent.getBoundingClientRect(), a = t.getBoundingClientRect(), o = a.left / h.value, c = i.left / h.value, l = a.right / h.value, u = i.right / h.value, d = a.top / h.value, f = i.top / h.value;
3092
- H.value ? s.left = (l - u) * -1 : s.left = o - c, s.top = d - f, y.value = null, v.value = !1;
3088
+ s.left = H.value ? (l - u) * -1 : o - c, s.top = d - f, y.value = null, v.value = !1;
3093
3089
  break;
3094
3090
  }
3095
3091
  case "dragmove": {
3096
3092
  n("dragging", e, r.i);
3097
3093
  let t = Ne(ee.value, S.value, i, a);
3098
- if (H.value ? s.left = Number(y.value?.left) - t.deltaX / h.value : s.left = Number(y.value?.left) + t.deltaX / h.value, s.top = Number(y.value?.top) + t.deltaY / h.value, fe.value) {
3094
+ if (s.left = H.value ? Number(y.value?.left) - t.deltaX / h.value : Number(y.value?.left) + t.deltaX / h.value, s.top = Number(y.value?.top) + t.deltaY / h.value, fe.value) {
3099
3095
  let t = e.target.offsetParent.clientHeight - ze(r.h, u.value, d.value[1]);
3100
3096
  s.top = Be(s.top, 0, t);
3101
3097
  let n = Re(), i = l.value - ze(r.w, n, d.value[0]);
@@ -3122,13 +3118,13 @@ var Ai = /* @__PURE__ */ A({
3122
3118
  return a = H.value ? {
3123
3119
  right: Math.round(i * e + (e + 1) * d.value[0]),
3124
3120
  top: Math.round(u.value * t + (t + 1) * d.value[1]),
3125
- width: n === Infinity ? n : Math.round(i * n + Math.max(0, n - 1) * d.value[0]),
3126
- height: r === Infinity ? r : Math.round(u.value * r + Math.max(0, r - 1) * d.value[1])
3121
+ width: n === 1 / 0 ? n : Math.round(i * n + Math.max(0, n - 1) * d.value[0]),
3122
+ height: r === 1 / 0 ? r : Math.round(u.value * r + Math.max(0, r - 1) * d.value[1])
3127
3123
  } : {
3128
3124
  left: Math.round(i * e + (e + 1) * d.value[0]),
3129
3125
  top: Math.round(u.value * t + (t + 1) * d.value[1]),
3130
- width: n === Infinity ? n : Math.round(i * n + Math.max(0, n - 1) * d.value[0]),
3131
- height: r === Infinity ? r : Math.round(u.value * r + Math.max(0, r - 1) * d.value[1])
3126
+ width: n === 1 / 0 ? n : Math.round(i * n + Math.max(0, n - 1) * d.value[0]),
3127
+ height: r === 1 / 0 ? r : Math.round(u.value * r + Math.max(0, r - 1) * d.value[1])
3132
3128
  }, a;
3133
3129
  }
3134
3130
  function Le(e, t) {
@@ -4018,7 +4014,7 @@ var va = /* @__PURE__ */ A({
4018
4014
  },
4019
4015
  colNum: { default: 12 },
4020
4016
  rowHeight: { default: 100 },
4021
- maxRows: { default: Infinity },
4017
+ maxRows: { default: 1 / 0 },
4022
4018
  margin: { default: () => [10, 10] },
4023
4019
  isDraggable: {
4024
4020
  type: Boolean,
@@ -4207,7 +4203,7 @@ var va = /* @__PURE__ */ A({
4207
4203
  h: l
4208
4204
  }).filter((e) => e.i !== d?.i);
4209
4205
  if (f = e.length > 0, f) {
4210
- let t = Infinity, n = Infinity;
4206
+ let t = 1 / 0, n = 1 / 0;
4211
4207
  e.forEach((e) => {
4212
4208
  e.x > Number(d?.x) && (t = Math.min(t, e.x)), e.y > Number(d?.y) && (n = Math.min(n, e.y));
4213
4209
  }), Number.isFinite(t) && (d.w = t - d.x), Number.isFinite(n) && (d.h = n - d.y);
@@ -4279,13 +4275,13 @@ var va = /* @__PURE__ */ A({
4279
4275
  //#endregion
4280
4276
  //#region components/dashboard/useDashboardAgentAutoRun.ts
4281
4277
  function ya(e, t = {}) {
4282
- let n = p(), r = l(), i = d(), a = f(), o = re("llmConnectionStore", null), s = re("queryExecutionService", null);
4278
+ let n = l(), r = f(), i = u(), a = p(), o = re("llmConnectionStore", null), s = re("queryExecutionService", null);
4283
4279
  async function c(c) {
4284
4280
  let l = e.value;
4285
4281
  if (!l || !c.trim()) return null;
4286
4282
  if (!o || !s) return console.error("Dashboard agent auto-run unavailable: missing llm connection store or query service"), null;
4287
4283
  try {
4288
- let e = await u({
4284
+ let e = await d({
4289
4285
  dashboardId: l.id,
4290
4286
  prompt: c,
4291
4287
  stores: {
@@ -4332,53 +4328,53 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4332
4328
  viewMode: { type: Boolean }
4333
4329
  },
4334
4330
  emits: ["fullScreen"],
4335
- setup(e, { emit: i }) {
4336
- let l = e, u = i, d = p(), f = T(() => {
4337
- let e = Object.values(d.dashboards).find((e) => e.id === l.name);
4338
- if (!e && l.connectionId) try {
4339
- return d.newDashboard(l.name, l.connectionId);
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);
4340
4336
  } catch (e) {
4341
4337
  return console.error("Failed to create dashboard:", e), null;
4342
4338
  }
4343
4339
  return e;
4344
- }), { 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 } = x(f, {
4345
- connectionId: l.connectionId,
4346
- maxWidth: l.maxWidth,
4347
- viewMode: l.viewMode,
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,
4348
4344
  isMobile: !1
4349
4345
  }, {
4350
4346
  layoutUpdated: (e) => ye(e),
4351
4347
  dimensionsUpdate: (e) => X(e),
4352
- triggerResize: () => Z(),
4353
- fullScreen: (e) => u("fullScreen", e)
4354
- }), Re = n(re("userSettingsStore", null)), ze = r(), Be = T(() => c({
4355
- theme: f.value?.theme,
4356
- mode: Re.value
4357
- })), Ve = T(() => s(Be.value.vars, t(ze.value?.theme)?.variables)), He = T(() => f.value?.state === "editing" || !1), Ue = N(!1), We = N(!1), W = N(null), G = S(), K = T(() => G.isOpen.value), Ge = re("llmConnectionStore"), Ke = T(() => !!Ge?.activeConnection), { submitPrompt: qe } = ya(f, { onStarted: (e) => G.openPanel(e) }), q = T(() => !!f.value && A.value.length === 0 && !K.value);
4358
- function Je() {
4359
- if (G.isOpen.value) {
4360
- G.closePanel();
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,
4352
+ 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() {
4355
+ if (K.isOpen.value) {
4356
+ K.closePanel();
4361
4357
  return;
4362
4358
  }
4363
- G.openPanel(f.value?.chatId || void 0);
4359
+ K.openPanel(p.value?.chatId || void 0);
4364
4360
  }
4365
- function Ye(e) {
4366
- !e || !e.trim() || qe(e);
4361
+ function Ze(e) {
4362
+ e && e.trim() && Je(e);
4367
4363
  }
4368
- function Xe(e) {
4364
+ function Qe(e) {
4369
4365
  return je(e);
4370
4366
  }
4371
- R(() => f.value?.id, (e, t) => {
4367
+ R(() => p.value?.id, (e, t) => {
4372
4368
  t && o(t), e && a({
4373
4369
  dashboardId: e,
4374
- refreshItem: Xe,
4375
- captureImage: ot,
4370
+ refreshItem: Qe,
4371
+ captureImage: st,
4376
4372
  getDashboardQueryExecutor: () => ke(e) || null
4377
4373
  });
4378
4374
  }, { immediate: !0 }), se(() => {
4379
- f.value?.id && o(f.value.id);
4375
+ p.value?.id && o(p.value.id);
4380
4376
  });
4381
- function Ze(e = 2) {
4377
+ function $e(e = 2) {
4382
4378
  return new Promise((t) => {
4383
4379
  let n = (e) => {
4384
4380
  if (e <= 0) {
@@ -4390,10 +4386,10 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4390
4386
  n(e);
4391
4387
  });
4392
4388
  }
4393
- function Qe(e) {
4389
+ function et(e) {
4394
4390
  return (e || "dashboard").replace(/[<>:"/\\|?*\u0000-\u001f]/g, " ").replace(/\s+/g, " ").trim() || "dashboard";
4395
4391
  }
4396
- function $e(e) {
4392
+ function q(e) {
4397
4393
  let t = e.getBoundingClientRect(), n = e.querySelector(".vue-grid-layout"), r = n ? n.getBoundingClientRect().bottom - t.top : 0;
4398
4394
  return {
4399
4395
  width: Math.max(1, Math.ceil(t.width)),
@@ -4422,7 +4418,7 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4422
4418
  }
4423
4419
  return t;
4424
4420
  }
4425
- let Y = [
4421
+ let tt = [
4426
4422
  "vue-grid-placeholder",
4427
4423
  "vue-resizable-handle",
4428
4424
  "content-edit-overlay",
@@ -4432,47 +4428,47 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4432
4428
  "edit-indicator",
4433
4429
  "filter-remove-btn"
4434
4430
  ];
4435
- function et(e) {
4431
+ function Y(e) {
4436
4432
  if (!(e instanceof Element)) return !0;
4437
4433
  let t = e.classList;
4438
- return !(Y.some((e) => t.contains(e)) || t.contains("vega-container") && !t.contains("vega-active"));
4434
+ return !(tt.some((e) => t.contains(e)) || t.contains("vega-container") && !t.contains("vega-active"));
4439
4435
  }
4440
4436
  function X(e) {
4441
- if (!f.value) return;
4437
+ if (!p.value) return;
4442
4438
  let t = document.querySelector(`.vue-grid-item[data-i="${e}"] .grid-item-content`);
4443
4439
  if (t) {
4444
- 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);
4445
- f.value.id && Ae(e, f.value.id, {
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, {
4446
4442
  width: i,
4447
4443
  height: a
4448
4444
  });
4449
4445
  }
4450
4446
  }
4451
- function Z() {
4452
- f.value && A.value.forEach((e) => {
4447
+ function nt() {
4448
+ p.value && A.value.forEach((e) => {
4453
4449
  X(e.i);
4454
4450
  });
4455
4451
  }
4456
- function tt() {
4457
- Ue.value = !0, j(() => {
4458
- Z();
4452
+ function Z() {
4453
+ We.value = !0, j(() => {
4454
+ nt();
4459
4455
  });
4460
4456
  }
4461
- function nt(e) {
4462
- Ue.value === !0 && (ye(e), j(() => {
4463
- Z();
4457
+ function rt(e) {
4458
+ We.value === !0 && (ye(e), j(() => {
4459
+ nt();
4464
4460
  }));
4465
4461
  }
4466
- function rt(e) {
4467
- ve(e), u("fullScreen", e === "fullscreen"), j(() => {
4468
- Z();
4462
+ function it(e) {
4463
+ ve(e), d("fullScreen", e === "fullscreen"), j(() => {
4464
+ nt();
4469
4465
  });
4470
4466
  }
4471
- async function it() {
4472
- let { domToBlob: e } = await import("./dist-CXoL8kXK.js"), t = W.value;
4467
+ async function at() {
4468
+ let { domToBlob: e } = await import("./dist-1z5KURzS.js"), t = G.value;
4473
4469
  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.");
4474
- await j(), await Ze(3), "fonts" in document && await document.fonts.ready;
4475
- let n = $e(t), r = J(t), i = window.getComputedStyle(t), a = [
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 = [
4476
4472
  "--dashboard-canvas-bg",
4477
4473
  "--main-bg-color",
4478
4474
  "--trilogy-embed-dashboard-background"
@@ -4482,7 +4478,7 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4482
4478
  height: n.height,
4483
4479
  scale: Math.max(2, Math.min(window.devicePixelRatio || 1, 3)),
4484
4480
  backgroundColor: a,
4485
- filter: et,
4481
+ filter: Y,
4486
4482
  features: { restoreScrollPosition: !0 }
4487
4483
  });
4488
4484
  if (!o || o.size === 0) throw Error("Failed to create dashboard image");
@@ -4493,22 +4489,22 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4493
4489
  overflows: r
4494
4490
  };
4495
4491
  }
4496
- async function at() {
4497
- if (!(!f.value || We.value)) {
4498
- We.value = !0;
4492
+ async function ot() {
4493
+ if (p.value && !W.value) {
4494
+ W.value = !0;
4499
4495
  try {
4500
- let { blob: e } = await it(), t = URL.createObjectURL(e), n = document.createElement("a");
4501
- n.download = `${Qe(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);
4496
+ 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);
4502
4498
  } catch (e) {
4503
4499
  console.error("Error exporting image:", e), alert("Failed to export image. Please try again.");
4504
4500
  } finally {
4505
- We.value = !1;
4501
+ W.value = !1;
4506
4502
  }
4507
4503
  }
4508
4504
  }
4509
- async function ot() {
4510
- if (!f.value) throw Error("No dashboard loaded");
4511
- let { blob: e, width: t, height: n, overflows: r } = await it();
4505
+ async function st() {
4506
+ if (!p.value) throw Error("No dashboard loaded");
4507
+ let { blob: e, width: t, height: n, overflows: r } = await at();
4512
4508
  return {
4513
4509
  base64: await new Promise((t, n) => {
4514
4510
  let r = new FileReader();
@@ -4523,33 +4519,33 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4523
4519
  overflows: r
4524
4520
  };
4525
4521
  }
4526
- return (t, n) => f.value ? (M(), D("div", {
4522
+ return (t, n) => p.value ? (M(), D("div", {
4527
4523
  key: 0,
4528
4524
  class: "dashboard-container",
4529
- style: ae(Ve.value)
4525
+ style: ae(He.value)
4530
4526
  }, [
4531
- k(g, {
4532
- dashboard: f.value,
4533
- "edits-locked": f.value.state === "locked",
4527
+ k(v, {
4528
+ dashboard: p.value,
4529
+ "edits-locked": p.value.state === "locked",
4534
4530
  "selected-connection": I(ie),
4535
4531
  filterError: I(oe),
4536
4532
  globalCompletion: I(ce),
4537
4533
  validateFilter: I(ge),
4538
- "export-image-action": at,
4539
- "has-llm-connection": Ke.value,
4540
- "chat-open": K.value,
4534
+ "export-image-action": ot,
4535
+ "has-llm-connection": qe.value,
4536
+ "chat-open": Ge.value,
4541
4537
  onConnectionChange: I(_e),
4542
4538
  onFilterChange: I(H),
4543
4539
  onImportChange: I(he),
4544
4540
  onAddItem: I(be),
4545
4541
  onClearItems: I(Se),
4546
- onModeChange: rt,
4542
+ onModeChange: it,
4547
4543
  onRefresh: I(je),
4548
4544
  onClearFilter: I(me),
4549
4545
  onTitleUpdate: I(Ie),
4550
4546
  onThemeChange: I(Le),
4551
- onExportImage: at,
4552
- onToggleChat: Je
4547
+ onExportImage: ot,
4548
+ onToggleChat: Xe
4553
4549
  }, null, 8, [
4554
4550
  "dashboard",
4555
4551
  "edits-locked",
@@ -4569,26 +4565,26 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4569
4565
  "onTitleUpdate",
4570
4566
  "onThemeChange"
4571
4567
  ]),
4572
- O("div", ba, [O("div", xa, [q.value ? (M(), D("div", Sa, [k(_, {
4573
- "dashboard-id": f.value.id,
4574
- onStartChatWithPrompt: Ye
4568
+ O("div", ba, [O("div", xa, [Ye.value ? (M(), D("div", Sa, [k(y, {
4569
+ "dashboard-id": p.value.id,
4570
+ onStartChatWithPrompt: Ze
4575
4571
  }, null, 8, ["dashboard-id"])])) : te("", !0), z(O("div", Ca, [O("div", {
4576
4572
  ref_key: "gridContentRef",
4577
- ref: W,
4573
+ ref: G,
4578
4574
  class: "grid-content",
4579
4575
  style: ae({ maxWidth: I(V) + "px" })
4580
4576
  }, [k(I(va), {
4581
4577
  "col-num": 20,
4582
- "row-height": Be.value.rowHeight,
4583
- margin: Be.value.gridMargin,
4584
- "is-draggable": He.value,
4585
- "is-resizable": He.value,
4578
+ "row-height": Ve.value.rowHeight,
4579
+ margin: Ve.value.gridMargin,
4580
+ "is-draggable": Ue.value,
4581
+ "is-resizable": Ue.value,
4586
4582
  "is-bounded": !0,
4587
4583
  layout: I(A),
4588
4584
  "vertical-compact": !0,
4589
4585
  "use-css-transforms": !0,
4590
- onLayoutUpdated: nt,
4591
- onLayoutReady: tt
4586
+ onLayoutUpdated: rt,
4587
+ onLayoutReady: Z
4592
4588
  }, {
4593
4589
  default: fe(() => [(M(!0), D(C, null, P(I(A), (e) => (M(), E(I(Ai), {
4594
4590
  key: e.i,
@@ -4602,8 +4598,8 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4602
4598
  "drag-ignore-from": ".no-drag",
4603
4599
  "drag-handle-class": ".grid-item-drag-handle"
4604
4600
  }, {
4605
- default: fe(() => [k(b, {
4606
- "dashboard-id": f.value.id,
4601
+ default: fe(() => [k(ee, {
4602
+ "dashboard-id": p.value.id,
4607
4603
  item: e,
4608
4604
  "edit-mode": I(ne),
4609
4605
  "get-item-data": I(U),
@@ -4649,8 +4645,8 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4649
4645
  "is-draggable",
4650
4646
  "is-resizable",
4651
4647
  "layout"
4652
- ])], 4)], 512), [[L, !q.value]])])]),
4653
- k(v, {
4648
+ ])], 4)], 512), [[L, !Ye.value]])])]),
4649
+ k(b, {
4654
4650
  show: I(le),
4655
4651
  onAdd: I(xe),
4656
4652
  onClose: I(Te)
@@ -4662,11 +4658,11 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4662
4658
  I(ue) && I(B) ? (M(), E(w, {
4663
4659
  key: 0,
4664
4660
  to: "body"
4665
- }, [k(m, {
4666
- connectionName: I(U)(I(B).i, f.value.id).connectionName || "",
4667
- imports: I(U)(I(B).i, f.value.id).imports || [],
4668
- rootContent: I(U)(I(B).i, f.value.id).rootContent || [],
4669
- content: I(U)(I(B).i, f.value.id).content,
4661
+ }, [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,
4670
4666
  onSave: I(De),
4671
4667
  onCancel: I(Oe)
4672
4668
  }, null, 8, [
@@ -4680,11 +4676,11 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4680
4676
  I(de) && I(B) ? (M(), E(w, {
4681
4677
  key: 1,
4682
4678
  to: "body"
4683
- }, [k(h, {
4684
- connectionName: I(U)(I(B).i, f.value.id).connectionName || "",
4685
- imports: I(U)(I(B).i, f.value.id).imports || [],
4686
- rootContent: I(U)(I(B).i, f.value.id).rootContent || [],
4687
- content: I(U)(I(B).i, f.value.id).structured_content,
4679
+ }, [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,
4688
4684
  onSave: I(De),
4689
4685
  onCancel: I(Oe)
4690
4686
  }, null, 8, [
@@ -4698,11 +4694,11 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4698
4694
  I(pe) && I(B) ? (M(), E(w, {
4699
4695
  key: 2,
4700
4696
  to: "body"
4701
- }, [k(y, {
4702
- connectionName: I(U)(I(B).i, f.value.id).connectionName || "",
4703
- imports: I(U)(I(B).i, f.value.id).imports || [],
4704
- rootContent: I(U)(I(B).i, f.value.id).rootContent || [],
4705
- content: I(U)(I(B).i, f.value.id).freeformData || null,
4697
+ }, [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,
4706
4702
  onSave: I(De),
4707
4703
  onCancel: I(Oe)
4708
4704
  }, null, 8, [
@@ -4713,13 +4709,13 @@ var ba = { class: "dashboard-body" }, xa = { class: "dashboard-main" }, Sa = {
4713
4709
  "onSave",
4714
4710
  "onCancel"
4715
4711
  ])])) : te("", !0)
4716
- ], 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(ee, {
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, {
4717
4713
  key: 1,
4718
4714
  class: "inline-creator",
4719
4715
  visible: !0,
4720
4716
  onDashboardCreated: I(Fe)
4721
4717
  }, null, 8, ["onDashboardCreated"]))]));
4722
4718
  }
4723
- }), Ea = /* @__PURE__ */ e({ default: () => Da }), Da = /*#__PURE__*/ i(Ta, [["__scopeId", "data-v-e6610097"]]);
4719
+ }), Ea = /* @__PURE__ */ e({ default: () => Da }), Da = /*#__PURE__*/ t(Ta, [["__scopeId", "data-v-e6610097"]]);
4724
4720
  //#endregion
4725
4721
  export { Ea as n, Da as t };