@ovalbee/flow-viewer 0.0.2 → 0.0.4

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.
@@ -1,12 +1,12 @@
1
- import { defineComponent as E, inject as oe, createElementBlock as s, openBlock as n, unref as w, normalizeClass as X, createElementVNode as k, createCommentVNode as x, createBlock as A, normalizeStyle as S, toDisplayString as _, Fragment as C, computed as q, markRaw as G, ref as ne, onBeforeUnmount as ie, provide as ce, createVNode as se, withCtx as de, Teleport as le, renderList as B, h as U, resolveDynamicComponent as re } from "vue";
2
- import { Handle as I, Position as T, ConnectionLineType as he, VueFlow as ye } from "@vue-flow/core";
3
- import { Controls as pe } from "@vue-flow/controls";
4
- import { MiniMap as ke } from "@vue-flow/minimap";
5
- const Q = Symbol("flow-viewer-details"), ue = ["aria-label"], me = { class: "ob-flow-viewer-node__header" }, ve = ["innerHTML"], we = { key: 1 }, ge = { class: "ob-flow-viewer-node__title-wrap" }, fe = { class: "ob-flow-viewer-node__title" }, Me = { class: "ob-flow-viewer-node__key" }, xe = { class: "ob-flow-viewer-node__description ob-flow-viewer-node__description--clamped" }, be = {
1
+ import { defineComponent as E, inject as ne, createElementBlock as l, openBlock as i, unref as M, normalizeClass as X, createElementVNode as m, createCommentVNode as z, createBlock as A, normalizeStyle as B, toDisplayString as H, Fragment as q, computed as C, markRaw as G, ref as ie, onBeforeUnmount as se, provide as ce, createVNode as de, withCtx as le, Teleport as re, renderList as S, h as U, resolveDynamicComponent as he } from "vue";
2
+ import { Handle as T, Position as I, ConnectionLineType as ye, VueFlow as pe } from "@vue-flow/core";
3
+ import { Controls as ke } from "@vue-flow/controls";
4
+ import { MiniMap as ue } from "@vue-flow/minimap";
5
+ const Q = Symbol("flow-viewer-details"), me = ["aria-label"], ve = { class: "ob-flow-viewer-node__header" }, we = ["innerHTML"], ge = { key: 1 }, fe = { class: "ob-flow-viewer-node__title-wrap" }, Me = { class: "ob-flow-viewer-node__title" }, xe = { class: "ob-flow-viewer-node__key" }, be = { class: "ob-flow-viewer-node__description ob-flow-viewer-node__description--clamped" }, ze = {
6
6
  key: 1,
7
7
  class: "ob-flow-viewer-node__widget-image",
8
8
  "aria-hidden": "true"
9
- }, ze = /* @__PURE__ */ E({
9
+ }, _e = /* @__PURE__ */ E({
10
10
  __name: "FlowViewerNode",
11
11
  props: {
12
12
  id: {},
@@ -30,103 +30,103 @@ const Q = Symbol("flow-viewer-details"), ue = ["aria-label"], me = { class: "ob-
30
30
  events: {}
31
31
  },
32
32
  setup(t) {
33
- const i = t, u = oe(Q), f = i.data.available ? i.data.description : "This node template is unavailable.";
34
- return (d, l) => {
35
- var p, M;
36
- return n(), s("article", {
33
+ const n = t, v = ne(Q), x = n.data.available ? n.data.description : "This node template is unavailable.";
34
+ return (r, y) => {
35
+ var k, b;
36
+ return i(), l("article", {
37
37
  class: X(["ob-flow-viewer-node", { "ob-flow-viewer-node--unavailable": !t.data.available }]),
38
38
  tabindex: "0",
39
39
  "aria-label": `${t.data.name} node`,
40
- onMouseenter: l[0] || (l[0] = (a) => {
40
+ onMouseenter: y[0] || (y[0] = (o) => {
41
41
  var c;
42
- return (c = w(u)) == null ? void 0 : c.show(t.data, a);
42
+ return (c = M(v)) == null ? void 0 : c.show(t.data, o);
43
43
  }),
44
- onMouseleave: l[1] || (l[1] = (a) => {
44
+ onMouseleave: y[1] || (y[1] = (o) => {
45
45
  var c;
46
- return (c = w(u)) == null ? void 0 : c.hide();
46
+ return (c = M(v)) == null ? void 0 : c.hide();
47
47
  }),
48
- onClick: l[2] || (l[2] = (a) => {
48
+ onClick: y[2] || (y[2] = (o) => {
49
49
  var c;
50
- return (c = w(u)) == null ? void 0 : c.show(t.data, a);
50
+ return (c = M(v)) == null ? void 0 : c.show(t.data, o);
51
51
  }),
52
- onFocus: l[3] || (l[3] = (a) => {
52
+ onFocus: y[3] || (y[3] = (o) => {
53
53
  var c;
54
- return (c = w(u)) == null ? void 0 : c.show(t.data, a);
54
+ return (c = M(v)) == null ? void 0 : c.show(t.data, o);
55
55
  }),
56
- onBlur: l[4] || (l[4] = (a) => {
56
+ onBlur: y[4] || (y[4] = (o) => {
57
57
  var c;
58
- return (c = w(u)) == null ? void 0 : c.hide();
58
+ return (c = M(v)) == null ? void 0 : c.hide();
59
59
  })
60
60
  }, [
61
- k("header", me, [
62
- k("span", {
61
+ m("header", ve, [
62
+ m("span", {
63
63
  class: "ob-flow-viewer-node__icon",
64
- style: S({ "--ob-node-icon-color": ((p = t.data.icon) == null ? void 0 : p.color) ?? "#64748b" }),
64
+ style: B({ "--ob-node-icon-color": ((k = t.data.icon) == null ? void 0 : k.color) ?? "#64748b" }),
65
65
  "aria-hidden": "true"
66
66
  }, [
67
- (M = t.data.icon) != null && M.svg ? (n(), s("span", {
67
+ (b = t.data.icon) != null && b.svg ? (i(), l("span", {
68
68
  key: 0,
69
69
  class: "ob-flow-viewer-node__icon-svg",
70
70
  innerHTML: t.data.icon.svg
71
- }, null, 8, ve)) : (n(), s("span", we, _(t.data.available ? t.data.name.slice(0, 1).toUpperCase() : "?"), 1))
71
+ }, null, 8, we)) : (i(), l("span", ge, H(t.data.available ? t.data.name.slice(0, 1).toUpperCase() : "?"), 1))
72
72
  ], 4),
73
- k("span", ge, [
74
- k("strong", fe, _(t.data.name), 1),
75
- k("span", Me, _(t.data.key), 1)
73
+ m("span", fe, [
74
+ m("strong", Me, H(t.data.name), 1),
75
+ m("span", xe, H(t.data.key), 1)
76
76
  ])
77
77
  ]),
78
- k("p", xe, _(w(f)), 1),
79
- t.data.widgetPreview && t.data.available ? (n(), s("div", {
78
+ m("p", be, H(M(x)), 1),
79
+ t.data.widgetPreview && t.data.available ? (i(), l("div", {
80
80
  key: 0,
81
81
  class: X(["ob-flow-viewer-node__widget", `ob-flow-viewer-node__widget--${t.data.widgetPreview}`]),
82
82
  "aria-label": "Widget preview"
83
83
  }, [
84
- t.data.widgetPreview === "button" ? (n(), s(C, { key: 0 }, [
85
- l[5] || (l[5] = k("span", { class: "ob-flow-viewer-node__widget-icon" }, "↗", -1)),
86
- l[6] || (l[6] = k("span", { class: "ob-flow-viewer-node__widget-label" }, null, -1))
87
- ], 64)) : t.data.widgetPreview === "dataset" ? (n(), s("span", be)) : (n(), s(C, { key: 2 }, [
88
- l[7] || (l[7] = k("span", null, null, -1)),
89
- l[8] || (l[8] = k("span", null, null, -1))
84
+ t.data.widgetPreview === "button" ? (i(), l(q, { key: 0 }, [
85
+ y[5] || (y[5] = m("span", { class: "ob-flow-viewer-node__widget-icon" }, "↗", -1)),
86
+ y[6] || (y[6] = m("span", { class: "ob-flow-viewer-node__widget-label" }, null, -1))
87
+ ], 64)) : t.data.widgetPreview === "dataset" ? (i(), l("span", ze)) : (i(), l(q, { key: 2 }, [
88
+ y[7] || (y[7] = m("span", null, null, -1)),
89
+ y[8] || (y[8] = m("span", null, null, -1))
90
90
  ], 64))
91
- ], 2)) : x("", !0),
92
- t.data.connectedHandles.has("target") ? (n(), A(w(I), {
91
+ ], 2)) : z("", !0),
92
+ t.data.connectedHandles.has("target") ? (i(), A(M(T), {
93
93
  key: 1,
94
94
  type: "target",
95
- position: w(T).Top
96
- }, null, 8, ["position"])) : x("", !0),
97
- t.data.connectedHandles.has("left") ? (n(), A(w(I), {
95
+ position: M(I).Top
96
+ }, null, 8, ["position"])) : z("", !0),
97
+ t.data.connectedHandles.has("left") ? (i(), A(M(T), {
98
98
  key: 2,
99
99
  id: "left",
100
100
  type: "target",
101
- position: w(T).Left
102
- }, null, 8, ["position"])) : x("", !0),
103
- t.data.connectedHandles.has("right") ? (n(), A(w(I), {
101
+ position: M(I).Left
102
+ }, null, 8, ["position"])) : z("", !0),
103
+ t.data.connectedHandles.has("right") ? (i(), A(M(T), {
104
104
  key: 3,
105
105
  id: "right",
106
106
  type: "target",
107
- position: w(T).Right
108
- }, null, 8, ["position"])) : x("", !0),
109
- t.data.connectedHandles.has("source") ? (n(), A(w(I), {
107
+ position: M(I).Right
108
+ }, null, 8, ["position"])) : z("", !0),
109
+ t.data.connectedHandles.has("source") ? (i(), A(M(T), {
110
110
  key: 4,
111
111
  type: "source",
112
- position: w(T).Bottom
113
- }, null, 8, ["position"])) : x("", !0),
114
- t.data.connectedHandles.has("left-source") ? (n(), A(w(I), {
112
+ position: M(I).Bottom
113
+ }, null, 8, ["position"])) : z("", !0),
114
+ t.data.connectedHandles.has("left-source") ? (i(), A(M(T), {
115
115
  key: 5,
116
116
  id: "left-source",
117
117
  type: "source",
118
- position: w(T).Left
119
- }, null, 8, ["position"])) : x("", !0),
120
- t.data.connectedHandles.has("right-source") ? (n(), A(w(I), {
118
+ position: M(I).Left
119
+ }, null, 8, ["position"])) : z("", !0),
120
+ t.data.connectedHandles.has("right-source") ? (i(), A(M(T), {
121
121
  key: 6,
122
122
  id: "right-source",
123
123
  type: "source",
124
- position: w(T).Right
125
- }, null, 8, ["position"])) : x("", !0)
126
- ], 42, ue);
124
+ position: M(I).Right
125
+ }, null, 8, ["position"])) : z("", !0)
126
+ ], 42, me);
127
127
  };
128
128
  }
129
- }), _e = /* @__PURE__ */ E({
129
+ }), He = ["innerHTML"], Ve = /* @__PURE__ */ E({
130
130
  __name: "FlowViewerNote",
131
131
  props: {
132
132
  id: {},
@@ -150,180 +150,188 @@ const Q = Symbol("flow-viewer-details"), ue = ["aria-label"], me = { class: "ob-
150
150
  events: {}
151
151
  },
152
152
  setup(t) {
153
- const i = t, u = q(() => ({
154
- width: `${i.data.appearance.width}px`,
155
- minHeight: i.data.appearance.height ? `${i.data.appearance.height}px` : void 0
153
+ const n = t, v = C(() => ({
154
+ width: `${n.data.appearance.width}px`,
155
+ minHeight: n.data.appearance.height ? `${n.data.appearance.height}px` : void 0
156
156
  }));
157
- return (f, d) => (n(), s("article", {
157
+ return (x, r) => (i(), l("article", {
158
158
  class: X(["ob-flow-viewer-note", `ob-flow-viewer-note--${t.data.appearance.color}`]),
159
- style: S(u.value)
160
- }, _(t.data.content), 7));
159
+ style: B(v.value),
160
+ innerHTML: t.data.content
161
+ }, null, 14, He));
161
162
  }
162
- }), He = ["data-theme"], Ve = ["data-theme"], Ae = { class: "ob-flow-viewer-tooltip__header" }, Ce = ["innerHTML"], qe = { key: 1 }, $e = { class: "ob-flow-viewer-tooltip__title-wrap" }, Le = { class: "ob-flow-viewer-tooltip__body" }, Pe = {
163
+ }), Ae = ["data-theme"], Ce = ["data-theme"], qe = { class: "ob-flow-viewer-tooltip__header" }, $e = ["innerHTML"], Le = { key: 1 }, Pe = { class: "ob-flow-viewer-tooltip__title-wrap" }, Te = { class: "ob-flow-viewer-tooltip__body" }, Ie = {
163
164
  key: 0,
164
165
  class: "ob-flow-viewer-tooltip__unavailable"
165
- }, Ie = {
166
+ }, je = {
166
167
  key: 1,
167
168
  class: "ob-flow-viewer-tooltip__description"
168
- }, Te = {
169
+ }, Se = {
169
170
  key: 2,
170
171
  class: "ob-flow-viewer-node__ports"
171
- }, je = { class: "ob-flow-viewer-node__port-group" }, Be = {
172
+ }, Be = { class: "ob-flow-viewer-node__port-group" }, Ne = {
172
173
  key: 0,
173
174
  class: "ob-flow-viewer-node__empty"
174
- }, Se = { key: 0 }, Ne = { class: "ob-flow-viewer-node__port-group ob-flow-viewer-node__port-group--outputs" }, Fe = {
175
+ }, Fe = { key: 0 }, De = { class: "ob-flow-viewer-node__port-group ob-flow-viewer-node__port-group--outputs" }, Oe = {
175
176
  key: 0,
176
177
  class: "ob-flow-viewer-node__empty"
177
- }, De = { key: 0 }, Y = 72, W = 64, Oe = 1.45, C1 = /* @__PURE__ */ E({
178
+ }, Ee = { key: 0 }, Y = 72, W = 64, Ze = 1.45, $a = /* @__PURE__ */ E({
178
179
  __name: "FlowViewer",
179
180
  props: {
180
181
  document: {},
181
182
  fitViewOnInit: { type: Boolean, default: !1 },
182
183
  showControls: { type: Boolean, default: !0 },
183
184
  showMiniMap: { type: Boolean, default: !0 },
185
+ panOnScroll: { type: Boolean, default: !1 },
184
186
  minZoom: { default: 0.1 },
185
187
  maxZoom: { default: 2 },
186
188
  initialZoom: { default: 0.8 },
187
189
  theme: { default: "light" }
188
190
  },
189
191
  setup(t) {
190
- const i = t, u = {
191
- catalog: G(ze),
192
- note: G(_e)
192
+ const n = t, v = {
193
+ catalog: G(_e),
194
+ note: G(Ve)
193
195
  };
194
- function f(o) {
195
- if (o.kind === "note") return o.appearance.height ?? 130;
196
- const r = o.description ? Math.min(2, Math.max(1, Math.ceil(o.description.length / 34))) : o.available ? 0 : 1, v = r > 0 ? 10 + r * 19.5 : 0, z = o.available && o.widgetPreview ? 10 + (o.widgetPreview === "dataset" ? 72 : 32) : 0;
197
- return 60 + v + z;
196
+ function x(a) {
197
+ if (a.kind === "note") return a.appearance.height ?? 130;
198
+ const h = a.description ? Math.min(2, Math.max(1, Math.ceil(a.description.length / 34))) : a.available ? 0 : 1, p = h > 0 ? 10 + h * 19.5 : 0, u = a.available && a.widgetPreview ? 10 + (a.widgetPreview === "dataset" ? 72 : 32) : 0;
199
+ return 60 + p + u;
198
200
  }
199
- const d = ne(null);
200
- let l = null;
201
- function p() {
202
- l !== null && (clearTimeout(l), l = null);
201
+ const r = ie(null);
202
+ let y = null;
203
+ function k() {
204
+ y !== null && (clearTimeout(y), y = null);
203
205
  }
204
- function M() {
205
- p(), l = setTimeout(() => {
206
- d.value = null, l = null;
206
+ function b() {
207
+ k(), y = setTimeout(() => {
208
+ r.value = null, y = null;
207
209
  }, 140);
208
210
  }
209
- ie(p);
210
- function a(o) {
211
- const r = /* @__PURE__ */ new Set();
212
- for (const v of i.document.edges)
213
- v.source === o && r.add(v.sourceHandle ?? "source"), v.target === o && r.add(v.targetHandle ?? "target");
214
- return r;
211
+ se(k);
212
+ function o(a) {
213
+ const h = /* @__PURE__ */ new Set();
214
+ for (const p of n.document.edges)
215
+ p.source === a && h.add(p.sourceHandle ?? "source"), p.target === a && h.add(p.targetHandle ?? "target");
216
+ return h;
215
217
  }
216
- function c(o, r) {
217
- p();
218
- const v = r.currentTarget;
219
- if (!(v instanceof HTMLElement)) return;
220
- const z = v.getBoundingClientRect(), h = 12, y = Math.min(404, window.innerWidth - h * 2), b = Math.min(520, window.innerHeight - h * 2);
221
- let g = z.right + h + y / 2;
222
- g + y / 2 > window.innerWidth - h && (g = z.left - h - y / 2), g = Math.max(y / 2 + h, Math.min(g, window.innerWidth - y / 2 - h)), d.value = {
223
- node: o,
218
+ function c(a, h) {
219
+ k();
220
+ const p = h.currentTarget;
221
+ if (!(p instanceof HTMLElement)) return;
222
+ const u = p.getBoundingClientRect(), s = 12, d = Math.min(404, window.innerWidth - s * 2), f = Math.min(520, window.innerHeight - s * 2);
223
+ let g = u.right + s + d / 2;
224
+ g + d / 2 > window.innerWidth - s && (g = u.left - s - d / 2), g = Math.max(d / 2 + s, Math.min(g, window.innerWidth - d / 2 - s)), r.value = {
225
+ node: a,
224
226
  x: g,
225
- y: Math.max(h, Math.min(z.top, window.innerHeight - b - h))
227
+ y: Math.max(s, Math.min(u.top, window.innerHeight - f - s))
226
228
  };
227
229
  }
228
- function m() {
229
- M();
230
+ function w() {
231
+ b();
230
232
  }
231
- ce(Q, { show: c, hide: m });
232
- const H = q(() => {
233
- const o = new Map(i.document.nodes.map((y) => [y.id, { ...y.position }])), r = Math.min(...i.document.nodes.map((y) => y.position.x)), v = Math.max(...i.document.nodes.map((y) => y.position.x)), z = (r + v) / 2;
234
- for (const y of o.values())
235
- y.x = z + (y.x - z) * Oe;
236
- for (let y = 0; y < i.document.nodes.length; y += 1)
237
- for (const b of i.document.edges) {
238
- if (b.sourceHandle || b.targetHandle) continue;
239
- const g = o.get(b.source), V = o.get(b.target);
233
+ ce(Q, { show: c, hide: w });
234
+ const _ = C(() => {
235
+ const a = new Map(n.document.nodes.map((d) => [d.id, { ...d.position }])), h = Math.min(...n.document.nodes.map((d) => d.position.x)), p = Math.max(...n.document.nodes.map((d) => d.position.x)), u = (h + p) / 2;
236
+ for (const d of a.values())
237
+ d.x = u + (d.x - u) * Ze;
238
+ for (let d = 0; d < n.document.nodes.length; d += 1)
239
+ for (const f of n.document.edges) {
240
+ if (f.sourceHandle || f.targetHandle) continue;
241
+ const g = a.get(f.source), V = a.get(f.target);
240
242
  if (!(!g || !V || Math.abs(g.x - V.x) >= 40) && (V.x = g.x, V.y > g.y)) {
241
- const P = i.document.nodes.find((Z) => Z.id === b.source);
243
+ const P = n.document.nodes.find((Z) => Z.id === f.source);
242
244
  P && (V.y = Math.max(
243
245
  V.y,
244
- g.y + f(P) + Y
246
+ g.y + x(P) + Y
245
247
  ));
246
248
  }
247
249
  }
248
- const h = [...i.document.nodes].sort(
249
- (y, b) => y.position.y - b.position.y || y.position.x - b.position.x
250
+ const s = [...n.document.nodes].sort(
251
+ (d, f) => d.position.y - f.position.y || d.position.x - f.position.x
250
252
  );
251
- for (const [y, b] of h.entries()) {
252
- const g = o.get(b.id);
253
+ for (const [d, f] of s.entries()) {
254
+ const g = a.get(f.id);
253
255
  if (g)
254
- for (const V of h.slice(0, y)) {
255
- const P = o.get(V.id);
256
+ for (const V of s.slice(0, d)) {
257
+ const P = a.get(V.id);
256
258
  if (!P) continue;
257
- const Z = b.kind === "note" ? b.appearance.width : 260, ae = V.kind === "note" ? V.appearance.width : 260;
258
- g.x >= P.x + ae + W || P.x >= g.x + Z + W || (g.y = Math.max(
259
+ const Z = f.kind === "note" ? f.appearance.width : 260, oe = V.kind === "note" ? V.appearance.width : 260;
260
+ g.x >= P.x + oe + W || P.x >= g.x + Z + W || (g.y = Math.max(
259
261
  g.y,
260
- P.y + f(V) + Y
262
+ P.y + x(V) + Y
261
263
  ));
262
264
  }
263
265
  }
264
- return o;
265
- }), $ = q(() => i.document.nodes.map((o) => {
266
- const r = H.value.get(o.id) ?? o.position;
267
- return o.kind === "note" ? {
268
- id: o.id,
266
+ return a;
267
+ }), $ = C(() => n.document.nodes.map((a) => {
268
+ const h = _.value.get(a.id) ?? a.position;
269
+ return a.kind === "note" ? {
270
+ id: a.id,
269
271
  type: "note",
270
- position: r,
271
- data: o,
272
+ position: h,
273
+ data: a,
272
274
  style: {
273
- width: `${o.appearance.width}px`,
274
- height: o.appearance.height ? `${o.appearance.height}px` : void 0
275
+ width: `${a.appearance.width}px`,
276
+ height: a.appearance.height ? `${a.appearance.height}px` : void 0
275
277
  }
276
278
  } : {
277
- id: o.id,
279
+ id: a.id,
278
280
  type: "catalog",
279
- position: r,
281
+ position: h,
280
282
  data: {
281
- ...o,
282
- connectedHandles: a(o.id)
283
+ ...a,
284
+ connectedHandles: o(a.id)
283
285
  },
284
286
  selectable: !1
285
287
  };
286
- })), L = q(() => i.document.edges.map((o, r) => ({
287
- id: `viewer-edge-${r}-${o.source}-${o.target}`,
288
- source: o.source,
289
- target: o.target,
290
- sourceHandle: o.sourceHandle,
291
- targetHandle: o.targetHandle,
292
- type: he.SmoothStep,
293
- data: o.data,
294
- style: o.isVisual ? { strokeDasharray: "6 4" } : void 0,
288
+ })), L = C(() => n.document.edges.map((a, h) => ({
289
+ id: `viewer-edge-${h}-${a.source}-${a.target}`,
290
+ source: a.source,
291
+ target: a.target,
292
+ sourceHandle: a.sourceHandle,
293
+ targetHandle: a.targetHandle,
294
+ type: ye.SmoothStep,
295
+ data: a.data,
296
+ style: a.isVisual ? { strokeDasharray: "6 4" } : void 0,
295
297
  selectable: !1
296
- }))), ee = q(() => {
297
- if (i.document.nodes.length === 0) return { minX: 0, minY: 0, maxX: 0, maxY: 0 };
298
- let o = 1 / 0, r = 1 / 0, v = -1 / 0, z = -1 / 0;
299
- for (const h of i.document.nodes) {
300
- const y = H.value.get(h.id) ?? h.position, b = h.kind === "note" ? h.appearance.width : 260, g = f(h);
301
- o = Math.min(o, y.x), r = Math.min(r, y.y), v = Math.max(v, y.x + b), z = Math.max(z, y.y + g);
298
+ }))), ee = C(() => {
299
+ if (n.document.nodes.length === 0) return { minX: 0, minY: 0, maxX: 0, maxY: 0 };
300
+ let a = 1 / 0, h = 1 / 0, p = -1 / 0, u = -1 / 0;
301
+ for (const s of n.document.nodes) {
302
+ const d = _.value.get(s.id) ?? s.position, f = s.kind === "note" ? s.appearance.width : 260, g = x(s);
303
+ a = Math.min(a, d.x), h = Math.min(h, d.y), p = Math.max(p, d.x + f), u = Math.max(u, d.y + g);
302
304
  }
303
- return { minX: o, minY: r, maxX: v, maxY: z };
305
+ return { minX: a, minY: h, maxX: p, maxY: u };
306
+ }), te = C(() => {
307
+ const a = n.document.nodes.filter((s) => s.kind === "node"), h = new Set(n.document.edges.map((s) => s.target)), p = a.filter((s) => !h.has(s.id));
308
+ return [...p.length > 0 ? p : a.length > 0 ? a : n.document.nodes].sort((s, d) => {
309
+ const f = _.value.get(s.id) ?? s.position, g = _.value.get(d.id) ?? d.position;
310
+ return f.y - g.y || f.x - g.x;
311
+ })[0];
304
312
  });
305
- function te(o) {
306
- if (i.fitViewOnInit) {
307
- o.fitView({ padding: 0.15, maxZoom: 1 });
313
+ function ae(a) {
314
+ if (n.fitViewOnInit) {
315
+ a.fitView({ padding: 0.15, maxZoom: 1 });
308
316
  return;
309
317
  }
310
- const r = ee.value, v = i.initialZoom;
311
- o.setViewport({
312
- x: o.dimensions.value.width / 2 - (r.minX + r.maxX) / 2 * v,
313
- y: 24 - r.minY * v,
314
- zoom: v
318
+ const h = ee.value, p = n.initialZoom, u = te.value, s = u ? _.value.get(u.id) ?? u.position : null, d = (u == null ? void 0 : u.kind) === "note" ? u.appearance.width : 260, f = s ? (s.x + d / 2) * p : (h.minX + h.maxX) / 2 * p;
319
+ a.setViewport({
320
+ x: a.dimensions.value.width / 2 - f,
321
+ y: 24 - h.minY * p,
322
+ zoom: p
315
323
  });
316
324
  }
317
- return (o, r) => {
318
- var v, z;
319
- return n(), s("div", {
325
+ return (a, h) => {
326
+ var p, u;
327
+ return i(), l("div", {
320
328
  class: "ob-flow-viewer",
321
329
  "data-theme": t.theme
322
330
  }, [
323
- se(w(ye), {
331
+ de(M(pe), {
324
332
  nodes: $.value,
325
333
  edges: L.value,
326
- "node-types": u,
334
+ "node-types": v,
327
335
  "fit-view-on-init": !1,
328
336
  "min-zoom": t.minZoom,
329
337
  "max-zoom": t.maxZoom,
@@ -336,85 +344,85 @@ const Q = Symbol("flow-viewer-details"), ue = ["aria-label"], me = { class: "ob-
336
344
  "delete-key-code": [],
337
345
  "multi-selection-key-code": [],
338
346
  "pan-on-drag": !0,
339
- "pan-on-scroll": !0,
347
+ "pan-on-scroll": t.panOnScroll,
340
348
  "zoom-on-scroll": !1,
341
349
  "zoom-on-pinch": !0,
342
350
  class: "ob-flow-viewer__canvas",
343
- onPaneReady: te
351
+ onPaneReady: ae
344
352
  }, {
345
- default: de(() => [
346
- t.showControls ? (n(), A(w(pe), {
353
+ default: le(() => [
354
+ t.showControls ? (i(), A(M(ke), {
347
355
  key: 0,
348
356
  "show-interactive": !1
349
- })) : x("", !0),
350
- t.showMiniMap ? (n(), A(w(ke), {
357
+ })) : z("", !0),
358
+ t.showMiniMap ? (i(), A(M(ue), {
351
359
  key: 1,
352
360
  pannable: !0,
353
361
  zoomable: !0
354
- })) : x("", !0)
362
+ })) : z("", !0)
355
363
  ]),
356
364
  _: 1
357
- }, 8, ["nodes", "edges", "min-zoom", "max-zoom"]),
358
- (n(), A(le, { to: "body" }, [
359
- d.value ? (n(), s("section", {
365
+ }, 8, ["nodes", "edges", "min-zoom", "max-zoom", "pan-on-scroll"]),
366
+ (i(), A(re, { to: "body" }, [
367
+ r.value ? (i(), l("section", {
360
368
  key: 0,
361
369
  class: "ob-flow-viewer-tooltip",
362
370
  "data-theme": t.theme,
363
- style: S({ left: `${d.value.x}px`, top: `${d.value.y}px` }),
371
+ style: B({ left: `${r.value.x}px`, top: `${r.value.y}px` }),
364
372
  role: "tooltip",
365
373
  tabindex: "0",
366
- onMouseenter: p,
367
- onMouseleave: m,
368
- onFocusin: p,
369
- onFocusout: m
374
+ onMouseenter: k,
375
+ onMouseleave: w,
376
+ onFocusin: k,
377
+ onFocusout: w
370
378
  }, [
371
- k("header", Ae, [
372
- k("span", {
379
+ m("header", qe, [
380
+ m("span", {
373
381
  class: "ob-flow-viewer-tooltip__icon",
374
- style: S({ "--ob-node-icon-color": ((v = d.value.node.icon) == null ? void 0 : v.color) ?? "#64748b" }),
382
+ style: B({ "--ob-node-icon-color": ((p = r.value.node.icon) == null ? void 0 : p.color) ?? "#64748b" }),
375
383
  "aria-hidden": "true"
376
384
  }, [
377
- (z = d.value.node.icon) != null && z.svg ? (n(), s("span", {
385
+ (u = r.value.node.icon) != null && u.svg ? (i(), l("span", {
378
386
  key: 0,
379
387
  class: "ob-flow-viewer-node__icon-svg",
380
- innerHTML: d.value.node.icon.svg
381
- }, null, 8, Ce)) : (n(), s("span", qe, _(d.value.node.available ? d.value.node.name.slice(0, 1).toUpperCase() : "?"), 1))
388
+ innerHTML: r.value.node.icon.svg
389
+ }, null, 8, $e)) : (i(), l("span", Le, H(r.value.node.available ? r.value.node.name.slice(0, 1).toUpperCase() : "?"), 1))
382
390
  ], 4),
383
- k("span", $e, [
384
- k("strong", null, _(d.value.node.name), 1),
385
- k("code", null, _(d.value.node.key), 1)
391
+ m("span", Pe, [
392
+ m("strong", null, H(r.value.node.name), 1),
393
+ m("code", null, H(r.value.node.key), 1)
386
394
  ])
387
395
  ]),
388
- k("div", Le, [
389
- d.value.node.available ? d.value.node.description ? (n(), s("p", Ie, _(d.value.node.description), 1)) : x("", !0) : (n(), s("p", Pe, " This node template is unavailable. ")),
390
- d.value.node.available ? (n(), s("div", Te, [
391
- k("div", je, [
392
- r[0] || (r[0] = k("span", { class: "ob-flow-viewer-node__port-heading" }, "Inputs", -1)),
393
- d.value.node.inputs.length === 0 ? (n(), s("span", Be, "None")) : x("", !0),
394
- (n(!0), s(C, null, B(d.value.node.inputs, (h) => (n(), s("span", {
395
- key: h.key,
396
+ m("div", Te, [
397
+ r.value.node.available ? r.value.node.description ? (i(), l("p", je, H(r.value.node.description), 1)) : z("", !0) : (i(), l("p", Ie, " This node template is unavailable. ")),
398
+ r.value.node.available ? (i(), l("div", Se, [
399
+ m("div", Be, [
400
+ h[0] || (h[0] = m("span", { class: "ob-flow-viewer-node__port-heading" }, "Inputs", -1)),
401
+ r.value.node.inputs.length === 0 ? (i(), l("span", Ne, "None")) : z("", !0),
402
+ (i(!0), l(q, null, S(r.value.node.inputs, (s) => (i(), l("span", {
403
+ key: s.key,
396
404
  class: "ob-flow-viewer-node__port"
397
405
  }, [
398
- k("span", null, _(h.name), 1),
399
- h.description ? (n(), s("small", Se, _(h.description), 1)) : x("", !0)
406
+ m("span", null, H(s.name), 1),
407
+ s.description ? (i(), l("small", Fe, H(s.description), 1)) : z("", !0)
400
408
  ]))), 128))
401
409
  ]),
402
- k("div", Ne, [
403
- r[1] || (r[1] = k("span", { class: "ob-flow-viewer-node__port-heading" }, "Outputs", -1)),
404
- d.value.node.outputs.length === 0 ? (n(), s("span", Fe, "None")) : x("", !0),
405
- (n(!0), s(C, null, B(d.value.node.outputs, (h) => (n(), s("span", {
406
- key: h.key,
410
+ m("div", De, [
411
+ h[1] || (h[1] = m("span", { class: "ob-flow-viewer-node__port-heading" }, "Outputs", -1)),
412
+ r.value.node.outputs.length === 0 ? (i(), l("span", Oe, "None")) : z("", !0),
413
+ (i(!0), l(q, null, S(r.value.node.outputs, (s) => (i(), l("span", {
414
+ key: s.key,
407
415
  class: "ob-flow-viewer-node__port"
408
416
  }, [
409
- k("span", null, _(h.name), 1),
410
- h.description ? (n(), s("small", De, _(h.description), 1)) : x("", !0)
417
+ m("span", null, H(s.name), 1),
418
+ s.description ? (i(), l("small", Ee, H(s.description), 1)) : z("", !0)
411
419
  ]))), 128))
412
420
  ])
413
- ])) : x("", !0)
421
+ ])) : z("", !0)
414
422
  ])
415
- ], 44, Ve)) : x("", !0)
423
+ ], 44, Ce)) : z("", !0)
416
424
  ]))
417
- ], 8, He);
425
+ ], 8, Ae);
418
426
  };
419
427
  }
420
428
  });
@@ -424,9 +432,9 @@ const Q = Symbol("flow-viewer-details"), ue = ["aria-label"], me = { class: "ob-
424
432
  * This source code is licensed under the ISC license.
425
433
  * See the LICENSE file in the root directory of this source tree.
426
434
  */
427
- const Ee = (t) => {
428
- for (const i in t)
429
- if (i.startsWith("aria-") || i === "role" || i === "title")
435
+ const Re = (t) => {
436
+ for (const n in t)
437
+ if (n.startsWith("aria-") || n === "role" || n === "title")
430
438
  return !0;
431
439
  return !1;
432
440
  };
@@ -443,7 +451,7 @@ const J = (t) => t === "";
443
451
  * This source code is licensed under the ISC license.
444
452
  * See the LICENSE file in the root directory of this source tree.
445
453
  */
446
- const Ze = (...t) => t.filter((i, u, f) => !!i && i.trim() !== "" && f.indexOf(i) === u).join(" ").trim();
454
+ const Xe = (...t) => t.filter((n, v, x) => !!n && n.trim() !== "" && x.indexOf(n) === v).join(" ").trim();
447
455
  /**
448
456
  * @license lucide-vue-next v0.577.0 - ISC
449
457
  *
@@ -457,9 +465,9 @@ const K = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
457
465
  * This source code is licensed under the ISC license.
458
466
  * See the LICENSE file in the root directory of this source tree.
459
467
  */
460
- const Re = (t) => t.replace(
468
+ const Ue = (t) => t.replace(
461
469
  /^([A-Z])|[\s-_]+(\w)/g,
462
- (i, u, f) => f ? f.toUpperCase() : u.toLowerCase()
470
+ (n, v, x) => x ? x.toUpperCase() : v.toLowerCase()
463
471
  );
464
472
  /**
465
473
  * @license lucide-vue-next v0.577.0 - ISC
@@ -467,9 +475,9 @@ const Re = (t) => t.replace(
467
475
  * This source code is licensed under the ISC license.
468
476
  * See the LICENSE file in the root directory of this source tree.
469
477
  */
470
- const Xe = (t) => {
471
- const i = Re(t);
472
- return i.charAt(0).toUpperCase() + i.slice(1);
478
+ const Ge = (t) => {
479
+ const n = Ue(t);
480
+ return n.charAt(0).toUpperCase() + n.slice(1);
473
481
  };
474
482
  /**
475
483
  * @license lucide-vue-next v0.577.0 - ISC
@@ -494,33 +502,33 @@ var j = {
494
502
  * This source code is licensed under the ISC license.
495
503
  * See the LICENSE file in the root directory of this source tree.
496
504
  */
497
- const Ue = ({
505
+ const Ye = ({
498
506
  name: t,
499
- iconNode: i,
500
- absoluteStrokeWidth: u,
501
- "absolute-stroke-width": f,
502
- strokeWidth: d,
503
- "stroke-width": l,
504
- size: p = j.width,
505
- color: M = j.stroke,
506
- ...a
507
+ iconNode: n,
508
+ absoluteStrokeWidth: v,
509
+ "absolute-stroke-width": x,
510
+ strokeWidth: r,
511
+ "stroke-width": y,
512
+ size: k = j.width,
513
+ color: b = j.stroke,
514
+ ...o
507
515
  }, { slots: c }) => U(
508
516
  "svg",
509
517
  {
510
518
  ...j,
511
- ...a,
512
- width: p,
513
- height: p,
514
- stroke: M,
515
- "stroke-width": J(u) || J(f) || u === !0 || f === !0 ? Number(d || l || j["stroke-width"]) * 24 / Number(p) : d || l || j["stroke-width"],
516
- class: Ze(
519
+ ...o,
520
+ width: k,
521
+ height: k,
522
+ stroke: b,
523
+ "stroke-width": J(v) || J(x) || v === !0 || x === !0 ? Number(r || y || j["stroke-width"]) * 24 / Number(k) : r || y || j["stroke-width"],
524
+ class: Xe(
517
525
  "lucide",
518
- a.class,
519
- ...t ? [`lucide-${K(Xe(t))}-icon`, `lucide-${K(t)}`] : ["lucide-icon"]
526
+ o.class,
527
+ ...t ? [`lucide-${K(Ge(t))}-icon`, `lucide-${K(t)}`] : ["lucide-icon"]
520
528
  ),
521
- ...!c.default && !Ee(a) && { "aria-hidden": "true" }
529
+ ...!c.default && !Re(o) && { "aria-hidden": "true" }
522
530
  },
523
- [...i.map((m) => U(...m)), ...c.default ? [c.default()] : []]
531
+ [...n.map((w) => U(...w)), ...c.default ? [c.default()] : []]
524
532
  );
525
533
  /**
526
534
  * @license lucide-vue-next v0.577.0 - ISC
@@ -528,15 +536,15 @@ const Ue = ({
528
536
  * This source code is licensed under the ISC license.
529
537
  * See the LICENSE file in the root directory of this source tree.
530
538
  */
531
- const e = (t, i) => (u, { slots: f, attrs: d }) => U(
532
- Ue,
539
+ const e = (t, n) => (v, { slots: x, attrs: r }) => U(
540
+ Ye,
533
541
  {
534
- ...d,
535
- ...u,
536
- iconNode: i,
542
+ ...r,
543
+ ...v,
544
+ iconNode: n,
537
545
  name: t
538
546
  },
539
- f
547
+ x
540
548
  );
541
549
  /**
542
550
  * @license lucide-vue-next v0.577.0 - ISC
@@ -544,7 +552,7 @@ const e = (t, i) => (u, { slots: f, attrs: d }) => U(
544
552
  * This source code is licensed under the ISC license.
545
553
  * See the LICENSE file in the root directory of this source tree.
546
554
  */
547
- const Ge = e("archive-restore", [
555
+ const We = e("archive-restore", [
548
556
  ["rect", { width: "20", height: "5", x: "2", y: "3", rx: "1", key: "1wp1u1" }],
549
557
  ["path", { d: "M4 8v11a2 2 0 0 0 2 2h2", key: "tvwodi" }],
550
558
  ["path", { d: "M20 8v11a2 2 0 0 1-2 2h-2", key: "1gkqxj" }],
@@ -557,7 +565,7 @@ const Ge = e("archive-restore", [
557
565
  * This source code is licensed under the ISC license.
558
566
  * See the LICENSE file in the root directory of this source tree.
559
567
  */
560
- const Ye = e("archive", [
568
+ const Je = e("archive", [
561
569
  ["rect", { width: "20", height: "5", x: "2", y: "3", rx: "1", key: "1wp1u1" }],
562
570
  ["path", { d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8", key: "1s80jp" }],
563
571
  ["path", { d: "M10 12h4", key: "a56b0p" }]
@@ -568,7 +576,7 @@ const Ye = e("archive", [
568
576
  * This source code is licensed under the ISC license.
569
577
  * See the LICENSE file in the root directory of this source tree.
570
578
  */
571
- const We = e("arrow-down-to-line", [
579
+ const Ke = e("arrow-down-to-line", [
572
580
  ["path", { d: "M12 17V3", key: "1cwfxf" }],
573
581
  ["path", { d: "m6 11 6 6 6-6", key: "12ii2o" }],
574
582
  ["path", { d: "M19 21H5", key: "150jfl" }]
@@ -579,7 +587,7 @@ const We = e("arrow-down-to-line", [
579
587
  * This source code is licensed under the ISC license.
580
588
  * See the LICENSE file in the root directory of this source tree.
581
589
  */
582
- const Je = e("badge-check", [
590
+ const Qe = e("badge-check", [
583
591
  [
584
592
  "path",
585
593
  {
@@ -595,7 +603,7 @@ const Je = e("badge-check", [
595
603
  * This source code is licensed under the ISC license.
596
604
  * See the LICENSE file in the root directory of this source tree.
597
605
  */
598
- const Ke = e("bot", [
606
+ const et = e("bot", [
599
607
  ["path", { d: "M12 8V4H8", key: "hb8ula" }],
600
608
  ["rect", { width: "16", height: "12", x: "4", y: "8", rx: "2", key: "enze0r" }],
601
609
  ["path", { d: "M2 14h2", key: "vft8re" }],
@@ -609,7 +617,7 @@ const Ke = e("bot", [
609
617
  * This source code is licensed under the ISC license.
610
618
  * See the LICENSE file in the root directory of this source tree.
611
619
  */
612
- const Qe = e("box", [
620
+ const tt = e("box", [
613
621
  [
614
622
  "path",
615
623
  {
@@ -626,7 +634,7 @@ const Qe = e("box", [
626
634
  * This source code is licensed under the ISC license.
627
635
  * See the LICENSE file in the root directory of this source tree.
628
636
  */
629
- const et = e("brain-circuit", [
637
+ const at = e("brain-circuit", [
630
638
  [
631
639
  "path",
632
640
  {
@@ -653,7 +661,7 @@ const et = e("brain-circuit", [
653
661
  * This source code is licensed under the ISC license.
654
662
  * See the LICENSE file in the root directory of this source tree.
655
663
  */
656
- const tt = e("brain", [
664
+ const ot = e("brain", [
657
665
  ["path", { d: "M12 18V5", key: "adv99a" }],
658
666
  ["path", { d: "M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4", key: "1e3is1" }],
659
667
  ["path", { d: "M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5", key: "1gqd8o" }],
@@ -669,7 +677,7 @@ const tt = e("brain", [
669
677
  * This source code is licensed under the ISC license.
670
678
  * See the LICENSE file in the root directory of this source tree.
671
679
  */
672
- const at = e("chart-column", [
680
+ const nt = e("chart-column", [
673
681
  ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
674
682
  ["path", { d: "M18 17V9", key: "2bz60n" }],
675
683
  ["path", { d: "M13 17V5", key: "1frdt8" }],
@@ -681,7 +689,7 @@ const at = e("chart-column", [
681
689
  * This source code is licensed under the ISC license.
682
690
  * See the LICENSE file in the root directory of this source tree.
683
691
  */
684
- const ot = e("clipboard-check", [
692
+ const it = e("clipboard-check", [
685
693
  ["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
686
694
  [
687
695
  "path",
@@ -698,7 +706,7 @@ const ot = e("clipboard-check", [
698
706
  * This source code is licensed under the ISC license.
699
707
  * See the LICENSE file in the root directory of this source tree.
700
708
  */
701
- const nt = e("clock-3", [
709
+ const st = e("clock-3", [
702
710
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
703
711
  ["path", { d: "M12 6v6h4", key: "135r8i" }]
704
712
  ]);
@@ -708,7 +716,7 @@ const nt = e("clock-3", [
708
716
  * This source code is licensed under the ISC license.
709
717
  * See the LICENSE file in the root directory of this source tree.
710
718
  */
711
- const it = e("cloud-download", [
719
+ const ct = e("cloud-download", [
712
720
  ["path", { d: "M12 13v8l-4-4", key: "1f5nwf" }],
713
721
  ["path", { d: "m12 21 4-4", key: "1lfcce" }],
714
722
  ["path", { d: "M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284", key: "ui1hmy" }]
@@ -719,7 +727,7 @@ const it = e("cloud-download", [
719
727
  * This source code is licensed under the ISC license.
720
728
  * See the LICENSE file in the root directory of this source tree.
721
729
  */
722
- const ct = e("combine", [
730
+ const dt = e("combine", [
723
731
  ["path", { d: "M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1", key: "1l7d7l" }],
724
732
  ["path", { d: "M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1", key: "9955pe" }],
725
733
  ["path", { d: "m7 15 3 3", key: "4hkfgk" }],
@@ -733,7 +741,7 @@ const ct = e("combine", [
733
741
  * This source code is licensed under the ISC license.
734
742
  * See the LICENSE file in the root directory of this source tree.
735
743
  */
736
- const st = e("copy", [
744
+ const lt = e("copy", [
737
745
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
738
746
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
739
747
  ]);
@@ -743,7 +751,7 @@ const st = e("copy", [
743
751
  * This source code is licensed under the ISC license.
744
752
  * See the LICENSE file in the root directory of this source tree.
745
753
  */
746
- const dt = e("cpu", [
754
+ const rt = e("cpu", [
747
755
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
748
756
  ["path", { d: "M12 2v2", key: "tus03m" }],
749
757
  ["path", { d: "M17 20v2", key: "1rnc9c" }],
@@ -765,7 +773,7 @@ const dt = e("cpu", [
765
773
  * This source code is licensed under the ISC license.
766
774
  * See the LICENSE file in the root directory of this source tree.
767
775
  */
768
- const lt = e("crop", [
776
+ const ht = e("crop", [
769
777
  ["path", { d: "M6 2v14a2 2 0 0 0 2 2h14", key: "ron5a4" }],
770
778
  ["path", { d: "M18 22V8a2 2 0 0 0-2-2H2", key: "7s9ehn" }]
771
779
  ]);
@@ -775,7 +783,7 @@ const lt = e("crop", [
775
783
  * This source code is licensed under the ISC license.
776
784
  * See the LICENSE file in the root directory of this source tree.
777
785
  */
778
- const rt = e("crosshair", [
786
+ const yt = e("crosshair", [
779
787
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
780
788
  ["line", { x1: "22", x2: "18", y1: "12", y2: "12", key: "l9bcsi" }],
781
789
  ["line", { x1: "6", x2: "2", y1: "12", y2: "12", key: "13hhkx" }],
@@ -788,7 +796,7 @@ const rt = e("crosshair", [
788
796
  * This source code is licensed under the ISC license.
789
797
  * See the LICENSE file in the root directory of this source tree.
790
798
  */
791
- const ht = e("database", [
799
+ const pt = e("database", [
792
800
  ["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
793
801
  ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
794
802
  ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
@@ -799,7 +807,7 @@ const ht = e("database", [
799
807
  * This source code is licensed under the ISC license.
800
808
  * See the LICENSE file in the root directory of this source tree.
801
809
  */
802
- const yt = e("download", [
810
+ const kt = e("download", [
803
811
  ["path", { d: "M12 15V3", key: "m9g1x1" }],
804
812
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
805
813
  ["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
@@ -810,7 +818,7 @@ const yt = e("download", [
810
818
  * This source code is licensed under the ISC license.
811
819
  * See the LICENSE file in the root directory of this source tree.
812
820
  */
813
- const pt = e("eye", [
821
+ const ut = e("eye", [
814
822
  [
815
823
  "path",
816
824
  {
@@ -826,7 +834,7 @@ const pt = e("eye", [
826
834
  * This source code is licensed under the ISC license.
827
835
  * See the LICENSE file in the root directory of this source tree.
828
836
  */
829
- const kt = e("file-down", [
837
+ const mt = e("file-down", [
830
838
  [
831
839
  "path",
832
840
  {
@@ -844,7 +852,7 @@ const kt = e("file-down", [
844
852
  * This source code is licensed under the ISC license.
845
853
  * See the LICENSE file in the root directory of this source tree.
846
854
  */
847
- const ut = e("files", [
855
+ const vt = e("files", [
848
856
  ["path", { d: "M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8", key: "14sh0y" }],
849
857
  [
850
858
  "path",
@@ -861,7 +869,7 @@ const ut = e("files", [
861
869
  * This source code is licensed under the ISC license.
862
870
  * See the LICENSE file in the root directory of this source tree.
863
871
  */
864
- const mt = e("film", [
872
+ const wt = e("film", [
865
873
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
866
874
  ["path", { d: "M7 3v18", key: "bbkbws" }],
867
875
  ["path", { d: "M3 7.5h4", key: "zfgn84" }],
@@ -877,7 +885,7 @@ const mt = e("film", [
877
885
  * This source code is licensed under the ISC license.
878
886
  * See the LICENSE file in the root directory of this source tree.
879
887
  */
880
- const vt = e("folder-plus", [
888
+ const gt = e("folder-plus", [
881
889
  ["path", { d: "M12 10v6", key: "1bos4e" }],
882
890
  ["path", { d: "M9 13h6", key: "1uhe8q" }],
883
891
  [
@@ -894,7 +902,7 @@ const vt = e("folder-plus", [
894
902
  * This source code is licensed under the ISC license.
895
903
  * See the LICENSE file in the root directory of this source tree.
896
904
  */
897
- const wt = e("folder-root", [
905
+ const ft = e("folder-root", [
898
906
  [
899
907
  "path",
900
908
  {
@@ -911,7 +919,7 @@ const wt = e("folder-root", [
911
919
  * This source code is licensed under the ISC license.
912
920
  * See the LICENSE file in the root directory of this source tree.
913
921
  */
914
- const gt = e("folder-sync", [
922
+ const Mt = e("folder-sync", [
915
923
  [
916
924
  "path",
917
925
  {
@@ -930,7 +938,7 @@ const gt = e("folder-sync", [
930
938
  * This source code is licensed under the ISC license.
931
939
  * See the LICENSE file in the root directory of this source tree.
932
940
  */
933
- const ft = e("funnel", [
941
+ const xt = e("funnel", [
934
942
  [
935
943
  "path",
936
944
  {
@@ -945,7 +953,7 @@ const ft = e("funnel", [
945
953
  * This source code is licensed under the ISC license.
946
954
  * See the LICENSE file in the root directory of this source tree.
947
955
  */
948
- const Mt = e("gallery-vertical-end", [
956
+ const bt = e("gallery-vertical-end", [
949
957
  ["path", { d: "M7 2h10", key: "nczekb" }],
950
958
  ["path", { d: "M5 6h14", key: "u2x4p" }],
951
959
  ["rect", { width: "18", height: "12", x: "3", y: "10", rx: "2", key: "l0tzu3" }]
@@ -956,7 +964,7 @@ const Mt = e("gallery-vertical-end", [
956
964
  * This source code is licensed under the ISC license.
957
965
  * See the LICENSE file in the root directory of this source tree.
958
966
  */
959
- const xt = e("gauge", [
967
+ const zt = e("gauge", [
960
968
  ["path", { d: "m12 14 4-4", key: "9kzdfg" }],
961
969
  ["path", { d: "M3.34 19a10 10 0 1 1 17.32 0", key: "19p75a" }]
962
970
  ]);
@@ -966,7 +974,7 @@ const xt = e("gauge", [
966
974
  * This source code is licensed under the ISC license.
967
975
  * See the LICENSE file in the root directory of this source tree.
968
976
  */
969
- const bt = e("git-branch", [
977
+ const _t = e("git-branch", [
970
978
  ["path", { d: "M15 6a9 9 0 0 0-9 9V3", key: "1cii5b" }],
971
979
  ["circle", { cx: "18", cy: "6", r: "3", key: "1h7g24" }],
972
980
  ["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }]
@@ -977,7 +985,7 @@ const bt = e("git-branch", [
977
985
  * This source code is licensed under the ISC license.
978
986
  * See the LICENSE file in the root directory of this source tree.
979
987
  */
980
- const zt = e("git-merge", [
988
+ const Ht = e("git-merge", [
981
989
  ["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }],
982
990
  ["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
983
991
  ["path", { d: "M6 21V9a9 9 0 0 0 9 9", key: "7kw0sc" }]
@@ -988,7 +996,7 @@ const zt = e("git-merge", [
988
996
  * This source code is licensed under the ISC license.
989
997
  * See the LICENSE file in the root directory of this source tree.
990
998
  */
991
- const _t = e("hard-drive-download", [
999
+ const Vt = e("hard-drive-download", [
992
1000
  ["path", { d: "M12 2v8", key: "1q4o3n" }],
993
1001
  ["path", { d: "m16 6-4 4-4-4", key: "6wukr" }],
994
1002
  ["rect", { width: "20", height: "8", x: "2", y: "14", rx: "2", key: "w68u3i" }],
@@ -1001,7 +1009,7 @@ const _t = e("hard-drive-download", [
1001
1009
  * This source code is licensed under the ISC license.
1002
1010
  * See the LICENSE file in the root directory of this source tree.
1003
1011
  */
1004
- const Ht = e("hard-drive-upload", [
1012
+ const At = e("hard-drive-upload", [
1005
1013
  ["path", { d: "m16 6-4-4-4 4", key: "13yo43" }],
1006
1014
  ["path", { d: "M12 2v8", key: "1q4o3n" }],
1007
1015
  ["rect", { width: "20", height: "8", x: "2", y: "14", rx: "2", key: "w68u3i" }],
@@ -1014,7 +1022,7 @@ const Ht = e("hard-drive-upload", [
1014
1022
  * This source code is licensed under the ISC license.
1015
1023
  * See the LICENSE file in the root directory of this source tree.
1016
1024
  */
1017
- const Vt = e("history", [
1025
+ const Ct = e("history", [
1018
1026
  ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
1019
1027
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }],
1020
1028
  ["path", { d: "M12 7v5l4 2", key: "1fdv2h" }]
@@ -1025,7 +1033,7 @@ const Vt = e("history", [
1025
1033
  * This source code is licensed under the ISC license.
1026
1034
  * See the LICENSE file in the root directory of this source tree.
1027
1035
  */
1028
- const At = e("image-up", [
1036
+ const qt = e("image-up", [
1029
1037
  [
1030
1038
  "path",
1031
1039
  {
@@ -1043,7 +1051,7 @@ const At = e("image-up", [
1043
1051
  * This source code is licensed under the ISC license.
1044
1052
  * See the LICENSE file in the root directory of this source tree.
1045
1053
  */
1046
- const Ct = e("image-plus", [
1054
+ const $t = e("image-plus", [
1047
1055
  ["path", { d: "M16 5h6", key: "1vod17" }],
1048
1056
  ["path", { d: "M19 2v6", key: "4bpg5p" }],
1049
1057
  ["path", { d: "M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5", key: "1ue2ih" }],
@@ -1056,7 +1064,7 @@ const Ct = e("image-plus", [
1056
1064
  * This source code is licensed under the ISC license.
1057
1065
  * See the LICENSE file in the root directory of this source tree.
1058
1066
  */
1059
- const qt = e("image", [
1067
+ const Lt = e("image", [
1060
1068
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
1061
1069
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
1062
1070
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
@@ -1067,7 +1075,7 @@ const qt = e("image", [
1067
1075
  * This source code is licensed under the ISC license.
1068
1076
  * See the LICENSE file in the root directory of this source tree.
1069
1077
  */
1070
- const $t = e("images", [
1078
+ const Pt = e("images", [
1071
1079
  ["path", { d: "m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16", key: "9kzy35" }],
1072
1080
  ["path", { d: "M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2", key: "1t0f0t" }],
1073
1081
  ["circle", { cx: "13", cy: "7", r: "1", fill: "currentColor", key: "1obus6" }],
@@ -1079,7 +1087,7 @@ const $t = e("images", [
1079
1087
  * This source code is licensed under the ISC license.
1080
1088
  * See the LICENSE file in the root directory of this source tree.
1081
1089
  */
1082
- const Lt = e("layers", [
1090
+ const Tt = e("layers", [
1083
1091
  [
1084
1092
  "path",
1085
1093
  {
@@ -1108,7 +1116,7 @@ const Lt = e("layers", [
1108
1116
  * This source code is licensed under the ISC license.
1109
1117
  * See the LICENSE file in the root directory of this source tree.
1110
1118
  */
1111
- const Pt = e("list-checks", [
1119
+ const It = e("list-checks", [
1112
1120
  ["path", { d: "M13 5h8", key: "a7qcls" }],
1113
1121
  ["path", { d: "M13 12h8", key: "h98zly" }],
1114
1122
  ["path", { d: "M13 19h8", key: "c3s6r1" }],
@@ -1121,7 +1129,7 @@ const Pt = e("list-checks", [
1121
1129
  * This source code is licensed under the ISC license.
1122
1130
  * See the LICENSE file in the root directory of this source tree.
1123
1131
  */
1124
- const It = e("loader-circle", [
1132
+ const jt = e("loader-circle", [
1125
1133
  ["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
1126
1134
  ]);
1127
1135
  /**
@@ -1130,7 +1138,7 @@ const It = e("loader-circle", [
1130
1138
  * This source code is licensed under the ISC license.
1131
1139
  * See the LICENSE file in the root directory of this source tree.
1132
1140
  */
1133
- const Tt = e("mail", [
1141
+ const St = e("mail", [
1134
1142
  ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
1135
1143
  ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
1136
1144
  ]);
@@ -1140,7 +1148,7 @@ const Tt = e("mail", [
1140
1148
  * This source code is licensed under the ISC license.
1141
1149
  * See the LICENSE file in the root directory of this source tree.
1142
1150
  */
1143
- const jt = e("moon", [
1151
+ const Bt = e("moon", [
1144
1152
  [
1145
1153
  "path",
1146
1154
  {
@@ -1155,7 +1163,7 @@ const jt = e("moon", [
1155
1163
  * This source code is licensed under the ISC license.
1156
1164
  * See the LICENSE file in the root directory of this source tree.
1157
1165
  */
1158
- const Bt = e("move-right", [
1166
+ const Nt = e("move-right", [
1159
1167
  ["path", { d: "M18 8L22 12L18 16", key: "1r0oui" }],
1160
1168
  ["path", { d: "M2 12H22", key: "1m8cig" }]
1161
1169
  ]);
@@ -1165,7 +1173,7 @@ const Bt = e("move-right", [
1165
1173
  * This source code is licensed under the ISC license.
1166
1174
  * See the LICENSE file in the root directory of this source tree.
1167
1175
  */
1168
- const St = e("octagon-x", [
1176
+ const Ft = e("octagon-x", [
1169
1177
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
1170
1178
  [
1171
1179
  "path",
@@ -1182,7 +1190,7 @@ const St = e("octagon-x", [
1182
1190
  * This source code is licensed under the ISC license.
1183
1191
  * See the LICENSE file in the root directory of this source tree.
1184
1192
  */
1185
- const Nt = e("package-minus", [
1193
+ const Dt = e("package-minus", [
1186
1194
  ["path", { d: "M12 22V12", key: "d0xqtd" }],
1187
1195
  ["path", { d: "M16 17h6", key: "1ook5g" }],
1188
1196
  [
@@ -1201,7 +1209,7 @@ const Nt = e("package-minus", [
1201
1209
  * This source code is licensed under the ISC license.
1202
1210
  * See the LICENSE file in the root directory of this source tree.
1203
1211
  */
1204
- const Ft = e("package-open", [
1212
+ const Ot = e("package-open", [
1205
1213
  ["path", { d: "M12 22v-9", key: "x3hkom" }],
1206
1214
  [
1207
1215
  "path",
@@ -1231,7 +1239,7 @@ const Ft = e("package-open", [
1231
1239
  * This source code is licensed under the ISC license.
1232
1240
  * See the LICENSE file in the root directory of this source tree.
1233
1241
  */
1234
- const Dt = e("package-plus", [
1242
+ const Et = e("package-plus", [
1235
1243
  ["path", { d: "M12 22V12", key: "d0xqtd" }],
1236
1244
  ["path", { d: "M16 17h6", key: "1ook5g" }],
1237
1245
  ["path", { d: "M19 14v6", key: "1ckrd5" }],
@@ -1251,7 +1259,7 @@ const Dt = e("package-plus", [
1251
1259
  * This source code is licensed under the ISC license.
1252
1260
  * See the LICENSE file in the root directory of this source tree.
1253
1261
  */
1254
- const Ot = e("play", [
1262
+ const Zt = e("play", [
1255
1263
  [
1256
1264
  "path",
1257
1265
  {
@@ -1266,7 +1274,7 @@ const Ot = e("play", [
1266
1274
  * This source code is licensed under the ISC license.
1267
1275
  * See the LICENSE file in the root directory of this source tree.
1268
1276
  */
1269
- const Et = e("radar", [
1277
+ const Rt = e("radar", [
1270
1278
  ["path", { d: "M19.07 4.93A10 10 0 0 0 6.99 3.34", key: "z3du51" }],
1271
1279
  ["path", { d: "M4 6h.01", key: "oypzma" }],
1272
1280
  ["path", { d: "M2.29 9.62A10 10 0 1 0 21.31 8.35", key: "qzzz0" }],
@@ -1282,7 +1290,7 @@ const Et = e("radar", [
1282
1290
  * This source code is licensed under the ISC license.
1283
1291
  * See the LICENSE file in the root directory of this source tree.
1284
1292
  */
1285
- const Zt = e("route", [
1293
+ const Xt = e("route", [
1286
1294
  ["circle", { cx: "6", cy: "19", r: "3", key: "1kj8tv" }],
1287
1295
  ["path", { d: "M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15", key: "1d8sl" }],
1288
1296
  ["circle", { cx: "18", cy: "5", r: "3", key: "gq8acd" }]
@@ -1293,7 +1301,7 @@ const Zt = e("route", [
1293
1301
  * This source code is licensed under the ISC license.
1294
1302
  * See the LICENSE file in the root directory of this source tree.
1295
1303
  */
1296
- const Rt = e("ruler", [
1304
+ const Ut = e("ruler", [
1297
1305
  [
1298
1306
  "path",
1299
1307
  {
@@ -1312,7 +1320,7 @@ const Rt = e("ruler", [
1312
1320
  * This source code is licensed under the ISC license.
1313
1321
  * See the LICENSE file in the root directory of this source tree.
1314
1322
  */
1315
- const Xt = e("scale", [
1323
+ const Gt = e("scale", [
1316
1324
  ["path", { d: "M12 3v18", key: "108xh3" }],
1317
1325
  ["path", { d: "m19 8 3 8a5 5 0 0 1-6 0zV7", key: "zcdpyk" }],
1318
1326
  ["path", { d: "M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1", key: "1yorad" }],
@@ -1325,7 +1333,7 @@ const Xt = e("scale", [
1325
1333
  * This source code is licensed under the ISC license.
1326
1334
  * See the LICENSE file in the root directory of this source tree.
1327
1335
  */
1328
- const Ut = e("scan-eye", [
1336
+ const Yt = e("scan-eye", [
1329
1337
  ["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
1330
1338
  ["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
1331
1339
  ["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
@@ -1345,7 +1353,7 @@ const Ut = e("scan-eye", [
1345
1353
  * This source code is licensed under the ISC license.
1346
1354
  * See the LICENSE file in the root directory of this source tree.
1347
1355
  */
1348
- const Gt = e("scan-search", [
1356
+ const Wt = e("scan-search", [
1349
1357
  ["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
1350
1358
  ["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
1351
1359
  ["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
@@ -1359,7 +1367,7 @@ const Gt = e("scan-search", [
1359
1367
  * This source code is licensed under the ISC license.
1360
1368
  * See the LICENSE file in the root directory of this source tree.
1361
1369
  */
1362
- const Yt = e("scan-text", [
1370
+ const Jt = e("scan-text", [
1363
1371
  ["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
1364
1372
  ["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
1365
1373
  ["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
@@ -1374,7 +1382,7 @@ const Yt = e("scan-text", [
1374
1382
  * This source code is licensed under the ISC license.
1375
1383
  * See the LICENSE file in the root directory of this source tree.
1376
1384
  */
1377
- const Wt = e("scissors", [
1385
+ const Kt = e("scissors", [
1378
1386
  ["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
1379
1387
  ["path", { d: "M8.12 8.12 12 12", key: "1alkpv" }],
1380
1388
  ["path", { d: "M20 4 8.12 15.88", key: "xgtan2" }],
@@ -1387,7 +1395,7 @@ const Wt = e("scissors", [
1387
1395
  * This source code is licensed under the ISC license.
1388
1396
  * See the LICENSE file in the root directory of this source tree.
1389
1397
  */
1390
- const Jt = e("search", [
1398
+ const Qt = e("search", [
1391
1399
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
1392
1400
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
1393
1401
  ]);
@@ -1397,7 +1405,7 @@ const Jt = e("search", [
1397
1405
  * This source code is licensed under the ISC license.
1398
1406
  * See the LICENSE file in the root directory of this source tree.
1399
1407
  */
1400
- const Kt = e("settings", [
1408
+ const ea = e("settings", [
1401
1409
  [
1402
1410
  "path",
1403
1411
  {
@@ -1413,7 +1421,7 @@ const Kt = e("settings", [
1413
1421
  * This source code is licensed under the ISC license.
1414
1422
  * See the LICENSE file in the root directory of this source tree.
1415
1423
  */
1416
- const Qt = e("shield-check", [
1424
+ const ta = e("shield-check", [
1417
1425
  [
1418
1426
  "path",
1419
1427
  {
@@ -1429,7 +1437,7 @@ const Qt = e("shield-check", [
1429
1437
  * This source code is licensed under the ISC license.
1430
1438
  * See the LICENSE file in the root directory of this source tree.
1431
1439
  */
1432
- const e1 = e("shuffle", [
1440
+ const aa = e("shuffle", [
1433
1441
  ["path", { d: "m18 14 4 4-4 4", key: "10pe0f" }],
1434
1442
  ["path", { d: "m18 2 4 4-4 4", key: "pucp1d" }],
1435
1443
  ["path", { d: "M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22", key: "1ailkh" }],
@@ -1442,7 +1450,7 @@ const e1 = e("shuffle", [
1442
1450
  * This source code is licensed under the ISC license.
1443
1451
  * See the LICENSE file in the root directory of this source tree.
1444
1452
  */
1445
- const t1 = e("sparkles", [
1453
+ const oa = e("sparkles", [
1446
1454
  [
1447
1455
  "path",
1448
1456
  {
@@ -1460,7 +1468,7 @@ const t1 = e("sparkles", [
1460
1468
  * This source code is licensed under the ISC license.
1461
1469
  * See the LICENSE file in the root directory of this source tree.
1462
1470
  */
1463
- const a1 = e("split", [
1471
+ const na = e("split", [
1464
1472
  ["path", { d: "M16 3h5v5", key: "1806ms" }],
1465
1473
  ["path", { d: "M8 3H3v5", key: "15dfkv" }],
1466
1474
  ["path", { d: "M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3", key: "1qrqzj" }],
@@ -1472,7 +1480,7 @@ const a1 = e("split", [
1472
1480
  * This source code is licensed under the ISC license.
1473
1481
  * See the LICENSE file in the root directory of this source tree.
1474
1482
  */
1475
- const o1 = e("tag", [
1483
+ const ia = e("tag", [
1476
1484
  [
1477
1485
  "path",
1478
1486
  {
@@ -1488,7 +1496,7 @@ const o1 = e("tag", [
1488
1496
  * This source code is licensed under the ISC license.
1489
1497
  * See the LICENSE file in the root directory of this source tree.
1490
1498
  */
1491
- const n1 = e("tags", [
1499
+ const sa = e("tags", [
1492
1500
  [
1493
1501
  "path",
1494
1502
  {
@@ -1508,7 +1516,7 @@ const n1 = e("tags", [
1508
1516
  * This source code is licensed under the ISC license.
1509
1517
  * See the LICENSE file in the root directory of this source tree.
1510
1518
  */
1511
- const i1 = e("terminal", [
1519
+ const ca = e("terminal", [
1512
1520
  ["path", { d: "M12 19h8", key: "baeox8" }],
1513
1521
  ["path", { d: "m4 17 6-6-6-6", key: "1yngyt" }]
1514
1522
  ]);
@@ -1518,7 +1526,7 @@ const i1 = e("terminal", [
1518
1526
  * This source code is licensed under the ISC license.
1519
1527
  * See the LICENSE file in the root directory of this source tree.
1520
1528
  */
1521
- const c1 = e("text-cursor-input", [
1529
+ const da = e("text-cursor-input", [
1522
1530
  ["path", { d: "M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6", key: "1528k5" }],
1523
1531
  ["path", { d: "M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7", key: "13ksps" }],
1524
1532
  ["path", { d: "M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1", key: "1n9rhb" }],
@@ -1531,7 +1539,7 @@ const c1 = e("text-cursor-input", [
1531
1539
  * This source code is licensed under the ISC license.
1532
1540
  * See the LICENSE file in the root directory of this source tree.
1533
1541
  */
1534
- const s1 = e("trash-2", [
1542
+ const la = e("trash-2", [
1535
1543
  ["path", { d: "M10 11v6", key: "nco0om" }],
1536
1544
  ["path", { d: "M14 11v6", key: "outv1u" }],
1537
1545
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
@@ -1544,7 +1552,7 @@ const s1 = e("trash-2", [
1544
1552
  * This source code is licensed under the ISC license.
1545
1553
  * See the LICENSE file in the root directory of this source tree.
1546
1554
  */
1547
- const d1 = e("triangle-alert", [
1555
+ const ra = e("triangle-alert", [
1548
1556
  [
1549
1557
  "path",
1550
1558
  {
@@ -1561,7 +1569,7 @@ const d1 = e("triangle-alert", [
1561
1569
  * This source code is licensed under the ISC license.
1562
1570
  * See the LICENSE file in the root directory of this source tree.
1563
1571
  */
1564
- const l1 = e("trophy", [
1572
+ const ha = e("trophy", [
1565
1573
  ["path", { d: "M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978", key: "1n3hpd" }],
1566
1574
  ["path", { d: "M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978", key: "rfe1zi" }],
1567
1575
  ["path", { d: "M18 9h1.5a1 1 0 0 0 0-5H18", key: "7xy6bh" }],
@@ -1575,7 +1583,7 @@ const l1 = e("trophy", [
1575
1583
  * This source code is licensed under the ISC license.
1576
1584
  * See the LICENSE file in the root directory of this source tree.
1577
1585
  */
1578
- const r1 = e("video", [
1586
+ const ya = e("video", [
1579
1587
  [
1580
1588
  "path",
1581
1589
  {
@@ -1591,7 +1599,7 @@ const r1 = e("video", [
1591
1599
  * This source code is licensed under the ISC license.
1592
1600
  * See the LICENSE file in the root directory of this source tree.
1593
1601
  */
1594
- const h1 = e("wand-sparkles", [
1602
+ const pa = e("wand-sparkles", [
1595
1603
  [
1596
1604
  "path",
1597
1605
  {
@@ -1613,7 +1621,7 @@ const h1 = e("wand-sparkles", [
1613
1621
  * This source code is licensed under the ISC license.
1614
1622
  * See the LICENSE file in the root directory of this source tree.
1615
1623
  */
1616
- const y1 = e("webhook", [
1624
+ const ka = e("webhook", [
1617
1625
  [
1618
1626
  "path",
1619
1627
  {
@@ -1623,7 +1631,7 @@ const y1 = e("webhook", [
1623
1631
  ],
1624
1632
  ["path", { d: "m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06", key: "1go1hn" }],
1625
1633
  ["path", { d: "m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8", key: "qlwsc0" }]
1626
- ]), p1 = [
1634
+ ]), ua = [
1627
1635
  "archive",
1628
1636
  "archive-restore",
1629
1637
  "arrow-down-to-line",
@@ -1697,191 +1705,191 @@ const y1 = e("webhook", [
1697
1705
  "video",
1698
1706
  "wand-sparkles",
1699
1707
  "webhook"
1700
- ], q1 = Object.freeze(p1), k1 = Object.freeze({
1701
- archive: Ye,
1702
- "archive-restore": Ge,
1703
- "arrow-down-to-line": We,
1704
- "badge-check": Je,
1705
- bot: Ke,
1706
- box: Qe,
1707
- brain: tt,
1708
- "brain-circuit": et,
1709
- "chart-column": at,
1710
- "clipboard-check": ot,
1711
- "clock-3": nt,
1712
- "cloud-download": it,
1713
- combine: ct,
1714
- copy: st,
1715
- cpu: dt,
1716
- crop: lt,
1717
- crosshair: rt,
1718
- database: ht,
1719
- download: yt,
1720
- eye: pt,
1721
- "file-down": kt,
1722
- files: ut,
1723
- film: mt,
1724
- "folder-plus": vt,
1725
- "folder-root": wt,
1726
- "folder-sync": gt,
1727
- funnel: ft,
1728
- "gallery-vertical-end": Mt,
1729
- gauge: xt,
1730
- "git-branch": bt,
1731
- "git-merge": zt,
1732
- "hard-drive-download": _t,
1733
- "hard-drive-upload": Ht,
1734
- history: Vt,
1735
- image: qt,
1736
- "image-plus": Ct,
1737
- "image-up": At,
1738
- images: $t,
1739
- layers: Lt,
1740
- "list-checks": Pt,
1741
- "loader-circle": It,
1742
- mail: Tt,
1743
- moon: jt,
1744
- "move-right": Bt,
1745
- "octagon-x": St,
1746
- "package-minus": Nt,
1747
- "package-open": Ft,
1748
- "package-plus": Dt,
1749
- play: Ot,
1750
- radar: Et,
1751
- route: Zt,
1752
- ruler: Rt,
1753
- scale: Xt,
1754
- "scan-eye": Ut,
1755
- "scan-search": Gt,
1756
- "scan-text": Yt,
1757
- scissors: Wt,
1758
- search: Jt,
1759
- settings: Kt,
1760
- "shield-check": Qt,
1761
- shuffle: e1,
1762
- sparkles: t1,
1763
- split: a1,
1764
- tag: o1,
1765
- tags: n1,
1766
- terminal: i1,
1767
- "text-cursor-input": c1,
1768
- "trash-2": s1,
1769
- "triangle-alert": d1,
1770
- trophy: l1,
1771
- video: r1,
1772
- "wand-sparkles": h1,
1773
- webhook: y1
1774
- }), u1 = { class: "ob-flow-preview" }, m1 = ["viewBox"], v1 = ["d"], w1 = ["x", "y"], g1 = ["x", "y"], f1 = ["href", "x", "y"], M1 = ["x", "y"], x1 = ["x", "y"], N = 260, F = 100, D = 140, b1 = 140, R = 48, O = 26, $1 = /* @__PURE__ */ E({
1708
+ ], La = Object.freeze(ua), ma = Object.freeze({
1709
+ archive: Je,
1710
+ "archive-restore": We,
1711
+ "arrow-down-to-line": Ke,
1712
+ "badge-check": Qe,
1713
+ bot: et,
1714
+ box: tt,
1715
+ brain: ot,
1716
+ "brain-circuit": at,
1717
+ "chart-column": nt,
1718
+ "clipboard-check": it,
1719
+ "clock-3": st,
1720
+ "cloud-download": ct,
1721
+ combine: dt,
1722
+ copy: lt,
1723
+ cpu: rt,
1724
+ crop: ht,
1725
+ crosshair: yt,
1726
+ database: pt,
1727
+ download: kt,
1728
+ eye: ut,
1729
+ "file-down": mt,
1730
+ files: vt,
1731
+ film: wt,
1732
+ "folder-plus": gt,
1733
+ "folder-root": ft,
1734
+ "folder-sync": Mt,
1735
+ funnel: xt,
1736
+ "gallery-vertical-end": bt,
1737
+ gauge: zt,
1738
+ "git-branch": _t,
1739
+ "git-merge": Ht,
1740
+ "hard-drive-download": Vt,
1741
+ "hard-drive-upload": At,
1742
+ history: Ct,
1743
+ image: Lt,
1744
+ "image-plus": $t,
1745
+ "image-up": qt,
1746
+ images: Pt,
1747
+ layers: Tt,
1748
+ "list-checks": It,
1749
+ "loader-circle": jt,
1750
+ mail: St,
1751
+ moon: Bt,
1752
+ "move-right": Nt,
1753
+ "octagon-x": Ft,
1754
+ "package-minus": Dt,
1755
+ "package-open": Ot,
1756
+ "package-plus": Et,
1757
+ play: Zt,
1758
+ radar: Rt,
1759
+ route: Xt,
1760
+ ruler: Ut,
1761
+ scale: Gt,
1762
+ "scan-eye": Yt,
1763
+ "scan-search": Wt,
1764
+ "scan-text": Jt,
1765
+ scissors: Kt,
1766
+ search: Qt,
1767
+ settings: ea,
1768
+ "shield-check": ta,
1769
+ shuffle: aa,
1770
+ sparkles: oa,
1771
+ split: na,
1772
+ tag: ia,
1773
+ tags: sa,
1774
+ terminal: ca,
1775
+ "text-cursor-input": da,
1776
+ "trash-2": la,
1777
+ "triangle-alert": ra,
1778
+ trophy: ha,
1779
+ video: ya,
1780
+ "wand-sparkles": pa,
1781
+ webhook: ka
1782
+ }), va = { class: "ob-flow-preview" }, wa = ["viewBox"], ga = ["d"], fa = ["x", "y"], Ma = ["x", "y"], xa = ["href", "x", "y"], ba = ["x", "y"], za = ["x", "y"], N = 260, F = 100, D = 140, _a = 140, R = 48, O = 26, Pa = /* @__PURE__ */ E({
1775
1783
  __name: "FlowPreview",
1776
1784
  props: {
1777
1785
  preview: {},
1778
- icons: { default: () => k1 },
1786
+ icons: { default: () => ma },
1779
1787
  iconUrl: { type: Function, default: void 0 }
1780
1788
  },
1781
1789
  setup(t) {
1782
- const i = t, u = q(() => {
1783
- var a, c;
1784
- const p = ((a = i.preview) == null ? void 0 : a.n) ?? [], M = new Map(p.map((m) => [m.id, { x: m.x, y: m.y }]));
1785
- for (let m = 0; m < p.length; m += 1)
1786
- for (const H of ((c = i.preview) == null ? void 0 : c.e) ?? []) {
1787
- const $ = M.get(H.s), L = M.get(H.t);
1788
- $ && L && Math.abs($.x - L.x) < b1 && (L.x = $.x);
1790
+ const n = t, v = C(() => {
1791
+ var o, c;
1792
+ const k = ((o = n.preview) == null ? void 0 : o.n) ?? [], b = new Map(k.map((w) => [w.id, { x: w.x, y: w.y }]));
1793
+ for (let w = 0; w < k.length; w += 1)
1794
+ for (const _ of ((c = n.preview) == null ? void 0 : c.e) ?? []) {
1795
+ const $ = b.get(_.s), L = b.get(_.t);
1796
+ $ && L && Math.abs($.x - L.x) < _a && (L.x = $.x);
1789
1797
  }
1790
- return p.map((m) => ({
1791
- ...m,
1792
- ...M.get(m.id) ?? { x: m.x, y: m.y }
1798
+ return k.map((w) => ({
1799
+ ...w,
1800
+ ...b.get(w.id) ?? { x: w.x, y: w.y }
1793
1801
  }));
1794
- }), f = q(() => {
1795
- const p = u.value;
1796
- if (p.length === 0) return "0 0 1 1";
1797
- let M = 1 / 0, a = 1 / 0, c = -1 / 0, m = -1 / 0;
1798
- for (const H of p)
1799
- M = Math.min(M, H.x), a = Math.min(a, H.y), c = Math.max(c, H.x + N), m = Math.max(m, H.y + F);
1800
- return `${M - D} ${a - D} ${c - M + D * 2} ${m - a + D * 2}`;
1801
- }), d = q(
1802
- () => new Map(u.value.map((p) => [p.id, p]))
1802
+ }), x = C(() => {
1803
+ const k = v.value;
1804
+ if (k.length === 0) return "0 0 1 1";
1805
+ let b = 1 / 0, o = 1 / 0, c = -1 / 0, w = -1 / 0;
1806
+ for (const _ of k)
1807
+ b = Math.min(b, _.x), o = Math.min(o, _.y), c = Math.max(c, _.x + N), w = Math.max(w, _.y + F);
1808
+ return `${b - D} ${o - D} ${c - b + D * 2} ${w - o + D * 2}`;
1809
+ }), r = C(
1810
+ () => new Map(v.value.map((k) => [k.id, k]))
1803
1811
  );
1804
- function l(p, M) {
1805
- const a = d.value.get(p), c = d.value.get(M);
1806
- if (!a || !c) return "";
1807
- const m = a.x + N / 2, H = a.y + F / 2, $ = c.x + N / 2, L = c.y + F / 2;
1808
- return `M ${m} ${H} L ${$} ${L}`;
1812
+ function y(k, b) {
1813
+ const o = r.value.get(k), c = r.value.get(b);
1814
+ if (!o || !c) return "";
1815
+ const w = o.x + N / 2, _ = o.y + F / 2, $ = c.x + N / 2, L = c.y + F / 2;
1816
+ return `M ${w} ${_} L ${$} ${L}`;
1809
1817
  }
1810
- return (p, M) => (n(), s("div", u1, [
1811
- t.preview && t.preview.n.length > 0 ? (n(), s("svg", {
1818
+ return (k, b) => (i(), l("div", va, [
1819
+ t.preview && t.preview.n.length > 0 ? (i(), l("svg", {
1812
1820
  key: 0,
1813
1821
  class: "ob-flow-preview__svg",
1814
- viewBox: f.value,
1822
+ viewBox: x.value,
1815
1823
  preserveAspectRatio: "xMidYMid meet"
1816
1824
  }, [
1817
- (n(!0), s(C, null, B(t.preview.e, (a, c) => (n(), s("path", {
1825
+ (i(!0), l(q, null, S(t.preview.e, (o, c) => (i(), l("path", {
1818
1826
  key: c,
1819
- d: l(a.s, a.t),
1827
+ d: y(o.s, o.t),
1820
1828
  class: "ob-flow-preview__edge",
1821
1829
  "vector-effect": "non-scaling-stroke"
1822
- }, null, 8, v1))), 128)),
1823
- (n(!0), s(C, null, B(u.value, (a) => (n(), s("rect", {
1824
- key: a.id,
1825
- x: a.x,
1826
- y: a.y,
1830
+ }, null, 8, ga))), 128)),
1831
+ (i(!0), l(q, null, S(v.value, (o) => (i(), l("rect", {
1832
+ key: o.id,
1833
+ x: o.x,
1834
+ y: o.y,
1827
1835
  width: N,
1828
1836
  height: F,
1829
1837
  rx: "16",
1830
1838
  class: "ob-flow-preview__node",
1831
1839
  "vector-effect": "non-scaling-stroke"
1832
- }, null, 8, w1))), 128)),
1833
- (n(!0), s(C, null, B(u.value, (a) => (n(), s(C, {
1834
- key: `content-${a.id}`
1840
+ }, null, 8, fa))), 128)),
1841
+ (i(!0), l(q, null, S(v.value, (o) => (i(), l(q, {
1842
+ key: `content-${o.id}`
1835
1843
  }, [
1836
- k("rect", {
1837
- x: a.x + 18,
1838
- y: a.y + 18,
1844
+ m("rect", {
1845
+ x: o.x + 18,
1846
+ y: o.y + 18,
1839
1847
  width: "64",
1840
1848
  height: "64",
1841
1849
  rx: "16",
1842
1850
  class: "ob-flow-preview__icon-background",
1843
- style: S(a.c ? { fill: a.c } : void 0)
1844
- }, null, 12, g1),
1845
- a.i && t.icons[a.i] ? (n(), A(re(t.icons[a.i]), {
1851
+ style: B(o.c ? { fill: o.c } : void 0)
1852
+ }, null, 12, Ma),
1853
+ o.i && t.icons[o.i] ? (i(), A(he(t.icons[o.i]), {
1846
1854
  key: 0,
1847
- x: a.x + O,
1848
- y: a.y + O,
1855
+ x: o.x + O,
1856
+ y: o.y + O,
1849
1857
  size: R,
1850
1858
  color: "white",
1851
1859
  "stroke-width": 2.5,
1852
1860
  "aria-hidden": "true"
1853
- }, null, 8, ["x", "y"])) : a.i && t.iconUrl ? (n(), s("image", {
1861
+ }, null, 8, ["x", "y"])) : o.i && t.iconUrl ? (i(), l("image", {
1854
1862
  key: 1,
1855
- href: t.iconUrl(a.i),
1856
- x: a.x + O,
1857
- y: a.y + O,
1863
+ href: t.iconUrl(o.i),
1864
+ x: o.x + O,
1865
+ y: o.y + O,
1858
1866
  width: R,
1859
1867
  height: R
1860
- }, null, 8, f1)) : (n(), s("text", {
1868
+ }, null, 8, xa)) : (i(), l("text", {
1861
1869
  key: 2,
1862
- x: a.x + 50,
1863
- y: a.y + 68,
1870
+ x: o.x + 50,
1871
+ y: o.y + 68,
1864
1872
  fill: "white",
1865
1873
  "font-size": "42",
1866
1874
  "font-family": "sans-serif",
1867
1875
  "text-anchor": "middle"
1868
- }, " * ", 8, M1)),
1869
- k("rect", {
1870
- x: a.x + 100,
1871
- y: a.y + 45,
1876
+ }, " * ", 8, ba)),
1877
+ m("rect", {
1878
+ x: o.x + 100,
1879
+ y: o.y + 45,
1872
1880
  width: "128",
1873
1881
  height: "10",
1874
1882
  rx: "5",
1875
1883
  class: "ob-flow-preview__line"
1876
- }, null, 8, x1)
1884
+ }, null, 8, za)
1877
1885
  ], 64))), 128))
1878
- ], 8, m1)) : x("", !0)
1886
+ ], 8, wa)) : z("", !0)
1879
1887
  ]));
1880
1888
  }
1881
1889
  });
1882
1890
  export {
1883
- $1 as FlowPreview,
1884
- C1 as FlowViewer,
1885
- q1 as nodePreviewIconNames,
1886
- k1 as nodePreviewIcons
1891
+ Pa as FlowPreview,
1892
+ $a as FlowViewer,
1893
+ La as nodePreviewIconNames,
1894
+ ma as nodePreviewIcons
1887
1895
  };