@babsey/code-graph 0.8.6 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/code-graph.js +446 -444
  2. package/dist/code-graph.umd.cjs +4 -4
  3. package/dist/code.d.ts +57 -0
  4. package/dist/codeEditor.d.ts +28 -0
  5. package/dist/codeEngine/codeEngine.d.ts +16 -0
  6. package/dist/codeEngine/index.d.ts +3 -0
  7. package/dist/codeEngine/register.d.ts +11 -0
  8. package/dist/codeEngine/runEngine.command.d.ts +8 -0
  9. package/dist/codeGraph/codeGraph.d.ts +122 -0
  10. package/dist/codeGraph/codeGraphNode.d.ts +12 -0
  11. package/dist/codeGraph/codeGraphTemplate.d.ts +16 -0
  12. package/dist/codeGraph/index.d.ts +4 -0
  13. package/dist/codeGraph/switchCodeGraph.d.ts +8 -0
  14. package/dist/codeNode/codeNode.d.ts +138 -0
  15. package/dist/codeNode/defineCodeNode.d.ts +17 -0
  16. package/dist/codeNode/dynamicCodeNode.d.ts +34 -0
  17. package/dist/codeNode/index.d.ts +3 -0
  18. package/dist/codeNodeInterfaces/baseNumericInterface.d.ts +23 -0
  19. package/dist/codeNodeInterfaces/baseStringInterface.d.ts +5 -0
  20. package/dist/codeNodeInterfaces/checkbox/checkboxInterface.d.ts +5 -0
  21. package/dist/codeNodeInterfaces/codeNode/CodeNodeInterface.vue.d.ts +7 -0
  22. package/dist/codeNodeInterfaces/codeNode/codeNodeInterface.d.ts +21 -0
  23. package/dist/codeNodeInterfaces/codeNode/index.d.ts +2 -0
  24. package/dist/codeNodeInterfaces/codeNodeInput/codeNodeInputInterface.d.ts +6 -0
  25. package/dist/codeNodeInterfaces/codeNodeOutput/codeNodeOutputInterface.d.ts +9 -0
  26. package/dist/codeNodeInterfaces/createInterface.d.ts +12 -0
  27. package/dist/codeNodeInterfaces/index.d.ts +13 -0
  28. package/dist/codeNodeInterfaces/integer/integerInterface.d.ts +6 -0
  29. package/dist/codeNodeInterfaces/listInput/listInputInterface.d.ts +5 -0
  30. package/dist/codeNodeInterfaces/number/numberInterface.d.ts +5 -0
  31. package/dist/codeNodeInterfaces/select/selectInterface.d.ts +12 -0
  32. package/dist/codeNodeInterfaces/slider/sliderInterface.d.ts +9 -0
  33. package/dist/codeNodeInterfaces/textInput/TextInputInterface.vue.d.ts +26 -0
  34. package/dist/codeNodeInterfaces/textInput/textInputInterface.d.ts +7 -0
  35. package/dist/codeNodeInterfaces/textareaInput/textareaInputInterface.d.ts +5 -0
  36. package/dist/codeNodeInterfaces/tupleInput/tupleInputInterface.d.ts +5 -0
  37. package/dist/components/CodeGraphEditor.vue.d.ts +19 -0
  38. package/dist/components/dev/CodeGraphInfo.vue.d.ts +7 -0
  39. package/dist/components/editor/CodeEditor.vue.d.ts +19 -0
  40. package/dist/components/editor/CopyToClipboard.vue.d.ts +7 -0
  41. package/dist/components/index.d.ts +11 -0
  42. package/dist/components/nav/NavBar.vue.d.ts +29 -0
  43. package/dist/components/nav/NavItem.vue.d.ts +17 -0
  44. package/dist/components/node/CodeGraphNode.vue.d.ts +39 -0
  45. package/dist/components/nodeInterface/CodeGraphNodeInterface.vue.d.ts +19 -0
  46. package/dist/components/nodePalette/CodeNodePalette.vue.d.ts +3 -0
  47. package/dist/components/sidebar/CodeGraphSidebar.vue.d.ts +15 -0
  48. package/dist/components/sidebar/SidebarCheckbox.vue.d.ts +13 -0
  49. package/dist/components.d.ts +2 -0
  50. package/dist/icons/Check.vue.d.ts +3 -0
  51. package/dist/icons/CodeVariable.vue.d.ts +3 -0
  52. package/dist/icons/Copy.vue.d.ts +3 -0
  53. package/dist/icons/DotsVertical.vue.d.ts +3 -0
  54. package/dist/icons/Download.vue.d.ts +3 -0
  55. package/dist/icons/LayoutSidebarLeftCollapse.vue.d.ts +3 -0
  56. package/dist/icons/LayoutSidebarLeftExpand.vue.d.ts +3 -0
  57. package/dist/icons/LayoutSidebarRight.vue.d.ts +3 -0
  58. package/dist/icons/LayoutSidebarRightCollapse.vue.d.ts +3 -0
  59. package/dist/icons/LayoutSidebarRightExpand.vue.d.ts +3 -0
  60. package/dist/icons/LockCode.vue.d.ts +3 -0
  61. package/dist/icons/PlayerPlay.vue.d.ts +3 -0
  62. package/dist/icons/Plus.vue.d.ts +3 -0
  63. package/dist/icons/Restore.vue.d.ts +3 -0
  64. package/dist/icons/Schema.vue.d.ts +3 -0
  65. package/dist/icons/SchemaOff.vue.d.ts +3 -0
  66. package/dist/icons/TransitionBottom.vue.d.ts +3 -0
  67. package/dist/icons/Upload.vue.d.ts +3 -0
  68. package/dist/icons/X.vue.d.ts +3 -0
  69. package/dist/icons/index.d.ts +19 -0
  70. package/dist/index.d.ts +14 -0
  71. package/dist/interfaceTypes/default.d.ts +10 -0
  72. package/dist/interfaceTypes/index.d.ts +1 -0
  73. package/dist/settings.d.ts +15 -0
  74. package/dist/subgraph/createSubgraph.command.d.ts +6 -0
  75. package/dist/subgraph/graphInterface.d.ts +68 -0
  76. package/dist/subgraph/index.d.ts +3 -0
  77. package/dist/subgraph/subgraphInterfaceNodes.d.ts +27 -0
  78. package/dist/utils/download.d.ts +2 -0
  79. package/dist/utils/object.d.ts +7 -0
  80. package/dist/viewModel.d.ts +46 -0
  81. package/package.json +4 -3
  82. package/.vscode/extensions.json +0 -3
@@ -1,4 +1,4 @@
1
- import { createElementBlock as k, openBlock as m, createElementVNode as f, createStaticVNode as Gt, defineComponent as ce, toRef as Sn, ref as ie, createVNode as X, unref as H, mergeModels as rs, useModel as na, resolveComponent as _s, createCommentVNode as K, onMounted as xn, onBeforeUnmount as ys, watch as gs, createBlock as ue, withCtx as Ye, normalizeProps as sa, guardReactiveProps as ra, renderSlot as Me, mergeProps as aa, toDisplayString as te, computed as z, onUpdated as bs, normalizeStyle as On, normalizeClass as je, withModifiers as st, withDirectives as Vt, Fragment as ae, createTextVNode as ws, withKeys as hn, vModelText as jt, renderList as Ke, nextTick as ks, resolveDynamicComponent as as, inject as ia, Transition as oa, reactive as Ae, markRaw as he, shallowReadonly as la } from "vue";
1
+ import { createElementBlock as k, openBlock as m, createElementVNode as f, createStaticVNode as Gt, defineComponent as ce, toRef as Sn, ref as oe, createVNode as X, unref as H, mergeModels as rs, useModel as na, resolveComponent as _s, createCommentVNode as K, onMounted as xn, onBeforeUnmount as ys, watch as gs, createBlock as ue, withCtx as Ye, normalizeProps as sa, guardReactiveProps as ra, renderSlot as Me, mergeProps as aa, toDisplayString as te, computed as z, onUpdated as bs, normalizeStyle as On, normalizeClass as je, withModifiers as st, withDirectives as Vt, Fragment as ae, createTextVNode as ws, withKeys as hn, vModelText as jt, renderList as Ke, nextTick as ks, resolveDynamicComponent as as, inject as oa, Transition as ia, reactive as Ae, markRaw as he, shallowReadonly as la } from "vue";
2
2
  import { BaklavaEditor as ua, Components as fn, useViewModel as kt, useGraph as Cn, useTemporaryConnection as da, useTransform as ca, useNodeCategories as ha, displayInSidebar as Ms, CheckboxInterfaceComponent as fa, IntegerInterfaceComponent as pa, TextInputInterfaceComponent as Ss, NumberInterfaceComponent as ma, SelectInterfaceComponent as va, SliderInterfaceComponent as _a, TextareaInputInterfaceComponent as ya, Commands as He, DEFAULT_TOOLBAR_COMMANDS as ga, TextInputInterface as xs, DEFAULT_SETTINGS as ba, useCommandHandler as wa, useHistory as ka, useClipboard as Ma, registerDeleteNodesCommand as Sa, registerSaveSubgraphCommand as xa, registerSwitchToMainGraphCommand as Oa, registerSidebarCommands as Ca, registerZoomToFitCommands as Ta, setViewNodeProperties as Na } from "@baklavajs/renderer-vue";
3
3
  import { GRAPH_NODE_TYPE_PREFIX as Da, AbstractNode as Ia, NodeInterface as Se, Graph as Ya, getGraphNodeTypeString as Os, GraphTemplate as Ea, GRAPH_INPUT_NODE_TYPE as Ra, GRAPH_OUTPUT_NODE_TYPE as Pa, Editor as La } from "@baklavajs/core";
4
4
  import { usePointer as Aa } from "@vueuse/core";
@@ -7,7 +7,7 @@ import { v4 as Xe } from "uuid";
7
7
  import { NodeInterfaceType as Je, BaklavaInterfaceTypes as Ua, setType as ne } from "@baklavajs/interface-types";
8
8
  import { allowMultipleConnections as lt, BaseEngine as $a, sortTopologically as Wa, applyResult as Cs } from "@baklavajs/engine";
9
9
  import Ha from "toposort";
10
- import { SequentialHook as is } from "@baklavajs/events";
10
+ import { SequentialHook as os } from "@baklavajs/events";
11
11
  const q = (e, t) => {
12
12
  const n = e.__vccOpts || e;
13
13
  for (const [s, r] of t)
@@ -104,7 +104,7 @@ function Qa(e, t) {
104
104
  f("path", { d: "M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
105
105
  ])]);
106
106
  }
