UNPKG

@hpcc-js/react

Version:
3 lines (2 loc) 35.8 kB
!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,x={},y=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,k=Array.isArray;function F(t,e){for(var n in e)t[n]=e[n];return t}function b(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function C(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 w(t,_,i,r,null)}function w(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 S(t){return t.children}function $(t,e){this.props=t,this.context=e}function R(t,e){if(null==e)return t.__?R(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?R(t):null}function W(t){if(t.__P&&t.__d){var e=t.__v,n=e.__e,i=[],o=[],l=F({},e);l.__v=e.__v+1,r.vnode&&r.vnode(l),E(t.__P,l,e,t.__n,t.__P.namespaceURI,32&e.__u?[n]:null,i,null==n?R(e):n,!!(32&e.__u),o),l.__v=e.__v,l.__.__k[l.__i]=l,M(i,l,o),e.__e=e.__=null,l.__e!=n&&P(l)}}function P(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}),P(t)}function H(t){(!t.__d&&(t.__d=!0)&&_.push(t)&&!O.__r++||a!=r.debounceRendering)&&((a=r.debounceRendering)||s)(O)}function O(){try{for(var t,e=1;_.length;)_.length>e&&_.sort(c),t=_.shift(),e=_.length,W(t)}finally{_.length=O.__r=0}}function A(t,e,n,i,o,r,l,_,a,s,c){var u,h,f,d,p,g,m,v=i&&i.__k||y,k=e.length;for(a=T(n,e,v,a,k),u=0;u<k;u++)null!=(f=n.__k[u])&&(h=-1!=f.__i&&v[f.__i]||x,f.__i=u,g=E(t,f,h,o,r,l,_,a,s,c),d=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&q(h.ref,null,f),c.push(f.ref,f.__c||d,f)),null==p&&null!=d&&(p=d),(m=!!(4&f.__u))||h.__k===f.__k?(a=U(f,a,t,m),m&&h.__e&&(h.__e=null)):"function"==typeof f.type&&void 0!==g?a=g:d&&(a=d.nextSibling),f.__u&=-7);return n.__e=p,a}function T(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]=w(null,l,null,null,null):k(l)?l=t.__k[r]=w(S,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?l=t.__k[r]=w(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=D(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=R(_)),G(_,_));return i}function U(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=U(o[r],e,n,i));return e}t.__e!=e&&(i&&(e&&t.type&&!e.parentNode&&(e=R(t)),n.insertBefore(t.__e,e||null)),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function N(t,e){return e=e||[],null==t||"boolean"==typeof t||(k(t)?t.some(function(t){N(t,e)}):e.push(t)),e}function D(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 I(t,e,n){"-"==e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||v.test(e)?n:n+"px"}function V(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||I(t.style,e,"");if(n)for(e in n)i&&n[e]==i[e]||I(t.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])r=e!=(e=e.replace(d,"$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[f]=i[f]:(n[f]=p,t.addEventListener(e,r?m:g,r)):t.removeEventListener(e,r?m:g,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 L(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e[h])e[h]=p++;else if(e[h]<n[f])return;return n(r.event?r.event(e):e)}}}function E(t,e,n,i,o,l,_,a,s,c){var u,h,f,d,p,g,m,x,v,C,w,R,W,P,H,O=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 O)try{if(x=e.props,v=O.prototype&&O.prototype.render,C=(u=O.contextType)&&i[u.__c],w=u?C?C.props.value:u.__:i,n.__c?m=(h=e.__c=n.__c).__=h.__E:(v?e.__c=h=new O(x,w):(e.__c=h=new $(x,w),h.constructor=O,h.render=X),C&&C.sub(h),h.state||(h.state={}),h.__n=i,f=h.__d=!0,h.__h=[],h._sb=[]),v&&null==h.__s&&(h.__s=h.state),v&&null!=O.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=F({},h.__s)),F(h.__s,O.getDerivedStateFromProps(x,h.__s))),d=h.props,p=h.state,h.__v=e,f)v&&null==O.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),v&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(v&&null==O.getDerivedStateFromProps&&x!==d&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(x,w),e.__v==n.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(x,h.__s,w)){e.__v!=n.__v&&(h.props=x,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(t){t&&(t.__=e)}),y.push.apply(h.__h,h._sb),h._sb=[],h.__h.length&&_.push(h);break t}null!=h.componentWillUpdate&&h.componentWillUpdate(x,h.__s,w),v&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(d,p,g)})}if(h.context=w,h.props=x,h.__P=t,h.__e=!1,R=r.__r,W=0,v)h.state=h.__s,h.__d=!1,R&&R(e),u=h.render(h.props,h.state,h.context),y.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=F(F({},i),h.getChildContext())),v&&!f&&null!=h.getSnapshotBeforeUpdate&&(g=h.getSnapshotBeforeUpdate(d,p)),P=null!=u&&u.type===S&&null==u.key?B(u.props.children):u,a=A(t,k(P)?P:[P],e,n,i,o,l,_,a,s,c),h.base=e.__e,e.__u&=-161,h.__h.length&&_.push(h),m&&(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(H=l.length;H--;)b(l[H]);z(e)}else e.__e=n.__e,e.__k=n.__k,T.then||z(e);r.__e(T,e,n)}else null==l&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):a=e.__e=j(n.__e,e,n,i,o,l,_,s,c);return(u=r.diffed)&&u(e),128&e.__u?void 0:a}function z(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(z))}function M(t,e,n){for(var i=0;i<n.length;i++)q(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 B(t){return"object"!=typeof t||null==t||t.__b>0?t:k(t)?t.map(B):F({},t)}function j(t,e,n,i,l,_,a,s,c){var u,h,f,d,p,g,m,y=n.props||x,v=e.props,F=e.type;if("svg"==F?l="http://www.w3.org/2000/svg":"math"==F?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=_)for(u=0;u<_.length;u++)if((p=_[u])&&"setAttribute"in p==!!F&&(F?p.localName==F:3==p.nodeType)){t=p,_[u]=null;break}if(null==t){if(null==F)return document.createTextNode(v);t=document.createElementNS(l,F,v.is&&v),s&&(r.__m&&r.__m(e,_),s=!1),_=null}if(null==F)y===v||s&&t.data==v||(t.data=v);else{if(_=_&&o.call(t.childNodes),!s&&null!=_)for(y={},u=0;u<t.attributes.length;u++)y[(p=t.attributes[u]).name]=p.value;for(u in y)p=y[u],"dangerouslySetInnerHTML"==u?f=p:"children"==u||u in v||"value"==u&&"defaultValue"in v||"checked"==u&&"defaultChecked"in v||V(t,u,null,p,l);for(u in v)p=v[u],"children"==u?d=p:"dangerouslySetInnerHTML"==u?h=p:"value"==u?g=p:"checked"==u?m=p:s&&"function"!=typeof p||y[u]===p||V(t,u,p,y[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=""),A("template"==e.type?t.content:t,k(d)?d:[d],e,n,i,"foreignObject"==F?"http://www.w3.org/1999/xhtml":l,_,a,_?_[0]:n.__k&&R(n,0),s,c),null!=_)for(u=_.length;u--;)b(_[u]);s||(u="value","progress"==F&&null==g?t.removeAttribute("value"):null!=g&&(g!==t[u]||"progress"==F&&!g||"option"==F&&g!=y[u])&&V(t,u,g,y[u],l),u="checked",null!=m&&m!=t[u]&&V(t,u,m,y[u],l))}return t}function q(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 G(t,e,n){var i,o;if(r.unmount&&r.unmount(t),(i=t.ref)&&(i.current&&i.current!=t.__e||q(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]&&G(i[o],e,n||"function"!=typeof t.type);n||b(t.__e),t.__c=t.__=t.__e=void 0}function X(t,e,n){return this.constructor(t,n)}function Y(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=[],E(e,t=(!i&&n||e).__k=C(S,null,[t]),l||x,x,e.namespaceURI,!i&&n?[n]:l?null:e.firstChild?o.call(e.childNodes):null,_,!i&&n?n:l?l.__e:e.firstChild,i,a),M(_,t,a)}i(F,"m$1"),i(b,"b"),i(C,"k$1"),i(w,"x"),i(S,"S"),i($,"C$1"),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"),i(D,"O$1"),i(I,"z$1"),i(V,"N"),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"),i(G,"K$1"),i(X,"Q$1"),i(Y,"R"),o=y.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,$.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=F({},this.state),"function"==typeof t&&(t=t(F({},n),this.props)),t&&F(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),H(this))},$.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),H(this))},$.prototype.render=S,_=[],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"),O.__r=0,u=Math.random().toString(8),h="__d"+u,f="__a"+u,d=/(PointerCapture)$|Capture$/i,p=0,g=L(!1),m=L(!0);var J=0;function K(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:--J,__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(K,"u$1");var Z,Q,tt,et,nt=0,it=[],ot=r,rt=ot.__b,lt=ot.__r,_t=ot.diffed,at=ot.__c,st=ot.unmount,ct=ot.__;function ut(t,e){ot.__h&&ot.__h(Q,t,nt||e),nt=0;var n=Q.__H||(Q.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function ht(t){return nt=1,ft(Ct,t)}function ft(t,e,n){var o=ut(Z++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):Ct(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=Q,!Q.__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");Q.__f=!0;var l=Q.shouldComponentUpdate,_=Q.componentWillUpdate;Q.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)},Q.shouldComponentUpdate=r}return o.__N||o.__}function dt(t,e){var n=ut(Z++,3);!ot.__s&&bt(n.__H,e)&&(n.__=t,n.u=e,Q.__H.__h.push(n))}function pt(t,e){var n=ut(Z++,4);!ot.__s&&bt(n.__H,e)&&(n.__=t,n.u=e,Q.__h.push(n))}function gt(t,e){var n=ut(Z++,7);return bt(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function mt(t,e){return nt=8,gt(function(){return t},e)}function xt(){for(var t;t=it.shift();){var e=t.__H;if(t.__P&&e)try{e.__h.some(kt),e.__h.some(Ft),e.__h=[]}catch(n){e.__h=[],ot.__e(n,t.__v)}}}i(ut,"p"),i(ht,"d"),i(ft,"h"),i(dt,"y"),i(pt,"_"),i(gt,"T$1"),i(mt,"q$1"),i(xt,"j$1"),ot.__b=function(t){Q=null,rt&&rt(t)},ot.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),ct&&ct(t,e)},ot.__r=function(t){lt&&lt(t),Z=0;var e=(Q=t.__c).__H;e&&(tt===Q?(e.__h=[],Q.__h=[],e.__.some(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(e.__h.some(kt),e.__h.some(Ft),e.__h=[],Z=0)),tt=Q},ot.diffed=function(t){_t&&_t(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==it.push(e)&&et===ot.requestAnimationFrame||((et=ot.requestAnimationFrame)||vt)(xt)),e.__H.__.some(function(t){t.u&&(t.__H=t.u),t.u=void 0})),tt=Q=null},ot.__c=function(t,e){e.some(function(t){try{t.__h.some(kt),t.__h=t.__h.filter(function(t){return!t.__||Ft(t)})}catch(n){e.some(function(t){t.__h&&(t.__h=[])}),e=[],ot.__e(n,t.__v)}}),at&&at(t,e)},ot.unmount=function(t){st&&st(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.some(function(t){try{kt(t)}catch(n){e=n}}),n.__H=void 0,e&&ot.__e(e,n.__v))};var yt="function"==typeof requestAnimationFrame;function vt(t){var e,n=i(function(){clearTimeout(o),yt&&cancelAnimationFrame(e),setTimeout(t)},"r"),o=setTimeout(n,35);yt&&(e=requestAnimationFrame(n))}function kt(t){var e=Q,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),Q=e}function Ft(t){var e=Q;t.__c=t.__(),Q=e}function bt(t,e){return!t||t.length!==e.length||e.some(function(e,n){return e!==t[n]})}function Ct(t,e){return"function"==typeof e?e(t):e}function wt(t,e){for(var n in e)t[n]=e[n];return t}function St(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 $t(t,e){this.props=t,this.context=e}i(vt,"w"),i(kt,"z"),i(Ft,"B$1"),i(bt,"C"),i(Ct,"D"),i(wt,"g"),i(St,"E"),i($t,"M"),($t.prototype=new $).isPureReactComponent=!0,$t.prototype.shouldComponentUpdate=function(t,e){return St(this.props,t)||St(this.state,e)};var Rt=r.__b;r.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Rt&&Rt(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 Pt=r.unmount;function Ht(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=wt({},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 Ht(t,e,n)})),t}function Ot(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return Ot(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 At(){this.__u=0,this.o=null,this.__b=null}function Tt(t){var e=t.__&&t.__.__c;return e&&e.__a&&e.__a(t)}function Ut(){this.i=null,this.l=null}i(Ht,"V"),i(Ot,"W"),i(At,"P"),i(Tt,"j"),i(Ut,"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),Pt&&Pt(t)},(At.prototype=new $).__c=function(t,e){var n=e.__c,o=this;null==o.o&&(o.o=[]),o.o.push(n);var r=Tt(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]=Ot(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(_,_)},At.prototype.componentWillUnmount=function(){this.o=[]},At.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]=Ht(this.__b,n,i.__O=i.__P)}this.__b=null}var o=e.__a&&C(S,null,t.fallback);return o&&(o.__u&=-33),[C(S,null,e.__a?null:t.children),o]};var Nt=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");(Ut.prototype=new $).__a=function(t){var e=this,n=Tt(e.__v),o=e.l.get(t);return o[0]++,function(r){var l=i(function(){e.props.revealOrder?(o.push(r),Nt(e,t,o)):r()},"o");n?n(l):l()}},Ut.prototype.render=function(t){this.i=null,this.l=new Map;var e=N(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},Ut.prototype.componentDidUpdate=Ut.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,n){Nt(t,n,e)})};var Dt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,It=/^(?: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]/,Vt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Lt=/[A-Z0-9]/g,Et="undefined"!=typeof document,zt=i(function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)},"X");$.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty($.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 Mt=r.event;r.event=function(t){return Mt&&(t=Mt(t)),t.persist=function(){},t.isPropagationStopped=function(){return this.cancelBubble},t.isDefaultPrevented=function(){return this.defaultPrevented},t.nativeEvent=t};var Bt={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||Et&&"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||zt(e.type)?"onfocus"===_?r="onfocusin":"onblur"===_?r="onfocusout":Vt.test(r)&&(r=_):_=r="oninput":o&&It.test(r)?r=r.replace(Lt,"-$&").toLowerCase():null===l&&(l=void 0),"oninput"===_&&i[r=_]&&(r="oninputCapture"),i[r]=l}}"select"==n&&(i.multiple&&Array.isArray(i.value)&&(i.value=N(e.children).forEach(function(t){t.props.selected=-1!=i.value.indexOf(t.props.value)})),null!=i.defaultValue&&(i.value=N(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=Dt,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&&(Y(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,"pn");const Yt=Object.freeze(Object.defineProperty({__proto__:null,Component:$,Fragment:S,createElement:C,h:C,render:Y,unmountComponentAtNode:Xt,useCallback:mt,useEffect:dt,useLayoutEffect:pt,useMemo:gt,useReducer:ft,useState:ht},Symbol.toStringTag,{value:"Module"})),Jt=i(({href:t,x:e,y:n=0,height:i=12})=>K("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=gt(()=>"FontAwesome"===l?e.Utility.faChar(_):_,[_,l]);return K("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})=>K("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})=>K("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})=>K("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 K(Qt,{radius:e/2,fill:i,stroke:o,strokeWidth:r,shapeRendering:l,cornerRadius:_});case"rectangle":return K(te,{width:n??e,height:e,fill:i,stroke:o,strokeWidth:r,shapeRendering:l,cornerRadius:_});default:return K(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})=>K(S,{children:[K(ee,{shape:t,width:n,height:i,fill:o,stroke:r,strokeWidth:l,shapeRendering:p,cornerRadius:d}),_?K(Jt,{href:_,x:h,y:f,height:i-u}):K(Kt,{x:h,y:f,height:i-u,fontFamily:a,char:s,fill:c,fontWeight:400})]}),"Icon"),ie=i(({icons:t=[]})=>K(S,{children:t.map(t=>K("g",{id:t.id,children:K(ne,{...t})},t.id))}),"Icons"),oe=i(({text:t,height:e=12,anchor:n="middle",baseline:i="middle",fontFamily:o="Verdana",fill:r="black"})=>K("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,_]=ht(0),[a,s]=ht(0);dt(()=>{r&&r({width:l,height:a})},[l,a,r]);const c=gt(()=>t.split("\n"),[t]);pt(()=>{const t=e.Utility.textSize(c,i,n);_(t.width),s(t.height)},[i,n,c]);return K("g",{children:gt(()=>{const t=-a/2+n/2;return c.map((e,r)=>K("g",{transform:`translate(0 ${t+r*(n+2)})`,children:K(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]=ht(0),[h,f]=ht(0);dt(()=>{s&&s({width:c,height:h})},[c,h,s]);const d=mt(t=>{u(t.width),f(t.height)},[]),p=c+2*i+_,g=h+2*i+_,m=Math.floor(e/10);return K(S,{children:[K(te,{width:p,height:g,fill:o,stroke:r,strokeWidth:_,cornerRadius:a}),K("g",{transform:`translate(0 ${m})`,children:K(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]=ht(i),[p,g]=ht(n);return pt(()=>{const n=e.Utility.textSize(t,o,r);d(n.width+2*l),g(n.height+2*l)},[t,o,r,l]),pt(()=>{h&&h({width:f,height:p})},[f,p,l,h]),K(S,{children:[K(te,{width:i,height:n,fill:_,stroke:a,strokeWidth:c,cornerRadius:u}),K("g",{transform:`translate(${-i/2+l} ${-n/2+l})`,children:K(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})=>K(S,{children:[K(te,{width:o,height:i,fill:a,stroke:s,strokeWidth:u,cornerRadius:h}),K("g",{transform:`translate(${-o/2+_} ${-i/2+_})`,children:K(ne,{shape:"square",imageFontFamily:e,imageChar:t,height:i,fill:a,imageCharFill:c})}),K("g",{transform:`translate(${-o/2+2*_+i} ${-i/2+_})`,children:K(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:_})=>K(S,{children:[K("path",{d:o,stroke:r,style:{strokeWidth:l,strokeDasharray:_}}),t&&e&&2===e.length?K("g",{transform:`translate(${e[0]} ${e[1]})`,children:K(re,{text:t,fill:n,height:i})}):void 0]}),"Edge");function ce(t,e,n,i){Y(C(t,e),n,i)}function ue(t,e,n,i){Y(C("svg",null,C(t,e)),n,i)}i(ce,"render"),i(ue,"svgRender");const he=class _HTMLAdapter extends e.HTMLWidget{constructor(t){super(),this._component=t}_component;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}_component;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})=>K("span",{children:t}),"Span"),me=i(({x:t,y:e,annotationIDs:n=[],stepSize:i=-16})=>K(S,{children:n.map((n,o)=>K("g",{transform:`translate(${t+o*i} ${e})`,children:K("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]=ht(0),[g,m]=ht(0);dt(()=>{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=mt(t=>{p(t.width),m(t.height)},[]),b=h?K("g",{transform:`translate(0 ${v})`,children:K(le,{text:e,height:n,padding:i,onSizeUpdate:F,textFill:_,fill:a,stroke:s,fontFamily:c})}):void 0;return K("g",t?{transform:`translate(0 ${y}) scale(${f})`,children:[K("use",{xlinkHref:"#"+t}),b,K(me,{x:x/2,y:k,annotationIDs:l})]}:{transform:`translate(0 ${y}) scale(${f})`,children:[K(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}=gt(()=>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?K("g",{transform:`translate(0 ${g})`,children:[K("g",{transform:`translate(${m} 0)`,children:K("use",{xlinkHref:"#"+t})}),K("g",{transform:`translate(${x} ${y})`,children:K(le,{text:n,height:i,padding:o,strokeWidth:1,stroke:a,fill:_,textFill:l,fontFamily:s})}),K(me,{x:v,y:k,annotationIDs:u,stepSize:d})]}):K(S,{children:[K("g",{transform:`translate(${m} 0)scale(1.0002)`,children:K(ne,{...r,shape:"square"})}),K("g",{transform:`translate(${x} ${y})scale(1.0002)`,children:K(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=gt(()=>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(K("g",{className:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:`translate(${i} 0)`,children:K(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=K("g",{"data-click":"text",transform:`translate(${k} 0)`,children:d&&""!==t?K(le,{text:t,height:n,padding:i,strokeWidth:_,stroke:l,fill:r,textFill:o,fontFamily:a,cornerRadius:u}):K("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:K("g",{"data-click":"subtext",transform:`translate(0 ${R})`,children:K(le,{fill:f.fill||"#FFFFFF",textFill:f.textFill||o,...f,height:n,padding:i,strokeWidth:0,stroke:l,fontFamily:a,cornerRadius:u})});return K("g",{transform:`scale(${m})`,children:[K("g",{"data-click":"icon",transform:`translate(0 ${$})`,children:[K(ne,{...h}),g&&K("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:K(ne,{...g})})]}),K("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 K(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=gt(()=>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(K("g",{className:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:`translate(${o} 0)`,children:K(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(K("g",{className:"vertex3-iconAnno","data-click":"icon-annotation","data-click-data":JSON.stringify(t),transform:`translate(${n} ${i})`,children:K(ne,{...t,shape:t.shape??"square",imageChar:t.imageChar,imageFontFamily:t.imageFontFamily,cornerRadius:f,stroke:t.stroke,strokeWidth:t.strokeWidth})},e))});const L=K("g",{"data-click":"text",transform:`translate(${T} 0)`,children:g&&""!==n?K(le,{text:n,height:i,padding:o,strokeWidth:a,stroke:_,fill:l,textFill:r,fontFamily:s,cornerRadius:f}):K("circle",{r:m,stroke:_,fill:r})}),E=U+2*c,z=""===p.text?null:K("g",{"data-click":"subtext",transform:`translate(0 ${E})`,children:K(le,{fill:p.fill||"#FFFFFF",textFill:p.textFill||r,...p,height:i,padding:o,strokeWidth:0,stroke:_,fontFamily:s,cornerRadius:f})});return K("g",{children:[K("g",{"data-click":"icon",transform:`translate(${C} ${w})`,children:[K(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]}),K("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 K(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 K(S,{children:[K(te,{width:n,height:i,fill:o,stroke:r}),K("g",{transform:`translate(${(-n+a.width)/2+4} ${(-i+a.height)/2+4})`,children:K(re,{height:l,text:t,fontFamily:_})})]})},"Subgraph");t.Annotations=me,t.BUILD_VERSION="3.21.4",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.14",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"})}); //# sourceMappingURL=index.umd.cjs.map