@owox/web 0.26.0-next-20260528092850 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Xi=Object.defineProperty;var Ji=(e,t,n)=>t in e?Xi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var te=(e,t,n)=>Ji(e,typeof t!="symbol"?t+"":t,n);import{
|
|
1
|
+
var Xi=Object.defineProperty;var Ji=(e,t,n)=>t in e?Xi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var te=(e,t,n)=>Ji(e,typeof t!="symbol"?t+"":t,n);import{b as cn,g as Qi,t as Re,f as g,r as Le,R as xn,j as z,a as Xe,M as eo,c as to,h as no,e as ro,C as io,I as oo,E as ao,B as so,d as uo}from"./index-_fpRqj9D.js";/**
|
|
2
2
|
* @license lucide-react v0.475.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -47,25 +47,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
47
47
|
C `).concat(u-f," ").concat(p+h,`
|
|
48
48
|
`).concat(u-f," ").concat(c,`
|
|
49
49
|
`).concat(u," ").concat(c,`
|
|
50
|
-
`)}function Da(e,t){return Yt.apply(this,arguments)}function Yt(){return Yt=M(w.mark(function e(t,n){var r,i,o,a,s;return w.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(t.offsetParent){c.next=5;break}return c.next=3,new Promise(function(l){return setTimeout(l,0)});case 3:c.next=0;break;case 5:if(r=t.offsetLeft,i=t.offsetTop,o=t.offsetParent,o){c.next=10;break}throw new Error("child has null offsetParent");case 10:for(;o!==null&&o!==n;)r+=o.offsetLeft+o.clientLeft,i+=o.offsetTop+o.clientTop,o=o.offsetParent;return a=t.offsetWidth,s=t.offsetHeight,c.abrupt("return",{x:r+a/2,y:i+s/2});case 14:case"end":return c.stop()}},e)})),Yt.apply(this,arguments)}var Ma=(function(){function e(){L(this,e),C(this,"listeners",new Set)}return B(e,[{key:"emit",value:function(n){this.listeners.forEach(function(r){r(n)})}},{key:"listen",value:function(n){var r=this;return this.listeners.add(n),function(){r.listeners.delete(n)}}}])})(),Ta=(function(){function e(){L(this,e),C(this,"elements",new Map)}return B(e,[{key:"getPosition",value:function(n){var r,i,o=Array.from(this.elements.values()).flat(),a=o.filter(function(s){return s.side===n.side&&s.nodeId===n.nodeId&&s.key===n.key});return a.length>1&&console.warn(["Found more than one element for socket with same key and side.","Probably it was not unmounted correctly"].join(" "),n),(r=(i=a.pop())===null||i===void 0?void 0:i.position)!==null&&r!==void 0?r:null}},{key:"add",value:function(n){var r=this.elements.get(n.element);this.elements.set(n.element,r?[].concat(fe(r.filter(function(i){return!(i.nodeId===n.nodeId&&i.key===n.key&&i.side===n.side)})),[n]):[n])}},{key:"remove",value:function(n){this.elements.delete(n)}},{key:"snapshot",value:function(){return Array.from(this.elements.values()).flat()}}])})(),La=(function(){function e(){L(this,e),C(this,"sockets",new Ta),C(this,"emitter",new Ma),C(this,"area",null)}return B(e,[{key:"attach",value:function(n){var r=this;this.area||n.hasParent()&&(this.area=n.parentScope(ft),this.area.addPipe((function(){var i=M(w.mark(function o(a){var s,u,c,l,f,d,p,h,y,v,k;return w.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!(a.type==="rendered"&&a.data.type==="socket")){b.next=8;break}return s=a.data,u=s.nodeId,c=s.key,l=s.side,f=s.element,b.next=4,r.calculatePosition(u,l,c,f);case 4:d=b.sent,d&&(r.sockets.add({nodeId:u,key:c,side:l,element:f,position:d}),r.emitter.emit({nodeId:u,key:c,side:l})),b.next=24;break;case 8:if(a.type!=="unmount"){b.next=12;break}r.sockets.remove(a.data.element),b.next=24;break;case 12:if(a.type!=="nodetranslated"){b.next=16;break}r.emitter.emit({nodeId:a.data.id}),b.next=24;break;case 16:if(a.type!=="noderesized"){b.next=23;break}return p=a.data.id,b.next=20,Promise.all(r.sockets.snapshot().filter(function(j){return j.nodeId===a.data.id&&j.side==="output"}).map((function(){var j=M(w.mark(function P(I){var O,E,R,A;return w.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return O=I.side,E=I.key,R=I.element,K.next=3,r.calculatePosition(p,O,E,R);case 3:A=K.sent,A&&(I.position=A);case 5:case"end":return K.stop()}},P)}));return function(P){return j.apply(this,arguments)}})()));case 20:r.emitter.emit({nodeId:p}),b.next=24;break;case 23:a.type==="render"&&a.data.type==="connection"&&(h=a.data.payload,y=h.source,v=h.target,k=y||v,r.emitter.emit({nodeId:k}));case 24:return b.abrupt("return",a);case 25:case"end":return b.stop()}},o)}));return function(o){return i.apply(this,arguments)}})()))}},{key:"listen",value:function(n,r,i,o){var a=this,s=this.emitter.listen(function(u){if(u.nodeId===n&&(!u.key||u.side===r)&&(!u.side||u.key===i)){var c,l=a.sockets.getPosition({side:r,nodeId:n,key:i});if(!l)return;var f=l.x,d=l.y,p=(c=a.area)===null||c===void 0?void 0:c.nodeViews.get(n);p&&o({x:f+p.position.x,y:d+p.position.y})}});return this.sockets.snapshot().forEach(function(u){u.nodeId===n&&a.emitter.emit(u)}),s}}])})();function Ba(e,t,n){return t=q(t),ye(e,ri()?Reflect.construct(t,[],q(e).constructor):t.apply(e,n))}function ri(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ri=function(){return!!e})()}var Fa=(function(e){function t(n){var r;return L(this,t),r=Ba(this,t),r.props=n,r}return ae(t,e),B(t,[{key:"calculatePosition",value:(function(){var n=M(w.mark(function i(o,a,s,u){var c,l,f,d;return w.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(f=(c=this.area)===null||c===void 0?void 0:c.nodeViews.get(o),f!=null&&f.element){h.next=3;break}return h.abrupt("return",null);case 3:return h.next=5,Da(u,f.element);case 5:if(d=h.sent,!((l=this.props)!==null&&l!==void 0&&l.offset)){h.next=8;break}return h.abrupt("return",this.props.offset(d,o,a,s));case 8:return h.abrupt("return",{x:d.x+12*(a==="input"?-1:1),y:d.y});case 9:case"end":return h.stop()}},i,this)}));function r(i,o,a,s){return n.apply(this,arguments)}return r})()}])})(La);function Ha(e){return new Fa(e)}function Q(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var W="-ms-",Ve="-moz-",G="-webkit-",ii="comm",pt="rule",vn="decl",Va="@import",Ga="@namespace",oi="@keyframes",Wa="@layer",ai=Math.abs,mn=String.fromCharCode,Zt=Object.assign;function qa(e,t){return X(e,0)^45?(((t<<2^X(e,0))<<2^X(e,1))<<2^X(e,2))<<2^X(e,3):0}function si(e){return e.trim()}function ve(e,t){return(e=t.exec(e))?e[0]:e}function N(e,t,n){return e.replace(t,n)}function it(e,t,n){return e.indexOf(t,n)}function X(e,t){return e.charCodeAt(t)|0}function Ce(e,t,n){return e.slice(t,n)}function ue(e){return e.length}function ui(e){return e.length}function Be(e,t){return t.push(e),e}function Ka(e,t){return e.map(t).join("")}function Un(e,t){return e.filter(function(n){return!ve(n,t)})}var ht=1,Ne=1,ci=0,se=0,Z=0,Me="";function vt(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:ht,column:Ne,length:a,return:"",siblings:s}}function we(e,t){return Zt(vt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function _e(e){for(;e.root;)e=we(e.root,{children:[e]});Be(e,e.siblings)}function Ya(){return Z}function Za(){return Z=se>0?X(Me,--se):0,Ne--,Z===10&&(Ne=1,ht--),Z}function ce(){return Z=se<ci?X(Me,se++):0,Ne++,Z===10&&(Ne=1,ht++),Z}function ke(){return X(Me,se)}function ot(){return se}function mt(e,t){return Ce(Me,e,t)}function Ke(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ua(e){return ht=Ne=1,ci=ue(Me=e),se=0,[]}function Xa(e){return Me="",e}function zt(e){return si(mt(se-1,Ut(e===91?e+2:e===40?e+1:e)))}function Ja(e){for(;(Z=ke())&&Z<33;)ce();return Ke(e)>2||Ke(Z)>3?"":" "}function Qa(e,t){for(;--t&&ce()&&!(Z<48||Z>102||Z>57&&Z<65||Z>70&&Z<97););return mt(e,ot()+(t<6&&ke()==32&&ce()==32))}function Ut(e){for(;ce();)switch(Z){case e:return se;case 34:case 39:e!==34&&e!==39&&Ut(Z);break;case 40:e===41&&Ut(e);break;case 92:ce();break}return se}function es(e,t){for(;ce()&&e+Z!==57;)if(e+Z===84&&ke()===47)break;return"/*"+mt(t,se-1)+"*"+mn(e===47?e:ce())}function ts(e){for(;!Ke(ke());)ce();return mt(e,se)}function ns(e){return Xa(at("",null,null,null,[""],e=Ua(e),0,[0],e))}function at(e,t,n,r,i,o,a,s,u){for(var c=0,l=0,f=a,d=0,p=0,h=0,y=1,v=1,k=1,m=0,b="",j=i,P=o,I=r,O=b;v;)switch(h=m,m=ce()){case 40:if(h!=108&&X(O,f-1)==58){it(O+=N(zt(m),"&","&\f"),"&\f",ai(c?s[c-1]:0))!=-1&&(k=-1);break}case 34:case 39:case 91:O+=zt(m);break;case 9:case 10:case 13:case 32:O+=Ja(h);break;case 92:O+=Qa(ot()-1,7);continue;case 47:switch(ke()){case 42:case 47:Be(rs(es(ce(),ot()),t,n,u),u),(Ke(h||1)==5||Ke(ke()||1)==5)&&ue(O)&&Ce(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*y:s[c++]=ue(O)*k;case 125*y:case 59:case 0:switch(m){case 0:case 125:v=0;case 59+l:k==-1&&(O=N(O,/\f/g,"")),p>0&&(ue(O)-f||y===0&&h===47)&&Be(p>32?Jn(O+";",r,n,f-1,u):Jn(N(O," ","")+";",r,n,f-2,u),u);break;case 59:O+=";";default:if(Be(I=Xn(O,t,n,c,l,i,s,b,j=[],P=[],f,o),o),m===123)if(l===0)at(O,t,I,I,j,o,f,s,P);else{switch(d){case 99:if(X(O,3)===110)break;case 108:if(X(O,2)===97)break;default:l=0;case 100:case 109:case 115:}l?at(e,I,I,r&&Be(Xn(e,I,I,0,0,i,s,b,i,j=[],f,P),P),i,P,f,s,r?j:P):at(O,I,I,I,[""],P,0,s,P)}}c=l=p=0,y=k=1,b=O="",f=a;break;case 58:f=1+ue(O),p=h;default:if(y<1){if(m==123)--y;else if(m==125&&y++==0&&Za()==125)continue}switch(O+=mn(m),m*y){case 38:k=l>0?1:(O+="\f",-1);break;case 44:s[c++]=(ue(O)-1)*k,k=1;break;case 64:ke()===45&&(O+=zt(ce())),d=ke(),l=f=ue(b=O+=ts(ot())),m++;break;case 45:h===45&&ue(O)==2&&(y=0)}}return o}function Xn(e,t,n,r,i,o,a,s,u,c,l,f){for(var d=i-1,p=i===0?o:[""],h=ui(p),y=0,v=0,k=0;y<r;++y)for(var m=0,b=Ce(e,d+1,d=ai(v=a[y])),j=e;m<h;++m)(j=si(v>0?p[m]+" "+b:N(b,/&\f/g,p[m])))&&(u[k++]=j);return vt(e,t,n,i===0?pt:s,u,c,l,f)}function rs(e,t,n,r){return vt(e,t,n,ii,mn(Ya()),Ce(e,2,-2),0,r)}function Jn(e,t,n,r,i){return vt(e,t,n,vn,Ce(e,0,r),Ce(e,r+1,-1),r,i)}function li(e,t,n){switch(qa(e,t)){case 5103:return G+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return G+e+e;case 4855:return G+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Ve+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return G+e+Ve+e+W+e+e;case 5936:switch(X(e,t+11)){case 114:return G+e+W+N(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return G+e+W+N(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return G+e+W+N(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return G+e+W+e+e;case 6165:return G+e+W+"flex-"+e+e;case 5187:return G+e+N(e,/(\w+).+(:[^]+)/,G+"box-$1$2"+W+"flex-$1$2")+e;case 5443:return G+e+W+"flex-item-"+N(e,/flex-|-self/g,"")+(ve(e,/flex-|baseline/)?"":W+"grid-row-"+N(e,/flex-|-self/g,""))+e;case 4675:return G+e+W+"flex-line-pack"+N(e,/align-content|flex-|-self/g,"")+e;case 5548:return G+e+W+N(e,"shrink","negative")+e;case 5292:return G+e+W+N(e,"basis","preferred-size")+e;case 6060:return G+"box-"+N(e,"-grow","")+G+e+W+N(e,"grow","positive")+e;case 4554:return G+N(e,/([^-])(transform)/g,"$1"+G+"$2")+e;case 6187:return N(N(N(e,/(zoom-|grab)/,G+"$1"),/(image-set)/,G+"$1"),e,"")+e;case 5495:case 3959:return N(e,/(image-set\([^]*)/,G+"$1$`$1");case 4968:return N(N(e,/(.+:)(flex-)?(.*)/,G+"box-pack:$3"+W+"flex-pack:$3"),/space-between/,"justify")+G+e+e;case 4200:if(!ve(e,/flex-|baseline/))return W+"grid-column-align"+Ce(e,t)+e;break;case 2592:case 3360:return W+N(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,ve(r.props,/grid-\w+-end/)})?~it(e+(n=n[t].value),"span",0)?e:W+N(e,"-start","")+e+W+"grid-row-span:"+(~it(n,"span",0)?ve(n,/\d+/):+ve(n,/\d+/)-+ve(e,/\d+/))+";":W+N(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ve(r.props,/grid-\w+-start/)})?e:W+N(N(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return N(e,/(.+)-inline(.+)/,G+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ue(e)-1-t>6)switch(X(e,t+1)){case 109:if(X(e,t+4)!==45)break;case 102:return N(e,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+Ve+(X(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~it(e,"stretch",0)?li(N(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return N(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,s,u,c){return W+i+":"+o+c+(a?W+i+"-span:"+(s?u:+u-+o)+c:"")+e});case 4949:if(X(e,t+6)===121)return N(e,":",":"+G)+e;break;case 6444:switch(X(e,X(e,14)===45?18:11)){case 120:return N(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+G+(X(e,14)===45?"inline-":"")+"box$3$1"+G+"$2$3$1"+W+"$2box$3")+e;case 100:return N(e,":",":"+W)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return N(e,"scroll-","scroll-snap-")+e}return e}function lt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function is(e,t,n,r){switch(e.type){case Wa:if(e.children.length)break;case Va:case Ga:case vn:return e.return=e.return||e.value;case ii:return"";case oi:return e.return=e.value+"{"+lt(e.children,r)+"}";case pt:if(!ue(e.value=e.props.join(",")))return""}return ue(n=lt(e.children,r))?e.return=e.value+"{"+n+"}":""}function os(e){var t=ui(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function as(e){return function(t){t.root||(t=t.return)&&e(t)}}function ss(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case vn:e.return=li(e.value,e.length,n);return;case oi:return lt([we(e,{value:N(e.value,"@","@"+G)})],r);case pt:if(e.length)return Ka(n=e.props,function(i){switch(ve(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":_e(we(e,{props:[N(i,/:(read-\w+)/,":"+Ve+"$1")]})),_e(we(e,{props:[i]})),Zt(e,{props:Un(n,r)});break;case"::placeholder":_e(we(e,{props:[N(i,/:(plac\w+)/,":"+G+"input-$1")]})),_e(we(e,{props:[N(i,/:(plac\w+)/,":"+Ve+"$1")]})),_e(we(e,{props:[N(i,/:(plac\w+)/,W+"input-$1")]})),_e(we(e,{props:[i]})),Zt(e,{props:Un(n,r)});break}return""})}}var Ae={},Dt,Mt;const ze=typeof process<"u"&&Ae!==void 0&&(Ae.REACT_APP_SC_ATTR||Ae.SC_ATTR)||"data-styled",di="active",fi="data-styled-version",yt="6.4.1",yn=`/*!sc*/
|
|
51
|
-
`,Ge=typeof window<"u"&&typeof document<"u";function Qn(e){if(typeof process<"u"&&Ae!==void 0){const t=Ae[e];if(t!==void 0&&t!=="")return t!=="false"}}const us=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:(Mt=(Dt=Qn("REACT_APP_SC_DISABLE_SPEEDY"))!==null&&Dt!==void 0?Dt:Qn("SC_DISABLE_SPEEDY"))!==null&&Mt!==void 0?Mt:typeof process>"u"||Ae===void 0),cs="sc-keyframes-";function gt(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let st=new Map,dt=new Map,ut=1;const et=e=>{if(st.has(e))return st.get(e);for(;dt.has(ut);)ut++;const t=ut++;return st.set(e,t),dt.set(t,e),t},ls=e=>dt.get(e),ds=(e,t)=>{ut=t+1,st.set(e,t),dt.set(t,e)},gn=Object.freeze([]),De=Object.freeze({});function fs(e,t,n=De){return e.theme!==n.theme&&e.theme||t||n.theme}const ps=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,hs=/(^-|-$)/g;function pi(e){return e.replace(ps,"-").replace(hs,"")}const vs=/(a)(d)/gi,er=e=>String.fromCharCode(e+(e>25?39:97));function hi(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=er(t%52)+n;return(er(t%52)+n).replace(vs,"$1-$2")}const Xt=5381,Oe=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},vi=e=>Oe(Xt,e);function ms(e){return hi(vi(e)>>>0)}function ys(e){return e.displayName||e.name||"Component"}function Jt(e){return typeof e=="string"&&!0}function gs(e){return Jt(e)?`styled.${e}`:`Styled(${ys(e)})`}const mi=Symbol.for("react.memo"),bs=Symbol.for("react.forward_ref"),ws={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},ks={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},yi={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xs={[bs]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[mi]:yi};function tr(e){return("type"in(t=e)&&t.type.$$typeof)===mi?yi:"$$typeof"in e?xs[e.$$typeof]:ws;var t}const Os=Object.defineProperty,Ss=Object.getOwnPropertyNames,Cs=Object.getOwnPropertySymbols,$s=Object.getOwnPropertyDescriptor,Ps=Object.getPrototypeOf,js=Object.prototype;function gi(e,t,n){if(typeof t!="string"){const r=Ps(t);r&&r!==js&&gi(e,r,n);const i=Ss(t).concat(Cs(t)),o=tr(e),a=tr(t);for(let s=0;s<i.length;++s){const u=i[s];if(!(u in ks||n&&n[u]||a&&u in a||o&&u in o)){const c=$s(t,u);try{Os(e,u,c)}catch{}}}}return e}function bt(e){return typeof e=="function"}function bi(e){return typeof e=="object"&&"styledComponentId"in e}function Fe(e,t){return e&&t?e+" "+t:e||t||""}function nr(e,t){return e.join("")}function Ye(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Qt(e,t,n=!1){if(!n&&!Ye(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let r=0;r<t.length;r++)e[r]=Qt(e[r],t[r]);else if(Ye(t))for(const r in t)e[r]=Qt(e[r],t[r]);return e}function wi(e,t){Object.defineProperty(e,"toString",{value:t})}const _s=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const i=this.groupSizes,o=i.length;let a=o;for(;e>=a;)if(a<<=1,a<0)throw gt(16,`${e}`);this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(let s=o;s<a;s++)this.groupSizes[s]=0}let n=this.indexOfGroup(e+1),r=0;for(let i=0,o=t.length;i<o;i++)this.tag.insertRule(n,t[i])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let i=n;i<r;i++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||this.groupSizes[e]===0)return t;const n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;for(let o=r;o<i;o++)t+=this.tag.getRule(o)+yn;return t}},Es=`style[${ze}][${fi}="${yt}"]`,Rs=new RegExp(`^${ze}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),rr=e=>typeof ShadowRoot<"u"&&e instanceof ShadowRoot||"host"in e&&e.nodeType===11,en=e=>{if(!e)return document;if(rr(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(rr(t))return t}return document},Is=(e,t,n)=>{const r=n.split(",");let i;for(let o=0,a=r.length;o<a;o++)(i=r[o])&&e.registerName(t,i)},As=(e,t)=>{var n;const r=((n=t.textContent)!==null&&n!==void 0?n:"").split(yn),i=[];for(let o=0,a=r.length;o<a;o++){const s=r[o].trim();if(!s)continue;const u=s.match(Rs);if(u){const c=0|parseInt(u[1],10),l=u[2];c!==0&&(ds(l,c),Is(e,l,u[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(s)}},Tt=e=>{const t=en(e.options.target).querySelectorAll(Es);for(let n=0,r=t.length;n<r;n++){const i=t[n];i&&i.getAttribute(ze)!==di&&(As(e,i),i.parentNode&&i.parentNode.removeChild(i))}};let Te=!1;function Ns(){if(Te!==!1)return Te;if(typeof document<"u"){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return Te=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return Te=t.getAttribute("content")||void 0}return Te=typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}const ki=(e,t)=>{const n=document.head,r=e||n,i=document.createElement("style"),o=(u=>{const c=Array.from(u.querySelectorAll(`style[${ze}]`));return c[c.length-1]})(r),a=o!==void 0?o.nextSibling:null;i.setAttribute(ze,di),i.setAttribute(fi,yt);const s=t||Ns();return s&&i.setAttribute("nonce",s),r.insertBefore(i,a),i},zs=class{constructor(e,t){this.element=ki(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(n=>{var r;if(n.sheet)return n.sheet;const i=(r=n.getRootNode().styleSheets)!==null&&r!==void 0?r:document.styleSheets;for(let o=0,a=i.length;o<a;o++){const s=i[o];if(s.ownerNode===n)return s}throw gt(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},Ds=class{constructor(e,t){this.element=ki(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let ir=Ge;const Ms={isServer:!Ge,useCSSOMInjection:!us};class wt{static registerId(t){return et(t)}constructor(t=De,n={},r){this.options=Object.assign(Object.assign({},Ms),t),this.gs=n,this.keyframeIds=new Set,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Ge&&ir&&(ir=!1,Tt(this)),wi(this,()=>(i=>{const o=i.getTag(),{length:a}=o;let s="";for(let u=0;u<a;u++){const c=ls(u);if(c===void 0)continue;const l=i.names.get(c);if(l===void 0||!l.size)continue;const f=o.getGroup(u);if(f.length===0)continue;const d=ze+".g"+u+'[id="'+c+'"]';let p="";for(const h of l)h.length>0&&(p+=h+",");s+=f+d+'{content:"'+p+'"}'+yn}return s})(this))}rehydrate(){!this.server&&Ge&&Tt(this)}reconstructWithOptions(t,n=!0){const r=new wt(Object.assign(Object.assign({},this.options),t),this.gs,n&&this.names||void 0);return r.keyframeIds=new Set(this.keyframeIds),!this.server&&Ge&&t.target!==this.options.target&&en(this.options.target)!==en(t.target)&&Tt(r),r}allocateGSInstance(t){return this.gs[t]=(this.gs[t]||0)+1}getTag(){return this.tag||(this.tag=(t=(({useCSSOMInjection:n,target:r,nonce:i})=>n?new zs(r,i):new Ds(r,i))(this.options),new _s(t)));var t}hasNameForId(t,n){var r,i;return(i=(r=this.names.get(t))===null||r===void 0?void 0:r.has(n))!==null&&i!==void 0&&i}registerName(t,n){et(t),t.startsWith(cs)&&this.keyframeIds.add(t);const r=this.names.get(t);r?r.add(n):this.names.set(t,new Set([n]))}insertRules(t,n,r){this.registerName(t,n),this.getTag().insertRules(et(t),r)}clearNames(t){this.names.has(t)&&this.names.get(t).clear()}clearRules(t){this.getTag().clearGroup(et(t)),this.clearNames(t)}clearTag(){this.tag=void 0}}const xi=new WeakSet,Ts={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Ls(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in Ts||e.startsWith("--")?String(t).trim():t+"px"}const xe=47;function or(e){if(e.charCodeAt(0)===45&&e.charCodeAt(1)===45)return e;let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}const Bs=Symbol.for("sc-keyframes");function Fs(e){return typeof e=="object"&&e!==null&&Bs in e}function Oi(e){return bt(e)&&!(e.prototype&&e.prototype.isReactComponent)}const Si=e=>e==null||e===!1||e==="",Hs=Symbol.for("react.client.reference");function ar(e){return e.$$typeof===Hs}function Ci(e,t){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!Si(r)&&(Array.isArray(r)&&xi.has(r)||bt(r)?t.push(or(n)+":",r,";"):Ye(r)?(t.push(n+" {"),Ci(r,t),t.push("}")):t.push(or(n)+": "+Ls(n,r)+";"))}}function Se(e,t,n,r,i=[]){if(Si(e))return i;const o=typeof e;if(o==="string")return i.push(e),i;if(o==="function"){if(ar(e))return i;if(Oi(e)&&t){const a=e(t);return Se(a,t,n,r,i)}return i.push(e),i}if(Array.isArray(e)){for(let a=0;a<e.length;a++)Se(e[a],t,n,r,i);return i}return bi(e)?(i.push(`.${e.styledComponentId}`),i):Fs(e)?(n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i):ar(e)?i:Ye(e)?(Ci(e,i),i):(i.push(e.toString()),i)}const Vs=vi(yt);class Gs{constructor(t,n,r){this.rules=t,this.componentId=n,this.baseHash=Oe(Vs,n),this.baseStyle=r,wt.registerId(n)}generateAndInjectStyles(t,n,r){let i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";{let o="";for(let a=0;a<this.rules.length;a++){const s=this.rules[a];if(typeof s=="string")o+=s;else if(s)if(Oi(s)){const u=s(t);typeof u=="string"?o+=u:u!=null&&u!==!1&&(o+=nr(Se(u,t,n,r)))}else o+=nr(Se(s,t,n,r))}if(o){this.dynamicNameCache||(this.dynamicNameCache=new Map);const a=r.hash?r.hash+o:o;let s=this.dynamicNameCache.get(a);if(!s){if(s=hi(Oe(Oe(this.baseHash,r.hash),o)>>>0),this.dynamicNameCache.size>=200){const u=this.dynamicNameCache.keys().next().value;u!==void 0&&this.dynamicNameCache.delete(u)}this.dynamicNameCache.set(a,s)}if(!n.hasNameForId(this.componentId,s)){const u=r(o,"."+s,void 0,this.componentId);n.insertRules(this.componentId,s,u)}i=Fe(i,s)}}return i}}const Ws=/&/g;function $i(e,t){let n=0;for(;--t>=0&&e.charCodeAt(t)===92;)n++;return!(1&~n)}function Lt(e){const t=e.length;let n="",r=0,i=0,o=0,a=!1,s=!1;for(let u=0;u<t;u++){const c=e.charCodeAt(u);if(o!==0||a||c!==xe||e.charCodeAt(u+1)!==42)if(a)c===42&&e.charCodeAt(u+1)===xe&&(a=!1,u++);else if(c!==34&&c!==39||$i(e,u)){if(o===0)if(c===123)i++;else if(c===125){if(i--,i<0){s=!0;let l=u+1;for(;l<t;){const f=e.charCodeAt(l);if(f===59||f===10)break;l++}l<t&&e.charCodeAt(l)===59&&l++,i=0,u=l-1,r=l;continue}i===0&&(n+=e.substring(r,u+1),r=u+1)}else c===59&&i===0&&(n+=e.substring(r,u+1),r=u+1)}else o===0?o=c:o===c&&(o=0);else a=!0,u++}return s||i!==0||o!==0?(r<t&&i===0&&o===0&&(n+=e.substring(r)),n):e}function Pi(e,t){const n=t+" ",r=","+n;for(let i=0;i<e.length;i++){const o=e[i];if(o.type==="rule"){o.value=(n+o.value).replaceAll(",",r);const a=o.props,s=[];for(let u=0;u<a.length;u++)s[u]=n+a[u];o.props=s}Array.isArray(o.children)&&o.type!=="@keyframes"&&Pi(o.children,t)}return e}function qs({options:e=De,plugins:t=gn}=De){let n,r,i;const o=(d,p,h)=>h.startsWith(r)&&h.endsWith(r)&&h.replaceAll(r,"").length>0?`.${n}`:d,a=t.slice();a.push(d=>{d.type===pt&&d.value.includes("&")&&(i||(i=new RegExp(`\\${r}\\b`,"g")),d.props[0]=d.props[0].replace(Ws,r).replace(i,o))}),e.prefix&&a.push(ss),a.push(is);let s=[];const u=os(a.concat(as(d=>s.push(d)))),c=(d,p="",h="",y="&")=>{n=y,r=p,i=void 0;const v=(function(m){const b=m.indexOf("//")!==-1,j=m.indexOf("}")!==-1;if(!b&&!j)return m;if(!b)return Lt(m);const P=m.length;let I="",O=0,E=0,R=0,A=0,D=0,K=!1;for(;E<P;){const F=m.charCodeAt(E);if(F!==34&&F!==39||$i(m,E))if(R===0)if(F===xe&&E+1<P&&m.charCodeAt(E+1)===42){for(E+=2;E+1<P&&(m.charCodeAt(E)!==42||m.charCodeAt(E+1)!==xe);)E++;E+=2}else if(F!==40)if(F!==41)if(A>0)E++;else if(F===42&&E+1<P&&m.charCodeAt(E+1)===xe)I+=m.substring(O,E),E+=2,O=E,K=!0;else if(F===xe&&E+1<P&&m.charCodeAt(E+1)===xe){for(I+=m.substring(O,E);E<P&&m.charCodeAt(E)!==10;)E++;O=E,K=!0}else F===123?D++:F===125&&D--,E++;else A>0&&A--,E++;else A++,E++;else E++;else R===0?R=F:R===F&&(R=0),E++}return K?(O<P&&(I+=m.substring(O)),D===0?I:Lt(I)):D===0?m:Lt(m)})(d);let k=ns(h||p?h+" "+p+" { "+v+" }":v);return e.namespace&&(k=Pi(k,e.namespace)),s=[],lt(k,u),s},l=e;let f=Xt;for(let d=0;d<t.length;d++)t[d].name||gt(15),f=Oe(f,t[d].name);return l!=null&&l.namespace&&(f=Oe(f,l.namespace)),l!=null&&l.prefix&&(f=Oe(f,"p")),c.hash=f!==Xt?f.toString():"",c}const Ks=new wt,Ys=qs(),ji=Re.createContext({shouldForwardProp:void 0,styleSheet:Ks,stylis:Ys,stylisPlugins:void 0});ji.Consumer;function Zs(){return Re.useContext(ji)}const _i=Re.createContext(void 0);_i.Consumer;const sr=Object.prototype.hasOwnProperty,Bt={};function Us(e,t){const n=typeof e!="string"?"sc":pi(e);Bt[n]=(Bt[n]||0)+1;const r=n+"-"+ms(yt+n+Bt[n]);return t?t+"-"+r:r}function Xs(e,t,n){const r=bi(e),i=e,o=!Jt(e),{attrs:a=gn,componentId:s=Us(t.displayName,t.parentComponentId),displayName:u=gs(e)}=t,c=t.displayName&&t.componentId?pi(t.displayName)+"-"+t.componentId:t.componentId||s,l=r&&i.attrs?i.attrs.concat(a).filter(Boolean):a;let{shouldForwardProp:f}=t;if(r&&i.shouldForwardProp){const y=i.shouldForwardProp;if(t.shouldForwardProp){const v=t.shouldForwardProp;f=(k,m)=>y(k,m)&&v(k,m)}else f=y}const d=new Gs(n,c,r?i.componentStyle:void 0);function p(y,v){return(function(k,m,b){const{attrs:j,componentStyle:P,defaultProps:I,foldedComponentIds:O,styledComponentId:E,target:R}=k,A=Re.useContext(_i),D=Zs(),K=k.shouldForwardProp||D.shouldForwardProp,F=fs(m,A,I)||De;let $,S;{const V=Re.useRef(null),T=V.current;if(T!==null&&T[1]===F&&T[2]===D.styleSheet&&T[3]===D.stylis&&T[7]===P&&(function(re,Y,J){const ee=re,U=Y;let ge=0;for(const le in U)if(sr.call(U,le)&&(ge++,ee[le]!==U[le]))return!1;return ge===J})(T[0],m,T[4]))$=T[5],S=T[6];else{$=(function(Y,J,ee){const U=Object.assign(Object.assign({},J),{className:void 0,theme:ee}),ge=Y.length>1;for(let le=0;le<Y.length;le++){const kt=Y[le],Ue=bt(kt)?kt(ge?Object.assign({},U):U):kt;for(const be in Ue)be==="className"?U.className=Fe(U.className,Ue[be]):be==="style"?U.style=Object.assign(Object.assign({},U.style),Ue[be]):be in J&&J[be]===void 0||(U[be]=Ue[be])}return"className"in J&&typeof J.className=="string"&&(U.className=Fe(U.className,J.className)),U})(j,m,F),S=(function(Y,J,ee,U){return Y.generateAndInjectStyles(J,ee,U)})(P,$,D.styleSheet,D.stylis);let re=0;for(const Y in m)sr.call(m,Y)&&re++;V.current=[m,F,D.styleSheet,D.stylis,re,$,S,P]}}const _=$.as||R,x=(function(V,T,re,Y){const J={};for(const ee in V)V[ee]===void 0||ee[0]==="$"||ee==="as"||ee==="theme"&&V.theme===re||(ee==="forwardedAs"?J.as=V.forwardedAs:Y&&!Y(ee,T)||(J[ee]=V[ee]));return J})($,_,F,K);let H=Fe(O,E);return S&&(H+=" "+S),$.className&&(H+=" "+$.className),x[Jt(_)&&_.includes("-")?"class":"className"]=H,b&&(x.ref=b),g.createElement(_,x)})(h,y,v)}p.displayName=u;let h=Re.forwardRef(p);return h.attrs=l,h.componentStyle=d,h.displayName=u,h.shouldForwardProp=f,h.foldedComponentIds=r?Fe(i.foldedComponentIds,i.styledComponentId):"",h.styledComponentId=c,h.target=r?i.target:e,Object.defineProperty(h,"defaultProps",{get(){return this._foldedDefaultProps},set(y){this._foldedDefaultProps=r?(function(v,...k){for(const m of k)Qt(v,m,!0);return v})({},i.defaultProps,y):y}}),wi(h,()=>`.${h.styledComponentId}`),o&&gi(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),h}var Js=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","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","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function ur(e,t){const n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}const cr=e=>(xi.add(e),e);function bn(e,...t){if(bt(e)||Ye(e))return cr(Se(ur(gn,[e,...t])));const n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?Se(n):cr(Se(ur(n,t)))}function tn(e,t,n=De){if(!t)throw gt(1,t);const r=(i,...o)=>e(t,n,bn(i,...o));return r.attrs=i=>tn(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)})),r.withConfig=i=>tn(e,t,Object.assign(Object.assign({},n),i)),r}const Ei=e=>tn(Xs,e),ne=Ei;Js.forEach(e=>{ne[e]=Ei(e)});function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$e.apply(null,arguments)}function Qs(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function wn(e,t){if(e==null)return{};var n,r,i=Qs(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}/*!
|
|
50
|
+
`)}function Da(e,t){return Yt.apply(this,arguments)}function Yt(){return Yt=M(w.mark(function e(t,n){var r,i,o,a,s;return w.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(t.offsetParent){c.next=5;break}return c.next=3,new Promise(function(l){return setTimeout(l,0)});case 3:c.next=0;break;case 5:if(r=t.offsetLeft,i=t.offsetTop,o=t.offsetParent,o){c.next=10;break}throw new Error("child has null offsetParent");case 10:for(;o!==null&&o!==n;)r+=o.offsetLeft+o.clientLeft,i+=o.offsetTop+o.clientTop,o=o.offsetParent;return a=t.offsetWidth,s=t.offsetHeight,c.abrupt("return",{x:r+a/2,y:i+s/2});case 14:case"end":return c.stop()}},e)})),Yt.apply(this,arguments)}var Ma=(function(){function e(){L(this,e),C(this,"listeners",new Set)}return B(e,[{key:"emit",value:function(n){this.listeners.forEach(function(r){r(n)})}},{key:"listen",value:function(n){var r=this;return this.listeners.add(n),function(){r.listeners.delete(n)}}}])})(),Ta=(function(){function e(){L(this,e),C(this,"elements",new Map)}return B(e,[{key:"getPosition",value:function(n){var r,i,o=Array.from(this.elements.values()).flat(),a=o.filter(function(s){return s.side===n.side&&s.nodeId===n.nodeId&&s.key===n.key});return a.length>1&&console.warn(["Found more than one element for socket with same key and side.","Probably it was not unmounted correctly"].join(" "),n),(r=(i=a.pop())===null||i===void 0?void 0:i.position)!==null&&r!==void 0?r:null}},{key:"add",value:function(n){var r=this.elements.get(n.element);this.elements.set(n.element,r?[].concat(fe(r.filter(function(i){return!(i.nodeId===n.nodeId&&i.key===n.key&&i.side===n.side)})),[n]):[n])}},{key:"remove",value:function(n){this.elements.delete(n)}},{key:"snapshot",value:function(){return Array.from(this.elements.values()).flat()}}])})(),La=(function(){function e(){L(this,e),C(this,"sockets",new Ta),C(this,"emitter",new Ma),C(this,"area",null)}return B(e,[{key:"attach",value:function(n){var r=this;this.area||n.hasParent()&&(this.area=n.parentScope(ft),this.area.addPipe((function(){var i=M(w.mark(function o(a){var s,u,c,l,f,d,p,h,y,v,k;return w.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!(a.type==="rendered"&&a.data.type==="socket")){b.next=8;break}return s=a.data,u=s.nodeId,c=s.key,l=s.side,f=s.element,b.next=4,r.calculatePosition(u,l,c,f);case 4:d=b.sent,d&&(r.sockets.add({nodeId:u,key:c,side:l,element:f,position:d}),r.emitter.emit({nodeId:u,key:c,side:l})),b.next=24;break;case 8:if(a.type!=="unmount"){b.next=12;break}r.sockets.remove(a.data.element),b.next=24;break;case 12:if(a.type!=="nodetranslated"){b.next=16;break}r.emitter.emit({nodeId:a.data.id}),b.next=24;break;case 16:if(a.type!=="noderesized"){b.next=23;break}return p=a.data.id,b.next=20,Promise.all(r.sockets.snapshot().filter(function(j){return j.nodeId===a.data.id&&j.side==="output"}).map((function(){var j=M(w.mark(function P(I){var O,E,R,A;return w.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return O=I.side,E=I.key,R=I.element,K.next=3,r.calculatePosition(p,O,E,R);case 3:A=K.sent,A&&(I.position=A);case 5:case"end":return K.stop()}},P)}));return function(P){return j.apply(this,arguments)}})()));case 20:r.emitter.emit({nodeId:p}),b.next=24;break;case 23:a.type==="render"&&a.data.type==="connection"&&(h=a.data.payload,y=h.source,v=h.target,k=y||v,r.emitter.emit({nodeId:k}));case 24:return b.abrupt("return",a);case 25:case"end":return b.stop()}},o)}));return function(o){return i.apply(this,arguments)}})()))}},{key:"listen",value:function(n,r,i,o){var a=this,s=this.emitter.listen(function(u){if(u.nodeId===n&&(!u.key||u.side===r)&&(!u.side||u.key===i)){var c,l=a.sockets.getPosition({side:r,nodeId:n,key:i});if(!l)return;var f=l.x,d=l.y,p=(c=a.area)===null||c===void 0?void 0:c.nodeViews.get(n);p&&o({x:f+p.position.x,y:d+p.position.y})}});return this.sockets.snapshot().forEach(function(u){u.nodeId===n&&a.emitter.emit(u)}),s}}])})();function Ba(e,t,n){return t=q(t),ye(e,ri()?Reflect.construct(t,[],q(e).constructor):t.apply(e,n))}function ri(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ri=function(){return!!e})()}var Fa=(function(e){function t(n){var r;return L(this,t),r=Ba(this,t),r.props=n,r}return ae(t,e),B(t,[{key:"calculatePosition",value:(function(){var n=M(w.mark(function i(o,a,s,u){var c,l,f,d;return w.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(f=(c=this.area)===null||c===void 0?void 0:c.nodeViews.get(o),f!=null&&f.element){h.next=3;break}return h.abrupt("return",null);case 3:return h.next=5,Da(u,f.element);case 5:if(d=h.sent,!((l=this.props)!==null&&l!==void 0&&l.offset)){h.next=8;break}return h.abrupt("return",this.props.offset(d,o,a,s));case 8:return h.abrupt("return",{x:d.x+12*(a==="input"?-1:1),y:d.y});case 9:case"end":return h.stop()}},i,this)}));function r(i,o,a,s){return n.apply(this,arguments)}return r})()}])})(La);function Ha(e){return new Fa(e)}function Q(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var W="-ms-",Ve="-moz-",G="-webkit-",ii="comm",pt="rule",vn="decl",Va="@import",Ga="@namespace",oi="@keyframes",Wa="@layer",ai=Math.abs,mn=String.fromCharCode,Zt=Object.assign;function qa(e,t){return X(e,0)^45?(((t<<2^X(e,0))<<2^X(e,1))<<2^X(e,2))<<2^X(e,3):0}function si(e){return e.trim()}function ve(e,t){return(e=t.exec(e))?e[0]:e}function N(e,t,n){return e.replace(t,n)}function it(e,t,n){return e.indexOf(t,n)}function X(e,t){return e.charCodeAt(t)|0}function Ce(e,t,n){return e.slice(t,n)}function ue(e){return e.length}function ui(e){return e.length}function Be(e,t){return t.push(e),e}function Ka(e,t){return e.map(t).join("")}function Un(e,t){return e.filter(function(n){return!ve(n,t)})}var ht=1,Ne=1,ci=0,se=0,Z=0,Me="";function vt(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:ht,column:Ne,length:a,return:"",siblings:s}}function we(e,t){return Zt(vt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function _e(e){for(;e.root;)e=we(e.root,{children:[e]});Be(e,e.siblings)}function Ya(){return Z}function Za(){return Z=se>0?X(Me,--se):0,Ne--,Z===10&&(Ne=1,ht--),Z}function ce(){return Z=se<ci?X(Me,se++):0,Ne++,Z===10&&(Ne=1,ht++),Z}function ke(){return X(Me,se)}function ot(){return se}function mt(e,t){return Ce(Me,e,t)}function Ke(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ua(e){return ht=Ne=1,ci=ue(Me=e),se=0,[]}function Xa(e){return Me="",e}function zt(e){return si(mt(se-1,Ut(e===91?e+2:e===40?e+1:e)))}function Ja(e){for(;(Z=ke())&&Z<33;)ce();return Ke(e)>2||Ke(Z)>3?"":" "}function Qa(e,t){for(;--t&&ce()&&!(Z<48||Z>102||Z>57&&Z<65||Z>70&&Z<97););return mt(e,ot()+(t<6&&ke()==32&&ce()==32))}function Ut(e){for(;ce();)switch(Z){case e:return se;case 34:case 39:e!==34&&e!==39&&Ut(Z);break;case 40:e===41&&Ut(e);break;case 92:ce();break}return se}function es(e,t){for(;ce()&&e+Z!==57;)if(e+Z===84&&ke()===47)break;return"/*"+mt(t,se-1)+"*"+mn(e===47?e:ce())}function ts(e){for(;!Ke(ke());)ce();return mt(e,se)}function ns(e){return Xa(at("",null,null,null,[""],e=Ua(e),0,[0],e))}function at(e,t,n,r,i,o,a,s,u){for(var c=0,l=0,f=a,d=0,p=0,h=0,y=1,v=1,k=1,m=0,b="",j=i,P=o,I=r,O=b;v;)switch(h=m,m=ce()){case 40:if(h!=108&&X(O,f-1)==58){it(O+=N(zt(m),"&","&\f"),"&\f",ai(c?s[c-1]:0))!=-1&&(k=-1);break}case 34:case 39:case 91:O+=zt(m);break;case 9:case 10:case 13:case 32:O+=Ja(h);break;case 92:O+=Qa(ot()-1,7);continue;case 47:switch(ke()){case 42:case 47:Be(rs(es(ce(),ot()),t,n,u),u),(Ke(h||1)==5||Ke(ke()||1)==5)&&ue(O)&&Ce(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*y:s[c++]=ue(O)*k;case 125*y:case 59:case 0:switch(m){case 0:case 125:v=0;case 59+l:k==-1&&(O=N(O,/\f/g,"")),p>0&&(ue(O)-f||y===0&&h===47)&&Be(p>32?Jn(O+";",r,n,f-1,u):Jn(N(O," ","")+";",r,n,f-2,u),u);break;case 59:O+=";";default:if(Be(I=Xn(O,t,n,c,l,i,s,b,j=[],P=[],f,o),o),m===123)if(l===0)at(O,t,I,I,j,o,f,s,P);else{switch(d){case 99:if(X(O,3)===110)break;case 108:if(X(O,2)===97)break;default:l=0;case 100:case 109:case 115:}l?at(e,I,I,r&&Be(Xn(e,I,I,0,0,i,s,b,i,j=[],f,P),P),i,P,f,s,r?j:P):at(O,I,I,I,[""],P,0,s,P)}}c=l=p=0,y=k=1,b=O="",f=a;break;case 58:f=1+ue(O),p=h;default:if(y<1){if(m==123)--y;else if(m==125&&y++==0&&Za()==125)continue}switch(O+=mn(m),m*y){case 38:k=l>0?1:(O+="\f",-1);break;case 44:s[c++]=(ue(O)-1)*k,k=1;break;case 64:ke()===45&&(O+=zt(ce())),d=ke(),l=f=ue(b=O+=ts(ot())),m++;break;case 45:h===45&&ue(O)==2&&(y=0)}}return o}function Xn(e,t,n,r,i,o,a,s,u,c,l,f){for(var d=i-1,p=i===0?o:[""],h=ui(p),y=0,v=0,k=0;y<r;++y)for(var m=0,b=Ce(e,d+1,d=ai(v=a[y])),j=e;m<h;++m)(j=si(v>0?p[m]+" "+b:N(b,/&\f/g,p[m])))&&(u[k++]=j);return vt(e,t,n,i===0?pt:s,u,c,l,f)}function rs(e,t,n,r){return vt(e,t,n,ii,mn(Ya()),Ce(e,2,-2),0,r)}function Jn(e,t,n,r,i){return vt(e,t,n,vn,Ce(e,0,r),Ce(e,r+1,-1),r,i)}function li(e,t,n){switch(qa(e,t)){case 5103:return G+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return G+e+e;case 4855:return G+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Ve+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return G+e+Ve+e+W+e+e;case 5936:switch(X(e,t+11)){case 114:return G+e+W+N(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return G+e+W+N(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return G+e+W+N(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return G+e+W+e+e;case 6165:return G+e+W+"flex-"+e+e;case 5187:return G+e+N(e,/(\w+).+(:[^]+)/,G+"box-$1$2"+W+"flex-$1$2")+e;case 5443:return G+e+W+"flex-item-"+N(e,/flex-|-self/g,"")+(ve(e,/flex-|baseline/)?"":W+"grid-row-"+N(e,/flex-|-self/g,""))+e;case 4675:return G+e+W+"flex-line-pack"+N(e,/align-content|flex-|-self/g,"")+e;case 5548:return G+e+W+N(e,"shrink","negative")+e;case 5292:return G+e+W+N(e,"basis","preferred-size")+e;case 6060:return G+"box-"+N(e,"-grow","")+G+e+W+N(e,"grow","positive")+e;case 4554:return G+N(e,/([^-])(transform)/g,"$1"+G+"$2")+e;case 6187:return N(N(N(e,/(zoom-|grab)/,G+"$1"),/(image-set)/,G+"$1"),e,"")+e;case 5495:case 3959:return N(e,/(image-set\([^]*)/,G+"$1$`$1");case 4968:return N(N(e,/(.+:)(flex-)?(.*)/,G+"box-pack:$3"+W+"flex-pack:$3"),/space-between/,"justify")+G+e+e;case 4200:if(!ve(e,/flex-|baseline/))return W+"grid-column-align"+Ce(e,t)+e;break;case 2592:case 3360:return W+N(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,ve(r.props,/grid-\w+-end/)})?~it(e+(n=n[t].value),"span",0)?e:W+N(e,"-start","")+e+W+"grid-row-span:"+(~it(n,"span",0)?ve(n,/\d+/):+ve(n,/\d+/)-+ve(e,/\d+/))+";":W+N(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ve(r.props,/grid-\w+-start/)})?e:W+N(N(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return N(e,/(.+)-inline(.+)/,G+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ue(e)-1-t>6)switch(X(e,t+1)){case 109:if(X(e,t+4)!==45)break;case 102:return N(e,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+Ve+(X(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~it(e,"stretch",0)?li(N(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return N(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,s,u,c){return W+i+":"+o+c+(a?W+i+"-span:"+(s?u:+u-+o)+c:"")+e});case 4949:if(X(e,t+6)===121)return N(e,":",":"+G)+e;break;case 6444:switch(X(e,X(e,14)===45?18:11)){case 120:return N(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+G+(X(e,14)===45?"inline-":"")+"box$3$1"+G+"$2$3$1"+W+"$2box$3")+e;case 100:return N(e,":",":"+W)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return N(e,"scroll-","scroll-snap-")+e}return e}function lt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function is(e,t,n,r){switch(e.type){case Wa:if(e.children.length)break;case Va:case Ga:case vn:return e.return=e.return||e.value;case ii:return"";case oi:return e.return=e.value+"{"+lt(e.children,r)+"}";case pt:if(!ue(e.value=e.props.join(",")))return""}return ue(n=lt(e.children,r))?e.return=e.value+"{"+n+"}":""}function os(e){var t=ui(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function as(e){return function(t){t.root||(t=t.return)&&e(t)}}function ss(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case vn:e.return=li(e.value,e.length,n);return;case oi:return lt([we(e,{value:N(e.value,"@","@"+G)})],r);case pt:if(e.length)return Ka(n=e.props,function(i){switch(ve(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":_e(we(e,{props:[N(i,/:(read-\w+)/,":"+Ve+"$1")]})),_e(we(e,{props:[i]})),Zt(e,{props:Un(n,r)});break;case"::placeholder":_e(we(e,{props:[N(i,/:(plac\w+)/,":"+G+"input-$1")]})),_e(we(e,{props:[N(i,/:(plac\w+)/,":"+Ve+"$1")]})),_e(we(e,{props:[N(i,/:(plac\w+)/,W+"input-$1")]})),_e(we(e,{props:[i]})),Zt(e,{props:Un(n,r)});break}return""})}}var Ae={},Dt,Mt;const ze=typeof process<"u"&&Ae!==void 0&&(Ae.REACT_APP_SC_ATTR||Ae.SC_ATTR)||"data-styled",di="active",fi="data-styled-version",yt="6.4.2",yn=`/*!sc*/
|
|
51
|
+
`,Ge=typeof window<"u"&&typeof document<"u";function Qn(e){if(typeof process<"u"&&Ae!==void 0){const t=Ae[e];if(t!==void 0&&t!=="")return t!=="false"}}const us=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:(Mt=(Dt=Qn("REACT_APP_SC_DISABLE_SPEEDY"))!==null&&Dt!==void 0?Dt:Qn("SC_DISABLE_SPEEDY"))!==null&&Mt!==void 0?Mt:typeof process<"u"&&Ae!==void 0&&!1),cs="sc-keyframes-";function gt(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let st=new Map,dt=new Map,ut=1;const et=e=>{if(st.has(e))return st.get(e);for(;dt.has(ut);)ut++;const t=ut++;return st.set(e,t),dt.set(t,e),t},ls=e=>dt.get(e),ds=(e,t)=>{ut=t+1,st.set(e,t),dt.set(t,e)},gn=Object.freeze([]),De=Object.freeze({});function fs(e,t,n=De){return e.theme!==n.theme&&e.theme||t||n.theme}const ps=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,hs=/(^-|-$)/g;function pi(e){return e.replace(ps,"-").replace(hs,"")}const vs=/(a)(d)/gi,er=e=>String.fromCharCode(e+(e>25?39:97));function hi(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=er(t%52)+n;return(er(t%52)+n).replace(vs,"$1-$2")}const Xt=5381,Oe=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},vi=e=>Oe(Xt,e);function ms(e){return hi(vi(e)>>>0)}function ys(e){return e.displayName||e.name||"Component"}function Jt(e){return typeof e=="string"&&!0}function gs(e){return Jt(e)?`styled.${e}`:`Styled(${ys(e)})`}const mi=Symbol.for("react.memo"),bs=Symbol.for("react.forward_ref"),ws={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},ks={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},yi={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xs={[bs]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[mi]:yi};function tr(e){return("type"in(t=e)&&t.type.$$typeof)===mi?yi:"$$typeof"in e?xs[e.$$typeof]:ws;var t}const Os=Object.defineProperty,Ss=Object.getOwnPropertyNames,Cs=Object.getOwnPropertySymbols,$s=Object.getOwnPropertyDescriptor,Ps=Object.getPrototypeOf,js=Object.prototype;function gi(e,t,n){if(typeof t!="string"){const r=Ps(t);r&&r!==js&&gi(e,r,n);const i=Ss(t).concat(Cs(t)),o=tr(e),a=tr(t);for(let s=0;s<i.length;++s){const u=i[s];if(!(u in ks||n&&n[u]||a&&u in a||o&&u in o)){const c=$s(t,u);try{Os(e,u,c)}catch{}}}}return e}function bt(e){return typeof e=="function"}const _s=Symbol.for("react.forward_ref");function bi(e){return e!=null&&(typeof e=="object"||typeof e=="function")&&e.$$typeof===_s&&"styledComponentId"in e}function Fe(e,t){return e&&t?e+" "+t:e||t||""}function nr(e,t){return e.join("")}function Ye(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Qt(e,t,n=!1){if(!n&&!Ye(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let r=0;r<t.length;r++)e[r]=Qt(e[r],t[r]);else if(Ye(t))for(const r in t)e[r]=Qt(e[r],t[r]);return e}function wi(e,t){Object.defineProperty(e,"toString",{value:t})}const Es=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const i=this.groupSizes,o=i.length;let a=o;for(;e>=a;)if(a<<=1,a<0)throw gt(16,`${e}`);this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(let s=o;s<a;s++)this.groupSizes[s]=0}let n=this.indexOfGroup(e+1),r=0;for(let i=0,o=t.length;i<o;i++)this.tag.insertRule(n,t[i])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let i=n;i<r;i++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||this.groupSizes[e]===0)return t;const n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;for(let o=r;o<i;o++)t+=this.tag.getRule(o)+yn;return t}},Rs=`style[${ze}][${fi}="${yt}"]`,Is=new RegExp(`^${ze}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),rr=e=>typeof ShadowRoot<"u"&&e instanceof ShadowRoot||"host"in e&&e.nodeType===11,en=e=>{if(!e)return document;if(rr(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(rr(t))return t}return document},As=(e,t,n)=>{const r=n.split(",");let i;for(let o=0,a=r.length;o<a;o++)(i=r[o])&&e.registerName(t,i)},Ns=(e,t)=>{var n;const r=((n=t.textContent)!==null&&n!==void 0?n:"").split(yn),i=[];for(let o=0,a=r.length;o<a;o++){const s=r[o].trim();if(!s)continue;const u=s.match(Is);if(u){const c=0|parseInt(u[1],10),l=u[2];c!==0&&(ds(l,c),As(e,l,u[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(s)}},Tt=e=>{const t=en(e.options.target).querySelectorAll(Rs);for(let n=0,r=t.length;n<r;n++){const i=t[n];i&&i.getAttribute(ze)!==di&&(Ns(e,i),i.parentNode&&i.parentNode.removeChild(i))}};let Te=!1;function zs(){if(Te!==!1)return Te;if(typeof document<"u"){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return Te=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return Te=t.getAttribute("content")||void 0}return Te=typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}const ki=(e,t)=>{const n=document.head,r=e||n,i=document.createElement("style"),o=(u=>{const c=Array.from(u.querySelectorAll(`style[${ze}]`));return c[c.length-1]})(r),a=o!==void 0?o.nextSibling:null;i.setAttribute(ze,di),i.setAttribute(fi,yt);const s=t||zs();return s&&i.setAttribute("nonce",s),r.insertBefore(i,a),i},Ds=class{constructor(e,t){this.element=ki(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(n=>{var r;if(n.sheet)return n.sheet;const i=(r=n.getRootNode().styleSheets)!==null&&r!==void 0?r:document.styleSheets;for(let o=0,a=i.length;o<a;o++){const s=i[o];if(s.ownerNode===n)return s}throw gt(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},Ms=class{constructor(e,t){this.element=ki(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let ir=Ge;const Ts={isServer:!Ge,useCSSOMInjection:!us};class wt{static registerId(t){return et(t)}constructor(t=De,n={},r){this.options=Object.assign(Object.assign({},Ts),t),this.gs=n,this.keyframeIds=new Set,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Ge&&ir&&(ir=!1,Tt(this)),wi(this,()=>(i=>{const o=i.getTag(),{length:a}=o;let s="";for(let u=0;u<a;u++){const c=ls(u);if(c===void 0)continue;const l=i.names.get(c);if(l===void 0||!l.size)continue;const f=o.getGroup(u);if(f.length===0)continue;const d=ze+".g"+u+'[id="'+c+'"]';let p="";for(const h of l)h.length>0&&(p+=h+",");s+=f+d+'{content:"'+p+'"}'+yn}return s})(this))}rehydrate(){!this.server&&Ge&&Tt(this)}reconstructWithOptions(t,n=!0){const r=new wt(Object.assign(Object.assign({},this.options),t),this.gs,n&&this.names||void 0);return r.keyframeIds=new Set(this.keyframeIds),!this.server&&Ge&&t.target!==this.options.target&&en(this.options.target)!==en(t.target)&&Tt(r),r}allocateGSInstance(t){return this.gs[t]=(this.gs[t]||0)+1}getTag(){return this.tag||(this.tag=(t=(({useCSSOMInjection:n,target:r,nonce:i})=>n?new Ds(r,i):new Ms(r,i))(this.options),new Es(t)));var t}hasNameForId(t,n){var r,i;return(i=(r=this.names.get(t))===null||r===void 0?void 0:r.has(n))!==null&&i!==void 0&&i}registerName(t,n){et(t),t.startsWith(cs)&&this.keyframeIds.add(t);const r=this.names.get(t);r?r.add(n):this.names.set(t,new Set([n]))}insertRules(t,n,r){this.registerName(t,n),this.getTag().insertRules(et(t),r)}clearNames(t){this.names.has(t)&&this.names.get(t).clear()}clearRules(t){this.getTag().clearGroup(et(t)),this.clearNames(t)}clearTag(){this.tag=void 0}}const xi=new WeakSet,Ls={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Bs(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in Ls||e.startsWith("--")?String(t).trim():t+"px"}const xe=47;function or(e){if(e.charCodeAt(0)===45&&e.charCodeAt(1)===45)return e;let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}const Fs=Symbol.for("sc-keyframes");function Hs(e){return typeof e=="object"&&e!==null&&Fs in e}function Oi(e){return bt(e)&&!(e.prototype&&e.prototype.isReactComponent)}const Si=e=>e==null||e===!1||e==="",Vs=Symbol.for("react.client.reference");function ar(e){return e.$$typeof===Vs}function Ci(e,t){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!Si(r)&&(Array.isArray(r)&&xi.has(r)||bt(r)?t.push(or(n)+":",r,";"):Ye(r)?(t.push(n+" {"),Ci(r,t),t.push("}")):t.push(or(n)+": "+Bs(n,r)+";"))}}function Se(e,t,n,r,i=[]){if(Si(e))return i;const o=typeof e;if(o==="string")return i.push(e),i;if(o==="function"){if(ar(e))return i;if(Oi(e)&&t){const a=e(t);return Se(a,t,n,r,i)}return i.push(e),i}if(Array.isArray(e)){for(let a=0;a<e.length;a++)Se(e[a],t,n,r,i);return i}return bi(e)?(i.push(`.${e.styledComponentId}`),i):Hs(e)?(n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i):ar(e)?i:Ye(e)?e.toString!==Object.prototype.toString?(i.push(e.toString()),i):(Ci(e,i),i):(i.push(e.toString()),i)}const Gs=vi(yt);class Ws{constructor(t,n,r){this.rules=t,this.componentId=n,this.baseHash=Oe(Gs,n),this.baseStyle=r,wt.registerId(n)}generateAndInjectStyles(t,n,r){let i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";{let o="";for(let a=0;a<this.rules.length;a++){const s=this.rules[a];if(typeof s=="string")o+=s;else if(s)if(Oi(s)){const u=s(t);typeof u=="string"?o+=u:u!=null&&u!==!1&&(o+=nr(Se(u,t,n,r)))}else o+=nr(Se(s,t,n,r))}if(o){this.dynamicNameCache||(this.dynamicNameCache=new Map);const a=r.hash?r.hash+o:o;let s=this.dynamicNameCache.get(a);if(!s){if(s=hi(Oe(Oe(this.baseHash,r.hash),o)>>>0),this.dynamicNameCache.size>=200){const u=this.dynamicNameCache.keys().next().value;u!==void 0&&this.dynamicNameCache.delete(u)}this.dynamicNameCache.set(a,s)}if(!n.hasNameForId(this.componentId,s)){const u=r(o,"."+s,void 0,this.componentId);n.insertRules(this.componentId,s,u)}i=Fe(i,s)}}return i}}const qs=/&/g;function $i(e,t){let n=0;for(;--t>=0&&e.charCodeAt(t)===92;)n++;return!(1&~n)}function Lt(e){const t=e.length;let n="",r=0,i=0,o=0,a=!1,s=!1;for(let u=0;u<t;u++){const c=e.charCodeAt(u);if(o!==0||a||c!==xe||e.charCodeAt(u+1)!==42)if(a)c===42&&e.charCodeAt(u+1)===xe&&(a=!1,u++);else if(c!==34&&c!==39||$i(e,u)){if(o===0)if(c===123)i++;else if(c===125){if(i--,i<0){s=!0;let l=u+1;for(;l<t;){const f=e.charCodeAt(l);if(f===59||f===10)break;l++}l<t&&e.charCodeAt(l)===59&&l++,i=0,u=l-1,r=l;continue}i===0&&(n+=e.substring(r,u+1),r=u+1)}else c===59&&i===0&&(n+=e.substring(r,u+1),r=u+1)}else o===0?o=c:o===c&&(o=0);else a=!0,u++}return s||i!==0||o!==0?(r<t&&i===0&&o===0&&(n+=e.substring(r)),n):e}function Pi(e,t){const n=t+" ",r=","+n;for(let i=0;i<e.length;i++){const o=e[i];if(o.type==="rule"){o.value=(n+o.value).replaceAll(",",r);const a=o.props,s=[];for(let u=0;u<a.length;u++)s[u]=n+a[u];o.props=s}Array.isArray(o.children)&&o.type!=="@keyframes"&&Pi(o.children,t)}return e}function Ks({options:e=De,plugins:t=gn}=De){let n,r,i;const o=(d,p,h)=>h.startsWith(r)&&h.endsWith(r)&&h.replaceAll(r,"").length>0?`.${n}`:d,a=t.slice();a.push(d=>{d.type===pt&&d.value.includes("&")&&(i||(i=new RegExp(`\\${r}\\b`,"g")),d.props[0]=d.props[0].replace(qs,r).replace(i,o))}),e.prefix&&a.push(ss),a.push(is);let s=[];const u=os(a.concat(as(d=>s.push(d)))),c=(d,p="",h="",y="&")=>{n=y,r=p,i=void 0;const v=(function(m){const b=m.indexOf("//")!==-1,j=m.indexOf("}")!==-1;if(!b&&!j)return m;if(!b)return Lt(m);const P=m.length;let I="",O=0,E=0,R=0,A=0,D=0,K=!1;for(;E<P;){const F=m.charCodeAt(E);if(F!==34&&F!==39||$i(m,E))if(R===0)if(F===xe&&E+1<P&&m.charCodeAt(E+1)===42){for(E+=2;E+1<P&&(m.charCodeAt(E)!==42||m.charCodeAt(E+1)!==xe);)E++;E+=2}else if(F!==40)if(F!==41)if(A>0)E++;else if(F===42&&E+1<P&&m.charCodeAt(E+1)===xe)I+=m.substring(O,E),E+=2,O=E,K=!0;else if(F===xe&&E+1<P&&m.charCodeAt(E+1)===xe){for(I+=m.substring(O,E);E<P&&m.charCodeAt(E)!==10;)E++;O=E,K=!0}else F===123?D++:F===125&&D--,E++;else A>0&&A--,E++;else A++,E++;else E++;else R===0?R=F:R===F&&(R=0),E++}return K?(O<P&&(I+=m.substring(O)),D===0?I:Lt(I)):D===0?m:Lt(m)})(d);let k=ns(h||p?h+" "+p+" { "+v+" }":v);return e.namespace&&(k=Pi(k,e.namespace)),s=[],lt(k,u),s},l=e;let f=Xt;for(let d=0;d<t.length;d++)t[d].name||gt(15),f=Oe(f,t[d].name);return l!=null&&l.namespace&&(f=Oe(f,l.namespace)),l!=null&&l.prefix&&(f=Oe(f,"p")),c.hash=f!==Xt?f.toString():"",c}const Ys=new wt,Zs=Ks(),ji=Re.createContext({shouldForwardProp:void 0,styleSheet:Ys,stylis:Zs,stylisPlugins:void 0});ji.Consumer;function Us(){return Re.useContext(ji)}const _i=Re.createContext(void 0);_i.Consumer;const sr=Object.prototype.hasOwnProperty,Bt={};function Xs(e,t){const n=typeof e!="string"?"sc":pi(e);Bt[n]=(Bt[n]||0)+1;const r=n+"-"+ms(yt+n+Bt[n]);return t?t+"-"+r:r}function Js(e,t,n){const r=bi(e),i=e,o=!Jt(e),{attrs:a=gn,componentId:s=Xs(t.displayName,t.parentComponentId),displayName:u=gs(e)}=t,c=t.displayName&&t.componentId?pi(t.displayName)+"-"+t.componentId:t.componentId||s,l=r&&i.attrs?i.attrs.concat(a).filter(Boolean):a;let{shouldForwardProp:f}=t;if(r&&i.shouldForwardProp){const y=i.shouldForwardProp;if(t.shouldForwardProp){const v=t.shouldForwardProp;f=(k,m)=>y(k,m)&&v(k,m)}else f=y}const d=new Ws(n,c,r?i.componentStyle:void 0);function p(y,v){return(function(k,m,b){const{attrs:j,componentStyle:P,defaultProps:I,foldedComponentIds:O,styledComponentId:E,target:R}=k,A=Re.useContext(_i),D=Us(),K=k.shouldForwardProp||D.shouldForwardProp,F=fs(m,A,I)||De;let $,S;{const V=Re.useRef(null),T=V.current;if(T!==null&&T[1]===F&&T[2]===D.styleSheet&&T[3]===D.stylis&&T[7]===P&&(function(re,Y,J){const ee=re,U=Y;let ge=0;for(const le in U)if(sr.call(U,le)&&(ge++,ee[le]!==U[le]))return!1;return ge===J})(T[0],m,T[4]))$=T[5],S=T[6];else{$=(function(Y,J,ee){const U=Object.assign(Object.assign({},J),{className:void 0,theme:ee}),ge=Y.length>1;for(let le=0;le<Y.length;le++){const kt=Y[le],Ue=bt(kt)?kt(ge?Object.assign({},U):U):kt;for(const be in Ue)be==="className"?U.className=Fe(U.className,Ue[be]):be==="style"?U.style=Object.assign(Object.assign({},U.style),Ue[be]):be in J&&J[be]===void 0||(U[be]=Ue[be])}return"className"in J&&typeof J.className=="string"&&(U.className=Fe(U.className,J.className)),U})(j,m,F),S=(function(Y,J,ee,U){return Y.generateAndInjectStyles(J,ee,U)})(P,$,D.styleSheet,D.stylis);let re=0;for(const Y in m)sr.call(m,Y)&&re++;V.current=[m,F,D.styleSheet,D.stylis,re,$,S,P]}}const _=$.as||R,x=(function(V,T,re,Y){const J={};for(const ee in V)V[ee]===void 0||ee[0]==="$"||ee==="as"||ee==="theme"&&V.theme===re||(ee==="forwardedAs"?J.as=V.forwardedAs:Y&&!Y(ee,T)||(J[ee]=V[ee]));return J})($,_,F,K);let H=Fe(O,E);return S&&(H+=" "+S),$.className&&(H+=" "+$.className),x[Jt(_)&&_.includes("-")?"class":"className"]=H,b&&(x.ref=b),g.createElement(_,x)})(h,y,v)}p.displayName=u;let h=Re.forwardRef(p);return h.attrs=l,h.componentStyle=d,h.displayName=u,h.shouldForwardProp=f,h.foldedComponentIds=r?Fe(i.foldedComponentIds,i.styledComponentId):"",h.styledComponentId=c,h.target=r?i.target:e,Object.defineProperty(h,"defaultProps",{get(){return this._foldedDefaultProps},set(y){this._foldedDefaultProps=r?(function(v,...k){for(const m of k)Qt(v,m,!0);return v})({},i.defaultProps,y):y}}),wi(h,()=>`.${h.styledComponentId}`),o&&gi(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),h}var Qs=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","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","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function ur(e,t){const n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}const cr=e=>(xi.add(e),e);function bn(e,...t){if(bt(e)||Ye(e))return cr(Se(ur(gn,[e,...t])));const n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?Se(n):cr(Se(ur(n,t)))}function tn(e,t,n=De){if(!t)throw gt(1,t);const r=(i,...o)=>e(t,n,bn(i,...o));return r.attrs=i=>tn(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)})),r.withConfig=i=>tn(e,t,Object.assign(Object.assign({},n),i)),r}const Ei=e=>tn(Js,e),ne=Ei;Qs.forEach(e=>{ne[e]=Ei(e)});function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$e.apply(null,arguments)}function eu(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function wn(e,t){if(e==null)return{};var n,r,i=eu(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}/*!
|
|
52
52
|
* rete-react-plugin v2.0.7
|
|
53
53
|
* (c) 2025 Vitaliy Stoliarov
|
|
54
54
|
* Released under the MIT license.
|
|
55
|
-
* */function
|
|
55
|
+
* */function tu(e){var t=e==null?void 0:e.createRoot,n=new WeakMap;function r(a){var s=n.get(a);if(s)return s;var u=document.createElement("span");return a.appendChild(u),n.set(a,u),u}function i(a){var s=n.get(a);s&&(s.remove(),n.delete(a))}if(t){var o=new WeakMap;return{mount:function(s,u){var c,l=r(u),f=o.get(l);return f||(f=t(l),o.set(l,f)),f.render(s),(c=l.firstElementChild)!==null&&c!==void 0?c:l},unmount:function(s){var u=r(s),c=o.get(u);c&&(c.unmount(),o.delete(u)),i(s)}}}return{mount:function(s,u){var c=r(u);if("render"in xn&&typeof Le.render=="function"){var l=Le.render(s,c);return l||c}throw new Error("ReactDOM.render is not available")},unmount:function(s){var u=r(s);if("unmountComponentAtNode"in xn&&typeof Le.unmountComponentAtNode=="function")Le.unmountComponentAtNode(u);else throw new Error("ReactDOM.unmountComponentAtNode is not available");i(s)}}}function nu(e){var t=e.children,n=e.rendered;return g.useEffect(function(){n()}),t}function ru(){var e=g.useRef(!1);return g.useEffect(function(){e.current=!0},[]),{apply:function(n){e.current?queueMicrotask(function(){Le.flushSync(n)}):n()}}}var Ri=g.createContext({start:null,end:null,path:null});function iu(e){var t=e.children,n=g.useState(null),r=ie(n,2),i=r[0],o=r[1],a=g.useState(null),s=ie(a,2),u=s[0],c=s[1],l=g.useState(null),f=ie(l,2),d=f[0],p=f[1],h="x"in e.start?e.start:i,y="x"in e.end?e.end:u,v=ru();return g.useEffect(function(){var k=typeof e.start=="function"&&e.start(function(b){v.apply(function(){o(b)})}),m=typeof e.end=="function"&&e.end(function(b){v.apply(function(){c(b)})});return function(){k&&k(),m&&m()}},[]),g.useEffect(function(){h&&y&&e.path(h,y).then(function(k){v.apply(function(){p(k)})})},[h,y]),g.createElement(Ri.Provider,{value:{start:h,end:y,path:d}},t)}function Ii(){return g.useContext(Ri)}var lr,dr,ou=ne.svg(lr||(lr=Q([`
|
|
56
56
|
overflow: visible !important;
|
|
57
57
|
position: absolute;
|
|
58
58
|
pointer-events: none;
|
|
59
59
|
width: 9999px;
|
|
60
60
|
height: 9999px;
|
|
61
|
-
`]))),
|
|
61
|
+
`]))),au=ne.path(dr||(dr=Q([`
|
|
62
62
|
fill: none;
|
|
63
63
|
stroke-width: 5px;
|
|
64
64
|
stroke: steelblue;
|
|
65
65
|
pointer-events: auto;
|
|
66
66
|
`,`
|
|
67
|
-
`])),function(e){var t;return(t=e.styles)===null||t===void 0?void 0:t.call(e,e)});function Ai(e){var t=Ii(),n=t.path;return n?g.createElement(
|
|
68
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,o=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}function
|
|
67
|
+
`])),function(e){var t;return(t=e.styles)===null||t===void 0?void 0:t.call(e,e)});function Ai(e){var t=Ii(),n=t.path;return n?g.createElement(ou,{"data-testid":"connection"},g.createElement(au,{styles:e.styles,d:n})):null}function su(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=uu(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
68
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,o=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}function uu(e,t){if(e){if(typeof e=="string")return fr(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fr(e,t):void 0}}function fr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cu(e){for(var t=new e.constructor(e.type),n=t;n=Object.getPrototypeOf(n);){var r=Object.getOwnPropertyNames(n),i=su(r),o;try{for(i.s();!(o=i.n()).done;){var a=o.value,s=t[a];typeof s!="function"&&Object.defineProperty(t,a,{value:e[a]})}}catch(u){i.e(u)}finally{i.f()}}return t}var lu="__reactContainer$";function du(e){for(var t=e;t;){if(t._reactRootContainer||Object.keys(t).some(function(n){return n.startsWith(lu)}))return t;t=t.parentElement}}function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pr(Object(n),!0).forEach(function(r){C(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ni(e,t){return{start:function(r){var i=hr({},t(r));function o(s){var u=hr({},t(s)),c=u.x-i.x,l=u.y-i.y;i=u,e(c,l)}function a(){window.removeEventListener("pointermove",o),window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a)}window.addEventListener("pointermove",o),window.addEventListener("pointerup",a),window.addEventListener("pointercancel",a)}}}function fu(e,t){g.useEffect(function(){var n=function(o){if(!t){var a=du(o.target),s=g.version.startsWith("16")?document:a;s&&(o.stopPropagation(),s.dispatchEvent(cu(o)))}},r=e.current;return r==null||r.addEventListener("pointerdown",n),function(){r==null||r.removeEventListener("pointerdown",n)}},[e,t])}var vr,pu=ne.input(vr||(vr=Q([`
|
|
69
69
|
width: 100%;
|
|
70
70
|
border-radius: 30px;
|
|
71
71
|
background-color: white;
|
|
@@ -74,7 +74,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
74
74
|
font-size: 110%;
|
|
75
75
|
box-sizing: border-box;
|
|
76
76
|
`,`
|
|
77
|
-
`])),function(e){var t;return(t=e.styles)===null||t===void 0?void 0:t.call(e,e)});function nn(e){var t=g.useState(e.data.value),n=ie(t,2),r=n[0],i=n[1],o=g.useRef(null);return
|
|
77
|
+
`])),function(e){var t;return(t=e.styles)===null||t===void 0?void 0:t.call(e,e)});function nn(e){var t=g.useState(e.data.value),n=ie(t,2),r=n[0],i=n[1],o=g.useRef(null);return fu(o),g.useEffect(function(){i(e.data.value)},[e.data.value]),g.createElement(pu,{value:r,type:e.data.type,ref:o,readOnly:e.data.readonly,onChange:function(s){var u=e.data.type==="number"?+s.target.value:s.target.value;i(u),e.data.setValue(u)},styles:e.styles})}var rn="rgba(110,136,255,0.8)",zi="#ffd92c",de=24,me=6,Di="#96b38a",Mi=180,hu=Object.freeze({__proto__:null,$nodecolor:rn,$nodecolorselected:zi,$socketsize:de,$socketmargin:me,$socketcolor:Di,$nodewidth:Mi}),vu=["init","unmount"];function Ti(e){var t=e.init,n=e.unmount,r=wn(e,vu),i=g.useRef(null);return g.useEffect(function(){var o=i.current;return function(){o&&n(o)}},[]),g.useEffect(function(){i.current&&t(i.current)}),g.createElement("span",$e({},r,{ref:i}))}var mu=["name","emit","payload"];function on(e){var t=e.name,n=e.emit,r=e.payload,i=wn(e,mu);return g.createElement(Ti,$e({},i,{className:t,init:function(a){n({type:"render",data:{type:"control",element:a,payload:r}})},unmount:function(a){n({type:"unmount",data:{element:a}})}}))}var yu=["name","emit","nodeId","side","socketKey","payload"];function an(e){var t=e.name,n=e.emit,r=e.nodeId,i=e.side,o=e.socketKey,a=e.payload,s=wn(e,yu);return g.createElement(Ti,$e({},s,{className:t,init:function(c){n({type:"render",data:{type:"socket",side:i,key:o,nodeId:r,element:c,payload:a}})},unmount:function(c){n({type:"unmount",data:{element:c}})}}))}var mr,yr,Li=ne.div(mr||(mr=Q([`
|
|
78
78
|
background: `,`;
|
|
79
79
|
border: 2px solid #4e58bf;
|
|
80
80
|
border-radius: 10px;
|
|
@@ -154,13 +154,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
154
154
|
&.multiple {
|
|
155
155
|
border-color: yellow;
|
|
156
156
|
}
|
|
157
|
-
`])),de/2,de,de,Di),
|
|
157
|
+
`])),de/2,de,de,Di),gu=ne.div(br||(br=Q([`
|
|
158
158
|
border-radius: `,`px;
|
|
159
159
|
padding: `,`px;
|
|
160
160
|
&:hover `,` {
|
|
161
161
|
border-width: 4px;
|
|
162
162
|
}
|
|
163
|
-
`])),(de+me*2)/2,me,Fi);function Hi(e){return g.createElement(
|
|
163
|
+
`])),(de+me*2)/2,me,Fi);function Hi(e){return g.createElement(gu,null,g.createElement(Fi,{title:e.data.name}))}function bu(e){var t=typeof(e==null?void 0:e.socketPositionWatcher)>"u"?Ha():e.socketPositionWatcher,n=(e==null?void 0:e.customize)||{},r=n.node,i=n.connection,o=n.socket,a=n.control;return{attach:function(u){t.attach(u)},render:function(u,c){if(u.data.type==="node"){var l=c.parentScope(),f=r?r(u.data):Bi;return f&&g.createElement(f,{data:u.data.payload,emit:function(P){return void l.emit(P)}})}else if(u.data.type==="connection"){var d=i?i(u.data):Ai,p=u.data.payload,h=p.sourceOutput,y=p.targetInput,v=p.source,k=p.target;return d&&g.createElement(iu,{start:u.data.start||function(j){return t.listen(v,"output",h,j)},end:u.data.end||function(j){return t.listen(k,"input",y,j)},path:(function(){var j=M(w.mark(function P(I,O){var E,R,A,D,K;return w.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=1,c.emit({type:"connectionpath",data:{payload:p,points:[I,O]}});case 1:if(E=F.sent,E){F.next=2;break}return F.abrupt("return","");case 2:if(R=E.data,A=R.path,D=R.points,K=.3,!(!A&&D.length!==2)){F.next=3;break}throw new Error("cannot render connection with a custom number of points");case 3:if(A){F.next=4;break}return F.abrupt("return",p.isLoop?za(D,K,120):Na(D,K));case 4:return F.abrupt("return",A);case 5:case"end":return F.stop()}},P)}));return function(P,I){return j.apply(this,arguments)}})()},g.createElement(d,{data:u.data.payload}))}else if(u.data.type==="socket"){var m=o?o(u.data):Hi;return m&&u.data.payload&&g.createElement(m,{data:u.data.payload})}else if(u.data.type==="control"){var b=a&&u.data.payload?a(u.data):u.data.payload instanceof Ie.InputControl?nn:null;return b&&g.createElement(b,{data:u.data.payload})}}}}var wu=Object.freeze({__proto__:null,vars:hu,setup:bu,Connection:Ai,useConnection:Ii,Control:nn,InputControl:nn,Node:Bi,NodeStyles:Li,RefControl:on,RefSocket:an,Socket:Hi});function Vi(e,t){var n=g.useRef(void 0);function r(){n.current&&clearTimeout(n.current)}var i=function(){r(),n.current=setTimeout(function(){e()},t)};return g.useEffect(function(){return r},[]),[i,r]}var ku="rgba(110,136,255,0.8)",xu="rgba(130, 153, 255, 0.8)",Ou="rgba(69, 103, 255, 0.8)",tt="5px",sn=120,wr,kn=ne.div(wr||(wr=Q([`
|
|
164
164
|
color: #fff;
|
|
165
165
|
padding: 4px;
|
|
166
166
|
border-bottom: 1px solid `,`;
|
|
@@ -179,7 +179,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
179
179
|
&:hover {
|
|
180
180
|
background-color: `,`;
|
|
181
181
|
}
|
|
182
|
-
`])),
|
|
182
|
+
`])),Ou,ku,tt,tt,tt,tt,xu),kr,xr,Or,Gi=ne(kn)(kr||(kr=Q([`
|
|
183
183
|
`,`
|
|
184
184
|
`])),function(e){return e.hasSubitems&&bn(xr||(xr=Q([`&:after {
|
|
185
185
|
content: '►';
|
|
@@ -202,20 +202,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
202
202
|
width: 100%;
|
|
203
203
|
box-sizing: border-box;
|
|
204
204
|
background: transparent;
|
|
205
|
-
`])));function
|
|
205
|
+
`])));function Su(e){var t=e.component||Ki;return g.createElement(t,{value:e.value,onInput:function(r){e.onChange(r.target.value)},onPointerDown:function(r){r.stopPropagation()},"data-testid":"context-menu-search-input"})}var Cr,Yi=ne.div(Cr||(Cr=Q([`
|
|
206
206
|
padding: 10px;
|
|
207
207
|
width: `,`px;
|
|
208
208
|
margin-top: -20px;
|
|
209
209
|
margin-left: -`,`px;
|
|
210
|
-
`])),sn,sn/2);function
|
|
210
|
+
`])),sn,sn/2);function Cu(e){var t,n,r,i,o,a,s=Vi(e.onHide,e.delay),u=ie(s,2),c=u[0],l=u[1],f=g.useState(""),d=ie(f,2),p=d[0],h=d[1],y=new RegExp(p,"i"),v=e.items.filter(function(b){return b.label.match(y)}),k=((t=e.components)===null||t===void 0||(n=t.main)===null||n===void 0?void 0:n.call(t))||Yi,m=((r=e.components)===null||r===void 0||(i=r.common)===null||i===void 0?void 0:i.call(r))||kn;return g.createElement(k,{onMouseOver:function(){l()},onMouseLeave:function(){c==null||c()},onWheel:function(j){j.stopPropagation()},"data-testid":"context-menu"},e.searchBar&&g.createElement(m,null,g.createElement(Su,{value:p,onChange:h,component:(o=e.components)===null||o===void 0||(a=o.search)===null||a===void 0?void 0:a.call(o)})),v.map(function(b){return g.createElement(qi,{key:b.key,data:b,delay:e.delay,hide:e.onHide,components:e.components},b.label)}))}function $u(e){var t=typeof(e==null?void 0:e.delay)>"u"?1e3:e.delay;return{render:function(r){if(r.data.type==="contextmenu")return g.createElement(Cu,{items:r.data.items,delay:t,searchBar:r.data.searchBar,onHide:r.data.onHide,components:e==null?void 0:e.customize})}}}var Pu=Object.freeze({__proto__:null,setup:$u,Item:Gi,Subitems:Wi,Menu:Yi,Search:Ki,Common:kn}),nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ju=typeof nt=="object"&&nt&&nt.Object===Object&&nt,_u=typeof self=="object"&&self&&self.Object===Object&&self;ju||_u||Function("return this")();function Eu(){const e=g.useRef(!1);return g.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),g.useCallback(()=>e.current,[])}var $r={width:void 0,height:void 0};function Ru(e){const{ref:t,box:n="content-box"}=e,[{width:r,height:i},o]=g.useState($r),a=Eu(),s=g.useRef({...$r}),u=g.useRef(void 0);return u.current=e.onResize,g.useEffect(()=>{if(!t.current||typeof window>"u"||!("ResizeObserver"in window))return;const c=new ResizeObserver(([l])=>{const f=n==="border-box"?"borderBoxSize":n==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",d=Pr(l,f,"inlineSize"),p=Pr(l,f,"blockSize");if(s.current.width!==d||s.current.height!==p){const y={width:d,height:p};s.current.width=d,s.current.height=p,u.current?u.current(y):a()&&o(y)}});return c.observe(t.current,{box:n}),()=>{c.disconnect()}},[n,t,a]),{width:r,height:i}}function Pr(e,t,n){return e[t]?Array.isArray(e[t])?e[t][0][n]:e[t][n]:t==="contentBoxSize"?e.contentRect[n==="inlineSize"?"width":"height"]:void 0}function pe(e){return"".concat(e,"px")}var jr,Iu=ne.div(jr||(jr=Q([`
|
|
211
211
|
position: absolute;
|
|
212
212
|
background: rgba(110, 136, 255, 0.8);
|
|
213
213
|
border: 1px solid rgb(192 206 212 / 60%);
|
|
214
|
-
`])));function
|
|
214
|
+
`])));function Au(e){return g.createElement(Iu,{style:{left:pe(e.left),top:pe(e.top),width:pe(e.width),height:pe(e.height)},"data-testid":"minimap-node"})}var _r,Nu=ne.div(_r||(_r=Q([`
|
|
215
215
|
position: absolute;
|
|
216
216
|
background: rgba(255, 251, 128, 0.32);
|
|
217
217
|
border: 1px solid #ffe52b;
|
|
218
|
-
`])));function
|
|
218
|
+
`])));function zu(e){var t=function(o){return o*e.containerWidth},n=function(o){return o/e.containerWidth},r=Ni(function(i,o){e.translate(n(-i),n(-o))},function(i){return{x:i.pageX,y:i.pageY}});return g.createElement(Nu,{onPointerDown:r.start,style:{left:pe(t(e.left)),top:pe(t(e.top)),width:pe(t(e.width)),height:pe(t(e.height))},"data-testid":"minimap-viewport"})}var Er,Du=ne.div(Er||(Er=Q([`
|
|
219
219
|
position: absolute;
|
|
220
220
|
right: 24px;
|
|
221
221
|
bottom: 24px;
|
|
@@ -225,19 +225,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
225
225
|
border: 1px solid #b1b7ff;
|
|
226
226
|
border-radius: 8px;
|
|
227
227
|
box-sizing: border-box;
|
|
228
|
-
`])));function
|
|
228
|
+
`])));function Mu(e){var t,n=g.useRef(null),r=Ru({ref:n}),i=r.width,o=i===void 0?0:i,a=((t=n.current)===null||t===void 0?void 0:t.clientWidth)||o,s=g.useCallback(function(u){return u*a},[a]);return g.createElement(Du,{size:e.size,style:{width:pe(e.size*e.ratio),height:pe(e.size)},onPointerDown:function(c){c.stopPropagation(),c.preventDefault()},onDoubleClick:function(c){if(c.stopPropagation(),c.preventDefault(),!!n.current){var l=n.current.getBoundingClientRect(),f=(c.clientX-l.left)/(e.size*e.ratio),d=(c.clientY-l.top)/(e.size*e.ratio);e.point(f,d)}},ref:n,"data-testid":"minimap"},a?e.nodes.map(function(u,c){return g.createElement(Au,{key:c,left:s(u.left),top:s(u.top),width:s(u.width),height:s(u.height)})}):null,g.createElement(zu,$e({},e.viewport,{start:e.start,containerWidth:a,translate:e.translate})))}function Tu(e){return{render:function(n){if(n.data.type==="minimap")return g.createElement(Mu,{nodes:n.data.nodes,size:(e==null?void 0:e.size)||200,ratio:n.data.ratio,viewport:n.data.viewport,start:n.data.start,translate:n.data.translate,point:n.data.point})}}}var Lu=Object.freeze({__proto__:null,setup:Tu}),Rr,We=20,Bu=ne.div(Rr||(Rr=Q([`
|
|
229
229
|
width: `,`px;
|
|
230
230
|
height: `,`px;
|
|
231
231
|
box-sizing: border-box;
|
|
232
232
|
background: `,`;
|
|
233
233
|
border: 2px solid white;
|
|
234
234
|
border-radius: `,`px;
|
|
235
|
-
`])),We,We,function(e){return e.selected?"#ffd92c":"steelblue"},We);function
|
|
236
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,o=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}function Gu(e,t){if(e){if(typeof e=="string")return Ir(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ir(e,t):void 0}}function Ir(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ar(Object(n),!0).forEach(function(r){C(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wu(e,t,n){return t=q(t),ye(e,Zi()?Reflect.construct(t,n||[],q(e).constructor):t.apply(e,n))}function Zi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zi=function(){return!!e})()}function qu(e,t,n,r){var i=qe(q(e.prototype),t,n);return typeof i=="function"?function(o){return i.apply(n,o)}:i}var Ku=(function(e){function t(){for(var n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i[0];return L(this,t),n=Wu(this,t,["react-render"]),C(n,"presets",[]),n.renderer=eu({createRoot:a==null?void 0:a.createRoot}),n.addPipe(function(s){if(!s||oe(s)!=="object"||!("type"in s))return s;if(s.type==="unmount")n.unmount(s.data.element);else if(s.type==="render"){if("filled"in s.data&&s.data.filled)return s;if(n.mount(s.data.element,s))return rt(rt({},s),{},{data:rt(rt({},s.data),{},{filled:!0})})}return s}),n}return ae(t,e),B(t,[{key:"setParent",value:function(r){var i=this;qu(t,"setParent",this)([r]),this.presets.forEach(function(o){o.attach&&o.attach(i)})}},{key:"mount",value:function(r,i){var o=this.parentScope(),a=Vu(this.presets),s;try{for(a.s();!(s=a.n()).done;){var u=s.value,c=u.render(i,this);if(c){var l=g.createElement(tu,{rendered:function(){return void o.emit({type:"rendered",data:i.data})}},c);return this.renderer.mount(l,r),!0}}}catch(f){a.e(f)}finally{a.f()}}},{key:"unmount",value:function(r){this.renderer.unmount(r)}},{key:"addPreset",value:function(r){var i=r;i.attach&&i.attach(this),this.presets.push(i)}}])})(Ze);const Nr=new Ie.Socket("rel"),Ui=240,Yu=48,Zu=74,Uu=280,Ht=24,un="#9ca3af",Ee="#3b82f6",He="#f97316";class Xu extends Ie.Node{constructor(n,r,i,o,a){super(n);te(this,"width",Ui);te(this,"height",Yu);te(this,"isSource");te(this,"dmId");te(this,"depth");te(this,"targetAlias");te(this,"fieldCount");te(this,"description");te(this,"onOpenExternal");te(this,"isDraft");te(this,"isBlocked");te(this,"isJoinNotConfigured");te(this,"isCycleStub");te(this,"highlighted",!1);te(this,"dimmed",!1);this.dmId=r,this.isSource=i,this.depth=o,this.targetAlias=a==null?void 0:a.targetAlias,this.fieldCount=a==null?void 0:a.fieldCount,this.description=a==null?void 0:a.description,this.onOpenExternal=a==null?void 0:a.onOpenExternal,this.isDraft=(a==null?void 0:a.isDraft)??!1,this.isBlocked=(a==null?void 0:a.isBlocked)??!1,this.isJoinNotConfigured=(a==null?void 0:a.isJoinNotConfigured)??!1,this.isCycleStub=(a==null?void 0:a.isCycleStub)??!1,i||(this.height=Zu)}}const{RefSocket:Vt}=ct.classic;function Ju(e){const t=e.data;function n(s){var u;s.stopPropagation(),s.preventDefault(),(u=t.onOpenExternal)==null||u.call(t)}const r=Object.entries(t.outputs),i=Object.entries(t.inputs);if(t.isSource)return z.jsxs("div",{className:"text-primary flex items-center",style:{width:t.width,height:t.height,borderRadius:8,border:`2px solid ${t.highlighted?Ee:t.isDraft?He:un}`,boxShadow:t.highlighted?`0 0 0 3px ${Ee}40, 0 0 12px ${Ee}60`:"0 1px 4px 0 rgba(0,0,0,0.12)",background:"#eff6ff",fontSize:13,fontWeight:600,position:"relative",opacity:t.dimmed?.15:1,filter:t.dimmed?"grayscale(0.8)":void 0,animation:t.highlighted?"node-pulse 1.5s ease-in-out infinite":void 0,transition:"opacity 0.2s, filter 0.2s"},children:[t.isDraft&&z.jsx("span",{style:{position:"absolute",top:-18,right:4,fontSize:10,fontWeight:600,color:He,lineHeight:1},children:"Draft"}),z.jsx("div",{className:"truncate",style:{flex:1,padding:"0 14px"},title:t.label,children:t.label}),r.map(([s,u])=>u&&z.jsx("div",{style:{position:"absolute",right:-5,top:"50%",marginTop:-5},children:z.jsx(Vt,{name:"output-socket",side:"output",socketKey:s,nodeId:t.id,emit:e.emit,payload:u.socket})},s))]});const o=no(t)?He:un,a=ro(t);return z.jsxs("div",{title:t.isCycleStub?io:void 0,style:{width:t.width,height:t.height,borderRadius:8,border:`2px solid ${t.highlighted?Ee:o}`,background:"var(--background)",boxShadow:t.highlighted?`0 0 0 3px ${Ee}40, 0 0 12px ${Ee}60`:"0 1px 4px 0 rgba(0,0,0,0.12)",cursor:"default",position:"relative",opacity:t.dimmed?.15:1,filter:t.dimmed?"grayscale(0.8)":void 0,animation:t.highlighted?"node-pulse 1.5s ease-in-out infinite":void 0,transition:"opacity 0.2s, filter 0.2s"},children:[a&&z.jsx("span",{style:{position:"absolute",top:-18,right:4,fontSize:10,fontWeight:600,color:He,lineHeight:1,whiteSpace:"nowrap"},children:a}),i.map(([s,u])=>u&&z.jsx("div",{style:{position:"absolute",left:-5,top:"50%",marginTop:-5,zIndex:1},children:z.jsx(Vt,{name:"input-socket",side:"input",socketKey:s,nodeId:t.id,emit:e.emit,payload:u.socket})},s)),z.jsxs("div",{className:"bg-muted flex items-center justify-between",style:{padding:"8px 10px 8px 14px",fontSize:13,fontWeight:600,borderRadius:"6px 6px 0 0"},children:[z.jsx("span",{className:"truncate",title:t.label,children:t.label}),z.jsxs("div",{className:"ml-2 flex shrink-0 items-center gap-0.5",children:[t.description&&z.jsx("span",{className:"text-muted-foreground hover:text-foreground inline-flex cursor-default rounded p-0.5 transition-colors",title:t.description,children:z.jsx(oo,{style:{width:14,height:14}})}),z.jsx("button",{className:"text-muted-foreground hover:text-foreground shrink-0 cursor-pointer rounded p-0.5 transition-colors",onPointerDown:s=>{s.stopPropagation()},onClick:n,title:"Open in new tab","aria-label":"Open in new tab",children:z.jsx(ao,{style:{width:14,height:14}})})]})]}),z.jsxs("div",{className:"text-muted-foreground flex items-center gap-2",style:{padding:"6px 14px 8px",fontSize:11,minWidth:0},children:[t.targetAlias&&z.jsx(so,{variant:"secondary",className:"inline-block max-w-[120px] truncate px-1.5 py-0 text-[10px]",title:t.targetAlias,children:t.targetAlias}),z.jsxs("span",{className:"ml-auto shrink-0",children:[t.fieldCount??0," field",t.fieldCount!==1?"s":""]})]}),r.map(([s,u])=>u&&z.jsx("div",{style:{position:"absolute",right:-5,top:"50%",marginTop:-5,zIndex:1},children:z.jsx(Vt,{name:"output-socket",side:"output",socketKey:s,nodeId:t.id,emit:e.emit,payload:u.socket})},s))]})}function Qu(){return z.jsx("div",{style:{width:10,height:10,borderRadius:"50%",background:un,border:"2px solid var(--background)"}})}async function ec(e,t,n,r,i,o,a,s,u){const c=new Pe,l=new Xr(e),f=new ja,d=new Ku({createRoot:to.createRoot}),p=new Aa,{useConnection:h}=ct.classic;function y($){const{path:S}=h();if(!S)return null;const _=c.getNode($.data.source),x=c.getNode($.data.target),H=(_==null?void 0:_.isDraft)===!0||(_==null?void 0:_.isBlocked)===!0||(_==null?void 0:_.isJoinNotConfigured)===!0||(_==null?void 0:_.isCycleStub)===!0||(x==null?void 0:x.isDraft)===!0||(x==null?void 0:x.isBlocked)===!0||(x==null?void 0:x.isJoinNotConfigured)===!0||(x==null?void 0:x.isCycleStub)===!0,V=((_==null?void 0:_.dimmed)===!0||_===void 0)&&((x==null?void 0:x.dimmed)===!0||x===void 0);return z.jsx("svg",{"data-testid":"connection",style:{overflow:"visible",position:"absolute",pointerEvents:"none",width:9999,height:9999},children:z.jsx("path",{d:S,fill:"none",strokeWidth:"5px",stroke:H?He:"steelblue",strokeDasharray:H?"8 4":void 0,opacity:V?.15:1,style:{pointerEvents:"auto",transition:"opacity 0.2s"}})})}d.addPreset(ct.classic.setup({customize:{node(){return Ju},socket(){return Qu},connection(){return y}}})),d.addPreset(ct.minimap.setup()),f.addPreset(Oa.classic.setup()),c.use(l),l.use(f),l.use(d),l.use(p);const v=new Map,k=[],m=new Set,b=i==="DRAFT";v.set(t,{id:t,dmId:t,title:n,description:r,depth:0,isSource:!0,isDraft:b});let j=0;async function P($,S,_,x,H){S.length>0&&m.add($);for(const V of S){const T=V.targetDataMart.id,re=`${T}-${j++}`,Y=V.targetDataMart.status==="DRAFT",J=V.joinConditions.length===0,ee=H,U=x.has(T);if(k.push({sourceId:$,targetId:re}),v.set(re,{id:re,dmId:T,title:V.targetDataMart.title,description:V.targetDataMart.description,depth:_,isSource:!1,targetAlias:V.targetAlias,fieldCount:(a==null?void 0:a.get(V.id))??0,isDraft:Y,isBlocked:ee,isJoinNotConfigured:J,isCycleStub:U}),u&&!U)try{const ge=await uo.getRelationships(T,{skipLoadingIndicator:!0});if(ge.length>0){const le=new Set(x);le.add(T),await P(re,ge,_+1,le,H||Y||J)}}catch{}}}await P(t,o,1,new Set([t]),b);const I=new Map,O=new Map;for(const[$,S]of v){const _=new Xu(S.title,S.dmId,S.isSource,S.depth,{targetAlias:S.targetAlias,fieldCount:S.fieldCount,description:S.description,isDraft:S.isDraft,isBlocked:S.isBlocked,isJoinNotConfigured:S.isJoinNotConfigured,isCycleStub:S.isCycleStub,onOpenExternal:()=>{s(S.dmId)}});m.has($)&&!S.isCycleStub&&_.addOutput("out",new Ie.Output(Nr)),S.isSource||_.addInput("in",new Ie.Input(Nr)),await c.addNode(_),I.set($,_);const x=O.get(S.depth)??[];O.has(S.depth)||O.set(S.depth,x),x.push(_)}for(const $ of k){const S=I.get($.sourceId),_=I.get($.targetId);S&&_&&await c.addConnection(new Ie.Connection(S,"out",_,"in"))}const E=Math.max(...Array.from(O.keys()));for(let $=0;$<=E;$++){const S=O.get($)??[];let _=0;for(const x of S)await l.translate(x.id,{x:$*(Ui+Uu),y:_}),_+=x.height+Ht;if($===0&&S.length===1){const H=(O.get(1)??[]).reduce((V,T)=>V+T.height+Ht,-Ht);await l.translate(S[0].id,{x:0,y:Math.max(0,H/2-S[0].height/2)})}}const R=16,A=()=>{const{x:$,y:S,k:_}=l.area.transform,x=R*_;e.style.backgroundSize=`${x}px ${x}px`,e.style.backgroundPosition=`${$}px ${S}px`},D=async()=>{await Qe.zoomAt(l,c.getNodes(),{scale:.85}),A()};await D();const K=async $=>{const S=e.clientWidth/2,_=e.clientHeight/2,{k:x}=l.area.transform,H=x*(1+$);H<.33||H>3||(await l.area.zoom(H,S*$,_*$),A())};return Qe.restrictor(l,{translation:()=>{const{k:$}=l.area.transform,S=Qe.getBoundingBox(l,c.getNodes()),_=e.getBoundingClientRect(),x=150;return{left:x-S.right*$,right:_.width-x-S.left*$,top:x-S.bottom*$,bottom:_.height-x-S.top*$}}}),l.addPipe($=>{if($.type==="zoom"){if($.data.source==="dblclick")return;const S=$.data.zoom;if(S<.33||S>3)return}if($.type!=="nodetranslate")return($.type==="translated"||$.type==="zoomed")&&A(),$}),{destroy:()=>{l.destroy()},fitView:D,zoomBy:K,highlightNodes:$=>{const S=$.toLowerCase(),_=[];for(const x of c.getNodes()){const H={h:x.highlighted,d:x.dimmed};x.highlighted=S!==""&&x.label.toLowerCase().includes(S),x.dimmed=S!==""&&!x.highlighted,x.highlighted&&_.push(x),(H.h!==x.highlighted||H.d!==x.dimmed)&&l.update("node",x.id)}for(const x of c.getConnections())l.update("connection",x.id);_.length>0&&Qe.zoomAt(l,_,{scale:.85})}}}function rc({dataMartId:e,dataMartTitle:t,dataMartDescription:n,dataMartStatus:r,relationships:i,connectedFieldCounts:o,searchQuery:a,showTransient:s,onRequestFullscreen:u,className:c,style:l}){const f=g.useRef(null),d=g.useRef(null),p=g.useRef(a);p.current=a;const h=g.useCallback(y=>{const v=window.location.pathname.replace(/\/data-marts\/.*/,"");window.open(`${v}/data-marts/${y}/data-setup`,"_blank")},[]);return g.useEffect(()=>{const y=f.current;if(!(!y||i.length===0))return ec(y,e,t,n,r,i,o,h,s).then(v=>{d.current=v,p.current&&v.highlightNodes(p.current)}),()=>{var v;(v=d.current)==null||v.destroy(),d.current=null,y.replaceChildren()}},[e,t,n,r,i,o,h,s]),g.useEffect(()=>{var y;(y=d.current)==null||y.highlightNodes(a)},[a]),i.length===0?null:z.jsxs("div",{className:`rel-canvas relative overflow-hidden rounded-lg border ${c??""}`,style:l??{height:480},children:[z.jsx("style",{children:`
|
|
235
|
+
`])),We,We,function(e){return e.selected?"#ffd92c":"steelblue"},We);function Fu(e){var t=Ni(function(o,a){e.translate(o,a)},e.pointer),n=e.position,r=n.x,i=n.y;return g.createElement(Bu,{onPointerDown:function(a){a.stopPropagation(),a.preventDefault(),t.start(a),e.pointerdown()},onContextMenu:function(a){a.stopPropagation(),a.preventDefault(),e.contextMenu()},selected:e.selected,style:{position:"absolute",top:"".concat(i-We/2,"px"),left:"".concat(r-We/2,"px")},"data-testid":"pin"})}function Hu(e){function t(n,r){return g.createElement(g.Fragment,null,n.pins.map(function(i){return g.createElement(Fu,$e({},i,{key:i.id,contextMenu:function(){var a;e==null||(a=e.contextMenu)===null||a===void 0||a.call(e,i.id)},translate:function(a,s){var u;e==null||(u=e.translate)===null||u===void 0||u.call(e,i.id,a,s)},pointerdown:function(){var a;e==null||(a=e.pointerdown)===null||a===void 0||a.call(e,i.id)},pointer:r}))}))}return{render:function(r,i){var o=r.data,a=i.parentScope(ft);if(o.type==="reroute-pins")return t(o.data,function(){return a.area.pointer})}}}var Vu=Object.freeze({__proto__:null,setup:Hu}),ct=Object.freeze({__proto__:null,classic:wu,contextMenu:Pu,minimap:Lu,reroute:Vu});function Gu(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Wu(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
236
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,o=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}function Wu(e,t){if(e){if(typeof e=="string")return Ir(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ir(e,t):void 0}}function Ir(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ar(Object(n),!0).forEach(function(r){C(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qu(e,t,n){return t=q(t),ye(e,Zi()?Reflect.construct(t,n||[],q(e).constructor):t.apply(e,n))}function Zi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zi=function(){return!!e})()}function Ku(e,t,n,r){var i=qe(q(e.prototype),t,n);return typeof i=="function"?function(o){return i.apply(n,o)}:i}var Yu=(function(e){function t(){for(var n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i[0];return L(this,t),n=qu(this,t,["react-render"]),C(n,"presets",[]),n.renderer=tu({createRoot:a==null?void 0:a.createRoot}),n.addPipe(function(s){if(!s||oe(s)!=="object"||!("type"in s))return s;if(s.type==="unmount")n.unmount(s.data.element);else if(s.type==="render"){if("filled"in s.data&&s.data.filled)return s;if(n.mount(s.data.element,s))return rt(rt({},s),{},{data:rt(rt({},s.data),{},{filled:!0})})}return s}),n}return ae(t,e),B(t,[{key:"setParent",value:function(r){var i=this;Ku(t,"setParent",this)([r]),this.presets.forEach(function(o){o.attach&&o.attach(i)})}},{key:"mount",value:function(r,i){var o=this.parentScope(),a=Gu(this.presets),s;try{for(a.s();!(s=a.n()).done;){var u=s.value,c=u.render(i,this);if(c){var l=g.createElement(nu,{rendered:function(){return void o.emit({type:"rendered",data:i.data})}},c);return this.renderer.mount(l,r),!0}}}catch(f){a.e(f)}finally{a.f()}}},{key:"unmount",value:function(r){this.renderer.unmount(r)}},{key:"addPreset",value:function(r){var i=r;i.attach&&i.attach(this),this.presets.push(i)}}])})(Ze);const Nr=new Ie.Socket("rel"),Ui=240,Zu=48,Uu=74,Xu=280,Ht=24,un="#9ca3af",Ee="#3b82f6",He="#f97316";class Ju extends Ie.Node{constructor(n,r,i,o,a){super(n);te(this,"width",Ui);te(this,"height",Zu);te(this,"isSource");te(this,"dmId");te(this,"depth");te(this,"targetAlias");te(this,"fieldCount");te(this,"description");te(this,"onOpenExternal");te(this,"isDraft");te(this,"isBlocked");te(this,"isJoinNotConfigured");te(this,"isCycleStub");te(this,"highlighted",!1);te(this,"dimmed",!1);this.dmId=r,this.isSource=i,this.depth=o,this.targetAlias=a==null?void 0:a.targetAlias,this.fieldCount=a==null?void 0:a.fieldCount,this.description=a==null?void 0:a.description,this.onOpenExternal=a==null?void 0:a.onOpenExternal,this.isDraft=(a==null?void 0:a.isDraft)??!1,this.isBlocked=(a==null?void 0:a.isBlocked)??!1,this.isJoinNotConfigured=(a==null?void 0:a.isJoinNotConfigured)??!1,this.isCycleStub=(a==null?void 0:a.isCycleStub)??!1,i||(this.height=Uu)}}const{RefSocket:Vt}=ct.classic;function Qu(e){const t=e.data;function n(s){var u;s.stopPropagation(),s.preventDefault(),(u=t.onOpenExternal)==null||u.call(t)}const r=Object.entries(t.outputs),i=Object.entries(t.inputs);if(t.isSource)return z.jsxs("div",{className:"text-primary flex items-center",style:{width:t.width,height:t.height,borderRadius:8,border:`2px solid ${t.highlighted?Ee:t.isDraft?He:un}`,boxShadow:t.highlighted?`0 0 0 3px ${Ee}40, 0 0 12px ${Ee}60`:"0 1px 4px 0 rgba(0,0,0,0.12)",background:"#eff6ff",fontSize:13,fontWeight:600,position:"relative",opacity:t.dimmed?.15:1,filter:t.dimmed?"grayscale(0.8)":void 0,animation:t.highlighted?"node-pulse 1.5s ease-in-out infinite":void 0,transition:"opacity 0.2s, filter 0.2s"},children:[t.isDraft&&z.jsx("span",{style:{position:"absolute",top:-18,right:4,fontSize:10,fontWeight:600,color:He,lineHeight:1},children:"Draft"}),z.jsx("div",{className:"truncate",style:{flex:1,padding:"0 14px"},title:t.label,children:t.label}),r.map(([s,u])=>u&&z.jsx("div",{style:{position:"absolute",right:-5,top:"50%",marginTop:-5},children:z.jsx(Vt,{name:"output-socket",side:"output",socketKey:s,nodeId:t.id,emit:e.emit,payload:u.socket})},s))]});const o=no(t)?He:un,a=ro(t);return z.jsxs("div",{title:t.isCycleStub?io:void 0,style:{width:t.width,height:t.height,borderRadius:8,border:`2px solid ${t.highlighted?Ee:o}`,background:"var(--background)",boxShadow:t.highlighted?`0 0 0 3px ${Ee}40, 0 0 12px ${Ee}60`:"0 1px 4px 0 rgba(0,0,0,0.12)",cursor:"default",position:"relative",opacity:t.dimmed?.15:1,filter:t.dimmed?"grayscale(0.8)":void 0,animation:t.highlighted?"node-pulse 1.5s ease-in-out infinite":void 0,transition:"opacity 0.2s, filter 0.2s"},children:[a&&z.jsx("span",{style:{position:"absolute",top:-18,right:4,fontSize:10,fontWeight:600,color:He,lineHeight:1,whiteSpace:"nowrap"},children:a}),i.map(([s,u])=>u&&z.jsx("div",{style:{position:"absolute",left:-5,top:"50%",marginTop:-5,zIndex:1},children:z.jsx(Vt,{name:"input-socket",side:"input",socketKey:s,nodeId:t.id,emit:e.emit,payload:u.socket})},s)),z.jsxs("div",{className:"bg-muted flex items-center justify-between",style:{padding:"8px 10px 8px 14px",fontSize:13,fontWeight:600,borderRadius:"6px 6px 0 0"},children:[z.jsx("span",{className:"truncate",title:t.label,children:t.label}),z.jsxs("div",{className:"ml-2 flex shrink-0 items-center gap-0.5",children:[t.description&&z.jsx("span",{className:"text-muted-foreground hover:text-foreground inline-flex cursor-default rounded p-0.5 transition-colors",title:t.description,children:z.jsx(oo,{style:{width:14,height:14}})}),z.jsx("button",{className:"text-muted-foreground hover:text-foreground shrink-0 cursor-pointer rounded p-0.5 transition-colors",onPointerDown:s=>{s.stopPropagation()},onClick:n,title:"Open in new tab","aria-label":"Open in new tab",children:z.jsx(ao,{style:{width:14,height:14}})})]})]}),z.jsxs("div",{className:"text-muted-foreground flex items-center gap-2",style:{padding:"6px 14px 8px",fontSize:11,minWidth:0},children:[t.targetAlias&&z.jsx(so,{variant:"secondary",className:"inline-block max-w-[120px] truncate px-1.5 py-0 text-[10px]",title:t.targetAlias,children:t.targetAlias}),z.jsxs("span",{className:"ml-auto shrink-0",children:[t.fieldCount??0," field",t.fieldCount!==1?"s":""]})]}),r.map(([s,u])=>u&&z.jsx("div",{style:{position:"absolute",right:-5,top:"50%",marginTop:-5,zIndex:1},children:z.jsx(Vt,{name:"output-socket",side:"output",socketKey:s,nodeId:t.id,emit:e.emit,payload:u.socket})},s))]})}function ec(){return z.jsx("div",{style:{width:10,height:10,borderRadius:"50%",background:un,border:"2px solid var(--background)"}})}async function tc(e,t,n,r,i,o,a,s,u){const c=new Pe,l=new Xr(e),f=new ja,d=new Yu({createRoot:to.createRoot}),p=new Aa,{useConnection:h}=ct.classic;function y($){const{path:S}=h();if(!S)return null;const _=c.getNode($.data.source),x=c.getNode($.data.target),H=(_==null?void 0:_.isDraft)===!0||(_==null?void 0:_.isBlocked)===!0||(_==null?void 0:_.isJoinNotConfigured)===!0||(_==null?void 0:_.isCycleStub)===!0||(x==null?void 0:x.isDraft)===!0||(x==null?void 0:x.isBlocked)===!0||(x==null?void 0:x.isJoinNotConfigured)===!0||(x==null?void 0:x.isCycleStub)===!0,V=((_==null?void 0:_.dimmed)===!0||_===void 0)&&((x==null?void 0:x.dimmed)===!0||x===void 0);return z.jsx("svg",{"data-testid":"connection",style:{overflow:"visible",position:"absolute",pointerEvents:"none",width:9999,height:9999},children:z.jsx("path",{d:S,fill:"none",strokeWidth:"5px",stroke:H?He:"steelblue",strokeDasharray:H?"8 4":void 0,opacity:V?.15:1,style:{pointerEvents:"auto",transition:"opacity 0.2s"}})})}d.addPreset(ct.classic.setup({customize:{node(){return Qu},socket(){return ec},connection(){return y}}})),d.addPreset(ct.minimap.setup()),f.addPreset(Oa.classic.setup()),c.use(l),l.use(f),l.use(d),l.use(p);const v=new Map,k=[],m=new Set,b=i==="DRAFT";v.set(t,{id:t,dmId:t,title:n,description:r,depth:0,isSource:!0,isDraft:b});let j=0;async function P($,S,_,x,H){S.length>0&&m.add($);for(const V of S){const T=V.targetDataMart.id,re=`${T}-${j++}`,Y=V.targetDataMart.status==="DRAFT",J=V.joinConditions.length===0,ee=H,U=x.has(T);if(k.push({sourceId:$,targetId:re}),v.set(re,{id:re,dmId:T,title:V.targetDataMart.title,description:V.targetDataMart.description,depth:_,isSource:!1,targetAlias:V.targetAlias,fieldCount:(a==null?void 0:a.get(V.id))??0,isDraft:Y,isBlocked:ee,isJoinNotConfigured:J,isCycleStub:U}),u&&!U)try{const ge=await uo.getRelationships(T,{skipLoadingIndicator:!0});if(ge.length>0){const le=new Set(x);le.add(T),await P(re,ge,_+1,le,H||Y||J)}}catch{}}}await P(t,o,1,new Set([t]),b);const I=new Map,O=new Map;for(const[$,S]of v){const _=new Ju(S.title,S.dmId,S.isSource,S.depth,{targetAlias:S.targetAlias,fieldCount:S.fieldCount,description:S.description,isDraft:S.isDraft,isBlocked:S.isBlocked,isJoinNotConfigured:S.isJoinNotConfigured,isCycleStub:S.isCycleStub,onOpenExternal:()=>{s(S.dmId)}});m.has($)&&!S.isCycleStub&&_.addOutput("out",new Ie.Output(Nr)),S.isSource||_.addInput("in",new Ie.Input(Nr)),await c.addNode(_),I.set($,_);const x=O.get(S.depth)??[];O.has(S.depth)||O.set(S.depth,x),x.push(_)}for(const $ of k){const S=I.get($.sourceId),_=I.get($.targetId);S&&_&&await c.addConnection(new Ie.Connection(S,"out",_,"in"))}const E=Math.max(...Array.from(O.keys()));for(let $=0;$<=E;$++){const S=O.get($)??[];let _=0;for(const x of S)await l.translate(x.id,{x:$*(Ui+Xu),y:_}),_+=x.height+Ht;if($===0&&S.length===1){const H=(O.get(1)??[]).reduce((V,T)=>V+T.height+Ht,-Ht);await l.translate(S[0].id,{x:0,y:Math.max(0,H/2-S[0].height/2)})}}const R=16,A=()=>{const{x:$,y:S,k:_}=l.area.transform,x=R*_;e.style.backgroundSize=`${x}px ${x}px`,e.style.backgroundPosition=`${$}px ${S}px`},D=async()=>{await Qe.zoomAt(l,c.getNodes(),{scale:.85}),A()};await D();const K=async $=>{const S=e.clientWidth/2,_=e.clientHeight/2,{k:x}=l.area.transform,H=x*(1+$);H<.33||H>3||(await l.area.zoom(H,S*$,_*$),A())};return Qe.restrictor(l,{translation:()=>{const{k:$}=l.area.transform,S=Qe.getBoundingBox(l,c.getNodes()),_=e.getBoundingClientRect(),x=150;return{left:x-S.right*$,right:_.width-x-S.left*$,top:x-S.bottom*$,bottom:_.height-x-S.top*$}}}),l.addPipe($=>{if($.type==="zoom"){if($.data.source==="dblclick")return;const S=$.data.zoom;if(S<.33||S>3)return}if($.type!=="nodetranslate")return($.type==="translated"||$.type==="zoomed")&&A(),$}),{destroy:()=>{l.destroy()},fitView:D,zoomBy:K,highlightNodes:$=>{const S=$.toLowerCase(),_=[];for(const x of c.getNodes()){const H={h:x.highlighted,d:x.dimmed};x.highlighted=S!==""&&x.label.toLowerCase().includes(S),x.dimmed=S!==""&&!x.highlighted,x.highlighted&&_.push(x),(H.h!==x.highlighted||H.d!==x.dimmed)&&l.update("node",x.id)}for(const x of c.getConnections())l.update("connection",x.id);_.length>0&&Qe.zoomAt(l,_,{scale:.85})}}}function ic({dataMartId:e,dataMartTitle:t,dataMartDescription:n,dataMartStatus:r,relationships:i,connectedFieldCounts:o,searchQuery:a,showTransient:s,onRequestFullscreen:u,className:c,style:l}){const f=g.useRef(null),d=g.useRef(null),p=g.useRef(a);p.current=a;const h=g.useCallback(y=>{const v=window.location.pathname.replace(/\/data-marts\/.*/,"");window.open(`${v}/data-marts/${y}/data-setup`,"_blank")},[]);return g.useEffect(()=>{const y=f.current;if(!(!y||i.length===0))return tc(y,e,t,n,r,i,o,h,s).then(v=>{d.current=v,p.current&&v.highlightNodes(p.current)}),()=>{var v;(v=d.current)==null||v.destroy(),d.current=null,y.replaceChildren()}},[e,t,n,r,i,o,h,s]),g.useEffect(()=>{var y;(y=d.current)==null||y.highlightNodes(a)},[a]),i.length===0?null:z.jsxs("div",{className:`rel-canvas relative overflow-hidden rounded-lg border ${c??""}`,style:l??{height:480},children:[z.jsx("style",{children:`
|
|
237
237
|
.rel-canvas svg path { stroke-width: 1.5px !important; }
|
|
238
238
|
.rel-canvas [data-testid="minimap"] { transform: scale(0.5); transform-origin: bottom right; }
|
|
239
239
|
@keyframes node-pulse {
|
|
240
240
|
0%, 100% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25), 0 0 12px rgba(59, 130, 246, 0.4); }
|
|
241
241
|
50% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.5); }
|
|
242
242
|
}
|
|
243
|
-
`}),z.jsx("div",{className:"absolute top-3 right-3 z-10 flex items-start gap-2",children:z.jsxs("div",{className:"flex flex-col gap-1.5",children:[z.jsx(Xe,{variant:"outline",size:"icon",className:"h-12 w-12",onClick:()=>{var y;(y=d.current)==null||y.fitView()},"aria-label":"Fit to view",children:z.jsx(lo,{className:"h-6 w-6"})}),z.jsx(Xe,{variant:"outline",size:"icon",className:"h-12 w-12",onClick:()=>{var y;(y=d.current)==null||y.zoomBy(.25)},"aria-label":"Zoom in",children:z.jsx(po,{className:"h-6 w-6"})}),z.jsx(Xe,{variant:"outline",size:"icon",className:"h-12 w-12",onClick:()=>{var y;(y=d.current)==null||y.zoomBy(-.25)},"aria-label":"Zoom out",children:z.jsx(vo,{className:"h-6 w-6"})}),u&&z.jsx(Xe,{variant:"outline",size:"icon",className:"h-12 w-12",onClick:u,"aria-label":"Expand diagram",children:z.jsx(eo,{className:"h-6 w-6"})})]})}),z.jsx("div",{ref:f,style:{width:"100%",height:"100%",backgroundImage:"linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.06) 1px, transparent 1px)",backgroundSize:"16px 16px"}})]})}export{
|
|
243
|
+
`}),z.jsx("div",{className:"absolute top-3 right-3 z-10 flex items-start gap-2",children:z.jsxs("div",{className:"flex flex-col gap-1.5",children:[z.jsx(Xe,{variant:"outline",size:"icon",className:"h-12 w-12",onClick:()=>{var y;(y=d.current)==null||y.fitView()},"aria-label":"Fit to view",children:z.jsx(lo,{className:"h-6 w-6"})}),z.jsx(Xe,{variant:"outline",size:"icon",className:"h-12 w-12",onClick:()=>{var y;(y=d.current)==null||y.zoomBy(.25)},"aria-label":"Zoom in",children:z.jsx(po,{className:"h-6 w-6"})}),z.jsx(Xe,{variant:"outline",size:"icon",className:"h-12 w-12",onClick:()=>{var y;(y=d.current)==null||y.zoomBy(-.25)},"aria-label":"Zoom out",children:z.jsx(vo,{className:"h-6 w-6"})}),u&&z.jsx(Xe,{variant:"outline",size:"icon",className:"h-12 w-12",onClick:u,"aria-label":"Expand diagram",children:z.jsx(eo,{className:"h-6 w-6"})})]})}),z.jsx("div",{ref:f,style:{width:"100%",height:"100%",backgroundImage:"linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.06) 1px, transparent 1px)",backgroundSize:"16px 16px"}})]})}export{ic as RelationshipCanvas};
|