@oomol-lab/open-flow 0.1.0-beta.41 → 0.1.0-beta.42

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,4 +1,4 @@
1
- import { $t as e, An as t, At as n, Bn as r, Ct as i, Dt as a, Et as o, F as s, Fn as c, Ft as l, G as u, Gt as d, H as f, In as p, Jt as m, K as h, Kt as g, L as _, Ln as v, Mn as y, Mt as b, Nn as x, Nt as ee, Ot as S, P as te, Pn as C, Pt as ne, Qt as re, R as w, Rn as T, Rt as ie, St as E, Tn as D, Tt as ae, V as O, W as k, X as oe, Xt as se, Yt as ce, Zt as le, _ as ue, _n as de, _t as fe, a as pe, at as A, b as me, bt as he, c as ge, d as _e, dt as j, en as ve, f as ye, ft as be, g as xe, gn as M, gt as Se, h as Ce, ht as we, i as Te, it as N, jn as Ee, jt as De, kn as Oe, kt as ke, l as Ae, m as je, mt as Me, o as Ne, ot as Pe, p as Fe, pt as Ie, qt as Le, r as P, rn as F, s as Re, st as ze, t as Be, tt as Ve, u as He, v as Ue, vn as I, vt as We, wn as Ge, wt as Ke, xn as qe, xt as Je, y as Ye, yn as Xe, yt as Ze, z as Qe, zt as $e } from "./flowChanges-Rb1Nz-ph.js";
1
+ import { $t as e, An as t, At as n, Bn as r, Ct as i, Dt as a, Et as o, F as s, Fn as c, Ft as l, G as u, Gt as d, H as f, In as p, Jt as m, K as h, Kt as g, L as _, Ln as v, Mn as y, Mt as b, Nn as x, Nt as ee, Ot as S, P as te, Pn as C, Pt as ne, Qt as re, R as w, Rn as T, Rt as ie, St as E, Tn as D, Tt as ae, V as oe, W as O, X as se, Xt as ce, Yt as le, Zt as ue, _ as de, _n as fe, _t as pe, a as me, at as k, b as he, bt as ge, c as _e, d as ve, dt as A, en as ye, f as be, ft as j, g as xe, gn as M, gt as Se, h as Ce, ht as we, i as Te, it as N, jn as Ee, jt as De, kn as Oe, kt as ke, l as Ae, m as je, mt as Me, o as Ne, ot as Pe, p as Fe, pt as Ie, qt as Le, r as P, rn as F, s as Re, st as ze, t as Be, tt as Ve, u as He, v as Ue, vn as I, vt as We, wn as Ge, wt as Ke, xn as qe, xt as Je, y as Ye, yn as Xe, yt as Ze, z as Qe, zt as $e } from "./flowChanges-CYcfbZLP.js";
2
2
  import { a as L, i as R, l as z } from "./dist-Dz6Nglsd.js";
3
3
  import { a as B, i as et, r as tt, t as nt } from "./main-BDnNHhkU.js";
4
4
  import { D as rt, E as it, Fr as V, L as at, Lr as ot, Mn as st, N as ct, O as lt, P as ut, R as dt, S as ft, T as pt, a as mt, c as ht, d as gt, f as _t, i as vt, l as yt, m as bt, n as H, o as xt, q as U, r as St, s as Ct, t as wt, w as Tt, x as Et } from "./workbenchSelect-Bq6KHpKx.js";
@@ -10,8 +10,34 @@ import * as Pt from "effect/Cause";
10
10
  import * as X from "effect/Effect";
11
11
  import * as Ft from "effect/Exit";
12
12
  import * as It from "effect/Fiber";
13
+ //#region src/workbench/browser/runtime/actorResolver.ts
14
+ function Lt(e, t, n = fetch) {
15
+ if (e.resolveActor != null) return (t, n) => e.resolveActor(t, n);
16
+ let r = t === "https://console.oomol.com" ? "https://api.oomol.com" : t === "https://console.oomol.dev" ? "https://api.oomol.dev" : void 0;
17
+ if (r != null) return async (e, t) => {
18
+ let i = new URL("/v1/users/summaries", r);
19
+ i.searchParams.set("user_ids", e);
20
+ let a = await n(i, {
21
+ credentials: "include",
22
+ signal: t
23
+ });
24
+ if (!a.ok) throw Error(`Could not load OOMOL user summary (${a.status}).`);
25
+ let o = await a.json();
26
+ if (typeof o != "object" || !o || Array.isArray(o)) throw Error("Invalid OOMOL user summaries.");
27
+ if (!Object.hasOwn(o, e)) return null;
28
+ let s = o[e];
29
+ if (typeof s != "object" || !s || Array.isArray(s)) throw Error("Invalid OOMOL user summary.");
30
+ let { nickname: c, username: l, url: u } = s;
31
+ if (typeof c != "string" || typeof l != "string" || typeof u != "string") throw Error("Invalid OOMOL user summary.");
32
+ return {
33
+ name: c || l,
34
+ avatarUrl: u || void 0
35
+ };
36
+ };
37
+ }
38
+ //#endregion
13
39
  //#region src/workbench/browser/runtime/navigation.ts
