New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@hpcc-js/react

Package Overview
Dependencies
Maintainers
1
Versions
207
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hpcc-js/react - npm Package Compare versions

Comparing version 2.48.0 to 2.49.1

220

dist/index.es6.js
import { Utility, Palette, publish, HTMLWidget, SVGWidget } from '@hpcc-js/common';
var PKG_NAME = "@hpcc-js/react";
var PKG_VERSION = "2.48.0";
var BUILD_VERSION = "2.101.0";
var PKG_NAME$1 = "@hpcc-js/react";
var PKG_VERSION$1 = "2.49.1";
var BUILD_VERSION$1 = "2.102.4";
var PKG_NAME$1 = "@hpcc-js/preact-shim";
var PKG_VERSION$1 = "2.13.22";
var BUILD_VERSION$1 = "2.101.0";
var PKG_NAME = "@hpcc-js/preact-shim";
var PKG_VERSION = "2.14.1";
var BUILD_VERSION = "2.102.4";
var n,u,i,t,o,f,r={},e=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function s(n,l){for(var u in l)n[u]=l[u];return n}function a(n){var l=n.parentNode;l&&l.removeChild(n);}function h(n,l,u){var i,t=arguments,o={};for(i in l)"key"!==i&&"ref"!==i&&(o[i]=l[i]);if(arguments.length>3)for(u=[u],i=3;i<arguments.length;i++)u.push(t[i]);if(null!=u&&(o.children=u),"function"==typeof n&&null!=n.defaultProps)for(i in n.defaultProps)void 0===o[i]&&(o[i]=n.defaultProps[i]);return v(n,o,l&&l.key,l&&l.ref)}function v(l,u,i,t){var o={type:l,props:u,key:i,ref:t,__k:null,__:null,__b:0,__e:null,__d:null,__c:null,constructor:void 0};return n.vnode&&n.vnode(o),o}function y(n){return n.children}function d(n,l){this.props=n,this.context=l;}function m(n,l){if(null==l)return n.__?m(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?m(n):null}function w(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return w(n)}}function g(l){(!l.__d&&(l.__d=!0)&&1===u.push(l)||t!==n.debounceRendering)&&((t=n.debounceRendering)||i)(k);}function k(){var n,l,i,t,o,f,r;for(u.sort(function(n,l){return l.__v.__b-n.__v.__b});n=u.pop();)n.__d&&(i=void 0,t=void 0,f=(o=(l=n).__v).__e,(r=l.__P)&&(i=[],t=T(r,o,s({},o),l.__n,void 0!==r.ownerSVGElement,null,i,null==f?m(o):f),$(i,o),t!=f&&w(o)));}function _(n,l,u,i,t,o,f,c,s){var h,v,p,y,d,w,g,k=u&&u.__k||e,_=k.length;if(c==r&&(c=null!=o?o[0]:_?m(u,0):null),h=0,l.__k=b(l.__k,function(u){if(null!=u){if(u.__=l,u.__b=l.__b+1,null===(p=k[h])||p&&u.key==p.key&&u.type===p.type)k[h]=void 0;else for(v=0;v<_;v++){if((p=k[v])&&u.key==p.key&&u.type===p.type){k[v]=void 0;break}p=null;}if(y=T(n,u,p=p||r,i,t,o,f,c,s),(v=u.ref)&&p.ref!=v&&(g||(g=[]),p.ref&&g.push(p.ref,null,u),g.push(v,u.__c||y,u)),null!=y){if(null==w&&(w=y),null!=u.__d)y=u.__d,u.__d=null;else if(o==p||y!=c||null==y.parentNode){n:if(null==c||c.parentNode!==n)n.appendChild(y);else {for(d=c,v=0;(d=d.nextSibling)&&v<_;v+=2)if(d==y)break n;n.insertBefore(y,c);}"option"==l.type&&(n.value="");}c=y.nextSibling,"function"==typeof l.type&&(l.__d=y);}}return h++,u}),l.__e=w,null!=o&&"function"!=typeof l.type)for(h=o.length;h--;)null!=o[h]&&a(o[h]);for(h=_;h--;)null!=k[h]&&A(k[h],k[h]);if(g)for(h=0;h<g.length;h++)z(g[h],g[++h],g[++h]);}function b(n,l,u){if(null==u&&(u=[]),null==n||"boolean"==typeof n)l&&u.push(l(null));else if(Array.isArray(n))for(var i=0;i<n.length;i++)b(n[i],l,u);else u.push(l?l("string"==typeof n||"number"==typeof n?v(null,n,null,null):null!=n.__e||null!=n.__c?v(n.type,n.props,n.key,null):n):n);return u}function x(n,l,u,i,t){var o;for(o in u)o in l||P(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"value"===o||"checked"===o||u[o]===l[o]||P(n,o,l[o],u[o],i);}function C(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]="number"==typeof u&&!1===c.test(l)?u+"px":null==u?"":u;}function P(n,l,u,i,t){var o,f,r,e,c;if(t?"className"===l&&(l="class"):"class"===l&&(l="className"),"key"===l||"children"===l);else if("style"===l)if(o=n.style,"string"==typeof u)o.cssText=u;else {if("string"==typeof i&&(o.cssText="",i=null),i)for(f in i)u&&f in u||C(o,f,"");if(u)for(r in u)i&&u[r]===i[r]||C(o,r,u[r]);}else "o"===l[0]&&"n"===l[1]?(e=l!==(l=l.replace(/Capture$/,"")),c=l.toLowerCase(),l=(c in n?c:l).slice(2),u?(i||n.addEventListener(l,N,e),(n.l||(n.l={}))[l]=u):n.removeEventListener(l,N,e)):"list"!==l&&"tagName"!==l&&"form"!==l&&"type"!==l&&!t&&l in n?n[l]=null==u?"":u:"function"!=typeof u&&"dangerouslySetInnerHTML"!==l&&(l!==(l=l.replace(/^xlink:?/,""))?null==u||!1===u?n.removeAttributeNS("http://www.w3.org/1999/xlink",l.toLowerCase()):n.setAttributeNS("http://www.w3.org/1999/xlink",l.toLowerCase(),u):null==u||!1===u?n.removeAttribute(l):n.setAttribute(l,u));}function N(l){this.l[l.type](n.event?n.event(l):l);}function T(l,u,i,t,o,f,r,e,c){var a,h,v,p,m,w,g,k,x,C,P=u.type;if(void 0!==u.constructor)return null;(a=n.__b)&&a(u);try{n:if("function"==typeof P){if(k=u.props,x=(a=P.contextType)&&t[a.__c],C=a?x?x.props.value:a.__:t,i.__c?g=(h=u.__c=i.__c).__=h.__E:("prototype"in P&&P.prototype.render?u.__c=h=new P(k,C):(u.__c=h=new d(k,C),h.constructor=P,h.render=D),x&&x.sub(h),h.props=k,h.state||(h.state={}),h.context=C,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=P.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s({},h.__s)),s(h.__s,P.getDerivedStateFromProps(k,h.__s))),p=h.props,m=h.state,v)null==P.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==P.getDerivedStateFromProps&&k!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(k,C),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(k,h.__s,C)){for(h.props=k,h.state=h.__s,h.__d=!1,h.__v=u,u.__e=i.__e,u.__k=i.__k,h.__h.length&&r.push(h),a=0;a<u.__k.length;a++)u.__k[a]&&(u.__k[a].__=u);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(k,h.__s,C),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(p,m,w);});}h.context=C,h.props=k,h.state=h.__s,(a=n.__r)&&a(u),h.__d=!1,h.__v=u,h.__P=l,a=h.render(h.props,h.state,h.context),u.__k=b(null!=a&&a.type==y&&null==a.key?a.props.children:a),null!=h.getChildContext&&(t=s(s({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(w=h.getSnapshotBeforeUpdate(p,m)),_(l,u,i,t,o,f,r,e,c),h.base=u.__e,h.__h.length&&r.push(h),g&&(h.__E=h.__=null),h.__e=null;}else u.__e=j(i.__e,u,i,t,o,f,r,c);(a=n.diffed)&&a(u);}catch(l){n.__e(l,u,i);}return u.__e}function $(l,u){n.__c&&n.__c(u,l),l.some(function(u){try{l=u.__h,u.__h=[],l.some(function(n){n.call(u);});}catch(l){n.__e(l,u.__v);}});}function j(n,l,u,i,t,o,f,c){var s,a,h,v,p,y=u.props,d=l.props;if(t="svg"===l.type||t,null==n&&null!=o)for(s=0;s<o.length;s++)if(null!=(a=o[s])&&(null===l.type?3===a.nodeType:a.localName===l.type)){n=a,o[s]=null;break}if(null==n){if(null===l.type)return document.createTextNode(d);n=t?document.createElementNS("http://www.w3.org/2000/svg",l.type):document.createElement(l.type),o=null;}if(null===l.type)null!=o&&(o[o.indexOf(n)]=null),y!==d&&(n.data=d);else if(l!==u){if(null!=o&&(o=e.slice.call(n.childNodes)),h=(y=u.props||r).dangerouslySetInnerHTML,v=d.dangerouslySetInnerHTML,!c){if(y===r)for(y={},p=0;p<n.attributes.length;p++)y[n.attributes[p].name]=n.attributes[p].value;(v||h)&&(v&&h&&v.__html==h.__html||(n.innerHTML=v&&v.__html||""));}x(n,d,y,t,c),l.__k=l.props.children,v||_(n,l,u,i,"foreignObject"!==l.type&&t,o,f,r,c),c||("value"in d&&void 0!==d.value&&d.value!==n.value&&(n.value=null==d.value?"":d.value),"checked"in d&&void 0!==d.checked&&d.checked!==n.checked&&(n.checked=d.checked));}return n}function z(l,u,i){try{"function"==typeof l?l(u):l.current=u;}catch(l){n.__e(l,i);}}function A(l,u,i){var t,o,f;if(n.unmount&&n.unmount(l),(t=l.ref)&&z(t,null,u),i||"function"==typeof l.type||(i=null!=(o=l.__e)),l.__e=l.__d=null,null!=(t=l.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(l){n.__e(l,u);}t.base=t.__P=null;}if(t=l.__k)for(f=0;f<t.length;f++)t[f]&&A(t[f],u,i);null!=o&&a(o);}function D(n,l,u){return this.constructor(n,u)}function E(l,u,i){var t,f,c;n.__&&n.__(l,u),f=(t=i===o)?null:i&&i.__k||u.__k,l=h(y,null,[l]),c=[],T(u,(t?u:i||u).__k=l,f||r,r,void 0!==u.ownerSVGElement,i&&!t?[i]:f?null:e.slice.call(u.childNodes),c,i||r,t),$(c,l);}n={__e:function(n,l){for(var u;l=l.__;)if((u=l.__c)&&!u.__)try{if(u.constructor&&null!=u.constructor.getDerivedStateFromError)u.setState(u.constructor.getDerivedStateFromError(n));else {if(null==u.componentDidCatch)continue;u.componentDidCatch(n);}return g(u.__E=u)}catch(l){n=l;}throw n}},d.prototype.setState=function(n,l){var u;u=this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof n&&(n=n(u,this.props)),n&&s(u,n),null!=n&&this.__v&&(this.__e=!1,l&&this.__h.push(l),g(this));},d.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),g(this));},d.prototype.render=y,u=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,o=r,f=0;
var n,l$1,u$1,t$1,o$1,r$1,e$1={},c$1=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function a$1(n,l){for(var u in l)n[u]=l[u];return n}function h(n){var l=n.parentNode;l&&l.removeChild(n);}function v$1(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return y$1(l,f,t,o,null)}function y$1(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$1:r};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function d$1(n){return n.children}function _(n,l){this.props=n,this.context=l;}function k$1(n,l){if(null==l)return n.__?k$1(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?k$1(n):null}function b$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return b$1(n)}}function m$1(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!g$1.__r++||r$1!==l$1.debounceRendering)&&((r$1=l$1.debounceRendering)||o$1)(g$1);}function g$1(){for(var n;g$1.__r=t$1.length;)n=t$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=a$1({},t)).__v=t.__v+1,j$1(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?k$1(t):o,t.__h),z(u,t),t.__e!=o&&b$1(t)));});}function w$1(n,l,u,i,t,o,r,f,s,a){var h,v,p,_,b,m,g,w=i&&i.__k||c$1,A=w.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(_=u.__k[h]=null==(_=l[h])||"boolean"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?y$1(null,_,null,null,_):Array.isArray(_)?y$1(d$1,{children:_},null,null,null):_.__b>0?y$1(_.type,_.props,_.key,null,_.__v):_)){if(_.__=u,_.__b=u.__b+1,null===(p=w[h])||p&&_.key==p.key&&_.type===p.type)w[h]=void 0;else for(v=0;v<A;v++){if((p=w[v])&&_.key==p.key&&_.type===p.type){w[v]=void 0;break}p=null;}j$1(n,_,p=p||e$1,t,o,r,f,s,a),b=_.__e,(v=_.ref)&&p.ref!=v&&(g||(g=[]),p.ref&&g.push(p.ref,null,_),g.push(v,_.__c||b,_)),null!=b?(null==m&&(m=b),"function"==typeof _.type&&_.__k===p.__k?_.__d=s=x$1(_,s,n):s=P(n,_,p,w,b,s),"function"==typeof u.type&&(u.__d=s)):s&&p.__e==s&&s.parentNode!=n&&(s=k$1(p));}for(u.__e=m,h=A;h--;)null!=w[h]&&("function"==typeof u.type&&null!=w[h].__e&&w[h].__e==u.__d&&(u.__d=k$1(i,h+1)),N(w[h],w[h]));if(g)for(h=0;h<g.length;h++)M(g[h],g[++h],g[++h]);}function x$1(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?x$1(i,l,u):P(u,i,i,t,i.__e,l));return l}function P(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=2)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H(n,o,l[o],u[o],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||s.test(l)?u:u+"px";}function H(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T:I,o):n.removeEventListener(l,o?T:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function I(n){this.l[n.type+!1](l$1.event?l$1.event(n):n);}function T(n){this.l[n.type+!0](l$1.event?l$1.event(n):n);}function j$1(n,u,i,t,o,r,f,e,c){var s,h,v,y,p,k,b,m,g,x,A,P=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(s=l$1.__b)&&s(u);try{n:if("function"==typeof P){if(m=u.props,g=(s=P.contextType)&&t[s.__c],x=s?g?g.props.value:s.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in P&&P.prototype.render?u.__c=h=new P(m,x):(u.__c=h=new _(m,x),h.constructor=P,h.render=O),g&&g.sub(h),h.props=m,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=P.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=a$1({},h.__s)),a$1(h.__s,P.getDerivedStateFromProps(m,h.__s))),y=h.props,p=h.state,v)null==P.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==P.getDerivedStateFromProps&&m!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,x)||u.__v===i.__v){h.props=m,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,p,k);});}h.context=x,h.props=m,h.state=h.__s,(s=l$1.__r)&&s(u),h.__d=!1,h.__v=u,h.__P=n,s=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(t=a$1(a$1({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,p)),A=null!=s&&s.type===d$1&&null==s.key?s.props.children:s,w$1(n,Array.isArray(A)?A:[A],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L(i.__e,u,i,t,o,r,f,c);(s=l$1.diffed)&&s(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$1.__e(n,u,i);}}function z(n,u){l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function L(l,u,i,t,o,r,f,c){var s,a,v,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(o=!0),null!=r)for(;_<r.length;_++)if((s=r[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[_]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n.call(l.childNodes),a=(y=i.props||e$1).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(v||a)&&(v&&(a&&v.__html==a.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C(l,p,y,o,c),v)u.__k=[];else if(_=u.props.children,w$1(l,Array.isArray(_)?_:[_],u,i,t,o&&"foreignObject"!==d,r,f,r?r[0]:i.__k&&k$1(i,0),c),null!=r)for(_=r.length;_--;)null!=r[_]&&h(r[_]);c||("value"in p&&void 0!==(_=p.value)&&(_!==l.value||"progress"===d&&!_||"option"===d&&_!==y.value)&&H(l,"value",_,y.value,!1),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&H(l,"checked",_,y.checked,!1));}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function N(n,u,i){var t,o;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$1.__e(n,u);}t.base=t.__P=null;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,"function"!=typeof n.type);i||null==n.__e||h(n.__e),n.__e=n.__d=void 0;}function O(n,l,u){return this.constructor(n,u)}function S(u,i,t){var o,r,f;l$1.__&&l$1.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,f=[],j$1(i,u=(!o&&t||i).__k=v$1(d$1,null,[u]),r||e$1,e$1,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,f,!o&&t?t:r?r.__e:i.firstChild,o),z(f,u);}n=c$1.slice,l$1={__e:function(n,l){for(var u,i,t;l=l.__;)if((u=l.__c)&&!u.__)try{if((i=u.constructor)&&null!=i.getDerivedStateFromError&&(u.setState(i.getDerivedStateFromError(n)),t=u.__d),null!=u.componentDidCatch&&(u.componentDidCatch(n),t=u.__d),t)return u.__E=u}catch(l){n=l;}throw n}},u$1=0,_.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=a$1({},this.state),"function"==typeof n&&(n=n(a$1({},u),this.props)),n&&a$1(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),m$1(this));},_.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),m$1(this));},_.prototype.render=d$1,t$1=[],o$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g$1.__r=0;
var t$1,u$1,r$1,i$1=[],o$1=n.__r,f$1=n.diffed,c$1=n.__c,e$1=n.unmount;function a$1(t){n.__h&&n.__h(u$1);var r=u$1.__H||(u$1.__H={t:[],u:[]});return t>=r.t.length&&r.t.push({}),r.t[t]}function v$1(n){return m$1(x$1,n)}function m$1(n,r,i){var o=a$1(t$1++);return o.__c||(o.__c=u$1,o.i=[i?i(r):x$1(void 0,r),function(t){var u=n(o.i[0],t);o.i[0]!==u&&(o.i[0]=u,o.__c.setState({}));}]),o.i}function p(n,r){var i=a$1(t$1++);q(i.o,r)&&(i.i=n,i.o=r,u$1.__H.u.push(i));}function y$1(n,u){var r=a$1(t$1++);return q(r.o,u)?(r.o=u,r.v=n,r.i=n()):r.i}function F(){i$1.some(function(n){n.__P&&(n.__H.u.forEach(_$1),n.__H.u.forEach(g$1),n.__H.u=[]);}),i$1=[];}function _$1(n){n.m&&n.m();}function g$1(n){var t=n.i();"function"==typeof t&&(n.m=t);}function q(n,t){return !n||t.some(function(t,u){return t!==n[u]})}function x$1(n,t){return "function"==typeof t?t(n):t}n.__r=function(n){o$1&&o$1(n),t$1=0,(u$1=n.__c).__H&&(u$1.__H.u.forEach(_$1),u$1.__H.u.forEach(g$1),u$1.__H.u=[]);},n.diffed=function(t){f$1&&f$1(t);var u=t.__c;if(u){var o=u.__H;o&&o.u.length&&(1!==i$1.push(u)&&r$1===n.requestAnimationFrame||((r$1=n.requestAnimationFrame)||function(n){var t,u=function(){clearTimeout(r),cancelAnimationFrame(t),setTimeout(n);},r=setTimeout(u,100);"undefined"!=typeof window&&(t=requestAnimationFrame(u));})(F));}},n.__c=function(n,t){t.some(function(n){n.__h.forEach(_$1),n.__h=n.__h.filter(function(n){return !n.i||g$1(n)});}),c$1&&c$1(n,t);},n.unmount=function(n){e$1&&e$1(n);var t=n.__c;if(t){var u=t.__H;u&&u.t.forEach(function(n){return n.m&&n.m()});}};
var t,u,r,o=0,i=[],c=l$1.__b,f=l$1.__r,e=l$1.diffed,a=l$1.__c,v=l$1.unmount;function m(t,r){l$1.__h&&l$1.__h(u,t,o||r),o=0;var i=u.__H||(u.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function l(n){return o=1,p(w,n)}function p(n,r,o){var i=m(t++,2);return i.t=n,i.__c||(i.__=[o?o(r):w(void 0,r),function(n){var t=i.t(i.__[0],n);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}));}],i.__c=u),i.__}function y$2(r,o){var i=m(t++,3);!l$1.__s&&k(i.__H,o)&&(i.__=r,i.__H=o,u.__H.__h.push(i));}function d(n,u){var r=m(t++,7);return k(r.__H,u)&&(r.__=n(),r.__H=u,r.__h=n),r.__}function x$2(){for(var t;t=i.shift();)if(t.__P)try{t.__H.__h.forEach(g),t.__H.__h.forEach(j),t.__H.__h=[];}catch(u){t.__H.__h=[],l$1.__e(u,t.__v);}}l$1.__b=function(n){u=null,c&&c(n);},l$1.__r=function(n){f&&f(n),t=0;var r=(u=n.__c).__H;r&&(r.__h.forEach(g),r.__h.forEach(j),r.__h=[]);},l$1.diffed=function(t){e&&e(t);var o=t.__c;o&&o.__H&&o.__H.__h.length&&(1!==i.push(o)&&r===l$1.requestAnimationFrame||((r=l$1.requestAnimationFrame)||function(n){var t,u=function(){clearTimeout(r),b&&cancelAnimationFrame(t),setTimeout(n);},r=setTimeout(u,100);b&&(t=requestAnimationFrame(u));})(x$2)),u=null;},l$1.__c=function(t,u){u.some(function(t){try{t.__h.forEach(g),t.__h=t.__h.filter(function(n){return !n.__||j(n)});}catch(r){u.some(function(n){n.__h&&(n.__h=[]);}),u=[],l$1.__e(r,t.__v);}}),a&&a(t,u);},l$1.unmount=function(t){v&&v(t);var u,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{g(n);}catch(n){u=n;}}),u&&l$1.__e(u,r.__v));};var b="function"==typeof requestAnimationFrame;function g(n){var t=u,r=n.__c;"function"==typeof r&&(n.__c=void 0,r()),u=t;}function j(n){var t=u;n.__c=n.__(),u=t;}function k(n,t){return !n||n.length!==t.length||t.some(function(t,u){return t!==n[u]})}function w(n,t){return "function"==typeof t?t(n):t}
var index_es6 = /*#__PURE__*/Object.freeze({
__proto__: null,
BUILD_VERSION: BUILD_VERSION$1,
Component: d,
Fragment: y,
PKG_NAME: PKG_NAME$1,
PKG_VERSION: PKG_VERSION$1,
createElement: h,
h: h,
render: E,
useEffect: p,
useMemo: y$1,
useReducer: m$1,
useState: v$1
BUILD_VERSION: BUILD_VERSION,
Component: _,
Fragment: d$1,
PKG_NAME: PKG_NAME,
PKG_VERSION: PKG_VERSION,
createElement: v$1,
h: v$1,
render: S,
useEffect: y$2,
useMemo: d,
useReducer: p,
useState: l
});

