@hpcc-js/react 3.4.20 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("@hpcc-js/common")):typeof define==`function`&&define.amd?define([`exports`,`@hpcc-js/common`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`@hpcc-js/react`]={},e[`@hpcc-js/common`]))})(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=Object.defineProperty,__name=(e,t)=>n(e,`name`,{value:t,configurable:!0}),__exportAll=(e,t)=>{let a={};for(var s in e)n(a,s,{get:e[s],enumerable:!0});return t||n(a,Symbol.toStringTag,{value:`Module`}),a},a=`@hpcc-js/react`,s=`3.4.20`,l=`3.25.1`,m,v,T,O,k,A,U,G,K,q,J,ee,Y,Z,te={},ne=[],re=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ie=Array.isArray;function m$1(e,t){for(var n in t)e[n]=t[n];return e}__name(m$1,`m`);function b(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function k$1(e,t,n){var a,s,l,v={};for(l in t)l==`key`?a=t[l]:l==`ref`?s=t[l]:v[l]=t[l];if(arguments.length>2&&(v.children=arguments.length>3?m.call(arguments,2):n),typeof e==`function`&&e.defaultProps!=null)for(l in e.defaultProps)v[l]===void 0&&(v[l]=e.defaultProps[l]);return x(e,v,a,s,null)}__name(k$1,`k`);function x(e,t,n,a,s){var l={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++T,__i:-1,__u:0};return s==null&&v.vnode!=null&&v.vnode(l),l}function S(e){return e.children}function C$1(e,t){this.props=e,this.context=t}__name(C$1,`C`);function $(e,t){if(t==null)return e.__?$(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?$(e):null}function I(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,a=[],s=[],l=m$1({},t);l.__v=t.__v+1,v.vnode&&v.vnode(l),q$2(e.__P,l,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,a,n??$(t),!!(32&t.__u),s),l.__v=t.__v,l.__.__k[l.__i]=l,D$1(a,l,s),t.__e=t.__=null,l.__e!=n&&P$1(l)}}function P$1(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),P$1(e)}__name(P$1,`P`);function A$1(e){(!e.__d&&(e.__d=!0)&&O.push(e)&&!H$1.__r++||k!=v.debounceRendering)&&((k=v.debounceRendering)||A)(H$1)}__name(A$1,`A`);function H$1(){try{for(var e,t=1;O.length;)O.length>t&&O.sort(U),e=O.shift(),t=O.length,I(e)}finally{O.length=H$1.__r=0}}__name(H$1,`H`);function L(e,t,n,a,s,l,m,v,T,O,k){var A,U,G,K,q,J,ee,Y=a&&a.__k||ne,Z=t.length;for(T=T$2(n,t,Y,T,Z),A=0;A<Z;A++)(G=n.__k[A])!=null&&(U=G.__i!=-1&&Y[G.__i]||te,G.__i=A,J=q$2(e,G,U,s,l,m,v,T,O,k),K=G.__e,G.ref&&U.ref!=G.ref&&(U.ref&&J$1(U.ref,null,G),k.push(G.ref,G.__c||K,G)),q==null&&K!=null&&(q=K),(ee=!!(4&G.__u))||U.__k===G.__k?(T=j$2(G,T,e,ee),ee&&U.__e&&(U.__e=null)):typeof G.type==`function`&&J!==void 0?T=J:K&&(T=K.nextSibling),G.__u&=-7);return n.__e=q,T}function T$2(e,t,n,a,s){var l,m,v,T,O,k=n.length,A=k,U=0;for(e.__k=Array(s),l=0;l<s;l++)(m=t[l])!=null&&typeof m!=`boolean`&&typeof m!=`function`?(typeof m==`string`||typeof m==`number`||typeof m==`bigint`||m.constructor==String?m=e.__k[l]=x(null,m,null,null,null):ie(m)?m=e.__k[l]=x(S,{children:m},null,null,null):m.constructor===void 0&&m.__b>0?m=e.__k[l]=x(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):e.__k[l]=m,T=l+U,m.__=e,m.__b=e.__b+1,v=null,(O=m.__i=O$1(m,n,T,A))!=-1&&(A--,(v=n[O])&&(v.__u|=2)),v==null||v.__v==null?(O==-1&&(s>k?U--:s<k&&U++),typeof m.type!=`function`&&(m.__u|=4)):O!=T&&(O==T-1?U--:O==T+1?U++:(O>T?U--:U++,m.__u|=4))):e.__k[l]=null;if(A)for(l=0;l<k;l++)(v=n[l])!=null&&!(2&v.__u)&&(v.__e==a&&(a=$(v)),K$1(v,v));return a}__name(T$2,`T`);function j$2(e,t,n,a){var s,l;if(typeof e.type==`function`){for(s=e.__k,l=0;s&&l<s.length;l++)s[l]&&(s[l].__=e,t=j$2(s[l],t,n,a));return t}e.__e!=t&&(a&&(t&&e.type&&!t.parentNode&&(t=$(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}__name(j$2,`j`);function F(e,t){return t||=[],e==null||typeof e==`boolean`||(ie(e)?e.some(function(e){F(e,t)}):t.push(e)),t}function O$1(e,t,n,a){var s,l,m,v=e.key,T=e.type,O=t[n],k=O!=null&&(2&O.__u)==0;if(O===null&&v==null||k&&v==O.key&&T==O.type)return n;if(a>+!!k){for(s=n-1,l=n+1;s>=0||l<t.length;)if((O=t[m=s>=0?s--:l++])!=null&&!(2&O.__u)&&v==O.key&&T==O.type)return m}return-1}__name(O$1,`O`);function z$1(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||re.test(t)?n:n+`px`}__name(z$1,`z`);function N(e,t,n,a,s){var l,m;n:if(t==`style`)if(typeof n==`string`)e.style.cssText=n;else{if(typeof a==`string`&&(e.style.cssText=a=``),a)for(t in a)n&&t in n||z$1(e.style,t,``);if(n)for(t in n)a&&n[t]==a[t]||z$1(e.style,t,n[t])}else if(t[0]==`o`&&t[1]==`n`)l=t!=(t=t.replace(J,`$1`)),m=t.toLowerCase(),t=m in e||t==`onFocusOut`||t==`onFocusIn`?m.slice(2):t.slice(2),e.l||={},e.l[t+l]=n,n?a?n[q]=a[q]:(n[q]=ee,e.addEventListener(t,l?Z:Y,l)):e.removeEventListener(t,l?Z:Y,l);else{if(s==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function V$1(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t[K]==null)t[K]=ee++;else if(t[K]<n[q])return;return n(v.event?v.event(t):t)}}}__name(V$1,`V`);function q$2(e,t,n,a,s,l,m,T,O,k){var A,U,G,K,q,J,ee,Y,Z,te,re,ae,Q,oe,se,ce=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(O=!!(32&n.__u),l=[T=t.__e=n.__e]),(A=v.__b)&&A(t);n:if(typeof ce==`function`)try{if(Y=t.props,Z=ce.prototype&&ce.prototype.render,te=(A=ce.contextType)&&a[A.__c],re=A?te?te.props.value:A.__:a,n.__c?ee=(U=t.__c=n.__c).__=U.__E:(Z?t.__c=U=new ce(Y,re):(t.__c=U=new C$1(Y,re),U.constructor=ce,U.render=Q$1),te&&te.sub(U),U.state||={},U.__n=a,G=U.__d=!0,U.__h=[],U._sb=[]),Z&&U.__s==null&&(U.__s=U.state),Z&&ce.getDerivedStateFromProps!=null&&(U.__s==U.state&&(U.__s=m$1({},U.__s)),m$1(U.__s,ce.getDerivedStateFromProps(Y,U.__s))),K=U.props,q=U.state,U.__v=t,G)Z&&ce.getDerivedStateFromProps==null&&U.componentWillMount!=null&&U.componentWillMount(),Z&&U.componentDidMount!=null&&U.__h.push(U.componentDidMount);else{if(Z&&ce.getDerivedStateFromProps==null&&Y!==K&&U.componentWillReceiveProps!=null&&U.componentWillReceiveProps(Y,re),t.__v==n.__v||!U.__e&&U.shouldComponentUpdate!=null&&!1===U.shouldComponentUpdate(Y,U.__s,re)){t.__v!=n.__v&&(U.props=Y,U.state=U.__s,U.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),ne.push.apply(U.__h,U._sb),U._sb=[],U.__h.length&&m.push(U);break n}U.componentWillUpdate!=null&&U.componentWillUpdate(Y,U.__s,re),Z&&U.componentDidUpdate!=null&&U.__h.push(function(){U.componentDidUpdate(K,q,J)})}if(U.context=re,U.props=Y,U.__P=e,U.__e=!1,ae=v.__r,Q=0,Z)U.state=U.__s,U.__d=!1,ae&&ae(t),A=U.render(U.props,U.state,U.context),ne.push.apply(U.__h,U._sb),U._sb=[];else do U.__d=!1,ae&&ae(t),A=U.render(U.props,U.state,U.context),U.state=U.__s;while(U.__d&&++Q<25);U.state=U.__s,U.getChildContext!=null&&(a=m$1(m$1({},a),U.getChildContext())),Z&&!G&&U.getSnapshotBeforeUpdate!=null&&(J=U.getSnapshotBeforeUpdate(K,q)),oe=A!=null&&A.type===S&&A.key==null?E$1(A.props.children):A,T=L(e,ie(oe)?oe:[oe],t,n,a,s,l,m,T,O,k),U.base=t.__e,t.__u&=-161,U.__h.length&&m.push(U),ee&&(U.__E=U.__=null)}catch(e){if(t.__v=null,O||l!=null)if(e.then){for(t.__u|=O?160:128;T&&T.nodeType==8&&T.nextSibling;)T=T.nextSibling;l[l.indexOf(T)]=null,t.__e=T}else{for(se=l.length;se--;)b(l[se]);B$2(t)}else t.__e=n.__e,t.__k=n.__k,e.then||B$2(t);v.__e(e,t,n)}else l==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):T=t.__e=G$1(n.__e,t,n,a,s,l,m,O,k);return(A=v.diffed)&&A(t),128&t.__u?void 0:T}__name(q$2,`q`);function B$2(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(B$2))}__name(B$2,`B`);function D$1(e,t,n){for(var a=0;a<n.length;a++)J$1(n[a],n[++a],n[++a]);v.__c&&v.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){v.__e(e,t.__v)}})}__name(D$1,`D`);function E$1(e){return typeof e!=`object`||!e||e.__b>0?e:ie(e)?e.map(E$1):e.constructor===void 0?m$1({},e):null}__name(E$1,`E`);function G$1(e,t,n,a,s,l,T,O,k){var A,U,G,K,q,J,ee,Y=n.props||te,Z=t.props,ne=t.type;if(ne==`svg`?s=`http://www.w3.org/2000/svg`:ne==`math`?s=`http://www.w3.org/1998/Math/MathML`:s||=`http://www.w3.org/1999/xhtml`,l!=null){for(A=0;A<l.length;A++)if((q=l[A])&&`setAttribute`in q==!!ne&&(ne?q.localName==ne:q.nodeType==3)){e=q,l[A]=null;break}}if(e==null){if(ne==null)return document.createTextNode(Z);e=document.createElementNS(s,ne,Z.is&&Z),O&&=(v.__m&&v.__m(t,l),!1),l=null}if(ne==null)Y===Z||O&&e.data==Z||(e.data=Z);else{if(l=ne==`textarea`&&Z.defaultValue!=null?null:l&&m.call(e.childNodes),!O&&l!=null)for(Y={},A=0;A<e.attributes.length;A++)Y[(q=e.attributes[A]).name]=q.value;for(A in Y)q=Y[A],A==`dangerouslySetInnerHTML`?G=q:A==`children`||A in Z||A==`value`&&`defaultValue`in Z||A==`checked`&&`defaultChecked`in Z||N(e,A,null,q,s);for(A in Z)q=Z[A],A==`children`?K=q:A==`dangerouslySetInnerHTML`?U=q:A==`value`?J=q:A==`checked`?ee=q:O&&typeof q!=`function`||Y[A]===q||N(e,A,q,Y[A],s);if(U)O||G&&(U.__html==G.__html||U.__html==e.innerHTML)||(e.innerHTML=U.__html),t.__k=[];else if(G&&(e.innerHTML=``),L(t.type==`template`?e.content:e,ie(K)?K:[K],t,n,a,ne==`foreignObject`?`http://www.w3.org/1999/xhtml`:s,l,T,l?l[0]:n.__k&&$(n,0),O,k),l!=null)for(A=l.length;A--;)b(l[A]);O&&ne!=`textarea`||(A=`value`,ne==`progress`&&J==null?e.removeAttribute(`value`):J!=null&&(J!==e[A]||ne==`progress`&&!J||ne==`option`&&J!=Y[A])&&N(e,A,J,Y[A],s),A=`checked`,ee!=null&&ee!=e[A]&&N(e,A,ee,Y[A],s))}return e}__name(G$1,`G`);function J$1(e,t,n){try{if(typeof e==`function`){var a=typeof e.__u==`function`;a&&e.__u(),a&&t==null||(e.__u=e(t))}else e.current=t}catch(e){v.__e(e,n)}}__name(J$1,`J`);function K$1(e,t,n){var a,s;if(v.unmount&&v.unmount(e),(a=e.ref)&&(a.current&&a.current!=e.__e||J$1(a,null,t)),(a=e.__c)!=null){if(a.componentWillUnmount)try{a.componentWillUnmount()}catch(e){v.__e(e,t)}a.base=a.__P=null}if(a=e.__k)for(s=0;s<a.length;s++)a[s]&&K$1(a[s],t,n||typeof e.type!=`function`);n||b(e.__e),e.__c=e.__=e.__e=void 0}__name(K$1,`K`);function Q$1(e,t,n){return this.constructor(e,n)}__name(Q$1,`Q`);function R(e,t,n){var a,s,l,T;t==document&&(t=document.documentElement),v.__&&v.__(e,t),s=(a=typeof n==`function`)?null:n&&n.__k||t.__k,l=[],T=[],q$2(t,e=(!a&&n||t).__k=k$1(S,null,[e]),s||te,te,t.namespaceURI,!a&&n?[n]:s?null:t.firstChild?m.call(t.childNodes):null,l,!a&&n?n:s?s.__e:t.firstChild,a,T),D$1(l,e,T)}m=ne.slice,v={__e:function(e,t,n,a){for(var s,l,m;t=t.__;)if((s=t.__c)&&!s.__)try{if((l=s.constructor)&&l.getDerivedStateFromError!=null&&(s.setState(l.getDerivedStateFromError(e)),m=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,a||{}),m=s.__d),m)return s.__E=s}catch(t){e=t}throw e}},T=0,C$1.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=m$1({},this.state);typeof e==`function`&&(e=e(m$1({},n),this.props)),e&&m$1(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),A$1(this))},C$1.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A$1(this))},C$1.prototype.render=S,O=[],A=typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout,U=__name(function(e,t){return e.__v.__b-t.__v.__b},`e`),H$1.__r=0,G=Math.random().toString(8),K=`__d`+G,q=`__a`+G,J=/(PointerCapture)$|Capture$/i,ee=0,Y=V$1(!1),Z=V$1(!0);var ae,Q,oe,se,ce=0,le=[],ue=v,de=ue.__b,fe=ue.__r,pe=ue.diffed,me=ue.__c,he=ue.unmount,ge=ue.__;function p(e,t){ue.__h&&ue.__h(Q,e,ce||t),ce=0;var n=Q.__H||={__:[],__h:[]};return e>=n.__.length&&n.__.push({}),n.__[e]}function d(e){return ce=1,h(D,e)}function h(e,t,n){var a=p(ae++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):D(void 0,t),function(e){var t=a.__N?a.__N[0]:a.__[0],n=a.t(t,e);t!==n&&(a.__N=[n,a.__[1]],a.__c.setState({}))}],a.__c=Q,!Q.__f)){var f=function(e,t,n){if(!a.__c.__H)return!0;var l=a.__c.__H.__.filter(function(e){return e.__c});if(l.every(function(e){return!e.__N}))return!s||s.call(this,e,t,n);var m=a.__c.props!==e;return l.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(m=!0)}}),s&&s.call(this,e,t,n)||m};Q.__f=!0;var s=Q.shouldComponentUpdate,l=Q.componentWillUpdate;Q.componentWillUpdate=function(e,t,n){if(this.__e){var a=s;s=void 0,f(e,t,n),s=a}l&&l.call(this,e,t,n)},Q.shouldComponentUpdate=f}return a.__N||a.__}function y(e,t){var n=p(ae++,3);!ue.__s&&C(n.__H,t)&&(n.__=e,n.u=t,Q.__H.__h.push(n))}function _(e,t){var n=p(ae++,4);!ue.__s&&C(n.__H,t)&&(n.__=e,n.u=t,Q.__h.push(n))}function T$1(e,t){var n=p(ae++,7);return C(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}__name(T$1,`T`);function q$1(e,t){return ce=8,T$1(function(){return e},t)}__name(q$1,`q`);function j$1(){for(var e;e=le.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(z),t.__h.some(B$1),t.__h=[]}catch(n){t.__h=[],ue.__e(n,e.__v)}}}__name(j$1,`j`),ue.__b=function(e){Q=null,de&&de(e)},ue.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ge&&ge(e,t)},ue.__r=function(e){fe&&fe(e),ae=0;var t=(Q=e.__c).__H;t&&(oe===Q?(t.__h=[],Q.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(z),t.__h.some(B$1),t.__h=[],ae=0)),oe=Q},ue.diffed=function(e){pe&&pe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(le.push(t)!==1&&se===ue.requestAnimationFrame||((se=ue.requestAnimationFrame)||w)(j$1)),t.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),oe=Q=null},ue.__c=function(e,t){t.some(function(e){try{e.__h.some(z),e.__h=e.__h.filter(function(e){return!e.__||B$1(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],ue.__e(n,e.__v)}}),me&&me(e,t)},ue.unmount=function(e){he&&he(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{z(e)}catch(e){t=e}}),n.__H=void 0,t&&ue.__e(t,n.__v))};var _e=typeof requestAnimationFrame==`function`;function w(e){var t,r=function(){clearTimeout(n),_e&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);_e&&(t=requestAnimationFrame(r))}function z(e){var t=Q,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),Q=t}function B$1(e){var t=Q;e.__c=e.__(),Q=t}__name(B$1,`B`);function C(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function D(e,t){return typeof t==`function`?t(e):t}function g(e,t){for(var n in t)e[n]=t[n];return e}function E(e,t){for(var n in e)if(n!==`__source`&&!(n in t))return!0;for(var a in t)if(a!==`__source`&&e[a]!==t[a])return!0;return!1}function M(e,t){this.props=e,this.context=t}(M.prototype=new C$1).isPureReactComponent=!0,M.prototype.shouldComponentUpdate=function(e,t){return E(this.props,e)||E(this.state,t)};var ve=v.__b;v.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ve&&ve(e)},typeof Symbol<`u`&&Symbol.for;var ye=v.__e;v.__e=function(e,t,n,a){if(e.then){for(var s,l=t;l=l.__;)if((s=l.__c)&&s.__c)return t.__e??(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}ye(e,t,n,a)};var be=v.unmount;function V(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){typeof e.__c==`function`&&e.__c()}),e.__c.__H=null),(e=g({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return V(e,t,n)})),e}function W(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return W(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function P(){this.__u=0,this.o=null,this.__b=null}function j(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function B(){this.i=null,this.l=null}v.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),be&&be(e)},(P.prototype=new C$1).__c=function(e,t){var n=t.__c,a=this;a.o??=[],a.o.push(n);var s=j(a.__v),l=!1,i=function(){l||a.__z||(l=!0,n.__R=null,s?s(c):c())};n.__R=i;var m=n.__P;n.__P=null;var c=function(){if(!--a.__u){if(a.state.__a){var e=a.state.__a;a.__v.__k[0]=W(e,e.__c.__P,e.__c.__O)}var t;for(a.setState({__a:a.__b=null});t=a.o.pop();)t.__P=m,t.forceUpdate()}};a.__u++||32&t.__u||a.setState({__a:a.__b=a.__v.__k[0]}),e.then(i,i)},P.prototype.componentWillUnmount=function(){this.o=[]},P.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement(`div`),a=this.__v.__k[0].__c;this.__v.__k[0]=V(this.__b,n,a.__O=a.__P)}this.__b=null}var s=t.__a&&k$1(S,null,e.fallback);return s&&(s.__u&=-33),[k$1(S,null,t.__a?null:e.children),s]};var H=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!==`t`||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};(B.prototype=new C$1).__a=function(e){var t=this,n=j(t.__v),a=t.l.get(e);return a[0]++,function(s){var o=function(){t.props.revealOrder?(a.push(s),H(t,e,a)):s()};n?n(o):o()}},B.prototype.render=function(e){this.i=null,this.l=new Map;var t=F(e.children);e.revealOrder&&e.revealOrder[0]===`b`&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},B.prototype.componentDidUpdate=B.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){H(e,n,t)})};var xe=typeof Symbol<`u`&&Symbol.for&&Symbol.for(`react.element`)||60103,Se=/^(?: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]/,Ce=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,we=/[A-Z0-9]/g,Te=typeof document<`u`,X=function(e){return(typeof Symbol<`u`&&typeof Symbol()==`symbol`?/fil|che|rad/:/fil|che|ra/).test(e)};C$1.prototype.isReactComponent=!0,[`componentWillMount`,`componentWillReceiveProps`,`componentWillUpdate`].forEach(function(e){Object.defineProperty(C$1.prototype,e,{configurable:!0,get:function(){return this[`UNSAFE_`+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ee=v.event;v.event=function(e){return Ee&&(e=Ee(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var De={configurable:!0,get:function(){return this.class}},Oe=v.vnode;v.vnode=function(e){typeof e.type==`string`&&function(e){var t=e.props,n=e.type,a={},s=n.indexOf(`-`)==-1;for(var l in t){var m=t[l];if(!(l===`value`&&`defaultValue`in t&&m==null||Te&&l===`children`&&n===`noscript`||l===`class`||l===`className`)){var v=l.toLowerCase();l===`defaultValue`&&`value`in t&&t.value==null?l=`value`:l===`download`&&!0===m?m=``:v===`translate`&&m===`no`?m=!1:v[0]===`o`&&v[1]===`n`?v===`ondoubleclick`?l=`ondblclick`:v!==`onchange`||n!==`input`&&n!==`textarea`||X(t.type)?v===`onfocus`?l=`onfocusin`:v===`onblur`?l=`onfocusout`:Ce.test(l)&&(l=v):v=l=`oninput`:s&&Se.test(l)?l=l.replace(we,`-$&`).toLowerCase():m===null&&(m=void 0),v===`oninput`&&a[l=v]&&(l=`oninputCapture`),a[l]=m}}n==`select`&&(a.multiple&&Array.isArray(a.value)&&(a.value=F(t.children).forEach(function(e){e.props.selected=a.value.indexOf(e.props.value)!=-1})),a.defaultValue!=null&&(a.value=F(t.children).forEach(function(e){e.props.selected=a.multiple?a.defaultValue.indexOf(e.props.value)!=-1:a.defaultValue==e.props.value}))),t.class&&!t.className?(a.class=t.class,Object.defineProperty(a,"className",De)):t.className&&(a.class=a.className=t.className),e.props=a}(e),e.$$typeof=xe,Oe&&Oe(e)};var ke=v.__r;v.__r=function(e){ke&&ke(e),e.__c};var Ae=v.diffed;v.diffed=function(e){Ae&&Ae(e);var t=e.props,n=e.__e;n!=null&&e.type===`textarea`&&`value`in t&&t.value!==n.value&&(n.value=t.value==null?``:t.value)};function pn(e){return!!e.__k&&(R(null,e),!0)}var je=__exportAll({Component:()=>C$1,Fragment:()=>S,createElement:()=>k$1,h:()=>k$1,render:()=>R,unmountComponentAtNode:()=>pn,useCallback:()=>q$1,useEffect:()=>y,useLayoutEffect:()=>_,useMemo:()=>T$1,useReducer:()=>h,useState:()=>d}),Me=0;Array.isArray;function u(e,t,n,a,s,l){t||={};var m,T,O=t;if(`ref`in O)for(T in O={},t)T==`ref`?m=t[T]:O[T]=t[T];var k={type:e,props:O,key:n,ref:m,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Me,__i:-1,__u:0,__source:s,__self:l};if(typeof e==`function`&&(m=e.defaultProps))for(T in m)O[T]===void 0&&(O[T]=m[T]);return v.vnode&&v.vnode(k),k}var Image=({href:e,x:t,y:n=0,height:a=12})=>u(`image`,{xlinkHref:e,x:t-a/2,y:n-a/2,width:a,height:a}),ImageChar=({x:e,y:n=0,height:a=12,fill:s,stroke:l,fontFamily:m=`FontAwesome`,char:v=``,fontWeight:T})=>{let O=T$1(()=>m===`FontAwesome`?t.Utility.faChar(v):v,[v,m]);return u(`text`,{x:e,y:n,fill:s,stroke:l,fontFamily:m,fontSize:`${a}px`,fontWeight:T,dominantBaseline:`middle`,style:{textAnchor:`middle`,alignmentBaseline:`middle`},children:O})},Circle=({radius:e=32,fill:t=`navy`,stroke:n=t,strokeWidth:a=1,shapeRendering:s})=>u(`circle`,{r:e,fill:t,stroke:n,strokeWidth:a,shapeRendering:s}),Square=({radius:e=30,cornerRadius:t=0,fill:n=`white`,stroke:a,strokeWidth:s=1,shapeRendering:l})=>u(`rect`,{x:-e,y:-e,rx:t,ry:t,width:e*2,height:e*2,fill:n,stroke:a||n,strokeWidth:s,shapeRendering:l}),Rectangle=({width:e=30,height:t=30,cornerRadius:n=0,fill:a=`white`,stroke:s=`black`,strokeWidth:l=1,shapeRendering:m})=>u(`rect`,{x:-e/2,y:-t/2,rx:n,ry:n,width:e,height:t,fill:a,stroke:s||a,strokeWidth:l,shapeRendering:m}),Shape=({shape:e=`circle`,height:t=128,width:n,fill:a,stroke:s,strokeWidth:l=1,shapeRendering:m,cornerRadius:v})=>{switch(e){case`square`:return u(Square,{radius:t/2,fill:a,stroke:s,strokeWidth:l,shapeRendering:m,cornerRadius:v});case`rectangle`:return u(Rectangle,{width:n??t,height:t,fill:a,stroke:s,strokeWidth:l,shapeRendering:m,cornerRadius:v});default:return u(Circle,{radius:t/2,fill:a,stroke:s,strokeWidth:l,shapeRendering:m})}},Icon=({shape:e=`circle`,width:n,height:a=32,fill:s,stroke:l,strokeWidth:m=0,imageUrl:v=``,imageFontFamily:T=`FontAwesome`,imageChar:O=``,imageCharFill:k=t.Palette.textColor(s),padding:A=a/5,xOffset:U=0,yOffset:G=0,cornerRadius:K,shapeRendering:q})=>u(S,{children:[u(Shape,{shape:e,width:n,height:a,fill:s,stroke:l,strokeWidth:m,shapeRendering:q,cornerRadius:K}),v?u(Image,{href:v,x:U,y:G,height:a-A}):u(ImageChar,{x:U,y:G,height:a-A,fontFamily:T,char:O,fill:k,fontWeight:400})]}),Icons=({icons:e=[]})=>u(S,{children:e.map(e=>u(`g`,{id:e.id,children:u(Icon,{...e})},e.id))}),TextLine=({text:e,height:t=12,anchor:n=`middle`,baseline:a=`middle`,fontFamily:s=`Verdana`,fill:l=`black`})=>u(`text`,{"font-family":s,"font-size":`${t}px`,"text-anchor":n,"dominant-baseline":a,fill:l,children:e}),Text=({text:e,height:n=12,fontFamily:a=`Verdana`,fill:s=`black`,onSizeUpdate:l})=>{let[m,v]=d(0),[T,O]=d(0);y(()=>{l&&l({width:m,height:T})},[m,T,l]);let k=T$1(()=>e.split(`
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("@hpcc-js/common")):typeof define==`function`&&define.amd?define([`exports`,`@hpcc-js/common`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`@hpcc-js/react`]={},e[`@hpcc-js/common`]))})(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=Object.defineProperty,__name=(e,t)=>n(e,`name`,{value:t,configurable:!0}),__exportAll=(e,t)=>{let a={};for(var s in e)n(a,s,{get:e[s],enumerable:!0});return t||n(a,Symbol.toStringTag,{value:`Module`}),a},a=`@hpcc-js/react`,s=`3.5.0`,l=`3.26.0`,m,v,T,O,k,A,U,G,K,q,J,ee,Y,Z,te={},ne=[],re=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ie=Array.isArray;function m$1(e,t){for(var n in t)e[n]=t[n];return e}__name(m$1,`m`);function b(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function k$1(e,t,n){var a,s,l,v={};for(l in t)l==`key`?a=t[l]:l==`ref`?s=t[l]:v[l]=t[l];if(arguments.length>2&&(v.children=arguments.length>3?m.call(arguments,2):n),typeof e==`function`&&e.defaultProps!=null)for(l in e.defaultProps)v[l]===void 0&&(v[l]=e.defaultProps[l]);return x(e,v,a,s,null)}__name(k$1,`k`);function x(e,t,n,a,s){var l={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++T,__i:-1,__u:0};return s==null&&v.vnode!=null&&v.vnode(l),l}function S(e){return e.children}function C$1(e,t){this.props=e,this.context=t}__name(C$1,`C`);function $(e,t){if(t==null)return e.__?$(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?$(e):null}function I(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,a=[],s=[],l=m$1({},t);l.__v=t.__v+1,v.vnode&&v.vnode(l),q$2(e.__P,l,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,a,n??$(t),!!(32&t.__u),s),l.__v=t.__v,l.__.__k[l.__i]=l,D$1(a,l,s),t.__e=t.__=null,l.__e!=n&&P$1(l)}}function P$1(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),P$1(e)}__name(P$1,`P`);function A$1(e){(!e.__d&&(e.__d=!0)&&O.push(e)&&!H$1.__r++||k!=v.debounceRendering)&&((k=v.debounceRendering)||A)(H$1)}__name(A$1,`A`);function H$1(){try{for(var e,t=1;O.length;)O.length>t&&O.sort(U),e=O.shift(),t=O.length,I(e)}finally{O.length=H$1.__r=0}}__name(H$1,`H`);function L(e,t,n,a,s,l,m,v,T,O,k){var A,U,G,K,q,J,ee,Y=a&&a.__k||ne,Z=t.length;for(T=T$2(n,t,Y,T,Z),A=0;A<Z;A++)(G=n.__k[A])!=null&&(U=G.__i!=-1&&Y[G.__i]||te,G.__i=A,J=q$2(e,G,U,s,l,m,v,T,O,k),K=G.__e,G.ref&&U.ref!=G.ref&&(U.ref&&J$1(U.ref,null,G),k.push(G.ref,G.__c||K,G)),q==null&&K!=null&&(q=K),(ee=!!(4&G.__u))||U.__k===G.__k?(T=j$2(G,T,e,ee),ee&&U.__e&&(U.__e=null)):typeof G.type==`function`&&J!==void 0?T=J:K&&(T=K.nextSibling),G.__u&=-7);return n.__e=q,T}function T$2(e,t,n,a,s){var l,m,v,T,O,k=n.length,A=k,U=0;for(e.__k=Array(s),l=0;l<s;l++)(m=t[l])!=null&&typeof m!=`boolean`&&typeof m!=`function`?(typeof m==`string`||typeof m==`number`||typeof m==`bigint`||m.constructor==String?m=e.__k[l]=x(null,m,null,null,null):ie(m)?m=e.__k[l]=x(S,{children:m},null,null,null):m.constructor===void 0&&m.__b>0?m=e.__k[l]=x(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):e.__k[l]=m,T=l+U,m.__=e,m.__b=e.__b+1,v=null,(O=m.__i=O$1(m,n,T,A))!=-1&&(A--,(v=n[O])&&(v.__u|=2)),v==null||v.__v==null?(O==-1&&(s>k?U--:s<k&&U++),typeof m.type!=`function`&&(m.__u|=4)):O!=T&&(O==T-1?U--:O==T+1?U++:(O>T?U--:U++,m.__u|=4))):e.__k[l]=null;if(A)for(l=0;l<k;l++)(v=n[l])!=null&&!(2&v.__u)&&(v.__e==a&&(a=$(v)),K$1(v,v));return a}__name(T$2,`T`);function j$2(e,t,n,a){var s,l;if(typeof e.type==`function`){for(s=e.__k,l=0;s&&l<s.length;l++)s[l]&&(s[l].__=e,t=j$2(s[l],t,n,a));return t}e.__e!=t&&(a&&(t&&e.type&&!t.parentNode&&(t=$(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}__name(j$2,`j`);function F(e,t){return t||=[],e==null||typeof e==`boolean`||(ie(e)?e.some(function(e){F(e,t)}):t.push(e)),t}function O$1(e,t,n,a){var s,l,m,v=e.key,T=e.type,O=t[n],k=O!=null&&(2&O.__u)==0;if(O===null&&v==null||k&&v==O.key&&T==O.type)return n;if(a>+!!k){for(s=n-1,l=n+1;s>=0||l<t.length;)if((O=t[m=s>=0?s--:l++])!=null&&!(2&O.__u)&&v==O.key&&T==O.type)return m}return-1}__name(O$1,`O`);function z$1(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||re.test(t)?n:n+`px`}__name(z$1,`z`);function N(e,t,n,a,s){var l,m;n:if(t==`style`)if(typeof n==`string`)e.style.cssText=n;else{if(typeof a==`string`&&(e.style.cssText=a=``),a)for(t in a)n&&t in n||z$1(e.style,t,``);if(n)for(t in n)a&&n[t]==a[t]||z$1(e.style,t,n[t])}else if(t[0]==`o`&&t[1]==`n`)l=t!=(t=t.replace(J,`$1`)),m=t.toLowerCase(),t=m in e||t==`onFocusOut`||t==`onFocusIn`?m.slice(2):t.slice(2),e.l||={},e.l[t+l]=n,n?a?n[q]=a[q]:(n[q]=ee,e.addEventListener(t,l?Z:Y,l)):e.removeEventListener(t,l?Z:Y,l);else{if(s==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function V$1(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t[K]==null)t[K]=ee++;else if(t[K]<n[q])return;return n(v.event?v.event(t):t)}}}__name(V$1,`V`);function q$2(e,t,n,a,s,l,m,T,O,k){var A,U,G,K,q,J,ee,Y,Z,te,re,ae,Q,oe,se,ce=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(O=!!(32&n.__u),l=[T=t.__e=n.__e]),(A=v.__b)&&A(t);n:if(typeof ce==`function`)try{if(Y=t.props,Z=ce.prototype&&ce.prototype.render,te=(A=ce.contextType)&&a[A.__c],re=A?te?te.props.value:A.__:a,n.__c?ee=(U=t.__c=n.__c).__=U.__E:(Z?t.__c=U=new ce(Y,re):(t.__c=U=new C$1(Y,re),U.constructor=ce,U.render=Q$1),te&&te.sub(U),U.state||={},U.__n=a,G=U.__d=!0,U.__h=[],U._sb=[]),Z&&U.__s==null&&(U.__s=U.state),Z&&ce.getDerivedStateFromProps!=null&&(U.__s==U.state&&(U.__s=m$1({},U.__s)),m$1(U.__s,ce.getDerivedStateFromProps(Y,U.__s))),K=U.props,q=U.state,U.__v=t,G)Z&&ce.getDerivedStateFromProps==null&&U.componentWillMount!=null&&U.componentWillMount(),Z&&U.componentDidMount!=null&&U.__h.push(U.componentDidMount);else{if(Z&&ce.getDerivedStateFromProps==null&&Y!==K&&U.componentWillReceiveProps!=null&&U.componentWillReceiveProps(Y,re),t.__v==n.__v||!U.__e&&U.shouldComponentUpdate!=null&&!1===U.shouldComponentUpdate(Y,U.__s,re)){t.__v!=n.__v&&(U.props=Y,U.state=U.__s,U.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),ne.push.apply(U.__h,U._sb),U._sb=[],U.__h.length&&m.push(U);break n}U.componentWillUpdate!=null&&U.componentWillUpdate(Y,U.__s,re),Z&&U.componentDidUpdate!=null&&U.__h.push(function(){U.componentDidUpdate(K,q,J)})}if(U.context=re,U.props=Y,U.__P=e,U.__e=!1,ae=v.__r,Q=0,Z)U.state=U.__s,U.__d=!1,ae&&ae(t),A=U.render(U.props,U.state,U.context),ne.push.apply(U.__h,U._sb),U._sb=[];else do U.__d=!1,ae&&ae(t),A=U.render(U.props,U.state,U.context),U.state=U.__s;while(U.__d&&++Q<25);U.state=U.__s,U.getChildContext!=null&&(a=m$1(m$1({},a),U.getChildContext())),Z&&!G&&U.getSnapshotBeforeUpdate!=null&&(J=U.getSnapshotBeforeUpdate(K,q)),oe=A!=null&&A.type===S&&A.key==null?E$1(A.props.children):A,T=L(e,ie(oe)?oe:[oe],t,n,a,s,l,m,T,O,k),U.base=t.__e,t.__u&=-161,U.__h.length&&m.push(U),ee&&(U.__E=U.__=null)}catch(e){if(t.__v=null,O||l!=null)if(e.then){for(t.__u|=O?160:128;T&&T.nodeType==8&&T.nextSibling;)T=T.nextSibling;l[l.indexOf(T)]=null,t.__e=T}else{for(se=l.length;se--;)b(l[se]);B$2(t)}else t.__e=n.__e,t.__k=n.__k,e.then||B$2(t);v.__e(e,t,n)}else l==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):T=t.__e=G$1(n.__e,t,n,a,s,l,m,O,k);return(A=v.diffed)&&A(t),128&t.__u?void 0:T}__name(q$2,`q`);function B$2(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(B$2))}__name(B$2,`B`);function D$1(e,t,n){for(var a=0;a<n.length;a++)J$1(n[a],n[++a],n[++a]);v.__c&&v.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){v.__e(e,t.__v)}})}__name(D$1,`D`);function E$1(e){return typeof e!=`object`||!e||e.__b>0?e:ie(e)?e.map(E$1):e.constructor===void 0?m$1({},e):null}__name(E$1,`E`);function G$1(e,t,n,a,s,l,T,O,k){var A,U,G,K,q,J,ee,Y=n.props||te,Z=t.props,ne=t.type;if(ne==`svg`?s=`http://www.w3.org/2000/svg`:ne==`math`?s=`http://www.w3.org/1998/Math/MathML`:s||=`http://www.w3.org/1999/xhtml`,l!=null){for(A=0;A<l.length;A++)if((q=l[A])&&`setAttribute`in q==!!ne&&(ne?q.localName==ne:q.nodeType==3)){e=q,l[A]=null;break}}if(e==null){if(ne==null)return document.createTextNode(Z);e=document.createElementNS(s,ne,Z.is&&Z),O&&=(v.__m&&v.__m(t,l),!1),l=null}if(ne==null)Y===Z||O&&e.data==Z||(e.data=Z);else{if(l=ne==`textarea`&&Z.defaultValue!=null?null:l&&m.call(e.childNodes),!O&&l!=null)for(Y={},A=0;A<e.attributes.length;A++)Y[(q=e.attributes[A]).name]=q.value;for(A in Y)q=Y[A],A==`dangerouslySetInnerHTML`?G=q:A==`children`||A in Z||A==`value`&&`defaultValue`in Z||A==`checked`&&`defaultChecked`in Z||N(e,A,null,q,s);for(A in Z)q=Z[A],A==`children`?K=q:A==`dangerouslySetInnerHTML`?U=q:A==`value`?J=q:A==`checked`?ee=q:O&&typeof q!=`function`||Y[A]===q||N(e,A,q,Y[A],s);if(U)O||G&&(U.__html==G.__html||U.__html==e.innerHTML)||(e.innerHTML=U.__html),t.__k=[];else if(G&&(e.innerHTML=``),L(t.type==`template`?e.content:e,ie(K)?K:[K],t,n,a,ne==`foreignObject`?`http://www.w3.org/1999/xhtml`:s,l,T,l?l[0]:n.__k&&$(n,0),O,k),l!=null)for(A=l.length;A--;)b(l[A]);O&&ne!=`textarea`||(A=`value`,ne==`progress`&&J==null?e.removeAttribute(`value`):J!=null&&(J!==e[A]||ne==`progress`&&!J||ne==`option`&&J!=Y[A])&&N(e,A,J,Y[A],s),A=`checked`,ee!=null&&ee!=e[A]&&N(e,A,ee,Y[A],s))}return e}__name(G$1,`G`);function J$1(e,t,n){try{if(typeof e==`function`){var a=typeof e.__u==`function`;a&&e.__u(),a&&t==null||(e.__u=e(t))}else e.current=t}catch(e){v.__e(e,n)}}__name(J$1,`J`);function K$1(e,t,n){var a,s;if(v.unmount&&v.unmount(e),(a=e.ref)&&(a.current&&a.current!=e.__e||J$1(a,null,t)),(a=e.__c)!=null){if(a.componentWillUnmount)try{a.componentWillUnmount()}catch(e){v.__e(e,t)}a.base=a.__P=null}if(a=e.__k)for(s=0;s<a.length;s++)a[s]&&K$1(a[s],t,n||typeof e.type!=`function`);n||b(e.__e),e.__c=e.__=e.__e=void 0}__name(K$1,`K`);function Q$1(e,t,n){return this.constructor(e,n)}__name(Q$1,`Q`);function R(e,t,n){var a,s,l,T;t==document&&(t=document.documentElement),v.__&&v.__(e,t),s=(a=typeof n==`function`)?null:n&&n.__k||t.__k,l=[],T=[],q$2(t,e=(!a&&n||t).__k=k$1(S,null,[e]),s||te,te,t.namespaceURI,!a&&n?[n]:s?null:t.firstChild?m.call(t.childNodes):null,l,!a&&n?n:s?s.__e:t.firstChild,a,T),D$1(l,e,T)}m=ne.slice,v={__e:function(e,t,n,a){for(var s,l,m;t=t.__;)if((s=t.__c)&&!s.__)try{if((l=s.constructor)&&l.getDerivedStateFromError!=null&&(s.setState(l.getDerivedStateFromError(e)),m=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,a||{}),m=s.__d),m)return s.__E=s}catch(t){e=t}throw e}},T=0,C$1.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=m$1({},this.state);typeof e==`function`&&(e=e(m$1({},n),this.props)),e&&m$1(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),A$1(this))},C$1.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A$1(this))},C$1.prototype.render=S,O=[],A=typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout,U=__name(function(e,t){return e.__v.__b-t.__v.__b},`e`),H$1.__r=0,G=Math.random().toString(8),K=`__d`+G,q=`__a`+G,J=/(PointerCapture)$|Capture$/i,ee=0,Y=V$1(!1),Z=V$1(!0);var ae,Q,oe,se,ce=0,le=[],ue=v,de=ue.__b,fe=ue.__r,pe=ue.diffed,me=ue.__c,he=ue.unmount,ge=ue.__;function p(e,t){ue.__h&&ue.__h(Q,e,ce||t),ce=0;var n=Q.__H||={__:[],__h:[]};return e>=n.__.length&&n.__.push({}),n.__[e]}function d(e){return ce=1,h(D,e)}function h(e,t,n){var a=p(ae++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):D(void 0,t),function(e){var t=a.__N?a.__N[0]:a.__[0],n=a.t(t,e);t!==n&&(a.__N=[n,a.__[1]],a.__c.setState({}))}],a.__c=Q,!Q.__f)){var f=function(e,t,n){if(!a.__c.__H)return!0;var l=a.__c.__H.__.filter(function(e){return e.__c});if(l.every(function(e){return!e.__N}))return!s||s.call(this,e,t,n);var m=a.__c.props!==e;return l.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(m=!0)}}),s&&s.call(this,e,t,n)||m};Q.__f=!0;var s=Q.shouldComponentUpdate,l=Q.componentWillUpdate;Q.componentWillUpdate=function(e,t,n){if(this.__e){var a=s;s=void 0,f(e,t,n),s=a}l&&l.call(this,e,t,n)},Q.shouldComponentUpdate=f}return a.__N||a.__}function y(e,t){var n=p(ae++,3);!ue.__s&&C(n.__H,t)&&(n.__=e,n.u=t,Q.__H.__h.push(n))}function _(e,t){var n=p(ae++,4);!ue.__s&&C(n.__H,t)&&(n.__=e,n.u=t,Q.__h.push(n))}function T$1(e,t){var n=p(ae++,7);return C(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}__name(T$1,`T`);function q$1(e,t){return ce=8,T$1(function(){return e},t)}__name(q$1,`q`);function j$1(){for(var e;e=le.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(z),t.__h.some(B$1),t.__h=[]}catch(n){t.__h=[],ue.__e(n,e.__v)}}}__name(j$1,`j`),ue.__b=function(e){Q=null,de&&de(e)},ue.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ge&&ge(e,t)},ue.__r=function(e){fe&&fe(e),ae=0;var t=(Q=e.__c).__H;t&&(oe===Q?(t.__h=[],Q.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(z),t.__h.some(B$1),t.__h=[],ae=0)),oe=Q},ue.diffed=function(e){pe&&pe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(le.push(t)!==1&&se===ue.requestAnimationFrame||((se=ue.requestAnimationFrame)||w)(j$1)),t.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),oe=Q=null},ue.__c=function(e,t){t.some(function(e){try{e.__h.some(z),e.__h=e.__h.filter(function(e){return!e.__||B$1(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],ue.__e(n,e.__v)}}),me&&me(e,t)},ue.unmount=function(e){he&&he(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{z(e)}catch(e){t=e}}),n.__H=void 0,t&&ue.__e(t,n.__v))};var _e=typeof requestAnimationFrame==`function`;function w(e){var t,r=function(){clearTimeout(n),_e&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);_e&&(t=requestAnimationFrame(r))}function z(e){var t=Q,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),Q=t}function B$1(e){var t=Q;e.__c=e.__(),Q=t}__name(B$1,`B`);function C(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function D(e,t){return typeof t==`function`?t(e):t}function g(e,t){for(var n in t)e[n]=t[n];return e}function E(e,t){for(var n in e)if(n!==`__source`&&!(n in t))return!0;for(var a in t)if(a!==`__source`&&e[a]!==t[a])return!0;return!1}function M(e,t){this.props=e,this.context=t}(M.prototype=new C$1).isPureReactComponent=!0,M.prototype.shouldComponentUpdate=function(e,t){return E(this.props,e)||E(this.state,t)};var ve=v.__b;v.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ve&&ve(e)},typeof Symbol<`u`&&Symbol.for;var ye=v.__e;v.__e=function(e,t,n,a){if(e.then){for(var s,l=t;l=l.__;)if((s=l.__c)&&s.__c)return t.__e??(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}ye(e,t,n,a)};var be=v.unmount;function V(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){typeof e.__c==`function`&&e.__c()}),e.__c.__H=null),(e=g({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return V(e,t,n)})),e}function W(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return W(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function P(){this.__u=0,this.o=null,this.__b=null}function j(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function B(){this.i=null,this.l=null}v.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),be&&be(e)},(P.prototype=new C$1).__c=function(e,t){var n=t.__c,a=this;a.o??=[],a.o.push(n);var s=j(a.__v),l=!1,i=function(){l||a.__z||(l=!0,n.__R=null,s?s(c):c())};n.__R=i;var m=n.__P;n.__P=null;var c=function(){if(!--a.__u){if(a.state.__a){var e=a.state.__a;a.__v.__k[0]=W(e,e.__c.__P,e.__c.__O)}var t;for(a.setState({__a:a.__b=null});t=a.o.pop();)t.__P=m,t.forceUpdate()}};a.__u++||32&t.__u||a.setState({__a:a.__b=a.__v.__k[0]}),e.then(i,i)},P.prototype.componentWillUnmount=function(){this.o=[]},P.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement(`div`),a=this.__v.__k[0].__c;this.__v.__k[0]=V(this.__b,n,a.__O=a.__P)}this.__b=null}var s=t.__a&&k$1(S,null,e.fallback);return s&&(s.__u&=-33),[k$1(S,null,t.__a?null:e.children),s]};var H=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!==`t`||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};(B.prototype=new C$1).__a=function(e){var t=this,n=j(t.__v),a=t.l.get(e);return a[0]++,function(s){var o=function(){t.props.revealOrder?(a.push(s),H(t,e,a)):s()};n?n(o):o()}},B.prototype.render=function(e){this.i=null,this.l=new Map;var t=F(e.children);e.revealOrder&&e.revealOrder[0]===`b`&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},B.prototype.componentDidUpdate=B.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){H(e,n,t)})};var xe=typeof Symbol<`u`&&Symbol.for&&Symbol.for(`react.element`)||60103,Se=/^(?: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]/,Ce=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,we=/[A-Z0-9]/g,Te=typeof document<`u`,X=function(e){return(typeof Symbol<`u`&&typeof Symbol()==`symbol`?/fil|che|rad/:/fil|che|ra/).test(e)};C$1.prototype.isReactComponent=!0,[`componentWillMount`,`componentWillReceiveProps`,`componentWillUpdate`].forEach(function(e){Object.defineProperty(C$1.prototype,e,{configurable:!0,get:function(){return this[`UNSAFE_`+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ee=v.event;v.event=function(e){return Ee&&(e=Ee(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var De={configurable:!0,get:function(){return this.class}},Oe=v.vnode;v.vnode=function(e){typeof e.type==`string`&&function(e){var t=e.props,n=e.type,a={},s=n.indexOf(`-`)==-1;for(var l in t){var m=t[l];if(!(l===`value`&&`defaultValue`in t&&m==null||Te&&l===`children`&&n===`noscript`||l===`class`||l===`className`)){var v=l.toLowerCase();l===`defaultValue`&&`value`in t&&t.value==null?l=`value`:l===`download`&&!0===m?m=``:v===`translate`&&m===`no`?m=!1:v[0]===`o`&&v[1]===`n`?v===`ondoubleclick`?l=`ondblclick`:v!==`onchange`||n!==`input`&&n!==`textarea`||X(t.type)?v===`onfocus`?l=`onfocusin`:v===`onblur`?l=`onfocusout`:Ce.test(l)&&(l=v):v=l=`oninput`:s&&Se.test(l)?l=l.replace(we,`-$&`).toLowerCase():m===null&&(m=void 0),v===`oninput`&&a[l=v]&&(l=`oninputCapture`),a[l]=m}}n==`select`&&(a.multiple&&Array.isArray(a.value)&&(a.value=F(t.children).forEach(function(e){e.props.selected=a.value.indexOf(e.props.value)!=-1})),a.defaultValue!=null&&(a.value=F(t.children).forEach(function(e){e.props.selected=a.multiple?a.defaultValue.indexOf(e.props.value)!=-1:a.defaultValue==e.props.value}))),t.class&&!t.className?(a.class=t.class,Object.defineProperty(a,"className",De)):t.className&&(a.class=a.className=t.className),e.props=a}(e),e.$$typeof=xe,Oe&&Oe(e)};var ke=v.__r;v.__r=function(e){ke&&ke(e),e.__c};var Ae=v.diffed;v.diffed=function(e){Ae&&Ae(e);var t=e.props,n=e.__e;n!=null&&e.type===`textarea`&&`value`in t&&t.value!==n.value&&(n.value=t.value==null?``:t.value)};function pn(e){return!!e.__k&&(R(null,e),!0)}var je=__exportAll({Component:()=>C$1,Fragment:()=>S,createElement:()=>k$1,h:()=>k$1,render:()=>R,unmountComponentAtNode:()=>pn,useCallback:()=>q$1,useEffect:()=>y,useLayoutEffect:()=>_,useMemo:()=>T$1,useReducer:()=>h,useState:()=>d}),Me=0;Array.isArray;function u(e,t,n,a,s,l){t||={};var m,T,O=t;if(`ref`in O)for(T in O={},t)T==`ref`?m=t[T]:O[T]=t[T];var k={type:e,props:O,key:n,ref:m,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Me,__i:-1,__u:0,__source:s,__self:l};if(typeof e==`function`&&(m=e.defaultProps))for(T in m)O[T]===void 0&&(O[T]=m[T]);return v.vnode&&v.vnode(k),k}var Image=({href:e,x:t,y:n=0,height:a=12})=>u(`image`,{xlinkHref:e,x:t-a/2,y:n-a/2,width:a,height:a}),ImageChar=({x:e,y:n=0,height:a=12,fill:s,stroke:l,fontFamily:m=`FontAwesome`,char:v=``,fontWeight:T})=>{let O=T$1(()=>m===`FontAwesome`?t.Utility.faChar(v):v,[v,m]);return u(`text`,{x:e,y:n,fill:s,stroke:l,fontFamily:m,fontSize:`${a}px`,fontWeight:T,dominantBaseline:`middle`,style:{textAnchor:`middle`,alignmentBaseline:`middle`},children:O})},Circle=({radius:e=32,fill:t=`navy`,stroke:n=t,strokeWidth:a=1,shapeRendering:s})=>u(`circle`,{r:e,fill:t,stroke:n,strokeWidth:a,shapeRendering:s}),Square=({radius:e=30,cornerRadius:t=0,fill:n=`white`,stroke:a,strokeWidth:s=1,shapeRendering:l})=>u(`rect`,{x:-e,y:-e,rx:t,ry:t,width:e*2,height:e*2,fill:n,stroke:a||n,strokeWidth:s,shapeRendering:l}),Rectangle=({width:e=30,height:t=30,cornerRadius:n=0,fill:a=`white`,stroke:s=`black`,strokeWidth:l=1,shapeRendering:m})=>u(`rect`,{x:-e/2,y:-t/2,rx:n,ry:n,width:e,height:t,fill:a,stroke:s||a,strokeWidth:l,shapeRendering:m}),Shape=({shape:e=`circle`,height:t=128,width:n,fill:a,stroke:s,strokeWidth:l=1,shapeRendering:m,cornerRadius:v})=>{switch(e){case`square`:return u(Square,{radius:t/2,fill:a,stroke:s,strokeWidth:l,shapeRendering:m,cornerRadius:v});case`rectangle`:return u(Rectangle,{width:n??t,height:t,fill:a,stroke:s,strokeWidth:l,shapeRendering:m,cornerRadius:v});default:return u(Circle,{radius:t/2,fill:a,stroke:s,strokeWidth:l,shapeRendering:m})}},Icon=({shape:e=`circle`,width:n,height:a=32,fill:s,stroke:l,strokeWidth:m=0,imageUrl:v=``,imageFontFamily:T=`FontAwesome`,imageChar:O=``,imageCharFill:k=t.Palette.textColor(s),padding:A=a/5,xOffset:U=0,yOffset:G=0,cornerRadius:K,shapeRendering:q})=>u(S,{children:[u(Shape,{shape:e,width:n,height:a,fill:s,stroke:l,strokeWidth:m,shapeRendering:q,cornerRadius:K}),v?u(Image,{href:v,x:U,y:G,height:a-A}):u(ImageChar,{x:U,y:G,height:a-A,fontFamily:T,char:O,fill:k,fontWeight:400})]}),Icons=({icons:e=[]})=>u(S,{children:e.map(e=>u(`g`,{id:e.id,children:u(Icon,{...e})},e.id))}),TextLine=({text:e,height:t=12,anchor:n=`middle`,baseline:a=`middle`,fontFamily:s=`Verdana`,fill:l=`black`})=>u(`text`,{"font-family":s,"font-size":`${t}px`,"text-anchor":n,"dominant-baseline":a,fill:l,children:e}),Text=({text:e,height:n=12,fontFamily:a=`Verdana`,fill:s=`black`,onSizeUpdate:l})=>{let[m,v]=d(0),[T,O]=d(0);y(()=>{l&&l({width:m,height:T})},[m,T,l]);let k=T$1(()=>e.split(`
2
2
  `),[e]);return _(()=>{let e=t.Utility.textSize(k,a,n);v(e.width),O(e.height)},[a,n,k]),u(`g`,{children:T$1(()=>{let e=-(T/2)+n/2;return k.map((t,l)=>u(`g`,{transform:`translate(0 ${e+l*(n+2)})`,children:u(TextLine,{text:t,height:n,fontFamily:a,fill:s})},`key-${l}`))},[k,T,n,a,s])})},TextBox=({text:e,height:t=12,fontFamily:n=`Verdana`,padding:a=4,fill:s=`whitesmoke`,stroke:l=`lightgray`,textFill:m=`black`,strokeWidth:v=1,cornerRadius:T=0,onSizeUpdate:O})=>{let[k,A]=d(0),[U,G]=d(0);y(()=>{O&&O({width:k,height:U})},[k,U,O]);let K=q$1(e=>{A(e.width),G(e.height)},[]),q=k+a*2+v,J=U+a*2+v,ee=Math.floor(t/10);return u(S,{children:[u(Rectangle,{width:q,height:J,fill:s,stroke:l,strokeWidth:v,cornerRadius:T}),u(`g`,{transform:`translate(0 ${ee})`,children:u(Text,{text:e,fontFamily:n,height:t,fill:m,onSizeUpdate:K})})]})},LabelledRect=({text:e,height:n=12,width:a=12,fontFamily:s=`Verdana`,fontSize:l=10,padding:m=3,fill:v=`whitesmoke`,stroke:T=`lightgray`,textFill:O=`black`,strokeWidth:k=1,cornerRadius:A=0,onSizeUpdate:U})=>{let[G,K]=d(a),[q,J]=d(n);return _(()=>{let n=t.Utility.textSize(e,s,l);K(n.width+m*2),J(n.height+m*2)},[e,s,l,m]),_(()=>{U&&U({width:G,height:q})},[G,q,m,U]),u(S,{children:[u(Rectangle,{width:a,height:n,fill:v,stroke:T,strokeWidth:k,cornerRadius:A}),u(`g`,{transform:`translate(${-(a/2)+m} ${-(n/2)+m})`,children:u(TextLine,{text:e,fontFamily:s,height:l,fill:O,anchor:`start`,baseline:`hanging`})})]})},IconLabelledRect=({icon:e,iconFontFamily:t,text:n,height:a=12,width:s=12,fontFamily:l=`Verdana`,fontSize:m=10,padding:v=3,fill:T=`whitesmoke`,stroke:O=`lightgray`,textFill:k=`black`,strokeWidth:A=1,cornerRadius:U=0})=>u(S,{children:[u(Rectangle,{width:s,height:a,fill:T,stroke:O,strokeWidth:A,cornerRadius:U}),u(`g`,{transform:`translate(${-(s/2)+v} ${-(a/2)+v})`,children:u(Icon,{shape:`square`,imageFontFamily:t,imageChar:e,height:a,fill:T,imageCharFill:k})}),u(`g`,{transform:`translate(${-(s/2)+v*2+a} ${-(a/2)+v})`,children:u(TextLine,{text:n,fontFamily:l,height:m,fill:k,anchor:`start`,baseline:`hanging`})})]}),Edge=({label:e,labelPos:t,labelFill:n=`black`,labelHeight:a=12,path:s,stroke:l,strokeWidth:m,strokeDasharray:v})=>u(S,{children:[u(`path`,{d:s,stroke:l,style:{strokeWidth:m,strokeDasharray:v}}),e&&t&&t.length===2?u(`g`,{transform:`translate(${t[0]} ${t[1]})`,children:u(Text,{text:e,fill:n,height:a})}):void 0]});function render(e,t,n,a){R(k$1(e,t),n,a)}function svgRender(e,t,n,a){R(k$1(`svg`,null,k$1(e,t)),n,a)}var HTMLAdapter=class extends t.HTMLWidget{_component;props(e){return arguments.length?(this._props={...this._props,...e},this):this._props}prop(e,t){return arguments.length===1?this._props[e]:(this._props[e]=t,this)}constructor(e){super(),this._component=e}update(e,t){super.update(e,t),render(this._component,this._props,e)}};HTMLAdapter.prototype._class+=` react_HTMLAdapter`,HTMLAdapter.prototype.publish(`props`,{},`object`,`Properties`);var SVGAdapter=class extends t.SVGWidget{_component;props(e){return arguments.length?(this._props={...this._props,...e},this):this._props}prop(e,t){return arguments.length===1?this._props[e]:(this._props[e]=t,this)}constructor(e){super(),this._component=e}update(e,t){super.update(e,t),render(this._component,this._props,e)}};SVGAdapter.prototype._class+=` react_SVGAdapter`,SVGAdapter.prototype.publish(`props`,{},`object`,`Properties`);var Span=({text:e})=>u(`span`,{children:e}),Annotations=({x:e,y:t,annotationIDs:n=[],stepSize:a=-16})=>u(S,{children:n.map((n,s)=>u(`g`,{transform:`translate(${e+s*a} ${t})`,children:u(`use`,{xlinkHref:`#`+n})},n))}),Vertex=({categoryID:e=``,text:t=``,textHeight:n=12,textPadding:a=4,icon:s={},annotationsHeight:l=12,annotationIDs:m=[],textFill:v,textboxFill:T,textboxStroke:O,textFontFamily:k,onSizeUpdate:A,showLabel:U=!0,scale:G=1})=>{s={imageChar:`fa-question`,height:32,fill:`transparent`,...s};let[K,q]=d(0),[J,ee]=d(0);y(()=>{A&&A({width:0,height:0})},[K,J,A]);let Y=K;Y+=4;let Z=-(s.height*2/6+n+8)/2,te=s.height/3+J/2+a,ne=s.height/3+J+a+l/3;U||(Z+=(n+8)/2,ne-=J+a);let re=q$1(e=>{q(e.width),ee(e.height)},[]),ie=U?u(`g`,{transform:`translate(0 ${te})`,children:u(TextBox,{text:t,height:n,padding:a,onSizeUpdate:re,textFill:v,fill:T,stroke:O,fontFamily:k})}):void 0;return e?u(`g`,{transform:`translate(0 ${Z}) scale(${G})`,children:[u(`use`,{xlinkHref:`#`+e}),ie,u(Annotations,{x:Y/2,y:ne,annotationIDs:m})]}):u(`g`,{transform:`translate(0 ${Z}) scale(${G})`,children:[u(Icon,{...s}),ie]})},Vertex2=({categoryID:e=``,text:n=``,textHeight:a=12,textPadding:s=4,icon:l={},textFill:m=`black`,textboxFill:v=`white`,textboxStroke:T=`black`,textFontFamily:O,annotationsHeight:k=12,annotationIDs:A=[]})=>{l={imageChar:`fa-question`,imageCharFill:`white`,height:32,fill:`black`,shape:`square`,...l};let U=a+s*2,{width:G}=T$1(()=>t.Utility.textSize(n,O,a,!1),[n,O,a]),K=k,q=U/2,J=-(l.height*2/6+a+8)/2,ee=-l.height/2,Y=Math.ceil(G/2+s),Z=q-l.height/2,te=K/2,ne=q;return e?u(`g`,{transform:`translate(0 ${J})`,children:[u(`g`,{transform:`translate(${ee} 0)`,children:u(`use`,{xlinkHref:`#`+e})}),u(`g`,{transform:`translate(${Y} ${Z})`,children:u(TextBox,{text:n,height:a,padding:s,strokeWidth:1,stroke:T,fill:v,textFill:m,fontFamily:O})}),u(Annotations,{x:te,y:ne,annotationIDs:A,stepSize:K})]}):u(S,{children:[u(`g`,{transform:`translate(${ee} 0)scale(1.0002)`,children:u(Icon,{...l,shape:`square`})}),u(`g`,{transform:`translate(${Y} ${Z})scale(1.0002)`,children:u(TextBox,{text:n,height:a,padding:s,stroke:T,fill:v})})]})},Vertex3=({text:e=``,textHeight:n=10,textPadding:a=4,textFill:s=`#287EC4`,textboxFill:l=`white`,textboxStroke:m=`#CCCCCC`,textboxStrokeWidth:v=1,textFontFamily:T=`Verdana`,annotationGutter:O=2,annotations:k=[],cornerRadius:A=3,icon:U={},subText:G={text:``},showLabel:K=!0,noLabelRadius:q=5,expansionIcon:J,scale:ee=1})=>{U={height:50,imageChar:`?`,imageFontFamily:`FontAwesome`,imageCharFill:`#555555`,fill:`transparent`,strokeWidth:0,...U},G={text:``,fill:`white`,textFill:`#555555`,...G},J=J?{height:16,shape:`circle`,padding:6,imageChar:`?`,imageFontFamily:`FontAwesome`,imageCharFill:`black`,fill:`whitesmoke`,stroke:`whitesmoke`,strokeWidth:0,...J}:void 0;let Y=0,Z=T$1(()=>t.Utility.textSize(e,T,n,!1).width,[e,T,n]),te=0;e!==``&&(te=Z+a*2+v*2),Y+=te+O;let ne=Y-te/2,re=n+a*2+v*2,ie=[];k.forEach((e,t)=>{let n=e.imageChar,a=re;Y+=a+O;let s=Y-a/2;ie.push(u(`g`,{className:`vertex3-anno`,"data-click":`annotation`,"data-click-data":JSON.stringify(e),transform:`translate(${s} 0)`,children:u(Icon,{...e,shape:`square`,height:re,imageChar:n,imageFontFamily:e.imageFontFamily,cornerRadius:A,strokeWidth:0})},t))}),k.length>0&&(Y+=O*(k.length-1));let ae=u(`g`,{"data-click":`text`,transform:`translate(${ne} 0)`,children:!K||e===``?u(`circle`,{r:q,stroke:m,fill:s}):u(TextBox,{text:e,height:n,padding:a,strokeWidth:v,stroke:m,fill:l,textFill:s,fontFamily:T,cornerRadius:A})}),Q=U.height||20,oe=U.strokeWidth||0,se=0,ce=re+O*2;e!==``||ie.length>0?se=-(Q/2)-oe-re/2-O*2:G.text!==``&&(ce=Q/2+oe+O*2);let le=G.text===``?null:u(`g`,{"data-click":`subtext`,transform:`translate(0 ${ce})`,children:u(TextBox,{fill:G.fill||`#FFFFFF`,textFill:G.textFill||s,...G,height:n,padding:a,strokeWidth:0,stroke:m,fontFamily:T,cornerRadius:A})});return u(`g`,{transform:`scale(${ee})`,children:[u(`g`,{"data-click":`icon`,transform:`translate(0 ${se})`,children:[u(Icon,{...U}),J&&u(`g`,{"data-click":`expanded-icon`,"data-click-data":JSON.stringify(J),transform:`translate(${(U.height+oe)/2-J.height/2} ${-(U.height+oe)/2+J.height/2})`,children:u(Icon,{...J})})]}),u(`g`,{transform:`translate(${-Y/2} 0)`,children:[ae,ie]}),le]})},CentroidVertex3=function({id:e,categoryID:t=``,text:n=``,textHeight:a=12,textPadding:s=10,textFill:l=`#287EC4`,textboxFill:m=`white`,textboxStroke:v=`#CCCCCC`,textboxStrokeWidth:T=1,textFontFamily:O=`Verdana`,annotationGutter:k=2,annotations:A=[],cornerRadius:U,icon:G={},subText:K={},expansionIcon:q,scale:J=1}){return G={height:91,padding:40,imageCharFill:`#555555`,imageFontFamily:`FontAwesome`,fill:`#FFCC33`,stroke:`#DFDFDF`,imageChar:`?`,strokeWidth:4,yOffset:-15,...G},K={text:``,fill:`transparent`,textFill:`#555555`,...K},u(Vertex3,{id:e,categoryID:t,text:n,textHeight:a,textPadding:s,textFill:l,textboxFill:m,textboxStroke:v,textboxStrokeWidth:T,textFontFamily:O,annotationGutter:k,annotations:A,cornerRadius:U,icon:G,subText:K,expansionIcon:q,scale:J,icon:G,subText:K})},Vertex4=({categoryID:e=``,text:n=``,textHeight:a=10,textPadding:s=4,textFill:l=`#287EC4`,textboxFill:m=`white`,textboxStroke:v=`#CCCCCC`,textboxStrokeWidth:T=1,textFontFamily:O=`Verdana`,annotationGutter:k=2,annotations:A=[],iconAnnotations:U=[],cornerRadius:G=3,icon:K={},subText:q={},showLabel:J=!0,noLabelRadius:ee=5,iconBorderWidth:Y=1,iconBorderColor:Z=`#333`,iconBackgroundColor:te=`#fff`,iconFontColor:ne=`#000`,iconFontSize:re=20,iconFontFamily:ie=`FontAwesome`,shapeOffsetX:ae=0,shapeOffsetY:Q=0,iconOffsetX:oe=0,iconOffsetY:se=0,iconPadding:ce=4,iconText:le=`?`,shapeRendering:ue=`auto`})=>{K={height:50,imageChar:`?`,imageFontFamily:`FontAwesome`,imageCharFill:`#555555`,fill:`transparent`,strokeWidth:0,...K},q={text:``,fill:`white`,textFill:`#555555`,...q};let de=T$1(()=>t.Utility.textSize(n,O,a,!1).width,[n,O,a]),fe=0;n!==``&&(fe=de+s*2+T*2);let pe=fe+k,me=pe-fe/2,he=a+k*2+T*2,ge=A.map(e=>t.Utility.textSize(e.imageChar,e.imageFontFamily,e.height,!1).width),_e=[],ve=pe;A.forEach((e,t)=>{let n=e.imageChar,a=e.height??he;ve+=ge[t]+k;let s=ve-ge[t]/2;_e.push(u(`g`,{className:`vertex3-anno`,"data-click":`annotation`,"data-click-data":JSON.stringify(e),transform:`translate(${s} 0)`,children:u(Icon,{...e,shape:`rectangle`,width:ge[t],height:a,imageChar:n,imageFontFamily:e.imageFontFamily,cornerRadius:G,strokeWidth:0})},t))}),A.length>0&&(pe+=k*(A.length-1));let ye=[];U.forEach((e,t)=>{let n=e.shapeOffsetX,a=e.shapeOffsetY;ye.push(u(`g`,{className:`vertex3-iconAnno`,"data-click":`icon-annotation`,"data-click-data":JSON.stringify(e),transform:`translate(${n} ${a})`,children:u(Icon,{...e,shape:e.shape??`square`,imageChar:e.imageChar,imageFontFamily:e.imageFontFamily,cornerRadius:G,stroke:e.stroke,strokeWidth:e.strokeWidth})},t))});let be=u(`g`,{"data-click":`text`,transform:`translate(${me} 0)`,children:!J||n===``?u(`circle`,{r:ee,stroke:v,fill:l}):u(TextBox,{text:n,height:a,padding:s,strokeWidth:T,stroke:v,fill:m,textFill:l,fontFamily:O,cornerRadius:G})}),xe=he+k*2,Se=q.text===``?null:u(`g`,{"data-click":`subtext`,transform:`translate(0 ${xe})`,children:u(TextBox,{fill:q.fill||`#FFFFFF`,textFill:q.textFill||l,...q,height:a,padding:s,strokeWidth:0,stroke:v,fontFamily:O,cornerRadius:G})});return u(`g`,{children:[u(`g`,{"data-click":`icon`,transform:`translate(${ae} ${Q})`,children:[u(Icon,{...K,strokeWidth:Y,shape:`circle`,height:re,fill:te,stroke:Z,imageFontFamily:ie,imageChar:le,imageCharFill:ne,padding:ce,xOffset:oe,yOffset:se,cornerRadius:G,shapeRendering:ue}),ye]}),u(`g`,{transform:`translate(${-pe/2} 0)`,children:[be,_e]}),Se]})},CentroidVertex4=function({id:e,categoryID:t=``,text:n=``,textHeight:a=12,textPadding:s=10,textFill:l=`#287EC4`,textboxFill:m=`white`,textboxStroke:v=`#CCCCCC`,textboxStrokeWidth:T=1,textFontFamily:O=`Verdana`,annotationGutter:k=2,annotations:A=[],iconAnnotations:U=[],cornerRadius:G,icon:K={},subText:q={},showLabel:J=!0,noLabelRadius:ee=5,iconBorderWidth:Y=1,iconBorderColor:Z=`#333`,iconBackgroundColor:te=`#fff`,iconFontColor:ne=`#000`,iconFontSize:re=20,iconFontFamily:ie=`FontAwesome`,shapeOffsetX:ae=0,shapeOffsetY:Q=0,iconOffsetX:oe=0,iconOffsetY:se=0,iconPadding:ce=4,iconText:le=`?`,shapeRendering:ue=`auto`}){return K={height:91,padding:40,imageCharFill:`#555555`,imageFontFamily:`FontAwesome`,fill:`#FFCC33`,stroke:`#DFDFDF`,imageChar:`?`,strokeWidth:4,yOffset:-15,...K},q={text:``,fill:`transparent`,textFill:`#555555`,...q},u(Vertex4,{id:e,categoryID:t,text:n,textHeight:a,textPadding:s,textFill:l,textboxFill:m,textboxStroke:v,textboxStrokeWidth:T,textFontFamily:O,annotationGutter:k,annotations:A,iconAnnotations:U,cornerRadius:G,icon:K,subText:q,showLabel:J,noLabelRadius:ee,iconBorderWidth:Y,iconBorderColor:Z,iconBackgroundColor:te,iconFontColor:ne,iconFontSize:re,iconFontFamily:ie,shapeOffsetX:ae,shapeOffsetY:Q,iconOffsetX:oe,iconOffsetY:se,iconPadding:ce,iconText:le,shapeRendering:ue,icon:K,subText:q})},Subgraph=({text:e,width:n=100,height:a=100,fill:s=`transparent`,stroke:l=`black`,fontHeight:m=12,fontFamily:v})=>{let T=t.Utility.textSize(e,v,m,!1);return u(S,{children:[u(Rectangle,{width:n,height:a,fill:s,stroke:l}),u(`g`,{transform:`translate(${(-n+T.width)/2+4} ${(-a+T.height)/2+4})`,children:u(Text,{height:m,text:e,fontFamily:v})})]})};e.Annotations=Annotations,e.BUILD_VERSION=l,e.CentroidVertex3=CentroidVertex3,e.CentroidVertex4=CentroidVertex4,e.Circle=Circle,e.Edge=Edge,e.HTMLAdapter=HTMLAdapter,e.Icon=Icon,e.IconLabelledRect=IconLabelledRect,e.Icons=Icons,e.Image=Image,e.ImageChar=ImageChar,e.LabelledRect=LabelledRect,e.PKG_NAME=a,e.PKG_VERSION=s,Object.defineProperty(e,"React",{enumerable:!0,get:function(){return je}}),e.Rectangle=Rectangle,e.SVGAdapter=SVGAdapter,e.Shape=Shape,e.Span=Span,e.Square=Square,e.Subgraph=Subgraph,e.Text=Text,e.TextBox=TextBox,e.TextLine=TextLine,e.Vertex=Vertex,e.Vertex2=Vertex2,e.Vertex3=Vertex3,e.Vertex4=Vertex4,e.render=render,e.svgRender=svgRender});
3
3
  //# sourceMappingURL=index.umd.cjs.map