@hpcc-js/react 3.4.10 → 3.4.11

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,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@hpcc-js/react"]={},t["@hpcc-js/common"])}(this,function(t,e){"use strict";var n=Object.defineProperty,i=(t,e)=>n(t,"name",{value:e,configurable:!0});var o,r,l,a,_,s,c,u,h,f,d,p={},g=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,x=Array.isArray;function y(t,e){for(var n in e)t[n]=e[n];return t}function v(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function k(t,e,n){var i,r,l,a={};for(l in e)"key"==l?i=e[l]:"ref"==l?r=e[l]:a[l]=e[l];if(arguments.length>2&&(a.children=arguments.length>3?o.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(l in t.defaultProps)void 0===a[l]&&(a[l]=t.defaultProps[l]);return F(t,a,i,r,null)}function F(t,e,n,i,o){var a={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++l:o,__i:-1,__u:0};return null==o&&null!=r.vnode&&r.vnode(a),a}function b(t){return t.children}function C(t,e){this.props=t,this.context=e}function w(t,e){if(null==e)return t.__?w(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?w(t):null}function S(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return S(t)}}function $(t){(!t.__d&&(t.__d=!0)&&a.push(t)&&!R.__r++||_!=r.debounceRendering)&&((_=r.debounceRendering)||s)(R)}function R(){for(var t,e,n,i,o,l,_,s=1;a.length;)a.length>s&&a.sort(c),t=a.shift(),s=a.length,t.__d&&(n=void 0,i=void 0,o=(i=(e=t).__v).__e,l=[],_=[],e.__P&&((n=y({},i)).__v=i.__v+1,r.vnode&&r.vnode(n),U(e.__P,n,i,e.__n,e.__P.namespaceURI,32&i.__u?[o]:null,l,null==o?w(i):o,!!(32&i.__u),_),n.__v=i.__v,n.__.__k[n.__i]=n,I(l,n,_),i.__e=i.__=null,n.__e!=o&&S(n)));R.__r=0}function W(t,e,n,i,o,r,l,a,_,s,c){var u,h,f,d,m,x,y,v=i&&i.__k||g,k=e.length;for(_=P(n,e,v,_,k),u=0;u<k;u++)null!=(f=n.__k[u])&&(h=-1==f.__i?p:v[f.__i]||p,f.__i=u,x=U(t,f,h,o,r,l,a,_,s,c),d=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&z(h.ref,null,f),c.push(f.ref,f.__c||d,f)),null==m&&null!=d&&(m=d),(y=!!(4&f.__u))||h.__k===f.__k?_=H(f,_,t,y):"function"==typeof f.type&&void 0!==x?_=x:d&&(_=d.nextSibling),f.__u&=-7);return n.__e=m,_}function P(t,e,n,i,o){var r,l,a,_,s,c=n.length,u=c,h=0;for(t.__k=new Array(o),r=0;r<o;r++)null!=(l=e[r])&&"boolean"!=typeof l&&"function"!=typeof l?("string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?l=t.__k[r]=F(null,l,null,null,null):x(l)?l=t.__k[r]=F(b,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?l=t.__k[r]=F(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):t.__k[r]=l,_=r+h,l.__=t,l.__b=t.__b+1,a=null,-1!=(s=l.__i=A(l,n,_,u))&&(u--,(a=n[s])&&(a.__u|=2)),null==a||null==a.__v?(-1==s&&(o>c?h--:o<c&&h++),"function"!=typeof l.type&&(l.__u|=4)):s!=_&&(s==_-1?h--:s==_+1?h++:(s>_?h--:h++,l.__u|=4))):t.__k[r]=null;if(u)for(r=0;r<c;r++)null!=(a=n[r])&&!(2&a.__u)&&(a.__e==i&&(i=w(a)),M(a,a));return i}function H(t,e,n,i){var o,r;if("function"==typeof t.type){for(o=t.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=t,e=H(o[r],e,n,i));return e}t.__e!=e&&(i&&(e&&t.type&&!e.parentNode&&(e=w(t)),n.insertBefore(t.__e,e||null)),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function O(t,e){return e=e||[],null==t||"boolean"==typeof t||(x(t)?t.some(function(t){O(t,e)}):e.push(t)),e}function A(t,e,n,i){var o,r,l,a=t.key,_=t.type,s=e[n],c=null!=s&&!(2&s.__u);if(null===s&&null==a||c&&a==s.key&&_==s.type)return n;if(i>(c?1:0))for(o=n-1,r=n+1;o>=0||r<e.length;)if(null!=(s=e[l=o>=0?o--:r++])&&!(2&s.__u)&&a==s.key&&_==s.type)return l;return-1}function T(t,e,n){"-"==e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||m.test(e)?n:n+"px"}function E(t,e,n,i,o){var r,l;t:if("style"==e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof i&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||T(t.style,e,"");if(n)for(e in n)i&&n[e]==i[e]||T(t.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])r=e!=(e=e.replace(u,"$1")),l=e.toLowerCase(),e=l in t||"onFocusOut"==e||"onFocusIn"==e?l.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+r]=n,n?i?n.u=i.u:(n.u=h,t.addEventListener(e,r?d:f,r)):t.removeEventListener(e,r?d:f,r);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(a){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function N(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=h++;else if(e.t<n.u)return;return n(r.event?r.event(e):e)}}}function U(t,e,n,i,o,l,a,_,s,c){var u,h,f,d,p,g,m,k,F,w,S,$,R,P,H,O,A,T=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(s=!!(32&n.__u),l=[_=e.__e=n.__e]),(u=r.__b)&&u(e);t:if("function"==typeof T)try{if(k=e.props,F="prototype"in T&&T.prototype.render,w=(u=T.contextType)&&i[u.__c],S=u?w?w.props.value:u.__:i,n.__c?m=(h=e.__c=n.__c).__=h.__E:(F?e.__c=h=new T(k,S):(e.__c=h=new C(k,S),h.constructor=T,h.render=B),w&&w.sub(h),h.state||(h.state={}),h.__n=i,f=h.__d=!0,h.__h=[],h._sb=[]),F&&null==h.__s&&(h.__s=h.state),F&&null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=y({},h.__s)),y(h.__s,T.getDerivedStateFromProps(k,h.__s))),d=h.props,p=h.state,h.__v=e,f)F&&null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),F&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(F&&null==T.getDerivedStateFromProps&&k!==d&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(k,S),e.__v==n.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(k,h.__s,S)){for(e.__v!=n.__v&&(h.props=k,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(t){t&&(t.__=e)}),$=0;$<h._sb.length;$++)h.__h.push(h._sb[$]);h._sb=[],h.__h.length&&a.push(h);break t}null!=h.componentWillUpdate&&h.componentWillUpdate(k,h.__s,S),F&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(d,p,g)})}if(h.context=S,h.props=k,h.__P=t,h.__e=!1,R=r.__r,P=0,F){for(h.state=h.__s,h.__d=!1,R&&R(e),u=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,R&&R(e),u=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++P<25);h.state=h.__s,null!=h.getChildContext&&(i=y(y({},i),h.getChildContext())),F&&!f&&null!=h.getSnapshotBeforeUpdate&&(g=h.getSnapshotBeforeUpdate(d,p)),O=u,null!=u&&u.type===b&&null==u.key&&(O=V(u.props.children)),_=W(t,x(O)?O:[O],e,n,i,o,l,a,_,s,c),h.base=e.__e,e.__u&=-161,h.__h.length&&a.push(h),m&&(h.__E=h.__=null)}catch(E){if(e.__v=null,s||null!=l)if(E.then){for(e.__u|=s?160:128;_&&8==_.nodeType&&_.nextSibling;)_=_.nextSibling;l[l.indexOf(_)]=null,e.__e=_}else{for(A=l.length;A--;)v(l[A]);D(e)}else e.__e=n.__e,e.__k=n.__k,E.then||D(e);r.__e(E,e,n)}else null==l&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):_=e.__e=L(n.__e,e,n,i,o,l,a,s,c);return(u=r.diffed)&&u(e),128&e.__u?void 0:_}function D(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(D)}function I(t,e,n){for(var i=0;i<n.length;i++)z(n[i],n[++i],n[++i]);r.__c&&r.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(n){r.__e(n,e.__v)}})}function V(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:x(t)?t.map(V):y({},t)}function L(t,e,n,i,l,a,_,s,c){var u,h,f,d,g,m,y,k=n.props||p,F=e.props,b=e.type;if("svg"==b?l="http://www.w3.org/2000/svg":"math"==b?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=a)for(u=0;u<a.length;u++)if((g=a[u])&&"setAttribute"in g==!!b&&(b?g.localName==b:3==g.nodeType)){t=g,a[u]=null;break}if(null==t){if(null==b)return document.createTextNode(F);t=document.createElementNS(l,b,F.is&&F),s&&(r.__m&&r.__m(e,a),s=!1),a=null}if(null==b)k===F||s&&t.data==F||(t.data=F);else{if(a=a&&o.call(t.childNodes),!s&&null!=a)for(k={},u=0;u<t.attributes.length;u++)k[(g=t.attributes[u]).name]=g.value;for(u in k)if(g=k[u],"children"==u);else if("dangerouslySetInnerHTML"==u)f=g;else if(!(u in F)){if("value"==u&&"defaultValue"in F||"checked"==u&&"defaultChecked"in F)continue;E(t,u,null,g,l)}for(u in F)g=F[u],"children"==u?d=g:"dangerouslySetInnerHTML"==u?h=g:"value"==u?m=g:"checked"==u?y=g:s&&"function"!=typeof g||k[u]===g||E(t,u,g,k[u],l);if(h)s||f&&(h.__html==f.__html||h.__html==t.innerHTML)||(t.innerHTML=h.__html),e.__k=[];else if(f&&(t.innerHTML=""),W("template"==e.type?t.content:t,x(d)?d:[d],e,n,i,"foreignObject"==b?"http://www.w3.org/1999/xhtml":l,a,_,a?a[0]:n.__k&&w(n,0),s,c),null!=a)for(u=a.length;u--;)v(a[u]);s||(u="value","progress"==b&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[u]||"progress"==b&&!m||"option"==b&&m!=k[u])&&E(t,u,m,k[u],l),u="checked",null!=y&&y!=t[u]&&E(t,u,y,k[u],l))}return t}function z(t,e,n){try{if("function"==typeof t){var i="function"==typeof t.__u;i&&t.__u(),i&&null==e||(t.__u=t(e))}else t.current=e}catch(o){r.__e(o,n)}}function M(t,e,n){var i,o;if(r.unmount&&r.unmount(t),(i=t.ref)&&(i.current&&i.current!=t.__e||z(i,null,e)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(l){r.__e(l,e)}i.base=i.__P=null}if(i=t.__k)for(o=0;o<i.length;o++)i[o]&&M(i[o],e,n||"function"!=typeof t.type);n||v(t.__e),t.__c=t.__=t.__e=void 0}function B(t,e,n){return this.constructor(t,n)}function j(t,e,n){var i,l,a,_;e==document&&(e=document.documentElement),r.__&&r.__(t,e),l=(i="function"==typeof n)?null:n&&n.__k||e.__k,a=[],_=[],U(e,t=(!i&&n||e).__k=k(b,null,[t]),l||p,p,e.namespaceURI,!i&&n?[n]:l?null:e.firstChild?o.call(e.childNodes):null,a,!i&&n?n:l?l.__e:e.firstChild,i,_),I(a,t,_)}i(y,"w$1"),i(v,"g$1"),i(k,"_$1"),i(F,"m$1"),i(b,"k$1"),i(C,"x"),i(w,"S"),i(S,"C$1"),i($,"M"),i(R,"$"),i(W,"I"),i(P,"P$1"),i(H,"A"),i(O,"H$1"),i(A,"L"),i(T,"T$2"),i(E,"j$2"),i(N,"F$1"),i(U,"O"),i(D,"z$1"),i(I,"N$1"),i(V,"V$1"),i(L,"q$2"),i(z,"B$2"),i(M,"D$1"),i(B,"E$1"),i(j,"G$1"),o=g.slice,r={__e:i(function(t,e,n,i){for(var o,r,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(t)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,i||{}),l=o.__d),l)return o.__E=o}catch(a){t=a}throw t},"__e")},l=0,C.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=y({},this.state),"function"==typeof t&&(t=t(y({},n),this.props)),t&&y(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),$(this))},C.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),$(this))},C.prototype.render=b,a=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=i(function(t,e){return t.__v.__b-e.__v.__b},"e$1"),R.__r=0,u=/(PointerCapture)$|Capture$/i,h=0,f=N(!1),d=N(!0);var q=0;function G(t,e,n,i,o,l){e||(e={});var a,_,s=e;if("ref"in s)for(_ in s={},e)"ref"==_?a=e[_]:s[_]=e[_];var c={type:t,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--q,__i:-1,__u:0,__source:o,__self:l};if("function"==typeof t&&(a=t.defaultProps))for(_ in a)void 0===s[_]&&(s[_]=a[_]);return r.vnode&&r.vnode(c),c}i(G,"u$1");var X,Y,J,K,Z=0,Q=[],tt=r,et=tt.__b,nt=tt.__r,it=tt.diffed,ot=tt.__c,rt=tt.unmount,lt=tt.__;function at(t,e){tt.__h&&tt.__h(Y,t,Z||e),Z=0;var n=Y.__H||(Y.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function _t(t){return Z=1,st(vt,t)}function st(t,e,n){var o=at(X++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):vt(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],n=o.t(e,t);e!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=Y,!Y.__f)){var r=i(function(t,e,n){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter(function(t){return!!t.__c});if(i.every(function(t){return!t.__N}))return!l||l.call(this,t,e,n);var r=o.__c.props!==t;return i.forEach(function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(r=!0)}}),l&&l.call(this,t,e,n)||r},"f");Y.__f=!0;var l=Y.shouldComponentUpdate,a=Y.componentWillUpdate;Y.componentWillUpdate=function(t,e,n){if(this.__e){var i=l;l=void 0,r(t,e,n),l=i}a&&a.call(this,t,e,n)},Y.shouldComponentUpdate=r}return o.__N||o.__}function ct(t,e){var n=at(X++,3);!tt.__s&&yt(n.__H,e)&&(n.__=t,n.u=e,Y.__H.__h.push(n))}function ut(t,e){var n=at(X++,4);!tt.__s&&yt(n.__H,e)&&(n.__=t,n.u=e,Y.__h.push(n))}function ht(t,e){var n=at(X++,7);return yt(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function ft(t,e){return Z=8,ht(function(){return t},e)}function dt(){for(var t;t=Q.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(mt),t.__H.__h.forEach(xt),t.__H.__h=[]}catch(e){t.__H.__h=[],tt.__e(e,t.__v)}}i(at,"p"),i(_t,"d"),i(st,"h"),i(ct,"y"),i(ut,"_"),i(ht,"T$1"),i(ft,"q$1"),i(dt,"j$1"),tt.__b=function(t){Y=null,et&&et(t)},tt.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),lt&&lt(t,e)},tt.__r=function(t){nt&&nt(t),X=0;var e=(Y=t.__c).__H;e&&(J===Y?(e.__h=[],Y.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(e.__h.forEach(mt),e.__h.forEach(xt),e.__h=[],X=0)),J=Y},tt.diffed=function(t){it&&it(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==Q.push(e)&&K===tt.requestAnimationFrame||((K=tt.requestAnimationFrame)||gt)(dt)),e.__H.__.forEach(function(t){t.u&&(t.__H=t.u),t.u=void 0})),J=Y=null},tt.__c=function(t,e){e.some(function(t){try{t.__h.forEach(mt),t.__h=t.__h.filter(function(t){return!t.__||xt(t)})}catch(n){e.some(function(t){t.__h&&(t.__h=[])}),e=[],tt.__e(n,t.__v)}}),ot&&ot(t,e)},tt.unmount=function(t){rt&&rt(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(t){try{mt(t)}catch(n){e=n}}),n.__H=void 0,e&&tt.__e(e,n.__v))};var pt="function"==typeof requestAnimationFrame;function gt(t){var e,n=i(function(){clearTimeout(o),pt&&cancelAnimationFrame(e),setTimeout(t)},"r"),o=setTimeout(n,35);pt&&(e=requestAnimationFrame(n))}function mt(t){var e=Y,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),Y=e}function xt(t){var e=Y;t.__c=t.__(),Y=e}function yt(t,e){return!t||t.length!==e.length||e.some(function(e,n){return e!==t[n]})}function vt(t,e){return"function"==typeof e?e(t):e}function kt(t,e){for(var n in e)t[n]=e[n];return t}function Ft(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var i in e)if("__source"!==i&&t[i]!==e[i])return!0;return!1}function bt(t,e){this.props=t,this.context=e}i(gt,"w"),i(mt,"z"),i(xt,"B$1"),i(yt,"C"),i(vt,"D"),i(kt,"g"),i(Ft,"E"),i(bt,"N"),(bt.prototype=new C).isPureReactComponent=!0,bt.prototype.shouldComponentUpdate=function(t,e){return Ft(this.props,t)||Ft(this.state,e)};var Ct=r.__b;r.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Ct&&Ct(t)};var wt=r.__e;r.__e=function(t,e,n,i){if(t.then)for(var o,r=e;r=r.__;)if((o=r.__c)&&o.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e);wt(t,e,n,i)};var St=r.unmount;function $t(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(t){"function"==typeof t.__c&&t.__c()}),t.__c.__H=null),null!=(t=kt({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c.__e=!0,t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return $t(t,e,n)})),t}function Rt(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return Rt(t,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function Wt(){this.__u=0,this.o=null,this.__b=null}function Pt(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Ht(){this.i=null,this.l=null}i($t,"V"),i(Rt,"W"),i(Wt,"P"),i(Pt,"j"),i(Ht,"B"),r.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),St&&St(t)},(Wt.prototype=new C).__c=function(t,e){var n=e.__c,o=this;null==o.o&&(o.o=[]),o.o.push(n);var r=Pt(o.__v),l=!1,a=i(function(){l||(l=!0,n.__R=null,r?r(_):_())},"i");n.__R=a;var _=i(function(){if(! --o.__u){if(o.state.__a){var t=o.state.__a;o.__v.__k[0]=Rt(t,t.__c.__P,t.__c.__O)}var e;for(o.setState({__a:o.__b=null});e=o.o.pop();)e.forceUpdate()}},"l");o.__u++||32&e.__u||o.setState({__a:o.__b=o.__v.__k[0]}),t.then(a,a)},Wt.prototype.componentWillUnmount=function(){this.o=[]},Wt.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=$t(this.__b,n,i.__O=i.__P)}this.__b=null}var o=e.__a&&k(b,null,t.fallback);return o&&(o.__u&=-33),[k(b,null,e.__a?null:t.children),o]};var Ot=i(function(t,e,n){if(++n[1]===n[0]&&t.l.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.l.size))for(n=t.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.i=n=n[2]}},"H");(Ht.prototype=new C).__a=function(t){var e=this,n=Pt(e.__v),o=e.l.get(t);return o[0]++,function(r){var l=i(function(){e.props.revealOrder?(o.push(r),Ot(e,t,o)):r()},"o");n?n(l):l()}},Ht.prototype.render=function(t){this.i=null,this.l=new Map;var e=O(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.l.set(e[n],this.i=[1,0,this.i]);return t.children},Ht.prototype.componentDidUpdate=Ht.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,n){Ot(t,n,e)})};var At="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Tt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Et=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Nt=/[A-Z0-9]/g,Ut="undefined"!=typeof document,Dt=i(function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)},"X");C.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(C.prototype,t,{configurable:!0,get:i(function(){return this["UNSAFE_"+t]},"get"),set:i(function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})},"set")})});var It=r.event;function Vt(){}function Lt(){return this.cancelBubble}function zt(){return this.defaultPrevented}i(Vt,"rn"),i(Lt,"un"),i(zt,"on"),r.event=function(t){return It&&(t=It(t)),t.persist=Vt,t.isPropagationStopped=Lt,t.isDefaultPrevented=zt,t.nativeEvent=t};var Mt={enumerable:!1,configurable:!0,get:i(function(){return this.class},"get")},Bt=r.vnode;r.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,i={},o=-1===n.indexOf("-");for(var r in e){var l=e[r];if(!("value"===r&&"defaultValue"in e&&null==l||Ut&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in e&&null==e.value?r="value":"download"===r&&!0===l?l="":"translate"===a&&"no"===l?l=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Dt(e.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":Et.test(r)&&(r=a):a=r="oninput":o&&Tt.test(r)?r=r.replace(Nt,"-$&").toLowerCase():null===l&&(l=void 0),"oninput"===a&&i[r=a]&&(r="oninputCapture"),i[r]=l}}"select"==n&&i.multiple&&Array.isArray(i.value)&&(i.value=O(e.children).forEach(function(t){t.props.selected=-1!=i.value.indexOf(t.props.value)})),"select"==n&&null!=i.defaultValue&&(i.value=O(e.children).forEach(function(t){t.props.selected=i.multiple?-1!=i.defaultValue.indexOf(t.props.value):i.defaultValue==t.props.value})),e.class&&!e.className?(i.class=e.class,Object.defineProperty(i,"className",Mt)):(e.className&&!e.class||e.class&&e.className)&&(i.class=i.className=e.className),t.props=i}(t),t.$$typeof=At,Bt&&Bt(t)};var jt=r.__r;r.__r=function(t){jt&&jt(t),t.__c};var qt=r.diffed;function Gt(t){return!!t.__k&&(j(null,t),!0)}r.diffed=function(t){qt&&qt(t);var e=t.props,n=t.__e;null!=n&&"textarea"===t.type&&"value"in e&&e.value!==n.value&&(n.value=null==e.value?"":e.value)},i(Gt,"bn");const Xt=Object.freeze(Object.defineProperty({__proto__:null,Component:C,Fragment:b,createElement:k,h:k,render:j,unmountComponentAtNode:Gt,useCallback:ft,useEffect:ct,useLayoutEffect:ut,useMemo:ht,useReducer:st,useState:_t},Symbol.toStringTag,{value:"Module"})),Yt=i(({href:t,x:e,y:n=0,height:i=12})=>G("image",{xlinkHref:t,x:e-i/2,y:n-i/2,width:i,height:i}),"Image"),Jt=i(({x:t,y:n=0,height:i=12,fill:o,stroke:r,fontFamily:l="FontAwesome",char:a="",fontWeight:_})=>{const s=ht(()=>"FontAwesome"===l?e.Utility.faChar(a):a,[a,l]);return G("text",{x:t,y:n,fill:o,stroke:r,fontFamily:l,fontSize:`${i}px`,fontWeight:_,dominantBaseline:"middle",style:{textAnchor:"middle",alignmentBaseline:"middle"},children:s})},"ImageChar"),Kt=i(({radius:t=32,fill:e="navy",stroke:n=e,strokeWidth:i=1,shapeRendering:o})=>G("circle",{r:t,fill:e,stroke:n,strokeWidth:i,shapeRendering:o}),"Circle"),Zt=i(({radius:t=30,cornerRadius:e=0,fill:n="white",stroke:i,strokeWidth:o=1,shapeRendering:r})=>G("rect",{x:-t,y:-t,rx:e,ry:e,width:2*t,height:2*t,fill:n,stroke:i||n,strokeWidth:o,shapeRendering:r}),"Square"),Qt=i(({width:t=30,height:e=30,cornerRadius:n=0,fill:i="white",stroke:o="black",strokeWidth:r=1,shapeRendering:l})=>G("rect",{x:-t/2,y:-e/2,rx:n,ry:n,width:t,height:e,fill:i,stroke:o||i,strokeWidth:r,shapeRendering:l}),"Rectangle"),te=i(({shape:t="circle",height:e=128,width:n,fill:i,stroke:o,strokeWidth:r=1,shapeRendering:l,cornerRadius:a})=>{switch(t){case"square":return G(Zt,{radius:e/2,fill:i,stroke:o,strokeWidth:r,shapeRendering:l,cornerRadius:a});case"rectangle":return G(Qt,{width:n??e,height:e,fill:i,stroke:o,strokeWidth:r,shapeRendering:l,cornerRadius:a});default:return G(Kt,{radius:e/2,fill:i,stroke:o,strokeWidth:r,shapeRendering:l})}},"Shape"),ee=i(({shape:t="circle",width:n,height:i=32,fill:o,stroke:r,strokeWidth:l=0,imageUrl:a="",imageFontFamily:_="FontAwesome",imageChar:s="",imageCharFill:c=e.Palette.textColor(o),padding:u=i/5,xOffset:h=0,yOffset:f=0,cornerRadius:d,shapeRendering:p})=>G(b,{children:[G(te,{shape:t,width:n,height:i,fill:o,stroke:r,strokeWidth:l,shapeRendering:p,cornerRadius:d}),a?G(Yt,{href:a,x:h,y:f,height:i-u}):G(Jt,{x:h,y:f,height:i-u,fontFamily:_,char:s,fill:c,fontWeight:400})]}),"Icon"),ne=i(({icons:t=[]})=>G(b,{children:t.map(t=>G("g",{id:t.id,children:G(ee,{...t})},t.id))}),"Icons"),ie=i(({text:t,height:e=12,anchor:n="middle",baseline:i="middle",fontFamily:o="Verdana",fill:r="black"})=>G("text",{"font-family":o,"font-size":`${e}px`,"text-anchor":n,"dominant-baseline":i,fill:r,children:t}),"TextLine"),oe=i(({text:t,height:n=12,fontFamily:i="Verdana",fill:o="black",onSizeUpdate:r})=>{const[l,a]=_t(0),[_,s]=_t(0);ct(()=>{r&&r({width:l,height:_})},[l,_,r]);const c=ht(()=>t.split("\n"),[t]);ut(()=>{const t=e.Utility.textSize(c,i,n);a(t.width),s(t.height)},[i,n,c]);return G("g",{children:ht(()=>{const t=-_/2+n/2;return c.map((e,r)=>G("g",{transform:`translate(0 ${t+r*(n+2)})`,children:G(ie,{text:e,height:n,fontFamily:i,fill:o})},`key-${r}`))},[c,_,n,i,o])})},"Text"),re=i(({text:t,height:e=12,fontFamily:n="Verdana",padding:i=4,fill:o="whitesmoke",stroke:r="lightgray",textFill:l="black",strokeWidth:a=1,cornerRadius:_=0,onSizeUpdate:s})=>{const[c,u]=_t(0),[h,f]=_t(0);ct(()=>{s&&s({width:c,height:h})},[c,h,s]);const d=ft(t=>{u(t.width),f(t.height)},[]),p=c+2*i+a,g=h+2*i+a,m=Math.floor(e/10);return G(b,{children:[G(Qt,{width:p,height:g,fill:o,stroke:r,strokeWidth:a,cornerRadius:_}),G("g",{transform:`translate(0 ${m})`,children:G(oe,{text:t,fontFamily:n,height:e,fill:l,onSizeUpdate:d})})]})},"TextBox"),le=i(({text:t,height:n=12,width:i=12,fontFamily:o="Verdana",fontSize:r=10,padding:l=3,fill:a="whitesmoke",stroke:_="lightgray",textFill:s="black",strokeWidth:c=1,cornerRadius:u=0,onSizeUpdate:h})=>{const[f,d]=_t(i),[p,g]=_t(n);return ut(()=>{const n=e.Utility.textSize(t,o,r);d(n.width+2*l),g(n.height+2*l)},[t,o,r,l]),ut(()=>{h&&h({width:f,height:p})},[f,p,l,h]),G(b,{children:[G(Qt,{width:i,height:n,fill:a,stroke:_,strokeWidth:c,cornerRadius:u}),G("g",{transform:`translate(${-i/2+l} ${-n/2+l})`,children:G(ie,{text:t,fontFamily:o,height:r,fill:s,anchor:"start",baseline:"hanging"})})]})},"LabelledRect"),ae=i(({icon:t,iconFontFamily:e,text:n,height:i=12,width:o=12,fontFamily:r="Verdana",fontSize:l=10,padding:a=3,fill:_="whitesmoke",stroke:s="lightgray",textFill:c="black",strokeWidth:u=1,cornerRadius:h=0})=>G(b,{children:[G(Qt,{width:o,height:i,fill:_,stroke:s,strokeWidth:u,cornerRadius:h}),G("g",{transform:`translate(${-o/2+a} ${-i/2+a})`,children:G(ee,{shape:"square",imageFontFamily:e,imageChar:t,height:i,fill:_,imageCharFill:c})}),G("g",{transform:`translate(${-o/2+2*a+i} ${-i/2+a})`,children:G(ie,{text:n,fontFamily:r,height:l,fill:c,anchor:"start",baseline:"hanging"})})]}),"IconLabelledRect"),_e=i(({label:t,labelPos:e,labelFill:n="black",labelHeight:i=12,path:o,stroke:r,strokeWidth:l,strokeDasharray:a})=>G(b,{children:[G("path",{d:o,stroke:r,style:{strokeWidth:l,strokeDasharray:a}}),t&&e&&2===e.length?G("g",{transform:`translate(${e[0]} ${e[1]})`,children:G(oe,{text:t,fill:n,height:i})}):void 0]}),"Edge");function se(t,e,n,i){j(k(t,e),n,i)}function ce(t,e,n,i){j(k("svg",null,k(t,e)),n,i)}i(se,"render"),i(ce,"svgRender");const ue=class _HTMLAdapter extends e.HTMLWidget{constructor(t){super(),this._component=t}props(t){return arguments.length?(this._props={...this._props,...t},this):this._props}prop(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)}update(t,e){super.update(t,e),se(this._component,this._props,t)}};i(ue,"HTMLAdapter");let he=ue;he.prototype._class+=" react_HTMLAdapter",he.prototype.publish("props",{},"object","Properties");const fe=class _SVGAdapter extends e.SVGWidget{constructor(t){super(),this._component=t}props(t){return arguments.length?(this._props={...this._props,...t},this):this._props}prop(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)}update(t,e){super.update(t,e),se(this._component,this._props,t)}};i(fe,"SVGAdapter");let de=fe;de.prototype._class+=" react_SVGAdapter",de.prototype.publish("props",{},"object","Properties");const pe=i(({text:t})=>G("span",{children:t}),"Span"),ge=i(({x:t,y:e,annotationIDs:n=[],stepSize:i=-16})=>G(b,{children:n.map((n,o)=>G("g",{transform:`translate(${t+o*i} ${e})`,children:G("use",{xlinkHref:"#"+n})},n))}),"Annotations"),me=i(({categoryID:t="",text:e="",textHeight:n=12,textPadding:i=4,icon:o={},annotationsHeight:r=12,annotationIDs:l=[],textFill:a,textboxFill:_,textboxStroke:s,textFontFamily:c,onSizeUpdate:u,showLabel:h=!0,scale:f=1})=>{o={imageChar:"fa-question",height:32,fill:"transparent",...o};const[d,p]=_t(0),[g,m]=_t(0);ct(()=>{u&&u({width:0,height:0})},[d,g,u]);let x=d;x+=4;let y=-(2*o.height/6+n+8)/2;const v=o.height/3+g/2+i;let k=o.height/3+g+i+r/3;h||(y+=(n+8)/2,k-=g+i);const F=ft(t=>{p(t.width),m(t.height)},[]),b=h?G("g",{transform:`translate(0 ${v})`,children:G(re,{text:e,height:n,padding:i,onSizeUpdate:F,textFill:a,fill:_,stroke:s,fontFamily:c})}):void 0;return G("g",t?{transform:`translate(0 ${y}) scale(${f})`,children:[G("use",{xlinkHref:"#"+t}),b,G(ge,{x:x/2,y:k,annotationIDs:l})]}:{transform:`translate(0 ${y}) scale(${f})`,children:[G(ee,{...o}),b]})},"Vertex"),xe=i(({categoryID:t="",text:n="",textHeight:i=12,textPadding:o=4,icon:r={},textFill:l="black",textboxFill:a="white",textboxStroke:_="black",textFontFamily:s,annotationsHeight:c=12,annotationIDs:u=[]})=>{r={imageChar:"fa-question",imageCharFill:"white",height:32,fill:"black",shape:"square",...r};const h=i+2*o,{width:f}=ht(()=>e.Utility.textSize(n,s,i,!1),[n,s,i]),d=c,p=h/2,g=-(2*r.height/6+i+8)/2,m=-r.height/2,x=Math.ceil(f/2+o),y=p-r.height/2,v=d/2,k=p;return t?G("g",{transform:`translate(0 ${g})`,children:[G("g",{transform:`translate(${m} 0)`,children:G("use",{xlinkHref:"#"+t})}),G("g",{transform:`translate(${x} ${y})`,children:G(re,{text:n,height:i,padding:o,strokeWidth:1,stroke:_,fill:a,textFill:l,fontFamily:s})}),G(ge,{x:v,y:k,annotationIDs:u,stepSize:d})]}):G(b,{children:[G("g",{transform:`translate(${m} 0)scale(1.0002)`,children:G(ee,{...r,shape:"square"})}),G("g",{transform:`translate(${x} ${y})scale(1.0002)`,children:G(re,{text:n,height:i,padding:o,stroke:_,fill:a})})]})},"Vertex2"),ye=i(({text:t="",textHeight:n=10,textPadding:i=4,textFill:o="#287EC4",textboxFill:r="white",textboxStroke:l="#CCCCCC",textboxStrokeWidth:a=1,textFontFamily:_="Verdana",annotationGutter:s=2,annotations:c=[],cornerRadius:u=3,icon:h={},subText:f={text:""},showLabel:d=!0,noLabelRadius:p=5,expansionIcon:g,scale:m=1})=>{h={height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0,...h},f={text:"",fill:"white",textFill:"#555555",...f},g=g?{height:16,shape:"circle",padding:6,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"black",fill:"whitesmoke",stroke:"whitesmoke",strokeWidth:0,...g}:void 0;let x=0;const y=ht(()=>e.Utility.textSize(t,_,n,!1).width,[t,_,n]);let v=0;""!==t&&(v=y+2*i+2*a),x+=v+s;const k=x-v/2,F=n+2*i+2*a,b=[];c.forEach((t,e)=>{const n=t.imageChar;x+=F+s;const i=x-F/2;b.push(G("g",{className:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:`translate(${i} 0)`,children:G(ee,{...t,shape:"square",height:F,imageChar:n,imageFontFamily:t.imageFontFamily,cornerRadius:u,strokeWidth:0})},e))}),c.length>0&&(x+=s*(c.length-1));const C=G("g",{"data-click":"text",transform:`translate(${k} 0)`,children:d&&""!==t?G(re,{text:t,height:n,padding:i,strokeWidth:a,stroke:l,fill:r,textFill:o,fontFamily:_,cornerRadius:u}):G("circle",{r:p,stroke:l,fill:o})}),w=h.height||20,S=h.strokeWidth||0;let $=0;let R=F+2*s;""!==t||b.length>0?$=-w/2-S-F/2-2*s:""!==f.text&&(R=w/2+S+2*s);const W=""===f.text?null:G("g",{"data-click":"subtext",transform:`translate(0 ${R})`,children:G(re,{fill:f.fill||"#FFFFFF",textFill:f.textFill||o,...f,height:n,padding:i,strokeWidth:0,stroke:l,fontFamily:_,cornerRadius:u})});return G("g",{transform:`scale(${m})`,children:[G("g",{"data-click":"icon",transform:`translate(0 ${$})`,children:[G(ee,{...h}),g&&G("g",{"data-click":"expanded-icon","data-click-data":JSON.stringify(g),transform:`translate(${(h.height+S)/2-g.height/2} ${-(h.height+S)/2+g.height/2})`,children:G(ee,{...g})})]}),G("g",{transform:`translate(${-x/2} 0)`,children:[C,b]}),W]})},"Vertex3"),ve=i(function({id:t,categoryID:e="",text:n="",textHeight:i=12,textPadding:o=10,textFill:r="#287EC4",textboxFill:l="white",textboxStroke:a="#CCCCCC",textboxStrokeWidth:_=1,textFontFamily:s="Verdana",annotationGutter:c=2,annotations:u=[],cornerRadius:h,icon:f={},subText:d={},expansionIcon:p,scale:g=1}){f={height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15,...f},d={text:"",fill:"transparent",textFill:"#555555",...d};return G(ye,{...{id:t,categoryID:e,text:n,textHeight:i,textPadding:o,textFill:r,textboxFill:l,textboxStroke:a,textboxStrokeWidth:_,textFontFamily:s,annotationGutter:c,annotations:u,cornerRadius:h,icon:f,subText:d,expansionIcon:p,scale:g},icon:f,subText:d})},"CentroidVertex3"),ke=i(({categoryID:t="",text:n="",textHeight:i=10,textPadding:o=4,textFill:r="#287EC4",textboxFill:l="white",textboxStroke:a="#CCCCCC",textboxStrokeWidth:_=1,textFontFamily:s="Verdana",annotationGutter:c=2,annotations:u=[],iconAnnotations:h=[],cornerRadius:f=3,icon:d={},subText:p={},showLabel:g=!0,noLabelRadius:m=5,iconBorderWidth:x=1,iconBorderColor:y="#333",iconBackgroundColor:v="#fff",iconFontColor:k="#000",iconFontSize:F=20,iconFontFamily:b="FontAwesome",shapeOffsetX:C=0,shapeOffsetY:w=0,iconOffsetX:S=0,iconOffsetY:$=0,iconPadding:R=4,iconText:W="?",shapeRendering:P="auto"})=>{d={height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0,...d},p={text:"",fill:"white",textFill:"#555555",...p};const H=ht(()=>e.Utility.textSize(n,s,i,!1).width,[n,s,i]);let O=0;""!==n&&(O=H+2*o+2*_);let A=O+c;const T=A-O/2,E=i+2*c+2*_,N=u.map(t=>e.Utility.textSize(t.imageChar,t.imageFontFamily,t.height,!1).width),U=[];let D=A;u.forEach((t,e)=>{const n=t.imageChar,i=t.height??E;D+=N[e]+c;const o=D-N[e]/2;U.push(G("g",{className:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:`translate(${o} 0)`,children:G(ee,{...t,shape:"rectangle",width:N[e],height:i,imageChar:n,imageFontFamily:t.imageFontFamily,cornerRadius:f,strokeWidth:0})},e))}),u.length>0&&(A+=c*(u.length-1));const I=[];h.forEach((t,e)=>{const n=t.shapeOffsetX,i=t.shapeOffsetY;I.push(G("g",{className:"vertex3-iconAnno","data-click":"icon-annotation","data-click-data":JSON.stringify(t),transform:`translate(${n} ${i})`,children:G(ee,{...t,shape:t.shape??"square",imageChar:t.imageChar,imageFontFamily:t.imageFontFamily,cornerRadius:f,stroke:t.stroke,strokeWidth:t.strokeWidth})},e))});const V=G("g",{"data-click":"text",transform:`translate(${T} 0)`,children:g&&""!==n?G(re,{text:n,height:i,padding:o,strokeWidth:_,stroke:a,fill:l,textFill:r,fontFamily:s,cornerRadius:f}):G("circle",{r:m,stroke:a,fill:r})}),L=E+2*c,z=""===p.text?null:G("g",{"data-click":"subtext",transform:`translate(0 ${L})`,children:G(re,{fill:p.fill||"#FFFFFF",textFill:p.textFill||r,...p,height:i,padding:o,strokeWidth:0,stroke:a,fontFamily:s,cornerRadius:f})});return G("g",{children:[G("g",{"data-click":"icon",transform:`translate(${C} ${w})`,children:[G(ee,{...d,strokeWidth:x,shape:"circle",height:F,fill:v,stroke:y,imageFontFamily:b,imageChar:W,imageCharFill:k,padding:R,xOffset:S,yOffset:$,cornerRadius:f,shapeRendering:P}),I]}),G("g",{transform:`translate(${-A/2} 0)`,children:[V,U]}),z]})},"Vertex4"),Fe=i(function({id:t,categoryID:e="",text:n="",textHeight:i=12,textPadding:o=10,textFill:r="#287EC4",textboxFill:l="white",textboxStroke:a="#CCCCCC",textboxStrokeWidth:_=1,textFontFamily:s="Verdana",annotationGutter:c=2,annotations:u=[],iconAnnotations:h=[],cornerRadius:f,icon:d={},subText:p={},showLabel:g=!0,noLabelRadius:m=5,iconBorderWidth:x=1,iconBorderColor:y="#333",iconBackgroundColor:v="#fff",iconFontColor:k="#000",iconFontSize:F=20,iconFontFamily:b="FontAwesome",shapeOffsetX:C=0,shapeOffsetY:w=0,iconOffsetX:S=0,iconOffsetY:$=0,iconPadding:R=4,iconText:W="?",shapeRendering:P="auto"}){d={height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15,...d},p={text:"",fill:"transparent",textFill:"#555555",...p};return G(ke,{...{id:t,categoryID:e,text:n,textHeight:i,textPadding:o,textFill:r,textboxFill:l,textboxStroke:a,textboxStrokeWidth:_,textFontFamily:s,annotationGutter:c,annotations:u,iconAnnotations:h,cornerRadius:f,icon:d,subText:p,showLabel:g,noLabelRadius:m,iconBorderWidth:x,iconBorderColor:y,iconBackgroundColor:v,iconFontColor:k,iconFontSize:F,iconFontFamily:b,shapeOffsetX:C,shapeOffsetY:w,iconOffsetX:S,iconOffsetY:$,iconPadding:R,iconText:W,shapeRendering:P},icon:d,subText:p})},"CentroidVertex4"),be=i(({text:t,width:n=100,height:i=100,fill:o="transparent",stroke:r="black",fontHeight:l=12,fontFamily:a})=>{const _=e.Utility.textSize(t,a,l,!1);return G(b,{children:[G(Qt,{width:n,height:i,fill:o,stroke:r}),G("g",{transform:`translate(${(-n+_.width)/2+4} ${(-i+_.height)/2+4})`,children:G(oe,{height:l,text:t,fontFamily:a})})]})},"Subgraph");t.Annotations=ge,t.BUILD_VERSION="3.20.0",t.CentroidVertex3=ve,t.CentroidVertex4=Fe,t.Circle=Kt,t.Edge=_e,t.HTMLAdapter=he,t.Icon=ee,t.IconLabelledRect=ae,t.Icons=ne,t.Image=Yt,t.ImageChar=Jt,t.LabelledRect=le,t.PKG_NAME="@hpcc-js/react",t.PKG_VERSION="3.4.10",t.React=Xt,t.Rectangle=Qt,t.SVGAdapter=de,t.Shape=te,t.Span=pe,t.Square=Zt,t.Subgraph=be,t.Text=oe,t.TextBox=re,t.TextLine=ie,t.Vertex=me,t.Vertex2=xe,t.Vertex3=ye,t.Vertex4=ke,t.render=se,t.svgRender=ce,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@hpcc-js/react"]={},t["@hpcc-js/common"])}(this,function(t,e){"use strict";var n=Object.defineProperty,i=(t,e)=>n(t,"name",{value:e,configurable:!0});var o,r,l,_,a,s,c,u,h,f,d,p={},g=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,x=Array.isArray;function y(t,e){for(var n in e)t[n]=e[n];return t}function v(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function k(t,e,n){var i,r,l,_={};for(l in e)"key"==l?i=e[l]:"ref"==l?r=e[l]:_[l]=e[l];if(arguments.length>2&&(_.children=arguments.length>3?o.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(l in t.defaultProps)void 0===_[l]&&(_[l]=t.defaultProps[l]);return F(t,_,i,r,null)}function F(t,e,n,i,o){var _={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++l:o,__i:-1,__u:0};return null==o&&null!=r.vnode&&r.vnode(_),_}function b(t){return t.children}function C(t,e){this.props=t,this.context=e}function w(t,e){if(null==e)return t.__?w(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?w(t):null}function S(t){if(t.__P&&t.__d){var e=t.__v,n=e.__e,i=[],o=[],l=y({},e);l.__v=e.__v+1,r.vnode&&r.vnode(l),I(t.__P,l,e,t.__n,t.__P.namespaceURI,32&e.__u?[n]:null,i,null==n?w(e):n,!!(32&e.__u),o),l.__v=e.__v,l.__.__k[l.__i]=l,L(i,l,o),e.__e=e.__=null,l.__e!=n&&$(l)}}function $(t){if(null!=(t=t.__)&&null!=t.__c)return t.__e=t.__c.base=null,t.__k.some(function(e){if(null!=e&&null!=e.__e)return t.__e=t.__c.base=e.__e}),$(t)}function R(t){(!t.__d&&(t.__d=!0)&&_.push(t)&&!W.__r++||a!=r.debounceRendering)&&((a=r.debounceRendering)||s)(W)}function W(){for(var t,e=1;_.length;)_.length>e&&_.sort(c),t=_.shift(),e=_.length,S(t);W.__r=0}function P(t,e,n,i,o,r,l,_,a,s,c){var u,h,f,d,m,x,y,v=i&&i.__k||g,k=e.length;for(a=H(n,e,v,a,k),u=0;u<k;u++)null!=(f=n.__k[u])&&(h=-1!=f.__i&&v[f.__i]||p,f.__i=u,x=I(t,f,h,o,r,l,_,a,s,c),d=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&M(h.ref,null,f),c.push(f.ref,f.__c||d,f)),null==m&&null!=d&&(m=d),(y=!!(4&f.__u))||h.__k===f.__k?a=O(f,a,t,y):"function"==typeof f.type&&void 0!==x?a=x:d&&(a=d.nextSibling),f.__u&=-7);return n.__e=m,a}function H(t,e,n,i,o){var r,l,_,a,s,c=n.length,u=c,h=0;for(t.__k=new Array(o),r=0;r<o;r++)null!=(l=e[r])&&"boolean"!=typeof l&&"function"!=typeof l?("string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?l=t.__k[r]=F(null,l,null,null,null):x(l)?l=t.__k[r]=F(b,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?l=t.__k[r]=F(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):t.__k[r]=l,a=r+h,l.__=t,l.__b=t.__b+1,_=null,-1!=(s=l.__i=T(l,n,a,u))&&(u--,(_=n[s])&&(_.__u|=2)),null==_||null==_.__v?(-1==s&&(o>c?h--:o<c&&h++),"function"!=typeof l.type&&(l.__u|=4)):s!=a&&(s==a-1?h--:s==a+1?h++:(s>a?h--:h++,l.__u|=4))):t.__k[r]=null;if(u)for(r=0;r<c;r++)null!=(_=n[r])&&!(2&_.__u)&&(_.__e==i&&(i=w(_)),B(_,_));return i}function O(t,e,n,i){var o,r;if("function"==typeof t.type){for(o=t.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=t,e=O(o[r],e,n,i));return e}t.__e!=e&&(i&&(e&&t.type&&!e.parentNode&&(e=w(t)),n.insertBefore(t.__e,e||null)),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function A(t,e){return e=e||[],null==t||"boolean"==typeof t||(x(t)?t.some(function(t){A(t,e)}):e.push(t)),e}function T(t,e,n,i){var o,r,l,_=t.key,a=t.type,s=e[n],c=null!=s&&!(2&s.__u);if(null===s&&null==_||c&&_==s.key&&a==s.type)return n;if(i>(c?1:0))for(o=n-1,r=n+1;o>=0||r<e.length;)if(null!=(s=e[l=o>=0?o--:r++])&&!(2&s.__u)&&_==s.key&&a==s.type)return l;return-1}function U(t,e,n){"-"==e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||m.test(e)?n:n+"px"}function N(t,e,n,i,o){var r,l;t:if("style"==e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof i&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||U(t.style,e,"");if(n)for(e in n)i&&n[e]==i[e]||U(t.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])r=e!=(e=e.replace(u,"$1")),l=e.toLowerCase(),e=l in t||"onFocusOut"==e||"onFocusIn"==e?l.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+r]=n,n?i?n.u=i.u:(n.u=h,t.addEventListener(e,r?d:f,r)):t.removeEventListener(e,r?d:f,r);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(_){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function D(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=h++;else if(e.t<n.u)return;return n(r.event?r.event(e):e)}}}function I(t,e,n,i,o,l,_,a,s,c){var u,h,f,d,p,m,k,F,w,S,$,R,W,H,O,A=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(s=!!(32&n.__u),l=[a=e.__e=n.__e]),(u=r.__b)&&u(e);t:if("function"==typeof A)try{if(F=e.props,w="prototype"in A&&A.prototype.render,S=(u=A.contextType)&&i[u.__c],$=u?S?S.props.value:u.__:i,n.__c?k=(h=e.__c=n.__c).__=h.__E:(w?e.__c=h=new A(F,$):(e.__c=h=new C(F,$),h.constructor=A,h.render=j),S&&S.sub(h),h.state||(h.state={}),h.__n=i,f=h.__d=!0,h.__h=[],h._sb=[]),w&&null==h.__s&&(h.__s=h.state),w&&null!=A.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=y({},h.__s)),y(h.__s,A.getDerivedStateFromProps(F,h.__s))),d=h.props,p=h.state,h.__v=e,f)w&&null==A.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),w&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(w&&null==A.getDerivedStateFromProps&&F!==d&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(F,$),e.__v==n.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(F,h.__s,$)){e.__v!=n.__v&&(h.props=F,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(t){t&&(t.__=e)}),g.push.apply(h.__h,h._sb),h._sb=[],h.__h.length&&_.push(h);break t}null!=h.componentWillUpdate&&h.componentWillUpdate(F,h.__s,$),w&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(d,p,m)})}if(h.context=$,h.props=F,h.__P=t,h.__e=!1,R=r.__r,W=0,w)h.state=h.__s,h.__d=!1,R&&R(e),u=h.render(h.props,h.state,h.context),g.push.apply(h.__h,h._sb),h._sb=[];else do{h.__d=!1,R&&R(e),u=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++W<25);h.state=h.__s,null!=h.getChildContext&&(i=y(y({},i),h.getChildContext())),w&&!f&&null!=h.getSnapshotBeforeUpdate&&(m=h.getSnapshotBeforeUpdate(d,p)),H=null!=u&&u.type===b&&null==u.key?E(u.props.children):u,a=P(t,x(H)?H:[H],e,n,i,o,l,_,a,s,c),h.base=e.__e,e.__u&=-161,h.__h.length&&_.push(h),k&&(h.__E=h.__=null)}catch(T){if(e.__v=null,s||null!=l)if(T.then){for(e.__u|=s?160:128;a&&8==a.nodeType&&a.nextSibling;)a=a.nextSibling;l[l.indexOf(a)]=null,e.__e=a}else{for(O=l.length;O--;)v(l[O]);V(e)}else e.__e=n.__e,e.__k=n.__k,T.then||V(e);r.__e(T,e,n)}else null==l&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):a=e.__e=z(n.__e,e,n,i,o,l,_,s,c);return(u=r.diffed)&&u(e),128&e.__u?void 0:a}function V(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(V))}function L(t,e,n){for(var i=0;i<n.length;i++)M(n[i],n[++i],n[++i]);r.__c&&r.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(n){r.__e(n,e.__v)}})}function E(t){return"object"!=typeof t||null==t||t.__b>0?t:x(t)?t.map(E):y({},t)}function z(t,e,n,i,l,_,a,s,c){var u,h,f,d,g,m,y,k=n.props||p,F=e.props,b=e.type;if("svg"==b?l="http://www.w3.org/2000/svg":"math"==b?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=_)for(u=0;u<_.length;u++)if((g=_[u])&&"setAttribute"in g==!!b&&(b?g.localName==b:3==g.nodeType)){t=g,_[u]=null;break}if(null==t){if(null==b)return document.createTextNode(F);t=document.createElementNS(l,b,F.is&&F),s&&(r.__m&&r.__m(e,_),s=!1),_=null}if(null==b)k===F||s&&t.data==F||(t.data=F);else{if(_=_&&o.call(t.childNodes),!s&&null!=_)for(k={},u=0;u<t.attributes.length;u++)k[(g=t.attributes[u]).name]=g.value;for(u in k)g=k[u],"dangerouslySetInnerHTML"==u?f=g:"children"==u||u in F||"value"==u&&"defaultValue"in F||"checked"==u&&"defaultChecked"in F||N(t,u,null,g,l);for(u in F)g=F[u],"children"==u?d=g:"dangerouslySetInnerHTML"==u?h=g:"value"==u?m=g:"checked"==u?y=g:s&&"function"!=typeof g||k[u]===g||N(t,u,g,k[u],l);if(h)s||f&&(h.__html==f.__html||h.__html==t.innerHTML)||(t.innerHTML=h.__html),e.__k=[];else if(f&&(t.innerHTML=""),P("template"==e.type?t.content:t,x(d)?d:[d],e,n,i,"foreignObject"==b?"http://www.w3.org/1999/xhtml":l,_,a,_?_[0]:n.__k&&w(n,0),s,c),null!=_)for(u=_.length;u--;)v(_[u]);s||(u="value","progress"==b&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[u]||"progress"==b&&!m||"option"==b&&m!=k[u])&&N(t,u,m,k[u],l),u="checked",null!=y&&y!=t[u]&&N(t,u,y,k[u],l))}return t}function M(t,e,n){try{if("function"==typeof t){var i="function"==typeof t.__u;i&&t.__u(),i&&null==e||(t.__u=t(e))}else t.current=e}catch(o){r.__e(o,n)}}function B(t,e,n){var i,o;if(r.unmount&&r.unmount(t),(i=t.ref)&&(i.current&&i.current!=t.__e||M(i,null,e)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(l){r.__e(l,e)}i.base=i.__P=null}if(i=t.__k)for(o=0;o<i.length;o++)i[o]&&B(i[o],e,n||"function"!=typeof t.type);n||v(t.__e),t.__c=t.__=t.__e=void 0}function j(t,e,n){return this.constructor(t,n)}function q(t,e,n){var i,l,_,a;e==document&&(e=document.documentElement),r.__&&r.__(t,e),l=(i="function"==typeof n)?null:n&&n.__k||e.__k,_=[],a=[],I(e,t=(!i&&n||e).__k=k(b,null,[t]),l||p,p,e.namespaceURI,!i&&n?[n]:l?null:e.firstChild?o.call(e.childNodes):null,_,!i&&n?n:l?l.__e:e.firstChild,i,a),L(_,t,a)}i(y,"w$1"),i(v,"g$1"),i(k,"_$1"),i(F,"m$1"),i(b,"k$1"),i(C,"x"),i(w,"S"),i(S,"C$1"),i($,"M"),i(R,"$"),i(W,"I"),i(P,"P$1"),i(H,"A"),i(O,"H$1"),i(A,"L"),i(T,"T$2"),i(U,"j$2"),i(N,"F$1"),i(D,"O"),i(I,"z$1"),i(V,"N$1"),i(L,"V$1"),i(E,"q$2"),i(z,"B$2"),i(M,"D$1"),i(B,"E$1"),i(j,"G$1"),i(q,"J$1"),o=g.slice,r={__e:i(function(t,e,n,i){for(var o,r,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(t)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,i||{}),l=o.__d),l)return o.__E=o}catch(_){t=_}throw t},"__e")},l=0,C.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=y({},this.state),"function"==typeof t&&(t=t(y({},n),this.props)),t&&y(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),R(this))},C.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),R(this))},C.prototype.render=b,_=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=i(function(t,e){return t.__v.__b-e.__v.__b},"e$1"),W.__r=0,u=/(PointerCapture)$|Capture$/i,h=0,f=D(!1),d=D(!0);var G=0;function X(t,e,n,i,o,l){e||(e={});var _,a,s=e;if("ref"in s)for(a in s={},e)"ref"==a?_=e[a]:s[a]=e[a];var c={type:t,props:s,key:n,ref:_,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--G,__i:-1,__u:0,__source:o,__self:l};if("function"==typeof t&&(_=t.defaultProps))for(a in _)void 0===s[a]&&(s[a]=_[a]);return r.vnode&&r.vnode(c),c}i(X,"u$1");var Y,J,K,Z,Q=0,tt=[],et=r,nt=et.__b,it=et.__r,ot=et.diffed,rt=et.__c,lt=et.unmount,_t=et.__;function at(t,e){et.__h&&et.__h(J,t,Q||e),Q=0;var n=J.__H||(J.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function st(t){return Q=1,ct(kt,t)}function ct(t,e,n){var o=at(Y++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):kt(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],n=o.t(e,t);e!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=J,!J.__f)){var r=i(function(t,e,n){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter(function(t){return t.__c});if(i.every(function(t){return!t.__N}))return!l||l.call(this,t,e,n);var r=o.__c.props!==t;return i.some(function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(r=!0)}}),l&&l.call(this,t,e,n)||r},"f");J.__f=!0;var l=J.shouldComponentUpdate,_=J.componentWillUpdate;J.componentWillUpdate=function(t,e,n){if(this.__e){var i=l;l=void 0,r(t,e,n),l=i}_&&_.call(this,t,e,n)},J.shouldComponentUpdate=r}return o.__N||o.__}function ut(t,e){var n=at(Y++,3);!et.__s&&vt(n.__H,e)&&(n.__=t,n.u=e,J.__H.__h.push(n))}function ht(t,e){var n=at(Y++,4);!et.__s&&vt(n.__H,e)&&(n.__=t,n.u=e,J.__h.push(n))}function ft(t,e){var n=at(Y++,7);return vt(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function dt(t,e){return Q=8,ft(function(){return t},e)}function pt(){for(var t;t=tt.shift();){var e=t.__H;if(t.__P&&e)try{e.__h.some(xt),e.__h.some(yt),e.__h=[]}catch(n){e.__h=[],et.__e(n,t.__v)}}}i(at,"p"),i(st,"d"),i(ct,"h"),i(ut,"y"),i(ht,"_"),i(ft,"T$1"),i(dt,"q$1"),i(pt,"j$1"),et.__b=function(t){J=null,nt&&nt(t)},et.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),_t&&_t(t,e)},et.__r=function(t){it&&it(t),Y=0;var e=(J=t.__c).__H;e&&(K===J?(e.__h=[],J.__h=[],e.__.some(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(e.__h.some(xt),e.__h.some(yt),e.__h=[],Y=0)),K=J},et.diffed=function(t){ot&&ot(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==tt.push(e)&&Z===et.requestAnimationFrame||((Z=et.requestAnimationFrame)||mt)(pt)),e.__H.__.some(function(t){t.u&&(t.__H=t.u),t.u=void 0})),K=J=null},et.__c=function(t,e){e.some(function(t){try{t.__h.some(xt),t.__h=t.__h.filter(function(t){return!t.__||yt(t)})}catch(n){e.some(function(t){t.__h&&(t.__h=[])}),e=[],et.__e(n,t.__v)}}),rt&&rt(t,e)},et.unmount=function(t){lt&&lt(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.some(function(t){try{xt(t)}catch(n){e=n}}),n.__H=void 0,e&&et.__e(e,n.__v))};var gt="function"==typeof requestAnimationFrame;function mt(t){var e,n=i(function(){clearTimeout(o),gt&&cancelAnimationFrame(e),setTimeout(t)},"r"),o=setTimeout(n,35);gt&&(e=requestAnimationFrame(n))}function xt(t){var e=J,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),J=e}function yt(t){var e=J;t.__c=t.__(),J=e}function vt(t,e){return!t||t.length!==e.length||e.some(function(e,n){return e!==t[n]})}function kt(t,e){return"function"==typeof e?e(t):e}function Ft(t,e){for(var n in e)t[n]=e[n];return t}function bt(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var i in e)if("__source"!==i&&t[i]!==e[i])return!0;return!1}function Ct(t,e){this.props=t,this.context=e}i(mt,"w"),i(xt,"z"),i(yt,"B$1"),i(vt,"C"),i(kt,"D"),i(Ft,"g"),i(bt,"E"),i(Ct,"N"),(Ct.prototype=new C).isPureReactComponent=!0,Ct.prototype.shouldComponentUpdate=function(t,e){return bt(this.props,t)||bt(this.state,e)};var wt=r.__b;r.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),wt&&wt(t)};var St=r.__e;r.__e=function(t,e,n,i){if(t.then)for(var o,r=e;r=r.__;)if((o=r.__c)&&o.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e);St(t,e,n,i)};var $t=r.unmount;function Rt(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(t){"function"==typeof t.__c&&t.__c()}),t.__c.__H=null),null!=(t=Ft({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c.__e=!0,t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return Rt(t,e,n)})),t}function Wt(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return Wt(t,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function Pt(){this.__u=0,this.o=null,this.__b=null}function Ht(t){if(!t.__)return null;var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Ot(){this.i=null,this.l=null}i(Rt,"V"),i(Wt,"W"),i(Pt,"P"),i(Ht,"j"),i(Ot,"B"),r.unmount=function(t){var e=t.__c;e&&(e.__z=!0),e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),$t&&$t(t)},(Pt.prototype=new C).__c=function(t,e){var n=e.__c,o=this;null==o.o&&(o.o=[]),o.o.push(n);var r=Ht(o.__v),l=!1,_=i(function(){l||o.__z||(l=!0,n.__R=null,r?r(s):s())},"i");n.__R=_;var a=n.__P;n.__P=null;var s=i(function(){if(! --o.__u){if(o.state.__a){var t=o.state.__a;o.__v.__k[0]=Wt(t,t.__c.__P,t.__c.__O)}var e;for(o.setState({__a:o.__b=null});e=o.o.pop();)e.__P=a,e.forceUpdate()}},"c");o.__u++||32&e.__u||o.setState({__a:o.__b=o.__v.__k[0]}),t.then(_,_)},Pt.prototype.componentWillUnmount=function(){this.o=[]},Pt.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=Rt(this.__b,n,i.__O=i.__P)}this.__b=null}var o=e.__a&&k(b,null,t.fallback);return o&&(o.__u&=-33),[k(b,null,e.__a?null:t.children),o]};var At=i(function(t,e,n){if(++n[1]===n[0]&&t.l.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.l.size))for(n=t.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.i=n=n[2]}},"H");(Ot.prototype=new C).__a=function(t){var e=this,n=Ht(e.__v),o=e.l.get(t);return o[0]++,function(r){var l=i(function(){e.props.revealOrder?(o.push(r),At(e,t,o)):r()},"o");n?n(l):l()}},Ot.prototype.render=function(t){this.i=null,this.l=new Map;var e=A(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.l.set(e[n],this.i=[1,0,this.i]);return t.children},Ot.prototype.componentDidUpdate=Ot.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,n){At(t,n,e)})};var Tt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ut=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Nt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Dt=/[A-Z0-9]/g,It="undefined"!=typeof document,Vt=i(function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)},"X");C.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(C.prototype,t,{configurable:!0,get:i(function(){return this["UNSAFE_"+t]},"get"),set:i(function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})},"set")})});var Lt=r.event;function Et(){}function zt(){return this.cancelBubble}function Mt(){return this.defaultPrevented}i(Et,"rn"),i(zt,"un"),i(Mt,"on"),r.event=function(t){return Lt&&(t=Lt(t)),t.persist=Et,t.isPropagationStopped=zt,t.isDefaultPrevented=Mt,t.nativeEvent=t};var Bt={enumerable:!1,configurable:!0,get:i(function(){return this.class},"get")},jt=r.vnode;r.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,i={},o=-1===n.indexOf("-");for(var r in e){var l=e[r];if(!("value"===r&&"defaultValue"in e&&null==l||It&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var _=r.toLowerCase();"defaultValue"===r&&"value"in e&&null==e.value?r="value":"download"===r&&!0===l?l="":"translate"===_&&"no"===l?l=!1:"o"===_[0]&&"n"===_[1]?"ondoubleclick"===_?r="ondblclick":"onchange"!==_||"input"!==n&&"textarea"!==n||Vt(e.type)?"onfocus"===_?r="onfocusin":"onblur"===_?r="onfocusout":Nt.test(r)&&(r=_):_=r="oninput":o&&Ut.test(r)?r=r.replace(Dt,"-$&").toLowerCase():null===l&&(l=void 0),"oninput"===_&&i[r=_]&&(r="oninputCapture"),i[r]=l}}"select"==n&&i.multiple&&Array.isArray(i.value)&&(i.value=A(e.children).forEach(function(t){t.props.selected=-1!=i.value.indexOf(t.props.value)})),"select"==n&&null!=i.defaultValue&&(i.value=A(e.children).forEach(function(t){t.props.selected=i.multiple?-1!=i.defaultValue.indexOf(t.props.value):i.defaultValue==t.props.value})),e.class&&!e.className?(i.class=e.class,Object.defineProperty(i,"className",Bt)):e.className&&(i.class=i.className=e.className),t.props=i}(t),t.$$typeof=Tt,jt&&jt(t)};var qt=r.__r;r.__r=function(t){qt&&qt(t),t.__c};var Gt=r.diffed;function Xt(t){return!!t.__k&&(q(null,t),!0)}r.diffed=function(t){Gt&&Gt(t);var e=t.props,n=t.__e;null!=n&&"textarea"===t.type&&"value"in e&&e.value!==n.value&&(n.value=null==e.value?"":e.value)},i(Xt,"bn");const Yt=Object.freeze(Object.defineProperty({__proto__:null,Component:C,Fragment:b,createElement:k,h:k,render:q,unmountComponentAtNode:Xt,useCallback:dt,useEffect:ut,useLayoutEffect:ht,useMemo:ft,useReducer:ct,useState:st},Symbol.toStringTag,{value:"Module"})),Jt=i(({href:t,x:e,y:n=0,height:i=12})=>X("image",{xlinkHref:t,x:e-i/2,y:n-i/2,width:i,height:i}),"Image"),Kt=i(({x:t,y:n=0,height:i=12,fill:o,stroke:r,fontFamily:l="FontAwesome",char:_="",fontWeight:a})=>{const s=ft(()=>"FontAwesome"===l?e.Utility.faChar(_):_,[_,l]);return X("text",{x:t,y:n,fill:o,stroke:r,fontFamily:l,fontSize:`${i}px`,fontWeight:a,dominantBaseline:"middle",style:{textAnchor:"middle",alignmentBaseline:"middle"},children:s})},"ImageChar"),Zt=i(({radius:t=32,fill:e="navy",stroke:n=e,strokeWidth:i=1,shapeRendering:o})=>X("circle",{r:t,fill:e,stroke:n,strokeWidth:i,shapeRendering:o}),"Circle"),Qt=i(({radius:t=30,cornerRadius:e=0,fill:n="white",stroke:i,strokeWidth:o=1,shapeRendering:r})=>X("rect",{x:-t,y:-t,rx:e,ry:e,width:2*t,height:2*t,fill:n,stroke:i||n,strokeWidth:o,shapeRendering:r}),"Square"),te=i(({width:t=30,height:e=30,cornerRadius:n=0,fill:i="white",stroke:o="black",strokeWidth:r=1,shapeRendering:l})=>X("rect",{x:-t/2,y:-e/2,rx:n,ry:n,width:t,height:e,fill:i,stroke:o||i,strokeWidth:r,shapeRendering:l}),"Rectangle"),ee=i(({shape:t="circle",height:e=128,width:n,fill:i,stroke:o,strokeWidth:r=1,shapeRendering:l,cornerRadius:_})=>{switch(t){case"square":return X(Qt,{radius:e/2,fill:i,stroke:o,strokeWidth:r,shapeRendering:l,cornerRadius:_});case"rectangle":return X(te,{width:n??e,height:e,fill:i,stroke:o,strokeWidth:r,shapeRendering:l,cornerRadius:_});default:return X(Zt,{radius:e/2,fill:i,stroke:o,strokeWidth:r,shapeRendering:l})}},"Shape"),ne=i(({shape:t="circle",width:n,height:i=32,fill:o,stroke:r,strokeWidth:l=0,imageUrl:_="",imageFontFamily:a="FontAwesome",imageChar:s="",imageCharFill:c=e.Palette.textColor(o),padding:u=i/5,xOffset:h=0,yOffset:f=0,cornerRadius:d,shapeRendering:p})=>X(b,{children:[X(ee,{shape:t,width:n,height:i,fill:o,stroke:r,strokeWidth:l,shapeRendering:p,cornerRadius:d}),_?X(Jt,{href:_,x:h,y:f,height:i-u}):X(Kt,{x:h,y:f,height:i-u,fontFamily:a,char:s,fill:c,fontWeight:400})]}),"Icon"),ie=i(({icons:t=[]})=>X(b,{children:t.map(t=>X("g",{id:t.id,children:X(ne,{...t})},t.id))}),"Icons"),oe=i(({text:t,height:e=12,anchor:n="middle",baseline:i="middle",fontFamily:o="Verdana",fill:r="black"})=>X("text",{"font-family":o,"font-size":`${e}px`,"text-anchor":n,"dominant-baseline":i,fill:r,children:t}),"TextLine"),re=i(({text:t,height:n=12,fontFamily:i="Verdana",fill:o="black",onSizeUpdate:r})=>{const[l,_]=st(0),[a,s]=st(0);ut(()=>{r&&r({width:l,height:a})},[l,a,r]);const c=ft(()=>t.split("\n"),[t]);ht(()=>{const t=e.Utility.textSize(c,i,n);_(t.width),s(t.height)},[i,n,c]);return X("g",{children:ft(()=>{const t=-a/2+n/2;return c.map((e,r)=>X("g",{transform:`translate(0 ${t+r*(n+2)})`,children:X(oe,{text:e,height:n,fontFamily:i,fill:o})},`key-${r}`))},[c,a,n,i,o])})},"Text"),le=i(({text:t,height:e=12,fontFamily:n="Verdana",padding:i=4,fill:o="whitesmoke",stroke:r="lightgray",textFill:l="black",strokeWidth:_=1,cornerRadius:a=0,onSizeUpdate:s})=>{const[c,u]=st(0),[h,f]=st(0);ut(()=>{s&&s({width:c,height:h})},[c,h,s]);const d=dt(t=>{u(t.width),f(t.height)},[]),p=c+2*i+_,g=h+2*i+_,m=Math.floor(e/10);return X(b,{children:[X(te,{width:p,height:g,fill:o,stroke:r,strokeWidth:_,cornerRadius:a}),X("g",{transform:`translate(0 ${m})`,children:X(re,{text:t,fontFamily:n,height:e,fill:l,onSizeUpdate:d})})]})},"TextBox"),_e=i(({text:t,height:n=12,width:i=12,fontFamily:o="Verdana",fontSize:r=10,padding:l=3,fill:_="whitesmoke",stroke:a="lightgray",textFill:s="black",strokeWidth:c=1,cornerRadius:u=0,onSizeUpdate:h})=>{const[f,d]=st(i),[p,g]=st(n);return ht(()=>{const n=e.Utility.textSize(t,o,r);d(n.width+2*l),g(n.height+2*l)},[t,o,r,l]),ht(()=>{h&&h({width:f,height:p})},[f,p,l,h]),X(b,{children:[X(te,{width:i,height:n,fill:_,stroke:a,strokeWidth:c,cornerRadius:u}),X("g",{transform:`translate(${-i/2+l} ${-n/2+l})`,children:X(oe,{text:t,fontFamily:o,height:r,fill:s,anchor:"start",baseline:"hanging"})})]})},"LabelledRect"),ae=i(({icon:t,iconFontFamily:e,text:n,height:i=12,width:o=12,fontFamily:r="Verdana",fontSize:l=10,padding:_=3,fill:a="whitesmoke",stroke:s="lightgray",textFill:c="black",strokeWidth:u=1,cornerRadius:h=0})=>X(b,{children:[X(te,{width:o,height:i,fill:a,stroke:s,strokeWidth:u,cornerRadius:h}),X("g",{transform:`translate(${-o/2+_} ${-i/2+_})`,children:X(ne,{shape:"square",imageFontFamily:e,imageChar:t,height:i,fill:a,imageCharFill:c})}),X("g",{transform:`translate(${-o/2+2*_+i} ${-i/2+_})`,children:X(oe,{text:n,fontFamily:r,height:l,fill:c,anchor:"start",baseline:"hanging"})})]}),"IconLabelledRect"),se=i(({label:t,labelPos:e,labelFill:n="black",labelHeight:i=12,path:o,stroke:r,strokeWidth:l,strokeDasharray:_})=>X(b,{children:[X("path",{d:o,stroke:r,style:{strokeWidth:l,strokeDasharray:_}}),t&&e&&2===e.length?X("g",{transform:`translate(${e[0]} ${e[1]})`,children:X(re,{text:t,fill:n,height:i})}):void 0]}),"Edge");function ce(t,e,n,i){q(k(t,e),n,i)}function ue(t,e,n,i){q(k("svg",null,k(t,e)),n,i)}i(ce,"render"),i(ue,"svgRender");const he=class _HTMLAdapter extends e.HTMLWidget{constructor(t){super(),this._component=t}props(t){return arguments.length?(this._props={...this._props,...t},this):this._props}prop(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)}update(t,e){super.update(t,e),ce(this._component,this._props,t)}};i(he,"HTMLAdapter");let fe=he;fe.prototype._class+=" react_HTMLAdapter",fe.prototype.publish("props",{},"object","Properties");const de=class _SVGAdapter extends e.SVGWidget{constructor(t){super(),this._component=t}props(t){return arguments.length?(this._props={...this._props,...t},this):this._props}prop(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)}update(t,e){super.update(t,e),ce(this._component,this._props,t)}};i(de,"SVGAdapter");let pe=de;pe.prototype._class+=" react_SVGAdapter",pe.prototype.publish("props",{},"object","Properties");const ge=i(({text:t})=>X("span",{children:t}),"Span"),me=i(({x:t,y:e,annotationIDs:n=[],stepSize:i=-16})=>X(b,{children:n.map((n,o)=>X("g",{transform:`translate(${t+o*i} ${e})`,children:X("use",{xlinkHref:"#"+n})},n))}),"Annotations"),xe=i(({categoryID:t="",text:e="",textHeight:n=12,textPadding:i=4,icon:o={},annotationsHeight:r=12,annotationIDs:l=[],textFill:_,textboxFill:a,textboxStroke:s,textFontFamily:c,onSizeUpdate:u,showLabel:h=!0,scale:f=1})=>{o={imageChar:"fa-question",height:32,fill:"transparent",...o};const[d,p]=st(0),[g,m]=st(0);ut(()=>{u&&u({width:0,height:0})},[d,g,u]);let x=d;x+=4;let y=-(2*o.height/6+n+8)/2;const v=o.height/3+g/2+i;let k=o.height/3+g+i+r/3;h||(y+=(n+8)/2,k-=g+i);const F=dt(t=>{p(t.width),m(t.height)},[]),b=h?X("g",{transform:`translate(0 ${v})`,children:X(le,{text:e,height:n,padding:i,onSizeUpdate:F,textFill:_,fill:a,stroke:s,fontFamily:c})}):void 0;return X("g",t?{transform:`translate(0 ${y}) scale(${f})`,children:[X("use",{xlinkHref:"#"+t}),b,X(me,{x:x/2,y:k,annotationIDs:l})]}:{transform:`translate(0 ${y}) scale(${f})`,children:[X(ne,{...o}),b]})},"Vertex"),ye=i(({categoryID:t="",text:n="",textHeight:i=12,textPadding:o=4,icon:r={},textFill:l="black",textboxFill:_="white",textboxStroke:a="black",textFontFamily:s,annotationsHeight:c=12,annotationIDs:u=[]})=>{r={imageChar:"fa-question",imageCharFill:"white",height:32,fill:"black",shape:"square",...r};const h=i+2*o,{width:f}=ft(()=>e.Utility.textSize(n,s,i,!1),[n,s,i]),d=c,p=h/2,g=-(2*r.height/6+i+8)/2,m=-r.height/2,x=Math.ceil(f/2+o),y=p-r.height/2,v=d/2,k=p;return t?X("g",{transform:`translate(0 ${g})`,children:[X("g",{transform:`translate(${m} 0)`,children:X("use",{xlinkHref:"#"+t})}),X("g",{transform:`translate(${x} ${y})`,children:X(le,{text:n,height:i,padding:o,strokeWidth:1,stroke:a,fill:_,textFill:l,fontFamily:s})}),X(me,{x:v,y:k,annotationIDs:u,stepSize:d})]}):X(b,{children:[X("g",{transform:`translate(${m} 0)scale(1.0002)`,children:X(ne,{...r,shape:"square"})}),X("g",{transform:`translate(${x} ${y})scale(1.0002)`,children:X(le,{text:n,height:i,padding:o,stroke:a,fill:_})})]})},"Vertex2"),ve=i(({text:t="",textHeight:n=10,textPadding:i=4,textFill:o="#287EC4",textboxFill:r="white",textboxStroke:l="#CCCCCC",textboxStrokeWidth:_=1,textFontFamily:a="Verdana",annotationGutter:s=2,annotations:c=[],cornerRadius:u=3,icon:h={},subText:f={text:""},showLabel:d=!0,noLabelRadius:p=5,expansionIcon:g,scale:m=1})=>{h={height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0,...h},f={text:"",fill:"white",textFill:"#555555",...f},g=g?{height:16,shape:"circle",padding:6,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"black",fill:"whitesmoke",stroke:"whitesmoke",strokeWidth:0,...g}:void 0;let x=0;const y=ft(()=>e.Utility.textSize(t,a,n,!1).width,[t,a,n]);let v=0;""!==t&&(v=y+2*i+2*_),x+=v+s;const k=x-v/2,F=n+2*i+2*_,b=[];c.forEach((t,e)=>{const n=t.imageChar;x+=F+s;const i=x-F/2;b.push(X("g",{className:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:`translate(${i} 0)`,children:X(ne,{...t,shape:"square",height:F,imageChar:n,imageFontFamily:t.imageFontFamily,cornerRadius:u,strokeWidth:0})},e))}),c.length>0&&(x+=s*(c.length-1));const C=X("g",{"data-click":"text",transform:`translate(${k} 0)`,children:d&&""!==t?X(le,{text:t,height:n,padding:i,strokeWidth:_,stroke:l,fill:r,textFill:o,fontFamily:a,cornerRadius:u}):X("circle",{r:p,stroke:l,fill:o})}),w=h.height||20,S=h.strokeWidth||0;let $=0;let R=F+2*s;""!==t||b.length>0?$=-w/2-S-F/2-2*s:""!==f.text&&(R=w/2+S+2*s);const W=""===f.text?null:X("g",{"data-click":"subtext",transform:`translate(0 ${R})`,children:X(le,{fill:f.fill||"#FFFFFF",textFill:f.textFill||o,...f,height:n,padding:i,strokeWidth:0,stroke:l,fontFamily:a,cornerRadius:u})});return X("g",{transform:`scale(${m})`,children:[X("g",{"data-click":"icon",transform:`translate(0 ${$})`,children:[X(ne,{...h}),g&&X("g",{"data-click":"expanded-icon","data-click-data":JSON.stringify(g),transform:`translate(${(h.height+S)/2-g.height/2} ${-(h.height+S)/2+g.height/2})`,children:X(ne,{...g})})]}),X("g",{transform:`translate(${-x/2} 0)`,children:[C,b]}),W]})},"Vertex3"),ke=i(function({id:t,categoryID:e="",text:n="",textHeight:i=12,textPadding:o=10,textFill:r="#287EC4",textboxFill:l="white",textboxStroke:_="#CCCCCC",textboxStrokeWidth:a=1,textFontFamily:s="Verdana",annotationGutter:c=2,annotations:u=[],cornerRadius:h,icon:f={},subText:d={},expansionIcon:p,scale:g=1}){f={height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15,...f},d={text:"",fill:"transparent",textFill:"#555555",...d};return X(ve,{...{id:t,categoryID:e,text:n,textHeight:i,textPadding:o,textFill:r,textboxFill:l,textboxStroke:_,textboxStrokeWidth:a,textFontFamily:s,annotationGutter:c,annotations:u,cornerRadius:h,icon:f,subText:d,expansionIcon:p,scale:g},icon:f,subText:d})},"CentroidVertex3"),Fe=i(({categoryID:t="",text:n="",textHeight:i=10,textPadding:o=4,textFill:r="#287EC4",textboxFill:l="white",textboxStroke:_="#CCCCCC",textboxStrokeWidth:a=1,textFontFamily:s="Verdana",annotationGutter:c=2,annotations:u=[],iconAnnotations:h=[],cornerRadius:f=3,icon:d={},subText:p={},showLabel:g=!0,noLabelRadius:m=5,iconBorderWidth:x=1,iconBorderColor:y="#333",iconBackgroundColor:v="#fff",iconFontColor:k="#000",iconFontSize:F=20,iconFontFamily:b="FontAwesome",shapeOffsetX:C=0,shapeOffsetY:w=0,iconOffsetX:S=0,iconOffsetY:$=0,iconPadding:R=4,iconText:W="?",shapeRendering:P="auto"})=>{d={height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0,...d},p={text:"",fill:"white",textFill:"#555555",...p};const H=ft(()=>e.Utility.textSize(n,s,i,!1).width,[n,s,i]);let O=0;""!==n&&(O=H+2*o+2*a);let A=O+c;const T=A-O/2,U=i+2*c+2*a,N=u.map(t=>e.Utility.textSize(t.imageChar,t.imageFontFamily,t.height,!1).width),D=[];let I=A;u.forEach((t,e)=>{const n=t.imageChar,i=t.height??U;I+=N[e]+c;const o=I-N[e]/2;D.push(X("g",{className:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:`translate(${o} 0)`,children:X(ne,{...t,shape:"rectangle",width:N[e],height:i,imageChar:n,imageFontFamily:t.imageFontFamily,cornerRadius:f,strokeWidth:0})},e))}),u.length>0&&(A+=c*(u.length-1));const V=[];h.forEach((t,e)=>{const n=t.shapeOffsetX,i=t.shapeOffsetY;V.push(X("g",{className:"vertex3-iconAnno","data-click":"icon-annotation","data-click-data":JSON.stringify(t),transform:`translate(${n} ${i})`,children:X(ne,{...t,shape:t.shape??"square",imageChar:t.imageChar,imageFontFamily:t.imageFontFamily,cornerRadius:f,stroke:t.stroke,strokeWidth:t.strokeWidth})},e))});const L=X("g",{"data-click":"text",transform:`translate(${T} 0)`,children:g&&""!==n?X(le,{text:n,height:i,padding:o,strokeWidth:a,stroke:_,fill:l,textFill:r,fontFamily:s,cornerRadius:f}):X("circle",{r:m,stroke:_,fill:r})}),E=U+2*c,z=""===p.text?null:X("g",{"data-click":"subtext",transform:`translate(0 ${E})`,children:X(le,{fill:p.fill||"#FFFFFF",textFill:p.textFill||r,...p,height:i,padding:o,strokeWidth:0,stroke:_,fontFamily:s,cornerRadius:f})});return X("g",{children:[X("g",{"data-click":"icon",transform:`translate(${C} ${w})`,children:[X(ne,{...d,strokeWidth:x,shape:"circle",height:F,fill:v,stroke:y,imageFontFamily:b,imageChar:W,imageCharFill:k,padding:R,xOffset:S,yOffset:$,cornerRadius:f,shapeRendering:P}),V]}),X("g",{transform:`translate(${-A/2} 0)`,children:[L,D]}),z]})},"Vertex4"),be=i(function({id:t,categoryID:e="",text:n="",textHeight:i=12,textPadding:o=10,textFill:r="#287EC4",textboxFill:l="white",textboxStroke:_="#CCCCCC",textboxStrokeWidth:a=1,textFontFamily:s="Verdana",annotationGutter:c=2,annotations:u=[],iconAnnotations:h=[],cornerRadius:f,icon:d={},subText:p={},showLabel:g=!0,noLabelRadius:m=5,iconBorderWidth:x=1,iconBorderColor:y="#333",iconBackgroundColor:v="#fff",iconFontColor:k="#000",iconFontSize:F=20,iconFontFamily:b="FontAwesome",shapeOffsetX:C=0,shapeOffsetY:w=0,iconOffsetX:S=0,iconOffsetY:$=0,iconPadding:R=4,iconText:W="?",shapeRendering:P="auto"}){d={height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15,...d},p={text:"",fill:"transparent",textFill:"#555555",...p};return X(Fe,{...{id:t,categoryID:e,text:n,textHeight:i,textPadding:o,textFill:r,textboxFill:l,textboxStroke:_,textboxStrokeWidth:a,textFontFamily:s,annotationGutter:c,annotations:u,iconAnnotations:h,cornerRadius:f,icon:d,subText:p,showLabel:g,noLabelRadius:m,iconBorderWidth:x,iconBorderColor:y,iconBackgroundColor:v,iconFontColor:k,iconFontSize:F,iconFontFamily:b,shapeOffsetX:C,shapeOffsetY:w,iconOffsetX:S,iconOffsetY:$,iconPadding:R,iconText:W,shapeRendering:P},icon:d,subText:p})},"CentroidVertex4"),Ce=i(({text:t,width:n=100,height:i=100,fill:o="transparent",stroke:r="black",fontHeight:l=12,fontFamily:_})=>{const a=e.Utility.textSize(t,_,l,!1);return X(b,{children:[X(te,{width:n,height:i,fill:o,stroke:r}),X("g",{transform:`translate(${(-n+a.width)/2+4} ${(-i+a.height)/2+4})`,children:X(re,{height:l,text:t,fontFamily:_})})]})},"Subgraph");t.Annotations=me,t.BUILD_VERSION="3.21.0",t.CentroidVertex3=ke,t.CentroidVertex4=be,t.Circle=Zt,t.Edge=se,t.HTMLAdapter=fe,t.Icon=ne,t.IconLabelledRect=ae,t.Icons=ie,t.Image=Jt,t.ImageChar=Kt,t.LabelledRect=_e,t.PKG_NAME="@hpcc-js/react",t.PKG_VERSION="3.4.11",t.React=Yt,t.Rectangle=te,t.SVGAdapter=pe,t.Shape=ee,t.Span=ge,t.Square=Qt,t.Subgraph=Ce,t.Text=re,t.TextBox=le,t.TextLine=oe,t.Vertex=xe,t.Vertex2=ye,t.Vertex3=ve,t.Vertex4=Fe,t.render=ce,t.svgRender=ue,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
2
2
  //# sourceMappingURL=index.umd.cjs.map