@@ -198,7 +198,7 @@

function x$2(p) {
function x(p) {
return p[0];
}
function y$2(p) {
function y(p) {
return p[1];

@@ -208,4 +208,4 @@ }

function d3Line() {
var x = x$2,
y = y$2,
var x$1 = x,
y$1 = y,
defined = constant(true),

@@ -230,3 +230,3 @@ context = null,

}
if (defined0) output.point(+x(d, i, data), +y(d, i, data));
if (defined0) output.point(+x$1(d, i, data), +y$1(d, i, data));
}

@@ -238,7 +238,7 @@

line.x = function(_) {
return arguments.length ? (x = typeof _ === "function" ? _ : constant(+_), line) : x;
return arguments.length ? (x$1 = typeof _ === "function" ? _ : constant(+_), line) : x$1;
};
line.y = function(_) {
return arguments.length ? (y = typeof _ === "function" ? _ : constant(+_), line) : y;
return arguments.length ? (y$1 = typeof _ === "function" ? _ : constant(+_), line) : y$1;
};

@@ -333,3 +333,3 @@

console.log("strokeDasharray", strokeDasharray);
return h("path", { stroke: stroke, "stroke-dasharray": strokeDasharray, d: line(calcArc(points, curveDepth)) });
return v$1("path", { stroke: stroke, "stroke-dasharray": strokeDasharray, d: line(calcArc(points, curveDepth)) });
};

@@ -339,3 +339,3 @@

var x = _a.x, _b = _a.y, y = _b === void 0 ? 0 : _b, _c = _a.height, height = _c === void 0 ? 12 : _c, fill = _a.fill, stroke = _a.stroke, _d = _a.fontFamily, fontFamily = _d === void 0 ? "FontAwesome" : _d, _e = _a.char, char = _e === void 0 ? "" : _e;
return h("text", { x: x, y: y, fill: fill, stroke: stroke, "font-family": fontFamily, "font-size": height + "px", "dominant-baseline": "middle", style: "text-anchor: middle;alignment-baseline:middle;" }, fontFamily === "FontAwesome" ? Utility.faChar(char) : char);
return v$1("text", { x: x, y: y, fill: fill, stroke: stroke, "font-family": fontFamily, "font-size": "".concat(height, "px"), "dominant-baseline": "middle", style: "text-anchor: middle;alignment-baseline:middle;" }, fontFamily === "FontAwesome" ? Utility.faChar(char) : char);
};

@@ -398,11 +398,11 @@

