@hpcc-js/react 2.54.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -575
- package/dist/index.js.map +7 -1
- package/package.json +34 -33
- package/src/ImageChar.tsx +12 -9
- package/src/__package__.ts +2 -2
- package/src/edge.tsx +3 -3
- package/src/icon.tsx +10 -10
- package/src/image.tsx +3 -3
- package/src/index.ts +15 -13
- package/src/render.ts +46 -17
- package/src/shape.tsx +15 -15
- package/src/span.tsx +9 -0
- package/src/subgraph.tsx +3 -3
- package/src/text.tsx +58 -39
- package/src/vertex.tsx +17 -14
- package/src/vertex2.tsx +5 -5
- package/src/vertex3.tsx +11 -11
- package/src/vertex4.tsx +10 -11
- package/types/ImageChar.d.ts +4 -5
- package/types/__package__.d.ts +2 -3
- package/types/edge.d.ts +2 -3
- package/types/icon.d.ts +6 -7
- package/types/image.d.ts +3 -4
- package/types/index.d.ts +15 -14
- package/types/render.d.ts +16 -8
- package/types/shape.d.ts +9 -10
- package/types/span.d.ts +5 -0
- package/types/subgraph.d.ts +1 -2
- package/types/text.d.ts +11 -13
- package/types/vertex.d.ts +5 -6
- package/types/vertex2.d.ts +2 -3
- package/types/vertex3.d.ts +8 -9
- package/types/vertex4.d.ts +4 -5
- package/dist/index.es6.js +0 -542
- package/dist/index.es6.js.map +0 -1
- package/dist/index.min.js +0 -2
- package/dist/index.min.js.map +0 -1
- package/types/ImageChar.d.ts.map +0 -1
- package/types/__package__.d.ts.map +0 -1
- package/types/edge.d.ts.map +0 -1
- package/types/icon.d.ts.map +0 -1
- package/types/image.d.ts.map +0 -1
- package/types/index.d.ts.map +0 -1
- package/types/render.d.ts.map +0 -1
- package/types/shape.d.ts.map +0 -1
- package/types/subgraph.d.ts.map +0 -1
- package/types/text.d.ts.map +0 -1
- package/types/vertex.d.ts.map +0 -1
- package/types/vertex2.d.ts.map +0 -1
- package/types/vertex3.d.ts.map +0 -1
- package/types/vertex4.d.ts.map +0 -1
- package/types-3.4/ImageChar.d.ts +0 -14
- package/types-3.4/__package__.d.ts +0 -4
- package/types-3.4/edge.d.ts +0 -30
- package/types-3.4/icon.d.ts +0 -27
- package/types-3.4/image.d.ts +0 -11
- package/types-3.4/index.d.ts +0 -15
- package/types-3.4/render.d.ts +0 -27
- package/types-3.4/shape.d.ts +0 -41
- package/types-3.4/subgraph.d.ts +0 -14
- package/types-3.4/text.d.ts +0 -51
- package/types-3.4/vertex.d.ts +0 -33
- package/types-3.4/vertex2.d.ts +0 -4
- package/types-3.4/vertex3.d.ts +0 -34
- package/types-3.4/vertex4.d.ts +0 -32
package/dist/index.min.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@hpcc-js/react"]={},t["@hpcc-js/common"])}(this,(function(t,e){"use strict";var n,o,i,r,a,l,_,c,s,d,u={},h=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,p=Array.isArray;function v(t,e){for(var n in e)t[n]=e[n];return t}function g(t){var e=t.parentNode;e&&e.removeChild(t)}function m(t,e,o){var i,r,a,l={};for(a in e)"key"==a?i=e[a]:"ref"==a?r=e[a]:l[a]=e[a];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):o),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===l[a]&&(l[a]=t.defaultProps[a]);return y(t,l,i,r,null)}function y(t,e,n,r,a){var l={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++i:a,__i:-1,__u:0};return null==a&&null!=o.vnode&&o.vnode(l),l}function x(t){return t.children}function k(t,e){this.props=t,this.context=e}function F(t,e){if(null==e)return t.__?F(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?F(t):null}function b(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 b(t)}}function w(t){(!t.__d&&(t.__d=!0)&&r.push(t)&&!C.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||l)(C)}function C(){var t,e,n,i,a,l,c,s;for(r.sort(_);t=r.shift();)t.__d&&(e=r.length,i=void 0,l=(a=(n=t).__v).__e,c=[],s=[],n.__P&&((i=v({},a)).__v=a.__v+1,o.vnode&&o.vnode(i),D(n.__P,i,a,n.__n,n.__P.namespaceURI,32&a.__u?[l]:null,c,null==l?F(a):l,!!(32&a.__u),s),i.__v=a.__v,i.__.__k[i.__i]=i,T(c,i,s),i.__e!=l&&b(i)),r.length>e&&r.sort(_));C.__r=0}function S(t,e,n,o,i,r,a,l,_,c,s){var d,f,p,v,g,m=o&&o.__k||h,y=e.length;for(n.__d=_,R(n,e,m),_=n.__d,d=0;d<y;d++)null!=(p=n.__k[d])&&"boolean"!=typeof p&&"function"!=typeof p&&(f=-1===p.__i?u:m[p.__i]||u,p.__i=d,D(t,p,f,i,r,a,l,_,c,s),v=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&I(f.ref,null,p),s.push(p.ref,p.__c||v,p)),null==g&&null!=v&&(g=v),65536&p.__u||f.__k===p.__k?(_&&!_.isConnected&&(_=F(f)),_=W(p,_,t)):"function"==typeof p.type&&void 0!==p.__d?_=p.__d:v&&(_=v.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=_,n.__e=g}function R(t,e,n){var o,i,r,a,l,_=e.length,c=n.length,s=c,d=0;for(t.__k=[],o=0;o<_;o++)a=o+d,null!=(i=t.__k[o]=null==(i=e[o])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?y(null,i,null,null,null):p(i)?y(x,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?y(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=t,i.__b=t.__b+1,l=O(i,n,a,s),i.__i=l,r=null,-1!==l&&(s--,(r=n[l])&&(r.__u|=131072)),null==r||null===r.__v?(-1==l&&d--,"function"!=typeof i.type&&(i.__u|=65536)):l!==a&&(l===a+1?d++:l>a?s>_-a?d+=l-a:d--:l<a?l==a-1&&(d=l-a):d=0,l!==o+d&&(i.__u|=65536))):(r=n[a])&&null==r.key&&r.__e&&!(131072&r.__u)&&(r.__e==t.__d&&(t.__d=F(r)),A(r,r,!1),n[a]=null,s--);if(s)for(o=0;o<c;o++)null!=(r=n[o])&&!(131072&r.__u)&&(r.__e==t.__d&&(t.__d=F(r)),A(r,r))}function W(t,e,n){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=t,e=W(o[i],e,n));return e}t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function O(t,e,n,o){var i=t.key,r=t.type,a=n-1,l=n+1,_=e[n];if(null===_||_&&i==_.key&&r===_.type&&!(131072&_.__u))return n;if(o>(null==_||131072&_.__u?0:1))for(;a>=0||l<e.length;){if(a>=0){if((_=e[a])&&!(131072&_.__u)&&i==_.key&&r===_.type)return a;a--}if(l<e.length){if((_=e[l])&&!(131072&_.__u)&&i==_.key&&r===_.type)return l;l++}}return-1}function P(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||f.test(e)?n:n+"px"}function H(t,e,n,o,i){var r;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||P(t.style,e,"");if(n)for(e in n)o&&n[e]===o[e]||P(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])r=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||"onFocusOut"===e||"onFocusIn"===e?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+r]=n,n?o?n.u=o.u:(n.u=c,t.addEventListener(e,r?d:s,r)):t.removeEventListener(e,r?d:s,r);else{if("http://www.w3.org/2000/svg"==i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function E(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=c++;else if(e.t<n.u)return;return n(o.event?o.event(e):e)}}}function D(t,e,n,i,r,a,l,_,c,s){var d,u,h,f,g,m,y,F,b,w,C,R,W,O,P,H=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(c=!!(32&n.__u),a=[_=e.__e=n.__e]),(d=o.__b)&&d(e);t:if("function"==typeof H)try{if(F=e.props,b=(d=H.contextType)&&i[d.__c],w=d?b?b.props.value:d.__:i,n.__c?y=(u=e.__c=n.__c).__=u.__E:("prototype"in H&&H.prototype.render?e.__c=u=new H(F,w):(e.__c=u=new k(F,w),u.constructor=H,u.render=V),b&&b.sub(u),u.props=F,u.state||(u.state={}),u.context=w,u.__n=i,h=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=H.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=v({},u.__s)),v(u.__s,H.getDerivedStateFromProps(F,u.__s))),f=u.props,g=u.state,u.__v=e,h)null==H.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==H.getDerivedStateFromProps&&F!==f&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(F,w),!u.__e&&(null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(F,u.__s,w)||e.__v===n.__v)){for(e.__v!==n.__v&&(u.props=F,u.state=u.__s,u.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),C=0;C<u._sb.length;C++)u.__h.push(u._sb[C]);u._sb=[],u.__h.length&&l.push(u);break t}null!=u.componentWillUpdate&&u.componentWillUpdate(F,u.__s,w),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(f,g,m)}))}if(u.context=w,u.props=F,u.__P=t,u.__e=!1,R=o.__r,W=0,"prototype"in H&&H.prototype.render){for(u.state=u.__s,u.__d=!1,R&&R(e),d=u.render(u.props,u.state,u.context),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[]}else do{u.__d=!1,R&&R(e),d=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++W<25);u.state=u.__s,null!=u.getChildContext&&(i=v(v({},i),u.getChildContext())),h||null==u.getSnapshotBeforeUpdate||(m=u.getSnapshotBeforeUpdate(f,g)),S(t,p(P=null!=d&&d.type===x&&null==d.key?d.props.children:d)?P:[P],e,n,i,r,a,l,_,c,s),u.base=e.__e,e.__u&=-161,u.__h.length&&l.push(u),y&&(u.__E=u.__=null)}catch(t){e.__v=null,c||null!=a?(e.__e=_,e.__u|=c?160:32,a[a.indexOf(_)]=null):(e.__e=n.__e,e.__k=n.__k),o.__e(t,e,n)}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=U(n.__e,e,n,i,r,a,l,c,s);(d=o.diffed)&&d(e)}function T(t,e,n){e.__d=void 0;for(var i=0;i<n.length;i++)I(n[i],n[++i],n[++i]);o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function U(t,e,o,i,r,a,l,_,c){var s,d,h,f,v,m,y,x=o.props,k=e.props,b=e.type;if("svg"===b?r="http://www.w3.org/2000/svg":"math"===b?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=a)for(s=0;s<a.length;s++)if((v=a[s])&&"setAttribute"in v==!!b&&(b?v.localName===b:3===v.nodeType)){t=v,a[s]=null;break}if(null==t){if(null===b)return document.createTextNode(k);t=document.createElementNS(r,b,k.is&&k),a=null,_=!1}if(null===b)x===k||_&&t.data===k||(t.data=k);else{if(a=a&&n.call(t.childNodes),x=o.props||u,!_&&null!=a)for(x={},s=0;s<t.attributes.length;s++)x[(v=t.attributes[s]).name]=v.value;for(s in x)if(v=x[s],"children"==s);else if("dangerouslySetInnerHTML"==s)h=v;else if("key"!==s&&!(s in k)){if("value"==s&&"defaultValue"in k||"checked"==s&&"defaultChecked"in k)continue;H(t,s,null,v,r)}for(s in k)v=k[s],"children"==s?f=v:"dangerouslySetInnerHTML"==s?d=v:"value"==s?m=v:"checked"==s?y=v:"key"===s||_&&"function"!=typeof v||x[s]===v||H(t,s,v,x[s],r);if(d)_||h&&(d.__html===h.__html||d.__html===t.innerHTML)||(t.innerHTML=d.__html),e.__k=[];else if(h&&(t.innerHTML=""),S(t,p(f)?f:[f],e,o,i,"foreignObject"===b?"http://www.w3.org/1999/xhtml":r,a,l,a?a[0]:o.__k&&F(o,0),_,c),null!=a)for(s=a.length;s--;)null!=a[s]&&g(a[s]);_||(s="value",void 0!==m&&(m!==t[s]||"progress"===b&&!m||"option"===b&&m!==x[s])&&H(t,s,m,x[s],r),s="checked",void 0!==y&&y!==t[s]&&H(t,s,y,x[s],r))}return t}function I(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,n)}}function A(t,e,n){var i,r;if(o.unmount&&o.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||I(i,null,e)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){o.__e(t,e)}i.base=i.__P=null}if(i=t.__k)for(r=0;r<i.length;r++)i[r]&&A(i[r],e,n||"function"!=typeof t.type);n||null==t.__e||g(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function V(t,e,n){return this.constructor(t,n)}function N(t,e,i){var r,a,l,_;o.__&&o.__(t,e),a=(r="function"==typeof i)?null:i&&i.__k||e.__k,l=[],_=[],D(e,t=(!r&&i||e).__k=m(x,null,[t]),a||u,u,e.namespaceURI,!r&&i?[i]:a?null:e.firstChild?n.call(e.childNodes):null,l,!r&&i?i:a?a.__e:e.firstChild,r,_),T(l,t,_)}n=h.slice,o={__e:function(t,e,n,o){for(var i,r,a;e=e.__;)if((i=e.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(t)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,o||{}),a=i.__d),a)return i.__E=i}catch(e){t=e}throw t}},i=0,k.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof t&&(t=t(v({},n),this.props)),t&&v(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),w(this))},k.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),w(this))},k.prototype.render=x,r=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_=function(t,e){return t.__v.__b-e.__v.__b},C.__r=0,c=0,s=E(!1),d=E(!0);var L,z,j,M,B=0,q=[],G=[],X=o,Y=X.__b,$=X.__r,J=X.diffed,K=X.__c,Q=X.unmount,Z=X.__;function tt(t,e){X.__h&&X.__h(z,t,B||e),B=0;var n=z.__H||(z.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:G}),n.__[t]}function et(t){return B=1,nt(ut,t)}function nt(t,e,n){var o=tt(L++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):ut(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],n=o.t(e,t);e!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=z,!z.u)){var i=function(t,e,n){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter((function(t){return!!t.__c}));if(i.every((function(t){return!t.__N})))return!r||r.call(this,t,e,n);var a=!1;return i.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),!(!a&&o.__c.props===t)&&(!r||r.call(this,t,e,n))};z.u=!0;var r=z.shouldComponentUpdate,a=z.componentWillUpdate;z.componentWillUpdate=function(t,e,n){if(this.__e){var o=r;r=void 0,i(t,e,n),r=o}a&&a.call(this,t,e,n)},z.shouldComponentUpdate=i}return o.__N||o.__}function ot(t,e){var n=tt(L++,3);!X.__s&&dt(n.__H,e)&&(n.__=t,n.i=e,z.__H.__h.push(n))}function it(t,e){var n=tt(L++,7);return dt(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function rt(t,e){return B=8,it((function(){return t}),e)}function at(){for(var t;t=q.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(ct),t.__H.__h.forEach(st),t.__H.__h=[]}catch(e){t.__H.__h=[],X.__e(e,t.__v)}}X.__b=function(t){z=null,Y&&Y(t)},X.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Z&&Z(t,e)},X.__r=function(t){$&&$(t),L=0;var e=(z=t.__c).__H;e&&(j===z?(e.__h=[],z.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=G,t.__N=t.i=void 0}))):(e.__h.forEach(ct),e.__h.forEach(st),e.__h=[],L=0)),j=z},X.diffed=function(t){J&&J(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==q.push(e)&&M===X.requestAnimationFrame||((M=X.requestAnimationFrame)||_t)(at)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==G&&(t.__=t.__V),t.i=void 0,t.__V=G}))),j=z=null},X.__c=function(t,e){e.some((function(t){try{t.__h.forEach(ct),t.__h=t.__h.filter((function(t){return!t.__||st(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],X.__e(n,t.__v)}})),K&&K(t,e)},X.unmount=function(t){Q&&Q(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{ct(t)}catch(t){e=t}})),n.__H=void 0,e&&X.__e(e,n.__v))};var lt="function"==typeof requestAnimationFrame;function _t(t){var e,n=function(){clearTimeout(o),lt&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,100);lt&&(e=requestAnimationFrame(n))}function ct(t){var e=z,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),z=e}function st(t){var e=z;t.__c=t.__(),z=e}function dt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function ut(t,e){return"function"==typeof e?e(t):e}var ht=Object.freeze({__proto__:null,BUILD_VERSION:"2.106.0",Component:k,Fragment:x,PKG_NAME:"@hpcc-js/preact-shim",PKG_VERSION:"2.17.0",createElement:m,h:m,render:N,useCallback:rt,useEffect:ot,useMemo:it,useReducer:nt,useState:et}),ft=function(t,e){return ft=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])},ft(t,e)};function pt(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}ft(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var vt=function(){return vt=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},vt.apply(this,arguments)};function gt(t,e,n,o){var i,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(a=(r<3?i(a):r>3?i(e,n,a):i(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function mt(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}"function"==typeof SuppressedError&&SuppressedError;var yt=function(t){var e=t.href,n=t.x,o=t.y,i=void 0===o?0:o,r=t.height,a=void 0===r?12:r;return m("image",{href:e,x:n-a/2,y:i-a/2,width:a,height:a})},xt=function(t){var n=t.x,o=t.y,i=void 0===o?0:o,r=t.height,a=void 0===r?12:r,l=t.fill,_=t.stroke,c=t.fontFamily,s=void 0===c?"FontAwesome":c,d=t.char,u=void 0===d?"":d,h=it((function(){return"FontAwesome"===s?e.Utility.faChar(u):u}),[u,s]);return m("text",{x:n,y:i,fill:l,stroke:_,"font-family":s,"font-size":"".concat(a,"px"),"dominant-baseline":"middle",style:"text-anchor: middle;alignment-baseline:middle;"},h)},kt=function(t){var e=t.radius,n=void 0===e?32:e,o=t.fill,i=void 0===o?"navy":o,r=t.stroke,a=void 0===r?i:r,l=t.strokeWidth;return m("circle",{r:n,fill:i,stroke:a,"stroke-width":void 0===l?1:l,"shape-rendering":t.shapeRendering})},Ft=function(t){var e=t.radius,n=void 0===e?30:e,o=t.cornerRadius,i=void 0===o?0:o,r=t.fill,a=void 0===r?"white":r,l=t.stroke,_=t.strokeWidth;return m("rect",{x:-n,y:-n,rx:i,ry:i,width:2*n,height:2*n,fill:a,stroke:l||a,"stroke-width":void 0===_?1:_,"shape-rendering":t.shapeRendering})},bt=function(t){var e=t.width,n=void 0===e?30:e,o=t.height,i=void 0===o?30:o,r=t.cornerRadius,a=void 0===r?0:r,l=t.fill,_=void 0===l?"white":l,c=t.stroke,s=void 0===c?"black":c,d=t.strokeWidth;return m("rect",{x:-n/2,y:-i/2,rx:a,ry:a,width:n,height:i,fill:_,stroke:s||_,"stroke-width":void 0===d?1:d,"shape-rendering":t.shapeRendering})},wt=function(t){var e=t.shape,n=void 0===e?"circle":e,o=t.height,i=void 0===o?128:o,r=t.width,a=t.fill,l=t.stroke,_=t.strokeWidth,c=void 0===_?1:_,s=t.shapeRendering,d=t.cornerRadius;switch(n){case"square":return m(Ft,{radius:i/2,fill:a,stroke:l,strokeWidth:c,shapeRendering:s,cornerRadius:d});case"rectangle":return m(bt,{width:null!=r?r:i,height:i,fill:a,stroke:l,strokeWidth:c,shapeRendering:s,cornerRadius:d});default:return m(kt,{radius:i/2,fill:a,stroke:l,strokeWidth:c,shapeRendering:s})}},Ct=function(t){var n=t.shape,o=void 0===n?"circle":n,i=t.width,r=t.height,a=void 0===r?32:r,l=t.fill,_=t.stroke,c=t.strokeWidth,s=void 0===c?0:c,d=t.imageUrl,u=void 0===d?"":d,h=t.imageFontFamily,f=void 0===h?"FontAwesome":h,p=t.imageChar,v=void 0===p?"":p,g=t.imageCharFill,y=void 0===g?e.Palette.textColor(l):g,k=t.padding,F=void 0===k?a/5:k,b=t.xOffset,w=void 0===b?0:b,C=t.yOffset,S=void 0===C?0:C,R=t.cornerRadius,W=t.shapeRendering;return m(x,null,m(wt,{shape:o,width:i,height:a,fill:l,stroke:_,strokeWidth:s,shapeRendering:W,cornerRadius:R}),u?m(yt,{href:u,x:w,y:S,height:a-F}):m(xt,{x:w,y:S,height:a-F,fontFamily:f,char:v,fill:y,"font-weight":400}))},St=function(t){var e=t.text,n=t.height,o=void 0===n?12:n,i=t.anchor,r=void 0===i?"middle":i,a=t.baseline,l=void 0===a?"middle":a,_=t.fontFamily,c=void 0===_?"Verdana":_,s=t.fill,d=void 0===s?"black":s;return m("text",{"font-family":c,"font-size":"".concat(o,"px"),"text-anchor":r,"dominant-baseline":l,fill:d},e)},Rt=function(t){var n=t.text,o=t.height,i=void 0===o?12:o,r=t.fontFamily,a=void 0===r?"Verdana":r,l=t.fill,_=void 0===l?"black":l,c=t.onSizeUpdate,s=et(0),d=s[0],u=s[1],h=et(0),f=h[0],p=h[1];ot((function(){c&&c({width:d,height:f})}),[d,f,c]);var v=it((function(){return n.split("\n")}),[n]);u(it((function(){return e.Utility.textSize(v,a,i)}),[a,i,v]).width),p(v.length*(i+2)-2);var g=-f/2+i/2,y=it((function(){return v.map((function(t,e){return m("g",{key:e,transform:"translate(0 ".concat(g+e*(i+2),")")},m(St,{text:t,height:i,fontFamily:a,fill:_}))}))}),[_,a,i,v,g]);return m(x,null,y)},Wt=function(t){var e=t.text,n=t.height,o=void 0===n?12:n,i=t.fontFamily,r=void 0===i?"Verdana":i,a=t.padding,l=void 0===a?4:a,_=t.fill,c=void 0===_?"whitesmoke":_,s=t.stroke,d=void 0===s?"lightgray":s,u=t.textFill,h=void 0===u?"black":u,f=t.strokeWidth,p=void 0===f?1:f,v=t.cornerRadius,g=void 0===v?0:v,y=t.onSizeUpdate,k=et(0),F=k[0],b=k[1],w=et(0),C=w[0],S=w[1];ot((function(){y&&y({width:F,height:C})}),[F,C,y]);var R=rt((function(t){b(t.width),S(t.height)}),[]),W=F+2*l+p,O=C+2*l+p,P=Math.floor(o/10);return m(x,null,m(bt,{width:W,height:O,fill:c,stroke:d,strokeWidth:p,cornerRadius:g}),m("g",{transform:"translate(0 ".concat(P,")")},m(Rt,{text:e,fontFamily:r,height:o,fill:h,onSizeUpdate:R})))};function Ot(t,e,n,o){N(m(t,e),n,o)}var Pt=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return pt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=vt(vt({},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),Ot(this._component,this._props,e)},gt([e.publish({},"object","Properties"),mt("design:type",Object)],n.prototype,"_props",void 0),n}(e.HTMLWidget),Ht=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return pt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=vt(vt({},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),Ot(this._component,this._props,e)},gt([e.publish({},"object","Properties"),mt("design:type",Object)],n.prototype,"_props",void 0),n}(e.SVGWidget),Et=function(t){var e=t.x,n=t.y,o=t.annotationIDs,i=void 0===o?[]:o,r=t.stepSize,a=void 0===r?-16:r,l=i.map((function(t,o){return m("g",{key:t,transform:"translate(".concat(e+o*a," ").concat(n,")")},m("use",{href:"#"+t}))}));return m(x,null,l)},Dt=function(t){var n=t.text,o=void 0===n?"":n,i=t.textHeight,r=void 0===i?10:i,a=t.textPadding,l=void 0===a?4:a,_=t.textFill,c=void 0===_?"#287EC4":_,s=t.textboxFill,d=void 0===s?"white":s,u=t.textboxStroke,h=void 0===u?"#CCCCCC":u,f=t.textboxStrokeWidth,p=void 0===f?1:f,v=t.textFontFamily,g=void 0===v?"Verdana":v,y=t.annotationGutter,x=void 0===y?2:y,k=t.annotations,F=void 0===k?[]:k,b=t.cornerRadius,w=void 0===b?3:b,C=t.icon,S=void 0===C?{}:C,R=t.subText,W=void 0===R?{text:""}:R,O=t.showLabel,P=void 0===O||O,H=t.noLabelRadius,E=void 0===H?5:H,D=t.expansionIcon,T=t.scale,U=void 0===T?1:T;S=vt({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},S),W=vt({text:"",fill:"white",textFill:"#555555"},W),D=D?vt({height:16,shape:"circle",padding:6,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"black",fill:"whitesmoke",stroke:"whitesmoke",strokeWidth:0},D):void 0;var I=0,A=it((function(){return e.Utility.textSize(o,g,r,!1).width}),[o,g,r]),V=0;""!==o&&(V=A+2*l+2*p);var N=(I+=V+x)-V/2,L=r+2*l+2*p,z=[];F.forEach((function(t,e){var n=t.imageChar,o=(I+=L+x)-L/2;z.push(m("g",{key:e,class:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(o," ").concat(0,")")},m(Ct,vt({},t,{shape:"square",height:L,imageChar:n,imageFontFamily:t.imageFontFamily,cornerRadius:w,strokeWidth:0}))))})),F.length>0&&(I+=x*(F.length-1));var j=m("g",{"data-click":"text",transform:"translate(".concat(N," ").concat(0,")")},P&&""!==o?m(Wt,{text:o,height:r,padding:l,strokeWidth:p,stroke:h,fill:d,textFill:c,fontFamily:g,cornerRadius:w}):m("circle",{r:E,stroke:h,fill:c})),M=S.height||20,B=S.strokeWidth||0,q=0,G=L+2*x;""!==o||z.length>0?q=-M/2-B-L/2-2*x:""!==W.text&&(G=M/2+B+2*x);var X=""===W.text?null:m("g",{"data-click":"subtext",transform:"translate(".concat(0," ").concat(G,")")},m(Wt,vt({fill:W.fill||"#FFFFFF",textFill:W.textFill||c},W,{height:r,padding:l,strokeWidth:0,stroke:h,fontFamily:g,cornerRadius:w})));return m("g",{transform:"scale(".concat(U,")")},m("g",{"data-click":"icon",transform:"translate(".concat(0," ").concat(q,")")},m(Ct,vt({},S)),D&&m("g",{"data-click":"expanded-icon","data-click-data":JSON.stringify(D),transform:"translate(".concat((S.height+B)/2-D.height/2," ").concat(-(S.height+B)/2+D.height/2,")")},m(Ct,vt({},D)))),m("g",{transform:"translate(".concat(-I/2," ").concat(0,")")},j,z),X)},Tt=function(t){t.categoryID;var n=t.text,o=void 0===n?"":n,i=t.textHeight,r=void 0===i?10:i,a=t.textPadding,l=void 0===a?4:a,_=t.textFill,c=void 0===_?"#287EC4":_,s=t.textboxFill,d=void 0===s?"white":s,u=t.textboxStroke,h=void 0===u?"#CCCCCC":u,f=t.textboxStrokeWidth,p=void 0===f?1:f,v=t.textFontFamily,g=void 0===v?"Verdana":v,y=t.annotationGutter,x=void 0===y?2:y,k=t.annotations,F=void 0===k?[]:k,b=t.iconAnnotations,w=void 0===b?[]:b,C=t.cornerRadius,S=void 0===C?3:C,R=t.icon,W=void 0===R?{}:R,O=t.subText,P=void 0===O?{}:O,H=t.showLabel,E=void 0===H||H,D=t.noLabelRadius,T=void 0===D?5:D,U=t.iconBorderWidth,I=void 0===U?1:U,A=t.iconBorderColor,V=void 0===A?"#333":A,N=t.iconBackgroundColor,L=void 0===N?"#fff":N,z=t.iconFontColor,j=void 0===z?"#000":z,M=t.iconFontSize,B=void 0===M?20:M,q=t.iconFontFamily,G=void 0===q?"FontAwesome":q,X=t.shapeOffsetX,Y=void 0===X?0:X,$=t.shapeOffsetY,J=void 0===$?0:$,K=t.iconOffsetX,Q=void 0===K?0:K,Z=t.iconOffsetY,tt=void 0===Z?0:Z,et=t.iconPadding,nt=void 0===et?4:et,ot=t.iconText,rt=void 0===ot?"?":ot,at=t.shapeRendering,lt=void 0===at?"auto":at;W=vt({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},W),P=vt({text:"",fill:"white",textFill:"#555555"},P);var _t=it((function(){return e.Utility.textSize(o,g,r,!1).width}),[o,g,r]),ct=0;""!==o&&(ct=_t+2*l+2*p);var st=ct+x,dt=st-ct/2,ut=r+2*x+2*p,ht=F.map((function(t,n){return e.Utility.textSize(t.imageChar,t.imageFontFamily,t.height,!1).width})),ft=[],pt=st;F.forEach((function(t,e){var n,o=t.imageChar,i=null!==(n=t.height)&&void 0!==n?n:ut,r=(pt+=ht[e]+x)-ht[e]/2;ft.push(m("g",{key:e,class:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(r," ").concat(0,")")},m(Ct,vt({},t,{shape:"rectangle",width:ht[e],height:i,imageChar:o,imageFontFamily:t.imageFontFamily,cornerRadius:S,strokeWidth:0}))))})),F.length>0&&(st+=x*(F.length-1));var gt=[];w.forEach((function(t,e){var n,o=t.shapeOffsetX,i=t.shapeOffsetY;gt.push(m("g",{key:e,class:"vertex3-iconAnno","data-click":"icon-annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(o," ").concat(i,")")},m(Ct,vt({},t,{shape:null!==(n=t.shape)&&void 0!==n?n:"square",imageChar:t.imageChar,imageFontFamily:t.imageFontFamily,cornerRadius:S,stroke:t.stroke,strokeWidth:t.strokeWidth}))))}));var mt=m("g",{"data-click":"text",transform:"translate(".concat(dt," ").concat(0,")")},E&&""!==o?m(Wt,{text:o,height:r,padding:l,strokeWidth:p,stroke:h,fill:d,textFill:c,fontFamily:g,cornerRadius:S}):m("circle",{r:T,stroke:h,fill:c})),yt=ut+2*x,xt=""===P.text?null:m("g",{"data-click":"subtext",transform:"translate(".concat(0," ").concat(yt,")")},m(Wt,vt({fill:P.fill||"#FFFFFF",textFill:P.textFill||c},P,{height:r,padding:l,strokeWidth:0,stroke:h,fontFamily:g,cornerRadius:S})));return m("g",null,m("g",{"data-click":"icon",transform:"translate(".concat(Y," ").concat(J,")")},m(Ct,vt({},W,{strokeWidth:I,shape:"circle",height:B,fill:L,stroke:V,imageFontFamily:G,imageChar:rt,imageCharFill:j,padding:nt,xOffset:Q,yOffset:tt,cornerRadius:S,shapeRendering:lt})),gt),m("g",{transform:"translate(".concat(-st/2," ").concat(0,")")},mt,ft),xt)};t.Annotations=Et,t.BUILD_VERSION="2.106.0",t.CentroidVertex3=function(t){var e=t.id,n=t.categoryID,o=void 0===n?"":n,i=t.text,r=void 0===i?"":i,a=t.textHeight,l=void 0===a?12:a,_=t.textPadding,c=void 0===_?10:_,s=t.textFill,d=void 0===s?"#287EC4":s,u=t.textboxFill,h=void 0===u?"white":u,f=t.textboxStroke,p=void 0===f?"#CCCCCC":f,v=t.textboxStrokeWidth,g=void 0===v?1:v,y=t.textFontFamily,x=void 0===y?"Verdana":y,k=t.annotationGutter,F=void 0===k?2:k,b=t.annotations,w=void 0===b?[]:b,C=t.cornerRadius,S=t.icon,R=void 0===S?{}:S,W=t.subText,O=void 0===W?{}:W,P=t.expansionIcon,H=t.scale,E=void 0===H?1:H;return R=vt({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},R),O=vt({text:"",fill:"transparent",textFill:"#555555"},O),m(Dt,vt({},{id:e,categoryID:o,text:r,textHeight:l,textPadding:c,textFill:d,textboxFill:h,textboxStroke:p,textboxStrokeWidth:g,textFontFamily:x,annotationGutter:F,annotations:w,cornerRadius:C,icon:R,subText:O,expansionIcon:P,scale:E},{icon:R,subText:O}))},t.CentroidVertex4=function(t){var e=t.id,n=t.categoryID,o=void 0===n?"":n,i=t.text,r=void 0===i?"":i,a=t.textHeight,l=void 0===a?12:a,_=t.textPadding,c=void 0===_?10:_,s=t.textFill,d=void 0===s?"#287EC4":s,u=t.textboxFill,h=void 0===u?"white":u,f=t.textboxStroke,p=void 0===f?"#CCCCCC":f,v=t.textboxStrokeWidth,g=void 0===v?1:v,y=t.textFontFamily,x=void 0===y?"Verdana":y,k=t.annotationGutter,F=void 0===k?2:k,b=t.annotations,w=void 0===b?[]:b,C=t.iconAnnotations,S=void 0===C?[]:C,R=t.cornerRadius,W=t.icon,O=void 0===W?{}:W,P=t.subText,H=void 0===P?{}:P,E=t.showLabel,D=void 0===E||E,T=t.noLabelRadius,U=void 0===T?5:T,I=t.iconBorderWidth,A=void 0===I?1:I,V=t.iconBorderColor,N=void 0===V?"#333":V,L=t.iconBackgroundColor,z=void 0===L?"#fff":L,j=t.iconFontColor,M=void 0===j?"#000":j,B=t.iconFontSize,q=void 0===B?20:B,G=t.iconFontFamily,X=void 0===G?"FontAwesome":G,Y=t.shapeOffsetX,$=void 0===Y?0:Y,J=t.shapeOffsetY,K=void 0===J?0:J,Q=t.iconOffsetX,Z=void 0===Q?0:Q,tt=t.iconOffsetY,et=void 0===tt?0:tt,nt=t.iconPadding,ot=void 0===nt?4:nt,it=t.iconText,rt=void 0===it?"?":it,at=t.shapeRendering,lt=void 0===at?"auto":at;return O=vt({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},O),H=vt({text:"",fill:"transparent",textFill:"#555555"},H),m(Tt,vt({},{id:e,categoryID:o,text:r,textHeight:l,textPadding:c,textFill:d,textboxFill:h,textboxStroke:p,textboxStrokeWidth:g,textFontFamily:x,annotationGutter:F,annotations:w,iconAnnotations:S,cornerRadius:R,icon:O,subText:H,showLabel:D,noLabelRadius:U,iconBorderWidth:A,iconBorderColor:N,iconBackgroundColor:z,iconFontColor:M,iconFontSize:q,iconFontFamily:X,shapeOffsetX:$,shapeOffsetY:K,iconOffsetX:Z,iconOffsetY:et,iconPadding:ot,iconText:rt,shapeRendering:lt},{icon:O,subText:H}))},t.Circle=kt,t.Edge=function(t){var e=t.label,n=t.labelPos,o=t.labelFill,i=void 0===o?"black":o,r=t.labelHeight,a=void 0===r?12:r;return m(x,null,m("path",{d:t.path,stroke:t.stroke,style:{strokeWidth:t.strokeWidth,strokeDasharray:t.strokeDasharray}}),e&&n&&2===n.length?m("g",{transform:"translate(".concat(n[0]," ").concat(n[1],")")},m(Rt,{text:e,fill:i,height:a})):void 0)},t.HTMLAdapter=Pt,t.Icon=Ct,t.IconLabelledRect=function(t){var e=t.icon,n=t.iconFontFamily,o=t.text,i=t.height,r=void 0===i?12:i,a=t.width,l=void 0===a?12:a,_=t.fontFamily,c=void 0===_?"Verdana":_,s=t.fontSize,d=void 0===s?10:s,u=t.padding,h=void 0===u?3:u,f=t.fill,p=void 0===f?"whitesmoke":f,v=t.stroke,g=void 0===v?"lightgray":v,y=t.textFill,k=void 0===y?"black":y,F=t.strokeWidth,b=void 0===F?1:F,w=t.cornerRadius,C=void 0===w?0:w;return t.onSizeUpdate,m(x,null,m(bt,{width:l,height:r,fill:p,stroke:g,strokeWidth:b,cornerRadius:C}),m("g",{transform:"translate(".concat(-l/2+h," ").concat(-r/2+h,")")},m(Ct,{shape:"square",imageFontFamily:n,imageChar:e,height:r,fill:p,imageCharFill:k})),m("g",{transform:"translate(".concat(-l/2+2*h+r," ").concat(-r/2+h,")")},m(St,{text:o,fontFamily:c,height:d,fill:k,anchor:"start",baseline:"hanging"})))},t.Icons=function(t){var e=t.icons,n=(void 0===e?[]:e).map((function(t){return m("g",{key:t.id,id:t.id},m(Ct,vt({},t)))}));return m(x,null,n)},t.ImageChar=xt,t.LabelledRect=function(t){var e=t.text,n=t.height,o=void 0===n?12:n,i=t.width,r=void 0===i?12:i,a=t.fontFamily,l=void 0===a?"Verdana":a,_=t.fontSize,c=void 0===_?10:_,s=t.padding,d=void 0===s?3:s,u=t.fill,h=void 0===u?"whitesmoke":u,f=t.stroke,p=void 0===f?"lightgray":f,v=t.textFill,g=void 0===v?"black":v,y=t.strokeWidth,k=void 0===y?1:y,F=t.cornerRadius,b=void 0===F?0:F;return t.onSizeUpdate,m(x,null,m(bt,{width:r,height:o,fill:h,stroke:p,strokeWidth:k,cornerRadius:b}),m("g",{transform:"translate(".concat(-r/2+d," ").concat(-o/2+d,")")},m(St,{text:e,fontFamily:l,height:c,fill:g,anchor:"start",baseline:"hanging"})))},t.PKG_NAME="@hpcc-js/react",t.PKG_VERSION="2.54.0",t.React=ht,t.Rectangle=bt,t.SVGAdapter=Ht,t.Shape=wt,t.Square=Ft,t.Subgraph=function(t){var n=t.text,o=t.width,i=void 0===o?100:o,r=t.height,a=void 0===r?100:r,l=t.fill,_=void 0===l?"transparent":l,c=t.stroke,s=void 0===c?"black":c,d=t.fontHeight,u=void 0===d?12:d,h=t.fontFamily,f=e.Utility.textSize(n,h,u,!1);return m(x,null,m(bt,{width:i,height:a,fill:_,stroke:s}),m("g",{transform:"translate(".concat((-i+f.width)/2+4," ").concat((-a+f.height)/2+4,")")},m(Rt,{height:u,text:n,fontFamily:h})))},t.Text=Rt,t.TextBox=Wt,t.TextLine=St,t.Vertex=function(t){var e=t.categoryID,n=void 0===e?"":e,o=t.text,i=void 0===o?"":o,r=t.textHeight,a=void 0===r?12:r,l=t.textPadding,_=void 0===l?4:l,c=t.icon,s=void 0===c?{}:c,d=t.annotationsHeight,u=void 0===d?12:d,h=t.annotationIDs,f=void 0===h?[]:h,p=t.textFill,v=t.textboxFill,g=t.textboxStroke,y=t.textFontFamily,x=t.onSizeUpdate,k=t.showLabel,F=void 0===k||k,b=t.scale,w=void 0===b?1:b,C=et(0),S=C[0],R=C[1],W=et(0),O=W[0],P=W[1];ot((function(){x&&x({width:0,height:0})}),[S,O,x]);var H=S;H+=4;var E=-(2*(s=vt({imageChar:"fa-question",height:32,fill:"transparent"},s)).height/6+a+8)/2,D=s.height/3+O/2+_,T=s.height/3+O+_+u/3;F||(E+=(a+8)/2,T-=O+_);var U=rt((function(t){R(t.width),P(t.height)}),[]),I=F?m("g",{transform:"translate(0 ".concat(D,")")},m(Wt,{text:i,height:a,padding:_,onSizeUpdate:U,textFill:p,fill:v,stroke:g,fontFamily:y})):void 0;return n?m("g",{transform:"translate(0 ".concat(E,") scale(").concat(w,")")},m("use",{href:"#"+n}),I,m(Et,{x:H/2,y:T,annotationIDs:f})):m("g",{transform:"translate(0 ".concat(E,") scale(").concat(w,")")},m(Ct,vt({},s)),I)},t.Vertex2=function(t){var n=t.categoryID,o=void 0===n?"":n,i=t.text,r=void 0===i?"":i,a=t.textHeight,l=void 0===a?12:a,_=t.textPadding,c=void 0===_?4:_,s=t.icon,d=void 0===s?{}:s,u=t.textFill,h=void 0===u?"black":u,f=t.textboxFill,p=void 0===f?"white":f,v=t.textboxStroke,g=void 0===v?"black":v,y=t.textFontFamily,k=t.annotationsHeight,F=void 0===k?12:k,b=t.annotationIDs,w=void 0===b?[]:b;d=vt({imageChar:"fa-question",imageCharFill:"white",height:32,fill:"black",shape:"square"},d);var C=l+2*c,S=it((function(){return e.Utility.textSize(r,y,l,!1)}),[r,y,l]).width,R=F,W=C/2,O=-(2*d.height/6+l+8)/2,P=-d.height/2,H=Math.ceil(S/2+c),E=W-d.height/2,D=R/2,T=W;return o?m("g",{transform:"translate(".concat(0," ").concat(O,")")},m("g",{transform:"translate(".concat(P," ").concat(0,")")},m("use",{href:"#"+o})),m("g",{transform:"translate(".concat(H," ").concat(E,")")},m(Wt,{text:r,height:l,padding:c,strokeWidth:1,stroke:g,fill:p,textFill:h,fontFamily:y})),m(Et,{x:D,y:T,annotationIDs:w,stepSize:R})):m(x,null,m("g",{transform:"translate(".concat(P," ").concat(0,")scale(1.0002)")},m(Ct,vt({},d,{shape:"square"}))),m("g",{transform:"translate(".concat(H," ").concat(E,")scale(1.0002)")},m(Wt,{text:r,height:l,padding:c,stroke:g,fill:p})))},t.Vertex3=Dt,t.Vertex4=Tt,t.render=Ot,t.svgRender=function(t,e,n,o){N(m("svg",null,m(t,e)),n,o)}}));
|
|
2
|
-
//# sourceMappingURL=index.min.js.map
|
package/dist/index.min.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["slice","options","vnodeId","rerenderQueue","prevDebounce","defer","depthSort","eventClock","eventProxy","eventProxyCapture","EMPTY_OBJ","EMPTY_ARR","IS_NON_DIMENSIONAL","isArray","Array","assign","obj","props","i","removeNode","node","parentNode","removeChild","createElement","type","children","key","ref","normalizedProps","arguments","length","call","defaultProps","createVNode","original","vnode","__k","__","__b","__e","__d","undefined","__c","constructor","__v","__i","__u","Fragment","BaseComponent","context","this","getDomSibling","childIndex","sibling","updateParentDomPointers","child","base","enqueueRender","c","push","process","debounceRendering","renderQueueLength","component","newVNode","oldVNode","oldDom","commitQueue","refQueue","sort","shift","diff","__P","namespaceURI","commitRoot","diffChildren","parentDom","renderResult","newParentVNode","oldParentVNode","globalContext","namespace","excessDomChildren","isHydrating","childVNode","newDom","firstChildDom","oldChildren","newChildrenLength","constructNewChildrenArray","applyRef","isConnected","insert","nextSibling","skewedIndex","matchingIndex","oldChildrenLength","remainingOldChildren","skew","String","findMatchingIndex","unmount","parentVNode","insertBefore","nodeType","x","y","setStyle","style","value","setProperty","test","dom","name","oldValue","useCapture","o","cssText","replace","toLowerCase","l","_attached","addEventListener","removeEventListener","e","removeAttribute","setAttribute","createEventProxy","eventHandler","_dispatched","event","tmp","isNew","oldProps","oldState","snapshot","clearProcessingException","newProps","provider","componentContext","renderHook","count","newType","outer","contextType","__E","prototype","render","doRender","sub","state","__n","__h","_sb","__s","getDerivedStateFromProps","componentWillMount","componentDidMount","componentWillReceiveProps","shouldComponentUpdate","forEach","componentWillUpdate","componentDidUpdate","__r","getChildContext","getSnapshotBeforeUpdate","MODE_HYDRATE","indexOf","diffElementNodes","diffed","root","some","cb","newHtml","oldHtml","newChildren","inputValue","checked","localName","document","createTextNode","createElementNS","is","data","childNodes","attributes","__html","innerHTML","current","skipRemove","r","componentWillUnmount","replaceNode","firstChild","error","errorInfo","ctor","handled","getDerivedStateFromError","setState","componentDidCatch","update","callback","s","forceUpdate","Promise","then","bind","resolve","setTimeout","a","b","currentIndex","currentComponent","previousComponent","prevRaf","currentHook","afterPaintEffects","EMPTY","_options","oldBeforeDiff","oldBeforeRender","oldAfterDiff","oldCommit","oldBeforeUnmount","oldRoot","getHookState","index","hooks","__H","__V","useState","initialState","useReducer","invokeOrReturn","reducer","init","hookState","_reducer","action","currentValue","__N","nextValue","_hasScuFromHooks","updateHookState","p","stateHooks","filter","every","prevScu","shouldUpdate","hookItem","prevCWU","useEffect","args","argsChanged","_pendingArgs","useMemo","factory","useCallback","flushAfterPaintEffects","invokeCleanup","invokeEffect","__m","requestAnimationFrame","afterNextFrame","hasErrored","HAS_RAF","raf","done","clearTimeout","timeout","cancelAnimationFrame","hook","comp","cleanup","oldArgs","newArgs","arg","f","extendStatics","d","Object","setPrototypeOf","__proto__","hasOwnProperty","__extends","TypeError","create","__assign","t","n","apply","__decorate","decorators","target","desc","getOwnPropertyDescriptor","Reflect","decorate","defineProperty","__metadata","metadataKey","metadataValue","metadata","SuppressedError","Image","_a","href","_b","_c","height","React.createElement","width","ImageChar","fill","stroke","_d","fontFamily","_e","char","renderChar","React.useMemo","Utility","faChar","concat","Circle","radius","strokeWidth","shapeRendering","Square","cornerRadius","rx","ry","Rectangle","_f","_g","Shape","shape","Icon","imageUrl","imageFontFamily","imageChar","_h","imageCharFill","Palette","textColor","_j","padding","_k","xOffset","_l","yOffset","React.Fragment","TextLine","text","anchor","baseline","Text","onSizeUpdate","React.useState","totalWidth","setTotalWidthUpdate","totalHeight","setTotalHeightUpdate","React.useEffect","parts","split","textSize","TextLines","map","transform","TextBox","textFill","textWidth","setTextWidthUpdate","textHeight","setTextHeightUpdate","onTextSizeUpdate","React.useCallback","size","w","h","textOffsetY","Math","floor","C","parent","React.render","React.h","HTMLAdapter","_super","_component","_this","_props","_","prop","domNode","element","publish","HTMLWidget","SVGAdapter","SVGWidget","Annotations","annotationIDs","stepSize","IconComponents","id","Vertex3","textPadding","textboxFill","textboxStroke","textboxStrokeWidth","textFontFamily","annotationGutter","annotations","_m","_o","icon","_p","subText","_q","showLabel","_r","noLabelRadius","expansionIcon","_s","scale","fullAnnotationWidth","labelWidth","labelShapeWidth","textOffsetX","textShapeHeight","annotationArr","anno","idx","annoText","annoOffsetX","class","JSON","stringify","textElement","iconHeight","iconStrokeWidth","iconOffsetY","subTextOffsetY","subtextElement","Vertex4","categoryID","iconAnnotations","_t","_u","iconBorderWidth","_v","iconBorderColor","_w","iconBackgroundColor","_x","iconFontColor","_y","iconFontSize","_z","iconFontFamily","_0","shapeOffsetX","_1","shapeOffsetY","_2","iconOffsetX","_3","_4","iconPadding","_5","iconText","_6","annoWidthArr","_labelAnnoOffsetX","annoTextHeight","iconAnnotationArr","label","labelPos","labelFill","labelHeight","path","strokeDasharray","fontSize","icons","cat","fontHeight","tSize","annotationsHeight","textBoxWidth","setTextBoxWidthUpdate","textBoxHeight","setTextBoxHeightUpdate","offsetY","textboxOffsetY","annotationOffsetY","onTextBoxSizeUpdate","halfTextboxHeight","textboxOffsetX","ceil","annotationOffsetX"],"sources":["../src/__package__.ts","../../preact-shim/node_modules/preact/src/util.js","../../preact-shim/node_modules/preact/src/options.js","../../preact-shim/node_modules/preact/src/create-element.js","../../preact-shim/node_modules/preact/src/component.js","../../preact-shim/node_modules/preact/src/diff/props.js","../../preact-shim/node_modules/preact/src/constants.js","../../preact-shim/node_modules/preact/src/diff/children.js","../../preact-shim/node_modules/preact/src/diff/index.js","../../preact-shim/node_modules/preact/src/render.js","../../preact-shim/node_modules/preact/src/diff/catch-error.js","../../preact-shim/node_modules/preact/hooks/src/index.js","../../preact-shim/src/__package__.ts","../../../node_modules/tslib/tslib.es6.mjs","../src/image.tsx","../src/ImageChar.tsx","../src/shape.tsx","../src/icon.tsx","../src/text.tsx","../src/render.ts","../src/vertex.tsx","../src/vertex3.tsx","../src/vertex4.tsx","../src/edge.tsx","../src/subgraph.tsx","../src/vertex2.tsx"],"sourcesContent":["export const PKG_NAME = \"@hpcc-js/react\";\nexport const PKG_VERSION = \"2.54.0\";\nexport const BUILD_VERSION = \"2.106.0\";\n","import { EMPTY_ARR } from './constants';\n\nexport const isArray = Array.isArray;\n\n/**\n * Assign properties from `props` to `obj`\n * @template O, P The obj and props types\n * @param {O} obj The object to copy properties to\n * @param {P} props The object to copy properties from\n * @returns {O & P}\n */\nexport function assign(obj, props) {\n\t// @ts-expect-error We change the type of `obj` to be `O & P`\n\tfor (let i in props) obj[i] = props[i];\n\treturn /** @type {O & P} */ (obj);\n}\n\n/**\n * Remove a child node from its parent if attached. This is a workaround for\n * IE11 which doesn't support `Element.prototype.remove()`. Using this function\n * is smaller than including a dedicated polyfill.\n * @param {preact.ContainerNode} node The node to remove\n */\nexport function removeNode(node) {\n\tlet parentNode = node.parentNode;\n\tif (parentNode) parentNode.removeChild(node);\n}\n\nexport const slice = EMPTY_ARR.slice;\n","import { _catchError } from './diff/catch-error';\n\n/**\n * The `option` object can potentially contain callback functions\n * that are called during various stages of our renderer. This is the\n * foundation on which all our addons like `preact/debug`, `preact/compat`,\n * and `preact/hooks` are based on. See the `Options` type in `internal.d.ts`\n * for a full list of available option hooks (most editors/IDEs allow you to\n * ctrl+click or cmd+click on mac the type definition below).\n * @type {Options}\n */\nconst options = {\n\t_catchError\n};\n\nexport default options;\n","import { slice } from './util';\nimport options from './options';\n\nlet vnodeId = 0;\n\n/**\n * Create an virtual node (used for JSX)\n * @param {VNode[\"type\"]} type The node name or Component constructor for this\n * virtual node\n * @param {object | null | undefined} [props] The properties of the virtual node\n * @param {Array<import('.').ComponentChildren>} [children] The children of the\n * virtual node\n * @returns {VNode}\n */\nexport function createElement(type, props, children) {\n\tlet normalizedProps = {},\n\t\tkey,\n\t\tref,\n\t\ti;\n\tfor (i in props) {\n\t\tif (i == 'key') key = props[i];\n\t\telse if (i == 'ref') ref = props[i];\n\t\telse normalizedProps[i] = props[i];\n\t}\n\n\tif (arguments.length > 2) {\n\t\tnormalizedProps.children =\n\t\t\targuments.length > 3 ? slice.call(arguments, 2) : children;\n\t}\n\n\t// If a Component VNode, check for and apply defaultProps\n\t// Note: type may be undefined in development, must never error here.\n\tif (typeof type == 'function' && type.defaultProps != null) {\n\t\tfor (i in type.defaultProps) {\n\t\t\tif (normalizedProps[i] === undefined) {\n\t\t\t\tnormalizedProps[i] = type.defaultProps[i];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn createVNode(type, normalizedProps, key, ref, null);\n}\n\n/**\n * Create a VNode (used internally by Preact)\n * @param {VNode[\"type\"]} type The node name or Component\n * Constructor for this virtual node\n * @param {object | string | number | null} props The properties of this virtual node.\n * If this virtual node represents a text node, this is the text of the node (string or number).\n * @param {string | number | null} key The key for this virtual node, used when\n * diffing it against its children\n * @param {VNode[\"ref\"]} ref The ref property that will\n * receive a reference to its created child\n * @returns {VNode}\n */\nexport function createVNode(type, props, key, ref, original) {\n\t// V8 seems to be better at detecting type shapes if the object is allocated from the same call site\n\t// Do not inline into createElement and coerceToVNode!\n\t/** @type {VNode} */\n\tconst vnode = {\n\t\ttype,\n\t\tprops,\n\t\tkey,\n\t\tref,\n\t\t_children: null,\n\t\t_parent: null,\n\t\t_depth: 0,\n\t\t_dom: null,\n\t\t// _nextDom must be initialized to undefined b/c it will eventually\n\t\t// be set to dom.nextSibling which can return `null` and it is important\n\t\t// to be able to distinguish between an uninitialized _nextDom and\n\t\t// a _nextDom that has been set to `null`\n\t\t_nextDom: undefined,\n\t\t_component: null,\n\t\tconstructor: undefined,\n\t\t_original: original == null ? ++vnodeId : original,\n\t\t_index: -1,\n\t\t_flags: 0\n\t};\n\n\t// Only invoke the vnode hook if this was *not* a direct copy:\n\tif (original == null && options.vnode != null) options.vnode(vnode);\n\n\treturn vnode;\n}\n\nexport function createRef() {\n\treturn { current: null };\n}\n\nexport function Fragment(props) {\n\treturn props.children;\n}\n\n/**\n * Check if a the argument is a valid Preact VNode.\n * @param {*} vnode\n * @returns {vnode is VNode}\n */\nexport const isValidElement = vnode =>\n\tvnode != null && vnode.constructor == undefined;\n","import { assign } from './util';\nimport { diff, commitRoot } from './diff/index';\nimport options from './options';\nimport { Fragment } from './create-element';\nimport { MODE_HYDRATE } from './constants';\n\n/**\n * Base Component class. Provides `setState()` and `forceUpdate()`, which\n * trigger rendering\n * @param {object} props The initial component props\n * @param {object} context The initial context from parent components'\n * getChildContext\n */\nexport function BaseComponent(props, context) {\n\tthis.props = props;\n\tthis.context = context;\n}\n\n/**\n * Update component state and schedule a re-render.\n * @this {Component}\n * @param {object | ((s: object, p: object) => object)} update A hash of state\n * properties to update with new values or a function that given the current\n * state and props returns a new partial state\n * @param {() => void} [callback] A function to be called once component state is\n * updated\n */\nBaseComponent.prototype.setState = function (update, callback) {\n\t// only clone state when copying to nextState the first time.\n\tlet s;\n\tif (this._nextState != null && this._nextState !== this.state) {\n\t\ts = this._nextState;\n\t} else {\n\t\ts = this._nextState = assign({}, this.state);\n\t}\n\n\tif (typeof update == 'function') {\n\t\t// Some libraries like `immer` mark the current state as readonly,\n\t\t// preventing us from mutating it, so we need to clone it. See #2716\n\t\tupdate = update(assign({}, s), this.props);\n\t}\n\n\tif (update) {\n\t\tassign(s, update);\n\t}\n\n\t// Skip update if updater function returned null\n\tif (update == null) return;\n\n\tif (this._vnode) {\n\t\tif (callback) {\n\t\t\tthis._stateCallbacks.push(callback);\n\t\t}\n\t\tenqueueRender(this);\n\t}\n};\n\n/**\n * Immediately perform a synchronous re-render of the component\n * @this {Component}\n * @param {() => void} [callback] A function to be called after component is\n * re-rendered\n */\nBaseComponent.prototype.forceUpdate = function (callback) {\n\tif (this._vnode) {\n\t\t// Set render mode so that we can differentiate where the render request\n\t\t// is coming from. We need this because forceUpdate should never call\n\t\t// shouldComponentUpdate\n\t\tthis._force = true;\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\tenqueueRender(this);\n\t}\n};\n\n/**\n * Accepts `props` and `state`, and returns a new Virtual DOM tree to build.\n * Virtual DOM is generally constructed via [JSX](http://jasonformat.com/wtf-is-jsx).\n * @param {object} props Props (eg: JSX attributes) received from parent\n * element/component\n * @param {object} state The component's current state\n * @param {object} context Context object, as returned by the nearest\n * ancestor's `getChildContext()`\n * @returns {ComponentChildren | void}\n */\nBaseComponent.prototype.render = Fragment;\n\n/**\n * @param {VNode} vnode\n * @param {number | null} [childIndex]\n */\nexport function getDomSibling(vnode, childIndex) {\n\tif (childIndex == null) {\n\t\t// Use childIndex==null as a signal to resume the search from the vnode's sibling\n\t\treturn vnode._parent\n\t\t\t? getDomSibling(vnode._parent, vnode._index + 1)\n\t\t\t: null;\n\t}\n\n\tlet sibling;\n\tfor (; childIndex < vnode._children.length; childIndex++) {\n\t\tsibling = vnode._children[childIndex];\n\n\t\tif (sibling != null && sibling._dom != null) {\n\t\t\t// Since updateParentDomPointers keeps _dom pointer correct,\n\t\t\t// we can rely on _dom to tell us if this subtree contains a\n\t\t\t// rendered DOM node, and what the first rendered DOM node is\n\t\t\treturn sibling._dom;\n\t\t}\n\t}\n\n\t// If we get here, we have not found a DOM node in this vnode's children.\n\t// We must resume from this vnode's sibling (in it's parent _children array)\n\t// Only climb up and search the parent if we aren't searching through a DOM\n\t// VNode (meaning we reached the DOM parent of the original vnode that began\n\t// the search)\n\treturn typeof vnode.type == 'function' ? getDomSibling(vnode) : null;\n}\n\n/**\n * Trigger in-place re-rendering of a component.\n * @param {Component} component The component to rerender\n */\nfunction renderComponent(component) {\n\tlet oldVNode = component._vnode,\n\t\toldDom = oldVNode._dom,\n\t\tcommitQueue = [],\n\t\trefQueue = [];\n\n\tif (component._parentDom) {\n\t\tconst newVNode = assign({}, oldVNode);\n\t\tnewVNode._original = oldVNode._original + 1;\n\t\tif (options.vnode) options.vnode(newVNode);\n\n\t\tdiff(\n\t\t\tcomponent._parentDom,\n\t\t\tnewVNode,\n\t\t\toldVNode,\n\t\t\tcomponent._globalContext,\n\t\t\tcomponent._parentDom.namespaceURI,\n\t\t\toldVNode._flags & MODE_HYDRATE ? [oldDom] : null,\n\t\t\tcommitQueue,\n\t\t\toldDom == null ? getDomSibling(oldVNode) : oldDom,\n\t\t\t!!(oldVNode._flags & MODE_HYDRATE),\n\t\t\trefQueue\n\t\t);\n\n\t\tnewVNode._original = oldVNode._original;\n\t\tnewVNode._parent._children[newVNode._index] = newVNode;\n\t\tcommitRoot(commitQueue, newVNode, refQueue);\n\n\t\tif (newVNode._dom != oldDom) {\n\t\t\tupdateParentDomPointers(newVNode);\n\t\t}\n\t}\n}\n\n/**\n * @param {VNode} vnode\n */\nfunction updateParentDomPointers(vnode) {\n\tif ((vnode = vnode._parent) != null && vnode._component != null) {\n\t\tvnode._dom = vnode._component.base = null;\n\t\tfor (let i = 0; i < vnode._children.length; i++) {\n\t\t\tlet child = vnode._children[i];\n\t\t\tif (child != null && child._dom != null) {\n\t\t\t\tvnode._dom = vnode._component.base = child._dom;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn updateParentDomPointers(vnode);\n\t}\n}\n\n/**\n * The render queue\n * @type {Array<Component>}\n */\nlet rerenderQueue = [];\n\n/*\n * The value of `Component.debounce` must asynchronously invoke the passed in callback. It is\n * important that contributors to Preact can consistently reason about what calls to `setState`, etc.\n * do, and when their effects will be applied. See the links below for some further reading on designing\n * asynchronous APIs.\n * * [Designing APIs for Asynchrony](https://blog.izs.me/2013/08/designing-apis-for-asynchrony)\n * * [Callbacks synchronous and asynchronous](https://blog.ometer.com/2011/07/24/callbacks-synchronous-and-asynchronous/)\n */\n\nlet prevDebounce;\n\nconst defer =\n\ttypeof Promise == 'function'\n\t\t? Promise.prototype.then.bind(Promise.resolve())\n\t\t: setTimeout;\n\n/**\n * Enqueue a rerender of a component\n * @param {Component} c The component to rerender\n */\nexport function enqueueRender(c) {\n\tif (\n\t\t(!c._dirty &&\n\t\t\t(c._dirty = true) &&\n\t\t\trerenderQueue.push(c) &&\n\t\t\t!process._rerenderCount++) ||\n\t\tprevDebounce !== options.debounceRendering\n\t) {\n\t\tprevDebounce = options.debounceRendering;\n\t\t(prevDebounce || defer)(process);\n\t}\n}\n\n/**\n * @param {Component} a\n * @param {Component} b\n */\nconst depthSort = (a, b) => a._vnode._depth - b._vnode._depth;\n\n/** Flush the render queue by rerendering all queued components */\nfunction process() {\n\tlet c;\n\trerenderQueue.sort(depthSort);\n\t// Don't update `renderCount` yet. Keep its value non-zero to prevent unnecessary\n\t// process() calls from getting scheduled while `queue` is still being consumed.\n\twhile ((c = rerenderQueue.shift())) {\n\t\tif (c._dirty) {\n\t\t\tlet renderQueueLength = rerenderQueue.length;\n\t\t\trenderComponent(c);\n\t\t\tif (rerenderQueue.length > renderQueueLength) {\n\t\t\t\t// When i.e. rerendering a provider additional new items can be injected, we want to\n\t\t\t\t// keep the order from top to bottom with those new items so we can handle them in a\n\t\t\t\t// single pass\n\t\t\t\trerenderQueue.sort(depthSort);\n\t\t\t}\n\t\t}\n\t}\n\tprocess._rerenderCount = 0;\n}\n\nprocess._rerenderCount = 0;\n","import { IS_NON_DIMENSIONAL } from '../constants';\nimport options from '../options';\n\nfunction setStyle(style, key, value) {\n\tif (key[0] === '-') {\n\t\tstyle.setProperty(key, value == null ? '' : value);\n\t} else if (value == null) {\n\t\tstyle[key] = '';\n\t} else if (typeof value != 'number' || IS_NON_DIMENSIONAL.test(key)) {\n\t\tstyle[key] = value;\n\t} else {\n\t\tstyle[key] = value + 'px';\n\t}\n}\n\n// A logical clock to solve issues like https://github.com/preactjs/preact/issues/3927.\n// When the DOM performs an event it leaves micro-ticks in between bubbling up which means that\n// an event can trigger on a newly reated DOM-node while the event bubbles up.\n//\n// Originally inspired by Vue\n// (https://github.com/vuejs/core/blob/caeb8a68811a1b0f79/packages/runtime-dom/src/modules/events.ts#L90-L101),\n// but modified to use a logical clock instead of Date.now() in case event handlers get attached\n// and events get dispatched during the same millisecond.\n//\n// The clock is incremented after each new event dispatch. This allows 1 000 000 new events\n// per second for over 280 years before the value reaches Number.MAX_SAFE_INTEGER (2**53 - 1).\nlet eventClock = 0;\n\n/**\n * Set a property value on a DOM node\n * @param {PreactElement} dom The DOM node to modify\n * @param {string} name The name of the property to set\n * @param {*} value The value to set the property to\n * @param {*} oldValue The old value the property had\n * @param {string} namespace Whether or not this DOM node is an SVG node or not\n */\nexport function setProperty(dom, name, value, oldValue, namespace) {\n\tlet useCapture;\n\n\to: if (name === 'style') {\n\t\tif (typeof value == 'string') {\n\t\t\tdom.style.cssText = value;\n\t\t} else {\n\t\t\tif (typeof oldValue == 'string') {\n\t\t\t\tdom.style.cssText = oldValue = '';\n\t\t\t}\n\n\t\t\tif (oldValue) {\n\t\t\t\tfor (name in oldValue) {\n\t\t\t\t\tif (!(value && name in value)) {\n\t\t\t\t\t\tsetStyle(dom.style, name, '');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (value) {\n\t\t\t\tfor (name in value) {\n\t\t\t\t\tif (!oldValue || value[name] !== oldValue[name]) {\n\t\t\t\t\t\tsetStyle(dom.style, name, value[name]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t// Benchmark for comparison: https://esbench.com/bench/574c954bdb965b9a00965ac6\n\telse if (name[0] === 'o' && name[1] === 'n') {\n\t\tuseCapture =\n\t\t\tname !== (name = name.replace(/(PointerCapture)$|Capture$/i, '$1'));\n\n\t\t// Infer correct casing for DOM built-in events:\n\t\tif (\n\t\t\tname.toLowerCase() in dom ||\n\t\t\tname === 'onFocusOut' ||\n\t\t\tname === 'onFocusIn'\n\t\t)\n\t\t\tname = name.toLowerCase().slice(2);\n\t\telse name = name.slice(2);\n\n\t\tif (!dom._listeners) dom._listeners = {};\n\t\tdom._listeners[name + useCapture] = value;\n\n\t\tif (value) {\n\t\t\tif (!oldValue) {\n\t\t\t\tvalue._attached = eventClock;\n\t\t\t\tdom.addEventListener(\n\t\t\t\t\tname,\n\t\t\t\t\tuseCapture ? eventProxyCapture : eventProxy,\n\t\t\t\t\tuseCapture\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tvalue._attached = oldValue._attached;\n\t\t\t}\n\t\t} else {\n\t\t\tdom.removeEventListener(\n\t\t\t\tname,\n\t\t\t\tuseCapture ? eventProxyCapture : eventProxy,\n\t\t\t\tuseCapture\n\t\t\t);\n\t\t}\n\t} else {\n\t\tif (namespace == 'http://www.w3.org/2000/svg') {\n\t\t\t// Normalize incorrect prop usage for SVG:\n\t\t\t// - xlink:href / xlinkHref --> href (xlink:href was removed from SVG and isn't needed)\n\t\t\t// - className --> class\n\t\t\tname = name.replace(/xlink(H|:h)/, 'h').replace(/sName$/, 's');\n\t\t} else if (\n\t\t\tname != 'width' &&\n\t\t\tname != 'height' &&\n\t\t\tname != 'href' &&\n\t\t\tname != 'list' &&\n\t\t\tname != 'form' &&\n\t\t\t// Default value in browsers is `-1` and an empty string is\n\t\t\t// cast to `0` instead\n\t\t\tname != 'tabIndex' &&\n\t\t\tname != 'download' &&\n\t\t\tname != 'rowSpan' &&\n\t\t\tname != 'colSpan' &&\n\t\t\tname != 'role' &&\n\t\t\tname in dom\n\t\t) {\n\t\t\ttry {\n\t\t\t\tdom[name] = value == null ? '' : value;\n\t\t\t\t// labelled break is 1b smaller here than a return statement (sorry)\n\t\t\t\tbreak o;\n\t\t\t} catch (e) {}\n\t\t}\n\n\t\t// aria- and data- attributes have no boolean representation.\n\t\t// A `false` value is different from the attribute not being\n\t\t// present, so we can't remove it. For non-boolean aria\n\t\t// attributes we could treat false as a removal, but the\n\t\t// amount of exceptions would cost too many bytes. On top of\n\t\t// that other frameworks generally stringify `false`.\n\n\t\tif (typeof value == 'function') {\n\t\t\t// never serialize functions as attribute values\n\t\t} else if (value != null && (value !== false || name[4] === '-')) {\n\t\t\tdom.setAttribute(name, value);\n\t\t} else {\n\t\t\tdom.removeAttribute(name);\n\t\t}\n\t}\n}\n\n/**\n * Create an event proxy function.\n * @param {boolean} useCapture Is the event handler for the capture phase.\n * @private\n */\nfunction createEventProxy(useCapture) {\n\t/**\n\t * Proxy an event to hooked event handlers\n\t * @param {PreactEvent} e The event object from the browser\n\t * @private\n\t */\n\treturn function (e) {\n\t\tif (this._listeners) {\n\t\t\tconst eventHandler = this._listeners[e.type + useCapture];\n\t\t\tif (e._dispatched == null) {\n\t\t\t\te._dispatched = eventClock++;\n\n\t\t\t\t// When `e._dispatched` is smaller than the time when the targeted event\n\t\t\t\t// handler was attached we know we have bubbled up to an element that was added\n\t\t\t\t// during patching the DOM.\n\t\t\t} else if (e._dispatched < eventHandler._attached) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\treturn eventHandler(options.event ? options.event(e) : e);\n\t\t}\n\t};\n}\n\nconst eventProxy = createEventProxy(false);\nconst eventProxyCapture = createEventProxy(true);\n","/** Normal hydration that attaches to a DOM tree but does not diff it. */\nexport const MODE_HYDRATE = 1 << 5;\n/** Signifies this VNode suspended on the previous render */\nexport const MODE_SUSPENDED = 1 << 7;\n/** Indicates that this node needs to be inserted while patching children */\nexport const INSERT_VNODE = 1 << 16;\n/** Indicates a VNode has been matched with another VNode in the diff */\nexport const MATCHED = 1 << 17;\n\n/** Reset all mode flags */\nexport const RESET_MODE = ~(MODE_HYDRATE | MODE_SUSPENDED);\n\nexport const EMPTY_OBJ = /** @type {any} */ ({});\nexport const EMPTY_ARR = [];\nexport const IS_NON_DIMENSIONAL =\n\t/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;\n","import { diff, unmount, applyRef } from './index';\nimport { createVNode, Fragment } from '../create-element';\nimport { EMPTY_OBJ, EMPTY_ARR, INSERT_VNODE, MATCHED } from '../constants';\nimport { isArray } from '../util';\nimport { getDomSibling } from '../component';\n\n/**\n * Diff the children of a virtual node\n * @param {PreactElement} parentDom The DOM element whose children are being\n * diffed\n * @param {ComponentChildren[]} renderResult\n * @param {VNode} newParentVNode The new virtual node whose children should be\n * diff'ed against oldParentVNode\n * @param {VNode} oldParentVNode The old virtual node whose children should be\n * diff'ed against newParentVNode\n * @param {object} globalContext The current context object - modified by\n * getChildContext\n * @param {string} namespace Current namespace of the DOM node (HTML, SVG, or MathML)\n * @param {Array<PreactElement>} excessDomChildren\n * @param {Array<Component>} commitQueue List of components which have callbacks\n * to invoke in commitRoot\n * @param {PreactElement} oldDom The current attached DOM element any new dom\n * elements should be placed around. Likely `null` on first render (except when\n * hydrating). Can be a sibling DOM element when diffing Fragments that have\n * siblings. In most cases, it starts out as `oldChildren[0]._dom`.\n * @param {boolean} isHydrating Whether or not we are in hydration\n * @param {any[]} refQueue an array of elements needed to invoke refs\n */\nexport function diffChildren(\n\tparentDom,\n\trenderResult,\n\tnewParentVNode,\n\toldParentVNode,\n\tglobalContext,\n\tnamespace,\n\texcessDomChildren,\n\tcommitQueue,\n\toldDom,\n\tisHydrating,\n\trefQueue\n) {\n\tlet i,\n\t\t/** @type {VNode} */\n\t\toldVNode,\n\t\t/** @type {VNode} */\n\t\tchildVNode,\n\t\t/** @type {PreactElement} */\n\t\tnewDom,\n\t\t/** @type {PreactElement} */\n\t\tfirstChildDom;\n\n\t// This is a compression of oldParentVNode!=null && oldParentVNode != EMPTY_OBJ && oldParentVNode._children || EMPTY_ARR\n\t// as EMPTY_OBJ._children should be `undefined`.\n\t/** @type {VNode[]} */\n\tlet oldChildren = (oldParentVNode && oldParentVNode._children) || EMPTY_ARR;\n\n\tlet newChildrenLength = renderResult.length;\n\n\tnewParentVNode._nextDom = oldDom;\n\tconstructNewChildrenArray(newParentVNode, renderResult, oldChildren);\n\toldDom = newParentVNode._nextDom;\n\n\tfor (i = 0; i < newChildrenLength; i++) {\n\t\tchildVNode = newParentVNode._children[i];\n\t\tif (\n\t\t\tchildVNode == null ||\n\t\t\ttypeof childVNode == 'boolean' ||\n\t\t\ttypeof childVNode == 'function'\n\t\t) {\n\t\t\tcontinue;\n\t\t}\n\n\t\t// At this point, constructNewChildrenArray has assigned _index to be the\n\t\t// matchingIndex for this VNode's oldVNode (or -1 if there is no oldVNode).\n\t\tif (childVNode._index === -1) {\n\t\t\toldVNode = EMPTY_OBJ;\n\t\t} else {\n\t\t\toldVNode = oldChildren[childVNode._index] || EMPTY_OBJ;\n\t\t}\n\n\t\t// Update childVNode._index to its final index\n\t\tchildVNode._index = i;\n\n\t\t// Morph the old element into the new one, but don't append it to the dom yet\n\t\tdiff(\n\t\t\tparentDom,\n\t\t\tchildVNode,\n\t\t\toldVNode,\n\t\t\tglobalContext,\n\t\t\tnamespace,\n\t\t\texcessDomChildren,\n\t\t\tcommitQueue,\n\t\t\toldDom,\n\t\t\tisHydrating,\n\t\t\trefQueue\n\t\t);\n\n\t\t// Adjust DOM nodes\n\t\tnewDom = childVNode._dom;\n\t\tif (childVNode.ref && oldVNode.ref != childVNode.ref) {\n\t\t\tif (oldVNode.ref) {\n\t\t\t\tapplyRef(oldVNode.ref, null, childVNode);\n\t\t\t}\n\t\t\trefQueue.push(\n\t\t\t\tchildVNode.ref,\n\t\t\t\tchildVNode._component || newDom,\n\t\t\t\tchildVNode\n\t\t\t);\n\t\t}\n\n\t\tif (firstChildDom == null && newDom != null) {\n\t\t\tfirstChildDom = newDom;\n\t\t}\n\n\t\tif (\n\t\t\tchildVNode._flags & INSERT_VNODE ||\n\t\t\toldVNode._children === childVNode._children\n\t\t) {\n\t\t\t// @ts-expect-error olDom should be present on a DOM node\n\t\t\tif (oldDom && !oldDom.isConnected) {\n\t\t\t\toldDom = getDomSibling(oldVNode);\n\t\t\t}\n\t\t\toldDom = insert(childVNode, oldDom, parentDom);\n\t\t} else if (\n\t\t\ttypeof childVNode.type == 'function' &&\n\t\t\tchildVNode._nextDom !== undefined\n\t\t) {\n\t\t\t// Since Fragments or components that return Fragment like VNodes can\n\t\t\t// contain multiple DOM nodes as the same level, continue the diff from\n\t\t\t// the sibling of last DOM child of this child VNode\n\t\t\toldDom = childVNode._nextDom;\n\t\t} else if (newDom) {\n\t\t\toldDom = newDom.nextSibling;\n\t\t}\n\n\t\t// Eagerly cleanup _nextDom. We don't need to persist the value because it\n\t\t// is only used by `diffChildren` to determine where to resume the diff\n\t\t// after diffing Components and Fragments. Once we store it the nextDOM\n\t\t// local var, we can clean up the property. Also prevents us hanging on to\n\t\t// DOM nodes that may have been unmounted.\n\t\tchildVNode._nextDom = undefined;\n\n\t\t// Unset diffing flags\n\t\tchildVNode._flags &= ~(INSERT_VNODE | MATCHED);\n\t}\n\n\t// TODO: With new child diffing algo, consider alt ways to diff Fragments.\n\t// Such as dropping oldDom and moving fragments in place\n\t//\n\t// Because the newParentVNode is Fragment-like, we need to set it's\n\t// _nextDom property to the nextSibling of its last child DOM node.\n\t//\n\t// `oldDom` contains the correct value here because if the last child\n\t// is a Fragment-like, then oldDom has already been set to that child's _nextDom.\n\t// If the last child is a DOM VNode, then oldDom will be set to that DOM\n\t// node's nextSibling.\n\tnewParentVNode._nextDom = oldDom;\n\tnewParentVNode._dom = firstChildDom;\n}\n\n/**\n * @param {VNode} newParentVNode\n * @param {ComponentChildren[]} renderResult\n * @param {VNode[]} oldChildren\n */\nfunction constructNewChildrenArray(newParentVNode, renderResult, oldChildren) {\n\t/** @type {number} */\n\tlet i;\n\t/** @type {VNode} */\n\tlet childVNode;\n\t/** @type {VNode} */\n\tlet oldVNode;\n\n\tconst newChildrenLength = renderResult.length;\n\tlet oldChildrenLength = oldChildren.length,\n\t\tremainingOldChildren = oldChildrenLength;\n\n\tlet skew = 0;\n\n\tnewParentVNode._children = [];\n\tfor (i = 0; i < newChildrenLength; i++) {\n\t\t// @ts-expect-error We are reusing the childVNode variable to hold both the\n\t\t// pre and post normalized childVNode\n\t\tchildVNode = renderResult[i];\n\n\t\tif (\n\t\t\tchildVNode == null ||\n\t\t\ttypeof childVNode == 'boolean' ||\n\t\t\ttypeof childVNode == 'function'\n\t\t) {\n\t\t\tchildVNode = newParentVNode._children[i] = null;\n\t\t}\n\t\t// If this newVNode is being reused (e.g. <div>{reuse}{reuse}</div>) in the same diff,\n\t\t// or we are rendering a component (e.g. setState) copy the oldVNodes so it can have\n\t\t// it's own DOM & etc. pointers\n\t\telse if (\n\t\t\ttypeof childVNode == 'string' ||\n\t\t\ttypeof childVNode == 'number' ||\n\t\t\t// eslint-disable-next-line valid-typeof\n\t\t\ttypeof childVNode == 'bigint' ||\n\t\t\tchildVNode.constructor == String\n\t\t) {\n\t\t\tchildVNode = newParentVNode._children[i] = createVNode(\n\t\t\t\tnull,\n\t\t\t\tchildVNode,\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnull\n\t\t\t);\n\t\t} else if (isArray(childVNode)) {\n\t\t\tchildVNode = newParentVNode._children[i] = createVNode(\n\t\t\t\tFragment,\n\t\t\t\t{ children: childVNode },\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnull\n\t\t\t);\n\t\t} else if (childVNode.constructor === undefined && childVNode._depth > 0) {\n\t\t\t// VNode is already in use, clone it. This can happen in the following\n\t\t\t// scenario:\n\t\t\t// const reuse = <div />\n\t\t\t// <div>{reuse}<span />{reuse}</div>\n\t\t\tchildVNode = newParentVNode._children[i] = createVNode(\n\t\t\t\tchildVNode.type,\n\t\t\t\tchildVNode.props,\n\t\t\t\tchildVNode.key,\n\t\t\t\tchildVNode.ref ? childVNode.ref : null,\n\t\t\t\tchildVNode._original\n\t\t\t);\n\t\t} else {\n\t\t\tchildVNode = newParentVNode._children[i] = childVNode;\n\t\t}\n\n\t\tconst skewedIndex = i + skew;\n\n\t\t// Handle unmounting null placeholders, i.e. VNode => null in unkeyed children\n\t\tif (childVNode == null) {\n\t\t\toldVNode = oldChildren[skewedIndex];\n\t\t\tif (\n\t\t\t\toldVNode &&\n\t\t\t\toldVNode.key == null &&\n\t\t\t\toldVNode._dom &&\n\t\t\t\t(oldVNode._flags & MATCHED) === 0\n\t\t\t) {\n\t\t\t\tif (oldVNode._dom == newParentVNode._nextDom) {\n\t\t\t\t\tnewParentVNode._nextDom = getDomSibling(oldVNode);\n\t\t\t\t}\n\n\t\t\t\tunmount(oldVNode, oldVNode, false);\n\n\t\t\t\t// Explicitly nullify this position in oldChildren instead of just\n\t\t\t\t// setting `_match=true` to prevent other routines (e.g.\n\t\t\t\t// `findMatchingIndex` or `getDomSibling`) from thinking VNodes or DOM\n\t\t\t\t// nodes in this position are still available to be used in diffing when\n\t\t\t\t// they have actually already been unmounted. For example, by only\n\t\t\t\t// setting `_match=true` here, the unmounting loop later would attempt\n\t\t\t\t// to unmount this VNode again seeing `_match==true`. Further,\n\t\t\t\t// getDomSibling doesn't know about _match and so would incorrectly\n\t\t\t\t// assume DOM nodes in this subtree are mounted and usable.\n\t\t\t\toldChildren[skewedIndex] = null;\n\t\t\t\tremainingOldChildren--;\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\tchildVNode._parent = newParentVNode;\n\t\tchildVNode._depth = newParentVNode._depth + 1;\n\n\t\tconst matchingIndex = findMatchingIndex(\n\t\t\tchildVNode,\n\t\t\toldChildren,\n\t\t\tskewedIndex,\n\t\t\tremainingOldChildren\n\t\t);\n\n\t\t// Temporarily store the matchingIndex on the _index property so we can pull\n\t\t// out the oldVNode in diffChildren. We'll override this to the VNode's\n\t\t// final index after using this property to get the oldVNode\n\t\tchildVNode._index = matchingIndex;\n\n\t\toldVNode = null;\n\t\tif (matchingIndex !== -1) {\n\t\t\toldVNode = oldChildren[matchingIndex];\n\t\t\tremainingOldChildren--;\n\t\t\tif (oldVNode) {\n\t\t\t\toldVNode._flags |= MATCHED;\n\t\t\t}\n\t\t}\n\n\t\t// Here, we define isMounting for the purposes of the skew diffing\n\t\t// algorithm. Nodes that are unsuspending are considered mounting and we detect\n\t\t// this by checking if oldVNode._original === null\n\t\tconst isMounting = oldVNode == null || oldVNode._original === null;\n\n\t\tif (isMounting) {\n\t\t\tif (matchingIndex == -1) {\n\t\t\t\tskew--;\n\t\t\t}\n\n\t\t\t// If we are mounting a DOM VNode, mark it for insertion\n\t\t\tif (typeof childVNode.type != 'function') {\n\t\t\t\tchildVNode._flags |= INSERT_VNODE;\n\t\t\t}\n\t\t} else if (matchingIndex !== skewedIndex) {\n\t\t\tif (matchingIndex === skewedIndex + 1) {\n\t\t\t\tskew++;\n\t\t\t} else if (matchingIndex > skewedIndex) {\n\t\t\t\tif (remainingOldChildren > newChildrenLength - skewedIndex) {\n\t\t\t\t\tskew += matchingIndex - skewedIndex;\n\t\t\t\t} else {\n\t\t\t\t\tskew--;\n\t\t\t\t}\n\t\t\t} else if (matchingIndex < skewedIndex) {\n\t\t\t\tif (matchingIndex == skewedIndex - 1) {\n\t\t\t\t\tskew = matchingIndex - skewedIndex;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tskew = 0;\n\t\t\t}\n\n\t\t\t// Move this VNode's DOM if the original index (matchingIndex) doesn't\n\t\t\t// match the new skew index (i + new skew)\n\t\t\tif (matchingIndex !== i + skew) {\n\t\t\t\tchildVNode._flags |= INSERT_VNODE;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Remove remaining oldChildren if there are any. Loop forwards so that as we\n\t// unmount DOM from the beginning of the oldChildren, we can adjust oldDom to\n\t// point to the next child, which needs to be the first DOM node that won't be\n\t// unmounted.\n\tif (remainingOldChildren) {\n\t\tfor (i = 0; i < oldChildrenLength; i++) {\n\t\t\toldVNode = oldChildren[i];\n\t\t\tif (oldVNode != null && (oldVNode._flags & MATCHED) === 0) {\n\t\t\t\tif (oldVNode._dom == newParentVNode._nextDom) {\n\t\t\t\t\tnewParentVNode._nextDom = getDomSibling(oldVNode);\n\t\t\t\t}\n\n\t\t\t\tunmount(oldVNode, oldVNode);\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * @param {VNode} parentVNode\n * @param {PreactElement} oldDom\n * @param {PreactElement} parentDom\n * @returns {PreactElement}\n */\nfunction insert(parentVNode, oldDom, parentDom) {\n\t// Note: VNodes in nested suspended trees may be missing _children.\n\n\tif (typeof parentVNode.type == 'function') {\n\t\tlet children = parentVNode._children;\n\t\tfor (let i = 0; children && i < children.length; i++) {\n\t\t\tif (children[i]) {\n\t\t\t\t// If we enter this code path on sCU bailout, where we copy\n\t\t\t\t// oldVNode._children to newVNode._children, we need to update the old\n\t\t\t\t// children's _parent pointer to point to the newVNode (parentVNode\n\t\t\t\t// here).\n\t\t\t\tchildren[i]._parent = parentVNode;\n\t\t\t\toldDom = insert(children[i], oldDom, parentDom);\n\t\t\t}\n\t\t}\n\n\t\treturn oldDom;\n\t} else if (parentVNode._dom != oldDom) {\n\t\tparentDom.insertBefore(parentVNode._dom, oldDom || null);\n\t\toldDom = parentVNode._dom;\n\t}\n\n\tdo {\n\t\toldDom = oldDom && oldDom.nextSibling;\n\t} while (oldDom != null && oldDom.nodeType === 8);\n\n\treturn oldDom;\n}\n\n/**\n * Flatten and loop through the children of a virtual node\n * @param {ComponentChildren} children The unflattened children of a virtual\n * node\n * @returns {VNode[]}\n */\nexport function toChildArray(children, out) {\n\tout = out || [];\n\tif (children == null || typeof children == 'boolean') {\n\t} else if (isArray(children)) {\n\t\tchildren.some(child => {\n\t\t\ttoChildArray(child, out);\n\t\t});\n\t} else {\n\t\tout.push(children);\n\t}\n\treturn out;\n}\n\n/**\n * @param {VNode} childVNode\n * @param {VNode[]} oldChildren\n * @param {number} skewedIndex\n * @param {number} remainingOldChildren\n * @returns {number}\n */\nfunction findMatchingIndex(\n\tchildVNode,\n\toldChildren,\n\tskewedIndex,\n\tremainingOldChildren\n) {\n\tconst key = childVNode.key;\n\tconst type = childVNode.type;\n\tlet x = skewedIndex - 1;\n\tlet y = skewedIndex + 1;\n\tlet oldVNode = oldChildren[skewedIndex];\n\n\t// We only need to perform a search if there are more children\n\t// (remainingOldChildren) to search. However, if the oldVNode we just looked\n\t// at skewedIndex was not already used in this diff, then there must be at\n\t// least 1 other (so greater than 1) remainingOldChildren to attempt to match\n\t// against. So the following condition checks that ensuring\n\t// remainingOldChildren > 1 if the oldVNode is not already used/matched. Else\n\t// if the oldVNode was null or matched, then there could needs to be at least\n\t// 1 (aka `remainingOldChildren > 0`) children to find and compare against.\n\tlet shouldSearch =\n\t\tremainingOldChildren >\n\t\t(oldVNode != null && (oldVNode._flags & MATCHED) === 0 ? 1 : 0);\n\n\tif (\n\t\toldVNode === null ||\n\t\t(oldVNode &&\n\t\t\tkey == oldVNode.key &&\n\t\t\ttype === oldVNode.type &&\n\t\t\t(oldVNode._flags & MATCHED) === 0)\n\t) {\n\t\treturn skewedIndex;\n\t} else if (shouldSearch) {\n\t\twhile (x >= 0 || y < oldChildren.length) {\n\t\t\tif (x >= 0) {\n\t\t\t\toldVNode = oldChildren[x];\n\t\t\t\tif (\n\t\t\t\t\toldVNode &&\n\t\t\t\t\t(oldVNode._flags & MATCHED) === 0 &&\n\t\t\t\t\tkey == oldVNode.key &&\n\t\t\t\t\ttype === oldVNode.type\n\t\t\t\t) {\n\t\t\t\t\treturn x;\n\t\t\t\t}\n\t\t\t\tx--;\n\t\t\t}\n\n\t\t\tif (y < oldChildren.length) {\n\t\t\t\toldVNode = oldChildren[y];\n\t\t\t\tif (\n\t\t\t\t\toldVNode &&\n\t\t\t\t\t(oldVNode._flags & MATCHED) === 0 &&\n\t\t\t\t\tkey == oldVNode.key &&\n\t\t\t\t\ttype === oldVNode.type\n\t\t\t\t) {\n\t\t\t\t\treturn y;\n\t\t\t\t}\n\t\t\t\ty++;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn -1;\n}\n","import {\n\tEMPTY_OBJ,\n\tMODE_HYDRATE,\n\tMODE_SUSPENDED,\n\tRESET_MODE\n} from '../constants';\nimport { BaseComponent, getDomSibling } from '../component';\nimport { Fragment } from '../create-element';\nimport { diffChildren } from './children';\nimport { setProperty } from './props';\nimport { assign, isArray, removeNode, slice } from '../util';\nimport options from '../options';\n\n/**\n * Diff two virtual nodes and apply proper changes to the DOM\n * @param {PreactElement} parentDom The parent of the DOM element\n * @param {VNode} newVNode The new virtual node\n * @param {VNode} oldVNode The old virtual node\n * @param {object} globalContext The current context object. Modified by\n * getChildContext\n * @param {string} namespace Current namespace of the DOM node (HTML, SVG, or MathML)\n * @param {Array<PreactElement>} excessDomChildren\n * @param {Array<Component>} commitQueue List of components which have callbacks\n * to invoke in commitRoot\n * @param {PreactElement} oldDom The current attached DOM element any new dom\n * elements should be placed around. Likely `null` on first render (except when\n * hydrating). Can be a sibling DOM element when diffing Fragments that have\n * siblings. In most cases, it starts out as `oldChildren[0]._dom`.\n * @param {boolean} isHydrating Whether or not we are in hydration\n * @param {any[]} refQueue an array of elements needed to invoke refs\n */\nexport function diff(\n\tparentDom,\n\tnewVNode,\n\toldVNode,\n\tglobalContext,\n\tnamespace,\n\texcessDomChildren,\n\tcommitQueue,\n\toldDom,\n\tisHydrating,\n\trefQueue\n) {\n\t/** @type {any} */\n\tlet tmp,\n\t\tnewType = newVNode.type;\n\n\t// When passing through createElement it assigns the object\n\t// constructor as undefined. This to prevent JSON-injection.\n\tif (newVNode.constructor !== undefined) return null;\n\n\t// If the previous diff bailed out, resume creating/hydrating.\n\tif (oldVNode._flags & MODE_SUSPENDED) {\n\t\tisHydrating = !!(oldVNode._flags & MODE_HYDRATE);\n\t\toldDom = newVNode._dom = oldVNode._dom;\n\t\texcessDomChildren = [oldDom];\n\t}\n\n\tif ((tmp = options._diff)) tmp(newVNode);\n\n\touter: if (typeof newType == 'function') {\n\t\ttry {\n\t\t\tlet c, isNew, oldProps, oldState, snapshot, clearProcessingException;\n\t\t\tlet newProps = newVNode.props;\n\n\t\t\t// Necessary for createContext api. Setting this property will pass\n\t\t\t// the context value as `this.context` just for this component.\n\t\t\ttmp = newType.contextType;\n\t\t\tlet provider = tmp && globalContext[tmp._id];\n\t\t\tlet componentContext = tmp\n\t\t\t\t? provider\n\t\t\t\t\t? provider.props.value\n\t\t\t\t\t: tmp._defaultValue\n\t\t\t\t: globalContext;\n\n\t\t\t// Get component and set it to `c`\n\t\t\tif (oldVNode._component) {\n\t\t\t\tc = newVNode._component = oldVNode._component;\n\t\t\t\tclearProcessingException = c._processingException = c._pendingError;\n\t\t\t} else {\n\t\t\t\t// Instantiate the new component\n\t\t\t\tif ('prototype' in newType && newType.prototype.render) {\n\t\t\t\t\t// @ts-expect-error The check above verifies that newType is suppose to be constructed\n\t\t\t\t\tnewVNode._component = c = new newType(newProps, componentContext); // eslint-disable-line new-cap\n\t\t\t\t} else {\n\t\t\t\t\t// @ts-expect-error Trust me, Component implements the interface we want\n\t\t\t\t\tnewVNode._component = c = new BaseComponent(\n\t\t\t\t\t\tnewProps,\n\t\t\t\t\t\tcomponentContext\n\t\t\t\t\t);\n\t\t\t\t\tc.constructor = newType;\n\t\t\t\t\tc.render = doRender;\n\t\t\t\t}\n\t\t\t\tif (provider) provider.sub(c);\n\n\t\t\t\tc.props = newProps;\n\t\t\t\tif (!c.state) c.state = {};\n\t\t\t\tc.context = componentContext;\n\t\t\t\tc._globalContext = globalContext;\n\t\t\t\tisNew = c._dirty = true;\n\t\t\t\tc._renderCallbacks = [];\n\t\t\t\tc._stateCallbacks = [];\n\t\t\t}\n\n\t\t\t// Invoke getDerivedStateFromProps\n\t\t\tif (c._nextState == null) {\n\t\t\t\tc._nextState = c.state;\n\t\t\t}\n\n\t\t\tif (newType.getDerivedStateFromProps != null) {\n\t\t\t\tif (c._nextState == c.state) {\n\t\t\t\t\tc._nextState = assign({}, c._nextState);\n\t\t\t\t}\n\n\t\t\t\tassign(\n\t\t\t\t\tc._nextState,\n\t\t\t\t\tnewType.getDerivedStateFromProps(newProps, c._nextState)\n\t\t\t\t);\n\t\t\t}\n\n\t\t\toldProps = c.props;\n\t\t\toldState = c.state;\n\t\t\tc._vnode = newVNode;\n\n\t\t\t// Invoke pre-render lifecycle methods\n\t\t\tif (isNew) {\n\t\t\t\tif (\n\t\t\t\t\tnewType.getDerivedStateFromProps == null &&\n\t\t\t\t\tc.componentWillMount != null\n\t\t\t\t) {\n\t\t\t\t\tc.componentWillMount();\n\t\t\t\t}\n\n\t\t\t\tif (c.componentDidMount != null) {\n\t\t\t\t\tc._renderCallbacks.push(c.componentDidMount);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (\n\t\t\t\t\tnewType.getDerivedStateFromProps == null &&\n\t\t\t\t\tnewProps !== oldProps &&\n\t\t\t\t\tc.componentWillReceiveProps != null\n\t\t\t\t) {\n\t\t\t\t\tc.componentWillReceiveProps(newProps, componentContext);\n\t\t\t\t}\n\n\t\t\t\tif (\n\t\t\t\t\t!c._force &&\n\t\t\t\t\t((c.shouldComponentUpdate != null &&\n\t\t\t\t\t\tc.shouldComponentUpdate(\n\t\t\t\t\t\t\tnewProps,\n\t\t\t\t\t\t\tc._nextState,\n\t\t\t\t\t\t\tcomponentContext\n\t\t\t\t\t\t) === false) ||\n\t\t\t\t\t\tnewVNode._original === oldVNode._original)\n\t\t\t\t) {\n\t\t\t\t\t// More info about this here: https://gist.github.com/JoviDeCroock/bec5f2ce93544d2e6070ef8e0036e4e8\n\t\t\t\t\tif (newVNode._original !== oldVNode._original) {\n\t\t\t\t\t\t// When we are dealing with a bail because of sCU we have to update\n\t\t\t\t\t\t// the props, state and dirty-state.\n\t\t\t\t\t\t// when we are dealing with strict-equality we don't as the child could still\n\t\t\t\t\t\t// be dirtied see #3883\n\t\t\t\t\t\tc.props = newProps;\n\t\t\t\t\t\tc.state = c._nextState;\n\t\t\t\t\t\tc._dirty = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tnewVNode._dom = oldVNode._dom;\n\t\t\t\t\tnewVNode._children = oldVNode._children;\n\t\t\t\t\tnewVNode._children.forEach(vnode => {\n\t\t\t\t\t\tif (vnode) vnode._parent = newVNode;\n\t\t\t\t\t});\n\n\t\t\t\t\tfor (let i = 0; i < c._stateCallbacks.length; i++) {\n\t\t\t\t\t\tc._renderCallbacks.push(c._stateCallbacks[i]);\n\t\t\t\t\t}\n\t\t\t\t\tc._stateCallbacks = [];\n\n\t\t\t\t\tif (c._renderCallbacks.length) {\n\t\t\t\t\t\tcommitQueue.push(c);\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak outer;\n\t\t\t\t}\n\n\t\t\t\tif (c.componentWillUpdate != null) {\n\t\t\t\t\tc.componentWillUpdate(newProps, c._nextState, componentContext);\n\t\t\t\t}\n\n\t\t\t\tif (c.componentDidUpdate != null) {\n\t\t\t\t\tc._renderCallbacks.push(() => {\n\t\t\t\t\t\tc.componentDidUpdate(oldProps, oldState, snapshot);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tc.context = componentContext;\n\t\t\tc.props = newProps;\n\t\t\tc._parentDom = parentDom;\n\t\t\tc._force = false;\n\n\t\t\tlet renderHook = options._render,\n\t\t\t\tcount = 0;\n\t\t\tif ('prototype' in newType && newType.prototype.render) {\n\t\t\t\tc.state = c._nextState;\n\t\t\t\tc._dirty = false;\n\n\t\t\t\tif (renderHook) renderHook(newVNode);\n\n\t\t\t\ttmp = c.render(c.props, c.state, c.context);\n\n\t\t\t\tfor (let i = 0; i < c._stateCallbacks.length; i++) {\n\t\t\t\t\tc._renderCallbacks.push(c._stateCallbacks[i]);\n\t\t\t\t}\n\t\t\t\tc._stateCallbacks = [];\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tc._dirty = false;\n\t\t\t\t\tif (renderHook) renderHook(newVNode);\n\n\t\t\t\t\ttmp = c.render(c.props, c.state, c.context);\n\n\t\t\t\t\t// Handle setState called in render, see #2553\n\t\t\t\t\tc.state = c._nextState;\n\t\t\t\t} while (c._dirty && ++count < 25);\n\t\t\t}\n\n\t\t\t// Handle setState called in render, see #2553\n\t\t\tc.state = c._nextState;\n\n\t\t\tif (c.getChildContext != null) {\n\t\t\t\tglobalContext = assign(assign({}, globalContext), c.getChildContext());\n\t\t\t}\n\n\t\t\tif (!isNew && c.getSnapshotBeforeUpdate != null) {\n\t\t\t\tsnapshot = c.getSnapshotBeforeUpdate(oldProps, oldState);\n\t\t\t}\n\n\t\t\tlet isTopLevelFragment =\n\t\t\t\ttmp != null && tmp.type === Fragment && tmp.key == null;\n\t\t\tlet renderResult = isTopLevelFragment ? tmp.props.children : tmp;\n\n\t\t\tdiffChildren(\n\t\t\t\tparentDom,\n\t\t\t\tisArray(renderResult) ? renderResult : [renderResult],\n\t\t\t\tnewVNode,\n\t\t\t\toldVNode,\n\t\t\t\tglobalContext,\n\t\t\t\tnamespace,\n\t\t\t\texcessDomChildren,\n\t\t\t\tcommitQueue,\n\t\t\t\toldDom,\n\t\t\t\tisHydrating,\n\t\t\t\trefQueue\n\t\t\t);\n\n\t\t\tc.base = newVNode._dom;\n\n\t\t\t// We successfully rendered this VNode, unset any stored hydration/bailout state:\n\t\t\tnewVNode._flags &= RESET_MODE;\n\n\t\t\tif (c._renderCallbacks.length) {\n\t\t\t\tcommitQueue.push(c);\n\t\t\t}\n\n\t\t\tif (clearProcessingException) {\n\t\t\t\tc._pendingError = c._processingException = null;\n\t\t\t}\n\t\t} catch (e) {\n\t\t\tnewVNode._original = null;\n\t\t\t// if hydrating or creating initial tree, bailout preserves DOM:\n\t\t\tif (isHydrating || excessDomChildren != null) {\n\t\t\t\tnewVNode._dom = oldDom;\n\t\t\t\tnewVNode._flags |= isHydrating\n\t\t\t\t\t? MODE_HYDRATE | MODE_SUSPENDED\n\t\t\t\t\t: MODE_HYDRATE;\n\t\t\t\texcessDomChildren[excessDomChildren.indexOf(oldDom)] = null;\n\t\t\t\t// ^ could possibly be simplified to:\n\t\t\t\t// excessDomChildren.length = 0;\n\t\t\t} else {\n\t\t\t\tnewVNode._dom = oldVNode._dom;\n\t\t\t\tnewVNode._children = oldVNode._children;\n\t\t\t}\n\t\t\toptions._catchError(e, newVNode, oldVNode);\n\t\t}\n\t} else if (\n\t\texcessDomChildren == null &&\n\t\tnewVNode._original === oldVNode._original\n\t) {\n\t\tnewVNode._children = oldVNode._children;\n\t\tnewVNode._dom = oldVNode._dom;\n\t} else {\n\t\tnewVNode._dom = diffElementNodes(\n\t\t\toldVNode._dom,\n\t\t\tnewVNode,\n\t\t\toldVNode,\n\t\t\tglobalContext,\n\t\t\tnamespace,\n\t\t\texcessDomChildren,\n\t\t\tcommitQueue,\n\t\t\tisHydrating,\n\t\t\trefQueue\n\t\t);\n\t}\n\n\tif ((tmp = options.diffed)) tmp(newVNode);\n}\n\n/**\n * @param {Array<Component>} commitQueue List of components\n * which have callbacks to invoke in commitRoot\n * @param {VNode} root\n */\nexport function commitRoot(commitQueue, root, refQueue) {\n\troot._nextDom = undefined;\n\n\tfor (let i = 0; i < refQueue.length; i++) {\n\t\tapplyRef(refQueue[i], refQueue[++i], refQueue[++i]);\n\t}\n\n\tif (options._commit) options._commit(root, commitQueue);\n\n\tcommitQueue.some(c => {\n\t\ttry {\n\t\t\t// @ts-expect-error Reuse the commitQueue variable here so the type changes\n\t\t\tcommitQueue = c._renderCallbacks;\n\t\t\tc._renderCallbacks = [];\n\t\t\tcommitQueue.some(cb => {\n\t\t\t\t// @ts-expect-error See above comment on commitQueue\n\t\t\t\tcb.call(c);\n\t\t\t});\n\t\t} catch (e) {\n\t\t\toptions._catchError(e, c._vnode);\n\t\t}\n\t});\n}\n\n/**\n * Diff two virtual nodes representing DOM element\n * @param {PreactElement} dom The DOM element representing the virtual nodes\n * being diffed\n * @param {VNode} newVNode The new virtual node\n * @param {VNode} oldVNode The old virtual node\n * @param {object} globalContext The current context object\n * @param {string} namespace Current namespace of the DOM node (HTML, SVG, or MathML)\n * @param {Array<PreactElement>} excessDomChildren\n * @param {Array<Component>} commitQueue List of components which have callbacks\n * to invoke in commitRoot\n * @param {boolean} isHydrating Whether or not we are in hydration\n * @param {any[]} refQueue an array of elements needed to invoke refs\n * @returns {PreactElement}\n */\nfunction diffElementNodes(\n\tdom,\n\tnewVNode,\n\toldVNode,\n\tglobalContext,\n\tnamespace,\n\texcessDomChildren,\n\tcommitQueue,\n\tisHydrating,\n\trefQueue\n) {\n\tlet oldProps = oldVNode.props;\n\tlet newProps = newVNode.props;\n\tlet nodeType = /** @type {string} */ (newVNode.type);\n\t/** @type {any} */\n\tlet i;\n\t/** @type {{ __html?: string }} */\n\tlet newHtml;\n\t/** @type {{ __html?: string }} */\n\tlet oldHtml;\n\t/** @type {ComponentChildren} */\n\tlet newChildren;\n\tlet value;\n\tlet inputValue;\n\tlet checked;\n\n\t// Tracks entering and exiting namespaces when descending through the tree.\n\tif (nodeType === 'svg') namespace = 'http://www.w3.org/2000/svg';\n\telse if (nodeType === 'math')\n\t\tnamespace = 'http://www.w3.org/1998/Math/MathML';\n\telse if (!namespace) namespace = 'http://www.w3.org/1999/xhtml';\n\n\tif (excessDomChildren != null) {\n\t\tfor (i = 0; i < excessDomChildren.length; i++) {\n\t\t\tvalue = excessDomChildren[i];\n\n\t\t\t// if newVNode matches an element in excessDomChildren or the `dom`\n\t\t\t// argument matches an element in excessDomChildren, remove it from\n\t\t\t// excessDomChildren so it isn't later removed in diffChildren\n\t\t\tif (\n\t\t\t\tvalue &&\n\t\t\t\t'setAttribute' in value === !!nodeType &&\n\t\t\t\t(nodeType ? value.localName === nodeType : value.nodeType === 3)\n\t\t\t) {\n\t\t\t\tdom = value;\n\t\t\t\texcessDomChildren[i] = null;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tif (dom == null) {\n\t\tif (nodeType === null) {\n\t\t\treturn document.createTextNode(newProps);\n\t\t}\n\n\t\tdom = document.createElementNS(\n\t\t\tnamespace,\n\t\t\tnodeType,\n\t\t\tnewProps.is && newProps\n\t\t);\n\n\t\t// we created a new parent, so none of the previously attached children can be reused:\n\t\texcessDomChildren = null;\n\t\t// we are creating a new node, so we can assume this is a new subtree (in\n\t\t// case we are hydrating), this deopts the hydrate\n\t\tisHydrating = false;\n\t}\n\n\tif (nodeType === null) {\n\t\t// During hydration, we still have to split merged text from SSR'd HTML.\n\t\tif (oldProps !== newProps && (!isHydrating || dom.data !== newProps)) {\n\t\t\tdom.data = newProps;\n\t\t}\n\t} else {\n\t\t// If excessDomChildren was not null, repopulate it with the current element's children:\n\t\texcessDomChildren = excessDomChildren && slice.call(dom.childNodes);\n\n\t\toldProps = oldVNode.props || EMPTY_OBJ;\n\n\t\t// If we are in a situation where we are not hydrating but are using\n\t\t// existing DOM (e.g. replaceNode) we should read the existing DOM\n\t\t// attributes to diff them\n\t\tif (!isHydrating && excessDomChildren != null) {\n\t\t\toldProps = {};\n\t\t\tfor (i = 0; i < dom.attributes.length; i++) {\n\t\t\t\tvalue = dom.attributes[i];\n\t\t\t\toldProps[value.name] = value.value;\n\t\t\t}\n\t\t}\n\n\t\tfor (i in oldProps) {\n\t\t\tvalue = oldProps[i];\n\t\t\tif (i == 'children') {\n\t\t\t} else if (i == 'dangerouslySetInnerHTML') {\n\t\t\t\toldHtml = value;\n\t\t\t} else if (i !== 'key' && !(i in newProps)) {\n\t\t\t\tif (\n\t\t\t\t\t(i == 'value' && 'defaultValue' in newProps) ||\n\t\t\t\t\t(i == 'checked' && 'defaultChecked' in newProps)\n\t\t\t\t) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tsetProperty(dom, i, null, value, namespace);\n\t\t\t}\n\t\t}\n\n\t\t// During hydration, props are not diffed at all (including dangerouslySetInnerHTML)\n\t\t// @TODO we should warn in debug mode when props don't match here.\n\t\tfor (i in newProps) {\n\t\t\tvalue = newProps[i];\n\t\t\tif (i == 'children') {\n\t\t\t\tnewChildren = value;\n\t\t\t} else if (i == 'dangerouslySetInnerHTML') {\n\t\t\t\tnewHtml = value;\n\t\t\t} else if (i == 'value') {\n\t\t\t\tinputValue = value;\n\t\t\t} else if (i == 'checked') {\n\t\t\t\tchecked = value;\n\t\t\t} else if (\n\t\t\t\ti !== 'key' &&\n\t\t\t\t(!isHydrating || typeof value == 'function') &&\n\t\t\t\toldProps[i] !== value\n\t\t\t) {\n\t\t\t\tsetProperty(dom, i, value, oldProps[i], namespace);\n\t\t\t}\n\t\t}\n\n\t\t// If the new vnode didn't have dangerouslySetInnerHTML, diff its children\n\t\tif (newHtml) {\n\t\t\t// Avoid re-applying the same '__html' if it did not changed between re-render\n\t\t\tif (\n\t\t\t\t!isHydrating &&\n\t\t\t\t(!oldHtml ||\n\t\t\t\t\t(newHtml.__html !== oldHtml.__html &&\n\t\t\t\t\t\tnewHtml.__html !== dom.innerHTML))\n\t\t\t) {\n\t\t\t\tdom.innerHTML = newHtml.__html;\n\t\t\t}\n\n\t\t\tnewVNode._children = [];\n\t\t} else {\n\t\t\tif (oldHtml) dom.innerHTML = '';\n\n\t\t\tdiffChildren(\n\t\t\t\tdom,\n\t\t\t\tisArray(newChildren) ? newChildren : [newChildren],\n\t\t\t\tnewVNode,\n\t\t\t\toldVNode,\n\t\t\t\tglobalContext,\n\t\t\t\tnodeType === 'foreignObject'\n\t\t\t\t\t? 'http://www.w3.org/1999/xhtml'\n\t\t\t\t\t: namespace,\n\t\t\t\texcessDomChildren,\n\t\t\t\tcommitQueue,\n\t\t\t\texcessDomChildren\n\t\t\t\t\t? excessDomChildren[0]\n\t\t\t\t\t: oldVNode._children && getDomSibling(oldVNode, 0),\n\t\t\t\tisHydrating,\n\t\t\t\trefQueue\n\t\t\t);\n\n\t\t\t// Remove children that are not part of any vnode.\n\t\t\tif (excessDomChildren != null) {\n\t\t\t\tfor (i = excessDomChildren.length; i--; ) {\n\t\t\t\t\tif (excessDomChildren[i] != null) removeNode(excessDomChildren[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// As above, don't diff props during hydration\n\t\tif (!isHydrating) {\n\t\t\ti = 'value';\n\t\t\tif (\n\t\t\t\tinputValue !== undefined &&\n\t\t\t\t// #2756 For the <progress>-element the initial value is 0,\n\t\t\t\t// despite the attribute not being present. When the attribute\n\t\t\t\t// is missing the progress bar is treated as indeterminate.\n\t\t\t\t// To fix that we'll always update it when it is 0 for progress elements\n\t\t\t\t(inputValue !== dom[i] ||\n\t\t\t\t\t(nodeType === 'progress' && !inputValue) ||\n\t\t\t\t\t// This is only for IE 11 to fix <select> value not being updated.\n\t\t\t\t\t// To avoid a stale select value we need to set the option.value\n\t\t\t\t\t// again, which triggers IE11 to re-evaluate the select value\n\t\t\t\t\t(nodeType === 'option' && inputValue !== oldProps[i]))\n\t\t\t) {\n\t\t\t\tsetProperty(dom, i, inputValue, oldProps[i], namespace);\n\t\t\t}\n\n\t\t\ti = 'checked';\n\t\t\tif (checked !== undefined && checked !== dom[i]) {\n\t\t\t\tsetProperty(dom, i, checked, oldProps[i], namespace);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn dom;\n}\n\n/**\n * Invoke or update a ref, depending on whether it is a function or object ref.\n * @param {Ref<any>} ref\n * @param {any} value\n * @param {VNode} vnode\n */\nexport function applyRef(ref, value, vnode) {\n\ttry {\n\t\tif (typeof ref == 'function') ref(value);\n\t\telse ref.current = value;\n\t} catch (e) {\n\t\toptions._catchError(e, vnode);\n\t}\n}\n\n/**\n * Unmount a virtual node from the tree and apply DOM changes\n * @param {VNode} vnode The virtual node to unmount\n * @param {VNode} parentVNode The parent of the VNode that initiated the unmount\n * @param {boolean} [skipRemove] Flag that indicates that a parent node of the\n * current element is already detached from the DOM.\n */\nexport function unmount(vnode, parentVNode, skipRemove) {\n\tlet r;\n\tif (options.unmount) options.unmount(vnode);\n\n\tif ((r = vnode.ref)) {\n\t\tif (!r.current || r.current === vnode._dom) {\n\t\t\tapplyRef(r, null, parentVNode);\n\t\t}\n\t}\n\n\tif ((r = vnode._component) != null) {\n\t\tif (r.componentWillUnmount) {\n\t\t\ttry {\n\t\t\t\tr.componentWillUnmount();\n\t\t\t} catch (e) {\n\t\t\t\toptions._catchError(e, parentVNode);\n\t\t\t}\n\t\t}\n\n\t\tr.base = r._parentDom = null;\n\t}\n\n\tif ((r = vnode._children)) {\n\t\tfor (let i = 0; i < r.length; i++) {\n\t\t\tif (r[i]) {\n\t\t\t\tunmount(\n\t\t\t\t\tr[i],\n\t\t\t\t\tparentVNode,\n\t\t\t\t\tskipRemove || typeof vnode.type != 'function'\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (!skipRemove && vnode._dom != null) {\n\t\tremoveNode(vnode._dom);\n\t}\n\n\t// Must be set to `undefined` to properly clean up `_nextDom`\n\t// for which `null` is a valid value. See comment in `create-element.js`\n\tvnode._component = vnode._parent = vnode._dom = vnode._nextDom = undefined;\n}\n\n/** The `.render()` method for a PFC backing instance. */\nfunction doRender(props, state, context) {\n\treturn this.constructor(props, context);\n}\n","import { EMPTY_OBJ } from './constants';\nimport { commitRoot, diff } from './diff/index';\nimport { createElement, Fragment } from './create-element';\nimport options from './options';\nimport { slice } from './util';\n\n/**\n * Render a Preact virtual node into a DOM element\n * @param {ComponentChild} vnode The virtual node to render\n * @param {PreactElement} parentDom The DOM element to render into\n * @param {PreactElement | object} [replaceNode] Optional: Attempt to re-use an\n * existing DOM tree rooted at `replaceNode`\n */\nexport function render(vnode, parentDom, replaceNode) {\n\tif (options._root) options._root(vnode, parentDom);\n\n\t// We abuse the `replaceNode` parameter in `hydrate()` to signal if we are in\n\t// hydration mode or not by passing the `hydrate` function instead of a DOM\n\t// element..\n\tlet isHydrating = typeof replaceNode == 'function';\n\n\t// To be able to support calling `render()` multiple times on the same\n\t// DOM node, we need to obtain a reference to the previous tree. We do\n\t// this by assigning a new `_children` property to DOM nodes which points\n\t// to the last rendered tree. By default this property is not present, which\n\t// means that we are mounting a new tree for the first time.\n\tlet oldVNode = isHydrating\n\t\t? null\n\t\t: (replaceNode && replaceNode._children) || parentDom._children;\n\n\tvnode = ((!isHydrating && replaceNode) || parentDom)._children =\n\t\tcreateElement(Fragment, null, [vnode]);\n\n\t// List of effects that need to be called after diffing.\n\tlet commitQueue = [],\n\t\trefQueue = [];\n\tdiff(\n\t\tparentDom,\n\t\t// Determine the new vnode tree and store it on the DOM element on\n\t\t// our custom `_children` property.\n\t\tvnode,\n\t\toldVNode || EMPTY_OBJ,\n\t\tEMPTY_OBJ,\n\t\tparentDom.namespaceURI,\n\t\t!isHydrating && replaceNode\n\t\t\t? [replaceNode]\n\t\t\t: oldVNode\n\t\t\t? null\n\t\t\t: parentDom.firstChild\n\t\t\t? slice.call(parentDom.childNodes)\n\t\t\t: null,\n\t\tcommitQueue,\n\t\t!isHydrating && replaceNode\n\t\t\t? replaceNode\n\t\t\t: oldVNode\n\t\t\t? oldVNode._dom\n\t\t\t: parentDom.firstChild,\n\t\tisHydrating,\n\t\trefQueue\n\t);\n\n\t// Flush all queued effects\n\tcommitRoot(commitQueue, vnode, refQueue);\n}\n\n/**\n * Update an existing DOM element with data from a Preact virtual node\n * @param {ComponentChild} vnode The virtual node to render\n * @param {PreactElement} parentDom The DOM element to update\n */\nexport function hydrate(vnode, parentDom) {\n\trender(vnode, parentDom, hydrate);\n}\n","/**\n * Find the closest error boundary to a thrown error and call it\n * @param {object} error The thrown value\n * @param {VNode} vnode The vnode that threw the error that was caught (except\n * for unmounting when this parameter is the highest parent that was being\n * unmounted)\n * @param {VNode} [oldVNode]\n * @param {ErrorInfo} [errorInfo]\n */\nexport function _catchError(error, vnode, oldVNode, errorInfo) {\n\t/** @type {Component} */\n\tlet component,\n\t\t/** @type {ComponentType} */\n\t\tctor,\n\t\t/** @type {boolean} */\n\t\thandled;\n\n\tfor (; (vnode = vnode._parent); ) {\n\t\tif ((component = vnode._component) && !component._processingException) {\n\t\t\ttry {\n\t\t\t\tctor = component.constructor;\n\n\t\t\t\tif (ctor && ctor.getDerivedStateFromError != null) {\n\t\t\t\t\tcomponent.setState(ctor.getDerivedStateFromError(error));\n\t\t\t\t\thandled = component._dirty;\n\t\t\t\t}\n\n\t\t\t\tif (component.componentDidCatch != null) {\n\t\t\t\t\tcomponent.componentDidCatch(error, errorInfo || {});\n\t\t\t\t\thandled = component._dirty;\n\t\t\t\t}\n\n\t\t\t\t// This is an error boundary. Mark it as having bailed out, and whether it was mid-hydration.\n\t\t\t\tif (handled) {\n\t\t\t\t\treturn (component._pendingError = component);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\terror = e;\n\t\t\t}\n\t\t}\n\t}\n\n\tthrow error;\n}\n","import { options as _options } from 'preact';\n\n/** @type {number} */\nlet currentIndex;\n\n/** @type {import('./internal').Component} */\nlet currentComponent;\n\n/** @type {import('./internal').Component} */\nlet previousComponent;\n\n/** @type {number} */\nlet currentHook = 0;\n\n/** @type {Array<import('./internal').Component>} */\nlet afterPaintEffects = [];\n\nlet EMPTY = [];\n\n// Cast to use internal Options type\nconst options = /** @type {import('./internal').Options} */ (_options);\n\nlet oldBeforeDiff = options._diff;\nlet oldBeforeRender = options._render;\nlet oldAfterDiff = options.diffed;\nlet oldCommit = options._commit;\nlet oldBeforeUnmount = options.unmount;\nlet oldRoot = options._root;\n\nconst RAF_TIMEOUT = 100;\nlet prevRaf;\n\n/** @type {(vnode: import('./internal').VNode) => void} */\noptions._diff = vnode => {\n\tcurrentComponent = null;\n\tif (oldBeforeDiff) oldBeforeDiff(vnode);\n};\n\noptions._root = (vnode, parentDom) => {\n\tif (vnode && parentDom._children && parentDom._children._mask) {\n\t\tvnode._mask = parentDom._children._mask;\n\t}\n\n\tif (oldRoot) oldRoot(vnode, parentDom);\n};\n\n/** @type {(vnode: import('./internal').VNode) => void} */\noptions._render = vnode => {\n\tif (oldBeforeRender) oldBeforeRender(vnode);\n\n\tcurrentComponent = vnode._component;\n\tcurrentIndex = 0;\n\n\tconst hooks = currentComponent.__hooks;\n\tif (hooks) {\n\t\tif (previousComponent === currentComponent) {\n\t\t\thooks._pendingEffects = [];\n\t\t\tcurrentComponent._renderCallbacks = [];\n\t\t\thooks._list.forEach(hookItem => {\n\t\t\t\tif (hookItem._nextValue) {\n\t\t\t\t\thookItem._value = hookItem._nextValue;\n\t\t\t\t}\n\t\t\t\thookItem._pendingValue = EMPTY;\n\t\t\t\thookItem._nextValue = hookItem._pendingArgs = undefined;\n\t\t\t});\n\t\t} else {\n\t\t\thooks._pendingEffects.forEach(invokeCleanup);\n\t\t\thooks._pendingEffects.forEach(invokeEffect);\n\t\t\thooks._pendingEffects = [];\n\t\t\tcurrentIndex = 0;\n\t\t}\n\t}\n\tpreviousComponent = currentComponent;\n};\n\n/** @type {(vnode: import('./internal').VNode) => void} */\noptions.diffed = vnode => {\n\tif (oldAfterDiff) oldAfterDiff(vnode);\n\n\tconst c = vnode._component;\n\tif (c && c.__hooks) {\n\t\tif (c.__hooks._pendingEffects.length) afterPaint(afterPaintEffects.push(c));\n\t\tc.__hooks._list.forEach(hookItem => {\n\t\t\tif (hookItem._pendingArgs) {\n\t\t\t\thookItem._args = hookItem._pendingArgs;\n\t\t\t}\n\t\t\tif (hookItem._pendingValue !== EMPTY) {\n\t\t\t\thookItem._value = hookItem._pendingValue;\n\t\t\t}\n\t\t\thookItem._pendingArgs = undefined;\n\t\t\thookItem._pendingValue = EMPTY;\n\t\t});\n\t}\n\tpreviousComponent = currentComponent = null;\n};\n\n// TODO: Improve typing of commitQueue parameter\n/** @type {(vnode: import('./internal').VNode, commitQueue: any) => void} */\noptions._commit = (vnode, commitQueue) => {\n\tcommitQueue.some(component => {\n\t\ttry {\n\t\t\tcomponent._renderCallbacks.forEach(invokeCleanup);\n\t\t\tcomponent._renderCallbacks = component._renderCallbacks.filter(cb =>\n\t\t\t\tcb._value ? invokeEffect(cb) : true\n\t\t\t);\n\t\t} catch (e) {\n\t\t\tcommitQueue.some(c => {\n\t\t\t\tif (c._renderCallbacks) c._renderCallbacks = [];\n\t\t\t});\n\t\t\tcommitQueue = [];\n\t\t\toptions._catchError(e, component._vnode);\n\t\t}\n\t});\n\n\tif (oldCommit) oldCommit(vnode, commitQueue);\n};\n\n/** @type {(vnode: import('./internal').VNode) => void} */\noptions.unmount = vnode => {\n\tif (oldBeforeUnmount) oldBeforeUnmount(vnode);\n\n\tconst c = vnode._component;\n\tif (c && c.__hooks) {\n\t\tlet hasErrored;\n\t\tc.__hooks._list.forEach(s => {\n\t\t\ttry {\n\t\t\t\tinvokeCleanup(s);\n\t\t\t} catch (e) {\n\t\t\t\thasErrored = e;\n\t\t\t}\n\t\t});\n\t\tc.__hooks = undefined;\n\t\tif (hasErrored) options._catchError(hasErrored, c._vnode);\n\t}\n};\n\n/**\n * Get a hook's state from the currentComponent\n * @param {number} index The index of the hook to get\n * @param {number} type The index of the hook to get\n * @returns {any}\n */\nfunction getHookState(index, type) {\n\tif (options._hook) {\n\t\toptions._hook(currentComponent, index, currentHook || type);\n\t}\n\tcurrentHook = 0;\n\n\t// Largely inspired by:\n\t// * https://github.com/michael-klein/funcy.js/blob/f6be73468e6ec46b0ff5aa3cc4c9baf72a29025a/src/hooks/core_hooks.mjs\n\t// * https://github.com/michael-klein/funcy.js/blob/650beaa58c43c33a74820a3c98b3c7079cf2e333/src/renderer.mjs\n\t// Other implementations to look at:\n\t// * https://codesandbox.io/s/mnox05qp8\n\tconst hooks =\n\t\tcurrentComponent.__hooks ||\n\t\t(currentComponent.__hooks = {\n\t\t\t_list: [],\n\t\t\t_pendingEffects: []\n\t\t});\n\n\tif (index >= hooks._list.length) {\n\t\thooks._list.push({ _pendingValue: EMPTY });\n\t}\n\n\treturn hooks._list[index];\n}\n\n/**\n * @template {unknown} S\n * @param {import('./index').Dispatch<import('./index').StateUpdater<S>>} [initialState]\n * @returns {[S, (state: S) => void]}\n */\nexport function useState(initialState) {\n\tcurrentHook = 1;\n\treturn useReducer(invokeOrReturn, initialState);\n}\n\n/**\n * @template {unknown} S\n * @template {unknown} A\n * @param {import('./index').Reducer<S, A>} reducer\n * @param {import('./index').Dispatch<import('./index').StateUpdater<S>>} initialState\n * @param {(initialState: any) => void} [init]\n * @returns {[ S, (state: S) => void ]}\n */\nexport function useReducer(reducer, initialState, init) {\n\t/** @type {import('./internal').ReducerHookState} */\n\tconst hookState = getHookState(currentIndex++, 2);\n\thookState._reducer = reducer;\n\tif (!hookState._component) {\n\t\thookState._value = [\n\t\t\t!init ? invokeOrReturn(undefined, initialState) : init(initialState),\n\n\t\t\taction => {\n\t\t\t\tconst currentValue = hookState._nextValue\n\t\t\t\t\t? hookState._nextValue[0]\n\t\t\t\t\t: hookState._value[0];\n\t\t\t\tconst nextValue = hookState._reducer(currentValue, action);\n\n\t\t\t\tif (currentValue !== nextValue) {\n\t\t\t\t\thookState._nextValue = [nextValue, hookState._value[1]];\n\t\t\t\t\thookState._component.setState({});\n\t\t\t\t}\n\t\t\t}\n\t\t];\n\n\t\thookState._component = currentComponent;\n\n\t\tif (!currentComponent._hasScuFromHooks) {\n\t\t\tcurrentComponent._hasScuFromHooks = true;\n\t\t\tlet prevScu = currentComponent.shouldComponentUpdate;\n\t\t\tconst prevCWU = currentComponent.componentWillUpdate;\n\n\t\t\t// If we're dealing with a forced update `shouldComponentUpdate` will\n\t\t\t// not be called. But we use that to update the hook values, so we\n\t\t\t// need to call it.\n\t\t\tcurrentComponent.componentWillUpdate = function (p, s, c) {\n\t\t\t\tif (this._force) {\n\t\t\t\t\tlet tmp = prevScu;\n\t\t\t\t\t// Clear to avoid other sCU hooks from being called\n\t\t\t\t\tprevScu = undefined;\n\t\t\t\t\tupdateHookState(p, s, c);\n\t\t\t\t\tprevScu = tmp;\n\t\t\t\t}\n\n\t\t\t\tif (prevCWU) prevCWU.call(this, p, s, c);\n\t\t\t};\n\n\t\t\t// This SCU has the purpose of bailing out after repeated updates\n\t\t\t// to stateful hooks.\n\t\t\t// we store the next value in _nextValue[0] and keep doing that for all\n\t\t\t// state setters, if we have next states and\n\t\t\t// all next states within a component end up being equal to their original state\n\t\t\t// we are safe to bail out for this specific component.\n\t\t\t/**\n\t\t\t *\n\t\t\t * @type {import('./internal').Component[\"shouldComponentUpdate\"]}\n\t\t\t */\n\t\t\t// @ts-ignore - We don't use TS to downtranspile\n\t\t\t// eslint-disable-next-line no-inner-declarations\n\t\t\tfunction updateHookState(p, s, c) {\n\t\t\t\tif (!hookState._component.__hooks) return true;\n\n\t\t\t\t/** @type {(x: import('./internal').HookState) => x is import('./internal').ReducerHookState} */\n\t\t\t\tconst isStateHook = x => !!x._component;\n\t\t\t\tconst stateHooks =\n\t\t\t\t\thookState._component.__hooks._list.filter(isStateHook);\n\n\t\t\t\tconst allHooksEmpty = stateHooks.every(x => !x._nextValue);\n\t\t\t\t// When we have no updated hooks in the component we invoke the previous SCU or\n\t\t\t\t// traverse the VDOM tree further.\n\t\t\t\tif (allHooksEmpty) {\n\t\t\t\t\treturn prevScu ? prevScu.call(this, p, s, c) : true;\n\t\t\t\t}\n\n\t\t\t\t// We check whether we have components with a nextValue set that\n\t\t\t\t// have values that aren't equal to one another this pushes\n\t\t\t\t// us to update further down the tree\n\t\t\t\tlet shouldUpdate = false;\n\t\t\t\tstateHooks.forEach(hookItem => {\n\t\t\t\t\tif (hookItem._nextValue) {\n\t\t\t\t\t\tconst currentValue = hookItem._value[0];\n\t\t\t\t\t\thookItem._value = hookItem._nextValue;\n\t\t\t\t\t\thookItem._nextValue = undefined;\n\t\t\t\t\t\tif (currentValue !== hookItem._value[0]) shouldUpdate = true;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\treturn shouldUpdate || hookState._component.props !== p\n\t\t\t\t\t? prevScu\n\t\t\t\t\t\t? prevScu.call(this, p, s, c)\n\t\t\t\t\t\t: true\n\t\t\t\t\t: false;\n\t\t\t}\n\n\t\t\tcurrentComponent.shouldComponentUpdate = updateHookState;\n\t\t}\n\t}\n\n\treturn hookState._nextValue || hookState._value;\n}\n\n/**\n * @param {import('./internal').Effect} callback\n * @param {unknown[]} args\n * @returns {void}\n */\nexport function useEffect(callback, args) {\n\t/** @type {import('./internal').EffectHookState} */\n\tconst state = getHookState(currentIndex++, 3);\n\tif (!options._skipEffects && argsChanged(state._args, args)) {\n\t\tstate._value = callback;\n\t\tstate._pendingArgs = args;\n\n\t\tcurrentComponent.__hooks._pendingEffects.push(state);\n\t}\n}\n\n/**\n * @param {import('./internal').Effect} callback\n * @param {unknown[]} args\n * @returns {void}\n */\nexport function useLayoutEffect(callback, args) {\n\t/** @type {import('./internal').EffectHookState} */\n\tconst state = getHookState(currentIndex++, 4);\n\tif (!options._skipEffects && argsChanged(state._args, args)) {\n\t\tstate._value = callback;\n\t\tstate._pendingArgs = args;\n\n\t\tcurrentComponent._renderCallbacks.push(state);\n\t}\n}\n\n/** @type {(initialValue: unknown) => unknown} */\nexport function useRef(initialValue) {\n\tcurrentHook = 5;\n\treturn useMemo(() => ({ current: initialValue }), []);\n}\n\n/**\n * @param {object} ref\n * @param {() => object} createHandle\n * @param {unknown[]} args\n * @returns {void}\n */\nexport function useImperativeHandle(ref, createHandle, args) {\n\tcurrentHook = 6;\n\tuseLayoutEffect(\n\t\t() => {\n\t\t\tif (typeof ref == 'function') {\n\t\t\t\tref(createHandle());\n\t\t\t\treturn () => ref(null);\n\t\t\t} else if (ref) {\n\t\t\t\tref.current = createHandle();\n\t\t\t\treturn () => (ref.current = null);\n\t\t\t}\n\t\t},\n\t\targs == null ? args : args.concat(ref)\n\t);\n}\n\n/**\n * @template {unknown} T\n * @param {() => T} factory\n * @param {unknown[]} args\n * @returns {T}\n */\nexport function useMemo(factory, args) {\n\t/** @type {import('./internal').MemoHookState<T>} */\n\tconst state = getHookState(currentIndex++, 7);\n\tif (argsChanged(state._args, args)) {\n\t\tstate._pendingValue = factory();\n\t\tstate._pendingArgs = args;\n\t\tstate._factory = factory;\n\t\treturn state._pendingValue;\n\t}\n\n\treturn state._value;\n}\n\n/**\n * @param {() => void} callback\n * @param {unknown[]} args\n * @returns {() => void}\n */\nexport function useCallback(callback, args) {\n\tcurrentHook = 8;\n\treturn useMemo(() => callback, args);\n}\n\n/**\n * @param {import('./internal').PreactContext} context\n */\nexport function useContext(context) {\n\tconst provider = currentComponent.context[context._id];\n\t// We could skip this call here, but than we'd not call\n\t// `options._hook`. We need to do that in order to make\n\t// the devtools aware of this hook.\n\t/** @type {import('./internal').ContextHookState} */\n\tconst state = getHookState(currentIndex++, 9);\n\t// The devtools needs access to the context object to\n\t// be able to pull of the default value when no provider\n\t// is present in the tree.\n\tstate._context = context;\n\tif (!provider) return context._defaultValue;\n\t// This is probably not safe to convert to \"!\"\n\tif (state._value == null) {\n\t\tstate._value = true;\n\t\tprovider.sub(currentComponent);\n\t}\n\treturn provider.props.value;\n}\n\n/**\n * Display a custom label for a custom hook for the devtools panel\n * @type {<T>(value: T, cb?: (value: T) => string | number) => void}\n */\nexport function useDebugValue(value, formatter) {\n\tif (options.useDebugValue) {\n\t\toptions.useDebugValue(\n\t\t\tformatter ? formatter(value) : /** @type {any}*/ (value)\n\t\t);\n\t}\n}\n\n/**\n * @param {(error: unknown, errorInfo: import('preact').ErrorInfo) => void} cb\n * @returns {[unknown, () => void]}\n */\nexport function useErrorBoundary(cb) {\n\t/** @type {import('./internal').ErrorBoundaryHookState} */\n\tconst state = getHookState(currentIndex++, 10);\n\tconst errState = useState();\n\tstate._value = cb;\n\tif (!currentComponent.componentDidCatch) {\n\t\tcurrentComponent.componentDidCatch = (err, errorInfo) => {\n\t\t\tif (state._value) state._value(err, errorInfo);\n\t\t\terrState[1](err);\n\t\t};\n\t}\n\treturn [\n\t\terrState[0],\n\t\t() => {\n\t\t\terrState[1](undefined);\n\t\t}\n\t];\n}\n\n/** @type {() => string} */\nexport function useId() {\n\t/** @type {import('./internal').IdHookState} */\n\tconst state = getHookState(currentIndex++, 11);\n\tif (!state._value) {\n\t\t// Grab either the root node or the nearest async boundary node.\n\t\t/** @type {import('./internal.d').VNode} */\n\t\tlet root = currentComponent._vnode;\n\t\twhile (root !== null && !root._mask && root._parent !== null) {\n\t\t\troot = root._parent;\n\t\t}\n\n\t\tlet mask = root._mask || (root._mask = [0, 0]);\n\t\tstate._value = 'P' + mask[0] + '-' + mask[1]++;\n\t}\n\n\treturn state._value;\n}\n\n/**\n * After paint effects consumer.\n */\nfunction flushAfterPaintEffects() {\n\tlet component;\n\twhile ((component = afterPaintEffects.shift())) {\n\t\tif (!component._parentDom || !component.__hooks) continue;\n\t\ttry {\n\t\t\tcomponent.__hooks._pendingEffects.forEach(invokeCleanup);\n\t\t\tcomponent.__hooks._pendingEffects.forEach(invokeEffect);\n\t\t\tcomponent.__hooks._pendingEffects = [];\n\t\t} catch (e) {\n\t\t\tcomponent.__hooks._pendingEffects = [];\n\t\t\toptions._catchError(e, component._vnode);\n\t\t}\n\t}\n}\n\nlet HAS_RAF = typeof requestAnimationFrame == 'function';\n\n/**\n * Schedule a callback to be invoked after the browser has a chance to paint a new frame.\n * Do this by combining requestAnimationFrame (rAF) + setTimeout to invoke a callback after\n * the next browser frame.\n *\n * Also, schedule a timeout in parallel to the the rAF to ensure the callback is invoked\n * even if RAF doesn't fire (for example if the browser tab is not visible)\n *\n * @param {() => void} callback\n */\nfunction afterNextFrame(callback) {\n\tconst done = () => {\n\t\tclearTimeout(timeout);\n\t\tif (HAS_RAF) cancelAnimationFrame(raf);\n\t\tsetTimeout(callback);\n\t};\n\tconst timeout = setTimeout(done, RAF_TIMEOUT);\n\n\tlet raf;\n\tif (HAS_RAF) {\n\t\traf = requestAnimationFrame(done);\n\t}\n}\n\n// Note: if someone used options.debounceRendering = requestAnimationFrame,\n// then effects will ALWAYS run on the NEXT frame instead of the current one, incurring a ~16ms delay.\n// Perhaps this is not such a big deal.\n/**\n * Schedule afterPaintEffects flush after the browser paints\n * @param {number} newQueueLength\n * @returns {void}\n */\nfunction afterPaint(newQueueLength) {\n\tif (newQueueLength === 1 || prevRaf !== options.requestAnimationFrame) {\n\t\tprevRaf = options.requestAnimationFrame;\n\t\t(prevRaf || afterNextFrame)(flushAfterPaintEffects);\n\t}\n}\n\n/**\n * @param {import('./internal').HookState} hook\n * @returns {void}\n */\nfunction invokeCleanup(hook) {\n\t// A hook cleanup can introduce a call to render which creates a new root, this will call options.vnode\n\t// and move the currentComponent away.\n\tconst comp = currentComponent;\n\tlet cleanup = hook._cleanup;\n\tif (typeof cleanup == 'function') {\n\t\thook._cleanup = undefined;\n\t\tcleanup();\n\t}\n\n\tcurrentComponent = comp;\n}\n\n/**\n * Invoke a Hook's effect\n * @param {import('./internal').EffectHookState} hook\n * @returns {void}\n */\nfunction invokeEffect(hook) {\n\t// A hook call can introduce a call to render which creates a new root, this will call options.vnode\n\t// and move the currentComponent away.\n\tconst comp = currentComponent;\n\thook._cleanup = hook._value();\n\tcurrentComponent = comp;\n}\n\n/**\n * @param {unknown[]} oldArgs\n * @param {unknown[]} newArgs\n * @returns {boolean}\n */\nfunction argsChanged(oldArgs, newArgs) {\n\treturn (\n\t\t!oldArgs ||\n\t\toldArgs.length !== newArgs.length ||\n\t\tnewArgs.some((arg, index) => arg !== oldArgs[index])\n\t);\n}\n\n/**\n * @template Arg\n * @param {Arg} arg\n * @param {(arg: Arg) => any} f\n * @returns {any}\n */\nfunction invokeOrReturn(arg, f) {\n\treturn typeof f == 'function' ? f(arg) : f;\n}\n","export const PKG_NAME = \"@hpcc-js/preact-shim\";\nexport const PKG_VERSION = \"2.17.0\";\nexport const BUILD_VERSION = \"2.106.0\";\n","/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n function next() {\n while (env.stack.length) {\n var rec = env.stack.pop();\n try {\n var result = rec.dispose && rec.dispose.call(rec.value);\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n catch (e) {\n fail(e);\n }\n }\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n};\n","import * as React from \"@hpcc-js/preact-shim\";\n\ninterface Image {\n href: string;\n x?: number;\n y?: number;\n height?: number;\n yOffset?: number;\n}\n\nexport const Image: React.FunctionComponent<Image> = ({\n href,\n x,\n y = 0,\n height = 12\n}) => {\n\n return <image\n href={href}\n x={x - height / 2}\n y={y - height / 2}\n width={height}\n height={height}\n ></image>;\n};\n","import { Utility } from \"@hpcc-js/common\";\nimport * as React from \"@hpcc-js/preact-shim\";\n\ninterface ImageChar {\n x?: number;\n y?: number;\n height?: number;\n fill?: string;\n stroke?: string;\n fontFamily?: string;\n char?: string;\n yOffset?: number;\n}\n\nexport const ImageChar: React.FunctionComponent<ImageChar> = ({\n x,\n y = 0,\n height = 12,\n fill,\n stroke,\n fontFamily = \"FontAwesome\",\n char = \"\"\n}) => {\n\n const renderChar = React.useMemo(() => {\n return fontFamily === \"FontAwesome\" ? Utility.faChar(char) : char;\n }, [char, fontFamily]);\n\n return <text\n x={x}\n y={y}\n fill={fill}\n stroke={stroke}\n font-family={fontFamily}\n font-size={`${height}px`}\n dominant-baseline=\"middle\"\n style=\"text-anchor: middle;alignment-baseline:middle;\"\n >{renderChar}</text>;\n};\n","import * as React from \"@hpcc-js/preact-shim\";\n\ninterface Circle {\n radius?: number;\n fill?: string;\n stroke?: string;\n strokeWidth?: number;\n shapeRendering?: \"auto\" | \"optimizeSpeed\" | \"crispEdges\" | \"geometricPrecision\";\n}\n\nexport const Circle: React.FunctionComponent<Circle> = ({\n radius = 32,\n fill = \"navy\",\n stroke = fill,\n strokeWidth = 1,\n shapeRendering\n}) => <circle\n r={radius}\n fill={fill}\n stroke={stroke}\n stroke-width={strokeWidth}\n shape-rendering={shapeRendering}\n />;\n\ninterface Square {\n radius?: number;\n cornerRadius?: number;\n fill?: string;\n stroke?: string;\n strokeWidth?: number;\n shapeRendering?: \"auto\" | \"optimizeSpeed\" | \"crispEdges\" | \"geometricPrecision\";\n}\n\nexport const Square: React.FunctionComponent<Square> = ({\n radius = 30,\n cornerRadius = 0,\n fill = \"white\",\n stroke,\n strokeWidth = 1,\n shapeRendering\n}) => <rect\n x={-radius}\n y={-radius}\n rx={cornerRadius}\n ry={cornerRadius}\n width={radius * 2}\n height={radius * 2}\n fill={fill}\n stroke={stroke || fill}\n stroke-width={strokeWidth}\n shape-rendering={shapeRendering}\n />;\n\ninterface Rectangle {\n width?: number;\n height?: number;\n cornerRadius?: number;\n fill?: string;\n stroke?: string;\n strokeWidth?: number;\n shapeRendering?: \"auto\" | \"optimizeSpeed\" | \"crispEdges\" | \"geometricPrecision\";\n}\n\nexport const Rectangle: React.FunctionComponent<Rectangle> = ({\n width = 30,\n height = 30,\n cornerRadius = 0,\n fill = \"white\",\n stroke = \"black\",\n strokeWidth = 1,\n shapeRendering\n}) => {\n return <rect\n x={-width / 2}\n y={-height / 2}\n rx={cornerRadius}\n ry={cornerRadius}\n width={width}\n height={height}\n fill={fill}\n stroke={stroke || fill}\n stroke-width={strokeWidth}\n shape-rendering={shapeRendering}\n />;\n};\n\ninterface Shape {\n shape?: \"circle\" | \"square\" | \"rectangle\";\n height?: number;\n width?: number;\n fill?: string;\n stroke?: string;\n strokeWidth?: number;\n shapeRendering?: \"auto\" | \"optimizeSpeed\" | \"crispEdges\" | \"geometricPrecision\";\n cornerRadius?: number;\n}\n\nexport const Shape: React.FunctionComponent<Shape> = ({\n shape = \"circle\",\n height = 128,\n width,\n fill,\n stroke,\n strokeWidth = 1,\n shapeRendering,\n cornerRadius\n}) => {\n switch (shape) {\n case \"square\":\n return <Square\n radius={height / 2}\n fill={fill}\n stroke={stroke}\n strokeWidth={strokeWidth}\n shapeRendering={shapeRendering}\n cornerRadius={cornerRadius}\n />;\n case \"rectangle\":\n return <Rectangle\n width={width ?? height}\n height={height}\n fill={fill}\n stroke={stroke}\n strokeWidth={strokeWidth}\n shapeRendering={shapeRendering}\n cornerRadius={cornerRadius}\n />;\n case \"circle\":\n default:\n return <Circle\n radius={height / 2}\n fill={fill}\n stroke={stroke}\n strokeWidth={strokeWidth}\n shapeRendering={shapeRendering}\n />;\n }\n};\n","import { Palette } from \"@hpcc-js/common\";\nimport * as React from \"@hpcc-js/preact-shim\";\nimport { Image } from \"./image\";\nimport { ImageChar } from \"./ImageChar\";\nimport { Shape } from \"./shape\";\n\nexport interface Icon {\n shape?: \"circle\" | \"square\" | \"rectangle\";\n width?: number;\n height?: number;\n padding?: number;\n fill?: string;\n stroke?: string;\n strokeWidth?: number;\n imageUrl?: string;\n imageFontFamily?: string;\n imageChar?: string;\n imageCharFill?: string;\n xOffset?: number;\n yOffset?: number;\n cornerRadius?: number;\n shapeRendering?: \"auto\" | \"optimizeSpeed\" | \"crispEdges\" | \"geometricPrecision\";\n}\n\nexport const Icon: React.FunctionComponent<Icon> = ({\n shape = \"circle\",\n width,\n height = 32,\n fill,\n stroke,\n strokeWidth = 0,\n imageUrl = \"\",\n imageFontFamily = \"FontAwesome\",\n imageChar = \"\",\n imageCharFill = Palette.textColor(fill),\n padding = height / 5,\n xOffset = 0,\n yOffset = 0,\n cornerRadius,\n shapeRendering\n}) => {\n return <>\n <Shape\n shape={shape}\n width={width}\n height={height}\n fill={fill}\n stroke={stroke}\n strokeWidth={strokeWidth}\n shapeRendering={shapeRendering}\n cornerRadius={cornerRadius}\n />\n {imageUrl ?\n <Image\n href={imageUrl}\n x={xOffset}\n y={yOffset}\n height={height - padding}\n ></Image> :\n <ImageChar\n x={xOffset}\n y={yOffset}\n height={height - padding}\n fontFamily={imageFontFamily}\n char={imageChar}\n fill={imageCharFill}\n font-weight={400}\n ></ImageChar>\n }\n </>;\n};\n\nexport interface IconEx extends Icon {\n id: string;\n}\n\nexport interface Icons {\n icons: IconEx[];\n}\n\nexport const Icons: React.FunctionComponent<Icons> = ({\n icons = []\n}) => {\n const IconComponents = icons.map(cat => {\n return <g\n key={cat.id}\n id={cat.id}\n >\n <Icon\n {...cat}\n />\n </g>;\n });\n return <>{IconComponents}</>;\n};\n","import { Utility } from \"@hpcc-js/common\";\nimport * as React from \"@hpcc-js/preact-shim\";\nimport { Icon } from \"./icon\";\nimport { Rectangle } from \"./shape\";\n\ninterface TextLine {\n text: string;\n height?: number;\n anchor?: string;\n baseline?: string;\n fontFamily?: string;\n fill?: string;\n}\n\nexport const TextLine: React.FunctionComponent<TextLine> = ({\n text,\n height = 12,\n anchor = \"middle\",\n baseline = \"middle\",\n fontFamily = \"Verdana\",\n fill = \"black\"\n}) => {\n return <text\n font-family={fontFamily}\n font-size={`${height}px`}\n text-anchor={anchor}\n dominant-baseline={baseline}\n fill={fill}\n >{text}</text>;\n};\n\ninterface Text {\n text: string;\n height?: number;\n fontFamily?: string;\n fill?: string;\n onSizeUpdate?: (size: { width: number, height: number }) => void;\n}\n\nexport const Text: React.FunctionComponent<Text> = ({\n text,\n height = 12,\n fontFamily = \"Verdana\",\n fill = \"black\",\n onSizeUpdate\n}) => {\n const [totalWidth, setTotalWidthUpdate] = React.useState(0);\n const [totalHeight, setTotalHeightUpdate] = React.useState(0);\n\n React.useEffect(() => {\n onSizeUpdate && onSizeUpdate({ width: totalWidth, height: totalHeight });\n }, [totalWidth, totalHeight, onSizeUpdate]);\n\n const parts = React.useMemo(() => {\n return text.split(\"\\n\");\n }, [text]);\n\n const ts = React.useMemo(() => {\n return Utility.textSize(parts, fontFamily, height);\n }, [fontFamily, height, parts]);\n\n setTotalWidthUpdate(ts.width);\n setTotalHeightUpdate(parts.length * (height + 2) - 2);\n\n const yOffset = -(totalHeight / 2) + (height / 2);\n const TextLines = React.useMemo(() => {\n return parts.map((p, i) => {\n return <g key={i} transform={`translate(0 ${yOffset + i * (height + 2)})`}>\n <TextLine\n text={p}\n height={height}\n fontFamily={fontFamily}\n fill={fill}\n />\n </g>;\n });\n }, [fill, fontFamily, height, parts, yOffset]);\n\n return <>{TextLines}</>;\n};\n\nexport interface TextBox {\n text: string;\n height?: number;\n fontFamily?: string;\n padding?: number;\n fill?: string;\n stroke?: string;\n textFill?: string;\n strokeWidth?: number;\n cornerRadius?: number;\n textOffsetY?: number;\n onSizeUpdate?: (size: { width: number, height: number }) => void;\n}\n\nexport const TextBox: React.FunctionComponent<TextBox> = ({\n text,\n height = 12,\n fontFamily = \"Verdana\",\n padding = 4,\n fill = \"whitesmoke\",\n stroke = \"lightgray\",\n textFill = \"black\",\n strokeWidth = 1,\n cornerRadius = 0,\n onSizeUpdate\n}) => {\n const [textWidth, setTextWidthUpdate] = React.useState(0);\n const [textHeight, setTextHeightUpdate] = React.useState(0);\n\n React.useEffect(() => {\n onSizeUpdate && onSizeUpdate({ width: textWidth, height: textHeight });\n }, [textWidth, textHeight, onSizeUpdate]);\n\n const onTextSizeUpdate = React.useCallback(size => {\n setTextWidthUpdate(size.width);\n setTextHeightUpdate(size.height);\n }, []);\n\n const w = textWidth + padding * 2 + strokeWidth;\n const h = textHeight + padding * 2 + strokeWidth;\n const textOffsetY = Math.floor(height / 10);\n\n return <>\n <Rectangle\n width={w}\n height={h}\n fill={fill}\n stroke={stroke}\n strokeWidth={strokeWidth}\n cornerRadius={cornerRadius}\n />\n <g transform={`translate(0 ${textOffsetY})`}>\n <Text\n text={text}\n fontFamily={fontFamily}\n height={height}\n fill={textFill}\n onSizeUpdate={onTextSizeUpdate}\n />\n </g>\n </>;\n};\n\nexport interface LabelledRect extends TextBox {\n width?: number;\n fontSize?: number;\n}\n\nexport interface IconLabelledRect extends LabelledRect {\n icon: string;\n iconFontFamily: string;\n iconFontSize: number;\n}\n\nexport const LabelledRect: React.FunctionComponent<LabelledRect> = ({\n text,\n height = 12,\n width = 12,\n fontFamily = \"Verdana\",\n fontSize = 10,\n padding = 3,\n fill = \"whitesmoke\",\n stroke = \"lightgray\",\n textFill = \"black\",\n strokeWidth = 1,\n cornerRadius = 0,\n onSizeUpdate = (size: { width: number, height: number }) => { }\n}) => {\n return <>\n <Rectangle\n width={width}\n height={height}\n fill={fill}\n stroke={stroke}\n strokeWidth={strokeWidth}\n cornerRadius={cornerRadius}\n />\n <g transform={`translate(${-(width / 2) + padding} ${-(height / 2) + padding})`}>\n <TextLine\n text={text}\n fontFamily={fontFamily}\n height={fontSize}\n fill={textFill}\n anchor=\"start\"\n baseline=\"hanging\"\n />\n </g>\n </>;\n};\n\nexport const IconLabelledRect: React.FunctionComponent<IconLabelledRect> = ({\n icon,\n iconFontFamily,\n text,\n height = 12,\n width = 12,\n fontFamily = \"Verdana\",\n fontSize = 10,\n padding = 3,\n fill = \"whitesmoke\",\n stroke = \"lightgray\",\n textFill = \"black\",\n strokeWidth = 1,\n cornerRadius = 0,\n onSizeUpdate = (size: { width: number, height: number }) => { }\n}) => {\n return <>\n <Rectangle\n width={width}\n height={height}\n fill={fill}\n stroke={stroke}\n strokeWidth={strokeWidth}\n cornerRadius={cornerRadius}\n />\n <g transform={`translate(${-(width / 2) + padding} ${-(height / 2) + padding})`}>\n <Icon\n shape=\"square\"\n imageFontFamily={iconFontFamily}\n imageChar={icon}\n height={height}\n fill={fill}\n imageCharFill={textFill}\n />\n </g>\n <g transform={`translate(${-(width / 2) + (padding * 2) + height} ${-(height / 2) + padding})`}>\n <TextLine\n text={text}\n fontFamily={fontFamily}\n height={fontSize}\n fill={textFill}\n anchor=\"start\"\n baseline=\"hanging\"\n />\n </g>\n </>;\n};\n","import { HTMLWidget, publish, SVGWidget } from \"@hpcc-js/common\";\nimport * as React from \"@hpcc-js/preact-shim\";\n\nexport function render<P>(C: React.FunctionComponent<P>, props: Readonly<P>, parent: Element | Document | ShadowRoot | DocumentFragment, replaceNode?: Element | Text) {\n React.render(React.h(C, props), parent, replaceNode);\n}\n\nexport interface FunctionComponent<T> extends React.FunctionComponent<T> {\n}\n\nexport function svgRender<P>(C: React.FunctionComponent<P>, props: Readonly<P>, parent: Element | Document | ShadowRoot | DocumentFragment, replaceNode?: Element | Text) {\n React.render(React.h(\"svg\", null, React.h(C, props)), parent, replaceNode);\n}\n\nexport class HTMLAdapter<P> extends HTMLWidget {\n\n @publish({}, \"object\", \"Properties\")\n protected _props: P = {} as P;\n props(): P;\n props(_: Partial<P>): this;\n props(_?: Partial<P>): P | this {\n if (!arguments.length) return this._props;\n this._props = { ...this._props, ..._ };\n return this;\n }\n\n prop<K extends keyof P>(_: K): P[K];\n prop<K extends keyof P>(_: K, value: P[K]): this;\n prop<K extends keyof P>(_: K, value?: P[K]): this | P[K] {\n if (arguments.length === 1) return this._props[_];\n this._props[_] = value;\n return this;\n }\n\n constructor(protected readonly _component: React.FunctionComponent<P>) {\n super();\n }\n\n update(domNode, element) {\n super.update(domNode, element);\n render(this._component, this._props, domNode);\n }\n}\n\nexport class SVGAdapter<P> extends SVGWidget {\n\n @publish({}, \"object\", \"Properties\")\n protected _props: P = {} as P;\n props(): P;\n props(_: Partial<P>): this;\n props(_?: Partial<P>): P | this {\n if (!arguments.length) return this._props;\n this._props = { ...this._props, ..._ };\n return this;\n }\n\n prop<K extends keyof P>(_: K): P[K];\n prop<K extends keyof P>(_: K, value: P[K]): this;\n prop<K extends keyof P>(_: K, value?: P[K]): this | P[K] {\n if (arguments.length === 1) return this._props[_];\n this._props[_] = value;\n return this;\n }\n\n constructor(protected readonly _component: React.FunctionComponent<P>) {\n super();\n }\n\n update(domNode, element) {\n super.update(domNode, element);\n render(this._component, this._props, domNode);\n }\n}\n","import * as React from \"@hpcc-js/preact-shim\";\nimport { Icon } from \"./icon\";\nimport { TextBox } from \"./text\";\n\nexport interface Annotations {\n x: number;\n y: number;\n annotationIDs: string[];\n stepSize?: number;\n}\n\nexport const Annotations: React.FunctionComponent<Annotations> = ({\n x,\n y,\n annotationIDs = [],\n stepSize = -16\n}) => {\n const IconComponents = annotationIDs.map((id, i) => <g\n key={id}\n transform={`translate(${x + i * stepSize} ${y})`}\n >\n <use\n href={\"#\" + id}\n />\n </g>\n );\n return <>{IconComponents}</>;\n};\n\nexport interface VertexProps {\n id: string | number;\n origData?: any;\n centroid?: boolean;\n categoryID?: string;\n text: string;\n textHeight?: number;\n textPadding?: number;\n icon?: Icon;\n annotationsHeight?: number;\n annotationIDs?: string[];\n textFill?: string;\n textboxFill?: string;\n textboxStroke?: string;\n textFontFamily?: string;\n onSizeUpdate?: (size: { width: number, height: number }) => void;\n showLabel?: boolean;\n scale?: number\n}\n\nexport const Vertex: React.FunctionComponent<VertexProps> = ({\n categoryID = \"\",\n text = \"\",\n textHeight = 12,\n textPadding = 4,\n icon = {},\n annotationsHeight = 12,\n annotationIDs = [],\n textFill,\n textboxFill,\n textboxStroke,\n textFontFamily,\n onSizeUpdate,\n showLabel = true,\n scale = 1\n}) => {\n const [textBoxWidth, setTextBoxWidthUpdate] = React.useState(0);\n const [textBoxHeight, setTextBoxHeightUpdate] = React.useState(0);\n\n React.useEffect(() => {\n onSizeUpdate && onSizeUpdate({ width: 0, height: 0 });\n }, [textBoxWidth, textBoxHeight, onSizeUpdate]);\n\n icon = {\n imageChar: \"fa-question\",\n height: 32,\n fill: \"transparent\",\n ...icon\n };\n let width = textBoxWidth;\n width += 4;\n let offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2;\n const textboxOffsetY = icon.height / 3 + textBoxHeight / 2 + textPadding;\n let annotationOffsetY = icon.height / 3 + textBoxHeight + textPadding + annotationsHeight / 3;\n if (!showLabel) {\n offsetY += (textHeight + 8) / 2;\n annotationOffsetY -= textBoxHeight + textPadding;\n }\n\n const onTextBoxSizeUpdate = React.useCallback(size => {\n setTextBoxWidthUpdate(size.width);\n setTextBoxHeightUpdate(size.height);\n }, []);\n\n const label = showLabel ? <g transform={`translate(0 ${textboxOffsetY})`}>\n <TextBox\n text={text}\n height={textHeight}\n padding={textPadding}\n onSizeUpdate={onTextBoxSizeUpdate}\n textFill={textFill}\n fill={textboxFill}\n stroke={textboxStroke}\n fontFamily={textFontFamily}\n />\n </g> : undefined;\n return categoryID ?\n <g transform={`translate(0 ${offsetY}) scale(${scale})`}>\n <use href={\"#\" + categoryID} />\n {label}\n <Annotations x={width / 2} y={annotationOffsetY} annotationIDs={annotationIDs} />\n </g> :\n <g transform={`translate(0 ${offsetY}) scale(${scale})`}>\n <Icon {...icon} />\n {label}\n </g>;\n};\n","import { Utility } from \"@hpcc-js/common\";\nimport * as React from \"@hpcc-js/preact-shim\";\nimport { Icon } from \"./icon\";\nimport { TextBox } from \"./text\";\nimport { VertexProps } from \"./vertex\";\n\nexport interface Vertex3Props extends VertexProps {\n id: string;\n origData?: any;\n categoryID?: string;\n text: string;\n textHeight?: number;\n textPadding?: number;\n textboxStrokeWidth?: number;\n icon?: Icon;\n annotations?: Icon[];\n annotationsHeight?: number;\n annotationGutter?: number;\n textFill?: string;\n textboxFill?: string;\n textboxStroke?: string;\n textFontFamily?: string;\n cornerRadius?: number;\n subText?: TextBox;\n onSizeUpdate?: (size: { width: number, height: number }) => void;\n showLabel?: boolean;\n noLabelRadius?: number;\n expansionIcon?: Icon;\n scale?: number;\n}\n\nexport const Vertex3: React.FunctionComponent<Vertex3Props> = ({\n text = \"\",\n textHeight = 10,\n textPadding = 4,\n textFill = \"#287EC4\",\n textboxFill = \"white\",\n textboxStroke = \"#CCCCCC\",\n textboxStrokeWidth = 1,\n textFontFamily = \"Verdana\",\n annotationGutter = 2,\n annotations = [],\n cornerRadius = 3,\n icon = {},\n subText = { text: \"\" },\n showLabel = true,\n noLabelRadius = 5,\n expansionIcon,\n scale = 1\n}) => {\n icon = {\n height: 50,\n imageChar: \"?\",\n imageFontFamily: \"FontAwesome\",\n imageCharFill: \"#555555\",\n fill: \"transparent\",\n strokeWidth: 0,\n ...icon\n };\n subText = {\n text: \"\",\n fill: \"white\",\n textFill: \"#555555\",\n ...subText\n };\n expansionIcon = expansionIcon ? {\n height: 16,\n shape: \"circle\",\n padding: 6,\n imageChar: \"?\",\n imageFontFamily: \"FontAwesome\",\n imageCharFill: \"black\",\n fill: \"whitesmoke\",\n stroke: \"whitesmoke\",\n strokeWidth: 0,\n ...expansionIcon\n } : undefined;\n let fullAnnotationWidth = 0;\n\n const annoOffsetY = 0;\n\n const labelWidth = React.useMemo(() => {\n return Utility.textSize(text, textFontFamily, textHeight, false).width;\n }, [text, textFontFamily, textHeight]);\n\n let labelShapeWidth = 0;\n if (text !== \"\") {\n labelShapeWidth = labelWidth + (textPadding * 2) + (textboxStrokeWidth * 2);\n }\n fullAnnotationWidth += labelShapeWidth + annotationGutter;\n const textOffsetX = fullAnnotationWidth - (labelShapeWidth / 2);\n\n const textShapeHeight = textHeight + (textPadding * 2) + (textboxStrokeWidth * 2);\n const annotationArr = [];\n annotations.forEach((anno, idx) => {\n const annoText = anno.imageChar;\n const annoShapeWidth = textShapeHeight;\n fullAnnotationWidth += annoShapeWidth + annotationGutter;\n const annoOffsetX = fullAnnotationWidth - (annoShapeWidth / 2);\n annotationArr.push(\n <g key={idx} class=\"vertex3-anno\" data-click={\"annotation\"} data-click-data={JSON.stringify(anno)} transform={`translate(${annoOffsetX} ${annoOffsetY})`}>\n <Icon\n {...anno}\n shape=\"square\"\n height={textShapeHeight}\n imageChar={annoText}\n imageFontFamily={anno.imageFontFamily}\n cornerRadius={cornerRadius}\n strokeWidth={0}\n />\n </g>\n );\n });\n if (annotations.length > 0) {\n fullAnnotationWidth += annotationGutter * (annotations.length - 1);\n }\n const textElement = <g data-click={\"text\"} transform={`translate(${textOffsetX} ${annoOffsetY})`}>\n {!showLabel || text === \"\" ? <circle r={noLabelRadius} stroke={textboxStroke} fill={textFill} /> : <TextBox\n text={text}\n height={textHeight}\n padding={textPadding}\n strokeWidth={textboxStrokeWidth}\n stroke={textboxStroke}\n fill={textboxFill}\n textFill={textFill}\n fontFamily={textFontFamily}\n cornerRadius={cornerRadius}\n />}\n </g>;\n const iconHeight = icon.height || 20;\n const iconStrokeWidth = icon.strokeWidth || 0;\n const iconOffsetX = 0;\n let iconOffsetY = 0;\n\n const subTextOffsetX = 0;\n let subTextOffsetY = textShapeHeight + (annotationGutter * 2);\n\n if (text !== \"\" || annotationArr.length > 0) {\n iconOffsetY = - (iconHeight / 2) - (iconStrokeWidth) - (textShapeHeight / 2) - (annotationGutter * 2);\n } else if (subText.text !== \"\") {\n subTextOffsetY = (iconHeight / 2) + iconStrokeWidth + (annotationGutter * 2);\n }\n\n const subtextElement = subText.text === \"\" ? null : <g data-click={\"subtext\"}\n transform={`translate(${subTextOffsetX} ${subTextOffsetY})`}\n >\n <TextBox\n fill={subText.fill || \"#FFFFFF\"}\n textFill={subText.textFill || textFill}\n {...subText}\n height={textHeight}\n padding={textPadding}\n strokeWidth={0}\n stroke={textboxStroke}\n fontFamily={textFontFamily}\n cornerRadius={cornerRadius}\n />\n </g>;\n\n return <g transform={`scale(${scale})`}>\n <g data-click={\"icon\"} transform={`translate(${iconOffsetX} ${iconOffsetY})`}>\n <Icon {...icon} />\n {expansionIcon &&\n <g data-click={\"expanded-icon\"} data-click-data={JSON.stringify(expansionIcon)} transform={`translate(${(icon.height + iconStrokeWidth) / 2 - expansionIcon.height / 2} ${-(icon.height + iconStrokeWidth) / 2 + expansionIcon.height / 2})`}>\n <Icon {...expansionIcon} />\n </g>\n }\n </g>\n <g transform={`translate(${-fullAnnotationWidth / 2} ${annoOffsetY})`} >\n {textElement}\n {annotationArr}\n </g>\n {subtextElement}\n </g >;\n};\n\nexport const CentroidVertex3: React.FunctionComponent<Vertex3Props> = function ({\n id,\n categoryID = \"\",\n text = \"\",\n textHeight = 12,\n textPadding = 10,\n textFill = \"#287EC4\",\n textboxFill = \"white\",\n textboxStroke = \"#CCCCCC\",\n textboxStrokeWidth = 1,\n textFontFamily = \"Verdana\",\n annotationGutter = 2,\n annotations = [],\n cornerRadius,\n icon = {},\n subText = {},\n expansionIcon,\n scale = 1\n}) {\n icon = {\n height: 91,\n padding: 40,\n imageCharFill: \"#555555\",\n imageFontFamily: \"FontAwesome\",\n fill: \"#FFCC33\",\n stroke: \"#DFDFDF\",\n imageChar: \"?\",\n strokeWidth: 4,\n yOffset: -15,\n ...icon\n };\n subText = {\n text: \"\",\n fill: \"transparent\",\n textFill: \"#555555\",\n ...subText\n };\n const props = {\n id,\n categoryID,\n text,\n textHeight,\n textPadding,\n textFill,\n textboxFill,\n textboxStroke,\n textboxStrokeWidth,\n textFontFamily,\n annotationGutter,\n annotations,\n cornerRadius,\n icon,\n subText,\n expansionIcon,\n scale\n };\n return <Vertex3\n {...props}\n icon={icon}\n subText={subText}\n />;\n};\n","/* eslint-disable no-debugger, no-console */\nimport { Utility } from \"@hpcc-js/common\";\nimport * as React from \"@hpcc-js/preact-shim\";\nimport { Icon } from \"./icon\";\nimport { TextBox } from \"./text\";\nimport { VertexProps } from \"./vertex\";\n\nexport interface IVertex4Annotation extends Icon {\n shapeOffsetX?: number;\n shapeOffsetY?: number;\n}\n\nexport interface IVertex4 extends VertexProps {\n textboxStrokeWidth?: number;\n annotations?: IVertex4Annotation[];\n iconAnnotations?: IVertex4Annotation[];\n annotationGutter?: number;\n cornerRadius?: number;\n subText?: any;\n noLabelRadius?: number;\n iconBorderWidth?: number;\n iconBorderColor?: string;\n iconBackgroundColor?: string;\n shapeOffsetX?: number;\n shapeOffsetY?: number;\n iconOffsetX?: number;\n iconOffsetY?: number;\n iconPadding?: number;\n iconFontSize?: number;\n iconFontColor?: string;\n iconFontFamily?: string;\n iconText?: string;\n shapeRendering?: \"auto\" | \"optimizeSpeed\" | \"crispEdges\" | \"geometricPrecision\";\n}\n\nexport const Vertex4: React.FunctionComponent<IVertex4> = ({\n categoryID = \"\",\n text = \"\",\n textHeight = 10,\n textPadding = 4,\n textFill = \"#287EC4\",\n textboxFill = \"white\",\n textboxStroke = \"#CCCCCC\",\n textboxStrokeWidth = 1,\n textFontFamily = \"Verdana\",\n annotationGutter = 2,\n annotations = [],\n iconAnnotations = [],\n cornerRadius = 3,\n icon = {},\n subText = {},\n showLabel = true,\n noLabelRadius = 5,\n\n iconBorderWidth = 1,\n iconBorderColor = \"#333\",\n\n iconBackgroundColor = \"#fff\",\n\n iconFontColor = \"#000\",\n iconFontSize = 20,\n iconFontFamily = \"FontAwesome\",\n\n shapeOffsetX = 0,\n shapeOffsetY = 0,\n iconOffsetX = 0,\n iconOffsetY = 0,\n\n iconPadding = 4,\n iconText = \"?\",\n shapeRendering = \"auto\"\n}) => {\n icon = {\n height: 50,\n imageChar: \"?\",\n imageFontFamily: \"FontAwesome\",\n imageCharFill: \"#555555\",\n fill: \"transparent\",\n strokeWidth: 0,\n ...icon\n };\n subText = {\n text: \"\",\n fill: \"white\",\n textFill: \"#555555\",\n ...subText\n };\n\n const annoOffsetY = 0;\n const labelWidth = React.useMemo(() => {\n return Utility.textSize(text, textFontFamily, textHeight, false).width;\n }, [text, textFontFamily, textHeight]);\n\n let labelShapeWidth = 0;\n if (text !== \"\") {\n labelShapeWidth = labelWidth + (textPadding * 2) + (textboxStrokeWidth * 2);\n }\n let fullAnnotationWidth = labelShapeWidth + annotationGutter;\n const textOffsetX = fullAnnotationWidth - (labelShapeWidth / 2);\n\n const textShapeHeight = textHeight + (annotationGutter * 2) + (textboxStrokeWidth * 2);\n const annoWidthArr = annotations.map((anno, i) => {\n return Utility.textSize(anno.imageChar, anno.imageFontFamily, anno.height, false).width;\n });\n const annotationArr = [];\n let _labelAnnoOffsetX = fullAnnotationWidth;\n annotations.forEach((anno, i) => {\n const annoText = anno.imageChar;\n const annoTextHeight = anno.height ?? textShapeHeight;\n _labelAnnoOffsetX += annoWidthArr[i] + annotationGutter;\n const annoOffsetX = _labelAnnoOffsetX - (annoWidthArr[i] / 2);\n annotationArr.push(\n <g key={i} class=\"vertex3-anno\" data-click={\"annotation\"} data-click-data={JSON.stringify(anno)} transform={`translate(${annoOffsetX} ${annoOffsetY})`}>\n <Icon\n {...anno}\n shape=\"rectangle\"\n width={annoWidthArr[i]}\n height={annoTextHeight}\n imageChar={annoText}\n imageFontFamily={anno.imageFontFamily}\n cornerRadius={cornerRadius}\n strokeWidth={0}\n />\n </g>\n );\n });\n\n if (annotations.length > 0) {\n fullAnnotationWidth += annotationGutter * (annotations.length - 1);\n }\n const iconAnnotationArr = [];\n iconAnnotations.forEach((anno, i) => {\n const x = anno.shapeOffsetX;\n const y = anno.shapeOffsetY;\n iconAnnotationArr.push(\n <g key={i} class=\"vertex3-iconAnno\" data-click={\"icon-annotation\"} data-click-data={JSON.stringify(anno)} transform={`translate(${x} ${y})`}>\n <Icon\n {...anno}\n shape={anno.shape ?? \"square\"}\n imageChar={anno.imageChar}\n imageFontFamily={anno.imageFontFamily}\n cornerRadius={cornerRadius}\n stroke={anno.stroke}\n strokeWidth={anno.strokeWidth}\n />\n </g>\n );\n });\n\n const textElement = <g data-click={\"text\"} transform={`translate(${textOffsetX} ${annoOffsetY})`}>\n {!showLabel || text === \"\" ? <circle r={noLabelRadius} stroke={textboxStroke} fill={textFill} /> : <TextBox\n text={text}\n height={textHeight}\n padding={textPadding}\n strokeWidth={textboxStrokeWidth}\n stroke={textboxStroke}\n fill={textboxFill}\n textFill={textFill}\n fontFamily={textFontFamily}\n cornerRadius={cornerRadius}\n />}\n </g>;\n\n const subTextOffsetX = 0;\n const subTextOffsetY = textShapeHeight + (annotationGutter * 2);\n\n const subtextElement = subText.text === \"\" ? null : <g data-click={\"subtext\"}\n transform={`translate(${subTextOffsetX} ${subTextOffsetY})`}\n >\n <TextBox\n fill={subText.fill || \"#FFFFFF\"}\n textFill={subText.textFill || textFill}\n {...subText}\n height={textHeight}\n padding={textPadding}\n strokeWidth={0}\n stroke={textboxStroke}\n fontFamily={textFontFamily}\n cornerRadius={cornerRadius}\n />\n </g>;\n return <g>\n <g data-click={\"icon\"}\n transform={`translate(${shapeOffsetX} ${shapeOffsetY})`}\n >\n <Icon\n {...icon}\n strokeWidth={iconBorderWidth}\n shape=\"circle\"\n height={iconFontSize}\n fill={iconBackgroundColor}\n stroke={iconBorderColor}\n imageFontFamily={iconFontFamily}\n imageChar={iconText}\n imageCharFill={iconFontColor}\n padding={iconPadding}\n xOffset={iconOffsetX}\n yOffset={iconOffsetY}\n cornerRadius={cornerRadius}\n shapeRendering={shapeRendering}\n />\n {iconAnnotationArr}\n </g>\n <g\n transform={`translate(${-fullAnnotationWidth / 2} ${annoOffsetY})`}\n >\n {textElement}\n {annotationArr}\n </g>\n {subtextElement}\n </g>\n ;\n};\n\nexport const CentroidVertex4: React.FunctionComponent<IVertex4> = function ({\n id,\n categoryID = \"\",\n text = \"\",\n textHeight = 12,\n textPadding = 10,\n textFill = \"#287EC4\",\n textboxFill = \"white\",\n textboxStroke = \"#CCCCCC\",\n textboxStrokeWidth = 1,\n textFontFamily = \"Verdana\",\n annotationGutter = 2,\n annotations = [],\n iconAnnotations = [],\n cornerRadius,\n icon = {},\n subText = {},\n showLabel = true,\n noLabelRadius = 5,\n\n iconBorderWidth = 1,\n iconBorderColor = \"#333\",\n\n iconBackgroundColor = \"#fff\",\n\n iconFontColor = \"#000\",\n iconFontSize = 20,\n iconFontFamily = \"FontAwesome\",\n\n shapeOffsetX = 0,\n shapeOffsetY = 0,\n iconOffsetX = 0,\n iconOffsetY = 0,\n\n iconPadding = 4,\n iconText = \"?\",\n shapeRendering = \"auto\"\n}) {\n icon = {\n height: 91,\n padding: 40,\n imageCharFill: \"#555555\",\n imageFontFamily: \"FontAwesome\",\n fill: \"#FFCC33\",\n stroke: \"#DFDFDF\",\n imageChar: \"?\",\n strokeWidth: 4,\n yOffset: -15,\n ...icon\n };\n subText = {\n text: \"\",\n fill: \"transparent\",\n textFill: \"#555555\",\n ...subText\n };\n const props = {\n id,\n categoryID,\n text,\n textHeight,\n textPadding,\n textFill,\n textboxFill,\n textboxStroke,\n textboxStrokeWidth,\n textFontFamily,\n annotationGutter,\n annotations,\n iconAnnotations,\n cornerRadius,\n icon,\n subText,\n showLabel,\n noLabelRadius,\n iconBorderWidth,\n iconBorderColor,\n iconBackgroundColor,\n iconFontColor,\n iconFontSize,\n iconFontFamily,\n shapeOffsetX,\n shapeOffsetY,\n iconOffsetX,\n iconOffsetY,\n iconPadding,\n iconText,\n shapeRendering\n };\n return <Vertex4\n {...props}\n icon={icon}\n subText={subText}\n />;\n};\n","import * as React from \"@hpcc-js/preact-shim\";\nimport { VertexProps } from \"./vertex\";\nimport { Text } from \"./text\";\n\ntype Point = [number, number];\n\nexport interface EdgeProps<V extends VertexProps = VertexProps> {\n id: string | number;\n origData?: any;\n source: V;\n target: V;\n label?: string;\n labelPos?: Point;\n weight?: number;\n strokeDasharray?: string;\n strokeWidth?: number;\n stroke?: string;\n fontFamily?: string;\n labelFill?: string;\n labelHeight?: number,\n path?: string;\n points?: Array<[number, number]>;\n curveDepth?: number;\n}\n\nexport const Edge: React.FunctionComponent<EdgeProps> = ({\n label,\n labelPos,\n labelFill = \"black\",\n labelHeight = 12,\n path,\n stroke,\n strokeWidth,\n strokeDasharray\n}) => {\n return <>\n <path d={path} stroke={stroke} style={{ strokeWidth, strokeDasharray }}></path>\n {\n label && labelPos && labelPos.length === 2 ?\n <g transform={`translate(${labelPos[0]} ${labelPos[1]})`}>\n <Text text={label} fill={labelFill} height={labelHeight} />\n </g> : undefined\n }\n </>;\n};\n","import { Utility } from \"@hpcc-js/common\";\nimport * as React from \"@hpcc-js/preact-shim\";\nimport { Rectangle } from \"./shape\";\nimport { Text } from \"./text\";\n\nexport interface SubgraphProps {\n id: string;\n origData?: any;\n text: string;\n width?: number;\n height?: number;\n fill?: string;\n stroke?: string;\n fontHeight?: number;\n fontFamily?: string;\n}\n\nexport const Subgraph: React.FunctionComponent<SubgraphProps> = ({\n text,\n width = 100,\n height = 100,\n fill = \"transparent\",\n stroke = \"black\",\n fontHeight = 12,\n fontFamily\n}) => {\n const tSize = Utility.textSize(text, fontFamily, fontHeight, false);\n return <>\n <Rectangle\n width={width}\n height={height}\n fill={fill}\n stroke={stroke}\n />\n <g\n transform={`translate(${(-width + tSize.width) / 2 + 4} ${(-height + tSize.height) / 2 + 4})`}\n >\n <Text\n height={fontHeight}\n text={text}\n fontFamily={fontFamily}\n />\n </g>\n </>;\n};\n","import { Utility } from \"@hpcc-js/common\";\nimport * as React from \"@hpcc-js/preact-shim\";\nimport { Icon } from \"./icon\";\nimport { TextBox } from \"./text\";\nimport { Annotations, VertexProps } from \"./vertex\";\n\nexport const Vertex2: React.FunctionComponent<VertexProps> = ({\n categoryID = \"\",\n text = \"\",\n textHeight = 12,\n textPadding = 4,\n icon = {},\n textFill = \"black\",\n textboxFill = \"white\",\n textboxStroke = \"black\",\n textFontFamily,\n annotationsHeight = 12,\n annotationIDs = []\n}) => {\n icon = {\n imageChar: \"fa-question\",\n imageCharFill: \"white\",\n height: 32,\n fill: \"black\",\n shape: \"square\",\n ...icon\n };\n const textBoxHeight = textHeight + textPadding * 2;\n const { width } = React.useMemo(() => {\n return Utility.textSize(text, textFontFamily, textHeight, false);\n }, [text, textFontFamily, textHeight]);\n\n const stepSize = annotationsHeight;\n const textboxStrokeWidth = 1;\n\n const halfTextboxHeight = textBoxHeight / 2;\n\n const offsetX = 0;\n const offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2;\n const iconOffsetX = - icon.height / 2;\n const iconOffsetY = 0;\n const textboxOffsetX = Math.ceil((width / 2) + textPadding);\n const textboxOffsetY = halfTextboxHeight - (icon.height / 2);\n const annotationOffsetX = stepSize / 2;\n const annotationOffsetY = halfTextboxHeight;\n return categoryID ?\n <g\n transform={`translate(${offsetX} ${offsetY})`}\n >\n <g\n transform={`translate(${iconOffsetX} ${iconOffsetY})`}\n >\n <use\n href={\"#\" + categoryID}\n />\n </g>\n <g\n transform={`translate(${textboxOffsetX} ${textboxOffsetY})`}\n >\n <TextBox\n text={text}\n height={textHeight}\n padding={textPadding}\n strokeWidth={textboxStrokeWidth}\n stroke={textboxStroke}\n fill={textboxFill}\n textFill={textFill}\n fontFamily={textFontFamily}\n />\n </g>\n <Annotations\n x={annotationOffsetX}\n y={annotationOffsetY}\n annotationIDs={annotationIDs}\n stepSize={stepSize}\n />\n </g>\n :\n <>\n <g\n transform={`translate(${iconOffsetX} ${iconOffsetY})scale(1.0002)`}\n >\n <Icon\n {...icon}\n shape=\"square\"\n />\n </g>\n <g\n transform={`translate(${textboxOffsetX} ${textboxOffsetY})scale(1.0002)`}\n >\n <TextBox\n text={text}\n height={textHeight}\n padding={textPadding}\n stroke={textboxStroke}\n fill={textboxFill}\n />\n </g>\n </>;\n};\n"],"mappings":"6TAAO,IC4BMA,ECjBPC,ECRFC,EC+KAC,EAWAC,EAEEC,EA0BAC,EC/LFC,EAkJEC,EACAC,ECjKOC,EAAgC,GAChCC,EAAY,G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KAAA/K,OAAI2K,EAAiB,MAE3DxL,EAAC4D,GAAO,CACJjB,KAAMA,EACN5C,OAAQiE,EACR5B,QAAS6D,EACTjF,YA9BW,EA+BXZ,OAAQ+F,EACRhG,KAAM+F,EACNrC,SAAUA,EACVvD,WAAY+F,KAGpBrG,EAAC2F,GACG,CAAA1S,EAAG6Y,EACH5Y,EAAGuY,EACH7F,cAAeA,EACfC,SAAUA,KAIlB7F,EAAAyC,EAAA,KACIzC,EAAA,KACI2D,UAAW,aAAA9C,OAAa+I,EAAW,KAAA/I,OAxC3B,EAwC0D,mBAElEb,EAAC2B,GAAIlD,GAAA,GACGiI,EAAI,CACRhF,MAAM,aAGd1B,EAAA,KACI2D,UAAW,aAAA9C,OAAa+K,EAAc,KAAA/K,OAAI2K,EAA8B,mBAExExL,EAAC4D,GACG,CAAAjB,KAAMA,EACN5C,OAAQiE,EACR5B,QAAS6D,EACT7F,OAAQ+F,EACRhG,KAAM+F,KAI1B,E,kDNzFM,SAAuBxB,EAA+BjX,EAAoBkX,EAA4DnM,GACxIoM,EAAaC,EAAQ,MAAO,KAAMA,EAAQH,EAAGjX,IAASkX,EAAQnM,EAClE,C","ignoreList":[]}
|
package/types/ImageChar.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageChar.d.ts","sourceRoot":"","sources":["../src/ImageChar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAE9C,UAAU,SAAS;IACf,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAwBxD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__package__.d.ts","sourceRoot":"","sources":["../src/__package__.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,mBAAmB,CAAC;AACzC,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,aAAa,YAAY,CAAC"}
|
package/types/edge.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../src/edge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,KAAK,KAAK,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE9B,MAAM,WAAW,SAAS,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW;IAC1D,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,MAAM,EAAE,CAAC,CAAC;IACV,MAAM,EAAE,CAAC,CAAC;IACV,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;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