@hpcc-js/react 3.1.0 → 3.1.1

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