14
- var Lt = class {
40
+ var Rt = class {
15
41
  #e;
16
42
  #t;
17
43
  #n;
@@ -76,7 +102,7 @@ var Lt = class {
76
102
  this.#s = !0, await this.#n.selectFlow(void 0), e == this.#a && (this.#u("design", !1), this.#s = !1);
77
103
  }
78
104
  async apply(e) {
79
- if (Rt(e, this.#t)) return;
105
+ if (zt(e, this.#t)) return;
80
106
  this.#t = e;
81
107
  let t = ++this.#a;
82
108
  this.#s = !0;
@@ -100,10 +126,10 @@ var Lt = class {
100
126
  source: a.runSource
101
127
  });
102
128
  }
103
- Rt(a, this.#t) || (this.#t = a, this.#e(a, { replace: t })), this.#i.set(a.view);
129
+ zt(a, this.#t) || (this.#t = a, this.#e(a, { replace: t })), this.#i.set(a.view);
104
130
  }
105
131
  };
106
- function Rt(e, t) {
132
+ function zt(e, t) {
107
133
  return e.flowId == t.flowId && e.view == t.view && e.runSource == t.runSource;
108
134
  }
109
135
  //#endregion
@@ -117,11 +143,11 @@ function Z({ className: e, ...t }) {
117
143
  }
118
144
  //#endregion
119
145
  //#region src/workbench/browser/runtime/shell/resourceBrowser.tsx
120
- var zt = Mt(() => import("./createResourceDialog-DmJk4LsF.js")), Bt = Ot.map((e) => ({
146
+ var Bt = Mt(() => import("./createResourceDialog-DmJk4LsF.js")), Vt = Ot.map((e) => ({
121
147
  label: At[e],
122
148
  value: e
123
- })), Vt = 44, Ht = -12, Ut = 8, Wt = "a, button, input, select, textarea, [data-slot=\"tooltip-trigger\"]";
124
- function Gt({ language: e, onLanguageChange: t }) {
149
+ })), Ht = 44, Ut = -12, Wt = 8, Gt = "a, button, input, select, textarea, [data-slot=\"tooltip-trigger\"]";
150
+ function Kt({ language: e, onLanguageChange: t }) {
125
151
  let n = et(), [r, i] = q(null);
126
152
  return t == null ? null : /* @__PURE__ */ Y("div", {
127
153
  className: "resource-language",
@@ -132,16 +158,16 @@ function Gt({ language: e, onLanguageChange: t }) {
132
158
  }), /* @__PURE__ */ J(wt, {
133
159
  ariaLabel: n("language.label"),
134
160
  onValueChange: (e) => t(e),
135
- options: Bt,
161
+ options: Vt,
136
162
  portalRoot: r,
137
163
  value: e
138
164
  })]
139
165
  });
140
166
  }
141
- function Kt(e) {
167
+ function qt(e) {
142
168
  return e.length <= 20 ? e : `${e.slice(0, 10)}…${e.slice(-6)}`;
143
169
  }
144
- function qt(e, t) {
170
+ function Jt(e, t) {
145
171
  let n = new Date(e), r = /* @__PURE__ */ new Date();
146
172
  return n.toLocaleString(t, {
147
173
  day: "numeric",
@@ -151,10 +177,10 @@ function qt(e, t) {
151
177
  year: n.getFullYear() == r.getFullYear() ? void 0 : "numeric"
152
178
  });
153
179
  }
154
- function Jt(e) {
155
- return e.target instanceof Element && e.target.closest(Wt) != null;
180
+ function Yt(e) {
181
+ return e.target instanceof Element && e.target.closest(Gt) != null;
156
182
  }
157
- function Yt({ badge: e, busy: t, flow: n, href: r, onSelect: i, store: a }) {
183
+ function Xt({ badge: e, busy: t, flow: n, href: r, onSelect: i, store: a }) {
158
184
  let [o, s] = q(null), c = K(null), u = K(null), d = K(null), f = K(null), p = tt(), m = et(), [h, g] = q("idle"), [_, v] = q(n.name), [y, x] = q(), S = n.live != null && n.live.revisionId != n.draftRevisionId, te = n.status == "retiring" ? "resource.retiring" : n.live == null ? "resource.notPublished" : S ? "resource.unpublishedChanges" : "resource.isPublished", C = n.status == "retiring" ? "danger" : n.live == null ? "neutral" : S ? "running" : "success";
159
185
  async function re(e) {
160
186
  x(e == "publish" ? "publish" : "enabled");
@@ -174,7 +200,7 @@ function Yt({ badge: e, busy: t, flow: n, href: r, onSelect: i, store: a }) {
174
200
  await a.workspace.deleteFlow(n.flowId) && g("idle");
175
201
  }
176
202
  function D(e) {
177
- Jt(e) || i(n);
203
+ Yt(e) || i(n);
178
204
  }
179
205
  return /* @__PURE__ */ Y("div", {
180
206
  className: "resource-item-row",
@@ -230,7 +256,7 @@ function Yt({ badge: e, busy: t, flow: n, href: r, onSelect: i, store: a }) {
230
256
  })
231
257
  }), /* @__PURE__ */ Y(l, {
232
258
  align: "start",
233
- alignOffset: Ht,
259
+ alignOffset: Ut,
234
260
  anchor: c,
235
261
  className: "resource-rename-popover",
236
262
  collisionBoundary: [],
@@ -238,7 +264,7 @@ function Yt({ badge: e, busy: t, flow: n, href: r, onSelect: i, store: a }) {
238
264
  initialFocus: d,
239
265
  positionMethod: "fixed",
240
266
  side: "top",
241
- sideOffset: ({ anchor: e, positioner: t }) => -(e.height + t.height) / 2 - Ut,
267
+ sideOffset: ({ anchor: e, positioner: t }) => -(e.height + t.height) / 2 - Wt,
242
268
  children: [/* @__PURE__ */ J(ie, {
243
269
  className: "sr-only",
244
270
  children: m("sidebar.renameFlow", { name: n.name })
@@ -300,14 +326,14 @@ function Yt({ badge: e, busy: t, flow: n, href: r, onSelect: i, store: a }) {
300
326
  className: "resource-flow-id-cell",
301
327
  children: /* @__PURE__ */ J(De, {
302
328
  value: n.flowId,
303
- label: Kt(n.flowId),
329
+ label: qt(n.flowId),
304
330
  trigger: /* @__PURE__ */ J("code", {
305
331
  className: "resource-flow-id",
306
332
  tabIndex: 0,
307
333
  translate: "no"
308
334
  }),
309
335
  container: o,
310
- alignOffset: Vt
336
+ alignOffset: Ht
311
337
  })
312
338
  }),
313
339
  /* @__PURE__ */ Y(gt, { children: [/* @__PURE__ */ J(bt, {
@@ -316,7 +342,7 @@ function Yt({ badge: e, busy: t, flow: n, href: r, onSelect: i, store: a }) {
316
342
  dateTime: n.updatedAt,
317
343
  tabIndex: 0
318
344
  }),
319
- children: qt(n.updatedAt, p)
345
+ children: Jt(n.updatedAt, p)
320
346
  }), /* @__PURE__ */ J(_t, {
321
347
  align: "center",
322
348
  collisionBoundary: [],
@@ -419,7 +445,7 @@ function Yt({ badge: e, busy: t, flow: n, href: r, onSelect: i, store: a }) {
419
445
  ]
420
446
  });
421
447
  }
422
- function Xt() {
448
+ function Zt() {
423
449
  return /* @__PURE__ */ Y("div", {
424
450
  "aria-hidden": "true",
425
451
  className: "resource-item-row",
@@ -440,7 +466,7 @@ function Xt() {
440
466
  })]
441
467
  });
442
468
  }
443
- function Zt({ catalogWidth: t, createFlowDisabled: n, createFlowField: r, flowBadges: i, hrefForFlow: a, language: o, onCreateFlow: s, onLanguageChange: c, onSelectFlow: l, store: u }) {
469
+ function Qt({ catalogWidth: t, createFlowDisabled: n, createFlowField: r, flowBadges: i, hrefForFlow: a, language: o, onCreateFlow: s, onLanguageChange: c, onSelectFlow: l, store: u }) {
444
470
  let f = et(), p = B(u.workspace.$.busy), h = B(u.workspace.$.flowLoadFailed), _ = B(u.workspace.$.flowLoadMoreFailed), v = B(u.workspace.$.flowLoading), y = B(u.workspace.$.flowLoadingMore), b = B(u.workspace.$.flowNextCursor), x = B(u.workspace.$.flowRefreshing), ee = B(u.workspace.$.flows), S = B(u.workspace.$.flowTotal), [te, C] = q(!1), [ne, w] = q(""), [T, ie] = q(""), E = ne.trim().toLocaleLowerCase(), D = ee.filter((e) => e.name.toLocaleLowerCase().includes(E));
445
471
  async function ae(e) {
446
472
  e.preventDefault();
@@ -472,7 +498,7 @@ function Zt({ catalogWidth: t, createFlowDisabled: n, createFlowField: r, flowBa
472
498
  }), /* @__PURE__ */ Y("div", {
473
499
  className: "resource-list-actions",
474
500
  children: [
475
- /* @__PURE__ */ J(Gt, {
501
+ /* @__PURE__ */ J(Kt, {
476
502
  language: o,
477
503
  onLanguageChange: c
478
504
  }),
@@ -526,10 +552,10 @@ function Zt({ catalogWidth: t, createFlowDisabled: n, createFlowField: r, flowBa
526
552
  }),
527
553
  /* @__PURE__ */ J("div", {
528
554
  className: "resource-list",
529
- children: v ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ J(Xt, {}, t)) : h ? /* @__PURE__ */ Y(m, {
555
+ children: v ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ J(Zt, {}, t)) : h ? /* @__PURE__ */ Y(m, {
530
556
  className: "min-h-64",
531
557
  role: "alert",
532
- children: [/* @__PURE__ */ Y(le, { children: [
558
+ children: [/* @__PURE__ */ Y(ue, { children: [
533
559
  /* @__PURE__ */ J(re, {
534
560
  variant: "icon",
535
561
  children: /* @__PURE__ */ J(H, {
@@ -538,15 +564,15 @@ function Zt({ catalogWidth: t, createFlowDisabled: n, createFlowField: r, flowBa
538
564
  })
539
565
  }),
540
566
  /* @__PURE__ */ J(e, { children: f("resource.flowsLoadFailed") }),
541
- /* @__PURE__ */ J(se, { children: f("resource.flowsLoadFailedDescription") })
542
- ] }), /* @__PURE__ */ J(ce, { children: /* @__PURE__ */ J(V, {
567
+ /* @__PURE__ */ J(ce, { children: f("resource.flowsLoadFailedDescription") })
568
+ ] }), /* @__PURE__ */ J(le, { children: /* @__PURE__ */ J(V, {
543
569
  onClick: () => void u.retryFlows(),
544
570
  variant: "outline",
545
571
  children: f("empty.retry")
546
572
  }) })]
547
573
  }) : D.length == 0 ? /* @__PURE__ */ Y(m, {
548
574
  className: "min-h-64",
549
- children: [/* @__PURE__ */ Y(le, { children: [
575
+ children: [/* @__PURE__ */ Y(ue, { children: [
550
576
  /* @__PURE__ */ J(re, {
551
577
  variant: "icon",
552
578
  children: /* @__PURE__ */ J(H, {
@@ -555,8 +581,8 @@ function Zt({ catalogWidth: t, createFlowDisabled: n, createFlowField: r, flowBa
555
581
  })
556
582
  }),
557
583
  /* @__PURE__ */ J(e, { children: f(E.length == 0 ? "resource.noFlows" : "resource.noMatchingFlows") }),
558
- /* @__PURE__ */ J(se, { children: f(E.length == 0 ? "resource.noFlowsDescription" : "resource.noMatchingDescription") })
559
- ] }), E.length == 0 && /* @__PURE__ */ J(ce, { children: /* @__PURE__ */ Y(V, {
584
+ /* @__PURE__ */ J(ce, { children: f(E.length == 0 ? "resource.noFlowsDescription" : "resource.noMatchingDescription") })
585
+ ] }), E.length == 0 && /* @__PURE__ */ J(le, { children: /* @__PURE__ */ Y(V, {
560
586
  onClick: () => C(!0),
561
587
  variant: "outline",
562
588
  children: [/* @__PURE__ */ J(H, {
@@ -564,7 +590,7 @@ function Zt({ catalogWidth: t, createFlowDisabled: n, createFlowField: r, flowBa
564
590
  name: "plus"
565
591
  }), f("resource.newFlow")]
566
592
  }) })]
567
- }) : D.map((e) => /* @__PURE__ */ J(Yt, {
593
+ }) : D.map((e) => /* @__PURE__ */ J(Xt, {
568
594
  badge: i?.[e.flowId],
569
595
  busy: p,
570
596
  flow: e,
@@ -586,7 +612,7 @@ function Zt({ catalogWidth: t, createFlowDisabled: n, createFlowField: r, flowBa
586
612
  }),
587
613
  te && /* @__PURE__ */ J(jt, {
588
614
  fallback: null,
589
- children: /* @__PURE__ */ J(zt, {
615
+ children: /* @__PURE__ */ J(Bt, {
590
616
  disabled: n,
591
617
  field: r,
592
618
  id: "flow-name",
@@ -606,8 +632,8 @@ function Zt({ catalogWidth: t, createFlowDisabled: n, createFlowField: r, flowBa
606
632
  }
607
633
  //#endregion
608
634
  //#region ../../node_modules/.bun/dequal@2.0.3/node_modules/dequal/dist/index.mjs
609
- var Qt = Object.prototype.hasOwnProperty;
610
- function $t(e, t, n) {
635
+ var $t = Object.prototype.hasOwnProperty;
636
+ function en(e, t, n) {
611
637
  for (n of e.keys()) if (Q(n, t)) return n;
612
638
  }
613
639
  function Q(e, t) {
@@ -622,12 +648,12 @@ function Q(e, t) {
622
648
  }
623
649
  if (n === Set) {
624
650
  if (e.size !== t.size) return !1;
625
- for (r of e) if (i = r, i && typeof i == "object" && (i = $t(t, i), !i) || !t.has(i)) return !1;
651
+ for (r of e) if (i = r, i && typeof i == "object" && (i = en(t, i), !i) || !t.has(i)) return !1;
626
652
  return !0;
627
653
  }
628
654
  if (n === Map) {
629
655
  if (e.size !== t.size) return !1;
630
- for (r of e) if (i = r[0], i && typeof i == "object" && (i = $t(t, i), !i) || !Q(r[1], t.get(i))) return !1;
656
+ for (r of e) if (i = r[0], i && typeof i == "object" && (i = en(t, i), !i) || !Q(r[1], t.get(i))) return !1;
631
657
  return !0;
632
658
  }
633
659
  if (n === ArrayBuffer) e = new Uint8Array(e), t = new Uint8Array(t);
@@ -640,7 +666,7 @@ function Q(e, t) {
640
666
  return r === -1;
641
667
  }
642
668
  if (!n || typeof e == "object") {
643
- for (n in r = 0, e) if (Qt.call(e, n) && ++r && !Qt.call(t, n) || !(n in t) || !Q(e[n], t[n])) return !1;
669
+ for (n in r = 0, e) if ($t.call(e, n) && ++r && !$t.call(t, n) || !(n in t) || !Q(e[n], t[n])) return !1;
644
670
  return Object.keys(t).length === r;
645
671
  }
646
672
  }
@@ -648,7 +674,7 @@ function Q(e, t) {
648
674
  }
649
675
  //#endregion
650
676
  //#region ../../node_modules/.bun/nanoid@6.0.1/node_modules/nanoid/index.browser.js
651
- var en = (e) => crypto.getRandomValues(new Uint8Array(e)), tn = (e, t, n) => {
677
+ var tn = (e) => crypto.getRandomValues(new Uint8Array(e)), nn = (e, t, n) => {
652
678
  let r = 256 - 256 % e.length;
653
679
  if (r === 256) {
654
680
  let r = e.length - 1;
@@ -670,29 +696,29 @@ var en = (e) => crypto.getRandomValues(new Uint8Array(e)), tn = (e, t, n) => {
670
696
  for (; s--;) if (t[s] < r && (o += e[t[s] % e.length], o.length >= a)) return o;
671
697
  }
672
698
  };
673
- }, nn = (e, t = 21) => tn(e, t | 0, en);
699
+ }, rn = (e, t = 21) => nn(e, t | 0, tn);
674
700
  //#endregion
675
701
  //#region src/flow/common/edgeChanges.ts
676
- function rn(e, t, n) {
677
- return on(e, t)?.edges.some((e) => U(e, n)) ? [] : [{
702
+ function an(e, t, n) {
703
+ return sn(e, t)?.edges.some((e) => U(e, n)) ? [] : [{
678
704
  edge: n,
679
705
  kind: "graph.edge.connect",
680
706
  target: t
681
707
  }];
682
708
  }
683
- function an(e, t, n) {
684
- return on(e, t)?.edges.some((e) => U(e, n)) ? [{
709
+ function on(e, t, n) {
710
+ return sn(e, t)?.edges.some((e) => U(e, n)) ? [{
685
711
  edge: n,
686
712
  kind: "graph.edge.disconnect",
687
713
  target: t
688
714
  }] : [];
689
715
  }
690
- function on(e, t) {
716
+ function sn(e, t) {
691
717
  return t.kind == "flow" ? e.document.graph : e.document.subflows[t.id]?.graph;
692
718
  }
693
719
  //#endregion
694
720
  //#region src/flow/common/moduleChanges.ts
695
- async function sn(e) {
721
+ async function cn(e) {
696
722
  try {
697
723
  let { parse: t } = await import("./lib-C5Ipyfps.js").then((e) => e.t), n = t(e, {
698
724
  errorRecovery: !0,
@@ -708,7 +734,7 @@ async function sn(e) {
708
734
  return [];
709
735
  }
710
736
  }
711
- function cn(e, t, n, r, i) {
737
+ function ln(e, t, n, r, i) {
712
738
  return [{
713
739
  beforeImports: n,
714
740
  beforeSource: t,
@@ -718,10 +744,10 @@ function cn(e, t, n, r, i) {
718
744
  source: r
719
745
  }];
720
746
  }
721
- var ln = nn("23456789abcdefghjkmnpqrstuvwxyz", 10);
747
+ var un = rn("23456789abcdefghjkmnpqrstuvwxyz", 10);
722
748
  //#endregion
723
749
  //#region src/workbench/browser/runtime/editor/triggerDiagnosticPresentation.ts
724
- function un(e, t, n, r, i, a) {
750
+ function dn(e, t, n, r, i, a) {
725
751
  return t == null || n == null ? e : e.map((e) => {
726
752
  if (e.diagnostic.code != "trigger.config-incomplete" || e.location == null) return e;
727
753
  let o = t.node(n, e.location.nodeId)?.node;
@@ -735,7 +761,7 @@ function un(e, t, n, r, i, a) {
735
761
  }
736
762
  //#endregion
737
763
  //#region src/workbench/browser/runtime/publications/publicationStore.ts
738
- var dn = {
764
+ var fn = {
739
765
  activities: [],
740
766
  activitiesLoadFailed: !1,
741
767
  activitiesLoading: !1,
@@ -750,21 +776,21 @@ var dn = {
750
776
  publications: [],
751
777
  publishing: !1,
752
778
  refreshing: !1
753
- }, fn = 20, pn = 50, mn = 750;
779
+ }, pn = 20, mn = 50, hn = 750;
754
780
  function $(e, t) {
755
781
  return e?.flowId == t.flowId;
756
782
  }
757
- var hn = class {
783
+ var gn = class {
758
784
  #e;
759
785
  #t;
760
786
  #n;
761
- #r = new A();
762
- #i = new A();
787
+ #r = new k();
788
+ #i = new k();
763
789
  #a;
764
- #o = new A();
765
- #s = new A();
790
+ #o = new k();
791
+ #s = new k();
766
792
  #c;
767
- #l = z(dn);
793
+ #l = z(fn);
768
794
  #u;
769
795
  #d;
770
796
  #f;
@@ -802,7 +828,7 @@ var hn = class {
802
828
  this.#l.dispose();
803
829
  }
804
830
  reset() {
805
- this.#r.invalidate(), this.#i.invalidate(), this.#y(), this.#o.invalidate(), this.#s.invalidate(), this.#f = void 0, this.#l.set(dn);
831
+ this.#r.invalidate(), this.#i.invalidate(), this.#y(), this.#o.invalidate(), this.#s.invalidate(), this.#f = void 0, this.#l.set(fn);
806
832
  }
807
833
  async load(e) {
808
834
  let t = { flowId: e }, n = this.#l.value, r = n.loaded && $(n.target, t), i = this.#r.begin();
@@ -812,7 +838,7 @@ var hn = class {
812
838
  loadMoreFailed: !1,
813
839
  refreshing: !0
814
840
  }) : this.#l.set({
815
- ...dn,
841
+ ...fn,
816
842
  loading: !0,
817
843
  target: t
818
844
  });
@@ -856,7 +882,7 @@ var hn = class {
856
882
  try {
857
883
  let e = await this.#e.listPublications(n.flowId, {
858
884
  cursor: t,
859
- limit: pn
885
+ limit: mn
860
886
  });
861
887
  if (!r()) return;
862
888
  let i = new Set(this.#l.value.publications.map((e) => e.publicationId));
@@ -959,7 +985,7 @@ var hn = class {
959
985
  testingTriggerId: void 0,
960
986
  testResult: void 0
961
987
  });
962
- let [r, i] = await Promise.allSettled([this.#e.getFlowTriggerBinding(t.flowId, e), this.#e.listFlowTriggerActivities(t.flowId, e, { limit: fn })]);
988
+ let [r, i] = await Promise.allSettled([this.#e.getFlowTriggerBinding(t.flowId, e), this.#e.listFlowTriggerActivities(t.flowId, e, { limit: pn })]);
963
989
  if (n()) {
964
990
  if (r.status == "rejected") {
965
991
  this.#S({
@@ -993,7 +1019,7 @@ var hn = class {
993
1019
  try {
994
1020
  let e = await this.#e.listFlowTriggerActivities(r.flowId, n, {
995
1021
  cursor: t,
996
- limit: fn
1022
+ limit: pn
997
1023
  });
998
1024
  if (!i() || this.#l.value.selectedTriggerId != n) return;
999
1025
  let a = new Set(this.#l.value.activities.map((e) => e.activityId));
@@ -1075,7 +1101,7 @@ var hn = class {
1075
1101
  this.#e.getLive(e.flowId, t),
1076
1102
  this.#e.listPublications(e.flowId, {
1077
1103
  includeTotal: !0,
1078
- limit: pn
1104
+ limit: mn
1079
1105
  }, t),
1080
1106
  this.#e.listFlowTriggerBindings(e.flowId, t)
1081
1107
  ]);
@@ -1126,7 +1152,7 @@ var hn = class {
1126
1152
  return X.gen({ self: this }, function* () {
1127
1153
  let r = t;
1128
1154
  for (; r.status == "pending";) {
1129
- if (yield* X.sleep(mn), !n()) return;
1155
+ if (yield* X.sleep(hn), !n()) return;
1130
1156
  let t = yield* X.tryPromise({
1131
1157
  try: (t) => this.#e.getPublishOperation(e.flowId, r.operationId, t),
1132
1158
  catch: (e) => e
@@ -1160,7 +1186,7 @@ var hn = class {
1160
1186
  }
1161
1187
  #x(e, t) {
1162
1188
  $(this.#l.value.target, e) ? this.#S(t) : this.#l.set({
1163
- ...dn,
1189
+ ...fn,
1164
1190
  ...t,
1165
1191
  target: e
1166
1192
  });
@@ -1171,8 +1197,8 @@ var hn = class {
1171
1197
  ...e
1172
1198
  });
1173
1199
  }
1174
- }, gn = { starting: !1 };
1175
- function _n(e) {
1200
+ }, _n = { starting: !1 };
1201
+ function vn(e) {
1176
1202
  switch (e.kind) {
1177
1203
  case "condition": return {};
1178
1204
  case "subflow": return ct(e.definition?.inputs ?? []);
@@ -1182,10 +1208,10 @@ function _n(e) {
1182
1208
  case "wait": return ct(e.node.inputDefinitions);
1183
1209
  }
1184
1210
  }
1185
- function vn(e) {
1211
+ function yn(e) {
1186
1212
  return e.node.name == null ? e.kind == "task" || e.kind == "subflow" ? e.definition?.name ?? e.id : e.id : e.node.name;
1187
1213
  }
1188
- function yn(e, t) {
1214
+ function bn(e, t) {
1189
1215
  let n = N(e), r = n.graph({ kind: "flow" });
1190
1216
  if (r == null) return [];
1191
1217
  let i = /* @__PURE__ */ new Set([t]), a = [t];
@@ -1200,7 +1226,7 @@ function yn(e, t) {
1200
1226
  nodeId: e,
1201
1227
  title: r.trigger.name
1202
1228
  }];
1203
- let i = Object.entries(_n(r)).filter(([e, t]) => r.node.inputs[e] == null && !Object.hasOwn(t, "value")).toSorted(([e], [t]) => e.localeCompare(t)).map(([e, t]) => Object.assign({
1229
+ let i = Object.entries(vn(r)).filter(([e, t]) => r.node.inputs[e] == null && !Object.hasOwn(t, "value")).toSorted(([e], [t]) => e.localeCompare(t)).map(([e, t]) => Object.assign({
1204
1230
  handle: e,
1205
1231
  jsonSchema: t.jsonSchema,
1206
1232
  nullable: t.nullable
@@ -1208,18 +1234,18 @@ function yn(e, t) {
1208
1234
  return i.length == 0 ? [] : [{
1209
1235
  definitions: i,
1210
1236
  nodeId: e,
1211
- title: vn(r)
1237
+ title: yn(r)
1212
1238
  }];
1213
1239
  });
1214
1240
  }
1215
- function bn(e) {
1241
+ function xn(e) {
1216
1242
  return JSON.stringify(e.map((e) => [e.nodeId, e.definitions.map((e) => [
1217
1243
  e.handle,
1218
1244
  e.jsonSchema,
1219
1245
  e.nullable
1220
1246
  ])]));
1221
1247
  }
1222
- async function xn(e, t, n) {
1248
+ async function Sn(e, t, n) {
1223
1249
  let { FlowRunInputEditorStore: r } = await import("./flowRunInputEditorStore-rVbwoTfN.js").then((e) => e.t);
1224
1250
  return e.map((e) => {
1225
1251
  let i = new r(e.definitions, t);
@@ -1230,29 +1256,29 @@ async function xn(e, t, n) {
1230
1256
  };
1231
1257
  });
1232
1258
  }
1233
- function Sn(e) {
1259
+ function Cn(e) {
1234
1260
  return Object.fromEntries(e.map((e) => [e.nodeId, e.editor.values()]));
1235
1261
  }
1236
- function Cn(e, t) {
1262
+ function wn(e, t) {
1237
1263
  return N(e).graph({ kind: "flow" })?.nodes[t]?.kind === "cron" ? { scheduledAt: (/* @__PURE__ */ new Date()).toISOString() } : {};
1238
1264
  }
1239
- function wn(e, t, n) {
1265
+ function Tn(e, t, n) {
1240
1266
  return {
1241
1267
  inputs: Object.fromEntries(e.filter((e) => e.nodeId != t).map((e) => [e.nodeId, e.editor.values()])),
1242
- outputs: e.find((e) => e.nodeId == t)?.editor.values() ?? Cn(n, t)
1268
+ outputs: e.find((e) => e.nodeId == t)?.editor.values() ?? wn(n, t)
1243
1269
  };
1244
1270
  }
1245
- var Tn = class {
1271
+ var En = class {
1246
1272
  #e;
1247
1273
  #t;
1248
1274
  #n;
1249
1275
  #r;
1250
- #i = new A();
1251
- #a = new A();
1276
+ #i = new k();
1277
+ #a = new k();
1252
1278
  #o;
1253
1279
  #s = /* @__PURE__ */ new Map();
1254
1280
  #c;
1255
- #l = z(gn);
1281
+ #l = z(_n);
1256
1282
  #u;
1257
1283
  constructor(e, t, n, r, i = F(), a = I) {
1258
1284
  this.#e = r, this.#t = e, this.#o = t, this.#c = n, this.#r = i, this.#n = a, this.$ = {
@@ -1269,7 +1295,7 @@ var Tn = class {
1269
1295
  reset() {
1270
1296
  this.#i.invalidate(), this.#a.invalidate(), this.#u = void 0;
1271
1297
  let e = this.#l.value.inputRequest;
1272
- this.#h(e), this.#l.set(gn), this.#p(e);
1298
+ this.#h(e), this.#l.set(_n), this.#p(e);
1273
1299
  }
1274
1300
  async requestDraft(e, t, n) {
1275
1301
  let r = this.#a.begin();
@@ -1292,10 +1318,10 @@ var Tn = class {
1292
1318
  }
1293
1319
  }
1294
1320
  inputStatus(e, t, n) {
1295
- let r = yn(t, n);
1321
+ let r = bn(t, n);
1296
1322
  if (r.length == 0) return "none";
1297
1323
  let i = this.#s.get(this.#m(e, n));
1298
- return i?.valid == 1 && i.signature == bn(r) ? "ready" : "missing";
1324
+ return i?.valid == 1 && i.signature == xn(r) ? "ready" : "missing";
1299
1325
  }
1300
1326
  async requestLive(e) {
1301
1327
  let t = this.#a.begin();
@@ -1323,7 +1349,7 @@ var Tn = class {
1323
1349
  attempted: !0
1324
1350
  } }), !1;
1325
1351
  this.#h(e);
1326
- let { inputs: t, outputs: n } = wn(e.groups, e.triggerId, e.revision), r = await this.#f(e.source, e.flow, e.revisionId, {
1352
+ let { inputs: t, outputs: n } = Tn(e.groups, e.triggerId, e.revision), r = await this.#f(e.source, e.flow, e.revisionId, {
1327
1353
  nodeId: e.triggerId,
1328
1354
  outputs: n
1329
1355
  }, t, e.publicationId);
@@ -1335,7 +1361,7 @@ var Tn = class {
1335
1361
  let n = this.#a.begin();
1336
1362
  this.#h(t), this.#g({ starting: !0 });
1337
1363
  try {
1338
- let r = yn(t.revision, e), i = this.#s.get(this.#m(t.flow.flowId, e)), a = await xn(r, this.#r.lang$, i?.values);
1364
+ let r = bn(t.revision, e), i = this.#s.get(this.#m(t.flow.flowId, e)), a = await Sn(r, this.#r.lang$, i?.values);
1339
1365
  if (!n() || this.#l.value.inputRequest !== t) {
1340
1366
  for (let e of a) e.editor.dispose();
1341
1367
  return;
@@ -1374,17 +1400,17 @@ var Tn = class {
1374
1400
  kind: "error",
1375
1401
  message: this.#r.t("runInput.selectTrigger")
1376
1402
  }), "unavailable";
1377
- let f = d == null ? [] : yn(n, d.nodeId), p = bn(f), m = d == null ? void 0 : this.#s.get(this.#m(t.flowId, d.nodeId)), h = d == null ? [] : await xn(f, this.#r.lang$, m?.values);
1403
+ let f = d == null ? [] : bn(n, d.nodeId), p = xn(f), m = d == null ? void 0 : this.#s.get(this.#m(t.flowId, d.nodeId)), h = d == null ? [] : await Sn(f, this.#r.lang$, m?.values);
1378
1404
  if (!i()) {
1379
1405
  for (let e of h) e.editor.dispose();
1380
1406
  return "unavailable";
1381
1407
  }
1382
1408
  if (!s && d != null && h.length == 0) return await this.#f(e, t, r, {
1383
1409
  nodeId: d.nodeId,
1384
- outputs: Cn(n, d.nodeId)
1410
+ outputs: wn(n, d.nodeId)
1385
1411
  }, {}, a) ? "started" : "unavailable";
1386
1412
  if (!s && d != null && m?.valid == 1 && m.signature == p && h.every((e) => e.editor.valid$.value)) {
1387
- let i = wn(h, d.nodeId, n);
1413
+ let i = Tn(h, d.nodeId, n);
1388
1414
  for (let e of h) e.editor.dispose();
1389
1415
  return await this.#f(e, t, r, {
1390
1416
  nodeId: d.nodeId,
@@ -1465,9 +1491,9 @@ var Tn = class {
1465
1491
  }
1466
1492
  #h(e) {
1467
1493
  e?.triggerId != null && e.groups.length != 0 && this.#s.set(this.#m(e.flow.flowId, e.triggerId), {
1468
- signature: bn(yn(e.revision, e.triggerId)),
1494
+ signature: xn(bn(e.revision, e.triggerId)),
1469
1495
  valid: e.valid.value,
1470
- values: Sn(e.groups)
1496
+ values: Cn(e.groups)
1471
1497
  });
1472
1498
  }
1473
1499
  #g(e) {
@@ -1476,7 +1502,7 @@ var Tn = class {
1476
1502
  ...e
1477
1503
  });
1478
1504
  }
1479
- }, En = class {
1505
+ }, Dn = class {
1480
1506
  #e = /* @__PURE__ */ new Map();
1481
1507
  #t = /* @__PURE__ */ new Map();
1482
1508
  #n = new AbortController();
@@ -1501,32 +1527,32 @@ var Tn = class {
1501
1527
  dispose() {
1502
1528
  this.#n.abort(), this.#e.clear(), this.#t.clear();
1503
1529
  }
1504
- }, Dn = "open-flow:canvas-interactive-mode";
1505
- function On(e) {
1530
+ }, On = "open-flow:canvas-interactive-mode";
1531
+ function kn(e) {
1506
1532
  try {
1507
- let t = e.getItem(Dn);
1533
+ let t = e.getItem(On);
1508
1534
  return t === "mouse" || t === "touchpad" ? t : "touchpad";
1509
1535
  } catch {
1510
1536
  return "touchpad";
1511
1537
  }
1512
1538
  }
1513
- function kn(e, t) {
1539
+ function An(e, t) {
1514
1540
  try {
1515
- e.setItem(Dn, t);
1541
+ e.setItem(On, t);
1516
1542
  } catch {}
1517
1543
  }
1518
1544
  //#endregion
1519
1545
  //#region ../../node_modules/.bun/idb-keyval@6.3.0/node_modules/idb-keyval/dist/index.js
1520
- function An(e) {
1546
+ function jn(e) {
1521
1547
  return new Promise((t, n) => {
1522
1548
  e.oncomplete = e.onsuccess = () => t(e.result), e.onabort = e.onerror = () => n(e.error);
1523
1549
  });
1524
1550
  }
1525
- function jn(e, t) {
1551
+ function Mn(e, t) {
1526
1552
  let n, r = () => {
1527
1553
  if (n) return n;
1528
1554
  let r = indexedDB.open(e);
1529
- return r.onupgradeneeded = () => r.result.createObjectStore(t), n = An(r), n.then((e) => {
1555
+ return r.onupgradeneeded = () => r.result.createObjectStore(t), n = jn(r), n.then((e) => {
1530
1556
  e.onclose = () => n = void 0;
1531
1557
  }, () => {
1532
1558
  n = void 0;
@@ -1534,25 +1560,25 @@ function jn(e, t) {
1534
1560
  };
1535
1561
  return (e, n) => r().then((r) => n(r.transaction(t, e).objectStore(t)));
1536
1562
  }
1537
- var Mn;
1538
- function Nn() {
1539
- return Mn ||= jn("keyval-store", "keyval"), Mn;
1563
+ var Nn;
1564
+ function Pn() {
1565
+ return Nn ||= Mn("keyval-store", "keyval"), Nn;
1540
1566
  }
1541
- function Pn(e, t = Nn()) {
1542
- return t("readonly", (t) => An(t.get(e)));
1567
+ function Fn(e, t = Pn()) {
1568
+ return t("readonly", (t) => jn(t.get(e)));
1543
1569
  }
1544
- function Fn(e, t, n = Nn()) {
1545
- return n("readwrite", (n) => (n.put(t, e), An(n.transaction)));
1570
+ function In(e, t, n = Pn()) {
1571
+ return n("readwrite", (n) => (n.put(t, e), jn(n.transaction)));
1546
1572
  }
1547
1573
  //#endregion
1548
1574
  //#region src/workbench/browser/runtime/stores/catalogStorage.ts
1549
- var In = jn("open-flow-cache", "responses"), Ln = {
1550
- get: (e) => Pn(e, In),
1551
- set: (e, t) => Fn(e, t, In)
1575
+ var Ln = Mn("open-flow-cache", "responses"), Rn = {
1576
+ get: (e) => Fn(e, Ln),
1577
+ set: (e, t) => In(e, t, Ln)
1552
1578
  };
1553
- function Rn(e, t, n) {
1579
+ function zn(e, t, n) {
1554
1580
  if (e == null) return;
1555
- let r = e.storage ?? Ln;
1581
+ let r = e.storage ?? Rn;
1556
1582
  return {
1557
1583
  key: `${t}:v1:${n}`,
1558
1584
  storage: r
@@ -1560,83 +1586,83 @@ function Rn(e, t, n) {
1560
1586
  }
1561
1587
  //#endregion
1562
1588
  //#region src/connector/common/actionSchema.ts
1563
- function zn(e, t) {
1564
- let n = Bn(e);
1589
+ function Bn(e, t) {
1590
+ let n = Vn(e);
1565
1591
  return {
1566
1592
  inputs: n,
1567
1593
  initialInputs: n.flatMap((e) => e.value === void 0 ? [] : [{
1568
1594
  handle: e.handle,
1569
1595
  value: e.value
1570
1596
  }]),
1571
- outputs: Vn(t)
1597
+ outputs: Hn(t)
1572
1598
  };
1573
1599
  }
1574
- function Bn(e) {
1600
+ function Vn(e) {
1575
1601
  let t = W(e);
1576
1602
  if (t == null || t.type != "object" && t.properties == null) throw Error("Connector action inputSchema must be an object schema.");
1577
1603
  let n = W(t.properties);
1578
1604
  if (n == null) return [];
1579
- let r = Gn(t.required);
1605
+ let r = Kn(t.required);
1580
1606
  return Object.entries(n).map(([e, n]) => {
1581
- let i = !r.has(e) || Kn(n, t);
1607
+ let i = !r.has(e) || qn(n, t);
1582
1608
  return {
1583
- description: Un(t, n),
1609
+ description: Wn(t, n),
1584
1610
  handle: e,
1585
- json_schema: Hn(t, n),
1611
+ json_schema: Un(t, n),
1586
1612
  nullable: i,
1587
- value: Wn(t, n, i)
1613
+ value: Gn(t, n, i)
1588
1614
  };
1589
1615
  });
1590
1616
  }
1591
- function Vn(e) {
1617
+ function Hn(e) {
1592
1618
  let t = W(e), n = W(t?.properties);
1593
1619
  if (t != null && (t.type == "object" || n != null)) {
1594
1620
  if (n == null) return [];
1595
- let e = Gn(t.required);
1621
+ let e = Kn(t.required);
1596
1622
  return Object.entries(n).map(([n, r]) => ({
1597
- description: Un(t, r),
1623
+ description: Wn(t, r),
1598
1624
  handle: n,
1599
- json_schema: Hn(t, r),
1600
- nullable: !e.has(n) || Kn(r, t)
1625
+ json_schema: Un(t, r),
1626
+ nullable: !e.has(n) || qn(r, t)
1601
1627
  }));
1602
1628
  }
1603
1629
  return [{
1604
- description: Un(t, e),
1630
+ description: Wn(t, e),
1605
1631
  handle: "output",
1606
1632
  json_schema: e,
1607
- nullable: Kn(e)
1633
+ nullable: qn(e)
1608
1634
  }];
1609
1635
  }
1610
- function Hn(e, t) {
1636
+ function Un(e, t) {
1611
1637
  let n = W(t);
1612
1638
  if (n == null) return t;
1613
1639
  let r = Object.assign({}, n);
1614
1640
  return r.$defs == null && e.$defs != null && (r.$defs = e.$defs), r.definitions == null && e.definitions != null && (r.definitions = e.definitions), r;
1615
1641
  }
1616
- function Un(e, t) {
1617
- for (let n of qn(e, t)) if (typeof n.description == "string") return n.description;
1642
+ function Wn(e, t) {
1643
+ for (let n of Jn(e, t)) if (typeof n.description == "string") return n.description;
1618
1644
  }
1619
- function Wn(e, t, n) {
1620
- for (let n of qn(e, t)) if (Object.hasOwn(n, "default")) return n.default;
1645
+ function Gn(e, t, n) {
1646
+ for (let n of Jn(e, t)) if (Object.hasOwn(n, "default")) return n.default;
1621
1647
  return n ? null : void 0;
1622
1648
  }
1623
- function Gn(e) {
1649
+ function Kn(e) {
1624
1650
  return Array.isArray(e) ? new Set(e.filter((e) => typeof e == "string")) : /* @__PURE__ */ new Set();
1625
1651
  }
1626
- function Kn(e, t = e, n = /* @__PURE__ */ new Set()) {
1652
+ function qn(e, t = e, n = /* @__PURE__ */ new Set()) {
1627
1653
  let r = W(e);
1628
1654
  if (r == null) return !1;
1629
1655
  if (Object.hasOwn(r, "type")) return r.type == "null" || Array.isArray(r.type) && r.type.includes("null");
1630
1656
  if (Object.hasOwn(r, "enum")) return Array.isArray(r.enum) && r.enum.includes(null);
1631
- for (let e of ["anyOf", "oneOf"]) if (Object.hasOwn(r, e)) return Array.isArray(r[e]) && r[e].some((e) => Kn(e, t, n));
1657
+ for (let e of ["anyOf", "oneOf"]) if (Object.hasOwn(r, e)) return Array.isArray(r[e]) && r[e].some((e) => qn(e, t, n));
1632
1658
  let i = typeof r.$ref == "string" ? r.$ref : void 0;
1633
1659
  if (i == null || n.has(i)) return !1;
1634
- let a = Jn(t, i);
1660
+ let a = Yn(t, i);
1635
1661
  if (a === void 0) return !1;
1636
1662
  let o = new Set(n);
1637
- return o.add(i), Kn(a, t, o);
1663
+ return o.add(i), qn(a, t, o);
1638
1664
  }
1639
- function qn(e, t) {
1665
+ function Jn(e, t) {
1640
1666
  let n = [], r = /* @__PURE__ */ new Set(), i = t;
1641
1667
  for (;;) {
1642
1668
  let t = W(i);
@@ -1644,12 +1670,12 @@ function qn(e, t) {
1644
1670
  n.push(t);
1645
1671
  let a = typeof t.$ref == "string" ? t.$ref : void 0;
1646
1672
  if (a == null || r.has(a)) return n;
1647
- let o = Jn(e, a);
1673
+ let o = Yn(e, a);
1648
1674
  if (o === void 0) return n;
1649
1675
  r.add(a), i = o;
1650
1676
  }
1651
1677
  }
1652
- function Jn(e, t) {
1678
+ function Yn(e, t) {
1653
1679
  if (t == "#") return e;
1654
1680
  if (!t.startsWith("#/")) return;
1655
1681
  let n = e;
@@ -1662,14 +1688,14 @@ function Jn(e, t) {
1662
1688
  }
1663
1689
  //#endregion
1664
1690
  //#region src/workbench/browser/runtime/stores/proxyCatalog.ts
1665
- function Yn(e, t) {
1691
+ function Xn(e, t) {
1666
1692
  let n = C(e);
1667
1693
  if (n.success === !1) throw new v(502, typeof n.errorCode == "string" ? n.errorCode : "connector.unavailable", typeof n.message == "string" ? n.message : "Connector request failed.");
1668
1694
  if (n.success !== !0 || !Array.isArray(n.data)) return y();
1669
1695
  if (t != null) for (let e of n.data) t(C(e));
1670
1696
  return n;
1671
1697
  }
1672
- function Xn(e, t) {
1698
+ function Zn(e, t) {
1673
1699
  return !Array.isArray(e.authTypes) || e.authTypes.some((e) => typeof e != "string") ? y() : {
1674
1700
  ...p(t, e.iconSpritePosition),
1675
1701
  serviceId: c(e.service),
@@ -1679,11 +1705,11 @@ function Xn(e, t) {
1679
1705
  ...e.homepageUrl == null || e.homepageUrl === "" ? {} : { homepageUrl: c(e.homepageUrl) }
1680
1706
  };
1681
1707
  }
1682
- function Zn(e) {
1708
+ function Qn(e) {
1683
1709
  if (c(e.id), c(e.service), c(e.name), typeof e.description != "string") return y();
1684
- zn(e.inputSchema, e.outputSchema);
1710
+ Bn(e.inputSchema, e.outputSchema);
1685
1711
  }
1686
- function Qn(e) {
1712
+ function $n(e) {
1687
1713
  return {
1688
1714
  nullable: e.nullable,
1689
1715
  jsonSchema: x(e.json_schema),
@@ -1691,10 +1717,10 @@ function Qn(e) {
1691
1717
  ...e.value === void 0 ? {} : { value: x(e.value) }
1692
1718
  };
1693
1719
  }
1694
- function $n(e, t) {
1720
+ function er(e, t) {
1695
1721
  let n = t.data.find((t) => t.service == e.service);
1696
1722
  if (n == null) return y();
1697
- let r = Xn(n, t.meta?.iconSprite), i = zn(e.inputSchema, e.outputSchema);
1723
+ let r = Zn(n, t.meta?.iconSprite), i = Bn(e.inputSchema, e.outputSchema);
1698
1724
  return {
1699
1725
  ...r.iconSprite == null ? {} : {
1700
1726
  iconSprite: r.iconSprite,
@@ -1711,17 +1737,17 @@ function $n(e, t) {
1711
1737
  authenticated: !n.authTypes.includes("no_auth"),
1712
1738
  inputSchema: x(e.inputSchema),
1713
1739
  outputSchema: x(e.outputSchema),
1714
- inputs: Object.fromEntries(i.inputs.map((e) => [e.handle, Qn(e)])),
1715
- outputs: Object.fromEntries(i.outputs.map((e) => [e.handle, Qn(e)]))
1740
+ inputs: Object.fromEntries(i.inputs.map((e) => [e.handle, $n(e)])),
1741
+ outputs: Object.fromEntries(i.outputs.map((e) => [e.handle, $n(e)]))
1716
1742
  };
1717
1743
  }
1718
1744
  //#endregion
1719
1745
  //#region src/workbench/browser/runtime/stores/catalogStores.ts
1720
- function er(e) {
1746
+ function tr(e) {
1721
1747
  let n = C(e);
1722
1748
  return n.version != 1 || !Array.isArray(n.actions) ? y() : n.actions.map(t);
1723
1749
  }
1724
- var tr = (...e) => JSON.stringify(e), nr = class {
1750
+ var nr = (...e) => JSON.stringify(e), rr = class {
1725
1751
  constructor(e, t, n) {
1726
1752
  this.client = e, this.kind = t, this.options = n, this.entries = /* @__PURE__ */ new Map();
1727
1753
  }
@@ -1732,9 +1758,9 @@ var tr = (...e) => JSON.stringify(e), nr = class {
1732
1758
  ...t == null ? {} : { locale: t }
1733
1759
  }), a = `/v1/connector/proxy/${this.kind}${i.size ? `?${i}` : ""}`, o = this.entries.get(a);
1734
1760
  if (o == null) {
1735
- let e = (e) => Yn(e, this.kind == "providers" ? Xn : void 0), t = new URLSearchParams(i);
1761
+ let e = (e) => Xn(e, this.kind == "providers" ? Zn : void 0), t = new URLSearchParams(i);
1736
1762
  t.delete("flowId");
1737
- let n = Rn(this.options, this.kind, t.toString());
1763
+ let n = zn(this.options, this.kind, t.toString());
1738
1764
  o = new f((t, n) => this.client.readProxyCatalog({
1739
1765
  path: a,
1740
1766
  decode: e
@@ -1755,7 +1781,7 @@ var tr = (...e) => JSON.stringify(e), nr = class {
1755
1781
  for (let e of this.entries.values()) e.dispose();
1756
1782
  this.entries.clear();
1757
1783
  }
1758
- }, rr = class {
1784
+ }, ir = class {
1759
1785
  constructor() {
1760
1786
  this.entries = /* @__PURE__ */ new Map();
1761
1787
  }
@@ -1793,13 +1819,13 @@ var tr = (...e) => JSON.stringify(e), nr = class {
1793
1819
  for (let e of this.entries.values()) e.dispose();
1794
1820
  this.entries.clear();
1795
1821
  }
1796
- }, ir = class {
1797
- #e = new rr();
1822
+ }, ar = class {
1823
+ #e = new ir();
1798
1824
  constructor(e, t) {
1799
- this.raw = new nr(e, "providers", t);
1825
+ this.raw = new rr(e, "providers", t);
1800
1826
  }
1801
1827
  get(e, t = "en", n = !1) {
1802
- return this.#e.get(tr(e, t), [this.raw.get(e, t, void 0, n)], (e) => e.data.map((t) => Xn(t, e.meta?.iconSprite)));
1828
+ return this.#e.get(nr(e, t), [this.raw.get(e, t, void 0, n)], (e) => e.data.map((t) => Zn(t, e.meta?.iconSprite)));
1803
1829
  }
1804
1830
  retryFailed() {
1805
1831
  this.raw.retryFailed();
@@ -1810,7 +1836,7 @@ var tr = (...e) => JSON.stringify(e), nr = class {
1810
1836
  dispose() {
1811
1837
  this.#e.dispose(), this.raw.dispose();
1812
1838
  }
1813
- }, ar = class {
1839
+ }, or = class {
1814
1840
  #e = {
1815
1841
  get: async (e) => {
1816
1842
  let t = (this.options?.storage ?? window.sessionStorage).getItem(e);
@@ -1837,7 +1863,7 @@ var tr = (...e) => JSON.stringify(e), nr = class {
1837
1863
  }
1838
1864
  let i = r.get(n);
1839
1865
  if (e == null) return i;
1840
- let a = tr(t, e), o = this.#n.get(a);
1866
+ let a = nr(t, e), o = this.#n.get(a);
1841
1867
  return o ?? (o = L(i, (t) => ({
1842
1868
  ...t,
1843
1869
  data: t.data?.filter((t) => t.serviceId == e)
@@ -1855,20 +1881,20 @@ var tr = (...e) => JSON.stringify(e), nr = class {
1855
1881
  for (let e of this.#t.values()) e.dispose();
1856
1882
  this.#t.clear();
1857
1883
  }
1858
- }, or = class {
1884
+ }, sr = class {
1859
1885
  #e;
1860
- #t = new rr();
1886
+ #t = new ir();
1861
1887
  #n = /* @__PURE__ */ new Map();
1862
1888
  #r = /* @__PURE__ */ new Set();
1863
1889
  #i = /* @__PURE__ */ new WeakMap();
1864
1890
  constructor(e, t, n) {
1865
- this.client = e, this.providers = t, this.#e = new nr(e, "actions", n);
1891
+ this.client = e, this.providers = t, this.#e = new rr(e, "actions", n);
1866
1892
  }
1867
1893
  get(e, t, n = "en", r = !1) {
1868
- return this.#t.get(tr(t, e, n), [this.#e.get(t, n, e, r), this.providers.raw.get(t, n)], (t, n) => t.data.flatMap((t) => {
1894
+ return this.#t.get(nr(t, e, n), [this.#e.get(t, n, e, r), this.providers.raw.get(t, n)], (t, n) => t.data.flatMap((t) => {
1869
1895
  try {
1870
1896
  let r = C(t);
1871
- return Zn(r), r.service == e ? [$n(r, n)] : y();
1897
+ return Qn(r), r.service == e ? [er(r, n)] : y();
1872
1898
  } catch (n) {
1873
1899
  return console.warn("Could not load Connector Action.", {
1874
1900
  serviceId: e,
@@ -1879,7 +1905,7 @@ var tr = (...e) => JSON.stringify(e), nr = class {
1879
1905
  }));
1880
1906
  }
1881
1907
  detail(e, t, n = "en", r = !1) {
1882
- let i = e.split(".")[0], a = this.get(i, t, n, r), o = tr(t, e, n), s = this.#n.get(o);
1908
+ let i = e.split(".")[0], a = this.get(i, t, n, r), o = nr(t, e, n), s = this.#n.get(o);
1883
1909
  if (s == null) {
1884
1910
  let t = new v(404, "connector.action-not-found", `Connector Action "${e}" was not found.`);
1885
1911
  s = L(a, (n) => {
@@ -1911,7 +1937,7 @@ var tr = (...e) => JSON.stringify(e), nr = class {
1911
1937
  if (s != null) return s.refresh(), s;
1912
1938
  let c = new f((e, t) => this.client.readCatalog({
1913
1939
  path: `/v1/connector/action-metadata?${i}`,
1914
- decode: er
1940
+ decode: tr
1915
1941
  }, null, t), 3e4);
1916
1942
  return r.aborted ? c.dispose() : (o.set(a, c), this.#r.add(c)), c;
1917
1943
  }
@@ -1927,9 +1953,9 @@ var tr = (...e) => JSON.stringify(e), nr = class {
1927
1953
  for (let e of this.#n.values()) e.dispose();
1928
1954
  this.#n.clear(), this.#t.dispose(), this.#e.dispose();
1929
1955
  }
1930
- }, sr = class {
1956
+ }, cr = class {
1931
1957
  constructor(e, t, n) {
1932
- this.providers = new ir(e, t), this.actions = new or(e, this.providers, t), this.connections = new ar(e, n);
1958
+ this.providers = new ar(e, t), this.actions = new sr(e, this.providers, t), this.connections = new or(e, n);
1933
1959
  }
1934
1960
  dispose() {
1935
1961
  this.actions.dispose(), this.connections.dispose(), this.providers.dispose();
@@ -1937,12 +1963,12 @@ var tr = (...e) => JSON.stringify(e), nr = class {
1937
1963
  refreshFlow(e) {
1938
1964
  this.actions.refreshFlow(e), this.connections.refreshFlow(e), this.providers.refreshFlow(e);
1939
1965
  }
1940
- }, cr = {
1966
+ }, lr = {
1941
1967
  candidates: {},
1942
1968
  candidateErrors: [],
1943
1969
  loading: !1,
1944
1970
  loadingCandidates: []
1945
- }, lr = class {
1971
+ }, ur = class {
1946
1972
  #e;
1947
1973
  #t;
1948
1974
  #n;
@@ -1950,12 +1976,12 @@ var tr = (...e) => JSON.stringify(e), nr = class {
1950
1976
  #i;
1951
1977
  #a;
1952
1978
  constructor(e, t, n = F(), r = () => {}) {
1953
- this.client = e, this.setNotice = t, this.i18n = n, this.onSaved = r, this.#e = z(cr), this.#n = 0, this.#r = !1, this.#i = new AbortController(), this.#a = /* @__PURE__ */ new Map(), this.$ = this.#e;
1979
+ this.client = e, this.setNotice = t, this.i18n = n, this.onSaved = r, this.#e = z(lr), this.#n = 0, this.#r = !1, this.#i = new AbortController(), this.#a = /* @__PURE__ */ new Map(), this.$ = this.#e;
1954
1980
  }
1955
1981
  async load(e) {
1956
1982
  let t = e != null && e == this.#t && this.#e.value.access != null, n = ++this.#n;
1957
- if (this.#t = e, t || (this.#i.abort(), this.#i = new AbortController(), this.#a.clear(), this.#e.set(e == null ? cr : {
1958
- ...cr,
1983
+ if (this.#t = e, t || (this.#i.abort(), this.#i = new AbortController(), this.#a.clear(), this.#e.set(e == null ? lr : {
1984
+ ...lr,
1959
1985
  loading: !0
1960
1986
  })), e != null) try {
1961
1987
  let t = await this.client.getConnectorAccess(e);
@@ -1968,7 +1994,7 @@ var tr = (...e) => JSON.stringify(e), nr = class {
1968
1994
  });
1969
1995
  }
1970
1996
  } catch (e) {
1971
- !this.#r && n == this.#n && (t || this.#e.set(cr), this.setNotice(M(e, this.i18n.t)));
1997
+ !this.#r && n == this.#n && (t || this.#e.set(lr), this.setNotice(M(e, this.i18n.t)));
1972
1998
  }
1973
1999
  }
1974
2000
  changed(e) {
@@ -2097,15 +2123,15 @@ var tr = (...e) => JSON.stringify(e), nr = class {
2097
2123
  dispose() {
2098
2124
  this.#r = !0, this.#i.abort(), this.#a.clear(), this.#n += 1, this.#e.dispose();
2099
2125
  }
2100
- }, ur = {};
2101
- function dr(e) {
2126
+ }, dr = {};
2127
+ function fr(e) {
2102
2128
  return Object.entries(e).map(([e, t]) => ({
2103
2129
  description: t.description,
2104
2130
  handle: e,
2105
2131
  jsonSchema: t.jsonSchema
2106
2132
  }));
2107
2133
  }
2108
- function fr(e, t) {
2134
+ function pr(e, t) {
2109
2135
  return {
2110
2136
  connector: e,
2111
2137
  description: e.authenticated && e.defaultConnection == null ? t("addNode.connectorNeedsConnection", {
@@ -2113,15 +2139,15 @@ function fr(e, t) {
2113
2139
  service: e.serviceName
2114
2140
  }) : e.description,
2115
2141
  group: t("addNode.connectorActions"),
2116
- icon: oe(e),
2142
+ icon: se(e),
2117
2143
  id: `connector:${e.actionId}`,
2118
- inputs: dr(e.inputs),
2144
+ inputs: fr(e.inputs),
2119
2145
  kind: "connector",
2120
2146
  label: e.name,
2121
- outputs: dr(e.outputs)
2147
+ outputs: fr(e.outputs)
2122
2148
  };
2123
2149
  }
2124
- function pr(e, t) {
2150
+ function mr(e, t) {
2125
2151
  let n = /* @__PURE__ */ new Map();
2126
2152
  for (let t of e) {
2127
2153
  let e = n.get(t.serviceId) ?? [];
@@ -2129,7 +2155,7 @@ function pr(e, t) {
2129
2155
  }
2130
2156
  return [...n.values()].toSorted((e, t) => e[0].serviceName.localeCompare(t[0].serviceName)).map((e) => {
2131
2157
  let n = e[0], r = e.map((e) => {
2132
- let n = fr(e, t);
2158
+ let n = pr(e, t);
2133
2159
  return {
2134
2160
  description: n.description,
2135
2161
  label: n.label,
@@ -2140,7 +2166,7 @@ function pr(e, t) {
2140
2166
  choices: r,
2141
2167
  description: t(r.length == 1 ? "addNode.connectorActionCountOne" : "addNode.connectorActionCount", { count: r.length }),
2142
2168
  group: t("addNode.connectorActions"),
2143
- icon: oe(n),
2169
+ icon: se(n),
2144
2170
  id: `connector-provider:${n.serviceId}`,
2145
2171
  inputs: [],
2146
2172
  kind: "connector-group",
@@ -2150,12 +2176,12 @@ function pr(e, t) {
2150
2176
  };
2151
2177
  });
2152
2178
  }
2153
- function mr(e, t) {
2179
+ function hr(e, t) {
2154
2180
  return {
2155
2181
  choices: [],
2156
2182
  description: t("addNode.connectorBrowseActions"),
2157
2183
  group: t("addNode.connectorActions"),
2158
- icon: oe(e),
2184
+ icon: se(e),
2159
2185
  id: `connector-provider:${e.serviceId}`,
2160
2186
  inputs: [],
2161
2187
  kind: "connector-group",
@@ -2165,7 +2191,7 @@ function mr(e, t) {
2165
2191
  serviceId: e.serviceId
2166
2192
  };
2167
2193
  }
2168
- function hr(e, t) {
2194
+ function gr(e, t) {
2169
2195
  if (e == null) return;
2170
2196
  let n = e.kind == "task" && e.node.task == null ? e.node.taskId : void 0;
2171
2197
  if (n == null) return;
@@ -2177,7 +2203,7 @@ function hr(e, t) {
2177
2203
  taskId: n
2178
2204
  };
2179
2205
  }
2180
- function gr(e, t, r) {
2206
+ function _r(e, t, r) {
2181
2207
  if (e == null) return [];
2182
2208
  let i = [];
2183
2209
  for (let a of [...n(e.revision.content).tasks].toSorted()) {
@@ -2197,7 +2223,7 @@ function gr(e, t, r) {
2197
2223
  }
2198
2224
  return i;
2199
2225
  }
2200
- var _r = class {
2226
+ var vr = class {
2201
2227
  #e;
2202
2228
  #t;
2203
2229
  #n;
@@ -2216,25 +2242,25 @@ var _r = class {
2216
2242
  #h;
2217
2243
  #g;
2218
2244
  constructor(e, t, n, r, i = F(), a = t.catalogs) {
2219
- this.data = a, this.#i = /* @__PURE__ */ new Set(), this.#a = new A(), this.#o = new A(), this.#d = z(ur), this.#f = z([]), this.#p = z([]), this.#g = !1, this.loadConnections = async (e) => {
2245
+ this.data = a, this.#i = /* @__PURE__ */ new Set(), this.#a = new k(), this.#o = new k(), this.#d = z(dr), this.#f = z([]), this.#p = z([]), this.#g = !1, this.loadConnections = async (e) => {
2220
2246
  let t = this.#m.$.flowId.value;
2221
2247
  this.#g || t == null || await u(this.data.connections.get(void 0), e);
2222
2248
  }, this.browseAddNodeOptions = (e) => {
2223
2249
  let t = this.data.providers.get(void 0, this.#n);
2224
- return O(e, (e) => {
2250
+ return oe(e, (e) => {
2225
2251
  let n = e(t), r = e(this.#t.t$);
2226
2252
  return {
2227
2253
  ...n,
2228
- data: n.data?.toSorted((e, t) => e.serviceName.localeCompare(t.serviceName)).map((e) => mr(e, r))
2254
+ data: n.data?.toSorted((e, t) => e.serviceName.localeCompare(t.serviceName)).map((e) => hr(e, r))
2229
2255
  };
2230
2256
  });
2231
2257
  }, this.provideAddNodeOptionChoices = (e, t) => {
2232
2258
  let n = e.slice(19), r = this.data.actions.get(n, void 0, this.#n), i = this.data.providers.get(void 0, this.#n);
2233
- return O(t, (e) => {
2259
+ return oe(t, (e) => {
2234
2260
  let t = e(r), a = e(i).data?.find((e) => e.serviceId == n), o = e(this.#t.t$);
2235
2261
  return {
2236
2262
  ...t,
2237
- data: t.data?.map((e) => fr(j({
2263
+ data: t.data?.map((e) => pr(A({
2238
2264
  ...e,
2239
2265
  ...a == null ? {} : {
2240
2266
  serviceName: a.serviceName,
@@ -2245,17 +2271,17 @@ var _r = class {
2245
2271
  });
2246
2272
  }, this.provideAddNodeOptions = (e, t, n = t) => {
2247
2273
  let r = e.trim();
2248
- if (r.length == 0) return O(t, (e) => ({
2249
- data: pr(Object.values(e(this.$.actions)), e(this.#t.t$)),
2274
+ if (r.length == 0) return oe(t, (e) => ({
2275
+ data: mr(Object.values(e(this.$.actions)), e(this.#t.t$)),
2250
2276
  refreshing: !1,
2251
2277
  error: void 0
2252
2278
  }));
2253
2279
  let i = this.data.actions.search(r, void 0, this.#n, n).get();
2254
- return O(t, (e) => {
2280
+ return oe(t, (e) => {
2255
2281
  let t = e(i), n = e(this.#t.t$);
2256
2282
  return {
2257
2283
  ...t,
2258
- data: t.data?.map((e) => fr(j(e, void 0), n))
2284
+ data: t.data?.map((e) => pr(A(e, void 0), n))
2259
2285
  };
2260
2286
  });
2261
2287
  }, this.retryCatalog = () => {
@@ -2264,18 +2290,18 @@ var _r = class {
2264
2290
  let o = R((e) => {
2265
2291
  let n = e(t.$.flowId);
2266
2292
  return Object.fromEntries(e(this.#f).flatMap((t) => {
2267
- let r = e(k(this.data.actions.detail(t, n, this.#n)));
2268
- return r == null ? [] : [[t, j(r, e(k(this.data.connections.get(r.serviceId, n))))]];
2293
+ let r = e(O(this.data.actions.detail(t, n, this.#n)));
2294
+ return r == null ? [] : [[t, A(r, e(O(this.data.connections.get(r.serviceId, n))))]];
2269
2295
  }));
2270
2296
  }), s = R((e) => {
2271
2297
  let n = e(t.$.flowId);
2272
2298
  return Object.fromEntries(e(this.#p).flatMap((t) => {
2273
- let r = e(k(this.data.connections.get(t, n)));
2274
- return r == null ? [] : [[t, be(r)]];
2299
+ let r = e(O(this.data.connections.get(t, n)));
2300
+ return r == null ? [] : [[t, j(r)]];
2275
2301
  }));
2276
2302
  });
2277
2303
  this.#l = R((e) => {
2278
- let n = hr(e(t.$.selection), e(t.$.revision)), r = e(this.#d);
2304
+ let n = gr(e(t.$.selection), e(t.$.revision)), r = e(this.#d);
2279
2305
  if (n == null) return { authorizationPending: !1 };
2280
2306
  let i = e(o)[n.actionId], a = i == null ? void 0 : e(s)[i.serviceId], c = e(this.data.actions.detail(n.actionId, e(t.$.flowId), this.#n)).error, l = i == null ? void 0 : e(this.data.connections.get(i.serviceId, e(t.$.flowId))).error, u = n.connectionId == null ? void 0 : a?.byId.get(n.connectionId);
2281
2307
  return {
@@ -2290,16 +2316,16 @@ var _r = class {
2290
2316
  connectionError: l == null ? void 0 : M(l, this.#t.t).message
2291
2317
  };
2292
2318
  }), this.$ = {
2293
- pickerConnections: R((e) => e(t.$.flowId) == null ? [] : e(k(this.data.connections.get(void 0))) ?? []),
2319
+ pickerConnections: R((e) => e(t.$.flowId) == null ? [] : e(O(this.data.connections.get(void 0))) ?? []),
2294
2320
  connections: R((e) => {
2295
2321
  let n = e(t.$.flowId);
2296
- return n == null ? [] : e(k(this.data.connections.get(void 0, n))) ?? [];
2322
+ return n == null ? [] : e(O(this.data.connections.get(void 0, n))) ?? [];
2297
2323
  }),
2298
2324
  actionLoading: L(this.#d, (e) => e.actionLoading),
2299
2325
  actions: o,
2300
2326
  catalogs: s,
2301
2327
  connectionLoading: L(this.#d, (e) => e.connectionLoading),
2302
- diagnostics: R((e) => gr(e(t.$.revision), e(o), e(s))),
2328
+ diagnostics: R((e) => _r(e(t.$.revision), e(o), e(s))),
2303
2329
  selectedAction: L(this.#l, (e) => e.action),
2304
2330
  selectedActionError: L(this.#l, (e) => e.actionError),
2305
2331
  selectedActiveConnections: L(this.#l, (e) => e.activeConnections),
@@ -2317,7 +2343,7 @@ var _r = class {
2317
2343
  e == this.#n || this.#g || (this.#n = e, this.reset(), this.#C());
2318
2344
  }
2319
2345
  reset() {
2320
- this.#g || (this.#a.invalidate(), this.#o.invalidate(), this.#h = void 0, this.#i.clear(), this.#d.set(ur), this.#f.set([]), this.#p.set([]));
2346
+ this.#g || (this.#a.invalidate(), this.#o.invalidate(), this.#h = void 0, this.#i.clear(), this.#d.set(dr), this.#f.set([]), this.#p.set([]));
2321
2347
  }
2322
2348
  async resolveAction(e) {
2323
2349
  let t = this.#m.$.flowId.value;
@@ -2325,13 +2351,13 @@ var _r = class {
2325
2351
  await Promise.resolve();
2326
2352
  let n = await u(this.data.actions.detail(e, t, this.#n), void 0, !0), r = n.authenticated ? await u(this.data.connections.get(n.serviceId, t), void 0, !0) : [];
2327
2353
  return this.#b(this.#f, [e]), n.authenticated && this.#b(this.#p, [n.serviceId]), {
2328
- action: j(n, r),
2329
- connections: be(r).active
2354
+ action: A(n, r),
2355
+ connections: j(r).active
2330
2356
  };
2331
2357
  }
2332
2358
  async refresh(e = !1) {
2333
2359
  if (this.#g) return;
2334
- let t = this.#o.begin(), n = this.#m.$.flowId.value, r = hr(this.#m.$.selection.value, this.#m.$.revision.value);
2360
+ let t = this.#o.begin(), n = this.#m.$.flowId.value, r = gr(this.#m.$.selection.value, this.#m.$.revision.value);
2335
2361
  if (n == null || r == null) {
2336
2362
  (this.#d.value.actionLoading != null || this.#d.value.connectionLoading != null) && this.#x({
2337
2363
  actionLoading: void 0,
@@ -2424,7 +2450,7 @@ var _r = class {
2424
2450
  return;
2425
2451
  }
2426
2452
  if (!this.#S(r, e)) return;
2427
- let a = be(i);
2453
+ let a = j(i);
2428
2454
  return this.#b(this.#p, [t]), a;
2429
2455
  }
2430
2456
  async #y(e, t, n) {
@@ -2471,7 +2497,7 @@ var _r = class {
2471
2497
  }
2472
2498
  await Promise.all([...a].map((n) => this.#v(t, n, !1, e)));
2473
2499
  }
2474
- }, vr = class {
2500
+ }, yr = class {
2475
2501
  #e;
2476
2502
  #t;
2477
2503
  constructor(e, t, n) {
@@ -2486,7 +2512,7 @@ var _r = class {
2486
2512
  let n = qe(t);
2487
2513
  if (n.locale != e) throw Error("Unexpected Trigger catalog language.");
2488
2514
  return n;
2489
- }, r = Rn(this.host.catalogCache, "triggers", e);
2515
+ }, r = zn(this.host.catalogCache, "triggers", e);
2490
2516
  t = new f((t, r) => this.client.readCatalog({
2491
2517
  path: `/v1/trigger-keys/catalog?locale=${encodeURIComponent(e)}`,
2492
2518
  decode: n
@@ -2511,8 +2537,8 @@ var _r = class {
2511
2537
  for (let e of this.#t.values()) e.dispose();
2512
2538
  this.#t.clear();
2513
2539
  }
2514
- }, yr = {}, br = "trigger:";
2515
- function xr(e) {
2540
+ }, br = {}, xr = "trigger:";
2541
+ function Sr(e) {
2516
2542
  if (e?.kind != "trigger") return;
2517
2543
  let t = e.trigger;
2518
2544
  if (t.kind == "poll" || t.kind == "integration") return {
@@ -2521,15 +2547,15 @@ function xr(e) {
2521
2547
  triggerId: e.id
2522
2548
  };
2523
2549
  }
2524
- function Sr(e, t, n) {
2550
+ function Cr(e, t, n) {
2525
2551
  return {
2526
2552
  description: n?.description ?? e.description,
2527
2553
  group: t.t("addNode.integrationTriggers"),
2528
- icon: oe({
2554
+ icon: se({
2529
2555
  serviceId: e.provider,
2530
2556
  serviceName: e.provider
2531
2557
  }),
2532
- id: `${br}${e.key}`,
2558
+ id: `${xr}${e.key}`,
2533
2559
  inputs: [],
2534
2560
  kind: "trigger",
2535
2561
  label: n?.displayName ?? e.displayName,
@@ -2546,7 +2572,7 @@ function Sr(e, t, n) {
2546
2572
  }
2547
2573
  };
2548
2574
  }
2549
- var Cr = class {
2575
+ var wr = class {
2550
2576
  #e;
2551
2577
  #t;
2552
2578
  #n;
@@ -2558,12 +2584,12 @@ var Cr = class {
2558
2584
  #c;
2559
2585
  #l;
2560
2586
  constructor(e, t, n, r, i = F()) {
2561
- this.#r = new A(), this.#i = /* @__PURE__ */ new Set(), this.#s = z(yr), this.#l = !1, this.browseAddNodeOptions = (e) => this.#u("", e), this.provideAddNodeOptions = (e, t) => this.#u(e, t), this.catalog = new vr(e, kt([i.lang]), r), this.#e = e, this.#t = r, this.#n = i, this.#o = n, this.#c = t, this.#a = R((e) => {
2562
- let n = e(t.$.selection), r = xr(n), i = e(this.#s);
2587
+ this.#r = new k(), this.#i = /* @__PURE__ */ new Set(), this.#s = z(br), this.#l = !1, this.browseAddNodeOptions = (e) => this.#u("", e), this.provideAddNodeOptions = (e, t) => this.#u(e, t), this.catalog = new yr(e, kt([i.lang]), r), this.#e = e, this.#t = r, this.#n = i, this.#o = n, this.#c = t, this.#a = R((e) => {
2588
+ let n = e(t.$.selection), r = Sr(n), i = e(this.#s);
2563
2589
  if (n?.kind != "trigger") return { authorizationPending: !1 };
2564
2590
  let a = n.trigger;
2565
2591
  if (a.kind != "poll" && a.kind != "integration") return { authorizationPending: !1 };
2566
- let o = r == null ? void 0 : e(t.catalogs.connections.get(r.provider, e(t.$.flowId))).data, s = o == null ? void 0 : be(o), c = r == null ? void 0 : e(t.catalogs.connections.get(r.provider, e(t.$.flowId))).error;
2592
+ let o = r == null ? void 0 : e(t.catalogs.connections.get(r.provider, e(t.$.flowId))).data, s = o == null ? void 0 : j(o), c = r == null ? void 0 : e(t.catalogs.connections.get(r.provider, e(t.$.flowId))).error;
2567
2593
  return {
2568
2594
  activeConnections: s?.active,
2569
2595
  authorizationPending: i.authorizationProvider == r?.provider,
@@ -2586,11 +2612,11 @@ var Cr = class {
2586
2612
  this.#a.dispose(), this.#s.dispose();
2587
2613
  }
2588
2614
  reset() {
2589
- this.#l || (this.#i.clear(), this.#r.invalidate(), this.#s.set(yr));
2615
+ this.#l || (this.#i.clear(), this.#r.invalidate(), this.#s.set(br));
2590
2616
  }
2591
2617
  #u(e, t) {
2592
2618
  let n = this.catalog.get(), r = e.trim().toLowerCase();
2593
- return O(t, (e) => {
2619
+ return oe(t, (e) => {
2594
2620
  let t = e(n);
2595
2621
  e(this.#n.t$);
2596
2622
  let i = e(this.#c.$.flowId) != null && e(this.#c.$.target)?.kind == "flow", a = t.data, o = a?.definitions.filter((e) => !r || [
@@ -2605,13 +2631,13 @@ var Cr = class {
2605
2631
  ].some((e) => e?.toLowerCase().includes(r)));
2606
2632
  return {
2607
2633
  ...t,
2608
- data: i ? o?.map((e) => Sr(e, this.#n, a.display[e.key])) : []
2634
+ data: i ? o?.map((e) => Cr(e, this.#n, a.display[e.key])) : []
2609
2635
  };
2610
2636
  });
2611
2637
  }
2612
2638
  async refresh(e = !1) {
2613
2639
  if (this.#l) return;
2614
- let t = this.#r.begin(), n = this.#c.$.flowId.value, r = xr(this.#c.$.selection.value);
2640
+ let t = this.#r.begin(), n = this.#c.$.flowId.value, r = Sr(this.#c.$.selection.value);
2615
2641
  if (n == null || r == null) {
2616
2642
  this.#s.value.connectionLoading != null && this.#d({ connectionLoading: void 0 });
2617
2643
  return;
@@ -2654,7 +2680,7 @@ var Cr = class {
2654
2680
  async refreshAfterAuthorization() {
2655
2681
  if (this.#l) return;
2656
2682
  let e = this.#s.value.authorizationProvider;
2657
- e != null && (this.#i.add(e), this.#d({ authorizationProvider: void 0 }), xr(this.#c.$.selection.value)?.provider == e && await this.refresh(!0));
2683
+ e != null && (this.#i.add(e), this.#d({ authorizationProvider: void 0 }), Sr(this.#c.$.selection.value)?.provider == e && await this.refresh(!0));
2658
2684
  }
2659
2685
  #d(e) {
2660
2686
  this.#l || this.#s.set({
@@ -2668,7 +2694,7 @@ var Cr = class {
2668
2694
  };
2669
2695
  //#endregion
2670
2696
  //#region src/flow/common/inverseChanges.ts
2671
- function wr(e, t) {
2697
+ function Tr(e, t) {
2672
2698
  let n = e, r = [];
2673
2699
  for (let e of t) {
2674
2700
  let t = lt(n, [e]), i = [];
@@ -2926,7 +2952,7 @@ function wr(e, t) {
2926
2952
  }
2927
2953
  //#endregion
2928
2954
  //#region src/workbench/browser/runtime/editor/nodeClipboard.ts
2929
- function Tr(e, t, n) {
2955
+ function Er(e, t, n) {
2930
2956
  let r = e.graph(t)?.nodes ?? {}, i = Object.fromEntries(n.flatMap((e) => r[e] == null ? [] : [[e, r[e]]]));
2931
2957
  return {
2932
2958
  edges: (e.graph(t)?.edges ?? []).filter((e) => i[e.source] != null && i[e.target] != null),
@@ -2943,7 +2969,7 @@ function Tr(e, t, n) {
2943
2969
  nodes: i
2944
2970
  };
2945
2971
  }
2946
- function Er(e, t, n, r) {
2972
+ function Dr(e, t, n, r) {
2947
2973
  if (e.graph(t) == null) return {
2948
2974
  changes: [],
2949
2975
  nodeIds: [],
@@ -3064,7 +3090,7 @@ function Er(e, t, n, r) {
3064
3090
  }
3065
3091
  //#endregion
3066
3092
  //#region src/workbench/browser/runtime/stores/canvasHistory.ts
3067
- var Dr = class {
3093
+ var Or = class {
3068
3094
  constructor() {
3069
3095
  this.state$ = z({
3070
3096
  canUndo: !1,
@@ -3130,7 +3156,7 @@ var Dr = class {
3130
3156
  };
3131
3157
  //#endregion
3132
3158
  //#region src/workbench/browser/runtime/stores/draftChanges.ts
3133
- function Or(e, t) {
3159
+ function kr(e, t) {
3134
3160
  if (e.length != 1 || t.length != 1) return;
3135
3161
  let n = e[0], r = t[0];
3136
3162
  if (n?.kind == "graph.node.field.set" && r?.kind == "graph.node.field.set") return n.nodeId != r.nodeId || n.field != r.field || n.target.kind != r.target.kind || n.target.kind == "subflow" && (r.target.kind != "subflow" || n.target.id != r.target.id) ? void 0 : [{
@@ -3150,7 +3176,7 @@ function Or(e, t) {
3150
3176
  value: r.value
3151
3177
  }];
3152
3178
  }
3153
- var kr = class {
3179
+ var Ar = class {
3154
3180
  #e;
3155
3181
  #t;
3156
3182
  #n;
@@ -3200,7 +3226,7 @@ var kr = class {
3200
3226
  return this.#s = t, t;
3201
3227
  }
3202
3228
  async change(e, t, n, r = !0) {
3203
- let i = this.#o.at(-1), a = i == null || i.started || !i.active ? void 0 : Or(i.changes, n);
3229
+ let i = this.#o.at(-1), a = i == null || i.started || !i.active ? void 0 : kr(i.changes, n);
3204
3230
  if (i != null && a != null) return i.changes = a, this.#a != null && this.#t.apply(this.project(this.#a)), i.result;
3205
3231
  this.#t.beforeChange(r);
3206
3232
  let o = {
@@ -3261,7 +3287,7 @@ var kr = class {
3261
3287
  #u(e) {
3262
3288
  e.active = !1, this.#o = this.#o.filter((t) => t !== e), !(!this.#t.current(e) || this.#a == null) && this.#t.apply(this.project(this.#a));
3263
3289
  }
3264
- }, Ar = 50, jr = {
3290
+ }, jr = 50, Mr = {
3265
3291
  failed: !1,
3266
3292
  loaded: !1,
3267
3293
  loading: !0,
@@ -3269,12 +3295,12 @@ var kr = class {
3269
3295
  loadMoreFailed: !1,
3270
3296
  refreshing: !1,
3271
3297
  flows: []
3272
- }, Mr = class {
3298
+ }, Nr = class {
3273
3299
  #e;
3274
3300
  #t;
3275
- #n = new A();
3301
+ #n = new k();
3276
3302
  #r;
3277
- #i = z(jr);
3303
+ #i = z(Mr);
3278
3304
  #a = new AbortController();
3279
3305
  #o = /* @__PURE__ */ new Set();
3280
3306
  #s = !1;
@@ -3321,7 +3347,7 @@ var kr = class {
3321
3347
  try {
3322
3348
  let t = await this.#e.listFlows({
3323
3349
  includeTotal: !0,
3324
- limit: Ar
3350
+ limit: jr
3325
3351
  });
3326
3352
  if (!e()) return;
3327
3353
  this.#c({
@@ -3352,7 +3378,7 @@ var kr = class {
3352
3378
  try {
3353
3379
  let e = await this.#e.listFlows({
3354
3380
  cursor: t,
3355
- limit: Ar
3381
+ limit: jr
3356
3382
  });
3357
3383
  if (!r()) return;
3358
3384
  let n = new Set(this.#i.value.flows.map((e) => e.flowId));
@@ -3444,7 +3470,7 @@ var kr = class {
3444
3470
  ...e
3445
3471
  });
3446
3472
  }
3447
- }, Nr = class {
3473
+ }, Pr = class {
3448
3474
  #e = /* @__PURE__ */ new Map();
3449
3475
  #t;
3450
3476
  #n = !1;
@@ -3511,11 +3537,11 @@ var kr = class {
3511
3537
  phase: "saving"
3512
3538
  }, this.#c();
3513
3539
  try {
3514
- let t = await sn(i);
3540
+ let t = await cn(i);
3515
3541
  if (this.#n || !e()) return !1;
3516
3542
  let a = this.#r.value.draft?.content.modules[n];
3517
3543
  if (a == null || a.source != r.base.source || JSON.stringify(a.imports) != JSON.stringify(r.base.imports)) throw Error(this.#o.t("notice.moduleUpdated"));
3518
- let o = i == a.source && JSON.stringify(t) == JSON.stringify(a.imports) ? this.#r.value.draft : await this.changeDraft(cn(n, r.base.source, r.base.imports, i, t));
3544
+ let o = i == a.source && JSON.stringify(t) == JSON.stringify(a.imports) ? this.#r.value.draft : await this.changeDraft(ln(n, r.base.source, r.base.imports, i, t));
3519
3545
  if (this.#n || !e()) return !1;
3520
3546
  let s = this.#e.get(n);
3521
3547
  if (s == null) continue;
@@ -3555,7 +3581,7 @@ var kr = class {
3555
3581
  #c() {
3556
3582
  this.#n || this.#r.set(this.state(this.#r.value.moduleEditor));
3557
3583
  }
3558
- }, Pr = class {
3584
+ }, Fr = class {
3559
3585
  #e;
3560
3586
  #t;
3561
3587
  #n;
@@ -3625,22 +3651,22 @@ var kr = class {
3625
3651
  value: n
3626
3652
  });
3627
3653
  }
3628
- }, Fr = {
3654
+ }, Ir = {
3629
3655
  checkLoading: !1,
3630
3656
  selectedNodeIds: [],
3631
3657
  workspaceLoadFailed: !1,
3632
3658
  workspaceLoading: !1,
3633
3659
  workspaceRepairing: !1
3634
3660
  };
3635
- function Ir(e) {
3661
+ function Lr(e) {
3636
3662
  return e.workspaceLoading ? "loading" : e.moduleSaveStatus == null ? e.busy == "designer" ? "saving" : e.draft == null ? "noDraft" : "saved" : e.moduleSaveStatus;
3637
3663
  }
3638
- function Lr(e, t) {
3664
+ function Rr(e, t) {
3639
3665
  if (t.phase != null) return t.phase;
3640
3666
  let n = e?.content.modules[t.moduleId];
3641
3667
  return n == null ? "failed" : t.source == n.source ? "saved" : "dirty";
3642
3668
  }
3643
- function Rr(e, t, n) {
3669
+ function zr(e, t, n) {
3644
3670
  if (e == null || t == null || n.length != 1) return;
3645
3671
  let r = e.node(t, n[0]);
3646
3672
  if (!(r?.kind != "task" || r.definition == null || !("moduleId" in r.definition) || r.module == null)) return {
@@ -3648,9 +3674,9 @@ function Rr(e, t, n) {
3648
3674
  source: r.module.source
3649
3675
  };
3650
3676
  }
3651
- var zr = class {
3677
+ var Br = class {
3652
3678
  #e;
3653
- #t = z(Fr);
3679
+ #t = z(Ir);
3654
3680
  #n;
3655
3681
  constructor(e, t) {
3656
3682
  let n = L(this.#t, (e) => e.busy), r = L(this.#t, (e) => e.checkLoading), i = L(this.#t, (e) => e.diagnosticFocus), a = L(this.#t, (e) => e.diagnostics), o = L(this.#t, (e) => e.draft), c = L(this.#t, (e) => {
@@ -3658,7 +3684,7 @@ var zr = class {
3658
3684
  let { phase: t, ...n } = e.moduleEditor;
3659
3685
  return {
3660
3686
  ...n,
3661
- status: Lr(e.draft, e.moduleEditor)
3687
+ status: Rr(e.draft, e.moduleEditor)
3662
3688
  };
3663
3689
  }), l = L(this.#t, (e) => e.nodeFocus), u = L(this.#t, (e) => e.presentation), d = L(this.#t, (e) => e.flowId), f = L(this.#t, (e) => e.live), p = L(this.#t, (e) => e.draft == null ? void 0 : N(e.draft)), m = L(this.#t, (e) => e.selectedNodeIds), h = L(this.#t, (e) => e.target), g = L(this.#t, (e) => e.workspaceLoadFailed), _ = L(this.#t, (e) => e.workspaceLoadProblem), v = L(this.#t, (e) => e.workspaceLoading), y = L(this.#t, (e) => e.workspaceRepairing);
3664
3690
  this.#e = L(this.#t, (e) => ({
@@ -3700,7 +3726,7 @@ var zr = class {
3700
3726
  revision: p,
3701
3727
  selection: b,
3702
3728
  selectedNodeIds: m,
3703
- status: L(this.#t, Ir),
3729
+ status: L(this.#t, Lr),
3704
3730
  target: h,
3705
3731
  targetFlow: R((e) => e(h)?.kind == "flow" ? e(t.$.flows).find((t) => t.flowId == e(d)) : void 0),
3706
3732
  targetName: L(this.#t, (e) => {
@@ -3725,10 +3751,10 @@ var zr = class {
3725
3751
  for (let e of Object.values(this.$)) this.#n.has(e) || e.dispose();
3726
3752
  this.#e.dispose(), this.#t.dispose();
3727
3753
  }
3728
- }, Br = {
3754
+ }, Vr = {
3729
3755
  x: 40,
3730
3756
  y: 40
3731
- }, Vr = {
3757
+ }, Hr = {
3732
3758
  field: "history.deleted.field",
3733
3759
  group: "history.deleted.group",
3734
3760
  objectItem: "history.deleted.objectItem",
@@ -3739,10 +3765,10 @@ var zr = class {
3739
3765
  conditionGroup: "history.deleted.conditionGroup",
3740
3766
  webhookBody: "history.deleted.webhookBody"
3741
3767
  };
3742
- function Hr(e, t) {
3768
+ function Ur(e, t) {
3743
3769
  if (t != null) return t.kind == "flow" || e.subflow(t.id) != null ? t : { kind: "flow" };
3744
3770
  }
3745
- var Ur = class {
3771
+ var Wr = class {
3746
3772
  #e;
3747
3773
  #t;
3748
3774
  #n;
@@ -3767,8 +3793,8 @@ var Ur = class {
3767
3793
  #x;
3768
3794
  #S;
3769
3795
  #C;
3770
- constructor(e, t, n = ln, r = F(), i = () => {}, a = new sr(e), o = () => {}, s = () => {}) {
3771
- this.catalogs = a, this.flowCreated = o, this.accessChanged = s, this.#n = new A(), this.#d = new Dr(), this.history$ = this.#d.state$, this.#m = 0, this.#h = 0, this.#g = !1, this.#_ = !1, this.#v = !1, this.#y = !1, this.#b = 0, this.#e = e, this.#c = t, this.#i = n, this.#r = r, this.#s = i, this.#o = new Mr(e, t, r), this.#l = new zr(r, this.#o), this.#u = new Nr(this.#l, this.#n, (e) => this.#k(e), t, r), this.#t = new kr(e, t, r, {
3796
+ constructor(e, t, n = un, r = F(), i = () => {}, a = new cr(e), o = () => {}, s = () => {}) {
3797
+ this.catalogs = a, this.flowCreated = o, this.accessChanged = s, this.#n = new k(), this.#d = new Or(), this.history$ = this.#d.state$, this.#m = 0, this.#h = 0, this.#g = !1, this.#_ = !1, this.#v = !1, this.#y = !1, this.#b = 0, this.#e = e, this.#c = t, this.#i = n, this.#r = r, this.#s = i, this.#o = new Nr(e, t, r), this.#l = new Br(r, this.#o), this.#u = new Pr(this.#l, this.#n, (e) => this.#k(e), t, r), this.#t = new Ar(e, t, r, {
3772
3798
  apply: (e) => this.#j(e, "local"),
3773
3799
  beforeChange: (e) => {
3774
3800
  e && this.#H({ busy: "designer" });
@@ -3780,7 +3806,7 @@ var Ur = class {
3780
3806
  },
3781
3807
  headChanged: (e, t) => this.#o.advanceHead(e, t),
3782
3808
  recover: (e) => (this.retryHistorySync(), this.#R(e, !0))
3783
- }), this.#a = new Pr(e, t, (e) => this.#H({ presentation: e }), r), this.$ = this.#l.$;
3809
+ }), this.#a = new Fr(e, t, (e) => this.#H({ presentation: e }), r), this.$ = this.#l.$;
3784
3810
  }
3785
3811
  dispose() {
3786
3812
  this.catalogs.dispose(), this.#_ = !0, this.#u.dispose(), this.#n.invalidate(), this.#a.dispose(), this.#S?.(), this.#C?.(), this.history$.dispose(), this.#l.dispose(), this.#o.dispose();
@@ -3911,7 +3937,7 @@ var Ur = class {
3911
3937
  selectNodes(e) {
3912
3938
  return e.length == this.#l.value.selectedNodeIds.length && e.every((e, t) => e == this.#l.value.selectedNodeIds[t]) ? !0 : (this.#u.flush(), this.#H({
3913
3939
  diagnosticFocus: void 0,
3914
- moduleEditor: Rr(this.#l.value.draft == null ? void 0 : N(this.#l.value.draft), this.#l.value.target, e),
3940
+ moduleEditor: zr(this.#l.value.draft == null ? void 0 : N(this.#l.value.draft), this.#l.value.target, e),
3915
3941
  nodeFocus: void 0,
3916
3942
  selectedNodeIds: e
3917
3943
  }), !0);
@@ -3988,7 +4014,7 @@ var Ur = class {
3988
4014
  let e = await u(this.catalogs.connections.get(s.definition.provider, r.flowId));
3989
4015
  s = {
3990
4016
  ...s,
3991
- connectionId: be(e).preferred?.connectionId
4017
+ connectionId: j(e).preferred?.connectionId
3992
4018
  };
3993
4019
  } catch (e) {
3994
4020
  !this.#_ && this.#l.value.draft == r && this.#c(M(e, this.#r.t));
@@ -3997,12 +4023,12 @@ var Ur = class {
3997
4023
  }
3998
4024
  let c = n?.(a), l = Be(o, i, a, s, this.#i);
3999
4025
  if (l == null) return;
4000
- let d = c == null ? l : [...l, ...rn(P(r, l).content, i, {
4026
+ let d = c == null ? l : [...l, ...an(P(r, l).content, i, {
4001
4027
  source: c.source,
4002
4028
  target: c.target,
4003
4029
  ...c.sourceHandle.startsWith("$branch:") ? { sourceHandle: c.sourceHandle.slice(8) } : {}
4004
4030
  })];
4005
- if (await this.#P("add", 1, d, (e) => he(e, i, { [a]: t }), [a]) && !this.#_) return this.#H({ nodeFocus: {
4031
+ if (await this.#P("add", 1, d, (e) => ge(e, i, { [a]: t }), [a]) && !this.#_) return this.#H({ nodeFocus: {
4006
4032
  nodeId: a,
4007
4033
  requestId: ++this.#b
4008
4034
  } }), a;
@@ -4010,7 +4036,7 @@ var Ur = class {
4010
4036
  async connect(e) {
4011
4037
  let t = this.$.revision.value, n = this.#l.value.target;
4012
4038
  if (t == null || n == null) return;
4013
- let r = rn(t.revision.content, n, {
4039
+ let r = an(t.revision.content, n, {
4014
4040
  source: e.source,
4015
4041
  target: e.target,
4016
4042
  ...e.sourceHandle.startsWith("$branch:") ? { sourceHandle: e.sourceHandle.slice(8) } : {}
@@ -4020,7 +4046,7 @@ var Ur = class {
4020
4046
  async disconnect(e) {
4021
4047
  let t = this.$.revision.value, n = this.#l.value.target;
4022
4048
  if (t == null || n == null) return;
4023
- let r = an(t.revision.content, n, {
4049
+ let r = on(t.revision.content, n, {
4024
4050
  source: e.source,
4025
4051
  target: e.target,
4026
4052
  ...e.sourceHandle.startsWith("$branch:") ? { sourceHandle: e.sourceHandle.slice(8) } : {}
@@ -4031,7 +4057,7 @@ var Ur = class {
4031
4057
  if (!await this.saveModuleEditor()) return;
4032
4058
  let e = this.$.revision.value, t = this.#l.value.target;
4033
4059
  if (e == null || t == null || this.#l.value.selectedNodeIds.length == 0) return;
4034
- let n = [...this.#l.value.selectedNodeIds], r = Me(this.#l.value.presentation?.value ?? {}, t), i = new Set(this.#l.value.selectedNodeIds.filter((e) => r.has(e))), a = pe(e, t, this.#l.value.selectedNodeIds);
4060
+ let n = [...this.#l.value.selectedNodeIds], r = Me(this.#l.value.presentation?.value ?? {}, t), i = new Set(this.#l.value.selectedNodeIds.filter((e) => r.has(e))), a = me(e, t, this.#l.value.selectedNodeIds);
4035
4061
  await this.#P("delete", this.#l.value.selectedNodeIds.length, a, (e) => {
4036
4062
  let r = i.size == 0 ? e : we(e, t, i);
4037
4063
  for (let e of n) r = Ze(r, t, e, !1);
@@ -4050,14 +4076,14 @@ var Ur = class {
4050
4076
  sourceId: e.id,
4051
4077
  title: e.title
4052
4078
  }] : []),
4053
- nodes: Tr(e, t, this.#l.value.selectedNodeIds)
4079
+ nodes: Er(e, t, this.#l.value.selectedNodeIds)
4054
4080
  };
4055
4081
  }
4056
- async pasteNodes(e, t = Br) {
4082
+ async pasteNodes(e, t = Vr) {
4057
4083
  if (!await this.saveModuleEditor()) return;
4058
4084
  let n = this.$.revision.value, r = this.#l.value.target;
4059
4085
  if (n == null || r == null || this.#p == null) return;
4060
- let i = new Set(this.#p.hiddenNodeIds), a = Er(n, r, this.#p.nodes, this.#i), o = this.#p.comments.map((e) => ({
4086
+ let i = new Set(this.#p.hiddenNodeIds), a = Dr(n, r, this.#p.nodes, this.#i), o = this.#p.comments.map((e) => ({
4061
4087
  ...e,
4062
4088
  nodeId: this.#i()
4063
4089
  }));
@@ -4075,9 +4101,9 @@ var Ur = class {
4075
4101
  }];
4076
4102
  }));
4077
4103
  await this.#P("paste", c.size, a.changes, (e) => {
4078
- let n = he(e, r, f);
4104
+ let n = ge(e, r, f);
4079
4105
  for (let [e, t] of a.sourceIds.entries()) i.has(t) && (n = Ze(n, r, a.nodeIds[e], !0));
4080
- for (let e of o) i.has(e.sourceId) && (n = Ze(n, r, e.nodeId, !0)), n = fe(n, r, e.nodeId, {
4106
+ for (let e of o) i.has(e.sourceId) && (n = Ze(n, r, e.nodeId, !0)), n = pe(n, r, e.nodeId, {
4081
4107
  content: e.content,
4082
4108
  position: {
4083
4109
  x: e.position.x + t.x * d,
@@ -4106,13 +4132,13 @@ var Ur = class {
4106
4132
  async saveNodeIcon(e, t) {
4107
4133
  let n = this.$.revision.value, r = this.#l.value.target;
4108
4134
  if (n == null || r == null) return !1;
4109
- let i = _e(n, r, e, t);
4135
+ let i = ve(n, r, e, t);
4110
4136
  return i != null && await this.#E(i) != null;
4111
4137
  }
4112
4138
  async saveNodeTitle(e, t) {
4113
4139
  let n = this.$.revision.value, r = this.#l.value.target;
4114
4140
  if (n == null || r == null) return !1;
4115
- let i = ye(n, r, e, t);
4141
+ let i = be(n, r, e, t);
4116
4142
  return i != null && await this.#E(i) != null;
4117
4143
  }
4118
4144
  async setInputValue(e, t, n, r) {
@@ -4149,7 +4175,7 @@ var Ur = class {
4149
4175
  async setInputVariable(e, t, n) {
4150
4176
  let r = this.$.revision.value, i = this.#l.value.target;
4151
4177
  if (r == null || i == null) return !1;
4152
- let a = n == null ? Re(r, i, e, t, void 0) : ge(r, i, e, t, n, this.#i());
4178
+ let a = n == null ? Re(r, i, e, t, void 0) : _e(r, i, e, t, n, this.#i());
4153
4179
  return a != null && await this.#E(a) != null;
4154
4180
  }
4155
4181
  async saveCondition(e, t, n) {
@@ -4178,7 +4204,7 @@ var Ur = class {
4178
4204
  let n = this.#l.value.target;
4179
4205
  if (n == null) return;
4180
4206
  let r = this.#z().nodes.find((t) => t.id == e)?.position;
4181
- r != null && await this.#P("edit", 1, [], (i) => fe(i, n, e, {
4207
+ r != null && await this.#P("edit", 1, [], (i) => pe(i, n, e, {
4182
4208
  ...t,
4183
4209
  position: r
4184
4210
  }));
@@ -4198,7 +4224,7 @@ var Ur = class {
4198
4224
  async saveTaskAdditionalInputs(e, t, n, r) {
4199
4225
  let i = this.$.revision.value, a = this.#l.value.target;
4200
4226
  if (i == null || a == null) return !1;
4201
- let o = ue(i, a, e, t, r);
4227
+ let o = de(i, a, e, t, r);
4202
4228
  return o != null && await this.#E(o, n) != null;
4203
4229
  }
4204
4230
  async setConnectorConnection(e, t) {
@@ -4265,7 +4291,7 @@ var Ur = class {
4265
4291
  async saveWebhook(e, t, n) {
4266
4292
  let r = this.$.revision.value, i = this.#l.value.target;
4267
4293
  if (r == null || i?.kind != "flow") return !1;
4268
- let a = me(r, i, e, t);
4294
+ let a = he(r, i, e, t);
4269
4295
  return a != null && await this.#E(a, n) != null;
4270
4296
  }
4271
4297
  async setTriggerConnection(e, t) {
@@ -4301,7 +4327,7 @@ var Ur = class {
4301
4327
  }
4302
4328
  async moveNodes(e) {
4303
4329
  let t = this.#l.value.target;
4304
- t != null && await this.#P("move", Object.keys(e).length, [], (n) => he(n, t, e));
4330
+ t != null && await this.#P("move", Object.keys(e).length, [], (n) => ge(n, t, e));
4305
4331
  }
4306
4332
  async moveViewport(e) {
4307
4333
  let t = this.#l.value.target;
@@ -4336,7 +4362,7 @@ var Ur = class {
4336
4362
  let t = /#(\d+)$/.exec(e.title);
4337
4363
  return t == null ? [] : [Number(t[1])];
4338
4364
  }));
4339
- if (!(!await this.#P("add", 1, [], (i) => fe(i, e, t, {
4365
+ if (!(!await this.#P("add", 1, [], (i) => pe(i, e, t, {
4340
4366
  content: "",
4341
4367
  position: n,
4342
4368
  title: this.#r.t("addNode.commentName", { number: r + 1 })
@@ -4348,7 +4374,7 @@ var Ur = class {
4348
4374
  #D(e, t) {
4349
4375
  this.#c({
4350
4376
  kind: "success",
4351
- message: "name" in e ? this.#r.t(Vr[e.target], { name: e.name }) : this.#r.t(Vr[e.target]),
4377
+ message: "name" in e ? this.#r.t(Hr[e.target], { name: e.name }) : this.#r.t(Hr[e.target]),
4352
4378
  undo: {
4353
4379
  label: this.#r.t("history.undo"),
4354
4380
  run: async () => {
@@ -4403,11 +4429,11 @@ var Ur = class {
4403
4429
  e() && this.#I();
4404
4430
  }
4405
4431
  #j(e, t) {
4406
- let n = this.#l.value.draft, { revision: r, selectedNodeIds: i, target: a } = this.#B(e), o = this.#l.value.moduleEditor, s = o != null && (t == "external" || n != null) && Lr(n, o) != "saved", c;
4432
+ let n = this.#l.value.draft, { revision: r, selectedNodeIds: i, target: a } = this.#B(e), o = this.#l.value.moduleEditor, s = o != null && (t == "external" || n != null) && Rr(n, o) != "saved", c;
4407
4433
  return c = s ? t == "external" ? {
4408
4434
  ...o,
4409
4435
  phase: "failed"
4410
- } : o : Rr(r, a, i), this.#H({
4436
+ } : o : zr(r, a, i), this.#H({
4411
4437
  draft: e,
4412
4438
  moduleEditor: c,
4413
4439
  selectedNodeIds: i,
@@ -4441,7 +4467,7 @@ var Ur = class {
4441
4467
  if (o == null || s == null || c == null) return !1;
4442
4468
  let u = r?.(c.value) ?? c.value, d = Ie(c.value, u, s);
4443
4469
  if (U(P(o, n).content, o.content) && d.nodeIds.length == 0) return !0;
4444
- let f = this.#d.generation, p = wr(o.content, n);
4470
+ let f = this.#d.generation, p = Tr(o.content, n);
4445
4471
  this.#d.pending++;
4446
4472
  let m = {
4447
4473
  action: e,
@@ -4591,7 +4617,7 @@ var Ur = class {
4591
4617
  return h(e.draft, e.target, e.presentation?.value, e.diagnostics?.diagnostics, {}, {}, this.#r.t);
4592
4618
  }
4593
4619
  #B(e) {
4594
- let t = N(e), n = Hr(t, this.#l.value.target);
4620
+ let t = N(e), n = Ur(t, this.#l.value.target);
4595
4621
  return {
4596
4622
  revision: t,
4597
4623
  selectedNodeIds: this.#l.value.selectedNodeIds.filter((e) => n != null && t.selection(n, e) != null),
@@ -4612,13 +4638,13 @@ var Ur = class {
4612
4638
  };
4613
4639
  //#endregion
4614
4640
  //#region src/workbench/browser/runtime/stores/workbenchStore.ts
4615
- function Wr(e) {
4641
+ function Gr(e) {
4616
4642
  return new Map(e.nodes.map((e) => [e.id, e]));
4617
4643
  }
4618
- function Gr(e, t) {
4644
+ function Kr(e, t) {
4619
4645
  return e == null || t == null ? [] : N(e).designerInputs(t);
4620
4646
  }
4621
- function Kr(e, t, n, r, i) {
4647
+ function qr(e, t, n, r, i) {
4622
4648
  if (e == null || t?.kind != "flow" || n?.revisionId != e.revisionId || n.flowId != e.flowId) return /* @__PURE__ */ new Map();
4623
4649
  let a = r.find((t) => t.kind == "run.started" && t.payload.flowId == e.flowId)?.payload.scopeId;
4624
4650
  return typeof a == "string" ? new Map(r.flatMap((t) => {
@@ -4626,7 +4652,7 @@ function Kr(e, t, n, r, i) {
4626
4652
  return t.payload.scopeId == a && t.payload.flowId == e.flowId && typeof n == "string" && i.has(n) ? [[t.sequence, n]] : [];
4627
4653
  })) : /* @__PURE__ */ new Map();
4628
4654
  }
4629
- var qr = { openExternalPage: async () => !1 }, Jr = class {
4655
+ var Jr = { openExternalPage: async () => !1 }, Yr = class {
4630
4656
  #e;
4631
4657
  #t;
4632
4658
  #n;
@@ -4645,20 +4671,20 @@ var qr = { openExternalPage: async () => !1 }, Jr = class {
4645
4671
  #f;
4646
4672
  #p;
4647
4673
  #m;
4648
- constructor(e, t, n = I, r = F(), i = qr, a = !0) {
4649
- this.#t = new A(), this.#r = z(), this.#a = z([]), this.#o = z(!1), this.#s = z(!1), this.#c = !0, this.#u = z([]), this.#d = !1, this.#f = !1, this.#m = Promise.resolve(), this.retryCatalog = () => {
4674
+ constructor(e, t, n = I, r = F(), i = Jr, a = !0) {
4675
+ this.#t = new k(), this.#r = z(), this.#a = z([]), this.#o = z(!1), this.#s = z(!1), this.#c = !0, this.#u = z([]), this.#d = !1, this.#f = !1, this.#m = Promise.resolve(), this.retryCatalog = () => {
4650
4676
  this.connectors.retryCatalog(), this.triggers.catalog.retry();
4651
- }, this.provideAddNodeOptions = (e, t, n = t) => Qe(t, [this.triggers.provideAddNodeOptions(e, t), this.connectors.provideAddNodeOptions(e, t, n)]), this.browseAddNodeOptions = (e) => Qe(e, [this.triggers.browseAddNodeOptions(e), this.connectors.browseAddNodeOptions(e)]), this.provideAddNodeOptionChoices = (e, t) => this.connectors.provideAddNodeOptionChoices(e, t), this.actors = new En(i.resolveActor), this.preferences = t, this.interactiveMode$ = z(On(t)), this.interactiveMode$.reaction((e) => kn(t, e), !0), this.#e = e, this.results = e, this.#n = r, this.#i = a;
4677
+ }, this.provideAddNodeOptions = (e, t, n = t) => Qe(t, [this.triggers.provideAddNodeOptions(e, t), this.connectors.provideAddNodeOptions(e, t, n)]), this.browseAddNodeOptions = (e) => Qe(e, [this.triggers.browseAddNodeOptions(e), this.connectors.browseAddNodeOptions(e)]), this.provideAddNodeOptionChoices = (e, t) => this.connectors.provideAddNodeOptionChoices(e, t), this.actors = new Dn(i.resolveActor), this.preferences = t, this.interactiveMode$ = z(kn(t)), this.interactiveMode$.reaction((e) => An(t, e), !0), this.#e = e, this.results = e, this.#n = r, this.#i = a;
4652
4678
  let o = (e) => {
4653
4679
  this.#d || this.#r.set(e);
4654
4680
  };
4655
- this.connectorAccess = new lr(e, o, r, (e) => this.workspace.catalogs.refreshFlow(e)), this.runs = new Ve(e, o, r), this.workspace = new Ur(e, o, ln, r, (t) => {
4681
+ this.connectorAccess = new ur(e, o, r, (e) => this.workspace.catalogs.refreshFlow(e)), this.runs = new Ve(e, o, r), this.workspace = new Wr(e, o, un, r, (t) => {
4656
4682
  t.kind == "run.created" ? this.#_(e, t) : this.runs.changed(t.runId);
4657
- }, new sr(e, i.catalogCache, i.connectionCache), (e) => void this.#h(e), (e) => {
4683
+ }, new cr(e, i.catalogCache, i.connectionCache), (e) => void this.#h(e), (e) => {
4658
4684
  this.connectorAccess.changed(e), this.workspace.catalogs.refreshFlow(e);
4659
4685
  }), this.#p = this.workspace.$.flowId.reaction((e) => {
4660
4686
  this.#m = this.connectorAccess.load(e);
4661
- }), this.connectors = new _r(e, this.workspace, o, i, r), this.triggers = new Cr(e, this.workspace, o, i, r), this.publications = new hn(e, this.workspace, o, t, n, r), this.runRequests = new Tn(e, this.runs, o, async (e) => {
4687
+ }), this.connectors = new vr(e, this.workspace, o, i, r), this.triggers = new wr(e, this.workspace, o, i, r), this.publications = new gn(e, this.workspace, o, t, n, r), this.runRequests = new En(e, this.runs, o, async (e) => {
4662
4688
  if (!(e != this.workspace.$.flowId.value || !await this.workspace.saveModuleEditor() || this.#d || e != this.workspace.$.flowId.value)) return this.workspace.$.draft.value?.revisionId;
4663
4689
  }, r, n);
4664
4690
  let s = R((e) => {
@@ -4673,8 +4699,8 @@ var qr = { openExternalPage: async () => !1 }, Jr = class {
4673
4699
  }), c = /* @__PURE__ */ new Map(), l, u = R((e) => {
4674
4700
  let t = e(this.workspace.$.draft);
4675
4701
  l != t?.flowId && (c.clear(), l = t?.flowId);
4676
- let n = e(this.workspace.$.target), i = e(this.workspace.$.presentation)?.value, a = e(s)?.diagnostics ?? e(this.connectors.$.diagnostics), o = t == null ? void 0 : e(k(this.workspace.catalogs.providers.get(t.flowId, r.lang))), u = Object.fromEntries((o ?? []).map((e) => [e.serviceId, e])), d = e(this.connectors.$.actions), f = e(this.connectors.$.catalogs), p = e(r.t$), m = e(this.runs.$.run), g = e(this.runs.$.events), _ = n == null ? "" : n.kind == "flow" ? "flow" : `subflow:${n.id}`, v = [
4677
- ...Gr(t, n),
4702
+ let n = e(this.workspace.$.target), i = e(this.workspace.$.presentation)?.value, a = e(s)?.diagnostics ?? e(this.connectors.$.diagnostics), o = t == null ? void 0 : e(O(this.workspace.catalogs.providers.get(t.flowId, r.lang))), u = Object.fromEntries((o ?? []).map((e) => [e.serviceId, e])), d = e(this.connectors.$.actions), f = e(this.connectors.$.catalogs), p = e(r.t$), m = e(this.runs.$.run), g = e(this.runs.$.events), _ = n == null ? "" : n.kind == "flow" ? "flow" : `subflow:${n.id}`, v = [
4703
+ ...Kr(t, n),
4678
4704
  i == null || n == null ? void 0 : Je(i, n),
4679
4705
  a,
4680
4706
  d,
@@ -4691,7 +4717,7 @@ var qr = { openExternalPage: async () => !1 }, Jr = class {
4691
4717
  graph: b,
4692
4718
  inputs: v
4693
4719
  }), b;
4694
- }), d = L(u, Wr);
4720
+ }), d = L(u, Gr);
4695
4721
  this.$ = {
4696
4722
  connectorSetupPending: R((e) => {
4697
4723
  let t = e(this.workspace.$.flowId), n = e(this.workspace.$.target), r = e(this.workspace.$.selection);
@@ -4710,14 +4736,14 @@ var qr = { openExternalPage: async () => !1 }, Jr = class {
4710
4736
  }),
4711
4737
  diagnosticItems: R((e) => {
4712
4738
  let t = e(this.workspace.$.revision), n = e(this.workspace.$.target);
4713
- return un(ze(t, n, e(s)), t, n, e(this.triggers.catalog.state).data?.display, kt([r.lang]), e(r.t$));
4739
+ return dn(ze(t, n, e(s)), t, n, e(this.triggers.catalog.state).data?.display, kt([r.lang]), e(r.t$));
4714
4740
  }),
4715
4741
  diagnostics: s,
4716
4742
  designer: u,
4717
4743
  designerNodeById: d,
4718
4744
  sourceNodeIcons: L(u, (e) => Object.fromEntries(e.nodes.flatMap((e) => "icon" in e ? [[e.id, e.icon]] : [])), { equal: Q }),
4719
4745
  notice: this.#r,
4720
- runEventNodes: R((e) => Kr(e(this.workspace.$.draft), e(this.workspace.$.target), e(this.runs.$.run), e(this.runs.$.events), e(d))),
4746
+ runEventNodes: R((e) => qr(e(this.workspace.$.draft), e(this.workspace.$.target), e(this.runs.$.run), e(this.runs.$.events), e(d))),
4721
4747
  selectedDesignerNode: R((e) => {
4722
4748
  let t = e(this.workspace.$.selectedNodeIds);
4723
4749
  return t.length == 1 ? e(d).get(t[0]) : void 0;
@@ -4866,7 +4892,7 @@ var qr = { openExternalPage: async () => !1 }, Jr = class {
4866
4892
  if (n == null) return i;
4867
4893
  let r = new Set(n.filter((t) => t.permissions == null || t.permissions.allActions || t.permissions.actionIds.includes(e.actionId)).map((e) => e.connectionId)), a = o.connections.filter((e) => r.has(e.connectionId));
4868
4894
  return {
4869
- action: j(o.action, a),
4895
+ action: A(o.action, a),
4870
4896
  connections: a
4871
4897
  };
4872
4898
  }
@@ -4930,8 +4956,8 @@ var qr = { openExternalPage: async () => !1 }, Jr = class {
4930
4956
  return;
4931
4957
  }
4932
4958
  }
4933
- }, Yr = Mt(() => import("./flowWorkspace-B04ZIbVq.js"));
4934
- function Xr({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i, pending: a = !1, title: o, token: s, tokenLabel: c }) {
4959
+ }, Xr = Mt(() => import("./flowWorkspace-wckoLtfB.js"));
4960
+ function Zr({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i, pending: a = !1, title: o, token: s, tokenLabel: c }) {
4935
4961
  let l = s != null && c != null && i != null, u = s ?? "", d = /* @__PURE__ */ Y(Nt, { children: [
4936
4962
  /* @__PURE__ */ J("div", {
4937
4963
  "aria-hidden": "true",
@@ -5020,15 +5046,15 @@ function Xr({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i
5020
5046
  })
5021
5047
  });
5022
5048
  }
5023
- function Zr({ host: e, store: t }) {
5049
+ function Qr({ host: e, store: t }) {
5024
5050
  let [n] = q(() => e.notify.bind(e)), r = B(t.$.notice);
5025
5051
  return G(() => n(r), [n, r]), G(() => () => n(void 0), [n]), null;
5026
5052
  }
5027
- function Qr({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowField: r, flowBadges: i, connectionHref: a, hrefFor: o, language: s, navigation: c, onConfigureConnector: l, onManageConnectorAccess: u, onLanguageChange: d, store: f, theme: p }) {
5053
+ function $r({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowField: r, flowBadges: i, connectionHref: a, hrefFor: o, language: s, navigation: c, onConfigureConnector: l, onManageConnectorAccess: u, onLanguageChange: d, store: f, theme: p }) {
5028
5054
  let m = B(f.workspace.$.flowId);
5029
5055
  return /* @__PURE__ */ J("div", {
5030
5056
  className: "app-shell",
5031
- children: m == null ? /* @__PURE__ */ J(Zt, {
5057
+ children: m == null ? /* @__PURE__ */ J(Qt, {
5032
5058
  catalogWidth: e,
5033
5059
  createFlowDisabled: n,
5034
5060
  createFlowField: r,
@@ -5047,7 +5073,7 @@ function Qr({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowF
5047
5073
  "aria-busy": "true",
5048
5074
  className: "workspace"
5049
5075
  }),
5050
- children: /* @__PURE__ */ J(Yr, {
5076
+ children: /* @__PURE__ */ J(Xr, {
5051
5077
  connectionHref: a,
5052
5078
  hrefFor: o,
5053
5079
  navigation: c,
@@ -5059,14 +5085,19 @@ function Qr({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowF
5059
5085
  })
5060
5086
  });
5061
5087
  }
5062
- function $r({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowField: i, flowBadges: a, connectionHref: o, host: s, hrefFor: c, language: l, location: u, onConfigureConnector: d, onManageConnectorAccess: f, onLanguageChange: p, onNavigate: m, preferences: h, theme: g, variables: _ = !0 }) {
5088
+ function ei({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowField: i, flowBadges: a, connectionHref: o, host: s, hrefFor: c, language: l, location: u, onConfigureConnector: d, onManageConnectorAccess: f, onLanguageChange: p, onNavigate: m, preferences: h, theme: g, variables: _ = !0 }) {
5063
5089
  let v = K(m);
5064
5090
  v.current = m;
5065
5091
  let [{ i18n: y, navigation: b, store: x }] = q(() => {
5066
- let e = F(l), t = new Jr(new de((e, t) => s.request(e, t), (e, t) => s.subscribeFlow(e, t), (e) => s.subscribeFlowCatalog(e)), h, I, e, s, _);
5092
+ let e = F(l), t = new Yr(new fe((e, t) => s.request(e, t), (e, t) => s.subscribeFlow(e, t), (e) => s.subscribeFlowCatalog(e)), h, I, e, {
5093
+ openExternalPage: (e) => s.openExternalPage(e),
5094
+ catalogCache: s.catalogCache,
5095
+ connectionCache: s.connectionCache,
5096
+ resolveActor: Lt(s, globalThis.location?.origin)
5097
+ }, _);
5067
5098
  return {
5068
5099
  i18n: e,
5069
- navigation: new Lt(t, u, (e, t) => v.current(e, t)),
5100
+ navigation: new Rt(t, u, (e, t) => v.current(e, t)),
5070
5101
  store: t
5071
5102
  };
5072
5103
  }), ee = B(b.$.ready);
@@ -5095,10 +5126,10 @@ function $r({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowF
5095
5126
  children: /* @__PURE__ */ Y("div", {
5096
5127
  className: "open-flow-theme open-flow-workbench",
5097
5128
  "data-theme": g,
5098
- children: [/* @__PURE__ */ J(Zr, {
5129
+ children: [/* @__PURE__ */ J(Qr, {
5099
5130
  host: s,
5100
5131
  store: x
5101
- }), ee ? /* @__PURE__ */ J(Qr, {
5132
+ }), ee ? /* @__PURE__ */ J($r, {
5102
5133
  catalogWidth: e,
5103
5134
  createFlow: t,
5104
5135
  createFlowDisabled: n,
@@ -5121,8 +5152,8 @@ function $r({ catalogWidth: e, createFlow: t, createFlowDisabled: n, createFlowF
5121
5152
  })
5122
5153
  });
5123
5154
  }
5124
- function ei({ sessionKey: e, ...t }) {
5125
- return /* @__PURE__ */ J($r, { ...t }, e);
5155
+ function ti({ sessionKey: e, ...t }) {
5156
+ return /* @__PURE__ */ J(ei, { ...t }, e);
5126
5157
  }
5127
5158
  //#endregion
5128
- export { ve as EventSourcesPage, Xr as OpenFlowSessionGate, ei as OpenFlowWorkbench, Dt as isWorkbenchLanguage, kt as resolveWorkbenchLanguage, At as workbenchLanguageNames, Ot as workbenchLanguages };
5159
+ export { ye as EventSourcesPage, Zr as OpenFlowSessionGate, ti as OpenFlowWorkbench, Dt as isWorkbenchLanguage, kt as resolveWorkbenchLanguage, At as workbenchLanguageNames, Ot as workbenchLanguages };