var _b = _a.radius, radius = _b === void 0 ? 32 : _b, _c = _a.fill, fill = _c === void 0 ? "navy" : _c, _d = _a.stroke, stroke = _d === void 0 ? fill : _d, _e = _a.strokeWidth, strokeWidth = _e === void 0 ? 1 : _e, shapeRendering = _a.shapeRendering;
return h("circle", { r: radius, fill: fill, stroke: stroke, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
return v$1("circle", { r: radius, fill: fill, stroke: stroke, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
};
var Square = function (_a) {
var _b = _a.radius, radius = _b === void 0 ? 30 : _b, _c = _a.cornerRadius, cornerRadius = _c === void 0 ? 0 : _c, _d = _a.fill, fill = _d === void 0 ? "white" : _d, stroke = _a.stroke, _e = _a.strokeWidth, strokeWidth = _e === void 0 ? 1 : _e, shapeRendering = _a.shapeRendering;
return h("rect", { x: -radius, y: -radius, rx: cornerRadius, ry: cornerRadius, width: radius * 2, height: radius * 2, fill: fill, stroke: stroke || fill, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
return v$1("rect", { x: -radius, y: -radius, rx: cornerRadius, ry: cornerRadius, width: radius * 2, height: radius * 2, fill: fill, stroke: stroke || fill, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
};
var Rectangle = function (_a) {
var _b = _a.width, width = _b === void 0 ? 30 : _b, _c = _a.height, height = _c === void 0 ? 30 : _c, _d = _a.cornerRadius, cornerRadius = _d === void 0 ? 0 : _d, _e = _a.fill, fill = _e === void 0 ? "white" : _e, _f = _a.stroke, stroke = _f === void 0 ? "black" : _f, _g = _a.strokeWidth, strokeWidth = _g === void 0 ? 1 : _g, shapeRendering = _a.shapeRendering;
return h("rect", { x: -width / 2, y: -height / 2, rx: cornerRadius, ry: cornerRadius, width: width, height: height, fill: fill, stroke: stroke || fill, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
return v$1("rect", { x: -width / 2, y: -height / 2, rx: cornerRadius, ry: cornerRadius, width: width, height: height, fill: fill, stroke: stroke || fill, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
};

@@ -413,6 +413,6 @@ var Shape = function (_a) {

case "square":
return h(Square, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius });
return v$1(Square, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius });
case "circle":
default:
return h(Circle, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering });
return v$1(Circle, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering });
}

@@ -423,5 +423,5 @@ };

var _b = _a.shape, shape = _b === void 0 ? "circle" : _b, _c = _a.height, height = _c === void 0 ? 32 : _c, fill = _a.fill, stroke = _a.stroke, _d = _a.strokeWidth, strokeWidth = _d === void 0 ? 0 : _d, _e = _a.imageFontFamily, imageFontFamily = _e === void 0 ? "FontAwesome" : _e, _f = _a.imageChar, imageChar = _f === void 0 ? "" : _f, _g = _a.imageCharFill, imageCharFill = _g === void 0 ? Palette.textColor(fill) : _g, _h = _a.padding, padding = _h === void 0 ? height / 5 : _h, _j = _a.yOffset, yOffset = _j === void 0 ? 0 : _j, cornerRadius = _a.cornerRadius, shapeRendering = _a.shapeRendering;
return h(y, null,
h(Shape, { shape: shape, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }),
h(ImageChar, { y: yOffset, height: height - padding, fontFamily: imageFontFamily, char: imageChar, fill: imageCharFill, "font-weight": 400 }));
return v$1(d$1, null,
v$1(Shape, { shape: shape, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }),
v$1(ImageChar, { y: yOffset, height: height - padding, fontFamily: imageFontFamily, char: imageChar, fill: imageCharFill, "font-weight": 400 }));
};

@@ -431,13 +431,13 @@ var Icons = function (_a) {

var IconComponents = icons.map(function (cat) {
return h("g", { key: cat.id, id: cat.id },
h(Icon, __assign({}, cat)));
return v$1("g", { key: cat.id, id: cat.id },
v$1(Icon, __assign({}, cat)));
});
return h(y, null, IconComponents);
return v$1(d$1, null, IconComponents);
};
function render(C, props, parent, replaceNode) {
E(h(C, props), parent, replaceNode);
S(v$1(C, props), parent, replaceNode);
}
function svgRender(C, props, parent, replaceNode) {
E(h("svg", null, h(C, props)), parent, replaceNode);
S(v$1("svg", null, v$1(C, props)), parent, replaceNode);
}

@@ -507,9 +507,9 @@ var HTMLAdapter = /** @class */ (function (_super) {

var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.anchor, anchor = _c === void 0 ? "middle" : _c, _d = _a.baseline, baseline = _d === void 0 ? "middle" : _d, _e = _a.fontFamily, fontFamily = _e === void 0 ? "Verdana" : _e, _f = _a.fill, fill = _f === void 0 ? "black" : _f;
return h("text", { "font-family": fontFamily, "font-size": height + "px", "text-anchor": anchor, "dominant-baseline": baseline, fill: fill }, text);
return v$1("text", { "font-family": fontFamily, "font-size": "".concat(height, "px"), "text-anchor": anchor, "dominant-baseline": baseline, fill: fill }, text);
};
var Text = function (_a) {
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.fontFamily, fontFamily = _c === void 0 ? "Verdana" : _c, _d = _a.fill, fill = _d === void 0 ? "black" : _d, _e = _a.onSizeUpdate, onSizeUpdate = _e === void 0 ? function (size) { } : _e;
var _f = v$1(0), totalWidth = _f[0], onTotalWidthUpdate = _f[1];
var _g = v$1(0), totalHeight = _g[0], onTotalHeightUpdate = _g[1];
p(function () { return onSizeUpdate({ width: totalWidth, height: totalHeight }); }, [totalWidth, totalHeight]);
var _f = l(0), totalWidth = _f[0], onTotalWidthUpdate = _f[1];
var _g = l(0), totalHeight = _g[0], onTotalHeightUpdate = _g[1];
y$2(function () { return onSizeUpdate({ width: totalWidth, height: totalHeight }); }, [totalWidth, totalHeight]);
var parts = text.split("\n");

@@ -521,19 +521,19 @@ var ts = Utility.textSize(parts, fontFamily, height);

var TextLines = parts.map(function (p, i) {
return h("g", { transform: "translate(0 " + (yOffset + i * (height + 2)) + ")" },
h(TextLine, { text: p, height: height, fontFamily: fontFamily, fill: fill }));
return v$1("g", { transform: "translate(0 ".concat(yOffset + i * (height + 2), ")") },
v$1(TextLine, { text: p, height: height, fontFamily: fontFamily, fill: fill }));
});
return h(y, null, TextLines);
return v$1(d$1, null, TextLines);
};
var TextBox = function (_a) {
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.fontFamily, fontFamily = _c === void 0 ? "Verdana" : _c, _d = _a.padding, padding = _d === void 0 ? 4 : _d, _e = _a.fill, fill = _e === void 0 ? "whitesmoke" : _e, _f = _a.stroke, stroke = _f === void 0 ? "lightgray" : _f, _g = _a.textFill, textFill = _g === void 0 ? "black" : _g, _h = _a.strokeWidth, strokeWidth = _h === void 0 ? 1 : _h, _j = _a.cornerRadius, cornerRadius = _j === void 0 ? 0 : _j, _k = _a.onSizeUpdate, onSizeUpdate = _k === void 0 ? function (size) { } : _k;
var _l = v$1(0), textWidth = _l[0], onTextWidthUpdate = _l[1];
var _m = v$1(0), textHeight = _m[0], onTextHeightUpdate = _m[1];
p(function () { return onSizeUpdate({ width: textWidth, height: textHeight }); }, [textWidth, textHeight]);
var _l = l(0), textWidth = _l[0], onTextWidthUpdate = _l[1];
var _m = l(0), textHeight = _m[0], onTextHeightUpdate = _m[1];
y$2(function () { return onSizeUpdate({ width: textWidth, height: textHeight }); }, [textWidth, textHeight]);
var w = textWidth + padding * 2 + strokeWidth;
var h$1 = textHeight + padding * 2 + strokeWidth;
var h = textHeight + padding * 2 + strokeWidth;
var textOffsetY = Math.floor(height / 10);
return h(y, null,
h(Rectangle, { width: w, height: h$1, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
h("g", { transform: "translate(0 " + textOffsetY + ")" },
h(Text, { text: text, fontFamily: fontFamily, height: height, fill: textFill, onSizeUpdate: onTextSizeUpdate })));
return v$1(d$1, null,
v$1(Rectangle, { width: w, height: h, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
v$1("g", { transform: "translate(0 ".concat(textOffsetY, ")") },
v$1(Text, { text: text, fontFamily: fontFamily, height: height, fill: textFill, onSizeUpdate: onTextSizeUpdate })));
function onTextSizeUpdate(size) {

@@ -545,29 +545,29 @@ onTextWidthUpdate(size.width);

var LabelledRect = function (_a) {
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.width, width = _c === void 0 ? 12 : _c, _d = _a.fontFamily, fontFamily = _d === void 0 ? "Verdana" : _d, _e = _a.fontSize, fontSize = _e === void 0 ? 10 : _e, _f = _a.padding, padding = _f === void 0 ? 3 : _f, _g = _a.fill, fill = _g === void 0 ? "whitesmoke" : _g, _h = _a.stroke, stroke = _h === void 0 ? "lightgray" : _h, _j = _a.textFill, textFill = _j === void 0 ? "black" : _j, _k = _a.strokeWidth, strokeWidth = _k === void 0 ? 1 : _k, _l = _a.cornerRadius, cornerRadius = _l === void 0 ? 0 : _l, _m = _a.onSizeUpdate;
return h(y, null,
h(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
h("g", { transform: "translate(" + (-(width / 2) + padding) + " " + (-(height / 2) + padding) + ")" },
h(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" })));
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.width, width = _c === void 0 ? 12 : _c, _d = _a.fontFamily, fontFamily = _d === void 0 ? "Verdana" : _d, _e = _a.fontSize, fontSize = _e === void 0 ? 10 : _e, _f = _a.padding, padding = _f === void 0 ? 3 : _f, _g = _a.fill, fill = _g === void 0 ? "whitesmoke" : _g, _h = _a.stroke, stroke = _h === void 0 ? "lightgray" : _h, _j = _a.textFill, textFill = _j === void 0 ? "black" : _j, _k = _a.strokeWidth, strokeWidth = _k === void 0 ? 1 : _k, _l = _a.cornerRadius, cornerRadius = _l === void 0 ? 0 : _l; _a.onSizeUpdate;
return v$1(d$1, null,
v$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
v$1("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") },
v$1(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" })));
};
var IconLabelledRect = function (_a) {
var icon = _a.icon, iconFontFamily = _a.iconFontFamily, text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.width, width = _c === void 0 ? 12 : _c, _d = _a.fontFamily, fontFamily = _d === void 0 ? "Verdana" : _d, _e = _a.fontSize, fontSize = _e === void 0 ? 10 : _e, _f = _a.padding, padding = _f === void 0 ? 3 : _f, _g = _a.fill, fill = _g === void 0 ? "whitesmoke" : _g, _h = _a.stroke, stroke = _h === void 0 ? "lightgray" : _h, _j = _a.textFill, textFill = _j === void 0 ? "black" : _j, _k = _a.strokeWidth, strokeWidth = _k === void 0 ? 1 : _k, _l = _a.cornerRadius, cornerRadius = _l === void 0 ? 0 : _l, _m = _a.onSizeUpdate;
return h(y, null,
h(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
h("g", { transform: "translate(" + (-(width / 2) + padding) + " " + (-(height / 2) + padding) + ")" },
h(Icon, { shape: "square", imageFontFamily: iconFontFamily, imageChar: icon, height: height, fill: fill, imageCharFill: textFill })),
h("g", { transform: "translate(" + (-(width / 2) + (padding * 2) + height) + " " + (-(height / 2) + padding) + ")" },
h(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" })));
var icon = _a.icon, iconFontFamily = _a.iconFontFamily, text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.width, width = _c === void 0 ? 12 : _c, _d = _a.fontFamily, fontFamily = _d === void 0 ? "Verdana" : _d, _e = _a.fontSize, fontSize = _e === void 0 ? 10 : _e, _f = _a.padding, padding = _f === void 0 ? 3 : _f, _g = _a.fill, fill = _g === void 0 ? "whitesmoke" : _g, _h = _a.stroke, stroke = _h === void 0 ? "lightgray" : _h, _j = _a.textFill, textFill = _j === void 0 ? "black" : _j, _k = _a.strokeWidth, strokeWidth = _k === void 0 ? 1 : _k, _l = _a.cornerRadius, cornerRadius = _l === void 0 ? 0 : _l; _a.onSizeUpdate;
return v$1(d$1, null,
v$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
v$1("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") },
v$1(Icon, { shape: "square", imageFontFamily: iconFontFamily, imageChar: icon, height: height, fill: fill, imageCharFill: textFill })),
v$1("g", { transform: "translate(".concat(-(width / 2) + (padding * 2) + height, " ").concat(-(height / 2) + padding, ")") },
v$1(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" })));
};
var Annotations = function (_a) {
var x = _a.x, y$1 = _a.y, _b = _a.annotationIDs, annotationIDs = _b === void 0 ? [] : _b, _c = _a.stepSize, stepSize = _c === void 0 ? -16 : _c;
var IconComponents = annotationIDs.map(function (id, i) { return h("g", { key: id, transform: "translate(" + (x + i * stepSize) + " " + y$1 + ")" },
h("use", { href: "#" + id })); });
return h(y, null, IconComponents);
var x = _a.x, y = _a.y, _b = _a.annotationIDs, annotationIDs = _b === void 0 ? [] : _b, _c = _a.stepSize, stepSize = _c === void 0 ? -16 : _c;
var IconComponents = annotationIDs.map(function (id, i) { return v$1("g", { key: id, transform: "translate(".concat(x + i * stepSize, " ").concat(y, ")") },
v$1("use", { href: "#" + id })); });
return v$1(d$1, null, IconComponents);
};
var Vertex = function (_a) {
var _b = _a.categoryID, categoryID = _b === void 0 ? "" : _b, _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 12 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 4 : _e, _f = _a.icon, icon = _f === void 0 ? {} : _f, _g = _a.annotationsHeight, annotationsHeight = _g === void 0 ? 12 : _g, _h = _a.annotationIDs, annotationIDs = _h === void 0 ? [] : _h, textFill = _a.textFill, textboxFill = _a.textboxFill, textboxStroke = _a.textboxStroke, textFontFamily = _a.textFontFamily, _j = _a.onSizeUpdate, onSizeUpdate = _j === void 0 ? function (size) { } : _j, _k = _a.showLabel, showLabel = _k === void 0 ? true : _k;
var _l = v$1(0), textBoxWidth = _l[0], onTextBoxWidthUpdate = _l[1];
var _m = v$1(0), textBoxHeight = _m[0], onTextBoxHeightUpdate = _m[1];
p(function () { return onSizeUpdate({ width: 0, height: 0 }); }, [textBoxWidth, textBoxHeight]);
var _l = l(0), textBoxWidth = _l[0], onTextBoxWidthUpdate = _l[1];
var _m = l(0), textBoxHeight = _m[0], onTextBoxHeightUpdate = _m[1];
y$2(function () { return onSizeUpdate({ width: 0, height: 0 }); }, [textBoxWidth, textBoxHeight]);
icon = __assign({ imageChar: "fa-question", height: 32, fill: "transparent" }, icon);

@@ -583,11 +583,11 @@ var width = textBoxWidth;

}
var label = showLabel ? h("g", { transform: "translate(0 " + textboxOffsetY + ")" },
h(TextBox, { text: text, height: textHeight, padding: textPadding, onSizeUpdate: onTextBoxSizeUpdate, textFill: textFill, fill: textboxFill, stroke: textboxStroke, fontFamily: textFontFamily })) : undefined;
var label = showLabel ? v$1("g", { transform: "translate(0 ".concat(textboxOffsetY, ")") },
v$1(TextBox, { text: text, height: textHeight, padding: textPadding, onSizeUpdate: onTextBoxSizeUpdate, textFill: textFill, fill: textboxFill, stroke: textboxStroke, fontFamily: textFontFamily })) : undefined;
return categoryID ?
h("g", { transform: "translate(0 " + offsetY + ")" },
h("use", { href: "#" + categoryID }),
v$1("g", { transform: "translate(0 ".concat(offsetY, ")") },
v$1("use", { href: "#" + categoryID }),
label,
h(Annotations, { x: width / 2, y: annotationOffsetY, annotationIDs: annotationIDs })) :
h("g", { transform: "translate(0 " + offsetY + ")" },
h(Icon, __assign({}, icon)),
v$1(Annotations, { x: width / 2, y: annotationOffsetY, annotationIDs: annotationIDs })) :
v$1("g", { transform: "translate(0 ".concat(offsetY, ")") },
v$1(Icon, __assign({}, icon)),
label);

@@ -617,18 +617,18 @@ function onTextBoxSizeUpdate(size) {

return categoryID ?
h("g", { transform: "translate(" + offsetX + " " + offsetY + ")" },
h("g", { transform: "translate(" + iconOffsetX + " " + iconOffsetY + ")" },
h("use", { href: "#" + categoryID })),
h("g", { transform: "translate(" + textboxOffsetX + " " + textboxOffsetY + ")" },
h(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily })),
h(Annotations, { x: annotationOffsetX, y: annotationOffsetY, annotationIDs: annotationIDs, stepSize: stepSize }))
v$1("g", { transform: "translate(".concat(offsetX, " ").concat(offsetY, ")") },
v$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") },
v$1("use", { href: "#" + categoryID })),
v$1("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")") },
v$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily })),
v$1(Annotations, { x: annotationOffsetX, y: annotationOffsetY, annotationIDs: annotationIDs, stepSize: stepSize }))
:
h(y, null,
h("g", { transform: "translate(" + iconOffsetX + " " + iconOffsetY + ")scale(1.0002)" },
h(Icon, __assign({}, icon, { shape: "square" }))),
h("g", { transform: "translate(" + textboxOffsetX + " " + textboxOffsetY + ")scale(1.0002)" },
h(TextBox, { text: text, height: textHeight, padding: textPadding, stroke: textboxStroke, fill: textboxFill })));
v$1(d$1, null,
v$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")scale(1.0002)") },
v$1(Icon, __assign({}, icon, { shape: "square" }))),
v$1("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")scale(1.0002)") },
v$1(TextBox, { text: text, height: textHeight, padding: textPadding, stroke: textboxStroke, fill: textboxFill })));
};
var Vertex3 = function (_a) {
var _b = _a.categoryID, _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 10 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 4 : _e, _f = _a.textFill, textFill = _f === void 0 ? "#287EC4" : _f, _g = _a.textboxFill, textboxFill = _g === void 0 ? "white" : _g, _h = _a.textboxStroke, textboxStroke = _h === void 0 ? "#CCCCCC" : _h, _j = _a.textboxStrokeWidth, textboxStrokeWidth = _j === void 0 ? 1 : _j, _k = _a.textFontFamily, textFontFamily = _k === void 0 ? "Verdana" : _k, _l = _a.annotationGutter, annotationGutter = _l === void 0 ? 2 : _l, _m = _a.annotations, annotations = _m === void 0 ? [] : _m, _o = _a.cornerRadius, cornerRadius = _o === void 0 ? 3 : _o, _p = _a.icon, icon = _p === void 0 ? {} : _p, _q = _a.subText, subText = _q === void 0 ? {} : _q, _r = _a.showLabel, showLabel = _r === void 0 ? true : _r, _s = _a.noLabelRadius, noLabelRadius = _s === void 0 ? 5 : _s;
_a.categoryID; var _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 10 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 4 : _e, _f = _a.textFill, textFill = _f === void 0 ? "#287EC4" : _f, _g = _a.textboxFill, textboxFill = _g === void 0 ? "white" : _g, _h = _a.textboxStroke, textboxStroke = _h === void 0 ? "#CCCCCC" : _h, _j = _a.textboxStrokeWidth, textboxStrokeWidth = _j === void 0 ? 1 : _j, _k = _a.textFontFamily, textFontFamily = _k === void 0 ? "Verdana" : _k, _l = _a.annotationGutter, annotationGutter = _l === void 0 ? 2 : _l, _m = _a.annotations, annotations = _m === void 0 ? [] : _m, _o = _a.cornerRadius, cornerRadius = _o === void 0 ? 3 : _o, _p = _a.icon, icon = _p === void 0 ? {} : _p, _q = _a.subText, subText = _q === void 0 ? {} : _q, _r = _a.showLabel, showLabel = _r === void 0 ? true : _r, _s = _a.noLabelRadius, noLabelRadius = _s === void 0 ? 5 : _s;
icon = __assign({ height: 50, imageChar: "?", imageFontFamily: "FontAwesome", imageCharFill: "#555555", fill: "transparent", strokeWidth: 0 }, icon);

@@ -652,4 +652,4 @@ subText = __assign({ text: "", fill: "white", textFill: "#555555" }, subText);

var annoOffsetX = fullAnnotationWidth - (annoShapeWidth / 2);
annotationArr.push(h("g", { class: "vertex3-anno", transform: "translate(" + annoOffsetX + " " + annoOffsetY + ")" },
h(Icon, __assign({}, anno, { shape: "square", height: textShapeHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 }))));
annotationArr.push(v$1("g", { class: "vertex3-anno", transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") },
v$1(Icon, __assign({}, anno, { shape: "square", height: textShapeHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 }))));
});

@@ -659,3 +659,3 @@ if (annotations.length > 0) {

}
var textElement = h("g", { transform: "translate(" + textOffsetX + " " + annoOffsetY + ")" }, !showLabel || text === "" ? h("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : h(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius }));
var textElement = v$1("g", { transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? v$1("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : v$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius }));
var iconHeight = icon.height || 20;

@@ -673,8 +673,8 @@ var iconStrokeWidth = icon.strokeWidth || 0;

}
var subtextElement = subText.text === "" ? null : h("g", { transform: "translate(" + subTextOffsetX + " " + subTextOffsetY + ")" },
h(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius })));
return h("g", null,
h("g", { transform: "translate(" + iconOffsetX + " " + iconOffsetY + ")" },
h(Icon, __assign({}, icon))),
h("g", { transform: "translate(" + -fullAnnotationWidth / 2 + " " + annoOffsetY + ")" },
var subtextElement = subText.text === "" ? null : v$1("g", { transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") },
v$1(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius })));
return v$1("g", null,
v$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") },
v$1(Icon, __assign({}, icon))),
v$1("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") },
textElement,

@@ -704,3 +704,3 @@ annotationArr),

};
return h(Vertex3, __assign({}, props, { icon: icon, subText: subText }));
return v$1(Vertex3, __assign({}, props, { icon: icon, subText: subText }));
};

@@ -711,9 +711,9 @@

var tSize = Utility.textSize(text, fontFamily, fontHeight, false);
return h(y, null,
h(Rectangle, { width: width, height: height, fill: fill, stroke: stroke }),
h("g", { transform: "translate(" + ((-width + tSize.width) / 2 + 4) + " " + ((-height + tSize.height) / 2 + 4) + ")" },
h(Text, { height: fontHeight, text: text, fontFamily: fontFamily })));
return v$1(d$1, null,
v$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke }),
v$1("g", { transform: "translate(".concat((-width + tSize.width) / 2 + 4, " ").concat((-height + tSize.height) / 2 + 4, ")") },
v$1(Text, { height: fontHeight, text: text, fontFamily: fontFamily })));
};
export { Annotations, BUILD_VERSION, CentroidVertex3, Circle, Edge, HTMLAdapter, Icon, IconLabelledRect, Icons, ImageChar, LabelledRect, PKG_NAME, PKG_VERSION, index_es6 as React, Rectangle, SVGAdapter, Shape, Square, Subgraph, Text, TextBox, TextLine, Vertex, Vertex2, Vertex3, render, svgRender };
export { Annotations, BUILD_VERSION$1 as BUILD_VERSION, CentroidVertex3, Circle, Edge, HTMLAdapter, Icon, IconLabelledRect, Icons, ImageChar, LabelledRect, PKG_NAME$1 as PKG_NAME, PKG_VERSION$1 as PKG_VERSION, index_es6 as React, Rectangle, SVGAdapter, Shape, Square, Subgraph, Text, TextBox, TextLine, Vertex, Vertex2, Vertex3, render, svgRender };
//# sourceMappingURL=index.es6.js.map
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@hpcc-js/common')) :
typeof define === 'function' && define.amd ? define(['exports', '@hpcc-js/common'], factory) :
(global = global || self, factory(global['@hpcc-js/react'] = {}, global['@hpcc-js/common']));
}(this, (function (exports, common) { 'use strict';
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@hpcc-js/react"] = {}, global["@hpcc-js/common"]));
})(this, (function (exports, common) { 'use strict';
var PKG_NAME = "@hpcc-js/react";
var PKG_VERSION = "2.48.0";
var BUILD_VERSION = "2.101.0";
var PKG_NAME$1 = "@hpcc-js/react";
var PKG_VERSION$1 = "2.49.1";
var BUILD_VERSION$1 = "2.102.4";
var PKG_NAME$1 = "@hpcc-js/preact-shim";
var PKG_VERSION$1 = "2.13.22";
var BUILD_VERSION$1 = "2.101.0";
var PKG_NAME = "@hpcc-js/preact-shim";
var PKG_VERSION = "2.14.1";
var BUILD_VERSION = "2.102.4";
var n,u,i,t,o,f,r={},e=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function s(n,l){for(var u in l)n[u]=l[u];return n}function a(n){var l=n.parentNode;l&&l.removeChild(n);}function h(n,l,u){var i,t=arguments,o={};for(i in l)"key"!==i&&"ref"!==i&&(o[i]=l[i]);if(arguments.length>3)for(u=[u],i=3;i<arguments.length;i++)u.push(t[i]);if(null!=u&&(o.children=u),"function"==typeof n&&null!=n.defaultProps)for(i in n.defaultProps)void 0===o[i]&&(o[i]=n.defaultProps[i]);return v(n,o,l&&l.key,l&&l.ref)}function v(l,u,i,t){var o={type:l,props:u,key:i,ref:t,__k:null,__:null,__b:0,__e:null,__d:null,__c:null,constructor:void 0};return n.vnode&&n.vnode(o),o}function y(n){return n.children}function d(n,l){this.props=n,this.context=l;}function m(n,l){if(null==l)return n.__?m(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?m(n):null}function w(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return w(n)}}function g(l){(!l.__d&&(l.__d=!0)&&1===u.push(l)||t!==n.debounceRendering)&&((t=n.debounceRendering)||i)(k);}function k(){var n,l,i,t,o,f,r;for(u.sort(function(n,l){return l.__v.__b-n.__v.__b});n=u.pop();)n.__d&&(i=void 0,t=void 0,f=(o=(l=n).__v).__e,(r=l.__P)&&(i=[],t=T(r,o,s({},o),l.__n,void 0!==r.ownerSVGElement,null,i,null==f?m(o):f),$(i,o),t!=f&&w(o)));}function _(n,l,u,i,t,o,f,c,s){var h,v,p,y,d,w,g,k=u&&u.__k||e,_=k.length;if(c==r&&(c=null!=o?o[0]:_?m(u,0):null),h=0,l.__k=b(l.__k,function(u){if(null!=u){if(u.__=l,u.__b=l.__b+1,null===(p=k[h])||p&&u.key==p.key&&u.type===p.type)k[h]=void 0;else for(v=0;v<_;v++){if((p=k[v])&&u.key==p.key&&u.type===p.type){k[v]=void 0;break}p=null;}if(y=T(n,u,p=p||r,i,t,o,f,c,s),(v=u.ref)&&p.ref!=v&&(g||(g=[]),p.ref&&g.push(p.ref,null,u),g.push(v,u.__c||y,u)),null!=y){if(null==w&&(w=y),null!=u.__d)y=u.__d,u.__d=null;else if(o==p||y!=c||null==y.parentNode){n:if(null==c||c.parentNode!==n)n.appendChild(y);else {for(d=c,v=0;(d=d.nextSibling)&&v<_;v+=2)if(d==y)break n;n.insertBefore(y,c);}"option"==l.type&&(n.value="");}c=y.nextSibling,"function"==typeof l.type&&(l.__d=y);}}return h++,u}),l.__e=w,null!=o&&"function"!=typeof l.type)for(h=o.length;h--;)null!=o[h]&&a(o[h]);for(h=_;h--;)null!=k[h]&&A(k[h],k[h]);if(g)for(h=0;h<g.length;h++)z(g[h],g[++h],g[++h]);}function b(n,l,u){if(null==u&&(u=[]),null==n||"boolean"==typeof n)l&&u.push(l(null));else if(Array.isArray(n))for(var i=0;i<n.length;i++)b(n[i],l,u);else u.push(l?l("string"==typeof n||"number"==typeof n?v(null,n,null,null):null!=n.__e||null!=n.__c?v(n.type,n.props,n.key,null):n):n);return u}function x(n,l,u,i,t){var o;for(o in u)o in l||P(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"value"===o||"checked"===o||u[o]===l[o]||P(n,o,l[o],u[o],i);}function C(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]="number"==typeof u&&!1===c.test(l)?u+"px":null==u?"":u;}function P(n,l,u,i,t){var o,f,r,e,c;if(t?"className"===l&&(l="class"):"class"===l&&(l="className"),"key"===l||"children"===l);else if("style"===l)if(o=n.style,"string"==typeof u)o.cssText=u;else {if("string"==typeof i&&(o.cssText="",i=null),i)for(f in i)u&&f in u||C(o,f,"");if(u)for(r in u)i&&u[r]===i[r]||C(o,r,u[r]);}else "o"===l[0]&&"n"===l[1]?(e=l!==(l=l.replace(/Capture$/,"")),c=l.toLowerCase(),l=(c in n?c:l).slice(2),u?(i||n.addEventListener(l,N,e),(n.l||(n.l={}))[l]=u):n.removeEventListener(l,N,e)):"list"!==l&&"tagName"!==l&&"form"!==l&&"type"!==l&&!t&&l in n?n[l]=null==u?"":u:"function"!=typeof u&&"dangerouslySetInnerHTML"!==l&&(l!==(l=l.replace(/^xlink:?/,""))?null==u||!1===u?n.removeAttributeNS("http://www.w3.org/1999/xlink",l.toLowerCase()):n.setAttributeNS("http://www.w3.org/1999/xlink",l.toLowerCase(),u):null==u||!1===u?n.removeAttribute(l):n.setAttribute(l,u));}function N(l){this.l[l.type](n.event?n.event(l):l);}function T(l,u,i,t,o,f,r,e,c){var a,h,v,p,m,w,g,k,x,C,P=u.type;if(void 0!==u.constructor)return null;(a=n.__b)&&a(u);try{n:if("function"==typeof P){if(k=u.props,x=(a=P.contextType)&&t[a.__c],C=a?x?x.props.value:a.__:t,i.__c?g=(h=u.__c=i.__c).__=h.__E:("prototype"in P&&P.prototype.render?u.__c=h=new P(k,C):(u.__c=h=new d(k,C),h.constructor=P,h.render=D),x&&x.sub(h),h.props=k,h.state||(h.state={}),h.context=C,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=P.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s({},h.__s)),s(h.__s,P.getDerivedStateFromProps(k,h.__s))),p=h.props,m=h.state,v)null==P.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==P.getDerivedStateFromProps&&k!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(k,C),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(k,h.__s,C)){for(h.props=k,h.state=h.__s,h.__d=!1,h.__v=u,u.__e=i.__e,u.__k=i.__k,h.__h.length&&r.push(h),a=0;a<u.__k.length;a++)u.__k[a]&&(u.__k[a].__=u);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(k,h.__s,C),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(p,m,w);});}h.context=C,h.props=k,h.state=h.__s,(a=n.__r)&&a(u),h.__d=!1,h.__v=u,h.__P=l,a=h.render(h.props,h.state,h.context),u.__k=b(null!=a&&a.type==y&&null==a.key?a.props.children:a),null!=h.getChildContext&&(t=s(s({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(w=h.getSnapshotBeforeUpdate(p,m)),_(l,u,i,t,o,f,r,e,c),h.base=u.__e,h.__h.length&&r.push(h),g&&(h.__E=h.__=null),h.__e=null;}else u.__e=j(i.__e,u,i,t,o,f,r,c);(a=n.diffed)&&a(u);}catch(l){n.__e(l,u,i);}return u.__e}function $(l,u){n.__c&&n.__c(u,l),l.some(function(u){try{l=u.__h,u.__h=[],l.some(function(n){n.call(u);});}catch(l){n.__e(l,u.__v);}});}function j(n,l,u,i,t,o,f,c){var s,a,h,v,p,y=u.props,d=l.props;if(t="svg"===l.type||t,null==n&&null!=o)for(s=0;s<o.length;s++)if(null!=(a=o[s])&&(null===l.type?3===a.nodeType:a.localName===l.type)){n=a,o[s]=null;break}if(null==n){if(null===l.type)return document.createTextNode(d);n=t?document.createElementNS("http://www.w3.org/2000/svg",l.type):document.createElement(l.type),o=null;}if(null===l.type)null!=o&&(o[o.indexOf(n)]=null),y!==d&&(n.data=d);else if(l!==u){if(null!=o&&(o=e.slice.call(n.childNodes)),h=(y=u.props||r).dangerouslySetInnerHTML,v=d.dangerouslySetInnerHTML,!c){if(y===r)for(y={},p=0;p<n.attributes.length;p++)y[n.attributes[p].name]=n.attributes[p].value;(v||h)&&(v&&h&&v.__html==h.__html||(n.innerHTML=v&&v.__html||""));}x(n,d,y,t,c),l.__k=l.props.children,v||_(n,l,u,i,"foreignObject"!==l.type&&t,o,f,r,c),c||("value"in d&&void 0!==d.value&&d.value!==n.value&&(n.value=null==d.value?"":d.value),"checked"in d&&void 0!==d.checked&&d.checked!==n.checked&&(n.checked=d.checked));}return n}function z(l,u,i){try{"function"==typeof l?l(u):l.current=u;}catch(l){n.__e(l,i);}}function A(l,u,i){var t,o,f;if(n.unmount&&n.unmount(l),(t=l.ref)&&z(t,null,u),i||"function"==typeof l.type||(i=null!=(o=l.__e)),l.__e=l.__d=null,null!=(t=l.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(l){n.__e(l,u);}t.base=t.__P=null;}if(t=l.__k)for(f=0;f<t.length;f++)t[f]&&A(t[f],u,i);null!=o&&a(o);}function D(n,l,u){return this.constructor(n,u)}function E(l,u,i){var t,f,c;n.__&&n.__(l,u),f=(t=i===o)?null:i&&i.__k||u.__k,l=h(y,null,[l]),c=[],T(u,(t?u:i||u).__k=l,f||r,r,void 0!==u.ownerSVGElement,i&&!t?[i]:f?null:e.slice.call(u.childNodes),c,i||r,t),$(c,l);}n={__e:function(n,l){for(var u;l=l.__;)if((u=l.__c)&&!u.__)try{if(u.constructor&&null!=u.constructor.getDerivedStateFromError)u.setState(u.constructor.getDerivedStateFromError(n));else {if(null==u.componentDidCatch)continue;u.componentDidCatch(n);}return g(u.__E=u)}catch(l){n=l;}throw n}},d.prototype.setState=function(n,l){var u;u=this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof n&&(n=n(u,this.props)),n&&s(u,n),null!=n&&this.__v&&(this.__e=!1,l&&this.__h.push(l),g(this));},d.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),g(this));},d.prototype.render=y,u=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,o=r,f=0;
var n,l$1,u$1,t$1,o$1,r$1,e$1={},c$1=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function a$1(n,l){for(var u in l)n[u]=l[u];return n}function h(n){var l=n.parentNode;l&&l.removeChild(n);}function v$1(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return y$1(l,f,t,o,null)}function y$1(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$1:r};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function d$1(n){return n.children}function _(n,l){this.props=n,this.context=l;}function k$1(n,l){if(null==l)return n.__?k$1(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?k$1(n):null}function b$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return b$1(n)}}function m$1(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!g$1.__r++||r$1!==l$1.debounceRendering)&&((r$1=l$1.debounceRendering)||o$1)(g$1);}function g$1(){for(var n;g$1.__r=t$1.length;)n=t$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=a$1({},t)).__v=t.__v+1,j$1(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?k$1(t):o,t.__h),z(u,t),t.__e!=o&&b$1(t)));});}function w$1(n,l,u,i,t,o,r,f,s,a){var h,v,p,_,b,m,g,w=i&&i.__k||c$1,A=w.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(_=u.__k[h]=null==(_=l[h])||"boolean"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?y$1(null,_,null,null,_):Array.isArray(_)?y$1(d$1,{children:_},null,null,null):_.__b>0?y$1(_.type,_.props,_.key,null,_.__v):_)){if(_.__=u,_.__b=u.__b+1,null===(p=w[h])||p&&_.key==p.key&&_.type===p.type)w[h]=void 0;else for(v=0;v<A;v++){if((p=w[v])&&_.key==p.key&&_.type===p.type){w[v]=void 0;break}p=null;}j$1(n,_,p=p||e$1,t,o,r,f,s,a),b=_.__e,(v=_.ref)&&p.ref!=v&&(g||(g=[]),p.ref&&g.push(p.ref,null,_),g.push(v,_.__c||b,_)),null!=b?(null==m&&(m=b),"function"==typeof _.type&&_.__k===p.__k?_.__d=s=x$1(_,s,n):s=P(n,_,p,w,b,s),"function"==typeof u.type&&(u.__d=s)):s&&p.__e==s&&s.parentNode!=n&&(s=k$1(p));}for(u.__e=m,h=A;h--;)null!=w[h]&&("function"==typeof u.type&&null!=w[h].__e&&w[h].__e==u.__d&&(u.__d=k$1(i,h+1)),N(w[h],w[h]));if(g)for(h=0;h<g.length;h++)M(g[h],g[++h],g[++h]);}function x$1(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?x$1(i,l,u):P(u,i,i,t,i.__e,l));return l}function P(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=2)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H(n,o,l[o],u[o],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||s.test(l)?u:u+"px";}function H(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T:I,o):n.removeEventListener(l,o?T:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function I(n){this.l[n.type+!1](l$1.event?l$1.event(n):n);}function T(n){this.l[n.type+!0](l$1.event?l$1.event(n):n);}function j$1(n,u,i,t,o,r,f,e,c){var s,h,v,y,p,k,b,m,g,x,A,P=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(s=l$1.__b)&&s(u);try{n:if("function"==typeof P){if(m=u.props,g=(s=P.contextType)&&t[s.__c],x=s?g?g.props.value:s.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in P&&P.prototype.render?u.__c=h=new P(m,x):(u.__c=h=new _(m,x),h.constructor=P,h.render=O),g&&g.sub(h),h.props=m,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=P.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=a$1({},h.__s)),a$1(h.__s,P.getDerivedStateFromProps(m,h.__s))),y=h.props,p=h.state,v)null==P.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==P.getDerivedStateFromProps&&m!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,x)||u.__v===i.__v){h.props=m,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,p,k);});}h.context=x,h.props=m,h.state=h.__s,(s=l$1.__r)&&s(u),h.__d=!1,h.__v=u,h.__P=n,s=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(t=a$1(a$1({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,p)),A=null!=s&&s.type===d$1&&null==s.key?s.props.children:s,w$1(n,Array.isArray(A)?A:[A],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L(i.__e,u,i,t,o,r,f,c);(s=l$1.diffed)&&s(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$1.__e(n,u,i);}}function z(n,u){l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function L(l,u,i,t,o,r,f,c){var s,a,v,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(o=!0),null!=r)for(;_<r.length;_++)if((s=r[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[_]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n.call(l.childNodes),a=(y=i.props||e$1).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(v||a)&&(v&&(a&&v.__html==a.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C(l,p,y,o,c),v)u.__k=[];else if(_=u.props.children,w$1(l,Array.isArray(_)?_:[_],u,i,t,o&&"foreignObject"!==d,r,f,r?r[0]:i.__k&&k$1(i,0),c),null!=r)for(_=r.length;_--;)null!=r[_]&&h(r[_]);c||("value"in p&&void 0!==(_=p.value)&&(_!==l.value||"progress"===d&&!_||"option"===d&&_!==y.value)&&H(l,"value",_,y.value,!1),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&H(l,"checked",_,y.checked,!1));}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function N(n,u,i){var t,o;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$1.__e(n,u);}t.base=t.__P=null;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,"function"!=typeof n.type);i||null==n.__e||h(n.__e),n.__e=n.__d=void 0;}function O(n,l,u){return this.constructor(n,u)}function S(u,i,t){var o,r,f;l$1.__&&l$1.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,f=[],j$1(i,u=(!o&&t||i).__k=v$1(d$1,null,[u]),r||e$1,e$1,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,f,!o&&t?t:r?r.__e:i.firstChild,o),z(f,u);}n=c$1.slice,l$1={__e:function(n,l){for(var u,i,t;l=l.__;)if((u=l.__c)&&!u.__)try{if((i=u.constructor)&&null!=i.getDerivedStateFromError&&(u.setState(i.getDerivedStateFromError(n)),t=u.__d),null!=u.componentDidCatch&&(u.componentDidCatch(n),t=u.__d),t)return u.__E=u}catch(l){n=l;}throw n}},u$1=0,_.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=a$1({},this.state),"function"==typeof n&&(n=n(a$1({},u),this.props)),n&&a$1(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),m$1(this));},_.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),m$1(this));},_.prototype.render=d$1,t$1=[],o$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g$1.__r=0;
var t$1,u$1,r$1,i$1=[],o$1=n.__r,f$1=n.diffed,c$1=n.__c,e$1=n.unmount;function a$1(t){n.__h&&n.__h(u$1);var r=u$1.__H||(u$1.__H={t:[],u:[]});return t>=r.t.length&&r.t.push({}),r.t[t]}function v$1(n){return m$1(x$1,n)}function m$1(n,r,i){var o=a$1(t$1++);return o.__c||(o.__c=u$1,o.i=[i?i(r):x$1(void 0,r),function(t){var u=n(o.i[0],t);o.i[0]!==u&&(o.i[0]=u,o.__c.setState({}));}]),o.i}function p(n,r){var i=a$1(t$1++);q(i.o,r)&&(i.i=n,i.o=r,u$1.__H.u.push(i));}function y$1(n,u){var r=a$1(t$1++);return q(r.o,u)?(r.o=u,r.v=n,r.i=n()):r.i}function F(){i$1.some(function(n){n.__P&&(n.__H.u.forEach(_$1),n.__H.u.forEach(g$1),n.__H.u=[]);}),i$1=[];}function _$1(n){n.m&&n.m();}function g$1(n){var t=n.i();"function"==typeof t&&(n.m=t);}function q(n,t){return !n||t.some(function(t,u){return t!==n[u]})}function x$1(n,t){return "function"==typeof t?t(n):t}n.__r=function(n){o$1&&o$1(n),t$1=0,(u$1=n.__c).__H&&(u$1.__H.u.forEach(_$1),u$1.__H.u.forEach(g$1),u$1.__H.u=[]);},n.diffed=function(t){f$1&&f$1(t);var u=t.__c;if(u){var o=u.__H;o&&o.u.length&&(1!==i$1.push(u)&&r$1===n.requestAnimationFrame||((r$1=n.requestAnimationFrame)||function(n){var t,u=function(){clearTimeout(r),cancelAnimationFrame(t),setTimeout(n);},r=setTimeout(u,100);"undefined"!=typeof window&&(t=requestAnimationFrame(u));})(F));}},n.__c=function(n,t){t.some(function(n){n.__h.forEach(_$1),n.__h=n.__h.filter(function(n){return !n.i||g$1(n)});}),c$1&&c$1(n,t);},n.unmount=function(n){e$1&&e$1(n);var t=n.__c;if(t){var u=t.__H;u&&u.t.forEach(function(n){return n.m&&n.m()});}};
var t,u,r,o=0,i=[],c=l$1.__b,f=l$1.__r,e=l$1.diffed,a=l$1.__c,v=l$1.unmount;function m(t,r){l$1.__h&&l$1.__h(u,t,o||r),o=0;var i=u.__H||(u.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function l(n){return o=1,p(w,n)}function p(n,r,o){var i=m(t++,2);return i.t=n,i.__c||(i.__=[o?o(r):w(void 0,r),function(n){var t=i.t(i.__[0],n);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}));}],i.__c=u),i.__}function y$2(r,o){var i=m(t++,3);!l$1.__s&&k(i.__H,o)&&(i.__=r,i.__H=o,u.__H.__h.push(i));}function d(n,u){var r=m(t++,7);return k(r.__H,u)&&(r.__=n(),r.__H=u,r.__h=n),r.__}function x$2(){for(var t;t=i.shift();)if(t.__P)try{t.__H.__h.forEach(g),t.__H.__h.forEach(j),t.__H.__h=[];}catch(u){t.__H.__h=[],l$1.__e(u,t.__v);}}l$1.__b=function(n){u=null,c&&c(n);},l$1.__r=function(n){f&&f(n),t=0;var r=(u=n.__c).__H;r&&(r.__h.forEach(g),r.__h.forEach(j),r.__h=[]);},l$1.diffed=function(t){e&&e(t);var o=t.__c;o&&o.__H&&o.__H.__h.length&&(1!==i.push(o)&&r===l$1.requestAnimationFrame||((r=l$1.requestAnimationFrame)||function(n){var t,u=function(){clearTimeout(r),b&&cancelAnimationFrame(t),setTimeout(n);},r=setTimeout(u,100);b&&(t=requestAnimationFrame(u));})(x$2)),u=null;},l$1.__c=function(t,u){u.some(function(t){try{t.__h.forEach(g),t.__h=t.__h.filter(function(n){return !n.__||j(n)});}catch(r){u.some(function(n){n.__h&&(n.__h=[]);}),u=[],l$1.__e(r,t.__v);}}),a&&a(t,u);},l$1.unmount=function(t){v&&v(t);var u,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{g(n);}catch(n){u=n;}}),u&&l$1.__e(u,r.__v));};var b="function"==typeof requestAnimationFrame;function g(n){var t=u,r=n.__c;"function"==typeof r&&(n.__c=void 0,r()),u=t;}function j(n){var t=u;n.__c=n.__(),u=t;}function k(n,t){return !n||n.length!==t.length||t.some(function(t,u){return t!==n[u]})}function w(n,t){return "function"==typeof t?t(n):t}
var index_es6 = /*#__PURE__*/Object.freeze({
__proto__: null,
BUILD_VERSION: BUILD_VERSION$1,
Component: d,
Fragment: y,
PKG_NAME: PKG_NAME$1,
PKG_VERSION: PKG_VERSION$1,
createElement: h,
h: h,
render: E,
useEffect: p,
useMemo: y$1,
useReducer: m$1,
useState: v$1
BUILD_VERSION: BUILD_VERSION,
Component: _,
Fragment: d$1,
PKG_NAME: PKG_NAME,
PKG_VERSION: PKG_VERSION,
createElement: v$1,
h: v$1,
render: S,
useEffect: y$2,
useMemo: d,
useReducer: p,
useState: l
});

