@telicent-oss/ds 0.12.3-rc3 → 0.12.4-rc3
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/ds.js
CHANGED
|
@@ -41365,21 +41365,22 @@ const VC = Nu(({
|
|
|
41365
41365
|
listboxMaxHeight: g,
|
|
41366
41366
|
loading: m,
|
|
41367
41367
|
loadingText: v,
|
|
41368
|
-
|
|
41369
|
-
|
|
41370
|
-
|
|
41371
|
-
|
|
41372
|
-
|
|
41373
|
-
|
|
41368
|
+
name: y,
|
|
41369
|
+
onChange: b,
|
|
41370
|
+
onInputChange: C,
|
|
41371
|
+
openOnFocus: S = !1,
|
|
41372
|
+
options: T = [],
|
|
41373
|
+
placeholder: w = "Search ...",
|
|
41374
|
+
width: R
|
|
41374
41375
|
}) => /* @__PURE__ */ Ve(qu, { error: n, sx: {
|
|
41375
|
-
width:
|
|
41376
|
+
width: R
|
|
41376
41377
|
}, fullWidth: r, children: [
|
|
41377
|
-
/* @__PURE__ */ P(Ab, { disablePortal: !0, autoComplete: !0, autoSelect: !0, freeSolo: !0, id: c, autoHighlight: t, openOnFocus:
|
|
41378
|
-
...
|
|
41378
|
+
/* @__PURE__ */ P(Ab, { disablePortal: !0, autoComplete: !0, autoSelect: !0, freeSolo: !0, id: c, autoHighlight: t, openOnFocus: S, loadingText: v, clearIcon: /* @__PURE__ */ P(jw, { size: "sm" }), className: "error", size: "small", loading: m, options: T, inputValue: d, getOptionLabel: s, getOptionKey: o, onInputChange: C, onChange: b, isOptionEqualToValue: f, renderInput: (I) => /* @__PURE__ */ P(od, { ...I, autoFocus: e, variant: "outlined", label: p, placeholder: w, name: y, InputProps: {
|
|
41379
|
+
...I.InputProps,
|
|
41379
41380
|
startAdornment: /* @__PURE__ */ P(q0, { size: "sm", className: "pl-2" }),
|
|
41380
41381
|
endAdornment: /* @__PURE__ */ Ve(Mo, { children: [
|
|
41381
41382
|
m ? /* @__PURE__ */ P(C3, { color: "inherit", size: 14 }) : null,
|
|
41382
|
-
|
|
41383
|
+
I.InputProps.endAdornment
|
|
41383
41384
|
] })
|
|
41384
41385
|
} }), slotProps: {
|
|
41385
41386
|
popper: {
|
package/dist/ds.umd.cjs
CHANGED
|
@@ -926,7 +926,7 @@ __p += '`),Dt&&(Se+=`' +
|
|
|
926
926
|
function print() { __p += __j.call(arguments, '') }
|
|
927
927
|
`:`;
|
|
928
928
|
`)+Se+`return __p
|
|
929
|
-
}`;var Rt=OS(function(){return Ht(k,rt+"return "+Se).apply(n,Z)});if(Rt.source=Se,ov(Rt))throw Rt;return Rt}function l$(a){return tn(a).toLowerCase()}function c$(a){return tn(a).toUpperCase()}function u$(a,u,h){if(a=tn(a),a&&(h||u===n))return B5(a);if(!a||!(u=Jr(u)))return a;var x=Fo(a),R=Fo(u),k=F5(x,R),Z=W5(x,R)+1;return Ss(x,k,Z).join("")}function d$(a,u,h){if(a=tn(a),a&&(h||u===n))return a.slice(0,G5(a)+1);if(!a||!(u=Jr(u)))return a;var x=Fo(a),R=W5(x,Fo(u))+1;return Ss(x,0,R).join("")}function f$(a,u,h){if(a=tn(a),a&&(h||u===n))return a.replace(Mn,"");if(!a||!(u=Jr(u)))return a;var x=Fo(a),R=F5(x,Fo(u));return Ss(x,R).join("")}function p$(a,u){var h=j,x=X;if(In(u)){var R="separator"in u?u.separator:R;h="length"in u?St(u.length):h,x="omission"in u?Jr(u.omission):x}a=tn(a);var k=a.length;if(Ul(a)){var Z=Fo(a);k=Z.length}if(h>=k)return a;var K=h-Yl(x);if(K<1)return x;var te=Z?Ss(Z,0,K).join(""):a.slice(0,K);if(R===n)return te+x;if(Z&&(K+=te.length-K),iv(R)){if(a.slice(K).search(R)){var be,ve=te;for(R.global||(R=Cb(R.source,tn(ne.exec(R))+"g")),R.lastIndex=0;be=R.exec(ve);)var Se=be.index;te=te.slice(0,Se===n?K:Se)}}else if(a.indexOf(Jr(R),K)!=K){var ze=te.lastIndexOf(R);ze>-1&&(te=te.slice(0,ze))}return te+x}function h$(a){return a=tn(a),a&&dn.test(a)?a.replace(zt,ZY):a}var g$=ec(function(a,u,h){return a+(h?" ":"")+u.toUpperCase()}),lv=R3("toUpperCase");function ES(a,u,h){return a=tn(a),u=h?n:u,u===n?FY(a)?UY(a):RY(a):a.match(u)||[]}var OS=Pt(function(a,u){try{return _r(a,n,u)}catch(h){return ov(h)?h:new mt(h)}}),m$=Fi(function(a,u){return go(u,function(h){h=mi(h),Vi(a,h,nv(a[h],a))}),a});function b$(a){var u=a==null?0:a.length,h=lt();return a=u?vn(a,function(x){if(typeof x[1]!="function")throw new mo(l);return[h(x[0]),x[1]]}):[],Pt(function(x){for(var R=-1;++R<u;){var k=a[R];if(_r(k[0],this,x))return _r(k[1],this,x)}})}function v$(a){return Z_(vo(a,g))}function cv(a){return function(){return a}}function y$(a,u){return a==null||a!==a?u:a}var x$=N3(),C$=N3(!0);function kr(a){return a}function uv(a){return a3(typeof a=="function"?a:vo(a,g))}function I$(a){return c3(vo(a,g))}function w$(a,u){return u3(a,vo(u,g))}var A$=Pt(function(a,u){return function(h){return ed(h,a,u)}}),S$=Pt(function(a,u){return function(h){return ed(a,h,u)}});function dv(a,u,h){var x=Hn(u),R=nh(u,x);h==null&&!(In(u)&&(R.length||!x.length))&&(h=u,u=a,a=this,R=nh(u,Hn(u)));var k=!(In(h)&&"chain"in h)||!!h.chain,Z=zi(a);return go(R,function(K){var te=u[K];a[K]=te,Z&&(a.prototype[K]=function(){var be=this.__chain__;if(k||be){var ve=a(this.__wrapped__),Se=ve.__actions__=Rr(this.__actions__);return Se.push({func:te,args:arguments,thisArg:a}),ve.__chain__=be,ve}return te.apply(a,ys([this.value()],arguments))})}),a}function T$(){return qn._===this&&(qn._=QY),this}function fv(){}function E$(a){return a=St(a),Pt(function(u){return d3(u,a)})}var O$=Zb(vn),R$=Zb(k5),P$=Zb(hb);function RS(a){return Jb(a)?gb(mi(a)):sq(a)}function N$(a){return function(u){return a==null?n:va(a,u)}}var k$=M3(),M$=M3(!0);function pv(){return[]}function hv(){return!1}function L$(){return{}}function D$(){return""}function V$(){return!0}function B$(a,u){if(a=St(a),a<1||a>_)return[];var h=re,x=or(a,re);u=lt(u),a-=re;for(var R=vb(x,u);++h<a;)u(h);return R}function F$(a){return vt(a)?vn(a,mi):Kr(a)?[a]:Rr(q3(tn(a)))}function W$(a){var u=++JY;return tn(a)+u}var z$=lh(function(a,u){return a+u},0),G$=Xb("ceil"),j$=lh(function(a,u){return a/u},1),Z$=Xb("floor");function X$(a){return a&&a.length?th(a,kr,Rb):n}function H$(a,u){return a&&a.length?th(a,lt(u,2),Rb):n}function U$(a){return D5(a,kr)}function Y$(a,u){return D5(a,lt(u,2))}function _$(a){return a&&a.length?th(a,kr,Mb):n}function q$(a,u){return a&&a.length?th(a,lt(u,2),Mb):n}var J$=lh(function(a,u){return a*u},1),K$=Xb("round"),Q$=lh(function(a,u){return a-u},0);function $$(a){return a&&a.length?bb(a,kr):0}function eee(a,u){return a&&a.length?bb(a,lt(u,2)):0}return N.after=IK,N.ary=sS,N.assign=cQ,N.assignIn=xS,N.assignInWith=Ch,N.assignWith=uQ,N.at=dQ,N.before=aS,N.bind=nv,N.bindAll=m$,N.bindKey=lS,N.castArray=LK,N.chain=rS,N.chunk=Zq,N.compact=Xq,N.concat=Hq,N.cond=b$,N.conforms=v$,N.constant=cv,N.countBy=$J,N.create=fQ,N.curry=cS,N.curryRight=uS,N.debounce=dS,N.defaults=pQ,N.defaultsDeep=hQ,N.defer=wK,N.delay=AK,N.difference=Uq,N.differenceBy=Yq,N.differenceWith=_q,N.drop=qq,N.dropRight=Jq,N.dropRightWhile=Kq,N.dropWhile=Qq,N.fill=$q,N.filter=tK,N.flatMap=oK,N.flatMapDeep=iK,N.flatMapDepth=sK,N.flatten=$3,N.flattenDeep=eJ,N.flattenDepth=tJ,N.flip=SK,N.flow=x$,N.flowRight=C$,N.fromPairs=nJ,N.functions=CQ,N.functionsIn=IQ,N.groupBy=aK,N.initial=oJ,N.intersection=iJ,N.intersectionBy=sJ,N.intersectionWith=aJ,N.invert=AQ,N.invertBy=SQ,N.invokeMap=cK,N.iteratee=uv,N.keyBy=uK,N.keys=Hn,N.keysIn=Nr,N.map=gh,N.mapKeys=EQ,N.mapValues=OQ,N.matches=I$,N.matchesProperty=w$,N.memoize=bh,N.merge=RQ,N.mergeWith=CS,N.method=A$,N.methodOf=S$,N.mixin=dv,N.negate=vh,N.nthArg=E$,N.omit=PQ,N.omitBy=NQ,N.once=TK,N.orderBy=dK,N.over=O$,N.overArgs=EK,N.overEvery=R$,N.overSome=P$,N.partial=rv,N.partialRight=fS,N.partition=fK,N.pick=kQ,N.pickBy=IS,N.property=RS,N.propertyOf=N$,N.pull=dJ,N.pullAll=tS,N.pullAllBy=fJ,N.pullAllWith=pJ,N.pullAt=hJ,N.range=k$,N.rangeRight=M$,N.rearg=OK,N.reject=gK,N.remove=gJ,N.rest=RK,N.reverse=ev,N.sampleSize=bK,N.set=LQ,N.setWith=DQ,N.shuffle=vK,N.slice=mJ,N.sortBy=CK,N.sortedUniq=wJ,N.sortedUniqBy=AJ,N.split=o$,N.spread=PK,N.tail=SJ,N.take=TJ,N.takeRight=EJ,N.takeRightWhile=OJ,N.takeWhile=RJ,N.tap=XJ,N.throttle=NK,N.thru=hh,N.toArray=bS,N.toPairs=wS,N.toPairsIn=AS,N.toPath=F$,N.toPlainObject=yS,N.transform=VQ,N.unary=kK,N.union=PJ,N.unionBy=NJ,N.unionWith=kJ,N.uniq=MJ,N.uniqBy=LJ,N.uniqWith=DJ,N.unset=BQ,N.unzip=tv,N.unzipWith=nS,N.update=FQ,N.updateWith=WQ,N.values=rc,N.valuesIn=zQ,N.without=VJ,N.words=ES,N.wrap=MK,N.xor=BJ,N.xorBy=FJ,N.xorWith=WJ,N.zip=zJ,N.zipObject=GJ,N.zipObjectDeep=jJ,N.zipWith=ZJ,N.entries=wS,N.entriesIn=AS,N.extend=xS,N.extendWith=Ch,dv(N,N),N.add=z$,N.attempt=OS,N.camelCase=XQ,N.capitalize=SS,N.ceil=G$,N.clamp=GQ,N.clone=DK,N.cloneDeep=BK,N.cloneDeepWith=FK,N.cloneWith=VK,N.conformsTo=WK,N.deburr=TS,N.defaultTo=y$,N.divide=j$,N.endsWith=HQ,N.eq=zo,N.escape=UQ,N.escapeRegExp=YQ,N.every=eK,N.find=nK,N.findIndex=K3,N.findKey=gQ,N.findLast=rK,N.findLastIndex=Q3,N.findLastKey=mQ,N.floor=Z$,N.forEach=oS,N.forEachRight=iS,N.forIn=bQ,N.forInRight=vQ,N.forOwn=yQ,N.forOwnRight=xQ,N.get=sv,N.gt=zK,N.gte=GK,N.has=wQ,N.hasIn=av,N.head=eS,N.identity=kr,N.includes=lK,N.indexOf=rJ,N.inRange=jQ,N.invoke=TQ,N.isArguments=Ca,N.isArray=vt,N.isArrayBuffer=jK,N.isArrayLike=Pr,N.isArrayLikeObject=Ln,N.isBoolean=ZK,N.isBuffer=Ts,N.isDate=XK,N.isElement=HK,N.isEmpty=UK,N.isEqual=YK,N.isEqualWith=_K,N.isError=ov,N.isFinite=qK,N.isFunction=zi,N.isInteger=pS,N.isLength=yh,N.isMap=hS,N.isMatch=JK,N.isMatchWith=KK,N.isNaN=QK,N.isNative=$K,N.isNil=tQ,N.isNull=eQ,N.isNumber=gS,N.isObject=In,N.isObjectLike=Rn,N.isPlainObject=sd,N.isRegExp=iv,N.isSafeInteger=nQ,N.isSet=mS,N.isString=xh,N.isSymbol=Kr,N.isTypedArray=nc,N.isUndefined=rQ,N.isWeakMap=oQ,N.isWeakSet=iQ,N.join=lJ,N.kebabCase=_Q,N.last=xo,N.lastIndexOf=cJ,N.lowerCase=qQ,N.lowerFirst=JQ,N.lt=sQ,N.lte=aQ,N.max=X$,N.maxBy=H$,N.mean=U$,N.meanBy=Y$,N.min=_$,N.minBy=q$,N.stubArray=pv,N.stubFalse=hv,N.stubObject=L$,N.stubString=D$,N.stubTrue=V$,N.multiply=J$,N.nth=uJ,N.noConflict=T$,N.noop=fv,N.now=mh,N.pad=KQ,N.padEnd=QQ,N.padStart=$Q,N.parseInt=e$,N.random=ZQ,N.reduce=pK,N.reduceRight=hK,N.repeat=t$,N.replace=n$,N.result=MQ,N.round=K$,N.runInContext=ee,N.sample=mK,N.size=yK,N.snakeCase=r$,N.some=xK,N.sortedIndex=bJ,N.sortedIndexBy=vJ,N.sortedIndexOf=yJ,N.sortedLastIndex=xJ,N.sortedLastIndexBy=CJ,N.sortedLastIndexOf=IJ,N.startCase=i$,N.startsWith=s$,N.subtract=Q$,N.sum=$$,N.sumBy=eee,N.template=a$,N.times=B$,N.toFinite=Gi,N.toInteger=St,N.toLength=vS,N.toLower=l$,N.toNumber=Co,N.toSafeInteger=lQ,N.toString=tn,N.toUpper=c$,N.trim=u$,N.trimEnd=d$,N.trimStart=f$,N.truncate=p$,N.unescape=h$,N.uniqueId=W$,N.upperCase=g$,N.upperFirst=lv,N.each=oS,N.eachRight=iS,N.first=eS,dv(N,function(){var a={};return hi(N,function(u,h){rn.call(N.prototype,h)||(a[h]=u)}),a}(),{chain:!1}),N.VERSION=r,go(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){N[a].placeholder=N}),go(["drop","take"],function(a,u){Mt.prototype[a]=function(h){h=h===n?1:jn(St(h),0);var x=this.__filtered__&&!u?new Mt(this):this.clone();return x.__filtered__?x.__takeCount__=or(h,x.__takeCount__):x.__views__.push({size:or(h,re),type:a+(x.__dir__<0?"Right":"")}),x},Mt.prototype[a+"Right"]=function(h){return this.reverse()[a](h).reverse()}}),go(["filter","map","takeWhile"],function(a,u){var h=u+1,x=h==Y||h==J;Mt.prototype[a]=function(R){var k=this.clone();return k.__iteratees__.push({iteratee:lt(R,3),type:h}),k.__filtered__=k.__filtered__||x,k}}),go(["head","last"],function(a,u){var h="take"+(u?"Right":"");Mt.prototype[a]=function(){return this[h](1).value()[0]}}),go(["initial","tail"],function(a,u){var h="drop"+(u?"":"Right");Mt.prototype[a]=function(){return this.__filtered__?new Mt(this):this[h](1)}}),Mt.prototype.compact=function(){return this.filter(kr)},Mt.prototype.find=function(a){return this.filter(a).head()},Mt.prototype.findLast=function(a){return this.reverse().find(a)},Mt.prototype.invokeMap=Pt(function(a,u){return typeof a=="function"?new Mt(this):this.map(function(h){return ed(h,a,u)})}),Mt.prototype.reject=function(a){return this.filter(vh(lt(a)))},Mt.prototype.slice=function(a,u){a=St(a);var h=this;return h.__filtered__&&(a>0||u<0)?new Mt(h):(a<0?h=h.takeRight(-a):a&&(h=h.drop(a)),u!==n&&(u=St(u),h=u<0?h.dropRight(-u):h.take(u-a)),h)},Mt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Mt.prototype.toArray=function(){return this.take(re)},hi(Mt.prototype,function(a,u){var h=/^(?:filter|find|map|reject)|While$/.test(u),x=/^(?:head|last)$/.test(u),R=N[x?"take"+(u=="last"?"Right":""):u],k=x||/^find/.test(u);R&&(N.prototype[u]=function(){var Z=this.__wrapped__,K=x?[1]:arguments,te=Z instanceof Mt,be=K[0],ve=te||vt(Z),Se=function(kt){var Dt=R.apply(N,ys([kt],K));return x&&ze?Dt[0]:Dt};ve&&h&&typeof be=="function"&&be.length!=1&&(te=ve=!1);var ze=this.__chain__,rt=!!this.__actions__.length,ct=k&&!ze,Rt=te&&!rt;if(!k&&ve){Z=Rt?Z:new Mt(this);var ut=a.apply(Z,K);return ut.__actions__.push({func:hh,args:[Se],thisArg:n}),new bo(ut,ze)}return ct&&Rt?a.apply(this,K):(ut=this.thru(Se),ct?x?ut.value()[0]:ut.value():ut)})}),go(["pop","push","shift","sort","splice","unshift"],function(a){var u=zp[a],h=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",x=/^(?:pop|shift)$/.test(a);N.prototype[a]=function(){var R=arguments;if(x&&!this.__chain__){var k=this.value();return u.apply(vt(k)?k:[],R)}return this[h](function(Z){return u.apply(vt(Z)?Z:[],R)})}}),hi(Mt.prototype,function(a,u){var h=N[u];if(h){var x=h.name+"";rn.call(Kl,x)||(Kl[x]=[]),Kl[x].push({name:u,func:h})}}),Kl[ah(n,S).name]=[{name:"wrapper",func:n}],Mt.prototype.clone=h_,Mt.prototype.reverse=g_,Mt.prototype.value=m_,N.prototype.at=HJ,N.prototype.chain=UJ,N.prototype.commit=YJ,N.prototype.next=_J,N.prototype.plant=JJ,N.prototype.reverse=KJ,N.prototype.toJSON=N.prototype.valueOf=N.prototype.value=QJ,N.prototype.first=N.prototype.head,Yu&&(N.prototype[Yu]=qJ),N},_l=YY();pa?((pa.exports=_l)._=_l,ub._=_l):qn._=_l}).call(oc)}($f,$f.exports);var rw=$f.exports;const zF={"http://telicent.io/ontology/":"telicent:"},ow=e=>e&&e.startsWith("http")&&e.includes("#"),iw=e=>{if(ow(e)){const n=e.split("#");return n.length>1?n[1]:e}const t=Object.keys(zF).find(n=>e.startsWith(n));return t?e.replace(t,""):e},GF=e=>{if(e){const t=/(\b[a-zA-Z0-9])?/g,n=e.match(t);if(n)return n.join("").slice(0,3)}return console.warn(`Telicent DS (getInitials): Unable to get initials from "${e}"`),""},sw=e=>{if(ow(e)){const t=e.split("#");if(t.length===2)return GF(rw.startCase(t[1]))}return e??""},jF=e=>Object.entries(e).map(([t,n])=>({classUri:t,backgroundColor:n.defaultStyles.dark.backgroundColor,color:n.defaultStyles.dark.color,iconFallbackText:sw(t),alt:iw(t),shape:n.defaultStyles.shape,faUnicode:n.defaultIcons.faUnicode,faIcon:n.defaultIcons.faIcon})),aw=ke.createContext(null),ZF=({service:e,children:t})=>{const r=nw({queryKey:["ontology-styles"],queryFn:()=>e.getStyles([]),refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!1,staleTime:864e5,enabled:!!e,select:jF}),{isLoading:o,data:s=[]}=r,l=c=>{const d=s.find(g=>g.classUri===c);if(d)return d;const f=iw(c),p=sw(c);return{classUri:c,color:"#DDDDDD",backgroundColor:"#121212",iconFallbackText:p,alt:f}};return P(aw.Provider,{value:{isLoadingStyles:o,styles:s,findIcon:l},children:t})},lw=()=>{const e=ke.useContext(aw);if(!e)throw new Error("useOntologyService has to be used within <OntologyStylesProvider />");return e},XF=new CF({defaultOptions:{queries:{staleTime:60*5e3,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!1}}}),HF=({ontologyService:e,children:t})=>e?P(TF,{client:XF,children:P(ZF,{service:e,children:t})}):t,UF=({appName:e,beta:t,apps:n,userProfile:r,className:o,children:s,...l})=>Fe(BI,{children:[P(qB,{appName:e,beta:t,apps:n,userProfile:r}),P("main",{className:Qn("relative layout-content w-full p-2",o),...l,children:s})]}),YF=({children:e})=>P(BI,{children:e}),_F=({dependencies:e,className:t})=>{const n=Object.entries(e);return n.length===0?P("p",{className:"dark:text-whiteSmoke",children:"Dependencies not found"}):Fe("table",{className:Qn("table-auto w-full md:w-1/2 dark:text-whiteSmoke border-collapse border border-whiteSmoke-700 rounded-md",t),children:[P("thead",{className:"bg-black-100 sticky top-0",children:Fe("tr",{className:"text-left border-b border-b-whiteSmoke-700",children:[P("th",{className:"py-2 px-1",children:"Dependency"}),P("th",{className:"py-2 px-1",children:"Version"})]})}),P("tbody",{children:n.map(r=>P("tr",{className:"border-b border-b-whiteSmoke-700 hover:bg-black-300",children:r.map(o=>P("td",{className:"py-2 px-1",children:o.replace("^","")},o))},r[0]))})]})},x0=({label:e,variant:t="primary",className:n,...r})=>{const o=t==="primary",s=t==="tertiary";return P(If,{label:e,variant:o||s?"filled":"outlined",className:Qn({"teli-chip--primary":o,"teli-chip--secondary":t==="secondary","teli-chip--tertiary":s},n),deleteIcon:P(L1,{"aria-label":`Delete ${e}`}),...r})},C0=e=>P(Em,{...e});function cw({error:e,fullWidth:t,helperText:n,label:r,loading:o,maxHeight:s,mode:l,placeholder:c,startAdornment:d,width:f,getChipIcon:p=v=>v==null?void 0:v.icon,getOptionLabel:g=v=>(v==null?void 0:v.label)??v,...m}){const v=y=>{if(l==="search"){if(y==="base")return{openOnFocus:!0,autoComplete:!0,autoHighlight:!0};if(y==="InputProps")return{InputProps:{type:"search",startAdornment:P(Fd,{size:"sm"})}}}};return Fe(su,{error:e,sx:{width:f},fullWidth:t,children:[P(Cm,{disablePortal:!0,clearIcon:P(Ng,{}),popupIcon:P(yr,{icon:P1}),size:"small",className:"error",loading:o,renderInput:y=>{var b,C,S;return P(wu,{...y,variant:"outlined",label:r,placeholder:c,error:e,InputProps:{...y.InputProps,...(b=v("InputProps"))==null?void 0:b.InputProps,startAdornment:Fe(Io,{children:[d??((S=(C=v("InputProps"))==null?void 0:C.InputProps)==null?void 0:S.startAdornment),y.InputProps.startAdornment]}),endAdornment:Fe(Io,{children:[o?P(C0,{color:"inherit",size:14}):null,y.InputProps.endAdornment]})}})},renderTags:(y,b)=>y.map((C,S)=>P(x0,{variant:"tertiary",size:"small",icon:p(C),label:g(C),...b({index:S})})),slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,8]}}]}},ListboxProps:{sx:{maxHeight:s}},...v("base"),...m}),n?P(dl,{children:n}):null]})}const uw=ke.forwardRef(({variant:e,linePosition:t="left",color:n,startIcon:r,endIcon:o,size:s="medium",disabled:l=!1,className:c,children:d,...f},p)=>{const g=e==="primary",m=e==="secondary",v=t==="left",y=t==="right",b=t==="center";return e==="link"?Fe("div",{className:Qn("teli-button__link",{"teli-button__link-disabled":l}),children:[Fe(Cr,{ref:p,className:Qn("teli-button",{"teli-button__link--left":v,"teli-button__link--right":y},c),disabled:l,...f,children:[r,d,o]}),P("div",{className:Qn("teli-button__link-line",{"teli-button__link--line-right":y,"teli-button__link--line-center":b})})]}):Fe(Cr,{ref:p,className:Qn("teli-button",{"teli-button--small":s==="small","teli-button--medium":s==="medium","teli-button--large":s==="large","teli-button__primary":g,"teli-button__secondary":m,"teli-button__tertiary":e==="tertiary","teli-button__primary--danger":g&&n==="danger"},c),disabled:l,...f,children:[r,d,o]})}),yl=ke.forwardRef(({tooltip:e,tooltipPlacement:t="bottom",...n},r)=>e?P(_m,{arrow:!0,title:e,placement:t,PopperProps:{disablePortal:!0,modifiers:[{name:"offset",options:{offset:[0,-4]}}]},children:P(uw,{ref:r,...n})}):P(uw,{ref:r,...n})),qF={"masked-overflow":"_masked-overflow_jaxa9_1"},JF=({appName:e,appVersion:t,expiryDate:n,licenseCopy:r,onAcknowledge:o})=>{if(!e)throw new Error("Application name is not provided");if(!t)throw new Error("Application version is not provided");if(!r)throw new Error("Application license copy is not provided");const s=new Date,l=n?new Date(n):void 0,c=(l==null?void 0:l.toLocaleDateString("en-GB",{year:"numeric",month:"2-digit",day:"2-digit"}))||void 0,d=n&&l?s>=l:!1;return P("div",{className:"bg-gradient-to-b from-app-color to-app-color-800 p-2 max-w-4xl rounded",children:Fe("div",{className:"bg-black-100 dark:text-whiteSmoke p-5 flex flex-col gap-y-6 rounded",children:[Fe("div",{className:"flex flex-col gap-y-1",children:[P(Gh,{appName:e,className:"justify-center"}),Fe("p",{className:"text-sm text-center font-medium",children:["Version ",t]})]}),P("div",{id:"license-copy",className:Qn("flex flex-col gap-y-5 max-h-48 md:max-h-96 overflow-y-scroll",qF["masked-overflow"]),children:r}),Fe("div",{className:"flex flex-col gap-y-2 items-center",children:[d&&P("strong",{children:"License has expired!"}),!d&&c&&Fe("strong",{children:["Expires on ",c]}),P(yl,{variant:"primary",onClick:o,children:"Acknowledge"})]})]})})},dw=({autoFocus:e=!1,autoHighlight:t,error:n=!1,fullWidth:r=!1,getOptionKey:o,getOptionLabel:s,helperText:l,id:c,inputValue:d,isOptionEqualToValue:f,label:p,listboxMaxHeight:g,loading:m,loadingText:v,onChange:y,onInputChange:b,openOnFocus:C=!1,options:S=[],placeholder:T="Search ...",width:w})=>Fe(su,{error:n,sx:{width:w},fullWidth:r,children:[P(Cm,{disablePortal:!0,autoComplete:!0,autoSelect:!0,freeSolo:!0,id:c,autoHighlight:t,openOnFocus:C,loadingText:v,clearIcon:P(Ng,{size:"sm"}),className:"error",size:"small",loading:m,options:S,inputValue:d,getOptionLabel:s,getOptionKey:o,onInputChange:b,onChange:y,isOptionEqualToValue:f,renderInput:O=>P(wu,{...O,autoFocus:e,variant:"outlined",label:p,placeholder:T,InputProps:{...O.InputProps,startAdornment:P(Fd,{size:"sm",className:"pl-2"}),endAdornment:Fe(Io,{children:[m?P(C0,{color:"inherit",size:14}):null,O.InputProps.endAdornment]})}}),slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,8]}}]}},ListboxProps:{sx:{maxHeight:g}}}),l?P(dl,{children:l}):null]}),KF=({buttonId:e,listId:t,emptyMessage:n="Nothing found",menuItems:r=[],open:o,onKeyDown:s,onMenuItemClick:l,children:c})=>c||(r==null?void 0:r.length)>0?Fe(Io,{children:[c&&P("div",{className:"teli-menu-contents",children:c}),(r==null?void 0:r.length)>0&&P(Xm,{autoFocusItem:o,id:t,"aria-labelledby":e,onKeyDown:s,children:r.map(d=>Fe(vu,{onClick:l(d.onClick),children:[d==null?void 0:d.startIcon,d==null?void 0:d.label,d==null?void 0:d.endIcon]},d.id))})]}):P("p",{className:"teli-menu-contents teli-empty-menu-contents",children:n}),QF=({buttonId:e,label:t,listId:n,menuItems:r=[],defaultOpen:o=!1,disabled:s=!1,emptyMessage:l,open:c,tooltip:d,startIcon:f,endIcon:p,width:g,variant:m="tertiary",yPlacement:v="bottom",xPlacement:y=v,onOpen:b,onClose:C,children:S})=>{const{current:T}=ke.useRef(c!==void 0),[w,O]=ke.useState(!1),I=T?c:w,M=ke.useRef(null),L=ke.useRef(I),z=ke.useCallback(W=>{T||O(W)},[]),B=()=>{O(W=>!W)},j=W=>{M.current&&M.current.contains(W.target)||z(!1)},X=W=>Y=>{W&&W(),j(Y)},V=W=>{W.key==="Tab"?(W.preventDefault(),z(!1)):W.key==="Escape"&&z(!1)};return ke.useEffect(()=>{L.current=I},[I]),ke.useEffect(()=>{o&&z(!0)},[]),ke.useEffect(()=>{if(s&&I){O(!1);return}},[s]),Fe("div",{className:"teli-basic-menu",children:[P(yl,{ref:M,id:e,variant:m,tooltip:d,startIcon:f,endIcon:p,disabled:s,"aria-controls":I?"composition-menu":void 0,"aria-expanded":I?"true":void 0,"aria-haspopup":"true",onClick:b??B,className:Qn({"bg-teli-black-600":I}),children:t}),P(qs,{transition:!0,disablePortal:!0,open:I??o,anchorEl:M.current,placement:v,modifiers:[{name:"offset",options:{offset:[0,8]}}],sx:{width:g},children:({TransitionProps:W,placement:Y})=>P(pl,{...W,style:{transformOrigin:y??Y},children:P($o,{children:P(Nf,{onClickAway:C??j,children:P("div",{children:P(KF,{open:I??o,menuItems:r,emptyMessage:l,buttonId:e,listId:n,onKeyDown:V,onMenuItemClick:X,children:S})})})})})})]})},$F=({label:e,...t})=>e?P(Mm,{control:P(Tm,{...t}),label:e,className:"m-0"}):P(Tm,{...t}),eW=({id:e,selectId:t,label:n,options:r=[],value:o,defaultOpen:s,defaultValue:l,helperText:c,disabled:d=!1,error:f=!1,focused:p,fullWidth:g=!1,hiddenLabel:m=!1,multiple:v=!1,open:y,readOnly:b=!1,required:C=!1,renderValue:S,width:T,onChange:w,onClose:O,onOpen:I})=>{const M=()=>m?{displayEmpty:!0}:{labelId:e,label:n,displayEmpty:!1},L=()=>v?{multiple:!0,renderValue:z=>P(Ar,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:z.map(B=>P(x0,{label:B,variant:"tertiary"},B))})}:{};return Fe(su,{className:"teli-select",sx:{minWidth:88,width:T},size:"small",disabled:d,error:f,required:C,fullWidth:g,focused:p,hiddenLabel:m,children:[!m&&P(Wm,{id:e,children:n}),P(Wf,{...M(),...L(),id:t,value:o,onChange:w,size:"small",defaultOpen:s,defaultValue:l,open:y,onOpen:I,onClose:O,inputProps:{"aria-label":m?n:void 0,readOnly:b},MenuProps:{className:"teli-basic-menu",sx:{marginTop:"6px"}},renderValue:S,children:r.map(z=>P(vu,{value:(z==null?void 0:z.value)||z.label,children:z.label},(z==null?void 0:z.id)||z.label))}),c?P(dl,{children:c}):C?P(dl,{children:"Required *"}):null]})},tW=({label:e,labelPlacement:t="end",size:n="small",...r})=>e?P(Mm,{control:P(qm,{size:n,...r}),label:e,labelPlacement:t,className:"m-0 gap-x-1.5",componentsProps:{typography:{fontSize:14}}}):P(qm,{size:n,...r}),nW=({ariaLabel:e,endAdornment:t,readOnly:n,pointerEvents:r,startAdornment:o,...s})=>P(wu,{variant:"outlined",size:"small",maxRows:4,InputProps:{readOnly:n,startAdornment:P(Fm,{position:"start",children:o}),endAdornment:P(Fm,{position:"end",children:t})},InputLabelProps:{shrink:r},inputProps:{"aria-label":e},...s}),rW=({cursor:e,textAlign:t,...n})=>P(du,{disableUnderline:!0,inputProps:{sx:{cursor:e,textAlign:t}},...n}),oW=({position:e="bottom-start",defaultControls:t=!0,vertical:n,variant:r="tertiary",onZoomIn:o,onZoomOut:s,children:l})=>{const c=r==="tertiary",d=e.startsWith("bottom")&&!n?"top":e.startsWith("bottom")&&n?"left":"bottom",f=c?"basic":"tertiary",p=()=>Fe(Io,{children:[P(yl,{"aria-label":"zoom in",tooltip:"Zoom in",tooltipPlacement:d,variant:f,onClick:o,children:P(M1,{})}),P(yl,{"aria-label":"zoom out",tooltip:"Zoom out",tooltipPlacement:d,variant:f,onClick:s,children:P(yr,{icon:WO})})]});return Fe("ul",{className:Qn("toolbar",{"toolbar--vertical":n,"toolbar--tertiary":c,"toolbar--bottom-start":e==="bottom-start","toolbar--bottom-end":e==="bottom-end","toolbar--top-start":e==="top-start","toolbar--top-end":e==="top-end"}),children:[t&&P(p,{}),l]})},iW=e=>{const t={width:48,height:48};switch(e){case"xs":return{width:24,height:24,fontSize:8};case"sm":return{width:36,height:36,fontSize:10};case"lg":return{width:62,height:62,fontSize:22};default:return t}},sW=e=>e?{filter:"grayscale(0.7)",opacity:"80%"}:{},aW=({type:e="",borderColor:t,disabled:n=!1,size:r="base"})=>{const{findIcon:o}=lw(),s=o(e),l=!!(s!=null&&s.faIcon);return P(ul,{alt:s.alt,"aria-label":s.alt,sx:{borderWidth:2,bordericonProps:"solid",borderColor:t??s.color,color:s.color,backgroundColor:s.backgroundColor,...sW(n),...iW(r)},children:l?P("i",{className:s.faIcon,title:`${s.alt}-icon`}):P("p",{children:s.iconFallbackText})})},fw=(e,t=300)=>{const[n,r]=ke.useState(e);return ke.useEffect(()=>{const o=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(o)}},[e,t]),n},lW={headers:{"Content-Type":"application/json"}},cW=Xe.object({uri:Xe.string(),primaryName:Xe.string(),types:Xe.array(Xe.string()),literals:Xe.object({"telicent:primaryName":Xe.array(Xe.string())}),isState:Xe.boolean(),inLocation:Xe.string(),metadata:Xe.object({documentFormat:Xe.string(),generatedBy:Xe.string(),generatorVersion:Xe.string()})}),uW=Xe.object({id:Xe.string().url(),score:Xe.number(),document:cW}),dW=Xe.object({maybeMore:Xe.boolean(),limit:Xe.number(),offset:Xe.number(),query:Xe.string(),type:Xe.literal("phrase"),results:Xe.array(uW)}),fW=async(e,t,n)=>{const r=new URLSearchParams({[t]:n}).toString(),o=await fetch(`${e}/typeahead?${r}`,lW);if(!o.ok)throw new Error(`An error occured while retrieving search results for query ${n}`);const s=o.json();try{return dW.parse(s)}catch(l){return l instanceof vr?console.warn(l):console.error(l),s}},pW=(e,t,n,r)=>nw({queryKey:["typeahead"],queryFn:()=>fW(e,t,n),enabled:!!n,select:r,retry:1});function hW({errorMessage:e,helperText:t,queryParamKey:n,url:r,noOptionsText:o,onTransform:s,...l}){const[c,d]=ke.useState(""),f=fw(c),{isInitialLoading:p,isError:g,data:m,...v}=pW(r,n,f,s),y=v.error instanceof Error?v.error.message:void 0;return P(cw,{error:g,options:m??[],noOptionsText:c===""?"Start typing ...":o,loading:p,inputValue:c,onInputChange:(S,T)=>{d(T)},helperText:g?e??y:t,mode:"search",...l})}const gW=({alt:e,firstName:t="",lastName:n="",src:r})=>{const[o,s]=ke.useState("");let l=P(yr,{id:"user-avatar-icon",icon:kO,size:"sm"});return o&&(l=P(Io,{children:o})),r&&(l=null),ke.useEffect(()=>{const c=t.trim(),d=n.trim();if(c&&d){s(`${c.charAt(0)}${d.charAt(0)}`);return}},[t,n]),P(ul,{id:"user-avatar",src:r,alt:e,sx:{width:35,height:35},children:l})},mW=({open:e,onClick:t,...n})=>P(yl,{id:"user-profile-button","aria-controls":e?"user-profile-menu":void 0,"aria-haspopup":"true","aria-expanded":e?"true":void 0,"aria-label":"user-profile",onClick:t,children:P(gW,{...n})}),bW=({anchorEl:e,firstName:t,lastName:n,open:r,onClose:o,onSettingsClick:s})=>{const l=!!(t!=null&&t.trim())&&!!(n!=null&&n.trim());return Fe(Qm,{id:"user-profile-menu",anchorEl:e,open:r,onClose:o,MenuListProps:{"aria-labelledby":"user-avatar-button"},children:[l&&Fe("li",{role:"menuitem",children:[Fe("p",{className:"pb-2",children:[t," ",n]}),P(Lf,{})]}),P(fI,{onClick:d=>{o(),s&&s(d)},children:"Settings"})]})},vW=({firstName:e,lastName:t,onSettingsClick:n,...r})=>{const[o,s]=ke.useState(null),l=!!o,c=f=>{s(f.currentTarget)},d=()=>{s(null)};return Fe("div",{children:[P(mW,{firstName:e,lastName:t,open:l,onClick:c,...r}),P(bW,{anchorEl:o,firstName:e,lastName:t,open:l,onClose:d,onSettingsClick:n})]})};function yW(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xW(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}var CW={value:()=>{}};function pw(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new ep(n)}function ep(e){this._=e}function IW(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");if(o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}ep.prototype=pw.prototype={constructor:ep,on:function(e,t){var n=this._,r=IW(e+"",n),o,s=-1,l=r.length;if(arguments.length<2){for(;++s<l;)if((o=(e=r[s]).type)&&(o=wW(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++s<l;)if(o=(e=r[s]).type)n[o]=hw(n[o],e.name,t);else if(t==null)for(o in n)n[o]=hw(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ep(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),r=0,o,s;r<o;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(s=this._[e],r=0,o=s.length;r<o;++r)s[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,s=r.length;o<s;++o)r[o].value.apply(t,n)}};function wW(e,t){for(var n=0,r=e.length,o;n<r;++n)if((o=e[n]).name===t)return o.value}function hw(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=CW,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var I0="http://www.w3.org/1999/xhtml";const gw={svg:"http://www.w3.org/2000/svg",xhtml:I0,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function tp(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),gw.hasOwnProperty(t)?{space:gw[t],local:e}:e}function AW(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===I0&&t.documentElement.namespaceURI===I0?t.createElement(e):t.createElementNS(n,e)}}function SW(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function mw(e){var t=tp(e);return(t.local?SW:AW)(t)}function TW(){}function w0(e){return e==null?TW:function(){return this.querySelector(e)}}function EW(e){typeof e!="function"&&(e=w0(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var s=t[o],l=s.length,c=r[o]=new Array(l),d,f,p=0;p<l;++p)(d=s[p])&&(f=e.call(d,d.__data__,p,s))&&("__data__"in d&&(f.__data__=d.__data__),c[p]=f);return new jr(r,this._parents)}function OW(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function RW(){return[]}function bw(e){return e==null?RW:function(){return this.querySelectorAll(e)}}function PW(e){return function(){return OW(e.apply(this,arguments))}}function NW(e){typeof e=="function"?e=PW(e):e=bw(e);for(var t=this._groups,n=t.length,r=[],o=[],s=0;s<n;++s)for(var l=t[s],c=l.length,d,f=0;f<c;++f)(d=l[f])&&(r.push(e.call(d,d.__data__,f,l)),o.push(d));return new jr(r,o)}function vw(e){return function(){return this.matches(e)}}function yw(e){return function(t){return t.matches(e)}}var kW=Array.prototype.find;function MW(e){return function(){return kW.call(this.children,e)}}function LW(){return this.firstElementChild}function DW(e){return this.select(e==null?LW:MW(typeof e=="function"?e:yw(e)))}var VW=Array.prototype.filter;function BW(){return Array.from(this.children)}function FW(e){return function(){return VW.call(this.children,e)}}function WW(e){return this.selectAll(e==null?BW:FW(typeof e=="function"?e:yw(e)))}function zW(e){typeof e!="function"&&(e=vw(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var s=t[o],l=s.length,c=r[o]=[],d,f=0;f<l;++f)(d=s[f])&&e.call(d,d.__data__,f,s)&&c.push(d);return new jr(r,this._parents)}function xw(e){return new Array(e.length)}function GW(){return new jr(this._enter||this._groups.map(xw),this._parents)}function np(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}np.prototype={constructor:np,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function jW(e){return function(){return e}}function ZW(e,t,n,r,o,s){for(var l=0,c,d=t.length,f=s.length;l<f;++l)(c=t[l])?(c.__data__=s[l],r[l]=c):n[l]=new np(e,s[l]);for(;l<d;++l)(c=t[l])&&(o[l]=c)}function XW(e,t,n,r,o,s,l){var c,d,f=new Map,p=t.length,g=s.length,m=new Array(p),v;for(c=0;c<p;++c)(d=t[c])&&(m[c]=v=l.call(d,d.__data__,c,t)+"",f.has(v)?o[c]=d:f.set(v,d));for(c=0;c<g;++c)v=l.call(e,s[c],c,s)+"",(d=f.get(v))?(r[c]=d,d.__data__=s[c],f.delete(v)):n[c]=new np(e,s[c]);for(c=0;c<p;++c)(d=t[c])&&f.get(m[c])===d&&(o[c]=d)}function HW(e){return e.__data__}function UW(e,t){if(!arguments.length)return Array.from(this,HW);var n=t?XW:ZW,r=this._parents,o=this._groups;typeof e!="function"&&(e=jW(e));for(var s=o.length,l=new Array(s),c=new Array(s),d=new Array(s),f=0;f<s;++f){var p=r[f],g=o[f],m=g.length,v=YW(e.call(p,p&&p.__data__,f,r)),y=v.length,b=c[f]=new Array(y),C=l[f]=new Array(y),S=d[f]=new Array(m);n(p,g,b,C,S,v,t);for(var T=0,w=0,O,I;T<y;++T)if(O=b[T]){for(T>=w&&(w=T+1);!(I=C[w])&&++w<y;);O._next=I||null}}return l=new jr(l,r),l._enter=c,l._exit=d,l}function YW(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function _W(){return new jr(this._exit||this._groups.map(xw),this._parents)}function qW(e,t,n){var r=this.enter(),o=this,s=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?s.remove():n(s),r&&o?r.merge(o).order():o}function JW(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,s=r.length,l=Math.min(o,s),c=new Array(o),d=0;d<l;++d)for(var f=n[d],p=r[d],g=f.length,m=c[d]=new Array(g),v,y=0;y<g;++y)(v=f[y]||p[y])&&(m[y]=v);for(;d<o;++d)c[d]=n[d];return new jr(c,this._parents)}function KW(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],o=r.length-1,s=r[o],l;--o>=0;)(l=r[o])&&(s&&l.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(l,s),s=l);return this}function QW(e){e||(e=$W);function t(g,m){return g&&m?e(g.__data__,m.__data__):!g-!m}for(var n=this._groups,r=n.length,o=new Array(r),s=0;s<r;++s){for(var l=n[s],c=l.length,d=o[s]=new Array(c),f,p=0;p<c;++p)(f=l[p])&&(d[p]=f);d.sort(t)}return new jr(o,this._parents).order()}function $W(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ez(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function tz(){return Array.from(this)}function nz(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,s=r.length;o<s;++o){var l=r[o];if(l)return l}return null}function rz(){let e=0;for(const t of this)++e;return e}function oz(){return!this.node()}function iz(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],s=0,l=o.length,c;s<l;++s)(c=o[s])&&e.call(c,c.__data__,s,o);return this}function sz(e){return function(){this.removeAttribute(e)}}function az(e){return function(){this.removeAttributeNS(e.space,e.local)}}function lz(e,t){return function(){this.setAttribute(e,t)}}function cz(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function uz(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function dz(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function fz(e,t){var n=tp(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?az:sz:typeof t=="function"?n.local?dz:uz:n.local?cz:lz)(n,t))}function Cw(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function pz(e){return function(){this.style.removeProperty(e)}}function hz(e,t,n){return function(){this.style.setProperty(e,t,n)}}function gz(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function mz(e,t,n){return arguments.length>1?this.each((t==null?pz:typeof t=="function"?gz:hz)(e,t,n??"")):xl(this.node(),e)}function xl(e,t){return e.style.getPropertyValue(t)||Cw(e).getComputedStyle(e,null).getPropertyValue(t)}function bz(e){return function(){delete this[e]}}function vz(e,t){return function(){this[e]=t}}function yz(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function xz(e,t){return arguments.length>1?this.each((t==null?bz:typeof t=="function"?yz:vz)(e,t)):this.node()[e]}function Iw(e){return e.trim().split(/^|\s+/)}function A0(e){return e.classList||new ww(e)}function ww(e){this._node=e,this._names=Iw(e.getAttribute("class")||"")}ww.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Aw(e,t){for(var n=A0(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function Sw(e,t){for(var n=A0(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function Cz(e){return function(){Aw(this,e)}}function Iz(e){return function(){Sw(this,e)}}function wz(e,t){return function(){(t.apply(this,arguments)?Aw:Sw)(this,e)}}function Az(e,t){var n=Iw(e+"");if(arguments.length<2){for(var r=A0(this.node()),o=-1,s=n.length;++o<s;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?wz:t?Cz:Iz)(n,t))}function Sz(){this.textContent=""}function Tz(e){return function(){this.textContent=e}}function Ez(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Oz(e){return arguments.length?this.each(e==null?Sz:(typeof e=="function"?Ez:Tz)(e)):this.node().textContent}function Rz(){this.innerHTML=""}function Pz(e){return function(){this.innerHTML=e}}function Nz(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function kz(e){return arguments.length?this.each(e==null?Rz:(typeof e=="function"?Nz:Pz)(e)):this.node().innerHTML}function Mz(){this.nextSibling&&this.parentNode.appendChild(this)}function Lz(){return this.each(Mz)}function Dz(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Vz(){return this.each(Dz)}function Bz(e){var t=typeof e=="function"?e:mw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Fz(){return null}function Wz(e,t){var n=typeof e=="function"?e:mw(e),r=t==null?Fz:typeof t=="function"?t:w0(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function zz(){var e=this.parentNode;e&&e.removeChild(this)}function Gz(){return this.each(zz)}function jz(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Zz(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Xz(e){return this.select(e?Zz:jz)}function Hz(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Uz(e){return function(t){e.call(this,t,this.__data__)}}function Yz(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function _z(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,o=t.length,s;n<o;++n)s=t[n],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):t[++r]=s;++r?t.length=r:delete this.__on}}}function qz(e,t,n){return function(){var r=this.__on,o,s=Uz(t);if(r){for(var l=0,c=r.length;l<c;++l)if((o=r[l]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=s,o.options=n),o.value=t;return}}this.addEventListener(e.type,s,n),o={type:e.type,name:e.name,value:t,listener:s,options:n},r?r.push(o):this.__on=[o]}}function Jz(e,t,n){var r=Yz(e+""),o,s=r.length,l;if(arguments.length<2){var c=this.node().__on;if(c){for(var d=0,f=c.length,p;d<f;++d)for(o=0,p=c[d];o<s;++o)if((l=r[o]).type===p.type&&l.name===p.name)return p.value}return}for(c=t?qz:_z,o=0;o<s;++o)this.each(c(r[o],t,n));return this}function Tw(e,t,n){var r=Cw(e),o=r.CustomEvent;typeof o=="function"?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Kz(e,t){return function(){return Tw(this,e,t)}}function Qz(e,t){return function(){return Tw(this,e,t.apply(this,arguments))}}function $z(e,t){return this.each((typeof t=="function"?Qz:Kz)(e,t))}function*eG(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,s=r.length,l;o<s;++o)(l=r[o])&&(yield l)}var Ew=[null];function jr(e,t){this._groups=e,this._parents=t}function Eu(){return new jr([[document.documentElement]],Ew)}function tG(){return this}jr.prototype=Eu.prototype={constructor:jr,select:EW,selectAll:NW,selectChild:DW,selectChildren:WW,filter:zW,data:UW,enter:GW,exit:_W,join:qW,merge:JW,selection:tG,order:KW,sort:QW,call:ez,nodes:tz,node:nz,size:rz,empty:oz,each:iz,attr:fz,style:mz,property:xz,classed:Az,text:Oz,html:kz,raise:Lz,lower:Vz,append:Bz,insert:Wz,remove:Gz,clone:Xz,datum:Hz,on:Jz,dispatch:$z,[Symbol.iterator]:eG};function S0(e){return typeof e=="string"?new jr([[document.querySelector(e)]],[document.documentElement]):new jr([[e]],Ew)}function T0(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ow(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ou(){}var Ru=.7,rp=1/Ru,Cl="\\s*([+-]?\\d+)\\s*",Pu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ri="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",nG=/^#([0-9a-f]{3,8})$/,rG=new RegExp(`^rgb\\(${Cl},${Cl},${Cl}\\)$`),oG=new RegExp(`^rgb\\(${ri},${ri},${ri}\\)$`),iG=new RegExp(`^rgba\\(${Cl},${Cl},${Cl},${Pu}\\)$`),sG=new RegExp(`^rgba\\(${ri},${ri},${ri},${Pu}\\)$`),aG=new RegExp(`^hsl\\(${Pu},${ri},${ri}\\)$`),lG=new RegExp(`^hsla\\(${Pu},${ri},${ri},${Pu}\\)$`),Rw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};T0(Ou,Nu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Pw,formatHex:Pw,formatHex8:cG,formatHsl:uG,formatRgb:Nw,toString:Nw});function Pw(){return this.rgb().formatHex()}function cG(){return this.rgb().formatHex8()}function uG(){return Vw(this).formatHsl()}function Nw(){return this.rgb().formatRgb()}function Nu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=nG.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?kw(t):n===3?new Sr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?op(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?op(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=rG.exec(e))?new Sr(t[1],t[2],t[3],1):(t=oG.exec(e))?new Sr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=iG.exec(e))?op(t[1],t[2],t[3],t[4]):(t=sG.exec(e))?op(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=aG.exec(e))?Dw(t[1],t[2]/100,t[3]/100,1):(t=lG.exec(e))?Dw(t[1],t[2]/100,t[3]/100,t[4]):Rw.hasOwnProperty(e)?kw(Rw[e]):e==="transparent"?new Sr(NaN,NaN,NaN,0):null}function kw(e){return new Sr(e>>16&255,e>>8&255,e&255,1)}function op(e,t,n,r){return r<=0&&(e=t=n=NaN),new Sr(e,t,n,r)}function dG(e){return e instanceof Ou||(e=Nu(e)),e?(e=e.rgb(),new Sr(e.r,e.g,e.b,e.opacity)):new Sr}function E0(e,t,n,r){return arguments.length===1?dG(e):new Sr(e,t,n,r??1)}function Sr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}T0(Sr,E0,Ow(Ou,{brighter(e){return e=e==null?rp:Math.pow(rp,e),new Sr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ru:Math.pow(Ru,e),new Sr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Sr($s(this.r),$s(this.g),$s(this.b),ip(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Mw,formatHex:Mw,formatHex8:fG,formatRgb:Lw,toString:Lw}));function Mw(){return`#${ea(this.r)}${ea(this.g)}${ea(this.b)}`}function fG(){return`#${ea(this.r)}${ea(this.g)}${ea(this.b)}${ea((isNaN(this.opacity)?1:this.opacity)*255)}`}function Lw(){const e=ip(this.opacity);return`${e===1?"rgb(":"rgba("}${$s(this.r)}, ${$s(this.g)}, ${$s(this.b)}${e===1?")":`, ${e})`}`}function ip(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function $s(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ea(e){return e=$s(e),(e<16?"0":"")+e.toString(16)}function Dw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ko(e,t,n,r)}function Vw(e){if(e instanceof ko)return new ko(e.h,e.s,e.l,e.opacity);if(e instanceof Ou||(e=Nu(e)),!e)return new ko;if(e instanceof ko)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),s=Math.max(t,n,r),l=NaN,c=s-o,d=(s+o)/2;return c?(t===s?l=(n-r)/c+(n<r)*6:n===s?l=(r-t)/c+2:l=(t-n)/c+4,c/=d<.5?s+o:2-s-o,l*=60):c=d>0&&d<1?0:l,new ko(l,c,d,e.opacity)}function pG(e,t,n,r){return arguments.length===1?Vw(e):new ko(e,t,n,r??1)}function ko(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}T0(ko,pG,Ow(Ou,{brighter(e){return e=e==null?rp:Math.pow(rp,e),new ko(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ru:Math.pow(Ru,e),new ko(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Sr(O0(e>=240?e-240:e+120,o,r),O0(e,o,r),O0(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ko(Bw(this.h),sp(this.s),sp(this.l),ip(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ip(this.opacity);return`${e===1?"hsl(":"hsla("}${Bw(this.h)}, ${sp(this.s)*100}%, ${sp(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Bw(e){return e=(e||0)%360,e<0?e+360:e}function sp(e){return Math.max(0,Math.min(1,e||0))}function O0(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Fw=e=>()=>e;function hG(e,t){return function(n){return e+n*t}}function gG(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function mG(e){return(e=+e)==1?Ww:function(t,n){return n-t?gG(t,n,e):Fw(isNaN(t)?n:t)}}function Ww(e,t){var n=t-e;return n?hG(e,n):Fw(isNaN(e)?t:e)}const zw=function e(t){var n=mG(t);function r(o,s){var l=n((o=E0(o)).r,(s=E0(s)).r),c=n(o.g,s.g),d=n(o.b,s.b),f=Ww(o.opacity,s.opacity);return function(p){return o.r=l(p),o.g=c(p),o.b=d(p),o.opacity=f(p),o+""}}return r.gamma=e,r}(1);function as(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var R0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,P0=new RegExp(R0.source,"g");function bG(e){return function(){return e}}function vG(e){return function(t){return e(t)+""}}function yG(e,t){var n=R0.lastIndex=P0.lastIndex=0,r,o,s,l=-1,c=[],d=[];for(e=e+"",t=t+"";(r=R0.exec(e))&&(o=P0.exec(t));)(s=o.index)>n&&(s=t.slice(n,s),c[l]?c[l]+=s:c[++l]=s),(r=r[0])===(o=o[0])?c[l]?c[l]+=o:c[++l]=o:(c[++l]=null,d.push({i:l,x:as(r,o)})),n=P0.lastIndex;return n<t.length&&(s=t.slice(n),c[l]?c[l]+=s:c[++l]=s),c.length<2?d[0]?vG(d[0].x):bG(t):(t=d.length,function(f){for(var p=0,g;p<t;++p)c[(g=d[p]).i]=g.x(f);return c.join("")})}var Gw=180/Math.PI,N0={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function jw(e,t,n,r,o,s){var l,c,d;return(l=Math.sqrt(e*e+t*t))&&(e/=l,t/=l),(d=e*n+t*r)&&(n-=e*d,r-=t*d),(c=Math.sqrt(n*n+r*r))&&(n/=c,r/=c,d/=c),e*r<t*n&&(e=-e,t=-t,d=-d,l=-l),{translateX:o,translateY:s,rotate:Math.atan2(t,e)*Gw,skewX:Math.atan(d)*Gw,scaleX:l,scaleY:c}}var ap;function xG(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?N0:jw(t.a,t.b,t.c,t.d,t.e,t.f)}function CG(e){return e==null||(ap||(ap=document.createElementNS("http://www.w3.org/2000/svg","g")),ap.setAttribute("transform",e),!(e=ap.transform.baseVal.consolidate()))?N0:(e=e.matrix,jw(e.a,e.b,e.c,e.d,e.e,e.f))}function Zw(e,t,n,r){function o(f){return f.length?f.pop()+" ":""}function s(f,p,g,m,v,y){if(f!==g||p!==m){var b=v.push("translate(",null,t,null,n);y.push({i:b-4,x:as(f,g)},{i:b-2,x:as(p,m)})}else(g||m)&&v.push("translate("+g+t+m+n)}function l(f,p,g,m){f!==p?(f-p>180?p+=360:p-f>180&&(f+=360),m.push({i:g.push(o(g)+"rotate(",null,r)-2,x:as(f,p)})):p&&g.push(o(g)+"rotate("+p+r)}function c(f,p,g,m){f!==p?m.push({i:g.push(o(g)+"skewX(",null,r)-2,x:as(f,p)}):p&&g.push(o(g)+"skewX("+p+r)}function d(f,p,g,m,v,y){if(f!==g||p!==m){var b=v.push(o(v)+"scale(",null,",",null,")");y.push({i:b-4,x:as(f,g)},{i:b-2,x:as(p,m)})}else(g!==1||m!==1)&&v.push(o(v)+"scale("+g+","+m+")")}return function(f,p){var g=[],m=[];return f=e(f),p=e(p),s(f.translateX,f.translateY,p.translateX,p.translateY,g,m),l(f.rotate,p.rotate,g,m),c(f.skewX,p.skewX,g,m),d(f.scaleX,f.scaleY,p.scaleX,p.scaleY,g,m),f=p=null,function(v){for(var y=-1,b=m.length,C;++y<b;)g[(C=m[y]).i]=C.x(v);return g.join("")}}}var IG=Zw(xG,"px, ","px)","deg)"),wG=Zw(CG,", ",")",")"),Il=0,ku=0,Mu=0,Xw=1e3,lp,Lu,cp=0,ta=0,up=0,Du=typeof performance=="object"&&performance.now?performance:Date,Hw=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function k0(){return ta||(Hw(AG),ta=Du.now()+up)}function AG(){ta=0}function dp(){this._call=this._time=this._next=null}dp.prototype=Uw.prototype={constructor:dp,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?k0():+n)+(t==null?0:+t),!this._next&&Lu!==this&&(Lu?Lu._next=this:lp=this,Lu=this),this._call=e,this._time=n,M0()},stop:function(){this._call&&(this._call=null,this._time=1/0,M0())}};function Uw(e,t,n){var r=new dp;return r.restart(e,t,n),r}function SG(){k0(),++Il;for(var e=lp,t;e;)(t=ta-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Il}function Yw(){ta=(cp=Du.now())+up,Il=ku=0;try{SG()}finally{Il=0,EG(),ta=0}}function TG(){var e=Du.now(),t=e-cp;t>Xw&&(up-=t,cp=e)}function EG(){for(var e,t=lp,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:lp=n);Lu=e,M0(r)}function M0(e){if(!Il){ku&&(ku=clearTimeout(ku));var t=e-ta;t>24?(e<1/0&&(ku=setTimeout(Yw,e-Du.now()-up)),Mu&&(Mu=clearInterval(Mu))):(Mu||(cp=Du.now(),Mu=setInterval(TG,Xw)),Il=1,Hw(Yw))}}function _w(e,t,n){var r=new dp;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}var OG=pw("start","end","cancel","interrupt"),RG=[],qw=0,Jw=1,L0=2,fp=3,Kw=4,D0=5,pp=6;function hp(e,t,n,r,o,s){var l=e.__transition;if(!l)e.__transition={};else if(n in l)return;PG(e,n,{name:t,index:r,group:o,on:OG,tween:RG,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:qw})}function V0(e,t){var n=Mo(e,t);if(n.state>qw)throw new Error("too late; already scheduled");return n}function oi(e,t){var n=Mo(e,t);if(n.state>fp)throw new Error("too late; already running");return n}function Mo(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function PG(e,t,n){var r=e.__transition,o;r[t]=n,n.timer=Uw(s,0,n.time);function s(f){n.state=Jw,n.timer.restart(l,n.delay,n.time),n.delay<=f&&l(f-n.delay)}function l(f){var p,g,m,v;if(n.state!==Jw)return d();for(p in r)if(v=r[p],v.name===n.name){if(v.state===fp)return _w(l);v.state===Kw?(v.state=pp,v.timer.stop(),v.on.call("interrupt",e,e.__data__,v.index,v.group),delete r[p]):+p<t&&(v.state=pp,v.timer.stop(),v.on.call("cancel",e,e.__data__,v.index,v.group),delete r[p])}if(_w(function(){n.state===fp&&(n.state=Kw,n.timer.restart(c,n.delay,n.time),c(f))}),n.state=L0,n.on.call("start",e,e.__data__,n.index,n.group),n.state===L0){for(n.state=fp,o=new Array(m=n.tween.length),p=0,g=-1;p<m;++p)(v=n.tween[p].value.call(e,e.__data__,n.index,n.group))&&(o[++g]=v);o.length=g+1}}function c(f){for(var p=f<n.duration?n.ease.call(null,f/n.duration):(n.timer.restart(d),n.state=D0,1),g=-1,m=o.length;++g<m;)o[g].call(e,p);n.state===D0&&(n.on.call("end",e,e.__data__,n.index,n.group),d())}function d(){n.state=pp,n.timer.stop(),delete r[t];for(var f in r)return;delete e.__transition}}function NG(e,t){var n=e.__transition,r,o,s=!0,l;if(n){t=t==null?null:t+"";for(l in n){if((r=n[l]).name!==t){s=!1;continue}o=r.state>L0&&r.state<D0,r.state=pp,r.timer.stop(),r.on.call(o?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[l]}s&&delete e.__transition}}function kG(e){return this.each(function(){NG(this,e)})}function MG(e,t){var n,r;return function(){var o=oi(this,e),s=o.tween;if(s!==n){r=n=s;for(var l=0,c=r.length;l<c;++l)if(r[l].name===t){r=r.slice(),r.splice(l,1);break}}o.tween=r}}function LG(e,t,n){var r,o;if(typeof n!="function")throw new Error;return function(){var s=oi(this,e),l=s.tween;if(l!==r){o=(r=l).slice();for(var c={name:t,value:n},d=0,f=o.length;d<f;++d)if(o[d].name===t){o[d]=c;break}d===f&&o.push(c)}s.tween=o}}function DG(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Mo(this.node(),n).tween,o=0,s=r.length,l;o<s;++o)if((l=r[o]).name===e)return l.value;return null}return this.each((t==null?MG:LG)(n,e,t))}function B0(e,t,n){var r=e._id;return e.each(function(){var o=oi(this,r);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return Mo(o,r).value[t]}}function Qw(e,t){var n;return(typeof t=="number"?as:t instanceof Nu?zw:(n=Nu(t))?(t=n,zw):yG)(e,t)}function VG(e){return function(){this.removeAttribute(e)}}function BG(e){return function(){this.removeAttributeNS(e.space,e.local)}}function FG(e,t,n){var r,o=n+"",s;return function(){var l=this.getAttribute(e);return l===o?null:l===r?s:s=t(r=l,n)}}function WG(e,t,n){var r,o=n+"",s;return function(){var l=this.getAttributeNS(e.space,e.local);return l===o?null:l===r?s:s=t(r=l,n)}}function zG(e,t,n){var r,o,s;return function(){var l,c=n(this),d;return c==null?void this.removeAttribute(e):(l=this.getAttribute(e),d=c+"",l===d?null:l===r&&d===o?s:(o=d,s=t(r=l,c)))}}function GG(e,t,n){var r,o,s;return function(){var l,c=n(this),d;return c==null?void this.removeAttributeNS(e.space,e.local):(l=this.getAttributeNS(e.space,e.local),d=c+"",l===d?null:l===r&&d===o?s:(o=d,s=t(r=l,c)))}}function jG(e,t){var n=tp(e),r=n==="transform"?wG:Qw;return this.attrTween(e,typeof t=="function"?(n.local?GG:zG)(n,r,B0(this,"attr."+e,t)):t==null?(n.local?BG:VG)(n):(n.local?WG:FG)(n,r,t))}function ZG(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function XG(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function HG(e,t){var n,r;function o(){var s=t.apply(this,arguments);return s!==r&&(n=(r=s)&&XG(e,s)),n}return o._value=t,o}function UG(e,t){var n,r;function o(){var s=t.apply(this,arguments);return s!==r&&(n=(r=s)&&ZG(e,s)),n}return o._value=t,o}function YG(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=tp(e);return this.tween(n,(r.local?HG:UG)(r,t))}function _G(e,t){return function(){V0(this,e).delay=+t.apply(this,arguments)}}function qG(e,t){return t=+t,function(){V0(this,e).delay=t}}function JG(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?_G:qG)(t,e)):Mo(this.node(),t).delay}function KG(e,t){return function(){oi(this,e).duration=+t.apply(this,arguments)}}function QG(e,t){return t=+t,function(){oi(this,e).duration=t}}function $G(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?KG:QG)(t,e)):Mo(this.node(),t).duration}function ej(e,t){if(typeof t!="function")throw new Error;return function(){oi(this,e).ease=t}}function tj(e){var t=this._id;return arguments.length?this.each(ej(t,e)):Mo(this.node(),t).ease}function nj(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;oi(this,e).ease=n}}function rj(e){if(typeof e!="function")throw new Error;return this.each(nj(this._id,e))}function oj(e){typeof e!="function"&&(e=vw(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var s=t[o],l=s.length,c=r[o]=[],d,f=0;f<l;++f)(d=s[f])&&e.call(d,d.__data__,f,s)&&c.push(d);return new Pi(r,this._parents,this._name,this._id)}function ij(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,s=Math.min(r,o),l=new Array(r),c=0;c<s;++c)for(var d=t[c],f=n[c],p=d.length,g=l[c]=new Array(p),m,v=0;v<p;++v)(m=d[v]||f[v])&&(g[v]=m);for(;c<r;++c)l[c]=t[c];return new Pi(l,this._parents,this._name,this._id)}function sj(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function aj(e,t,n){var r,o,s=sj(t)?V0:oi;return function(){var l=s(this,e),c=l.on;c!==r&&(o=(r=c).copy()).on(t,n),l.on=o}}function lj(e,t){var n=this._id;return arguments.length<2?Mo(this.node(),n).on.on(e):this.each(aj(n,e,t))}function cj(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function uj(){return this.on("end.remove",cj(this._id))}function dj(e){var t=this._name,n=this._id;typeof e!="function"&&(e=w0(e));for(var r=this._groups,o=r.length,s=new Array(o),l=0;l<o;++l)for(var c=r[l],d=c.length,f=s[l]=new Array(d),p,g,m=0;m<d;++m)(p=c[m])&&(g=e.call(p,p.__data__,m,c))&&("__data__"in p&&(g.__data__=p.__data__),f[m]=g,hp(f[m],t,n,m,f,Mo(p,n)));return new Pi(s,this._parents,t,n)}function fj(e){var t=this._name,n=this._id;typeof e!="function"&&(e=bw(e));for(var r=this._groups,o=r.length,s=[],l=[],c=0;c<o;++c)for(var d=r[c],f=d.length,p,g=0;g<f;++g)if(p=d[g]){for(var m=e.call(p,p.__data__,g,d),v,y=Mo(p,n),b=0,C=m.length;b<C;++b)(v=m[b])&&hp(v,t,n,b,m,y);s.push(m),l.push(p)}return new Pi(s,l,t,n)}var pj=Eu.prototype.constructor;function hj(){return new pj(this._groups,this._parents)}function gj(e,t){var n,r,o;return function(){var s=xl(this,e),l=(this.style.removeProperty(e),xl(this,e));return s===l?null:s===n&&l===r?o:o=t(n=s,r=l)}}function $w(e){return function(){this.style.removeProperty(e)}}function mj(e,t,n){var r,o=n+"",s;return function(){var l=xl(this,e);return l===o?null:l===r?s:s=t(r=l,n)}}function bj(e,t,n){var r,o,s;return function(){var l=xl(this,e),c=n(this),d=c+"";return c==null&&(d=c=(this.style.removeProperty(e),xl(this,e))),l===d?null:l===r&&d===o?s:(o=d,s=t(r=l,c))}}function vj(e,t){var n,r,o,s="style."+t,l="end."+s,c;return function(){var d=oi(this,e),f=d.on,p=d.value[s]==null?c||(c=$w(t)):void 0;(f!==n||o!==p)&&(r=(n=f).copy()).on(l,o=p),d.on=r}}function yj(e,t,n){var r=(e+="")=="transform"?IG:Qw;return t==null?this.styleTween(e,gj(e,r)).on("end.style."+e,$w(e)):typeof t=="function"?this.styleTween(e,bj(e,r,B0(this,"style."+e,t))).each(vj(this._id,e)):this.styleTween(e,mj(e,r,t),n).on("end.style."+e,null)}function xj(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Cj(e,t,n){var r,o;function s(){var l=t.apply(this,arguments);return l!==o&&(r=(o=l)&&xj(e,l,n)),r}return s._value=t,s}function Ij(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,Cj(e,t,n??""))}function wj(e){return function(){this.textContent=e}}function Aj(e){return function(){var t=e(this);this.textContent=t??""}}function Sj(e){return this.tween("text",typeof e=="function"?Aj(B0(this,"text",e)):wj(e==null?"":e+""))}function Tj(e){return function(t){this.textContent=e.call(this,t)}}function Ej(e){var t,n;function r(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&Tj(o)),t}return r._value=e,r}function Oj(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Ej(e))}function Rj(){for(var e=this._name,t=this._id,n=eA(),r=this._groups,o=r.length,s=0;s<o;++s)for(var l=r[s],c=l.length,d,f=0;f<c;++f)if(d=l[f]){var p=Mo(d,t);hp(d,e,n,f,l,{time:p.time+p.delay+p.duration,delay:0,duration:p.duration,ease:p.ease})}return new Pi(r,this._parents,e,n)}function Pj(){var e,t,n=this,r=n._id,o=n.size();return new Promise(function(s,l){var c={value:l},d={value:function(){--o===0&&s()}};n.each(function(){var f=oi(this,r),p=f.on;p!==e&&(t=(e=p).copy(),t._.cancel.push(c),t._.interrupt.push(c),t._.end.push(d)),f.on=t}),o===0&&s()})}var Nj=0;function Pi(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function eA(){return++Nj}var Ni=Eu.prototype;Pi.prototype={constructor:Pi,select:dj,selectAll:fj,selectChild:Ni.selectChild,selectChildren:Ni.selectChildren,filter:oj,merge:ij,selection:hj,transition:Rj,call:Ni.call,nodes:Ni.nodes,node:Ni.node,size:Ni.size,empty:Ni.empty,each:Ni.each,on:lj,attr:jG,attrTween:YG,style:yj,styleTween:Ij,text:Sj,textTween:Oj,remove:uj,tween:DG,delay:JG,duration:$G,ease:tj,easeVarying:rj,end:Pj,[Symbol.iterator]:Ni[Symbol.iterator]};function kj(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Mj={time:null,delay:0,duration:250,ease:kj};function Lj(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Dj(e){var t,n;e instanceof Pi?(t=e._id,e=e._name):(t=eA(),(n=Mj).time=k0(),e=e==null?null:e+"");for(var r=this._groups,o=r.length,s=0;s<o;++s)for(var l=r[s],c=l.length,d,f=0;f<c;++f)(d=l[f])&&hp(d,e,t,f,l,n||Lj(d,t));return new Pi(r,this._parents,e,t)}Eu.prototype.interrupt=kG,Eu.prototype.transition=Dj;function Vj(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function Bj(){return this.eachAfter(Vj)}function Fj(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function Wj(e,t){for(var n=this,r=[n],o,s,l=-1;n=r.pop();)if(e.call(t,n,++l,this),o=n.children)for(s=o.length-1;s>=0;--s)r.push(o[s]);return this}function zj(e,t){for(var n=this,r=[n],o=[],s,l,c,d=-1;n=r.pop();)if(o.push(n),s=n.children)for(l=0,c=s.length;l<c;++l)r.push(s[l]);for(;n=o.pop();)e.call(t,n,++d,this);return this}function Gj(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function jj(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})}function Zj(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Xj(e){for(var t=this,n=Hj(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r}function Hj(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}function Uj(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Yj(){return Array.from(this)}function _j(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function qj(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*Jj(){var e=this,t,n=[e],r,o,s;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(o=0,s=r.length;o<s;++o)n.push(r[o]);while(n.length)}function F0(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=$j)):t===void 0&&(t=Qj);for(var n=new gp(e),r,o=[n],s,l,c,d;r=o.pop();)if((l=t(r.data))&&(d=(l=Array.from(l)).length))for(r.children=l,c=d-1;c>=0;--c)o.push(s=l[c]=new gp(l[c])),s.parent=r,s.depth=r.depth+1;return n.eachBefore(tZ)}function Kj(){return F0(this).eachBefore(eZ)}function Qj(e){return e.children}function $j(e){return Array.isArray(e)?e[1]:null}function eZ(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function tZ(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function gp(e){this.data=e,this.depth=this.height=0,this.parent=null}gp.prototype=F0.prototype={constructor:gp,count:Bj,each:Fj,eachAfter:zj,eachBefore:Wj,find:Gj,sum:jj,sort:Zj,path:Xj,ancestors:Uj,descendants:Yj,leaves:_j,links:qj,copy:Kj,[Symbol.iterator]:Jj};function Vu(e,t,n){this.k=e,this.x=t,this.y=n}Vu.prototype={constructor:Vu,scale:function(e){return e===1?this:new Vu(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Vu(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},Vu.prototype;const nZ=(e,t)=>{var l;const n=S0("body").append("svg"),s=((l=n.append("text").attr("font-size",t).text(e).node())==null?void 0:l.getComputedTextLength())??0;return n.remove(),s},rZ=(e,t,n,r,o)=>{let s=e.descendants().filter(l=>l.depth>0);return s=s.sort((l,c)=>yW(l.data.hOrderPosition,c.data.hOrderPosition)),s.forEach((l,c)=>{l.data.startLeft=t.left+(l.depth-1)*n,l.data.yPos=t.top+c*r,l.data.expandLabel=l.data.name+(o&&(l.data.descendantCount||0)>0?` (${l.data.descendantCount})`:""),l.data.labelWidth=35+nZ(l.data.expandLabel,12)}),s},oZ=(e,t,n,r,o,s)=>{let l=F0(e);if(o&&(t=xW(l,c=>c.depth)||t),n!==""&&r.length>0&&console.error("baseKey and filterIds cannot be used together - baseKey takes priority, filterIds will be ignored"),n!==""){const c=l.descendants().find(d=>d.data.id===n);c&&(l=c)}else if(r.length>0){const c=[];r.forEach(d=>{const f=l.descendants().find(p=>p.data.id===d);f&&f.ancestors().forEach(p=>{c.some(g=>g===p.data.id)||c.push(p.data.id||"")})}),l.descendants().forEach(d=>{d.children&&(d.children=d.children.filter(f=>c.includes(f.data.id||"")),d.children.length===0&&(d.children=void 0))})}if(l.eachBefore((c,d)=>{c.data.hOrderPosition=d,c.data.descendantCount=c.descendants().length-1}),l.descendants().forEach(c=>{c.children&&c.depth>t&&(c.data._children=c.children,c.children=void 0)}),s&&o&&console.error("expandAll and expandElement cannot be used together - expandAll takes priority, expandElement will be ignored"),s&&!o){const c=l.descendants().find(d=>d.data.id==="http://ies.data.gov.uk/ontology/ies4#Element");c&&(c.children=c.data._children)}return l},iZ=(e,t)=>{const n=t(e);return n.faUnicode||(n.faIcon="",n.faUnicode=n.iconFallbackText,n.shape="roundrectangle"),n},sZ=({instanceId:e,data:t,descendantCount:n=!0,isDraggable:r=!1,dragEvent:o=()=>"",isClickable:s=!1,clickEvent:l=()=>"",baseKey:c="",filterIds:d=[],expandAll:f=!1,expandElement:p=!1})=>{const g=ke.useRef(null),m=20,v=ke.useRef(void 0),y=ke.useRef(void 0),b=ke.useRef(void 0),C=ke.useRef(void 0),S=ke.useRef(void 0);return ke.useEffect(()=>{if(c===v.current&&JSON.stringify(d)===JSON.stringify(y.current)&&n===b.current&&p===C.current&&f===S.current)return;y.current=d,v.current=c,b.current=n,C.current=p,S.current=f;const T=S0(g.current),w=T.node();if(!w)return;const{parentElement:O}=w;if(!O||!t)return;const I=JSON.parse(JSON.stringify(t)),M={left:10,right:40,top:10,bottom:10},L=0,z=m*.25,B=10,j=oZ(I,L,c,d,f,p),X=V=>{var _;const W=(j.descendants().length-(c?0:1))*m+M.top+M.bottom;T.attr("height",W);const Y=rZ(V,M,B,m,n),q="treeGroupTestId",J=T.select(`#chartGroup${e}`).selectAll(`.${q}`).data(Y).join(G=>{const D=G.append("g").attr("class",q);D.append("line").attr("class","expandHorizontalLine"),D.append("line").attr("class","expandVerticalLine"),D.append("circle").attr("class","expandCircle"),D.append("text").attr("class","expandCircleIcon fa-solid");const re=D.append("foreignObject").attr("class","dragObject").append("xhtml:div").attr("class","dragDiv").append("svg").attr("class","dragSvg");return re.append("text").attr("class","expandLabel"),re.append("text").attr("class","expandLabelIcon"),D});J.select(".dragObject").attr("transform",G=>`translate(${(G.data.startLeft||0)+(G.depth===1?m-3:m-6)-2},${G.data.yPos||0})`).attr("width",G=>G.data.labelWidth||0).attr("height",m),J.select(".dragDiv").attr("draggable",r).style("cursor",r?"grab":"default").on("mouseover",G=>{(r||s)&&S0(G.currentTarget).select(".expandLabel").attr("font-weight",500)}).on("mouseout",()=>{T.selectAll(".expandLabel").attr("font-weight",400)}).on("click",(G,D)=>{l(D.data.id||"")}).on("dragstart",(G,D)=>{if(r){const re=JSON.stringify({nodeShape:D.data.ontology?D.data.ontology.shape:"",label:D.data.name,namespace:"",id:D.data.id,ontology:D.data.ontology});o(G,re),T.selectAll(".dragDiv").style("cursor","grabbing")}}).on("drag",()=>{r&&T.selectAll(".dragDiv").style("cursor","grabbing")}).on("dragend",(G,D)=>{if(r){const re=JSON.stringify({nodeShape:D.data.ontology?D.data.ontology.shape:"",label:D.data.name,namespace:"",id:D.data.id,ontology:D.data.ontology});T.selectAll(".dragDiv").style("cursor","grab"),o(G,re)}}),J.select(".dragSvg").attr("width",G=>G.data.labelWidth||0).attr("height",m).style("background-color","transparent"),J.attr("id",(G,D)=>`${q}${D}`),J.select(".expandCircle").attr("cx",G=>(G.data.startLeft||0)+z).attr("cy",G=>(G.data.yPos||0)+m/2).attr("r",G=>!G.children&&!G.data._children?0:z).attr("stroke",G=>{var D;return((D=G.data.ontology)==null?void 0:D.color)||""}).attr("fill",G=>G.data.ontology?G.data.ontology.backgroundColor:"").attr("stroke-width",1).style("cursor","pointer").on("click",(G,D)=>{!D.children&&D.data._children?(D.children=D.data._children,D.data._children=void 0,X(V)):D.children!==void 0&&(D.data._children=D.children,D.children=void 0,X(V))}),J.select(".expandHorizontalLine").attr("pointer-events","none").attr("x1",G=>(G.data.startLeft||0)+z).attr("x2",G=>(G.data.startLeft||0)+z+(G.children===void 0?z:0)).attr("y1",G=>(G.data.yPos||0)+m/2).attr("y2",G=>{const D=G.children,re=D==null?void 0:D[D.length-1].children;return(G.data.yPos||0)+m/2+(D?(G.descendants().length-1-(re?re.length:0))*m:0)}).attr("stroke","white").attr("stroke-width",.5),J.select(".expandVerticalLine").attr("pointer-events","none").attr("x1",G=>(G.data.startLeft||0)+z).attr("x2",G=>(G.data.startLeft||0)+z-(G.depth===1?0:m/2)).attr("y1",G=>(G.data.yPos||0)+m/2).attr("y2",G=>(G.data.yPos||0)+m/2).attr("stroke","white").attr("stroke-width",.5),J.select(".expandCircleIcon").attr("pointer-events","none").attr("x",G=>(G.data.startLeft||0)+z).attr("y",G=>(G.data.yPos||0)+m/2+3).attr("text-anchor","middle").attr("font-size",8).attr("fill","white").text(G=>!G.children&&!G.data._children?"":G.children!==void 0?"":"+"),J.select(".expandLabel").attr("pointer-events","none").attr("font-weight",400).attr("x",22).attr("y",4+m/2).attr("fill",G=>G.data.id&&G.data.ontology&&d.includes(G.data.id)?G.data.ontology.color:"white").attr("font-size",12).text(G=>G.data.expandLabel||""),J.select(".expandLabelIcon").attr("pointer-events","none").attr("text-anchor","middle").attr("class",G=>`expandLabelIcon ${G.data.ontology?G.data.ontology.faIcon:""}`).attr("x",11).attr("y",G=>(G.data.ontology&&G.data.ontology.faUnicode.length===3?3:4)+m/2).style("fill",G=>G.data.ontology?G.data.ontology.color:"").attr("font-size",G=>{var D;return((D=G.data.ontology)==null?void 0:D.faUnicode.length)===3?8:10}).text(G=>G.data.ontology?G.data.ontology.faUnicode:"");const U=(_=document.getElementById(`chartGroup${e}`))==null?void 0:_.getBoundingClientRect().width;T.attr("width",(U||0)+M.left+M.right)};X(j)},[t,r,s,e,o,l,c,n,d]),P(Io,{children:P("svg",{id:`svg_${e}`,ref:g,children:P("g",{id:`chartGroup${e}`,"data-testid":e})})})},tA=({children:e})=>Fe("div",{children:[P("h2",{className:"uppercase text-sm",children:"recent searches"}),e]}),aZ=({nothingFoundText:e="Nothing found",children:t=null})=>t?P(tA,{children:t}):P(tA,{children:P("p",{className:"grid place-content-center mt-24 text-whiteSmoke-300",children:e})}),lZ=({open:e,onClose:t,children:n,...r})=>Fe(km,{open:e,onClose:t,PaperProps:{sx:{maxHeight:"100% - 64px",minHeight:340,padding:"12px",minWidth:"540px"},className:"space-y-5"},children:[P(dw,{fullWidth:!0,listboxMaxHeight:220,...r}),n]}),cZ=({totalResults:e,nothingFoundText:t="Nothing found",children:n=null})=>n?Fe("div",{children:[Fe("h2",{className:"uppercase text-sm",children:[e," search results"]}),n]}):P("div",{children:P("p",{className:"grid place-content-center mt-28 text-whiteSmoke-300",children:t})}),uZ=({open:e,onClose:t,children:n,...r})=>P(km,{open:e,onClose:t,...r,children:n}),dZ=({children:e})=>P(iC,{className:"bg-black-100/40",children:e}),fZ=({children:e})=>P(oC,{className:"py-3 bg-black-100/40",children:e}),pZ=({children:e})=>P(sC,{className:"py-3 bg-black-100/40",children:e}),hZ=({dense:e,disablePadding:t,subheader:n,children:r,...o})=>P(fu,{dense:e,disablePadding:t,subheader:n,...o,children:r}),gZ=({className:e,children:t,...n})=>P(pu,{component:"button",disableRipple:!0,className:Qn("flex gap-x-3",e),...n,children:t}),mZ=({children:e,...t})=>P(hu,{...t,children:e}),bZ=({selectedTabIndex:e,...t})=>P(aI,{className:"gap-x-3",textColor:"secondary",indicatorColor:"secondary",value:e,...t}),vZ=({tabIndex:e,className:t,...n})=>P(ZC,{className:t,...yZ(e),...n});function yZ(e){if(e)return{id:`teli-tab-${e}`,"aria-controls":`teli-tabpanel-${e}`}}const xZ=({tabIndex:e,selectedTabIndex:t,children:n,...r})=>P("div",{role:"tabpanel",hidden:t!==e,id:`teli-tabpanel-${e}`,"aria-labelledby":`teli-tab-${e}`,className:"py-2",...r,children:n}),nA=({compact:e=!1,minWidth:t,name:n,children:r,...o})=>P(HC,{sx:{minWidth:t},size:e?"small":"medium","aria-label":n,...o,children:r}),rA=({children:e,...t})=>P(YC,{...t,children:e}),W0=({minWidth:e,children:t,...n})=>P(_C,{sx:{minWidth:e},...n,children:t}),oA=({bordered:e=!1,maxHeight:t,children:n,...r})=>P(qC,{sx:{maxHeight:t,borderWidth:e?1:0},...r,children:n}),iA=({children:e,...t})=>P(KC,{...t,children:e}),z0=({addBorderToLastRow:e=!0,children:t,...n})=>P(eI,{sx:{"&:last-child td, &:last-child th":{borderBottomWidth:e?1.5:0}},...n,children:t}),sA=(e,t)=>e===0?"left":t,CZ=(e,t)=>{if(e===0&&t)return{component:"th",scope:"row"}},IZ=(e,t)=>t?e.map((n,r)=>[(r+=1).toString(),...n]):e,aA=(e,t,n="")=>t?[n,...e]:e,Bu=(e,t)=>`${e}::${rw.kebabCase(t)}`,wZ=({columns:e=[],rows:t=[],name:n,align:r="left",addBorderToLastRow:o,bordered:s=!1,caption:l,compact:c=!1,maxHeight:d,minWidth:f,numberRows:p=!1,numberColumnHeading:g="",renderColumnCell:m,stickyHeader:v=!1,verticalHeader:y=!1})=>{if(e.length===0||t.length===0)return null;const b=(C,S)=>{const w=Xe.string({required_error:"Column is required",invalid_type_error:"Column must be a string"}).safeParse(C);if(w.success){const O=w.data;return P(W0,{align:sA(S,r),children:O},Bu("column",O))}return console.error("Unable to render columns. Ensure columns is an array of strings or use renderColumnCell"),null};return P(oA,{maxHeight:d,bordered:s,children:Fe(nA,{compact:c,minWidth:f,name:n,stickyHeader:v,children:[l&&P("caption",{children:l}),P(iA,{children:P(z0,{children:m?aA(e,p,g).map(m):aA(e,p,g).map(b)})}),P(rA,{children:IZ(t,p).map(C=>P(z0,{id:Bu("row",C[0]),addBorderToLastRow:o??!!l,children:C.map((S,T)=>P(W0,{id:Bu("column",S),...CZ(T,y),align:sA(T,r),children:S},Bu("column",S)))},Bu("row",C[0])))})]})})},G0=()=>bn(),AZ=e=>P(Zn,{...e,children:Fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 11 15",fill:"none",children:[P("mask",{id:"path-1-inside-1_1596_4831",fill:"white",children:P("path",{d:"M1.08594 4.74316H10.3739V12.7447C10.3739 13.6793 9.61624 14.4371 8.68156 14.4371H2.77832C1.84364 14.4371 1.08594 13.6793 1.08594 12.7447V4.74316Z"})}),Fe("g",{fill:"currentColor",children:[P("path",{d:"M1.08594 4.74316H10.3739H1.08594ZM11.5022 12.7447C11.5022 14.1467 10.3656 15.2832 8.96363 15.2832H2.77832C1.3763 15.2832 0.239745 14.1467 0.239745 12.7447H1.93213C1.93213 13.212 2.31098 13.5909 2.77832 13.5909H8.68156C8.99312 13.5909 9.24569 13.212 9.24569 12.7447H11.5022ZM2.77832 15.2832C1.3763 15.2832 0.239745 14.1467 0.239745 12.7447V4.74316H1.93213V12.7447C1.93213 13.212 2.31098 13.5909 2.77832 13.5909L2.77832 15.2832ZM11.5022 4.74316V12.7447C11.5022 14.1467 10.3656 15.2832 8.96363 15.2832L8.68156 13.5909C8.99312 13.5909 9.24569 13.212 9.24569 12.7447V4.74316H11.5022Z",mask:"url(#path-1-inside-1_1596_4831)"}),P("path",{d:"M0.89087 3.83887C0.89087 3.13786 1.45915 2.56958 2.16016 2.56958H9.24813C9.94913 2.56958 10.5174 3.13786 10.5174 3.83887V4.7635H0.89087V3.83887Z",stroke:"white",strokeWidth:"0.846193"}),P("path",{d:"M3.88599 1.69076C3.88599 1.30131 4.2017 0.985596 4.59115 0.985596H7.13468C7.52413 0.985596 7.83984 1.30131 7.83984 1.69076V2.52497H3.88599V1.69076Z",stroke:"white",strokeWidth:"0.846193"}),P("rect",{x:"3.30469",y:"5.86621",width:"0.846193",height:"6.74702",rx:"0.423096"}),P("rect",{x:"5.19531",y:"5.86621",width:"0.846193",height:"6.74702",rx:"0.423096"}),P("rect",{x:"7.08398",y:"5.86621",width:"0.846193",height:"6.74702",rx:"0.423096"})]})]})}),j0=e=>P(Zn,{...e,children:P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 13",fill:"none",children:P("path",{d:"M11.9997 1.84102L10.8247 0.666016L6.16634 5.32435L1.50801 0.666016L0.333008 1.84102L4.99134 6.49935L0.333008 11.1577L1.50801 12.3327L6.16634 7.67435L10.8247 12.3327L11.9997 11.1577L7.34134 6.49935L11.9997 1.84102Z",fill:"currentColor"})})}),SZ=e=>P(Zn,{...e,children:Fe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"27",viewBox:"0 0 15 27",fill:"none",children:[P("circle",{cx:"1.74976",cy:"22.345",r:"1.40649",transform:"rotate(90 1.74976 22.345)",fill:"currentColor"}),P("circle",{cx:"13.2517",cy:"18.658",r:"1.40649",transform:"rotate(90 13.2517 18.658)",fill:"currentColor"}),P("circle",{cx:"7.80444",cy:"25.158",r:"1.40649",transform:"rotate(90 7.80444 25.158)",fill:"currentColor"}),P("mask",{id:"path-4-inside-1_780_6722",fill:"white",children:P("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.98926 3.68708C3.01775 3.50841 3.18208 3.19325 3.76767 2.86471C4.39167 2.51461 5.32116 2.2666 6.40234 2.2666C7.48353 2.2666 8.41301 2.51461 9.03702 2.86471C9.58822 3.17396 9.76619 3.47136 9.80895 3.65422H9.80797V11.1355H11.808V3.7453H11.8203C11.8203 2.53778 10.9587 1.64962 10.0156 1.12048C9.04064 0.573466 7.76113 0.266602 6.40234 0.266602C5.04356 0.266602 3.76405 0.573466 2.78907 1.12048C1.84595 1.64962 0.984375 2.53778 0.984375 3.7453H0.989258V11.1355H2.98926V3.68708ZM3.75132 11.916C4.37769 12.25 5.31192 12.4871 6.39861 12.4871C7.48531 12.4871 8.41954 12.25 9.04591 11.916C9.71526 11.559 9.80797 11.2357 9.80797 11.1355H11.808C11.808 12.334 10.9136 13.1865 9.98709 13.6807C9.01759 14.1977 7.74714 14.4871 6.39861 14.4871C5.05009 14.4871 3.77964 14.1977 2.81014 13.6807C1.88361 13.1865 0.989258 12.334 0.989258 11.1355H2.98926C2.98926 11.2357 3.08197 11.559 3.75132 11.916Z"})}),P("path",{d:"M3.76767 2.86471L2.78907 1.12048L2.78907 1.12048L3.76767 2.86471ZM2.98926 3.68708L1.01422 3.3721L0.989258 3.5286V3.68708H2.98926ZM9.03702 2.86471L8.05842 4.60894L8.05842 4.60894L9.03702 2.86471ZM9.80895 3.65422V5.65422H12.3306L11.7564 3.19881L9.80895 3.65422ZM9.80797 3.65422V1.65422H7.80797V3.65422H9.80797ZM9.80797 11.1355H7.80797V13.1355H9.80797V11.1355ZM11.808 11.1355V13.1355H13.808V11.1355H11.808ZM11.808 3.7453V1.7453H9.80797V3.7453H11.808ZM11.8203 3.7453V5.7453H13.8203V3.7453H11.8203ZM10.0156 1.12048L10.9942 -0.623753L10.9942 -0.623753L10.0156 1.12048ZM2.78907 1.12048L1.81047 -0.623753L2.78907 1.12048ZM0.984375 3.7453H-1.01562V5.7453H0.984375V3.7453ZM0.989258 3.7453H2.98926V1.7453H0.989258V3.7453ZM0.989258 11.1355H-1.01074V13.1355H0.989258V11.1355ZM2.98926 11.1355V13.1355H4.98926V11.1355H2.98926ZM3.75132 11.916L4.69249 10.1513L4.69249 10.1513L3.75132 11.916ZM9.04591 11.916L8.10474 10.1513L8.10474 10.1513L9.04591 11.916ZM9.80797 11.1355V9.13546H7.80797V11.1355H9.80797ZM11.808 11.1355H13.808V9.13546H11.808V11.1355ZM9.98709 13.6807L9.04591 11.916L9.04591 11.916L9.98709 13.6807ZM2.81014 13.6807L3.75132 11.916L3.75132 11.916L2.81014 13.6807ZM0.989258 11.1355V9.13546H-1.01074V11.1355H0.989258ZM2.98926 11.1355H4.98926V9.13546H2.98926V11.1355ZM2.78907 1.12048C1.90355 1.6173 1.17442 2.36756 1.01422 3.3721L4.9643 4.00206C4.86108 4.64927 4.4606 4.76921 4.74627 4.60894L2.78907 1.12048ZM6.40234 0.266602C5.04329 0.266602 3.76386 0.573574 2.78907 1.12048L4.74627 4.60894C5.01949 4.45565 5.59902 4.2666 6.40234 4.2666V0.266602ZM10.0156 1.12048C9.04083 0.573574 7.7614 0.266602 6.40234 0.266602V4.2666C7.20567 4.2666 7.7852 4.45565 8.05842 4.60894L10.0156 1.12048ZM11.7564 3.19881C11.5411 2.27819 10.8538 1.59073 10.0156 1.12048L8.05842 4.60894C8.32267 4.7572 7.99125 4.66452 7.86149 4.10963L11.7564 3.19881ZM9.80895 1.65422H9.80797V5.65422H9.80895V1.65422ZM7.80797 3.65422V11.1355H11.808V3.65422H7.80797ZM9.80797 13.1355H11.808V9.13545H9.80797V13.1355ZM13.808 11.1355V3.7453H9.80797V11.1355H13.808ZM11.8203 1.7453H11.808V5.7453H11.8203V1.7453ZM9.03702 2.86471C9.33286 3.03069 9.55027 3.21864 9.67853 3.38763C9.79333 3.53888 9.82031 3.64791 9.82031 3.7453H13.8203C13.8203 1.48375 12.2142 0.0606988 10.9942 -0.623753L9.03702 2.86471ZM6.40234 2.2666C7.48373 2.2666 8.41316 2.51469 9.03702 2.86471L10.9942 -0.623753C9.66812 -1.36776 8.03854 -1.7334 6.40234 -1.7334V2.2666ZM3.76767 2.86471C4.39153 2.51469 5.32096 2.2666 6.40234 2.2666V-1.7334C4.76615 -1.7334 3.13657 -1.36776 1.81047 -0.623753L3.76767 2.86471ZM2.98438 3.7453C2.98438 3.64791 3.01136 3.53888 3.12616 3.38763C3.25442 3.21864 3.47183 3.03069 3.76767 2.86471L1.81047 -0.623753C0.590519 0.0606987 -1.01562 1.48375 -1.01562 3.7453H2.98438ZM0.989258 1.7453H0.984375V5.7453H0.989258V1.7453ZM-1.01074 3.7453V11.1355H2.98926V3.7453H-1.01074ZM0.989258 13.1355H2.98926V9.13545H0.989258V13.1355ZM4.98926 11.1355V3.68708H0.989258V11.1355H4.98926ZM6.39861 10.4871C5.57397 10.4871 4.97592 10.3024 4.69249 10.1513L2.81014 13.6807C3.77947 14.1977 5.04987 14.4871 6.39861 14.4871V10.4871ZM8.10474 10.1513C7.82131 10.3024 7.22326 10.4871 6.39861 10.4871V14.4871C7.74736 14.4871 9.01776 14.1977 9.98709 13.6807L8.10474 10.1513ZM7.80797 11.1355C7.80797 10.6452 7.99822 10.332 8.09667 10.2049C8.20527 10.0647 8.26004 10.0684 8.10474 10.1513L9.98709 13.6807C10.9516 13.1663 11.808 12.3057 11.808 11.1355H7.80797ZM11.808 9.13546H9.80797V13.1355H11.808V9.13546ZM10.9283 15.4454C12.0997 14.8206 13.808 13.4411 13.808 11.1355H9.80797C9.80797 11.2015 9.79263 11.2859 9.68257 11.4237C9.55677 11.5811 9.33992 11.7592 9.04591 11.916L10.9283 15.4454ZM6.39861 16.4871C8.00879 16.4871 9.61553 16.1455 10.9283 15.4454L9.04591 11.916C8.41966 12.25 7.48548 12.4871 6.39861 12.4871V16.4871ZM1.86896 15.4454C3.1817 16.1455 4.78844 16.4871 6.39861 16.4871V12.4871C5.31175 12.4871 4.37757 12.25 3.75132 11.916L1.86896 15.4454ZM-1.01074 11.1355C-1.01074 13.4411 0.697576 14.8206 1.86896 15.4454L3.75132 11.916C3.45731 11.7592 3.24046 11.5811 3.11466 11.4237C3.0046 11.2859 2.98926 11.2015 2.98926 11.1355H-1.01074ZM2.98926 9.13546H0.989258V13.1355H2.98926V9.13546ZM4.69249 10.1513C4.53719 10.0684 4.59196 10.0647 4.70056 10.2049C4.79901 10.332 4.98926 10.6452 4.98926 11.1355H0.989258C0.989258 12.3057 1.84561 13.1663 2.81014 13.6807L4.69249 10.1513Z",fill:"currentColor",mask:"url(#path-4-inside-1_780_6722)"}),P("path",{d:"M10.335 3.41366C10.335 4.44834 8.57274 5.28711 6.39893 5.28711C4.22511 5.28711 2.46289 4.44834 2.46289 3.41366",stroke:"currentColor"}),P("path",{d:"M10.9919 9.76806L13.252 12.0281L13.252 18.0281",stroke:"currentColor",strokeWidth:"1.5"}),P("path",{d:"M4.40039 12.5454L1.91399 15.3954L1.91399 21.3954",stroke:"currentColor",strokeWidth:"1.5"}),P("path",{d:"M7.9043 13.0649L7.9043 24.2749",stroke:"currentColor",strokeWidth:"1.5"})]})}),TZ=e=>P(Zn,{...e,children:P("svg",{width:"19",height:"25",viewBox:"0 0 19 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Fe("g",{id:"dataset icon",children:[P("rect",{id:"Rectangle 2",x:"1.0332",y:"1.90381",width:"16.9326",height:"22.0233",stroke:"currentColor",strokeWidth:"2"}),P("rect",{id:"Rectangle 3",x:"3.82031",y:"20.3071",width:"11.3596",height:"0.923972",fill:"currentColor"}),P("rect",{id:"Rectangle 4",x:"3.82031",y:"18.4595",width:"11.3596",height:"0.923972",fill:"currentColor"}),P("rect",{id:"Rectangle 5",x:"3.82031",y:"16.6113",width:"11.3596",height:"0.923972",fill:"currentColor"}),P("rect",{id:"Rectangle 6",x:"3.82031",y:"14.7632",width:"11.3596",height:"0.923972",fill:"currentColor"}),P("rect",{id:"Rectangle 14",x:"3.82031",y:"12.9155",width:"4.73315",height:"0.923972",fill:"currentColor"})]})})}),lA=e=>P(Zn,{...e,children:P("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",children:Fe("g",{fill:"currentColor",children:[P("circle",{cx:"5.61865",cy:"1.61865",r:"0.950684"}),P("circle",{cx:"5.61865",cy:"6.29053",r:"0.950684"}),P("circle",{cx:"5.61865",cy:"10.9624",r:"0.950684"}),P("circle",{cx:"1.61865",cy:"1.61865",r:"0.950684"}),P("circle",{cx:"1.61865",cy:"6.29053",r:"0.950684"}),P("circle",{cx:"1.61865",cy:"10.9624",r:"0.950684"})]})})}),EZ=e=>P(Zn,{...e,children:P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",fill:"none",children:P("path",{d:"M10.5845 0.626953H2.08713C1.30112 0.626953 0.670898 1.26426 0.670898 2.04319V11.9568C0.670898 12.7357 1.30112 13.373 2.08713 13.373H12.0008C12.7797 13.373 13.417 12.7357 13.417 11.9568V3.45942L10.5845 0.626953ZM7.04395 11.9568C5.86847 11.9568 4.9196 11.0079 4.9196 9.83247C4.9196 8.65699 5.86847 7.70812 7.04395 7.70812C8.21942 7.70812 9.16829 8.65699 9.16829 9.83247C9.16829 11.0079 8.21942 11.9568 7.04395 11.9568ZM9.16829 4.87565H2.08713V2.04319H9.16829V4.87565Z",fill:"currentColor"})})}),cA=e=>P(Zn,{...e,children:Fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 44 44",fill:"none",children:[P("path",{d:"M25.6673 7.33337H18.334V14.6667H25.6673V7.33337Z",fill:"currentColor"}),P("path",{d:"M14.6673 18.3334H7.33398V25.6667H14.6673V18.3334Z",fill:"currentColor"}),P("path",{d:"M25.6673 18.3334H18.334V25.6667H25.6673V18.3334Z",fill:"currentColor"}),P("path",{d:"M36.6673 18.3334H29.334V25.6667H36.6673V18.3334Z",fill:"currentColor"}),P("path",{d:"M18.334 29.3334H25.6673V36.6667H18.334V29.3334Z",fill:"currentColor"}),P("path",{d:"M7.33398 9.16671C7.33398 8.15419 8.1548 7.33337 9.16732 7.33337H14.6673V14.6667H7.33398V9.16671Z",fill:"currentColor"}),P("path",{d:"M14.6673 29.3334H7.33398V34.8334C7.33398 35.8459 8.1548 36.6667 9.16732 36.6667H14.6673V29.3334Z",fill:"currentColor"}),P("path",{d:"M29.334 29.3334H36.6673V34.8334C36.6673 35.8459 35.8465 36.6667 34.834 36.6667H29.334V29.3334Z",fill:"currentColor"}),P("path",{d:"M34.834 7.33337H29.334V14.6667H36.6673V9.16671C36.6673 8.15419 35.8465 7.33337 34.834 7.33337Z",fill:"currentColor"})]})}),OZ=e=>P(Zn,{...e,children:P("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",children:Fe("g",{fill:"currentColor",children:[P("path",{d:"M0.222524 14.9482L0.109375 2.60168L5.23864 0.272461V12.5695L0.222524 14.9482Z"}),P("path",{d:"M10.3484 14.932L10.3047 2.60168L15.434 0.272461V12.5695L10.3484 14.932Z"}),P("path",{d:"M10.3474 2.62671L5.2411 0.285156L5.21289 1.49825L10.3474 3.8398V2.62671Z"}),P("path",{d:"M10.3474 13.7136L5.2411 11.3721L5.21289 12.5852L10.3474 14.9267V13.7136Z"})]})})}),RZ=e=>P(Zn,{...e,children:Fe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[P("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20.4332C16.6575 20.4332 20.4332 16.6575 20.4332 12C20.4332 7.34247 16.6575 3.56679 12 3.56679C7.34247 3.56679 3.56679 7.34247 3.56679 12C3.56679 16.6575 7.34247 20.4332 12 20.4332ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"}),P("path",{d:"M7.64543 10.8723H16.4005V13.1164H7.64543V10.8723Z",fill:"currentColor"})]})}),PZ=e=>P(Zn,{...e,children:P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 9 10",fill:"none",children:P("path",{d:"M8.80078 4.91772L0.506469 9.70645L0.50647 0.129001L8.80078 4.91772Z",fill:"currentColor"})})}),NZ=e=>P(Zn,{...e,children:Fe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[P("path",{d:"M10.9058 10.8723H7.64543V13.1164H10.9058V16.3635H13.1482V13.1164H16.4005V10.8723H13.1482V7.62061H10.9058V10.8723Z",fill:"currentColor"}),P("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM20.4332 12C20.4332 16.6575 16.6575 20.4332 12 20.4332C7.34247 20.4332 3.56679 16.6575 3.56679 12C3.56679 7.34247 7.34247 3.56679 12 3.56679C16.6575 3.56679 20.4332 7.34247 20.4332 12Z",fill:"currentColor"})]})}),kZ=e=>P(Dm,{container:!0,...e,children:e.children}),MZ=e=>P(Dm,{...e,children:e.children}),LZ=()=>{const e=bn();return P("svg",{xmlns:"http://www.w3.org/2000/svg",width:"141",height:"30",viewBox:"0 0 141 30",fill:"none",children:Fe("g",{fill:e.palette.mode==="dark"?"white":"black",children:[P("path",{d:"M5.00326 4.72116V2.92553H9.2337V4.96003C9.2337 6.87593 9.2337 8.51177 6.52049 8.51177V8.91208H15.0604V12.5841H9.11344V23.0004C9.11344 24.9954 9.27324 25.315 11.2698 25.315H14.6618V28.8667H9.91241C6.4793 28.8667 5.00326 27.4697 5.00326 23.918V12.5841H0.253906V8.91208C5.24213 8.91208 5.00326 7.31577 5.00326 4.72116Z"}),P("path",{d:"M16.2598 18.8492C16.2598 13.1427 20.65 8.43282 26.8754 8.43282C33.2606 8.43282 37.412 13.342 37.412 20.1259H20.5297C20.8493 23.1999 23.3237 25.6742 27.1143 25.6742C29.5095 25.6742 31.745 24.6759 32.8224 22.5211H37.0133C36.1353 26.3513 32.3826 29.3857 27.0747 29.3857C20.4507 29.3857 16.2598 24.6364 16.2598 18.8492ZM32.8619 17.0931C32.4633 14.2596 29.9494 12.1048 26.7551 12.1048C23.6037 12.1048 21.0882 14.2596 20.6895 17.0931H32.8619Z"}),P("path",{d:"M40.4043 0.929094H44.5557V28.8652H40.4043V0.929094Z"}),P("path",{d:"M50.8972 0.929586C52.2941 0.929586 53.411 1.96743 53.411 3.3644C53.411 4.80091 52.2941 5.83875 50.8972 5.83875C49.4607 5.83875 48.3438 4.80091 48.3438 3.3644C48.3438 1.96743 49.4607 0.929586 50.8972 0.929586ZM48.8215 8.9111H52.9712V28.8657H48.8215V8.9111Z"}),P("path",{d:"M72.4084 21.8029H76.5994C75.3622 26.1536 71.2503 29.3462 66.3824 29.3462C60.4354 29.3462 55.6465 24.6364 55.6465 18.8887C55.6465 13.1426 60.4354 8.43281 66.3824 8.43281C71.2503 8.43281 75.3622 11.6254 76.5994 15.9761H72.4084C71.3311 13.6616 69.1763 12.1048 66.4615 12.1048C62.6313 12.1048 59.7962 15.1376 59.7962 18.8491C59.7962 22.6414 62.6313 25.6742 66.4615 25.6742C69.1763 25.6742 71.3311 24.1174 72.4084 21.8029Z"}),P("path",{d:"M79.1914 18.8492C79.1914 13.1427 83.5816 8.43282 89.807 8.43282C96.1922 8.43282 100.344 13.342 100.344 20.1259H83.4614C83.781 23.1999 86.2553 25.6742 90.0476 25.6742C92.4412 25.6742 94.6767 24.6759 95.754 22.5211H99.9449C99.0669 26.3513 95.3142 29.3857 90.0064 29.3857C83.3823 29.3857 79.1914 24.6364 79.1914 18.8492ZM95.7936 17.0931C95.3949 14.2596 92.881 12.1048 89.6868 12.1048C86.5354 12.1048 84.0198 14.2596 83.6212 17.0931H95.7936Z"}),P("path",{d:"M107.689 8.91209V13.3023H108.087C108.886 10.7473 111.241 8.4327 115.151 8.4327C120.42 8.4327 123.971 13.0223 123.971 18.8886V28.8667H119.861V18.8886C119.861 14.7784 117.187 12.1047 113.875 12.1047C110.402 12.1047 107.689 15.0584 107.689 18.8886V28.8667H103.539V8.91209H107.689Z"}),P("path",{d:"M129.958 4.72116V2.92553H134.189V4.96003C134.189 6.87593 134.189 8.51177 131.476 8.51177V8.91208H140.016V12.5841H134.069V23.0004C134.069 24.9954 134.228 25.315 136.225 25.315H139.617V28.8667H134.867C131.434 28.8667 129.958 27.4697 129.958 23.918V12.5841H125.209V8.91208C130.197 8.91208 129.958 7.31577 129.958 4.72116Z"})]})})},na=({variant:e="body1",...t})=>P(kn,{component:"p",variant:e,...t}),DZ=({variant:e="h1",...t})=>P(kn,{component:"h1",variant:e,...t}),mp=({variant:e="h2",...t})=>P(kn,{component:"h2",variant:e,...t}),VZ=({variant:e="h3",...t})=>P(kn,{component:"h3",variant:e,...t}),BZ=({variant:e="h4",...t})=>P(kn,{component:"h4",variant:e,...t}),FZ=({variant:e="h5",...t})=>P(kn,{component:"h5",variant:e,...t}),WZ=({variant:e="h6",...t})=>P(kn,{component:"h6",variant:e,...t}),Fu=ke.forwardRef((e,t)=>P(_c,{ref:t,...e})),ra=e=>P(Ri,{...e,children:e.children});function uA(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}const dA=Xe.object({id:Xe.string(),name:Xe.string(),url:Xe.string(),icon:Xe.string()});var zZ=process.env.NODE_ENV==="production"?{name:"1ud7tr0",styles:"display:flex;flex-direction:column;align-items:center;row-gap:4px;width:100%"}:{name:"eehrjg-AppSwitch",styles:"display:flex;flex-direction:column;align-items:center;row-gap:4px;width:100%;label:AppSwitch;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy92MS9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9BcHBTd2l0Y2gvQXBwU3dpdGNoLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE4RWdCIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy92MS9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9BcHBTd2l0Y2gvQXBwU3dpdGNoLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCB6b2QgZnJvbSBcInpvZFwiO1xuaW1wb3J0IE1VSU1lbnUgZnJvbSBcIkBtdWkvbWF0ZXJpYWwvTWVudVwiO1xuaW1wb3J0IE1VSU1lbnVJdGVtIGZyb20gXCJAbXVpL21hdGVyaWFsL01lbnVJdGVtXCI7XG5cbmltcG9ydCB7IFRleHQgfSBmcm9tIFwiLi4vVGV4dC9UZXh0XCI7XG5pbXBvcnQgSWNvbkJ1dHRvbiBmcm9tIFwiLi4vLi4vaW5wdXRzL0J1dHRvbi9JY29uQnV0dG9uXCI7XG5pbXBvcnQgR3JpZEljb24gZnJvbSBcIi4uL0ljb25zL0dyaWRJY29uXCI7XG5pbXBvcnQgRmxleEJveCBmcm9tIFwiLi4vLi4vbGF5b3V0L0ZsZXhCb3hcIjtcblxuZXhwb3J0IGNvbnN0IEFwcFN3aXRjaExpYnJhcnlTY2hlbWEgPSB6b2Qub2JqZWN0KHtcbiAgaWQ6IHpvZC5zdHJpbmcoKSxcbiAgbmFtZTogem9kLnN0cmluZygpLFxuICB1cmw6IHpvZC5zdHJpbmcoKSxcbiAgaWNvbjogem9kLnN0cmluZygpLFxufSk7XG5cbmV4cG9ydCB0eXBlIEFwcFN3aXRjaExpYnJhcnlUeXBlID0gem9kLmluZmVyPHR5cGVvZiBBcHBTd2l0Y2hMaWJyYXJ5U2NoZW1hPltdO1xuXG5jb25zdCBBcHBTd2l0Y2g6IFJlYWN0LkZDPHsgYXBwczogQXBwU3dpdGNoTGlicmFyeVR5cGUgfT4gPSAoeyBhcHBzIH0pID0+IHtcbiAgY29uc3QgW2FuY2hvckVsLCBzZXRBbmNob3JFbF0gPSBSZWFjdC51c2VTdGF0ZTxudWxsIHwgSFRNTEVsZW1lbnQ+KG51bGwpO1xuXG4gIGNvbnN0IG9wZW4gPSBCb29sZWFuKGFuY2hvckVsKTtcblxuICBjb25zdCBoYW5kbGVDbGljayA9IChldmVudDogUmVhY3QuTW91c2VFdmVudDxIVE1MQnV0dG9uRWxlbWVudD4pID0+IHtcbiAgICBzZXRBbmNob3JFbChldmVudC5jdXJyZW50VGFyZ2V0KTtcbiAgfTtcblxuICBjb25zdCBoYW5kbGVDbG9zZSA9ICgpID0+IHtcbiAgICBzZXRBbmNob3JFbChudWxsKTtcbiAgfTtcblxuICByZXR1cm4gKFxuICAgIDxkaXY+XG4gICAgICA8SWNvbkJ1dHRvblxuICAgICAgICBhcmlhLWxhYmVsPVwiYXBwLXN3aXRjaFwiXG4gICAgICAgIGFyaWEtY29udHJvbHM9e29wZW4gPyBcImFwcC1zd2l0Y2gtbWVudVwiIDogdW5kZWZpbmVkfVxuICAgICAgICBhcmlhLWhhc3BvcHVwPVwidHJ1ZVwiXG4gICAgICAgIGFyaWEtZXhwYW5kZWQ9e29wZW4gPyBcInRydWVcIiA6IHVuZGVmaW5lZH1cbiAgICAgICAgb25DbGljaz17aGFuZGxlQ2xpY2t9XG4gICAgICAgIGNvbG9yPVwicHJpbWFyeVwiXG4gICAgICA+XG4gICAgICAgIDxHcmlkSWNvbiAvPlxuICAgICAgPC9JY29uQnV0dG9uPlxuICAgICAgPE1VSU1lbnVcbiAgICAgICAgaWQ9XCJhcHAtc3dpdGNoLW1lbnVcIlxuICAgICAgICBhbmNob3JFbD17YW5jaG9yRWx9XG4gICAgICAgIG9wZW49e29wZW59XG4gICAgICAgIG9uQ2xvc2U9e2hhbmRsZUNsb3NlfVxuICAgICAgICBNZW51TGlzdFByb3BzPXt7XG4gICAgICAgICAgXCJhcmlhLWxhYmVsbGVkYnlcIjogXCJhcHAtc3dpdGNoLWJ1dHRvblwiLFxuICAgICAgICB9fVxuICAgICAgPlxuICAgICAgICB7YXBwcy5tYXAoKGFwcCwgaW5kZXgpID0+IHtcbiAgICAgICAgICBjb25zdCB2YWxpZGF0ZUFwcHNTY2hlbWEgPSBBcHBTd2l0Y2hMaWJyYXJ5U2NoZW1hLnNhZmVQYXJzZShhcHApO1xuXG4gICAgICAgICAgaWYgKCF2YWxpZGF0ZUFwcHNTY2hlbWEuc3VjY2Vzcykge1xuICAgICAgICAgICAgY29uc3QgZm9ybWF0dGVkRXJyb3JzID0gdmFsaWRhdGVBcHBzU2NoZW1hLmVycm9yLmlzc3Vlcy5tYXAoXG4gICAgICAgICAgICAgIChpc3N1ZSkgPT4ge1xuICAgICAgICAgICAgICAgIHJldHVybiBgJHtpc3N1ZS5wYXRoLnRvU3RyaW5nKCkucmVwbGFjZShcIixcIiwgXCIgPiBcIil9OiAke2lzc3VlLm1lc3NhZ2V9YDtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIGNvbnN0IGVycm9yTXNnID0gZm9ybWF0dGVkRXJyb3JzLmpvaW4oXCJcXG5cIik7XG4gICAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgICA8RmxleEJveCBrZXk9e2Vycm9yTXNnfSByb2xlPVwibWVudWl0ZW1cIj5cbiAgICAgICAgICAgICAgICA8VGV4dD5cbiAgICAgICAgICAgICAgICAgIE1pc2NvbmZpZ3VyYXRpb24gZXJyb3I6IEFwcCBTd2l0Y2ggbGlicmFyeXtcIiBcIn1cbiAgICAgICAgICAgICAgICAgIHthcHA/LmlkID8gYGZvciBpZCAke2FwcC5pZH1gIDogYGF0IGluZGV4ICR7aW5kZXh9YH1cbiAgICAgICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICAgICAgPFRleHQ+e2Vycm9yTXNnfTwvVGV4dD5cbiAgICAgICAgICAgICAgPC9GbGV4Qm94PlxuICAgICAgICAgICAgKTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgPE1VSU1lbnVJdGVtIGtleT17YXBwLmlkfSBvbkNsaWNrPXtoYW5kbGVDbG9zZX0+XG4gICAgICAgICAgICAgIDxhXG4gICAgICAgICAgICAgICAgaHJlZj17YXBwLnVybH1cbiAgICAgICAgICAgICAgICBjc3M9e3tcbiAgICAgICAgICAgICAgICAgIGRpc3BsYXk6IFwiZmxleFwiLFxuICAgICAgICAgICAgICAgICAgZmxleERpcmVjdGlvbjogXCJjb2x1bW5cIixcbiAgICAgICAgICAgICAgICAgIGFsaWduSXRlbXM6IFwiY2VudGVyXCIsXG4gICAgICAgICAgICAgICAgICByb3dHYXA6IDQsXG4gICAgICAgICAgICAgICAgICB3aWR0aDogXCIxMDAlXCJcbiAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgPGltZ1xuICAgICAgICAgICAgICAgICAgc3JjPXthcHAuaWNvbn1cbiAgICAgICAgICAgICAgICAgIGFsdD17YCR7YXBwLm5hbWV9IGljb25gfVxuICAgICAgICAgICAgICAgICAgY3NzPXt7IHdpZHRoOiAyNSwgaGVpZ2h0OiAyNSB9fVxuICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAge2FwcC5uYW1lfVxuICAgICAgICAgICAgICA8L2E+XG4gICAgICAgICAgICA8L01VSU1lbnVJdGVtPlxuICAgICAgICAgICk7XG4gICAgICAgIH0pfVxuICAgICAgPC9NVUlNZW51PlxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgQXBwU3dpdGNoO1xuIl19 */",toString:uA},GZ=process.env.NODE_ENV==="production"?{name:"1k1rh22",styles:"width:25px;height:25px"}:{name:"9qz4wy-AppSwitch",styles:"width:25px;height:25px;label:AppSwitch;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy92MS9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9BcHBTd2l0Y2gvQXBwU3dpdGNoLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5RmtCIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy92MS9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9BcHBTd2l0Y2gvQXBwU3dpdGNoLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCB6b2QgZnJvbSBcInpvZFwiO1xuaW1wb3J0IE1VSU1lbnUgZnJvbSBcIkBtdWkvbWF0ZXJpYWwvTWVudVwiO1xuaW1wb3J0IE1VSU1lbnVJdGVtIGZyb20gXCJAbXVpL21hdGVyaWFsL01lbnVJdGVtXCI7XG5cbmltcG9ydCB7IFRleHQgfSBmcm9tIFwiLi4vVGV4dC9UZXh0XCI7XG5pbXBvcnQgSWNvbkJ1dHRvbiBmcm9tIFwiLi4vLi4vaW5wdXRzL0J1dHRvbi9JY29uQnV0dG9uXCI7XG5pbXBvcnQgR3JpZEljb24gZnJvbSBcIi4uL0ljb25zL0dyaWRJY29uXCI7XG5pbXBvcnQgRmxleEJveCBmcm9tIFwiLi4vLi4vbGF5b3V0L0ZsZXhCb3hcIjtcblxuZXhwb3J0IGNvbnN0IEFwcFN3aXRjaExpYnJhcnlTY2hlbWEgPSB6b2Qub2JqZWN0KHtcbiAgaWQ6IHpvZC5zdHJpbmcoKSxcbiAgbmFtZTogem9kLnN0cmluZygpLFxuICB1cmw6IHpvZC5zdHJpbmcoKSxcbiAgaWNvbjogem9kLnN0cmluZygpLFxufSk7XG5cbmV4cG9ydCB0eXBlIEFwcFN3aXRjaExpYnJhcnlUeXBlID0gem9kLmluZmVyPHR5cGVvZiBBcHBTd2l0Y2hMaWJyYXJ5U2NoZW1hPltdO1xuXG5jb25zdCBBcHBTd2l0Y2g6IFJlYWN0LkZDPHsgYXBwczogQXBwU3dpdGNoTGlicmFyeVR5cGUgfT4gPSAoeyBhcHBzIH0pID0+IHtcbiAgY29uc3QgW2FuY2hvckVsLCBzZXRBbmNob3JFbF0gPSBSZWFjdC51c2VTdGF0ZTxudWxsIHwgSFRNTEVsZW1lbnQ+KG51bGwpO1xuXG4gIGNvbnN0IG9wZW4gPSBCb29sZWFuKGFuY2hvckVsKTtcblxuICBjb25zdCBoYW5kbGVDbGljayA9IChldmVudDogUmVhY3QuTW91c2VFdmVudDxIVE1MQnV0dG9uRWxlbWVudD4pID0+IHtcbiAgICBzZXRBbmNob3JFbChldmVudC5jdXJyZW50VGFyZ2V0KTtcbiAgfTtcblxuICBjb25zdCBoYW5kbGVDbG9zZSA9ICgpID0+IHtcbiAgICBzZXRBbmNob3JFbChudWxsKTtcbiAgfTtcblxuICByZXR1cm4gKFxuICAgIDxkaXY+XG4gICAgICA8SWNvbkJ1dHRvblxuICAgICAgICBhcmlhLWxhYmVsPVwiYXBwLXN3aXRjaFwiXG4gICAgICAgIGFyaWEtY29udHJvbHM9e29wZW4gPyBcImFwcC1zd2l0Y2gtbWVudVwiIDogdW5kZWZpbmVkfVxuICAgICAgICBhcmlhLWhhc3BvcHVwPVwidHJ1ZVwiXG4gICAgICAgIGFyaWEtZXhwYW5kZWQ9e29wZW4gPyBcInRydWVcIiA6IHVuZGVmaW5lZH1cbiAgICAgICAgb25DbGljaz17aGFuZGxlQ2xpY2t9XG4gICAgICAgIGNvbG9yPVwicHJpbWFyeVwiXG4gICAgICA+XG4gICAgICAgIDxHcmlkSWNvbiAvPlxuICAgICAgPC9JY29uQnV0dG9uPlxuICAgICAgPE1VSU1lbnVcbiAgICAgICAgaWQ9XCJhcHAtc3dpdGNoLW1lbnVcIlxuICAgICAgICBhbmNob3JFbD17YW5jaG9yRWx9XG4gICAgICAgIG9wZW49e29wZW59XG4gICAgICAgIG9uQ2xvc2U9e2hhbmRsZUNsb3NlfVxuICAgICAgICBNZW51TGlzdFByb3BzPXt7XG4gICAgICAgICAgXCJhcmlhLWxhYmVsbGVkYnlcIjogXCJhcHAtc3dpdGNoLWJ1dHRvblwiLFxuICAgICAgICB9fVxuICAgICAgPlxuICAgICAgICB7YXBwcy5tYXAoKGFwcCwgaW5kZXgpID0+IHtcbiAgICAgICAgICBjb25zdCB2YWxpZGF0ZUFwcHNTY2hlbWEgPSBBcHBTd2l0Y2hMaWJyYXJ5U2NoZW1hLnNhZmVQYXJzZShhcHApO1xuXG4gICAgICAgICAgaWYgKCF2YWxpZGF0ZUFwcHNTY2hlbWEuc3VjY2Vzcykge1xuICAgICAgICAgICAgY29uc3QgZm9ybWF0dGVkRXJyb3JzID0gdmFsaWRhdGVBcHBzU2NoZW1hLmVycm9yLmlzc3Vlcy5tYXAoXG4gICAgICAgICAgICAgIChpc3N1ZSkgPT4ge1xuICAgICAgICAgICAgICAgIHJldHVybiBgJHtpc3N1ZS5wYXRoLnRvU3RyaW5nKCkucmVwbGFjZShcIixcIiwgXCIgPiBcIil9OiAke2lzc3VlLm1lc3NhZ2V9YDtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIGNvbnN0IGVycm9yTXNnID0gZm9ybWF0dGVkRXJyb3JzLmpvaW4oXCJcXG5cIik7XG4gICAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgICA8RmxleEJveCBrZXk9e2Vycm9yTXNnfSByb2xlPVwibWVudWl0ZW1cIj5cbiAgICAgICAgICAgICAgICA8VGV4dD5cbiAgICAgICAgICAgICAgICAgIE1pc2NvbmZpZ3VyYXRpb24gZXJyb3I6IEFwcCBTd2l0Y2ggbGlicmFyeXtcIiBcIn1cbiAgICAgICAgICAgICAgICAgIHthcHA/LmlkID8gYGZvciBpZCAke2FwcC5pZH1gIDogYGF0IGluZGV4ICR7aW5kZXh9YH1cbiAgICAgICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICAgICAgPFRleHQ+e2Vycm9yTXNnfTwvVGV4dD5cbiAgICAgICAgICAgICAgPC9GbGV4Qm94PlxuICAgICAgICAgICAgKTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgPE1VSU1lbnVJdGVtIGtleT17YXBwLmlkfSBvbkNsaWNrPXtoYW5kbGVDbG9zZX0+XG4gICAgICAgICAgICAgIDxhXG4gICAgICAgICAgICAgICAgaHJlZj17YXBwLnVybH1cbiAgICAgICAgICAgICAgICBjc3M9e3tcbiAgICAgICAgICAgICAgICAgIGRpc3BsYXk6IFwiZmxleFwiLFxuICAgICAgICAgICAgICAgICAgZmxleERpcmVjdGlvbjogXCJjb2x1bW5cIixcbiAgICAgICAgICAgICAgICAgIGFsaWduSXRlbXM6IFwiY2VudGVyXCIsXG4gICAgICAgICAgICAgICAgICByb3dHYXA6IDQsXG4gICAgICAgICAgICAgICAgICB3aWR0aDogXCIxMDAlXCJcbiAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgPGltZ1xuICAgICAgICAgICAgICAgICAgc3JjPXthcHAuaWNvbn1cbiAgICAgICAgICAgICAgICAgIGFsdD17YCR7YXBwLm5hbWV9IGljb25gfVxuICAgICAgICAgICAgICAgICAgY3NzPXt7IHdpZHRoOiAyNSwgaGVpZ2h0OiAyNSB9fVxuICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAge2FwcC5uYW1lfVxuICAgICAgICAgICAgICA8L2E+XG4gICAgICAgICAgICA8L01VSU1lbnVJdGVtPlxuICAgICAgICAgICk7XG4gICAgICAgIH0pfVxuICAgICAgPC9NVUlNZW51PlxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgQXBwU3dpdGNoO1xuIl19 */",toString:uA};const jZ=({apps:e})=>{const[t,n]=ke.useState(null),r=!!t,o=l=>{n(l.currentTarget)},s=()=>{n(null)};return Fe("div",{children:[P(Fu,{"aria-label":"app-switch","aria-controls":r?"app-switch-menu":void 0,"aria-haspopup":"true","aria-expanded":r?"true":void 0,onClick:o,color:"primary",children:P(cA,{})}),P(mu,{id:"app-switch-menu",anchorEl:t,open:r,onClose:s,MenuListProps:{"aria-labelledby":"app-switch-button"},children:e.map((l,c)=>{const d=dA.safeParse(l);if(!d.success){const p=d.error.issues.map(g=>`${g.path.toString().replace(","," > ")}: ${g.message}`).join(`
|
|
929
|
+
}`;var Rt=OS(function(){return Ht(k,rt+"return "+Se).apply(n,Z)});if(Rt.source=Se,ov(Rt))throw Rt;return Rt}function l$(a){return tn(a).toLowerCase()}function c$(a){return tn(a).toUpperCase()}function u$(a,u,h){if(a=tn(a),a&&(h||u===n))return B5(a);if(!a||!(u=Jr(u)))return a;var x=Fo(a),R=Fo(u),k=F5(x,R),Z=W5(x,R)+1;return Ss(x,k,Z).join("")}function d$(a,u,h){if(a=tn(a),a&&(h||u===n))return a.slice(0,G5(a)+1);if(!a||!(u=Jr(u)))return a;var x=Fo(a),R=W5(x,Fo(u))+1;return Ss(x,0,R).join("")}function f$(a,u,h){if(a=tn(a),a&&(h||u===n))return a.replace(Mn,"");if(!a||!(u=Jr(u)))return a;var x=Fo(a),R=F5(x,Fo(u));return Ss(x,R).join("")}function p$(a,u){var h=j,x=X;if(In(u)){var R="separator"in u?u.separator:R;h="length"in u?St(u.length):h,x="omission"in u?Jr(u.omission):x}a=tn(a);var k=a.length;if(Ul(a)){var Z=Fo(a);k=Z.length}if(h>=k)return a;var K=h-Yl(x);if(K<1)return x;var te=Z?Ss(Z,0,K).join(""):a.slice(0,K);if(R===n)return te+x;if(Z&&(K+=te.length-K),iv(R)){if(a.slice(K).search(R)){var be,ve=te;for(R.global||(R=Cb(R.source,tn(ne.exec(R))+"g")),R.lastIndex=0;be=R.exec(ve);)var Se=be.index;te=te.slice(0,Se===n?K:Se)}}else if(a.indexOf(Jr(R),K)!=K){var ze=te.lastIndexOf(R);ze>-1&&(te=te.slice(0,ze))}return te+x}function h$(a){return a=tn(a),a&&dn.test(a)?a.replace(zt,ZY):a}var g$=ec(function(a,u,h){return a+(h?" ":"")+u.toUpperCase()}),lv=R3("toUpperCase");function ES(a,u,h){return a=tn(a),u=h?n:u,u===n?FY(a)?UY(a):RY(a):a.match(u)||[]}var OS=Pt(function(a,u){try{return _r(a,n,u)}catch(h){return ov(h)?h:new mt(h)}}),m$=Fi(function(a,u){return go(u,function(h){h=mi(h),Vi(a,h,nv(a[h],a))}),a});function b$(a){var u=a==null?0:a.length,h=lt();return a=u?vn(a,function(x){if(typeof x[1]!="function")throw new mo(l);return[h(x[0]),x[1]]}):[],Pt(function(x){for(var R=-1;++R<u;){var k=a[R];if(_r(k[0],this,x))return _r(k[1],this,x)}})}function v$(a){return Z_(vo(a,g))}function cv(a){return function(){return a}}function y$(a,u){return a==null||a!==a?u:a}var x$=N3(),C$=N3(!0);function kr(a){return a}function uv(a){return a3(typeof a=="function"?a:vo(a,g))}function I$(a){return c3(vo(a,g))}function w$(a,u){return u3(a,vo(u,g))}var A$=Pt(function(a,u){return function(h){return ed(h,a,u)}}),S$=Pt(function(a,u){return function(h){return ed(a,h,u)}});function dv(a,u,h){var x=Hn(u),R=nh(u,x);h==null&&!(In(u)&&(R.length||!x.length))&&(h=u,u=a,a=this,R=nh(u,Hn(u)));var k=!(In(h)&&"chain"in h)||!!h.chain,Z=zi(a);return go(R,function(K){var te=u[K];a[K]=te,Z&&(a.prototype[K]=function(){var be=this.__chain__;if(k||be){var ve=a(this.__wrapped__),Se=ve.__actions__=Rr(this.__actions__);return Se.push({func:te,args:arguments,thisArg:a}),ve.__chain__=be,ve}return te.apply(a,ys([this.value()],arguments))})}),a}function T$(){return qn._===this&&(qn._=QY),this}function fv(){}function E$(a){return a=St(a),Pt(function(u){return d3(u,a)})}var O$=Zb(vn),R$=Zb(k5),P$=Zb(hb);function RS(a){return Jb(a)?gb(mi(a)):sq(a)}function N$(a){return function(u){return a==null?n:va(a,u)}}var k$=M3(),M$=M3(!0);function pv(){return[]}function hv(){return!1}function L$(){return{}}function D$(){return""}function V$(){return!0}function B$(a,u){if(a=St(a),a<1||a>_)return[];var h=re,x=or(a,re);u=lt(u),a-=re;for(var R=vb(x,u);++h<a;)u(h);return R}function F$(a){return vt(a)?vn(a,mi):Kr(a)?[a]:Rr(q3(tn(a)))}function W$(a){var u=++JY;return tn(a)+u}var z$=lh(function(a,u){return a+u},0),G$=Xb("ceil"),j$=lh(function(a,u){return a/u},1),Z$=Xb("floor");function X$(a){return a&&a.length?th(a,kr,Rb):n}function H$(a,u){return a&&a.length?th(a,lt(u,2),Rb):n}function U$(a){return D5(a,kr)}function Y$(a,u){return D5(a,lt(u,2))}function _$(a){return a&&a.length?th(a,kr,Mb):n}function q$(a,u){return a&&a.length?th(a,lt(u,2),Mb):n}var J$=lh(function(a,u){return a*u},1),K$=Xb("round"),Q$=lh(function(a,u){return a-u},0);function $$(a){return a&&a.length?bb(a,kr):0}function eee(a,u){return a&&a.length?bb(a,lt(u,2)):0}return N.after=IK,N.ary=sS,N.assign=cQ,N.assignIn=xS,N.assignInWith=Ch,N.assignWith=uQ,N.at=dQ,N.before=aS,N.bind=nv,N.bindAll=m$,N.bindKey=lS,N.castArray=LK,N.chain=rS,N.chunk=Zq,N.compact=Xq,N.concat=Hq,N.cond=b$,N.conforms=v$,N.constant=cv,N.countBy=$J,N.create=fQ,N.curry=cS,N.curryRight=uS,N.debounce=dS,N.defaults=pQ,N.defaultsDeep=hQ,N.defer=wK,N.delay=AK,N.difference=Uq,N.differenceBy=Yq,N.differenceWith=_q,N.drop=qq,N.dropRight=Jq,N.dropRightWhile=Kq,N.dropWhile=Qq,N.fill=$q,N.filter=tK,N.flatMap=oK,N.flatMapDeep=iK,N.flatMapDepth=sK,N.flatten=$3,N.flattenDeep=eJ,N.flattenDepth=tJ,N.flip=SK,N.flow=x$,N.flowRight=C$,N.fromPairs=nJ,N.functions=CQ,N.functionsIn=IQ,N.groupBy=aK,N.initial=oJ,N.intersection=iJ,N.intersectionBy=sJ,N.intersectionWith=aJ,N.invert=AQ,N.invertBy=SQ,N.invokeMap=cK,N.iteratee=uv,N.keyBy=uK,N.keys=Hn,N.keysIn=Nr,N.map=gh,N.mapKeys=EQ,N.mapValues=OQ,N.matches=I$,N.matchesProperty=w$,N.memoize=bh,N.merge=RQ,N.mergeWith=CS,N.method=A$,N.methodOf=S$,N.mixin=dv,N.negate=vh,N.nthArg=E$,N.omit=PQ,N.omitBy=NQ,N.once=TK,N.orderBy=dK,N.over=O$,N.overArgs=EK,N.overEvery=R$,N.overSome=P$,N.partial=rv,N.partialRight=fS,N.partition=fK,N.pick=kQ,N.pickBy=IS,N.property=RS,N.propertyOf=N$,N.pull=dJ,N.pullAll=tS,N.pullAllBy=fJ,N.pullAllWith=pJ,N.pullAt=hJ,N.range=k$,N.rangeRight=M$,N.rearg=OK,N.reject=gK,N.remove=gJ,N.rest=RK,N.reverse=ev,N.sampleSize=bK,N.set=LQ,N.setWith=DQ,N.shuffle=vK,N.slice=mJ,N.sortBy=CK,N.sortedUniq=wJ,N.sortedUniqBy=AJ,N.split=o$,N.spread=PK,N.tail=SJ,N.take=TJ,N.takeRight=EJ,N.takeRightWhile=OJ,N.takeWhile=RJ,N.tap=XJ,N.throttle=NK,N.thru=hh,N.toArray=bS,N.toPairs=wS,N.toPairsIn=AS,N.toPath=F$,N.toPlainObject=yS,N.transform=VQ,N.unary=kK,N.union=PJ,N.unionBy=NJ,N.unionWith=kJ,N.uniq=MJ,N.uniqBy=LJ,N.uniqWith=DJ,N.unset=BQ,N.unzip=tv,N.unzipWith=nS,N.update=FQ,N.updateWith=WQ,N.values=rc,N.valuesIn=zQ,N.without=VJ,N.words=ES,N.wrap=MK,N.xor=BJ,N.xorBy=FJ,N.xorWith=WJ,N.zip=zJ,N.zipObject=GJ,N.zipObjectDeep=jJ,N.zipWith=ZJ,N.entries=wS,N.entriesIn=AS,N.extend=xS,N.extendWith=Ch,dv(N,N),N.add=z$,N.attempt=OS,N.camelCase=XQ,N.capitalize=SS,N.ceil=G$,N.clamp=GQ,N.clone=DK,N.cloneDeep=BK,N.cloneDeepWith=FK,N.cloneWith=VK,N.conformsTo=WK,N.deburr=TS,N.defaultTo=y$,N.divide=j$,N.endsWith=HQ,N.eq=zo,N.escape=UQ,N.escapeRegExp=YQ,N.every=eK,N.find=nK,N.findIndex=K3,N.findKey=gQ,N.findLast=rK,N.findLastIndex=Q3,N.findLastKey=mQ,N.floor=Z$,N.forEach=oS,N.forEachRight=iS,N.forIn=bQ,N.forInRight=vQ,N.forOwn=yQ,N.forOwnRight=xQ,N.get=sv,N.gt=zK,N.gte=GK,N.has=wQ,N.hasIn=av,N.head=eS,N.identity=kr,N.includes=lK,N.indexOf=rJ,N.inRange=jQ,N.invoke=TQ,N.isArguments=Ca,N.isArray=vt,N.isArrayBuffer=jK,N.isArrayLike=Pr,N.isArrayLikeObject=Ln,N.isBoolean=ZK,N.isBuffer=Ts,N.isDate=XK,N.isElement=HK,N.isEmpty=UK,N.isEqual=YK,N.isEqualWith=_K,N.isError=ov,N.isFinite=qK,N.isFunction=zi,N.isInteger=pS,N.isLength=yh,N.isMap=hS,N.isMatch=JK,N.isMatchWith=KK,N.isNaN=QK,N.isNative=$K,N.isNil=tQ,N.isNull=eQ,N.isNumber=gS,N.isObject=In,N.isObjectLike=Rn,N.isPlainObject=sd,N.isRegExp=iv,N.isSafeInteger=nQ,N.isSet=mS,N.isString=xh,N.isSymbol=Kr,N.isTypedArray=nc,N.isUndefined=rQ,N.isWeakMap=oQ,N.isWeakSet=iQ,N.join=lJ,N.kebabCase=_Q,N.last=xo,N.lastIndexOf=cJ,N.lowerCase=qQ,N.lowerFirst=JQ,N.lt=sQ,N.lte=aQ,N.max=X$,N.maxBy=H$,N.mean=U$,N.meanBy=Y$,N.min=_$,N.minBy=q$,N.stubArray=pv,N.stubFalse=hv,N.stubObject=L$,N.stubString=D$,N.stubTrue=V$,N.multiply=J$,N.nth=uJ,N.noConflict=T$,N.noop=fv,N.now=mh,N.pad=KQ,N.padEnd=QQ,N.padStart=$Q,N.parseInt=e$,N.random=ZQ,N.reduce=pK,N.reduceRight=hK,N.repeat=t$,N.replace=n$,N.result=MQ,N.round=K$,N.runInContext=ee,N.sample=mK,N.size=yK,N.snakeCase=r$,N.some=xK,N.sortedIndex=bJ,N.sortedIndexBy=vJ,N.sortedIndexOf=yJ,N.sortedLastIndex=xJ,N.sortedLastIndexBy=CJ,N.sortedLastIndexOf=IJ,N.startCase=i$,N.startsWith=s$,N.subtract=Q$,N.sum=$$,N.sumBy=eee,N.template=a$,N.times=B$,N.toFinite=Gi,N.toInteger=St,N.toLength=vS,N.toLower=l$,N.toNumber=Co,N.toSafeInteger=lQ,N.toString=tn,N.toUpper=c$,N.trim=u$,N.trimEnd=d$,N.trimStart=f$,N.truncate=p$,N.unescape=h$,N.uniqueId=W$,N.upperCase=g$,N.upperFirst=lv,N.each=oS,N.eachRight=iS,N.first=eS,dv(N,function(){var a={};return hi(N,function(u,h){rn.call(N.prototype,h)||(a[h]=u)}),a}(),{chain:!1}),N.VERSION=r,go(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){N[a].placeholder=N}),go(["drop","take"],function(a,u){Mt.prototype[a]=function(h){h=h===n?1:jn(St(h),0);var x=this.__filtered__&&!u?new Mt(this):this.clone();return x.__filtered__?x.__takeCount__=or(h,x.__takeCount__):x.__views__.push({size:or(h,re),type:a+(x.__dir__<0?"Right":"")}),x},Mt.prototype[a+"Right"]=function(h){return this.reverse()[a](h).reverse()}}),go(["filter","map","takeWhile"],function(a,u){var h=u+1,x=h==Y||h==J;Mt.prototype[a]=function(R){var k=this.clone();return k.__iteratees__.push({iteratee:lt(R,3),type:h}),k.__filtered__=k.__filtered__||x,k}}),go(["head","last"],function(a,u){var h="take"+(u?"Right":"");Mt.prototype[a]=function(){return this[h](1).value()[0]}}),go(["initial","tail"],function(a,u){var h="drop"+(u?"":"Right");Mt.prototype[a]=function(){return this.__filtered__?new Mt(this):this[h](1)}}),Mt.prototype.compact=function(){return this.filter(kr)},Mt.prototype.find=function(a){return this.filter(a).head()},Mt.prototype.findLast=function(a){return this.reverse().find(a)},Mt.prototype.invokeMap=Pt(function(a,u){return typeof a=="function"?new Mt(this):this.map(function(h){return ed(h,a,u)})}),Mt.prototype.reject=function(a){return this.filter(vh(lt(a)))},Mt.prototype.slice=function(a,u){a=St(a);var h=this;return h.__filtered__&&(a>0||u<0)?new Mt(h):(a<0?h=h.takeRight(-a):a&&(h=h.drop(a)),u!==n&&(u=St(u),h=u<0?h.dropRight(-u):h.take(u-a)),h)},Mt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Mt.prototype.toArray=function(){return this.take(re)},hi(Mt.prototype,function(a,u){var h=/^(?:filter|find|map|reject)|While$/.test(u),x=/^(?:head|last)$/.test(u),R=N[x?"take"+(u=="last"?"Right":""):u],k=x||/^find/.test(u);R&&(N.prototype[u]=function(){var Z=this.__wrapped__,K=x?[1]:arguments,te=Z instanceof Mt,be=K[0],ve=te||vt(Z),Se=function(kt){var Dt=R.apply(N,ys([kt],K));return x&&ze?Dt[0]:Dt};ve&&h&&typeof be=="function"&&be.length!=1&&(te=ve=!1);var ze=this.__chain__,rt=!!this.__actions__.length,ct=k&&!ze,Rt=te&&!rt;if(!k&&ve){Z=Rt?Z:new Mt(this);var ut=a.apply(Z,K);return ut.__actions__.push({func:hh,args:[Se],thisArg:n}),new bo(ut,ze)}return ct&&Rt?a.apply(this,K):(ut=this.thru(Se),ct?x?ut.value()[0]:ut.value():ut)})}),go(["pop","push","shift","sort","splice","unshift"],function(a){var u=zp[a],h=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",x=/^(?:pop|shift)$/.test(a);N.prototype[a]=function(){var R=arguments;if(x&&!this.__chain__){var k=this.value();return u.apply(vt(k)?k:[],R)}return this[h](function(Z){return u.apply(vt(Z)?Z:[],R)})}}),hi(Mt.prototype,function(a,u){var h=N[u];if(h){var x=h.name+"";rn.call(Kl,x)||(Kl[x]=[]),Kl[x].push({name:u,func:h})}}),Kl[ah(n,S).name]=[{name:"wrapper",func:n}],Mt.prototype.clone=h_,Mt.prototype.reverse=g_,Mt.prototype.value=m_,N.prototype.at=HJ,N.prototype.chain=UJ,N.prototype.commit=YJ,N.prototype.next=_J,N.prototype.plant=JJ,N.prototype.reverse=KJ,N.prototype.toJSON=N.prototype.valueOf=N.prototype.value=QJ,N.prototype.first=N.prototype.head,Yu&&(N.prototype[Yu]=qJ),N},_l=YY();pa?((pa.exports=_l)._=_l,ub._=_l):qn._=_l}).call(oc)}($f,$f.exports);var rw=$f.exports;const zF={"http://telicent.io/ontology/":"telicent:"},ow=e=>e&&e.startsWith("http")&&e.includes("#"),iw=e=>{if(ow(e)){const n=e.split("#");return n.length>1?n[1]:e}const t=Object.keys(zF).find(n=>e.startsWith(n));return t?e.replace(t,""):e},GF=e=>{if(e){const t=/(\b[a-zA-Z0-9])?/g,n=e.match(t);if(n)return n.join("").slice(0,3)}return console.warn(`Telicent DS (getInitials): Unable to get initials from "${e}"`),""},sw=e=>{if(ow(e)){const t=e.split("#");if(t.length===2)return GF(rw.startCase(t[1]))}return e??""},jF=e=>Object.entries(e).map(([t,n])=>({classUri:t,backgroundColor:n.defaultStyles.dark.backgroundColor,color:n.defaultStyles.dark.color,iconFallbackText:sw(t),alt:iw(t),shape:n.defaultStyles.shape,faUnicode:n.defaultIcons.faUnicode,faIcon:n.defaultIcons.faIcon})),aw=ke.createContext(null),ZF=({service:e,children:t})=>{const r=nw({queryKey:["ontology-styles"],queryFn:()=>e.getStyles([]),refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!1,staleTime:864e5,enabled:!!e,select:jF}),{isLoading:o,data:s=[]}=r,l=c=>{const d=s.find(g=>g.classUri===c);if(d)return d;const f=iw(c),p=sw(c);return{classUri:c,color:"#DDDDDD",backgroundColor:"#121212",iconFallbackText:p,alt:f}};return P(aw.Provider,{value:{isLoadingStyles:o,styles:s,findIcon:l},children:t})},lw=()=>{const e=ke.useContext(aw);if(!e)throw new Error("useOntologyService has to be used within <OntologyStylesProvider />");return e},XF=new CF({defaultOptions:{queries:{staleTime:60*5e3,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!1}}}),HF=({ontologyService:e,children:t})=>e?P(TF,{client:XF,children:P(ZF,{service:e,children:t})}):t,UF=({appName:e,beta:t,apps:n,userProfile:r,className:o,children:s,...l})=>Fe(BI,{children:[P(qB,{appName:e,beta:t,apps:n,userProfile:r}),P("main",{className:Qn("relative layout-content w-full p-2",o),...l,children:s})]}),YF=({children:e})=>P(BI,{children:e}),_F=({dependencies:e,className:t})=>{const n=Object.entries(e);return n.length===0?P("p",{className:"dark:text-whiteSmoke",children:"Dependencies not found"}):Fe("table",{className:Qn("table-auto w-full md:w-1/2 dark:text-whiteSmoke border-collapse border border-whiteSmoke-700 rounded-md",t),children:[P("thead",{className:"bg-black-100 sticky top-0",children:Fe("tr",{className:"text-left border-b border-b-whiteSmoke-700",children:[P("th",{className:"py-2 px-1",children:"Dependency"}),P("th",{className:"py-2 px-1",children:"Version"})]})}),P("tbody",{children:n.map(r=>P("tr",{className:"border-b border-b-whiteSmoke-700 hover:bg-black-300",children:r.map(o=>P("td",{className:"py-2 px-1",children:o.replace("^","")},o))},r[0]))})]})},x0=({label:e,variant:t="primary",className:n,...r})=>{const o=t==="primary",s=t==="tertiary";return P(If,{label:e,variant:o||s?"filled":"outlined",className:Qn({"teli-chip--primary":o,"teli-chip--secondary":t==="secondary","teli-chip--tertiary":s},n),deleteIcon:P(L1,{"aria-label":`Delete ${e}`}),...r})},C0=e=>P(Em,{...e});function cw({error:e,fullWidth:t,helperText:n,label:r,loading:o,maxHeight:s,mode:l,placeholder:c,startAdornment:d,width:f,getChipIcon:p=v=>v==null?void 0:v.icon,getOptionLabel:g=v=>(v==null?void 0:v.label)??v,...m}){const v=y=>{if(l==="search"){if(y==="base")return{openOnFocus:!0,autoComplete:!0,autoHighlight:!0};if(y==="InputProps")return{InputProps:{type:"search",startAdornment:P(Fd,{size:"sm"})}}}};return Fe(su,{error:e,sx:{width:f},fullWidth:t,children:[P(Cm,{disablePortal:!0,clearIcon:P(Ng,{}),popupIcon:P(yr,{icon:P1}),size:"small",className:"error",loading:o,renderInput:y=>{var b,C,S;return P(wu,{...y,variant:"outlined",label:r,placeholder:c,error:e,InputProps:{...y.InputProps,...(b=v("InputProps"))==null?void 0:b.InputProps,startAdornment:Fe(Io,{children:[d??((S=(C=v("InputProps"))==null?void 0:C.InputProps)==null?void 0:S.startAdornment),y.InputProps.startAdornment]}),endAdornment:Fe(Io,{children:[o?P(C0,{color:"inherit",size:14}):null,y.InputProps.endAdornment]})}})},renderTags:(y,b)=>y.map((C,S)=>P(x0,{variant:"tertiary",size:"small",icon:p(C),label:g(C),...b({index:S})})),slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,8]}}]}},ListboxProps:{sx:{maxHeight:s}},...v("base"),...m}),n?P(dl,{children:n}):null]})}const uw=ke.forwardRef(({variant:e,linePosition:t="left",color:n,startIcon:r,endIcon:o,size:s="medium",disabled:l=!1,className:c,children:d,...f},p)=>{const g=e==="primary",m=e==="secondary",v=t==="left",y=t==="right",b=t==="center";return e==="link"?Fe("div",{className:Qn("teli-button__link",{"teli-button__link-disabled":l}),children:[Fe(Cr,{ref:p,className:Qn("teli-button",{"teli-button__link--left":v,"teli-button__link--right":y},c),disabled:l,...f,children:[r,d,o]}),P("div",{className:Qn("teli-button__link-line",{"teli-button__link--line-right":y,"teli-button__link--line-center":b})})]}):Fe(Cr,{ref:p,className:Qn("teli-button",{"teli-button--small":s==="small","teli-button--medium":s==="medium","teli-button--large":s==="large","teli-button__primary":g,"teli-button__secondary":m,"teli-button__tertiary":e==="tertiary","teli-button__primary--danger":g&&n==="danger"},c),disabled:l,...f,children:[r,d,o]})}),yl=ke.forwardRef(({tooltip:e,tooltipPlacement:t="bottom",...n},r)=>e?P(_m,{arrow:!0,title:e,placement:t,PopperProps:{disablePortal:!0,modifiers:[{name:"offset",options:{offset:[0,-4]}}]},children:P(uw,{ref:r,...n})}):P(uw,{ref:r,...n})),qF={"masked-overflow":"_masked-overflow_jaxa9_1"},JF=({appName:e,appVersion:t,expiryDate:n,licenseCopy:r,onAcknowledge:o})=>{if(!e)throw new Error("Application name is not provided");if(!t)throw new Error("Application version is not provided");if(!r)throw new Error("Application license copy is not provided");const s=new Date,l=n?new Date(n):void 0,c=(l==null?void 0:l.toLocaleDateString("en-GB",{year:"numeric",month:"2-digit",day:"2-digit"}))||void 0,d=n&&l?s>=l:!1;return P("div",{className:"bg-gradient-to-b from-app-color to-app-color-800 p-2 max-w-4xl rounded",children:Fe("div",{className:"bg-black-100 dark:text-whiteSmoke p-5 flex flex-col gap-y-6 rounded",children:[Fe("div",{className:"flex flex-col gap-y-1",children:[P(Gh,{appName:e,className:"justify-center"}),Fe("p",{className:"text-sm text-center font-medium",children:["Version ",t]})]}),P("div",{id:"license-copy",className:Qn("flex flex-col gap-y-5 max-h-48 md:max-h-96 overflow-y-scroll",qF["masked-overflow"]),children:r}),Fe("div",{className:"flex flex-col gap-y-2 items-center",children:[d&&P("strong",{children:"License has expired!"}),!d&&c&&Fe("strong",{children:["Expires on ",c]}),P(yl,{variant:"primary",onClick:o,children:"Acknowledge"})]})]})})},dw=({autoFocus:e=!1,autoHighlight:t,error:n=!1,fullWidth:r=!1,getOptionKey:o,getOptionLabel:s,helperText:l,id:c,inputValue:d,isOptionEqualToValue:f,label:p,listboxMaxHeight:g,loading:m,loadingText:v,name:y,onChange:b,onInputChange:C,openOnFocus:S=!1,options:T=[],placeholder:w="Search ...",width:O})=>Fe(su,{error:n,sx:{width:O},fullWidth:r,children:[P(Cm,{disablePortal:!0,autoComplete:!0,autoSelect:!0,freeSolo:!0,id:c,autoHighlight:t,openOnFocus:S,loadingText:v,clearIcon:P(Ng,{size:"sm"}),className:"error",size:"small",loading:m,options:T,inputValue:d,getOptionLabel:s,getOptionKey:o,onInputChange:C,onChange:b,isOptionEqualToValue:f,renderInput:I=>P(wu,{...I,autoFocus:e,variant:"outlined",label:p,placeholder:w,name:y,InputProps:{...I.InputProps,startAdornment:P(Fd,{size:"sm",className:"pl-2"}),endAdornment:Fe(Io,{children:[m?P(C0,{color:"inherit",size:14}):null,I.InputProps.endAdornment]})}}),slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,8]}}]}},ListboxProps:{sx:{maxHeight:g}}}),l?P(dl,{children:l}):null]}),KF=({buttonId:e,listId:t,emptyMessage:n="Nothing found",menuItems:r=[],open:o,onKeyDown:s,onMenuItemClick:l,children:c})=>c||(r==null?void 0:r.length)>0?Fe(Io,{children:[c&&P("div",{className:"teli-menu-contents",children:c}),(r==null?void 0:r.length)>0&&P(Xm,{autoFocusItem:o,id:t,"aria-labelledby":e,onKeyDown:s,children:r.map(d=>Fe(vu,{onClick:l(d.onClick),children:[d==null?void 0:d.startIcon,d==null?void 0:d.label,d==null?void 0:d.endIcon]},d.id))})]}):P("p",{className:"teli-menu-contents teli-empty-menu-contents",children:n}),QF=({buttonId:e,label:t,listId:n,menuItems:r=[],defaultOpen:o=!1,disabled:s=!1,emptyMessage:l,open:c,tooltip:d,startIcon:f,endIcon:p,width:g,variant:m="tertiary",yPlacement:v="bottom",xPlacement:y=v,onOpen:b,onClose:C,children:S})=>{const{current:T}=ke.useRef(c!==void 0),[w,O]=ke.useState(!1),I=T?c:w,M=ke.useRef(null),L=ke.useRef(I),z=ke.useCallback(W=>{T||O(W)},[]),B=()=>{O(W=>!W)},j=W=>{M.current&&M.current.contains(W.target)||z(!1)},X=W=>Y=>{W&&W(),j(Y)},V=W=>{W.key==="Tab"?(W.preventDefault(),z(!1)):W.key==="Escape"&&z(!1)};return ke.useEffect(()=>{L.current=I},[I]),ke.useEffect(()=>{o&&z(!0)},[]),ke.useEffect(()=>{if(s&&I){O(!1);return}},[s]),Fe("div",{className:"teli-basic-menu",children:[P(yl,{ref:M,id:e,variant:m,tooltip:d,startIcon:f,endIcon:p,disabled:s,"aria-controls":I?"composition-menu":void 0,"aria-expanded":I?"true":void 0,"aria-haspopup":"true",onClick:b??B,className:Qn({"bg-teli-black-600":I}),children:t}),P(qs,{transition:!0,disablePortal:!0,open:I??o,anchorEl:M.current,placement:v,modifiers:[{name:"offset",options:{offset:[0,8]}}],sx:{width:g},children:({TransitionProps:W,placement:Y})=>P(pl,{...W,style:{transformOrigin:y??Y},children:P($o,{children:P(Nf,{onClickAway:C??j,children:P("div",{children:P(KF,{open:I??o,menuItems:r,emptyMessage:l,buttonId:e,listId:n,onKeyDown:V,onMenuItemClick:X,children:S})})})})})})]})},$F=({label:e,...t})=>e?P(Mm,{control:P(Tm,{...t}),label:e,className:"m-0"}):P(Tm,{...t}),eW=({id:e,selectId:t,label:n,options:r=[],value:o,defaultOpen:s,defaultValue:l,helperText:c,disabled:d=!1,error:f=!1,focused:p,fullWidth:g=!1,hiddenLabel:m=!1,multiple:v=!1,open:y,readOnly:b=!1,required:C=!1,renderValue:S,width:T,onChange:w,onClose:O,onOpen:I})=>{const M=()=>m?{displayEmpty:!0}:{labelId:e,label:n,displayEmpty:!1},L=()=>v?{multiple:!0,renderValue:z=>P(Ar,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:z.map(B=>P(x0,{label:B,variant:"tertiary"},B))})}:{};return Fe(su,{className:"teli-select",sx:{minWidth:88,width:T},size:"small",disabled:d,error:f,required:C,fullWidth:g,focused:p,hiddenLabel:m,children:[!m&&P(Wm,{id:e,children:n}),P(Wf,{...M(),...L(),id:t,value:o,onChange:w,size:"small",defaultOpen:s,defaultValue:l,open:y,onOpen:I,onClose:O,inputProps:{"aria-label":m?n:void 0,readOnly:b},MenuProps:{className:"teli-basic-menu",sx:{marginTop:"6px"}},renderValue:S,children:r.map(z=>P(vu,{value:(z==null?void 0:z.value)||z.label,children:z.label},(z==null?void 0:z.id)||z.label))}),c?P(dl,{children:c}):C?P(dl,{children:"Required *"}):null]})},tW=({label:e,labelPlacement:t="end",size:n="small",...r})=>e?P(Mm,{control:P(qm,{size:n,...r}),label:e,labelPlacement:t,className:"m-0 gap-x-1.5",componentsProps:{typography:{fontSize:14}}}):P(qm,{size:n,...r}),nW=({ariaLabel:e,endAdornment:t,readOnly:n,pointerEvents:r,startAdornment:o,...s})=>P(wu,{variant:"outlined",size:"small",maxRows:4,InputProps:{readOnly:n,startAdornment:P(Fm,{position:"start",children:o}),endAdornment:P(Fm,{position:"end",children:t})},InputLabelProps:{shrink:r},inputProps:{"aria-label":e},...s}),rW=({cursor:e,textAlign:t,...n})=>P(du,{disableUnderline:!0,inputProps:{sx:{cursor:e,textAlign:t}},...n}),oW=({position:e="bottom-start",defaultControls:t=!0,vertical:n,variant:r="tertiary",onZoomIn:o,onZoomOut:s,children:l})=>{const c=r==="tertiary",d=e.startsWith("bottom")&&!n?"top":e.startsWith("bottom")&&n?"left":"bottom",f=c?"basic":"tertiary",p=()=>Fe(Io,{children:[P(yl,{"aria-label":"zoom in",tooltip:"Zoom in",tooltipPlacement:d,variant:f,onClick:o,children:P(M1,{})}),P(yl,{"aria-label":"zoom out",tooltip:"Zoom out",tooltipPlacement:d,variant:f,onClick:s,children:P(yr,{icon:WO})})]});return Fe("ul",{className:Qn("toolbar",{"toolbar--vertical":n,"toolbar--tertiary":c,"toolbar--bottom-start":e==="bottom-start","toolbar--bottom-end":e==="bottom-end","toolbar--top-start":e==="top-start","toolbar--top-end":e==="top-end"}),children:[t&&P(p,{}),l]})},iW=e=>{const t={width:48,height:48};switch(e){case"xs":return{width:24,height:24,fontSize:8};case"sm":return{width:36,height:36,fontSize:10};case"lg":return{width:62,height:62,fontSize:22};default:return t}},sW=e=>e?{filter:"grayscale(0.7)",opacity:"80%"}:{},aW=({type:e="",borderColor:t,disabled:n=!1,size:r="base"})=>{const{findIcon:o}=lw(),s=o(e),l=!!(s!=null&&s.faIcon);return P(ul,{alt:s.alt,"aria-label":s.alt,sx:{borderWidth:2,bordericonProps:"solid",borderColor:t??s.color,color:s.color,backgroundColor:s.backgroundColor,...sW(n),...iW(r)},children:l?P("i",{className:s.faIcon,title:`${s.alt}-icon`}):P("p",{children:s.iconFallbackText})})},fw=(e,t=300)=>{const[n,r]=ke.useState(e);return ke.useEffect(()=>{const o=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(o)}},[e,t]),n},lW={headers:{"Content-Type":"application/json"}},cW=Xe.object({uri:Xe.string(),primaryName:Xe.string(),types:Xe.array(Xe.string()),literals:Xe.object({"telicent:primaryName":Xe.array(Xe.string())}),isState:Xe.boolean(),inLocation:Xe.string(),metadata:Xe.object({documentFormat:Xe.string(),generatedBy:Xe.string(),generatorVersion:Xe.string()})}),uW=Xe.object({id:Xe.string().url(),score:Xe.number(),document:cW}),dW=Xe.object({maybeMore:Xe.boolean(),limit:Xe.number(),offset:Xe.number(),query:Xe.string(),type:Xe.literal("phrase"),results:Xe.array(uW)}),fW=async(e,t,n)=>{const r=new URLSearchParams({[t]:n}).toString(),o=await fetch(`${e}/typeahead?${r}`,lW);if(!o.ok)throw new Error(`An error occured while retrieving search results for query ${n}`);const s=o.json();try{return dW.parse(s)}catch(l){return l instanceof vr?console.warn(l):console.error(l),s}},pW=(e,t,n,r)=>nw({queryKey:["typeahead"],queryFn:()=>fW(e,t,n),enabled:!!n,select:r,retry:1});function hW({errorMessage:e,helperText:t,queryParamKey:n,url:r,noOptionsText:o,onTransform:s,...l}){const[c,d]=ke.useState(""),f=fw(c),{isInitialLoading:p,isError:g,data:m,...v}=pW(r,n,f,s),y=v.error instanceof Error?v.error.message:void 0;return P(cw,{error:g,options:m??[],noOptionsText:c===""?"Start typing ...":o,loading:p,inputValue:c,onInputChange:(S,T)=>{d(T)},helperText:g?e??y:t,mode:"search",...l})}const gW=({alt:e,firstName:t="",lastName:n="",src:r})=>{const[o,s]=ke.useState("");let l=P(yr,{id:"user-avatar-icon",icon:kO,size:"sm"});return o&&(l=P(Io,{children:o})),r&&(l=null),ke.useEffect(()=>{const c=t.trim(),d=n.trim();if(c&&d){s(`${c.charAt(0)}${d.charAt(0)}`);return}},[t,n]),P(ul,{id:"user-avatar",src:r,alt:e,sx:{width:35,height:35},children:l})},mW=({open:e,onClick:t,...n})=>P(yl,{id:"user-profile-button","aria-controls":e?"user-profile-menu":void 0,"aria-haspopup":"true","aria-expanded":e?"true":void 0,"aria-label":"user-profile",onClick:t,children:P(gW,{...n})}),bW=({anchorEl:e,firstName:t,lastName:n,open:r,onClose:o,onSettingsClick:s})=>{const l=!!(t!=null&&t.trim())&&!!(n!=null&&n.trim());return Fe(Qm,{id:"user-profile-menu",anchorEl:e,open:r,onClose:o,MenuListProps:{"aria-labelledby":"user-avatar-button"},children:[l&&Fe("li",{role:"menuitem",children:[Fe("p",{className:"pb-2",children:[t," ",n]}),P(Lf,{})]}),P(fI,{onClick:d=>{o(),s&&s(d)},children:"Settings"})]})},vW=({firstName:e,lastName:t,onSettingsClick:n,...r})=>{const[o,s]=ke.useState(null),l=!!o,c=f=>{s(f.currentTarget)},d=()=>{s(null)};return Fe("div",{children:[P(mW,{firstName:e,lastName:t,open:l,onClick:c,...r}),P(bW,{anchorEl:o,firstName:e,lastName:t,open:l,onClose:d,onSettingsClick:n})]})};function yW(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xW(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}var CW={value:()=>{}};function pw(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new ep(n)}function ep(e){this._=e}function IW(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");if(o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}ep.prototype=pw.prototype={constructor:ep,on:function(e,t){var n=this._,r=IW(e+"",n),o,s=-1,l=r.length;if(arguments.length<2){for(;++s<l;)if((o=(e=r[s]).type)&&(o=wW(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++s<l;)if(o=(e=r[s]).type)n[o]=hw(n[o],e.name,t);else if(t==null)for(o in n)n[o]=hw(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ep(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),r=0,o,s;r<o;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(s=this._[e],r=0,o=s.length;r<o;++r)s[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,s=r.length;o<s;++o)r[o].value.apply(t,n)}};function wW(e,t){for(var n=0,r=e.length,o;n<r;++n)if((o=e[n]).name===t)return o.value}function hw(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=CW,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var I0="http://www.w3.org/1999/xhtml";const gw={svg:"http://www.w3.org/2000/svg",xhtml:I0,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function tp(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),gw.hasOwnProperty(t)?{space:gw[t],local:e}:e}function AW(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===I0&&t.documentElement.namespaceURI===I0?t.createElement(e):t.createElementNS(n,e)}}function SW(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function mw(e){var t=tp(e);return(t.local?SW:AW)(t)}function TW(){}function w0(e){return e==null?TW:function(){return this.querySelector(e)}}function EW(e){typeof e!="function"&&(e=w0(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var s=t[o],l=s.length,c=r[o]=new Array(l),d,f,p=0;p<l;++p)(d=s[p])&&(f=e.call(d,d.__data__,p,s))&&("__data__"in d&&(f.__data__=d.__data__),c[p]=f);return new jr(r,this._parents)}function OW(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function RW(){return[]}function bw(e){return e==null?RW:function(){return this.querySelectorAll(e)}}function PW(e){return function(){return OW(e.apply(this,arguments))}}function NW(e){typeof e=="function"?e=PW(e):e=bw(e);for(var t=this._groups,n=t.length,r=[],o=[],s=0;s<n;++s)for(var l=t[s],c=l.length,d,f=0;f<c;++f)(d=l[f])&&(r.push(e.call(d,d.__data__,f,l)),o.push(d));return new jr(r,o)}function vw(e){return function(){return this.matches(e)}}function yw(e){return function(t){return t.matches(e)}}var kW=Array.prototype.find;function MW(e){return function(){return kW.call(this.children,e)}}function LW(){return this.firstElementChild}function DW(e){return this.select(e==null?LW:MW(typeof e=="function"?e:yw(e)))}var VW=Array.prototype.filter;function BW(){return Array.from(this.children)}function FW(e){return function(){return VW.call(this.children,e)}}function WW(e){return this.selectAll(e==null?BW:FW(typeof e=="function"?e:yw(e)))}function zW(e){typeof e!="function"&&(e=vw(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var s=t[o],l=s.length,c=r[o]=[],d,f=0;f<l;++f)(d=s[f])&&e.call(d,d.__data__,f,s)&&c.push(d);return new jr(r,this._parents)}function xw(e){return new Array(e.length)}function GW(){return new jr(this._enter||this._groups.map(xw),this._parents)}function np(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}np.prototype={constructor:np,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function jW(e){return function(){return e}}function ZW(e,t,n,r,o,s){for(var l=0,c,d=t.length,f=s.length;l<f;++l)(c=t[l])?(c.__data__=s[l],r[l]=c):n[l]=new np(e,s[l]);for(;l<d;++l)(c=t[l])&&(o[l]=c)}function XW(e,t,n,r,o,s,l){var c,d,f=new Map,p=t.length,g=s.length,m=new Array(p),v;for(c=0;c<p;++c)(d=t[c])&&(m[c]=v=l.call(d,d.__data__,c,t)+"",f.has(v)?o[c]=d:f.set(v,d));for(c=0;c<g;++c)v=l.call(e,s[c],c,s)+"",(d=f.get(v))?(r[c]=d,d.__data__=s[c],f.delete(v)):n[c]=new np(e,s[c]);for(c=0;c<p;++c)(d=t[c])&&f.get(m[c])===d&&(o[c]=d)}function HW(e){return e.__data__}function UW(e,t){if(!arguments.length)return Array.from(this,HW);var n=t?XW:ZW,r=this._parents,o=this._groups;typeof e!="function"&&(e=jW(e));for(var s=o.length,l=new Array(s),c=new Array(s),d=new Array(s),f=0;f<s;++f){var p=r[f],g=o[f],m=g.length,v=YW(e.call(p,p&&p.__data__,f,r)),y=v.length,b=c[f]=new Array(y),C=l[f]=new Array(y),S=d[f]=new Array(m);n(p,g,b,C,S,v,t);for(var T=0,w=0,O,I;T<y;++T)if(O=b[T]){for(T>=w&&(w=T+1);!(I=C[w])&&++w<y;);O._next=I||null}}return l=new jr(l,r),l._enter=c,l._exit=d,l}function YW(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function _W(){return new jr(this._exit||this._groups.map(xw),this._parents)}function qW(e,t,n){var r=this.enter(),o=this,s=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?s.remove():n(s),r&&o?r.merge(o).order():o}function JW(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,s=r.length,l=Math.min(o,s),c=new Array(o),d=0;d<l;++d)for(var f=n[d],p=r[d],g=f.length,m=c[d]=new Array(g),v,y=0;y<g;++y)(v=f[y]||p[y])&&(m[y]=v);for(;d<o;++d)c[d]=n[d];return new jr(c,this._parents)}function KW(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],o=r.length-1,s=r[o],l;--o>=0;)(l=r[o])&&(s&&l.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(l,s),s=l);return this}function QW(e){e||(e=$W);function t(g,m){return g&&m?e(g.__data__,m.__data__):!g-!m}for(var n=this._groups,r=n.length,o=new Array(r),s=0;s<r;++s){for(var l=n[s],c=l.length,d=o[s]=new Array(c),f,p=0;p<c;++p)(f=l[p])&&(d[p]=f);d.sort(t)}return new jr(o,this._parents).order()}function $W(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ez(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function tz(){return Array.from(this)}function nz(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,s=r.length;o<s;++o){var l=r[o];if(l)return l}return null}function rz(){let e=0;for(const t of this)++e;return e}function oz(){return!this.node()}function iz(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],s=0,l=o.length,c;s<l;++s)(c=o[s])&&e.call(c,c.__data__,s,o);return this}function sz(e){return function(){this.removeAttribute(e)}}function az(e){return function(){this.removeAttributeNS(e.space,e.local)}}function lz(e,t){return function(){this.setAttribute(e,t)}}function cz(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function uz(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function dz(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function fz(e,t){var n=tp(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?az:sz:typeof t=="function"?n.local?dz:uz:n.local?cz:lz)(n,t))}function Cw(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function pz(e){return function(){this.style.removeProperty(e)}}function hz(e,t,n){return function(){this.style.setProperty(e,t,n)}}function gz(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function mz(e,t,n){return arguments.length>1?this.each((t==null?pz:typeof t=="function"?gz:hz)(e,t,n??"")):xl(this.node(),e)}function xl(e,t){return e.style.getPropertyValue(t)||Cw(e).getComputedStyle(e,null).getPropertyValue(t)}function bz(e){return function(){delete this[e]}}function vz(e,t){return function(){this[e]=t}}function yz(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function xz(e,t){return arguments.length>1?this.each((t==null?bz:typeof t=="function"?yz:vz)(e,t)):this.node()[e]}function Iw(e){return e.trim().split(/^|\s+/)}function A0(e){return e.classList||new ww(e)}function ww(e){this._node=e,this._names=Iw(e.getAttribute("class")||"")}ww.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Aw(e,t){for(var n=A0(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function Sw(e,t){for(var n=A0(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function Cz(e){return function(){Aw(this,e)}}function Iz(e){return function(){Sw(this,e)}}function wz(e,t){return function(){(t.apply(this,arguments)?Aw:Sw)(this,e)}}function Az(e,t){var n=Iw(e+"");if(arguments.length<2){for(var r=A0(this.node()),o=-1,s=n.length;++o<s;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?wz:t?Cz:Iz)(n,t))}function Sz(){this.textContent=""}function Tz(e){return function(){this.textContent=e}}function Ez(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Oz(e){return arguments.length?this.each(e==null?Sz:(typeof e=="function"?Ez:Tz)(e)):this.node().textContent}function Rz(){this.innerHTML=""}function Pz(e){return function(){this.innerHTML=e}}function Nz(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function kz(e){return arguments.length?this.each(e==null?Rz:(typeof e=="function"?Nz:Pz)(e)):this.node().innerHTML}function Mz(){this.nextSibling&&this.parentNode.appendChild(this)}function Lz(){return this.each(Mz)}function Dz(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Vz(){return this.each(Dz)}function Bz(e){var t=typeof e=="function"?e:mw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Fz(){return null}function Wz(e,t){var n=typeof e=="function"?e:mw(e),r=t==null?Fz:typeof t=="function"?t:w0(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function zz(){var e=this.parentNode;e&&e.removeChild(this)}function Gz(){return this.each(zz)}function jz(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Zz(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Xz(e){return this.select(e?Zz:jz)}function Hz(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Uz(e){return function(t){e.call(this,t,this.__data__)}}function Yz(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function _z(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,o=t.length,s;n<o;++n)s=t[n],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):t[++r]=s;++r?t.length=r:delete this.__on}}}function qz(e,t,n){return function(){var r=this.__on,o,s=Uz(t);if(r){for(var l=0,c=r.length;l<c;++l)if((o=r[l]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=s,o.options=n),o.value=t;return}}this.addEventListener(e.type,s,n),o={type:e.type,name:e.name,value:t,listener:s,options:n},r?r.push(o):this.__on=[o]}}function Jz(e,t,n){var r=Yz(e+""),o,s=r.length,l;if(arguments.length<2){var c=this.node().__on;if(c){for(var d=0,f=c.length,p;d<f;++d)for(o=0,p=c[d];o<s;++o)if((l=r[o]).type===p.type&&l.name===p.name)return p.value}return}for(c=t?qz:_z,o=0;o<s;++o)this.each(c(r[o],t,n));return this}function Tw(e,t,n){var r=Cw(e),o=r.CustomEvent;typeof o=="function"?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Kz(e,t){return function(){return Tw(this,e,t)}}function Qz(e,t){return function(){return Tw(this,e,t.apply(this,arguments))}}function $z(e,t){return this.each((typeof t=="function"?Qz:Kz)(e,t))}function*eG(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,s=r.length,l;o<s;++o)(l=r[o])&&(yield l)}var Ew=[null];function jr(e,t){this._groups=e,this._parents=t}function Eu(){return new jr([[document.documentElement]],Ew)}function tG(){return this}jr.prototype=Eu.prototype={constructor:jr,select:EW,selectAll:NW,selectChild:DW,selectChildren:WW,filter:zW,data:UW,enter:GW,exit:_W,join:qW,merge:JW,selection:tG,order:KW,sort:QW,call:ez,nodes:tz,node:nz,size:rz,empty:oz,each:iz,attr:fz,style:mz,property:xz,classed:Az,text:Oz,html:kz,raise:Lz,lower:Vz,append:Bz,insert:Wz,remove:Gz,clone:Xz,datum:Hz,on:Jz,dispatch:$z,[Symbol.iterator]:eG};function S0(e){return typeof e=="string"?new jr([[document.querySelector(e)]],[document.documentElement]):new jr([[e]],Ew)}function T0(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ow(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ou(){}var Ru=.7,rp=1/Ru,Cl="\\s*([+-]?\\d+)\\s*",Pu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ri="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",nG=/^#([0-9a-f]{3,8})$/,rG=new RegExp(`^rgb\\(${Cl},${Cl},${Cl}\\)$`),oG=new RegExp(`^rgb\\(${ri},${ri},${ri}\\)$`),iG=new RegExp(`^rgba\\(${Cl},${Cl},${Cl},${Pu}\\)$`),sG=new RegExp(`^rgba\\(${ri},${ri},${ri},${Pu}\\)$`),aG=new RegExp(`^hsl\\(${Pu},${ri},${ri}\\)$`),lG=new RegExp(`^hsla\\(${Pu},${ri},${ri},${Pu}\\)$`),Rw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};T0(Ou,Nu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Pw,formatHex:Pw,formatHex8:cG,formatHsl:uG,formatRgb:Nw,toString:Nw});function Pw(){return this.rgb().formatHex()}function cG(){return this.rgb().formatHex8()}function uG(){return Vw(this).formatHsl()}function Nw(){return this.rgb().formatRgb()}function Nu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=nG.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?kw(t):n===3?new Sr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?op(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?op(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=rG.exec(e))?new Sr(t[1],t[2],t[3],1):(t=oG.exec(e))?new Sr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=iG.exec(e))?op(t[1],t[2],t[3],t[4]):(t=sG.exec(e))?op(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=aG.exec(e))?Dw(t[1],t[2]/100,t[3]/100,1):(t=lG.exec(e))?Dw(t[1],t[2]/100,t[3]/100,t[4]):Rw.hasOwnProperty(e)?kw(Rw[e]):e==="transparent"?new Sr(NaN,NaN,NaN,0):null}function kw(e){return new Sr(e>>16&255,e>>8&255,e&255,1)}function op(e,t,n,r){return r<=0&&(e=t=n=NaN),new Sr(e,t,n,r)}function dG(e){return e instanceof Ou||(e=Nu(e)),e?(e=e.rgb(),new Sr(e.r,e.g,e.b,e.opacity)):new Sr}function E0(e,t,n,r){return arguments.length===1?dG(e):new Sr(e,t,n,r??1)}function Sr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}T0(Sr,E0,Ow(Ou,{brighter(e){return e=e==null?rp:Math.pow(rp,e),new Sr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ru:Math.pow(Ru,e),new Sr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Sr($s(this.r),$s(this.g),$s(this.b),ip(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Mw,formatHex:Mw,formatHex8:fG,formatRgb:Lw,toString:Lw}));function Mw(){return`#${ea(this.r)}${ea(this.g)}${ea(this.b)}`}function fG(){return`#${ea(this.r)}${ea(this.g)}${ea(this.b)}${ea((isNaN(this.opacity)?1:this.opacity)*255)}`}function Lw(){const e=ip(this.opacity);return`${e===1?"rgb(":"rgba("}${$s(this.r)}, ${$s(this.g)}, ${$s(this.b)}${e===1?")":`, ${e})`}`}function ip(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function $s(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ea(e){return e=$s(e),(e<16?"0":"")+e.toString(16)}function Dw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ko(e,t,n,r)}function Vw(e){if(e instanceof ko)return new ko(e.h,e.s,e.l,e.opacity);if(e instanceof Ou||(e=Nu(e)),!e)return new ko;if(e instanceof ko)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),s=Math.max(t,n,r),l=NaN,c=s-o,d=(s+o)/2;return c?(t===s?l=(n-r)/c+(n<r)*6:n===s?l=(r-t)/c+2:l=(t-n)/c+4,c/=d<.5?s+o:2-s-o,l*=60):c=d>0&&d<1?0:l,new ko(l,c,d,e.opacity)}function pG(e,t,n,r){return arguments.length===1?Vw(e):new ko(e,t,n,r??1)}function ko(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}T0(ko,pG,Ow(Ou,{brighter(e){return e=e==null?rp:Math.pow(rp,e),new ko(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ru:Math.pow(Ru,e),new ko(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Sr(O0(e>=240?e-240:e+120,o,r),O0(e,o,r),O0(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ko(Bw(this.h),sp(this.s),sp(this.l),ip(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ip(this.opacity);return`${e===1?"hsl(":"hsla("}${Bw(this.h)}, ${sp(this.s)*100}%, ${sp(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Bw(e){return e=(e||0)%360,e<0?e+360:e}function sp(e){return Math.max(0,Math.min(1,e||0))}function O0(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Fw=e=>()=>e;function hG(e,t){return function(n){return e+n*t}}function gG(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function mG(e){return(e=+e)==1?Ww:function(t,n){return n-t?gG(t,n,e):Fw(isNaN(t)?n:t)}}function Ww(e,t){var n=t-e;return n?hG(e,n):Fw(isNaN(e)?t:e)}const zw=function e(t){var n=mG(t);function r(o,s){var l=n((o=E0(o)).r,(s=E0(s)).r),c=n(o.g,s.g),d=n(o.b,s.b),f=Ww(o.opacity,s.opacity);return function(p){return o.r=l(p),o.g=c(p),o.b=d(p),o.opacity=f(p),o+""}}return r.gamma=e,r}(1);function as(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var R0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,P0=new RegExp(R0.source,"g");function bG(e){return function(){return e}}function vG(e){return function(t){return e(t)+""}}function yG(e,t){var n=R0.lastIndex=P0.lastIndex=0,r,o,s,l=-1,c=[],d=[];for(e=e+"",t=t+"";(r=R0.exec(e))&&(o=P0.exec(t));)(s=o.index)>n&&(s=t.slice(n,s),c[l]?c[l]+=s:c[++l]=s),(r=r[0])===(o=o[0])?c[l]?c[l]+=o:c[++l]=o:(c[++l]=null,d.push({i:l,x:as(r,o)})),n=P0.lastIndex;return n<t.length&&(s=t.slice(n),c[l]?c[l]+=s:c[++l]=s),c.length<2?d[0]?vG(d[0].x):bG(t):(t=d.length,function(f){for(var p=0,g;p<t;++p)c[(g=d[p]).i]=g.x(f);return c.join("")})}var Gw=180/Math.PI,N0={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function jw(e,t,n,r,o,s){var l,c,d;return(l=Math.sqrt(e*e+t*t))&&(e/=l,t/=l),(d=e*n+t*r)&&(n-=e*d,r-=t*d),(c=Math.sqrt(n*n+r*r))&&(n/=c,r/=c,d/=c),e*r<t*n&&(e=-e,t=-t,d=-d,l=-l),{translateX:o,translateY:s,rotate:Math.atan2(t,e)*Gw,skewX:Math.atan(d)*Gw,scaleX:l,scaleY:c}}var ap;function xG(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?N0:jw(t.a,t.b,t.c,t.d,t.e,t.f)}function CG(e){return e==null||(ap||(ap=document.createElementNS("http://www.w3.org/2000/svg","g")),ap.setAttribute("transform",e),!(e=ap.transform.baseVal.consolidate()))?N0:(e=e.matrix,jw(e.a,e.b,e.c,e.d,e.e,e.f))}function Zw(e,t,n,r){function o(f){return f.length?f.pop()+" ":""}function s(f,p,g,m,v,y){if(f!==g||p!==m){var b=v.push("translate(",null,t,null,n);y.push({i:b-4,x:as(f,g)},{i:b-2,x:as(p,m)})}else(g||m)&&v.push("translate("+g+t+m+n)}function l(f,p,g,m){f!==p?(f-p>180?p+=360:p-f>180&&(f+=360),m.push({i:g.push(o(g)+"rotate(",null,r)-2,x:as(f,p)})):p&&g.push(o(g)+"rotate("+p+r)}function c(f,p,g,m){f!==p?m.push({i:g.push(o(g)+"skewX(",null,r)-2,x:as(f,p)}):p&&g.push(o(g)+"skewX("+p+r)}function d(f,p,g,m,v,y){if(f!==g||p!==m){var b=v.push(o(v)+"scale(",null,",",null,")");y.push({i:b-4,x:as(f,g)},{i:b-2,x:as(p,m)})}else(g!==1||m!==1)&&v.push(o(v)+"scale("+g+","+m+")")}return function(f,p){var g=[],m=[];return f=e(f),p=e(p),s(f.translateX,f.translateY,p.translateX,p.translateY,g,m),l(f.rotate,p.rotate,g,m),c(f.skewX,p.skewX,g,m),d(f.scaleX,f.scaleY,p.scaleX,p.scaleY,g,m),f=p=null,function(v){for(var y=-1,b=m.length,C;++y<b;)g[(C=m[y]).i]=C.x(v);return g.join("")}}}var IG=Zw(xG,"px, ","px)","deg)"),wG=Zw(CG,", ",")",")"),Il=0,ku=0,Mu=0,Xw=1e3,lp,Lu,cp=0,ta=0,up=0,Du=typeof performance=="object"&&performance.now?performance:Date,Hw=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function k0(){return ta||(Hw(AG),ta=Du.now()+up)}function AG(){ta=0}function dp(){this._call=this._time=this._next=null}dp.prototype=Uw.prototype={constructor:dp,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?k0():+n)+(t==null?0:+t),!this._next&&Lu!==this&&(Lu?Lu._next=this:lp=this,Lu=this),this._call=e,this._time=n,M0()},stop:function(){this._call&&(this._call=null,this._time=1/0,M0())}};function Uw(e,t,n){var r=new dp;return r.restart(e,t,n),r}function SG(){k0(),++Il;for(var e=lp,t;e;)(t=ta-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Il}function Yw(){ta=(cp=Du.now())+up,Il=ku=0;try{SG()}finally{Il=0,EG(),ta=0}}function TG(){var e=Du.now(),t=e-cp;t>Xw&&(up-=t,cp=e)}function EG(){for(var e,t=lp,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:lp=n);Lu=e,M0(r)}function M0(e){if(!Il){ku&&(ku=clearTimeout(ku));var t=e-ta;t>24?(e<1/0&&(ku=setTimeout(Yw,e-Du.now()-up)),Mu&&(Mu=clearInterval(Mu))):(Mu||(cp=Du.now(),Mu=setInterval(TG,Xw)),Il=1,Hw(Yw))}}function _w(e,t,n){var r=new dp;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}var OG=pw("start","end","cancel","interrupt"),RG=[],qw=0,Jw=1,L0=2,fp=3,Kw=4,D0=5,pp=6;function hp(e,t,n,r,o,s){var l=e.__transition;if(!l)e.__transition={};else if(n in l)return;PG(e,n,{name:t,index:r,group:o,on:OG,tween:RG,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:qw})}function V0(e,t){var n=Mo(e,t);if(n.state>qw)throw new Error("too late; already scheduled");return n}function oi(e,t){var n=Mo(e,t);if(n.state>fp)throw new Error("too late; already running");return n}function Mo(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function PG(e,t,n){var r=e.__transition,o;r[t]=n,n.timer=Uw(s,0,n.time);function s(f){n.state=Jw,n.timer.restart(l,n.delay,n.time),n.delay<=f&&l(f-n.delay)}function l(f){var p,g,m,v;if(n.state!==Jw)return d();for(p in r)if(v=r[p],v.name===n.name){if(v.state===fp)return _w(l);v.state===Kw?(v.state=pp,v.timer.stop(),v.on.call("interrupt",e,e.__data__,v.index,v.group),delete r[p]):+p<t&&(v.state=pp,v.timer.stop(),v.on.call("cancel",e,e.__data__,v.index,v.group),delete r[p])}if(_w(function(){n.state===fp&&(n.state=Kw,n.timer.restart(c,n.delay,n.time),c(f))}),n.state=L0,n.on.call("start",e,e.__data__,n.index,n.group),n.state===L0){for(n.state=fp,o=new Array(m=n.tween.length),p=0,g=-1;p<m;++p)(v=n.tween[p].value.call(e,e.__data__,n.index,n.group))&&(o[++g]=v);o.length=g+1}}function c(f){for(var p=f<n.duration?n.ease.call(null,f/n.duration):(n.timer.restart(d),n.state=D0,1),g=-1,m=o.length;++g<m;)o[g].call(e,p);n.state===D0&&(n.on.call("end",e,e.__data__,n.index,n.group),d())}function d(){n.state=pp,n.timer.stop(),delete r[t];for(var f in r)return;delete e.__transition}}function NG(e,t){var n=e.__transition,r,o,s=!0,l;if(n){t=t==null?null:t+"";for(l in n){if((r=n[l]).name!==t){s=!1;continue}o=r.state>L0&&r.state<D0,r.state=pp,r.timer.stop(),r.on.call(o?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[l]}s&&delete e.__transition}}function kG(e){return this.each(function(){NG(this,e)})}function MG(e,t){var n,r;return function(){var o=oi(this,e),s=o.tween;if(s!==n){r=n=s;for(var l=0,c=r.length;l<c;++l)if(r[l].name===t){r=r.slice(),r.splice(l,1);break}}o.tween=r}}function LG(e,t,n){var r,o;if(typeof n!="function")throw new Error;return function(){var s=oi(this,e),l=s.tween;if(l!==r){o=(r=l).slice();for(var c={name:t,value:n},d=0,f=o.length;d<f;++d)if(o[d].name===t){o[d]=c;break}d===f&&o.push(c)}s.tween=o}}function DG(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Mo(this.node(),n).tween,o=0,s=r.length,l;o<s;++o)if((l=r[o]).name===e)return l.value;return null}return this.each((t==null?MG:LG)(n,e,t))}function B0(e,t,n){var r=e._id;return e.each(function(){var o=oi(this,r);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return Mo(o,r).value[t]}}function Qw(e,t){var n;return(typeof t=="number"?as:t instanceof Nu?zw:(n=Nu(t))?(t=n,zw):yG)(e,t)}function VG(e){return function(){this.removeAttribute(e)}}function BG(e){return function(){this.removeAttributeNS(e.space,e.local)}}function FG(e,t,n){var r,o=n+"",s;return function(){var l=this.getAttribute(e);return l===o?null:l===r?s:s=t(r=l,n)}}function WG(e,t,n){var r,o=n+"",s;return function(){var l=this.getAttributeNS(e.space,e.local);return l===o?null:l===r?s:s=t(r=l,n)}}function zG(e,t,n){var r,o,s;return function(){var l,c=n(this),d;return c==null?void this.removeAttribute(e):(l=this.getAttribute(e),d=c+"",l===d?null:l===r&&d===o?s:(o=d,s=t(r=l,c)))}}function GG(e,t,n){var r,o,s;return function(){var l,c=n(this),d;return c==null?void this.removeAttributeNS(e.space,e.local):(l=this.getAttributeNS(e.space,e.local),d=c+"",l===d?null:l===r&&d===o?s:(o=d,s=t(r=l,c)))}}function jG(e,t){var n=tp(e),r=n==="transform"?wG:Qw;return this.attrTween(e,typeof t=="function"?(n.local?GG:zG)(n,r,B0(this,"attr."+e,t)):t==null?(n.local?BG:VG)(n):(n.local?WG:FG)(n,r,t))}function ZG(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function XG(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function HG(e,t){var n,r;function o(){var s=t.apply(this,arguments);return s!==r&&(n=(r=s)&&XG(e,s)),n}return o._value=t,o}function UG(e,t){var n,r;function o(){var s=t.apply(this,arguments);return s!==r&&(n=(r=s)&&ZG(e,s)),n}return o._value=t,o}function YG(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=tp(e);return this.tween(n,(r.local?HG:UG)(r,t))}function _G(e,t){return function(){V0(this,e).delay=+t.apply(this,arguments)}}function qG(e,t){return t=+t,function(){V0(this,e).delay=t}}function JG(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?_G:qG)(t,e)):Mo(this.node(),t).delay}function KG(e,t){return function(){oi(this,e).duration=+t.apply(this,arguments)}}function QG(e,t){return t=+t,function(){oi(this,e).duration=t}}function $G(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?KG:QG)(t,e)):Mo(this.node(),t).duration}function ej(e,t){if(typeof t!="function")throw new Error;return function(){oi(this,e).ease=t}}function tj(e){var t=this._id;return arguments.length?this.each(ej(t,e)):Mo(this.node(),t).ease}function nj(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;oi(this,e).ease=n}}function rj(e){if(typeof e!="function")throw new Error;return this.each(nj(this._id,e))}function oj(e){typeof e!="function"&&(e=vw(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var s=t[o],l=s.length,c=r[o]=[],d,f=0;f<l;++f)(d=s[f])&&e.call(d,d.__data__,f,s)&&c.push(d);return new Pi(r,this._parents,this._name,this._id)}function ij(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,s=Math.min(r,o),l=new Array(r),c=0;c<s;++c)for(var d=t[c],f=n[c],p=d.length,g=l[c]=new Array(p),m,v=0;v<p;++v)(m=d[v]||f[v])&&(g[v]=m);for(;c<r;++c)l[c]=t[c];return new Pi(l,this._parents,this._name,this._id)}function sj(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function aj(e,t,n){var r,o,s=sj(t)?V0:oi;return function(){var l=s(this,e),c=l.on;c!==r&&(o=(r=c).copy()).on(t,n),l.on=o}}function lj(e,t){var n=this._id;return arguments.length<2?Mo(this.node(),n).on.on(e):this.each(aj(n,e,t))}function cj(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function uj(){return this.on("end.remove",cj(this._id))}function dj(e){var t=this._name,n=this._id;typeof e!="function"&&(e=w0(e));for(var r=this._groups,o=r.length,s=new Array(o),l=0;l<o;++l)for(var c=r[l],d=c.length,f=s[l]=new Array(d),p,g,m=0;m<d;++m)(p=c[m])&&(g=e.call(p,p.__data__,m,c))&&("__data__"in p&&(g.__data__=p.__data__),f[m]=g,hp(f[m],t,n,m,f,Mo(p,n)));return new Pi(s,this._parents,t,n)}function fj(e){var t=this._name,n=this._id;typeof e!="function"&&(e=bw(e));for(var r=this._groups,o=r.length,s=[],l=[],c=0;c<o;++c)for(var d=r[c],f=d.length,p,g=0;g<f;++g)if(p=d[g]){for(var m=e.call(p,p.__data__,g,d),v,y=Mo(p,n),b=0,C=m.length;b<C;++b)(v=m[b])&&hp(v,t,n,b,m,y);s.push(m),l.push(p)}return new Pi(s,l,t,n)}var pj=Eu.prototype.constructor;function hj(){return new pj(this._groups,this._parents)}function gj(e,t){var n,r,o;return function(){var s=xl(this,e),l=(this.style.removeProperty(e),xl(this,e));return s===l?null:s===n&&l===r?o:o=t(n=s,r=l)}}function $w(e){return function(){this.style.removeProperty(e)}}function mj(e,t,n){var r,o=n+"",s;return function(){var l=xl(this,e);return l===o?null:l===r?s:s=t(r=l,n)}}function bj(e,t,n){var r,o,s;return function(){var l=xl(this,e),c=n(this),d=c+"";return c==null&&(d=c=(this.style.removeProperty(e),xl(this,e))),l===d?null:l===r&&d===o?s:(o=d,s=t(r=l,c))}}function vj(e,t){var n,r,o,s="style."+t,l="end."+s,c;return function(){var d=oi(this,e),f=d.on,p=d.value[s]==null?c||(c=$w(t)):void 0;(f!==n||o!==p)&&(r=(n=f).copy()).on(l,o=p),d.on=r}}function yj(e,t,n){var r=(e+="")=="transform"?IG:Qw;return t==null?this.styleTween(e,gj(e,r)).on("end.style."+e,$w(e)):typeof t=="function"?this.styleTween(e,bj(e,r,B0(this,"style."+e,t))).each(vj(this._id,e)):this.styleTween(e,mj(e,r,t),n).on("end.style."+e,null)}function xj(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Cj(e,t,n){var r,o;function s(){var l=t.apply(this,arguments);return l!==o&&(r=(o=l)&&xj(e,l,n)),r}return s._value=t,s}function Ij(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,Cj(e,t,n??""))}function wj(e){return function(){this.textContent=e}}function Aj(e){return function(){var t=e(this);this.textContent=t??""}}function Sj(e){return this.tween("text",typeof e=="function"?Aj(B0(this,"text",e)):wj(e==null?"":e+""))}function Tj(e){return function(t){this.textContent=e.call(this,t)}}function Ej(e){var t,n;function r(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&Tj(o)),t}return r._value=e,r}function Oj(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Ej(e))}function Rj(){for(var e=this._name,t=this._id,n=eA(),r=this._groups,o=r.length,s=0;s<o;++s)for(var l=r[s],c=l.length,d,f=0;f<c;++f)if(d=l[f]){var p=Mo(d,t);hp(d,e,n,f,l,{time:p.time+p.delay+p.duration,delay:0,duration:p.duration,ease:p.ease})}return new Pi(r,this._parents,e,n)}function Pj(){var e,t,n=this,r=n._id,o=n.size();return new Promise(function(s,l){var c={value:l},d={value:function(){--o===0&&s()}};n.each(function(){var f=oi(this,r),p=f.on;p!==e&&(t=(e=p).copy(),t._.cancel.push(c),t._.interrupt.push(c),t._.end.push(d)),f.on=t}),o===0&&s()})}var Nj=0;function Pi(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function eA(){return++Nj}var Ni=Eu.prototype;Pi.prototype={constructor:Pi,select:dj,selectAll:fj,selectChild:Ni.selectChild,selectChildren:Ni.selectChildren,filter:oj,merge:ij,selection:hj,transition:Rj,call:Ni.call,nodes:Ni.nodes,node:Ni.node,size:Ni.size,empty:Ni.empty,each:Ni.each,on:lj,attr:jG,attrTween:YG,style:yj,styleTween:Ij,text:Sj,textTween:Oj,remove:uj,tween:DG,delay:JG,duration:$G,ease:tj,easeVarying:rj,end:Pj,[Symbol.iterator]:Ni[Symbol.iterator]};function kj(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Mj={time:null,delay:0,duration:250,ease:kj};function Lj(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Dj(e){var t,n;e instanceof Pi?(t=e._id,e=e._name):(t=eA(),(n=Mj).time=k0(),e=e==null?null:e+"");for(var r=this._groups,o=r.length,s=0;s<o;++s)for(var l=r[s],c=l.length,d,f=0;f<c;++f)(d=l[f])&&hp(d,e,t,f,l,n||Lj(d,t));return new Pi(r,this._parents,e,t)}Eu.prototype.interrupt=kG,Eu.prototype.transition=Dj;function Vj(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function Bj(){return this.eachAfter(Vj)}function Fj(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function Wj(e,t){for(var n=this,r=[n],o,s,l=-1;n=r.pop();)if(e.call(t,n,++l,this),o=n.children)for(s=o.length-1;s>=0;--s)r.push(o[s]);return this}function zj(e,t){for(var n=this,r=[n],o=[],s,l,c,d=-1;n=r.pop();)if(o.push(n),s=n.children)for(l=0,c=s.length;l<c;++l)r.push(s[l]);for(;n=o.pop();)e.call(t,n,++d,this);return this}function Gj(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function jj(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})}function Zj(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Xj(e){for(var t=this,n=Hj(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r}function Hj(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}function Uj(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Yj(){return Array.from(this)}function _j(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function qj(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*Jj(){var e=this,t,n=[e],r,o,s;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(o=0,s=r.length;o<s;++o)n.push(r[o]);while(n.length)}function F0(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=$j)):t===void 0&&(t=Qj);for(var n=new gp(e),r,o=[n],s,l,c,d;r=o.pop();)if((l=t(r.data))&&(d=(l=Array.from(l)).length))for(r.children=l,c=d-1;c>=0;--c)o.push(s=l[c]=new gp(l[c])),s.parent=r,s.depth=r.depth+1;return n.eachBefore(tZ)}function Kj(){return F0(this).eachBefore(eZ)}function Qj(e){return e.children}function $j(e){return Array.isArray(e)?e[1]:null}function eZ(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function tZ(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function gp(e){this.data=e,this.depth=this.height=0,this.parent=null}gp.prototype=F0.prototype={constructor:gp,count:Bj,each:Fj,eachAfter:zj,eachBefore:Wj,find:Gj,sum:jj,sort:Zj,path:Xj,ancestors:Uj,descendants:Yj,leaves:_j,links:qj,copy:Kj,[Symbol.iterator]:Jj};function Vu(e,t,n){this.k=e,this.x=t,this.y=n}Vu.prototype={constructor:Vu,scale:function(e){return e===1?this:new Vu(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Vu(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},Vu.prototype;const nZ=(e,t)=>{var l;const n=S0("body").append("svg"),s=((l=n.append("text").attr("font-size",t).text(e).node())==null?void 0:l.getComputedTextLength())??0;return n.remove(),s},rZ=(e,t,n,r,o)=>{let s=e.descendants().filter(l=>l.depth>0);return s=s.sort((l,c)=>yW(l.data.hOrderPosition,c.data.hOrderPosition)),s.forEach((l,c)=>{l.data.startLeft=t.left+(l.depth-1)*n,l.data.yPos=t.top+c*r,l.data.expandLabel=l.data.name+(o&&(l.data.descendantCount||0)>0?` (${l.data.descendantCount})`:""),l.data.labelWidth=35+nZ(l.data.expandLabel,12)}),s},oZ=(e,t,n,r,o,s)=>{let l=F0(e);if(o&&(t=xW(l,c=>c.depth)||t),n!==""&&r.length>0&&console.error("baseKey and filterIds cannot be used together - baseKey takes priority, filterIds will be ignored"),n!==""){const c=l.descendants().find(d=>d.data.id===n);c&&(l=c)}else if(r.length>0){const c=[];r.forEach(d=>{const f=l.descendants().find(p=>p.data.id===d);f&&f.ancestors().forEach(p=>{c.some(g=>g===p.data.id)||c.push(p.data.id||"")})}),l.descendants().forEach(d=>{d.children&&(d.children=d.children.filter(f=>c.includes(f.data.id||"")),d.children.length===0&&(d.children=void 0))})}if(l.eachBefore((c,d)=>{c.data.hOrderPosition=d,c.data.descendantCount=c.descendants().length-1}),l.descendants().forEach(c=>{c.children&&c.depth>t&&(c.data._children=c.children,c.children=void 0)}),s&&o&&console.error("expandAll and expandElement cannot be used together - expandAll takes priority, expandElement will be ignored"),s&&!o){const c=l.descendants().find(d=>d.data.id==="http://ies.data.gov.uk/ontology/ies4#Element");c&&(c.children=c.data._children)}return l},iZ=(e,t)=>{const n=t(e);return n.faUnicode||(n.faIcon="",n.faUnicode=n.iconFallbackText,n.shape="roundrectangle"),n},sZ=({instanceId:e,data:t,descendantCount:n=!0,isDraggable:r=!1,dragEvent:o=()=>"",isClickable:s=!1,clickEvent:l=()=>"",baseKey:c="",filterIds:d=[],expandAll:f=!1,expandElement:p=!1})=>{const g=ke.useRef(null),m=20,v=ke.useRef(void 0),y=ke.useRef(void 0),b=ke.useRef(void 0),C=ke.useRef(void 0),S=ke.useRef(void 0);return ke.useEffect(()=>{if(c===v.current&&JSON.stringify(d)===JSON.stringify(y.current)&&n===b.current&&p===C.current&&f===S.current)return;y.current=d,v.current=c,b.current=n,C.current=p,S.current=f;const T=S0(g.current),w=T.node();if(!w)return;const{parentElement:O}=w;if(!O||!t)return;const I=JSON.parse(JSON.stringify(t)),M={left:10,right:40,top:10,bottom:10},L=0,z=m*.25,B=10,j=oZ(I,L,c,d,f,p),X=V=>{var _;const W=(j.descendants().length-(c?0:1))*m+M.top+M.bottom;T.attr("height",W);const Y=rZ(V,M,B,m,n),q="treeGroupTestId",J=T.select(`#chartGroup${e}`).selectAll(`.${q}`).data(Y).join(G=>{const D=G.append("g").attr("class",q);D.append("line").attr("class","expandHorizontalLine"),D.append("line").attr("class","expandVerticalLine"),D.append("circle").attr("class","expandCircle"),D.append("text").attr("class","expandCircleIcon fa-solid");const re=D.append("foreignObject").attr("class","dragObject").append("xhtml:div").attr("class","dragDiv").append("svg").attr("class","dragSvg");return re.append("text").attr("class","expandLabel"),re.append("text").attr("class","expandLabelIcon"),D});J.select(".dragObject").attr("transform",G=>`translate(${(G.data.startLeft||0)+(G.depth===1?m-3:m-6)-2},${G.data.yPos||0})`).attr("width",G=>G.data.labelWidth||0).attr("height",m),J.select(".dragDiv").attr("draggable",r).style("cursor",r?"grab":"default").on("mouseover",G=>{(r||s)&&S0(G.currentTarget).select(".expandLabel").attr("font-weight",500)}).on("mouseout",()=>{T.selectAll(".expandLabel").attr("font-weight",400)}).on("click",(G,D)=>{l(D.data.id||"")}).on("dragstart",(G,D)=>{if(r){const re=JSON.stringify({nodeShape:D.data.ontology?D.data.ontology.shape:"",label:D.data.name,namespace:"",id:D.data.id,ontology:D.data.ontology});o(G,re),T.selectAll(".dragDiv").style("cursor","grabbing")}}).on("drag",()=>{r&&T.selectAll(".dragDiv").style("cursor","grabbing")}).on("dragend",(G,D)=>{if(r){const re=JSON.stringify({nodeShape:D.data.ontology?D.data.ontology.shape:"",label:D.data.name,namespace:"",id:D.data.id,ontology:D.data.ontology});T.selectAll(".dragDiv").style("cursor","grab"),o(G,re)}}),J.select(".dragSvg").attr("width",G=>G.data.labelWidth||0).attr("height",m).style("background-color","transparent"),J.attr("id",(G,D)=>`${q}${D}`),J.select(".expandCircle").attr("cx",G=>(G.data.startLeft||0)+z).attr("cy",G=>(G.data.yPos||0)+m/2).attr("r",G=>!G.children&&!G.data._children?0:z).attr("stroke",G=>{var D;return((D=G.data.ontology)==null?void 0:D.color)||""}).attr("fill",G=>G.data.ontology?G.data.ontology.backgroundColor:"").attr("stroke-width",1).style("cursor","pointer").on("click",(G,D)=>{!D.children&&D.data._children?(D.children=D.data._children,D.data._children=void 0,X(V)):D.children!==void 0&&(D.data._children=D.children,D.children=void 0,X(V))}),J.select(".expandHorizontalLine").attr("pointer-events","none").attr("x1",G=>(G.data.startLeft||0)+z).attr("x2",G=>(G.data.startLeft||0)+z+(G.children===void 0?z:0)).attr("y1",G=>(G.data.yPos||0)+m/2).attr("y2",G=>{const D=G.children,re=D==null?void 0:D[D.length-1].children;return(G.data.yPos||0)+m/2+(D?(G.descendants().length-1-(re?re.length:0))*m:0)}).attr("stroke","white").attr("stroke-width",.5),J.select(".expandVerticalLine").attr("pointer-events","none").attr("x1",G=>(G.data.startLeft||0)+z).attr("x2",G=>(G.data.startLeft||0)+z-(G.depth===1?0:m/2)).attr("y1",G=>(G.data.yPos||0)+m/2).attr("y2",G=>(G.data.yPos||0)+m/2).attr("stroke","white").attr("stroke-width",.5),J.select(".expandCircleIcon").attr("pointer-events","none").attr("x",G=>(G.data.startLeft||0)+z).attr("y",G=>(G.data.yPos||0)+m/2+3).attr("text-anchor","middle").attr("font-size",8).attr("fill","white").text(G=>!G.children&&!G.data._children?"":G.children!==void 0?"":"+"),J.select(".expandLabel").attr("pointer-events","none").attr("font-weight",400).attr("x",22).attr("y",4+m/2).attr("fill",G=>G.data.id&&G.data.ontology&&d.includes(G.data.id)?G.data.ontology.color:"white").attr("font-size",12).text(G=>G.data.expandLabel||""),J.select(".expandLabelIcon").attr("pointer-events","none").attr("text-anchor","middle").attr("class",G=>`expandLabelIcon ${G.data.ontology?G.data.ontology.faIcon:""}`).attr("x",11).attr("y",G=>(G.data.ontology&&G.data.ontology.faUnicode.length===3?3:4)+m/2).style("fill",G=>G.data.ontology?G.data.ontology.color:"").attr("font-size",G=>{var D;return((D=G.data.ontology)==null?void 0:D.faUnicode.length)===3?8:10}).text(G=>G.data.ontology?G.data.ontology.faUnicode:"");const U=(_=document.getElementById(`chartGroup${e}`))==null?void 0:_.getBoundingClientRect().width;T.attr("width",(U||0)+M.left+M.right)};X(j)},[t,r,s,e,o,l,c,n,d]),P(Io,{children:P("svg",{id:`svg_${e}`,ref:g,children:P("g",{id:`chartGroup${e}`,"data-testid":e})})})},tA=({children:e})=>Fe("div",{children:[P("h2",{className:"uppercase text-sm",children:"recent searches"}),e]}),aZ=({nothingFoundText:e="Nothing found",children:t=null})=>t?P(tA,{children:t}):P(tA,{children:P("p",{className:"grid place-content-center mt-24 text-whiteSmoke-300",children:e})}),lZ=({open:e,onClose:t,children:n,...r})=>Fe(km,{open:e,onClose:t,PaperProps:{sx:{maxHeight:"100% - 64px",minHeight:340,padding:"12px",minWidth:"540px"},className:"space-y-5"},children:[P(dw,{fullWidth:!0,listboxMaxHeight:220,...r}),n]}),cZ=({totalResults:e,nothingFoundText:t="Nothing found",children:n=null})=>n?Fe("div",{children:[Fe("h2",{className:"uppercase text-sm",children:[e," search results"]}),n]}):P("div",{children:P("p",{className:"grid place-content-center mt-28 text-whiteSmoke-300",children:t})}),uZ=({open:e,onClose:t,children:n,...r})=>P(km,{open:e,onClose:t,...r,children:n}),dZ=({children:e})=>P(iC,{className:"bg-black-100/40",children:e}),fZ=({children:e})=>P(oC,{className:"py-3 bg-black-100/40",children:e}),pZ=({children:e})=>P(sC,{className:"py-3 bg-black-100/40",children:e}),hZ=({dense:e,disablePadding:t,subheader:n,children:r,...o})=>P(fu,{dense:e,disablePadding:t,subheader:n,...o,children:r}),gZ=({className:e,children:t,...n})=>P(pu,{component:"button",disableRipple:!0,className:Qn("flex gap-x-3",e),...n,children:t}),mZ=({children:e,...t})=>P(hu,{...t,children:e}),bZ=({selectedTabIndex:e,...t})=>P(aI,{className:"gap-x-3",textColor:"secondary",indicatorColor:"secondary",value:e,...t}),vZ=({tabIndex:e,className:t,...n})=>P(ZC,{className:t,...yZ(e),...n});function yZ(e){if(e)return{id:`teli-tab-${e}`,"aria-controls":`teli-tabpanel-${e}`}}const xZ=({tabIndex:e,selectedTabIndex:t,children:n,...r})=>P("div",{role:"tabpanel",hidden:t!==e,id:`teli-tabpanel-${e}`,"aria-labelledby":`teli-tab-${e}`,className:"py-2",...r,children:n}),nA=({compact:e=!1,minWidth:t,name:n,children:r,...o})=>P(HC,{sx:{minWidth:t},size:e?"small":"medium","aria-label":n,...o,children:r}),rA=({children:e,...t})=>P(YC,{...t,children:e}),W0=({minWidth:e,children:t,...n})=>P(_C,{sx:{minWidth:e},...n,children:t}),oA=({bordered:e=!1,maxHeight:t,children:n,...r})=>P(qC,{sx:{maxHeight:t,borderWidth:e?1:0},...r,children:n}),iA=({children:e,...t})=>P(KC,{...t,children:e}),z0=({addBorderToLastRow:e=!0,children:t,...n})=>P(eI,{sx:{"&:last-child td, &:last-child th":{borderBottomWidth:e?1.5:0}},...n,children:t}),sA=(e,t)=>e===0?"left":t,CZ=(e,t)=>{if(e===0&&t)return{component:"th",scope:"row"}},IZ=(e,t)=>t?e.map((n,r)=>[(r+=1).toString(),...n]):e,aA=(e,t,n="")=>t?[n,...e]:e,Bu=(e,t)=>`${e}::${rw.kebabCase(t)}`,wZ=({columns:e=[],rows:t=[],name:n,align:r="left",addBorderToLastRow:o,bordered:s=!1,caption:l,compact:c=!1,maxHeight:d,minWidth:f,numberRows:p=!1,numberColumnHeading:g="",renderColumnCell:m,stickyHeader:v=!1,verticalHeader:y=!1})=>{if(e.length===0||t.length===0)return null;const b=(C,S)=>{const w=Xe.string({required_error:"Column is required",invalid_type_error:"Column must be a string"}).safeParse(C);if(w.success){const O=w.data;return P(W0,{align:sA(S,r),children:O},Bu("column",O))}return console.error("Unable to render columns. Ensure columns is an array of strings or use renderColumnCell"),null};return P(oA,{maxHeight:d,bordered:s,children:Fe(nA,{compact:c,minWidth:f,name:n,stickyHeader:v,children:[l&&P("caption",{children:l}),P(iA,{children:P(z0,{children:m?aA(e,p,g).map(m):aA(e,p,g).map(b)})}),P(rA,{children:IZ(t,p).map(C=>P(z0,{id:Bu("row",C[0]),addBorderToLastRow:o??!!l,children:C.map((S,T)=>P(W0,{id:Bu("column",S),...CZ(T,y),align:sA(T,r),children:S},Bu("column",S)))},Bu("row",C[0])))})]})})},G0=()=>bn(),AZ=e=>P(Zn,{...e,children:Fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 11 15",fill:"none",children:[P("mask",{id:"path-1-inside-1_1596_4831",fill:"white",children:P("path",{d:"M1.08594 4.74316H10.3739V12.7447C10.3739 13.6793 9.61624 14.4371 8.68156 14.4371H2.77832C1.84364 14.4371 1.08594 13.6793 1.08594 12.7447V4.74316Z"})}),Fe("g",{fill:"currentColor",children:[P("path",{d:"M1.08594 4.74316H10.3739H1.08594ZM11.5022 12.7447C11.5022 14.1467 10.3656 15.2832 8.96363 15.2832H2.77832C1.3763 15.2832 0.239745 14.1467 0.239745 12.7447H1.93213C1.93213 13.212 2.31098 13.5909 2.77832 13.5909H8.68156C8.99312 13.5909 9.24569 13.212 9.24569 12.7447H11.5022ZM2.77832 15.2832C1.3763 15.2832 0.239745 14.1467 0.239745 12.7447V4.74316H1.93213V12.7447C1.93213 13.212 2.31098 13.5909 2.77832 13.5909L2.77832 15.2832ZM11.5022 4.74316V12.7447C11.5022 14.1467 10.3656 15.2832 8.96363 15.2832L8.68156 13.5909C8.99312 13.5909 9.24569 13.212 9.24569 12.7447V4.74316H11.5022Z",mask:"url(#path-1-inside-1_1596_4831)"}),P("path",{d:"M0.89087 3.83887C0.89087 3.13786 1.45915 2.56958 2.16016 2.56958H9.24813C9.94913 2.56958 10.5174 3.13786 10.5174 3.83887V4.7635H0.89087V3.83887Z",stroke:"white",strokeWidth:"0.846193"}),P("path",{d:"M3.88599 1.69076C3.88599 1.30131 4.2017 0.985596 4.59115 0.985596H7.13468C7.52413 0.985596 7.83984 1.30131 7.83984 1.69076V2.52497H3.88599V1.69076Z",stroke:"white",strokeWidth:"0.846193"}),P("rect",{x:"3.30469",y:"5.86621",width:"0.846193",height:"6.74702",rx:"0.423096"}),P("rect",{x:"5.19531",y:"5.86621",width:"0.846193",height:"6.74702",rx:"0.423096"}),P("rect",{x:"7.08398",y:"5.86621",width:"0.846193",height:"6.74702",rx:"0.423096"})]})]})}),j0=e=>P(Zn,{...e,children:P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 13",fill:"none",children:P("path",{d:"M11.9997 1.84102L10.8247 0.666016L6.16634 5.32435L1.50801 0.666016L0.333008 1.84102L4.99134 6.49935L0.333008 11.1577L1.50801 12.3327L6.16634 7.67435L10.8247 12.3327L11.9997 11.1577L7.34134 6.49935L11.9997 1.84102Z",fill:"currentColor"})})}),SZ=e=>P(Zn,{...e,children:Fe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"27",viewBox:"0 0 15 27",fill:"none",children:[P("circle",{cx:"1.74976",cy:"22.345",r:"1.40649",transform:"rotate(90 1.74976 22.345)",fill:"currentColor"}),P("circle",{cx:"13.2517",cy:"18.658",r:"1.40649",transform:"rotate(90 13.2517 18.658)",fill:"currentColor"}),P("circle",{cx:"7.80444",cy:"25.158",r:"1.40649",transform:"rotate(90 7.80444 25.158)",fill:"currentColor"}),P("mask",{id:"path-4-inside-1_780_6722",fill:"white",children:P("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.98926 3.68708C3.01775 3.50841 3.18208 3.19325 3.76767 2.86471C4.39167 2.51461 5.32116 2.2666 6.40234 2.2666C7.48353 2.2666 8.41301 2.51461 9.03702 2.86471C9.58822 3.17396 9.76619 3.47136 9.80895 3.65422H9.80797V11.1355H11.808V3.7453H11.8203C11.8203 2.53778 10.9587 1.64962 10.0156 1.12048C9.04064 0.573466 7.76113 0.266602 6.40234 0.266602C5.04356 0.266602 3.76405 0.573466 2.78907 1.12048C1.84595 1.64962 0.984375 2.53778 0.984375 3.7453H0.989258V11.1355H2.98926V3.68708ZM3.75132 11.916C4.37769 12.25 5.31192 12.4871 6.39861 12.4871C7.48531 12.4871 8.41954 12.25 9.04591 11.916C9.71526 11.559 9.80797 11.2357 9.80797 11.1355H11.808C11.808 12.334 10.9136 13.1865 9.98709 13.6807C9.01759 14.1977 7.74714 14.4871 6.39861 14.4871C5.05009 14.4871 3.77964 14.1977 2.81014 13.6807C1.88361 13.1865 0.989258 12.334 0.989258 11.1355H2.98926C2.98926 11.2357 3.08197 11.559 3.75132 11.916Z"})}),P("path",{d:"M3.76767 2.86471L2.78907 1.12048L2.78907 1.12048L3.76767 2.86471ZM2.98926 3.68708L1.01422 3.3721L0.989258 3.5286V3.68708H2.98926ZM9.03702 2.86471L8.05842 4.60894L8.05842 4.60894L9.03702 2.86471ZM9.80895 3.65422V5.65422H12.3306L11.7564 3.19881L9.80895 3.65422ZM9.80797 3.65422V1.65422H7.80797V3.65422H9.80797ZM9.80797 11.1355H7.80797V13.1355H9.80797V11.1355ZM11.808 11.1355V13.1355H13.808V11.1355H11.808ZM11.808 3.7453V1.7453H9.80797V3.7453H11.808ZM11.8203 3.7453V5.7453H13.8203V3.7453H11.8203ZM10.0156 1.12048L10.9942 -0.623753L10.9942 -0.623753L10.0156 1.12048ZM2.78907 1.12048L1.81047 -0.623753L2.78907 1.12048ZM0.984375 3.7453H-1.01562V5.7453H0.984375V3.7453ZM0.989258 3.7453H2.98926V1.7453H0.989258V3.7453ZM0.989258 11.1355H-1.01074V13.1355H0.989258V11.1355ZM2.98926 11.1355V13.1355H4.98926V11.1355H2.98926ZM3.75132 11.916L4.69249 10.1513L4.69249 10.1513L3.75132 11.916ZM9.04591 11.916L8.10474 10.1513L8.10474 10.1513L9.04591 11.916ZM9.80797 11.1355V9.13546H7.80797V11.1355H9.80797ZM11.808 11.1355H13.808V9.13546H11.808V11.1355ZM9.98709 13.6807L9.04591 11.916L9.04591 11.916L9.98709 13.6807ZM2.81014 13.6807L3.75132 11.916L3.75132 11.916L2.81014 13.6807ZM0.989258 11.1355V9.13546H-1.01074V11.1355H0.989258ZM2.98926 11.1355H4.98926V9.13546H2.98926V11.1355ZM2.78907 1.12048C1.90355 1.6173 1.17442 2.36756 1.01422 3.3721L4.9643 4.00206C4.86108 4.64927 4.4606 4.76921 4.74627 4.60894L2.78907 1.12048ZM6.40234 0.266602C5.04329 0.266602 3.76386 0.573574 2.78907 1.12048L4.74627 4.60894C5.01949 4.45565 5.59902 4.2666 6.40234 4.2666V0.266602ZM10.0156 1.12048C9.04083 0.573574 7.7614 0.266602 6.40234 0.266602V4.2666C7.20567 4.2666 7.7852 4.45565 8.05842 4.60894L10.0156 1.12048ZM11.7564 3.19881C11.5411 2.27819 10.8538 1.59073 10.0156 1.12048L8.05842 4.60894C8.32267 4.7572 7.99125 4.66452 7.86149 4.10963L11.7564 3.19881ZM9.80895 1.65422H9.80797V5.65422H9.80895V1.65422ZM7.80797 3.65422V11.1355H11.808V3.65422H7.80797ZM9.80797 13.1355H11.808V9.13545H9.80797V13.1355ZM13.808 11.1355V3.7453H9.80797V11.1355H13.808ZM11.8203 1.7453H11.808V5.7453H11.8203V1.7453ZM9.03702 2.86471C9.33286 3.03069 9.55027 3.21864 9.67853 3.38763C9.79333 3.53888 9.82031 3.64791 9.82031 3.7453H13.8203C13.8203 1.48375 12.2142 0.0606988 10.9942 -0.623753L9.03702 2.86471ZM6.40234 2.2666C7.48373 2.2666 8.41316 2.51469 9.03702 2.86471L10.9942 -0.623753C9.66812 -1.36776 8.03854 -1.7334 6.40234 -1.7334V2.2666ZM3.76767 2.86471C4.39153 2.51469 5.32096 2.2666 6.40234 2.2666V-1.7334C4.76615 -1.7334 3.13657 -1.36776 1.81047 -0.623753L3.76767 2.86471ZM2.98438 3.7453C2.98438 3.64791 3.01136 3.53888 3.12616 3.38763C3.25442 3.21864 3.47183 3.03069 3.76767 2.86471L1.81047 -0.623753C0.590519 0.0606987 -1.01562 1.48375 -1.01562 3.7453H2.98438ZM0.989258 1.7453H0.984375V5.7453H0.989258V1.7453ZM-1.01074 3.7453V11.1355H2.98926V3.7453H-1.01074ZM0.989258 13.1355H2.98926V9.13545H0.989258V13.1355ZM4.98926 11.1355V3.68708H0.989258V11.1355H4.98926ZM6.39861 10.4871C5.57397 10.4871 4.97592 10.3024 4.69249 10.1513L2.81014 13.6807C3.77947 14.1977 5.04987 14.4871 6.39861 14.4871V10.4871ZM8.10474 10.1513C7.82131 10.3024 7.22326 10.4871 6.39861 10.4871V14.4871C7.74736 14.4871 9.01776 14.1977 9.98709 13.6807L8.10474 10.1513ZM7.80797 11.1355C7.80797 10.6452 7.99822 10.332 8.09667 10.2049C8.20527 10.0647 8.26004 10.0684 8.10474 10.1513L9.98709 13.6807C10.9516 13.1663 11.808 12.3057 11.808 11.1355H7.80797ZM11.808 9.13546H9.80797V13.1355H11.808V9.13546ZM10.9283 15.4454C12.0997 14.8206 13.808 13.4411 13.808 11.1355H9.80797C9.80797 11.2015 9.79263 11.2859 9.68257 11.4237C9.55677 11.5811 9.33992 11.7592 9.04591 11.916L10.9283 15.4454ZM6.39861 16.4871C8.00879 16.4871 9.61553 16.1455 10.9283 15.4454L9.04591 11.916C8.41966 12.25 7.48548 12.4871 6.39861 12.4871V16.4871ZM1.86896 15.4454C3.1817 16.1455 4.78844 16.4871 6.39861 16.4871V12.4871C5.31175 12.4871 4.37757 12.25 3.75132 11.916L1.86896 15.4454ZM-1.01074 11.1355C-1.01074 13.4411 0.697576 14.8206 1.86896 15.4454L3.75132 11.916C3.45731 11.7592 3.24046 11.5811 3.11466 11.4237C3.0046 11.2859 2.98926 11.2015 2.98926 11.1355H-1.01074ZM2.98926 9.13546H0.989258V13.1355H2.98926V9.13546ZM4.69249 10.1513C4.53719 10.0684 4.59196 10.0647 4.70056 10.2049C4.79901 10.332 4.98926 10.6452 4.98926 11.1355H0.989258C0.989258 12.3057 1.84561 13.1663 2.81014 13.6807L4.69249 10.1513Z",fill:"currentColor",mask:"url(#path-4-inside-1_780_6722)"}),P("path",{d:"M10.335 3.41366C10.335 4.44834 8.57274 5.28711 6.39893 5.28711C4.22511 5.28711 2.46289 4.44834 2.46289 3.41366",stroke:"currentColor"}),P("path",{d:"M10.9919 9.76806L13.252 12.0281L13.252 18.0281",stroke:"currentColor",strokeWidth:"1.5"}),P("path",{d:"M4.40039 12.5454L1.91399 15.3954L1.91399 21.3954",stroke:"currentColor",strokeWidth:"1.5"}),P("path",{d:"M7.9043 13.0649L7.9043 24.2749",stroke:"currentColor",strokeWidth:"1.5"})]})}),TZ=e=>P(Zn,{...e,children:P("svg",{width:"19",height:"25",viewBox:"0 0 19 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Fe("g",{id:"dataset icon",children:[P("rect",{id:"Rectangle 2",x:"1.0332",y:"1.90381",width:"16.9326",height:"22.0233",stroke:"currentColor",strokeWidth:"2"}),P("rect",{id:"Rectangle 3",x:"3.82031",y:"20.3071",width:"11.3596",height:"0.923972",fill:"currentColor"}),P("rect",{id:"Rectangle 4",x:"3.82031",y:"18.4595",width:"11.3596",height:"0.923972",fill:"currentColor"}),P("rect",{id:"Rectangle 5",x:"3.82031",y:"16.6113",width:"11.3596",height:"0.923972",fill:"currentColor"}),P("rect",{id:"Rectangle 6",x:"3.82031",y:"14.7632",width:"11.3596",height:"0.923972",fill:"currentColor"}),P("rect",{id:"Rectangle 14",x:"3.82031",y:"12.9155",width:"4.73315",height:"0.923972",fill:"currentColor"})]})})}),lA=e=>P(Zn,{...e,children:P("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",children:Fe("g",{fill:"currentColor",children:[P("circle",{cx:"5.61865",cy:"1.61865",r:"0.950684"}),P("circle",{cx:"5.61865",cy:"6.29053",r:"0.950684"}),P("circle",{cx:"5.61865",cy:"10.9624",r:"0.950684"}),P("circle",{cx:"1.61865",cy:"1.61865",r:"0.950684"}),P("circle",{cx:"1.61865",cy:"6.29053",r:"0.950684"}),P("circle",{cx:"1.61865",cy:"10.9624",r:"0.950684"})]})})}),EZ=e=>P(Zn,{...e,children:P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14",fill:"none",children:P("path",{d:"M10.5845 0.626953H2.08713C1.30112 0.626953 0.670898 1.26426 0.670898 2.04319V11.9568C0.670898 12.7357 1.30112 13.373 2.08713 13.373H12.0008C12.7797 13.373 13.417 12.7357 13.417 11.9568V3.45942L10.5845 0.626953ZM7.04395 11.9568C5.86847 11.9568 4.9196 11.0079 4.9196 9.83247C4.9196 8.65699 5.86847 7.70812 7.04395 7.70812C8.21942 7.70812 9.16829 8.65699 9.16829 9.83247C9.16829 11.0079 8.21942 11.9568 7.04395 11.9568ZM9.16829 4.87565H2.08713V2.04319H9.16829V4.87565Z",fill:"currentColor"})})}),cA=e=>P(Zn,{...e,children:Fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 44 44",fill:"none",children:[P("path",{d:"M25.6673 7.33337H18.334V14.6667H25.6673V7.33337Z",fill:"currentColor"}),P("path",{d:"M14.6673 18.3334H7.33398V25.6667H14.6673V18.3334Z",fill:"currentColor"}),P("path",{d:"M25.6673 18.3334H18.334V25.6667H25.6673V18.3334Z",fill:"currentColor"}),P("path",{d:"M36.6673 18.3334H29.334V25.6667H36.6673V18.3334Z",fill:"currentColor"}),P("path",{d:"M18.334 29.3334H25.6673V36.6667H18.334V29.3334Z",fill:"currentColor"}),P("path",{d:"M7.33398 9.16671C7.33398 8.15419 8.1548 7.33337 9.16732 7.33337H14.6673V14.6667H7.33398V9.16671Z",fill:"currentColor"}),P("path",{d:"M14.6673 29.3334H7.33398V34.8334C7.33398 35.8459 8.1548 36.6667 9.16732 36.6667H14.6673V29.3334Z",fill:"currentColor"}),P("path",{d:"M29.334 29.3334H36.6673V34.8334C36.6673 35.8459 35.8465 36.6667 34.834 36.6667H29.334V29.3334Z",fill:"currentColor"}),P("path",{d:"M34.834 7.33337H29.334V14.6667H36.6673V9.16671C36.6673 8.15419 35.8465 7.33337 34.834 7.33337Z",fill:"currentColor"})]})}),OZ=e=>P(Zn,{...e,children:P("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",children:Fe("g",{fill:"currentColor",children:[P("path",{d:"M0.222524 14.9482L0.109375 2.60168L5.23864 0.272461V12.5695L0.222524 14.9482Z"}),P("path",{d:"M10.3484 14.932L10.3047 2.60168L15.434 0.272461V12.5695L10.3484 14.932Z"}),P("path",{d:"M10.3474 2.62671L5.2411 0.285156L5.21289 1.49825L10.3474 3.8398V2.62671Z"}),P("path",{d:"M10.3474 13.7136L5.2411 11.3721L5.21289 12.5852L10.3474 14.9267V13.7136Z"})]})})}),RZ=e=>P(Zn,{...e,children:Fe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[P("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20.4332C16.6575 20.4332 20.4332 16.6575 20.4332 12C20.4332 7.34247 16.6575 3.56679 12 3.56679C7.34247 3.56679 3.56679 7.34247 3.56679 12C3.56679 16.6575 7.34247 20.4332 12 20.4332ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"}),P("path",{d:"M7.64543 10.8723H16.4005V13.1164H7.64543V10.8723Z",fill:"currentColor"})]})}),PZ=e=>P(Zn,{...e,children:P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 9 10",fill:"none",children:P("path",{d:"M8.80078 4.91772L0.506469 9.70645L0.50647 0.129001L8.80078 4.91772Z",fill:"currentColor"})})}),NZ=e=>P(Zn,{...e,children:Fe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[P("path",{d:"M10.9058 10.8723H7.64543V13.1164H10.9058V16.3635H13.1482V13.1164H16.4005V10.8723H13.1482V7.62061H10.9058V10.8723Z",fill:"currentColor"}),P("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM20.4332 12C20.4332 16.6575 16.6575 20.4332 12 20.4332C7.34247 20.4332 3.56679 16.6575 3.56679 12C3.56679 7.34247 7.34247 3.56679 12 3.56679C16.6575 3.56679 20.4332 7.34247 20.4332 12Z",fill:"currentColor"})]})}),kZ=e=>P(Dm,{container:!0,...e,children:e.children}),MZ=e=>P(Dm,{...e,children:e.children}),LZ=()=>{const e=bn();return P("svg",{xmlns:"http://www.w3.org/2000/svg",width:"141",height:"30",viewBox:"0 0 141 30",fill:"none",children:Fe("g",{fill:e.palette.mode==="dark"?"white":"black",children:[P("path",{d:"M5.00326 4.72116V2.92553H9.2337V4.96003C9.2337 6.87593 9.2337 8.51177 6.52049 8.51177V8.91208H15.0604V12.5841H9.11344V23.0004C9.11344 24.9954 9.27324 25.315 11.2698 25.315H14.6618V28.8667H9.91241C6.4793 28.8667 5.00326 27.4697 5.00326 23.918V12.5841H0.253906V8.91208C5.24213 8.91208 5.00326 7.31577 5.00326 4.72116Z"}),P("path",{d:"M16.2598 18.8492C16.2598 13.1427 20.65 8.43282 26.8754 8.43282C33.2606 8.43282 37.412 13.342 37.412 20.1259H20.5297C20.8493 23.1999 23.3237 25.6742 27.1143 25.6742C29.5095 25.6742 31.745 24.6759 32.8224 22.5211H37.0133C36.1353 26.3513 32.3826 29.3857 27.0747 29.3857C20.4507 29.3857 16.2598 24.6364 16.2598 18.8492ZM32.8619 17.0931C32.4633 14.2596 29.9494 12.1048 26.7551 12.1048C23.6037 12.1048 21.0882 14.2596 20.6895 17.0931H32.8619Z"}),P("path",{d:"M40.4043 0.929094H44.5557V28.8652H40.4043V0.929094Z"}),P("path",{d:"M50.8972 0.929586C52.2941 0.929586 53.411 1.96743 53.411 3.3644C53.411 4.80091 52.2941 5.83875 50.8972 5.83875C49.4607 5.83875 48.3438 4.80091 48.3438 3.3644C48.3438 1.96743 49.4607 0.929586 50.8972 0.929586ZM48.8215 8.9111H52.9712V28.8657H48.8215V8.9111Z"}),P("path",{d:"M72.4084 21.8029H76.5994C75.3622 26.1536 71.2503 29.3462 66.3824 29.3462C60.4354 29.3462 55.6465 24.6364 55.6465 18.8887C55.6465 13.1426 60.4354 8.43281 66.3824 8.43281C71.2503 8.43281 75.3622 11.6254 76.5994 15.9761H72.4084C71.3311 13.6616 69.1763 12.1048 66.4615 12.1048C62.6313 12.1048 59.7962 15.1376 59.7962 18.8491C59.7962 22.6414 62.6313 25.6742 66.4615 25.6742C69.1763 25.6742 71.3311 24.1174 72.4084 21.8029Z"}),P("path",{d:"M79.1914 18.8492C79.1914 13.1427 83.5816 8.43282 89.807 8.43282C96.1922 8.43282 100.344 13.342 100.344 20.1259H83.4614C83.781 23.1999 86.2553 25.6742 90.0476 25.6742C92.4412 25.6742 94.6767 24.6759 95.754 22.5211H99.9449C99.0669 26.3513 95.3142 29.3857 90.0064 29.3857C83.3823 29.3857 79.1914 24.6364 79.1914 18.8492ZM95.7936 17.0931C95.3949 14.2596 92.881 12.1048 89.6868 12.1048C86.5354 12.1048 84.0198 14.2596 83.6212 17.0931H95.7936Z"}),P("path",{d:"M107.689 8.91209V13.3023H108.087C108.886 10.7473 111.241 8.4327 115.151 8.4327C120.42 8.4327 123.971 13.0223 123.971 18.8886V28.8667H119.861V18.8886C119.861 14.7784 117.187 12.1047 113.875 12.1047C110.402 12.1047 107.689 15.0584 107.689 18.8886V28.8667H103.539V8.91209H107.689Z"}),P("path",{d:"M129.958 4.72116V2.92553H134.189V4.96003C134.189 6.87593 134.189 8.51177 131.476 8.51177V8.91208H140.016V12.5841H134.069V23.0004C134.069 24.9954 134.228 25.315 136.225 25.315H139.617V28.8667H134.867C131.434 28.8667 129.958 27.4697 129.958 23.918V12.5841H125.209V8.91208C130.197 8.91208 129.958 7.31577 129.958 4.72116Z"})]})})},na=({variant:e="body1",...t})=>P(kn,{component:"p",variant:e,...t}),DZ=({variant:e="h1",...t})=>P(kn,{component:"h1",variant:e,...t}),mp=({variant:e="h2",...t})=>P(kn,{component:"h2",variant:e,...t}),VZ=({variant:e="h3",...t})=>P(kn,{component:"h3",variant:e,...t}),BZ=({variant:e="h4",...t})=>P(kn,{component:"h4",variant:e,...t}),FZ=({variant:e="h5",...t})=>P(kn,{component:"h5",variant:e,...t}),WZ=({variant:e="h6",...t})=>P(kn,{component:"h6",variant:e,...t}),Fu=ke.forwardRef((e,t)=>P(_c,{ref:t,...e})),ra=e=>P(Ri,{...e,children:e.children});function uA(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}const dA=Xe.object({id:Xe.string(),name:Xe.string(),url:Xe.string(),icon:Xe.string()});var zZ=process.env.NODE_ENV==="production"?{name:"1ud7tr0",styles:"display:flex;flex-direction:column;align-items:center;row-gap:4px;width:100%"}:{name:"eehrjg-AppSwitch",styles:"display:flex;flex-direction:column;align-items:center;row-gap:4px;width:100%;label:AppSwitch;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy92MS9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9BcHBTd2l0Y2gvQXBwU3dpdGNoLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE4RWdCIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy92MS9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9BcHBTd2l0Y2gvQXBwU3dpdGNoLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCB6b2QgZnJvbSBcInpvZFwiO1xuaW1wb3J0IE1VSU1lbnUgZnJvbSBcIkBtdWkvbWF0ZXJpYWwvTWVudVwiO1xuaW1wb3J0IE1VSU1lbnVJdGVtIGZyb20gXCJAbXVpL21hdGVyaWFsL01lbnVJdGVtXCI7XG5cbmltcG9ydCB7IFRleHQgfSBmcm9tIFwiLi4vVGV4dC9UZXh0XCI7XG5pbXBvcnQgSWNvbkJ1dHRvbiBmcm9tIFwiLi4vLi4vaW5wdXRzL0J1dHRvbi9JY29uQnV0dG9uXCI7XG5pbXBvcnQgR3JpZEljb24gZnJvbSBcIi4uL0ljb25zL0dyaWRJY29uXCI7XG5pbXBvcnQgRmxleEJveCBmcm9tIFwiLi4vLi4vbGF5b3V0L0ZsZXhCb3hcIjtcblxuZXhwb3J0IGNvbnN0IEFwcFN3aXRjaExpYnJhcnlTY2hlbWEgPSB6b2Qub2JqZWN0KHtcbiAgaWQ6IHpvZC5zdHJpbmcoKSxcbiAgbmFtZTogem9kLnN0cmluZygpLFxuICB1cmw6IHpvZC5zdHJpbmcoKSxcbiAgaWNvbjogem9kLnN0cmluZygpLFxufSk7XG5cbmV4cG9ydCB0eXBlIEFwcFN3aXRjaExpYnJhcnlUeXBlID0gem9kLmluZmVyPHR5cGVvZiBBcHBTd2l0Y2hMaWJyYXJ5U2NoZW1hPltdO1xuXG5jb25zdCBBcHBTd2l0Y2g6IFJlYWN0LkZDPHsgYXBwczogQXBwU3dpdGNoTGlicmFyeVR5cGUgfT4gPSAoeyBhcHBzIH0pID0+IHtcbiAgY29uc3QgW2FuY2hvckVsLCBzZXRBbmNob3JFbF0gPSBSZWFjdC51c2VTdGF0ZTxudWxsIHwgSFRNTEVsZW1lbnQ+KG51bGwpO1xuXG4gIGNvbnN0IG9wZW4gPSBCb29sZWFuKGFuY2hvckVsKTtcblxuICBjb25zdCBoYW5kbGVDbGljayA9IChldmVudDogUmVhY3QuTW91c2VFdmVudDxIVE1MQnV0dG9uRWxlbWVudD4pID0+IHtcbiAgICBzZXRBbmNob3JFbChldmVudC5jdXJyZW50VGFyZ2V0KTtcbiAgfTtcblxuICBjb25zdCBoYW5kbGVDbG9zZSA9ICgpID0+IHtcbiAgICBzZXRBbmNob3JFbChudWxsKTtcbiAgfTtcblxuICByZXR1cm4gKFxuICAgIDxkaXY+XG4gICAgICA8SWNvbkJ1dHRvblxuICAgICAgICBhcmlhLWxhYmVsPVwiYXBwLXN3aXRjaFwiXG4gICAgICAgIGFyaWEtY29udHJvbHM9e29wZW4gPyBcImFwcC1zd2l0Y2gtbWVudVwiIDogdW5kZWZpbmVkfVxuICAgICAgICBhcmlhLWhhc3BvcHVwPVwidHJ1ZVwiXG4gICAgICAgIGFyaWEtZXhwYW5kZWQ9e29wZW4gPyBcInRydWVcIiA6IHVuZGVmaW5lZH1cbiAgICAgICAgb25DbGljaz17aGFuZGxlQ2xpY2t9XG4gICAgICAgIGNvbG9yPVwicHJpbWFyeVwiXG4gICAgICA+XG4gICAgICAgIDxHcmlkSWNvbiAvPlxuICAgICAgPC9JY29uQnV0dG9uPlxuICAgICAgPE1VSU1lbnVcbiAgICAgICAgaWQ9XCJhcHAtc3dpdGNoLW1lbnVcIlxuICAgICAgICBhbmNob3JFbD17YW5jaG9yRWx9XG4gICAgICAgIG9wZW49e29wZW59XG4gICAgICAgIG9uQ2xvc2U9e2hhbmRsZUNsb3NlfVxuICAgICAgICBNZW51TGlzdFByb3BzPXt7XG4gICAgICAgICAgXCJhcmlhLWxhYmVsbGVkYnlcIjogXCJhcHAtc3dpdGNoLWJ1dHRvblwiLFxuICAgICAgICB9fVxuICAgICAgPlxuICAgICAgICB7YXBwcy5tYXAoKGFwcCwgaW5kZXgpID0+IHtcbiAgICAgICAgICBjb25zdCB2YWxpZGF0ZUFwcHNTY2hlbWEgPSBBcHBTd2l0Y2hMaWJyYXJ5U2NoZW1hLnNhZmVQYXJzZShhcHApO1xuXG4gICAgICAgICAgaWYgKCF2YWxpZGF0ZUFwcHNTY2hlbWEuc3VjY2Vzcykge1xuICAgICAgICAgICAgY29uc3QgZm9ybWF0dGVkRXJyb3JzID0gdmFsaWRhdGVBcHBzU2NoZW1hLmVycm9yLmlzc3Vlcy5tYXAoXG4gICAgICAgICAgICAgIChpc3N1ZSkgPT4ge1xuICAgICAgICAgICAgICAgIHJldHVybiBgJHtpc3N1ZS5wYXRoLnRvU3RyaW5nKCkucmVwbGFjZShcIixcIiwgXCIgPiBcIil9OiAke2lzc3VlLm1lc3NhZ2V9YDtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIGNvbnN0IGVycm9yTXNnID0gZm9ybWF0dGVkRXJyb3JzLmpvaW4oXCJcXG5cIik7XG4gICAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgICA8RmxleEJveCBrZXk9e2Vycm9yTXNnfSByb2xlPVwibWVudWl0ZW1cIj5cbiAgICAgICAgICAgICAgICA8VGV4dD5cbiAgICAgICAgICAgICAgICAgIE1pc2NvbmZpZ3VyYXRpb24gZXJyb3I6IEFwcCBTd2l0Y2ggbGlicmFyeXtcIiBcIn1cbiAgICAgICAgICAgICAgICAgIHthcHA/LmlkID8gYGZvciBpZCAke2FwcC5pZH1gIDogYGF0IGluZGV4ICR7aW5kZXh9YH1cbiAgICAgICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICAgICAgPFRleHQ+e2Vycm9yTXNnfTwvVGV4dD5cbiAgICAgICAgICAgICAgPC9GbGV4Qm94PlxuICAgICAgICAgICAgKTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgPE1VSU1lbnVJdGVtIGtleT17YXBwLmlkfSBvbkNsaWNrPXtoYW5kbGVDbG9zZX0+XG4gICAgICAgICAgICAgIDxhXG4gICAgICAgICAgICAgICAgaHJlZj17YXBwLnVybH1cbiAgICAgICAgICAgICAgICBjc3M9e3tcbiAgICAgICAgICAgICAgICAgIGRpc3BsYXk6IFwiZmxleFwiLFxuICAgICAgICAgICAgICAgICAgZmxleERpcmVjdGlvbjogXCJjb2x1bW5cIixcbiAgICAgICAgICAgICAgICAgIGFsaWduSXRlbXM6IFwiY2VudGVyXCIsXG4gICAgICAgICAgICAgICAgICByb3dHYXA6IDQsXG4gICAgICAgICAgICAgICAgICB3aWR0aDogXCIxMDAlXCJcbiAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgPGltZ1xuICAgICAgICAgICAgICAgICAgc3JjPXthcHAuaWNvbn1cbiAgICAgICAgICAgICAgICAgIGFsdD17YCR7YXBwLm5hbWV9IGljb25gfVxuICAgICAgICAgICAgICAgICAgY3NzPXt7IHdpZHRoOiAyNSwgaGVpZ2h0OiAyNSB9fVxuICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAge2FwcC5uYW1lfVxuICAgICAgICAgICAgICA8L2E+XG4gICAgICAgICAgICA8L01VSU1lbnVJdGVtPlxuICAgICAgICAgICk7XG4gICAgICAgIH0pfVxuICAgICAgPC9NVUlNZW51PlxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgQXBwU3dpdGNoO1xuIl19 */",toString:uA},GZ=process.env.NODE_ENV==="production"?{name:"1k1rh22",styles:"width:25px;height:25px"}:{name:"9qz4wy-AppSwitch",styles:"width:25px;height:25px;label:AppSwitch;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy92MS9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9BcHBTd2l0Y2gvQXBwU3dpdGNoLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5RmtCIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy92MS9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9BcHBTd2l0Y2gvQXBwU3dpdGNoLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCB6b2QgZnJvbSBcInpvZFwiO1xuaW1wb3J0IE1VSU1lbnUgZnJvbSBcIkBtdWkvbWF0ZXJpYWwvTWVudVwiO1xuaW1wb3J0IE1VSU1lbnVJdGVtIGZyb20gXCJAbXVpL21hdGVyaWFsL01lbnVJdGVtXCI7XG5cbmltcG9ydCB7IFRleHQgfSBmcm9tIFwiLi4vVGV4dC9UZXh0XCI7XG5pbXBvcnQgSWNvbkJ1dHRvbiBmcm9tIFwiLi4vLi4vaW5wdXRzL0J1dHRvbi9JY29uQnV0dG9uXCI7XG5pbXBvcnQgR3JpZEljb24gZnJvbSBcIi4uL0ljb25zL0dyaWRJY29uXCI7XG5pbXBvcnQgRmxleEJveCBmcm9tIFwiLi4vLi4vbGF5b3V0L0ZsZXhCb3hcIjtcblxuZXhwb3J0IGNvbnN0IEFwcFN3aXRjaExpYnJhcnlTY2hlbWEgPSB6b2Qub2JqZWN0KHtcbiAgaWQ6IHpvZC5zdHJpbmcoKSxcbiAgbmFtZTogem9kLnN0cmluZygpLFxuICB1cmw6IHpvZC5zdHJpbmcoKSxcbiAgaWNvbjogem9kLnN0cmluZygpLFxufSk7XG5cbmV4cG9ydCB0eXBlIEFwcFN3aXRjaExpYnJhcnlUeXBlID0gem9kLmluZmVyPHR5cGVvZiBBcHBTd2l0Y2hMaWJyYXJ5U2NoZW1hPltdO1xuXG5jb25zdCBBcHBTd2l0Y2g6IFJlYWN0LkZDPHsgYXBwczogQXBwU3dpdGNoTGlicmFyeVR5cGUgfT4gPSAoeyBhcHBzIH0pID0+IHtcbiAgY29uc3QgW2FuY2hvckVsLCBzZXRBbmNob3JFbF0gPSBSZWFjdC51c2VTdGF0ZTxudWxsIHwgSFRNTEVsZW1lbnQ+KG51bGwpO1xuXG4gIGNvbnN0IG9wZW4gPSBCb29sZWFuKGFuY2hvckVsKTtcblxuICBjb25zdCBoYW5kbGVDbGljayA9IChldmVudDogUmVhY3QuTW91c2VFdmVudDxIVE1MQnV0dG9uRWxlbWVudD4pID0+IHtcbiAgICBzZXRBbmNob3JFbChldmVudC5jdXJyZW50VGFyZ2V0KTtcbiAgfTtcblxuICBjb25zdCBoYW5kbGVDbG9zZSA9ICgpID0+IHtcbiAgICBzZXRBbmNob3JFbChudWxsKTtcbiAgfTtcblxuICByZXR1cm4gKFxuICAgIDxkaXY+XG4gICAgICA8SWNvbkJ1dHRvblxuICAgICAgICBhcmlhLWxhYmVsPVwiYXBwLXN3aXRjaFwiXG4gICAgICAgIGFyaWEtY29udHJvbHM9e29wZW4gPyBcImFwcC1zd2l0Y2gtbWVudVwiIDogdW5kZWZpbmVkfVxuICAgICAgICBhcmlhLWhhc3BvcHVwPVwidHJ1ZVwiXG4gICAgICAgIGFyaWEtZXhwYW5kZWQ9e29wZW4gPyBcInRydWVcIiA6IHVuZGVmaW5lZH1cbiAgICAgICAgb25DbGljaz17aGFuZGxlQ2xpY2t9XG4gICAgICAgIGNvbG9yPVwicHJpbWFyeVwiXG4gICAgICA+XG4gICAgICAgIDxHcmlkSWNvbiAvPlxuICAgICAgPC9JY29uQnV0dG9uPlxuICAgICAgPE1VSU1lbnVcbiAgICAgICAgaWQ9XCJhcHAtc3dpdGNoLW1lbnVcIlxuICAgICAgICBhbmNob3JFbD17YW5jaG9yRWx9XG4gICAgICAgIG9wZW49e29wZW59XG4gICAgICAgIG9uQ2xvc2U9e2hhbmRsZUNsb3NlfVxuICAgICAgICBNZW51TGlzdFByb3BzPXt7XG4gICAgICAgICAgXCJhcmlhLWxhYmVsbGVkYnlcIjogXCJhcHAtc3dpdGNoLWJ1dHRvblwiLFxuICAgICAgICB9fVxuICAgICAgPlxuICAgICAgICB7YXBwcy5tYXAoKGFwcCwgaW5kZXgpID0+IHtcbiAgICAgICAgICBjb25zdCB2YWxpZGF0ZUFwcHNTY2hlbWEgPSBBcHBTd2l0Y2hMaWJyYXJ5U2NoZW1hLnNhZmVQYXJzZShhcHApO1xuXG4gICAgICAgICAgaWYgKCF2YWxpZGF0ZUFwcHNTY2hlbWEuc3VjY2Vzcykge1xuICAgICAgICAgICAgY29uc3QgZm9ybWF0dGVkRXJyb3JzID0gdmFsaWRhdGVBcHBzU2NoZW1hLmVycm9yLmlzc3Vlcy5tYXAoXG4gICAgICAgICAgICAgIChpc3N1ZSkgPT4ge1xuICAgICAgICAgICAgICAgIHJldHVybiBgJHtpc3N1ZS5wYXRoLnRvU3RyaW5nKCkucmVwbGFjZShcIixcIiwgXCIgPiBcIil9OiAke2lzc3VlLm1lc3NhZ2V9YDtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIGNvbnN0IGVycm9yTXNnID0gZm9ybWF0dGVkRXJyb3JzLmpvaW4oXCJcXG5cIik7XG4gICAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgICA8RmxleEJveCBrZXk9e2Vycm9yTXNnfSByb2xlPVwibWVudWl0ZW1cIj5cbiAgICAgICAgICAgICAgICA8VGV4dD5cbiAgICAgICAgICAgICAgICAgIE1pc2NvbmZpZ3VyYXRpb24gZXJyb3I6IEFwcCBTd2l0Y2ggbGlicmFyeXtcIiBcIn1cbiAgICAgICAgICAgICAgICAgIHthcHA/LmlkID8gYGZvciBpZCAke2FwcC5pZH1gIDogYGF0IGluZGV4ICR7aW5kZXh9YH1cbiAgICAgICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICAgICAgPFRleHQ+e2Vycm9yTXNnfTwvVGV4dD5cbiAgICAgICAgICAgICAgPC9GbGV4Qm94PlxuICAgICAgICAgICAgKTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgPE1VSU1lbnVJdGVtIGtleT17YXBwLmlkfSBvbkNsaWNrPXtoYW5kbGVDbG9zZX0+XG4gICAgICAgICAgICAgIDxhXG4gICAgICAgICAgICAgICAgaHJlZj17YXBwLnVybH1cbiAgICAgICAgICAgICAgICBjc3M9e3tcbiAgICAgICAgICAgICAgICAgIGRpc3BsYXk6IFwiZmxleFwiLFxuICAgICAgICAgICAgICAgICAgZmxleERpcmVjdGlvbjogXCJjb2x1bW5cIixcbiAgICAgICAgICAgICAgICAgIGFsaWduSXRlbXM6IFwiY2VudGVyXCIsXG4gICAgICAgICAgICAgICAgICByb3dHYXA6IDQsXG4gICAgICAgICAgICAgICAgICB3aWR0aDogXCIxMDAlXCJcbiAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgPGltZ1xuICAgICAgICAgICAgICAgICAgc3JjPXthcHAuaWNvbn1cbiAgICAgICAgICAgICAgICAgIGFsdD17YCR7YXBwLm5hbWV9IGljb25gfVxuICAgICAgICAgICAgICAgICAgY3NzPXt7IHdpZHRoOiAyNSwgaGVpZ2h0OiAyNSB9fVxuICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAge2FwcC5uYW1lfVxuICAgICAgICAgICAgICA8L2E+XG4gICAgICAgICAgICA8L01VSU1lbnVJdGVtPlxuICAgICAgICAgICk7XG4gICAgICAgIH0pfVxuICAgICAgPC9NVUlNZW51PlxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgQXBwU3dpdGNoO1xuIl19 */",toString:uA};const jZ=({apps:e})=>{const[t,n]=ke.useState(null),r=!!t,o=l=>{n(l.currentTarget)},s=()=>{n(null)};return Fe("div",{children:[P(Fu,{"aria-label":"app-switch","aria-controls":r?"app-switch-menu":void 0,"aria-haspopup":"true","aria-expanded":r?"true":void 0,onClick:o,color:"primary",children:P(cA,{})}),P(mu,{id:"app-switch-menu",anchorEl:t,open:r,onClose:s,MenuListProps:{"aria-labelledby":"app-switch-button"},children:e.map((l,c)=>{const d=dA.safeParse(l);if(!d.success){const p=d.error.issues.map(g=>`${g.path.toString().replace(","," > ")}: ${g.message}`).join(`
|
|
930
930
|
`);return Fe(ra,{role:"menuitem",children:[Fe(na,{children:["Misconfiguration error: App Switch library"," ",l!=null&&l.id?`for id ${l.id}`:`at index ${c}`]}),P(na,{children:p})]},p)}return P(vu,{onClick:s,children:Fe("a",{href:l.url,css:zZ,children:[P("img",{src:l.icon,alt:`${l.name} icon`,css:GZ}),l.name]})},l.id)})})]})},fA=({appName:e,beta:t=!1,position:n="relative",apps:r=[],userProfile:o})=>{const s=G0();return Fe(d2,{color:"inherit",position:n,children:[(r==null?void 0:r.length)>=1&&P(Ar,{id:"app-switch-container",sx:{position:"absolute",top:"50%",left:16,transform:"translate(0, -50%)"},children:P(jZ,{apps:r})}),Fe(Ri,{direction:"row",spacing:2,alignItems:"center",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%);"},children:[P(pA,{fontSize:"large"}),P(LZ,{}),P(kn,{variant:"h1",color:"primary",sx:{fontFamily:"Figtree",fontSize:40},children:e}),t&&P(Ar,{position:"absolute",right:-28,bottom:2,fontSize:8,paddingInline:.5,sx:{backgroundColor:s.palette.primary.main,color:s.palette.primary.contrastText},children:"BETA"})]}),o&&P(Ri,{sx:{position:"absolute",top:"50%",right:16,transform:"translate(0, -50%)"},children:o})]})},ZZ=({children:e,...t})=>{const n=G0();return Fe(Io,{children:[P(fA,{...t}),P(Om,{maxWidth:!1,disableGutters:!0,sx:{height:`calc(100vh - ${n.components.MuiAppBar.styleOverrides.root.height}px)`,overflow:"auto",backgroundColor:n.palette.background.default},children:e})]})},XZ=e=>P(Om,{...e}),pA=({width:e=24,height:t=24,transparentBg:n=!1,color:r,sx:o,...s})=>{const l=bn();return P(ra,{sx:{width:"fit-content",height:"fit-content",padding:n?0:.5,backgroundColor:n?"transparent":l.palette.primary.main},children:P(Zn,{width:e,height:t,sx:{width:e,height:t,...o},...s,children:P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 49 51",children:Fe("g",{fill:r?"currentColor":l.palette.primary.contrastText,children:[P("path",{d:"M14.0213 18.9119C11.1503 16.4425 7.52745 15.0966 3.68057 15.0966H0.660156V18.9119H3.68057C6.9466 18.9119 10.0002 20.1865 12.2788 22.4999C14.5541 24.8117 15.807 27.9002 15.807 31.1978V50.7061H19.6224V31.1978C19.6224 26.8928 17.9794 22.8534 14.9972 19.823C14.6835 19.5044 14.3566 19.2007 14.0213 18.9119Z"}),P("path",{d:"M20.2962 15.0966C20.2016 14.997 20.107 14.8991 20.0107 14.8012C18.9021 13.6809 17.6973 12.6902 16.4161 11.8338C12.9277 9.5038 8.86506 8.18277 4.58835 8.01847C4.28631 8.00686 3.98427 8.00022 3.68057 8.00022V8.01847H0.660156V11.8338H4.52529C8.11162 11.9882 11.5137 13.1167 14.4279 15.0966C15.4502 15.7903 16.4111 16.5885 17.299 17.4847C17.7521 17.9427 18.1786 18.419 18.5785 18.9119C21.3799 22.3605 22.9034 26.6572 22.9034 31.1978V50.7061H26.7187V31.1978C26.7187 26.7816 25.5089 22.5563 23.2519 18.9119C22.4105 17.5527 21.4214 16.2749 20.2962 15.0966Z"}),P("path",{d:"M48.9188 0.94141H3.68057H0.660156V4.75677H3.68057C8.2029 4.75677 12.5443 5.89025 16.3829 8.01949C18.2582 9.05838 20.0124 10.3363 21.6089 11.8348C21.8396 12.0506 22.0669 12.2713 22.2926 12.497C23.1092 13.3202 23.8643 14.1881 24.5563 15.0976C25.4774 16.3024 26.2872 17.5786 26.9826 18.9113C28.9276 22.6536 29.9615 26.8424 29.9615 31.1971V50.707H33.7769V31.1971C33.7769 26.8938 32.894 22.7283 31.2145 18.9113H48.9188V15.0976H29.1948C28.4862 13.9641 27.6979 12.8737 26.8365 11.8348H48.9188V8.01949H23.061C21.594 6.77481 20.024 5.68447 18.3727 4.75677H48.9188V0.94141Z"})]})})})})},HZ=({width:e=124,height:t=26,sx:n,color:r="inherit",...o})=>P(Zn,{width:e,height:t,color:r,sx:{width:e,height:t,...n},...o,children:Fe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 124 26",fill:"none",children:[P("path",{d:"M5.02017 4.25845V2.68165H8.73505V4.46821C8.73505 6.15062 8.73505 7.5871 6.3525 7.5871V7.93863H13.8517V11.1631H8.62945V20.31C8.62945 22.0619 8.76977 22.3425 10.5231 22.3425H13.5016V25.4614H9.33106C6.31633 25.4614 5.02017 24.2347 5.02017 21.1158V11.1631H0.849609V7.93863C5.22993 7.93863 5.02017 6.53687 5.02017 4.25845Z",fill:"currentColor"}),P("path",{d:"M14.9043 16.665C14.9043 11.6539 18.7595 7.51805 24.2262 7.51805C29.8333 7.51805 33.4787 11.8289 33.4787 17.7861H18.6539C18.9345 20.4855 21.1073 22.6583 24.436 22.6583C26.5394 22.6583 28.5024 21.7816 29.4485 19.8895H33.1286C32.3576 23.2528 29.0622 25.9175 24.4013 25.9175C18.5845 25.9175 14.9043 21.7469 14.9043 16.665ZM29.4832 15.1229C29.1331 12.6347 26.9256 10.7425 24.1206 10.7425C21.3533 10.7425 19.1443 12.6347 18.7942 15.1229H29.4832Z",fill:"currentColor"}),P("path",{d:"M36.1055 0.928461H39.7509V25.4601H36.1055V0.928461Z",fill:"currentColor"}),P("path",{d:"M45.3223 0.929073C46.549 0.929073 47.5298 1.84044 47.5298 3.06716C47.5298 4.32861 46.549 5.23997 45.3223 5.23997C44.0609 5.23997 43.0801 4.32861 43.0801 3.06716C43.0801 1.84044 44.0609 0.929073 45.3223 0.929073ZM43.4996 7.9379H47.1436V25.4607H43.4996V7.9379Z",fill:"currentColor"}),P("path",{d:"M64.2114 19.2583H67.8916C66.8052 23.0788 63.1944 25.8823 58.9197 25.8823C53.6975 25.8823 49.4922 21.7465 49.4922 16.6992C49.4922 11.6535 53.6975 7.51761 58.9197 7.51761C63.1944 7.51761 66.8052 10.3211 67.8916 14.1416H64.2114C63.2653 12.1092 61.3732 10.7421 58.9892 10.7421C55.6258 10.7421 53.1362 13.4053 53.1362 16.6645C53.1362 19.9946 55.6258 22.6578 58.9892 22.6578C61.3732 22.6578 63.2653 21.2908 64.2114 19.2583Z",fill:"currentColor"}),P("path",{d:"M70.168 16.665C70.168 11.6539 74.0232 7.51805 79.4899 7.51805C85.0969 7.51805 88.7424 11.8289 88.7424 17.7861H73.9176C74.1982 20.4855 76.371 22.6583 79.7011 22.6583C81.803 22.6583 83.7661 21.7816 84.7122 19.8895H88.3923C87.6213 23.2528 84.3259 25.9175 79.6649 25.9175C73.8481 25.9175 70.168 21.7469 70.168 16.665ZM84.7469 15.1229C84.3968 12.6347 82.1893 10.7425 79.3843 10.7425C76.6169 10.7425 74.408 12.6347 74.0579 15.1229H84.7469Z",fill:"currentColor"}),P("path",{d:"M95.1909 7.93852V11.7937H95.541C96.2426 9.55004 98.3098 7.51756 101.744 7.51756C106.37 7.51756 109.489 11.5478 109.489 16.6992V25.4613H105.88V16.6992C105.88 13.0899 103.532 10.742 100.623 10.742C97.5734 10.742 95.1909 13.3358 95.1909 16.6992V25.4613H91.5469V7.93852H95.1909Z",fill:"currentColor"}),P("path",{d:"M114.747 4.2587V2.68189H118.462V4.46846C118.462 6.15087 118.462 7.58735 116.079 7.58735V7.93888H123.578V11.1634H118.356V20.3103C118.356 22.0621 118.496 22.3428 120.25 22.3428H123.228V25.4617H119.058C116.043 25.4617 114.747 24.2349 114.747 21.1161V11.1634H110.576V7.93888C114.956 7.93888 114.747 6.53711 114.747 4.2587Z",fill:"currentColor"})]})}),bp=e=>P(Zn,{...e,children:Fe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",children:[P("circle",{cx:"18",cy:"13.5",r:"3.375",stroke:"currentColor",strokeWidth:"2.25"}),P("path",{d:"M12 25.5V23.25C12 21.5931 13.3431 20.25 15 20.25H21C22.6569 20.25 24 21.5931 24 23.25V25.5",stroke:"currentColor",strokeWidth:"2.25",strokeLinecap:"round"})]})}),UZ={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},YZ=({color:e,...t})=>{const n=bn();return P(yr,{icon:UZ,css:Yn({color:e==="primary"?n.palette.primary.main:"inherit"},process.env.NODE_ENV==="production"?"":";label:ClockIcon;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy92MS9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9Gb250QXdlc29tZUljb25zL0Nsb2NrSWNvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0JNIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy92MS9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9Gb250QXdlc29tZUljb25zL0Nsb2NrSWNvbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSBcInJlYWN0XCI7XG5pbXBvcnQge1xuICBGb250QXdlc29tZUljb24sXG4gIEZvbnRBd2Vzb21lSWNvblByb3BzLFxufSBmcm9tIFwiQGZvcnRhd2Vzb21lL3JlYWN0LWZvbnRhd2Vzb21lXCI7XG5pbXBvcnQgeyBmYUNsb2NrIH0gZnJvbSBcIkBmb3J0YXdlc29tZS9mcmVlLXJlZ3VsYXItc3ZnLWljb25zXCI7XG5pbXBvcnQgeyB1c2VUaGVtZSB9IGZyb20gXCJAbXVpL21hdGVyaWFsL3N0eWxlc1wiO1xuXG50eXBlIENsb2NrSWNvblByb3BzID0gT21pdDxGb250QXdlc29tZUljb25Qcm9wcywgXCJpY29uXCI+ICYge1xuICBjb2xvcj86IFwicHJpbWFyeVwiIHwgXCJpbmhlcml0XCI7XG59O1xuXG5jb25zdCBDbG9ja0ljb246IFJlYWN0LkZDPENsb2NrSWNvblByb3BzPiA9ICh7IGNvbG9yLCAuLi5pY29uUHJvcHMgfSkgPT4ge1xuICBjb25zdCB0aGVtZSA9IHVzZVRoZW1lKCk7XG5cbiAgcmV0dXJuIChcbiAgICA8Rm9udEF3ZXNvbWVJY29uXG4gICAgICBpY29uPXtmYUNsb2NrfVxuICAgICAgY3NzPXt7XG4gICAgICAgIGNvbG9yOiBjb2xvciA9PT0gXCJwcmltYXJ5XCIgPyB0aGVtZS5wYWxldHRlLnByaW1hcnkubWFpbiA6IFwiaW5oZXJpdFwiLFxuICAgICAgfX1cbiAgICAgIHsuLi5pY29uUHJvcHN9XG4gICAgLz5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IENsb2NrSWNvbjtcbiJdfQ== */"),...t})},vp=({color:e,...t})=>{const n=bn();return P(yr,{icon:P1,css:Yn({color:e==="primary"?n.palette.primary.main:"inherit"},process.env.NODE_ENV==="production"?"":";label:DownArrow;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy92MS9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9Gb250QXdlc29tZUljb25zL0Rvd25BcnJvd0ljb24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWtCTSIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay90ZWxpY2VudC1kcy90ZWxpY2VudC1kcy9zcmMvdjEvY29tcG9uZW50cy9kYXRhLWRpc3BsYXkvRm9udEF3ZXNvbWVJY29ucy9Eb3duQXJyb3dJY29uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCB7XG4gIEZvbnRBd2Vzb21lSWNvbixcbiAgRm9udEF3ZXNvbWVJY29uUHJvcHMsXG59IGZyb20gXCJAZm9ydGF3ZXNvbWUvcmVhY3QtZm9udGF3ZXNvbWVcIjtcbmltcG9ydCB7IGZhQW5nbGVEb3duIH0gZnJvbSBcIkBmb3J0YXdlc29tZS9mcmVlLXNvbGlkLXN2Zy1pY29uc1wiO1xuaW1wb3J0IHsgdXNlVGhlbWUgfSBmcm9tIFwiQG11aS9tYXRlcmlhbC9zdHlsZXNcIjtcblxudHlwZSBEb3duQXJyb3dJY29uUHJvcHMgPSBPbWl0PEZvbnRBd2Vzb21lSWNvblByb3BzLCBcImljb25cIj4gJiB7XG4gIGNvbG9yPzogXCJwcmltYXJ5XCIgfCBcImluaGVyaXRcIjtcbn07XG5cbmNvbnN0IERvd25BcnJvdzogUmVhY3QuRkM8RG93bkFycm93SWNvblByb3BzPiA9ICh7IGNvbG9yLCAuLi5pY29uUHJvcHMgfSkgPT4ge1xuICBjb25zdCB0aGVtZSA9IHVzZVRoZW1lKCk7XG5cbiAgcmV0dXJuIChcbiAgICA8Rm9udEF3ZXNvbWVJY29uXG4gICAgICBpY29uPXtmYUFuZ2xlRG93bn1cbiAgICAgIGNzcz17e1xuICAgICAgICBjb2xvcjogY29sb3IgPT09IFwicHJpbWFyeVwiID8gdGhlbWUucGFsZXR0ZS5wcmltYXJ5Lm1haW4gOiBcImluaGVyaXRcIixcbiAgICAgIH19XG4gICAgICB7Li4uaWNvblByb3BzfVxuICAgIC8+XG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBEb3duQXJyb3c7XG4iXX0= */"),...t})},_Z=({color:e,...t})=>{const n=bn();return P(yr,{icon:zO,css:Yn({color:e==="primary"?n.palette.primary.main:"inherit"},process.env.NODE_ENV==="production"?"":";label:Download;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy92MS9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9Gb250QXdlc29tZUljb25zL0Rvd25sb2FkSWNvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0JNIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy92MS9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9Gb250QXdlc29tZUljb25zL0Rvd25sb2FkSWNvbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgRkMgfSBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCB7XG4gIEZvbnRBd2Vzb21lSWNvbixcbiAgRm9udEF3ZXNvbWVJY29uUHJvcHMsXG59IGZyb20gXCJAZm9ydGF3ZXNvbWUvcmVhY3QtZm9udGF3ZXNvbWVcIjtcbmltcG9ydCB7IGZhRG93bmxvYWQgfSBmcm9tIFwiQGZvcnRhd2Vzb21lL2ZyZWUtc29saWQtc3ZnLWljb25zXCI7XG5pbXBvcnQgeyB1c2VUaGVtZSB9IGZyb20gXCJAbXVpL21hdGVyaWFsL3N0eWxlc1wiO1xuXG50eXBlIERvd25sb2FkSWNvblByb3BzID0gT21pdDxGb250QXdlc29tZUljb25Qcm9wcywgXCJpY29uXCI+ICYge1xuICBjb2xvcj86IFwicHJpbWFyeVwiIHwgXCJpbmhlcml0XCI7XG59O1xuXG5jb25zdCBEb3dubG9hZDogRkM8RG93bmxvYWRJY29uUHJvcHM+ID0gKHsgY29sb3IsIC4uLmljb25Qcm9wcyB9KSA9PiB7XG4gIGNvbnN0IHRoZW1lID0gdXNlVGhlbWUoKTtcblxuICByZXR1cm4gKFxuICAgIDxGb250QXdlc29tZUljb25cbiAgICAgIGljb249e2ZhRG93bmxvYWR9XG4gICAgICBjc3M9e3tcbiAgICAgICAgY29sb3I6IGNvbG9yID09PSBcInByaW1hcnlcIiA/IHRoZW1lLnBhbGV0dGUucHJpbWFyeS5tYWluIDogXCJpbmhlcml0XCIsXG4gICAgICB9fVxuICAgICAgey4uLmljb25Qcm9wc31cbiAgICAvPlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgRG93bmxvYWQ7XG4iXX0= */"),...t})},Z0=({color:e,...t})=>{const n=bn();return P(yr,{icon:N1,css:Yn({color:e==="primary"?n.palette.primary.main:"inherit"},process.env.NODE_ENV==="production"?"":";label:SearchIcon;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy92MS9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9Gb250QXdlc29tZUljb25zL1NlYXJjaEljb24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWtCTSIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay90ZWxpY2VudC1kcy90ZWxpY2VudC1kcy9zcmMvdjEvY29tcG9uZW50cy9kYXRhLWRpc3BsYXkvRm9udEF3ZXNvbWVJY29ucy9TZWFyY2hJY29uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCB7XG4gIEZvbnRBd2Vzb21lSWNvbixcbiAgRm9udEF3ZXNvbWVJY29uUHJvcHMsXG59IGZyb20gXCJAZm9ydGF3ZXNvbWUvcmVhY3QtZm9udGF3ZXNvbWVcIjtcbmltcG9ydCB7IGZhTWFnbmlmeWluZ0dsYXNzIH0gZnJvbSBcIkBmb3J0YXdlc29tZS9mcmVlLXNvbGlkLXN2Zy1pY29uc1wiO1xuaW1wb3J0IHsgdXNlVGhlbWUgfSBmcm9tIFwiQG11aS9tYXRlcmlhbC9zdHlsZXNcIjtcblxudHlwZSBTZWFyY2hJY29uUHJvcHMgPSBPbWl0PEZvbnRBd2Vzb21lSWNvblByb3BzLCBcImljb25cIj4gJiB7XG4gIGNvbG9yPzogXCJwcmltYXJ5XCIgfCBcImluaGVyaXRcIjtcbn07XG5cbmNvbnN0IFNlYXJjaEljb246IFJlYWN0LkZDPFNlYXJjaEljb25Qcm9wcz4gPSAoeyBjb2xvciwgLi4uZmFJY29uUHJvcHMgfSkgPT4ge1xuICBjb25zdCB0aGVtZSA9IHVzZVRoZW1lKCk7XG5cbiAgcmV0dXJuIChcbiAgICA8Rm9udEF3ZXNvbWVJY29uXG4gICAgICBpY29uPXtmYU1hZ25pZnlpbmdHbGFzc31cbiAgICAgIGNzcz17e1xuICAgICAgICBjb2xvcjogY29sb3IgPT09IFwicHJpbWFyeVwiID8gdGhlbWUucGFsZXR0ZS5wcmltYXJ5Lm1haW4gOiBcImluaGVyaXRcIixcbiAgICAgIH19XG4gICAgICB7Li4uZmFJY29uUHJvcHN9XG4gICAgLz5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IFNlYXJjaEljb247XG4iXX0= */"),...t})},qZ=e=>P(fu,{...e}),JZ=e=>P(hu,{...e}),KZ=e=>P(pu,{...e}),QZ=e=>P(IC,{...e}),$Z=e=>P(Bf,{...e}),eX=({variant:e="filled",...t})=>P(If,{variant:e,color:"primary",...t}),tX=e=>P(Lf,{...e}),nX=({backgroundColor:e,borderColor:t,color:n,iconClass:r,className:o,role:s="img",...l})=>P(Ar,{component:"div",sx:{backgroundColor:e,color:n,borderColor:t,borderRadius:9999,width:34,height:34,borderWidth:2,borderStyle:"solid",display:"flex",justifyContent:"center",alignItems:"center"},children:P("i",{role:s,"aria-hidden":"true",className:r+" "+o,...l})});function rX(e){return typeof e=="string"}function oX(e,t,n){return e===void 0||rX(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function iX(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function wl(e,t,n){return typeof e=="function"?e(t,n):e}function sX(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function aX(...e){return E.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{sX(n,t)})},e)}function hA(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function lX(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const v=Ce(n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),y={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},b={...n,...o,...r};return v.length>0&&(b.className=v),Object.keys(y).length>0&&(b.style=y),{props:b,internalRef:void 0}}const l=iX({...o,...r}),c=hA(r),d=hA(o),f=t(l),p=Ce(f==null?void 0:f.className,n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),g={...f==null?void 0:f.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},m={...f,...n,...d,...c};return p.length>0&&(m.className=p),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:f.ref}}function cX(e,t,n){return typeof e=="function"?e(t,n):e}function Al(e){var g;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...s}=e,l=o?{}:cX(n,r),{props:c,internalRef:d}=lX({...s,externalSlotProps:l}),f=aX(d,l==null?void 0:l.ref,(g=e.additionalProps)==null?void 0:g.ref);return oX(t,{...c,ref:f},r)}const uX=(e,t)=>{const n=E.useRef({}),[r,o]=E.useState(()=>{const l={};return e.forEach(c=>{c.models&&Object.entries(c.models).forEach(([d,f])=>{n.current[d]={isControlled:t[d]!==void 0,getDefaultValue:f.getDefaultValue},l[d]=f.getDefaultValue(t)})}),l}),s=Object.fromEntries(Object.entries(n.current).map(([l,c])=>{const d=t[l]??r[l];return[l,{value:d,setControlledValue:f=>{c.isControlled||o(p=>A({},p,{[l]:f}))}}]}));return process.env.NODE_ENV!=="production"&&Object.entries(n.current).forEach(([l,c])=>{const d=t[l],f=c.getDefaultValue(t);E.useEffect(()=>{c.isControlled!==(d!==void 0)&&console.error([`MUI X: A component is changing the ${c.isControlled?"":"un"}controlled ${l} state of TreeView to be ${c.isControlled?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${l} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
931
931
|
`))},[d]);const{current:p}=E.useRef(f);E.useEffect(()=>{!c.isControlled&&p!==f&&console.error([`MUI X: A component is changing the default ${l} state of an uncontrolled TreeView after being initialized. To suppress this warning opt to use a controlled TreeView.`].join(`
|
|
932
932
|
`))},[JSON.stringify(f)])}),s};class dX{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];if(o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0),process.env.NODE_ENV!=="production"){const s=o.highPriority.size+o.regular.size;s>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${s} ${t} listeners added.`].join(`
|
|
@@ -41,6 +41,7 @@ export type SearchAutocompleteProps<Option = DefaultOption> = {
|
|
|
41
41
|
loading: MUIAutocompleteProps<Option>["loading"];
|
|
42
42
|
loadingText: MUIAutocompleteProps<Option>["loadingText"];
|
|
43
43
|
openOnFocus: MUIAutocompleteProps<Option>["openOnFocus"];
|
|
44
|
+
name: string;
|
|
44
45
|
/**
|
|
45
46
|
* The short hint displayed in the input before the user enters a value.
|
|
46
47
|
*/
|
|
@@ -55,5 +56,5 @@ export type SearchAutocompleteProps<Option = DefaultOption> = {
|
|
|
55
56
|
onChange: MUIAutocompleteProps<Option>["onChange"];
|
|
56
57
|
onInputChange: MUIAutocompleteProps<Option>["onInputChange"];
|
|
57
58
|
}>;
|
|
58
|
-
declare const SearchAutocomplete: <Option>({ autoFocus, autoHighlight, error, fullWidth, getOptionKey, getOptionLabel, helperText, id, inputValue, isOptionEqualToValue, label, listboxMaxHeight, loading, loadingText, onChange, onInputChange, openOnFocus, options, placeholder, width, }: SearchAutocompleteProps<Option>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
59
|
+
declare const SearchAutocomplete: <Option>({ autoFocus, autoHighlight, error, fullWidth, getOptionKey, getOptionLabel, helperText, id, inputValue, isOptionEqualToValue, label, listboxMaxHeight, loading, loadingText, name, onChange, onInputChange, openOnFocus, options, placeholder, width, }: SearchAutocompleteProps<Option>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
59
60
|
export default SearchAutocomplete;
|