hyperbook 0.113.1 → 0.113.3

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 (55) hide show
  1. package/dist/asset-manifest.json +9 -9
  2. package/dist/assets/directive-bitflow/{EditorElement-zyz99U6n.js → EditorElement-BNwEKIvk.js} +258 -258
  3. package/dist/assets/directive-bitflow/{ReportElements-BnX14NtV.js → ReportElements-CAvHx5xm.js} +2 -2
  4. package/dist/assets/directive-bitflow/{bitLoaders-DIGwTcpd.js → bitLoaders-7qanePQL.js} +1138 -1073
  5. package/dist/assets/directive-bitflow/{dom-uYx_3K1r.js → dom-B6NPWBb1.js} +1558 -1551
  6. package/dist/assets/directive-bitflow/editor.js +3 -3
  7. package/dist/assets/directive-bitflow/flow.js +4 -4
  8. package/dist/assets/directive-bitflow/{index-BseSaQlX.js → index-4JaKZ7WT.js} +2 -2
  9. package/dist/assets/directive-bitflow/{index-e_8twLaN.js → index-6CQr_atd.js} +120 -120
  10. package/dist/assets/directive-bitflow/{index-COndsSPW.js → index-B9iG-a48.js} +9 -9
  11. package/dist/assets/directive-bitflow/{index-C5czXkRd.js → index-BFYoOtcY.js} +36 -36
  12. package/dist/assets/directive-bitflow/{index-YPMWh-1B.js → index-BI6aFdIS.js} +21 -21
  13. package/dist/assets/directive-bitflow/{index-D7m-hJZ9.js → index-Bf078mfo.js} +69 -69
  14. package/dist/assets/directive-bitflow/{index-Bf_FQRbK.js → index-BinE5Wvd.js} +19 -19
  15. package/dist/assets/directive-bitflow/{index-CFcRAa3F.js → index-BoX5-jkC.js} +31 -31
  16. package/dist/assets/directive-bitflow/{index-NyNuXp4C.js → index-BqRsXShM.js} +34 -34
  17. package/dist/assets/directive-bitflow/{index-Fr7yl4Vn.js → index-BxihQ8Oo.js} +21 -21
  18. package/dist/assets/directive-bitflow/{index-B3jMTk1o.js → index-C5YguHZU.js} +101 -101
  19. package/dist/assets/directive-bitflow/{index-XxGfBwJe.js → index-C8zwSmE6.js} +27 -27
  20. package/dist/assets/directive-bitflow/{index-BLcJNyog.js → index-C9JSBTNc.js} +91 -91
  21. package/dist/assets/directive-bitflow/{index-CjscG0z6.js → index-CCMI6UK4.js} +75 -75
  22. package/dist/assets/directive-bitflow/{index-CK1UMcfT.js → index-CGDt8H6s.js} +24 -24
  23. package/dist/assets/directive-bitflow/{index-xapm2BQE.js → index-Ca1v0pjV.js} +102 -92
  24. package/dist/assets/directive-bitflow/{index-IQHOi2fr.js → index-CaYn3Gmh.js} +31 -31
  25. package/dist/assets/directive-bitflow/{index-BpG316Ls.js → index-CbQue0If.js} +67 -67
  26. package/dist/assets/directive-bitflow/{index-CzdZQibq.js → index-CjH3h0OO.js} +79 -79
  27. package/dist/assets/directive-bitflow/{index-B7Z6Q-PQ.js → index-CkO3QfOS.js} +8 -8
  28. package/dist/assets/directive-bitflow/{index-BIJ7VfD2.js → index-Cz4i5rfe.js} +39 -39
  29. package/dist/assets/directive-bitflow/{index-8jTO-NJA.js → index-D0NtgeiX.js} +85 -85
  30. package/dist/assets/directive-bitflow/{index-DtsDy2By.js → index-D1C_1SPY.js} +14 -14
  31. package/dist/assets/directive-bitflow/{index-BdBBCZSy.js → index-D45u7EVR.js} +227 -194
  32. package/dist/assets/directive-bitflow/{index-cnRM_JDB.js → index-D9Ox4YpM.js} +33 -33
  33. package/dist/assets/directive-bitflow/{index-Bqf-kixT.js → index-DJ1w2Xcm.js} +46 -46
  34. package/dist/assets/directive-bitflow/{index-BQ5h4nDN.js → index-DUqW2fmV.js} +94 -94
  35. package/dist/assets/directive-bitflow/{index-ChgzyMHe.js → index-Deedj9EF.js} +25 -25
  36. package/dist/assets/directive-bitflow/{index-CZyaFdD2.js → index-Dg6nnY_v.js} +68 -68
  37. package/dist/assets/directive-bitflow/{index-kRpwcprB.js → index-DgxEzomz.js} +2 -2
  38. package/dist/assets/directive-bitflow/{index-D5yZNeIg.js → index-Dl0-ZAT5.js} +52 -52
  39. package/dist/assets/directive-bitflow/{index-DnVYIuen.js → index-Do6dmZyj.js} +42 -42
  40. package/dist/assets/directive-bitflow/{index-DjWNEPDL.js → index-DqnGC-DU.js} +31 -31
  41. package/dist/assets/directive-bitflow/{index-ivI25bnR.js → index-DwXXeSwk.js} +73 -73
  42. package/dist/assets/directive-bitflow/{index-Bf_NXJjq.js → index-b6qwcTj9.js} +15 -15
  43. package/dist/assets/directive-bitflow/{index-Fq7njn6_.js → index-d105UFQI.js} +58 -58
  44. package/dist/assets/directive-bitflow/{index-CW9iev-_.js → index-jijMWQB6.js} +8 -8
  45. package/dist/assets/directive-bitflow/{index-C_ZTSeqv.js → index-kxO5_U9Y.js} +24 -24
  46. package/dist/assets/directive-bitflow/{index-DoKlIgCD.js → index-p5AOgOal.js} +35 -35
  47. package/dist/assets/directive-bitflow/{index-CvCZVgKv.js → index-q2APknM6.js} +46 -46
  48. package/dist/assets/directive-bitflow/{index-eN2S_MLj.js → index-zVkWgm5I.js} +70 -70
  49. package/dist/assets/directive-bitflow/index.js +6 -6
  50. package/dist/assets/directive-bitflow/katex-DSLAjWZH-CHGN3Pr6.js +11314 -0
  51. package/dist/assets/directive-bitflow/katex-Dv-tcU2S-Dv-tcU2S.js +4 -0
  52. package/dist/assets/directive-bitflow/report.js +1 -1
  53. package/dist/assets/directive-bitflow/{shareableReport-ArQU1XjG.js → shareableReport-mdyEMdsJ.js} +6 -6
  54. package/dist/index.js +1 -1
  55. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
- import { r as Qs, o as Qn, a as P, j as m, s as Gr, B as Ur, b as ke, g as Tn, x as Js, w as Et, n as el, E as Yt, t as Qr, y as tl, c as nl, d as ol, e as ut, f as rl, h as Cn, i as Po, k as il } from "./dom-uYx_3K1r.js";
2
- import { O as al, T as Jn, G as sl, d as ll, e as je, y as cn, P as oe, I as Jr, s as cl, f as dl, v as ei, m as ul, M as Zt, t as ti, S as fl, l as hl } from "./bitLoaders-DIGwTcpd.js";
1
+ import { r as Qs, o as Qn, a as P, j as m, s as Gr, W as Ur, b as ke, g as Tn, F as Js, k as Et, n as el, E as Yt, t as Qr, y as tl, c as nl, d as ol, e as ut, f as rl, h as Cn, i as Po, l as il } from "./dom-B6NPWBb1.js";
2
+ import { O as al, T as Jn, G as sl, d as ll, P as je, C as cn, M as oe, I as Jr, y as cl, x as dl, e as ei, f as ul, F as Ft, r as ti, $ as fl, l as hl } from "./bitLoaders-7qanePQL.js";
3
3
  Qs();
4
4
  const gl = ".react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #555;--xy-background-pattern-lines-color-default: #333;--xy-background-pattern-cross-color-default: #333;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}", _e = {
5
5
  en: {
@@ -1286,9 +1286,9 @@ function dn() {
1286
1286
  if (!(o = arguments[e] + "") || o in n || /[\s.]/.test(o)) throw new Error("illegal type: " + o);
1287
1287
  n[o] = [];
1288
1288
  }
1289
- return new Ft(n);
1289
+ return new Zt(n);
1290
1290
  }
1291
- function Ft(e) {
1291
+ function Zt(e) {
1292
1292
  this._ = e;
1293
1293
  }
1294
1294
  function Rl(e, t) {
@@ -1298,8 +1298,8 @@ function Rl(e, t) {
1298
1298
  return { type: n, name: o };
1299
1299
  });
1300
1300
  }
1301
- Ft.prototype = dn.prototype = {
1302
- constructor: Ft,
1301
+ Zt.prototype = dn.prototype = {
1302
+ constructor: Zt,
1303
1303
  on: function(e, t) {
1304
1304
  var n = this._, o = Rl(e + "", n), r, i = -1, a = o.length;
1305
1305
  if (arguments.length < 2) {
@@ -1315,7 +1315,7 @@ Ft.prototype = dn.prototype = {
1315
1315
  copy: function() {
1316
1316
  var e = {}, t = this._;
1317
1317
  for (var n in t) e[n] = t[n].slice();
1318
- return new Ft(e);
1318
+ return new Zt(e);
1319
1319
  },
1320
1320
  call: function(e, t) {
1321
1321
  if ((r = arguments.length - 2) > 0) for (var n = new Array(r), o = 0, r, i; o < r; ++o) n[o] = arguments[o + 2];
@@ -1392,13 +1392,13 @@ function ii(e) {
1392
1392
  return this.querySelectorAll(e);
1393
1393
  };
1394
1394
  }
1395
- function Zl(e) {
1395
+ function Fl(e) {
1396
1396
  return function() {
1397
1397
  return Vl(e.apply(this, arguments));
1398
1398
  };
1399
1399
  }
1400
- function Fl(e) {
1401
- typeof e == "function" ? e = Zl(e) : e = ii(e);
1400
+ function Zl(e) {
1401
+ typeof e == "function" ? e = Fl(e) : e = ii(e);
1402
1402
  for (var t = this._groups, n = t.length, o = [], r = [], i = 0; i < n; ++i)
1403
1403
  for (var a = t[i], s = a.length, l, c = 0; c < s; ++c)
1404
1404
  (l = a[c]) && (o.push(e.call(l, l.__data__, c, a)), r.push(l));
@@ -1414,17 +1414,17 @@ function si(e) {
1414
1414
  return t.matches(e);
1415
1415
  };
1416
1416
  }
1417
- var Xl = Array.prototype.find;
1418
- function Wl(e) {
1417
+ var Wl = Array.prototype.find;
1418
+ function Xl(e) {
1419
1419
  return function() {
1420
- return Xl.call(this.children, e);
1420
+ return Wl.call(this.children, e);
1421
1421
  };
1422
1422
  }
1423
1423
  function Kl() {
1424
1424
  return this.firstElementChild;
1425
1425
  }
1426
1426
  function ql(e) {
1427
- return this.select(e == null ? Kl : Wl(typeof e == "function" ? e : si(e)));
1427
+ return this.select(e == null ? Kl : Xl(typeof e == "function" ? e : si(e)));
1428
1428
  }
1429
1429
  var Gl = Array.prototype.filter;
1430
1430
  function Ul() {
@@ -1730,25 +1730,25 @@ function Vc(e) {
1730
1730
  function Yc() {
1731
1731
  this.innerHTML = "";
1732
1732
  }
1733
- function Zc(e) {
1733
+ function Fc(e) {
1734
1734
  return function() {
1735
1735
  this.innerHTML = e;
1736
1736
  };
1737
1737
  }
1738
- function Fc(e) {
1738
+ function Zc(e) {
1739
1739
  return function() {
1740
1740
  var t = e.apply(this, arguments);
1741
1741
  this.innerHTML = t ?? "";
1742
1742
  };
1743
1743
  }
1744
- function Xc(e) {
1745
- return arguments.length ? this.each(e == null ? Yc : (typeof e == "function" ? Fc : Zc)(e)) : this.node().innerHTML;
1744
+ function Wc(e) {
1745
+ return arguments.length ? this.each(e == null ? Yc : (typeof e == "function" ? Zc : Fc)(e)) : this.node().innerHTML;
1746
1746
  }
1747
- function Wc() {
1747
+ function Xc() {
1748
1748
  this.nextSibling && this.parentNode.appendChild(this);
1749
1749
  }
1750
1750
  function Kc() {
1751
- return this.each(Wc);
1751
+ return this.each(Xc);
1752
1752
  }
1753
1753
  function qc() {
1754
1754
  this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
@@ -1876,7 +1876,7 @@ function pd() {
1876
1876
  ce.prototype = Mt.prototype = {
1877
1877
  constructor: ce,
1878
1878
  select: Hl,
1879
- selectAll: Fl,
1879
+ selectAll: Zl,
1880
1880
  selectChild: ql,
1881
1881
  selectChildren: Jl,
1882
1882
  filter: ec,
@@ -1899,7 +1899,7 @@ ce.prototype = Mt.prototype = {
1899
1899
  property: Oc,
1900
1900
  classed: Tc,
1901
1901
  text: Vc,
1902
- html: Xc,
1902
+ html: Wc,
1903
1903
  raise: Kc,
1904
1904
  lower: Gc,
1905
1905
  append: Uc,
@@ -2253,7 +2253,7 @@ var vt = 0.7, Ut = 1 / vt, nt = "\\s*([+-]?\\d+)\\s*", wt = "\\s*([+-]?(?:\\d*\\
2253
2253
  yellow: 16776960,
2254
2254
  yellowgreen: 10145074
2255
2255
  };
2256
- oo(Pt, Xe, {
2256
+ oo(Pt, We, {
2257
2257
  copy(e) {
2258
2258
  return Object.assign(new this.constructor(), this, e);
2259
2259
  },
@@ -2280,9 +2280,9 @@ function Id() {
2280
2280
  function Ho() {
2281
2281
  return this.rgb().formatRgb();
2282
2282
  }
2283
- function Xe(e) {
2283
+ function We(e) {
2284
2284
  var t, n;
2285
- return e = (e + "").trim().toLowerCase(), (t = Sd.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Vo(t) : n === 3 ? new se(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? jt(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? jt(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = kd.exec(e)) ? new se(t[1], t[2], t[3], 1) : (t = _d.exec(e)) ? new se(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Cd.exec(e)) ? jt(t[1], t[2], t[3], t[4]) : (t = Nd.exec(e)) ? jt(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Ed.exec(e)) ? Fo(t[1], t[2] / 100, t[3] / 100, 1) : (t = Md.exec(e)) ? Fo(t[1], t[2] / 100, t[3] / 100, t[4]) : $o.hasOwnProperty(e) ? Vo($o[e]) : e === "transparent" ? new se(NaN, NaN, NaN, 0) : null;
2285
+ return e = (e + "").trim().toLowerCase(), (t = Sd.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Vo(t) : n === 3 ? new se(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? jt(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? jt(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = kd.exec(e)) ? new se(t[1], t[2], t[3], 1) : (t = _d.exec(e)) ? new se(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Cd.exec(e)) ? jt(t[1], t[2], t[3], t[4]) : (t = Nd.exec(e)) ? jt(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Ed.exec(e)) ? Zo(t[1], t[2] / 100, t[3] / 100, 1) : (t = Md.exec(e)) ? Zo(t[1], t[2] / 100, t[3] / 100, t[4]) : $o.hasOwnProperty(e) ? Vo($o[e]) : e === "transparent" ? new se(NaN, NaN, NaN, 0) : null;
2286
2286
  }
2287
2287
  function Vo(e) {
2288
2288
  return new se(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
@@ -2291,7 +2291,7 @@ function jt(e, t, n, o) {
2291
2291
  return o <= 0 && (e = t = n = NaN), new se(e, t, n, o);
2292
2292
  }
2293
2293
  function zd(e) {
2294
- return e instanceof Pt || (e = Xe(e)), e ? (e = e.rgb(), new se(e.r, e.g, e.b, e.opacity)) : new se();
2294
+ return e instanceof Pt || (e = We(e)), e ? (e = e.rgb(), new se(e.r, e.g, e.b, e.opacity)) : new se();
2295
2295
  }
2296
2296
  function Hn(e, t, n, o) {
2297
2297
  return arguments.length === 1 ? zd(e) : new se(e, t, n, o ?? 1);
@@ -2310,7 +2310,7 @@ oo(se, Hn, vi(Pt, {
2310
2310
  return this;
2311
2311
  },
2312
2312
  clamp() {
2313
- return new se(Ze(this.r), Ze(this.g), Ze(this.b), Qt(this.opacity));
2313
+ return new se(Fe(this.r), Fe(this.g), Fe(this.b), Qt(this.opacity));
2314
2314
  },
2315
2315
  displayable() {
2316
2316
  return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
@@ -2319,8 +2319,8 @@ oo(se, Hn, vi(Pt, {
2319
2319
  // Deprecated! Use color.formatHex.
2320
2320
  formatHex: Yo,
2321
2321
  formatHex8: Ad,
2322
- formatRgb: Zo,
2323
- toString: Zo
2322
+ formatRgb: Fo,
2323
+ toString: Fo
2324
2324
  }));
2325
2325
  function Yo() {
2326
2326
  return `#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}`;
@@ -2328,25 +2328,25 @@ function Yo() {
2328
2328
  function Ad() {
2329
2329
  return `#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}${Ye((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
2330
2330
  }
2331
- function Zo() {
2331
+ function Fo() {
2332
2332
  const e = Qt(this.opacity);
2333
- return `${e === 1 ? "rgb(" : "rgba("}${Ze(this.r)}, ${Ze(this.g)}, ${Ze(this.b)}${e === 1 ? ")" : `, ${e})`}`;
2333
+ return `${e === 1 ? "rgb(" : "rgba("}${Fe(this.r)}, ${Fe(this.g)}, ${Fe(this.b)}${e === 1 ? ")" : `, ${e})`}`;
2334
2334
  }
2335
2335
  function Qt(e) {
2336
2336
  return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
2337
2337
  }
2338
- function Ze(e) {
2338
+ function Fe(e) {
2339
2339
  return Math.max(0, Math.min(255, Math.round(e) || 0));
2340
2340
  }
2341
2341
  function Ye(e) {
2342
- return e = Ze(e), (e < 16 ? "0" : "") + e.toString(16);
2342
+ return e = Fe(e), (e < 16 ? "0" : "") + e.toString(16);
2343
2343
  }
2344
- function Fo(e, t, n, o) {
2344
+ function Zo(e, t, n, o) {
2345
2345
  return o <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new fe(e, t, n, o);
2346
2346
  }
2347
2347
  function wi(e) {
2348
2348
  if (e instanceof fe) return new fe(e.h, e.s, e.l, e.opacity);
2349
- if (e instanceof Pt || (e = Xe(e)), !e) return new fe();
2349
+ if (e instanceof Pt || (e = We(e)), !e) return new fe();
2350
2350
  if (e instanceof fe) return e;
2351
2351
  e = e.rgb();
2352
2352
  var t = e.r / 255, n = e.g / 255, o = e.b / 255, r = Math.min(t, n, o), i = Math.max(t, n, o), a = NaN, s = i - r, l = (i + r) / 2;
@@ -2375,17 +2375,17 @@ oo(fe, Dd, vi(Pt, {
2375
2375
  );
2376
2376
  },
2377
2377
  clamp() {
2378
- return new fe(Xo(this.h), Rt(this.s), Rt(this.l), Qt(this.opacity));
2378
+ return new fe(Wo(this.h), Rt(this.s), Rt(this.l), Qt(this.opacity));
2379
2379
  },
2380
2380
  displayable() {
2381
2381
  return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
2382
2382
  },
2383
2383
  formatHsl() {
2384
2384
  const e = Qt(this.opacity);
2385
- return `${e === 1 ? "hsl(" : "hsla("}${Xo(this.h)}, ${Rt(this.s) * 100}%, ${Rt(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
2385
+ return `${e === 1 ? "hsl(" : "hsla("}${Wo(this.h)}, ${Rt(this.s) * 100}%, ${Rt(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
2386
2386
  }
2387
2387
  }));
2388
- function Xo(e) {
2388
+ function Wo(e) {
2389
2389
  return e = (e || 0) % 360, e < 0 ? e + 360 : e;
2390
2390
  }
2391
2391
  function Rt(e) {
@@ -2487,9 +2487,9 @@ function Si(e, t) {
2487
2487
  }
2488
2488
  function mt(e, t) {
2489
2489
  var n = typeof t, o;
2490
- return t == null || n === "boolean" ? ro(t) : (n === "number" ? xe : n === "string" ? (o = Xe(t)) ? (t = o, Jt) : Si : t instanceof Xe ? Jt : t instanceof Date ? Bd : Td(t) ? Ld : Array.isArray(t) ? $d : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? Hd : xe)(e, t);
2490
+ return t == null || n === "boolean" ? ro(t) : (n === "number" ? xe : n === "string" ? (o = We(t)) ? (t = o, Jt) : Si : t instanceof We ? Jt : t instanceof Date ? Bd : Td(t) ? Ld : Array.isArray(t) ? $d : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? Hd : xe)(e, t);
2491
2491
  }
2492
- var Wo = 180 / Math.PI, ki = {
2492
+ var Xo = 180 / Math.PI, ki = {
2493
2493
  translateX: 0,
2494
2494
  translateY: 0,
2495
2495
  rotate: 0,
@@ -2502,18 +2502,18 @@ function _i(e, t, n, o, r, i) {
2502
2502
  return (a = Math.sqrt(e * e + t * t)) && (e /= a, t /= a), (l = e * n + t * o) && (n -= e * l, o -= t * l), (s = Math.sqrt(n * n + o * o)) && (n /= s, o /= s, l /= s), e * o < t * n && (e = -e, t = -t, l = -l, a = -a), {
2503
2503
  translateX: r,
2504
2504
  translateY: i,
2505
- rotate: Math.atan2(t, e) * Wo,
2506
- skewX: Math.atan(l) * Wo,
2505
+ rotate: Math.atan2(t, e) * Xo,
2506
+ skewX: Math.atan(l) * Xo,
2507
2507
  scaleX: a,
2508
2508
  scaleY: s
2509
2509
  };
2510
2510
  }
2511
2511
  var Lt;
2512
- function Zd(e) {
2512
+ function Fd(e) {
2513
2513
  const t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + "");
2514
2514
  return t.isIdentity ? ki : _i(t.a, t.b, t.c, t.d, t.e, t.f);
2515
2515
  }
2516
- function Fd(e) {
2516
+ function Zd(e) {
2517
2517
  return e == null || (Lt || (Lt = document.createElementNS("http://www.w3.org/2000/svg", "g")), Lt.setAttribute("transform", e), !(e = Lt.transform.baseVal.consolidate())) ? ki : (e = e.matrix, _i(e.a, e.b, e.c, e.d, e.e, e.f));
2518
2518
  }
2519
2519
  function Ci(e, t, n, o) {
@@ -2546,7 +2546,7 @@ function Ci(e, t, n, o) {
2546
2546
  };
2547
2547
  };
2548
2548
  }
2549
- var Xd = Ci(Zd, "px, ", "px)", "deg)"), Wd = Ci(Fd, ", ", ")", ")"), Kd = 1e-12;
2549
+ var Wd = Ci(Fd, "px, ", "px)", "deg)"), Xd = Ci(Zd, ", ", ")", ")"), Kd = 1e-12;
2550
2550
  function Ko(e) {
2551
2551
  return ((e = Math.exp(e)) + 1 / e) / 2;
2552
2552
  }
@@ -2556,7 +2556,7 @@ function qd(e) {
2556
2556
  function Gd(e) {
2557
2557
  return ((e = Math.exp(2 * e)) - 1) / (e + 1);
2558
2558
  }
2559
- const Xt = (function e(t, n, o) {
2559
+ const Wt = (function e(t, n, o) {
2560
2560
  function r(i, a) {
2561
2561
  var s = i[0], l = i[1], c = i[2], d = a[0], f = a[1], u = a[2], h = d - s, g = f - l, x = h * h + g * g, w, v;
2562
2562
  if (x < Kd)
@@ -2585,14 +2585,14 @@ const Xt = (function e(t, n, o) {
2585
2585
  return e(a, s, l);
2586
2586
  }, r;
2587
2587
  })(Math.SQRT2, 2, 4);
2588
- var rt = 0, gt = 0, ft = 0, Ni = 1e3, en, pt, tn = 0, We = 0, fn = 0, xt = typeof performance == "object" && performance.now ? performance : Date, Ei = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
2588
+ var rt = 0, gt = 0, ft = 0, Ni = 1e3, en, pt, tn = 0, Xe = 0, fn = 0, xt = typeof performance == "object" && performance.now ? performance : Date, Ei = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
2589
2589
  setTimeout(e, 17);
2590
2590
  };
2591
2591
  function io() {
2592
- return We || (Ei(Ud), We = xt.now() + fn);
2592
+ return Xe || (Ei(Ud), Xe = xt.now() + fn);
2593
2593
  }
2594
2594
  function Ud() {
2595
- We = 0;
2595
+ Xe = 0;
2596
2596
  }
2597
2597
  function nn() {
2598
2598
  this._call = this._time = this._next = null;
@@ -2614,15 +2614,15 @@ function Mi(e, t, n) {
2614
2614
  function Qd() {
2615
2615
  io(), ++rt;
2616
2616
  for (var e = en, t; e; )
2617
- (t = We - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
2617
+ (t = Xe - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
2618
2618
  --rt;
2619
2619
  }
2620
2620
  function qo() {
2621
- We = (tn = xt.now()) + fn, rt = gt = 0;
2621
+ Xe = (tn = xt.now()) + fn, rt = gt = 0;
2622
2622
  try {
2623
2623
  Qd();
2624
2624
  } finally {
2625
- rt = 0, eu(), We = 0;
2625
+ rt = 0, eu(), Xe = 0;
2626
2626
  }
2627
2627
  }
2628
2628
  function Jd() {
@@ -2637,7 +2637,7 @@ function eu() {
2637
2637
  function Yn(e) {
2638
2638
  if (!rt) {
2639
2639
  gt && (gt = clearTimeout(gt));
2640
- var t = e - We;
2640
+ var t = e - Xe;
2641
2641
  t > 24 ? (e < 1 / 0 && (gt = setTimeout(qo, e - xt.now() - fn)), ft && (ft = clearInterval(ft))) : (ft || (tn = xt.now(), ft = setInterval(Jd, Ni)), rt = 1, Ei(qo));
2642
2642
  }
2643
2643
  }
@@ -2647,7 +2647,7 @@ function Go(e, t, n) {
2647
2647
  o.stop(), e(r + t);
2648
2648
  }, t, n), o;
2649
2649
  }
2650
- var tu = dn("start", "end", "cancel", "interrupt"), nu = [], Pi = 0, Uo = 1, Zn = 2, Wt = 3, Qo = 4, Fn = 5, Kt = 6;
2650
+ var tu = dn("start", "end", "cancel", "interrupt"), nu = [], Pi = 0, Uo = 1, Fn = 2, Xt = 3, Qo = 4, Zn = 5, Kt = 6;
2651
2651
  function hn(e, t, n, o, r, i) {
2652
2652
  var a = e.__transition;
2653
2653
  if (!a) e.__transition = {};
@@ -2675,7 +2675,7 @@ function ao(e, t) {
2675
2675
  }
2676
2676
  function Ce(e, t) {
2677
2677
  var n = me(e, t);
2678
- if (n.state > Wt) throw new Error("too late; already running");
2678
+ if (n.state > Xt) throw new Error("too late; already running");
2679
2679
  return n;
2680
2680
  }
2681
2681
  function me(e, t) {
@@ -2694,21 +2694,21 @@ function ou(e, t, n) {
2694
2694
  if (n.state !== Uo) return l();
2695
2695
  for (d in o)
2696
2696
  if (h = o[d], h.name === n.name) {
2697
- if (h.state === Wt) return Go(a);
2697
+ if (h.state === Xt) return Go(a);
2698
2698
  h.state === Qo ? (h.state = Kt, h.timer.stop(), h.on.call("interrupt", e, e.__data__, h.index, h.group), delete o[d]) : +d < t && (h.state = Kt, h.timer.stop(), h.on.call("cancel", e, e.__data__, h.index, h.group), delete o[d]);
2699
2699
  }
2700
2700
  if (Go(function() {
2701
- n.state === Wt && (n.state = Qo, n.timer.restart(s, n.delay, n.time), s(c));
2702
- }), n.state = Zn, n.on.call("start", e, e.__data__, n.index, n.group), n.state === Zn) {
2703
- for (n.state = Wt, r = new Array(u = n.tween.length), d = 0, f = -1; d < u; ++d)
2701
+ n.state === Xt && (n.state = Qo, n.timer.restart(s, n.delay, n.time), s(c));
2702
+ }), n.state = Fn, n.on.call("start", e, e.__data__, n.index, n.group), n.state === Fn) {
2703
+ for (n.state = Xt, r = new Array(u = n.tween.length), d = 0, f = -1; d < u; ++d)
2704
2704
  (h = n.tween[d].value.call(e, e.__data__, n.index, n.group)) && (r[++f] = h);
2705
2705
  r.length = f + 1;
2706
2706
  }
2707
2707
  }
2708
2708
  function s(c) {
2709
- for (var d = c < n.duration ? n.ease.call(null, c / n.duration) : (n.timer.restart(l), n.state = Fn, 1), f = -1, u = r.length; ++f < u; )
2709
+ for (var d = c < n.duration ? n.ease.call(null, c / n.duration) : (n.timer.restart(l), n.state = Zn, 1), f = -1, u = r.length; ++f < u; )
2710
2710
  r[f].call(e, d);
2711
- n.state === Fn && (n.on.call("end", e, e.__data__, n.index, n.group), l());
2711
+ n.state === Zn && (n.on.call("end", e, e.__data__, n.index, n.group), l());
2712
2712
  }
2713
2713
  function l() {
2714
2714
  n.state = Kt, n.timer.stop(), delete o[t];
@@ -2725,7 +2725,7 @@ function qt(e, t) {
2725
2725
  i = !1;
2726
2726
  continue;
2727
2727
  }
2728
- r = o.state > Zn && o.state < Fn, o.state = Kt, o.timer.stop(), o.on.call(r ? "interrupt" : "cancel", e, e.__data__, o.index, o.group), delete n[a];
2728
+ r = o.state > Fn && o.state < Zn, o.state = Kt, o.timer.stop(), o.on.call(r ? "interrupt" : "cancel", e, e.__data__, o.index, o.group), delete n[a];
2729
2729
  }
2730
2730
  i && delete e.__transition;
2731
2731
  }
@@ -2788,7 +2788,7 @@ function so(e, t, n) {
2788
2788
  }
2789
2789
  function Ii(e, t) {
2790
2790
  var n;
2791
- return (typeof t == "number" ? xe : t instanceof Xe ? Jt : (n = Xe(t)) ? (t = n, Jt) : Si)(e, t);
2791
+ return (typeof t == "number" ? xe : t instanceof We ? Jt : (n = We(t)) ? (t = n, Jt) : Si)(e, t);
2792
2792
  }
2793
2793
  function lu(e) {
2794
2794
  return function() {
@@ -2829,7 +2829,7 @@ function hu(e, t, n) {
2829
2829
  };
2830
2830
  }
2831
2831
  function gu(e, t) {
2832
- var n = un(e), o = n === "transform" ? Wd : Ii;
2832
+ var n = un(e), o = n === "transform" ? Xd : Ii;
2833
2833
  return this.attrTween(e, typeof t == "function" ? (n.local ? hu : fu)(n, o, so(this, "attr." + e, t)) : t == null ? (n.local ? cu : lu)(n) : (n.local ? uu : du)(n, o, t));
2834
2834
  }
2835
2835
  function pu(e, t) {
@@ -3008,27 +3008,27 @@ function Yu(e, t, n) {
3008
3008
  return s == null && (l = s = (this.style.removeProperty(e), ot(this, e))), a === l ? null : a === o && l === r ? i : (r = l, i = t(o = a, s));
3009
3009
  };
3010
3010
  }
3011
- function Zu(e, t) {
3011
+ function Fu(e, t) {
3012
3012
  var n, o, r, i = "style." + t, a = "end." + i, s;
3013
3013
  return function() {
3014
3014
  var l = Ce(this, e), c = l.on, d = l.value[i] == null ? s || (s = zi(t)) : void 0;
3015
3015
  (c !== n || r !== d) && (o = (n = c).copy()).on(a, r = d), l.on = o;
3016
3016
  };
3017
3017
  }
3018
- function Fu(e, t, n) {
3019
- var o = (e += "") == "transform" ? Xd : Ii;
3020
- return t == null ? this.styleTween(e, Hu(e, o)).on("end.style." + e, zi(e)) : typeof t == "function" ? this.styleTween(e, Yu(e, o, so(this, "style." + e, t))).each(Zu(this._id, e)) : this.styleTween(e, Vu(e, o, t), n).on("end.style." + e, null);
3018
+ function Zu(e, t, n) {
3019
+ var o = (e += "") == "transform" ? Wd : Ii;
3020
+ return t == null ? this.styleTween(e, Hu(e, o)).on("end.style." + e, zi(e)) : typeof t == "function" ? this.styleTween(e, Yu(e, o, so(this, "style." + e, t))).each(Fu(this._id, e)) : this.styleTween(e, Vu(e, o, t), n).on("end.style." + e, null);
3021
3021
  }
3022
- function Xu(e, t, n) {
3022
+ function Wu(e, t, n) {
3023
3023
  return function(o) {
3024
3024
  this.style.setProperty(e, t.call(this, o), n);
3025
3025
  };
3026
3026
  }
3027
- function Wu(e, t, n) {
3027
+ function Xu(e, t, n) {
3028
3028
  var o, r;
3029
3029
  function i() {
3030
3030
  var a = t.apply(this, arguments);
3031
- return a !== r && (o = (r = a) && Xu(e, a, n)), o;
3031
+ return a !== r && (o = (r = a) && Wu(e, a, n)), o;
3032
3032
  }
3033
3033
  return i._value = t, i;
3034
3034
  }
@@ -3037,7 +3037,7 @@ function Ku(e, t, n) {
3037
3037
  if (arguments.length < 2) return (o = this.tween(o)) && o._value;
3038
3038
  if (t == null) return this.tween(o, null);
3039
3039
  if (typeof t != "function") throw new Error();
3040
- return this.tween(o, Wu(e, t, n ?? ""));
3040
+ return this.tween(o, Xu(e, t, n ?? ""));
3041
3041
  }
3042
3042
  function qu(e) {
3043
3043
  return function() {
@@ -3126,7 +3126,7 @@ Ie.prototype = {
3126
3126
  on: Ou,
3127
3127
  attr: gu,
3128
3128
  attrTween: vu,
3129
- style: Fu,
3129
+ style: Zu,
3130
3130
  styleTween: Ku,
3131
3131
  text: Uu,
3132
3132
  textTween: ef,
@@ -3255,7 +3255,7 @@ function gf(e, t, n) {
3255
3255
  );
3256
3256
  }
3257
3257
  function Oi() {
3258
- var e = df, t = uf, n = gf, o = ff, r = hf, i = [0, 1 / 0], a = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], s = 250, l = Xt, c = dn("start", "zoom", "end"), d, f, u, h = 500, g = 150, x = 0, w = 10;
3258
+ var e = df, t = uf, n = gf, o = ff, r = hf, i = [0, 1 / 0], a = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], s = 250, l = Wt, c = dn("start", "zoom", "end"), d, f, u, h = 500, g = 150, x = 0, w = 10;
3259
3259
  function v(y) {
3260
3260
  y.property("__zoom", Jo).on("wheel.zoom", z, { passive: !1 }).on("mousedown.zoom", D).on("dblclick.zoom", H).filter(r).on("touchstart.zoom", R).on("touchmove.zoom", A).on("touchend.zoom touchcancel.zoom", _).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
3261
3261
  }
@@ -3306,11 +3306,11 @@ function Oi() {
3306
3306
  }).on("interrupt.zoom end.zoom", function() {
3307
3307
  S(this, arguments).event(I).end();
3308
3308
  }).tween("zoom", function() {
3309
- var j = this, O = arguments, T = S(j, O).event(I), B = t.apply(j, O), $ = N == null ? b(B) : typeof N == "function" ? N.apply(j, O) : N, X = Math.max(B[1][0] - B[0][0], B[1][1] - B[0][1]), Z = j.__zoom, W = typeof M == "function" ? M.apply(j, O) : M, q = l(Z.invert($).concat(X / Z.k), W.invert($).concat(X / W.k));
3309
+ var j = this, O = arguments, T = S(j, O).event(I), B = t.apply(j, O), $ = N == null ? b(B) : typeof N == "function" ? N.apply(j, O) : N, W = Math.max(B[1][0] - B[0][0], B[1][1] - B[0][1]), F = j.__zoom, X = typeof M == "function" ? M.apply(j, O) : M, q = l(F.invert($).concat(W / F.k), X.invert($).concat(W / X.k));
3310
3310
  return function(K) {
3311
- if (K === 1) K = W;
3311
+ if (K === 1) K = X;
3312
3312
  else {
3313
- var L = q(K), Y = X / L[2];
3313
+ var L = q(K), Y = W / L[2];
3314
3314
  K = new Pe(Y, $[0] - L[0] * Y, $[1] - L[1] * Y);
3315
3315
  }
3316
3316
  T.zoom(null, K);
@@ -3367,17 +3367,17 @@ function Oi() {
3367
3367
  }
3368
3368
  function D(y, ...M) {
3369
3369
  if (u || !e.apply(this, arguments)) return;
3370
- var N = y.currentTarget, I = S(this, M, !0).event(y), j = le(y.view).on("mousemove.zoom", $, !0).on("mouseup.zoom", X, !0), O = ue(y, N), T = y.clientX, B = y.clientY;
3370
+ var N = y.currentTarget, I = S(this, M, !0).event(y), j = le(y.view).on("mousemove.zoom", $, !0).on("mouseup.zoom", W, !0), O = ue(y, N), T = y.clientX, B = y.clientY;
3371
3371
  mi(y.view), In(y), I.mouse = [O, this.__zoom.invert(O)], qt(this), I.start();
3372
- function $(Z) {
3373
- if (ht(Z), !I.moved) {
3374
- var W = Z.clientX - T, q = Z.clientY - B;
3375
- I.moved = W * W + q * q > x;
3372
+ function $(F) {
3373
+ if (ht(F), !I.moved) {
3374
+ var X = F.clientX - T, q = F.clientY - B;
3375
+ I.moved = X * X + q * q > x;
3376
3376
  }
3377
- I.event(Z).zoom("mouse", n(p(I.that.__zoom, I.mouse[0] = ue(Z, N), I.mouse[1]), I.extent, a));
3377
+ I.event(F).zoom("mouse", n(p(I.that.__zoom, I.mouse[0] = ue(F, N), I.mouse[1]), I.extent, a));
3378
3378
  }
3379
- function X(Z) {
3380
- j.on("mousemove.zoom mouseup.zoom", null), yi(Z.view, I.moved), ht(Z), I.event(Z).end();
3379
+ function W(F) {
3380
+ j.on("mousemove.zoom mouseup.zoom", null), yi(F.view, I.moved), ht(F), I.event(F).end();
3381
3381
  }
3382
3382
  }
3383
3383
  function H(y, ...M) {
@@ -3402,8 +3402,8 @@ function Oi() {
3402
3402
  for (ht(y), O = 0; O < j; ++O)
3403
3403
  T = I[O], B = ue(T, this), N.touch0 && N.touch0[2] === T.identifier ? N.touch0[0] = B : N.touch1 && N.touch1[2] === T.identifier && (N.touch1[0] = B);
3404
3404
  if (T = N.that.__zoom, N.touch1) {
3405
- var X = N.touch0[0], Z = N.touch0[1], W = N.touch1[0], q = N.touch1[1], K = (K = W[0] - X[0]) * K + (K = W[1] - X[1]) * K, L = (L = q[0] - Z[0]) * L + (L = q[1] - Z[1]) * L;
3406
- T = k(T, Math.sqrt(K / L)), B = [(X[0] + W[0]) / 2, (X[1] + W[1]) / 2], $ = [(Z[0] + q[0]) / 2, (Z[1] + q[1]) / 2];
3405
+ var W = N.touch0[0], F = N.touch0[1], X = N.touch1[0], q = N.touch1[1], K = (K = X[0] - W[0]) * K + (K = X[1] - W[1]) * K, L = (L = q[0] - F[0]) * L + (L = q[1] - F[1]) * L;
3406
+ T = k(T, Math.sqrt(K / L)), B = [(W[0] + X[0]) / 2, (W[1] + X[1]) / 2], $ = [(F[0] + q[0]) / 2, (F[1] + q[1]) / 2];
3407
3407
  } else if (N.touch0) B = N.touch0[0], $ = N.touch0[1];
3408
3408
  else return;
3409
3409
  N.zoom("touch", n(p(T, B, $), N.extent, a));
@@ -3490,10 +3490,10 @@ var it;
3490
3490
  (function(e) {
3491
3491
  e.Strict = "strict", e.Loose = "loose";
3492
3492
  })(it || (it = {}));
3493
- var Fe;
3493
+ var Ze;
3494
3494
  (function(e) {
3495
3495
  e.Free = "free", e.Vertical = "vertical", e.Horizontal = "horizontal";
3496
- })(Fe || (Fe = {}));
3496
+ })(Ze || (Ze = {}));
3497
3497
  var kt;
3498
3498
  (function(e) {
3499
3499
  e.Partial = "partial", e.Full = "full";
@@ -3519,15 +3519,15 @@ var on;
3519
3519
  (function(e) {
3520
3520
  e.Arrow = "arrow", e.ArrowClosed = "arrowclosed";
3521
3521
  })(on || (on = {}));
3522
- var F;
3522
+ var Z;
3523
3523
  (function(e) {
3524
3524
  e.Left = "left", e.Top = "top", e.Right = "right", e.Bottom = "bottom";
3525
- })(F || (F = {}));
3525
+ })(Z || (Z = {}));
3526
3526
  const er = {
3527
- [F.Left]: F.Right,
3528
- [F.Right]: F.Left,
3529
- [F.Top]: F.Bottom,
3530
- [F.Bottom]: F.Top
3527
+ [Z.Left]: Z.Right,
3528
+ [Z.Right]: Z.Left,
3529
+ [Z.Top]: Z.Bottom,
3530
+ [Z.Bottom]: Z.Top
3531
3531
  };
3532
3532
  function Ti(e) {
3533
3533
  return e === null ? null : e ? "valid" : "invalid";
@@ -3658,7 +3658,7 @@ const tr = (e, t, n) => e < t ? at(Math.abs(e - t), 1, t) / t : e > n ? -at(Math
3658
3658
  y: Math.min(e.y, t.y),
3659
3659
  x2: Math.max(e.x2, t.x2),
3660
3660
  y2: Math.max(e.y2, t.y2)
3661
- }), Xn = ({ x: e, y: t, width: n, height: o }) => ({
3661
+ }), Wn = ({ x: e, y: t, width: n, height: o }) => ({
3662
3662
  x: e,
3663
3663
  y: t,
3664
3664
  x2: e + n,
@@ -3684,10 +3684,10 @@ const tr = (e, t, n) => e < t ? at(Math.abs(e - t), 1, t) / t : e > n ? -at(Math
3684
3684
  x2: n + (e.measured?.width ?? e.width ?? e.initialWidth ?? 0),
3685
3685
  y2: o + (e.measured?.height ?? e.height ?? e.initialHeight ?? 0)
3686
3686
  };
3687
- }, Vi = (e, t) => mn(pn(Xn(e), Xn(t))), Yi = (e, t, n, o, r, i, a, s) => {
3687
+ }, Vi = (e, t) => mn(pn(Wn(e), Wn(t))), Yi = (e, t, n, o, r, i, a, s) => {
3688
3688
  const l = Math.max(0, Math.min(e + n, r + a) - Math.max(e, r)), c = Math.max(0, Math.min(t + o, i + s) - Math.max(t, i));
3689
3689
  return Math.ceil(l * c);
3690
- }, an = (e, t) => Yi(e.x, e.y, e.width, e.height, t.x, t.y, t.width, t.height), nr = (e) => he(e.width) && he(e.height) && he(e.x) && he(e.y), he = (e) => !isNaN(e) && isFinite(e), Zi = (e, t) => (n, o) => {
3690
+ }, an = (e, t) => Yi(e.x, e.y, e.width, e.height, t.x, t.y, t.width, t.height), nr = (e) => he(e.width) && he(e.height) && he(e.x) && he(e.y), he = (e) => !isNaN(e) && isFinite(e), Fi = (e, t) => (n, o) => {
3691
3691
  }, At = (e, t = [1, 1]) => ({
3692
3692
  x: t[0] * Math.round(e.x / t[0]),
3693
3693
  y: t[1] * Math.round(e.y / t[1])
@@ -3765,10 +3765,10 @@ function ye(e) {
3765
3765
  height: e.measured?.height ?? e.height ?? e.initialHeight ?? 0
3766
3766
  };
3767
3767
  }
3768
- function Fi(e) {
3768
+ function Zi(e) {
3769
3769
  return (e.measured?.width ?? e.width ?? e.initialWidth) !== void 0 && (e.measured?.height ?? e.height ?? e.initialHeight) !== void 0;
3770
3770
  }
3771
- function Xi(e, t = { width: 0, height: 0 }, n, o, r) {
3771
+ function Wi(e, t = { width: 0, height: 0 }, n, o, r) {
3772
3772
  const i = { ...e }, a = o.get(n);
3773
3773
  if (a) {
3774
3774
  const s = a.origin || r;
@@ -3804,7 +3804,7 @@ function yt(e, { snapGrid: t = [0, 0], snapToGrid: n = !1, transform: o, contain
3804
3804
  const ho = (e) => ({
3805
3805
  width: e.offsetWidth,
3806
3806
  height: e.offsetHeight
3807
- }), Wi = (e) => e?.getRootNode?.() || window?.document, Cf = ["INPUT", "SELECT", "TEXTAREA"];
3807
+ }), Xi = (e) => e?.getRootNode?.() || window?.document, Cf = ["INPUT", "SELECT", "TEXTAREA"];
3808
3808
  function Ki(e) {
3809
3809
  const t = e.composedPath?.()?.[0] || e.target;
3810
3810
  return t?.nodeType !== 1 ? !1 : Cf.includes(t.nodeName) || t.hasAttribute("contenteditable") || !!t.closest(".nokey");
@@ -3839,17 +3839,17 @@ function $t(e, t) {
3839
3839
  }
3840
3840
  function ir({ pos: e, x1: t, y1: n, x2: o, y2: r, c: i }) {
3841
3841
  switch (e) {
3842
- case F.Left:
3842
+ case Z.Left:
3843
3843
  return [t - $t(t - o, i), n];
3844
- case F.Right:
3844
+ case Z.Right:
3845
3845
  return [t + $t(o - t, i), n];
3846
- case F.Top:
3846
+ case Z.Top:
3847
3847
  return [t, n - $t(n - r, i)];
3848
- case F.Bottom:
3848
+ case Z.Bottom:
3849
3849
  return [t, n + $t(r - n, i)];
3850
3850
  }
3851
3851
  }
3852
- function Ui({ sourceX: e, sourceY: t, sourcePosition: n = F.Bottom, targetX: o, targetY: r, targetPosition: i = F.Top, curvature: a = 0.25 }) {
3852
+ function Ui({ sourceX: e, sourceY: t, sourcePosition: n = Z.Bottom, targetX: o, targetY: r, targetPosition: i = Z.Top, curvature: a = 0.25 }) {
3853
3853
  const [s, l] = ir({
3854
3854
  pos: n,
3855
3855
  x1: e,
@@ -3923,12 +3923,12 @@ function Ji({ sourceX: e, sourceY: t, targetX: n, targetY: o }) {
3923
3923
  return [`M ${e},${t}L ${n},${o}`, r, i, a, s];
3924
3924
  }
3925
3925
  const ar = {
3926
- [F.Left]: { x: -1, y: 0 },
3927
- [F.Right]: { x: 1, y: 0 },
3928
- [F.Top]: { x: 0, y: -1 },
3929
- [F.Bottom]: { x: 0, y: 1 }
3930
- }, zf = ({ source: e, sourcePosition: t = F.Bottom, target: n }) => t === F.Left || t === F.Right ? e.x < n.x ? { x: 1, y: 0 } : { x: -1, y: 0 } : e.y < n.y ? { x: 0, y: 1 } : { x: 0, y: -1 }, sr = (e, t) => Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
3931
- function Af({ source: e, sourcePosition: t = F.Bottom, target: n, targetPosition: o = F.Top, center: r, offset: i, stepPosition: a }) {
3926
+ [Z.Left]: { x: -1, y: 0 },
3927
+ [Z.Right]: { x: 1, y: 0 },
3928
+ [Z.Top]: { x: 0, y: -1 },
3929
+ [Z.Bottom]: { x: 0, y: 1 }
3930
+ }, zf = ({ source: e, sourcePosition: t = Z.Bottom, target: n }) => t === Z.Left || t === Z.Right ? e.x < n.x ? { x: 1, y: 0 } : { x: -1, y: 0 } : e.y < n.y ? { x: 0, y: 1 } : { x: 0, y: -1 }, sr = (e, t) => Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
3931
+ function Af({ source: e, sourcePosition: t = Z.Bottom, target: n, targetPosition: o = Z.Top, center: r, offset: i, stepPosition: a }) {
3932
3932
  const s = ar[t], l = ar[o], c = { x: e.x + s.x * i, y: e.y + s.y * i }, d = { x: n.x + l.x * i, y: n.y + l.y * i }, f = zf({
3933
3933
  source: c,
3934
3934
  sourcePosition: t,
@@ -3988,7 +3988,7 @@ function Df(e, t, n, o) {
3988
3988
  const s = e.x < n.x ? 1 : -1, l = e.y < n.y ? -1 : 1;
3989
3989
  return `L ${i},${a + r * l}Q ${i},${a} ${i + r * s},${a}`;
3990
3990
  }
3991
- function Wn({ sourceX: e, sourceY: t, sourcePosition: n = F.Bottom, targetX: o, targetY: r, targetPosition: i = F.Top, borderRadius: a = 5, centerX: s, centerY: l, offset: c = 20, stepPosition: d = 0.5 }) {
3991
+ function Xn({ sourceX: e, sourceY: t, sourcePosition: n = Z.Bottom, targetX: o, targetY: r, targetPosition: i = Z.Top, borderRadius: a = 5, centerX: s, centerY: l, offset: c = 20, stepPosition: d = 0.5 }) {
3992
3992
  const [f, u, h, g, x] = Af({
3993
3993
  source: { x: e, y: t },
3994
3994
  sourcePosition: n,
@@ -4021,7 +4021,7 @@ function Of(e) {
4021
4021
  sourceHandle: e.sourceHandle,
4022
4022
  targetHandle: e.targetHandle
4023
4023
  })), null;
4024
- const s = i?.position || F.Bottom, l = a?.position || F.Top, c = Ge(t, i, s), d = Ge(n, a, l);
4024
+ const s = i?.position || Z.Bottom, l = a?.position || Z.Top, c = Ge(t, i, s), d = Ge(n, a, l);
4025
4025
  return {
4026
4026
  sourceX: c.x,
4027
4027
  sourceY: c.y,
@@ -4042,18 +4042,18 @@ function cr(e) {
4042
4042
  target: n
4043
4043
  };
4044
4044
  }
4045
- function Ge(e, t, n = F.Left, o = !1) {
4045
+ function Ge(e, t, n = Z.Left, o = !1) {
4046
4046
  const r = (t?.x ?? 0) + e.internals.positionAbsolute.x, i = (t?.y ?? 0) + e.internals.positionAbsolute.y, { width: a, height: s } = t ?? ye(e);
4047
4047
  if (o)
4048
4048
  return { x: r + a / 2, y: i + s / 2 };
4049
4049
  switch (t?.position ?? n) {
4050
- case F.Top:
4050
+ case Z.Top:
4051
4051
  return { x: r + a / 2, y: i };
4052
- case F.Right:
4052
+ case Z.Right:
4053
4053
  return { x: r + a, y: i + s / 2 };
4054
- case F.Bottom:
4054
+ case Z.Bottom:
4055
4055
  return { x: r + a / 2, y: i + s };
4056
- case F.Left:
4056
+ case Z.Left:
4057
4057
  return { x: r, y: i + s / 2 };
4058
4058
  }
4059
4059
  }
@@ -4334,7 +4334,7 @@ function fr(e, t, n) {
4334
4334
  } while (o);
4335
4335
  return !1;
4336
4336
  }
4337
- function Zf(e, t, n, o) {
4337
+ function Ff(e, t, n, o) {
4338
4338
  const r = /* @__PURE__ */ new Map();
4339
4339
  for (const [i, a] of e)
4340
4340
  if ((a.selected || a.id === o) && (!a.parentId || !oa(a, e)) && (a.draggable || t && typeof a.draggable > "u")) {
@@ -4383,7 +4383,7 @@ function zn({ nodeId: e, dragItems: t, nodeLookup: n, dragging: o = !0 }) {
4383
4383
  r
4384
4384
  ];
4385
4385
  }
4386
- function Ff({ dragItems: e, snapGrid: t, x: n, y: o }) {
4386
+ function Zf({ dragItems: e, snapGrid: t, x: n, y: o }) {
4387
4387
  const r = e.values().next().value;
4388
4388
  if (!r)
4389
4389
  return null;
@@ -4396,15 +4396,15 @@ function Ff({ dragItems: e, snapGrid: t, x: n, y: o }) {
4396
4396
  y: a.y - i.y
4397
4397
  };
4398
4398
  }
4399
- function Xf({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, onDragStop: r }) {
4399
+ function Wf({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, onDragStop: r }) {
4400
4400
  let i = { x: null, y: null }, a = 0, s = /* @__PURE__ */ new Map(), l = !1, c = { x: 0, y: 0 }, d = null, f = !1, u = null, h = !1, g = !1, x = null;
4401
4401
  function w({ noDragClassName: k, handleSelector: p, domNode: b, isSelectable: E, nodeId: S, nodeClickDistance: C = 0 }) {
4402
4402
  u = le(b);
4403
4403
  function z({ x: A, y: _ }) {
4404
4404
  const { nodeLookup: y, nodeExtent: M, snapGrid: N, snapToGrid: I, nodeOrigin: j, onNodeDrag: O, onSelectionDrag: T, onError: B, updateNodePositions: $ } = t();
4405
4405
  i = { x: A, y: _ };
4406
- let X = !1;
4407
- const Z = s.size > 1, W = Z && M ? Xn(zt(s)) : null, q = Z && I ? Ff({
4406
+ let W = !1;
4407
+ const F = s.size > 1, X = F && M ? Wn(zt(s)) : null, q = F && I ? Zf({
4408
4408
  dragItems: s,
4409
4409
  snapGrid: N,
4410
4410
  x: A,
@@ -4419,8 +4419,8 @@ function Xf({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, o
4419
4419
  y: Math.round(Y.y + q.y)
4420
4420
  } : At(Y, N));
4421
4421
  let G = null;
4422
- if (Z && M && !L.extent && W) {
4423
- const { positionAbsolute: U } = L.internals, J = U.x - W.x + M[0][0], te = U.x + L.measured.width - W.x2 + M[1][0], ae = U.y - W.y + M[0][1], be = U.y + L.measured.height - W.y2 + M[1][1];
4422
+ if (F && M && !L.extent && X) {
4423
+ const { positionAbsolute: U } = L.internals, J = U.x - X.x + M[0][0], te = U.x + L.measured.width - X.x2 + M[1][0], ae = U.y - X.y + M[0][1], be = U.y + L.measured.height - X.y2 + M[1][1];
4424
4424
  G = [
4425
4425
  [J, ae],
4426
4426
  [te, be]
@@ -4434,9 +4434,9 @@ function Xf({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, o
4434
4434
  nodeOrigin: j,
4435
4435
  onError: B
4436
4436
  });
4437
- X = X || L.position.x !== Q.x || L.position.y !== Q.y, L.position = Q, L.internals.positionAbsolute = V;
4437
+ W = W || L.position.x !== Q.x || L.position.y !== Q.y, L.position = Q, L.internals.positionAbsolute = V;
4438
4438
  }
4439
- if (g = g || X, !!X && ($(s, !0), x && (o || O || !S && T))) {
4439
+ if (g = g || W, !!W && ($(s, !0), x && (o || O || !S && T))) {
4440
4440
  const [K, L] = zn({
4441
4441
  nodeId: S,
4442
4442
  dragItems: s,
@@ -4459,14 +4459,14 @@ function Xf({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, o
4459
4459
  function H(A) {
4460
4460
  const { nodeLookup: _, multiSelectionActive: y, nodesDraggable: M, transform: N, snapGrid: I, snapToGrid: j, selectNodesOnDrag: O, onNodeDragStart: T, onSelectionDragStart: B, unselectNodesAndEdges: $ } = t();
4461
4461
  f = !0, (!O || !E) && !y && S && (_.get(S)?.selected || $()), E && O && S && e?.(S);
4462
- const X = yt(A.sourceEvent, { transform: N, snapGrid: I, snapToGrid: j, containerBounds: d });
4463
- if (i = X, s = Zf(_, M, X, S), s.size > 0 && (n || T || !S && B)) {
4464
- const [Z, W] = zn({
4462
+ const W = yt(A.sourceEvent, { transform: N, snapGrid: I, snapToGrid: j, containerBounds: d });
4463
+ if (i = W, s = Ff(_, M, W, S), s.size > 0 && (n || T || !S && B)) {
4464
+ const [F, X] = zn({
4465
4465
  nodeId: S,
4466
4466
  dragItems: s,
4467
4467
  nodeLookup: _
4468
4468
  });
4469
- n?.(A.sourceEvent, s, Z, W), T?.(A.sourceEvent, Z, W), S || B?.(A.sourceEvent, W);
4469
+ n?.(A.sourceEvent, s, F, X), T?.(A.sourceEvent, F, X), S || B?.(A.sourceEvent, X);
4470
4470
  }
4471
4471
  }
4472
4472
  const R = bi().clickDistance(C).on("start", (A) => {
@@ -4513,7 +4513,7 @@ function Xf({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, o
4513
4513
  destroy: v
4514
4514
  };
4515
4515
  }
4516
- function Wf(e, t, n) {
4516
+ function Xf(e, t, n) {
4517
4517
  const o = [], r = {
4518
4518
  x: e.x - n,
4519
4519
  y: e.y - n,
@@ -4527,7 +4527,7 @@ function Wf(e, t, n) {
4527
4527
  const Kf = 250;
4528
4528
  function qf(e, t, n, o) {
4529
4529
  let r = [], i = 1 / 0;
4530
- const a = Wf(e, n, t + Kf);
4530
+ const a = Xf(e, n, t + Kf);
4531
4531
  for (const s of a) {
4532
4532
  const l = [...s.internals.handleBounds?.source ?? [], ...s.internals.handleBounds?.target ?? []];
4533
4533
  for (const c of l) {
@@ -4561,7 +4561,7 @@ function Gf(e, t) {
4561
4561
  }
4562
4562
  const aa = () => !0;
4563
4563
  function Uf(e, { connectionMode: t, connectionRadius: n, handleId: o, nodeId: r, edgeUpdaterType: i, isTarget: a, domNode: s, nodeLookup: l, lib: c, autoPanOnConnect: d, flowId: f, panBy: u, cancelConnection: h, onConnectStart: g, onConnect: x, onConnectEnd: w, isValidConnection: v = aa, onReconnectEnd: k, updateConnection: p, getTransform: b, getFromHandle: E, autoPanSpeed: S, dragThreshold: C = 1, handleDomNode: z }) {
4564
- const D = Wi(e.target);
4564
+ const D = Xi(e.target);
4565
4565
  let H = 0, R;
4566
4566
  const { x: A, y: _ } = ge(e), y = ia(i, z), M = s?.getBoundingClientRect();
4567
4567
  let N = !1;
@@ -4571,28 +4571,28 @@ function Uf(e, { connectionMode: t, connectionRadius: n, handleId: o, nodeId: r,
4571
4571
  if (!I)
4572
4572
  return;
4573
4573
  let j = ge(e, M), O = !1, T = null, B = !1, $ = null;
4574
- function X() {
4574
+ function W() {
4575
4575
  if (!d || !M)
4576
4576
  return;
4577
4577
  const [G, Q] = uo(j, M, S);
4578
- u({ x: G, y: Q }), H = requestAnimationFrame(X);
4578
+ u({ x: G, y: Q }), H = requestAnimationFrame(W);
4579
4579
  }
4580
- const Z = {
4580
+ const F = {
4581
4581
  ...I,
4582
4582
  nodeId: r,
4583
4583
  type: y,
4584
4584
  position: I.position
4585
- }, W = l.get(r);
4585
+ }, X = l.get(r);
4586
4586
  let q = {
4587
4587
  inProgress: !0,
4588
4588
  isValid: null,
4589
- from: Ge(W, Z, F.Left, !0),
4590
- fromHandle: Z,
4591
- fromPosition: Z.position,
4592
- fromNode: W,
4589
+ from: Ge(X, F, Z.Left, !0),
4590
+ fromHandle: F,
4591
+ fromPosition: F.position,
4592
+ fromNode: X,
4593
4593
  to: j,
4594
4594
  toHandle: null,
4595
- toPosition: er[Z.position],
4595
+ toPosition: er[F.position],
4596
4596
  toNode: null,
4597
4597
  pointer: j
4598
4598
  };
@@ -4607,12 +4607,12 @@ function Uf(e, { connectionMode: t, connectionRadius: n, handleId: o, nodeId: r,
4607
4607
  return;
4608
4608
  K();
4609
4609
  }
4610
- if (!E() || !Z) {
4610
+ if (!E() || !F) {
4611
4611
  Y(G);
4612
4612
  return;
4613
4613
  }
4614
4614
  const Q = b();
4615
- j = ge(G, M), R = qf(Dt(j, Q, !1, [1, 1]), n, l, Z), O || (X(), O = !0);
4615
+ j = ge(G, M), R = qf(Dt(j, Q, !1, [1, 1]), n, l, F), O || (W(), O = !0);
4616
4616
  const V = sa(G, {
4617
4617
  handle: R,
4618
4618
  connectionMode: t,
@@ -4626,13 +4626,13 @@ function Uf(e, { connectionMode: t, connectionRadius: n, handleId: o, nodeId: r,
4626
4626
  nodeLookup: l
4627
4627
  });
4628
4628
  $ = V.handleDomNode, T = V.connection, B = Gf(!!R, V.isValid);
4629
- const U = l.get(r), J = U ? Ge(U, Z, F.Left, !0) : q.from, te = {
4629
+ const U = l.get(r), J = U ? Ge(U, F, Z.Left, !0) : q.from, te = {
4630
4630
  ...q,
4631
4631
  from: J,
4632
4632
  isValid: B,
4633
4633
  to: V.toHandle && B ? st({ x: V.toHandle.x, y: V.toHandle.y }, Q) : j,
4634
4634
  toHandle: V.toHandle,
4635
- toPosition: B && V.toHandle ? V.toHandle.position : er[Z.position],
4635
+ toPosition: B && V.toHandle ? V.toHandle.position : er[F.position],
4636
4636
  toNode: V.toHandle ? l.get(V.toHandle.nodeId) : null,
4637
4637
  pointer: j
4638
4638
  };
@@ -4752,8 +4752,8 @@ function eh({ zoomPanValues: e, noWheelClassName: t, d3Selection: n, d3Zoom: o,
4752
4752
  return;
4753
4753
  }
4754
4754
  const u = d.deltaMode === 1 ? 20 : 1;
4755
- let h = r === Fe.Vertical ? 0 : d.deltaX * u, g = r === Fe.Horizontal ? 0 : d.deltaY * u;
4756
- !Ct() && d.shiftKey && r !== Fe.Vertical && (h = d.deltaY * u, g = 0), o.translateBy(
4755
+ let h = r === Ze.Vertical ? 0 : d.deltaX * u, g = r === Ze.Horizontal ? 0 : d.deltaY * u;
4756
+ !Ct() && d.shiftKey && r !== Ze.Vertical && (h = d.deltaY * u, g = 0), o.translateBy(
4757
4757
  n,
4758
4758
  -(h / f) * i,
4759
4759
  -(g / f) * i,
@@ -4850,12 +4850,12 @@ function ah({ domNode: e, minZoom: t, maxZoom: n, translateExtent: o, viewport:
4850
4850
  u.wheelDelta(ca);
4851
4851
  async function w(A, _) {
4852
4852
  return h ? new Promise((y) => {
4853
- u?.interpolate(_?.interpolate === "linear" ? mt : Xt).transform(Dn(h, _?.duration, _?.ease, () => y(!0)), A);
4853
+ u?.interpolate(_?.interpolate === "linear" ? mt : Wt).transform(Dn(h, _?.duration, _?.ease, () => y(!0)), A);
4854
4854
  }) : !1;
4855
4855
  }
4856
- function v({ noWheelClassName: A, noPanClassName: _, onPaneContextMenu: y, userSelectionActive: M, panOnScroll: N, panOnDrag: I, panOnScrollMode: j, panOnScrollSpeed: O, preventScrolling: T, zoomOnPinch: B, zoomOnScroll: $, zoomOnDoubleClick: X, panActivationKeyPressed: Z = !1, zoomActivationKeyPressed: W, lib: q, onTransformChange: K, connectionInProgress: L, paneClickDistance: Y, selectionOnDrag: G }) {
4856
+ function v({ noWheelClassName: A, noPanClassName: _, onPaneContextMenu: y, userSelectionActive: M, panOnScroll: N, panOnDrag: I, panOnScrollMode: j, panOnScrollSpeed: O, preventScrolling: T, zoomOnPinch: B, zoomOnScroll: $, zoomOnDoubleClick: W, panActivationKeyPressed: F = !1, zoomActivationKeyPressed: X, lib: q, onTransformChange: K, connectionInProgress: L, paneClickDistance: Y, selectionOnDrag: G }) {
4857
4857
  M && !c.isZoomingOrPanning && k();
4858
- const Q = N && !W && !M;
4858
+ const Q = N && !X && !M;
4859
4859
  u.clickDistance(G ? 1 / 0 : !he(Y) || Y < 0 ? 0 : Y);
4860
4860
  const V = Q ? eh({
4861
4861
  zoomPanValues: c,
@@ -4898,12 +4898,12 @@ function ah({ domNode: e, minZoom: t, maxZoom: n, translateExtent: o, viewport:
4898
4898
  });
4899
4899
  u.on("end", te);
4900
4900
  const ae = ih({
4901
- panActivationKeyPressed: Z,
4902
- zoomActivationKeyPressed: W,
4901
+ panActivationKeyPressed: F,
4902
+ zoomActivationKeyPressed: X,
4903
4903
  panOnDrag: I,
4904
4904
  zoomOnScroll: $,
4905
4905
  panOnScroll: N,
4906
- zoomOnDoubleClick: X,
4906
+ zoomOnDoubleClick: W,
4907
4907
  zoomOnPinch: B,
4908
4908
  userSelectionActive: M,
4909
4909
  noPanClassName: _,
@@ -4911,7 +4911,7 @@ function ah({ domNode: e, minZoom: t, maxZoom: n, translateExtent: o, viewport:
4911
4911
  lib: q,
4912
4912
  connectionInProgress: L
4913
4913
  });
4914
- u.filter(ae), X ? h.on("dblclick.zoom", x) : h.on("dblclick.zoom", null);
4914
+ u.filter(ae), W ? h.on("dblclick.zoom", x) : h.on("dblclick.zoom", null);
4915
4915
  }
4916
4916
  function k() {
4917
4917
  u.on("zoom", null);
@@ -4936,12 +4936,12 @@ function ah({ domNode: e, minZoom: t, maxZoom: n, translateExtent: o, viewport:
4936
4936
  }
4937
4937
  async function C(A, _) {
4938
4938
  return h ? new Promise((y) => {
4939
- u?.interpolate(_?.interpolate === "linear" ? mt : Xt).scaleTo(Dn(h, _?.duration, _?.ease, () => y(!0)), A);
4939
+ u?.interpolate(_?.interpolate === "linear" ? mt : Wt).scaleTo(Dn(h, _?.duration, _?.ease, () => y(!0)), A);
4940
4940
  }) : !1;
4941
4941
  }
4942
4942
  async function z(A, _) {
4943
4943
  return h ? new Promise((y) => {
4944
- u?.interpolate(_?.interpolate === "linear" ? mt : Xt).scaleBy(Dn(h, _?.duration, _?.ease, () => y(!0)), A);
4944
+ u?.interpolate(_?.interpolate === "linear" ? mt : Wt).scaleBy(Dn(h, _?.duration, _?.ease, () => y(!0)), A);
4945
4945
  }) : !1;
4946
4946
  }
4947
4947
  function D(A) {
@@ -5126,21 +5126,21 @@ function uh({ domNode: e, nodeId: t, getStoreItems: n, onChange: o, onEnd: r })
5126
5126
  }), I = [];
5127
5127
  if (!p)
5128
5128
  return;
5129
- const { x: j, y: O, width: T, height: B } = v, $ = {}, X = p.origin ?? M, { width: Z, height: W, x: q, y: K } = lh(k, a.controlDirection, N, a.boundaries, a.keepAspectRatio, X, C, z), L = Z !== T, Y = W !== B, G = q !== j && L, Q = K !== O && Y;
5129
+ const { x: j, y: O, width: T, height: B } = v, $ = {}, W = p.origin ?? M, { width: F, height: X, x: q, y: K } = lh(k, a.controlDirection, N, a.boundaries, a.keepAspectRatio, W, C, z), L = F !== T, Y = X !== B, G = q !== j && L, Q = K !== O && Y;
5130
5130
  if (!G && !Q && !L && !Y)
5131
5131
  return;
5132
- if ((G || Q || X[0] === 1 || X[1] === 1) && ($.x = G ? q : v.x, $.y = Q ? K : v.y, v.x = $.x, v.y = $.y, E.length > 0)) {
5132
+ if ((G || Q || W[0] === 1 || W[1] === 1) && ($.x = G ? q : v.x, $.y = Q ? K : v.y, v.x = $.x, v.y = $.y, E.length > 0)) {
5133
5133
  const J = q - j, te = K - O;
5134
5134
  for (const ae of E)
5135
5135
  ae.position = {
5136
- x: ae.position.x - J + X[0] * (Z - T),
5137
- y: ae.position.y - te + X[1] * (W - B)
5136
+ x: ae.position.x - J + W[0] * (F - T),
5137
+ y: ae.position.y - te + W[1] * (X - B)
5138
5138
  }, I.push(ae);
5139
5139
  }
5140
- if ((L || Y) && ($.width = L && (!a.resizeDirection || a.resizeDirection === "horizontal") ? Z : v.width, $.height = Y && (!a.resizeDirection || a.resizeDirection === "vertical") ? W : v.height, v.width = $.width, v.height = $.height), S && p.expandParent) {
5141
- const J = X[0] * ($.width ?? 0);
5140
+ if ((L || Y) && ($.width = L && (!a.resizeDirection || a.resizeDirection === "horizontal") ? F : v.width, $.height = Y && (!a.resizeDirection || a.resizeDirection === "vertical") ? X : v.height, v.width = $.width, v.height = $.height), S && p.expandParent) {
5141
+ const J = W[0] * ($.width ?? 0);
5142
5142
  $.x && $.x < J && (v.x = J, k.x = k.x - ($.x - J));
5143
- const te = X[1] * ($.height ?? 0);
5143
+ const te = W[1] * ($.height ?? 0);
5144
5144
  $.y && $.y < te && (v.y = te, k.y = k.y - ($.y - te));
5145
5145
  }
5146
5146
  const V = sh({
@@ -5637,14 +5637,14 @@ function ma(e, t) {
5637
5637
  }
5638
5638
  const s = { ...i };
5639
5639
  for (const l of a)
5640
- Zh(l, s);
5640
+ Fh(l, s);
5641
5641
  n.push(s);
5642
5642
  }
5643
5643
  return r.length && r.forEach((i) => {
5644
5644
  i.index !== void 0 ? n.splice(i.index, 0, { ...i.item }) : n.push({ ...i.item });
5645
5645
  }), n;
5646
5646
  }
5647
- function Zh(e, t) {
5647
+ function Fh(e, t) {
5648
5648
  switch (e.type) {
5649
5649
  case "select": {
5650
5650
  t.selected = e.selected;
@@ -5665,7 +5665,7 @@ function Zh(e, t) {
5665
5665
  function ya(e, t) {
5666
5666
  return ma(e, t);
5667
5667
  }
5668
- function Fh(e, t) {
5668
+ function Zh(e, t) {
5669
5669
  return ma(e, t);
5670
5670
  }
5671
5671
  function Ve(e, t) {
@@ -5699,11 +5699,11 @@ function Ar(e) {
5699
5699
  type: "remove"
5700
5700
  };
5701
5701
  }
5702
- const Xh = Zi();
5703
- function Wh(e, t, n = {}) {
5702
+ const Wh = Fi();
5703
+ function Xh(e, t, n = {}) {
5704
5704
  return If(e, t, {
5705
5705
  ...n,
5706
- onError: n.onError ?? Xh
5706
+ onError: n.onError ?? Wh
5707
5707
  });
5708
5708
  }
5709
5709
  const Dr = (e) => pf(e), Kh = (e) => $i(e);
@@ -5773,7 +5773,7 @@ function vo() {
5773
5773
  }, s = (f) => {
5774
5774
  n.edgeQueue.push(f);
5775
5775
  }, l = (f) => {
5776
- const { nodeLookup: u, nodeOrigin: h } = t.getState(), g = Dr(f) ? f : u.get(f.id), x = g.parentId ? Xi(g.position, g.measured, g.parentId, u, h) : g.position, w = {
5776
+ const { nodeLookup: u, nodeOrigin: h } = t.getState(), g = Dr(f) ? f : u.get(f.id), x = g.parentId ? Wi(g.position, g.measured, g.parentId, u, h) : g.position, w = {
5777
5777
  ...g,
5778
5778
  position: x,
5779
5779
  width: g.measured?.width ?? g.width,
@@ -5941,7 +5941,7 @@ const wn = {
5941
5941
  lib: e.lib,
5942
5942
  connectionInProgress: e.connection.inProgress
5943
5943
  });
5944
- function og({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, panOnScroll: o = !1, panActivationKeyPressed: r, panOnScrollSpeed: i = 0.5, panOnScrollMode: a = Fe.Free, zoomOnDoubleClick: s = !0, panOnDrag: l = !0, defaultViewport: c, translateExtent: d, minZoom: f, maxZoom: u, zoomActivationKeyCode: h, preventScrolling: g = !0, children: x, noWheelClassName: w, noPanClassName: v, onViewportChange: k, isControlledViewport: p, paneClickDistance: b, selectionOnDrag: E }) {
5944
+ function og({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, panOnScroll: o = !1, panActivationKeyPressed: r, panOnScrollSpeed: i = 0.5, panOnScrollMode: a = Ze.Free, zoomOnDoubleClick: s = !0, panOnDrag: l = !0, defaultViewport: c, translateExtent: d, minZoom: f, maxZoom: u, zoomActivationKeyCode: h, preventScrolling: g = !0, children: x, noWheelClassName: w, noPanClassName: v, onViewportChange: k, isControlledViewport: p, paneClickDistance: b, selectionOnDrag: E }) {
5945
5945
  const S = ne(), C = P.useRef(null), { userSelectionActive: z, lib: D, connectionInProgress: H } = ee(ng, re), R = Nt(h), A = P.useRef();
5946
5946
  tg(C);
5947
5947
  const _ = P.useCallback((y) => {
@@ -6129,11 +6129,11 @@ function sg({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = kt.Full
6129
6129
  B(Q, V), w.current = requestAnimationFrame($);
6130
6130
  });
6131
6131
  }
6132
- const X = () => {
6132
+ const W = () => {
6133
6133
  cancelAnimationFrame(w.current), w.current = 0, M.current = !1;
6134
6134
  };
6135
- P.useEffect(() => () => X(), []);
6136
- const Z = (L) => {
6135
+ P.useEffect(() => () => W(), []);
6136
+ const F = (L) => {
6137
6137
  const { userSelectionRect: Y, transform: G, resetSelectedElements: Q } = v.getState();
6138
6138
  if (!D.current || !Y)
6139
6139
  return;
@@ -6147,7 +6147,7 @@ function sg({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = kt.Full
6147
6147
  Q(), s?.(L);
6148
6148
  }
6149
6149
  _.current = !0, M.current || ($(), M.current = !0), B(V, U);
6150
- }, W = (L) => {
6150
+ }, X = (L) => {
6151
6151
  if (!C) {
6152
6152
  L.target === z.current && v.getState().connection.inProgress && (A.current = !0);
6153
6153
  return;
@@ -6157,11 +6157,11 @@ function sg({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = kt.Full
6157
6157
  userSelectionRect: null
6158
6158
  }), _.current && (l?.(L), v.setState({
6159
6159
  nodesSelectionActive: H.current.size > 0
6160
- })), X());
6160
+ })), W());
6161
6161
  }, q = (L) => {
6162
- L.target?.releasePointerCapture?.(L.pointerId), X();
6162
+ L.target?.releasePointerCapture?.(L.pointerId), W();
6163
6163
  }, K = o === !0 || Array.isArray(o) && o.includes(0);
6164
- return m.jsxs("div", { className: ie(["react-flow__pane", { draggable: K, dragging: b, selection: e }]), onClick: C ? void 0 : Rn(N, z), onContextMenu: Rn(I, z), onWheel: Rn(j, z), onPointerEnter: C ? void 0 : u, onPointerMove: C ? Z : h, onPointerUp: W, onPointerCancel: C ? q : void 0, onPointerDownCapture: C ? T : void 0, onClickCapture: C ? O : void 0, onPointerLeave: g, ref: z, style: wn, children: [x, m.jsx(ig, {})] });
6164
+ return m.jsxs("div", { className: ie(["react-flow__pane", { draggable: K, dragging: b, selection: e }]), onClick: C ? void 0 : Rn(N, z), onContextMenu: Rn(I, z), onWheel: Rn(j, z), onPointerEnter: C ? void 0 : u, onPointerMove: C ? F : h, onPointerUp: X, onPointerCancel: C ? q : void 0, onPointerDownCapture: C ? T : void 0, onClickCapture: C ? O : void 0, onPointerLeave: g, ref: z, style: wn, children: [x, m.jsx(ig, {})] });
6165
6165
  }
6166
6166
  function Un({ id: e, store: t, unselect: n = !1, nodeRef: o }) {
6167
6167
  const { addSelectedNodes: r, unselectNodesAndEdges: i, multiSelectionActive: a, nodeLookup: s, onError: l } = t.getState(), c = s.get(e);
@@ -6175,7 +6175,7 @@ function xa({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
6175
6175
  const s = ne(), [l, c] = P.useState(!1), d = P.useRef();
6176
6176
  return P.useEffect(() => {
6177
6177
  if (!t)
6178
- return d.current = Xf({
6178
+ return d.current = Wf({
6179
6179
  getStoreItems: () => s.getState(),
6180
6180
  onNodeMouseDown: (f) => {
6181
6181
  Un({
@@ -6270,7 +6270,7 @@ const hg = {
6270
6270
  valid: d && c
6271
6271
  };
6272
6272
  };
6273
- function pg({ type: e = "source", position: t = F.Top, isValidConnection: n, isConnectable: o = !0, isConnectableStart: r = !0, isConnectableEnd: i = !0, id: a, onConnect: s, children: l, className: c, onMouseDown: d, onTouchStart: f, ...u }, h) {
6273
+ function pg({ type: e = "source", position: t = Z.Top, isValidConnection: n, isConnectable: o = !0, isConnectableStart: r = !0, isConnectableEnd: i = !0, id: a, onConnect: s, children: l, className: c, onMouseDown: d, onTouchStart: f, ...u }, h) {
6274
6274
  const g = a || null, x = e === "target", w = ne(), v = ka(), { connectOnClick: k, noPanClassName: p, rfId: b } = fg(), { connectingFrom: E, connectingTo: S, clickConnecting: C, isPossibleEndHandle: z, connectionInProcess: D, clickConnectionInProcess: H, valid: R } = ee(gg(v, g, e), re);
6275
6275
  v || w.getState().onError?.("010", pe.error010());
6276
6276
  const A = (M) => {
@@ -6280,7 +6280,7 @@ function pg({ type: e = "source", position: t = F.Top, isValidConnection: n, isC
6280
6280
  };
6281
6281
  if (j) {
6282
6282
  const { edges: T, setEdges: B, onError: $ } = w.getState();
6283
- B(Wh(O, T, { onError: $ }));
6283
+ B(Xh(O, T, { onError: $ }));
6284
6284
  }
6285
6285
  I?.(O), s?.(O);
6286
6286
  }, _ = (M) => {
@@ -6316,14 +6316,14 @@ function pg({ type: e = "source", position: t = F.Top, isValidConnection: n, isC
6316
6316
  }
6317
6317
  N ? d?.(M) : f?.(M);
6318
6318
  }, y = (M) => {
6319
- const { onClickConnectStart: N, onClickConnectEnd: I, connectionClickStartHandle: j, connectionMode: O, isValidConnection: T, lib: B, rfId: $, nodeLookup: X, connection: Z } = w.getState();
6319
+ const { onClickConnectStart: N, onClickConnectEnd: I, connectionClickStartHandle: j, connectionMode: O, isValidConnection: T, lib: B, rfId: $, nodeLookup: W, connection: F } = w.getState();
6320
6320
  if (!v || !j && !r)
6321
6321
  return;
6322
6322
  if (!j) {
6323
6323
  N?.(M.nativeEvent, { nodeId: v, handleId: g, handleType: e }), w.setState({ connectionClickStartHandle: { nodeId: v, type: e, id: g } });
6324
6324
  return;
6325
6325
  }
6326
- const W = Wi(M.target), q = n || T, { connection: K, isValid: L } = Gn.isValid(M.nativeEvent, {
6326
+ const X = Xi(M.target), q = n || T, { connection: K, isValid: L } = Gn.isValid(M.nativeEvent, {
6327
6327
  handle: {
6328
6328
  nodeId: v,
6329
6329
  id: g,
@@ -6335,12 +6335,12 @@ function pg({ type: e = "source", position: t = F.Top, isValidConnection: n, isC
6335
6335
  fromType: j.type,
6336
6336
  isValidConnection: q,
6337
6337
  flowId: $,
6338
- doc: W,
6338
+ doc: X,
6339
6339
  lib: B,
6340
- nodeLookup: X
6340
+ nodeLookup: W
6341
6341
  });
6342
6342
  L && K && A(K);
6343
- const Y = structuredClone(Z);
6343
+ const Y = structuredClone(F);
6344
6344
  delete Y.inProgress, Y.toPosition = Y.toHandle ? Y.toHandle.position : null, I?.(M, Y), w.setState({ connectionClickStartHandle: null });
6345
6345
  };
6346
6346
  return m.jsx("div", { "data-handleid": g, "data-nodeid": v, "data-handlepos": t, "data-id": `${b}-${v}-${g}-${e}`, className: ie([
@@ -6368,16 +6368,16 @@ function pg({ type: e = "source", position: t = F.Top, isValidConnection: n, isC
6368
6368
  ]), onMouseDown: _, onTouchStart: _, onClick: k ? y : void 0, ref: h, ...u, children: l });
6369
6369
  }
6370
6370
  const ct = P.memo(ba(pg));
6371
- function mg({ data: e, isConnectable: t, sourcePosition: n = F.Bottom }) {
6371
+ function mg({ data: e, isConnectable: t, sourcePosition: n = Z.Bottom }) {
6372
6372
  return m.jsxs(m.Fragment, { children: [e?.label, m.jsx(ct, { type: "source", position: n, isConnectable: t })] });
6373
6373
  }
6374
- function yg({ data: e, isConnectable: t, targetPosition: n = F.Top, sourcePosition: o = F.Bottom }) {
6374
+ function yg({ data: e, isConnectable: t, targetPosition: n = Z.Top, sourcePosition: o = Z.Bottom }) {
6375
6375
  return m.jsxs(m.Fragment, { children: [m.jsx(ct, { type: "target", position: n, isConnectable: t }), e?.label, m.jsx(ct, { type: "source", position: o, isConnectable: t })] });
6376
6376
  }
6377
6377
  function bg() {
6378
6378
  return null;
6379
6379
  }
6380
- function vg({ data: e, isConnectable: t, targetPosition: n = F.Top }) {
6380
+ function vg({ data: e, isConnectable: t, targetPosition: n = Z.Top }) {
6381
6381
  return m.jsxs(m.Fragment, { children: [m.jsx(ct, { type: "target", position: n, isConnectable: t }), e?.label] });
6382
6382
  }
6383
6383
  const sn = {
@@ -6442,8 +6442,8 @@ function Sg({ onSelectionContextMenu: e, noPanClassName: t, disableKeyboardA11y:
6442
6442
  }
6443
6443
  const Lr = typeof window < "u" ? window : void 0, kg = (e) => ({ nodesSelectionActive: e.nodesSelectionActive, userSelectionActive: e.userSelectionActive });
6444
6444
  function Ca({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: o, onPaneMouseLeave: r, onPaneContextMenu: i, onPaneScroll: a, paneClickDistance: s, deleteKeyCode: l, selectionKeyCode: c, selectionOnDrag: d, selectionMode: f, onSelectionStart: u, onSelectionEnd: h, multiSelectionKeyCode: g, panActivationKeyCode: x, zoomActivationKeyCode: w, elementsSelectable: v, zoomOnScroll: k, zoomOnPinch: p, panOnScroll: b, panOnScrollSpeed: E, panOnScrollMode: S, zoomOnDoubleClick: C, panOnDrag: z, autoPanOnSelection: D, defaultViewport: H, translateExtent: R, minZoom: A, maxZoom: _, preventScrolling: y, onSelectionContextMenu: M, noWheelClassName: N, noPanClassName: I, disableKeyboardA11y: j, onViewportChange: O, isControlledViewport: T }) {
6445
- const { nodesSelectionActive: B, userSelectionActive: $ } = ee(kg, re), X = Nt(c, { target: Lr }), Z = Nt(x, { target: Lr }), W = Z || z, q = Z || b, K = d && W !== !0, L = X || $ || K;
6446
- return eg({ deleteKeyCode: l, multiSelectionKeyCode: g }), m.jsx(og, { onPaneContextMenu: i, elementsSelectable: v, zoomOnScroll: k, zoomOnPinch: p, panOnScroll: q, panActivationKeyPressed: Z, panOnScrollSpeed: E, panOnScrollMode: S, zoomOnDoubleClick: C, panOnDrag: !X && W, defaultViewport: H, translateExtent: R, minZoom: A, maxZoom: _, zoomActivationKeyCode: w, preventScrolling: y, noWheelClassName: N, noPanClassName: I, onViewportChange: O, isControlledViewport: T, paneClickDistance: s, selectionOnDrag: K, children: m.jsxs(sg, { onSelectionStart: u, onSelectionEnd: h, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: o, onPaneMouseLeave: r, onPaneContextMenu: i, onPaneScroll: a, panOnDrag: W, autoPanOnSelection: D, isSelecting: !!L, selectionMode: f, selectionKeyPressed: X, paneClickDistance: s, selectionOnDrag: K, children: [e, B && m.jsx(Sg, { onSelectionContextMenu: M, noPanClassName: I, disableKeyboardA11y: j })] }) });
6445
+ const { nodesSelectionActive: B, userSelectionActive: $ } = ee(kg, re), W = Nt(c, { target: Lr }), F = Nt(x, { target: Lr }), X = F || z, q = F || b, K = d && X !== !0, L = W || $ || K;
6446
+ return eg({ deleteKeyCode: l, multiSelectionKeyCode: g }), m.jsx(og, { onPaneContextMenu: i, elementsSelectable: v, zoomOnScroll: k, zoomOnPinch: p, panOnScroll: q, panActivationKeyPressed: F, panOnScrollSpeed: E, panOnScrollMode: S, zoomOnDoubleClick: C, panOnDrag: !W && X, defaultViewport: H, translateExtent: R, minZoom: A, maxZoom: _, zoomActivationKeyCode: w, preventScrolling: y, noWheelClassName: N, noPanClassName: I, onViewportChange: O, isControlledViewport: T, paneClickDistance: s, selectionOnDrag: K, children: m.jsxs(sg, { onSelectionStart: u, onSelectionEnd: h, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: o, onPaneMouseLeave: r, onPaneContextMenu: i, onPaneScroll: a, panOnDrag: X, autoPanOnSelection: D, isSelecting: !!L, selectionMode: f, selectionKeyPressed: W, paneClickDistance: s, selectionOnDrag: K, children: [e, B && m.jsx(Sg, { onSelectionContextMenu: M, noPanClassName: I, disableKeyboardA11y: j })] }) });
6447
6447
  }
6448
6448
  Ca.displayName = "FlowRenderer";
6449
6449
  const _g = P.memo(Ca), Cg = (e) => (t) => e ? co(t.nodeLookup, { x: 0, y: 0, width: t.width, height: t.height }, t.transform, !0).map((n) => n.id) : Array.from(t.nodeLookup.keys());
@@ -6491,7 +6491,7 @@ function Ig({ id: e, onClick: t, onMouseEnter: n, onMouseMove: o, onMouseLeave:
6491
6491
  }, re);
6492
6492
  let S = p.type || "default", C = w?.[S] || Rr[S];
6493
6493
  C === void 0 && (k?.("003", pe.error003(S)), S = "default", C = w?.default || Rr.default);
6494
- const z = !!(p.draggable || s && typeof p.draggable > "u"), D = !!(p.selectable || l && typeof p.selectable > "u"), H = !!(p.connectable || c && typeof p.connectable > "u"), R = !!(p.focusable || d && typeof p.focusable > "u"), A = ne(), _ = Fi(p), y = Pg({ node: p, nodeType: S, hasDimensions: _, resizeObserver: f }), M = xa({
6494
+ const z = !!(p.draggable || s && typeof p.draggable > "u"), D = !!(p.selectable || l && typeof p.selectable > "u"), H = !!(p.connectable || c && typeof p.connectable > "u"), R = !!(p.focusable || d && typeof p.focusable > "u"), A = ne(), _ = Zi(p), y = Pg({ node: p, nodeType: S, hasDimensions: _, resizeObserver: f }), M = xa({
6495
6495
  nodeRef: y,
6496
6496
  disabled: p.hidden || !z,
6497
6497
  noDragClassName: u,
@@ -6502,7 +6502,7 @@ function Ig({ id: e, onClick: t, onMouseEnter: n, onMouseMove: o, onMouseLeave:
6502
6502
  }), N = Sa();
6503
6503
  if (p.hidden)
6504
6504
  return null;
6505
- const I = ye(p), j = wg(p), O = D || z || t || n || o || r, T = n ? (L) => n(L, { ...b.userNode }) : void 0, B = o ? (L) => o(L, { ...b.userNode }) : void 0, $ = r ? (L) => r(L, { ...b.userNode }) : void 0, X = i ? (L) => i(L, { ...b.userNode }) : void 0, Z = a ? (L) => a(L, { ...b.userNode }) : void 0, W = (L) => {
6505
+ const I = ye(p), j = wg(p), O = D || z || t || n || o || r, T = n ? (L) => n(L, { ...b.userNode }) : void 0, B = o ? (L) => o(L, { ...b.userNode }) : void 0, $ = r ? (L) => r(L, { ...b.userNode }) : void 0, W = i ? (L) => i(L, { ...b.userNode }) : void 0, F = a ? (L) => a(L, { ...b.userNode }) : void 0, X = (L) => {
6506
6506
  const { selectNodesOnDrag: Y, nodeDragThreshold: G } = A.getState();
6507
6507
  D && (!Y || !z || G > 0) && Un({
6508
6508
  id: e,
@@ -6564,7 +6564,7 @@ function Ig({ id: e, onClick: t, onMouseEnter: n, onMouseMove: o, onMouseLeave:
6564
6564
  visibility: _ ? "visible" : "hidden",
6565
6565
  ...p.style,
6566
6566
  ...j
6567
- }, "data-id": e, "data-testid": `rf__node-${e}`, onMouseEnter: T, onMouseMove: B, onMouseLeave: $, onContextMenu: X, onClick: W, onDoubleClick: Z, onKeyDown: R ? q : void 0, tabIndex: R ? 0 : void 0, onFocus: R ? K : void 0, role: p.ariaRole ?? (R ? "group" : void 0), "aria-roledescription": "node", "aria-describedby": g ? void 0 : `${ha}-${x}`, "aria-label": p.ariaLabel, ...p.domAttributes, children: m.jsx(cg, { value: e, children: m.jsx(C, { id: e, data: p.data, type: S, positionAbsoluteX: b.positionAbsolute.x, positionAbsoluteY: b.positionAbsolute.y, selected: p.selected ?? !1, selectable: D, draggable: z, deletable: p.deletable ?? !0, isConnectable: H, sourcePosition: p.sourcePosition, targetPosition: p.targetPosition, dragging: M, dragHandle: p.dragHandle, zIndex: b.z, parentId: p.parentId, ...I }) }) });
6567
+ }, "data-id": e, "data-testid": `rf__node-${e}`, onMouseEnter: T, onMouseMove: B, onMouseLeave: $, onContextMenu: W, onClick: X, onDoubleClick: F, onKeyDown: R ? q : void 0, tabIndex: R ? 0 : void 0, onFocus: R ? K : void 0, role: p.ariaRole ?? (R ? "group" : void 0), "aria-roledescription": "node", "aria-describedby": g ? void 0 : `${ha}-${x}`, "aria-label": p.ariaLabel, ...p.domAttributes, children: m.jsx(cg, { value: e, children: m.jsx(C, { id: e, data: p.data, type: S, positionAbsoluteX: b.positionAbsolute.x, positionAbsoluteY: b.positionAbsolute.y, selected: p.selected ?? !1, selectable: D, draggable: z, deletable: p.deletable ?? !0, isConnectable: H, sourcePosition: p.sourcePosition, targetPosition: p.targetPosition, dragging: M, dragHandle: p.dragHandle, zIndex: b.z, parentId: p.parentId, ...I }) }) });
6568
6568
  }
6569
6569
  var zg = P.memo(Ig);
6570
6570
  const Ag = (e) => ({
@@ -6679,9 +6679,9 @@ function xn({ path: e, labelX: t, labelY: n, label: o, labelStyle: r, labelShowB
6679
6679
  return m.jsxs(m.Fragment, { children: [m.jsx("path", { ...d, d: e, fill: "none", className: ie(["react-flow__edge-path", d.className]) }), c ? m.jsx("path", { d: e, fill: "none", strokeOpacity: 0, strokeWidth: c, className: "react-flow__edge-interaction" }) : null, o && he(t) && he(n) ? m.jsx(Bg, { x: t, y: n, label: o, labelStyle: r, labelShowBg: i, labelBgStyle: a, labelBgPadding: s, labelBgBorderRadius: l }) : null] });
6680
6680
  }
6681
6681
  function $r({ pos: e, x1: t, y1: n, x2: o, y2: r }) {
6682
- return e === F.Left || e === F.Right ? [0.5 * (t + o), n] : [t, 0.5 * (n + r)];
6682
+ return e === Z.Left || e === Z.Right ? [0.5 * (t + o), n] : [t, 0.5 * (n + r)];
6683
6683
  }
6684
- function Pa({ sourceX: e, sourceY: t, sourcePosition: n = F.Bottom, targetX: o, targetY: r, targetPosition: i = F.Top }) {
6684
+ function Pa({ sourceX: e, sourceY: t, sourcePosition: n = Z.Bottom, targetX: o, targetY: r, targetPosition: i = Z.Top }) {
6685
6685
  const [a, s] = $r({
6686
6686
  pos: n,
6687
6687
  x1: e,
@@ -6729,8 +6729,8 @@ const Hg = Ia({ isInternal: !1 }), za = Ia({ isInternal: !0 });
6729
6729
  Hg.displayName = "SimpleBezierEdge";
6730
6730
  za.displayName = "SimpleBezierEdgeInternal";
6731
6731
  function Aa(e) {
6732
- return P.memo(({ id: t, sourceX: n, sourceY: o, targetX: r, targetY: i, label: a, labelStyle: s, labelShowBg: l, labelBgStyle: c, labelBgPadding: d, labelBgBorderRadius: f, style: u, sourcePosition: h = F.Bottom, targetPosition: g = F.Top, markerEnd: x, markerStart: w, pathOptions: v, interactionWidth: k }) => {
6733
- const [p, b, E] = Wn({
6732
+ return P.memo(({ id: t, sourceX: n, sourceY: o, targetX: r, targetY: i, label: a, labelStyle: s, labelShowBg: l, labelBgStyle: c, labelBgPadding: d, labelBgBorderRadius: f, style: u, sourcePosition: h = Z.Bottom, targetPosition: g = Z.Top, markerEnd: x, markerStart: w, pathOptions: v, interactionWidth: k }) => {
6733
+ const [p, b, E] = Xn({
6734
6734
  sourceX: n,
6735
6735
  sourceY: o,
6736
6736
  sourcePosition: h,
@@ -6766,7 +6766,7 @@ const Yg = La({ isInternal: !1 }), Ta = La({ isInternal: !0 });
6766
6766
  Yg.displayName = "StraightEdge";
6767
6767
  Ta.displayName = "StraightEdgeInternal";
6768
6768
  function $a(e) {
6769
- return P.memo(({ id: t, sourceX: n, sourceY: o, targetX: r, targetY: i, sourcePosition: a = F.Bottom, targetPosition: s = F.Top, label: l, labelStyle: c, labelShowBg: d, labelBgStyle: f, labelBgPadding: u, labelBgBorderRadius: h, style: g, markerEnd: x, markerStart: w, pathOptions: v, interactionWidth: k }) => {
6769
+ return P.memo(({ id: t, sourceX: n, sourceY: o, targetX: r, targetY: i, sourcePosition: a = Z.Bottom, targetPosition: s = Z.Top, label: l, labelStyle: c, labelShowBg: d, labelBgStyle: f, labelBgPadding: u, labelBgBorderRadius: h, style: g, markerEnd: x, markerStart: w, pathOptions: v, interactionWidth: k }) => {
6770
6770
  const [p, b, E] = Ui({
6771
6771
  sourceX: n,
6772
6772
  sourceY: o,
@@ -6779,8 +6779,8 @@ function $a(e) {
6779
6779
  return m.jsx(xn, { id: S, path: p, labelX: b, labelY: E, label: l, labelStyle: c, labelShowBg: d, labelBgStyle: f, labelBgPadding: u, labelBgBorderRadius: h, style: g, markerEnd: x, markerStart: w, interactionWidth: k });
6780
6780
  });
6781
6781
  }
6782
- const Zg = $a({ isInternal: !1 }), Ba = $a({ isInternal: !0 });
6783
- Zg.displayName = "BezierEdge";
6782
+ const Fg = $a({ isInternal: !1 }), Ba = $a({ isInternal: !0 });
6783
+ Fg.displayName = "BezierEdge";
6784
6784
  Ba.displayName = "BezierEdgeInternal";
6785
6785
  const Br = {
6786
6786
  default: Ba,
@@ -6796,11 +6796,11 @@ const Br = {
6796
6796
  sourcePosition: null,
6797
6797
  targetPosition: null,
6798
6798
  zIndex: void 0
6799
- }, Fg = (e, t, n) => n === F.Left ? e - t : n === F.Right ? e + t : e, Xg = (e, t, n) => n === F.Top ? e - t : n === F.Bottom ? e + t : e, Vr = "react-flow__edgeupdater";
6799
+ }, Zg = (e, t, n) => n === Z.Left ? e - t : n === Z.Right ? e + t : e, Wg = (e, t, n) => n === Z.Top ? e - t : n === Z.Bottom ? e + t : e, Vr = "react-flow__edgeupdater";
6800
6800
  function Yr({ position: e, centerX: t, centerY: n, radius: o = 10, onMouseDown: r, onMouseEnter: i, onMouseOut: a, type: s }) {
6801
- return m.jsx("circle", { onMouseDown: r, onMouseEnter: i, onMouseOut: a, className: ie([Vr, `${Vr}-${s}`]), cx: Fg(t, o, e), cy: Xg(n, o, e), r: o, stroke: "transparent", fill: "transparent" });
6801
+ return m.jsx("circle", { onMouseDown: r, onMouseEnter: i, onMouseOut: a, className: ie([Vr, `${Vr}-${s}`]), cx: Zg(t, o, e), cy: Wg(n, o, e), r: o, stroke: "transparent", fill: "transparent" });
6802
6802
  }
6803
- function Wg({ isReconnectable: e, reconnectRadius: t, edge: n, sourceX: o, sourceY: r, targetX: i, targetY: a, sourcePosition: s, targetPosition: l, onReconnect: c, onReconnectStart: d, onReconnectEnd: f, setReconnecting: u, setUpdateHover: h }) {
6803
+ function Xg({ isReconnectable: e, reconnectRadius: t, edge: n, sourceX: o, sourceY: r, targetX: i, targetY: a, sourcePosition: s, targetPosition: l, onReconnect: c, onReconnectStart: d, onReconnectEnd: f, setReconnecting: u, setUpdateHover: h }) {
6804
6804
  const g = ne(), x = (b, E) => {
6805
6805
  if (b.button !== 0)
6806
6806
  return;
@@ -6867,10 +6867,10 @@ function Kg({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
6867
6867
  ...te || Hr,
6868
6868
  zIndex: ae
6869
6869
  };
6870
- }, [p.source, p.target, p.sourceHandle, p.targetHandle, p.selected, p.zIndex, v]), re), X = P.useMemo(() => p.markerStart ? `url('#${Kn(p.markerStart, g)}')` : void 0, [p.markerStart, g]), Z = P.useMemo(() => p.markerEnd ? `url('#${Kn(p.markerEnd, g)}')` : void 0, [p.markerEnd, g]);
6870
+ }, [p.source, p.target, p.sourceHandle, p.targetHandle, p.selected, p.zIndex, v]), re), W = P.useMemo(() => p.markerStart ? `url('#${Kn(p.markerStart, g)}')` : void 0, [p.markerStart, g]), F = P.useMemo(() => p.markerEnd ? `url('#${Kn(p.markerEnd, g)}')` : void 0, [p.markerEnd, g]);
6871
6871
  if (p.hidden || I === null || j === null || O === null || T === null)
6872
6872
  return null;
6873
- const W = (V) => {
6873
+ const X = (V) => {
6874
6874
  const { addSelectedEdges: U, unselectNodesAndEdges: J, multiSelectionActive: te } = M.getState();
6875
6875
  D && (M.setState({ nodesSelectionActive: !1 }), p.selected && te ? (J({ nodes: [], edges: [p] }), H.current?.blur()) : U([e])), r && r(V, p);
6876
6876
  }, q = i ? (V) => {
@@ -6901,7 +6901,7 @@ function Kg({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
6901
6901
  updating: R,
6902
6902
  selectable: D
6903
6903
  }
6904
- ]), onClick: W, onDoubleClick: q, onContextMenu: K, onMouseEnter: L, onMouseMove: Y, onMouseLeave: G, onKeyDown: C ? Q : void 0, tabIndex: C ? 0 : void 0, role: p.ariaRole ?? (C ? "group" : "img"), "aria-roledescription": "edge", "data-id": e, "data-testid": `rf__edge-${e}`, "aria-label": p.ariaLabel === null ? void 0 : p.ariaLabel || `Edge from ${p.source} to ${p.target}`, "aria-describedby": C ? `${ga}-${g}` : void 0, ref: H, ...p.domAttributes, children: [!_ && m.jsx(S, { id: e, source: p.source, target: p.target, type: p.type, selected: p.selected, animated: p.animated, selectable: D, deletable: p.deletable ?? !0, label: p.label, labelStyle: p.labelStyle, labelShowBg: p.labelShowBg, labelBgStyle: p.labelBgStyle, labelBgPadding: p.labelBgPadding, labelBgBorderRadius: p.labelBgBorderRadius, sourceX: I, sourceY: j, targetX: O, targetY: T, sourcePosition: B, targetPosition: $, data: p.data, style: p.style, sourceHandleId: p.sourceHandle, targetHandleId: p.targetHandle, markerStart: X, markerEnd: Z, pathOptions: "pathOptions" in p ? p.pathOptions : void 0, interactionWidth: p.interactionWidth }), z && m.jsx(Wg, { edge: p, isReconnectable: z, reconnectRadius: d, onReconnect: f, onReconnectStart: u, onReconnectEnd: h, sourceX: I, sourceY: j, targetX: O, targetY: T, sourcePosition: B, targetPosition: $, setUpdateHover: A, setReconnecting: y })] }) });
6904
+ ]), onClick: X, onDoubleClick: q, onContextMenu: K, onMouseEnter: L, onMouseMove: Y, onMouseLeave: G, onKeyDown: C ? Q : void 0, tabIndex: C ? 0 : void 0, role: p.ariaRole ?? (C ? "group" : "img"), "aria-roledescription": "edge", "data-id": e, "data-testid": `rf__edge-${e}`, "aria-label": p.ariaLabel === null ? void 0 : p.ariaLabel || `Edge from ${p.source} to ${p.target}`, "aria-describedby": C ? `${ga}-${g}` : void 0, ref: H, ...p.domAttributes, children: [!_ && m.jsx(S, { id: e, source: p.source, target: p.target, type: p.type, selected: p.selected, animated: p.animated, selectable: D, deletable: p.deletable ?? !0, label: p.label, labelStyle: p.labelStyle, labelShowBg: p.labelShowBg, labelBgStyle: p.labelBgStyle, labelBgPadding: p.labelBgPadding, labelBgBorderRadius: p.labelBgBorderRadius, sourceX: I, sourceY: j, targetX: O, targetY: T, sourcePosition: B, targetPosition: $, data: p.data, style: p.style, sourceHandleId: p.sourceHandle, targetHandleId: p.targetHandle, markerStart: W, markerEnd: F, pathOptions: "pathOptions" in p ? p.pathOptions : void 0, interactionWidth: p.interactionWidth }), z && m.jsx(Xg, { edge: p, isReconnectable: z, reconnectRadius: d, onReconnect: f, onReconnectStart: u, onReconnectEnd: h, sourceX: I, sourceY: j, targetX: O, targetY: T, sourcePosition: B, targetPosition: $, setUpdateHover: A, setReconnecting: y })] }) });
6905
6905
  }
6906
6906
  var qg = P.memo(Kg);
6907
6907
  const Gg = (e) => ({
@@ -6916,17 +6916,17 @@ function Ha({ defaultMarkerColor: e, onlyRenderVisibleElements: t, rfId: n, edge
6916
6916
  return m.jsxs("div", { className: "react-flow__edges", children: [m.jsx($g, { defaultColor: e, rfId: n }), b.map((E) => m.jsx(qg, { id: E, edgesFocusable: w, edgesReconnectable: v, elementsSelectable: k, noPanClassName: r, onReconnect: i, onContextMenu: a, onMouseEnter: s, onMouseMove: l, onMouseLeave: c, onClick: d, reconnectRadius: f, onDoubleClick: u, onReconnectStart: h, onReconnectEnd: g, rfId: n, onError: p, edgeTypes: o, disableKeyboardA11y: x }, E))] });
6917
6917
  }
6918
6918
  Ha.displayName = "EdgeRenderer";
6919
- const Ug = P.memo(Ha), Zr = (e) => `translate(${e[0]}px,${e[1]}px) scale(${e[2]})`;
6919
+ const Ug = P.memo(Ha), Fr = (e) => `translate(${e[0]}px,${e[1]}px) scale(${e[2]})`;
6920
6920
  function Qg({ children: e }) {
6921
6921
  const t = ne(), n = P.useRef(null), [o] = P.useState(() => t.getState().transform);
6922
6922
  return va(() => {
6923
6923
  let r = null;
6924
6924
  const i = () => {
6925
6925
  const a = t.getState().transform;
6926
- r && a[0] === r[0] && a[1] === r[1] && a[2] === r[2] || (r = a, n.current && (n.current.style.transform = Zr(a)));
6926
+ r && a[0] === r[0] && a[1] === r[1] && a[2] === r[2] || (r = a, n.current && (n.current.style.transform = Fr(a)));
6927
6927
  };
6928
6928
  return i(), t.subscribe(i);
6929
- }, [t]), m.jsx("div", { ref: n, className: "react-flow__viewport xyflow__viewport react-flow__container", style: { transform: Zr(o) }, children: e });
6929
+ }, [t]), m.jsx("div", { ref: n, className: "react-flow__viewport xyflow__viewport react-flow__container", style: { transform: Fr(o) }, children: e });
6930
6930
  }
6931
6931
  function Jg(e) {
6932
6932
  const t = vo(), n = P.useRef(!1);
@@ -6985,13 +6985,13 @@ const Va = ({ style: e, type: t = Re.Bezier, CustomComponent: n, isValid: o }) =
6985
6985
  [g] = Pa(x);
6986
6986
  break;
6987
6987
  case Re.Step:
6988
- [g] = Wn({
6988
+ [g] = Xn({
6989
6989
  ...x,
6990
6990
  borderRadius: 0
6991
6991
  });
6992
6992
  break;
6993
6993
  case Re.SmoothStep:
6994
- [g] = Wn(x);
6994
+ [g] = Xn(x);
6995
6995
  break;
6996
6996
  default:
6997
6997
  [g] = Ji(x);
@@ -7000,7 +7000,7 @@ const Va = ({ style: e, type: t = Re.Bezier, CustomComponent: n, isValid: o }) =
7000
7000
  };
7001
7001
  Va.displayName = "ConnectionLine";
7002
7002
  const sp = {};
7003
- function Fr(e = sp) {
7003
+ function Zr(e = sp) {
7004
7004
  P.useRef(e), ne(), P.useEffect(() => {
7005
7005
  }, [e]);
7006
7006
  }
@@ -7008,11 +7008,11 @@ function lp() {
7008
7008
  ne(), P.useRef(!1), P.useEffect(() => {
7009
7009
  }, []);
7010
7010
  }
7011
- function Ya({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: o, onEdgeClick: r, onNodeDoubleClick: i, onEdgeDoubleClick: a, onNodeMouseEnter: s, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, onSelectionContextMenu: f, onSelectionStart: u, onSelectionEnd: h, connectionLineType: g, connectionLineStyle: x, connectionLineComponent: w, connectionLineContainerStyle: v, selectionKeyCode: k, selectionOnDrag: p, selectionMode: b, multiSelectionKeyCode: E, panActivationKeyCode: S, zoomActivationKeyCode: C, deleteKeyCode: z, onlyRenderVisibleElements: D, elementsSelectable: H, defaultViewport: R, translateExtent: A, minZoom: _, maxZoom: y, preventScrolling: M, defaultMarkerColor: N, zoomOnScroll: I, zoomOnPinch: j, panOnScroll: O, panOnScrollSpeed: T, panOnScrollMode: B, zoomOnDoubleClick: $, panOnDrag: X, autoPanOnSelection: Z, onPaneClick: W, onPaneMouseEnter: q, onPaneMouseMove: K, onPaneMouseLeave: L, onPaneScroll: Y, onPaneContextMenu: G, paneClickDistance: Q, nodeClickDistance: V, onEdgeContextMenu: U, onEdgeMouseEnter: J, onEdgeMouseMove: te, onEdgeMouseLeave: ae, reconnectRadius: be, onReconnect: ve, onReconnectStart: we, onReconnectEnd: Te, noDragClassName: ze, noWheelClassName: dt, noPanClassName: $e, disableKeyboardA11y: Be, nodeExtent: de, rfId: Ne, viewport: Ee, onViewportChange: He, nodesDraggable: Sn }) {
7012
- return Fr(e), Fr(t), lp(), Jg(n), tp(Ee), m.jsx(_g, { onPaneClick: W, onPaneMouseEnter: q, onPaneMouseMove: K, onPaneMouseLeave: L, onPaneContextMenu: G, onPaneScroll: Y, paneClickDistance: Q, deleteKeyCode: z, selectionKeyCode: k, selectionOnDrag: p, selectionMode: b, onSelectionStart: u, onSelectionEnd: h, multiSelectionKeyCode: E, panActivationKeyCode: S, zoomActivationKeyCode: C, elementsSelectable: H, zoomOnScroll: I, zoomOnPinch: j, zoomOnDoubleClick: $, panOnScroll: O, panOnScrollSpeed: T, panOnScrollMode: B, panOnDrag: X, autoPanOnSelection: Z, defaultViewport: R, translateExtent: A, minZoom: _, maxZoom: y, onSelectionContextMenu: f, preventScrolling: M, noDragClassName: ze, noWheelClassName: dt, noPanClassName: $e, disableKeyboardA11y: Be, onViewportChange: He, isControlledViewport: !!Ee, children: m.jsxs(Qg, { children: [m.jsx(Ug, { edgeTypes: t, onEdgeClick: r, onEdgeDoubleClick: a, onReconnect: ve, onReconnectStart: we, onReconnectEnd: Te, onlyRenderVisibleElements: D, onEdgeContextMenu: U, onEdgeMouseEnter: J, onEdgeMouseMove: te, onEdgeMouseLeave: ae, reconnectRadius: be, defaultMarkerColor: N, noPanClassName: $e, disableKeyboardA11y: Be, rfId: Ne }), m.jsx(ap, { style: x, type: g, component: w, containerStyle: v }), m.jsx("div", { className: "react-flow__edgelabel-renderer" }), m.jsx(Dg, { nodeTypes: e, onNodeClick: o, onNodeDoubleClick: i, onNodeMouseEnter: s, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, nodeClickDistance: V, onlyRenderVisibleElements: D, noPanClassName: $e, noDragClassName: ze, disableKeyboardA11y: Be, nodeExtent: de, rfId: Ne, nodesDraggable: Sn }), m.jsx("div", { className: "react-flow__viewport-portal" })] }) });
7011
+ function Ya({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: o, onEdgeClick: r, onNodeDoubleClick: i, onEdgeDoubleClick: a, onNodeMouseEnter: s, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, onSelectionContextMenu: f, onSelectionStart: u, onSelectionEnd: h, connectionLineType: g, connectionLineStyle: x, connectionLineComponent: w, connectionLineContainerStyle: v, selectionKeyCode: k, selectionOnDrag: p, selectionMode: b, multiSelectionKeyCode: E, panActivationKeyCode: S, zoomActivationKeyCode: C, deleteKeyCode: z, onlyRenderVisibleElements: D, elementsSelectable: H, defaultViewport: R, translateExtent: A, minZoom: _, maxZoom: y, preventScrolling: M, defaultMarkerColor: N, zoomOnScroll: I, zoomOnPinch: j, panOnScroll: O, panOnScrollSpeed: T, panOnScrollMode: B, zoomOnDoubleClick: $, panOnDrag: W, autoPanOnSelection: F, onPaneClick: X, onPaneMouseEnter: q, onPaneMouseMove: K, onPaneMouseLeave: L, onPaneScroll: Y, onPaneContextMenu: G, paneClickDistance: Q, nodeClickDistance: V, onEdgeContextMenu: U, onEdgeMouseEnter: J, onEdgeMouseMove: te, onEdgeMouseLeave: ae, reconnectRadius: be, onReconnect: ve, onReconnectStart: we, onReconnectEnd: Te, noDragClassName: ze, noWheelClassName: dt, noPanClassName: $e, disableKeyboardA11y: Be, nodeExtent: de, rfId: Ne, viewport: Ee, onViewportChange: He, nodesDraggable: Sn }) {
7012
+ return Zr(e), Zr(t), lp(), Jg(n), tp(Ee), m.jsx(_g, { onPaneClick: X, onPaneMouseEnter: q, onPaneMouseMove: K, onPaneMouseLeave: L, onPaneContextMenu: G, onPaneScroll: Y, paneClickDistance: Q, deleteKeyCode: z, selectionKeyCode: k, selectionOnDrag: p, selectionMode: b, onSelectionStart: u, onSelectionEnd: h, multiSelectionKeyCode: E, panActivationKeyCode: S, zoomActivationKeyCode: C, elementsSelectable: H, zoomOnScroll: I, zoomOnPinch: j, zoomOnDoubleClick: $, panOnScroll: O, panOnScrollSpeed: T, panOnScrollMode: B, panOnDrag: W, autoPanOnSelection: F, defaultViewport: R, translateExtent: A, minZoom: _, maxZoom: y, onSelectionContextMenu: f, preventScrolling: M, noDragClassName: ze, noWheelClassName: dt, noPanClassName: $e, disableKeyboardA11y: Be, onViewportChange: He, isControlledViewport: !!Ee, children: m.jsxs(Qg, { children: [m.jsx(Ug, { edgeTypes: t, onEdgeClick: r, onEdgeDoubleClick: a, onReconnect: ve, onReconnectStart: we, onReconnectEnd: Te, onlyRenderVisibleElements: D, onEdgeContextMenu: U, onEdgeMouseEnter: J, onEdgeMouseMove: te, onEdgeMouseLeave: ae, reconnectRadius: be, defaultMarkerColor: N, noPanClassName: $e, disableKeyboardA11y: Be, rfId: Ne }), m.jsx(ap, { style: x, type: g, component: w, containerStyle: v }), m.jsx("div", { className: "react-flow__edgelabel-renderer" }), m.jsx(Dg, { nodeTypes: e, onNodeClick: o, onNodeDoubleClick: i, onNodeMouseEnter: s, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, nodeClickDistance: V, onlyRenderVisibleElements: D, noPanClassName: $e, noDragClassName: ze, disableKeyboardA11y: Be, nodeExtent: de, rfId: Ne, nodesDraggable: Sn }), m.jsx("div", { className: "react-flow__viewport-portal" })] }) });
7013
7013
  }
7014
7014
  Ya.displayName = "GraphView";
7015
- const cp = P.memo(Ya), dp = Zi(), Xr = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: o, width: r, height: i, fitView: a, fitViewOptions: s, minZoom: l = 0.5, maxZoom: c = 2, nodeOrigin: d, nodeExtent: f, zIndexMode: u = "basic" } = {}) => {
7015
+ const cp = P.memo(Ya), dp = Fi(), Wr = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: o, width: r, height: i, fitView: a, fitViewOptions: s, minZoom: l = 0.5, maxZoom: c = 2, nodeOrigin: d, nodeExtent: f, zIndexMode: u = "basic" } = {}) => {
7016
7016
  const h = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), v = o ?? t ?? [], k = n ?? e ?? [], p = d ?? [0, 0], b = f ?? St;
7017
7017
  na(x, w, v);
7018
7018
  const { nodesInitialized: E } = qn(k, h, g, {
@@ -7105,7 +7105,7 @@ const cp = P.memo(Ya), dp = Zi(), Xr = ({ nodes: e, edges: t, defaultNodes: n, d
7105
7105
  }, k), p?.resolve(!0), h({ fitViewResolver: null }));
7106
7106
  }
7107
7107
  return {
7108
- ...Xr({
7108
+ ...Wr({
7109
7109
  nodes: e,
7110
7110
  edges: t,
7111
7111
  width: r,
@@ -7174,7 +7174,7 @@ const cp = P.memo(Ya), dp = Zi(), Xr = ({ nodes: e, edges: t, defaultNodes: n, d
7174
7174
  dragging: v
7175
7175
  };
7176
7176
  if (R && S.inProgress && S.fromNode.id === R.id) {
7177
- const y = Ge(R, S.fromHandle, F.Left, !0);
7177
+ const y = Ge(R, S.fromHandle, Z.Left, !0);
7178
7178
  C({ ...S, from: y });
7179
7179
  }
7180
7180
  A && R.parentId && k.push({
@@ -7209,7 +7209,7 @@ const cp = P.memo(Ya), dp = Zi(), Xr = ({ nodes: e, edges: t, defaultNodes: n, d
7209
7209
  const { onEdgesChange: v, setEdges: k, edges: p, hasDefaultEdges: b, debug: E } = g();
7210
7210
  if (w?.length) {
7211
7211
  if (b) {
7212
- const S = Fh(w, p);
7212
+ const S = Zh(w, p);
7213
7213
  k(S);
7214
7214
  }
7215
7215
  E && console.log("React Flow: trigger edge changes", w), v?.(w);
@@ -7297,10 +7297,10 @@ const cp = P.memo(Ya), dp = Zi(), Xr = ({ nodes: e, edges: t, defaultNodes: n, d
7297
7297
  updateConnection: (w) => {
7298
7298
  h({ connection: w });
7299
7299
  },
7300
- reset: () => h({ ...Xr() })
7300
+ reset: () => h({ ...Wr() })
7301
7301
  };
7302
7302
  }, Object.is);
7303
- function Za({ initialNodes: e, initialEdges: t, defaultNodes: n, defaultEdges: o, initialWidth: r, initialHeight: i, initialMinZoom: a, initialMaxZoom: s, initialFitViewOptions: l, fitView: c, nodeOrigin: d, nodeExtent: f, zIndexMode: u, children: h }) {
7303
+ function Fa({ initialNodes: e, initialEdges: t, defaultNodes: n, defaultEdges: o, initialWidth: r, initialHeight: i, initialMinZoom: a, initialMaxZoom: s, initialFitViewOptions: l, fitView: c, nodeOrigin: d, nodeExtent: f, zIndexMode: u, children: h }) {
7304
7304
  const [g] = P.useState(() => up({
7305
7305
  nodes: e,
7306
7306
  edges: t,
@@ -7319,7 +7319,7 @@ function Za({ initialNodes: e, initialEdges: t, defaultNodes: n, defaultEdges: o
7319
7319
  return m.jsx(Ch, { value: g, children: m.jsx(Gh, { children: m.jsx(ug, { children: h }) }) });
7320
7320
  }
7321
7321
  function fp({ children: e, nodes: t, edges: n, defaultNodes: o, defaultEdges: r, width: i, height: a, fitView: s, fitViewOptions: l, minZoom: c, maxZoom: d, nodeOrigin: f, nodeExtent: u, zIndexMode: h }) {
7322
- return P.useContext(bn) ? m.jsx(m.Fragment, { children: e }) : m.jsx(Za, { initialNodes: t, initialEdges: n, defaultNodes: o, defaultEdges: r, initialWidth: i, initialHeight: a, fitView: s, initialFitViewOptions: l, initialMinZoom: c, initialMaxZoom: d, nodeOrigin: f, nodeExtent: u, zIndexMode: h, children: e });
7322
+ return P.useContext(bn) ? m.jsx(m.Fragment, { children: e }) : m.jsx(Fa, { initialNodes: t, initialEdges: n, defaultNodes: o, defaultEdges: r, initialWidth: i, initialHeight: a, fitView: s, initialFitViewOptions: l, initialMinZoom: c, initialMaxZoom: d, nodeOrigin: f, nodeExtent: u, zIndexMode: h, children: e });
7323
7323
  }
7324
7324
  const hp = {
7325
7325
  width: "100%",
@@ -7328,11 +7328,11 @@ const hp = {
7328
7328
  position: "relative",
7329
7329
  zIndex: 0
7330
7330
  };
7331
- function gp({ nodes: e, edges: t, defaultNodes: n, defaultEdges: o, className: r, nodeTypes: i, edgeTypes: a, onNodeClick: s, onEdgeClick: l, onInit: c, onMove: d, onMoveStart: f, onMoveEnd: u, onConnect: h, onConnectStart: g, onConnectEnd: x, onClickConnectStart: w, onClickConnectEnd: v, onNodeMouseEnter: k, onNodeMouseMove: p, onNodeMouseLeave: b, onNodeContextMenu: E, onNodeDoubleClick: S, onNodeDragStart: C, onNodeDrag: z, onNodeDragStop: D, onNodesDelete: H, onEdgesDelete: R, onDelete: A, onSelectionChange: _, onSelectionDragStart: y, onSelectionDrag: M, onSelectionDragStop: N, onSelectionContextMenu: I, onSelectionStart: j, onSelectionEnd: O, onBeforeDelete: T, connectionMode: B, connectionLineType: $ = Re.Bezier, connectionLineStyle: X, connectionLineComponent: Z, connectionLineContainerStyle: W, deleteKeyCode: q = "Backspace", selectionKeyCode: K = "Shift", selectionOnDrag: L = !1, selectionMode: Y = kt.Full, panActivationKeyCode: G = "Space", multiSelectionKeyCode: Q = Ct() ? "Meta" : "Control", zoomActivationKeyCode: V = Ct() ? "Meta" : "Control", snapToGrid: U, snapGrid: J, onlyRenderVisibleElements: te = !1, selectNodesOnDrag: ae, nodesDraggable: be, autoPanOnNodeFocus: ve, nodesConnectable: we, nodesFocusable: Te, nodeOrigin: ze = pa, edgesFocusable: dt, edgesReconnectable: $e, elementsSelectable: Be = !0, defaultViewport: de = Th, minZoom: Ne = 0.5, maxZoom: Ee = 2, translateExtent: He = St, preventScrolling: Sn = !0, nodeExtent: kn, defaultMarkerColor: qa = "#b1b1b7", zoomOnScroll: Ga = !0, zoomOnPinch: Ua = !0, panOnScroll: Qa = !1, panOnScrollSpeed: Ja = 0.5, panOnScrollMode: es = Fe.Free, zoomOnDoubleClick: ts = !0, panOnDrag: ns = !0, onPaneClick: os, onPaneMouseEnter: rs, onPaneMouseMove: is, onPaneMouseLeave: as, onPaneScroll: ss, onPaneContextMenu: ls, paneClickDistance: cs = 1, nodeClickDistance: ds = 0, children: us, onReconnect: fs, onReconnectStart: hs, onReconnectEnd: gs, onEdgeContextMenu: ps, onEdgeDoubleClick: ms, onEdgeMouseEnter: ys, onEdgeMouseMove: bs, onEdgeMouseLeave: vs, reconnectRadius: ws = 10, onNodesChange: xs, onEdgesChange: Ss, noDragClassName: ks = "nodrag", noWheelClassName: _s = "nowheel", noPanClassName: xo = "nopan", fitView: So, fitViewOptions: ko, connectOnClick: Cs, attributionPosition: Ns, proOptions: Es, defaultEdgeOptions: Ms, elevateNodesOnSelect: Ps = !0, elevateEdgesOnSelect: Is = !1, disableKeyboardA11y: _o = !1, autoPanOnConnect: zs, autoPanOnNodeDrag: As, autoPanOnSelection: Ds = !0, autoPanSpeed: Os, connectionRadius: js, isValidConnection: Rs, onError: Ls, style: Ts, id: Co, nodeDragThreshold: $s, connectionDragThreshold: Bs, viewport: Hs, onViewportChange: Vs, width: Ys, height: Zs, colorMode: Fs = "light", debug: Xs, onScroll: No, ariaLabelConfig: Ws, zIndexMode: Eo = "basic", ...Ks }, qs) {
7332
- const _n = Co || "1", Gs = Vh(Fs), Us = P.useCallback((Mo) => {
7331
+ function gp({ nodes: e, edges: t, defaultNodes: n, defaultEdges: o, className: r, nodeTypes: i, edgeTypes: a, onNodeClick: s, onEdgeClick: l, onInit: c, onMove: d, onMoveStart: f, onMoveEnd: u, onConnect: h, onConnectStart: g, onConnectEnd: x, onClickConnectStart: w, onClickConnectEnd: v, onNodeMouseEnter: k, onNodeMouseMove: p, onNodeMouseLeave: b, onNodeContextMenu: E, onNodeDoubleClick: S, onNodeDragStart: C, onNodeDrag: z, onNodeDragStop: D, onNodesDelete: H, onEdgesDelete: R, onDelete: A, onSelectionChange: _, onSelectionDragStart: y, onSelectionDrag: M, onSelectionDragStop: N, onSelectionContextMenu: I, onSelectionStart: j, onSelectionEnd: O, onBeforeDelete: T, connectionMode: B, connectionLineType: $ = Re.Bezier, connectionLineStyle: W, connectionLineComponent: F, connectionLineContainerStyle: X, deleteKeyCode: q = "Backspace", selectionKeyCode: K = "Shift", selectionOnDrag: L = !1, selectionMode: Y = kt.Full, panActivationKeyCode: G = "Space", multiSelectionKeyCode: Q = Ct() ? "Meta" : "Control", zoomActivationKeyCode: V = Ct() ? "Meta" : "Control", snapToGrid: U, snapGrid: J, onlyRenderVisibleElements: te = !1, selectNodesOnDrag: ae, nodesDraggable: be, autoPanOnNodeFocus: ve, nodesConnectable: we, nodesFocusable: Te, nodeOrigin: ze = pa, edgesFocusable: dt, edgesReconnectable: $e, elementsSelectable: Be = !0, defaultViewport: de = Th, minZoom: Ne = 0.5, maxZoom: Ee = 2, translateExtent: He = St, preventScrolling: Sn = !0, nodeExtent: kn, defaultMarkerColor: qa = "#b1b1b7", zoomOnScroll: Ga = !0, zoomOnPinch: Ua = !0, panOnScroll: Qa = !1, panOnScrollSpeed: Ja = 0.5, panOnScrollMode: es = Ze.Free, zoomOnDoubleClick: ts = !0, panOnDrag: ns = !0, onPaneClick: os, onPaneMouseEnter: rs, onPaneMouseMove: is, onPaneMouseLeave: as, onPaneScroll: ss, onPaneContextMenu: ls, paneClickDistance: cs = 1, nodeClickDistance: ds = 0, children: us, onReconnect: fs, onReconnectStart: hs, onReconnectEnd: gs, onEdgeContextMenu: ps, onEdgeDoubleClick: ms, onEdgeMouseEnter: ys, onEdgeMouseMove: bs, onEdgeMouseLeave: vs, reconnectRadius: ws = 10, onNodesChange: xs, onEdgesChange: Ss, noDragClassName: ks = "nodrag", noWheelClassName: _s = "nowheel", noPanClassName: xo = "nopan", fitView: So, fitViewOptions: ko, connectOnClick: Cs, attributionPosition: Ns, proOptions: Es, defaultEdgeOptions: Ms, elevateNodesOnSelect: Ps = !0, elevateEdgesOnSelect: Is = !1, disableKeyboardA11y: _o = !1, autoPanOnConnect: zs, autoPanOnNodeDrag: As, autoPanOnSelection: Ds = !0, autoPanSpeed: Os, connectionRadius: js, isValidConnection: Rs, onError: Ls, style: Ts, id: Co, nodeDragThreshold: $s, connectionDragThreshold: Bs, viewport: Hs, onViewportChange: Vs, width: Ys, height: Fs, colorMode: Zs = "light", debug: Ws, onScroll: No, ariaLabelConfig: Xs, zIndexMode: Eo = "basic", ...Ks }, qs) {
7332
+ const _n = Co || "1", Gs = Vh(Zs), Us = P.useCallback((Mo) => {
7333
7333
  Mo.currentTarget.scrollTo({ top: 0, left: 0, behavior: "instant" }), No?.(Mo);
7334
7334
  }, [No]);
7335
- return m.jsx("div", { "data-testid": "rf__wrapper", ...Ks, onScroll: Us, style: { ...Ts, ...hp }, ref: qs, className: ie(["react-flow", r, Gs]), id: Co, role: "application", children: m.jsxs(fp, { nodes: e, edges: t, width: Ys, height: Zs, fitView: So, fitViewOptions: ko, minZoom: Ne, maxZoom: Ee, nodeOrigin: ze, nodeExtent: kn, zIndexMode: Eo, children: [m.jsx(Hh, { nodes: e, edges: t, defaultNodes: n, defaultEdges: o, onConnect: h, onConnectStart: g, onConnectEnd: x, onClickConnectStart: w, onClickConnectEnd: v, nodesDraggable: be, autoPanOnNodeFocus: ve, nodesConnectable: we, nodesFocusable: Te, edgesFocusable: dt, edgesReconnectable: $e, elementsSelectable: Be, elevateNodesOnSelect: Ps, elevateEdgesOnSelect: Is, minZoom: Ne, maxZoom: Ee, nodeExtent: kn, onNodesChange: xs, onEdgesChange: Ss, snapToGrid: U, snapGrid: J, connectionMode: B, translateExtent: He, connectOnClick: Cs, defaultEdgeOptions: Ms, fitView: So, fitViewOptions: ko, onNodesDelete: H, onEdgesDelete: R, onDelete: A, onNodeDragStart: C, onNodeDrag: z, onNodeDragStop: D, onSelectionDrag: M, onSelectionDragStart: y, onSelectionDragStop: N, onMove: d, onMoveStart: f, onMoveEnd: u, noPanClassName: xo, nodeOrigin: ze, rfId: _n, autoPanOnConnect: zs, autoPanOnNodeDrag: As, autoPanSpeed: Os, onError: Ls, connectionRadius: js, isValidConnection: Rs, selectNodesOnDrag: ae, nodeDragThreshold: $s, connectionDragThreshold: Bs, onBeforeDelete: T, debug: Xs, ariaLabelConfig: Ws, zIndexMode: Eo }), m.jsx(cp, { onInit: c, onNodeClick: s, onEdgeClick: l, onNodeMouseEnter: k, onNodeMouseMove: p, onNodeMouseLeave: b, onNodeContextMenu: E, onNodeDoubleClick: S, nodeTypes: i, edgeTypes: a, connectionLineType: $, connectionLineStyle: X, connectionLineComponent: Z, connectionLineContainerStyle: W, selectionKeyCode: K, selectionOnDrag: L, selectionMode: Y, deleteKeyCode: q, multiSelectionKeyCode: Q, panActivationKeyCode: G, zoomActivationKeyCode: V, onlyRenderVisibleElements: te, defaultViewport: de, translateExtent: He, minZoom: Ne, maxZoom: Ee, preventScrolling: Sn, zoomOnScroll: Ga, zoomOnPinch: Ua, zoomOnDoubleClick: ts, panOnScroll: Qa, panOnScrollSpeed: Ja, panOnScrollMode: es, panOnDrag: ns, autoPanOnSelection: Ds, onPaneClick: os, onPaneMouseEnter: rs, onPaneMouseMove: is, onPaneMouseLeave: as, onPaneScroll: ss, onPaneContextMenu: ls, paneClickDistance: cs, nodeClickDistance: ds, onSelectionContextMenu: I, onSelectionStart: j, onSelectionEnd: O, onReconnect: fs, onReconnectStart: hs, onReconnectEnd: gs, onEdgeContextMenu: ps, onEdgeDoubleClick: ms, onEdgeMouseEnter: ys, onEdgeMouseMove: bs, onEdgeMouseLeave: vs, reconnectRadius: ws, defaultMarkerColor: qa, noDragClassName: ks, noWheelClassName: _s, noPanClassName: xo, rfId: _n, disableKeyboardA11y: _o, nodeExtent: kn, viewport: Hs, onViewportChange: Vs, nodesDraggable: be }), m.jsx(Lh, { onSelectionChange: _ }), us, m.jsx(Ah, { proOptions: Es, position: Ns }), m.jsx(zh, { rfId: _n, disableKeyboardA11y: _o })] }) });
7335
+ return m.jsx("div", { "data-testid": "rf__wrapper", ...Ks, onScroll: Us, style: { ...Ts, ...hp }, ref: qs, className: ie(["react-flow", r, Gs]), id: Co, role: "application", children: m.jsxs(fp, { nodes: e, edges: t, width: Ys, height: Fs, fitView: So, fitViewOptions: ko, minZoom: Ne, maxZoom: Ee, nodeOrigin: ze, nodeExtent: kn, zIndexMode: Eo, children: [m.jsx(Hh, { nodes: e, edges: t, defaultNodes: n, defaultEdges: o, onConnect: h, onConnectStart: g, onConnectEnd: x, onClickConnectStart: w, onClickConnectEnd: v, nodesDraggable: be, autoPanOnNodeFocus: ve, nodesConnectable: we, nodesFocusable: Te, edgesFocusable: dt, edgesReconnectable: $e, elementsSelectable: Be, elevateNodesOnSelect: Ps, elevateEdgesOnSelect: Is, minZoom: Ne, maxZoom: Ee, nodeExtent: kn, onNodesChange: xs, onEdgesChange: Ss, snapToGrid: U, snapGrid: J, connectionMode: B, translateExtent: He, connectOnClick: Cs, defaultEdgeOptions: Ms, fitView: So, fitViewOptions: ko, onNodesDelete: H, onEdgesDelete: R, onDelete: A, onNodeDragStart: C, onNodeDrag: z, onNodeDragStop: D, onSelectionDrag: M, onSelectionDragStart: y, onSelectionDragStop: N, onMove: d, onMoveStart: f, onMoveEnd: u, noPanClassName: xo, nodeOrigin: ze, rfId: _n, autoPanOnConnect: zs, autoPanOnNodeDrag: As, autoPanSpeed: Os, onError: Ls, connectionRadius: js, isValidConnection: Rs, selectNodesOnDrag: ae, nodeDragThreshold: $s, connectionDragThreshold: Bs, onBeforeDelete: T, debug: Ws, ariaLabelConfig: Xs, zIndexMode: Eo }), m.jsx(cp, { onInit: c, onNodeClick: s, onEdgeClick: l, onNodeMouseEnter: k, onNodeMouseMove: p, onNodeMouseLeave: b, onNodeContextMenu: E, onNodeDoubleClick: S, nodeTypes: i, edgeTypes: a, connectionLineType: $, connectionLineStyle: W, connectionLineComponent: F, connectionLineContainerStyle: X, selectionKeyCode: K, selectionOnDrag: L, selectionMode: Y, deleteKeyCode: q, multiSelectionKeyCode: Q, panActivationKeyCode: G, zoomActivationKeyCode: V, onlyRenderVisibleElements: te, defaultViewport: de, translateExtent: He, minZoom: Ne, maxZoom: Ee, preventScrolling: Sn, zoomOnScroll: Ga, zoomOnPinch: Ua, zoomOnDoubleClick: ts, panOnScroll: Qa, panOnScrollSpeed: Ja, panOnScrollMode: es, panOnDrag: ns, autoPanOnSelection: Ds, onPaneClick: os, onPaneMouseEnter: rs, onPaneMouseMove: is, onPaneMouseLeave: as, onPaneScroll: ss, onPaneContextMenu: ls, paneClickDistance: cs, nodeClickDistance: ds, onSelectionContextMenu: I, onSelectionStart: j, onSelectionEnd: O, onReconnect: fs, onReconnectStart: hs, onReconnectEnd: gs, onEdgeContextMenu: ps, onEdgeDoubleClick: ms, onEdgeMouseEnter: ys, onEdgeMouseMove: bs, onEdgeMouseLeave: vs, reconnectRadius: ws, defaultMarkerColor: qa, noDragClassName: ks, noWheelClassName: _s, noPanClassName: xo, rfId: _n, disableKeyboardA11y: _o, nodeExtent: kn, viewport: Hs, onViewportChange: Vs, nodesDraggable: be }), m.jsx(Lh, { onSelectionChange: _ }), us, m.jsx(Ah, { proOptions: Es, position: Ns }), m.jsx(zh, { rfId: _n, disableKeyboardA11y: _o })] }) });
7336
7336
  }
7337
7337
  var pp = ba(gp);
7338
7338
  function mp({ dimensions: e, lineWidth: t, variant: n, className: o }) {
@@ -7350,7 +7350,7 @@ const bp = {
7350
7350
  [Le.Lines]: 1,
7351
7351
  [Le.Cross]: 6
7352
7352
  }, vp = (e) => ({ transform: e.transform, patternId: `pattern-${e.rfId}` });
7353
- function Fa({
7353
+ function Za({
7354
7354
  id: e,
7355
7355
  variant: t = Le.Dots,
7356
7356
  // only used for dots and cross
@@ -7376,8 +7376,8 @@ function Fa({
7376
7376
  "--xy-background-pattern-color-props": a
7377
7377
  }, ref: f, "data-testid": "rf__background", children: [m.jsx("pattern", { id: C, x: u[0] % k[0], y: u[1] % k[1], width: k[0], height: k[1], patternUnits: "userSpaceOnUse", patternTransform: `translate(-${S[0]},-${S[1]})`, children: x ? m.jsx(yp, { radius: p / 2, className: d }) : m.jsx(mp, { dimensions: E, lineWidth: r, variant: t, className: d }) }), m.jsx("rect", { x: "0", y: "0", width: "100%", height: "100%", fill: `url(#${C})` })] });
7378
7378
  }
7379
- Fa.displayName = "Background";
7380
- const wp = P.memo(Fa);
7379
+ Za.displayName = "Background";
7380
+ const wp = P.memo(Za);
7381
7381
  function xp() {
7382
7382
  return m.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", children: m.jsx("path", { d: "M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z" }) });
7383
7383
  }
@@ -7402,7 +7402,7 @@ const Np = (e) => ({
7402
7402
  maxZoomReached: e.transform[2] >= e.maxZoom,
7403
7403
  ariaLabelConfig: e.ariaLabelConfig
7404
7404
  });
7405
- function Xa({ style: e, showZoom: t = !0, showFitView: n = !0, showInteractive: o = !0, fitViewOptions: r, onZoomIn: i, onZoomOut: a, onFitView: s, onInteractiveChange: l, className: c, children: d, position: f = "bottom-left", orientation: u = "vertical", "aria-label": h }) {
7405
+ function Wa({ style: e, showZoom: t = !0, showFitView: n = !0, showInteractive: o = !0, fitViewOptions: r, onZoomIn: i, onZoomOut: a, onFitView: s, onInteractiveChange: l, className: c, children: d, position: f = "bottom-left", orientation: u = "vertical", "aria-label": h }) {
7406
7406
  const g = ne(), { isInteractive: x, minZoomReached: w, maxZoomReached: v, ariaLabelConfig: k } = ee(Np, re), { zoomIn: p, zoomOut: b, fitView: E } = vo(), S = () => {
7407
7407
  p(), i?.();
7408
7408
  }, C = () => {
@@ -7418,8 +7418,8 @@ function Xa({ style: e, showZoom: t = !0, showFitView: n = !0, showInteractive:
7418
7418
  };
7419
7419
  return m.jsxs(vn, { className: ie(["react-flow__controls", u === "horizontal" ? "horizontal" : "vertical", c]), position: f, style: e, "data-testid": "rf__controls", "aria-label": h ?? k["controls.ariaLabel"], children: [t && m.jsxs(m.Fragment, { children: [m.jsx(Vt, { onClick: S, className: "react-flow__controls-zoomin", title: k["controls.zoomIn.ariaLabel"], "aria-label": k["controls.zoomIn.ariaLabel"], disabled: v, children: m.jsx(xp, {}) }), m.jsx(Vt, { onClick: C, className: "react-flow__controls-zoomout", title: k["controls.zoomOut.ariaLabel"], "aria-label": k["controls.zoomOut.ariaLabel"], disabled: w, children: m.jsx(Sp, {}) })] }), n && m.jsx(Vt, { className: "react-flow__controls-fitview", onClick: z, title: k["controls.fitView.ariaLabel"], "aria-label": k["controls.fitView.ariaLabel"], children: m.jsx(kp, {}) }), o && m.jsx(Vt, { className: "react-flow__controls-interactive", onClick: D, title: k["controls.interactive.ariaLabel"], "aria-label": k["controls.interactive.ariaLabel"], children: x ? m.jsx(Cp, {}) : m.jsx(_p, {}) }), d] });
7420
7420
  }
7421
- Xa.displayName = "Controls";
7422
- const Ep = P.memo(Xa);
7421
+ Wa.displayName = "Controls";
7422
+ const Ep = P.memo(Wa);
7423
7423
  function Mp({ id: e, x: t, y: n, width: o, height: r, style: i, color: a, strokeColor: s, strokeWidth: l, className: c, borderRadius: d, shapeRendering: f, selected: u, onClick: h }) {
7424
7424
  const { background: g, backgroundColor: x } = i || {}, w = a || g || x;
7425
7425
  return m.jsx("rect", { className: ie(["react-flow__minimap-node", { selected: u }, c]), x: t, y: n, rx: d, ry: d, width: o, height: r, style: {
@@ -7468,7 +7468,7 @@ function Ap({ id: e, nodeColorFunc: t, nodeStrokeColorFunc: n, nodeClassNameFunc
7468
7468
  height: b
7469
7469
  };
7470
7470
  }, re);
7471
- return !c || c.hidden || !Fi(c) ? null : m.jsx(s, { x: d, y: f, width: u, height: h, style: c.style, selected: !!c.selected, className: o(c), color: t(c), borderRadius: r, strokeColor: n(c), strokeWidth: i, shapeRendering: a, onClick: l, id: c.id });
7471
+ return !c || c.hidden || !Zi(c) ? null : m.jsx(s, { x: d, y: f, width: u, height: h, style: c.style, selected: !!c.selected, className: o(c), color: t(c), borderRadius: r, strokeColor: n(c), strokeWidth: i, shapeRendering: a, onClick: l, id: c.id });
7472
7472
  }
7473
7473
  const Dp = P.memo(Ap);
7474
7474
  var Op = P.memo(zp);
@@ -7489,8 +7489,8 @@ const jp = 200, Rp = 150, Lp = (e) => !e.hidden, Tp = (e) => {
7489
7489
  flowHeight: e.height,
7490
7490
  ariaLabelConfig: e.ariaLabelConfig
7491
7491
  };
7492
- }, Wr = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, $p = (e, t) => Wr(e.viewBB, t.viewBB) && Wr(e.boundingRect, t.boundingRect) && e.rfId === t.rfId && e.panZoom === t.panZoom && e.translateExtent === t.translateExtent && e.flowWidth === t.flowWidth && e.flowHeight === t.flowHeight && e.ariaLabelConfig === t.ariaLabelConfig, Bp = "react-flow__minimap-desc";
7493
- function Wa({
7492
+ }, Xr = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, $p = (e, t) => Xr(e.viewBB, t.viewBB) && Xr(e.boundingRect, t.boundingRect) && e.rfId === t.rfId && e.panZoom === t.panZoom && e.translateExtent === t.translateExtent && e.flowWidth === t.flowWidth && e.flowHeight === t.flowHeight && e.ariaLabelConfig === t.ariaLabelConfig, Bp = "react-flow__minimap-desc";
7493
+ function Xa({
7494
7494
  style: e,
7495
7495
  className: t,
7496
7496
  nodeStrokeColor: n,
@@ -7517,7 +7517,7 @@ function Wa({
7517
7517
  zoomStep: p = 1,
7518
7518
  offsetScale: b = 5
7519
7519
  }) {
7520
- const E = ne(), S = P.useRef(null), { boundingRect: C, viewBB: z, rfId: D, panZoom: H, translateExtent: R, flowWidth: A, flowHeight: _, ariaLabelConfig: y } = ee(Tp, $p), M = e?.width ?? jp, N = e?.height ?? Rp, I = C.width / M, j = C.height / N, O = Math.max(I, j), T = O * M, B = O * N, $ = b * O, X = C.x - (T - C.width) / 2 - $, Z = C.y - (B - C.height) / 2 - $, W = T + $ * 2, q = B + $ * 2, K = `${Bp}-${D}`, L = P.useRef(0), Y = P.useRef();
7520
+ const E = ne(), S = P.useRef(null), { boundingRect: C, viewBB: z, rfId: D, panZoom: H, translateExtent: R, flowWidth: A, flowHeight: _, ariaLabelConfig: y } = ee(Tp, $p), M = e?.width ?? jp, N = e?.height ?? Rp, I = C.width / M, j = C.height / N, O = Math.max(I, j), T = O * M, B = O * N, $ = b * O, W = C.x - (T - C.width) / 2 - $, F = C.y - (B - C.height) / 2 - $, X = T + $ * 2, q = B + $ * 2, K = `${Bp}-${D}`, L = P.useRef(0), Y = P.useRef();
7521
7521
  L.current = O, P.useEffect(() => {
7522
7522
  if (S.current && H)
7523
7523
  return Y.current = Qf({
@@ -7555,15 +7555,15 @@ function Wa({
7555
7555
  "--xy-minimap-node-background-color-props": typeof o == "string" ? o : void 0,
7556
7556
  "--xy-minimap-node-stroke-color-props": typeof n == "string" ? n : void 0,
7557
7557
  "--xy-minimap-node-stroke-width-props": typeof a == "number" ? a : void 0
7558
- }, className: ie(["react-flow__minimap", t]), "data-testid": "rf__minimap", children: m.jsxs("svg", { width: M, height: N, viewBox: `${X} ${Z} ${W} ${q}`, className: "react-flow__minimap-svg", role: "img", "aria-labelledby": K, ref: S, onClick: G, children: [V && m.jsx("title", { id: K, children: V }), m.jsx(Op, { onClick: Q, nodeColor: o, nodeStrokeColor: n, nodeBorderRadius: i, nodeClassName: r, nodeStrokeWidth: a, nodeComponent: s }), m.jsx("path", { className: "react-flow__minimap-mask", d: `M${X - $},${Z - $}h${W + $ * 2}v${q + $ * 2}h${-W - $ * 2}z
7558
+ }, className: ie(["react-flow__minimap", t]), "data-testid": "rf__minimap", children: m.jsxs("svg", { width: M, height: N, viewBox: `${W} ${F} ${X} ${q}`, className: "react-flow__minimap-svg", role: "img", "aria-labelledby": K, ref: S, onClick: G, children: [V && m.jsx("title", { id: K, children: V }), m.jsx(Op, { onClick: Q, nodeColor: o, nodeStrokeColor: n, nodeBorderRadius: i, nodeClassName: r, nodeStrokeWidth: a, nodeComponent: s }), m.jsx("path", { className: "react-flow__minimap-mask", d: `M${W - $},${F - $}h${X + $ * 2}v${q + $ * 2}h${-X - $ * 2}z
7559
7559
  M${z.x},${z.y}h${z.width}v${z.height}h${-z.width}z`, fillRule: "evenodd", pointerEvents: "none" })] }) });
7560
7560
  }
7561
- Wa.displayName = "MiniMap";
7562
- const Hp = P.memo(Wa), Vp = (e) => (t) => e ? `${Math.max(1 / t.transform[2], 1)}` : void 0, Yp = {
7561
+ Xa.displayName = "MiniMap";
7562
+ const Hp = P.memo(Xa), Vp = (e) => (t) => e ? `${Math.max(1 / t.transform[2], 1)}` : void 0, Yp = {
7563
7563
  [lt.Line]: "right",
7564
7564
  [lt.Handle]: "bottom-right"
7565
7565
  };
7566
- function Zp({ nodeId: e, position: t, variant: n = lt.Handle, className: o, style: r = void 0, children: i, color: a, minWidth: s = 10, minHeight: l = 10, maxWidth: c = Number.MAX_VALUE, maxHeight: d = Number.MAX_VALUE, keepAspectRatio: f = !1, resizeDirection: u, autoScale: h = !0, shouldResize: g, onResizeStart: x, onResize: w, onResizeEnd: v }) {
7566
+ function Fp({ nodeId: e, position: t, variant: n = lt.Handle, className: o, style: r = void 0, children: i, color: a, minWidth: s = 10, minHeight: l = 10, maxWidth: c = Number.MAX_VALUE, maxHeight: d = Number.MAX_VALUE, keepAspectRatio: f = !1, resizeDirection: u, autoScale: h = !0, shouldResize: g, onResizeStart: x, onResize: w, onResizeEnd: v }) {
7567
7567
  const k = ka(), p = typeof e == "string" ? e : k, b = ne(), E = P.useRef(null), S = n === lt.Handle, C = ee(P.useCallback(Vp(S && h), [S, h]), re), z = P.useRef(null), D = t ?? Yp[n];
7568
7568
  P.useEffect(() => {
7569
7569
  if (!(!E.current || !p))
@@ -7584,19 +7584,19 @@ function Zp({ nodeId: e, position: t, variant: n = lt.Handle, className: o, styl
7584
7584
  onChange: (R, A) => {
7585
7585
  const { triggerNodeChanges: _, nodeLookup: y, parentLookup: M, nodeOrigin: N } = b.getState(), I = [], j = { x: R.x, y: R.y }, O = y.get(p);
7586
7586
  if (O && O.expandParent && O.parentId) {
7587
- const T = O.origin ?? N, B = R.width ?? O.measured.width ?? 0, $ = R.height ?? O.measured.height ?? 0, X = {
7587
+ const T = O.origin ?? N, B = R.width ?? O.measured.width ?? 0, $ = R.height ?? O.measured.height ?? 0, W = {
7588
7588
  id: O.id,
7589
7589
  parentId: O.parentId,
7590
7590
  rect: {
7591
7591
  width: B,
7592
7592
  height: $,
7593
- ...Xi({
7593
+ ...Wi({
7594
7594
  x: R.x ?? O.position.x,
7595
7595
  y: R.y ?? O.position.y
7596
7596
  }, { width: B, height: $ }, O.parentId, y, T)
7597
7597
  }
7598
- }, Z = bo([X], y, M, N);
7599
- I.push(...Z), j.x = R.x ? Math.max(T[0] * B, R.x) : void 0, j.y = R.y ? Math.max(T[1] * $, R.y) : void 0;
7598
+ }, F = bo([W], y, M, N);
7599
+ I.push(...F), j.x = R.x ? Math.max(T[0] * B, R.x) : void 0, j.y = R.y ? Math.max(T[1] * $, R.y) : void 0;
7600
7600
  }
7601
7601
  if (j.x !== void 0 && j.y !== void 0) {
7602
7602
  const T = {
@@ -7676,8 +7676,8 @@ function Zp({ nodeId: e, position: t, variant: n = lt.Handle, className: o, styl
7676
7676
  ...a && { [S ? "backgroundColor" : "borderColor"]: a }
7677
7677
  }, children: i });
7678
7678
  }
7679
- P.memo(Zp);
7680
- const Fp = ({
7679
+ P.memo(Fp);
7680
+ const Zp = ({
7681
7681
  data: e,
7682
7682
  selected: t
7683
7683
  }) => {
@@ -7692,14 +7692,14 @@ const Fp = ({
7692
7692
  ].filter(Boolean).join(" "),
7693
7693
  "aria-selected": t,
7694
7694
  children: [
7695
- o !== "start" && /* @__PURE__ */ m.jsx(ct, { type: "target", position: F.Top }),
7695
+ o !== "start" && /* @__PURE__ */ m.jsx(ct, { type: "target", position: Z.Top }),
7696
7696
  /* @__PURE__ */ m.jsx("div", { className: "bitflow-node-kind", children: r?.name ?? e.bitType }),
7697
7697
  /* @__PURE__ */ m.jsx("div", { className: "bitflow-node-title", title: e.summary, children: e.summary || " " }),
7698
- o !== "end" && /* @__PURE__ */ m.jsx(ct, { type: "source", position: F.Bottom })
7698
+ o !== "end" && /* @__PURE__ */ m.jsx(ct, { type: "source", position: Z.Bottom })
7699
7699
  ]
7700
7700
  }
7701
7701
  );
7702
- }, Xp = { bit: Fp }, Wp = 400, ln = 280, Ka = 0.6, Kr = (e, t) => {
7702
+ }, Wp = { bit: Zp }, Xp = 400, ln = 280, Ka = 0.6, Kr = (e, t) => {
7703
7703
  const n = Math.max(ln, t * Ka);
7704
7704
  return Math.round(Math.min(Math.max(e, ln), n));
7705
7705
  }, Kp = 16, qp = 64, Gp = ({
@@ -7743,7 +7743,7 @@ const Fp = ({
7743
7743
  }, Up = (e) => (
7744
7744
  // ReactFlow needs its provider above any component that uses its hooks, and
7745
7745
  // one per editor instance so two editors do not share a viewport.
7746
- /* @__PURE__ */ m.jsx(Za, { children: /* @__PURE__ */ m.jsx(Qp, { ...e }) })
7746
+ /* @__PURE__ */ m.jsx(Fa, { children: /* @__PURE__ */ m.jsx(Qp, { ...e }) })
7747
7747
  ), Qp = ({
7748
7748
  flow: e,
7749
7749
  locale: t,
@@ -7762,7 +7762,7 @@ const Fp = ({
7762
7762
  onError: (_) => s.current.onError?.(_)
7763
7763
  }),
7764
7764
  []
7765
- ), c = Jn(l), d = Ur(t), [f, u] = P.useState(!1), [h, g] = P.useState(null), [x, w] = P.useState(Wp), v = qr(["palette"]), k = qr(), p = P.useRef(null), b = P.useCallback(
7765
+ ), c = Jn(l), d = Ur(t), [f, u] = P.useState(!1), [h, g] = P.useState(null), [x, w] = P.useState(Xp), v = qr(["palette"]), k = qr(), p = P.useRef(null), b = P.useCallback(
7766
7766
  (_, y) => ke(_e, _, d, y),
7767
7767
  [d]
7768
7768
  );
@@ -7907,7 +7907,7 @@ const Fp = ({
7907
7907
  {
7908
7908
  nodes: z,
7909
7909
  edges: H,
7910
- nodeTypes: Xp,
7910
+ nodeTypes: Wp,
7911
7911
  nodesDraggable: !n,
7912
7912
  nodesConnectable: !n,
7913
7913
  edgesReconnectable: !n,
@@ -8145,7 +8145,7 @@ const Fp = ({
8145
8145
  }
8146
8146
  ),
8147
8147
  /* @__PURE__ */ m.jsx(
8148
- Zt,
8148
+ Ft,
8149
8149
  {
8150
8150
  label: r("allowSkip"),
8151
8151
  hint: r("allowSkipHint"),
@@ -8164,7 +8164,7 @@ const Fp = ({
8164
8164
  ...o.props("asking"),
8165
8165
  children: [
8166
8166
  /* @__PURE__ */ m.jsx(
8167
- Zt,
8167
+ Ft,
8168
8168
  {
8169
8169
  label: r("askConfidence"),
8170
8170
  hint: r("askConfidenceHint"),
@@ -8173,7 +8173,7 @@ const Fp = ({
8173
8173
  }
8174
8174
  ),
8175
8175
  /* @__PURE__ */ m.jsx(
8176
- Zt,
8176
+ Ft,
8177
8177
  {
8178
8178
  label: r("askReasoning"),
8179
8179
  checked: a.askReasoning,
@@ -8250,7 +8250,7 @@ const Fp = ({
8250
8250
  }
8251
8251
  ),
8252
8252
  /* @__PURE__ */ m.jsx(
8253
- Zt,
8253
+ Ft,
8254
8254
  {
8255
8255
  label: n("poolShuffle"),
8256
8256
  hint: n("poolShuffleHint"),