@skill-map/cli 0.50.0 → 0.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import{A as Ln,B as zn,D as Vn,E as qt,F as ft,G as Fn,H as gt,J as Ne,K as Bn,N as An,O as Te,P as Nn,Q as rt,R as Ot,a as xe,b as lt,c as wn,f as En,g as St,i as Sn,j as _e,k as F,l as Ae,m as le,p as at,s as On,t as Mn,u as kn,v as ee,w as ae,x,y as Se,z as Dn}from"./chunk-DOWLJNMD.js";import{A as Tt,C as It,E as Ke,G as Rt,I as Cn,J as Ze,K as wt,N as xn,O as st,P as Ht,Q as jt,R as Tn,T as Et,U as Be,V as We,X as $t,a as hn,b as ot,ca as In,d as Qe,fa as Qt,g as fn,h as Nt,k as gn,l as Pt,m as ut,n as _n,o as bn,p as ht,r as yn,u as Ee,v as Ce,w as vn,x as xt,y as Ge}from"./chunk-4SG4352Z.js";import{c as it,e as Ct,f as we,g as qe,h as he,i as te,j as Fe,s as un}from"./chunk-WMGW2UAL.js";import{$a as d,$b as cn,Ab as k,Db as Q,Dc as g,Ea as vt,Eb as et,Ec as ve,Fb as V,Fc as At,Ha as c,Hb as r,Ib as fe,J as Xe,Jb as de,K as Y,Kb as ge,L as ne,Lb as $e,Mb as u,N as X,Nb as h,P as y,Qa as ke,Rb as be,Sb as tt,Tb as rn,Ub as Oe,V as I,Vb as f,W as w,Wa as z,Wb as Ie,X as $,Xa as ie,Xb as De,Ya as je,Yb as Ft,Za as oe,_ as tn,_a as O,ac as dn,ba as E,bc as pn,ca as ze,fc as J,ga as ce,gc as nt,hc as H,ia as Je,ib as M,ic as Ve,jb as on,jc as mn,ka as S,kb as sn,lb as A,mb as N,oc as q,pa as nn,pb as ln,qb as an,qc as Bt,rb as a,rc as se,sb as _,sc as ue,tb as b,tc as m,ub as j,vb as Re,wb as He,xb as me,yb as G,zb as K}from"./chunk-VJ57LHDR.js";import{a as Z,b as mt}from"./chunk-WCABR6TI.js";var Pn=`
1
+ import{A as zn,C as Vn,D as qt,E as ft,F as Fn,G as gt,I as Ne,J as Bn,M as An,N as Te,O as Nn,P as rt,Q as Ot,a as xe,b as lt,c as wn,f as En,g as St,h as Sn,i as _e,j as F,k as Ae,l as le,o as at,r as On,s as Mn,t as kn,u as ee,v as ae,w as x,x as Se,y as Dn,z as Ln}from"./chunk-VBTLX7GH.js";import{A as Tt,C as It,E as Ke,G as Rt,I as Cn,J as Ze,K as wt,N as xn,O as st,P as Ht,Q as jt,R as Tn,T as Et,U as Be,V as We,X as $t,a as hn,b as ot,ca as In,d as Qe,fa as Qt,g as fn,h as Nt,k as gn,l as Pt,m as ut,n as _n,o as bn,p as ht,r as yn,u as Ee,v as Ce,w as vn,x as xt,y as Ge}from"./chunk-4SG4352Z.js";import{c as it,e as Ct,f as we,g as qe,h as he,i as te,j as Fe,s as un}from"./chunk-WMGW2UAL.js";import{$a as d,$b as cn,Ab as k,Db as Q,Dc as g,Ea as vt,Eb as et,Ec as ve,Fb as V,Fc as At,Ha as c,Hb as r,Ib as fe,J as Xe,Jb as de,K as Y,Kb as ge,L as ne,Lb as $e,Mb as u,N as X,Nb as h,P as y,Qa as ke,Rb as be,Sb as tt,Tb as rn,Ub as Oe,V as I,Vb as f,W as w,Wa as z,Wb as Ie,X as $,Xa as ie,Xb as De,Ya as je,Yb as Ft,Za as oe,_ as tn,_a as O,ac as dn,ba as E,bc as pn,ca as ze,fc as J,ga as ce,gc as nt,hc as H,ia as Je,ib as M,ic as Ve,jb as on,jc as mn,ka as S,kb as sn,lb as A,mb as N,oc as q,pa as nn,pb as ln,qb as an,qc as Bt,rb as a,rc as se,sb as _,sc as ue,tb as b,tc as m,ub as j,vb as Re,wb as He,xb as me,yb as G,zb as K}from"./chunk-VJ57LHDR.js";import{a as Z,b as mt}from"./chunk-WCABR6TI.js";var Pn=`
2
2
  .p-iconfield {
3
3
  position: relative;
4
4
  display: block;
@@ -0,0 +1 @@
1
+ import{J as Y,K as X,S as vt,ba as Ae,ca as ht,ea as _t}from"./chunk-VBTLX7GH.js";import{b as gt,i as we}from"./chunk-AEA5GIA7.js";import{d as mt}from"./chunk-WMGW2UAL.js";import{$ as rt,$a as at,Ab as ct,Db as lt,Gb as dt,Ha as p,Hb as y,K as Z,N as tt,P as W,Sb as ut,Tb as ee,V as nt,Vb as Pe,W as it,Wa as A,Wb as C,Xb as k,Yb as Ce,_ as ot,ga as q,gc as pt,hc as ft,ia as be,ib as S,lb as N,mb as E,nb as st,pb as U,qb as H,rb as F,rc as m,sb as O,tb as P,tc as D,ub as se,vb as w,wb as M,xb as le}from"./chunk-VJ57LHDR.js";import{d as et}from"./chunk-WCABR6TI.js";var wn=new Set(["stale-body","stale-frontmatter","stale-both"]);function yt(e){return e?wn.has(e.status??null):!1}function ge(e){let n=e.metadata;return n&&typeof n=="object"&&!Array.isArray(n)?n:null}function Yi(e){if(!e)return null;let n=e.sidecar?.annotations;if(n&&typeof n.version=="number")return`v${n.version}`;let t=ge(e.frontmatter)?.version;return typeof t=="string"&&t.length>0?`v${t}`:null}function Xi(e){if(!e)return null;let t=e.sidecar?.annotations?.stability;if(t==="stable"||t==="experimental"||t==="deprecated")return t;let i=ge(e.frontmatter)?.stability;return i==="stable"||i==="experimental"||i==="deprecated"?i:null}function Qi(e){if(!e)return[];let n=e.frontmatter,t=[];if(e.kind==="agent"&&Array.isArray(n.tools))for(let i of n.tools)typeof i=="string"&&i.length>0&&t.push(i);if(e.kind==="skill"||e.kind==="command"){let i=n["allowed-tools"];if(Array.isArray(i))for(let o of i)typeof o=="string"&&o.length>0&&t.push(o);else typeof i=="string"&&i.length>0&&t.push(i)}return t}function Ji(e){return yt(e?.sidecar)}function Zi(e){if(!e)return null;let t=e.sidecar?.annotations?.supersededBy;if(typeof t=="string"&&t.length>0)return t;let i=ge(e.frontmatter)?.supersededBy;return typeof i=="string"&&i.length>0?i:null}function xt(e){if(!e)return[];let t=e.sidecar?.annotations?.tags;if(Array.isArray(t))return t.filter(o=>typeof o=="string"&&o.length>0);let i=ge(e.frontmatter)?.tags;return Array.isArray(i)?i.filter(o=>typeof o=="string"&&o.length>0):[]}function eo(e,n){switch(e?.sidecar?.status){case"stale-body":return n.staleBody;case"stale-frontmatter":return n.staleFrontmatter;case"stale-both":return n.staleBoth;default:return""}}function to(e){return e<1e3?`${e}`:e<1e4?`${(e/1e3).toFixed(1).replace(/\.0$/,"")}k`:`${Math.round(e/1e3)}k`}function no(e){let n=new Date(e);if(isNaN(n.getTime()))return e;let t=Date.now()-n.getTime(),i=Math.floor(t/1e3);if(i<60)return"just now";let o=Math.floor(i/60);if(o<60)return`${o} minute${o===1?"":"s"} ago`;let r=Math.floor(o/60);if(r<24)return`${r} hour${r===1?"":"s"} ago`;let s=Math.floor(r/24);if(s<30)return`${s} day${s===1?"":"s"} ago`;let a=Math.floor(s/30);if(a<12)return`${a} month${a===1?"":"s"} ago`;let l=Math.floor(s/365);return`${l} year${l===1?"":"s"} ago`}var bt=["invokes","references","mentions","supersedes"],so=(()=>{class e{_searchText=q("");_selectedKinds=q([]);_kindToggleExplicitEmpty=q(!1);_favoritesOnly=q(!1);_selectedLinkKinds=q([]);_severityErrorActive=q(!1);_severityWarnActive=q(!1);searchText=this._searchText.asReadonly();selectedKinds=this._selectedKinds.asReadonly();favoritesOnly=this._favoritesOnly.asReadonly();selectedLinkKinds=this._selectedLinkKinds.asReadonly();severityErrorActive=this._severityErrorActive.asReadonly();severityWarnActive=this._severityWarnActive.asReadonly();kindToggleExplicitEmpty=this._kindToggleExplicitEmpty.asReadonly();isActive=m(()=>this._searchText().trim().length>0||this._selectedKinds().length>0||this._kindToggleExplicitEmpty()||this._favoritesOnly()||this._selectedLinkKinds().length>0||this._severityErrorActive()||this._severityWarnActive());setSearchText(t){this._searchText.set(t)}setKinds(t){this._kindToggleExplicitEmpty.set(!1),this._selectedKinds.set([...t])}toggleKind(t,i){let o=this._selectedKinds(),r=i,a=this._kindToggleExplicitEmpty()?new Set:o.length===0?new Set(r):new Set(o);a.has(t)?a.delete(t):a.add(t),a.size===r.length?(this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!1)):a.size===0?(this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!0)):(this._selectedKinds.set([...a]),this._kindToggleExplicitEmpty.set(!1))}isKindActive(t){if(this._kindToggleExplicitEmpty())return!1;let i=this._selectedKinds();return i.length===0?!0:i.includes(t)}setFavoritesOnly(t){this._favoritesOnly.set(t)}setLinkKinds(t){this._selectedLinkKinds.set([...t])}toggleLinkKind(t){let i=this._selectedLinkKinds(),o=i.length===0?new Set(bt):new Set(i);o.has(t)?o.delete(t):o.add(t),o.size===bt.length?this._selectedLinkKinds.set([]):this._selectedLinkKinds.set([...o])}isLinkKindActive(t){let i=this._selectedLinkKinds();return i.length===0?!0:i.includes(t)}toggleSeverity(t){t==="error"?this._severityErrorActive.set(!this._severityErrorActive()):this._severityWarnActive.set(!this._severityWarnActive())}isSeverityActive(t){return t==="error"?this._severityErrorActive():this._severityWarnActive()}setSeverityFilters(t){let i=new Set(t);this._severityErrorActive.set(i.has("error")),this._severityWarnActive.set(i.has("warn"))}reset(){this._searchText.set(""),this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!1),this._favoritesOnly.set(!1),this._selectedLinkKinds.set([]),this._severityErrorActive.set(!1),this._severityWarnActive.set(!1)}apply(t,i){let o=this.searchText().trim().toLowerCase(),r=this.selectedKinds(),s=this._kindToggleExplicitEmpty(),a=this.favoritesOnly(),l=this._severityErrorActive(),c=this._severityWarnActive(),f=(l||c)&&i!==void 0;return t.filter(h=>{if(o){let _=xt(h).join(" ");if(![h.path,h.frontmatter.name??"",h.frontmatter.description??"",_].join(" ").toLowerCase().includes(o))return!1}return!(s||r.length>0&&!r.includes(h.kind)||a&&h.isFavorite!==!0||f&&(l&&!i.errors.has(h.path)||c&&!i.warns.has(h.path)))})}static \u0275fac=function(i){return new(i||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Tn=(()=>{class e{router=W(we);open(t){this.router.navigate(["/"],{queryParams:{path:t}})}static \u0275fac=function(i){return new(i||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ct=new tt("NODE_OPEN_INTENT",{providedIn:"root",factory:()=>W(Tn)});var Te="sm-debug-slots",Mn="debug-slots",kn="is-debug-slots",wt=(()=>{class e{visible=q(!1);constructor(){this.visible.set(this.resolveInitial()),be(()=>{let t=this.visible();document.documentElement.classList.toggle(kn,t)})}toggle(){let t=!this.visible();this.visible.set(t);try{localStorage.setItem(Te,t?"1":"0")}catch{}}resolveInitial(){let i=new URLSearchParams(window.location.search).get(Mn);if(i==="1"||i==="true"){try{localStorage.setItem(Te,"1")}catch{}return!0}if(i==="0"||i==="false"){try{localStorage.setItem(Te,"0")}catch{}return!1}try{return localStorage.getItem(Te)==="1"}catch{return!1}}static \u0275fac=function(i){return new(i||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Tt=(()=>{class e{registry=q({});setRegistry(t){t&&this.registry.set(t)}get(t){return this.registry()[t]}all(){return this.registry()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Q(e){return typeof e=="object"&&e!==null}function oe(e,n){return Q(e)&&Array.isArray(e[n])}function Me(e,n){return Q(e)&&typeof e[n]=="string"}var K={panelHeader:"Plugin contributions",panelCount:e=>`${e} contribution${e===1?"":"s"}`,emptyDefault:"No contributions for this node.",rendererInvalid:"Contribution data failed schema validation.",rendererUnknownSlot:e=>`Unknown slot: ${e}. Update the UI to a newer catalog version.`,overflowBadge:e=>`+${e}`,overflowTooltip:e=>`Hidden: ${e}`,recordsCell:{boolTrue:"yes",boolFalse:"no"}};var Nn=(e,n)=>n.label;function En(e,n){if(e&1&&(w(0,"h5",1),C(1),M()),e&2){let t=y();p(),k(t.label())}}function In(e,n){if(e&1&&(w(0,"p",2),C(1),M()),e&2){let t=y();p(),k(t.emptyText())}}function Sn(e,n){if(e&1&&(w(0,"li",4)(1,"span",5),C(2),M(),w(3,"span",6),le(4,"span",7),M(),w(5,"span",8),C(6),M()()),e&2){let t=n.$implicit,i=y(2);S("title",t.tooltip??""),p(2),k(t.label),p(2),ut("width",i.percent(t.value),"%"),p(2),k(t.value)}}function Dn(e,n){if(e&1&&(w(0,"ul",3),U(1,Sn,7,5,"li",4,Nn),M()),e&2){let t=y();p(),H(t.entries())}}var Mt=(()=>{class e{inputs=D.required();typed=m(()=>{let t=this.inputs().payload;return Q(t)?oe(t,"entries")?t:{entries:[]}:{entries:[]}});entries=m(()=>this.typed().entries??[]);label=m(()=>this.inputs().label);emptyText=m(()=>this.inputs().emptyText??K.emptyDefault);maxValue=m(()=>this.entries().reduce((i,o)=>o.value>i?o.value:i,0));percent(t){let i=this.maxValue();return i===0?0:Math.round(t/i*100)}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-breakdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-breakdown"],[1,"vc-breakdown__header"],[1,"vc-breakdown__empty"],[1,"vc-breakdown__rows"],[1,"vc-breakdown__row"],[1,"vc-breakdown__label"],[1,"vc-breakdown__bar-track"],["aria-hidden","true",1,"vc-breakdown__bar"],[1,"vc-breakdown__value"]],template:function(i,o){i&1&&(w(0,"section",0),N(1,En,2,1,"h5",1),N(2,In,2,1,"p",2)(3,Dn,3,0,"ul",3),M()),i&2&&(S("data-testid","renderer-node-breakdown"),p(),E(o.label()?1:-1),p(),E(o.entries().length===0?2:3))},styles:[".vc-breakdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-breakdown__rows[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.25rem}.vc-breakdown__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(4rem,.4fr) 1fr 3rem;align-items:center;gap:.5rem;font-size:.85rem}.vc-breakdown__label[_ngcontent-%COMP%]{color:var(--p-surface-700);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vc-breakdown__bar-track[_ngcontent-%COMP%]{background:var(--p-surface-100);border-radius:var(--sm-radius-md);height:.625rem;overflow:hidden}.vc-breakdown__bar[_ngcontent-%COMP%]{display:block;height:100%;background:var(--p-primary-500)}.vc-breakdown__value[_ngcontent-%COMP%]{text-align:right;color:var(--p-surface-600)}.vc-breakdown__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();function On(e,n){if(e&1&&(w(0,"span",1),C(1),M()),e&2){let t=y(),i=y();Pe(i.hostClass()),p(),k(t.text)}}function Pn(e,n){if(e&1&&le(0,"i",1),e&2){let t=y(),i=y();Pe(i.hostClass()+" "+t.cls)}}function An(e,n){e&1&&N(0,On,2,3,"span",0)(1,Pn,1,2,"i",0),e&2&&E(n.kind==="emoji"?0:1)}function $n(e){if(!e)return null;let n=e.trim();if(n.length===0)return null;let t=n.codePointAt(0)??0;if(!(t>=65&&t<=90||t>=97&&t<=122))return{kind:"emoji",text:n};if(/^pi pi-[a-z0-9-]+$/.test(n))return{kind:"pi",cls:n};if(/^pi-[a-z0-9-]+$/.test(n))return{kind:"pi",cls:`pi ${n}`};if(/^fa-(?:solid|regular|brands) fa-[a-z0-9-]+$/.test(n))return{kind:"fa",cls:n};if(/^fa-[a-z0-9-]+$/.test(n)){let o=n.slice(3);return o==="solid"||o==="regular"||o==="brands"||o.includes("fa-")?null:{kind:"fa",cls:`fa-solid ${n}`}}return null}var ce=(()=>{class e{icon=D(void 0);hostClass=D("");resolved=m(()=>{let t=this.icon(),i=$n(t);return t&&!i&&console.warn(`[sm-icon] Invalid icon string "${t}". Expected emoji, pi-foo, pi pi-foo, fa-{solid|regular|brands} fa-foo, or fa-foo.`),i});static \u0275fac=function(i){return new(i||e)};static \u0275cmp=A({type:e,selectors:[["sm-icon"]],inputs:{icon:[1,"icon"],hostClass:[1,"hostClass"]},decls:1,vars:1,consts:[["aria-hidden","true",3,"class"],["aria-hidden","true"]],template:function(i,o){if(i&1&&N(0,An,2,1),i&2){let r;E((r=o.resolved())?0:-1,r)}},styles:["[_nghost-%COMP%] i[_ngcontent-%COMP%], [_nghost-%COMP%] span[_ngcontent-%COMP%]{font-size:inherit;line-height:inherit}[_nghost-%COMP%] i[_ngcontent-%COMP%]{transform:translateY(1px)}"],changeDetection:0})}return e})();function Ln(e,n){if(e&1&&(O(0,"span",3),C(1),P()),e&2){let t=y();S("aria-label",t.ariaLabel()),p(),k(t.value())}}var ve=(()=>{class e{inputs=D.required();typed=m(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{value:0}:t});value=m(()=>this.typed().value);icon=m(()=>this.inputs().icon);severity=m(()=>this.typed().severity);resolvedTooltip=m(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=m(()=>this.inputs().label??"");static \u0275fac=function(i){return new(i||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-counter"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-counter",3,"pTooltip"],[1,"vc-counter__icon"],[3,"icon"],[1,"vc-counter__value"]],template:function(i,o){i&1&&(O(0,"span",0)(1,"span",1),se(2,"sm-icon",2),P(),N(3,Ln,2,2,"span",3),P()),i&2&&(ee("vc-counter--info",o.severity()==="info")("vc-counter--warn",o.severity()==="warn")("vc-counter--success",o.severity()==="success")("vc-counter--danger",o.severity()==="danger"),F("pTooltip",o.resolvedTooltip()),S("data-testid","renderer-node-counter"),p(2),F("icon",o.icon()),p(),E(o.value()>0?3:-1))},dependencies:[X,Y,ce],styles:[".vc-counter[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1}.vc-counter__icon[_ngcontent-%COMP%]{font-size:.6rem;line-height:1;display:block}.vc-counter__value[_ngcontent-%COMP%]{font-weight:600;color:var(--p-text-color);line-height:1;display:block}.vc-counter--info[_ngcontent-%COMP%], .vc-counter--info[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-counter--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn);opacity:.85}.vc-counter--warn[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-counter--success[_ngcontent-%COMP%], .vc-counter--success[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-counter--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error);opacity:.85}.vc-counter--danger[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})}return e})();var Fn=(e,n)=>n.key;function Rn(e,n){if(e&1&&(O(0,"h5",1),C(1),P()),e&2){let t=y();p(),k(t.label())}}function jn(e,n){if(e&1&&(O(0,"p",2),C(1),P()),e&2){let t=y();p(),k(t.emptyText())}}function zn(e,n){if(e&1&&(O(0,"dt",4),C(1),P(),O(2,"dd"),C(3),P()),e&2){let t=n.$implicit,i=y(2);F("pTooltip",t.tooltip??""),p(),k(t.key),p(2),k(i.formatValue(t.value))}}function Bn(e,n){if(e&1&&(O(0,"dl",3),U(1,zn,4,3,null,null,Fn),P()),e&2){let t=y();p(),H(t.entries())}}var kt=(()=>{class e{inputs=D.required();typed=m(()=>{let t=this.inputs().payload;return Q(t)?oe(t,"entries")?t:{entries:[]}:{entries:[]}});entries=m(()=>this.typed().entries??[]);label=m(()=>this.inputs().label);emptyText=m(()=>this.inputs().emptyText??K.emptyDefault);formatValue(t){return t==null?"\xB7":typeof t=="boolean"?t?"true":"false":String(t)}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-key-values"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-kv"],[1,"vc-kv__header"],[1,"vc-kv__empty"],[1,"vc-kv__list"],[3,"pTooltip"]],template:function(i,o){i&1&&(O(0,"section",0),N(1,Rn,2,1,"h5",1),N(2,jn,2,1,"p",2)(3,Bn,3,0,"dl",3),P()),i&2&&(S("data-testid","renderer-node-key-values"),p(),E(o.label()?1:-1),p(),E(o.entries().length===0?2:3))},dependencies:[X,Y],styles:[".vc-kv__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-kv__list[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(6rem,max-content) 1fr;gap:.25rem .75rem;margin:0;font-size:.85rem}.vc-kv__list[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{color:var(--p-surface-600);font-weight:500}.vc-kv__list[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{color:var(--p-surface-800);margin:0;word-break:break-word}.vc-kv__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();var Kn=(e,n)=>n.path;function Vn(e,n){if(e&1&&(w(0,"h5",1),C(1),M()),e&2){let t=y();p(),k(t.label())}}function Un(e,n){if(e&1&&(w(0,"p",2),C(1),M()),e&2){let t=y();p(),k(t.emptyText())}}function Hn(e,n){if(e&1&&(w(0,"span",5),C(1),M()),e&2){let t=y().$implicit;p(),k(t.kind)}}function Gn(e,n){if(e&1){let t=lt();w(0,"li")(1,"button",4),dt("click",function(){let o=nt(t).$implicit,r=y(2);return it(r.onOpenPath(o.path))}),N(2,Hn,2,1,"span",5),w(3,"span",6),C(4),M()()()}if(e&2){let t=n.$implicit;p(2),E(t.kind?2:-1),p(2),k(t.label??t.path)}}function Wn(e,n){if(e&1&&(w(0,"ul",3),U(1,Gn,5,2,"li",null,Kn),M()),e&2){let t=y();p(),H(t.entries())}}var Nt=(()=>{class e{openIntent=W(Ct);inputs=D.required();typed=m(()=>{let t=this.inputs().payload;return Q(t)?oe(t,"entries")?t:{entries:[]}:{entries:[]}});entries=m(()=>this.typed().entries??[]);label=m(()=>this.inputs().label);emptyText=m(()=>this.inputs().emptyText??K.emptyDefault);onOpenPath(t){this.openIntent.open(t)}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-link-list"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-links"],[1,"vc-links__header"],[1,"vc-links__empty"],[1,"vc-links__list"],["type","button",1,"vc-links__btn",3,"click"],[1,"vc-links__kind"],[1,"vc-links__label"]],template:function(i,o){i&1&&(w(0,"section",0),N(1,Vn,2,1,"h5",1),N(2,Un,2,1,"p",2)(3,Wn,3,0,"ul",3),M()),i&2&&(S("data-testid","renderer-node-link-list"),p(),E(o.label()?1:-1),p(),E(o.entries().length===0?2:3))},styles:[".vc-links__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-links__list[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.125rem;font-size:.85rem}.vc-links__btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;background:transparent;border:0;padding:.25rem .5rem;border-radius:var(--sm-radius-md);color:var(--p-primary-600);cursor:pointer;text-align:left;width:100%}.vc-links__btn[_ngcontent-%COMP%]:hover{background:var(--p-surface-100)}.vc-links__kind[_ngcontent-%COMP%]{color:var(--p-surface-500);font-family:var(--sm-font-mono);font-size:.75rem}.vc-links__label[_ngcontent-%COMP%]{word-break:break-all}.vc-links__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();var Et=(e,n)=>n.key;function qn(e,n){if(e&1&&(w(0,"h5",1),C(1),M()),e&2){let t=y();p(),k(t.label())}}function Yn(e,n){if(e&1&&(w(0,"p",2),C(1),M()),e&2){let t=y();p(),k(t.emptyText())}}function Xn(e,n){if(e&1&&(w(0,"th"),C(1),M()),e&2){let t=n.$implicit;p(),k(t.label)}}function Qn(e,n){if(e&1&&le(0,"i",4),e&2){let t=y(4);S("aria-label",t.texts.boolTrue)}}function Jn(e,n){if(e&1&&le(0,"i",5),e&2){let t=y(4);S("aria-label",t.texts.boolFalse)}}function Zn(e,n){}function ei(e,n){if(e&1&&C(0),e&2){let t=y().$implicit,i=y().$implicit,o=y(2);Ce(" ",o.cellText(i[t.key])," ")}}function ti(e,n){if(e&1&&(w(0,"td"),N(1,Qn,1,1,"i",4)(2,Jn,1,1,"i",5)(3,Zn,0,0)(4,ei,1,1),M()),e&2){let t,i=n.$implicit,o=y().$implicit,r=y(2);p(),E((t=r.cellKind(o[i.key]))==="bool-true"?1:t==="bool-false"?2:t==="empty"?3:4)}}function ni(e,n){if(e&1&&(w(0,"tr"),U(1,ti,5,1,"td",null,Et),M()),e&2){let t=y(2);p(),H(t.columns())}}function ii(e,n){if(e&1&&(w(0,"table",3)(1,"thead")(2,"tr"),U(3,Xn,2,1,"th",null,Et),M()(),w(5,"tbody"),U(6,ni,3,0,"tr",null,st),M()()),e&2){let t=y();p(3),H(t.columns()),p(3),H(t.rows())}}var It=(()=>{class e{inputs=D.required();typed=m(()=>{let t=this.inputs().payload;return Q(t)?!oe(t,"columns")||!oe(t,"rows")?{columns:[],rows:[]}:t:{columns:[],rows:[]}});columns=m(()=>this.typed().columns??[]);rows=m(()=>this.typed().rows??[]);label=m(()=>this.inputs().label);emptyText=m(()=>this.inputs().emptyText??K.emptyDefault);texts=K.recordsCell;cellKind(t){return t==null?"empty":typeof t=="boolean"?t?"bool-true":"bool-false":"text"}cellText(t){return t==null?"":String(t)}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-records"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-records"],[1,"vc-records__header"],[1,"vc-records__empty"],[1,"vc-records__table"],["role","img",1,"pi","pi-check","vc-records__bool","vc-records__bool--true"],["role","img",1,"pi","pi-minus","vc-records__bool","vc-records__bool--false"]],template:function(i,o){i&1&&(w(0,"section",0),N(1,qn,2,1,"h5",1),N(2,Yn,2,1,"p",2)(3,ii,8,0,"table",3),M()),i&2&&(S("data-testid","renderer-node-records"),p(),E(o.label()?1:-1),p(),E(o.rows().length===0?2:3))},styles:[".vc-records__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-records__table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.85rem}.vc-records__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left;padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-200);color:var(--p-surface-700);font-weight:600}.vc-records__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-100);color:var(--p-surface-800);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:16rem}.vc-records__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}.vc-records__bool[_ngcontent-%COMP%]{font-size:.9rem;line-height:1}.vc-records__bool--true[_ngcontent-%COMP%]{color:var(--p-primary-color)}.vc-records__bool--false[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}"],changeDetection:0})}return e})();function oi(e,n){if(e&1&&(w(0,"h5",1),C(1),M()),e&2){let t=y();p(),k(t.label())}}function ri(e,n){if(e&1&&(w(0,"p",2),C(1),M()),e&2){let t=y();p(),k(t.emptyText())}}function ai(e,n){if(e&1&&(w(0,"pre",3),C(1),M()),e&2){let t=y();p(),k(t.markdown())}}var St=(()=>{class e{inputs=D.required();typed=m(()=>{let t=this.inputs().payload;return Q(t)?Me(t,"markdown")?t:{markdown:""}:{markdown:""}});markdown=m(()=>this.typed().markdown??"");label=m(()=>this.inputs().label);emptyText=m(()=>this.inputs().emptyText??K.emptyDefault);static \u0275fac=function(i){return new(i||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-markdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-markdown"],[1,"vc-markdown__header"],[1,"vc-markdown__empty"],[1,"vc-markdown__body"]],template:function(i,o){i&1&&(w(0,"section",0),N(1,oi,2,1,"h5",1),N(2,ri,2,1,"p",2)(3,ai,2,1,"pre",3),M()),i&2&&(S("data-testid","renderer-node-markdown"),p(),E(o.label()?1:-1),p(),E(o.markdown()?3:2))},styles:[".vc-markdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-markdown__body[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-800);background:var(--p-surface-50);padding:.5rem;border-radius:var(--sm-radius-md);white-space:pre-wrap;word-break:break-word;margin:0;max-height:12rem;overflow:auto}.vc-markdown__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();function si(e,n){if(e&1&&(O(0,"span",1),C(1),P()),e&2){let t=y();p(),k(t.icon())}}var Dt=(()=>{class e{inputs=D.required();typed=m(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{label:""}:t});label=m(()=>this.typed().label||"");icon=m(()=>this.inputs().icon);severity=m(()=>this.typed().severity);resolvedTooltip=m(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(i){return new(i||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-tag"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-tag",3,"pTooltip"],["aria-hidden","true",1,"vc-tag__icon"],[1,"vc-tag__label"]],template:function(i,o){i&1&&(O(0,"span",0),N(1,si,2,1,"span",1),O(2,"span",2),C(3),P()()),i&2&&(ee("vc-tag--info",o.severity()==="info")("vc-tag--warn",o.severity()==="warn")("vc-tag--success",o.severity()==="success")("vc-tag--danger",o.severity()==="danger"),F("pTooltip",o.resolvedTooltip()),S("data-testid","renderer-node-tag"),p(),E(o.icon()?1:-1),p(2),k(o.label()))},dependencies:[X,Y],styles:[".vc-tag[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1}.vc-tag__icon[_ngcontent-%COMP%]{font-size:.85em;line-height:1;display:block}.vc-tag__label[_ngcontent-%COMP%]{font-weight:500;line-height:1;display:block}.vc-tag--info[_ngcontent-%COMP%]{background:var(--sm-severity-info-bg);color:var(--sm-severity-info);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-tag--warn[_ngcontent-%COMP%]{background:var(--sm-severity-warn-bg);color:var(--sm-severity-warn);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-tag--success[_ngcontent-%COMP%]{background:var(--sm-severity-success-bg);color:var(--sm-severity-success);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-tag--danger[_ngcontent-%COMP%]{background:var(--sm-severity-error-bg);color:var(--sm-severity-error);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}"],changeDetection:0})}return e})();var ci=()=>[],Ot=(e,n)=>n.label;function li(e,n){if(e&1&&(w(0,"h5",1),C(1),M()),e&2){let t=y();p(),k(t.label())}}function di(e,n){if(e&1&&(w(0,"p",2),C(1),M()),e&2){let t=y();p(),k(t.emptyText())}}function ui(e,n){if(e&1&&(w(0,"span",5),C(1),M()),e&2){let t=y().$implicit;p(),k(t.marker)}}function pi(e,n){if(e&1&&(w(0,"span",5),C(1),M()),e&2){let t=y().$implicit;p(),k(t.marker)}}function fi(e,n){if(e&1&&(w(0,"li",4),N(1,pi,2,1,"span",5),w(2,"span",6),C(3),M()()),e&2){let t=n.$implicit;S("title",t.tooltip??""),p(),E(t.marker?1:-1),p(2),k(t.label)}}function mi(e,n){if(e&1&&(w(0,"ul",7),U(1,fi,4,3,"li",4,Ot),M()),e&2){let t=y().$implicit;p(),H(t.children)}}function gi(e,n){if(e&1&&(w(0,"li",4),N(1,ui,2,1,"span",5),w(2,"span",6),C(3),M(),N(4,mi,3,0,"ul",7),M()),e&2){let t=n.$implicit;S("title",t.tooltip??""),p(),E(t.marker?1:-1),p(2),k(t.label),p(),E(t.children&&t.children.length>0?4:-1)}}function vi(e,n){if(e&1&&(w(0,"ul",3),U(1,gi,5,4,"li",4,Ot),M()),e&2){let t=y();p(),H(t.root().children??pt(0,ci))}}var Pt=(()=>{class e{inputs=D.required();root=m(()=>{let t=this.inputs().payload;return Q(t)?Me(t,"label")?t.children!==void 0&&!Array.isArray(t.children)?{label:""}:t:{label:""}:{label:""}});rootIsEmpty=m(()=>{let t=this.root();return!t.children||t.children.length===0});label=m(()=>this.inputs().label);emptyText=m(()=>this.inputs().emptyText??K.emptyDefault);static \u0275fac=function(i){return new(i||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-tree"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-tree"],[1,"vc-tree__header"],[1,"vc-tree__empty"],["role","tree",1,"vc-tree__list"],["role","treeitem"],["aria-hidden","true",1,"vc-tree__marker"],[1,"vc-tree__label"],["role","group",1,"vc-tree__list"]],template:function(i,o){i&1&&(w(0,"section",0),N(1,li,2,1,"h5",1),N(2,di,2,1,"p",2)(3,vi,3,1,"ul",3),M()),i&2&&(S("data-testid","renderer-node-tree"),p(),E(o.label()?1:-1),p(),E(o.rootIsEmpty()?2:3))},styles:[".vc-tree__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-tree__list[_ngcontent-%COMP%]{list-style:none;padding-left:1rem;margin:0;font-size:.85rem}.vc-tree__list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{padding:.125rem 0}.vc-tree__marker[_ngcontent-%COMP%]{margin-right:.25rem;opacity:.7}.vc-tree__label[_ngcontent-%COMP%]{color:var(--p-surface-800)}.vc-tree__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();function hi(e,n){if(e&1&&(O(0,"span",2),C(1),P()),e&2){let t=y();p(),k(t.formattedCount())}}var At=(()=>{class e{inputs=D.required();typed=m(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{}:t});icon=m(()=>this.typed().icon??this.inputs().icon);severity=m(()=>this.typed().severity);count=m(()=>this.typed().count??null);resolvedTooltip=m(()=>this.typed().tooltip??this.inputs().tooltip??"");formattedCount=m(()=>{let t=this.count();return t===null?"":t>=99?"99+":String(t)});static \u0275fac=function(i){return new(i||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-alert"]],inputs:{inputs:[1,"inputs"]},decls:3,vars:12,consts:[[1,"vc-alert",3,"pTooltip"],["hostClass","vc-alert__icon",3,"icon"],[1,"vc-alert__count"]],template:function(i,o){i&1&&(O(0,"span",0),se(1,"sm-icon",1),N(2,hi,2,1,"span",2),P()),i&2&&(ee("vc-alert--info",o.severity()==="info")("vc-alert--warn",o.severity()==="warn")("vc-alert--success",o.severity()==="success")("vc-alert--danger",o.severity()==="danger"),F("pTooltip",o.resolvedTooltip()),S("data-testid","renderer-node-alert"),p(),F("icon",o.icon()),p(),E(o.count()!==null?2:-1))},dependencies:[X,Y,ce],styles:[".vc-alert[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:.125rem;min-width:1.1rem;min-height:1.1rem;font-size:.85rem;color:var(--p-surface-700)}.vc-alert--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-alert--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-alert--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-alert--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})}return e})();var $t=(()=>{class e{inputs=D.required();typed=m(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{}:t});icon=m(()=>this.typed().icon??this.inputs().icon);severity=m(()=>this.typed().severity);resolvedTooltip=m(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=m(()=>this.inputs().label??"");static \u0275fac=function(i){return new(i||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-icon"]],inputs:{inputs:[1,"inputs"]},decls:2,vars:12,consts:[[1,"vc-icon",3,"pTooltip"],["hostClass","vc-icon__glyph",3,"icon"]],template:function(i,o){i&1&&(O(0,"span",0),se(1,"sm-icon",1),P()),i&2&&(ee("vc-icon--info",o.severity()==="info")("vc-icon--warn",o.severity()==="warn")("vc-icon--success",o.severity()==="success")("vc-icon--danger",o.severity()==="danger"),F("pTooltip",o.resolvedTooltip()),S("aria-label",o.ariaLabel())("data-testid","renderer-node-icon"),p(),F("icon",o.icon()))},dependencies:[X,Y,ce],styles:[".vc-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;line-height:1;width:22px;height:22px}.vc-icon__glyph[_ngcontent-%COMP%]{font-size:.7rem;line-height:1;display:block}.vc-icon--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-icon--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-icon--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-icon--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})}return e})();function _i(e,n){if(e&1&&(O(0,"span",3),C(1),P()),e&2){let t=y();p(),k(t.label())}}var Lt=(()=>{class e{inputs=D.required();typed=m(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{value:""}:t});value=m(()=>String(this.typed().value??""));label=m(()=>this.typed().label??this.inputs().label);icon=m(()=>this.inputs().icon);severity=m(()=>this.typed().severity);resolvedTooltip=m(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(i){return new(i||e)};static \u0275cmp=A({type:e,selectors:[["sm-scope-stat"]],inputs:{inputs:[1,"inputs"]},decls:5,vars:13,consts:[[1,"vc-stat",3,"pTooltip"],["hostClass","vc-stat__icon",3,"icon"],[1,"vc-stat__value"],[1,"vc-stat__label"]],template:function(i,o){i&1&&(O(0,"span",0),se(1,"sm-icon",1),O(2,"span",2),C(3),P(),N(4,_i,2,1,"span",3),P()),i&2&&(ee("vc-stat--info",o.severity()==="info")("vc-stat--warn",o.severity()==="warn")("vc-stat--success",o.severity()==="success")("vc-stat--danger",o.severity()==="danger"),F("pTooltip",o.resolvedTooltip()),S("data-testid","renderer-scope-stat"),p(),F("icon",o.icon()),p(2),k(o.value()),p(),E(o.label()?4:-1))},dependencies:[X,Y,ce],styles:[".vc-stat[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:.75rem;font-size:.85rem;background:var(--p-surface-100);color:var(--p-surface-800)}.vc-stat__label[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.8rem}.vc-stat--info[_ngcontent-%COMP%]{background:var(--p-blue-100);color:var(--p-blue-700)}.vc-stat--warn[_ngcontent-%COMP%]{background:var(--p-yellow-100);color:var(--p-yellow-800)}.vc-stat--success[_ngcontent-%COMP%]{background:var(--p-green-100);color:var(--p-green-700)}.vc-stat--danger[_ngcontent-%COMP%]{background:var(--p-red-100);color:var(--p-red-700)}"],changeDetection:0})}return e})();var $e={"card.title.right":$t,"card.subtitle.left":ve,"card.footer.left":ve,"card.footer.right":ve,"graph.node.alert":At,"inspector.header.badge.counter":ve,"inspector.header.badge.tag":Dt,"inspector.body.panel.breakdown":Mt,"inspector.body.panel.records":It,"inspector.body.panel.tree":Pt,"inspector.body.panel.key-values":kt,"inspector.body.panel.link-list":Nt,"inspector.body.panel.markdown":St,"topbar.nav.start":Lt};function Ft(e){return e in $e}var de={"topbar.nav.start":{id:"topbar.nav.start",cardinality:"multi",maxItems:3,order:"alphabetical",strategy:"append"},"inspector.header.badge.counter":{id:"inspector.header.badge.counter",cardinality:"multi",maxItems:4,order:"alphabetical",strategy:"append"},"inspector.header.badge.tag":{id:"inspector.header.badge.tag",cardinality:"multi",maxItems:4,order:"alphabetical",strategy:"append"},"inspector.body.panel.breakdown":{id:"inspector.body.panel.breakdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.records":{id:"inspector.body.panel.records",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.tree":{id:"inspector.body.panel.tree",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.key-values":{id:"inspector.body.panel.key-values",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.link-list":{id:"inspector.body.panel.link-list",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.markdown":{id:"inspector.body.panel.markdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"card.footer.left":{id:"card.footer.left",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.footer.right":{id:"card.footer.right",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.subtitle.left":{id:"card.subtitle.left",cardinality:"multi",maxItems:3,order:"priority",strategy:"append",respectSeverity:!0},"card.title.right":{id:"card.title.right",cardinality:"multi",maxItems:2,order:"priority",strategy:"append",respectSeverity:!0},"graph.node.alert":{id:"graph.node.alert",cardinality:"multi",maxItems:1,order:"severity",strategy:"append",showOverflowBadge:!1}};var yi=e=>({inputs:e}),xi=(e,n)=>n.qualifiedId;function bi(e,n){e&1&&ct(0)}function Ci(e,n){if(e&1&&(O(0,"span",1),at(1,bi,1,0,"ng-container",3),P()),e&2){let t=n.$implicit,i=y(2);S("data-testid","contribution-"+t.qualifiedId.replaceAll("/","-")),p(),F("ngComponentOutlet",i.rendererFor(t.slot))("ngComponentOutletInputs",ft(3,yi,t.rendererInputs))}}function wi(e,n){if(e&1&&(O(0,"span",2),C(1),P()),e&2){let t=y(2);F("pTooltip",t.overflowTooltip()),p(),Ce(" ",t.overflowBadge()," ")}}function Ti(e,n){if(e&1&&(O(0,"span",0),U(1,Ci,2,5,"span",1,xi),N(3,wi,2,2,"span",2),P()),e&2){let t=y();S("data-testid","view-contributions-host-"+t.testidSuffix()),p(),H(t.visible()),p(2),E(t.overflowCount()>0&&t.showOverflowBadge()?3:-1)}}var ca=(()=>{class e{slot=D.required();node=D(null);debugSlots=W(wt);debugVisible=this.debugSlots.visible;testidSuffix=m(()=>this.slot().replaceAll(".","-"));registry=W(Tt);dispatched=m(()=>{let t=this.node();if(!t)return[];let i=t.contributions??[];if(i.length===0)return[];let o=this.slot(),r=i.filter(s=>s.slot===o).filter(s=>Ft(s.slot));return this.sortBySlotOrder(r,o).map(s=>({qualifiedId:`${s.pluginId}/${s.extensionId}/${s.contributionId}`,slot:s.slot,rendererInputs:this.buildInputs(s,o)}))});visible=m(()=>{let t=this.dispatched(),i=de[this.slot()].maxItems;return t.slice(0,i)});overflowCount=m(()=>{let t=this.dispatched(),i=de[this.slot()].maxItems;return Math.max(0,t.length-i)});showOverflowBadge=m(()=>de[this.slot()].showOverflowBadge!==!1);overflowBadge=m(()=>K.overflowBadge(this.overflowCount()));overflowTooltip=m(()=>{let t=this.dispatched(),i=de[this.slot()].maxItems,o=t.slice(i).map(r=>r.qualifiedId).join(", ");return K.overflowTooltip(o)});rendererFor(t){return $e[t]}buildInputs(t,i){let o=`${t.pluginId}/${t.extensionId}/${t.contributionId}`,r=this.registry.get(o),s=de[i].respectSeverity!==!1,a=t.payload;if(!s&&typeof a=="object"&&a!==null&&"severity"in a){let c=a,{severity:f}=c;a=et(c,["severity"])}let l={pluginId:t.pluginId,extensionId:t.extensionId,contributionId:t.contributionId,payload:a};return r?.label&&(l.label=r.label),r?.tooltip&&(l.tooltip=r.tooltip),r?.icon&&(l.icon=r.icon),r?.emptyText&&(l.emptyText=r.emptyText),l}sortBySlotOrder(t,i){let o=de[i].order;return o==="fifo"?t.slice():o==="priority"?t.slice().sort((r,s)=>{let a=this.priorityFor(r),l=this.priorityFor(s);return a!==l?a-l:Le(r,s)}):o==="severity"?t.slice().sort((r,s)=>{let a=Rt(r),l=Rt(s);return a!==l?l-a:Le(r,s)}):t.slice().sort(Le)}priorityFor(t){let i=`${t.pluginId}/${t.extensionId}/${t.contributionId}`;return this.registry.get(i)?.priority??100}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=A({type:e,selectors:[["sm-view-contributions-host"]],hostVars:3,hostBindings:function(i,o){i&2&&(S("data-debug-slot",o.debugVisible()?o.slot():null),ee("sm-debug-slot",o.debugVisible()))},inputs:{slot:[1,"slot"],node:[1,"node"]},decls:1,vars:1,consts:[[1,"vch"],[1,"vch__slot"],["data-testid","view-contributions-host-overflow",1,"vch__overflow",3,"pTooltip"],[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(i,o){i&1&&N(0,Ti,4,2,"span",0),i&2&&E(o.visible().length>0||o.overflowCount()>0?0:-1)},dependencies:[mt,X,Y],styles:["[_nghost-%COMP%]{display:contents}.vch[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.7rem;flex-wrap:wrap}.vch__slot[_ngcontent-%COMP%]{display:inline-flex}.vch__overflow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:.75rem;background:var(--p-surface-100);color:var(--p-surface-600);font-size:.8rem;cursor:default}"],changeDetection:0})}return e})();function Le(e,n){let t=`${e.pluginId}/${e.extensionId}/${e.contributionId}`,i=`${n.pluginId}/${n.extensionId}/${n.contributionId}`;return t<i?-1:t>i?1:0}function Rt(e){let n=e.payload;if(typeof n!="object"||n===null)return 0;switch(n.severity){case"danger":return 4;case"warn":return 3;case"info":return 2;case"success":return 1;default:return 0}}var ha=(()=>{class e{router=W(we);theme=W(_t);destroyRef=W(rt);constructor(){this.router.events.pipe(vt(this.destroyRef)).subscribe(t=>{if(t instanceof gt){let i=Mi(t.urlAfterRedirects);i!==null&&Ae(`ui.view.${i}`)}}),be(()=>this.syncTheme())}trackFeature(t){Ae(`ui.feature.${t}`)}syncTheme(){ht({theme_base:this.theme.resolved(),theme_extra:this.theme.extraTheme()??"none"})}static \u0275fac=function(i){return new(i||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Mi(e){return(e.split("?")[0]??"")==="/"?"workspace":null}function Fe(e,n){var t,i=1;e==null&&(e=0),n==null&&(n=0);function o(){var r,s=t.length,a,l=0,c=0;for(r=0;r<s;++r)a=t[r],l+=a.x,c+=a.y;for(l=(l/s-e)*i,c=(c/s-n)*i,r=0;r<s;++r)a=t[r],a.x-=l,a.y-=c}return o.initialize=function(r){t=r},o.x=function(r){return arguments.length?(e=+r,o):e},o.y=function(r){return arguments.length?(n=+r,o):n},o.strength=function(r){return arguments.length?(i=+r,o):i},o}function jt(e){let n=+this._x.call(null,e),t=+this._y.call(null,e);return zt(this.cover(n,t),n,t,e)}function zt(e,n,t,i){if(isNaN(n)||isNaN(t))return e;var o,r=e._root,s={data:i},a=e._x0,l=e._y0,c=e._x1,f=e._y1,h,_,u,T,g,d,v,x;if(!r)return e._root=s,e;for(;r.length;)if((g=n>=(h=(a+c)/2))?a=h:c=h,(d=t>=(_=(l+f)/2))?l=_:f=_,o=r,!(r=r[v=d<<1|g]))return o[v]=s,e;if(u=+e._x.call(null,r.data),T=+e._y.call(null,r.data),n===u&&t===T)return s.next=r,o?o[v]=s:e._root=s,e;do o=o?o[v]=new Array(4):e._root=new Array(4),(g=n>=(h=(a+c)/2))?a=h:c=h,(d=t>=(_=(l+f)/2))?l=_:f=_;while((v=d<<1|g)===(x=(T>=_)<<1|u>=h));return o[x]=r,o[v]=s,e}function Bt(e){var n,t,i=e.length,o,r,s=new Array(i),a=new Array(i),l=1/0,c=1/0,f=-1/0,h=-1/0;for(t=0;t<i;++t)isNaN(o=+this._x.call(null,n=e[t]))||isNaN(r=+this._y.call(null,n))||(s[t]=o,a[t]=r,o<l&&(l=o),o>f&&(f=o),r<c&&(c=r),r>h&&(h=r));if(l>f||c>h)return this;for(this.cover(l,c).cover(f,h),t=0;t<i;++t)zt(this,s[t],a[t],e[t]);return this}function Kt(e,n){if(isNaN(e=+e)||isNaN(n=+n))return this;var t=this._x0,i=this._y0,o=this._x1,r=this._y1;if(isNaN(t))o=(t=Math.floor(e))+1,r=(i=Math.floor(n))+1;else{for(var s=o-t||1,a=this._root,l,c;t>e||e>=o||i>n||n>=r;)switch(c=(n<i)<<1|e<t,l=new Array(4),l[c]=a,a=l,s*=2,c){case 0:o=t+s,r=i+s;break;case 1:t=o-s,r=i+s;break;case 2:o=t+s,i=r-s;break;case 3:t=o-s,i=r-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=t,this._y0=i,this._x1=o,this._y1=r,this}function Vt(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function Ut(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function B(e,n,t,i,o){this.node=e,this.x0=n,this.y0=t,this.x1=i,this.y1=o}function Ht(e,n,t){var i,o=this._x0,r=this._y0,s,a,l,c,f=this._x1,h=this._y1,_=[],u=this._root,T,g;for(u&&_.push(new B(u,o,r,f,h)),t==null?t=1/0:(o=e-t,r=n-t,f=e+t,h=n+t,t*=t);T=_.pop();)if(!(!(u=T.node)||(s=T.x0)>f||(a=T.y0)>h||(l=T.x1)<o||(c=T.y1)<r))if(u.length){var d=(s+l)/2,v=(a+c)/2;_.push(new B(u[3],d,v,l,c),new B(u[2],s,v,d,c),new B(u[1],d,a,l,v),new B(u[0],s,a,d,v)),(g=(n>=v)<<1|e>=d)&&(T=_[_.length-1],_[_.length-1]=_[_.length-1-g],_[_.length-1-g]=T)}else{var x=e-+this._x.call(null,u.data),I=n-+this._y.call(null,u.data),b=x*x+I*I;if(b<t){var $=Math.sqrt(t=b);o=e-$,r=n-$,f=e+$,h=n+$,i=u.data}}return i}function Gt(e){if(isNaN(f=+this._x.call(null,e))||isNaN(h=+this._y.call(null,e)))return this;var n,t=this._root,i,o,r,s=this._x0,a=this._y0,l=this._x1,c=this._y1,f,h,_,u,T,g,d,v;if(!t)return this;if(t.length)for(;;){if((T=f>=(_=(s+l)/2))?s=_:l=_,(g=h>=(u=(a+c)/2))?a=u:c=u,n=t,!(t=t[d=g<<1|T]))return this;if(!t.length)break;(n[d+1&3]||n[d+2&3]||n[d+3&3])&&(i=n,v=d)}for(;t.data!==e;)if(o=t,!(t=t.next))return this;return(r=t.next)&&delete t.next,o?(r?o.next=r:delete o.next,this):n?(r?n[d]=r:delete n[d],(t=n[0]||n[1]||n[2]||n[3])&&t===(n[3]||n[2]||n[1]||n[0])&&!t.length&&(i?i[v]=t:this._root=t),this):(this._root=r,this)}function Wt(e){for(var n=0,t=e.length;n<t;++n)this.remove(e[n]);return this}function qt(){return this._root}function Yt(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function Xt(e){var n=[],t,i=this._root,o,r,s,a,l;for(i&&n.push(new B(i,this._x0,this._y0,this._x1,this._y1));t=n.pop();)if(!e(i=t.node,r=t.x0,s=t.y0,a=t.x1,l=t.y1)&&i.length){var c=(r+a)/2,f=(s+l)/2;(o=i[3])&&n.push(new B(o,c,f,a,l)),(o=i[2])&&n.push(new B(o,r,f,c,l)),(o=i[1])&&n.push(new B(o,c,s,a,f)),(o=i[0])&&n.push(new B(o,r,s,c,f))}return this}function Qt(e){var n=[],t=[],i;for(this._root&&n.push(new B(this._root,this._x0,this._y0,this._x1,this._y1));i=n.pop();){var o=i.node;if(o.length){var r,s=i.x0,a=i.y0,l=i.x1,c=i.y1,f=(s+l)/2,h=(a+c)/2;(r=o[0])&&n.push(new B(r,s,a,f,h)),(r=o[1])&&n.push(new B(r,f,a,l,h)),(r=o[2])&&n.push(new B(r,s,h,f,c)),(r=o[3])&&n.push(new B(r,f,h,l,c))}t.push(i)}for(;i=t.pop();)e(i.node,i.x0,i.y0,i.x1,i.y1);return this}function Jt(e){return e[0]}function Zt(e){return arguments.length?(this._x=e,this):this._x}function en(e){return e[1]}function tn(e){return arguments.length?(this._y=e,this):this._y}function ue(e,n,t){var i=new Re(n??Jt,t??en,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function Re(e,n,t,i,o,r){this._x=e,this._y=n,this._x0=t,this._y0=i,this._x1=o,this._y1=r,this._root=void 0}function nn(e){for(var n={data:e.data},t=n;e=e.next;)t=t.next={data:e.data};return n}var G=ue.prototype=Re.prototype;G.copy=function(){var e=new Re(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,t,i;if(!n)return e;if(!n.length)return e._root=nn(n),e;for(t=[{source:n,target:e._root=new Array(4)}];n=t.pop();)for(var o=0;o<4;++o)(i=n.source[o])&&(i.length?t.push({source:i,target:n.target[o]=new Array(4)}):n.target[o]=nn(i));return e};G.add=jt;G.addAll=Bt;G.cover=Kt;G.data=Vt;G.extent=Ut;G.find=Ht;G.remove=Gt;G.removeAll=Wt;G.root=qt;G.size=Yt;G.visit=Xt;G.visitAfter=Qt;G.x=Zt;G.y=tn;function L(e){return function(){return e}}function ne(e){return(e()-.5)*1e-6}function ki(e){return e.x+e.vx}function Ni(e){return e.y+e.vy}function je(e){var n,t,i,o=1,r=1;typeof e!="function"&&(e=L(e==null?1:+e));function s(){for(var c,f=n.length,h,_,u,T,g,d,v=0;v<r;++v)for(h=ue(n,ki,Ni).visitAfter(a),c=0;c<f;++c)_=n[c],g=t[_.index],d=g*g,u=_.x+_.vx,T=_.y+_.vy,h.visit(x);function x(I,b,$,V,J){var R=I.data,te=I.r,j=g+te;if(R){if(R.index>_.index){var re=u-R.x-R.vx,ae=T-R.y-R.vy,ie=re*re+ae*ae;ie<j*j&&(re===0&&(re=ne(i),ie+=re*re),ae===0&&(ae=ne(i),ie+=ae*ae),ie=(j-(ie=Math.sqrt(ie)))/ie*o,_.vx+=(re*=ie)*(j=(te*=te)/(d+te)),_.vy+=(ae*=ie)*j,R.vx-=re*(j=1-j),R.vy-=ae*j)}return}return b>u+j||V<u-j||$>T+j||J<T-j}}function a(c){if(c.data)return c.r=t[c.data.index];for(var f=c.r=0;f<4;++f)c[f]&&c[f].r>c.r&&(c.r=c[f].r)}function l(){if(n){var c,f=n.length,h;for(t=new Array(f),c=0;c<f;++c)h=n[c],t[h.index]=+e(h,c,n)}}return s.initialize=function(c,f){n=c,i=f,l()},s.iterations=function(c){return arguments.length?(r=+c,s):r},s.strength=function(c){return arguments.length?(o=+c,s):o},s.radius=function(c){return arguments.length?(e=typeof c=="function"?c:L(+c),l(),s):e},s}function Ei(e){return e.index}function on(e,n){var t=e.get(n);if(!t)throw new Error("node not found: "+n);return t}function ze(e){var n=Ei,t=h,i,o=L(30),r,s,a,l,c,f=1;e==null&&(e=[]);function h(d){return 1/Math.min(a[d.source.index],a[d.target.index])}function _(d){for(var v=0,x=e.length;v<f;++v)for(var I=0,b,$,V,J,R,te,j;I<x;++I)b=e[I],$=b.source,V=b.target,J=V.x+V.vx-$.x-$.vx||ne(c),R=V.y+V.vy-$.y-$.vy||ne(c),te=Math.sqrt(J*J+R*R),te=(te-r[I])/te*d*i[I],J*=te,R*=te,V.vx-=J*(j=l[I]),V.vy-=R*j,$.vx+=J*(j=1-j),$.vy+=R*j}function u(){if(s){var d,v=s.length,x=e.length,I=new Map(s.map(($,V)=>[n($,V,s),$])),b;for(d=0,a=new Array(v);d<x;++d)b=e[d],b.index=d,typeof b.source!="object"&&(b.source=on(I,b.source)),typeof b.target!="object"&&(b.target=on(I,b.target)),a[b.source.index]=(a[b.source.index]||0)+1,a[b.target.index]=(a[b.target.index]||0)+1;for(d=0,l=new Array(x);d<x;++d)b=e[d],l[d]=a[b.source.index]/(a[b.source.index]+a[b.target.index]);i=new Array(x),T(),r=new Array(x),g()}}function T(){if(s)for(var d=0,v=e.length;d<v;++d)i[d]=+t(e[d],d,e)}function g(){if(s)for(var d=0,v=e.length;d<v;++d)r[d]=+o(e[d],d,e)}return _.initialize=function(d,v){s=d,c=v,u()},_.links=function(d){return arguments.length?(e=d,u(),_):e},_.id=function(d){return arguments.length?(n=d,_):n},_.iterations=function(d){return arguments.length?(f=+d,_):f},_.strength=function(d){return arguments.length?(t=typeof d=="function"?d:L(+d),T(),_):t},_.distance=function(d){return arguments.length?(o=typeof d=="function"?d:L(+d),g(),_):o},_}var Ii={value:()=>{}};function an(){for(var e=0,n=arguments.length,t={},i;e<n;++e){if(!(i=arguments[e]+"")||i in t||/[\s.]/.test(i))throw new Error("illegal type: "+i);t[i]=[]}return new ke(t)}function ke(e){this._=e}function Si(e,n){return e.trim().split(/^|\s+/).map(function(t){var i="",o=t.indexOf(".");if(o>=0&&(i=t.slice(o+1),t=t.slice(0,o)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}})}ke.prototype=an.prototype={constructor:ke,on:function(e,n){var t=this._,i=Si(e+"",t),o,r=-1,s=i.length;if(arguments.length<2){for(;++r<s;)if((o=(e=i[r]).type)&&(o=Di(t[o],e.name)))return o;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++r<s;)if(o=(e=i[r]).type)t[o]=rn(t[o],e.name,n);else if(n==null)for(o in t)t[o]=rn(t[o],e.name,null);return this},copy:function(){var e={},n=this._;for(var t in n)e[t]=n[t].slice();return new ke(e)},call:function(e,n){if((o=arguments.length-2)>0)for(var t=new Array(o),i=0,o,r;i<o;++i)t[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(n,t)},apply:function(e,n,t){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,r=i.length;o<r;++o)i[o].value.apply(n,t)}};function Di(e,n){for(var t=0,i=e.length,o;t<i;++t)if((o=e[t]).name===n)return o.value}function rn(e,n,t){for(var i=0,o=e.length;i<o;++i)if(e[i].name===n){e[i]=Ii,e=e.slice(0,i).concat(e.slice(i+1));break}return t!=null&&e.push({name:n,value:t}),e}var Be=an;var me=0,_e=0,he=0,cn=1e3,Ne,ye,Ee=0,pe=0,Ie=0,xe=typeof performance=="object"&&performance.now?performance:Date,ln=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ue(){return pe||(ln(Oi),pe=xe.now()+Ie)}function Oi(){pe=0}function Ke(){this._call=this._time=this._next=null}Ke.prototype=Se.prototype={constructor:Ke,restart:function(e,n,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?Ue():+t)+(n==null?0:+n),!this._next&&ye!==this&&(ye?ye._next=this:Ne=this,ye=this),this._call=e,this._time=t,Ve()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ve())}};function Se(e,n,t){var i=new Ke;return i.restart(e,n,t),i}function dn(){Ue(),++me;for(var e=Ne,n;e;)(n=pe-e._time)>=0&&e._call.call(void 0,n),e=e._next;--me}function sn(){pe=(Ee=xe.now())+Ie,me=_e=0;try{dn()}finally{me=0,Ai(),pe=0}}function Pi(){var e=xe.now(),n=e-Ee;n>cn&&(Ie-=n,Ee=e)}function Ai(){for(var e,n=Ne,t,i=1/0;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Ne=t);ye=e,Ve(i)}function Ve(e){if(!me){_e&&(_e=clearTimeout(_e));var n=e-pe;n>24?(e<1/0&&(_e=setTimeout(sn,e-xe.now()-Ie)),he&&(he=clearInterval(he))):(he||(Ee=xe.now(),he=setInterval(Pi,cn)),me=1,ln(sn))}}function un(){let e=1;return()=>(e=(1664525*e+1013904223)%4294967296)/4294967296}function pn(e){return e.x}function fn(e){return e.y}var $i=10,Li=Math.PI*(3-Math.sqrt(5));function He(e){var n,t=1,i=.001,o=1-Math.pow(i,1/300),r=0,s=.6,a=new Map,l=Se(h),c=Be("tick","end"),f=un();e==null&&(e=[]);function h(){_(),c.call("tick",n),t<i&&(l.stop(),c.call("end",n))}function _(g){var d,v=e.length,x;g===void 0&&(g=1);for(var I=0;I<g;++I)for(t+=(r-t)*o,a.forEach(function(b){b(t)}),d=0;d<v;++d)x=e[d],x.fx==null?x.x+=x.vx*=s:(x.x=x.fx,x.vx=0),x.fy==null?x.y+=x.vy*=s:(x.y=x.fy,x.vy=0);return n}function u(){for(var g=0,d=e.length,v;g<d;++g){if(v=e[g],v.index=g,v.fx!=null&&(v.x=v.fx),v.fy!=null&&(v.y=v.fy),isNaN(v.x)||isNaN(v.y)){var x=$i*Math.sqrt(.5+g),I=g*Li;v.x=x*Math.cos(I),v.y=x*Math.sin(I)}(isNaN(v.vx)||isNaN(v.vy))&&(v.vx=v.vy=0)}}function T(g){return g.initialize&&g.initialize(e,f),g}return u(),n={tick:_,restart:function(){return l.restart(h),n},stop:function(){return l.stop(),n},nodes:function(g){return arguments.length?(e=g,u(),a.forEach(T),n):e},alpha:function(g){return arguments.length?(t=+g,n):t},alphaMin:function(g){return arguments.length?(i=+g,n):i},alphaDecay:function(g){return arguments.length?(o=+g,n):+o},alphaTarget:function(g){return arguments.length?(r=+g,n):r},velocityDecay:function(g){return arguments.length?(s=1-g,n):1-s},randomSource:function(g){return arguments.length?(f=g,a.forEach(T),n):f},force:function(g,d){return arguments.length>1?(d==null?a.delete(g):a.set(g,T(d)),n):a.get(g)},find:function(g,d,v){var x=0,I=e.length,b,$,V,J,R;for(v==null?v=1/0:v*=v,x=0;x<I;++x)J=e[x],b=g-J.x,$=d-J.y,V=b*b+$*$,V<v&&(R=J,v=V);return R},on:function(g,d){return arguments.length>1?(c.on(g,d),n):c.on(g)}}}function Ge(){var e,n,t,i,o=L(-30),r,s=1,a=1/0,l=.81;function c(u){var T,g=e.length,d=ue(e,pn,fn).visitAfter(h);for(i=u,T=0;T<g;++T)n=e[T],d.visit(_)}function f(){if(e){var u,T=e.length,g;for(r=new Array(T),u=0;u<T;++u)g=e[u],r[g.index]=+o(g,u,e)}}function h(u){var T=0,g,d,v=0,x,I,b;if(u.length){for(x=I=b=0;b<4;++b)(g=u[b])&&(d=Math.abs(g.value))&&(T+=g.value,v+=d,x+=d*g.x,I+=d*g.y);u.x=x/v,u.y=I/v}else{g=u,g.x=g.data.x,g.y=g.data.y;do T+=r[g.data.index];while(g=g.next)}u.value=T}function _(u,T,g,d){if(!u.value)return!0;var v=u.x-n.x,x=u.y-n.y,I=d-T,b=v*v+x*x;if(I*I/l<b)return b<a&&(v===0&&(v=ne(t),b+=v*v),x===0&&(x=ne(t),b+=x*x),b<s&&(b=Math.sqrt(s*b)),n.vx+=v*u.value*i/b,n.vy+=x*u.value*i/b),!0;if(u.length||b>=a)return;(u.data!==n||u.next)&&(v===0&&(v=ne(t),b+=v*v),x===0&&(x=ne(t),b+=x*x),b<s&&(b=Math.sqrt(s*b)));do u.data!==n&&(I=r[u.data.index]*i/b,n.vx+=v*I,n.vy+=x*I);while(u=u.next)}return c.initialize=function(u,T){e=u,t=T,f()},c.strength=function(u){return arguments.length?(o=typeof u=="function"?u:L(+u),f(),c):o},c.distanceMin=function(u){return arguments.length?(s=u*u,c):Math.sqrt(s)},c.distanceMax=function(u){return arguments.length?(a=u*u,c):Math.sqrt(a)},c.theta=function(u){return arguments.length?(l=u*u,c):Math.sqrt(l)},c}function We(e){var n=L(.1),t,i,o;typeof e!="function"&&(e=L(e==null?0:+e));function r(a){for(var l=0,c=t.length,f;l<c;++l)f=t[l],f.vx+=(o[l]-f.x)*i[l]*a}function s(){if(t){var a,l=t.length;for(i=new Array(l),o=new Array(l),a=0;a<l;++a)i[a]=isNaN(o[a]=+e(t[a],a,t))?0:+n(t[a],a,t)}}return r.initialize=function(a){t=a,s()},r.strength=function(a){return arguments.length?(n=typeof a=="function"?a:L(+a),s(),r):n},r.x=function(a){return arguments.length?(e=typeof a=="function"?a:L(+a),s(),r):e},r}function qe(e){var n=L(.1),t,i,o;typeof e!="function"&&(e=L(e==null?0:+e));function r(a){for(var l=0,c=t.length,f;l<c;++l)f=t[l],f.vy+=(o[l]-f.y)*i[l]*a}function s(){if(t){var a,l=t.length;for(i=new Array(l),o=new Array(l),a=0;a<l;++a)i[a]=isNaN(o[a]=+e(t[a],a,t))?0:+n(t[a],a,t)}}return r.initialize=function(a){t=a,s()},r.strength=function(a){return arguments.length?(n=typeof a=="function"?a:L(+a),s(),r):n},r.y=function(a){return arguments.length?(e=typeof a=="function"?a:L(+a),s(),r):e},r}function Ye(e){let n=e.normalize("NFD");return n=n.replace(new RegExp("\\p{Mn}+","gu"),""),n=n.toLowerCase(),n=n.replace(/[-_\s]+/g," "),n=n.replace(/\s+/g," "),n.trim()}function Xe(e){let n=new Map;return Fi(e,n),Ri(e,n),n}function Fi(e,n){for(let t of e){let i=mn(t);if(i===null)continue;let o=Ye(i);n.has(o)||n.set(o,t.path)}}function Ri(e,n){for(let t of e){if(mn(t)!==null)continue;let i=ji(t.path);if(i.length===0)continue;let o=Ye(i);n.has(o)||n.set(o,t.path)}}function mn(e){let n=e.frontmatter?.name;return typeof n!="string"||n.length===0?null:n}function ji(e){let n=e.split("/").filter(i=>i.length>0);if(n.length===0)return e;let t=n[n.length-1];return t==="SKILL.md"&&n.length>=2?n[n.length-2]:t.replace(/\.md$/,"")}function Qe(e,n,t){let i=e.charAt(0);if(i!=="/"&&i!=="@")return e;let o=n!==null?n.replace(/^[/@]/,"").trim():Ye(e.slice(1));return t.get(o)??e}var zi=["network-simplex","longest-path","force"];function $s(e){return e!=="force"}var Bi=["TOP_BOTTOM","BOTTOM_TOP","LEFT_RIGHT","RIGHT_LEFT"];var gn={compact:{nodeGap:40,layerGap:56},normal:{nodeGap:64,layerGap:96},spacious:{nodeGap:96,layerGap:144}},Ls="network-simplex",Fs="TOP_BOTTOM",Rs="normal";function js(e){return typeof e=="string"&&zi.includes(e)}function zs(e){return typeof e=="string"&&Bi.includes(e)}var Je=260,vn=120;function Ws(e,n){let t=n?.links??[],i=new Set(e.map(h=>h.path)),o=Xe(e),r=new Set,s=0,a=0,l=0,c=0,f=0;for(let h of t){if(!i.has(h.source)){s++;continue}let _=Qe(h.target,h.trigger?.normalizedTrigger??null,o);if(!i.has(_)){a++;continue}if(h.source===_){l++;continue}let u=hn(h.kind,h.source,_);if(r.has(u)){c++;continue}r.add(u),f++}return{raw:t.length,drawn:f,brokenSource:s,brokenTarget:a,selfLoops:l,duplicates:c}}function qs(e,n){let t=e.map(o=>o.path).sort(),i=n.map(o=>o.id).sort();return`${t.length}|${t.join(",")}|${i.length}|${i.join(",")}`}function Ys(e,n){let t=new Set(e.map(c=>c.path)),i=Xe(e),o=new Map,r=n?.links??[];for(let c of r){if(!t.has(c.source))continue;let f=Qe(c.target,c.trigger?.normalizedTrigger??null,i);if(!t.has(f)||c.source===f)continue;let h=hn(c.kind,c.source,f),_=typeof c.confidence=="number"?c.confidence:.6,u=o.get(h);u?_>u.confidence&&(u.confidence=_):o.set(h,{id:h,from:c.source,to:f,kind:c.kind,confidence:_})}let s=[...o.values()],a=new Map;for(let c of e)a.set(c.path,c);let l=new Map;for(let c of n?.nodes??[])l.set(c.path,c);return{nodesByPath:a,apiNodesByPath:l,edges:s}}async function Xs(e,n,t,i){let o={width:Je,height:vn},r=n.map(f=>({id:f.path,size:o})),s=t.map(f=>({source:f.from,target:f.to})),a=gn[i.spacing],l=await e.calculate(r,s,{algorithm:i.algorithm,direction:i.direction,nodeGap:a.nodeGap,layerGap:a.layerGap}),c=new Map;for(let{id:f,position:h}of l.nodes)c.set(f,{x:h.x,y:h.y});return c}function Qs(e,n){let t=e.map(a=>({id:a.path})),i=n.map(a=>({source:a.from,target:a.to})),o=He(t).force("link",ze(i).id(a=>a.id).distance(90).strength(1)).force("charge",Ge().strength(-200)).force("center",Fe(0,0)).force("x",We(0).strength(.06)).force("y",qe(0).strength(.06)).force("collide",je(Je/2+12)).stop(),r=400;for(let a=0;a<r;a++)o.tick();let s=new Map;for(let a of t)s.set(a.id,{x:(a.x??0)-Je/2,y:(a.y??0)-vn/2});return s}function Js(e,n,t,i=null){let o=e.edges.filter(l=>n.has(l.from)&&n.has(l.to)&&(i===null||i.has(l.kind))),r=new Map,s=new Map;for(let l of o)r.set(l.from,(r.get(l.from)??0)+1),s.set(l.to,(s.get(l.to)??0)+1);let a=[];for(let l of n){let c=e.nodesByPath.get(l);if(!c)continue;let f=e.apiNodesByPath.get(l),h=t.get(l),_=e.positions.get(l)??{x:0,y:0},u=h?{x:h.x,y:h.y}:_;a.push({id:l,path:l,view:c,kind:c.kind,position:u,stats:{linksIn:s.get(l)??0,linksOut:r.get(l)??0,bytesTotal:f?.bytes.total,tokensTotal:f?.tokens?.total,externalRefsCount:f?.externalRefsCount},summary:Ki(c)})}return{nodes:a,edges:o}}function Ki(e){let n={injectionDetected:!1,contentQuality:"clean"},t=(e.frontmatter.description??e.frontmatter.name??"").trim();return{kind:"markdown",confidence:.6,safety:n,whatItCovers:t||`${e.kind} entry`,topics:[],keyFacts:[]}}function hn(e,n,t){return`${e}:${n}::${t}`}var _n={invalidHex:e=>`deriveTints: invalid hex color "${e}" (expected #RRGGBB)`};function De(e,n,t){return[Math.round(e[0]+(n[0]-e[0])*t),Math.round(e[1]+(n[1]-e[1])*t),Math.round(e[2]+(n[2]-e[2])*t)]}function Vi(e){let n=/^#([0-9a-f]{6})$/i.exec(e);if(!n)throw new Error(_n.invalidHex(e));let t=parseInt(n[1],16);return[t>>16&255,t>>8&255,t&255]}function Oe([e,n,t]){let i=o=>Math.max(0,Math.min(255,o)).toString(16).padStart(2,"0");return`#${i(e)}${i(n)}${i(t)}`}var yn=[255,255,255],xn=[0,0,0];function Ze(e,n){let t=Vi(e);return n==="light"?{bg:Oe(De(t,yn,.85)),fg:Oe(De(t,xn,.5))}:{bg:Oe(De(t,xn,.7)),fg:Oe(De(t,yn,.6))}}var Ui=/^[a-zA-Z][a-zA-Z0-9_-]{0,63}$/,bn=/^#[0-9a-f]{6}$/i,sc=(()=>{class e{doc=W(ot);_entries=q([]);kinds=this._entries.asReadonly();index=m(()=>{let t=new Map;for(let i of this._entries())t.set(i.name,i);return t});ingest(t){if(!t)return;let i=[];for(let[r,s]of Object.entries(t)){if(!Ui.test(r))continue;let a=s.providers[s.primaryProviderId];if(!a)continue;let l={name:r,primaryProviderId:s.primaryProviderId,providers:s.providers,label:a.label,color:a.color};a.colorDark!==void 0&&(l.colorDark=a.colorDark),a.emoji!==void 0&&(l.emoji=a.emoji),a.icon!==void 0&&(l.icon=a.icon),i.push(l)}let o=this._entries();Gi(o,i)||(this._entries.set(i),this.applyCssVars())}lookup(t){return this.index().get(t)}labelOf(t){return this.lookup(t)?.label??t}colorOf(t,i="light"){let o=this.lookup(t);return o?i==="dark"?o.colorDark??o.color:o.color:"#9ca3af"}iconOf(t){return this.lookup(t)?.icon}emojiOf(t){return this.lookup(t)?.emoji}providersOf(t){return this.lookup(t)?.providers}applyCssVars(){if(!this.doc.head)return;let t=Hi(this.doc),i=[],o=[];for(let r of this._entries()){if(!bn.test(r.color))continue;let s=r.colorDark??r.color;if(bn.test(s))try{let a=Ze(r.color,"light"),l=Ze(s,"dark");i.push(`--sm-kind-${r.name}: ${r.color};`),i.push(`--sm-kind-${r.name}-bg: ${a.bg};`),i.push(`--sm-kind-${r.name}-fg: ${a.fg};`),o.push(`--sm-kind-${r.name}: ${s};`),o.push(`--sm-kind-${r.name}-bg: ${l.bg};`),o.push(`--sm-kind-${r.name}-fg: ${l.fg};`)}catch{continue}}t.textContent=`:root { ${i.join(" ")} } .app-dark { ${o.join(" ")} }`}static \u0275fac=function(i){return new(i||e)};static \u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Cn="sm-kind-vars";function Hi(e){let n=e.getElementById(Cn);return n||(n=e.createElement("style"),n.id=Cn,e.head.appendChild(n)),n}function Gi(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++){let i=e[t],o=n[t];if(i.name!==o.name||i.primaryProviderId!==o.primaryProviderId||JSON.stringify(i.providers)!==JSON.stringify(o.providers))return!1}return!0}export{yt as a,Yi as b,Xi as c,Qi as d,Ji as e,Zi as f,xt as g,eo as h,to as i,no as j,bt as k,so as l,Ct as m,ji as n,zi as o,$s as p,Bi as q,Ls as r,Fs as s,Rs as t,js as u,zs as v,sc as w,wt as x,Tt as y,ca as z,ha as A,Ws as B,qs as C,Ys as D,Xs as E,Qs as F,Js as G};