@ghchinoy/litflow 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/litflow.js CHANGED
@@ -1,4 +1,4 @@
1
- import { LitElement as te, html as B, svg as Ye, css as Le } from "lit";
1
+ import { LitElement as te, html as B, css as Re, svg as Ye } from "lit";
2
2
  import { unsafeStatic as rp, html as Ue } from "lit/static-html.js";
3
3
  import { property as k, customElement as ne, query as Zl, state as Me } from "lit/decorators.js";
4
4
  import { signal as dr, SignalWatcher as Ze } from "@lit-labs/signals";
@@ -31,7 +31,7 @@ var pp = Object.defineProperty, vp = Object.getOwnPropertyDescriptor, pe = (e, i
31
31
  (o = e[a]) && (r = (n ? o(i, t, r) : o(r)) || r);
32
32
  return n && r && pp(i, t, r), r;
33
33
  };
34
- let de = class extends Ze(te) {
34
+ let ae = class extends Ze(te) {
35
35
  constructor() {
36
36
  super(...arguments), this.label = "", this.type = "default", this.data = {}, this.selected = !1, this.nodeId = "", this.positionX = 0, this.positionY = 0;
37
37
  }
@@ -40,11 +40,11 @@ let de = class extends Ze(te) {
40
40
  }
41
41
  render() {
42
42
  return B`
43
- <div class="content-wrapper" style="padding: 12px; display: flex; flex-direction: column; gap: 4px; pointer-events: none;">
44
- <div class="headline" style="font-size: var(--md-sys-typescale-title-small-size); font-weight: var(--md-sys-typescale-title-small-weight); color: var(--md-sys-color-on-surface); font-family: var(--md-sys-typescale-title-small-font);">
43
+ <div class="content-wrapper">
44
+ <div class="headline">
45
45
  <slot name="headline">${this.label}</slot>
46
46
  </div>
47
- <div class="supporting-text" style="font-size: var(--md-sys-typescale-body-medium-size); color: var(--md-sys-color-on-surface-variant); font-family: var(--md-sys-typescale-body-medium-font);">
47
+ <div class="supporting-text">
48
48
  <slot name="supporting-text"></slot>
49
49
  </div>
50
50
  <slot></slot>
@@ -54,36 +54,59 @@ let de = class extends Ze(te) {
54
54
  `;
55
55
  }
56
56
  };
57
+ ae.styles = Re`
58
+ :host {
59
+ display: block;
60
+ }
61
+ .content-wrapper {
62
+ padding: 12px;
63
+ display: flex;
64
+ flex-direction: column;
65
+ gap: 4px;
66
+ pointer-events: none;
67
+ }
68
+ .headline {
69
+ font-size: var(--md-sys-typescale-title-small-size);
70
+ font-weight: var(--md-sys-typescale-title-small-weight);
71
+ color: var(--md-sys-color-on-surface);
72
+ font-family: var(--md-sys-typescale-title-small-font);
73
+ }
74
+ .supporting-text {
75
+ font-size: var(--md-sys-typescale-body-medium-size);
76
+ color: var(--md-sys-color-on-surface-variant);
77
+ font-family: var(--md-sys-typescale-body-medium-font);
78
+ }
79
+ `;
57
80
  pe([
58
81
  k({ type: String })
59
- ], de.prototype, "label", 2);
82
+ ], ae.prototype, "label", 2);
60
83
  pe([
61
84
  k({ type: String, reflect: !0 })
62
- ], de.prototype, "type", 2);
85
+ ], ae.prototype, "type", 2);
63
86
  pe([
64
87
  k({ type: Object })
65
- ], de.prototype, "data", 2);
88
+ ], ae.prototype, "data", 2);
66
89
  pe([
67
90
  k({ type: Boolean, reflect: !0 })
68
- ], de.prototype, "selected", 2);
91
+ ], ae.prototype, "selected", 2);
69
92
  pe([
70
93
  k({ type: String, attribute: "data-id", reflect: !0 })
71
- ], de.prototype, "nodeId", 2);
94
+ ], ae.prototype, "nodeId", 2);
72
95
  pe([
73
96
  k({ type: Number, attribute: "position-x" })
74
- ], de.prototype, "positionX", 2);
97
+ ], ae.prototype, "positionX", 2);
75
98
  pe([
76
99
  k({ type: Number, attribute: "position-y" })
77
- ], de.prototype, "positionY", 2);
78
- de = pe([
100
+ ], ae.prototype, "positionY", 2);
101
+ ae = pe([
79
102
  ne("lit-node")
80
- ], de);
103
+ ], ae);
81
104
  var gp = Object.defineProperty, yp = Object.getOwnPropertyDescriptor, ve = (e, i, t, n) => {
82
105
  for (var r = n > 1 ? void 0 : n ? yp(i, t) : i, a = e.length - 1, o; a >= 0; a--)
83
106
  (o = e[a]) && (r = (n ? o(i, t, r) : o(r)) || r);
84
107
  return n && r && gp(i, t, r), r;
85
108
  };
86
- let ae = class extends Ze(te) {
109
+ let oe = class extends Ze(te) {
87
110
  constructor() {
88
111
  super(...arguments), this.sourceX = 0, this.sourceY = 0, this.targetX = 0, this.targetY = 0, this.sourcePosition = we.Right, this.targetPosition = we.Left, this.selected = !1;
89
112
  }
@@ -101,7 +124,7 @@ let ae = class extends Ze(te) {
101
124
  `;
102
125
  }
103
126
  };
104
- ae.styles = Le`
127
+ oe.styles = Re`
105
128
  :host {
106
129
  display: contents;
107
130
  }
@@ -118,28 +141,28 @@ ae.styles = Le`
118
141
  `;
119
142
  ve([
120
143
  k({ type: Number })
121
- ], ae.prototype, "sourceX", 2);
144
+ ], oe.prototype, "sourceX", 2);
122
145
  ve([
123
146
  k({ type: Number })
124
- ], ae.prototype, "sourceY", 2);
147
+ ], oe.prototype, "sourceY", 2);
125
148
  ve([
126
149
  k({ type: Number })
127
- ], ae.prototype, "targetX", 2);
150
+ ], oe.prototype, "targetX", 2);
128
151
  ve([
129
152
  k({ type: Number })
130
- ], ae.prototype, "targetY", 2);
153
+ ], oe.prototype, "targetY", 2);
131
154
  ve([
132
155
  k({ type: String })
133
- ], ae.prototype, "sourcePosition", 2);
156
+ ], oe.prototype, "sourcePosition", 2);
134
157
  ve([
135
158
  k({ type: String })
136
- ], ae.prototype, "targetPosition", 2);
159
+ ], oe.prototype, "targetPosition", 2);
137
160
  ve([
138
161
  k({ type: Boolean, reflect: !0 })
139
- ], ae.prototype, "selected", 2);
140
- ae = ve([
162
+ ], oe.prototype, "selected", 2);
163
+ oe = ve([
141
164
  ne("lit-edge")
142
- ], ae);
165
+ ], oe);
143
166
  var cr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
144
167
  function _p(e) {
145
168
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -325,7 +348,7 @@ function Cp() {
325
348
  return Jr = t, Jr;
326
349
  }
327
350
  var Qr, Hs;
328
- function Re() {
351
+ function Ee() {
329
352
  if (Hs) return Qr;
330
353
  Hs = 1;
331
354
  var e = De(), i = Op(), t = Cp(), n = "[object Null]", r = "[object Undefined]", a = e ? e.toStringTag : void 0;
@@ -348,7 +371,7 @@ var rt, Ks;
348
371
  function Xe() {
349
372
  if (Ks) return rt;
350
373
  Ks = 1;
351
- var e = Re(), i = Q(), t = "[object AsyncFunction]", n = "[object Function]", r = "[object GeneratorFunction]", a = "[object Proxy]";
374
+ var e = Ee(), i = Q(), t = "[object AsyncFunction]", n = "[object Function]", r = "[object GeneratorFunction]", a = "[object Proxy]";
352
375
  function o(s) {
353
376
  if (!i(s))
354
377
  return !1;
@@ -422,7 +445,7 @@ function kp() {
422
445
  return ot = e, ot;
423
446
  }
424
447
  var st, Qs;
425
- function Ee() {
448
+ function Ie() {
426
449
  if (Qs) return st;
427
450
  Qs = 1;
428
451
  var e = Tp(), i = kp();
@@ -436,14 +459,14 @@ var ut, eu;
436
459
  function is() {
437
460
  if (eu) return ut;
438
461
  eu = 1;
439
- var e = Ee(), i = ie(), t = e(i, "Map");
462
+ var e = Ie(), i = ie(), t = e(i, "Map");
440
463
  return ut = t, ut;
441
464
  }
442
465
  var dt, ru;
443
466
  function gr() {
444
467
  if (ru) return dt;
445
468
  ru = 1;
446
- var e = Ee(), i = e(Object, "create");
469
+ var e = Ie(), i = e(Object, "create");
447
470
  return dt = i, dt;
448
471
  }
449
472
  var ct, tu;
@@ -651,7 +674,7 @@ var St, bu;
651
674
  function Ql() {
652
675
  if (bu) return St;
653
676
  bu = 1;
654
- var e = Ee(), i = (function() {
677
+ var e = Ie(), i = (function() {
655
678
  try {
656
679
  var t = e(Object, "defineProperty");
657
680
  return t({}, "", {}), t;
@@ -714,7 +737,7 @@ function Kp() {
714
737
  return Pt = e, Pt;
715
738
  }
716
739
  var Tt, Ru;
717
- function se() {
740
+ function ue() {
718
741
  if (Ru) return Tt;
719
742
  Ru = 1;
720
743
  function e(i) {
@@ -726,7 +749,7 @@ var kt, Eu;
726
749
  function Yp() {
727
750
  if (Eu) return kt;
728
751
  Eu = 1;
729
- var e = Re(), i = se(), t = "[object Arguments]";
752
+ var e = Ee(), i = ue(), t = "[object Arguments]";
730
753
  function n(r) {
731
754
  return i(r) && e(r) == t;
732
755
  }
@@ -736,7 +759,7 @@ var Lt, Iu;
736
759
  function Qe() {
737
760
  if (Iu) return Lt;
738
761
  Iu = 1;
739
- var e = Yp(), i = se(), t = Object.prototype, n = t.hasOwnProperty, r = t.propertyIsEnumerable, a = e(/* @__PURE__ */ (function() {
762
+ var e = Yp(), i = ue(), t = Object.prototype, n = t.hasOwnProperty, r = t.propertyIsEnumerable, a = e(/* @__PURE__ */ (function() {
740
763
  return arguments;
741
764
  })()) ? e : function(o) {
742
765
  return i(o) && n.call(o, "callee") && !r.call(o, "callee");
@@ -792,7 +815,7 @@ var $t, Tu;
792
815
  function Zp() {
793
816
  if (Tu) return $t;
794
817
  Tu = 1;
795
- var e = Re(), i = ss(), t = se(), n = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", o = "[object Date]", s = "[object Error]", d = "[object Function]", u = "[object Map]", c = "[object Number]", f = "[object Object]", l = "[object RegExp]", h = "[object Set]", b = "[object String]", v = "[object WeakMap]", p = "[object ArrayBuffer]", y = "[object DataView]", g = "[object Float32Array]", _ = "[object Float64Array]", m = "[object Int8Array]", w = "[object Int16Array]", q = "[object Int32Array]", x = "[object Uint8Array]", O = "[object Uint8ClampedArray]", I = "[object Uint16Array]", S = "[object Uint32Array]", A = {};
818
+ var e = Ee(), i = ss(), t = ue(), n = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", o = "[object Date]", s = "[object Error]", d = "[object Function]", u = "[object Map]", c = "[object Number]", f = "[object Object]", l = "[object RegExp]", h = "[object Set]", b = "[object String]", v = "[object WeakMap]", p = "[object ArrayBuffer]", y = "[object DataView]", g = "[object Float32Array]", _ = "[object Float64Array]", m = "[object Int8Array]", w = "[object Int16Array]", q = "[object Int32Array]", x = "[object Uint8Array]", O = "[object Uint8ClampedArray]", I = "[object Uint16Array]", S = "[object Uint32Array]", A = {};
796
819
  A[g] = A[_] = A[m] = A[w] = A[q] = A[x] = A[O] = A[I] = A[S] = !0, A[n] = A[r] = A[p] = A[a] = A[y] = A[o] = A[s] = A[d] = A[u] = A[c] = A[f] = A[l] = A[h] = A[b] = A[v] = !1;
797
820
  function T(L) {
798
821
  return t(L) && i(L.length) && !!A[e(L)];
@@ -952,7 +975,7 @@ function ev() {
952
975
  return Xt = a, Xt;
953
976
  }
954
977
  var Jt, Vu;
955
- function Ie() {
978
+ function Se() {
956
979
  if (Vu) return Jt;
957
980
  Vu = 1;
958
981
  var e = eh(), i = ev(), t = ce();
@@ -965,7 +988,7 @@ var Qt, Ku;
965
988
  function rv() {
966
989
  if (Ku) return Qt;
967
990
  Ku = 1;
968
- var e = Je(), i = Ie();
991
+ var e = Je(), i = Se();
969
992
  function t(n, r) {
970
993
  return n && e(r, i(r), n);
971
994
  }
@@ -1105,7 +1128,7 @@ var ln, od;
1105
1128
  function iv() {
1106
1129
  if (od) return ln;
1107
1130
  od = 1;
1108
- var e = sh(), i = oh(), t = Ie();
1131
+ var e = sh(), i = oh(), t = Se();
1109
1132
  function n(r) {
1110
1133
  return e(r, t, i);
1111
1134
  }
@@ -1115,35 +1138,35 @@ var hn, sd;
1115
1138
  function av() {
1116
1139
  if (sd) return hn;
1117
1140
  sd = 1;
1118
- var e = Ee(), i = ie(), t = e(i, "DataView");
1141
+ var e = Ie(), i = ie(), t = e(i, "DataView");
1119
1142
  return hn = t, hn;
1120
1143
  }
1121
1144
  var pn, ud;
1122
1145
  function ov() {
1123
1146
  if (ud) return pn;
1124
1147
  ud = 1;
1125
- var e = Ee(), i = ie(), t = e(i, "Promise");
1148
+ var e = Ie(), i = ie(), t = e(i, "Promise");
1126
1149
  return pn = t, pn;
1127
1150
  }
1128
1151
  var vn, dd;
1129
1152
  function dh() {
1130
1153
  if (dd) return vn;
1131
1154
  dd = 1;
1132
- var e = Ee(), i = ie(), t = e(i, "Set");
1155
+ var e = Ie(), i = ie(), t = e(i, "Set");
1133
1156
  return vn = t, vn;
1134
1157
  }
1135
1158
  var gn, cd;
1136
1159
  function sv() {
1137
1160
  if (cd) return gn;
1138
1161
  cd = 1;
1139
- var e = Ee(), i = ie(), t = e(i, "WeakMap");
1162
+ var e = Ie(), i = ie(), t = e(i, "WeakMap");
1140
1163
  return gn = t, gn;
1141
1164
  }
1142
1165
  var yn, fd;
1143
1166
  function $e() {
1144
1167
  if (fd) return yn;
1145
1168
  fd = 1;
1146
- var e = av(), i = is(), t = ov(), n = dh(), r = sv(), a = Re(), o = Jl(), s = "[object Map]", d = "[object Object]", u = "[object Promise]", c = "[object Set]", f = "[object WeakMap]", l = "[object DataView]", h = o(e), b = o(i), v = o(t), p = o(n), y = o(r), g = a;
1169
+ var e = av(), i = is(), t = ov(), n = dh(), r = sv(), a = Ee(), o = Jl(), s = "[object Map]", d = "[object Object]", u = "[object Promise]", c = "[object Set]", f = "[object WeakMap]", l = "[object DataView]", h = o(e), b = o(i), v = o(t), p = o(n), y = o(r), g = a;
1147
1170
  return (e && g(new e(new ArrayBuffer(1))) != l || i && g(new i()) != s || t && g(t.resolve()) != u || n && g(new n()) != c || r && g(new r()) != f) && (g = function(_) {
1148
1171
  var m = a(_), w = m == d ? _.constructor : void 0, q = w ? o(w) : "";
1149
1172
  if (q)
@@ -1307,7 +1330,7 @@ var On, qd;
1307
1330
  function hv() {
1308
1331
  if (qd) return On;
1309
1332
  qd = 1;
1310
- var e = $e(), i = se(), t = "[object Map]";
1333
+ var e = $e(), i = ue(), t = "[object Map]";
1311
1334
  function n(r) {
1312
1335
  return i(r) && e(r) == t;
1313
1336
  }
@@ -1324,7 +1347,7 @@ var An, Rd;
1324
1347
  function vv() {
1325
1348
  if (Rd) return An;
1326
1349
  Rd = 1;
1327
- var e = $e(), i = se(), t = "[object Set]";
1350
+ var e = $e(), i = ue(), t = "[object Set]";
1328
1351
  function n(r) {
1329
1352
  return i(r) && e(r) == t;
1330
1353
  }
@@ -1341,11 +1364,11 @@ var Tn, Id;
1341
1364
  function ph() {
1342
1365
  if (Id) return Tn;
1343
1366
  Id = 1;
1344
- var e = _r(), i = os(), t = mr(), n = Jp(), r = rv(), a = th(), o = nh(), s = tv(), d = nv(), u = uh(), c = iv(), f = $e(), l = uv(), h = lv(), b = hh(), v = V(), p = je(), y = pv(), g = Q(), _ = gv(), m = ge(), w = Ie(), q = 1, x = 2, O = 4, I = "[object Arguments]", S = "[object Array]", A = "[object Boolean]", T = "[object Date]", L = "[object Error]", N = "[object Function]", $ = "[object GeneratorFunction]", K = "[object Map]", Oe = "[object Number]", _e = "[object Object]", Tr = "[object RegExp]", kr = "[object Set]", Lr = "[object String]", Ge = "[object Symbol]", ze = "[object WeakMap]", R = "[object ArrayBuffer]", E = "[object DataView]", C = "[object Float32Array]", P = "[object Float64Array]", M = "[object Int8Array]", z = "[object Int16Array]", H = "[object Int32Array]", W = "[object Uint8Array]", ar = "[object Uint8ClampedArray]", Z = "[object Uint16Array]", Y = "[object Uint32Array]", D = {};
1345
- D[I] = D[S] = D[R] = D[E] = D[A] = D[T] = D[C] = D[P] = D[M] = D[z] = D[H] = D[K] = D[Oe] = D[_e] = D[Tr] = D[kr] = D[Lr] = D[Ge] = D[W] = D[ar] = D[Z] = D[Y] = !0, D[L] = D[N] = D[ze] = !1;
1346
- function be(j, Ce, Ae, Jh, or, le) {
1347
- var X, sr = Ce & q, ur = Ce & x, Qh = Ce & O;
1348
- if (Ae && (X = or ? Ae(j, Jh, or, le) : Ae(j)), X !== void 0)
1367
+ var e = _r(), i = os(), t = mr(), n = Jp(), r = rv(), a = th(), o = nh(), s = tv(), d = nv(), u = uh(), c = iv(), f = $e(), l = uv(), h = lv(), b = hh(), v = V(), p = je(), y = pv(), g = Q(), _ = gv(), m = ge(), w = Se(), q = 1, x = 2, O = 4, I = "[object Arguments]", S = "[object Array]", A = "[object Boolean]", T = "[object Date]", L = "[object Error]", N = "[object Function]", $ = "[object GeneratorFunction]", K = "[object Map]", Ce = "[object Number]", _e = "[object Object]", Tr = "[object RegExp]", kr = "[object Set]", Lr = "[object String]", Ge = "[object Symbol]", ze = "[object WeakMap]", R = "[object ArrayBuffer]", E = "[object DataView]", C = "[object Float32Array]", P = "[object Float64Array]", M = "[object Int8Array]", z = "[object Int16Array]", H = "[object Int32Array]", W = "[object Uint8Array]", ar = "[object Uint8ClampedArray]", Z = "[object Uint16Array]", Y = "[object Uint32Array]", D = {};
1368
+ D[I] = D[S] = D[R] = D[E] = D[A] = D[T] = D[C] = D[P] = D[M] = D[z] = D[H] = D[K] = D[Ce] = D[_e] = D[Tr] = D[kr] = D[Lr] = D[Ge] = D[W] = D[ar] = D[Z] = D[Y] = !0, D[L] = D[N] = D[ze] = !1;
1369
+ function be(j, Ae, Pe, Jh, or, le) {
1370
+ var X, sr = Ae & q, ur = Ae & x, Qh = Ae & O;
1371
+ if (Pe && (X = or ? Pe(j, Jh, or, le) : Pe(j)), X !== void 0)
1349
1372
  return X;
1350
1373
  if (!g(j))
1351
1374
  return j;
@@ -1354,16 +1377,16 @@ function ph() {
1354
1377
  if (X = l(j), !sr)
1355
1378
  return o(j, X);
1356
1379
  } else {
1357
- var Pe = f(j), qs = Pe == N || Pe == $;
1380
+ var Te = f(j), qs = Te == N || Te == $;
1358
1381
  if (p(j))
1359
1382
  return a(j, sr);
1360
- if (Pe == _e || Pe == I || qs && !or) {
1383
+ if (Te == _e || Te == I || qs && !or) {
1361
1384
  if (X = ur || qs ? {} : b(j), !sr)
1362
1385
  return ur ? d(j, r(X, j)) : s(j, n(X, j));
1363
1386
  } else {
1364
- if (!D[Pe])
1387
+ if (!D[Te])
1365
1388
  return or ? j : {};
1366
- X = h(j, Pe, sr);
1389
+ X = h(j, Te, sr);
1367
1390
  }
1368
1391
  }
1369
1392
  le || (le = new e());
@@ -1371,13 +1394,13 @@ function ph() {
1371
1394
  if (xs)
1372
1395
  return xs;
1373
1396
  le.set(j, X), _(j) ? j.forEach(function(he) {
1374
- X.add(be(he, Ce, Ae, he, j, le));
1397
+ X.add(be(he, Ae, Pe, he, j, le));
1375
1398
  }) : y(j) && j.forEach(function(he, me) {
1376
- X.set(me, be(he, Ce, Ae, me, j, le));
1399
+ X.set(me, be(he, Ae, Pe, me, j, le));
1377
1400
  });
1378
1401
  var ep = Qh ? ur ? c : u : ur ? w : m, Rs = ws ? void 0 : ep(j);
1379
1402
  return i(Rs || j, function(he, me) {
1380
- Rs && (me = he, he = j[me]), t(X, me, be(he, Ce, Ae, me, j, le));
1403
+ Rs && (me = he, he = j[me]), t(X, me, be(he, Ae, Pe, me, j, le));
1381
1404
  }), X;
1382
1405
  }
1383
1406
  return Tn = be, Tn;
@@ -1462,7 +1485,7 @@ function Er() {
1462
1485
  return $n = t, $n;
1463
1486
  }
1464
1487
  var Fn, Ld;
1465
- function Se() {
1488
+ function Oe() {
1466
1489
  if (Ld) return Fn;
1467
1490
  Ld = 1;
1468
1491
  function e(i) {
@@ -1474,7 +1497,7 @@ var Bn, Md;
1474
1497
  function vh() {
1475
1498
  if (Md) return Bn;
1476
1499
  Md = 1;
1477
- var e = Se();
1500
+ var e = Oe();
1478
1501
  function i(t) {
1479
1502
  return typeof t == "function" ? t : e;
1480
1503
  }
@@ -1735,7 +1758,7 @@ var ti, Zd;
1735
1758
  function wh() {
1736
1759
  if (Zd) return ti;
1737
1760
  Zd = 1;
1738
- var e = Sv(), i = se();
1761
+ var e = Sv(), i = ue();
1739
1762
  function t(n, r, a, o, s) {
1740
1763
  return n === r ? !0 : n == null || r == null || !i(n) && !i(r) ? n !== n && r !== r : e(n, r, a, o, t, s);
1741
1764
  }
@@ -1825,7 +1848,7 @@ var ui, tc;
1825
1848
  function Fe() {
1826
1849
  if (tc) return ui;
1827
1850
  tc = 1;
1828
- var e = Re(), i = se(), t = "[object Symbol]";
1851
+ var e = Ee(), i = ue(), t = "[object Symbol]";
1829
1852
  function n(r) {
1830
1853
  return typeof r == "symbol" || i(r) && e(r) == t;
1831
1854
  }
@@ -2059,7 +2082,7 @@ var Si, wc;
2059
2082
  function fe() {
2060
2083
  if (wc) return Si;
2061
2084
  wc = 1;
2062
- var e = Av(), i = Dv(), t = Se(), n = V(), r = $v();
2085
+ var e = Av(), i = Dv(), t = Oe(), n = V(), r = $v();
2063
2086
  function a(o) {
2064
2087
  return typeof o == "function" ? o : o == null ? t : typeof o == "object" ? n(o) ? i(o[0], o[1]) : e(o) : r(o);
2065
2088
  }
@@ -2189,7 +2212,7 @@ var ji, Tc;
2189
2212
  function Uv() {
2190
2213
  if (Tc) return ji;
2191
2214
  Tc = 1;
2192
- var e = Re(), i = V(), t = se(), n = "[object String]";
2215
+ var e = Ee(), i = V(), t = ue(), n = "[object String]";
2193
2216
  function r(a) {
2194
2217
  return typeof a == "string" || !i(a) && t(a) && e(a) == n;
2195
2218
  }
@@ -2331,7 +2354,7 @@ var Wi, zc;
2331
2354
  function Qv() {
2332
2355
  if (zc) return Wi;
2333
2356
  zc = 1;
2334
- var e = hs(), i = Ql(), t = Se(), n = i ? function(r, a) {
2357
+ var e = hs(), i = Ql(), t = Oe(), n = i ? function(r, a) {
2335
2358
  return i(r, "toString", {
2336
2359
  configurable: !0,
2337
2360
  enumerable: !1,
@@ -2371,7 +2394,7 @@ var Ji, Vc;
2371
2394
  function Cr() {
2372
2395
  if (Vc) return Ji;
2373
2396
  Vc = 1;
2374
- var e = Se(), i = Lh(), t = Mh();
2397
+ var e = Oe(), i = Lh(), t = Mh();
2375
2398
  function n(r, a) {
2376
2399
  return t(i(r, a, e), r + "");
2377
2400
  }
@@ -2494,7 +2517,7 @@ var ua, tf;
2494
2517
  function Dh() {
2495
2518
  if (tf) return ua;
2496
2519
  tf = 1;
2497
- var e = ce(), i = se();
2520
+ var e = ce(), i = ue();
2498
2521
  function t(n) {
2499
2522
  return i(n) && e(n);
2500
2523
  }
@@ -3200,7 +3223,7 @@ var Ma, Af;
3200
3223
  function Eg() {
3201
3224
  if (Af) return Ma;
3202
3225
  Af = 1;
3203
- var e = Cr(), i = Ne(), t = Ar(), n = Ie(), r = Object.prototype, a = r.hasOwnProperty, o = e(function(s, d) {
3226
+ var e = Cr(), i = Ne(), t = Ar(), n = Se(), r = Object.prototype, a = r.hasOwnProperty, o = e(function(s, d) {
3204
3227
  s = Object(s);
3205
3228
  var u = -1, c = d.length, f = c > 2 ? d[2] : void 0;
3206
3229
  for (f && t(d[0], d[1], f) && (c = 1); ++u < c; )
@@ -3339,7 +3362,7 @@ var Ha, Ff;
3339
3362
  function kg() {
3340
3363
  if (Ff) return Ha;
3341
3364
  Ff = 1;
3342
- var e = ps(), i = vh(), t = Ie();
3365
+ var e = ps(), i = vh(), t = Se();
3343
3366
  function n(r, a) {
3344
3367
  return r == null ? r : e(r, i(a), t);
3345
3368
  }
@@ -3396,7 +3419,7 @@ var Za, Hf;
3396
3419
  function Dg() {
3397
3420
  if (Hf) return Za;
3398
3421
  Hf = 1;
3399
- var e = ms(), i = Ng(), t = Se();
3422
+ var e = ms(), i = Ng(), t = Oe();
3400
3423
  function n(r) {
3401
3424
  return r && r.length ? e(r, t, i) : void 0;
3402
3425
  }
@@ -3416,7 +3439,7 @@ var Ja, Kf;
3416
3439
  function jg() {
3417
3440
  if (Kf) return Ja;
3418
3441
  Kf = 1;
3419
- var e = Re(), i = Rr(), t = se(), n = "[object Object]", r = Function.prototype, a = Object.prototype, o = r.toString, s = a.hasOwnProperty, d = o.call(Object);
3442
+ var e = Ee(), i = Rr(), t = ue(), n = "[object Object]", r = Function.prototype, a = Object.prototype, o = r.toString, s = a.hasOwnProperty, d = o.call(Object);
3420
3443
  function u(c) {
3421
3444
  if (!t(c) || e(c) != n)
3422
3445
  return !1;
@@ -3442,7 +3465,7 @@ var eo, Wf;
3442
3465
  function $g() {
3443
3466
  if (Wf) return eo;
3444
3467
  Wf = 1;
3445
- var e = Je(), i = Ie();
3468
+ var e = Je(), i = Se();
3446
3469
  function t(n) {
3447
3470
  return e(n, i(n));
3448
3471
  }
@@ -3472,7 +3495,7 @@ var to, Xf;
3472
3495
  function Bg() {
3473
3496
  if (Xf) return to;
3474
3497
  Xf = 1;
3475
- var e = _r(), i = Vh(), t = ps(), n = Fg(), r = Q(), a = Ie(), o = Kh();
3498
+ var e = _r(), i = Vh(), t = ps(), n = Fg(), r = Q(), a = Se(), o = Kh();
3476
3499
  function s(d, u, c, f, l) {
3477
3500
  d !== u && t(u, function(h, b) {
3478
3501
  if (l || (l = new e()), r(h))
@@ -3524,7 +3547,7 @@ var oo, rl;
3524
3547
  function Ug() {
3525
3548
  if (rl) return oo;
3526
3549
  rl = 1;
3527
- var e = ms(), i = Yh(), t = Se();
3550
+ var e = ms(), i = Yh(), t = Oe();
3528
3551
  function n(r) {
3529
3552
  return r && r.length ? e(r, t, i) : void 0;
3530
3553
  }
@@ -3700,7 +3723,7 @@ var wo, vl;
3700
3723
  function iy() {
3701
3724
  if (vl) return wo;
3702
3725
  vl = 1;
3703
- var e = Ir(), i = Or(), t = fe(), n = Ph(), r = ry(), a = qr(), o = ny(), s = Se(), d = V();
3726
+ var e = Ir(), i = Or(), t = fe(), n = Ph(), r = ry(), a = qr(), o = ny(), s = Oe(), d = V();
3704
3727
  function u(c, f, l) {
3705
3728
  f.length ? f = e(f, function(v) {
3706
3729
  return d(v) ? function(p) {
@@ -4810,8 +4833,8 @@ function Oy() {
4810
4833
  var L = a(y, A), N = L ? y.node(L).order : I;
4811
4834
  (L || A === S) && (e.forEach(q.slice(O, T + 1), function($) {
4812
4835
  e.forEach(y.predecessors($), function(K) {
4813
- var Oe = y.node(K), _e = Oe.order;
4814
- (_e < x || N < _e) && !(Oe.dummy && y.node($).dummy) && o(_, K, $);
4836
+ var Ce = y.node(K), _e = Ce.order;
4837
+ (_e < x || N < _e) && !(Ce.dummy && y.node($).dummy) && o(_, K, $);
4815
4838
  });
4816
4839
  }), O = T + 1, x = N);
4817
4840
  }), q;
@@ -5099,7 +5122,7 @@ function Ay() {
5099
5122
  }), E(" assignNodeIntersects", function() {
5100
5123
  $(R);
5101
5124
  }), E(" reversePoints", function() {
5102
- Oe(R);
5125
+ Ce(R);
5103
5126
  }), E(" acyclic.undo", function() {
5104
5127
  i.undo(R);
5105
5128
  });
@@ -5211,7 +5234,7 @@ function Ay() {
5211
5234
  }
5212
5235
  });
5213
5236
  }
5214
- function Oe(R) {
5237
+ function Ce(R) {
5215
5238
  e.forEach(R.edges(), function(E) {
5216
5239
  var C = R.edge(E);
5217
5240
  C.reversed && C.points.reverse();
@@ -5327,7 +5350,7 @@ var My = Object.defineProperty, Ny = Object.getOwnPropertyDescriptor, G = (e, i,
5327
5350
  (o = e[a]) && (r = (n ? o(i, t, r) : o(r)) || r);
5328
5351
  return n && r && My(i, t, r), r;
5329
5352
  };
5330
- const ue = {
5353
+ const de = {
5331
5354
  fromAttribute: (e) => e !== "false" && e !== null,
5332
5355
  toAttribute: (e) => e ? "" : null
5333
5356
  };
@@ -6001,7 +6024,7 @@ let F = class extends Ze(te) {
6001
6024
  };
6002
6025
  F.styles = [
6003
6026
  ts,
6004
- Le`
6027
+ Re`
6005
6028
  :host {
6006
6029
  display: block;
6007
6030
  width: 100%;
@@ -6216,37 +6239,37 @@ G([
6216
6239
  k({ type: Boolean, attribute: "show-controls", reflect: !0 })
6217
6240
  ], F.prototype, "showControls", 2);
6218
6241
  G([
6219
- k({ type: Boolean, attribute: "show-minimap", reflect: !0, converter: ue })
6242
+ k({ type: Boolean, attribute: "show-minimap", reflect: !0, converter: de })
6220
6243
  ], F.prototype, "showMinimap", 2);
6221
6244
  G([
6222
- k({ type: Boolean, attribute: "show-grid", reflect: !0, converter: ue })
6245
+ k({ type: Boolean, attribute: "show-grid", reflect: !0, converter: de })
6223
6246
  ], F.prototype, "showGrid", 2);
6224
6247
  G([
6225
- k({ type: Boolean, attribute: "nodes-draggable", reflect: !0, converter: ue })
6248
+ k({ type: Boolean, attribute: "nodes-draggable", reflect: !0, converter: de })
6226
6249
  ], F.prototype, "nodesDraggable", 2);
6227
6250
  G([
6228
- k({ type: Boolean, attribute: "nodes-connectable", reflect: !0, converter: ue })
6251
+ k({ type: Boolean, attribute: "nodes-connectable", reflect: !0, converter: de })
6229
6252
  ], F.prototype, "nodesConnectable", 2);
6230
6253
  G([
6231
- k({ type: Boolean, attribute: "pan-on-drag", reflect: !0, converter: ue })
6254
+ k({ type: Boolean, attribute: "pan-on-drag", reflect: !0, converter: de })
6232
6255
  ], F.prototype, "panOnDrag", 2);
6233
6256
  G([
6234
- k({ type: Boolean, attribute: "zoom-on-scroll", reflect: !0, converter: ue })
6257
+ k({ type: Boolean, attribute: "zoom-on-scroll", reflect: !0, converter: de })
6235
6258
  ], F.prototype, "zoomOnScroll", 2);
6236
6259
  G([
6237
- k({ type: Boolean, attribute: "zoom-on-pinch", reflect: !0, converter: ue })
6260
+ k({ type: Boolean, attribute: "zoom-on-pinch", reflect: !0, converter: de })
6238
6261
  ], F.prototype, "zoomOnPinch", 2);
6239
6262
  G([
6240
- k({ type: Boolean, attribute: "zoom-on-double-click", reflect: !0, converter: ue })
6263
+ k({ type: Boolean, attribute: "zoom-on-double-click", reflect: !0, converter: de })
6241
6264
  ], F.prototype, "zoomOnDoubleClick", 2);
6242
6265
  G([
6243
- k({ type: Boolean, attribute: "prompt-on-drop", reflect: !0, converter: ue })
6266
+ k({ type: Boolean, attribute: "prompt-on-drop", reflect: !0, converter: de })
6244
6267
  ], F.prototype, "promptOnDrop", 2);
6245
6268
  G([
6246
6269
  k({ type: String, attribute: "selection-mode" })
6247
6270
  ], F.prototype, "selectionMode", 2);
6248
6271
  G([
6249
- k({ type: Boolean, attribute: "layout-enabled", reflect: !0, converter: ue })
6272
+ k({ type: Boolean, attribute: "layout-enabled", reflect: !0, converter: de })
6250
6273
  ], F.prototype, "layoutEnabled", 2);
6251
6274
  G([
6252
6275
  k({ type: Number, attribute: "layout-padding" })
@@ -6277,7 +6300,7 @@ var Dy = Object.defineProperty, jy = Object.getOwnPropertyDescriptor, tr = (e, i
6277
6300
  (o = e[a]) && (r = (n ? o(i, t, r) : o(r)) || r);
6278
6301
  return n && r && Dy(i, t, r), r;
6279
6302
  };
6280
- let Te = class extends te {
6303
+ let ke = class extends te {
6281
6304
  constructor() {
6282
6305
  super(), this.type = "source", this.position = we.Top, this.addEventListener("mousedown", (e) => this._onPointerDown(e)), this.addEventListener("touchstart", (e) => this._onPointerDown(e));
6283
6306
  }
@@ -6319,19 +6342,19 @@ let Te = class extends te {
6319
6342
  };
6320
6343
  tr([
6321
6344
  k({ type: String, reflect: !0 })
6322
- ], Te.prototype, "type", 2);
6345
+ ], ke.prototype, "type", 2);
6323
6346
  tr([
6324
6347
  k({ type: String, reflect: !0, attribute: "data-handlepos" })
6325
- ], Te.prototype, "position", 2);
6348
+ ], ke.prototype, "position", 2);
6326
6349
  tr([
6327
6350
  k({ type: String, reflect: !0, attribute: "data-handleid" })
6328
- ], Te.prototype, "handleId", 2);
6351
+ ], ke.prototype, "handleId", 2);
6329
6352
  tr([
6330
6353
  k({ type: String, reflect: !0, attribute: "data-nodeid" })
6331
- ], Te.prototype, "nodeId", 2);
6332
- Te = tr([
6354
+ ], ke.prototype, "nodeId", 2);
6355
+ ke = tr([
6333
6356
  ne("lit-handle")
6334
- ], Te);
6357
+ ], ke);
6335
6358
  var $y = Object.defineProperty, Fy = Object.getOwnPropertyDescriptor, Zh = (e, i, t, n) => {
6336
6359
  for (var r = n > 1 ? void 0 : n ? Fy(i, t) : i, a = e.length - 1, o; a >= 0; a--)
6337
6360
  (o = e[a]) && (r = (n ? o(i, t, r) : o(r)) || r);
@@ -6364,7 +6387,7 @@ let lr = class extends Ze(te) {
6364
6387
  `;
6365
6388
  }
6366
6389
  };
6367
- lr.styles = Le`
6390
+ lr.styles = Re`
6368
6391
  :host {
6369
6392
  display: block;
6370
6393
  position: absolute;
@@ -6418,7 +6441,7 @@ var By = Object.defineProperty, Gy = Object.getOwnPropertyDescriptor, ye = (e, i
6418
6441
  (o = e[a]) && (r = (n ? o(i, t, r) : o(r)) || r);
6419
6442
  return n && r && By(i, t, r), r;
6420
6443
  };
6421
- let oe = class extends Ze(te) {
6444
+ let se = class extends Ze(te) {
6422
6445
  constructor() {
6423
6446
  super(...arguments), this.nodeLookup = /* @__PURE__ */ new Map(), this.transform = [0, 0, 1], this.translateExtent = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], this.width = 0, this.height = 0;
6424
6447
  }
@@ -6486,7 +6509,7 @@ let oe = class extends Ze(te) {
6486
6509
  `;
6487
6510
  }
6488
6511
  };
6489
- oe.styles = Le`
6512
+ se.styles = Re`
6490
6513
  :host {
6491
6514
  display: block;
6492
6515
  position: absolute;
@@ -6517,28 +6540,28 @@ oe.styles = Le`
6517
6540
  `;
6518
6541
  ye([
6519
6542
  k({ type: Object })
6520
- ], oe.prototype, "panZoom", 2);
6543
+ ], se.prototype, "panZoom", 2);
6521
6544
  ye([
6522
6545
  k({ type: Object })
6523
- ], oe.prototype, "nodeLookup", 2);
6546
+ ], se.prototype, "nodeLookup", 2);
6524
6547
  ye([
6525
6548
  k({ type: Array })
6526
- ], oe.prototype, "transform", 2);
6549
+ ], se.prototype, "transform", 2);
6527
6550
  ye([
6528
6551
  k({ type: Array })
6529
- ], oe.prototype, "translateExtent", 2);
6552
+ ], se.prototype, "translateExtent", 2);
6530
6553
  ye([
6531
6554
  k({ type: Number })
6532
- ], oe.prototype, "width", 2);
6555
+ ], se.prototype, "width", 2);
6533
6556
  ye([
6534
6557
  k({ type: Number })
6535
- ], oe.prototype, "height", 2);
6558
+ ], se.prototype, "height", 2);
6536
6559
  ye([
6537
6560
  Me()
6538
- ], oe.prototype, "_minimapInstance", 2);
6539
- oe = ye([
6561
+ ], se.prototype, "_minimapInstance", 2);
6562
+ se = ye([
6540
6563
  ne("lit-minimap")
6541
- ], oe);
6564
+ ], se);
6542
6565
  var zy = Object.defineProperty, Uy = Object.getOwnPropertyDescriptor, Xh = (e, i, t, n) => {
6543
6566
  for (var r = n > 1 ? void 0 : n ? Uy(i, t) : i, a = e.length - 1, o; a >= 0; a--)
6544
6567
  (o = e[a]) && (r = (n ? o(i, t, r) : o(r)) || r);
@@ -6576,7 +6599,7 @@ let hr = class extends te {
6576
6599
  };
6577
6600
  hr.styles = [
6578
6601
  ts,
6579
- Le`
6602
+ Re`
6580
6603
  :host {
6581
6604
  display: block;
6582
6605
  width: 200px;
@@ -6730,7 +6753,7 @@ var Ky = Object.defineProperty, Yy = Object.getOwnPropertyDescriptor, nr = (e, i
6730
6753
  (o = e[a]) && (r = (n ? o(i, t, r) : o(r)) || r);
6731
6754
  return n && r && Ky(i, t, r), r;
6732
6755
  };
6733
- let ke = class extends te {
6756
+ let Le = class extends te {
6734
6757
  constructor() {
6735
6758
  super(...arguments), this.nodeId = "", this._data = {}, this.imageUrl = "", this.status = "idle";
6736
6759
  }
@@ -6783,19 +6806,19 @@ let ke = class extends te {
6783
6806
  };
6784
6807
  nr([
6785
6808
  k({ type: String, attribute: "data-id", reflect: !0 })
6786
- ], ke.prototype, "nodeId", 2);
6809
+ ], Le.prototype, "nodeId", 2);
6787
6810
  nr([
6788
6811
  k({ type: Object })
6789
- ], ke.prototype, "data", 1);
6812
+ ], Le.prototype, "data", 1);
6790
6813
  nr([
6791
6814
  k({ type: String })
6792
- ], ke.prototype, "imageUrl", 2);
6815
+ ], Le.prototype, "imageUrl", 2);
6793
6816
  nr([
6794
6817
  k({ type: String })
6795
- ], ke.prototype, "status", 2);
6796
- ke = nr([
6818
+ ], Le.prototype, "status", 2);
6819
+ Le = nr([
6797
6820
  ne("lit-gemini-image-node")
6798
- ], ke);
6821
+ ], Le);
6799
6822
  var Wy = Object.defineProperty, Zy = Object.getOwnPropertyDescriptor, ir = (e, i, t, n) => {
6800
6823
  for (var r = n > 1 ? void 0 : n ? Zy(i, t) : i, a = e.length - 1, o; a >= 0; a--)
6801
6824
  (o = e[a]) && (r = (n ? o(i, t, r) : o(r)) || r);
@@ -6815,7 +6838,7 @@ let qe = class extends te {
6815
6838
  };
6816
6839
  qe.styles = [
6817
6840
  ts,
6818
- Le`
6841
+ Re`
6819
6842
  :host {
6820
6843
  display: inline-flex;
6821
6844
  align-items: center;
@@ -7052,13 +7075,13 @@ xe = Be([
7052
7075
  export {
7053
7076
  qe as LitChiclet,
7054
7077
  lr as LitControls,
7055
- ae as LitEdge,
7078
+ oe as LitEdge,
7056
7079
  F as LitFlow,
7057
- ke as LitGeminiImageNode,
7080
+ Le as LitGeminiImageNode,
7058
7081
  We as LitGeminiPromptNode,
7059
- Te as LitHandle,
7060
- oe as LitMinimap,
7061
- de as LitNode,
7082
+ ke as LitHandle,
7083
+ se as LitMinimap,
7084
+ ae as LitNode,
7062
7085
  xe as LitSchemaNode,
7063
7086
  hr as LitSidebar,
7064
7087
  hp as createInitialState,