107
- const Is = /* @__PURE__ */ q(Xa, [["render", Qa]]), ei = {}, ti = {
107
+ const Is = /* @__PURE__ */ q(Xa, [["render", Qa]]), eo = {}, to = {
108
108
  xmlns: "http://www.w3.org/2000/svg",
109
109
  width: "24",
110
110
  height: "24",
@@ -116,8 +116,8 @@ const Is = /* @__PURE__ */ q(Xa, [["render", Qa]]), ei = {}, ti = {
116
116
  "stroke-linejoin": "round",
117
117
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-download"
118
118
  };
119
- function ni(e, t) {
120
- return m(), k("svg", ti, [...t[0] || (t[0] = [
119
+ function no(e, t) {
120
+ return m(), k("svg", to, [...t[0] || (t[0] = [
121
121
  f("path", {
122
122
  stroke: "none",
123
123
  d: "M0 0h24v24H0z",
@@ -128,7 +128,7 @@ function ni(e, t) {
128
128
  f("path", { d: "M12 4l0 12" }, null, -1)
129
129
  ])]);
130
130
  }
131
- const Ys = /* @__PURE__ */ q(ei, [["render", ni]]), si = {}, ri = {
131
+ const Ys = /* @__PURE__ */ q(eo, [["render", no]]), so = {}, ro = {
132
132
  xmlns: "http://www.w3.org/2000/svg",
133
133
  width: "24",
134
134
  height: "24",
@@ -136,8 +136,8 @@ const Ys = /* @__PURE__ */ q(ei, [["render", ni]]), si = {}, ri = {
136
136
  fill: "currentColor",
137
137
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-left-collapse"
138
138
  };
139
- function ai(e, t) {
140
- return m(), k("svg", ri, [...t[0] || (t[0] = [
139
+ function ao(e, t) {
140
+ return m(), k("svg", ro, [...t[0] || (t[0] = [
141
141
  f("path", {
142
142
  stroke: "none",
143
143
  d: "M0 0h24v24H0z",
@@ -146,7 +146,7 @@ function ai(e, t) {
146
146
  f("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm0 2h-9v14h9a1 1 0 0 0 .993 -.883l.007 -.117v-12a1 1 0 0 0 -.883 -.993l-.117 -.007zm-2.293 4.293a1 1 0 0 1 .083 1.32l-.083 .094l-1.292 1.293l1.292 1.293a1 1 0 0 1 .083 1.32l-.083 .094a1 1 0 0 1 -1.32 .083l-.094 -.083l-2 -2a1 1 0 0 1 -.083 -1.32l.083 -.094l2 -2a1 1 0 0 1 1.414 0z" }, null, -1)
147
147
  ])]);
148
148
  }
149
- const ii = /* @__PURE__ */ q(si, [["render", ai]]), oi = {}, li = {
149
+ const oo = /* @__PURE__ */ q(so, [["render", ao]]), io = {}, lo = {
150
150
  xmlns: "http://www.w3.org/2000/svg",
151
151
  width: "24",
152
152
  height: "24",
@@ -154,8 +154,8 @@ const ii = /* @__PURE__ */ q(si, [["render", ai]]), oi = {}, li = {
154
154
  fill: "currentColor",
155
155
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-left-expand"
156
156
  };
157
- function ui(e, t) {
158
- return m(), k("svg", li, [...t[0] || (t[0] = [
157
+ function uo(e, t) {
158
+ return m(), k("svg", lo, [...t[0] || (t[0] = [
159
159
  f("path", {
160
160
  stroke: "none",
161
161
  d: "M0 0h24v24H0z",
@@ -164,7 +164,7 @@ function ui(e, t) {
164
164
  f("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm0 2h-9v14h9a1 1 0 0 0 .993 -.883l.007 -.117v-12a1 1 0 0 0 -.883 -.993l-.117 -.007zm-4.387 4.21l.094 .083l2 2a1 1 0 0 1 .083 1.32l-.083 .094l-2 2a1 1 0 0 1 -1.497 -1.32l.083 -.094l1.292 -1.293l-1.292 -1.293a1 1 0 0 1 -.083 -1.32l.083 -.094a1 1 0 0 1 1.32 -.083z" }, null, -1)
165
165
  ])]);
166
166
  }
167
- const di = /* @__PURE__ */ q(oi, [["render", ui]]), ci = {}, hi = {
167
+ const co = /* @__PURE__ */ q(io, [["render", uo]]), ho = {}, fo = {
168
168
  xmlns: "http://www.w3.org/2000/svg",
169
169
  width: "24",
170
170
  height: "24",
@@ -172,8 +172,8 @@ const di = /* @__PURE__ */ q(oi, [["render", ui]]), ci = {}, hi = {
172
172
  fill: "currentColor",
173
173
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right"
174
174
  };
175
- function fi(e, t) {
176
- return m(), k("svg", hi, [...t[0] || (t[0] = [
175
+ function po(e, t) {
176
+ return m(), k("svg", fo, [...t[0] || (t[0] = [
177
177
  f("path", {
178
178
  stroke: "none",
179
179
  d: "M0 0h24v24H0z",
@@ -182,7 +182,7 @@ function fi(e, t) {
182
182
  f("path", { d: "M6 21a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3zm8 -16h-8a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h8z" }, null, -1)
183
183
  ])]);
184
184
  }
185
- const pi = /* @__PURE__ */ q(ci, [["render", fi]]), mi = {}, vi = {
185
+ const mo = /* @__PURE__ */ q(ho, [["render", po]]), vo = {}, _o = {
186
186
  xmlns: "http://www.w3.org/2000/svg",
187
187
  width: "24",
188
188
  height: "24",
@@ -190,8 +190,8 @@ const pi = /* @__PURE__ */ q(ci, [["render", fi]]), mi = {}, vi = {
190
190
  fill: "currentColor",
191
191
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right-collapse"
192
192
  };
193
- function _i(e, t) {
194
- return m(), k("svg", vi, [...t[0] || (t[0] = [
193
+ function yo(e, t) {
194
+ return m(), k("svg", _o, [...t[0] || (t[0] = [
195
195
  f("path", {
196
196
  stroke: "none",
197
197
  d: "M0 0h24v24H0z",
@@ -200,7 +200,7 @@ function _i(e, t) {
200
200
  f("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm-3 2h-9a1 1 0 0 0 -.993 .883l-.007 .117v12a1 1 0 0 0 .883 .993l.117 .007h9v-14zm-5.387 4.21l.094 .083l2 2a1 1 0 0 1 .083 1.32l-.083 .094l-2 2a1 1 0 0 1 -1.497 -1.32l.083 -.094l1.292 -1.293l-1.292 -1.293a1 1 0 0 1 -.083 -1.32l.083 -.094a1 1 0 0 1 1.32 -.083z" }, null, -1)
201
201
  ])]);
202
202
  }
203
- const Es = /* @__PURE__ */ q(mi, [["render", _i]]), yi = {}, gi = {
203
+ const Es = /* @__PURE__ */ q(vo, [["render", yo]]), go = {}, bo = {
204
204
  xmlns: "http://www.w3.org/2000/svg",
205
205
  width: "24",
206
206
  height: "24",
@@ -208,8 +208,8 @@ const Es = /* @__PURE__ */ q(mi, [["render", _i]]), yi = {}, gi = {
208
208
  fill: "currentColor",
209
209
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right-expand"
210
210
  };
211
- function bi(e, t) {
212
- return m(), k("svg", gi, [...t[0] || (t[0] = [
211
+ function wo(e, t) {
212
+ return m(), k("svg", bo, [...t[0] || (t[0] = [
213
213
  f("path", {
214
214
  stroke: "none",
215
215
  d: "M0 0h24v24H0z",
@@ -218,7 +218,7 @@ function bi(e, t) {
218
218
  f("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm-3 2h-9a1 1 0 0 0 -.993 .883l-.007 .117v12a1 1 0 0 0 .883 .993l.117 .007h9v-14zm-3.293 4.293a1 1 0 0 1 .083 1.32l-.083 .094l-1.292 1.293l1.292 1.293a1 1 0 0 1 .083 1.32l-.083 .094a1 1 0 0 1 -1.32 .083l-.094 -.083l-2 -2a1 1 0 0 1 -.083 -1.32l.083 -.094l2 -2a1 1 0 0 1 1.414 0z" }, null, -1)
219
219
  ])]);
220
220
  }
221
- const Tn = /* @__PURE__ */ q(yi, [["render", bi]]), wi = {}, ki = {
221
+ const Tn = /* @__PURE__ */ q(go, [["render", wo]]), ko = {}, Mo = {
222
222
  xmlns: "http://www.w3.org/2000/svg",
223
223
  width: "24",
224
224
  height: "24",
@@ -230,12 +230,12 @@ const Tn = /* @__PURE__ */ q(yi, [["render", bi]]), wi = {}, ki = {
230
230
  "stroke-linejoin": "round",
231
231
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-lock-code"
232
232
  };
233
- function Mi(e, t) {
234
- return m(), k("svg", ki, [...t[0] || (t[0] = [
233
+ function So(e, t) {
234
+ return m(), k("svg", Mo, [...t[0] || (t[0] = [
235
235
  Gt('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M11.5 21h-4.5a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2"></path><path d="M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"></path><path d="M8 11v-4a4 4 0 1 1 8 0v4"></path><path d="M20 21l2 -2l-2 -2"></path><path d="M17 17l-2 2l2 2"></path>', 6)
236
236
  ])]);
237
237
  }
238
- const Nn = /* @__PURE__ */ q(wi, [["render", Mi]]), Si = {}, xi = {
238
+ const Nn = /* @__PURE__ */ q(ko, [["render", So]]), xo = {}, Oo = {
239
239
  xmlns: "http://www.w3.org/2000/svg",
240
240
  width: "24",
241
241
  height: "24",
@@ -247,8 +247,8 @@ const Nn = /* @__PURE__ */ q(wi, [["render", Mi]]), Si = {}, xi = {
247
247
  "stroke-linejoin": "round",
248
248
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-player-play"
249
249
  };
250
- function Oi(e, t) {
251
- return m(), k("svg", xi, [...t[0] || (t[0] = [
250
+ function Co(e, t) {
251
+ return m(), k("svg", Oo, [...t[0] || (t[0] = [
252
252
  f("path", {
253
253
  stroke: "none",
254
254
  d: "M0 0h24v24H0z",
@@ -257,7 +257,7 @@ function Oi(e, t) {
257
257
  f("path", { d: "M7 4v16l13 -8z" }, null, -1)
258
258
  ])]);
259
259
  }
260
- const Ci = /* @__PURE__ */ q(Si, [["render", Oi]]), Ti = {}, Ni = {
260
+ const To = /* @__PURE__ */ q(xo, [["render", Co]]), No = {}, Do = {
261
261
  xmlns: "http://www.w3.org/2000/svg",
262
262
  width: "24",
263
263
  height: "24",
@@ -269,8 +269,8 @@ const Ci = /* @__PURE__ */ q(Si, [["render", Oi]]), Ti = {}, Ni = {
269
269
  "stroke-linejoin": "round",
270
270
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-plus"
271
271
  };
272
- function Di(e, t) {
273
- return m(), k("svg", Ni, [...t[0] || (t[0] = [
272
+ function Io(e, t) {
273
+ return m(), k("svg", Do, [...t[0] || (t[0] = [
274
274
  f("path", {
275
275
  stroke: "none",
276
276
  d: "M0 0h24v24H0z",
@@ -280,7 +280,7 @@ function Di(e, t) {
280
280
  f("path", { d: "M5 12l14 0" }, null, -1)
281
281
  ])]);
282
282
  }
283
- const Rs = /* @__PURE__ */ q(Ti, [["render", Di]]), Ii = {}, Yi = {
283
+ const Rs = /* @__PURE__ */ q(No, [["render", Io]]), Yo = {}, Eo = {
284
284
  xmlns: "http://www.w3.org/2000/svg",
285
285
  width: "24",
286
286
  height: "24",
@@ -292,8 +292,8 @@ const Rs = /* @__PURE__ */ q(Ti, [["render", Di]]), Ii = {}, Yi = {
292
292
  "stroke-linejoin": "round",
293
293
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-restore"
294
294
  };
295
- function Ei(e, t) {
296
- return m(), k("svg", Yi, [...t[0] || (t[0] = [
295
+ function Ro(e, t) {
296
+ return m(), k("svg", Eo, [...t[0] || (t[0] = [
297
297
  f("path", {
298
298
  stroke: "none",
299
299
  d: "M0 0h24v24H0z",
@@ -304,7 +304,7 @@ function Ei(e, t) {
304
304
  f("path", { d: "M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
305
305
  ])]);
306
306
  }
307
- const Ps = /* @__PURE__ */ q(Ii, [["render", Ei]]), Ri = {}, Pi = {
307
+ const Ps = /* @__PURE__ */ q(Yo, [["render", Ro]]), Po = {}, Lo = {
308
308
  xmlns: "http://www.w3.org/2000/svg",
309
309
  width: "24",
310
310
  height: "24",
@@ -316,12 +316,12 @@ const Ps = /* @__PURE__ */ q(Ii, [["render", Ei]]), Ri = {}, Pi = {
316
316
  "stroke-linejoin": "round",
317
317
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-schema"
318
318
  };
319
- function Li(e, t) {
320
- return m(), k("svg", Pi, [...t[0] || (t[0] = [
319
+ function Ao(e, t) {
320
+ return m(), k("svg", Lo, [...t[0] || (t[0] = [
321
321
  Gt('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M5 2h5v4h-5z"></path><path d="M15 10h5v4h-5z"></path><path d="M5 18h5v4h-5z"></path><path d="M5 10h5v4h-5z"></path><path d="M10 12h5"></path><path d="M7.5 6v4"></path><path d="M7.5 14v4"></path>', 8)
322
322
  ])]);
323
323
  }
324
- const Ls = /* @__PURE__ */ q(Ri, [["render", Li]]), Ai = {}, Ui = {
324
+ const Ls = /* @__PURE__ */ q(Po, [["render", Ao]]), Uo = {}, $o = {
325
325
  xmlns: "http://www.w3.org/2000/svg",
326
326
  width: "24",
327
327
  height: "24",
@@ -333,12 +333,12 @@ const Ls = /* @__PURE__ */ q(Ri, [["render", Li]]), Ai = {}, Ui = {
333
333
  "stroke-linejoin": "round",
334
334
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-schema-off"
335
335
  };
336
- function $i(e, t) {
337
- return m(), k("svg", Ui, [...t[0] || (t[0] = [
336
+ function Wo(e, t) {
337
+ return m(), k("svg", $o, [...t[0] || (t[0] = [
338
338
  Gt('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M6 2h4v4m-4 0h-1v-1"></path><path d="M15 11v-1h5v4h-2"></path><path d="M5 18h5v4h-5z"></path><path d="M5 10h5v4h-5z"></path><path d="M10 12h2"></path><path d="M7.5 7.5v2.5"></path><path d="M7.5 14v4"></path><path d="M3 3l18 18"></path>', 9)
339
339
  ])]);
340
340
  }
341
- const As = /* @__PURE__ */ q(Ai, [["render", $i]]), Wi = {}, Hi = {
341
+ const As = /* @__PURE__ */ q(Uo, [["render", Wo]]), Ho = {}, Fo = {
342
342
  xmlns: "http://www.w3.org/2000/svg",
343
343
  width: "24",
344
344
  height: "24",
@@ -350,12 +350,12 @@ const As = /* @__PURE__ */ q(Ai, [["render", $i]]), Wi = {}, Hi = {
350
350
  "stroke-linejoin": "round",
351
351
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-transition-bottom"
352
352
  };
353
- function Fi(e, t) {
354
- return m(), k("svg", Hi, [...t[0] || (t[0] = [
353
+ function Go(e, t) {
354
+ return m(), k("svg", Fo, [...t[0] || (t[0] = [
355
355
  Gt('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M21 18a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3"></path><path d="M3 3m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v0a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z"></path><path d="M12 9v8"></path><path d="M9 14l3 3l3 -3"></path>', 5)
356
356
  ])]);
357
357
  }
358
- const Us = /* @__PURE__ */ q(Wi, [["render", Fi]]), Gi = {}, Vi = {
358
+ const Us = /* @__PURE__ */ q(Ho, [["render", Go]]), Vo = {}, jo = {
359
359
  xmlns: "http://www.w3.org/2000/svg",
360
360
  width: "24",
361
361
  height: "24",
@@ -367,8 +367,8 @@ const Us = /* @__PURE__ */ q(Wi, [["render", Fi]]), Gi = {}, Vi = {
367
367
  "stroke-linejoin": "round",
368
368
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-upload"
369
369
  };
370
- function ji(e, t) {
371
- return m(), k("svg", Vi, [...t[0] || (t[0] = [
370
+ function zo(e, t) {
371
+ return m(), k("svg", jo, [...t[0] || (t[0] = [
372
372
  f("path", {
373
373
  stroke: "none",
374
374
  d: "M0 0h24v24H0z",
@@ -379,7 +379,7 @@ function ji(e, t) {
379
379
  f("path", { d: "M12 4l0 12" }, null, -1)
380
380
  ])]);
381
381
  }
382
- const $s = /* @__PURE__ */ q(Gi, [["render", ji]]), zi = {}, Bi = {
382
+ const $s = /* @__PURE__ */ q(Vo, [["render", zo]]), Bo = {}, Zo = {
383
383
  xmlns: "http://www.w3.org/2000/svg",
384
384
  width: "24",
385
385
  height: "24",
@@ -391,8 +391,8 @@ const $s = /* @__PURE__ */ q(Gi, [["render", ji]]), zi = {}, Bi = {
391
391
  "stroke-linejoin": "round",
392
392
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-x"
393
393
  };
394
- function Zi(e, t) {
395
- return m(), k("svg", Bi, [...t[0] || (t[0] = [
394
+ function qo(e, t) {
395
+ return m(), k("svg", Zo, [...t[0] || (t[0] = [
396
396
  f("path", {
397
397
  stroke: "none",
398
398
  d: "M0 0h24v24H0z",
@@ -402,20 +402,20 @@ function Zi(e, t) {
402
402
  f("path", { d: "M6 6l12 12" }, null, -1)
403
403
  ])]);
404
404
  }
405
- const Ws = /* @__PURE__ */ q(zi, [["render", Zi]]), Eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
405
+ const Ws = /* @__PURE__ */ q(Bo, [["render", qo]]), Eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
406
406
  __proto__: null,
407
407
  Check: Ts,
408
408
  CodeVariable: Ns,
409
409
  Copy: Ds,
410
410
  DotsVertical: Is,
411
411
  Download: Ys,
412
- LayoutSidebarLeftCollapse: ii,
413
- LayoutSidebarLeftExpand: di,
414
- LayoutSidebarRight: pi,
412
+ LayoutSidebarLeftCollapse: oo,
413
+ LayoutSidebarLeftExpand: co,
414
+ LayoutSidebarRight: mo,
415
415
  LayoutSidebarRightCollapse: Es,
416
416
  LayoutSidebarRightExpand: Tn,
417
417
  LockCode: Nn,
418
- PlayerPlay: Ci,
418
+ PlayerPlay: To,
419
419
  Plus: Rs,
420
420
  Restore: Ps,
421
421
  Schema: Ls,
@@ -424,16 +424,16 @@ const Ws = /* @__PURE__ */ q(zi, [["render", Zi]]), Eh = /* @__PURE__ */ Object.
424
424
  Upload: $s,
425
425
  X: Ws
426
426
  }, Symbol.toStringTag, { value: "Module" }));
427
- function qi(e) {
427
+ function Ko(e) {
428
428
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
429
429
  }
430
430
  var Rt = { exports: {} };
431
- var Ki = Rt.exports, os;
432
- function Xi() {
433
- return os || (os = 1, (function(e, t) {
431
+ var Xo = Rt.exports, is;
432
+ function Jo() {
433
+ return is || (is = 1, (function(e, t) {
434
434
  (function(s, r) {
435
435
  e.exports = r();
436
- })(Ki, function() {
436
+ })(Xo, function() {
437
437
  return (
438
438
  /******/
439
439
  (function() {
@@ -441,8 +441,8 @@ function Xi() {
441
441
  /***/
442
442
  686: (
443
443
  /***/
444
- (function(a, i, o) {
445
- o.d(i, {
444
+ (function(a, o, i) {
445
+ i.d(o, {
446
446
  default: function() {
447
447
  return (
448
448
  /* binding */
@@ -450,7 +450,7 @@ function Xi() {
450
450
  );
451
451
  }
452
452
  });
453
- var l = o(279), u = /* @__PURE__ */ o.n(l), h = o(370), w = /* @__PURE__ */ o.n(h), p = o(817), I = /* @__PURE__ */ o.n(p);
453
+ var l = i(279), u = /* @__PURE__ */ i.n(l), h = i(370), w = /* @__PURE__ */ i.n(h), p = i(817), I = /* @__PURE__ */ i.n(p);
454
454
  function y(b) {
455
455
  try {
456
456
  return document.execCommand(b);
@@ -708,13 +708,13 @@ function Xi() {
708
708
  828: (
709
709
  /***/
710
710
  (function(a) {
711
- var i = 9;
711
+ var o = 9;
712
712
  if (typeof Element < "u" && !Element.prototype.matches) {
713
- var o = Element.prototype;
714
- o.matches = o.matchesSelector || o.mozMatchesSelector || o.msMatchesSelector || o.oMatchesSelector || o.webkitMatchesSelector;
713
+ var i = Element.prototype;
714
+ i.matches = i.matchesSelector || i.mozMatchesSelector || i.msMatchesSelector || i.oMatchesSelector || i.webkitMatchesSelector;
715
715
  }
716
716
  function l(u, h) {
717
- for (; u && u.nodeType !== i; ) {
717
+ for (; u && u.nodeType !== o; ) {
718
718
  if (typeof u.matches == "function" && u.matches(h))
719
719
  return u;
720
720
  u = u.parentNode;
@@ -726,8 +726,8 @@ function Xi() {
726
726
  /***/
727
727
  438: (
728
728
  /***/
729
- (function(a, i, o) {
730
- var l = o(828);
729
+ (function(a, o, i) {
730
+ var l = i(828);
731
731
  function u(p, I, y, O, c) {
732
732
  var g = w.apply(this, arguments);
733
733
  return p.addEventListener(y, g, c), {
@@ -752,16 +752,16 @@ function Xi() {
752
752
  /***/
753
753
  879: (
754
754
  /***/
755
- (function(a, i) {
756
- i.node = function(o) {
757
- return o !== void 0 && o instanceof HTMLElement && o.nodeType === 1;
758
- }, i.nodeList = function(o) {
759
- var l = Object.prototype.toString.call(o);
760
- return o !== void 0 && (l === "[object NodeList]" || l === "[object HTMLCollection]") && "length" in o && (o.length === 0 || i.node(o[0]));
761
- }, i.string = function(o) {
762
- return typeof o == "string" || o instanceof String;
763
- }, i.fn = function(o) {
764
- var l = Object.prototype.toString.call(o);
755
+ (function(a, o) {
756
+ o.node = function(i) {
757
+ return i !== void 0 && i instanceof HTMLElement && i.nodeType === 1;
758
+ }, o.nodeList = function(i) {
759
+ var l = Object.prototype.toString.call(i);
760
+ return i !== void 0 && (l === "[object NodeList]" || l === "[object HTMLCollection]") && "length" in i && (i.length === 0 || o.node(i[0]));
761
+ }, o.string = function(i) {
762
+ return typeof i == "string" || i instanceof String;
763
+ }, o.fn = function(i) {
764
+ var l = Object.prototype.toString.call(i);
765
765
  return l === "[object Function]";
766
766
  };
767
767
  })
@@ -769,8 +769,8 @@ function Xi() {
769
769
  /***/
770
770
  370: (
771
771
  /***/
772
- (function(a, i, o) {
773
- var l = o(879), u = o(438);
772
+ (function(a, o, i) {
773
+ var l = i(879), u = i(438);
774
774
  function h(y, O, c) {
775
775
  if (!y && !O && !c)
776
776
  throw new Error("Missing required arguments");
@@ -814,58 +814,58 @@ function Xi() {
814
814
  817: (
815
815
  /***/
816
816
  (function(a) {
817
- function i(o) {
817
+ function o(i) {
818
818
  var l;
819
- if (o.nodeName === "SELECT")
820
- o.focus(), l = o.value;
821
- else if (o.nodeName === "INPUT" || o.nodeName === "TEXTAREA") {
822
- var u = o.hasAttribute("readonly");
823
- u || o.setAttribute("readonly", ""), o.select(), o.setSelectionRange(0, o.value.length), u || o.removeAttribute("readonly"), l = o.value;
819
+ if (i.nodeName === "SELECT")
820
+ i.focus(), l = i.value;
821
+ else if (i.nodeName === "INPUT" || i.nodeName === "TEXTAREA") {
822
+ var u = i.hasAttribute("readonly");
823
+ u || i.setAttribute("readonly", ""), i.select(), i.setSelectionRange(0, i.value.length), u || i.removeAttribute("readonly"), l = i.value;
824
824
  } else {
825
- o.hasAttribute("contenteditable") && o.focus();
825
+ i.hasAttribute("contenteditable") && i.focus();
826
826
  var h = window.getSelection(), w = document.createRange();
827
- w.selectNodeContents(o), h.removeAllRanges(), h.addRange(w), l = h.toString();
827
+ w.selectNodeContents(i), h.removeAllRanges(), h.addRange(w), l = h.toString();
828
828
  }
829
829
  return l;
830
830
  }
831
- a.exports = i;
831
+ a.exports = o;
832
832
  })
833
833
  ),
834
834
  /***/
835
835
  279: (
836
836
  /***/
837
837
  (function(a) {
838
- function i() {
838
+ function o() {
839
839
  }
840
- i.prototype = {
841
- on: function(o, l, u) {
840
+ o.prototype = {
841
+ on: function(i, l, u) {
842
842
  var h = this.e || (this.e = {});
843
- return (h[o] || (h[o] = [])).push({
843
+ return (h[i] || (h[i] = [])).push({
844
844
  fn: l,
845
845
  ctx: u
846
846
  }), this;
847
847
  },
848
- once: function(o, l, u) {
848
+ once: function(i, l, u) {
849
849
  var h = this;
850
850
  function w() {
851
- h.off(o, w), l.apply(u, arguments);
851
+ h.off(i, w), l.apply(u, arguments);
852
852
  }
853
- return w._ = l, this.on(o, w, u);
853
+ return w._ = l, this.on(i, w, u);
854
854
  },
855
- emit: function(o) {
856
- var l = [].slice.call(arguments, 1), u = ((this.e || (this.e = {}))[o] || []).slice(), h = 0, w = u.length;
855
+ emit: function(i) {
856
+ var l = [].slice.call(arguments, 1), u = ((this.e || (this.e = {}))[i] || []).slice(), h = 0, w = u.length;
857
857
  for (h; h < w; h++)
858
858
  u[h].fn.apply(u[h].ctx, l);
859
859
  return this;
860
860
  },
861
- off: function(o, l) {
862
- var u = this.e || (this.e = {}), h = u[o], w = [];
861
+ off: function(i, l) {
862
+ var u = this.e || (this.e = {}), h = u[i], w = [];
863
863
  if (h && l)
864
864
  for (var p = 0, I = h.length; p < I; p++)
865
865
  h[p].fn !== l && h[p].fn._ !== l && w.push(h[p]);
866
- return w.length ? u[o] = w : delete u[o], this;
866
+ return w.length ? u[i] = w : delete u[i], this;
867
867
  }
868
- }, a.exports = i, a.exports.TinyEmitter = i;
868
+ }, a.exports = o, a.exports.TinyEmitter = o;
869
869
  })
870
870
  )
871
871
  /******/
@@ -873,7 +873,7 @@ function Xi() {
873
873
  function r(a) {
874
874
  if (s[a])
875
875
  return s[a].exports;
876
- var i = s[a] = {
876
+ var o = s[a] = {
877
877
  /******/
878
878
  // no module.id needed
879
879
  /******/
@@ -882,11 +882,11 @@ function Xi() {
882
882
  exports: {}
883
883
  /******/
884
884
  };
885
- return n[a](i, i.exports, r), i.exports;
885
+ return n[a](o, o.exports, r), o.exports;
886
886
  }
887
887
  return (function() {
888
888
  r.n = function(a) {
889
- var i = a && a.__esModule ? (
889
+ var o = a && a.__esModule ? (
890
890
  /******/
891
891
  function() {
892
892
  return a.default;
@@ -897,16 +897,16 @@ function Xi() {
897
897
  return a;
898
898
  }
899
899
  );
900
- return r.d(i, { a: i }), i;
900
+ return r.d(o, { a: o }), o;
901
901
  };
902
902
  })(), (function() {
903
- r.d = function(a, i) {
904
- for (var o in i)
905
- r.o(i, o) && !r.o(a, o) && Object.defineProperty(a, o, { enumerable: !0, get: i[o] });
903
+ r.d = function(a, o) {
904
+ for (var i in o)
905
+ r.o(o, i) && !r.o(a, i) && Object.defineProperty(a, i, { enumerable: !0, get: o[i] });
906
906
  };
907
907
  })(), (function() {
908
- r.o = function(a, i) {
909
- return Object.prototype.hasOwnProperty.call(a, i);
908
+ r.o = function(a, o) {
909
+ return Object.prototype.hasOwnProperty.call(a, o);
910
910
  };
911
911
  })(), r(686);
912
912
  })().default
@@ -914,38 +914,38 @@ function Xi() {
914
914
  });
915
915
  })(Rt)), Rt.exports;
916
916
  }
917
- var Ji = Xi();
918
- const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
917
+ var Qo = Jo();
918
+ const ei = /* @__PURE__ */ Ko(Qo), ti = (e) => ({
919
919
  toClipboard(t, n) {
920
920
  return new Promise((s, r) => {
921
- const a = document.createElement("button"), i = new Qi(a, {
921
+ const a = document.createElement("button"), o = new ei(a, {
922
922
  text: () => t,
923
923
  action: () => "copy",
924
924
  container: n !== void 0 ? n : document.body
925
925
  });
926
- i.on("success", (o) => {
927
- i.destroy(), s(o);
928
- }), i.on("error", (o) => {
929
- i.destroy(), r(o);
926
+ o.on("success", (i) => {
927
+ o.destroy(), s(i);
928
+ }), o.on("error", (i) => {
929
+ o.destroy(), r(i);
930
930
  }), document.body.appendChild(a), a.click(), document.body.removeChild(a);
931
931
  });
932
932
  }
933
- }), to = {
933
+ }), ni = {
934
934
  key: 0,
935
935
  class: "baklava-button"
936
936
  }, Hs = /* @__PURE__ */ ce({
937
937
  __name: "CopyToClipboard",
938
938
  props: { text: String },
939
939
  setup(e) {
940
- const { toClipboard: t } = eo(), s = Sn(e, "text"), r = ie(!1), a = async () => {
940
+ const { toClipboard: t } = ti(), s = Sn(e, "text"), r = oe(!1), a = async () => {
941
941
  try {
942
942
  await t(s.value), r.value = !0, setTimeout(() => r.value = !1, 1500), console.log("Copied to clipboard");
943
- } catch (i) {
944
- console.error(i);
943
+ } catch (o) {
944
+ console.error(o);
945
945
  }
946
946
  };
947
- return (i, o) => (m(), k("div", null, [
948
- r.value ? (m(), k("button", to, [
947
+ return (o, i) => (m(), k("div", null, [
948
+ r.value ? (m(), k("button", ni, [
949
949
  X(H(Ts))
950
950
  ])) : (m(), k("button", {
951
951
  key: 1,
@@ -956,7 +956,7 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
956
956
  ]))
957
957
  ]));
958
958
  }
959
- }), no = { class: "code-editor" }, so = { class: "code-buttons" }, ro = /* @__PURE__ */ ce({
959
+ }), si = { class: "code-editor" }, ri = { class: "code-buttons" }, ai = /* @__PURE__ */ ce({
960
960
  __name: "CodeEditor",
961
961
  props: /* @__PURE__ */ rs({
962
962
  locked: { type: Boolean },
@@ -968,32 +968,32 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
968
968
  emits: /* @__PURE__ */ rs(["update:locked"], ["update:modelValue"]),
969
969
  setup(e, { emit: t }) {
970
970
  const n = na(e, "modelValue"), s = t, r = (a) => s("update:locked", a);
971
- return (a, i) => {
972
- const o = _s("codemirror");
973
- return m(), k("div", no, [
974
- f("div", so, [
971
+ return (a, o) => {
972
+ const i = _s("codemirror");
973
+ return m(), k("div", si, [
974
+ f("div", ri, [
975
975
  e.locked ? (m(), k("button", {
976
976
  key: 0,
977
977
  class: "baklava-button",
978
978
  title: "The code is locked.",
979
- onClick: i[0] || (i[0] = (l) => r(!1))
979
+ onClick: o[0] || (o[0] = (l) => r(!1))
980
980
  }, [
981
981
  X(H(Nn))
982
982
  ])) : K("", !0),
983
983
  X(Hs, { text: e.modelValue }, null, 8, ["text"])
984
984
  ]),
985
- X(o, {
985
+ X(i, {
986
986
  modelValue: n.value,
987
- "onUpdate:modelValue": i[1] || (i[1] = (l) => n.value = l),
987
+ "onUpdate:modelValue": o[1] || (o[1] = (l) => n.value = l),
988
988
  extensions: e.extensions,
989
989
  class: "codemirror",
990
990
  style: { height: "100%" },
991
- onKeydown: i[2] || (i[2] = (l) => r(!0))
991
+ onKeydown: o[2] || (o[2] = (l) => r(!0))
992
992
  }, null, 8, ["modelValue", "extensions"])
993
993
  ]);
994
994
  };
995
995
  }
996
- }), ao = /* @__PURE__ */ ce({
996
+ }), oi = /* @__PURE__ */ ce({
997
997
  __name: "CodeGraphEditor",
998
998
  props: {
999
999
  viewModel: {}
@@ -1006,15 +1006,15 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1006
1006
  palette: Ye(() => [
1007
1007
  X(H(Vs))
1008
1008
  ]),
1009
- node: Ye((i) => [
1010
- X(H(Fs), aa(i, {
1011
- onUpdate: (o) => s(i.node)
1009
+ node: Ye((o) => [
1010
+ X(H(Fs), aa(o, {
1011
+ onUpdate: (i) => s(o.node)
1012
1012
  }), null, 16, ["onUpdate"])
1013
1013
  ]),
1014
- sidebar: Ye((i) => [
1015
- X(H(Gs), sa(ra(i)), {
1016
- codeEditor: Ye(({ node: o }) => [
1017
- Me(r.$slots, "sidebarCodeEditor", { node: o })
1014
+ sidebar: Ye((o) => [
1015
+ X(H(Gs), sa(ra(o)), {
1016
+ codeEditor: Ye(({ node: i }) => [
1017
+ Me(r.$slots, "sidebarCodeEditor", { node: i })
1018
1018
  ]),
1019
1019
  _: 3
1020
1020
  }, 16)
@@ -1022,13 +1022,13 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1022
1022
  _: 3
1023
1023
  }, 8, ["viewModel"]));
1024
1024
  }
1025
- }), io = { class: "code-graph-info" }, oo = /* @__PURE__ */ ce({
1025
+ }), ii = { class: "code-graph-info" }, li = /* @__PURE__ */ ce({
1026
1026
  __name: "CodeGraphInfo",
1027
1027
  props: {
1028
1028
  viewModel: {}
1029
1029
  },
1030
1030
  setup(e) {
1031
- return (t, n) => (m(), k("div", io, [
1031
+ return (t, n) => (m(), k("div", ii, [
1032
1032
  f("div", null, "Editor graph: " + te(e.viewModel.editor.graph.shortId), 1),
1033
1033
  f("div", null, "Displayed graph: " + te(e.viewModel.displayedGraph.shortId), 1),
1034
1034
  f("div", null, "Graphs: " + te(e.viewModel.editor.graphIds), 1),
@@ -1036,13 +1036,13 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1036
1036
  f("div", null, "Engine status: " + te(e.viewModel.engine?.status), 1)
1037
1037
  ]));
1038
1038
  }
1039
- }), lo = ["data-node-type", "id"], uo = {
1039
+ }), ui = ["data-node-type", "id"], di = {
1040
1040
  class: "__title-label",
1041
1041
  style: { "flex-grow": "1" }
1042
- }, co = { key: 0 }, ho = {
1042
+ }, ci = { key: 0 }, hi = {
1043
1043
  class: "__menu",
1044
1044
  style: { display: "flex" }
1045
- }, fo = { class: "__outputs" }, po = { key: 0 }, mo = ["id", "title"], vo = { class: "__inputs" }, _o = { key: 0 }, yo = ["id", "title"], Fs = /* @__PURE__ */ ce({
1045
+ }, fi = { class: "__outputs" }, pi = { key: 0 }, mi = ["id", "title"], vi = { class: "__inputs" }, _i = { key: 0 }, yi = ["id", "title"], Fs = /* @__PURE__ */ ce({
1046
1046
  __name: "CodeGraphNode",
1047
1047
  props: {
1048
1048
  node: {},
@@ -1051,9 +1051,9 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1051
1051
  },
1052
1052
  emits: ["select", "start-drag", "update"],
1053
1053
  setup(e, { emit: t }) {
1054
- const n = fn.ContextMenu, s = fn.NodeInterface, r = e, a = z(() => r.node), i = t, { viewModel: o } = kt(), { graph: l, switchGraph: u } = Cn(), h = ie(null), w = ie(!1), p = ie(""), I = ie(null), y = ie(!1);
1054
+ const n = fn.ContextMenu, s = fn.NodeInterface, r = e, a = z(() => r.node), o = t, { viewModel: i } = kt(), { graph: l, switchGraph: u } = Cn(), h = oe(null), w = oe(!1), p = oe(""), I = oe(null), y = oe(!1);
1055
1055
  let O = 0, c = 0;
1056
- const g = ie(!1), $ = z(() => {
1056
+ const g = oe(!1), $ = z(() => {
1057
1057
  const W = [
1058
1058
  { value: "edit", label: "Edit" },
1059
1059
  { value: "rename", label: "Rename" },
@@ -1066,22 +1066,22 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1066
1066
  "--two-column": !!r.node.twoColumn,
1067
1067
  "--hidden": a.value.state?.hidden
1068
1068
  })), F = z(() => ({
1069
- "--reverse-y": r.node.reverseY ?? o.value.settings.nodes.reverseY
1069
+ "--reverse-y": r.node.reverseY ?? i.value.settings.nodes.reverseY
1070
1070
  })), Te = z(() => ({
1071
1071
  top: `${r.node.position?.y ?? 0}px`,
1072
1072
  left: `${r.node.position?.x ?? 0}px`,
1073
- "--width": `${r.node.width ?? o.value.settings.nodes.defaultWidth}px`
1073
+ "--width": `${r.node.width ?? i.value.settings.nodes.defaultWidth}px`
1074
1074
  })), Ne = z(() => Object.values(r.node.inputs).filter((W) => !W.hidden)), ft = z(() => Object.values(r.node.outputs).filter((W) => !W.hidden)), we = () => {
1075
- an(), i("select");
1075
+ an(), o("select");
1076
1076
  }, C = (W) => {
1077
- r.selected || we(), i("start-drag", W);
1077
+ r.selected || we(), o("start-drag", W);
1078
1078
  }, Q = () => {
1079
1079
  g.value = !0;
1080
1080
  }, se = () => {
1081
- const W = o.value.displayedGraph.sidebar;
1081
+ const W = i.value.displayedGraph.sidebar;
1082
1082
  W.nodeId = r.node.id, W.visible = !0;
1083
1083
  }, an = () => {
1084
- const W = o.value.displayedGraph.sidebar;
1084
+ const W = i.value.displayedGraph.sidebar;
1085
1085
  W.nodeId = r.node.id;
1086
1086
  }, pt = async (W) => {
1087
1087
  switch (W) {
@@ -1101,14 +1101,14 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1101
1101
  }, Tt = () => {
1102
1102
  a.value.title = p.value, a.value.events.titleChanged.emit(a.value.title), w.value = !1;
1103
1103
  }, Nt = () => {
1104
- h.value && o.value.hooks.renderNode.execute({ node: r.node, el: h.value });
1104
+ h.value && i.value.hooks.renderNode.execute({ node: r.node, el: h.value });
1105
1105
  }, on = (W) => {
1106
1106
  y.value = !0, O = r.node.width, c = W.clientX, W.preventDefault();
1107
1107
  }, Dt = (W) => {
1108
- a.value.state && (a.value.state.integrated = W, i("update"));
1108
+ a.value.state && (a.value.state.integrated = W, o("update"));
1109
1109
  }, ze = (W) => {
1110
1110
  if (!y.value) return;
1111
- const B = W.clientX - c, b = O + B / l.value.scaling, S = o.value.settings.nodes.minWidth, M = o.value.settings.nodes.maxWidth;
1111
+ const B = W.clientX - c, b = O + B / l.value.scaling, S = i.value.settings.nodes.minWidth, M = i.value.settings.nodes.maxWidth;
1112
1112
  a.value.width = Math.max(S, Math.min(M, b));
1113
1113
  }, et = () => {
1114
1114
  y.value = !1;
@@ -1126,7 +1126,7 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1126
1126
  ref: h,
1127
1127
  onPointerdown: we
1128
1128
  }, [
1129
- H(o).settings.nodes.resizable ? (m(), k("div", {
1129
+ H(i).settings.nodes.resizable ? (m(), k("div", {
1130
1130
  key: 0,
1131
1131
  class: "__resize-handle",
1132
1132
  onMousedown: on
@@ -1159,11 +1159,11 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1159
1159
  }, null, 544)), [
1160
1160
  [jt, p.value]
1161
1161
  ]) : (m(), k(ae, { key: 1 }, [
1162
- f("div", uo, [
1163
- a.value.idx > -1 ? (m(), k("span", co, te(a.value.idx + 1) + " - ", 1)) : K("", !0),
1162
+ f("div", di, [
1163
+ a.value.idx > -1 ? (m(), k("span", ci, te(a.value.idx + 1) + " - ", 1)) : K("", !0),
1164
1164
  ws(" " + te(a.value.title), 1)
1165
1165
  ]),
1166
- f("div", ho, [
1166
+ f("div", hi, [
1167
1167
  a.value.isCodeNode ? (m(), k(ae, { key: 0 }, [
1168
1168
  a.value.state.lockCode ? (m(), ue(H(Nn), {
1169
1169
  key: 0,
@@ -1181,7 +1181,7 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1181
1181
  onClick: B[1] || (B[1] = (b) => Dt(!0))
1182
1182
  }))
1183
1183
  ], 64)) : K("", !0),
1184
- a.value.isSelected && !H(o).displayedGraph.sidebar.visible ? (m(), ue(H(Tn), {
1184
+ a.value.isSelected && !H(i).displayedGraph.sidebar.visible ? (m(), ue(H(Tn), {
1185
1185
  key: 2,
1186
1186
  class: "--clickable mx-1",
1187
1187
  onClick: se
@@ -1217,11 +1217,11 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1217
1217
  onContextmenu: B[6] || (B[6] = st(() => {
1218
1218
  }, ["prevent"]))
1219
1219
  }, [
1220
- f("div", fo, [
1220
+ f("div", fi, [
1221
1221
  (m(!0), k(ae, null, Ke(ft.value, (b) => (m(), k(ae, {
1222
1222
  key: b.id
1223
1223
  }, [
1224
- a.value.state?.hidden ? (m(), k("div", po, [
1224
+ a.value.state?.hidden ? (m(), k("div", pi, [
1225
1225
  b.port ? (m(), k("div", {
1226
1226
  key: 0,
1227
1227
  id: b.id,
@@ -1229,7 +1229,7 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1229
1229
  class: "baklava-node-interface --output --connected"
1230
1230
  }, [...B[7] || (B[7] = [
1231
1231
  f("div", { class: "__port" }, null, -1)
1232
- ])], 8, mo)) : K("", !0)
1232
+ ])], 8, mi)) : K("", !0)
1233
1233
  ])) : Me(W.$slots, "nodeInterface", {
1234
1234
  key: 1,
1235
1235
  type: "output",
@@ -1244,11 +1244,11 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1244
1244
  ])
1245
1245
  ], 64))), 128))
1246
1246
  ]),
1247
- f("div", vo, [
1247
+ f("div", vi, [
1248
1248
  (m(!0), k(ae, null, Ke(Ne.value, (b) => (m(), k(ae, {
1249
1249
  key: b.id
1250
1250
  }, [
1251
- a.value.state?.hidden ? (m(), k("div", _o, [
1251
+ a.value.state?.hidden ? (m(), k("div", _i, [
1252
1252
  b.port ? (m(), k("div", {
1253
1253
  key: 0,
1254
1254
  id: b.id,
@@ -1256,7 +1256,7 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1256
1256
  class: "baklava-node-interface --input --connected"
1257
1257
  }, [...B[8] || (B[8] = [
1258
1258
  f("div", { class: "__port" }, null, -1)
1259
- ])], 8, yo)) : K("", !0)
1259
+ ])], 8, yi)) : K("", !0)
1260
1260
  ])) : Me(W.$slots, "nodeInterface", {
1261
1261
  key: 1,
1262
1262
  node: a.value,
@@ -1272,17 +1272,17 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1272
1272
  ], 64))), 128))
1273
1273
  ])
1274
1274
  ], 34)
1275
- ], 46, lo));
1275
+ ], 46, ui));
1276
1276
  }
1277
- }), go = ["id"], bo = { class: "align-middle" }, pn = /* @__PURE__ */ ce({
1277
+ }), gi = ["id"], bi = { class: "align-middle" }, pn = /* @__PURE__ */ ce({
1278
1278
  __name: "CodeGraphNodeInterface",
1279
1279
  props: {
1280
1280
  node: {},
1281
1281
  intf: {}
1282
1282
  },
1283
1283
  setup(e) {
1284
- const t = e, { viewModel: n } = kt(), { hoveredOver: s, temporaryConnection: r } = da(), a = ie(null), i = z(() => t.intf.connectionCount > 0), o = z(() => ({
1285
- "--connected": i.value
1284
+ const t = e, { viewModel: n } = kt(), { hoveredOver: s, temporaryConnection: r } = da(), a = oe(null), o = z(() => t.intf.connectionCount > 0), i = z(() => ({
1285
+ "--connected": o.value
1286
1286
  })), l = () => {
1287
1287
  s(t.intf);
1288
1288
  }, u = () => {
@@ -1294,7 +1294,7 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1294
1294
  id: e.intf.id,
1295
1295
  ref_key: "el",
1296
1296
  ref: a,
1297
- class: je(["baklava-node-interface", o.value])
1297
+ class: je(["baklava-node-interface", i.value])
1298
1298
  }, [
1299
1299
  e.intf.port ? (m(), k("div", {
1300
1300
  key: 0,
@@ -1302,12 +1302,12 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1302
1302
  onPointerover: l,
1303
1303
  onPointerout: u
1304
1304
  }, null, 34)) : K("", !0),
1305
- f("span", bo, [
1305
+ f("span", bi, [
1306
1306
  Me(w.$slots, "default")
1307
1307
  ])
1308
- ], 10, go));
1308
+ ], 10, gi));
1309
1309
  }
1310
- }), wo = ["title"], ko = {
1310
+ }), wi = ["title"], ki = {
1311
1311
  key: 0,
1312
1312
  class: "__label"
1313
1313
  }, mn = /* @__PURE__ */ ce({
@@ -1340,17 +1340,17 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1340
1340
  })
1341
1341
  ])
1342
1342
  ], -1)),
1343
- e.name ? (m(), k("div", ko, te(e.name), 1)) : K("", !0)
1344
- ], 10, wo));
1343
+ e.name ? (m(), k("div", ki, te(e.name), 1)) : K("", !0)
1344
+ ], 10, wi));
1345
1345
  }
1346
- }), Mo = { class: "__header" }, So = { class: "__node-name" }, xo = { class: "__interfaces" }, Oo = { class: "__inputs" }, Co = { style: { display: "flex" } }, To = { class: "__outputs" }, No = {
1346
+ }), Mi = { class: "__header" }, Si = { class: "__node-name" }, xi = { class: "__interfaces" }, Oi = { class: "__inputs" }, Ci = { style: { display: "flex" } }, Ti = { class: "__outputs" }, Ni = {
1347
1347
  key: 0,
1348
1348
  class: "__interface"
1349
- }, Do = ["placeholder"], Io = { style: { display: "flex" } }, Gs = /* @__PURE__ */ ce({
1349
+ }, Di = ["placeholder"], Ii = { style: { display: "flex" } }, Gs = /* @__PURE__ */ ce({
1350
1350
  __name: "CodeGraphSidebar",
1351
1351
  setup(e) {
1352
- const { viewModel: t } = kt(), { graph: n } = Cn(), s = ie(null), r = Sn(t.value.settings.sidebar, "width"), a = z(() => t.value.settings.sidebar.resizable);
1353
- let i = 0, o = 0;
1352
+ const { viewModel: t } = kt(), { graph: n } = Cn(), s = oe(null), r = Sn(t.value.settings.sidebar, "width"), a = z(() => t.value.settings.sidebar.resizable);
1353
+ let o = 0, i = 0;
1354
1354
  const l = z(() => {
1355
1355
  const g = n.value.sidebar.nodeId;
1356
1356
  return n.value.nodes.find(($) => $.id === g);
@@ -1361,7 +1361,7 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1361
1361
  }, y = () => {
1362
1362
  l.value && (l.value.state.variableNameNumberAppendix = u.value.state.variableName.length === 0, l.value.events.update.emit(null));
1363
1363
  }, O = (g) => {
1364
- i = r.value, o = g.clientX, window.addEventListener("mousemove", c), window.addEventListener(
1364
+ o = r.value, i = g.clientX, window.addEventListener("mousemove", c), window.addEventListener(
1365
1365
  "mouseup",
1366
1366
  () => {
1367
1367
  window.removeEventListener("mousemove", c);
@@ -1369,8 +1369,8 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1369
1369
  { once: !0 }
1370
1370
  );
1371
1371
  }, c = (g) => {
1372
- const $ = s.value?.parentElement?.getBoundingClientRect().width ?? 500, A = g.clientX - o;
1373
- let F = i - A;
1372
+ const $ = s.value?.parentElement?.getBoundingClientRect().width ?? 500, A = g.clientX - i;
1373
+ let F = o - A;
1374
1374
  F < 300 ? F = 300 : F > 0.9 * $ && (F = 0.9 * $), r.value = F;
1375
1375
  };
1376
1376
  return (g, $) => (m(), k("div", {
@@ -1385,23 +1385,23 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1385
1385
  onMousedown: O
1386
1386
  }, null, 32)) : K("", !0),
1387
1387
  l.value ? (m(), k(ae, { key: 1 }, [
1388
- f("div", Mo, [
1388
+ f("div", Mi, [
1389
1389
  f("button", {
1390
1390
  tabindex: "-1",
1391
1391
  class: "__close",
1392
1392
  onClick: I
1393
1393
  }, "×"),
1394
- f("div", So, [
1394
+ f("div", Si, [
1395
1395
  f("b", null, te(l.value.title), 1)
1396
1396
  ])
1397
1397
  ]),
1398
- f("div", xo, [
1399
- f("div", Oo, [
1398
+ f("div", xi, [
1399
+ f("div", Oi, [
1400
1400
  (m(!0), k(ae, null, Ke(w.value, (A) => (m(), k("div", {
1401
1401
  key: A.id,
1402
1402
  class: "__interface"
1403
1403
  }, [
1404
- f("div", Co, [
1404
+ f("div", Ci, [
1405
1405
  X(mn, {
1406
1406
  modelValue: A.hidden,
1407
1407
  "onUpdate:modelValue": [
@@ -1422,8 +1422,8 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1422
1422
  ])
1423
1423
  ]))), 128))
1424
1424
  ]),
1425
- f("div", To, [
1426
- u.value && u.value.state ? (m(), k("div", No, [
1425
+ f("div", Ti, [
1426
+ u.value && u.value.state ? (m(), k("div", Ni, [
1427
1427
  $[3] || ($[3] = f("label", null, "Variable name", -1)),
1428
1428
  Vt(f("input", {
1429
1429
  "onUpdate:modelValue": $[1] || ($[1] = (A) => u.value.state.variableName = A),
@@ -1433,7 +1433,7 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1433
1433
  title: "Variable name",
1434
1434
  onBlur: y,
1435
1435
  onKeydown: hn(y, ["enter"])
1436
- }, null, 40, Do), [
1436
+ }, null, 40, Di), [
1437
1437
  [jt, u.value.state.variableName]
1438
1438
  ])
1439
1439
  ])) : K("", !0),
@@ -1441,7 +1441,7 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1441
1441
  key: A.id,
1442
1442
  class: "__interface"
1443
1443
  }, [
1444
- f("div", Io, [
1444
+ f("div", Ii, [
1445
1445
  X(mn, {
1446
1446
  modelValue: A.hidden,
1447
1447
  "onUpdate:modelValue": [
@@ -1468,34 +1468,34 @@ const Qi = /* @__PURE__ */ qi(Ji), eo = (e) => ({
1468
1468
  ], 6));
1469
1469
  }
1470
1470
  });
1471
- function Yo(e, t) {
1471
+ function Yi(e, t) {
1472
1472
  return Object.fromEntries(Object.entries(e).filter(t));
1473
1473
  }
1474
- function Eo(e, t) {
1474
+ function Ei(e, t) {
1475
1475
  return Object.fromEntries(Object.entries(e).map(([n, s]) => [n, t(s)]));
1476
1476
  }
1477
- const Ro = {
1477
+ const Ri = {
1478
1478
  class: "baklava-node --palette",
1479
1479
  style: { "margin-top": "-20px", "margin-bottom": "20px" }
1480
- }, Po = {
1480
+ }, Pi = {
1481
1481
  key: 0,
1482
1482
  style: { display: "flex", "justify-content": "space-between" }
1483
- }, Lo = ["onClick"], Ao = {
1483
+ }, Li = ["onClick"], Ai = {
1484
1484
  key: 0,
1485
1485
  style: { margin: "auto 0", "font-size": "12px" }
1486
1486
  }, Vs = /* @__PURE__ */ ce({
1487
1487
  __name: "CodeNodePalette",
1488
1488
  setup(e) {
1489
- const t = fn.PaletteEntry, { viewModel: n } = kt(), { x: s, y: r } = Aa(), { transform: a } = ca(), i = ha(n), o = ia("editorEl"), l = ie(""), u = ie(null), h = () => l.value ? i.value.filter(
1489
+ const t = fn.PaletteEntry, { viewModel: n } = kt(), { x: s, y: r } = Aa(), { transform: a } = ca(), o = ha(n), i = oa("editorEl"), l = oe(""), u = oe(null), h = () => l.value ? o.value.filter(
1490
1490
  (y) => y.name.toLowerCase().includes(l.value.toLowerCase()) || Object.values(y.nodeTypes).some(
1491
1491
  (O) => O.title.toLowerCase().includes(l.value.toLowerCase())
1492
1492
  )
1493
- ) : i.value, w = (y) => l.value ? Yo(y, (O) => {
1493
+ ) : o.value, w = (y) => l.value ? Yi(y, (O) => {
1494
1494
  const c = O[1];
1495
1495
  return c.category.includes(l.value.toLowerCase()) || c.title?.toLowerCase().includes(l.value.toLowerCase());
1496
1496
  }) : y, p = z(() => {
1497
- if (!u.value || !o?.value) return {};
1498
- const { left: y, top: O } = o.value.getBoundingClientRect();
1497
+ if (!u.value || !i?.value) return {};
1498
+ const { left: y, top: O } = i.value.getBoundingClientRect();
1499
1499
  return {
1500
1500
  top: `${r.value - O}px`,
1501
1501
  left: `${s.value - y}px`
@@ -1508,7 +1508,7 @@ const Ro = {
1508
1508
  const c = () => {
1509
1509
  const g = Ae(new O.type());
1510
1510
  n.value.displayedGraph.addNode(g);
1511
- const $ = o.value.getBoundingClientRect(), [A, F] = a(s.value - $.left, r.value - $.top);
1511
+ const $ = i.value.getBoundingClientRect(), [A, F] = a(s.value - $.left, r.value - $.top);
1512
1512
  g.position.x = A, g.position.y = F, u.value = null, document.removeEventListener("pointerup", c);
1513
1513
  };
1514
1514
  document.addEventListener("pointerup", c);
@@ -1519,7 +1519,7 @@ const Ro = {
1519
1519
  onContextmenu: O[1] || (O[1] = st(() => {
1520
1520
  }, ["stop", "prevent"]))
1521
1521
  }, [
1522
- f("div", Ro, [
1522
+ f("div", Ri, [
1523
1523
  Vt(f("input", {
1524
1524
  "onUpdate:modelValue": O[0] || (O[0] = (c) => l.value = c),
1525
1525
  type: "text",
@@ -1533,12 +1533,12 @@ const Ro = {
1533
1533
  (m(!0), k(ae, null, Ke(h(), (c) => (m(), k("section", {
1534
1534
  key: c.name
1535
1535
  }, [
1536
- c.name !== "default" ? (m(), k("h3", Po, [
1536
+ c.name !== "default" ? (m(), k("h3", Pi, [
1537
1537
  f("div", {
1538
1538
  onClick: (g) => l.value = c.name,
1539
1539
  style: { cursor: "pointer" }
1540
- }, te(c.name), 9, Lo),
1541
- Object.keys(w(c.nodeTypes)).length < Object.values(c.nodeTypes).length ? (m(), k("div", Ao, " ( " + te(Object.keys(w(c.nodeTypes)).length) + " / " + te(Object.values(c.nodeTypes).length) + " ) ", 1)) : K("", !0)
1540
+ }, te(c.name), 9, Li),
1541
+ Object.keys(w(c.nodeTypes)).length < Object.values(c.nodeTypes).length ? (m(), k("div", Ai, " ( " + te(Object.keys(w(c.nodeTypes)).length) + " / " + te(Object.values(c.nodeTypes).length) + " ) ", 1)) : K("", !0)
1542
1542
  ])) : K("", !0),
1543
1543
  (m(!0), k(ae, null, Ke(w(c.nodeTypes), (g, $) => (m(), ue(H(t), {
1544
1544
  key: $,
@@ -1548,7 +1548,7 @@ const Ro = {
1548
1548
  }, null, 8, ["title", "type", "onPointerdown"]))), 128))
1549
1549
  ]))), 128))
1550
1550
  ], 34),
1551
- X(oa, { name: "fade" }, {
1551
+ X(ia, { name: "fade" }, {
1552
1552
  default: Ye(() => [
1553
1553
  u.value ? (m(), k("div", {
1554
1554
  key: 0,
@@ -1565,23 +1565,23 @@ const Ro = {
1565
1565
  })
1566
1566
  ], 64));
1567
1567
  }
1568
- }), Uo = {}, $o = { class: "prependIcon" }, Wo = { class: "appendIcon" };
1569
- function Ho(e, t) {
1568
+ }), Ui = {}, $i = { class: "prependIcon" }, Wi = { class: "appendIcon" };
1569
+ function Hi(e, t) {
1570
1570
  const n = _s("router-link");
1571
1571
  return m(), ue(n, { class: "navItem" }, {
1572
1572
  default: Ye(() => [
1573
- f("span", $o, [
1573
+ f("span", $i, [
1574
1574
  Me(e.$slots, "prependIcon")
1575
1575
  ]),
1576
1576
  Me(e.$slots, "default"),
1577
- f("span", Wo, [
1577
+ f("span", Wi, [
1578
1578
  Me(e.$slots, "appendIcon")
1579
1579
  ])
1580
1580
  ]),
1581
1581
  _: 3
1582
1582
  });
1583
1583
  }
1584
- const vn = /* @__PURE__ */ q(Uo, [["render", Ho]]), Fo = { class: "navbar" }, Go = ["onClick"], Vo = /* @__PURE__ */ ce({
1584
+ const vn = /* @__PURE__ */ q(Ui, [["render", Hi]]), Fi = { class: "navbar" }, Gi = ["onClick"], Vi = /* @__PURE__ */ ce({
1585
1585
  __name: "NavBar",
1586
1586
  props: {
1587
1587
  viewModel: {},
@@ -1593,23 +1593,23 @@ const vn = /* @__PURE__ */ q(Uo, [["render", Ho]]), Fo = { class: "navbar" }, Go
1593
1593
  const n = t, s = (r) => {
1594
1594
  n("click:remove", r);
1595
1595
  };
1596
- return (r, a) => (m(), k("nav", Fo, [
1596
+ return (r, a) => (m(), k("nav", Fi, [
1597
1597
  Me(r.$slots, "prepend"),
1598
- (m(!0), k(ae, null, Ke(e.editorStates, (i) => (m(), ue(vn, {
1599
- key: i.graph.id,
1600
- class: je({ active: i.graph.id === e.viewModel.displayedGraph.id }),
1601
- to: { name: e.routes?.edit ?? "edit", params: { editorId: i.graph.id } }
1598
+ (m(!0), k(ae, null, Ke(e.editorStates, (o) => (m(), ue(vn, {
1599
+ key: o.graph.id,
1600
+ class: je({ active: o.graph.id === e.viewModel.displayedGraph.id }),
1601
+ to: { name: e.routes?.edit ?? "edit", params: { editorId: o.graph.id } }
1602
1602
  }, {
1603
1603
  appendIcon: Ye(() => [
1604
1604
  f("button", {
1605
1605
  class: "remove",
1606
- onClick: st((o) => s(i.graph.id), ["prevent"])
1606
+ onClick: st((i) => s(o.graph.id), ["prevent"])
1607
1607
  }, [
1608
1608
  X(H(Ws))
1609
- ], 8, Go)
1609
+ ], 8, Gi)
1610
1610
  ]),
1611
1611
  default: Ye(() => [
1612
- ws(te(i.graph.id.slice(0, 6)) + " ", 1)
1612
+ ws(te(o.graph.id.slice(0, 6)) + " ", 1)
1613
1613
  ]),
1614
1614
  _: 2
1615
1615
  }, 1032, ["class", "to"]))), 128)),
@@ -1626,7 +1626,7 @@ const vn = /* @__PURE__ */ q(Uo, [["render", Ho]]), Fo = { class: "navbar" }, Go
1626
1626
  ])
1627
1627
  ]));
1628
1628
  }
1629
- }), jo = ce({
1629
+ }), ji = ce({
1630
1630
  props: {
1631
1631
  intf: {
1632
1632
  type: Object,
@@ -1646,44 +1646,44 @@ const vn = /* @__PURE__ */ q(Uo, [["render", Ho]]), Fo = { class: "navbar" }, Go
1646
1646
  }
1647
1647
  }) };
1648
1648
  }
1649
- }), zo = { style: { position: "relative" } }, Bo = { style: { "font-size": "12px", padding: "0 6px", position: "absolute", top: "-8px", "background-color": "var(--baklava-node-color-background)" } }, Zo = ["placeholder", "title"];
1650
- function qo(e, t, n, s, r, a) {
1651
- return m(), k("div", zo, [
1652
- f("label", Bo, te(e.intf.name), 1),
1649
+ }), zi = { style: { position: "relative" } }, Bi = { style: { "font-size": "12px", padding: "0 6px", position: "absolute", top: "-8px", "background-color": "var(--baklava-node-color-background)" } }, Zi = ["placeholder", "title"];
1650
+ function qi(e, t, n, s, r, a) {
1651
+ return m(), k("div", zi, [
1652
+ f("label", Bi, te(e.intf.name), 1),
1653
1653
  Vt(f("input", {
1654
- "onUpdate:modelValue": t[0] || (t[0] = (i) => e.v = i),
1654
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.v = o),
1655
1655
  type: "text",
1656
1656
  class: "baklava-input",
1657
1657
  placeholder: e.intf.name,
1658
1658
  title: e.intf.name
1659
- }, null, 8, Zo), [
1659
+ }, null, 8, Zi), [
1660
1660
  [jt, e.v]
1661
1661
  ])
1662
1662
  ]);
1663
1663
  }
1664
- const js = /* @__PURE__ */ q(jo, [["render", qo]]), Rh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1664
+ const js = /* @__PURE__ */ q(ji, [["render", qi]]), Rh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1665
1665
  __proto__: null,
1666
- CodeEditor: ro,
1667
- CodeGraphEditor: ao,
1668
- CodeGraphInfo: oo,
1666
+ CodeEditor: ai,
1667
+ CodeGraphEditor: oi,
1668
+ CodeGraphInfo: li,
1669
1669
  CodeGraphNode: Fs,
1670
1670
  CodeGraphNodeInterface: pn,
1671
1671
  CodeGraphSidebar: Gs,
1672
1672
  CodeNodePalette: Vs,
1673
1673
  CopyToClipboard: Hs,
1674
- NavBar: Vo,
1674
+ NavBar: Vi,
1675
1675
  NavItem: vn,
1676
1676
  SidebarCheckbox: mn,
1677
1677
  TextInputInterface: js
1678
1678
  }, Symbol.toStringTag, { value: "Module" }));
1679
1679
  ut.escape = (e) => e;
1680
1680
  class zs extends Ia {
1681
+ _variableName = "";
1681
1682
  codeTemplate;
1682
1683
  isCodeNode = !0;
1683
1684
  mask = null;
1684
1685
  name = "";
1685
1686
  state;
1686
- _variableName = "";
1687
1687
  inputs = {};
1688
1688
  outputs = {};
1689
1689
  constructor() {
@@ -1695,10 +1695,9 @@ class zs extends Ia {
1695
1695
  modules: [],
1696
1696
  props: null,
1697
1697
  script: "",
1698
- variableName: "",
1699
- variableNameNumberAppendix: !0
1698
+ variableName: ""
1700
1699
  }), this.codeTemplate = function() {
1701
- return `${this.name}(${Ko(this.codeNodeInputs).join(", ")})`;
1700
+ return `${this.name}(${Ki(this.codeNodeInputs).join(", ")})`;
1702
1701
  };
1703
1702
  }
1704
1703
  get code() {
@@ -1731,7 +1730,7 @@ class zs extends Ia {
1731
1730
  return this.graph.getNodesByType(this.type).indexOf(this) ?? -1;
1732
1731
  }
1733
1732
  get idxByVariableNames() {
1734
- return this.graph.getNodesByVariableName(this.state.variableName || this._variableName).filter((t) => !t.state.integrated).indexOf(this) ?? -1;
1733
+ return this.graph.getNodesByVariableName(this._variableName).filter((t) => !t.state.integrated).indexOf(this) ?? -1;
1735
1734
  }
1736
1735
  get isSelected() {
1737
1736
  return this.graph.selectedNodeIds.includes(this.id);
@@ -1764,7 +1763,10 @@ class zs extends Ia {
1764
1763
  get subgraph() {
1765
1764
  }
1766
1765
  get variableName() {
1767
- return this.state.variableName || this._variableName ? (this.state.variableName || this._variableName) + (this.state.variableNameNumberAppendix ? this.idxByVariableNames + 1 : "") : "";
1766
+ return this.state.variableName || this._variableName ? this.state.variableName || this._variableName + (this.idxByVariableNames + 1) : "";
1767
+ }
1768
+ set variableName(t) {
1769
+ this._variableName = t;
1768
1770
  }
1769
1771
  /**
1770
1772
  * Get connected node to the node interface.
@@ -1900,14 +1902,14 @@ class Dn extends zs {
1900
1902
  super.load(t), this.afterLoaded();
1901
1903
  }
1902
1904
  }
1903
- const Ko = (e, t = !0) => {
1905
+ const Ki = (e, t = !0) => {
1904
1906
  const n = [], s = Object.keys(e);
1905
1907
  return s.forEach((r) => {
1906
1908
  if (e[r]?.hidden) return;
1907
- const i = t && n.length < s.indexOf(r) ? `${r}=` : "";
1908
- n.push(`${i}{{ inputs.${r} }}`);
1909
+ const o = t && n.length < s.indexOf(r) ? `${r}=` : "";
1910
+ n.push(`${o}{{ inputs.${r} }}`);
1909
1911
  }), n;
1910
- }, Xo = (e, t) => {
1912
+ }, Xi = (e, t) => {
1911
1913
  switch (e) {
1912
1914
  case "CheckBoxInterface":
1913
1915
  return new el(t.id, t.value);
@@ -1930,7 +1932,7 @@ const Ko = (e, t = !0) => {
1930
1932
  default:
1931
1933
  return new Qs(t.id, t.value);
1932
1934
  }
1933
- }, Jo = ["title"], In = /* @__PURE__ */ ce({
1935
+ }, Ji = ["title"], In = /* @__PURE__ */ ce({
1934
1936
  __name: "CodeNodeInterface",
1935
1937
  props: {
1936
1938
  intf: {}
@@ -1938,10 +1940,10 @@ const Ko = (e, t = !0) => {
1938
1940
  setup(e) {
1939
1941
  return (t, n) => (m(), k("div", {
1940
1942
  title: e.intf.value
1941
- }, te(e.intf.name), 9, Jo));
1943
+ }, te(e.intf.name), 9, Ji));
1942
1944
  }
1943
1945
  });
1944
- class oe extends Se {
1946
+ class ie extends Se {
1945
1947
  isCodeNode = !0;
1946
1948
  code;
1947
1949
  state;
@@ -1974,7 +1976,7 @@ class oe extends Se {
1974
1976
  return this.state.optional = t, this.setHidden(t), this;
1975
1977
  }
1976
1978
  }
1977
- class Mt extends oe {
1979
+ class Mt extends ie {
1978
1980
  constructor(t = "", n) {
1979
1981
  super(t, n), this.setComponent(he(In)), this.use(Ms, !0);
1980
1982
  }
@@ -1985,8 +1987,8 @@ class Mt extends oe {
1985
1987
  super.value = t, this.name !== "_code" && this.setHidden(!1);
1986
1988
  }
1987
1989
  }
1988
- const Bs = new Je("boolean"), Qo = new Je("dict"), Zs = new Je("list"), _e = new Je("node"), qs = new Je("number"), Ks = new Je("string"), Xs = new Je("tuple"), Ph = (e) => {
1989
- new Ua(e.editor, { viewPlugin: e }).addTypes(Bs, Qo, Zs, _e, qs, Ks, Xs);
1990
+ const Bs = new Je("boolean"), Qi = new Je("dict"), Zs = new Je("list"), _e = new Je("node"), qs = new Je("number"), Ks = new Je("string"), Xs = new Je("tuple"), Ph = (e) => {
1991
+ new Ua(e.editor, { viewPlugin: e }).addTypes(Bs, Qi, Zs, _e, qs, Ks, Xs);
1990
1992
  };
1991
1993
  class el extends Mt {
1992
1994
  constructor(t, n) {
@@ -1994,7 +1996,7 @@ class el extends Mt {
1994
1996
  }
1995
1997
  getValue = () => this.value ? "True" : "False";
1996
1998
  }
1997
- class tl extends oe {
1999
+ class tl extends ie {
1998
2000
  isCodeNodeOutput = !0;
1999
2001
  suffix = "";
2000
2002
  constructor(t = "", n = "") {
@@ -2073,12 +2075,12 @@ function Wh(e) {
2073
2075
  inputs = {};
2074
2076
  outputs = {};
2075
2077
  constructor() {
2076
- super(), this._title = e.title ?? e.type, this.executeFactory("input", e.inputs), this.executeFactory("output", e.outputs), e.calculate && (this.calculate = (t, n) => e.calculate.call(this, t, n)), e.onCreate?.call(this), this.name = e.name ?? e.type, this.updateModules(e.modules), e.codeTemplate && (this.codeTemplate = e.codeTemplate), e.variableName != null && (this._variableName = e.variableName), this.addInput(
2078
+ super(), this._title = e.title ?? e.type, this.executeFactory("input", e.inputs), this.executeFactory("output", e.outputs), e.calculate && (this.calculate = (t, n) => e.calculate.call(this, t, n)), e.onCreate?.call(this), this.name = e.name ?? e.type, this.updateModules(e.modules), e.codeTemplate && (this.codeTemplate = e.codeTemplate), e.variableName != null && (this.variableName = e.variableName), this.addInput(
2077
2079
  "_code",
2078
- new oe("_code", []).use(ne, _e).use(lt).setHidden(!0)
2080
+ new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
2079
2081
  ), this.addOutput(
2080
2082
  "_code",
2081
- new oe("_code", []).use(ne, _e).use(lt).setHidden(!0)
2083
+ new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
2082
2084
  );
2083
2085
  }
2084
2086
  afterGraphLoaded() {
@@ -2118,12 +2120,12 @@ function Hh(e) {
2118
2120
  staticInputKeys = Object.keys(e.inputs ?? {});
2119
2121
  staticOutputKeys = Object.keys(e.outputs ?? {});
2120
2122
  constructor() {
2121
- super(), this._title = e.title ?? e.type, this.executeFactory("input", e.inputs), this.executeFactory("output", e.outputs), e.calculate && (this.calculate = (t, n) => e.calculate?.call(this, t, n)), e.onCreate?.call(this), this.name = e.name ?? e.type, this.updateModules(e.modules), e.codeTemplate && (this.codeTemplate = e.codeTemplate), e.variableName && (this._variableName = e.variableName), this.addInput(
2123
+ super(), this._title = e.title ?? e.type, this.executeFactory("input", e.inputs), this.executeFactory("output", e.outputs), e.calculate && (this.calculate = (t, n) => e.calculate?.call(this, t, n)), e.onCreate?.call(this), this.name = e.name ?? e.type, this.updateModules(e.modules), e.codeTemplate && (this.codeTemplate = e.codeTemplate), e.variableName && (this.variableName = e.variableName), this.addInput(
2122
2124
  "_code",
2123
- new oe("_code", []).use(ne, _e).use(lt).setHidden(!0)
2125
+ new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
2124
2126
  ), this.addOutput(
2125
2127
  "_code",
2126
- new oe("_code", []).use(ne, _e).use(lt).setHidden(!0)
2128
+ new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
2127
2129
  ), this.staticInputKeys.push("_code"), this.staticOutputKeys.push("_code");
2128
2130
  }
2129
2131
  afterGraphLoaded() {
@@ -2164,7 +2166,7 @@ function Hh(e) {
2164
2166
  if (!this.inputs[n]) {
2165
2167
  const s = t.inputs[n], r = s.value;
2166
2168
  let a;
2167
- s.component ? a = Xo(s.component, { ...s, id: n }) : typeof r == "number" ? a = new Js(n, r) : a = new Qs(n, JSON.stringify(r)), a.use(Ms, !0), this.addInput(n, a);
2169
+ s.component ? a = Xi(s.component, { ...s, id: n }) : typeof r == "number" ? a = new Js(n, r) : a = new Qs(n, JSON.stringify(r)), a.use(Ms, !0), this.addInput(n, a);
2168
2170
  }
2169
2171
  this.inputs[n] && (this.inputs[n].load(t.inputs[n]), this.inputs[n].nodeId = this.id);
2170
2172
  }
@@ -2195,12 +2197,12 @@ function Hh(e) {
2195
2197
  }
2196
2198
  updateInterfaces(t, n = {}, s = []) {
2197
2199
  const r = t === "input" ? this.staticInputKeys : this.staticOutputKeys, a = t === "input" ? this.inputs : this.outputs;
2198
- for (const i of Object.keys(a))
2199
- r.includes(i) || n[i] && !s.includes(i) || (t === "input" ? this.removeInput(i) : this.removeOutput(i));
2200
- for (const i of Object.keys(n)) {
2201
- if (a[i]) continue;
2202
- const o = n[i]();
2203
- t === "input" ? this.addInput(i, o) : this.addOutput(i, o);
2200
+ for (const o of Object.keys(a))
2201
+ r.includes(o) || n[o] && !s.includes(o) || (t === "input" ? this.removeInput(o) : this.removeOutput(o));
2202
+ for (const o of Object.keys(n)) {
2203
+ if (a[o]) continue;
2204
+ const i = n[o]();
2205
+ t === "input" ? this.addInput(o, i) : this.addOutput(o, i);
2204
2206
  }
2205
2207
  }
2206
2208
  updateProps(t) {
@@ -2305,24 +2307,24 @@ class al extends $a {
2305
2307
  }
2306
2308
  async runGraph(t, n, s) {
2307
2309
  this.order.has(t.id) || this.order.set(t.id, Wa(t));
2308
- const { calculationOrder: r, connectionsFromNode: a } = this.order.get(t.id), i = /* @__PURE__ */ new Map();
2309
- for (const o of r) {
2310
+ const { calculationOrder: r, connectionsFromNode: a } = this.order.get(t.id), o = /* @__PURE__ */ new Map();
2311
+ for (const i of r) {
2310
2312
  const l = {};
2311
- Object.entries(o.inputs).forEach(([h, w]) => {
2313
+ Object.entries(i.inputs).forEach(([h, w]) => {
2312
2314
  l[h] = this.getInterfaceValue(n, w.id);
2313
- }), o.isCodeNode && (o.updateCodeTemplate(), o.updateOutputNames()), this.events.beforeNodeCalculation.emit({ inputValues: l, node: o });
2315
+ }), i.isCodeNode && (i.updateCodeTemplate(), i.updateOutputNames()), this.events.beforeNodeCalculation.emit({ inputValues: l, node: i });
2314
2316
  let u;
2315
- if (o.calculate) {
2316
- if (u = await o.calculate(l, { globalValues: s, engine: this }), a.has(o))
2317
+ if (i.calculate) {
2318
+ if (u = await i.calculate(l, { globalValues: s, engine: this }), a.has(i))
2317
2319
  for (const [h, w] of Object.entries(u))
2318
- this.hooks.transferData.execute(u[h], w), a.get(o).forEach((p) => n.set(p.to.id, w));
2320
+ this.hooks.transferData.execute(u[h], w), a.get(i).forEach((p) => n.set(p.to.id, w));
2319
2321
  } else {
2320
2322
  u = {};
2321
- for (const [h, w] of Object.entries(o.outputs))
2323
+ for (const [h, w] of Object.entries(i.outputs))
2322
2324
  u[h] = this.getInterfaceValue(n, w.id);
2323
2325
  }
2324
- this.events.afterNodeCalculation.emit({ outputValues: u, node: o }), i.set(o.id, new Map(Object.entries(u))), a.has(o) && a.get(o).forEach((h) => {
2325
- const w = Object.entries(o.outputs).find(([, I]) => I.id === h.from.id)?.[0];
2326
+ this.events.afterNodeCalculation.emit({ outputValues: u, node: i }), o.set(i.id, new Map(Object.entries(u))), a.has(i) && a.get(i).forEach((h) => {
2327
+ const w = Object.entries(i.outputs).find(([, I]) => I.id === h.from.id)?.[0];
2326
2328
  if (!w)
2327
2329
  throw new Error(
2328
2330
  `Could not find key for interface ${h.from.id}
@@ -2332,7 +2334,7 @@ This is likely an internal issue. Please report it on GitHub.`
2332
2334
  w !== "_code" && (h.to.allowMultipleConnections ? n.has(h.to.id) ? n.get(h.to.id).push(p) : n.set(h.to.id, [p]) : n.set(h.to.id, p));
2333
2335
  });
2334
2336
  }
2335
- return i;
2337
+ return o;
2336
2338
  }
2337
2339
  async execute(t) {
2338
2340
  this.recalculateOrder && (this.order.clear(), this.recalculateOrder = !1);
@@ -2365,7 +2367,7 @@ var er;
2365
2367
  function v() {
2366
2368
  return er.apply(null, arguments);
2367
2369
  }
2368
- function il(e) {
2370
+ function ol(e) {
2369
2371
  er = e;
2370
2372
  }
2371
2373
  function ye(e) {
@@ -2409,7 +2411,7 @@ function Fe(e, t) {
2409
2411
  function Oe(e, t, n, s) {
2410
2412
  return Sr(e, t, n, s, !0).utc();
2411
2413
  }
2412
- function ol() {
2414
+ function il() {
2413
2415
  return {
2414
2416
  empty: !1,
2415
2417
  unusedTokens: [],
@@ -2430,7 +2432,7 @@ function ol() {
2430
2432
  };
2431
2433
  }
2432
2434
  function N(e) {
2433
- return e._pf == null && (e._pf = ol()), e._pf;
2435
+ return e._pf == null && (e._pf = il()), e._pf;
2434
2436
  }
2435
2437
  var _n;
2436
2438
  Array.prototype.some ? _n = Array.prototype.some : _n = function(e) {
@@ -2475,13 +2477,13 @@ function fe(e, t) {
2475
2477
  var n = !0;
2476
2478
  return Fe(function() {
2477
2479
  if (v.deprecationHandler != null && v.deprecationHandler(null, e), n) {
2478
- var s = [], r, a, i, o = arguments.length;
2479
- for (a = 0; a < o; a++) {
2480
+ var s = [], r, a, o, i = arguments.length;
2481
+ for (a = 0; a < i; a++) {
2480
2482
  if (r = "", typeof arguments[a] == "object") {
2481
2483
  r += `
2482
2484
  [` + a + "] ";
2483
- for (i in arguments[0])
2484
- P(arguments[0], i) && (r += i + ": " + arguments[0][i] + ", ");
2485
+ for (o in arguments[0])
2486
+ P(arguments[0], o) && (r += o + ": " + arguments[0][o] + ", ");
2485
2487
  r = r.slice(0, -2);
2486
2488
  } else
2487
2489
  r = arguments[a];
@@ -2569,9 +2571,9 @@ function hl(e) {
2569
2571
  for (n = 0, s = t.length; n < s; n++)
2570
2572
  at[t[n]] ? t[n] = at[t[n]] : t[n] = cl(t[n]);
2571
2573
  return function(r) {
2572
- var a = "", i;
2573
- for (i = 0; i < s; i++)
2574
- a += Ce(t[i]) ? t[i].call(r, e) : t[i];
2574
+ var a = "", o;
2575
+ for (o = 0; o < s; o++)
2576
+ a += Ce(t[o]) ? t[o].call(r, e) : t[o];
2575
2577
  return a;
2576
2578
  };
2577
2579
  }
@@ -2723,7 +2725,7 @@ function Sl(e) {
2723
2725
  return s.priority - r.priority;
2724
2726
  }), t;
2725
2727
  }
2726
- var ar = /\d/, le = /\d\d/, ir = /\d{3}/, Hn = /\d{4}/, Bt = /[+-]?\d{6}/, V = /\d\d?/, or = /\d\d\d\d?/, lr = /\d\d\d\d\d\d?/, Zt = /\d{1,3}/, Fn = /\d{1,4}/, qt = /[+-]?\d{1,6}/, dt = /\d+/, Kt = /[+-]?\d+/, xl = /Z|[+-]\d\d:?\d\d/gi, Xt = /Z|[+-]\d\d(?::?\d\d)?/gi, Ol = /[+-]?\d+(\.\d{1,3})?/, Ot = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, ct = /^[1-9]\d?/, Gn = /^([1-9]\d|\d)/, Ut;
2728
+ var ar = /\d/, le = /\d\d/, or = /\d{3}/, Hn = /\d{4}/, Bt = /[+-]?\d{6}/, V = /\d\d?/, ir = /\d\d\d\d?/, lr = /\d\d\d\d\d\d?/, Zt = /\d{1,3}/, Fn = /\d{1,4}/, qt = /[+-]?\d{1,6}/, dt = /\d+/, Kt = /[+-]?\d+/, xl = /Z|[+-]\d\d:?\d\d/gi, Xt = /Z|[+-]\d\d(?::?\d\d)?/gi, Ol = /[+-]?\d+(\.\d{1,3})?/, Ot = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, ct = /^[1-9]\d?/, Gn = /^([1-9]\d|\d)/, Ut;
2727
2729
  Ut = {};
2728
2730
  function _(e, t, n) {
2729
2731
  Ut[e] = Ce(t) ? t : function(s, r) {
@@ -2756,8 +2758,8 @@ function Y(e) {
2756
2758
  var bn = {};
2757
2759
  function U(e, t) {
2758
2760
  var n, s = t, r;
2759
- for (typeof e == "string" && (e = [e]), Ue(t) && (s = function(a, i) {
2760
- i[t] = Y(a);
2761
+ for (typeof e == "string" && (e = [e]), Ue(t) && (s = function(a, o) {
2762
+ o[t] = Y(a);
2761
2763
  }), r = e.length, n = 0; n < r; n++)
2762
2764
  bn[e[n]] = s;
2763
2765
  }
@@ -2839,7 +2841,7 @@ function yt(e, t) {
2839
2841
  }
2840
2842
  }
2841
2843
  function dr(e, t, n) {
2842
- var s, r, a, i, o;
2844
+ var s, r, a, o, i;
2843
2845
  if (!(!e.isValid() || isNaN(n))) {
2844
2846
  switch (s = e._d, r = e._isUTC, t) {
2845
2847
  case "Milliseconds":
@@ -2862,7 +2864,7 @@ function dr(e, t, n) {
2862
2864
  default:
2863
2865
  return;
2864
2866
  }
2865
- a = n, i = e.month(), o = e.date(), o = o === 29 && i === 1 && !Jt(a) ? 28 : o, r ? s.setUTCFullYear(a, i, o) : s.setFullYear(a, i, o);
2867
+ a = n, o = e.month(), i = e.date(), i = i === 29 && o === 1 && !Jt(a) ? 28 : i, r ? s.setUTCFullYear(a, o, i) : s.setFullYear(a, o, i);
2866
2868
  }
2867
2869
  }
2868
2870
  function El(e) {
@@ -2929,14 +2931,14 @@ function Wl(e, t) {
2929
2931
  return e ? ye(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[hr.test(t) ? "format" : "standalone"][e.month()] : ye(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
2930
2932
  }
2931
2933
  function Hl(e, t, n) {
2932
- var s, r, a, i = e.toLocaleLowerCase();
2934
+ var s, r, a, o = e.toLocaleLowerCase();
2933
2935
  if (!this._monthsParse)
2934
2936
  for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s)
2935
2937
  a = Oe([2e3, s]), this._shortMonthsParse[s] = this.monthsShort(
2936
2938
  a,
2937
2939
  ""
2938
2940
  ).toLocaleLowerCase(), this._longMonthsParse[s] = this.months(a, "").toLocaleLowerCase();
2939
- return n ? t === "MMM" ? (r = Z.call(this._shortMonthsParse, i), r !== -1 ? r : null) : (r = Z.call(this._longMonthsParse, i), r !== -1 ? r : null) : t === "MMM" ? (r = Z.call(this._shortMonthsParse, i), r !== -1 ? r : (r = Z.call(this._longMonthsParse, i), r !== -1 ? r : null)) : (r = Z.call(this._longMonthsParse, i), r !== -1 ? r : (r = Z.call(this._shortMonthsParse, i), r !== -1 ? r : null));
2941
+ return n ? t === "MMM" ? (r = Z.call(this._shortMonthsParse, o), r !== -1 ? r : null) : (r = Z.call(this._longMonthsParse, o), r !== -1 ? r : null) : t === "MMM" ? (r = Z.call(this._shortMonthsParse, o), r !== -1 ? r : (r = Z.call(this._longMonthsParse, o), r !== -1 ? r : null)) : (r = Z.call(this._longMonthsParse, o), r !== -1 ? r : (r = Z.call(this._shortMonthsParse, o), r !== -1 ? r : null));
2940
2942
  }
2941
2943
  function Fl(e, t, n) {
2942
2944
  var s, r, a;
@@ -2985,9 +2987,9 @@ function mr() {
2985
2987
  function e(l, u) {
2986
2988
  return u.length - l.length;
2987
2989
  }
2988
- var t = [], n = [], s = [], r, a, i, o;
2990
+ var t = [], n = [], s = [], r, a, o, i;
2989
2991
  for (r = 0; r < 12; r++)
2990
- a = Oe([2e3, r]), i = Pe(this.monthsShort(a, "")), o = Pe(this.months(a, "")), t.push(i), n.push(o), s.push(o), s.push(i);
2992
+ a = Oe([2e3, r]), o = Pe(this.monthsShort(a, "")), i = Pe(this.months(a, "")), t.push(o), n.push(i), s.push(i), s.push(o);
2991
2993
  t.sort(e), n.sort(e), s.sort(e), this._monthsRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
2992
2994
  "^(" + n.join("|") + ")",
2993
2995
  "i"
@@ -2996,9 +2998,9 @@ function mr() {
2996
2998
  "i"
2997
2999
  );
2998
3000
  }
2999
- function zl(e, t, n, s, r, a, i) {
3000
- var o;
3001
- return e < 100 && e >= 0 ? (o = new Date(e + 400, t, n, s, r, a, i), isFinite(o.getFullYear()) && o.setFullYear(e)) : o = new Date(e, t, n, s, r, a, i), o;
3001
+ function zl(e, t, n, s, r, a, o) {
3002
+ var i;
3003
+ return e < 100 && e >= 0 ? (i = new Date(e + 400, t, n, s, r, a, o), isFinite(i.getFullYear()) && i.setFullYear(e)) : i = new Date(e, t, n, s, r, a, o), i;
3002
3004
  }
3003
3005
  function gt(e) {
3004
3006
  var t, n;
@@ -3009,17 +3011,17 @@ function $t(e, t, n) {
3009
3011
  return -r + s - 1;
3010
3012
  }
3011
3013
  function vr(e, t, n, s, r) {
3012
- var a = (7 + n - s) % 7, i = $t(e, s, r), o = 1 + 7 * (t - 1) + a + i, l, u;
3013
- return o <= 0 ? (l = e - 1, u = _t(l) + o) : o > _t(e) ? (l = e + 1, u = o - _t(e)) : (l = e, u = o), {
3014
+ var a = (7 + n - s) % 7, o = $t(e, s, r), i = 1 + 7 * (t - 1) + a + o, l, u;
3015
+ return i <= 0 ? (l = e - 1, u = _t(l) + i) : i > _t(e) ? (l = e + 1, u = i - _t(e)) : (l = e, u = i), {
3014
3016
  year: l,
3015
3017
  dayOfYear: u
3016
3018
  };
3017
3019
  }
3018
3020
  function bt(e, t, n) {
3019
- var s = $t(e.year(), t, n), r = Math.floor((e.dayOfYear() - s - 1) / 7) + 1, a, i;
3020
- return r < 1 ? (i = e.year() - 1, a = r + Le(i, t, n)) : r > Le(e.year(), t, n) ? (a = r - Le(e.year(), t, n), i = e.year() + 1) : (i = e.year(), a = r), {
3021
+ var s = $t(e.year(), t, n), r = Math.floor((e.dayOfYear() - s - 1) / 7) + 1, a, o;
3022
+ return r < 1 ? (o = e.year() - 1, a = r + Le(o, t, n)) : r > Le(e.year(), t, n) ? (a = r - Le(e.year(), t, n), o = e.year() + 1) : (o = e.year(), a = r), {
3021
3023
  week: a,
3022
- year: i
3024
+ year: o
3023
3025
  };
3024
3026
  }
3025
3027
  function Le(e, t, n) {
@@ -3102,18 +3104,18 @@ function jn(e, t) {
3102
3104
  return e.slice(t, 7).concat(e.slice(0, t));
3103
3105
  }
3104
3106
  var tu = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), _r = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), nu = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), su = Ot, ru = Ot, au = Ot;
3105
- function iu(e, t) {
3107
+ function ou(e, t) {
3106
3108
  var n = ye(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
3107
3109
  return e === !0 ? jn(n, this._week.dow) : e ? n[e.day()] : n;
3108
3110
  }
3109
- function ou(e) {
3111
+ function iu(e) {
3110
3112
  return e === !0 ? jn(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
3111
3113
  }
3112
3114
  function lu(e) {
3113
3115
  return e === !0 ? jn(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
3114
3116
  }
3115
3117
  function uu(e, t, n) {
3116
- var s, r, a, i = e.toLocaleLowerCase();
3118
+ var s, r, a, o = e.toLocaleLowerCase();
3117
3119
  if (!this._weekdaysParse)
3118
3120
  for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s)
3119
3121
  a = Oe([2e3, 1]).day(s), this._minWeekdaysParse[s] = this.weekdaysMin(
@@ -3123,7 +3125,7 @@ function uu(e, t, n) {
3123
3125
  a,
3124
3126
  ""
3125
3127
  ).toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(a, "").toLocaleLowerCase();
3126
- return n ? t === "dddd" ? (r = Z.call(this._weekdaysParse, i), r !== -1 ? r : null) : t === "ddd" ? (r = Z.call(this._shortWeekdaysParse, i), r !== -1 ? r : null) : (r = Z.call(this._minWeekdaysParse, i), r !== -1 ? r : null) : t === "dddd" ? (r = Z.call(this._weekdaysParse, i), r !== -1 || (r = Z.call(this._shortWeekdaysParse, i), r !== -1) ? r : (r = Z.call(this._minWeekdaysParse, i), r !== -1 ? r : null)) : t === "ddd" ? (r = Z.call(this._shortWeekdaysParse, i), r !== -1 || (r = Z.call(this._weekdaysParse, i), r !== -1) ? r : (r = Z.call(this._minWeekdaysParse, i), r !== -1 ? r : null)) : (r = Z.call(this._minWeekdaysParse, i), r !== -1 || (r = Z.call(this._weekdaysParse, i), r !== -1) ? r : (r = Z.call(this._shortWeekdaysParse, i), r !== -1 ? r : null));
3128
+ return n ? t === "dddd" ? (r = Z.call(this._weekdaysParse, o), r !== -1 ? r : null) : t === "ddd" ? (r = Z.call(this._shortWeekdaysParse, o), r !== -1 ? r : null) : (r = Z.call(this._minWeekdaysParse, o), r !== -1 ? r : null) : t === "dddd" ? (r = Z.call(this._weekdaysParse, o), r !== -1 || (r = Z.call(this._shortWeekdaysParse, o), r !== -1) ? r : (r = Z.call(this._minWeekdaysParse, o), r !== -1 ? r : null)) : t === "ddd" ? (r = Z.call(this._shortWeekdaysParse, o), r !== -1 || (r = Z.call(this._weekdaysParse, o), r !== -1) ? r : (r = Z.call(this._minWeekdaysParse, o), r !== -1 ? r : null)) : (r = Z.call(this._minWeekdaysParse, o), r !== -1 || (r = Z.call(this._weekdaysParse, o), r !== -1) ? r : (r = Z.call(this._shortWeekdaysParse, o), r !== -1 ? r : null));
3127
3129
  }
3128
3130
  function du(e, t, n) {
3129
3131
  var s, r, a;
@@ -3183,9 +3185,9 @@ function zn() {
3183
3185
  function e(h, w) {
3184
3186
  return w.length - h.length;
3185
3187
  }
3186
- var t = [], n = [], s = [], r = [], a, i, o, l, u;
3188
+ var t = [], n = [], s = [], r = [], a, o, i, l, u;
3187
3189
  for (a = 0; a < 7; a++)
3188
- i = Oe([2e3, 1]).day(a), o = Pe(this.weekdaysMin(i, "")), l = Pe(this.weekdaysShort(i, "")), u = Pe(this.weekdays(i, "")), t.push(o), n.push(l), s.push(u), r.push(o), r.push(l), r.push(u);
3190
+ o = Oe([2e3, 1]).day(a), i = Pe(this.weekdaysMin(o, "")), l = Pe(this.weekdaysShort(o, "")), u = Pe(this.weekdays(o, "")), t.push(i), n.push(l), s.push(u), r.push(i), r.push(l), r.push(u);
3189
3191
  t.sort(e), n.sort(e), s.sort(e), r.sort(e), this._weekdaysRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
3190
3192
  "^(" + s.join("|") + ")",
3191
3193
  "i"
@@ -3240,9 +3242,9 @@ _("k", V, ct);
3240
3242
  _("HH", V, le);
3241
3243
  _("hh", V, le);
3242
3244
  _("kk", V, le);
3243
- _("hmm", or);
3245
+ _("hmm", ir);
3244
3246
  _("hmmss", lr);
3245
- _("Hmm", or);
3247
+ _("Hmm", ir);
3246
3248
  _("Hmmss", lr);
3247
3249
  U(["H", "HH"], J);
3248
3250
  U(["k", "kk"], function(e, t, n) {
@@ -3422,29 +3424,29 @@ var Cu = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
3422
3424
  PST: -480
3423
3425
  };
3424
3426
  function wr(e) {
3425
- var t, n, s = e._i, r = Cu.exec(s) || Tu.exec(s), a, i, o, l, u = Et.length, h = dn.length;
3427
+ var t, n, s = e._i, r = Cu.exec(s) || Tu.exec(s), a, o, i, l, u = Et.length, h = dn.length;
3426
3428
  if (r) {
3427
3429
  for (N(e).iso = !0, t = 0, n = u; t < n; t++)
3428
3430
  if (Et[t][1].exec(r[1])) {
3429
- i = Et[t][0], a = Et[t][2] !== !1;
3431
+ o = Et[t][0], a = Et[t][2] !== !1;
3430
3432
  break;
3431
3433
  }
3432
- if (i == null) {
3434
+ if (o == null) {
3433
3435
  e._isValid = !1;
3434
3436
  return;
3435
3437
  }
3436
3438
  if (r[3]) {
3437
3439
  for (t = 0, n = h; t < n; t++)
3438
3440
  if (dn[t][1].exec(r[3])) {
3439
- o = (r[2] || " ") + dn[t][0];
3441
+ i = (r[2] || " ") + dn[t][0];
3440
3442
  break;
3441
3443
  }
3442
- if (o == null) {
3444
+ if (i == null) {
3443
3445
  e._isValid = !1;
3444
3446
  return;
3445
3447
  }
3446
3448
  }
3447
- if (!a && o != null) {
3449
+ if (!a && i != null) {
3448
3450
  e._isValid = !1;
3449
3451
  return;
3450
3452
  }
@@ -3455,19 +3457,19 @@ function wr(e) {
3455
3457
  e._isValid = !1;
3456
3458
  return;
3457
3459
  }
3458
- e._f = i + (o || "") + (l || ""), Xn(e);
3460
+ e._f = o + (i || "") + (l || ""), Xn(e);
3459
3461
  } else
3460
3462
  e._isValid = !1;
3461
3463
  }
3462
3464
  function Eu(e, t, n, s, r, a) {
3463
- var i = [
3465
+ var o = [
3464
3466
  Ru(e),
3465
3467
  cr.indexOf(t),
3466
3468
  parseInt(n, 10),
3467
3469
  parseInt(s, 10),
3468
3470
  parseInt(r, 10)
3469
3471
  ];
3470
- return a && i.push(parseInt(a, 10)), i;
3472
+ return a && o.push(parseInt(a, 10)), o;
3471
3473
  }
3472
3474
  function Ru(e) {
3473
3475
  var t = parseInt(e, 10);
@@ -3546,9 +3548,9 @@ function $u(e) {
3546
3548
  ] : [t.getFullYear(), t.getMonth(), t.getDate()];
3547
3549
  }
3548
3550
  function Kn(e) {
3549
- var t, n, s = [], r, a, i;
3551
+ var t, n, s = [], r, a, o;
3550
3552
  if (!e._d) {
3551
- for (r = $u(e), e._w && e._a[ke] == null && e._a[Ee] == null && Wu(e), e._dayOfYear != null && (i = nt(e._a[ee], r[ee]), (e._dayOfYear > _t(i) || e._dayOfYear === 0) && (N(e)._overflowDayOfYear = !0), n = gt(i, 0, e._dayOfYear), e._a[Ee] = n.getUTCMonth(), e._a[ke] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
3553
+ for (r = $u(e), e._w && e._a[ke] == null && e._a[Ee] == null && Wu(e), e._dayOfYear != null && (o = nt(e._a[ee], r[ee]), (e._dayOfYear > _t(o) || e._dayOfYear === 0) && (N(e)._overflowDayOfYear = !0), n = gt(o, 0, e._dayOfYear), e._a[Ee] = n.getUTCMonth(), e._a[ke] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
3552
3554
  e._a[t] = s[t] = r[t];
3553
3555
  for (; t < 7; t++)
3554
3556
  e._a[t] = s[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
@@ -3559,12 +3561,12 @@ function Kn(e) {
3559
3561
  }
3560
3562
  }
3561
3563
  function Wu(e) {
3562
- var t, n, s, r, a, i, o, l, u;
3563
- t = e._w, t.GG != null || t.W != null || t.E != null ? (a = 1, i = 4, n = nt(
3564
+ var t, n, s, r, a, o, i, l, u;
3565
+ t = e._w, t.GG != null || t.W != null || t.E != null ? (a = 1, o = 4, n = nt(
3564
3566
  t.GG,
3565
3567
  e._a[ee],
3566
3568
  bt(G(), 1, 4).year
3567
- ), s = nt(t.W, 1), r = nt(t.E, 1), (r < 1 || r > 7) && (l = !0)) : (a = e._locale._week.dow, i = e._locale._week.doy, u = bt(G(), a, i), n = nt(t.gg, e._a[ee], u.year), s = nt(t.w, u.week), t.d != null ? (r = t.d, (r < 0 || r > 6) && (l = !0)) : t.e != null ? (r = t.e + a, (t.e < 0 || t.e > 6) && (l = !0)) : r = a), s < 1 || s > Le(n, a, i) ? N(e)._overflowWeeks = !0 : l != null ? N(e)._overflowWeekday = !0 : (o = vr(n, s, r, a, i), e._a[ee] = o.year, e._dayOfYear = o.dayOfYear);
3569
+ ), s = nt(t.W, 1), r = nt(t.E, 1), (r < 1 || r > 7) && (l = !0)) : (a = e._locale._week.dow, o = e._locale._week.doy, u = bt(G(), a, o), n = nt(t.gg, e._a[ee], u.year), s = nt(t.w, u.week), t.d != null ? (r = t.d, (r < 0 || r > 6) && (l = !0)) : t.e != null ? (r = t.e + a, (t.e < 0 || t.e > 6) && (l = !0)) : r = a), s < 1 || s > Le(n, a, o) ? N(e)._overflowWeeks = !0 : l != null ? N(e)._overflowWeekday = !0 : (i = vr(n, s, r, a, o), e._a[ee] = i.year, e._dayOfYear = i.dayOfYear);
3568
3570
  }
3569
3571
  v.ISO_8601 = function() {
3570
3572
  };
@@ -3580,12 +3582,12 @@ function Xn(e) {
3580
3582
  return;
3581
3583
  }
3582
3584
  e._a = [], N(e).empty = !0;
3583
- var t = "" + e._i, n, s, r, a, i, o = t.length, l = 0, u, h;
3585
+ var t = "" + e._i, n, s, r, a, o, i = t.length, l = 0, u, h;
3584
3586
  for (r = rr(e._f, e._locale).match($n) || [], h = r.length, n = 0; n < h; n++)
3585
- a = r[n], s = (t.match(Cl(a, e)) || [])[0], s && (i = t.substr(0, t.indexOf(s)), i.length > 0 && N(e).unusedInput.push(i), t = t.slice(
3587
+ a = r[n], s = (t.match(Cl(a, e)) || [])[0], s && (o = t.substr(0, t.indexOf(s)), o.length > 0 && N(e).unusedInput.push(o), t = t.slice(
3586
3588
  t.indexOf(s) + s.length
3587
3589
  ), l += s.length), at[a] ? (s ? N(e).empty = !1 : N(e).unusedTokens.push(a), Nl(a, s, e)) : e._strict && !s && N(e).unusedTokens.push(a);
3588
- N(e).charsLeftOver = o - l, t.length > 0 && N(e).unusedInput.push(t), e._a[J] <= 12 && N(e).bigHour === !0 && e._a[J] > 0 && (N(e).bigHour = void 0), N(e).parsedDateParts = e._a.slice(0), N(e).meridiem = e._meridiem, e._a[J] = Hu(
3590
+ N(e).charsLeftOver = i - l, t.length > 0 && N(e).unusedInput.push(t), e._a[J] <= 12 && N(e).bigHour === !0 && e._a[J] > 0 && (N(e).bigHour = void 0), N(e).parsedDateParts = e._a.slice(0), N(e).meridiem = e._meridiem, e._a[J] = Hu(
3589
3591
  e._locale,
3590
3592
  e._a[J],
3591
3593
  e._meridiem
@@ -3596,13 +3598,13 @@ function Hu(e, t, n) {
3596
3598
  return n == null ? t : e.meridiemHour != null ? e.meridiemHour(t, n) : (e.isPM != null && (s = e.isPM(n), s && t < 12 && (t += 12), !s && t === 12 && (t = 0)), t);
3597
3599
  }
3598
3600
  function Fu(e) {
3599
- var t, n, s, r, a, i, o = !1, l = e._f.length;
3601
+ var t, n, s, r, a, o, i = !1, l = e._f.length;
3600
3602
  if (l === 0) {
3601
3603
  N(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
3602
3604
  return;
3603
3605
  }
3604
3606
  for (r = 0; r < l; r++)
3605
- a = 0, i = !1, t = An({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[r], Xn(t), Ln(t) && (i = !0), a += N(t).charsLeftOver, a += N(t).unusedTokens.length * 10, N(t).score = a, o ? a < s && (s = a, n = t) : (s == null || a < s || i) && (s = a, n = t, i && (o = !0));
3607
+ a = 0, o = !1, t = An({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[r], Xn(t), Ln(t) && (o = !0), a += N(t).charsLeftOver, a += N(t).unusedTokens.length * 10, N(t).score = a, i ? a < s && (s = a, n = t) : (s == null || a < s || o) && (s = a, n = t, o && (i = !0));
3606
3608
  Fe(e, n || t);
3607
3609
  }
3608
3610
  function Gu(e) {
@@ -3699,10 +3701,10 @@ function Qu() {
3699
3701
  return be(NaN);
3700
3702
  }
3701
3703
  function en(e) {
3702
- var t = Wn(e), n = t.year || 0, s = t.quarter || 0, r = t.month || 0, a = t.week || t.isoWeek || 0, i = t.day || 0, o = t.hour || 0, l = t.minute || 0, u = t.second || 0, h = t.millisecond || 0;
3704
+ var t = Wn(e), n = t.year || 0, s = t.quarter || 0, r = t.month || 0, a = t.week || t.isoWeek || 0, o = t.day || 0, i = t.hour || 0, l = t.minute || 0, u = t.second || 0, h = t.millisecond || 0;
3703
3705
  this._isValid = Xu(t), this._milliseconds = +h + u * 1e3 + // 1000
3704
3706
  l * 6e4 + // 1000 * 60
3705
- o * 1e3 * 60 * 60, this._days = +i + a * 7, this._months = +r + s * 3 + n * 12, this._data = {}, this._locale = $e(), this._bubble();
3707
+ i * 1e3 * 60 * 60, this._days = +o + a * 7, this._months = +r + s * 3 + n * 12, this._data = {}, this._locale = $e(), this._bubble();
3706
3708
  }
3707
3709
  function Lt(e) {
3708
3710
  return e instanceof en;
@@ -3711,9 +3713,9 @@ function wn(e) {
3711
3713
  return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
3712
3714
  }
3713
3715
  function ed(e, t, n) {
3714
- var s = Math.min(e.length, t.length), r = Math.abs(e.length - t.length), a = 0, i;
3715
- for (i = 0; i < s; i++)
3716
- Y(e[i]) !== Y(t[i]) && a++;
3716
+ var s = Math.min(e.length, t.length), r = Math.abs(e.length - t.length), a = 0, o;
3717
+ for (o = 0; o < s; o++)
3718
+ Y(e[o]) !== Y(t[o]) && a++;
3717
3719
  return a + r;
3718
3720
  }
3719
3721
  function Or(e, t) {
@@ -3770,7 +3772,7 @@ function rd(e) {
3770
3772
  function ad(e) {
3771
3773
  return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(kn(this), "m")), this;
3772
3774
  }
3773
- function id() {
3775
+ function od() {
3774
3776
  if (this._tzm != null)
3775
3777
  this.utcOffset(this._tzm, !1, !0);
3776
3778
  else if (typeof this._i == "string") {
@@ -3779,7 +3781,7 @@ function id() {
3779
3781
  }
3780
3782
  return this;
3781
3783
  }
3782
- function od(e) {
3784
+ function id(e) {
3783
3785
  return this.isValid() ? (e = e ? G(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
3784
3786
  }
3785
3787
  function ld() {
@@ -3802,7 +3804,7 @@ function Cr() {
3802
3804
  }
3803
3805
  var hd = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, fd = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
3804
3806
  function be(e, t) {
3805
- var n = e, s = null, r, a, i;
3807
+ var n = e, s = null, r, a, o;
3806
3808
  return Lt(e) ? n = {
3807
3809
  ms: e._milliseconds,
3808
3810
  d: e._days,
@@ -3823,10 +3825,10 @@ function be(e, t) {
3823
3825
  h: Be(s[6], r),
3824
3826
  m: Be(s[7], r),
3825
3827
  s: Be(s[8], r)
3826
- }) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (i = pd(
3828
+ }) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (o = pd(
3827
3829
  G(n.from),
3828
3830
  G(n.to)
3829
- ), n = {}, n.ms = i.milliseconds, n.M = i.months), a = new en(n), Lt(e) && P(e, "_locale") && (a._locale = e._locale), Lt(e) && P(e, "_isValid") && (a._isValid = e._isValid), a;
3831
+ ), n = {}, n.ms = o.milliseconds, n.M = o.months), a = new en(n), Lt(e) && P(e, "_locale") && (a._locale = e._locale), Lt(e) && P(e, "_isValid") && (a._isValid = e._isValid), a;
3830
3832
  }
3831
3833
  be.fn = en.prototype;
3832
3834
  be.invalid = Qu;
@@ -3852,8 +3854,8 @@ function Tr(e, t) {
3852
3854
  };
3853
3855
  }
3854
3856
  function Nr(e, t, n, s) {
3855
- var r = t._milliseconds, a = wn(t._days), i = wn(t._months);
3856
- e.isValid() && (s = s ?? !0, i && fr(e, yt(e, "Month") + i * n), a && dr(e, "Date", yt(e, "Date") + a * n), r && e._d.setTime(e._d.valueOf() + r * n), s && v.updateOffset(e, a || i));
3857
+ var r = t._milliseconds, a = wn(t._days), o = wn(t._months);
3858
+ e.isValid() && (s = s ?? !0, o && fr(e, yt(e, "Month") + o * n), a && dr(e, "Date", yt(e, "Date") + a * n), r && e._d.setTime(e._d.valueOf() + r * n), s && v.updateOffset(e, a || o));
3857
3859
  }
3858
3860
  var md = Tr(1, "add"), vd = Tr(-1, "subtract");
3859
3861
  function Dr(e) {
@@ -3888,8 +3890,8 @@ function yd(e) {
3888
3890
  "milliseconds",
3889
3891
  "millisecond",
3890
3892
  "ms"
3891
- ], r, a, i = s.length;
3892
- for (r = 0; r < i; r += 1)
3893
+ ], r, a, o = s.length;
3894
+ for (r = 0; r < o; r += 1)
3893
3895
  a = s[r], n = n || P(e, a);
3894
3896
  return t && n;
3895
3897
  }
@@ -4048,8 +4050,8 @@ var Yr = fe(
4048
4050
  function Er() {
4049
4051
  return this._locale;
4050
4052
  }
4051
- var Wt = 1e3, it = 60 * Wt, Ht = 60 * it, Rr = (365 * 400 + 97) * 24 * Ht;
4052
- function ot(e, t) {
4053
+ var Wt = 1e3, ot = 60 * Wt, Ht = 60 * ot, Rr = (365 * 400 + 97) * 24 * Ht;
4054
+ function it(e, t) {
4053
4055
  return (e % t + t) % t;
4054
4056
  }
4055
4057
  function Pr(e, t, n) {
@@ -4095,16 +4097,16 @@ function $d(e) {
4095
4097
  t = n(this.year(), this.month(), this.date());
4096
4098
  break;
4097
4099
  case "hour":
4098
- t = this._d.valueOf(), t -= ot(
4099
- t + (this._isUTC ? 0 : this.utcOffset() * it),
4100
+ t = this._d.valueOf(), t -= it(
4101
+ t + (this._isUTC ? 0 : this.utcOffset() * ot),
4100
4102
  Ht
4101
4103
  );
4102
4104
  break;
4103
4105
  case "minute":
4104
- t = this._d.valueOf(), t -= ot(t, it);
4106
+ t = this._d.valueOf(), t -= it(t, ot);
4105
4107
  break;
4106
4108
  case "second":
4107
- t = this._d.valueOf(), t -= ot(t, Wt);
4109
+ t = this._d.valueOf(), t -= it(t, Wt);
4108
4110
  break;
4109
4111
  }
4110
4112
  return this._d.setTime(t), v.updateOffset(this, !0), this;
@@ -4146,16 +4148,16 @@ function Wd(e) {
4146
4148
  t = n(this.year(), this.month(), this.date() + 1) - 1;
4147
4149
  break;
4148
4150
  case "hour":
4149
- t = this._d.valueOf(), t += Ht - ot(
4150
- t + (this._isUTC ? 0 : this.utcOffset() * it),
4151
+ t = this._d.valueOf(), t += Ht - it(
4152
+ t + (this._isUTC ? 0 : this.utcOffset() * ot),
4151
4153
  Ht
4152
4154
  ) - 1;
4153
4155
  break;
4154
4156
  case "minute":
4155
- t = this._d.valueOf(), t += it - ot(t, it) - 1;
4157
+ t = this._d.valueOf(), t += ot - it(t, ot) - 1;
4156
4158
  break;
4157
4159
  case "second":
4158
- t = this._d.valueOf(), t += Wt - ot(t, Wt) - 1;
4160
+ t = this._d.valueOf(), t += Wt - it(t, Wt) - 1;
4159
4161
  break;
4160
4162
  }
4161
4163
  return this._d.setTime(t), v.updateOffset(this, !0), this;
@@ -4226,7 +4228,7 @@ x("y", ["yyyy", 4], 0, "eraYear");
4226
4228
  _("N", es);
4227
4229
  _("NN", es);
4228
4230
  _("NNN", es);
4229
- _("NNNN", oc);
4231
+ _("NNNN", ic);
4230
4232
  _("NNNNN", lc);
4231
4233
  U(
4232
4234
  ["N", "NN", "NNN", "NNNN", "NNNNN"],
@@ -4259,18 +4261,18 @@ function Xd(e, t) {
4259
4261
  return a;
4260
4262
  }
4261
4263
  function Jd(e, t, n) {
4262
- var s, r, a = this.eras(), i, o, l;
4264
+ var s, r, a = this.eras(), o, i, l;
4263
4265
  for (e = e.toUpperCase(), s = 0, r = a.length; s < r; ++s)
4264
- if (i = a[s].name.toUpperCase(), o = a[s].abbr.toUpperCase(), l = a[s].narrow.toUpperCase(), n)
4266
+ if (o = a[s].name.toUpperCase(), i = a[s].abbr.toUpperCase(), l = a[s].narrow.toUpperCase(), n)
4265
4267
  switch (t) {
4266
4268
  case "N":
4267
4269
  case "NN":
4268
4270
  case "NNN":
4269
- if (o === e)
4271
+ if (i === e)
4270
4272
  return a[s];
4271
4273
  break;
4272
4274
  case "NNNN":
4273
- if (i === e)
4275
+ if (o === e)
4274
4276
  return a[s];
4275
4277
  break;
4276
4278
  case "NNNNN":
@@ -4278,7 +4280,7 @@ function Jd(e, t, n) {
4278
4280
  return a[s];
4279
4281
  break;
4280
4282
  }
4281
- else if ([i, o, l].indexOf(e) >= 0)
4283
+ else if ([o, i, l].indexOf(e) >= 0)
4282
4284
  return a[s];
4283
4285
  }
4284
4286
  function Qd(e, t) {
@@ -4319,13 +4321,13 @@ function rc(e) {
4319
4321
  function ac(e) {
4320
4322
  return P(this, "_erasAbbrRegex") || ts.call(this), e ? this._erasAbbrRegex : this._erasRegex;
4321
4323
  }
4322
- function ic(e) {
4324
+ function oc(e) {
4323
4325
  return P(this, "_erasNarrowRegex") || ts.call(this), e ? this._erasNarrowRegex : this._erasRegex;
4324
4326
  }
4325
4327
  function es(e, t) {
4326
4328
  return t.erasAbbrRegex(e);
4327
4329
  }
4328
- function oc(e, t) {
4330
+ function ic(e, t) {
4329
4331
  return t.erasNameRegex(e);
4330
4332
  }
4331
4333
  function lc(e, t) {
@@ -4335,9 +4337,9 @@ function uc(e, t) {
4335
4337
  return t._eraYearOrdinalRegex || dt;
4336
4338
  }
4337
4339
  function ts() {
4338
- var e = [], t = [], n = [], s = [], r, a, i, o, l, u = this.eras();
4340
+ var e = [], t = [], n = [], s = [], r, a, o, i, l, u = this.eras();
4339
4341
  for (r = 0, a = u.length; r < a; ++r)
4340
- i = Pe(u[r].name), o = Pe(u[r].abbr), l = Pe(u[r].narrow), t.push(i), e.push(o), n.push(l), s.push(i), s.push(o), s.push(l);
4342
+ o = Pe(u[r].name), i = Pe(u[r].abbr), l = Pe(u[r].narrow), t.push(o), e.push(i), n.push(l), s.push(o), s.push(i), s.push(l);
4341
4343
  this._erasRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + t.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + e.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
4342
4344
  "^(" + n.join("|") + ")",
4343
4345
  "i"
@@ -4412,8 +4414,8 @@ function Ar(e, t, n, s, r) {
4412
4414
  return e == null ? bt(this, s, r).year : (a = Le(e, s, r), t > a && (t = a), vc.call(this, e, t, n, s, r));
4413
4415
  }
4414
4416
  function vc(e, t, n, s, r) {
4415
- var a = vr(e, t, n, s, r), i = gt(a.year, 0, a.dayOfYear);
4416
- return this.year(i.getUTCFullYear()), this.month(i.getUTCMonth()), this.date(i.getUTCDate()), this;
4417
+ var a = vr(e, t, n, s, r), o = gt(a.year, 0, a.dayOfYear);
4418
+ return this.year(o.getUTCFullYear()), this.month(o.getUTCMonth()), this.date(o.getUTCDate()), this;
4417
4419
  }
4418
4420
  x("Q", 0, "Qo", "quarter");
4419
4421
  _("Q", ar);
@@ -4436,7 +4438,7 @@ U("Do", function(e, t) {
4436
4438
  var Ur = ht("Date", !0);
4437
4439
  x("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
4438
4440
  _("DDD", Zt);
4439
- _("DDDD", ir);
4441
+ _("DDDD", or);
4440
4442
  U(["DDD", "DDDD"], function(e, t, n) {
4441
4443
  n._dayOfYear = Y(e);
4442
4444
  });
@@ -4483,7 +4485,7 @@ x(0, ["SSSSSSSSS", 9], 0, function() {
4483
4485
  });
4484
4486
  _("S", Zt, ar);
4485
4487
  _("SS", Zt, le);
4486
- _("SSS", Zt, ir);
4488
+ _("SSS", Zt, or);
4487
4489
  var Ge, $r;
4488
4490
  for (Ge = "SSSS"; Ge.length <= 9; Ge += "S")
4489
4491
  _(Ge, dt);
@@ -4572,8 +4574,8 @@ d.millisecond = d.milliseconds = $r;
4572
4574
  d.utcOffset = nd;
4573
4575
  d.utc = rd;
4574
4576
  d.local = ad;
4575
- d.parseZone = id;
4576
- d.hasAlignedHourOffset = od;
4577
+ d.parseZone = od;
4578
+ d.hasAlignedHourOffset = id;
4577
4579
  d.isDST = ld;
4578
4580
  d.isLocal = dd;
4579
4581
  d.isUtcOffset = cd;
@@ -4625,7 +4627,7 @@ L.erasParse = Jd;
4625
4627
  L.erasConvertYear = Qd;
4626
4628
  L.erasAbbrRegex = ac;
4627
4629
  L.erasNameRegex = rc;
4628
- L.erasNarrowRegex = ic;
4630
+ L.erasNarrowRegex = oc;
4629
4631
  L.months = $l;
4630
4632
  L.monthsShort = Wl;
4631
4633
  L.monthsParse = Fl;
@@ -4634,9 +4636,9 @@ L.monthsShortRegex = Vl;
4634
4636
  L.week = Bl;
4635
4637
  L.firstDayOfYear = Kl;
4636
4638
  L.firstDayOfWeek = ql;
4637
- L.weekdays = iu;
4639
+ L.weekdays = ou;
4638
4640
  L.weekdaysMin = lu;
4639
- L.weekdaysShort = ou;
4641
+ L.weekdaysShort = iu;
4640
4642
  L.weekdaysParse = du;
4641
4643
  L.weekdaysRegex = pu;
4642
4644
  L.weekdaysShortRegex = mu;
@@ -4657,12 +4659,12 @@ function Hr(e, t, n) {
4657
4659
  }
4658
4660
  function ns(e, t, n, s) {
4659
4661
  typeof e == "boolean" ? (Ue(t) && (n = t, t = void 0), t = t || "") : (t = e, n = t, e = !1, Ue(t) && (n = t, t = void 0), t = t || "");
4660
- var r = $e(), a = e ? r._week.dow : 0, i, o = [];
4662
+ var r = $e(), a = e ? r._week.dow : 0, o, i = [];
4661
4663
  if (n != null)
4662
4664
  return Ft(t, (n + a) % 7, s, "day");
4663
- for (i = 0; i < 7; i++)
4664
- o[i] = Ft(t, (i + a) % 7, s, "day");
4665
- return o;
4665
+ for (o = 0; o < 7; o++)
4666
+ i[o] = Ft(t, (o + a) % 7, s, "day");
4667
+ return i;
4666
4668
  }
4667
4669
  function Oc(e, t) {
4668
4670
  return Hr(e, t, "months");
@@ -4731,8 +4733,8 @@ function fs(e) {
4731
4733
  return e < 0 ? Math.floor(e) : Math.ceil(e);
4732
4734
  }
4733
4735
  function Rc() {
4734
- var e = this._milliseconds, t = this._days, n = this._months, s = this._data, r, a, i, o, l;
4735
- return e >= 0 && t >= 0 && n >= 0 || e <= 0 && t <= 0 && n <= 0 || (e += fs(Mn(n) + t) * 864e5, t = 0, n = 0), s.milliseconds = e % 1e3, r = de(e / 1e3), s.seconds = r % 60, a = de(r / 60), s.minutes = a % 60, i = de(a / 60), s.hours = i % 24, t += de(i / 24), l = de(Gr(t)), n += l, t -= fs(Mn(l)), o = de(n / 12), n %= 12, s.days = t, s.months = n, s.years = o, this;
4736
+ var e = this._milliseconds, t = this._days, n = this._months, s = this._data, r, a, o, i, l;
4737
+ return e >= 0 && t >= 0 && n >= 0 || e <= 0 && t <= 0 && n <= 0 || (e += fs(Mn(n) + t) * 864e5, t = 0, n = 0), s.milliseconds = e % 1e3, r = de(e / 1e3), s.seconds = r % 60, a = de(r / 60), s.minutes = a % 60, o = de(a / 60), s.hours = o % 24, t += de(o / 24), l = de(Gr(t)), n += l, t -= fs(Mn(l)), i = de(n / 12), n %= 12, s.days = t, s.months = n, s.years = i, this;
4736
4738
  }
4737
4739
  function Gr(e) {
4738
4740
  return e * 4800 / 146097;
@@ -4813,7 +4815,7 @@ function th(e, t, n, s, r) {
4813
4815
  return r.relativeTime(t || 1, !!n, e, s);
4814
4816
  }
4815
4817
  function nh(e, t, n, s) {
4816
- var r = be(e).abs(), a = Ie(r.as("s")), i = Ie(r.as("m")), o = Ie(r.as("h")), l = Ie(r.as("d")), u = Ie(r.as("M")), h = Ie(r.as("w")), w = Ie(r.as("y")), p = a <= n.ss && ["s", a] || a < n.s && ["ss", a] || i <= 1 && ["m"] || i < n.m && ["mm", i] || o <= 1 && ["h"] || o < n.h && ["hh", o] || l <= 1 && ["d"] || l < n.d && ["dd", l];
4818
+ var r = be(e).abs(), a = Ie(r.as("s")), o = Ie(r.as("m")), i = Ie(r.as("h")), l = Ie(r.as("d")), u = Ie(r.as("M")), h = Ie(r.as("w")), w = Ie(r.as("y")), p = a <= n.ss && ["s", a] || a < n.s && ["ss", a] || o <= 1 && ["m"] || o < n.m && ["mm", o] || i <= 1 && ["h"] || i < n.h && ["hh", i] || l <= 1 && ["d"] || l < n.d && ["dd", l];
4817
4819
  return n.w != null && (p = p || h <= 1 && ["w"] || h < n.w && ["ww", h]), p = p || u <= 1 && ["M"] || u < n.M && ["MM", u] || w <= 1 && ["y"] || ["yy", w], p[2] = t, p[3] = +e > 0, p[4] = s, th.apply(null, p);
4818
4820
  }
4819
4821
  function sh(e) {
@@ -4835,8 +4837,8 @@ function tt(e) {
4835
4837
  function nn() {
4836
4838
  if (!this.isValid())
4837
4839
  return this.localeData().invalidDate();
4838
- var e = cn(this._milliseconds) / 1e3, t = cn(this._days), n = cn(this._months), s, r, a, i, o = this.asSeconds(), l, u, h, w;
4839
- return o ? (s = de(e / 60), r = de(s / 60), e %= 60, s %= 60, a = de(n / 12), n %= 12, i = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", l = o < 0 ? "-" : "", u = tt(this._months) !== tt(o) ? "-" : "", h = tt(this._days) !== tt(o) ? "-" : "", w = tt(this._milliseconds) !== tt(o) ? "-" : "", l + "P" + (a ? u + a + "Y" : "") + (n ? u + n + "M" : "") + (t ? h + t + "D" : "") + (r || s || e ? "T" : "") + (r ? w + r + "H" : "") + (s ? w + s + "M" : "") + (e ? w + i + "S" : "")) : "P0D";
4840
+ var e = cn(this._milliseconds) / 1e3, t = cn(this._days), n = cn(this._months), s, r, a, o, i = this.asSeconds(), l, u, h, w;
4841
+ return i ? (s = de(e / 60), r = de(s / 60), e %= 60, s %= 60, a = de(n / 12), n %= 12, o = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", l = i < 0 ? "-" : "", u = tt(this._months) !== tt(i) ? "-" : "", h = tt(this._days) !== tt(i) ? "-" : "", w = tt(this._milliseconds) !== tt(i) ? "-" : "", l + "P" + (a ? u + a + "Y" : "") + (n ? u + n + "M" : "") + (t ? h + t + "D" : "") + (r || s || e ? "T" : "") + (r ? w + r + "H" : "") + (s ? w + s + "M" : "") + (e ? w + o + "S" : "")) : "P0D";
4840
4842
  }
4841
4843
  var E = en.prototype;
4842
4844
  E.isValid = Ju;
@@ -4887,7 +4889,7 @@ U("x", function(e, t, n) {
4887
4889
  n._d = new Date(Y(e));
4888
4890
  });
4889
4891
  v.version = "2.30.1";
4890
- il(G);
4892
+ ol(G);
4891
4893
  v.fn = d;
4892
4894
  v.min = Zu;
4893
4895
  v.max = qu;
@@ -4935,11 +4937,11 @@ v.HTML5_FMT = {
4935
4937
  MONTH: "YYYY-MM"
4936
4938
  // <input type="month" />
4937
4939
  };
4938
- const ih = "code-graph", oh = (e, t = "", n = "json") => {
4940
+ const oh = "code-graph", ih = (e, t = "", n = "json") => {
4939
4941
  const s = document.createElement("a");
4940
4942
  s.setAttribute("href", `data:text/${n};charset=UTF-8,${encodeURIComponent(e)}`);
4941
4943
  const r = v().format("YYMMDD_HHMMSS");
4942
- s.setAttribute("download", `${ih}_${r}_${t}.${n}`), s.style.display = "none", document.body.appendChild(s), s.click(), document.body.removeChild(s);
4944
+ s.setAttribute("download", `${oh}_${r}_${t}.${n}`), s.style.display = "none", document.body.appendChild(s), s.click(), document.body.removeChild(s);
4943
4945
  }, lh = (e = "json") => {
4944
4946
  const t = document.createElement("input");
4945
4947
  return t.setAttribute("type", "file"), t.setAttribute("id", "fileElem"), t.setAttribute("multiple", "true"), t.setAttribute("accept", `${e}/*`), t.style.display = "none", document.body.appendChild(t), t.click(), t;
@@ -4953,7 +4955,7 @@ const ih = "code-graph", oh = (e, t = "", n = "json") => {
4953
4955
  }), t.registerCommand(zr, {
4954
4956
  execute: () => {
4955
4957
  const r = e.value.editor.save();
4956
- oh(JSON.stringify(r, null, 2), e.value.shortId);
4958
+ ih(JSON.stringify(r, null, 2), e.value.shortId);
4957
4959
  },
4958
4960
  canExecute: () => e.value.nodes.length > 0
4959
4961
  }), t.registerCommand(Br, {
@@ -4971,15 +4973,15 @@ const ih = "code-graph", oh = (e, t = "", n = "json") => {
4971
4973
  document.body.removeChild(r);
4972
4974
  const a = r.files;
4973
4975
  if (!a || a.length <= 0) return !1;
4974
- const i = new FileReader();
4975
- i.onload = (o) => {
4976
- if (o.target?.result) {
4977
- const l = o.target.result;
4976
+ const o = new FileReader();
4977
+ o.onload = (i) => {
4978
+ if (i.target?.result) {
4979
+ const l = i.target.result;
4978
4980
  if (l.length === 0) return;
4979
4981
  const u = JSON.parse(l);
4980
4982
  e.value.editor.load(u), e.value.code?.engine?.runOnce(null);
4981
4983
  }
4982
- }, i.readAsText(a.item(0));
4984
+ }, o.readAsText(a.item(0));
4983
4985
  });
4984
4986
  },
4985
4987
  canExecute: () => !0
@@ -5305,18 +5307,18 @@ function mh(e) {
5305
5307
  if (!s.engine || typeof s.engine != "object")
5306
5308
  throw new Error(`GraphNode ${this.id}: calculate called but no engine provided in context`);
5307
5309
  const r = s.engine.getInputValues(this.subgraph);
5308
- for (const o of this.subgraph.inputs)
5309
- r.set(o.nodeInterfaceId, n[o.id]);
5310
+ for (const i of this.subgraph.inputs)
5311
+ r.set(i.nodeInterfaceId, n[i.id]);
5310
5312
  const a = await s.engine.runGraph(
5311
5313
  this.subgraph,
5312
5314
  r,
5313
5315
  s.globalValues
5314
5316
  );
5315
5317
  s.engine.pause(), Cs(a, s.engine.editor), s.engine.resume();
5316
- const i = {};
5317
- for (const o of this.subgraph.outputs)
5318
- i[o.id] = a.get(o.nodeId)?.get("output");
5319
- return i._calculationResults = a, this.lockCode || (i._code = this.renderCode({ inputs: n, ...s.globalValues })), this.updateOutputValues(i), i;
5318
+ const o = {};
5319
+ for (const i of this.subgraph.outputs)
5320
+ o[i.id] = a.get(i.nodeId)?.get("output");
5321
+ return o._calculationResults = a, this.lockCode || (o._code = this.renderCode({ inputs: n, ...s.globalValues })), this.updateOutputValues(o), o;
5320
5322
  };
5321
5323
  load(n) {
5322
5324
  if (!this.subgraph) throw new Error("Cannot load a graph node without a graph");
@@ -5360,10 +5362,10 @@ function mh(e) {
5360
5362
  this.subgraph.outputs.some((s) => s.id === n) || this.removeOutput(n);
5361
5363
  this.addInput(
5362
5364
  "_code",
5363
- new oe("_code", []).use(ne, _e).use(lt).setHidden(!0)
5365
+ new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
5364
5366
  ), this.addOutput(
5365
5367
  "_code",
5366
- new oe("_code", []).use(ne, _e).use(lt).setHidden(!0)
5368
+ new ie("_code", []).use(ne, _e).use(lt).setHidden(!0)
5367
5369
  ), this.addOutput("_calculationResults", new Se("_calculationResults", void 0).setHidden(!0));
5368
5370
  }
5369
5371
  /**
@@ -5372,19 +5374,19 @@ function mh(e) {
5372
5374
  * These properties should be proxied to the subgraph interface, so they behave the same as the original interface.
5373
5375
  */
5374
5376
  createProxyInterface(n, s) {
5375
- const r = new oe(n.name, void 0);
5377
+ const r = new ie(n.name, void 0);
5376
5378
  return new Proxy(r, {
5377
- get: (a, i) => {
5378
- if (ph.includes(i) || i in a || typeof i == "string" && i.startsWith("__v_"))
5379
- return Reflect.get(a, i);
5380
- let o;
5381
- s ? o = this.subgraph?.nodes.find(
5379
+ get: (a, o) => {
5380
+ if (ph.includes(o) || o in a || typeof o == "string" && o.startsWith("__v_"))
5381
+ return Reflect.get(a, o);
5382
+ let i;
5383
+ s ? i = this.subgraph?.nodes.find(
5382
5384
  (w) => Jr.isGraphInputNode(w) && w.graphInterfaceId === n.id
5383
- )?.outputs.placeholder.id : o = this.subgraph?.nodes.find(
5385
+ )?.outputs.placeholder.id : i = this.subgraph?.nodes.find(
5384
5386
  (w) => Qr.isGraphOutputNode(w) && w.graphInterfaceId === n.id
5385
5387
  )?.inputs.placeholder.id;
5386
- const l = this.subgraph?.connections.find((h) => o === (s ? h.from : h.to)?.id), u = s ? l?.to : l?.from;
5387
- if (u) return Reflect.get(u, i);
5388
+ const l = this.subgraph?.connections.find((h) => i === (s ? h.from : h.to)?.id), u = s ? l?.to : l?.from;
5389
+ if (u) return Reflect.get(u, o);
5388
5390
  }
5389
5391
  });
5390
5392
  }
@@ -5413,16 +5415,16 @@ class rn extends Ea {
5413
5415
  const I = n.get(p);
5414
5416
  if (!I) throw new Error(`Unable to create graph from template: Could not map old id ${p} to new id`);
5415
5417
  return I;
5416
- }, a = (p) => Eo(p, (I) => ({
5418
+ }, a = (p) => Ei(p, (I) => ({
5417
5419
  id: s(I.id),
5418
5420
  templateId: I.id,
5419
5421
  value: I.value
5420
- })), i = this.nodes.map((p) => ({
5422
+ })), o = this.nodes.map((p) => ({
5421
5423
  ...p,
5422
5424
  id: s(p.id),
5423
5425
  inputs: a(p.inputs),
5424
5426
  outputs: a(p.outputs)
5425
- })), o = this.connections.map((p) => ({
5427
+ })), i = this.connections.map((p) => ({
5426
5428
  id: s(p.id),
5427
5429
  from: r(p.from),
5428
5430
  to: r(p.to)
@@ -5438,8 +5440,8 @@ class rn extends Ea {
5438
5440
  nodeInterfaceId: r(p.nodeInterfaceId)
5439
5441
  })), h = {
5440
5442
  id: Xe(),
5441
- nodes: i,
5442
- connections: o,
5443
+ nodes: o,
5444
+ connections: i,
5443
5445
  inputs: l,
5444
5446
  outputs: u
5445
5447
  };
@@ -5465,36 +5467,36 @@ function _h(e, t) {
5465
5467
  class ea extends Jr {
5466
5468
  _title = "Subgraph Input";
5467
5469
  inputs = {
5468
- _code: new oe("_code", "").use(ne, _e).setHidden(!0),
5470
+ _code: new ie("_code", "").use(ne, _e).setHidden(!0),
5469
5471
  name: new xs("Name", "Input").setPort(!1)
5470
5472
  };
5471
5473
  outputs = {
5472
- _code: new oe("_code", "").use(ne, _e).setHidden(!0),
5474
+ _code: new ie("_code", "").use(ne, _e).setHidden(!0),
5473
5475
  placeholder: new Se("Connection", void 0)
5474
5476
  };
5475
5477
  }
5476
5478
  class ta extends Qr {
5477
5479
  _title = "Subgraph Output";
5478
5480
  inputs = {
5479
- _code: new oe("_code", "").use(ne, _e).setHidden(!0),
5481
+ _code: new ie("_code", "").use(ne, _e).setHidden(!0),
5480
5482
  name: new xs("Name", "Output").setPort(!1),
5481
5483
  placeholder: new Se("Connection", void 0)
5482
5484
  };
5483
5485
  outputs = {
5484
- _code: new oe("_code", "").use(ne, _e).setHidden(!0),
5486
+ _code: new ie("_code", "").use(ne, _e).setHidden(!0),
5485
5487
  output: new Se("Output", void 0).setHidden(!0)
5486
5488
  };
5487
5489
  }
5488
5490
  const yh = "CREATE_SUBGRAPH", vs = [Ra, Pa];
5489
5491
  function gh(e, t, n) {
5490
5492
  const s = () => e.value.selectedNodes.filter((a) => !vs.includes(a.type)).length > 0, r = () => {
5491
- const { viewModel: a } = kt(), i = e.value, o = e.value.editor;
5492
- if (i.selectedNodes.length === 0) return;
5493
- const l = i.selectedNodes.filter((C) => !vs.includes(C.type)), u = l.flatMap((C) => Object.values(C.inputs)), h = l.flatMap((C) => Object.values(C.outputs)), w = i.connections.filter(
5493
+ const { viewModel: a } = kt(), o = e.value, i = e.value.editor;
5494
+ if (o.selectedNodes.length === 0) return;
5495
+ const l = o.selectedNodes.filter((C) => !vs.includes(C.type)), u = l.flatMap((C) => Object.values(C.inputs)), h = l.flatMap((C) => Object.values(C.outputs)), w = o.connections.filter(
5494
5496
  (C) => !h.includes(C.from) && u.includes(C.to)
5495
- ), p = i.connections.filter(
5497
+ ), p = o.connections.filter(
5496
5498
  (C) => h.includes(C.from) && !u.includes(C.to)
5497
- ), I = i.connections.filter(
5499
+ ), I = o.connections.filter(
5498
5500
  (C) => h.includes(C.from) && u.includes(C.to)
5499
5501
  ), y = l.map((C) => C.save()), O = I.map((C) => ({
5500
5502
  id: C.id,
@@ -5524,25 +5526,25 @@ function gh(e, t, n) {
5524
5526
  inputs: [],
5525
5527
  outputs: []
5526
5528
  },
5527
- o
5529
+ i
5528
5530
  )
5529
5531
  );
5530
- o.addGraphTemplate(F);
5531
- const Te = o.nodeTypes.get(Os(F));
5532
+ i.addGraphTemplate(F);
5533
+ const Te = i.nodeTypes.get(Os(F));
5532
5534
  if (!Te) throw new Error("Unable to create subgraph: Could not find corresponding graph node type");
5533
- i.activeTransactions++;
5535
+ o.activeTransactions++;
5534
5536
  const Ne = Ae(new Te.type());
5535
- i.addNode(Ne);
5537
+ o.addNode(Ne);
5536
5538
  const ft = Math.round(
5537
5539
  l.map((C) => C.position.x).reduce((C, Q) => C + Q, 0) / l.length
5538
5540
  ), we = Math.round(
5539
5541
  l.map((C) => C.position.y).reduce((C, Q) => C + Q, 0) / l.length
5540
5542
  );
5541
5543
  Ne.position.x = ft, Ne.position.y = we, w.forEach((C) => {
5542
- i.removeConnection(C), i.addConnection(C.from, Ne.inputs[c.get(C.to.id)]);
5544
+ o.removeConnection(C), o.addConnection(C.from, Ne.inputs[c.get(C.to.id)]);
5543
5545
  }), p.forEach((C) => {
5544
- i.removeConnection(C), i.addConnection(Ne.outputs[c.get(C.from.id)], C.to);
5545
- }), l.forEach((C) => i.removeNode(C)), i.activeTransactions--, t.canExecuteCommand(He.SAVE_SUBGRAPH_COMMAND) && t.executeCommand(He.SAVE_SUBGRAPH_COMMAND), n(F), e.value.panning = { ...i.panning }, e.value.scaling = i.scaling;
5546
+ o.removeConnection(C), o.addConnection(Ne.outputs[c.get(C.from.id)], C.to);
5547
+ }), l.forEach((C) => o.removeNode(C)), o.activeTransactions--, t.canExecuteCommand(He.SAVE_SUBGRAPH_COMMAND) && t.executeCommand(He.SAVE_SUBGRAPH_COMMAND), n(F), e.value.panning = { ...o.panning }, e.value.scaling = o.scaling;
5546
5548
  };
5547
5549
  t.registerCommand(yh, {
5548
5550
  canExecute: s,
@@ -5551,15 +5553,15 @@ function gh(e, t, n) {
5551
5553
  }
5552
5554
  function bh(e) {
5553
5555
  const t = e.reduce((r, a) => {
5554
- const i = a.position.x;
5555
- return i < r ? i : r;
5556
+ const o = a.position.x;
5557
+ return o < r ? o : r;
5556
5558
  }, 1 / 0), n = e.reduce((r, a) => {
5557
- const i = a.position.y;
5558
- return i < r ? i : r;
5559
+ const o = a.position.y;
5560
+ return o < r ? o : r;
5559
5561
  }, 1 / 0);
5560
5562
  return { xLeft: e.reduce((r, a) => {
5561
- const i = a.position.x + a.width;
5562
- return i > r ? i : r;
5563
+ const o = a.position.x + a.width;
5564
+ return o > r ? o : r;
5563
5565
  }, -1 / 0), xRight: t, yTop: n };
5564
5566
  }
5565
5567
  class wh extends La {
@@ -5615,13 +5617,13 @@ class wh extends La {
5615
5617
  }
5616
5618
  }
5617
5619
  function Zh(e) {
5618
- const t = ie(e?.code ?? new Rn()), n = ie(e?.existingEditor ?? new wh(t.value)), s = /* @__PURE__ */ Symbol("ViewModelToken"), r = ie(null), a = la(r), { switchGraph: i } = _h(n, r), o = z(() => a.value && a.value !== n.value.graph), l = Ae(ba());
5620
+ const t = oe(e?.code ?? new Rn()), n = oe(e?.existingEditor ?? new wh(t.value)), s = /* @__PURE__ */ Symbol("ViewModelToken"), r = oe(null), a = la(r), { switchGraph: o } = _h(n, r), i = z(() => a.value && a.value !== n.value.graph), l = Ae(ba());
5619
5621
  l.nodes.defaultWidth = ss;
5620
5622
  const u = wa(), h = ka(a, u), w = Ma(a, n, u), p = {
5621
5623
  /** Called whenever a node is rendered */
5622
- renderNode: new is(null),
5624
+ renderNode: new os(null),
5623
5625
  /** Called whenever an interface is rendered */
5624
- renderInterface: new is(null)
5626
+ renderInterface: new os(null)
5625
5627
  }, I = Ae({
5626
5628
  clipboard: w,
5627
5629
  code: t,
@@ -5631,21 +5633,21 @@ function Zh(e) {
5631
5633
  history: h,
5632
5634
  hooks: p,
5633
5635
  isReady: !1,
5634
- isSubgraph: o,
5636
+ isSubgraph: i,
5635
5637
  onBeforeUnmount: () => {
5636
5638
  },
5637
5639
  onMounted: () => {
5638
5640
  },
5639
5641
  settings: l,
5640
- switchGraph: i
5642
+ switchGraph: o
5641
5643
  });
5642
- return t.value.registerViewModel(I), fh(I), Sa(a, u), gh(a, u, i), xa(a, u), Oa(a, u, i), Ca(a, u), Ta(a, u, l), dh(a, u, l), ch(l), gs(
5644
+ return t.value.registerViewModel(I), fh(I), Sa(a, u), gh(a, u, o), xa(a, u), Oa(a, u, o), Ca(a, u), Ta(a, u, l), dh(a, u, l), ch(l), gs(
5643
5645
  n,
5644
5646
  (y, O) => {
5645
5647
  O && (O.events.registerGraph.unsubscribe(s), O.graphEvents.beforeAddNode.unsubscribe(s), y.nodeHooks.beforeLoad.unsubscribe(s), y.nodeHooks.afterSave.unsubscribe(s), y.graphTemplateHooks.beforeLoad.unsubscribe(s), y.graphTemplateHooks.afterSave.unsubscribe(s), y.graph.hooks.load.unsubscribe(s), y.graph.hooks.save.unsubscribe(s)), y && (y.nodeHooks.beforeLoad.subscribe(s, (c, g) => (g.position = c.position ?? { x: 0, y: 0 }, g.state && (g.state.integrated = c.integrated, c.props && (g.state.props = c.props), c.variableName && (g.state.variableName = c.variableName)), c)), y.nodeHooks.afterSave.subscribe(s, (c, g) => (c.position = g.position, g.state && (c.integrated = g.state.integrated, g.state.props && (c.props = g.state.props), g.state.variableName && (c.variableName = g.state.variableName)), c)), y.graphTemplateHooks.beforeLoad.subscribe(s, (c, g) => (g.panning = c.panning, g.scaling = c.scaling, c)), y.graphTemplateHooks.afterSave.subscribe(s, (c, g) => (c.panning = g.panning, c.scaling = g.scaling, c)), y.graph.hooks.load.subscribe(s, (c, g) => (g.panning = c.panning, g.scaling = c.scaling, c)), y.graph.hooks.save.subscribe(s, (c, g) => (c.panning = g.panning, c.scaling = g.scaling, c)), y.graphEvents.beforeAddNode.subscribe(
5646
5648
  s,
5647
5649
  (c) => Na(c, { defaultWidth: l.nodes.defaultWidth })
5648
- ), n.value.registerNodeType(ea, { category: "Subgraphs" }), n.value.registerNodeType(ta, { category: "Subgraphs" }), i(y.graph));
5650
+ ), n.value.registerNodeType(ea, { category: "Subgraphs" }), n.value.registerNodeType(ta, { category: "Subgraphs" }), o(y.graph));
5649
5651
  },
5650
5652
  { immediate: !0 }
5651
5653
  ), ks(() => I.isReady = !0), I;
@@ -5663,7 +5665,7 @@ export {
5663
5665
  rn as CodeGraphTemplate,
5664
5666
  Dn as CodeNode,
5665
5667
  Mt as CodeNodeInputInterface,
5666
- oe as CodeNodeInterface,
5668
+ ie as CodeNodeInterface,
5667
5669
  In as CodeNodeInterfaceComponent,
5668
5670
  tl as CodeNodeOutputInterface,
5669
5671
  zr as DOWNLOAD_EDITOR_STATE_COMMAND,
@@ -5693,11 +5695,11 @@ export {
5693
5695
  Bs as booleanType,
5694
5696
  Rh as components,
5695
5697
  mh as createCodeGraphNodeType,
5696
- Xo as createInterface,
5698
+ Xi as createInterface,
5697
5699
  Wh as defineCodeNode,
5698
5700
  Hh as defineDynamicCodeNode,
5699
- Qo as dictType,
5700
- Ko as formatInputs,
5701
+ Qi as dictType,
5702
+ Ki as formatInputs,
5701
5703
  Kr as getCodeNodes,
5702
5704
  jh as getPositionAtColumn,
5703
5705
  zh as getPositionBeforeNode,