@@ -202,7 +202,7 @@

function x$2(p) {
function x(p) {
return p[0];
}
function y$2(p) {
function y(p) {
return p[1];

@@ -212,4 +212,4 @@ }

function d3Line() {
var x = x$2,
y = y$2,
var x$1 = x,
y$1 = y,
defined = constant(true),

@@ -234,3 +234,3 @@ context = null,

}
if (defined0) output.point(+x(d, i, data), +y(d, i, data));
if (defined0) output.point(+x$1(d, i, data), +y$1(d, i, data));
}

@@ -242,7 +242,7 @@

line.x = function(_) {
return arguments.length ? (x = typeof _ === "function" ? _ : constant(+_), line) : x;
return arguments.length ? (x$1 = typeof _ === "function" ? _ : constant(+_), line) : x$1;
};
line.y = function(_) {
return arguments.length ? (y = typeof _ === "function" ? _ : constant(+_), line) : y;
return arguments.length ? (y$1 = typeof _ === "function" ? _ : constant(+_), line) : y$1;
};

@@ -337,3 +337,3 @@

console.log("strokeDasharray", strokeDasharray);
return h("path", { stroke: stroke, "stroke-dasharray": strokeDasharray, d: line(calcArc(points, curveDepth)) });
return v$1("path", { stroke: stroke, "stroke-dasharray": strokeDasharray, d: line(calcArc(points, curveDepth)) });
};

@@ -343,3 +343,3 @@

var x = _a.x, _b = _a.y, y = _b === void 0 ? 0 : _b, _c = _a.height, height = _c === void 0 ? 12 : _c, fill = _a.fill, stroke = _a.stroke, _d = _a.fontFamily, fontFamily = _d === void 0 ? "FontAwesome" : _d, _e = _a.char, char = _e === void 0 ? "" : _e;
return h("text", { x: x, y: y, fill: fill, stroke: stroke, "font-family": fontFamily, "font-size": height + "px", "dominant-baseline": "middle", style: "text-anchor: middle;alignment-baseline:middle;" }, fontFamily === "FontAwesome" ? common.Utility.faChar(char) : char);
return v$1("text", { x: x, y: y, fill: fill, stroke: stroke, "font-family": fontFamily, "font-size": "".concat(height, "px"), "dominant-baseline": "middle", style: "text-anchor: middle;alignment-baseline:middle;" }, fontFamily === "FontAwesome" ? common.Utility.faChar(char) : char);
};

@@ -402,11 +402,11 @@

