PageSourceSearch

https://rais133-omniroute-lite.hf.space/_next/static/chunks/vendor-xyflow.d7df32568376cf77.js

js rais133-omniroute-lite.hf.space collected 2026-10-03 17:15:56 UTC 40,320 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[74263],{25666:(e,t,n)=>{"use strict";n.d(t,{Do:()=>f,Eo:()=>ep,Er:()=>ew,Ff:()=>en,Fp:()=>eI,HF:()=>P,Hm:()=>ej,I$:()=>e6,IO:()=>O,Jo:()=>S,M_:()=>eD,Mi:()=>Q,No:()=>eJ,Q6:()=>ef,QE:()=>eu,Qc:()=>h,R4:()=>er,TG:()=>y,Tq:()=>D,U$:()=>_,Ue:()=>el,WZ:()=>d,X6:()=>U,YN:()=>eh,ZO:()=>$,_7:()=>X,_s:()=>ec,aE:()=>C,aQ:()=>e8,aW:()=>eV,aZ:()=>T,ah:()=>eB,b$:()=>k,b5:()=>eO,bK:()=>A,bi:()=>eZ,di:()=>te,e_:()=>eM,kM:()=>Z,kO:()=>ts,kf:()=>J,kr:()=>ee,mW:()=>G,ny:()=>c,oB:()=>B,oN:()=>eT,oj:()=>ex,q1:()=>ev,qX:()=>eA,qn:()=>e1,r8:()=>eU,rN:()=>ek,s_:()=>et,tM:()=>z,tn:()=>I,uD:()=>es,uL:()=>eG,uj:()=>eH,us:()=>ed,v5:()=>em,vS:()=>eF,xN:()=>x,xc:()=>E,yX:()=>p,zj:()=>eo});var o,i,r,l,a,s,u,d,c,h,f,y,p,x,g=n(96691),m=n(99625),w=n(29525),v=n(76022),b=n(67282),M=n(52921);let E={error001:(e="react")=>`Seems like you have not used zustand provider as an ancestor. Help: https://${e}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:o})=>`Couldn't create edge for ${e} handle id: "${"source"===e?n:o}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:e=>`Edge with id "${e}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},$=[[-1/0,-1/0],[1/0,1/0]],I=["Enter"," ","Escape"],z={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};(o=d||(d={})).Strict="strict",o.Loose="loose",(i=c||(c={})).Free="free",i.Vertical="vertical",i.Horizontal="horizontal",(r=h||(h={}
1)).Partial="partial",r.Full="full";let A={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};(l=f||(f={})).Bezier="default",l.Straight="straight",l.Step="step",l.SmoothStep="smoothstep",l.SimpleBezier="simplebezier",(a=y||(y={})).Arrow="arrow",a.ArrowClosed="arrowclosed",(s=p||(p={})).Left="left",s.Top="top",s.Right="right",s.Bottom="bottom";let H={[p.Left]:p.Right,[p.Right]:p.Left,[p.Top]:p.Bottom,[p.Bottom]:p.Top};function P(e){return null===e?null:e?"valid":"invalid"}let k=e=>"id"in e&&"source"in e&&"target"in e,B=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),L=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),N=(e,t=[0,0])=>{let{width:n,height:o}=es(e),i=e.origin??t,r=n*i[0],l=o*i[1];return{x:e.position.x-r,y:e.position.y-l}},S=(e,t={nodeOrigin:[0,0]})=>0===e.length?{x:0,y:0,width:0,height:0}:W(e.reduce((e,n)=>{let o="string"==typeof n,i=t.nodeLookup||o?void 0:n;return t.nodeLookup&&(i=o?t.nodeLookup.get(n):L(n)?n:t.nodeLookup.get(n.id)),q(e,i?K(i,t.nodeOrigin):{x:0,y:0,x2:0,y2:0})},{x:1/0,y:1/0,x2:-1/0,y2:-1/0})),T=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},o=!1;return e.forEach(e=>{(void 0===t.filter||t.filter(e))&&(n=q(n,K(e)),o=!0)}),o?W(n):{x:0,y:0,width:0,height:0}},_=(e,t,[n,o,i]=[0,0,1],r=!1,l=!1)=>{let a={...en(t,[n,o,i]),width:t.width/i,height:t.height/i},s=[];for(let t of e.values()){let{measured:e,selectable:n=!0,hidden:o=!1}=t;if(l&&!n||o)continue;let i=e.width??t.width??t.initialWidth??null,u=e.height??t.height??t.initialHeight??null,d=U(a,Z(t)),c=(i??0)*(u??0),h=r&&d>0;(!t.internals.handleBounds||h||d>=c||t.dragging)&&s.push(t)}return s};
1async function O({nodes:e,width:t,height:n,panZoom:o,minZoom:i,maxZoom:r},l){let a,s;if(0===e.size)return!0;let u=er(T((a=new Map,s=l?.nodes?new Set(l.nodes.map(e=>e.id)):null,e.forEach(e=>{e.measured.width&&e.measured.height&&(l?.includeHiddenNodes||!e.hidden)&&(!s||s.has(e.id))&&a.set(e.id,e)}),a)),t,n,l?.minZoom??i,l?.maxZoom??r,l?.padding??.1);return await o.setViewport(u,{duration:l?.duration,ease:l?.ease,interpolate:l?.interpolate}),!0}function C({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:o=[0,0],nodeExtent:i,onError:r}){let l=n.get(e),a=l.parentId?n.get(l.parentId):void 0,{x:s,y:u}=a?a.internals.positionAbsolute:{x:0,y:0},d=l.origin??o,c=l.extent||i;if("parent"!==l.extent||l.expandParent)a&&ea(l.extent)&&(c=[[l.extent[0][0]+s,l.extent[0][1]+u],[l.extent[1][0]+s,l.extent[1][1]+u]]);else if(a){let e=a.measured.width,t=a.measured.height;e&&t&&(c=[[s,u],[s+e,u+t]])}else r?.("005",E.error005());let h=ea(c)?V(t,c,l.measured):t;return(void 0===l.measured.width||void 0===l.measured.height)&&r?.("015",E.error015()),{position:{x:h.x-s+(l.measured.width??0)*d[0],y:h.y-u+(l.measured.height??0)*d[1]},positionAbsolute:h}}async function D({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:o,onBeforeDelete:i}){let r,l=new Set(e.map(e=>e.id)),a=[];for(let e of n){if(!1===e.deletable)continue;let t=l.has(e.id),n=!t&&e.parentId&&a.find(t=>t.id===e.parentId);(t||n)&&a.push(e)}let s=new Set(t.map(e=>e.id)),u=o.filter(e=>!1!==e.deletable),d=(r=new Set,a.forEach(e=>{r.add(e.id)}),u.filter(e=>r.has(e.source)||r.has(e.target)));for(let e of u)s.has(e.id)&&!d.find(t=>t.id===e.id)&&d.push(e);if(!i)return{edges:d,nodes:a};let c=await i({nodes:a,edges:d});return"boolean"==typeof c?c?{edges:d,nodes:a}:{edges:[],nodes:[]}:c}let R=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),V=(e={x:0,y:0},t,n)=>({x:R(e.x,t[0][0],t[1][0]-(n?.width??0)),y:R(e.y,t[0][1],t[1][1]-(n?.height??0))});function j(e,t,n){let{width:o,height:i}=es(n),{x:r,y:l}=n.internals.positionAbsolute;return V(e,[[r,l],[r+o,l+i]],t)}let Y=(e,t,n)=>e<t?R(Math.abs(e-t),1,t)/t:e>n?-R(Math.abs(e-n),1,t)/t:0,X=(e,t,n=15,o=40)=>[Y(e.x,o,t.width-o)*n,Y(e.y,o,t.height-o)*n],q=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),F=({x:e,y:t,width:n,height:o})=>({x:e,y:t,x2:e+n,y2:t+o}),W=({x:e,y:t,x2:n,y2:o})=>({x:e,y:t,width:n-e,height:o-t}),Z=(e,t=[0,0])=>{let{x:n,y:o}=L(e)?e.internals.positionAbsolute:N(e,t);return{x:n,y:o,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},K=(e,t=[0,0])=>{let{x:n,y:o}=L(e)?e.internals.positionAbsolute:N(e,t);return{x:n,y:o,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:o+(e.measured?.height??e.height??e.initialHeight??0)}},Q=(e,t)=>W(q(F(e),F(t))),U=(e,t)=>Math.ceil(Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x))*Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y))),G=e=>J(e.width)&&J(e.height)&&J(e.x)&&J(e.y),J=e=>!isNaN(e)&&isFinite(e),ee=(e,t)=>
1(e,t)=>{},et=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),en=({x:e,y:t},[n,o,i],r=!1,l=[1,1])=>{let a={x:(e-n)/i,y:(t-o)/i};return r?et(a,l):a},eo=({x:e,y:t},[n,o,i])=>({x:e*i+n,y:t*i+o});function ei(e,t){if("number"==typeof e)return Math.floor((t-t/(1+e))*.5);if("string"==typeof e&&e.endsWith("px")){let t=parseFloat(e);if(!Number.isNaN(t))return Math.floor(t)}if("string"==typeof e&&e.endsWith("%")){let n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}let er=(e,t,n,o,i,r)=>{let l=function(e,t,n){if("string"==typeof e||"number"==typeof e){let o=ei(e,n),i=ei(e,t);return{top:o,right:i,bottom:o,left:i,x:2*i,y:2*o}}if("object"==typeof e){let o=ei(e.top??e.y??0,n),i=ei(e.bottom??e.y??0,n),r=ei(e.left??e.x??0,t),l=ei(e.right??e.x??0,t);return{top:o,right:l,bottom:i,left:r,x:r+l,y:o+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}(r,t,n),a=R(Math.min((t-l.x)/e.width,(n-l.y)/e.height),o,i),s=e.x+e.width/2,u=e.y+e.height/2,d=t/2-s*a,c=n/2-u*a,h=function(e,t,n,o,i,r){let{x:l,y:a}=eo(e,[t,n,o]),{x:s,y:u}=eo({x:e.x+e.width,y:e.y+e.height},[t,n,o]);return{left:Math.floor(l),top:Math.floor(a),right:Math.floor(i-s),bottom:Math.floor(r-u)}}(e,d,c,a,t,n),f={left:Math.min(h.left-l.left,0),top:Math.min(h.top-l.top,0),right:Math.min(h.right-l.right,0),bottom:Math.min(h.bottom-l.bottom,0)};return{x:d-f.left+f.right,y:c-f.top+f.bottom,zoom:a}},el=()=>"u">typeof navigator&&navigator?.userAgent?.indexOf("Mac")>=0;function ea(e){return null!=e&&"parent"!==e}function es(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function eu(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function ed(e,t={width:0,height:0},n,o,i){let r={...e},l=o.get(n);if(l){let e=l.origin||i;r.x+=l.internals.positionAbsolute.x-(t.width??0)*e[0],r.y+=l.internals.positionAbsolute.y-(t.height??0)*e[1]}return r}function ec(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function eh(){let e,t;return{promise:new Promise((n,o)=>{e=n,t=o}),resolve:e,reject:t}}function ef(e){return{...z,...e||{}}}function ey(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:o,containerBounds:i}){let{x:r,y:l}=ev(e),a=en({x:r-(i?.left??0),y:l-(i?.top??0)},o),{x:s,y:u}=n?et(a,t):a;return{xSnapped:s,ySnapped:u,...a}}let ep=e=>({width:e.offsetWidth,height:e.offsetHeight}),ex=e=>e?.getRootNode?.()||window?.document,eg=["INPUT","SELECT","TEXTAREA"];function em(e){let t=e.composedPath?.()?.[0]||e.target;return t?.nodeType===1&&(eg.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".
1nokey"))}let ew=e=>"clientX"in e,ev=(e,t)=>{let n=ew(e),o=n?e.clientX:e.touches?.[0].clientX,i=n?e.clientY:e.touches?.[0].clientY;return{x:o-(t?.left??0),y:i-(t?.top??0)}},eb=(e,t,n,o,i)=>{let r=t.querySelectorAll(`.${e}`);return r&&r.length?Array.from(r).map(t=>{let r=t.getBoundingClientRect();return{id:t.getAttribute("data-handleid"),type:e,nodeId:i,position:t.getAttribute("data-handlepos"),x:(r.left-n.left)/o,y:(r.top-n.top)/o,...ep(t)}}):null};function eM({sourceX:e,sourceY:t,targetX:n,targetY:o,sourceControlX:i,sourceControlY:r,targetControlX:l,targetControlY:a}){let s=.125*e+.375*i+.375*l+.125*n,u=.125*t+.375*r+.375*a+.125*o,d=Math.abs(s-e),c=Math.abs(u-t);return[s,u,d,c]}function eE(e,t){return e>=0?.5*e:25*t*Math.sqrt(-e)}function e$({pos:e,x1:t,y1:n,x2:o,y2:i,c:r}){switch(e){case p.Left:return[t-eE(t-o,r),n];case p.Right:return[t+eE(o-t,r),n];case p.Top:return[t,n-eE(n-i,r)];case p.Bottom:return[t,n+eE(i-n,r)]}}function eI({sourceX:e,sourceY:t,sourcePosition:n=p.Bottom,targetX:o,targetY:i,targetPosition:r=p.Top,curvature:l=.25}){let[a,s]=e$({pos:n,x1:e,y1:t,x2:o,y2:i,c:l}),[u,d]=e$({pos:r,x1:o,y1:i,x2:e,y2:t,c:l}),[c,h,f,y]=eM({sourceX:e,sourceY:t,targetX:o,targetY:i,sourceControlX:a,sourceControlY:s,targetControlX:u,targetControlY:d});return[`M${e},${t} C${a},${s} ${u},${d} ${o},${i}`,c,h,f,y]}function ez({sourceX:e,sourceY:t,targetX:n,targetY:o}){let i=Math.abs(n-e)/2,r=Math.abs(o-t)/2;return[n<e?n+i:n-i,o<t?o+r:o-r,i,r]}function eA({sourceNode:e,targetNode:t,selected:n=!1,zIndex:o=0,elevateOnSelect:i=!1,zIndexMode:r="basic"}){if("manual"===r)return o;let l=Math.max(e.parentId||i&&e.selected?e.internals.z:0,t.parentId||i&&t.selected?t.internals.z:0);return(i&&n?o+1e3:o)+l}function eH({sourceNode:e,targetNode:t,width:n,height:o,transform:i}){let r=q(K(e),K(t));return r.x===r.x2&&(r.x2+=1),r.y===r.y2&&(r.y2+=1),U({x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:o/i[2]},W(r))>0}let eP=({source:e,sourceHandle:t,target:n,targetHandle:o})=>`xy-edge__${e}${t||""}-${n}${o||""}`,ek=(e,t,n={})=>{let o,i;if(!e.source||!e.target)return n.onError?.("006",E.error006()),t;let r=n.getEdgeId||eP;return(i=o=k(e)?{...e}:{...e,id:r(e)},t.some(e=>e.source===i.source&&e.target===i.target&&(e.sourceHandle===i.sourceHandle||!e.sourceHandle&&!i.sourceHandle)&&(e.targetHandle===i.targetHandle||!e.targetHandle&&!i.targetHandle)))?t:(null===o.sourceHandle&&delete o.sourceHandle,null===o.targetHandle&&delete o.targetHandle,t.concat(o))};function eB({sourceX:e,sourceY:t,targetX:n,targetY:o}){let[i,r,l,a]=ez({sourceX:e,sourceY:t,targetX:n,targetY:o});return[`M ${e},${t}L ${n},${o}`,i,r,l,a]}let eL={[p.Left]:{x:-1,y:0},[p.Right]:{x:1,y:0},[p.Top]:{x:0,y:-1},[p.Bottom]:{x:0,y:1}},eN=({source:e,sourcePosition:t=p.Bottom,target:n})=>t===p.Left||t===p.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},eS=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function eT({sourceX:e,sourceY:t,sourcePosition:n=p.Bottom,targetX:o,targetY:i,targetPosition:r=p.Top,borderRadius:l=5,centerX:a,centerY:s,offset:u=20,stepPosition:d=.5}){let[c,h,f,y,x]=function({source:e,sourcePosition:t=p.Bottom,target:n,targetPosition:o=p.Top,center:i,offset:r,stepPosition:l}){let a,s,u=eL[t],d=eL[o],c={x:e.x+u.x*r,y:e.y+u.y*r},h={x:n.x+d.x*r,y:n.y+d.y*r},f=eN({source:c,sourcePosition:t,target:h}),y=0!==f.x?"x":"y",x=f[y],g=[],m={x:0,y:0},w={x:0,y:0},[,,v,b]=ez({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(u[y]*d[y]==-1){"x"===y?(a=i.x??c.x+(h.x-c.x)*l,s=i.y??(c.y+h.y)/2):(a=i.x??(c.x+h.x)/2,s=i.y??c.y+(h.y-c.y)*l);let e=[{x:a,y:c.y},{x:a,y:h.y}],t=[{x:c.x,y:s},{x:h.x,y:s}];g=u[y]===x?"x"===y?e:t:"x"===y?t:e}else{let i=[{x:c.x,y:h.y}],l=[{x:h.x,y:c.y}];if(g="x"===y?u.x===x?l:i:u.y===x?i:l,t===o){let t=Math.abs(e[y]-n[y]);if(t<=r){let o=Math.min(r-1,r-t);u[y]===x?m[y]=(c[y]>e[y]?-1:1)*o:w[y]=(h[y]>n[y]?-1:1)*o}}if(t!==o){let e="x"===y?"y":"x",t=u[y]===d[e],n=c[e]>h[e],o=c[e]<h[e];(1===u[y]&&(!t&&n||t&&o)||1!==u[y]&&(!t&&o||t&&n))&&(g="x"===y?i:l)}let f={x:c.x+m.x,y:c.y+m.y},p={x:h.x+w.x,y:h.y+w.y};Math.max(Math.abs(f.x-g[0].x),Math.abs(p.x-g[0].x))>=Math.max(Math.abs(f.y-g[0].y),Math.abs(p.y-g[0].y))?(a=(f.x+p.x)/2,s=g[0].y):(a=g[0].x,s=(f.y+p.y)/2)}let M={x:c.x+m.x,y:c.y+m.y}
1,E={x:h.x+w.x,y:h.y+w.y};return[[e,...M.x!==g[0].x||M.y!==g[0].y?[M]:[],...g,...E.x!==g[g.length-1].x||E.y!==g[g.length-1].y?[E]:[],n],a,s,v,b]}({source:{x:e,y:t},sourcePosition:n,target:{x:o,y:i},targetPosition:r,center:{x:a,y:s},offset:u,stepPosition:d}),g=`M${c[0].x} ${c[0].y}`;for(let e=1;e<c.length-1;e++)g+=function(e,t,n,o){let i=Math.min(eS(e,t)/2,eS(t,n)/2,o),{x:r,y:l}=t;if(e.x===r&&r===n.x||e.y===l&&l===n.y)return`L${r} ${l}`;if(e.y===l){let t=e.x<n.x?-1:1,o=e.y<n.y?1:-1;return`L ${r+i*t},${l}Q ${r},${l} ${r},${l+i*o}`}let a=e.x<n.x?1:-1,s=e.y<n.y?-1:1;return`L ${r},${l+i*s}Q ${r},${l} ${r+i*a},${l}`}(c[e-1],c[e],c[e+1],l);return[g+=`L${c[c.length-1].x} ${c[c.length-1].y}`,h,f,y,x]}function e_(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function eO(e){let{sourceNode:t,targetNode:n}=e;if(!e_(t)||!e_(n))return null;let o=t.internals.handleBounds||eC(t.handles),i=n.internals.handleBounds||eC(n.handles),r=eR(o?.source??[],e.sourceHandle),l=eR(e.connectionMode===d.Strict?i?.target??[]:(i?.target??[]).concat(i?.source??[]),e.targetHandle);if(!r||!l)return e.onError?.("008",E.error008(!r?"source":"target",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;let a=r?.position||p.Bottom,s=l?.position||p.Top,u=eD(t,r,a),c=eD(n,l,s);return{sourceX:u.x,sourceY:u.y,targetX:c.x,targetY:c.y,sourcePosition:a,targetPosition:s}}function eC(e){if(!e)return null;let t=[],n=[];for(let o of e)o.width=o.width??1,o.height=o.height??1,"source"===o.type?t.push(o):"target"===o.type&&n.push(o);return{source:t,target:n}}function eD(e,t,n=p.Left,o=!1){let i=(t?.x??0)+e.internals.positionAbsolute.x,r=(t?.y??0)+e.internals.positionAbsolute.y,{width:l,height:a}=t??es(e);if(o)return{x:i+l/2,y:r+a/2};switch(t?.position??n){case p.Top:return{x:i+l/2,y:r};case p.Right:return{x:i+l,y:r+a/2};case p.Bottom:return{x:i+l/2,y:r+a};case p.Left:return{x:i,y:r+a/2}}}function eR(e,t){return e&&(t?e.find(e=>e.id===t):e[0])||null}function eV(e,t){if(!e)return"";if("string"==typeof e)return e;let n=t?`${t}__`:"";return`${n}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join("&")}`}function ej(e,{id:t,defaultColor:n,defaultMarkerStart:o,defaultMarkerEnd:i}){let r=new Set;return e.reduce((e,l)=>([l.markerStart||o,l.markerEnd||i].forEach(o=>{if(o&&"object"==typeof o){let i=eV(o,t);r.has(i)||(e.push({id:i,color:o.color||n,...o}),r.add(i))}}),e),[]).sort((e,t)=>e.id.localeCompare(t.id))}let eY={nodeOrigin:[0,0],nodeExtent:$,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},eX={...eY,checkEquality:!0};function eq(e,t){let n={...e};for(let e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function eF(e,t,n){let o=eq(eY,n);for(let n of e.values())if(n.parentId)eK(n,e,t,o);else{let e=V(N(n,o.nodeOrigin),ea(n.extent)?n.extent:o.nodeExtent,es(n));n.internals.positionAbsolute=e}}function eW(e){return"manual"===e}function eZ(e,t,n,o={}){let i=eq(eX,o),r={i:0},l=new Map(t),a=i?.elevateNodesOnSelect&&!eW(i.zIndexMode)?1e3:0,s=e.length>0,u=!1;for(let d of(t.clear(),n.clear(),e)){let e=l.get(d.id);if(i.checkEquality&&d===e?.internals.userNode)t.set(d.id,e);else{let n=V(N(d,i.nodeOrigin),ea(d.extent)?d.extent:i.nodeExtent,es(d));e={...i.defaults,...d,measured:{width:d.measured?.width,height:d.measured?.height},internals:{positionAbsolute:n,handleBounds:function(e,t){if(!e.handles)return e.measured?t?.internals.handleBounds:void 0;let n=[],o=[];for(let t of e.handles){let i={id:t.id,width:t.width??1,height:t.height??1,nodeId:e.id,x:t.x,y:t.y,position:t.position,type:t.type};"source"===t.type?n.push(i):"target"===t.type&&o.push(i)}return{source:n,target:o}}(d,e),z:eQ(d,a,i.zIndexMode),userNode:d}},t.set(d.id,e)}void 0!==e.measured&&void 0!==e.measured.width&&void 0!==e.measured.height||e.hidden||(s=!1),d.parentId&&eK(e,t,n,o,r),u||=d.selected??!1}return{nodesInitialized:s,hasSelectedNodes:u}}function eK(e,t,n,o,i){let{elevateNodesOnSelect:r,nodeOrigin:l,nodeExtent:a,zIndexMode:s}=eq(eY,o),u=e.parentId,d=t.get(u);if(!d)return void console.warn(`Parent node ${u} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);!function(e,t){if(!e.parentId)return;let n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}(e,n),i&&!d.parentId&&void 0===d.internals.rootParentIndex&&"auto"===s&&(d.internals.rootParentIndex=++i.i,d.internals.z=d.internals.z+10*i.i),i&&void 0!==d.internals.rootParentIndex&&(i.i=d.internals.rootParentIndex);let{x:c,y:h,z:f}=function(e,t,n,o,i,r){let{x:l,y:a}=t.internals.positionAbsolute,s=es(e),u=N(e,n),d=ea(e.extent)?V(u,e.extent,s):u,c=V({x:l+d.x,y:a+d.y},o,s);"parent"===e.extent&&(c=j(c,s,t));let h=eQ(e,i,r),f=t.internals.z??0;return{x:c.x,y:c.y,z:f>=h?f+1:h}}(e,d,l,a,r&&!eW(s)?1e3:0,s),{positionAbsolute:y}=e.internals,p=c!==y.x||h!==y.y;(p||f!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:p?{x:c,y:h}:y,z:f}})}function eQ(e,t,n){let o=J(e.zIndex)?e.zIndex:0;return eW(n)?o:o+(e.selected?t:0)}function eU(e,t,n,o=[0,0]){let i=[],r=new Map;for(let n of e){let e=t.get(n.parentId);if(!e)continue;let o=Q(r.get(n.parentId)?.expandedRect??Z(e),n.rect);r.set(n.parentId,{expandedRect:o,parent:e})}return r.size>0&&r.forEach(({expandedRect:t,parent:r},l)=>{let a=r.internals.positionAbsolute,s=es(r),u=r.origin??o,d=t.x<a.x?Math.round(Math.abs(a.x-t.x)):0,c=t.y<a.y?Math.round(Math.abs(a.y-t.y)):0,h=Math.max(s.width,Math.round(t.width)),f=Math.max(s.height,Math.round(t.height)),y=(h-s.width)*u[0],p=(f-s.height)*u[1];(d>0||c>0||y||p)&&(i.push({id:l,type:"position",position:{x:r.position.x-d+y,y:r.position.y-c+p}}),n.get(l)?.forEach(t=>{e.some(e=>e.id===t.id)||i.push({id:t.id,type:"position",position:{x:t.position.x+d,y:t.position.y+c}})})),(s.width<t.width||s.height<t.height||d||c)&&i.push({id:l,type:"dimensions",setAttributes:!0,dimensions:{width:h+(d?u[0]*d-y:0),height:f+(c?u[1]*c-p:0)}})}),i}function eG(e,t,n,o,i,r,l){let a=o?.querySelector(".xyflow__viewport"),s=!1;if(!a)return{changes:[],updatedInternals:s};let u=[],d=window.getComputedStyle(a),{m22:c}=new window.DOMMatrixReadOnly(d.transform),h=[];for(let o of e.values()){let e=t.get(o.id);if(!e)continue;if(e.hidden){t.set(e.id,{...e,internals:{...e.internals,handleBounds:void 0}}),s=!0;continue}let a=ep(o.nodeElement),d=e.measured.width!==a.width||e.measured.height!==a.height;if(a.width&&a.height&&(d||!e.internals.handleBounds||o.force)){let f=o.nodeElement.getBoundingClientRect(),y=ea(e.extent)?e.extent:r,{positionAbsolute:p}=e.internals;e.parentId&&"parent"===e.extent?p=j(p,a,t.get(e.parentId)):y&&(p=V(p,y,a));let x={...e,measured:a,internals:{...e.internals,positionAbsolute:p,handleBounds:{source:eb("source",o.nodeElement,f,c,e.id),target:eb("target",o.nodeElement,f,c,e.id)}}};t.set(e.id,x),e.parentId&&eK(x,t,n,{nodeOrigin:i,zIndexMode:l}
1),s=!0,d&&(u.push({id:e.id,type:"dimensions",dimensions:a}),e.expandParent&&e.parentId&&h.push({id:e.id,parentId:e.parentId,rect:Z(x,i)}))}}if(h.length>0){let e=eU(h,t,n,i);u.push(...e)}return{changes:u,updatedInternals:s}}async function eJ({delta:e,panZoom:t,transform:n,translateExtent:o,width:i,height:r}){if(!t||!e.x&&!e.y)return!1;let l=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[i,r]],o);return!!l&&(l.x!==n[0]||l.y!==n[1]||l.k!==n[2])}function e0(e,t,n,o,i,r){let l=i,a=o.get(l)||new Map;o.set(l,a.set(n,t)),l=`${i}-${e}`;let s=o.get(l)||new Map;if(o.set(l,s.set(n,t)),r){l=`${i}-${e}-${r}`;let a=o.get(l)||new Map;o.set(l,a.set(n,t))}}function e1(e,t,n){for(let o of(e.clear(),t.clear(),n)){let{source:n,target:i,sourceHandle:r=null,targetHandle:l=null}=o,a={edgeId:o.id,source:n,target:i,sourceHandle:r,targetHandle:l},s=`${n}-${r}--${i}-${l}`;e0("source",a,`${i}-${l}--${n}-${r}`,e,n,r),e0("target",a,s,e,i,l),t.set(o.id,o)}}function e2(e,t,n){let o=e;do{if(o?.matches?.(t))return!0;if(o===n)break;o=o?.parentElement}while(o);return!1}function e5({nodeId:e,dragItems:t,nodeLookup:n,dragging:o=!0}){let i=[];for(let[e,r]of t){let t=n.get(e)?.internals.userNode;t&&i.push({...t,position:r.position,dragging:o})}if(!e)return[i[0],i];let r=n.get(e)?.internals.userNode;return[r?{...r,position:t.get(e)?.position||r.position,dragging:o}:i[0],i]}function e6({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:o,onDragStop:i}){let r={x:null,y:null},l=0,a=new Map,s=!1,u={x:0,y:0},d=null,c=!1,h=null,f=!1,y=!1,p=null;return{update:function({noDragClassName:x,handleSelector:w,domNode:v,isSelectable:b,nodeId:M,nodeClickDistance:E=0}){function $({x:e,y:n}
1){let{nodeLookup:i,nodeExtent:l,snapGrid:s,snapToGrid:u,nodeOrigin:d,onNodeDrag:c,onSelectionDrag:h,onError:f,updateNodePositions:x}=t();r={x:e,y:n};let g=!1,m=a.size>1,w=m&&l?F(T(a)):null,v=m&&u?function({dragItems:e,snapGrid:t,x:n,y:o}){let i=e.values().next().value;if(!i)return null;let r={x:n-i.distance.x,y:o-i.distance.y},l=et(r,t);return{x:l.x-r.x,y:l.y-r.y}}({dragItems:a,snapGrid:s,x:e,y:n}):null;for(let[t,o]of a){if(!i.has(t))continue;let r={x:e-o.distance.x,y:n-o.distance.y};u&&(r=v?{x:Math.round(r.x+v.x),y:Math.round(r.y+v.y)}:et(r,s));let a=null;if(m&&l&&!o.extent&&w){let{positionAbsolute:e}=o.internals,t=e.x-w.x+l[0][0],n=e.x+o.measured.width-w.x2+l[1][0];a=[[t,e.y-w.y+l[0][1]],[n,e.y+o.measured.height-w.y2+l[1][1]]]}let{position:c,positionAbsolute:h}=C({nodeId:t,nextPosition:r,nodeLookup:i,nodeExtent:a||l,nodeOrigin:d,onError:f});g=g||o.position.x!==c.x||o.position.y!==c.y,o.position=c,o.internals.positionAbsolute=h}if(y=y||g,g&&(x(a,!0),p&&(o||c||!M&&h))){let[e,t]=e5({nodeId:M,dragItems:a,nodeLookup:i});o?.(p,a,e,t),c?.(p,e,t),M||h?.(p,t)}}async function I(){if(!d)return;let{transform:e,panBy:n,autoPanSpeed:o,autoPanOnNodeDrag:i}=t();if(!i){s=!1,cancelAnimationFrame(l);return}let[a,c]=X(u,d,o);(0!==a||0!==c)&&(r.x=(r.x??0)-a/e[2],r.y=(r.y??0)-c/e[2],await n({x:a,y:c})&&$(r)),l=requestAnimationFrame(I)}function z(o){let{nodeLookup:i,multiSelectionActive:l,nodesDraggable:s,transform:u,snapGrid:h,snapToGrid:f,selectNodesOnDrag:y,onNodeDragStart:p,onSelectionDragStart:x,unselectNodesAndEdges:g}=t();c=!0,y&&b||l||!M||i.get(M)?.selected||g(),b&&y&&M&&e?.(M);let m=ey(o.sourceEvent,{transform:u,snapGrid:h,snapToGrid:f,containerBounds:d});if(r=m,(a=function(e,t,n,o){let i=new Map;for(let[r,l]of e)if((l.selected||l.id===o)&&(!l.parentId||!function e(t,n){if(!t.parentId)return!1;let o=n.get(t.parentId);return!!o&&(!!o.selected||e(o,n))}(l,e))&&(l.draggable||t&&void 0===l.draggable)){let t=e.get(r);t&&i.set(r,{id:r,position:t.position||{x:0,y:0},distance:{x:n.x-t.internals.positionAbsolute.x,y:n.y-t.internals.positionAbsolute.y},extent:t.extent,parentId:t.parentId,origin:t.origin,expandParent:t.expandParent,internals:{positionAbsolute:t.internals.positionAbsolute||{x:0,y:0}},measured:{width:t.measured.width??0,height:t.measured.height??0}})}return i}(i,s,m,M)).size>0&&(n||p||!M&&x)){let[e,t]=e5({nodeId:M,dragItems:a,nodeLookup:i});n?.(o.sourceEvent,a,e,t),p?.(o.sourceEvent,e,t),M||x?.(o.sourceEvent,t)}}h=(0,m.A)(v);let A=(0,g.A)().clickDistance(E).on("start",e=>{let{domNode:n,nodeDragThreshold:o,transform:i,snapGrid:l,snapToGrid:a}=t();d=n?.getBoundingClientRect()||null,f=!1,y=!1,p=e.sourceEvent,0===o&&z(e),r=ey(e.sourceEvent,{transform:i,snapGrid:l,snapToGrid:a,containerBounds:d}),u=ev(e.sourceEvent,d)}).on("drag",e=>
1{let{autoPanOnNodeDrag:n,transform:o,snapGrid:i,snapToGrid:l,nodeDragThreshold:h,nodeLookup:y}=t(),x=ey(e.sourceEvent,{transform:o,snapGrid:i,snapToGrid:l,containerBounds:d});if(p=e.sourceEvent,("touchmove"===e.sourceEvent.type&&e.sourceEvent.touches.length>1||M&&!y.has(M))&&(f=!0),!f){if(!s&&n&&c&&(s=!0,I()),!c){let t=ev(e.sourceEvent,d),n=t.x-u.x,o=t.y-u.y;Math.sqrt(n*n+o*o)>h&&z(e)}(r.x!==x.xSnapped||r.y!==x.ySnapped)&&a&&c&&(u=ev(e.sourceEvent,d),$(x))}}).on("end",e=>{if(!c||f){f&&a.size>0&&t().updateNodePositions(a,!1);return}if(s=!1,c=!1,cancelAnimationFrame(l),a.size>0){let{nodeLookup:n,updateNodePositions:o,onNodeDragStop:r,onSelectionDragStop:l}=t();if(y&&(o(a,!1),y=!1),i||r||!M&&l){let[t,o]=e5({nodeId:M,dragItems:a,nodeLookup:n,dragging:!1});i?.(e.sourceEvent,a,t,o),r?.(e.sourceEvent,t,o),M||l?.(e.sourceEvent,o)}}}).filter(e=>{let t=e.target;return!e.button&&(!x||!e2(t,`.${x}`,v))&&(!w||e2(t,w,v))});h.call(A)},destroy:function(){h?.on(".drag",null)}}}function e3(e,t,n,o,i,r=!1){let l=o.get(e);if(!l)return null;let a="strict"===i?l.internals.handleBounds?.[t]:[...l.internals.handleBounds?.source??[],...l.internals.handleBounds?.target??[]],s=(n?a?.find(e=>e.id===n):a?.[0])??null;return s&&r?{...s,...eD(l,s,s.position,!0)}:s}function e7(e,t){return e?e:t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null}let e9=()=>!0;function e4(e,{handle:t,connectionMode:n,fromNodeId:o,fromHandleId:i,fromType:r,doc:l,lib:a,flowId:s,isValidConnection:u=e9,nodeLookup:c}){let h="target"===r,f=t?l.querySelector(`.${a}-flow__handle[data-id="${s}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x:y,y:p}=ev(e),x=l.elementFromPoint(y,p),g=x?.classList.contains(`${a}-flow__handle`)?x:f,m={handleDomNode:g,isValid:!1,connection:null,toHandle:null};if(g){let e=e7(void 0,g),t=g.getAttribute("data-nodeid"),r=g.getAttribute("data-handleid"),l=g.classList.contains("connectable"),a=g.classList.contains("connectableend");if(!t||!e)return m;let s={source:h?t:o,sourceHandle:h?r:i,target:h?o:t,targetHandle:h?i:r};m.connection=s,m.isValid=l&&a&&(n===d.Strict?h&&"source"===e||!h&&"target"===e:t!==o||r!==i)&&u(s),m.toHandle=e3(t,e,r,c,n,!0)}return m}let e8={onPointerDown:function(e,{connectionMode:t,connectionRadius:n,handleId:o,nodeId:i,edgeUpdaterType:r,isTarget:l,domNode:a,nodeLookup:s,lib:u,autoPanOnConnect:d,flowId:c,panBy:h,cancelConnection:f,onConnectStart:y,onConnect:x,onConnectEnd:g,isValidConnection:m=e9,onReconnectEnd:w,updateConnection:v,getTransform:b,getFromHandle:M,autoPanSpeed:E,dragThreshold:$=1,handleDomNode:I}){let z,A=ex(e.target),P=0,{x:k,y:B}=ev(e),L=e7(r,I),N=a?.getBoundingClientRect(),S=!1;if(!N||!L)return;let T=e3(i,L,o,s,t);if(!T)return;let _=ev(e,N),O=!1,C=null,D=!1,R=null,V={...T,nodeId:i,type:L,position:T.position},j=s.get(i),Y={inProgress:!0,isValid:null,from:eD(j,V,p.Left,!0),fromHandle:V,fromPosition:V.position,fromNode:j,to:_,toHandle:null,toPosition:H[V.position],toNode:null,pointer:_};function q(){S=!0,v(Y),y?.(e,{nodeId:i,handleId:o,handleType:L})}function F(e){var r,a;let f;if(!S){let{x:t,y:n}=ev(e),o=t-k,i=n-B;if(!(o*o+i*i>$*$))return;q()}if(!M()||!V)return void W(e);let y=b();z=function(e,t,n,o){let i=[],r=1/0;for(let l of function(e,t,n){let o=[],i={x:e.x-n,y:e.y-n,width:2*n,height:2*n};for(let e of t.values())U(i,Z(e))>0&&o.push(e);return o}(e,n,t+250))for(let n of[...l.internals.handleBounds?.source??[],...l.internals.handleBounds?.target??[]]){if(o.nodeId===n.nodeId&&o.type===n.type&&o.id===n.id)continue;let{x:a,y:s}=eD(l,n,n.position,!0),u=Math.sqrt(Math.pow(a-e.x,2)+Math.pow(s-e.y,2));u>t||(u<r?(i=[{...n,x:a,y:s}],r=u):u===r&&i.push({...n,x:a,y:s}))}if(!i.length)return null;if(i.length>1){let e="source"===o.type?"target":"source";return i.find(t=>t.type===e)??i[0]}return i[0]}(en(_=ev(e,N),y,!1,[1,1]),n,s,V),O||(!function e(){if(!d||!N)return;let[t,n]=X(_,N,E);h({x:t,y:n}),P=requestAnimationFrame(e)}(),O=!0);let x=e4(e,{handle:z,connectionMode:t,fromNodeId:i,fromHandleId:o,fromType:l?"target":"source",isValidConnection:m,doc:A,lib:u,flowId:c,nodeLookup:s});R=x.handleDomNode,C=x.connection,r=!!z,a=x.isValid,f=null,a?f=!0:r&&!a&&(f=!1),D=f;let g=s.get(i),w=g?eD(g,V,p.Left,!0):Y.from,I={...Y,from:w,isValid:D,to:x.toHandle&&D?eo({x:x.toHandle.x,y:x.toHandle.y}
1,y):_,toHandle:x.toHandle,toPosition:D&&x.toHandle?x.toHandle.position:H[V.position],toNode:x.toHandle?s.get(x.toHandle.nodeId):null,pointer:_};v(I),Y=I}function W(e){if(!("touches"in e)||!(e.touches.length>0)){if(S){(z||R)&&C&&D&&x?.(C);let{inProgress:t,...n}=Y,o={...n,toPosition:Y.toHandle?Y.toPosition:null};g?.(e,o),r&&w?.(e,o)}f(),cancelAnimationFrame(P),O=!1,D=!1,C=null,R=null,A.removeEventListener("mousemove",F),A.removeEventListener("mouseup",W),A.removeEventListener("touchmove",F),A.removeEventListener("touchend",W)}}0===$&&q(),A.addEventListener("mousemove",F),A.addEventListener("mouseup",W),A.addEventListener("touchmove",F),A.addEventListener("touchend",W)},isValid:e4};function te({domNode:e,panZoom:t,getTransform:n,getViewScale:o}){let i=(0,m.A)(e);return{update:function({translateExtent:e,width:r,height:l,zoomStep:a=1,pannable:s=!0,zoomable:u=!0,inversePan:d=!1}){let c=[0,0],h=(0,v.s_)().on("start",e=>{("mousedown"===e.sourceEvent.type||"touchstart"===e.sourceEvent.type)&&(c=[e.sourceEvent.clientX??e.sourceEvent.touches[0].clientX,e.sourceEvent.clientY??e.sourceEvent.touches[0].clientY])}).on("zoom",s?i=>{let a=n();if("mousemove"!==i.sourceEvent.type&&"touchmove"!==i.sourceEvent.type||!t)return;let s=[i.sourceEvent.clientX??i.sourceEvent.touches[0].clientX,i.sourceEvent.clientY??i.sourceEvent.touches[0].clientY],u=[s[0]-c[0],s[1]-c[1]];c=s;let h=o()*Math.max(a[2],Math.log(a[2]))*(d?-1:1),f={x:a[0]-u[0]*h,y:a[1]-u[1]*h};t.setViewportConstrained({x:f.x,y:f.y,zoom:a[2]},[[0,0],[r,l]],e)}:null).on("zoom.wheel",u?e=>{if("wheel"!==e.sourceEvent.type||!t)return;let o=n(),i=e.sourceEvent.ctrlKey&&el()?10:1,r=-e.sourceEvent.deltaY*(1===e.sourceEvent.deltaMode?.05:e.sourceEvent.deltaMode?1:.002)*a,l=o[2]*Math.pow(2,r*i);t.scaleTo(l)}:null);i.call(h,{})},destroy:function(){i.on("zoom",null)},pointer:w.A}}let tt=e=>({x:e.x,y:e.y,zoom:e.k}),tn=({x:e,y:t,zoom:n})=>v.GS.translate(e,t).scale(n),to=(e,t)=>e.target.closest(`.${t}`),ti=(e,t)=>2===t&&Array.isArray(e)&&e.includes(2),tr=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,tl=(e,t=0,n=tr,o=()=>{})=>{let i="number"==typeof t&&t>0;return i||o(),i?e.transition().duration(t).ease(n).on("end",o):e},ta=e=>{let t=e.ctrlKey&&el()?10:1;return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*t};
1function ts({domNode:e,minZoom:t,maxZoom:n,translateExtent:o,viewport:i,onPanZoom:r,onPanZoomStart:l,onPanZoomEnd:a,onDraggingChange:s}){let u={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},d=e.getBoundingClientRect(),h=(0,v.s_)().scaleExtent([t,n]).translateExtent(o),f=(0,m.A)(e).call(h);E({x:i.x,y:i.y,zoom:R(i.zoom,t,n)},[[0,0],[d.width,d.height]],o);let y=f.on("wheel.zoom"),p=f.on("dblclick.zoom");async function x(e,t){return!!f&&new Promise(n=>{h?.interpolate(t?.interpolate==="linear"?b.A:M.A).transform(tl(f,t?.duration,t?.ease,()=>n(!0)),e)})}function g(){h.on("zoom",null)}async function E(e,t,n){let o=tn(e),i=h?.constrain()(o,t,n);return i&&await x(i),i}return h.wheelDelta(ta),{update:function({noWheelClassName:e,noPanClassName:t,onPaneContextMenu:n,userSelectionActive:o,panOnScroll:i,panOnDrag:d,panOnScrollMode:x,panOnScrollSpeed:m,preventScrolling:v,zoomOnPinch:b,zoomOnScroll:M,zoomOnDoubleClick:E,zoomActivationKeyPressed:$,lib:I,onTransformChange:z,connectionInProgress:A,paneClickDistance:H,selectionOnDrag:P}){o&&!u.isZoomingOrPanning&&g();let k=i&&!$&&!o;h.clickDistance(P?1/0:!J(H)||H<0?0:H);let B=k?function({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:o,panOnScrollMode:i,panOnScrollSpeed:r,zoomOnPinch:l,onPanZoomStart:a,onPanZoom:s,onPanZoomEnd:u}){return d=>{if(to(d,t))return d.ctrlKey&&d.preventDefault(),!1;d.preventDefault(),d.stopImmediatePropagation();let h=n.property("__zoom").k||1;if(d.ctrlKey&&l){let e=(0,w.A)(d),t=h*Math.pow(2,ta(d));o.scaleTo(n,t,e,d);return}let f=1===d.deltaMode?20:1,y=i===c.Vertical?0:d.deltaX*f,p=i===c.Horizontal?0:d.deltaY*f;!el()&&d.shiftKey&&i!==c.Vertical&&(y=d.deltaY*f,p=0),o.translateBy(n,-(y/h)*r,-(p/h)*r,{internal:!0});let x=tt(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(s?.(d,x),e.panScrollTimeout=setTimeout(()=>{u?.(d,x),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,a?.(d,x))}}({zoomPanValues:u,noWheelClassName:e,d3Selection:f,d3Zoom:h,panOnScrollMode:x,panOnScrollSpeed:m,zoomOnPinch:b,onPanZoomStart:l,onPanZoom:r,onPanZoomEnd:a}):function({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(o,i){let r="wheel"===o.type,l=!t&&r&&!o.ctrlKey,a=to(o,e);if(o.ctrlKey&&r&&a&&o.preventDefault(),l||a)return null;o.preventDefault(),n.call(this,o,i)}}({noWheelClassName:e,preventScrolling:v,d3ZoomHandler:y});f.on("wheel.zoom",B,{passive:!1});let L=function({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return o=>{if(o.sourceEvent?.internal)return;let i=tt(o.transform);e.mouseButton=o.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=i,o.sourceEvent?.type==="mousedown"&&t(!0),n&&n?.(o.sourceEvent,i)}}({zoomPanValues:u,onDraggingChange:s,onPanZoomStart:l});h.on("start",L);let N=function({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:o,onPanZoom:i}){return r=>{e.usedRightMouseButton=!!(n&&ti(t,e.mouseButton??0)),r.sourceEvent?.sync||o([r.transform.x,r.transform.y,r.transform.k]),i&&!r.sourceEvent?.internal&&i?.(r.sourceEvent,tt(r.transform))}}({zoomPanValues:u,panOnDrag:d,onPaneContextMenu:!!n,onPanZoom:r,onTransformChange:z});h.on("zoom",N);let S=function({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:o,onPanZoomEnd:i,onPaneContextMenu:r}){return l=>{if(!l.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,r&&ti(t,e.mouseButton??0)&&!e.usedRightMouseButton&&l.sourceEvent&&r(l.sourceEvent),e.usedRightMouseButton=!1,o(!1),i)){let t=tt(l.transform);e.prevViewport=t,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{i?.(l.sourceEvent,t)},150*!!n)}}}({zoomPanValues:u,panOnDrag:d,panOnScroll:i,onPaneContextMenu:n,onPanZoomEnd:a,onDraggingChange:s});h.on("end",S);let T=function({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:o,panOnScroll:i,zoomOnDoubleClick:r,userSelectionActive:l,noWheelClassName:a,noPanClassName:s,lib:u,connectionInProgress:d}){return c=>{let h=e||t,f=n&&c.ctrlKey,y="wheel"===c.type;if(1===c.button&&"mousedown"===c.type&&(to(c,`${u}-flow__node`)||to(c,`${u}-flow__edge`)))return!0;
1if(!o&&!h&&!i&&!r&&!n||l||d&&!y||to(c,a)&&y||to(c,s)&&(!y||i&&y&&!e)||!n&&c.ctrlKey&&y)return!1;if(!n&&"touchstart"===c.type&&c.touches?.length>1)return c.preventDefault(),!1;if(!h&&!i&&!f&&y||!o&&("mousedown"===c.type||"touchstart"===c.type)||Array.isArray(o)&&!o.includes(c.button)&&"mousedown"===c.type)return!1;let p=Array.isArray(o)&&o.includes(c.button)||!c.button||c.button<=1;return(!c.ctrlKey||y)&&p}}({zoomActivationKeyPressed:$,panOnDrag:d,zoomOnScroll:M,panOnScroll:i,zoomOnDoubleClick:E,zoomOnPinch:b,userSelectionActive:o,noPanClassName:t,noWheelClassName:e,lib:I,connectionInProgress:A});h.filter(T),E?f.on("dblclick.zoom",p):f.on("dblclick.zoom",null)},destroy:g,setViewport:async function e(e,t){let n=tn(e);return await x(n,t),n},setViewportConstrained:E,getViewport:function(){let e=f?(0,v._V)(f.node()):{x:0,y:0,k:1};return{x:e.x,y:e.y,zoom:e.k}},scaleTo:async function e(e,t){return!!f&&new Promise(n=>{h?.interpolate(t?.interpolate==="linear"?b.A:M.A).scaleTo(tl(f,t?.duration,t?.ease,()=>n(!0)),e)})},scaleBy:async function e(e,t){return!!f&&new Promise(n=>{h?.interpolate(t?.interpolate==="linear"?b.A:M.A).scaleBy(tl(f,t?.duration,t?.ease,()=>n(!0)),e)})},setScaleExtent:function(e){h?.scaleExtent(e)},setTranslateExtent:function(e){h?.translateExtent(e)},syncViewport:function(e){if(f){let t=tn(e),n=f.property("__zoom");(n.k!==e.zoom||n.x!==e.x||n.y!==e.y)&&h?.transform(f,t,null,{sync:!0})}},setClickDistance:function(e){let t=!J(e)||e<0?0:e;h?.clickDistance(t)}}}(u=x||(x={})).Line="line",u.Handle="handle"},53255:()=>{},82282:(e,t,n)=>{"use strict";n.d(t,{h:()=>c,n:()=>u});var o=n(12115),i=n(94577);let r=e=>{let t,n=new Set,o=(e,o)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=o?o:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,r={setState:o,getState:i,getInitialState:()=>l,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},l=t=e(o,i,r);return r},{useDebugValue:l}=o,{useSyncExternalStoreWithSelector:a}=i,s=e=>e;function u(e,t=s,n){let o=a(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return l(o),o}let d=(e,t)=>{let n=e?r(e):r,o=(e,o=t)=>u(n,e,o);return Object.assign(o,n),o},c=(e,t)=>e?d(e,t):d},94907:(e,t,n)=>{"use strict";function o(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,o]of e)if(!Object.is(o,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let o of n)if(!Object.prototype.hasOwnProperty.call(t,o)||!Object.is(e[o],t[o]))return!1;return!0}n.d(t,{x:()=>o})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.