diff --git a/assets/index-BoBU5Mcy.js b/assets/index-6nL5QVMU.js similarity index 73% rename from assets/index-BoBU5Mcy.js rename to assets/index-6nL5QVMU.js index 9cd9928..41dd46f 100644 --- a/assets/index-BoBU5Mcy.js +++ b/assets/index-6nL5QVMU.js @@ -1,4 +1,4 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&o(l)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const lt=(e,t)=>e===t,F=Symbol("solid-proxy"),se=Symbol("solid-track"),ie={equals:lt};let Ie=Ze;const Y=1,re=2,Be={owned:null,cleanups:null,context:null,owner:null};var b=null;let be=null,ct=null,P=null,k=null,X=null,ye=0;function Z(e,t){const n=P,o=b,s=e.length===0,i=t===void 0?o:t,l=s?Be:{owned:null,cleanups:null,context:i?i.context:null,owner:i},r=s?e:()=>e(()=>z(()=>ve(l)));b=l,P=null;try{return H(r,!0)}finally{P=n,b=o}}function G(e,t){t=t?Object.assign({},ie,t):ie;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},o=s=>(typeof s=="function"&&(s=s(n.value)),Ke(n,s));return[Ye.bind(n),o]}function O(e,t,n){const o=Me(e,t,!1,Y);ee(o)}function at(e,t,n){Ie=mt;const o=Me(e,t,!1,Y);o.user=!0,X?X.push(o):ee(o)}function I(e,t,n){n=n?Object.assign({},ie,n):ie;const o=Me(e,t,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=n.equals||void 0,ee(o),Ye.bind(o)}function ft(e){return H(e,!1)}function z(e){if(P===null)return e();const t=P;P=null;try{return e()}finally{P=t}}function Re(e){at(()=>z(e))}function Ne(e){return b===null||(b.cleanups===null?b.cleanups=[e]:b.cleanups.push(e)),e}function Se(){return P}function ut(e,t){const n=Symbol("context");return{id:n,Provider:vt(n),defaultValue:e}}function dt(e){return b&&b.context&&b.context[e.id]!==void 0?b.context[e.id]:e.defaultValue}function Xe(e){const t=I(e),n=I(()=>pe(t()));return n.toArray=()=>{const o=n();return Array.isArray(o)?o:o!=null?[o]:[]},n}function Ye(){if(this.sources&&this.state)if(this.state===Y)ee(this);else{const e=k;k=null,H(()=>ce(this),!1),k=e}if(P){const e=this.observers?this.observers.length:0;P.sources?(P.sources.push(this),P.sourceSlots.push(e)):(P.sources=[this],P.sourceSlots=[e]),this.observers?(this.observers.push(P),this.observerSlots.push(P.sources.length-1)):(this.observers=[P],this.observerSlots=[P.sources.length-1])}return this.value}function Ke(e,t,n){let o=e.value;return(!e.comparator||!e.comparator(o,t))&&(e.value=t,e.observers&&e.observers.length&&H(()=>{for(let s=0;s1e6)throw k=[],new Error},!1)),t}function ee(e){if(!e.fn)return;ve(e);const t=ye;ht(e,e.value,t)}function ht(e,t,n){let o;const s=b,i=P;P=b=e;try{o=e.fn(t)}catch(l){return e.pure&&(e.state=Y,e.owned&&e.owned.forEach(ve),e.owned=null),e.updatedAt=n+1,We(l)}finally{P=i,b=s}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Ke(e,o):e.value=o,e.updatedAt=n)}function Me(e,t,n,o=Y,s){const i={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:b,context:b?b.context:null,pure:n};return b===null||b!==Be&&(b.owned?b.owned.push(i):b.owned=[i]),i}function le(e){if(e.state===0)return;if(e.state===re)return ce(e);if(e.suspense&&z(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;n--)if(e=t[n],e.state===Y)ee(e);else if(e.state===re){const o=k;k=null,H(()=>ce(e,t[0]),!1),k=o}}function H(e,t){if(k)return e();let n=!1;t||(k=[]),X?n=!0:X=[],ye++;try{const o=e();return gt(n),o}catch(o){n||(X=null),k=null,We(o)}}function gt(e){if(k&&(Ze(k),k=null),e)return;const t=X;X=null,t.length&&H(()=>Ie(t),!1)}function Ze(e){for(let t=0;t=0;t--)ve(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function yt(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function We(e,t=b){throw yt(e)}function pe(e){if(typeof e=="function"&&!e.length)return pe(e());if(Array.isArray(e)){const t=[];for(let n=0;ns=z(()=>(b.context={...b.context,[e]:o.value},Xe(()=>o.children))),void 0),s}}const $e=Symbol("fallback");function ae(e){for(let t=0;t1?[]:null;return Ne(()=>ae(i)),()=>{let c=e()||[],f,a;return c[se],z(()=>{let u=c.length,m,h,v,w,A,N,M,x,T;if(u===0)l!==0&&(ae(i),i=[],o=[],s=[],l=0,r&&(r=[])),n.fallback&&(o=[$e],s[0]=Z(L=>(i[0]=L,n.fallback())),l=1);else if(l===0){for(s=new Array(u),a=0;a=N&&x>=N&&o[M]===c[x];M--,x--)v[x]=s[M],w[x]=i[M],r&&(A[x]=r[M]);for(m=new Map,h=new Array(x+1),a=x;a>=N;a--)T=c[a],f=m.get(T),h[a]=f===void 0?-1:f,m.set(T,a);for(f=N;f<=M;f++)T=o[f],a=m.get(T),a!==void 0&&a!==-1?(v[a]=s[f],w[a]=i[f],r&&(A[a]=r[f]),a=h[a],m.set(T,a)):i[f]();for(a=N;aae(i)),()=>{const f=e()||[];return f[se],z(()=>{if(f.length===0)return r!==0&&(ae(i),i=[],o=[],s=[],r=0,l=[]),n.fallback&&(o=[$e],s[0]=Z(d=>(i[0]=d,n.fallback())),r=1),s;for(o[0]===$e&&(i[0](),i=[],o=[],s=[],r=0),c=0;cf[c]):c>=o.length&&(s[c]=Z(a));for(;ce(t||{}))}function ne(){return!0}const Pe={get(e,t,n){return t===F?n:e.get(t)},has(e,t){return t===F?!0:e.has(t)},set:ne,deleteProperty:ne,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:ne,deleteProperty:ne}},ownKeys(e){return e.keys()}};function xe(e){return(e=typeof e=="function"?e():e)?e:{}}function xt(){for(let e=0,t=this.length;e=0;r--){const c=xe(e[r])[l];if(c!==void 0)return c}},has(l){for(let r=e.length-1;r>=0;r--)if(l in xe(e[r]))return!0;return!1},keys(){const l=[];for(let r=0;r=0;l--){const r=e[l];if(!r)continue;const c=Object.getOwnPropertyNames(r);for(let f=c.length-1;f>=0;f--){const a=c[f];if(a==="__proto__"||a==="constructor")continue;const d=Object.getOwnPropertyDescriptor(r,a);if(!o[a])o[a]=d.get?{enumerable:!0,configurable:!0,get:xt.bind(n[a]=[d.get.bind(r)])}:d.value!==void 0?d:void 0;else{const u=n[a];u&&(d.get?u.push(d.get.bind(r)):d.value!==void 0&&u.push(()=>d.value))}}}const s={},i=Object.keys(o);for(let l=i.length-1;l>=0;l--){const r=i[l],c=o[r];c&&c.get?Object.defineProperty(s,r,c):s[r]=c?c.value:void 0}return s}function pt(e,...t){if(F in e){const s=new Set(t.length>1?t.flat():t[0]),i=t.map(l=>new Proxy({get(r){return l.includes(r)?e[r]:void 0},has(r){return l.includes(r)&&r in e},keys(){return l.filter(r=>r in e)}},Pe));return i.push(new Proxy({get(l){return s.has(l)?void 0:e[l]},has(l){return s.has(l)?!1:l in e},keys(){return Object.keys(e).filter(l=>!s.has(l))}},Pe)),i}const n={},o=t.map(()=>({}));for(const s of Object.getOwnPropertyNames(e)){const i=Object.getOwnPropertyDescriptor(e,s),l=!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable;let r=!1,c=0;for(const f of t)f.includes(s)&&(r=!0,l?o[c][s]=i.value:Object.defineProperty(o[c],s,i)),++c;r||(l?n[s]=i.value:Object.defineProperty(n,s,i))}return[...o,n]}const He=e=>`Stale read from <${e}>.`;function $t(e){const t="fallback"in e&&{fallback:()=>e.fallback};return I(wt(()=>e.each,e.children,t||void 0))}function Ee(e){const t="fallback"in e&&{fallback:()=>e.fallback};return I(bt(()=>e.each,e.children,t||void 0))}function Ue(e){const t=e.keyed,n=I(()=>e.when,void 0,{equals:(o,s)=>t?o===s:!o==!s});return I(()=>{const o=n();if(o){const s=e.children;return typeof s=="function"&&s.length>0?z(()=>s(t?o:()=>{if(!z(n))throw He("Show");return e.when})):s}return e.fallback},void 0,void 0)}function Pt(e){let t=!1;const n=(i,l)=>(t?i[1]===l[1]:!i[1]==!l[1])&&i[2]===l[2],o=Xe(()=>e.children),s=I(()=>{let i=o();Array.isArray(i)||(i=[i]);for(let l=0;l{const[i,l,r]=s();if(i<0)return e.fallback;const c=r.children;return typeof c=="function"&&c.length>0?z(()=>c(t?l:()=>{if(z(s)[0]!==i)throw He("Match");return r.when})):c},void 0,void 0)}function Le(e){return e}const Ct=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],At=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Ct]),Ot=new Set(["innerHTML","textContent","innerText","children"]),Nt=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Mt=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function Et(e,t){const n=Mt[e];return typeof n=="object"?n[t]?n.$:void 0:n}const kt=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Dt=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),zt={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function Lt(e,t,n){let o=n.length,s=t.length,i=o,l=0,r=0,c=t[s-1].nextSibling,f=null;for(;la-r){const h=t[l];for(;r{s=i,t===document?e():C(t,e(),t.firstChild?null:void 0,n)},o.owner),()=>{s(),t.textContent=""}}function D(e,t,n){let o;const s=()=>{const l=document.createElement("template");return l.innerHTML=e,n?l.content.firstChild.firstChild:l.content.firstChild},i=t?()=>z(()=>document.importNode(o||(o=s()),!0)):()=>(o||(o=s())).cloneNode(!0);return i.cloneNode=i,i}function te(e,t=window.document){const n=t[Te]||(t[Te]=new Set);for(let o=0,s=e.length;os.call(e,n[1],i))}else e.addEventListener(t,n)}function jt(e,t,n={}){const o=Object.keys(t||{}),s=Object.keys(n);let i,l;for(i=0,l=s.length;is.children=q(e,t.children,s.children)),O(()=>typeof t.ref=="function"?fe(t.ref,e):t.ref=e),O(()=>Ft(e,t,n,!0,s,!0)),s}function fe(e,t,n){return z(()=>e(t,n))}function C(e,t,n,o){if(n!==void 0&&!o&&(o=[]),typeof t!="function")return q(e,t,o,n);O(s=>q(e,t(),s,n),o)}function Ft(e,t,n,o,s={},i=!1){t||(t={});for(const l in s)if(!(l in t)){if(l==="children")continue;s[l]=je(e,l,null,s[l],n,i)}for(const l in t){if(l==="children")continue;const r=t[l];s[l]=je(e,l,r,s[l],n,i)}}function It(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function _e(e,t,n){const o=t.trim().split(/\s+/);for(let s=0,i=o.length;s-1&&zt[t.split(":")[0]];d?_t(e,d,t,n):p(e,Nt[t]||t,n)}return n}function Bt(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}});n;){const o=n[t];if(o&&!n.disabled){const s=n[`${t}Data`];if(s!==void 0?o.call(n,s,e):o.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function q(e,t,n,o,s){for(;typeof n=="function";)n=n();if(t===n)return n;const i=typeof t,l=o!==void 0;if(e=l&&n[0]&&n[0].parentNode||e,i==="string"||i==="number")if(i==="number"&&(t=t.toString()),l){let r=n[0];r&&r.nodeType===3?r.data!==t&&(r.data=t):r=document.createTextNode(t),n=K(e,n,o,r)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;else if(t==null||i==="boolean")n=K(e,n,o);else{if(i==="function")return O(()=>{let r=t();for(;typeof r=="function";)r=r();n=q(e,r,n,o)}),()=>n;if(Array.isArray(t)){const r=[],c=n&&Array.isArray(n);if(Ae(r,t,n,s))return O(()=>n=q(e,r,n,o,!0)),()=>n;if(r.length===0){if(n=K(e,n,o),l)return n}else c?n.length===0?Fe(e,r,o):Lt(e,n,r):(n&&K(e),Fe(e,r));n=r}else if(t.nodeType){if(Array.isArray(n)){if(l)return n=K(e,n,o,t);K(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function Ae(e,t,n,o){let s=!1;for(let i=0,l=t.length;i=0;l--){const r=t[l];if(s!==r){const c=r.parentNode===e;!i&&!l?c?e.replaceChild(s,r):e.insertBefore(s,n):c&&r.remove()}else i=!0}}else e.insertBefore(s,n);return[s]}const Rt="http://www.w3.org/2000/svg";function Xt(e,t=!1){return t?document.createElementNS(Rt,e):document.createElement(e)}function Yt(e){const[t,n]=pt(e,["component"]),o=I(()=>t.component);return I(()=>{const s=o();switch(typeof s){case"function":return z(()=>s(n));case"string":const i=Dt.has(s),l=Xt(s,i);return Ve(l,n,i),l}})}const Kt="_App_1a1r2_1",Zt={App:Kt},Gt="_SvgFlowCanvas_8qsm0_1",Wt={SvgFlowCanvas:Gt},Oe=Symbol("store-raw"),W=Symbol("store-node"),R=Symbol("store-has"),qe=Symbol("store-self");function Je(e){let t=e[F];if(!t&&(Object.defineProperty(e,F,{value:t=new Proxy(e,Vt)}),!Array.isArray(e))){const n=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let s=0,i=n.length;se[F][t]),n}function Qe(e){Se()&&Q(de(e,W),qe)()}function Ut(e){return Qe(e),Reflect.ownKeys(e)}const Vt={get(e,t,n){if(t===Oe)return e;if(t===F)return n;if(t===se)return Qe(e),n;const o=de(e,W),s=o[t];let i=s?s():e[t];if(t===W||t===R||t==="__proto__")return i;if(!s){const l=Object.getOwnPropertyDescriptor(e,t);Se()&&(typeof i!="function"||e.hasOwnProperty(t))&&!(l&&l.get)&&(i=Q(o,t,i)())}return ue(i)?Je(i):i},has(e,t){return t===Oe||t===F||t===se||t===W||t===R||t==="__proto__"?!0:(Se()&&Q(de(e,R),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:Ut,getOwnPropertyDescriptor:Ht};function he(e,t,n,o=!1){if(!o&&e[t]===n)return;const s=e[t],i=e.length;n===void 0?(delete e[t],e[R]&&e[R][t]&&s!==void 0&&e[R][t].$()):(e[t]=n,e[R]&&e[R][t]&&s===void 0&&e[R][t].$());let l=de(e,W),r;if((r=Q(l,t,s))&&r.$(()=>n),Array.isArray(e)&&e.length!==i){for(let c=e.length;c1){o=t.shift();const l=typeof o,r=Array.isArray(e);if(Array.isArray(o)){for(let c=0;c1){V(e[o],t,[o].concat(n));return}s=e[o],n=[o].concat(n)}let i=t[0];typeof i=="function"&&(i=i(s,n),i===s)||o===void 0&&i==null||(i=J(i),o===void 0||ue(s)&&ue(i)&&!Array.isArray(i)?et(s,i):he(e,o,i))}function Jt(...[e,t]){const n=J(e||{}),o=Array.isArray(n),s=Je(n);function i(...l){ft(()=>{o&&l.length===1?qt(n,l[0]):V(n,l)})}return[s,i]}const Qt=(e,t)=>{const i=(d,u=.5,m=.5)=>{const h=e.canvas.zoom,v=Math.min(Math.max(d,.1/h),5/h),w=u*e.state.width/h,A=m*e.state.height/h;t("canvas","zoom",h*v),t("canvas","x",e.canvas.x+w-w/v),t("canvas","y",e.canvas.y+A-A/v)};return{zoom:i,zoomIn:()=>i(1.1),zoomOut:()=>i(.9090909090909091),zoomToFit:()=>{const u=Math.min(...e.data.nodes.map(x=>x.x)),m=Math.max(...e.data.nodes.map(x=>x.x+x.width)),h=Math.min(...e.data.nodes.map(x=>x.y)),v=Math.max(...e.data.nodes.map(x=>x.y+x.height)),w=m-u+10*2,A=v-h+10*2,N=e.state.width/e.canvas.zoom/w,M=e.state.height/e.canvas.zoom/A;i(Math.min(N,M)),t("canvas","x",(u+m-e.state.width/e.canvas.zoom)/2),t("canvas","y",(h+v-e.state.height/e.canvas.zoom)/2)},canZoomIn:()=>e.canvas.zoom>.1,canZoomOut:()=>e.canvas.zoom<5}},en=(e,t)=>({setNode:(o,s)=>{t("data","nodes",i=>i.id===o,s)}});var j=(e=>(e.Top="Top",e.Right="Right",e.Bottom="Bottom",e.Left="Left",e))(j||{});const tn={Top:"Bottom",Right:"Left",Bottom:"Top",Left:"Right"},nn=e=>({connectionsWithDetails:()=>{const n=e.data.connections.map(o=>{const s=e.data.nodes.find(r=>r.id===o.from),i=e.data.nodes.find(r=>r.id===o.to);let l;if(s&&i){const r=s.x-(i.x+i.width),c=i.x-(s.x+s.width),f=s.y-(i.y+i.height),a=i.y-(s.y+s.height);l=[{connection:o,side:"Left",distance:r,otherDistance:f},{connection:o,side:"Right",distance:c,otherDistance:f},{connection:o,side:"Top",distance:f,otherDistance:r},{connection:o,side:"Bottom",distance:a,otherDistance:r}].toSorted((u,m)=>m.distance-u.distance)[0]}return l}).filter(o=>!!o).map(o=>({...o.connection,fromPinSide:o.side,toPinSide:tn[o.side],fromPinSideIndex:-1,toPinSideIndex:-1,fromPinSideTotal:0,toPinSideTotal:0}));return n.forEach(o=>{const s=n.filter(({id:l,from:r,fromPinSide:c})=>l!==o.id&&r===o.from&&c===o.fromPinSide),i=n.filter(({id:l,to:r,toPinSide:c})=>l!==o.id&&r===o.to&&c===o.toPinSide);o.fromPinSideIndex=Math.max(...s.map(l=>l.fromPinSideIndex),-1)+1,o.toPinSideIndex=Math.max(...i.map(l=>l.toPinSideIndex),-1)+1,o.fromPinSideTotal=s.length+1,o.toPinSideTotal=i.length+1}),e.data.nodes.forEach(o=>{const s=n.filter(i=>i.from===o.id);o.pins&&o.pins>s.length&&s.filter(i=>i.fromPinSide==="Bottom").forEach(i=>i.fromPinSideTotal=i.fromPinSideTotal+1)}),n}}),on={background:"#FDFDFD",stroke:"#DEDEDE",strokeWidth:1,style:"dots",snapTo:0,autoNodeHeight:!0,resizeOnInit:!0,showControls:!0,showDebug:!1,width:"800px",height:"500px",allowConnectionEdit:!0,allowNodeMove:!0};function tt(){const[e,t]=Jt({data:{nodes:[],connections:[]},state:{width:1,height:1},canvas:{zoom:1,x:0,y:0},config:on});return{svgFlow:e,setSvgFlow:t}}const nt=ut(tt()),sn=e=>S(nt.Provider,{get value(){return tt()},get children(){return e.children}}),B=()=>{const{svgFlow:e,setSvgFlow:t}=dt(nt);return{svgFlow:e,setSvgFlow:t,...en(e,t),...Qt(e,t),...nn(e)}};var rn=D('',!1,!0);const ln=()=>{const{svgFlow:e}=B();return(()=>{var t=rn(),n=t.firstChild,o=n.firstChild;return O(()=>p(o,"stroke",e.config.stroke)),t})()};var cn=D("",!1,!0),an=D("",!1,!0),fn=D('',!1,!0);const un=()=>{const{svgFlow:e}=B(),t=()=>{const c=Math.max(e.state.width,e.state.height)/e.canvas.zoom,f=10,a=25;return(1<<31-Math.clz32(Math.max(c/(f*a),1)))*a},n=()=>{let c=[];const f=t(),a=Math.floor(e.canvas.x/f)*f,d=Math.floor(e.canvas.y/f)*f,u=e.canvas.x+e.state.width/e.canvas.zoom,m=e.canvas.y+e.state.height/e.canvas.zoom;for(let h=a;h<=u;h+=f)for(let v=d;v<=m;v+=f)c.push({x:h,y:v});return c},o=()=>{const c=t(),f=Math.ceil(e.canvas.x/c)*c,a=Math.ceil(e.canvas.y/c)*c,d=e.canvas.x+e.state.width/e.canvas.zoom,u=e.canvas.y+e.state.height/e.canvas.zoom;let m=[];for(let h=f;h<=d;h+=c)m.push(`M${h} ${e.canvas.y}`),m.push(`L${h} ${e.canvas.y+e.state.height/e.canvas.zoom}`);for(let h=a;h<=u;h+=c)m.push(`M${e.canvas.x} ${h}`),m.push(`L${e.canvas.x+e.state.width/e.canvas.zoom} ${h}`);return(()=>{var h=cn();return p(h,"stroke",i),O(v=>{var w=m.join(""),A=2/e.canvas.zoom;return w!==v.e&&p(h,"d",v.e=w),A!==v.t&&p(h,"stroke-width",v.t=A),v},{e:void 0,t:void 0}),h})()},s=()=>{const{x:c,y:f}=e.canvas,a=e.state.width/e.canvas.zoom,d=e.state.height/e.canvas.zoom;return{x:c,y:f,width:a,height:d}},i="rgba(0, 0, 0, 0.02)",l=1,r=()=>l/e.canvas.zoom;return(()=>{var c=an(),f=c.firstChild;return Ve(f,St(s,{get fill(){return e.config.background}}),!0,!1),C(c,S(Pt,{get children(){return[S(Le,{get when(){return e.config.style==="dots"},get children(){return S(Ee,{get each(){return n()},children:a=>(()=>{var d=fn();return O(u=>{var m=a().x,h=a().y,v=r();return m!==u.e&&p(d,"cx",u.e=m),h!==u.t&&p(d,"cy",u.t=h),v!==u.a&&p(d,"r",u.a=v),u},{e:void 0,t:void 0,a:void 0}),d})()})}}),S(Le,{get when(){return e.config.style==="grid"},get children(){return o()}})]}}),null),c})()},dn="_SvgFlowDebug_807j6_1",hn={SvgFlowDebug:dn};var gn=D("
nodes: 
connections: 
state: 
canvas: 
config: ");const mn=()=>{const{svgFlow:e}=B();return(()=>{var t=gn(),n=t.firstChild;n.firstChild;var o=n.nextSibling;o.firstChild;var s=o.nextSibling,i=s.firstChild;i.firstChild;var l=i.nextSibling;l.firstChild;var r=l.nextSibling;return r.firstChild,C(n,()=>JSON.stringify(e.data.nodes,void 0,2),null),C(o,()=>JSON.stringify(e.data.connections,void 0,2),null),C(i,()=>JSON.stringify(e.state,void 0,2),null),C(l,()=>JSON.stringify(e.canvas,void 0,2),null),C(r,()=>JSON.stringify(e.config,void 0,2),null),O(c=>{var f=hn.SvgFlowDebug,a=e.state.width+"px";return f!==c.e&&we(t,c.e=f),a!==c.t&&((c.t=a)!=null?t.style.setProperty("width",a):t.style.removeProperty("width")),c},{e:void 0,t:void 0}),t})()},ge=(e,t)=>({...e,x:t?Math.round(e.x/t)*t:e.x,y:t?Math.round(e.y/t)*t:e.y}),me=(e,t,n,o)=>{switch(t){case j.Bottom:return{x:e.x+(1+n)*e.width/(1+o),y:e.y+e.height};case j.Top:return{x:e.x+(1+n)*e.width/(1+o),y:e.y};case j.Left:return{x:e.x,y:e.y+(1+n)*e.height/(1+o)};case j.Right:return{x:e.x+e.width,y:e.y+(1+n)*e.height/(1+o)}}};var yn=D('