var _b = _a.radius, radius = _b === void 0 ? 32 : _b, _c = _a.fill, fill = _c === void 0 ? "navy" : _c, _d = _a.stroke, stroke = _d === void 0 ? fill : _d, _e = _a.strokeWidth, strokeWidth = _e === void 0 ? 1 : _e, shapeRendering = _a.shapeRendering;
return h("circle", { r: radius, fill: fill, stroke: stroke, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
return v$1("circle", { r: radius, fill: fill, stroke: stroke, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
};
var Square = function (_a) {
var _b = _a.radius, radius = _b === void 0 ? 30 : _b, _c = _a.cornerRadius, cornerRadius = _c === void 0 ? 0 : _c, _d = _a.fill, fill = _d === void 0 ? "white" : _d, stroke = _a.stroke, _e = _a.strokeWidth, strokeWidth = _e === void 0 ? 1 : _e, shapeRendering = _a.shapeRendering;
return h("rect", { x: -radius, y: -radius, rx: cornerRadius, ry: cornerRadius, width: radius * 2, height: radius * 2, fill: fill, stroke: stroke || fill, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
return v$1("rect", { x: -radius, y: -radius, rx: cornerRadius, ry: cornerRadius, width: radius * 2, height: radius * 2, fill: fill, stroke: stroke || fill, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
};
var Rectangle = function (_a) {
var _b = _a.width, width = _b === void 0 ? 30 : _b, _c = _a.height, height = _c === void 0 ? 30 : _c, _d = _a.cornerRadius, cornerRadius = _d === void 0 ? 0 : _d, _e = _a.fill, fill = _e === void 0 ? "white" : _e, _f = _a.stroke, stroke = _f === void 0 ? "black" : _f, _g = _a.strokeWidth, strokeWidth = _g === void 0 ? 1 : _g, shapeRendering = _a.shapeRendering;
return h("rect", { x: -width / 2, y: -height / 2, rx: cornerRadius, ry: cornerRadius, width: width, height: height, fill: fill, stroke: stroke || fill, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
return v$1("rect", { x: -width / 2, y: -height / 2, rx: cornerRadius, ry: cornerRadius, width: width, height: height, fill: fill, stroke: stroke || fill, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
};

@@ -417,6 +417,6 @@ var Shape = function (_a) {

case "square":
return h(Square, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius });
return v$1(Square, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius });
case "circle":
default:
return h(Circle, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering });
return v$1(Circle, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering });
}

@@ -427,5 +427,5 @@ };

var _b = _a.shape, shape = _b === void 0 ? "circle" : _b, _c = _a.height, height = _c === void 0 ? 32 : _c, fill = _a.fill, stroke = _a.stroke, _d = _a.strokeWidth, strokeWidth = _d === void 0 ? 0 : _d, _e = _a.imageFontFamily, imageFontFamily = _e === void 0 ? "FontAwesome" : _e, _f = _a.imageChar, imageChar = _f === void 0 ? "" : _f, _g = _a.imageCharFill, imageCharFill = _g === void 0 ? common.Palette.textColor(fill) : _g, _h = _a.padding, padding = _h === void 0 ? height / 5 : _h, _j = _a.yOffset, yOffset = _j === void 0 ? 0 : _j, cornerRadius = _a.cornerRadius, shapeRendering = _a.shapeRendering;
return h(y, null,
h(Shape, { shape: shape, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }),
h(ImageChar, { y: yOffset, height: height - padding, fontFamily: imageFontFamily, char: imageChar, fill: imageCharFill, "font-weight": 400 }));
return v$1(d$1, null,
v$1(Shape, { shape: shape, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }),
v$1(ImageChar, { y: yOffset, height: height - padding, fontFamily: imageFontFamily, char: imageChar, fill: imageCharFill, "font-weight": 400 }));
};

@@ -435,13 +435,13 @@ var Icons = function (_a) {

var IconComponents = icons.map(function (cat) {
return h("g", { key: cat.id, id: cat.id },
h(Icon, __assign({}, cat)));
return v$1("g", { key: cat.id, id: cat.id },
v$1(Icon, __assign({}, cat)));
});
return h(y, null, IconComponents);
return v$1(d$1, null, IconComponents);
};
function render(C, props, parent, replaceNode) {
E(h(C, props), parent, replaceNode);
S(v$1(C, props), parent, replaceNode);
}
function svgRender(C, props, parent, replaceNode) {
E(h("svg", null, h(C, props)), parent, replaceNode);
S(v$1("svg", null, v$1(C, props)), parent, replaceNode);
}

@@ -511,9 +511,9 @@ var HTMLAdapter = /** @class */ (function (_super) {

var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.anchor, anchor = _c === void 0 ? "middle" : _c, _d = _a.baseline, baseline = _d === void 0 ? "middle" : _d, _e = _a.fontFamily, fontFamily = _e === void 0 ? "Verdana" : _e, _f = _a.fill, fill = _f === void 0 ? "black" : _f;
return h("text", { "font-family": fontFamily, "font-size": height + "px", "text-anchor": anchor, "dominant-baseline": baseline, fill: fill }, text);
return v$1("text", { "font-family": fontFamily, "font-size": "".concat(height, "px"), "text-anchor": anchor, "dominant-baseline": baseline, fill: fill }, text);
};
var Text = function (_a) {
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.fontFamily, fontFamily = _c === void 0 ? "Verdana" : _c, _d = _a.fill, fill = _d === void 0 ? "black" : _d, _e = _a.onSizeUpdate, onSizeUpdate = _e === void 0 ? function (size) { } : _e;
var _f = v$1(0), totalWidth = _f[0], onTotalWidthUpdate = _f[1];
var _g = v$1(0), totalHeight = _g[0], onTotalHeightUpdate = _g[1];
p(function () { return onSizeUpdate({ width: totalWidth, height: totalHeight }); }, [totalWidth, totalHeight]);
var _f = l(0), totalWidth = _f[0], onTotalWidthUpdate = _f[1];
var _g = l(0), totalHeight = _g[0], onTotalHeightUpdate = _g[1];
y$2(function () { return onSizeUpdate({ width: totalWidth, height: totalHeight }); }, [totalWidth, totalHeight]);
var parts = text.split("\n");

@@ -525,19 +525,19 @@ var ts = common.Utility.textSize(parts, fontFamily, height);

var TextLines = parts.map(function (p, i) {
return h("g", { transform: "translate(0 " + (yOffset + i * (height + 2)) + ")" },
h(TextLine, { text: p, height: height, fontFamily: fontFamily, fill: fill }));
return v$1("g", { transform: "translate(0 ".concat(yOffset + i * (height + 2), ")") },
v$1(TextLine, { text: p, height: height, fontFamily: fontFamily, fill: fill }));
});
return h(y, null, TextLines);
return v$1(d$1, null, TextLines);
};
var TextBox = function (_a) {
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.fontFamily, fontFamily = _c === void 0 ? "Verdana" : _c, _d = _a.padding, padding = _d === void 0 ? 4 : _d, _e = _a.fill, fill = _e === void 0 ? "whitesmoke" : _e, _f = _a.stroke, stroke = _f === void 0 ? "lightgray" : _f, _g = _a.textFill, textFill = _g === void 0 ? "black" : _g, _h = _a.strokeWidth, strokeWidth = _h === void 0 ? 1 : _h, _j = _a.cornerRadius, cornerRadius = _j === void 0 ? 0 : _j, _k = _a.onSizeUpdate, onSizeUpdate = _k === void 0 ? function (size) { } : _k;
var _l = v$1(0), textWidth = _l[0], onTextWidthUpdate = _l[1];
var _m = v$1(0), textHeight = _m[0], onTextHeightUpdate = _m[1];
p(function () { return onSizeUpdate({ width: textWidth, height: textHeight }); }, [textWidth, textHeight]);
var _l = l(0), textWidth = _l[0], onTextWidthUpdate = _l[1];
var _m = l(0), textHeight = _m[0], onTextHeightUpdate = _m[1];
y$2(function () { return onSizeUpdate({ width: textWidth, height: textHeight }); }, [textWidth, textHeight]);
var w = textWidth + padding * 2 + strokeWidth;
var h$1 = textHeight + padding * 2 + strokeWidth;
var h = textHeight + padding * 2 + strokeWidth;
var textOffsetY = Math.floor(height / 10);
return h(y, null,
h(Rectangle, { width: w, height: h$1, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
h("g", { transform: "translate(0 " + textOffsetY + ")" },
h(Text, { text: text, fontFamily: fontFamily, height: height, fill: textFill, onSizeUpdate: onTextSizeUpdate })));
return v$1(d$1, null,
v$1(Rectangle, { width: w, height: h, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
v$1("g", { transform: "translate(0 ".concat(textOffsetY, ")") },
v$1(Text, { text: text, fontFamily: fontFamily, height: height, fill: textFill, onSizeUpdate: onTextSizeUpdate })));
function onTextSizeUpdate(size) {

@@ -549,29 +549,29 @@ onTextWidthUpdate(size.width);

var LabelledRect = function (_a) {
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.width, width = _c === void 0 ? 12 : _c, _d = _a.fontFamily, fontFamily = _d === void 0 ? "Verdana" : _d, _e = _a.fontSize, fontSize = _e === void 0 ? 10 : _e, _f = _a.padding, padding = _f === void 0 ? 3 : _f, _g = _a.fill, fill = _g === void 0 ? "whitesmoke" : _g, _h = _a.stroke, stroke = _h === void 0 ? "lightgray" : _h, _j = _a.textFill, textFill = _j === void 0 ? "black" : _j, _k = _a.strokeWidth, strokeWidth = _k === void 0 ? 1 : _k, _l = _a.cornerRadius, cornerRadius = _l === void 0 ? 0 : _l, _m = _a.onSizeUpdate;
return h(y, null,
h(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
h("g", { transform: "translate(" + (-(width / 2) + padding) + " " + (-(height / 2) + padding) + ")" },
h(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" })));
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.width, width = _c === void 0 ? 12 : _c, _d = _a.fontFamily, fontFamily = _d === void 0 ? "Verdana" : _d, _e = _a.fontSize, fontSize = _e === void 0 ? 10 : _e, _f = _a.padding, padding = _f === void 0 ? 3 : _f, _g = _a.fill, fill = _g === void 0 ? "whitesmoke" : _g, _h = _a.stroke, stroke = _h === void 0 ? "lightgray" : _h, _j = _a.textFill, textFill = _j === void 0 ? "black" : _j, _k = _a.strokeWidth, strokeWidth = _k === void 0 ? 1 : _k, _l = _a.cornerRadius, cornerRadius = _l === void 0 ? 0 : _l; _a.onSizeUpdate;
return v$1(d$1, null,
v$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
v$1("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") },
v$1(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" })));
};
var IconLabelledRect = function (_a) {
var icon = _a.icon, iconFontFamily = _a.iconFontFamily, text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.width, width = _c === void 0 ? 12 : _c, _d = _a.fontFamily, fontFamily = _d === void 0 ? "Verdana" : _d, _e = _a.fontSize, fontSize = _e === void 0 ? 10 : _e, _f = _a.padding, padding = _f === void 0 ? 3 : _f, _g = _a.fill, fill = _g === void 0 ? "whitesmoke" : _g, _h = _a.stroke, stroke = _h === void 0 ? "lightgray" : _h, _j = _a.textFill, textFill = _j === void 0 ? "black" : _j, _k = _a.strokeWidth, strokeWidth = _k === void 0 ? 1 : _k, _l = _a.cornerRadius, cornerRadius = _l === void 0 ? 0 : _l, _m = _a.onSizeUpdate;
return h(y, null,
h(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
h("g", { transform: "translate(" + (-(width / 2) + padding) + " " + (-(height / 2) + padding) + ")" },
h(Icon, { shape: "square", imageFontFamily: iconFontFamily, imageChar: icon, height: height, fill: fill, imageCharFill: textFill })),
h("g", { transform: "translate(" + (-(width / 2) + (padding * 2) + height) + " " + (-(height / 2) + padding) + ")" },
h(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" })));
var icon = _a.icon, iconFontFamily = _a.iconFontFamily, text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.width, width = _c === void 0 ? 12 : _c, _d = _a.fontFamily, fontFamily = _d === void 0 ? "Verdana" : _d, _e = _a.fontSize, fontSize = _e === void 0 ? 10 : _e, _f = _a.padding, padding = _f === void 0 ? 3 : _f, _g = _a.fill, fill = _g === void 0 ? "whitesmoke" : _g, _h = _a.stroke, stroke = _h === void 0 ? "lightgray" : _h, _j = _a.textFill, textFill = _j === void 0 ? "black" : _j, _k = _a.strokeWidth, strokeWidth = _k === void 0 ? 1 : _k, _l = _a.cornerRadius, cornerRadius = _l === void 0 ? 0 : _l; _a.onSizeUpdate;
return v$1(d$1, null,
v$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
v$1("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") },
v$1(Icon, { shape: "square", imageFontFamily: iconFontFamily, imageChar: icon, height: height, fill: fill, imageCharFill: textFill })),
v$1("g", { transform: "translate(".concat(-(width / 2) + (padding * 2) + height, " ").concat(-(height / 2) + padding, ")") },
v$1(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" })));
};
var Annotations = function (_a) {
var x = _a.x, y$1 = _a.y, _b = _a.annotationIDs, annotationIDs = _b === void 0 ? [] : _b, _c = _a.stepSize, stepSize = _c === void 0 ? -16 : _c;
var IconComponents = annotationIDs.map(function (id, i) { return h("g", { key: id, transform: "translate(" + (x + i * stepSize) + " " + y$1 + ")" },
h("use", { href: "#" + id })); });
return h(y, null, IconComponents);
var x = _a.x, y = _a.y, _b = _a.annotationIDs, annotationIDs = _b === void 0 ? [] : _b, _c = _a.stepSize, stepSize = _c === void 0 ? -16 : _c;
var IconComponents = annotationIDs.map(function (id, i) { return v$1("g", { key: id, transform: "translate(".concat(x + i * stepSize, " ").concat(y, ")") },
v$1("use", { href: "#" + id })); });
return v$1(d$1, null, IconComponents);
};
var Vertex = function (_a) {
var _b = _a.categoryID, categoryID = _b === void 0 ? "" : _b, _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 12 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 4 : _e, _f = _a.icon, icon = _f === void 0 ? {} : _f, _g = _a.annotationsHeight, annotationsHeight = _g === void 0 ? 12 : _g, _h = _a.annotationIDs, annotationIDs = _h === void 0 ? [] : _h, textFill = _a.textFill, textboxFill = _a.textboxFill, textboxStroke = _a.textboxStroke, textFontFamily = _a.textFontFamily, _j = _a.onSizeUpdate, onSizeUpdate = _j === void 0 ? function (size) { } : _j, _k = _a.showLabel, showLabel = _k === void 0 ? true : _k;
var _l = v$1(0), textBoxWidth = _l[0], onTextBoxWidthUpdate = _l[1];
var _m = v$1(0), textBoxHeight = _m[0], onTextBoxHeightUpdate = _m[1];
p(function () { return onSizeUpdate({ width: 0, height: 0 }); }, [textBoxWidth, textBoxHeight]);
var _l = l(0), textBoxWidth = _l[0], onTextBoxWidthUpdate = _l[1];
var _m = l(0), textBoxHeight = _m[0], onTextBoxHeightUpdate = _m[1];
y$2(function () { return onSizeUpdate({ width: 0, height: 0 }); }, [textBoxWidth, textBoxHeight]);
icon = __assign({ imageChar: "fa-question", height: 32, fill: "transparent" }, icon);

@@ -587,11 +587,11 @@ var width = textBoxWidth;

}
var label = showLabel ? h("g", { transform: "translate(0 " + textboxOffsetY + ")" },
h(TextBox, { text: text, height: textHeight, padding: textPadding, onSizeUpdate: onTextBoxSizeUpdate, textFill: textFill, fill: textboxFill, stroke: textboxStroke, fontFamily: textFontFamily })) : undefined;
var label = showLabel ? v$1("g", { transform: "translate(0 ".concat(textboxOffsetY, ")") },
v$1(TextBox, { text: text, height: textHeight, padding: textPadding, onSizeUpdate: onTextBoxSizeUpdate, textFill: textFill, fill: textboxFill, stroke: textboxStroke, fontFamily: textFontFamily })) : undefined;
return categoryID ?
h("g", { transform: "translate(0 " + offsetY + ")" },
h("use", { href: "#" + categoryID }),
v$1("g", { transform: "translate(0 ".concat(offsetY, ")") },
v$1("use", { href: "#" + categoryID }),
label,
h(Annotations, { x: width / 2, y: annotationOffsetY, annotationIDs: annotationIDs })) :
h("g", { transform: "translate(0 " + offsetY + ")" },
h(Icon, __assign({}, icon)),
v$1(Annotations, { x: width / 2, y: annotationOffsetY, annotationIDs: annotationIDs })) :
v$1("g", { transform: "translate(0 ".concat(offsetY, ")") },
v$1(Icon, __assign({}, icon)),
label);

@@ -621,18 +621,18 @@ function onTextBoxSizeUpdate(size) {

return categoryID ?
h("g", { transform: "translate(" + offsetX + " " + offsetY + ")" },
h("g", { transform: "translate(" + iconOffsetX + " " + iconOffsetY + ")" },
h("use", { href: "#" + categoryID })),
h("g", { transform: "translate(" + textboxOffsetX + " " + textboxOffsetY + ")" },
h(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily })),
h(Annotations, { x: annotationOffsetX, y: annotationOffsetY, annotationIDs: annotationIDs, stepSize: stepSize }))
v$1("g", { transform: "translate(".concat(offsetX, " ").concat(offsetY, ")") },
v$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") },
v$1("use", { href: "#" + categoryID })),
v$1("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")") },
v$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily })),
v$1(Annotations, { x: annotationOffsetX, y: annotationOffsetY, annotationIDs: annotationIDs, stepSize: stepSize }))
:
h(y, null,
h("g", { transform: "translate(" + iconOffsetX + " " + iconOffsetY + ")scale(1.0002)" },
h(Icon, __assign({}, icon, { shape: "square" }))),
h("g", { transform: "translate(" + textboxOffsetX + " " + textboxOffsetY + ")scale(1.0002)" },
h(TextBox, { text: text, height: textHeight, padding: textPadding, stroke: textboxStroke, fill: textboxFill })));
v$1(d$1, null,
v$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")scale(1.0002)") },
v$1(Icon, __assign({}, icon, { shape: "square" }))),
v$1("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")scale(1.0002)") },
v$1(TextBox, { text: text, height: textHeight, padding: textPadding, stroke: textboxStroke, fill: textboxFill })));
};
var Vertex3 = function (_a) {
var _b = _a.categoryID, _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 10 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 4 : _e, _f = _a.textFill, textFill = _f === void 0 ? "#287EC4" : _f, _g = _a.textboxFill, textboxFill = _g === void 0 ? "white" : _g, _h = _a.textboxStroke, textboxStroke = _h === void 0 ? "#CCCCCC" : _h, _j = _a.textboxStrokeWidth, textboxStrokeWidth = _j === void 0 ? 1 : _j, _k = _a.textFontFamily, textFontFamily = _k === void 0 ? "Verdana" : _k, _l = _a.annotationGutter, annotationGutter = _l === void 0 ? 2 : _l, _m = _a.annotations, annotations = _m === void 0 ? [] : _m, _o = _a.cornerRadius, cornerRadius = _o === void 0 ? 3 : _o, _p = _a.icon, icon = _p === void 0 ? {} : _p, _q = _a.subText, subText = _q === void 0 ? {} : _q, _r = _a.showLabel, showLabel = _r === void 0 ? true : _r, _s = _a.noLabelRadius, noLabelRadius = _s === void 0 ? 5 : _s;
_a.categoryID; var _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 10 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 4 : _e, _f = _a.textFill, textFill = _f === void 0 ? "#287EC4" : _f, _g = _a.textboxFill, textboxFill = _g === void 0 ? "white" : _g, _h = _a.textboxStroke, textboxStroke = _h === void 0 ? "#CCCCCC" : _h, _j = _a.textboxStrokeWidth, textboxStrokeWidth = _j === void 0 ? 1 : _j, _k = _a.textFontFamily, textFontFamily = _k === void 0 ? "Verdana" : _k, _l = _a.annotationGutter, annotationGutter = _l === void 0 ? 2 : _l, _m = _a.annotations, annotations = _m === void 0 ? [] : _m, _o = _a.cornerRadius, cornerRadius = _o === void 0 ? 3 : _o, _p = _a.icon, icon = _p === void 0 ? {} : _p, _q = _a.subText, subText = _q === void 0 ? {} : _q, _r = _a.showLabel, showLabel = _r === void 0 ? true : _r, _s = _a.noLabelRadius, noLabelRadius = _s === void 0 ? 5 : _s;
icon = __assign({ height: 50, imageChar: "?", imageFontFamily: "FontAwesome", imageCharFill: "#555555", fill: "transparent", strokeWidth: 0 }, icon);

@@ -656,4 +656,4 @@ subText = __assign({ text: "", fill: "white", textFill: "#555555" }, subText);

var annoOffsetX = fullAnnotationWidth - (annoShapeWidth / 2);
annotationArr.push(h("g", { class: "vertex3-anno", transform: "translate(" + annoOffsetX + " " + annoOffsetY + ")" },
h(Icon, __assign({}, anno, { shape: "square", height: textShapeHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 }))));
annotationArr.push(v$1("g", { class: "vertex3-anno", transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") },
v$1(Icon, __assign({}, anno, { shape: "square", height: textShapeHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 }))));
});

@@ -663,3 +663,3 @@ if (annotations.length > 0) {

}
var textElement = h("g", { transform: "translate(" + textOffsetX + " " + annoOffsetY + ")" }, !showLabel || text === "" ? h("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : h(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius }));
var textElement = v$1("g", { transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? v$1("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : v$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius }));
var iconHeight = icon.height || 20;

@@ -677,8 +677,8 @@ var iconStrokeWidth = icon.strokeWidth || 0;

}
var subtextElement = subText.text === "" ? null : h("g", { transform: "translate(" + subTextOffsetX + " " + subTextOffsetY + ")" },
h(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius })));
return h("g", null,
h("g", { transform: "translate(" + iconOffsetX + " " + iconOffsetY + ")" },
h(Icon, __assign({}, icon))),
h("g", { transform: "translate(" + -fullAnnotationWidth / 2 + " " + annoOffsetY + ")" },
var subtextElement = subText.text === "" ? null : v$1("g", { transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") },
v$1(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius })));
return v$1("g", null,
v$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") },
v$1(Icon, __assign({}, icon))),
v$1("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") },
textElement,

@@ -708,3 +708,3 @@ annotationArr),

};
return h(Vertex3, __assign({}, props, { icon: icon, subText: subText }));
return v$1(Vertex3, __assign({}, props, { icon: icon, subText: subText }));
};

@@ -715,10 +715,10 @@

var tSize = common.Utility.textSize(text, fontFamily, fontHeight, false);
return h(y, null,
h(Rectangle, { width: width, height: height, fill: fill, stroke: stroke }),
h("g", { transform: "translate(" + ((-width + tSize.width) / 2 + 4) + " " + ((-height + tSize.height) / 2 + 4) + ")" },
h(Text, { height: fontHeight, text: text, fontFamily: fontFamily })));
return v$1(d$1, null,
v$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke }),
v$1("g", { transform: "translate(".concat((-width + tSize.width) / 2 + 4, " ").concat((-height + tSize.height) / 2 + 4, ")") },
v$1(Text, { height: fontHeight, text: text, fontFamily: fontFamily })));
};
exports.Annotations = Annotations;
exports.BUILD_VERSION = BUILD_VERSION;
exports.BUILD_VERSION = BUILD_VERSION$1;
exports.CentroidVertex3 = CentroidVertex3;

@@ -733,4 +733,4 @@ exports.Circle = Circle;

exports.LabelledRect = LabelledRect;
exports.PKG_NAME = PKG_NAME;
exports.PKG_VERSION = PKG_VERSION;
exports.PKG_NAME = PKG_NAME$1;
exports.PKG_VERSION = PKG_VERSION$1;
exports.React = index_es6;

@@ -753,3 +753,3 @@ exports.Rectangle = Rectangle;

})));
}));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!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=t||self)["@hpcc-js/react"]={},t["@hpcc-js/common"])}(this,function(t,e){"use strict";var n,i,o,r,l,a={},s=[],u=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function h(t,e){for(var n in e)t[n]=e[n];return t}function _(t){var e=t.parentNode;e&&e.removeChild(t)}function c(t,e,n){var i,o=arguments,r={};for(i in e)"key"!==i&&"ref"!==i&&(r[i]=e[i]);if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(o[i]);if(null!=n&&(r.children=n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===r[i]&&(r[i]=t.defaultProps[i]);return f(t,r,e&&e.key,e&&e.ref)}function f(t,e,i,o){var r={type:t,props:e,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:null,__c:null,constructor:void 0};return n.vnode&&n.vnode(r),r}function d(t){return t.children}function p(t,e){this.props=t,this.context=e}function v(t,e){if(null==e)return t.__?v(t.__,t.__.__k.indexOf(t)+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?v(t):null}function g(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return g(t)}}function y(t){(!t.__d&&(t.__d=!0)&&1===i.push(t)||r!==n.debounceRendering)&&((r=n.debounceRendering)||o)(m)}function m(){var t,e,n,o,r,l,a;for(i.sort(function(t,e){return e.__v.__b-t.__v.__b});t=i.pop();)t.__d&&(n=void 0,o=void 0,l=(r=(e=t).__v).__e,(a=e.__P)&&(n=[],o=S(a,r,h({},r),e.__n,void 0!==a.ownerSVGElement,null,n,null==l?v(r):l),C(n,r),o!=l&&g(r)))}function x(t,e,n,i,o,r,l,u,h){var c,f,d,p,g,y,m,x=n&&n.__k||s,b=x.length;if(u==a&&(u=null!=r?r[0]:b?v(n,0):null),c=0,e.__k=k(e.__k,function(n){if(null!=n){if(n.__=e,n.__b=e.__b+1,null===(d=x[c])||d&&n.key==d.key&&n.type===d.type)x[c]=void 0;else for(f=0;f<b;f++){if((d=x[f])&&n.key==d.key&&n.type===d.type){x[f]=void 0;break}d=null}if(p=S(t,n,d=d||a,i,o,r,l,u,h),(f=n.ref)&&d.ref!=f&&(m||(m=[]),d.ref&&m.push(d.ref,null,n),m.push(f,n.__c||p,n)),null!=p){if(null==y&&(y=p),null!=n.__d)p=n.__d,n.__d=null;else if(r==d||p!=u||null==p.parentNode){t:if(null==u||u.parentNode!==t)t.appendChild(p);else{for(g=u,f=0;(g=g.nextSibling)&&f<b;f+=2)if(g==p)break t;t.insertBefore(p,u)}"option"==e.type&&(t.value="")}u=p.nextSibling,"function"==typeof e.type&&(e.__d=p)}}return c++,n}),e.__e=y,null!=r&&"function"!=typeof e.type)for(c=r.length;c--;)null!=r[c]&&_(r[c]);for(c=b;c--;)null!=x[c]&&E(x[c],x[c]);if(m)for(c=0;c<m.length;c++)P(m[c],m[++c],m[++c])}function k(t,e,n){if(null==n&&(n=[]),null==t||"boolean"==typeof t)e&&n.push(e(null));else if(Array.isArray(t))for(var i=0;i<t.length;i++)k(t[i],e,n);else n.push(e?e("string"==typeof t||"number"==typeof t?f(null,t,null,null):null!=t.__e||null!=t.__c?f(t.type,t.props,t.key,null):t):t);return n}function b(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]="number"==typeof n&&!1===u.test(e)?n+"px":null==n?"":n}function F(t,e,n,i,o){var r,l,a,s,u;if(o?"className"===e&&(e="class"):"class"===e&&(e="className"),"key"===e||"children"===e);else if("style"===e)if(r=t.style,"string"==typeof n)r.cssText=n;else{if("string"==typeof i&&(r.cssText="",i=null),i)for(l in i)n&&l in n||b(r,l,"");if(n)for(a in n)i&&n[a]===i[a]||b(r,a,n[a])}else"o"===e[0]&&"n"===e[1]?(s=e!==(e=e.replace(/Capture$/,"")),u=e.toLowerCase(),e=(u in t?u:e).slice(2),n?(i||t.addEventListener(e,w,s),(t.l||(t.l={}))[e]=n):t.removeEventListener(e,w,s)):"list"!==e&&"tagName"!==e&&"form"!==e&&"type"!==e&&!o&&e in t?t[e]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==e&&(e!==(e=e.replace(/^xlink:?/,""))?null==n||!1===n?t.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):t.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),n):null==n||!1===n?t.removeAttribute(e):t.setAttribute(e,n))}function w(t){this.l[t.type](n.event?n.event(t):t)}function S(t,e,i,o,r,l,a,s,u){var _,c,f,v,g,y,m,b,F,w,S=e.type;if(void 0!==e.constructor)return null;(_=n.__b)&&_(e);try{t:if("function"==typeof S){if(b=e.props,F=(_=S.contextType)&&o[_.__c],w=_?F?F.props.value:_.__:o,i.__c?m=(c=e.__c=i.__c).__=c.__E:("prototype"in S&&S.prototype.render?e.__c=c=new S(b,w):(e.__c=c=new p(b,w),c.constructor=S,c.render=T),F&&F.sub(c),c.props=b,c.state||(c.state={}),c.context=w,c.__n=o,f=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=S.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=h({},c.__s)),h(c.__s,S.getDerivedStateFromProps(b,c.__s))),v=c.props,g=c.state,f)null==S.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==S.getDerivedStateFromProps&&b!==v&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(b,w),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(b,c.__s,w)){for(c.props=b,c.state=c.__s,c.__d=!1,c.__v=e,e.__e=i.__e,e.__k=i.__k,c.__h.length&&a.push(c),_=0;_<e.__k.length;_++)e.__k[_]&&(e.__k[_].__=e);break t}null!=c.componentWillUpdate&&c.componentWillUpdate(b,c.__s,w),null!=c.componentDidUpdate&&c.__h.push(function(){c.componentDidUpdate(v,g,y)})}c.context=w,c.props=b,c.state=c.__s,(_=n.__r)&&_(e),c.__d=!1,c.__v=e,c.__P=t,_=c.render(c.props,c.state,c.context),e.__k=k(null!=_&&_.type==d&&null==_.key?_.props.children:_),null!=c.getChildContext&&(o=h(h({},o),c.getChildContext())),f||null==c.getSnapshotBeforeUpdate||(y=c.getSnapshotBeforeUpdate(v,g)),x(t,e,i,o,r,l,a,s,u),c.base=e.__e,c.__h.length&&a.push(c),m&&(c.__E=c.__=null),c.__e=null}else e.__e=R(i.__e,e,i,o,r,l,a,u);(_=n.diffed)&&_(e)}catch(t){n.__e(t,e,i)}return e.__e}function C(t,e){n.__c&&n.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(t){n.__e(t,e.__v)}})}function R(t,e,n,i,o,r,l,u){var h,_,c,f,d,p=n.props,v=e.props;if(o="svg"===e.type||o,null==t&&null!=r)for(h=0;h<r.length;h++)if(null!=(_=r[h])&&(null===e.type?3===_.nodeType:_.localName===e.type)){t=_,r[h]=null;break}if(null==t){if(null===e.type)return document.createTextNode(v);t=o?document.createElementNS("http://www.w3.org/2000/svg",e.type):document.createElement(e.type),r=null}if(null===e.type)null!=r&&(r[r.indexOf(t)]=null),p!==v&&(t.data=v);else if(e!==n){if(null!=r&&(r=s.slice.call(t.childNodes)),c=(p=n.props||a).dangerouslySetInnerHTML,f=v.dangerouslySetInnerHTML,!u){if(p===a)for(p={},d=0;d<t.attributes.length;d++)p[t.attributes[d].name]=t.attributes[d].value;(f||c)&&(f&&c&&f.__html==c.__html||(t.innerHTML=f&&f.__html||""))}(function(t,e,n,i,o){var r;for(r in n)r in e||F(t,r,null,n[r],i);for(r in e)o&&"function"!=typeof e[r]||"value"===r||"checked"===r||n[r]===e[r]||F(t,r,e[r],n[r],i)})(t,v,p,o,u),e.__k=e.props.children,f||x(t,e,n,i,"foreignObject"!==e.type&&o,r,l,a,u),u||("value"in v&&void 0!==v.value&&v.value!==t.value&&(t.value=null==v.value?"":v.value),"checked"in v&&void 0!==v.checked&&v.checked!==t.checked&&(t.checked=v.checked))}return t}function P(t,e,i){try{"function"==typeof t?t(e):t.current=e}catch(t){n.__e(t,i)}}function E(t,e,i){var o,r,l;if(n.unmount&&n.unmount(t),(o=t.ref)&&P(o,null,e),i||"function"==typeof t.type||(i=null!=(r=t.__e)),t.__e=t.__d=null,null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){n.__e(t,e)}o.base=o.__P=null}if(o=t.__k)for(l=0;l<o.length;l++)o[l]&&E(o[l],e,i);null!=r&&_(r)}function T(t,e,n){return this.constructor(t,n)}function M(t,e,i){var o,r,u;n.__&&n.__(t,e),r=(o=i===l)?null:i&&i.__k||e.__k,t=c(d,null,[t]),u=[],S(e,(o?e:i||e).__k=t,r||a,a,void 0!==e.ownerSVGElement,i&&!o?[i]:r?null:s.slice.call(e.childNodes),u,i||a,o),C(u,t)}n={__e:function(t,e){for(var n;e=e.__;)if((n=e.__c)&&!n.__)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError)n.setState(n.constructor.getDerivedStateFromError(t));else{if(null==n.componentDidCatch)continue;n.componentDidCatch(t)}return y(n.__E=n)}catch(e){t=e}throw t}},p.prototype.setState=function(t,e){var n;n=this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof t&&(t=t(n,this.props)),t&&h(n,t),null!=t&&this.__v&&(this.__e=!1,e&&this.__h.push(e),y(this))},p.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),y(this))},p.prototype.render=d,i=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=a;var W,D,H,A=[],N=n.__r,U=n.diffed,I=n.__c,O=n.unmount;function j(t){n.__h&&n.__h(D);var e=D.__H||(D.__H={t:[],u:[]});return t>=e.t.length&&e.t.push({}),e.t[t]}function L(t){return z(Z,t)}function z(t,e,n){var i=j(W++);return i.__c||(i.__c=D,i.i=[n?n(e):Z(void 0,e),function(e){var n=t(i.i[0],e);i.i[0]!==n&&(i.i[0]=n,i.__c.setState({}))}]),i.i}function V(t,e){var n=j(W++);K(n.o,e)&&(n.i=t,n.o=e,D.__H.u.push(n))}function q(){A.some(function(t){t.__P&&(t.__H.u.forEach(G),t.__H.u.forEach(B),t.__H.u=[])}),A=[]}function G(t){t.m&&t.m()}function B(t){var e=t.i();"function"==typeof e&&(t.m=e)}function K(t,e){return!t||e.some(function(e,n){return e!==t[n]})}function Z(t,e){return"function"==typeof e?e(t):e}n.__r=function(t){N&&N(t),W=0,(D=t.__c).__H&&(D.__H.u.forEach(G),D.__H.u.forEach(B),D.__H.u=[])},n.diffed=function(t){U&&U(t);var e=t.__c;if(e){var i=e.__H;i&&i.u.length&&(1!==A.push(e)&&H===n.requestAnimationFrame||((H=n.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(i),cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);"undefined"!=typeof window&&(e=requestAnimationFrame(n))})(q))}},n.__c=function(t,e){e.some(function(t){t.__h.forEach(G),t.__h=t.__h.filter(function(t){return!t.i||B(t)})}),I&&I(t,e)},n.unmount=function(t){O&&O(t);var e=t.__c;if(e){var n=e.__H;n&&n.t.forEach(function(t){return t.m&&t.m()})}};var $=Object.freeze({__proto__:null,BUILD_VERSION:"2.101.0",Component:p,Fragment:d,PKG_NAME:"@hpcc-js/preact-shim",PKG_VERSION:"2.13.22",createElement:c,h:c,render:M,useEffect:V,useMemo:function(t,e){var n=j(W++);return K(n.o,e)?(n.o=e,n.v=t,n.i=t()):n.i},useReducer:z,useState:L}),Q=Math.PI,J=2*Q,X=J-1e-6;function Y(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function tt(){return new Y}function et(t){return function(){return t}}function nt(t){this._context=t}function it(t){return new nt(t)}function ot(t){return t[0]}function rt(t){return t[1]}function lt(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function at(t){this._context=t}Y.prototype=tt.prototype={constructor:Y,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,o,r){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+o)+","+(this._y1=+r)},arcTo:function(t,e,n,i,o){t=+t,e=+e,n=+n,i=+i,o=+o;var r=this._x1,l=this._y1,a=n-t,s=i-e,u=r-t,h=l-e,_=u*u+h*h;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(_>1e-6)if(Math.abs(h*a-s*u)>1e-6&&o){var c=n-r,f=i-l,d=a*a+s*s,p=c*c+f*f,v=Math.sqrt(d),g=Math.sqrt(_),y=o*Math.tan((Q-Math.acos((d+_-p)/(2*v*g)))/2),m=y/g,x=y/v;Math.abs(m-1)>1e-6&&(this._+="L"+(t+m*u)+","+(e+m*h)),this._+="A"+o+","+o+",0,0,"+ +(h*c>u*f)+","+(this._x1=t+x*a)+","+(this._y1=e+x*s)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,i,o,r){t=+t,e=+e,r=!!r;var l=(n=+n)*Math.cos(i),a=n*Math.sin(i),s=t+l,u=e+a,h=1^r,_=r?i-o:o-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+s+","+u:(Math.abs(this._x1-s)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+s+","+u),n&&(_<0&&(_=_%J+J),_>X?this._+="A"+n+","+n+",0,1,"+h+","+(t-l)+","+(e-a)+"A"+n+","+n+",0,1,"+h+","+(this._x1=s)+","+(this._y1=u):_>1e-6&&(this._+="A"+n+","+n+",0,"+ +(_>=Q)+","+h+","+(this._x1=t+n*Math.cos(o))+","+(this._y1=e+n*Math.sin(o))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}},nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},at.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:lt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:lt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var st=function(){var t=ot,e=rt,n=et(!0),i=null,o=it,r=null;function l(l){var a,s,u,h=l.length,_=!1;for(null==i&&(r=o(u=tt())),a=0;a<=h;++a)!(a<h&&n(s=l[a],a,l))===_&&((_=!_)?r.lineStart():r.lineEnd()),_&&r.point(+t(s,a,l),+e(s,a,l));if(u)return r=null,u+""||null}return l.x=function(e){return arguments.length?(t="function"==typeof e?e:et(+e),l):t},l.y=function(t){return arguments.length?(e="function"==typeof t?t:et(+t),l):e},l.defined=function(t){return arguments.length?(n="function"==typeof t?t:et(!!t),l):n},l.curve=function(t){return arguments.length?(o=t,null!=i&&(r=o(i)),l):o},l.context=function(t){return arguments.length?(null==t?i=r=null:r=o(i=t),l):i},l}().x(function(t){return t[0]}).y(function(t){return t[1]}).curve(function(t){return new at(t)});function ut(t,e){if(2===t.length&&e){var n=t[0][0]-t[1][0],i=t[0][1]-t[1][1];if(Math.sqrt(n*n+i*i)){var o=(t[0][0]+t[1][0])/2-i*e/100,r=(t[0][1]+t[1][1])/2+n*e/100;return[t[0],[o,r],t[1]]}}return t}var ht=function(t){var n=t.x,i=t.y,o=void 0===i?0:i,r=t.height,l=void 0===r?12:r,a=t.fill,s=t.stroke,u=t.fontFamily,h=void 0===u?"FontAwesome":u,_=t.char,f=void 0===_?"":_;return c("text",{x:n,y:o,fill:a,stroke:s,"font-family":h,"font-size":l+"px","dominant-baseline":"middle",style:"text-anchor: middle;alignment-baseline:middle;"},"FontAwesome"===h?e.Utility.faChar(f):f)},_t=function(t,e){return(_t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function ct(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}_t(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var ft=function(){return(ft=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function dt(t,e,n,i){var o,r=arguments.length,l=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(l=(r<3?o(l):r>3?o(e,n,l):o(e,n))||l);return r>3&&l&&Object.defineProperty(e,n,l),l}function pt(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var vt=function(t){var e=t.radius,n=void 0===e?32:e,i=t.fill,o=void 0===i?"navy":i,r=t.stroke,l=void 0===r?o:r,a=t.strokeWidth;return c("circle",{r:n,fill:o,stroke:l,"stroke-width":void 0===a?1:a,"shape-rendering":t.shapeRendering})},gt=function(t){var e=t.radius,n=void 0===e?30:e,i=t.cornerRadius,o=void 0===i?0:i,r=t.fill,l=void 0===r?"white":r,a=t.stroke,s=t.strokeWidth;return c("rect",{x:-n,y:-n,rx:o,ry:o,width:2*n,height:2*n,fill:l,stroke:a||l,"stroke-width":void 0===s?1:s,"shape-rendering":t.shapeRendering})},yt=function(t){var e=t.width,n=void 0===e?30:e,i=t.height,o=void 0===i?30:i,r=t.cornerRadius,l=void 0===r?0:r,a=t.fill,s=void 0===a?"white":a,u=t.stroke,h=void 0===u?"black":u,_=t.strokeWidth;return c("rect",{x:-n/2,y:-o/2,rx:l,ry:l,width:n,height:o,fill:s,stroke:h||s,"stroke-width":void 0===_?1:_,"shape-rendering":t.shapeRendering})},mt=function(t){var e=t.shape,n=void 0===e?"circle":e,i=t.height,o=void 0===i?128:i,r=t.fill,l=t.stroke,a=t.strokeWidth,s=void 0===a?1:a,u=t.shapeRendering,h=t.cornerRadius;switch(n){case"square":return c(gt,{radius:o/2,fill:r,stroke:l,strokeWidth:s,shapeRendering:u,cornerRadius:h});case"circle":default:return c(vt,{radius:o/2,fill:r,stroke:l,strokeWidth:s,shapeRendering:u})}},xt=function(t){var n=t.shape,i=void 0===n?"circle":n,o=t.height,r=void 0===o?32:o,l=t.fill,a=t.stroke,s=t.strokeWidth,u=void 0===s?0:s,h=t.imageFontFamily,_=void 0===h?"FontAwesome":h,f=t.imageChar,p=void 0===f?"":f,v=t.imageCharFill,g=void 0===v?e.Palette.textColor(l):v,y=t.padding,m=void 0===y?r/5:y,x=t.yOffset,k=void 0===x?0:x,b=t.cornerRadius,F=t.shapeRendering;return c(d,null,c(mt,{shape:i,height:r,fill:l,stroke:a,strokeWidth:u,shapeRendering:F,cornerRadius:b}),c(ht,{y:k,height:r-m,fontFamily:_,char:p,fill:g,"font-weight":400}))};function kt(t,e,n,i){M(c(t,e),n,i)}var bt=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return ct(n,t),n.prototype.props=function(t){return arguments.length?(this._props=ft(ft({},this._props),t),this):this._props},n.prototype.prop=function(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)},n.prototype.update=function(e,n){t.prototype.update.call(this,e,n),kt(this._component,this._props,e)},dt([e.publish({},"object","Properties"),pt("design:type",Object)],n.prototype,"_props",void 0),n}(e.HTMLWidget),Ft=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return ct(n,t),n.prototype.props=function(t){return arguments.length?(this._props=ft(ft({},this._props),t),this):this._props},n.prototype.prop=function(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)},n.prototype.update=function(e,n){t.prototype.update.call(this,e,n),kt(this._component,this._props,e)},dt([e.publish({},"object","Properties"),pt("design:type",Object)],n.prototype,"_props",void 0),n}(e.SVGWidget),wt=function(t){var e=t.text,n=t.height,i=void 0===n?12:n,o=t.anchor,r=void 0===o?"middle":o,l=t.baseline,a=void 0===l?"middle":l,s=t.fontFamily,u=void 0===s?"Verdana":s,h=t.fill;return c("text",{"font-family":u,"font-size":i+"px","text-anchor":r,"dominant-baseline":a,fill:void 0===h?"black":h},e)},St=function(t){var n=t.text,i=t.height,o=void 0===i?12:i,r=t.fontFamily,l=void 0===r?"Verdana":r,a=t.fill,s=void 0===a?"black":a,u=t.onSizeUpdate,h=void 0===u?function(t){}:u,_=L(0),f=_[0],p=_[1],v=L(0),g=v[0],y=v[1];V(function(){return h({width:f,height:g})},[f,g]);var m=n.split("\n");p(e.Utility.textSize(m,l,o).width),y(m.length*(o+2)-2);var x=-g/2+o/2,k=m.map(function(t,e){return c("g",{transform:"translate(0 "+(x+e*(o+2))+")"},c(wt,{text:t,height:o,fontFamily:l,fill:s}))});return c(d,null,k)},Ct=function(t){var e=t.text,n=t.height,i=void 0===n?12:n,o=t.fontFamily,r=void 0===o?"Verdana":o,l=t.padding,a=void 0===l?4:l,s=t.fill,u=void 0===s?"whitesmoke":s,h=t.stroke,_=void 0===h?"lightgray":h,f=t.textFill,p=void 0===f?"black":f,v=t.strokeWidth,g=void 0===v?1:v,y=t.cornerRadius,m=void 0===y?0:y,x=t.onSizeUpdate,k=void 0===x?function(t){}:x,b=L(0),F=b[0],w=b[1],S=L(0),C=S[0],R=S[1];V(function(){return k({width:F,height:C})},[F,C]);var P=F+2*a+g,E=C+2*a+g,T=Math.floor(i/10);return c(d,null,c(yt,{width:P,height:E,fill:u,stroke:_,strokeWidth:g,cornerRadius:m}),c("g",{transform:"translate(0 "+T+")"},c(St,{text:e,fontFamily:r,height:i,fill:p,onSizeUpdate:function(t){w(t.width),R(t.height)}})))},Rt=function(t){var e=t.x,n=t.y,i=t.annotationIDs,o=void 0===i?[]:i,r=t.stepSize,l=void 0===r?-16:r,a=o.map(function(t,i){return c("g",{key:t,transform:"translate("+(e+i*l)+" "+n+")"},c("use",{href:"#"+t}))});return c(d,null,a)},Pt=function(t){t.categoryID;var n=t.text,i=void 0===n?"":n,o=t.textHeight,r=void 0===o?10:o,l=t.textPadding,a=void 0===l?4:l,s=t.textFill,u=void 0===s?"#287EC4":s,h=t.textboxFill,_=void 0===h?"white":h,f=t.textboxStroke,d=void 0===f?"#CCCCCC":f,p=t.textboxStrokeWidth,v=void 0===p?1:p,g=t.textFontFamily,y=void 0===g?"Verdana":g,m=t.annotationGutter,x=void 0===m?2:m,k=t.annotations,b=void 0===k?[]:k,F=t.cornerRadius,w=void 0===F?3:F,S=t.icon,C=void 0===S?{}:S,R=t.subText,P=void 0===R?{}:R,E=t.showLabel,T=void 0===E||E,M=t.noLabelRadius,W=void 0===M?5:M;C=ft({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},C),P=ft({text:"",fill:"white",textFill:"#555555"},P);var D=0,H=e.Utility.textSize(i,y,r,!1).width,A=0;""!==i&&(A=H+2*a+2*v);var N=(D+=A+x)-A/2,U=r+2*a+2*v,I=[];b.forEach(function(t){var e=t.imageChar,n=(D+=U+x)-U/2;I.push(c("g",{class:"vertex3-anno",transform:"translate("+n+" 0)"},c(xt,ft({},t,{shape:"square",height:U,imageChar:e,imageFontFamily:t.imageFontFamily,cornerRadius:w,strokeWidth:0}))))}),b.length>0&&(D+=x*(b.length-1));var O=c("g",{transform:"translate("+N+" 0)"},T&&""!==i?c(Ct,{text:i,height:r,padding:a,strokeWidth:v,stroke:d,fill:_,textFill:u,fontFamily:y,cornerRadius:w}):c("circle",{r:W,stroke:d,fill:u})),j=C.height||20,L=C.strokeWidth||0,z=0,V=U+2*x;""!==i||I.length>0?z=-j/2-L-U/2-2*x:""!==P.text&&(V=j/2+L+2*x);var q=""===P.text?null:c("g",{transform:"translate(0 "+V+")"},c(Ct,ft({fill:P.fill||"#FFFFFF",textFill:P.textFill||u},P,{height:r,padding:a,strokeWidth:0,stroke:d,fontFamily:y,cornerRadius:w})));return c("g",null,c("g",{transform:"translate(0 "+z+")"},c(xt,ft({},C))),c("g",{transform:"translate("+-D/2+" 0)"},O,I),q)};t.Annotations=Rt,t.BUILD_VERSION="2.101.0",t.CentroidVertex3=function(t){var e=t.categoryID,n=void 0===e?"":e,i=t.text,o=void 0===i?"":i,r=t.textHeight,l=void 0===r?12:r,a=t.textPadding,s=void 0===a?10:a,u=t.textFill,h=void 0===u?"#287EC4":u,_=t.textboxFill,f=void 0===_?"white":_,d=t.textboxStroke,p=void 0===d?"#CCCCCC":d,v=t.textboxStrokeWidth,g=void 0===v?1:v,y=t.textFontFamily,m=void 0===y?"Verdana":y,x=t.annotationGutter,k=void 0===x?2:x,b=t.annotations,F=void 0===b?[]:b,w=t.cornerRadius,S=t.icon,C=void 0===S?{}:S,R=t.subText,P=void 0===R?{}:R;return C=ft({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},C),P=ft({text:"",fill:"transparent",textFill:"#555555"},P),c(Pt,ft({},{categoryID:n,text:o,textHeight:l,textPadding:s,textFill:h,textboxFill:f,textboxStroke:p,textboxStrokeWidth:g,textFontFamily:m,annotationGutter:k,annotations:F,cornerRadius:w,icon:C,subText:P},{icon:C,subText:P}))},t.Circle=vt,t.Edge=function(t){var e=t.points,n=void 0===e?[]:e,i=t.curveDepth,o=void 0===i?16:i,r=t.stroke,l=void 0===r?"black":r,a=t.strokeDasharray;return console.log("strokeDasharray",a),c("path",{stroke:l,"stroke-dasharray":a,d:st(ut(n,o))})},t.HTMLAdapter=bt,t.Icon=xt,t.IconLabelledRect=function(t){var e=t.icon,n=t.iconFontFamily,i=t.text,o=t.height,r=void 0===o?12:o,l=t.width,a=void 0===l?12:l,s=t.fontFamily,u=void 0===s?"Verdana":s,h=t.fontSize,_=void 0===h?10:h,f=t.padding,p=void 0===f?3:f,v=t.fill,g=void 0===v?"whitesmoke":v,y=t.stroke,m=void 0===y?"lightgray":y,x=t.textFill,k=void 0===x?"black":x,b=t.strokeWidth,F=void 0===b?1:b,w=t.cornerRadius,S=void 0===w?0:w;t.onSizeUpdate;return c(d,null,c(yt,{width:a,height:r,fill:g,stroke:m,strokeWidth:F,cornerRadius:S}),c("g",{transform:"translate("+(-a/2+p)+" "+(-r/2+p)+")"},c(xt,{shape:"square",imageFontFamily:n,imageChar:e,height:r,fill:g,imageCharFill:k})),c("g",{transform:"translate("+(-a/2+2*p+r)+" "+(-r/2+p)+")"},c(wt,{text:i,fontFamily:u,height:_,fill:k,anchor:"start",baseline:"hanging"})))},t.Icons=function(t){var e=t.icons,n=(void 0===e?[]:e).map(function(t){return c("g",{key:t.id,id:t.id},c(xt,ft({},t)))});return c(d,null,n)},t.ImageChar=ht,t.LabelledRect=function(t){var e=t.text,n=t.height,i=void 0===n?12:n,o=t.width,r=void 0===o?12:o,l=t.fontFamily,a=void 0===l?"Verdana":l,s=t.fontSize,u=void 0===s?10:s,h=t.padding,_=void 0===h?3:h,f=t.fill,p=void 0===f?"whitesmoke":f,v=t.stroke,g=void 0===v?"lightgray":v,y=t.textFill,m=void 0===y?"black":y,x=t.strokeWidth,k=void 0===x?1:x,b=t.cornerRadius,F=void 0===b?0:b;t.onSizeUpdate;return c(d,null,c(yt,{width:r,height:i,fill:p,stroke:g,strokeWidth:k,cornerRadius:F}),c("g",{transform:"translate("+(-r/2+_)+" "+(-i/2+_)+")"},c(wt,{text:e,fontFamily:a,height:u,fill:m,anchor:"start",baseline:"hanging"})))},t.PKG_NAME="@hpcc-js/react",t.PKG_VERSION="2.48.0",t.React=$,t.Rectangle=yt,t.SVGAdapter=Ft,t.Shape=mt,t.Square=gt,t.Subgraph=function(t){var n=t.text,i=t.width,o=void 0===i?100:i,r=t.height,l=void 0===r?100:r,a=t.fill,s=void 0===a?"transparent":a,u=t.stroke,h=void 0===u?"black":u,_=t.fontHeight,f=void 0===_?12:_,p=t.fontFamily,v=e.Utility.textSize(n,p,f,!1);return c(d,null,c(yt,{width:o,height:l,fill:s,stroke:h}),c("g",{transform:"translate("+((-o+v.width)/2+4)+" "+((-l+v.height)/2+4)+")"},c(St,{height:f,text:n,fontFamily:p})))},t.Text=St,t.TextBox=Ct,t.TextLine=wt,t.Vertex=function(t){var e=t.categoryID,n=void 0===e?"":e,i=t.text,o=void 0===i?"":i,r=t.textHeight,l=void 0===r?12:r,a=t.textPadding,s=void 0===a?4:a,u=t.icon,h=void 0===u?{}:u,_=t.annotationsHeight,f=void 0===_?12:_,d=t.annotationIDs,p=void 0===d?[]:d,v=t.textFill,g=t.textboxFill,y=t.textboxStroke,m=t.textFontFamily,x=t.onSizeUpdate,k=void 0===x?function(t){}:x,b=t.showLabel,F=void 0===b||b,w=L(0),S=w[0],C=w[1],R=L(0),P=R[0],E=R[1];V(function(){return k({width:0,height:0})},[S,P]);var T=S;T+=4;var M=-(2*(h=ft({imageChar:"fa-question",height:32,fill:"transparent"},h)).height/6+l+8)/2,W=h.height/3+P/2+s,D=h.height/3+P+s+f/3;F||(M+=(l+8)/2,D-=P+s);var H=F?c("g",{transform:"translate(0 "+W+")"},c(Ct,{text:o,height:l,padding:s,onSizeUpdate:function(t){C(t.width),E(t.height)},textFill:v,fill:g,stroke:y,fontFamily:m})):void 0;return n?c("g",{transform:"translate(0 "+M+")"},c("use",{href:"#"+n}),H,c(Rt,{x:T/2,y:D,annotationIDs:p})):c("g",{transform:"translate(0 "+M+")"},c(xt,ft({},h)),H)},t.Vertex2=function(t){var n=t.categoryID,i=void 0===n?"":n,o=t.text,r=void 0===o?"":o,l=t.textHeight,a=void 0===l?12:l,s=t.textPadding,u=void 0===s?4:s,h=t.icon,_=void 0===h?{}:h,f=t.textFill,p=void 0===f?"black":f,v=t.textboxFill,g=void 0===v?"white":v,y=t.textboxStroke,m=void 0===y?"black":y,x=t.textFontFamily,k=t.annotationsHeight,b=void 0===k?12:k,F=t.annotationIDs,w=void 0===F?[]:F;_=ft({imageChar:"fa-question",imageCharFill:"white",height:32,fill:"black",shape:"square"},_);var S=a+2*u,C=e.Utility.textSize(r,x,a,!1).width,R=b,P=S/2,E=-(2*_.height/6+a+8)/2,T=-_.height/2,M=Math.ceil(C/2+u),W=P-_.height/2,D=R/2,H=P;return i?c("g",{transform:"translate(0 "+E+")"},c("g",{transform:"translate("+T+" 0)"},c("use",{href:"#"+i})),c("g",{transform:"translate("+M+" "+W+")"},c(Ct,{text:r,height:a,padding:u,strokeWidth:1,stroke:m,fill:g,textFill:p,fontFamily:x})),c(Rt,{x:D,y:H,annotationIDs:w,stepSize:R})):c(d,null,c("g",{transform:"translate("+T+" 0)scale(1.0002)"},c(xt,ft({},_,{shape:"square"}))),c("g",{transform:"translate("+M+" "+W+")scale(1.0002)"},c(Ct,{text:r,height:a,padding:u,stroke:m,fill:g})))},t.Vertex3=Pt,t.render=kt,t.svgRender=function(t,e,n,i){M(c("svg",null,c(t,e)),n,i)},Object.defineProperty(t,"__esModule",{value:!0})});
!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,i,o,r,l,_,a={},s=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(t,e){for(var n in e)t[n]=e[n];return t}function u(t){var e=t.parentNode;e&&e.removeChild(t)}function f(t,e,i){var o,r,l,_={};for(l in e)"key"==l?o=e[l]:"ref"==l?r=e[l]:_[l]=e[l];if(arguments.length>2&&(_.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof t&&null!=t.defaultProps)for(l in t.defaultProps)void 0===_[l]&&(_[l]=t.defaultProps[l]);return d(t,_,o,r,null)}function d(t,e,n,r,l){var _={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==l?++o:l};return null==l&&null!=i.vnode&&i.vnode(_),_}function p(t){return t.children}function v(t,e){this.props=t,this.context=e}function g(t,e){if(null==e)return t.__?g(t.__,t.__.__k.indexOf(t)+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?g(t):null}function y(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return y(t)}}function x(t){(!t.__d&&(t.__d=!0)&&r.push(t)&&!m.__r++||_!==i.debounceRendering)&&((_=i.debounceRendering)||l)(m)}function m(){for(var t;m.__r=r.length;)t=r.sort((function(t,e){return t.__v.__b-e.__v.__b})),r=[],t.some((function(t){var e,n,i,o,r,l;t.__d&&(r=(o=(e=t).__v).__e,(l=e.__P)&&(n=[],(i=h({},o)).__v=o.__v+1,P(l,o,i,e.__n,void 0!==l.ownerSVGElement,null!=o.__h?[r]:null,n,null==r?g(o):r,o.__h),T(n,o),o.__e!=r&&y(o)))}))}function k(t,e,n,i,o,r,l,_,c,h){var u,f,v,y,x,m,k,w=i&&i.__k||s,S=w.length;for(n.__k=[],u=0;u<e.length;u++)if(null!=(y=n.__k[u]=null==(y=e[u])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?d(null,y,null,null,y):Array.isArray(y)?d(p,{children:y},null,null,null):y.__b>0?d(y.type,y.props,y.key,null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(v=w[u])||v&&y.key==v.key&&y.type===v.type)w[u]=void 0;else for(f=0;f<S;f++){if((v=w[f])&&y.key==v.key&&y.type===v.type){w[f]=void 0;break}v=null}P(t,y,v=v||a,o,r,l,_,c,h),x=y.__e,(f=y.ref)&&v.ref!=f&&(k||(k=[]),v.ref&&k.push(v.ref,null,y),k.push(f,y.__c||x,y)),null!=x?(null==m&&(m=x),"function"==typeof y.type&&y.__k===v.__k?y.__d=c=b(y,c,t):c=F(t,y,v,w,x,c),"function"==typeof n.type&&(n.__d=c)):c&&v.__e==c&&c.parentNode!=t&&(c=g(v))}for(n.__e=m,u=S;u--;)null!=w[u]&&("function"==typeof n.type&&null!=w[u].__e&&w[u].__e==n.__d&&(n.__d=g(i,u+1)),W(w[u],w[u]));if(k)for(u=0;u<k.length;u++)M(k[u],k[++u],k[++u])}function b(t,e,n){for(var i,o=t.__k,r=0;o&&r<o.length;r++)(i=o[r])&&(i.__=t,e="function"==typeof i.type?b(i,e,n):F(n,i,i,o,i.__e,e));return e}function F(t,e,n,i,o,r){var l,_,a;if(void 0!==e.__d)l=e.__d,e.__d=void 0;else if(null==n||o!=r||null==o.parentNode)t:if(null==r||r.parentNode!==t)t.appendChild(o),l=null;else{for(_=r,a=0;(_=_.nextSibling)&&a<i.length;a+=2)if(_==o)break t;t.insertBefore(o,r),l=r}return void 0!==l?l:o.nextSibling}function w(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||c.test(e)?n:n+"px"}function S(t,e,n,i,o){var r;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||w(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||w(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])r=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+r]=n,n?i||t.addEventListener(e,r?R:C,r):t.removeEventListener(e,r?R:C,r);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function C(t){this.l[t.type+!1](i.event?i.event(t):t)}function R(t){this.l[t.type+!0](i.event?i.event(t):t)}function P(t,e,n,o,r,l,_,a,s){var c,u,f,d,g,y,x,m,b,F,w,S=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(s=n.__h,a=e.__e=n.__e,e.__h=null,l=[a]),(c=i.__b)&&c(e);try{t:if("function"==typeof S){if(m=e.props,b=(c=S.contextType)&&o[c.__c],F=c?b?b.props.value:c.__:o,n.__c?x=(u=e.__c=n.__c).__=u.__E:("prototype"in S&&S.prototype.render?e.__c=u=new S(m,F):(e.__c=u=new v(m,F),u.constructor=S,u.render=H),b&&b.sub(u),u.props=m,u.state||(u.state={}),u.context=F,u.__n=o,f=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=S.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=h({},u.__s)),h(u.__s,S.getDerivedStateFromProps(m,u.__s))),d=u.props,g=u.state,f)null==S.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==S.getDerivedStateFromProps&&m!==d&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(m,F),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(m,u.__s,F)||e.__v===n.__v){u.props=m,u.state=u.__s,e.__v!==n.__v&&(u.__d=!1),u.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),u.__h.length&&_.push(u);break t}null!=u.componentWillUpdate&&u.componentWillUpdate(m,u.__s,F),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(d,g,y)}))}u.context=F,u.props=m,u.state=u.__s,(c=i.__r)&&c(e),u.__d=!1,u.__v=e,u.__P=t,c=u.render(u.props,u.state,u.context),u.state=u.__s,null!=u.getChildContext&&(o=h(h({},o),u.getChildContext())),f||null==u.getSnapshotBeforeUpdate||(y=u.getSnapshotBeforeUpdate(d,g)),w=null!=c&&c.type===p&&null==c.key?c.props.children:c,k(t,Array.isArray(w)?w:[w],e,n,o,r,l,_,a,s),u.base=e.__e,e.__h=null,u.__h.length&&_.push(u),x&&(u.__E=u.__=null),u.__e=!1}else null==l&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=E(n.__e,e,n,o,r,l,_,s);(c=i.diffed)&&c(e)}catch(t){e.__v=null,(s||null!=l)&&(e.__e=a,e.__h=!!s,l[l.indexOf(a)]=null),i.__e(t,e,n)}}function T(t,e){i.__c&&i.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){i.__e(t,e.__v)}}))}function E(t,e,i,o,r,l,_,s){var c,h,f,d=i.props,p=e.props,v=e.type,y=0;if("svg"===v&&(r=!0),null!=l)for(;y<l.length;y++)if((c=l[y])&&"setAttribute"in c==!!v&&(v?c.localName===v:3===c.nodeType)){t=c,l[y]=null;break}if(null==t){if(null===v)return document.createTextNode(p);t=r?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,p.is&&p),l=null,s=!1}if(null===v)d===p||s&&t.data===p||(t.data=p);else{if(l=l&&n.call(t.childNodes),h=(d=i.props||a).dangerouslySetInnerHTML,f=p.dangerouslySetInnerHTML,!s){if(null!=l)for(d={},y=0;y<t.attributes.length;y++)d[t.attributes[y].name]=t.attributes[y].value;(f||h)&&(f&&(h&&f.__html==h.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}if(function(t,e,n,i,o){var r;for(r in n)"children"===r||"key"===r||r in e||S(t,r,null,n[r],i);for(r in e)o&&"function"!=typeof e[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===e[r]||S(t,r,e[r],n[r],i)}(t,p,d,r,s),f)e.__k=[];else if(y=e.props.children,k(t,Array.isArray(y)?y:[y],e,i,o,r&&"foreignObject"!==v,l,_,l?l[0]:i.__k&&g(i,0),s),null!=l)for(y=l.length;y--;)null!=l[y]&&u(l[y]);s||("value"in p&&void 0!==(y=p.value)&&(y!==t.value||"progress"===v&&!y||"option"===v&&y!==d.value)&&S(t,"value",y,d.value,!1),"checked"in p&&void 0!==(y=p.checked)&&y!==t.checked&&S(t,"checked",y,d.checked,!1))}return t}function M(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){i.__e(t,n)}}function W(t,e,n){var o,r;if(i.unmount&&i.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||M(o,null,e)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){i.__e(t,e)}o.base=o.__P=null}if(o=t.__k)for(r=0;r<o.length;r++)o[r]&&W(o[r],e,"function"!=typeof t.type);n||null==t.__e||u(t.__e),t.__e=t.__d=void 0}function H(t,e,n){return this.constructor(t,n)}function D(t,e,o){var r,l,_;i.__&&i.__(t,e),l=(r="function"==typeof o)?null:o&&o.__k||e.__k,_=[],P(e,t=(!r&&o||e).__k=f(p,null,[t]),l||a,a,void 0!==e.ownerSVGElement,!r&&o?[o]:l?null:e.firstChild?n.call(e.childNodes):null,_,!r&&o?o:l?l.__e:e.firstChild,r),T(_,t)}n=s.slice,i={__e:function(t,e){for(var n,i,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(e){t=e}throw t}},o=0,v.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof t&&(t=t(h({},n),this.props)),t&&h(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),x(this))},v.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),x(this))},v.prototype.render=p,r=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,m.__r=0;var A,I,U,O=0,j=[],L=i.__b,N=i.__r,z=i.diffed,V=i.__c,q=i.unmount;function G(t,e){i.__h&&i.__h(I,t,O||e),O=0;var n=I.__H||(I.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function B(t){return O=1,K(tt,t)}function K(t,e,n){var i=G(A++,2);return i.t=t,i.__c||(i.__=[n?n(e):tt(void 0,e),function(t){var e=i.t(i.__[0],t);i.__[0]!==e&&(i.__=[e,i.__[1]],i.__c.setState({}))}],i.__c=I),i.__}function $(t,e){var n=G(A++,3);!i.__s&&Y(n.__H,e)&&(n.__=t,n.__H=e,I.__H.__h.push(n))}function Z(){for(var t;t=j.shift();)if(t.__P)try{t.__H.__h.forEach(J),t.__H.__h.forEach(X),t.__H.__h=[]}catch(e){t.__H.__h=[],i.__e(e,t.__v)}}i.__b=function(t){I=null,L&&L(t)},i.__r=function(t){N&&N(t),A=0;var e=(I=t.__c).__H;e&&(e.__h.forEach(J),e.__h.forEach(X),e.__h=[])},i.diffed=function(t){z&&z(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==j.push(e)&&U===i.requestAnimationFrame||((U=i.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(i),Q&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);Q&&(e=requestAnimationFrame(n))})(Z)),I=null},i.__c=function(t,e){e.some((function(t){try{t.__h.forEach(J),t.__h=t.__h.filter((function(t){return!t.__||X(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],i.__e(n,t.__v)}})),V&&V(t,e)},i.unmount=function(t){q&&q(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{J(t)}catch(t){e=t}})),e&&i.__e(e,n.__v))};var Q="function"==typeof requestAnimationFrame;function J(t){var e=I,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),I=e}function X(t){var e=I;t.__c=t.__(),I=e}function Y(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function tt(t,e){return"function"==typeof e?e(t):e}var et=Object.freeze({__proto__:null,BUILD_VERSION:"2.102.4",Component:v,Fragment:p,PKG_NAME:"@hpcc-js/preact-shim",PKG_VERSION:"2.14.1",createElement:f,h:f,render:D,useEffect:$,useMemo:function(t,e){var n=G(A++,7);return Y(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__},useReducer:K,useState:B}),nt=Math.PI,it=2*nt,ot=1e-6,rt=it-ot;function lt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function _t(){return new lt}function at(t){return function(){return t}}function st(t){this._context=t}function ct(t){return new st(t)}function ht(t){return t[0]}function ut(t){return t[1]}function ft(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function dt(t){this._context=t}lt.prototype=_t.prototype={constructor:lt,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,o,r){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+o)+","+(this._y1=+r)},arcTo:function(t,e,n,i,o){t=+t,e=+e,n=+n,i=+i,o=+o;var r=this._x1,l=this._y1,_=n-t,a=i-e,s=r-t,c=l-e,h=s*s+c*c;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>ot)if(Math.abs(c*_-a*s)>ot&&o){var u=n-r,f=i-l,d=_*_+a*a,p=u*u+f*f,v=Math.sqrt(d),g=Math.sqrt(h),y=o*Math.tan((nt-Math.acos((d+h-p)/(2*v*g)))/2),x=y/g,m=y/v;Math.abs(x-1)>ot&&(this._+="L"+(t+x*s)+","+(e+x*c)),this._+="A"+o+","+o+",0,0,"+ +(c*u>s*f)+","+(this._x1=t+m*_)+","+(this._y1=e+m*a)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,i,o,r){t=+t,e=+e,r=!!r;var l=(n=+n)*Math.cos(i),_=n*Math.sin(i),a=t+l,s=e+_,c=1^r,h=r?i-o:o-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+a+","+s:(Math.abs(this._x1-a)>ot||Math.abs(this._y1-s)>ot)&&(this._+="L"+a+","+s),n&&(h<0&&(h=h%it+it),h>rt?this._+="A"+n+","+n+",0,1,"+c+","+(t-l)+","+(e-_)+"A"+n+","+n+",0,1,"+c+","+(this._x1=a)+","+(this._y1=s):h>ot&&(this._+="A"+n+","+n+",0,"+ +(h>=nt)+","+c+","+(this._x1=t+n*Math.cos(o))+","+(this._y1=e+n*Math.sin(o))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}},st.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},dt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ft(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ft(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var pt=function(){var t=ht,e=ut,n=at(!0),i=null,o=ct,r=null;function l(l){var _,a,s,c=l.length,h=!1;for(null==i&&(r=o(s=_t())),_=0;_<=c;++_)!(_<c&&n(a=l[_],_,l))===h&&((h=!h)?r.lineStart():r.lineEnd()),h&&r.point(+t(a,_,l),+e(a,_,l));if(s)return r=null,s+""||null}return l.x=function(e){return arguments.length?(t="function"==typeof e?e:at(+e),l):t},l.y=function(t){return arguments.length?(e="function"==typeof t?t:at(+t),l):e},l.defined=function(t){return arguments.length?(n="function"==typeof t?t:at(!!t),l):n},l.curve=function(t){return arguments.length?(o=t,null!=i&&(r=o(i)),l):o},l.context=function(t){return arguments.length?(null==t?i=r=null:r=o(i=t),l):i},l}().x((function(t){return t[0]})).y((function(t){return t[1]})).curve((function(t){return new dt(t)}));function vt(t,e){if(2===t.length&&e){var n=t[0][0]-t[1][0],i=t[0][1]-t[1][1];if(Math.sqrt(n*n+i*i)){var o=(t[0][0]+t[1][0])/2-i*e/100,r=(t[0][1]+t[1][1])/2+n*e/100;return[t[0],[o,r],t[1]]}}return t}var gt=function(t){var n=t.x,i=t.y,o=void 0===i?0:i,r=t.height,l=void 0===r?12:r,_=t.fill,a=t.stroke,s=t.fontFamily,c=void 0===s?"FontAwesome":s,h=t.char,u=void 0===h?"":h;return f("text",{x:n,y:o,fill:_,stroke:a,"font-family":c,"font-size":"".concat(l,"px"),"dominant-baseline":"middle",style:"text-anchor: middle;alignment-baseline:middle;"},"FontAwesome"===c?e.Utility.faChar(u):u)},yt=function(t,e){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},yt(t,e)};function xt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}yt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var mt=function(){return mt=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},mt.apply(this,arguments)};function kt(t,e,n,i){var o,r=arguments.length,l=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,n,i);else for(var _=t.length-1;_>=0;_--)(o=t[_])&&(l=(r<3?o(l):r>3?o(e,n,l):o(e,n))||l);return r>3&&l&&Object.defineProperty(e,n,l),l}function bt(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var Ft=function(t){var e=t.radius,n=void 0===e?32:e,i=t.fill,o=void 0===i?"navy":i,r=t.stroke,l=void 0===r?o:r,_=t.strokeWidth;return f("circle",{r:n,fill:o,stroke:l,"stroke-width":void 0===_?1:_,"shape-rendering":t.shapeRendering})},wt=function(t){var e=t.radius,n=void 0===e?30:e,i=t.cornerRadius,o=void 0===i?0:i,r=t.fill,l=void 0===r?"white":r,_=t.stroke,a=t.strokeWidth;return f("rect",{x:-n,y:-n,rx:o,ry:o,width:2*n,height:2*n,fill:l,stroke:_||l,"stroke-width":void 0===a?1:a,"shape-rendering":t.shapeRendering})},St=function(t){var e=t.width,n=void 0===e?30:e,i=t.height,o=void 0===i?30:i,r=t.cornerRadius,l=void 0===r?0:r,_=t.fill,a=void 0===_?"white":_,s=t.stroke,c=void 0===s?"black":s,h=t.strokeWidth;return f("rect",{x:-n/2,y:-o/2,rx:l,ry:l,width:n,height:o,fill:a,stroke:c||a,"stroke-width":void 0===h?1:h,"shape-rendering":t.shapeRendering})},Ct=function(t){var e=t.shape,n=void 0===e?"circle":e,i=t.height,o=void 0===i?128:i,r=t.fill,l=t.stroke,_=t.strokeWidth,a=void 0===_?1:_,s=t.shapeRendering,c=t.cornerRadius;return"square"===n?f(wt,{radius:o/2,fill:r,stroke:l,strokeWidth:a,shapeRendering:s,cornerRadius:c}):f(Ft,{radius:o/2,fill:r,stroke:l,strokeWidth:a,shapeRendering:s})},Rt=function(t){var n=t.shape,i=void 0===n?"circle":n,o=t.height,r=void 0===o?32:o,l=t.fill,_=t.stroke,a=t.strokeWidth,s=void 0===a?0:a,c=t.imageFontFamily,h=void 0===c?"FontAwesome":c,u=t.imageChar,d=void 0===u?"":u,v=t.imageCharFill,g=void 0===v?e.Palette.textColor(l):v,y=t.padding,x=void 0===y?r/5:y,m=t.yOffset,k=void 0===m?0:m,b=t.cornerRadius,F=t.shapeRendering;return f(p,null,f(Ct,{shape:i,height:r,fill:l,stroke:_,strokeWidth:s,shapeRendering:F,cornerRadius:b}),f(gt,{y:k,height:r-x,fontFamily:h,char:d,fill:g,"font-weight":400}))};function Pt(t,e,n,i){D(f(t,e),n,i)}var Tt=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return xt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=mt(mt({},this._props),t),this):this._props},n.prototype.prop=function(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)},n.prototype.update=function(e,n){t.prototype.update.call(this,e,n),Pt(this._component,this._props,e)},kt([e.publish({},"object","Properties"),bt("design:type",Object)],n.prototype,"_props",void 0),n}(e.HTMLWidget),Et=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return xt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=mt(mt({},this._props),t),this):this._props},n.prototype.prop=function(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)},n.prototype.update=function(e,n){t.prototype.update.call(this,e,n),Pt(this._component,this._props,e)},kt([e.publish({},"object","Properties"),bt("design:type",Object)],n.prototype,"_props",void 0),n}(e.SVGWidget),Mt=function(t){var e=t.text,n=t.height,i=void 0===n?12:n,o=t.anchor,r=void 0===o?"middle":o,l=t.baseline,_=void 0===l?"middle":l,a=t.fontFamily,s=void 0===a?"Verdana":a,c=t.fill,h=void 0===c?"black":c;return f("text",{"font-family":s,"font-size":"".concat(i,"px"),"text-anchor":r,"dominant-baseline":_,fill:h},e)},Wt=function(t){var n=t.text,i=t.height,o=void 0===i?12:i,r=t.fontFamily,l=void 0===r?"Verdana":r,_=t.fill,a=void 0===_?"black":_,s=t.onSizeUpdate,c=void 0===s?function(t){}:s,h=B(0),u=h[0],d=h[1],v=B(0),g=v[0],y=v[1];$((function(){return c({width:u,height:g})}),[u,g]);var x=n.split("\n");d(e.Utility.textSize(x,l,o).width),y(x.length*(o+2)-2);var m=-g/2+o/2,k=x.map((function(t,e){return f("g",{transform:"translate(0 ".concat(m+e*(o+2),")")},f(Mt,{text:t,height:o,fontFamily:l,fill:a}))}));return f(p,null,k)},Ht=function(t){var e=t.text,n=t.height,i=void 0===n?12:n,o=t.fontFamily,r=void 0===o?"Verdana":o,l=t.padding,_=void 0===l?4:l,a=t.fill,s=void 0===a?"whitesmoke":a,c=t.stroke,h=void 0===c?"lightgray":c,u=t.textFill,d=void 0===u?"black":u,v=t.strokeWidth,g=void 0===v?1:v,y=t.cornerRadius,x=void 0===y?0:y,m=t.onSizeUpdate,k=void 0===m?function(t){}:m,b=B(0),F=b[0],w=b[1],S=B(0),C=S[0],R=S[1];$((function(){return k({width:F,height:C})}),[F,C]);var P=F+2*_+g,T=C+2*_+g,E=Math.floor(i/10);return f(p,null,f(St,{width:P,height:T,fill:s,stroke:h,strokeWidth:g,cornerRadius:x}),f("g",{transform:"translate(0 ".concat(E,")")},f(Wt,{text:e,fontFamily:r,height:i,fill:d,onSizeUpdate:function(t){w(t.width),R(t.height)}})))},Dt=function(t){var e=t.x,n=t.y,i=t.annotationIDs,o=void 0===i?[]:i,r=t.stepSize,l=void 0===r?-16:r,_=o.map((function(t,i){return f("g",{key:t,transform:"translate(".concat(e+i*l," ").concat(n,")")},f("use",{href:"#"+t}))}));return f(p,null,_)},At=function(t){t.categoryID;var n=t.text,i=void 0===n?"":n,o=t.textHeight,r=void 0===o?10:o,l=t.textPadding,_=void 0===l?4:l,a=t.textFill,s=void 0===a?"#287EC4":a,c=t.textboxFill,h=void 0===c?"white":c,u=t.textboxStroke,d=void 0===u?"#CCCCCC":u,p=t.textboxStrokeWidth,v=void 0===p?1:p,g=t.textFontFamily,y=void 0===g?"Verdana":g,x=t.annotationGutter,m=void 0===x?2:x,k=t.annotations,b=void 0===k?[]:k,F=t.cornerRadius,w=void 0===F?3:F,S=t.icon,C=void 0===S?{}:S,R=t.subText,P=void 0===R?{}:R,T=t.showLabel,E=void 0===T||T,M=t.noLabelRadius,W=void 0===M?5:M;C=mt({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},C),P=mt({text:"",fill:"white",textFill:"#555555"},P);var H=0,D=e.Utility.textSize(i,y,r,!1).width,A=0;""!==i&&(A=D+2*_+2*v);var I=(H+=A+m)-A/2,U=r+2*_+2*v,O=[];b.forEach((function(t){var e=t.imageChar,n=(H+=U+m)-U/2;O.push(f("g",{class:"vertex3-anno",transform:"translate(".concat(n," ").concat(0,")")},f(Rt,mt({},t,{shape:"square",height:U,imageChar:e,imageFontFamily:t.imageFontFamily,cornerRadius:w,strokeWidth:0}))))})),b.length>0&&(H+=m*(b.length-1));var j=f("g",{transform:"translate(".concat(I," ").concat(0,")")},E&&""!==i?f(Ht,{text:i,height:r,padding:_,strokeWidth:v,stroke:d,fill:h,textFill:s,fontFamily:y,cornerRadius:w}):f("circle",{r:W,stroke:d,fill:s})),L=C.height||20,N=C.strokeWidth||0,z=0,V=U+2*m;""!==i||O.length>0?z=-L/2-N-U/2-2*m:""!==P.text&&(V=L/2+N+2*m);var q=""===P.text?null:f("g",{transform:"translate(".concat(0," ").concat(V,")")},f(Ht,mt({fill:P.fill||"#FFFFFF",textFill:P.textFill||s},P,{height:r,padding:_,strokeWidth:0,stroke:d,fontFamily:y,cornerRadius:w})));return f("g",null,f("g",{transform:"translate(".concat(0," ").concat(z,")")},f(Rt,mt({},C))),f("g",{transform:"translate(".concat(-H/2," ").concat(0,")")},j,O),q)};t.Annotations=Dt,t.BUILD_VERSION="2.102.4",t.CentroidVertex3=function(t){var e=t.categoryID,n=void 0===e?"":e,i=t.text,o=void 0===i?"":i,r=t.textHeight,l=void 0===r?12:r,_=t.textPadding,a=void 0===_?10:_,s=t.textFill,c=void 0===s?"#287EC4":s,h=t.textboxFill,u=void 0===h?"white":h,d=t.textboxStroke,p=void 0===d?"#CCCCCC":d,v=t.textboxStrokeWidth,g=void 0===v?1:v,y=t.textFontFamily,x=void 0===y?"Verdana":y,m=t.annotationGutter,k=void 0===m?2:m,b=t.annotations,F=void 0===b?[]:b,w=t.cornerRadius,S=t.icon,C=void 0===S?{}:S,R=t.subText,P=void 0===R?{}:R;return C=mt({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},C),P=mt({text:"",fill:"transparent",textFill:"#555555"},P),f(At,mt({},{categoryID:n,text:o,textHeight:l,textPadding:a,textFill:c,textboxFill:u,textboxStroke:p,textboxStrokeWidth:g,textFontFamily:x,annotationGutter:k,annotations:F,cornerRadius:w,icon:C,subText:P},{icon:C,subText:P}))},t.Circle=Ft,t.Edge=function(t){var e=t.points,n=void 0===e?[]:e,i=t.curveDepth,o=void 0===i?16:i,r=t.stroke,l=void 0===r?"black":r,_=t.strokeDasharray;return console.log("strokeDasharray",_),f("path",{stroke:l,"stroke-dasharray":_,d:pt(vt(n,o))})},t.HTMLAdapter=Tt,t.Icon=Rt,t.IconLabelledRect=function(t){var e=t.icon,n=t.iconFontFamily,i=t.text,o=t.height,r=void 0===o?12:o,l=t.width,_=void 0===l?12:l,a=t.fontFamily,s=void 0===a?"Verdana":a,c=t.fontSize,h=void 0===c?10:c,u=t.padding,d=void 0===u?3:u,v=t.fill,g=void 0===v?"whitesmoke":v,y=t.stroke,x=void 0===y?"lightgray":y,m=t.textFill,k=void 0===m?"black":m,b=t.strokeWidth,F=void 0===b?1:b,w=t.cornerRadius,S=void 0===w?0:w;return t.onSizeUpdate,f(p,null,f(St,{width:_,height:r,fill:g,stroke:x,strokeWidth:F,cornerRadius:S}),f("g",{transform:"translate(".concat(-_/2+d," ").concat(-r/2+d,")")},f(Rt,{shape:"square",imageFontFamily:n,imageChar:e,height:r,fill:g,imageCharFill:k})),f("g",{transform:"translate(".concat(-_/2+2*d+r," ").concat(-r/2+d,")")},f(Mt,{text:i,fontFamily:s,height:h,fill:k,anchor:"start",baseline:"hanging"})))},t.Icons=function(t){var e=t.icons,n=(void 0===e?[]:e).map((function(t){return f("g",{key:t.id,id:t.id},f(Rt,mt({},t)))}));return f(p,null,n)},t.ImageChar=gt,t.LabelledRect=function(t){var e=t.text,n=t.height,i=void 0===n?12:n,o=t.width,r=void 0===o?12:o,l=t.fontFamily,_=void 0===l?"Verdana":l,a=t.fontSize,s=void 0===a?10:a,c=t.padding,h=void 0===c?3:c,u=t.fill,d=void 0===u?"whitesmoke":u,v=t.stroke,g=void 0===v?"lightgray":v,y=t.textFill,x=void 0===y?"black":y,m=t.strokeWidth,k=void 0===m?1:m,b=t.cornerRadius,F=void 0===b?0:b;return t.onSizeUpdate,f(p,null,f(St,{width:r,height:i,fill:d,stroke:g,strokeWidth:k,cornerRadius:F}),f("g",{transform:"translate(".concat(-r/2+h," ").concat(-i/2+h,")")},f(Mt,{text:e,fontFamily:_,height:s,fill:x,anchor:"start",baseline:"hanging"})))},t.PKG_NAME="@hpcc-js/react",t.PKG_VERSION="2.49.1",t.React=et,t.Rectangle=St,t.SVGAdapter=Et,t.Shape=Ct,t.Square=wt,t.Subgraph=function(t){var n=t.text,i=t.width,o=void 0===i?100:i,r=t.height,l=void 0===r?100:r,_=t.fill,a=void 0===_?"transparent":_,s=t.stroke,c=void 0===s?"black":s,h=t.fontHeight,u=void 0===h?12:h,d=t.fontFamily,v=e.Utility.textSize(n,d,u,!1);return f(p,null,f(St,{width:o,height:l,fill:a,stroke:c}),f("g",{transform:"translate(".concat((-o+v.width)/2+4," ").concat((-l+v.height)/2+4,")")},f(Wt,{height:u,text:n,fontFamily:d})))},t.Text=Wt,t.TextBox=Ht,t.TextLine=Mt,t.Vertex=function(t){var e=t.categoryID,n=void 0===e?"":e,i=t.text,o=void 0===i?"":i,r=t.textHeight,l=void 0===r?12:r,_=t.textPadding,a=void 0===_?4:_,s=t.icon,c=void 0===s?{}:s,h=t.annotationsHeight,u=void 0===h?12:h,d=t.annotationIDs,p=void 0===d?[]:d,v=t.textFill,g=t.textboxFill,y=t.textboxStroke,x=t.textFontFamily,m=t.onSizeUpdate,k=void 0===m?function(t){}:m,b=t.showLabel,F=void 0===b||b,w=B(0),S=w[0],C=w[1],R=B(0),P=R[0],T=R[1];$((function(){return k({width:0,height:0})}),[S,P]);var E=S;E+=4;var M=-(2*(c=mt({imageChar:"fa-question",height:32,fill:"transparent"},c)).height/6+l+8)/2,W=c.height/3+P/2+a,H=c.height/3+P+a+u/3;F||(M+=(l+8)/2,H-=P+a);var D=F?f("g",{transform:"translate(0 ".concat(W,")")},f(Ht,{text:o,height:l,padding:a,onSizeUpdate:function(t){C(t.width),T(t.height)},textFill:v,fill:g,stroke:y,fontFamily:x})):void 0;return n?f("g",{transform:"translate(0 ".concat(M,")")},f("use",{href:"#"+n}),D,f(Dt,{x:E/2,y:H,annotationIDs:p})):f("g",{transform:"translate(0 ".concat(M,")")},f(Rt,mt({},c)),D)},t.Vertex2=function(t){var n=t.categoryID,i=void 0===n?"":n,o=t.text,r=void 0===o?"":o,l=t.textHeight,_=void 0===l?12:l,a=t.textPadding,s=void 0===a?4:a,c=t.icon,h=void 0===c?{}:c,u=t.textFill,d=void 0===u?"black":u,v=t.textboxFill,g=void 0===v?"white":v,y=t.textboxStroke,x=void 0===y?"black":y,m=t.textFontFamily,k=t.annotationsHeight,b=void 0===k?12:k,F=t.annotationIDs,w=void 0===F?[]:F;h=mt({imageChar:"fa-question",imageCharFill:"white",height:32,fill:"black",shape:"square"},h);var S=_+2*s,C=e.Utility.textSize(r,m,_,!1).width,R=b,P=S/2,T=-(2*h.height/6+_+8)/2,E=-h.height/2,M=Math.ceil(C/2+s),W=P-h.height/2,H=R/2,D=P;return i?f("g",{transform:"translate(".concat(0," ").concat(T,")")},f("g",{transform:"translate(".concat(E," ").concat(0,")")},f("use",{href:"#"+i})),f("g",{transform:"translate(".concat(M," ").concat(W,")")},f(Ht,{text:r,height:_,padding:s,strokeWidth:1,stroke:x,fill:g,textFill:d,fontFamily:m})),f(Dt,{x:H,y:D,annotationIDs:w,stepSize:R})):f(p,null,f("g",{transform:"translate(".concat(E," ").concat(0,")scale(1.0002)")},f(Rt,mt({},h,{shape:"square"}))),f("g",{transform:"translate(".concat(M," ").concat(W,")scale(1.0002)")},f(Ht,{text:r,height:_,padding:s,stroke:x,fill:g})))},t.Vertex3=At,t.render=Pt,t.svgRender=function(t,e,n,i){D(f("svg",null,f(t,e)),n,i)},Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=index.min.js.map
{
"name": "@hpcc-js/react",
"version": "2.48.0",
"version": "2.49.1",
"description": "hpcc-js - Viz React",

@@ -35,3 +35,3 @@ "main": "dist/index.js",

"watch": "npm-run-all compile-es6 -p compile-es6-watch bundle-watch",
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
"stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js",
"lint": "eslint src/**/*.ts",

@@ -42,24 +42,8 @@ "docs": "typedoc --options tdoptions.json .",

"dependencies": {
"@hpcc-js/common": "^2.65.0",
"@hpcc-js/preact-shim": "^2.13.22"
"@hpcc-js/common": "^2.66.1",
"@hpcc-js/preact-shim": "^2.14.1"
},
"devDependencies": {
"@hpcc-js/bundle": "^2.10.23",
"@rollup/plugin-alias": "3.1.0",
"@rollup/plugin-commonjs": "12.0.0",
"@rollup/plugin-node-resolve": "8.0.0",
"@typescript-eslint/eslint-plugin": "4.31.0",
"@typescript-eslint/parser": "4.31.0",
"downlevel-dts": "0.6.0",
"eslint": "7.32.0",
"eslint-plugin-react-hooks": "^4.3.0",
"npm-run-all": "4.1.5",
"rimraf": "2.6.3",
"rollup": "2.10.7",
"rollup-plugin-postcss": "3.1.1",
"rollup-plugin-sourcemaps": "0.6.2",
"terser": "4.0.0",
"tslib": "2.3.0",
"typedoc": "0.14.2",
"typescript": "4.3.4"
"@hpcc-js/bundle": "^2.11.1",
"tslib": "2.3.1"
},

@@ -77,3 +61,3 @@ "repository": {

"homepage": "https://github.com/hpcc-systems/Visualization",
"gitHead": "e89ca1a0aecd1422fde175a1916720134e18014e"
"gitHead": "cd0029695af339b4f316099b57ee0ada54e74910"
}
export const PKG_NAME = "@hpcc-js/react";
export const PKG_VERSION = "2.48.0";
export const BUILD_VERSION = "2.101.0";
export const PKG_VERSION = "2.49.1";
export const BUILD_VERSION = "2.102.4";
export declare const PKG_NAME = "@hpcc-js/react";
export declare const PKG_VERSION = "2.48.0";
export declare const BUILD_VERSION = "2.101.0";
export declare const PKG_VERSION = "2.49.1";
export declare const BUILD_VERSION = "2.102.4";
//# sourceMappingURL=__package__.d.ts.map
export declare const PKG_NAME = "@hpcc-js/react";
export declare const PKG_VERSION = "2.48.0";
export declare const BUILD_VERSION = "2.101.0";
export declare const PKG_VERSION = "2.49.1";
export declare const BUILD_VERSION = "2.102.4";
//# sourceMappingURL=__package__.d.ts.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc