@skill-map/cli 0.14.1 → 0.15.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,114 +0,0 @@
1
- import{Ac as U,B as Y,Ba as _t,D as E,Ea as Tt,Fa as v,Ga as Et,H as pt,Ha as bt,Hb as A,Hc as Pt,I as p,Ic as $,Jc as Ht,Kc as K,Lb as St,M as j,Mb as kt,N as dt,Nb as Vt,Nc as Q,O as F,Oc as G,P as R,Q as ht,Qb as d,R as ut,Ra as Z,S as x,Sc as Bt,T as b,Tb as lt,Ub as q,Uc as P,Vb as Mt,Vc as at,W as w,Xb as W,Zc as Nt,_a as wt,ab as xt,ca as c,cb as M,da as L,dc as y,ea as I,fa as ft,ga as tt,ha as et,ia as it,ib as h,ja as nt,jb as C,ka as ot,l as H,lc as At,m as B,mb as Lt,n as N,oa as k,ob as It,p as T,pa as mt,qa as V,qb as Ct,r as m,ra as a,rb as Ot,s as g,sa as gt,sb as Dt,t as z,ta as vt,ua as yt,wa as st,x as X,xa as rt,y as ct}from"./chunk-AVRC55YV.js";import{a as f}from"./chunk-Q7L6LLAK.js";var zt=class n{static isArray(e,t=!0){return Array.isArray(e)&&(t||e.length!==0)}static isObject(e,t=!0){return typeof e=="object"&&!Array.isArray(e)&&e!=null&&(t||Object.keys(e).length!==0)}static equals(e,t,i){return i?this.resolveFieldData(e,i)===this.resolveFieldData(t,i):this.equalsByValue(e,t)}static equalsByValue(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var i=Array.isArray(e),o=Array.isArray(t),s,r,l;if(i&&o){if(r=e.length,r!=t.length)return!1;for(s=r;s--!==0;)if(!this.equalsByValue(e[s],t[s]))return!1;return!0}if(i!=o)return!1;var u=this.isDate(e),O=this.isDate(t);if(u!=O)return!1;if(u&&O)return e.getTime()==t.getTime();var D=e instanceof RegExp,S=t instanceof RegExp;if(D!=S)return!1;if(D&&S)return e.toString()==t.toString();var _=Object.keys(e);if(r=_.length,r!==Object.keys(t).length)return!1;for(s=r;s--!==0;)if(!Object.prototype.hasOwnProperty.call(t,_[s]))return!1;for(s=r;s--!==0;)if(l=_[s],!this.equalsByValue(e[l],t[l]))return!1;return!0}return e!==e&&t!==t}static resolveFieldData(e,t){if(e&&t){if(this.isFunction(t))return t(e);if(t.indexOf(".")==-1)return e[t];{let i=t.split("."),o=e;for(let s=0,r=i.length;s<r;++s){if(o==null)return null;o=o[i[s]]}return o}}else return null}static isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)}static reorderArray(e,t,i){let o;e&&t!==i&&(i>=e.length&&(i%=e.length,t%=e.length),e.splice(i,0,e.splice(t,1)[0]))}static insertIntoOrderedArray(e,t,i,o){if(i.length>0){let s=!1;for(let r=0;r<i.length;r++)if(this.findIndexInList(i[r],o)>t){i.splice(r,0,e),s=!0;break}s||i.push(e)}else i.push(e)}static findIndexInList(e,t){let i=-1;if(t){for(let o=0;o<t.length;o++)if(t[o]==e){i=o;break}}return i}static contains(e,t){if(e!=null&&t&&t.length){for(let i of t)if(this.equals(e,i))return!0}return!1}static removeAccents(e){return e&&(e=e.normalize("NFKD").replace(new RegExp("\\p{Diacritic}","gu"),"")),e}static isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}static isEmpty(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!this.isDate(e)&&typeof e=="object"&&Object.keys(e).length===0}static isNotEmpty(e){return!this.isEmpty(e)}static compare(e,t,i,o=1){let s=-1,r=this.isEmpty(e),l=this.isEmpty(t);return r&&l?s=0:r?s=o:l?s=-o:typeof e=="string"&&typeof t=="string"?s=e.localeCompare(t,i,{numeric:!0}):s=e<t?-1:e>t?1:0,s}static sort(e,t,i=1,o,s=1){let r=n.compare(e,t,o,i),l=i;return(n.isEmpty(e)||n.isEmpty(t))&&(l=s===1?i:s),l*r}static merge(e,t){if(!(e==null&&t==null)){{if((e==null||typeof e=="object")&&(t==null||typeof t=="object"))return f(f({},e||{}),t||{});if((e==null||typeof e=="string")&&(t==null||typeof t=="string"))return[e||"",t||""].join(" ")}return t||e}}static isPrintableCharacter(e=""){return this.isNotEmpty(e)&&e.length===1&&e.match(/\S| /)}static getItemValue(e,...t){return this.isFunction(e)?e(...t):e}static findLastIndex(e,t){let i=-1;if(this.isNotEmpty(e))try{i=e.findLastIndex(t)}catch{i=e.lastIndexOf([...e].reverse().find(t))}return i}static findLast(e,t){let i;if(this.isNotEmpty(e))try{i=e.findLast(t)}catch{i=[...e].reverse().find(t)}return i}static deepEquals(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var i=Array.isArray(e),o=Array.isArray(t),s,r,l;if(i&&o){if(r=e.length,r!=t.length)return!1;for(s=r;s--!==0;)if(!this.deepEquals(e[s],t[s]))return!1;return!0}if(i!=o)return!1;var u=e instanceof Date,O=t instanceof Date;if(u!=O)return!1;if(u&&O)return e.getTime()==t.getTime();var D=e instanceof RegExp,S=t instanceof RegExp;if(D!=S)return!1;if(D&&S)return e.toString()==t.toString();var _=Object.keys(e);if(r=_.length,r!==Object.keys(t).length)return!1;for(s=r;s--!==0;)if(!Object.prototype.hasOwnProperty.call(t,_[s]))return!1;for(s=r;s--!==0;)if(l=_[s],!this.deepEquals(e[l],t[l]))return!1;return!0}return e!==e&&t!==t}static minifyCSS(e){return e&&e.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}static toFlatCase(e){return this.isString(e)?e.replace(/(-|_)/g,"").toLowerCase():e}static isString(e,t=!0){return typeof e=="string"&&(t||e!=="")}},Ft=0;function fe(n="pn_id_"){return Ft++,`${n}${Ft}`}function Gt(){let n=[],e=(s,r)=>{let l=n.length>0?n[n.length-1]:{key:s,value:r},u=l.value+(l.key===s?0:r)+2;return n.push({key:s,value:u}),u},t=s=>{n=n.filter(r=>r.value!==s)},i=()=>n.length>0?n[n.length-1].value:0,o=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:o,set:(s,r,l)=>{r&&(r.style.zIndex=String(e(s,l)))},clear:s=>{s&&(t(o(s)),s.style.zIndex="")},getCurrent:()=>i(),generateZIndex:e,revertZIndex:t}}var J=Gt();var Rt=`
2
- .p-tooltip {
3
- position: absolute;
4
- display: none;
5
- max-width: dt('tooltip.max.width');
6
- }
7
-
8
- .p-tooltip-right,
9
- .p-tooltip-left {
10
- padding: 0 dt('tooltip.gutter');
11
- }
12
-
13
- .p-tooltip-top,
14
- .p-tooltip-bottom {
15
- padding: dt('tooltip.gutter') 0;
16
- }
17
-
18
- .p-tooltip-text {
19
- white-space: pre-line;
20
- word-break: break-word;
21
- background: dt('tooltip.background');
22
- color: dt('tooltip.color');
23
- padding: dt('tooltip.padding');
24
- box-shadow: dt('tooltip.shadow');
25
- border-radius: dt('tooltip.border.radius');
26
- }
27
-
28
- .p-tooltip-arrow {
29
- position: absolute;
30
- width: 0;
31
- height: 0;
32
- border-color: transparent;
33
- border-style: solid;
34
- }
35
-
36
- .p-tooltip-right .p-tooltip-arrow {
37
- margin-top: calc(-1 * dt('tooltip.gutter'));
38
- border-width: dt('tooltip.gutter') dt('tooltip.gutter') dt('tooltip.gutter') 0;
39
- border-right-color: dt('tooltip.background');
40
- }
41
-
42
- .p-tooltip-left .p-tooltip-arrow {
43
- margin-top: calc(-1 * dt('tooltip.gutter'));
44
- border-width: dt('tooltip.gutter') 0 dt('tooltip.gutter') dt('tooltip.gutter');
45
- border-left-color: dt('tooltip.background');
46
- }
47
-
48
- .p-tooltip-top .p-tooltip-arrow {
49
- margin-left: calc(-1 * dt('tooltip.gutter'));
50
- border-width: dt('tooltip.gutter') dt('tooltip.gutter') 0 dt('tooltip.gutter');
51
- border-top-color: dt('tooltip.background');
52
- border-bottom-color: dt('tooltip.background');
53
- }
54
-
55
- .p-tooltip-bottom .p-tooltip-arrow {
56
- margin-left: calc(-1 * dt('tooltip.gutter'));
57
- border-width: 0 dt('tooltip.gutter') dt('tooltip.gutter') dt('tooltip.gutter');
58
- border-top-color: dt('tooltip.background');
59
- border-bottom-color: dt('tooltip.background');
60
- }
61
- `;var Jt={root:"p-tooltip p-component",arrow:"p-tooltip-arrow",text:"p-tooltip-text"},Zt=(()=>{class n extends K{name="tooltip";style=Rt;classes=Jt;static \u0275fac=(()=>{let t;return function(o){return(t||(t=E(n)))(o||n)}})();static \u0275prov=H({token:n,factory:n.\u0275fac})}return n})();var qt=new N("TOOLTIP_INSTANCE"),ke=(()=>{class n extends G{zone;viewContainer;componentName="Tooltip";$pcTooltip=T(qt,{optional:!0,skipSelf:!0})??void 0;tooltipPosition;tooltipEvent="hover";positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;showOnEllipsis=!1;content;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this.deactivate()}tooltipOptions;appendTo=M(void 0);$appendTo=xt(()=>this.appendTo()||this.config.overlayAppendTo());_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,showOnEllipsis:!1,id:U("pn_id_")+"_tooltip"};_disabled;container;styleClass;tooltipText;rootPTClasses="";showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;touchStartListener;touchEndListener;documentTouchListener;documentEscapeListener;scrollHandler;resizeListener;_componentStyle=T(Zt);interactionInProgress=!1;ptTooltip=M();pTooltipPT=M();pTooltipUnstyled=M();constructor(t,i){super(),this.zone=t,this.viewContainer=i,Y(()=>{let o=this.ptTooltip()||this.pTooltipPT();o&&this.directivePT.set(o)}),Y(()=>{this.pTooltipUnstyled()&&this.directiveUnstyled.set(this.pTooltipUnstyled())})}onAfterViewInit(){Dt(this.platformId)&&this.zone.runOutsideAngular(()=>{let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener),this.touchStartListener=this.onTouchStart.bind(this),this.touchEndListener=this.onTouchEnd.bind(this),this.el.nativeElement.addEventListener("touchstart",this.touchStartListener,{passive:!0}),this.el.nativeElement.addEventListener("touchend",this.touchEndListener,{passive:!0})),t==="focus"||t==="both"){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let i=this.el.nativeElement.querySelector(".p-component");i||(i=this.getTarget(this.el.nativeElement)),i.addEventListener("focus",this.focusListener),i.addEventListener("blur",this.blurListener)}})}onChanges(t){t.tooltipPosition&&this.setOption({tooltipPosition:t.tooltipPosition.currentValue}),t.tooltipEvent&&this.setOption({tooltipEvent:t.tooltipEvent.currentValue}),t.appendTo&&this.setOption({appendTo:t.appendTo.currentValue}),t.positionStyle&&this.setOption({positionStyle:t.positionStyle.currentValue}),t.tooltipStyleClass&&this.setOption({tooltipStyleClass:t.tooltipStyleClass.currentValue}),t.tooltipZIndex&&this.setOption({tooltipZIndex:t.tooltipZIndex.currentValue}),t.escape&&this.setOption({escape:t.escape.currentValue}),t.showDelay&&this.setOption({showDelay:t.showDelay.currentValue}),t.hideDelay&&this.setOption({hideDelay:t.hideDelay.currentValue}),t.life&&this.setOption({life:t.life.currentValue}),t.positionTop&&this.setOption({positionTop:t.positionTop.currentValue}),t.positionLeft&&this.setOption({positionLeft:t.positionLeft.currentValue}),t.disabled&&this.setOption({disabled:t.disabled.currentValue}),t.content&&(this.setOption({tooltipLabel:t.content.currentValue}),this.active&&(t.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),t.autoHide&&this.setOption({autoHide:t.autoHide.currentValue}),t.showOnEllipsis&&this.setOption({showOnEllipsis:t.showOnEllipsis.currentValue}),t.id&&this.setOption({id:t.id.currentValue}),t.tooltipOptions&&(this._tooltipOptions=f(f({},this._tooltipOptions),t.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(t){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(t){this.isAutoHide()?this.deactivate():!(A(t.relatedTarget,"p-tooltip")||A(t.relatedTarget,"p-tooltip-text")||A(t.relatedTarget,"p-tooltip-arrow"))&&this.deactivate()}onTouchStart(t){!this.container&&!this.showTimeout&&(this.activate(),this.isAutoHide()||this.bindDocumentTouchListener())}onTouchEnd(t){this.isAutoHide()&&this.deactivate()}bindDocumentTouchListener(){this.documentTouchListener||(this.documentTouchListener=this.renderer.listen("document","touchstart",t=>{this.container&&!this.container.contains(t.target)&&!this.el.nativeElement.contains(t.target)&&(this.deactivate(),this.unbindDocumentTouchListener())}))}unbindDocumentTouchListener(){this.documentTouchListener&&(this.documentTouchListener(),this.documentTouchListener=null)}onFocus(t){this.activate()}onBlur(t){this.deactivate()}onInputClick(t){this.deactivate()}hasEllipsis(){let t=this.el.nativeElement;return t.offsetWidth<t.scrollWidth||t.offsetHeight<t.scrollHeight}activate(){if(!this.interactionInProgress){if(this.getOption("showOnEllipsis")&&!this.hasEllipsis())return;if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let t=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},t)}this.getOption("hideOnEscape")&&(this.documentEscapeListener=this.renderer.listen("document","keydown.escape",()=>{this.deactivate(),this.documentEscapeListener?.()})),this.interactionInProgress=!0}}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide(),this.documentEscapeListener&&this.documentEscapeListener()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=q("div",{class:this.cx("root"),"p-bind":this.ptm("root"),"data-pc-section":"root"}),this.container.setAttribute("role","tooltip");let t=q("div",{class:this.cx("arrow"),"p-bind":this.ptm("arrow"),"data-pc-section":"arrow"});this.container.appendChild(t),this.tooltipText=q("div",{class:this.cx("text"),"p-bind":this.ptm("text"),"data-pc-section":"text"}),this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),this.getOption("appendTo")==="body"?document.body.appendChild(this.container):this.getOption("appendTo")==="target"?lt(this.container,this.el.nativeElement):lt(this.getOption("appendTo"),this.container),this.container.style.display="none",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){let t=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(t,"mouseleave",i=>{this.deactivate()})}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){if(!this.getOption("tooltipLabel")||this.getOption("disabled"))return;this.create(),this.el.nativeElement.closest("p-dialog")?setTimeout(()=>{this.container&&(this.container.style.display="inline-block"),this.container&&this.align()},100):(this.container.style.display="inline-block",this.align()),Mt(this.container,250),this.getOption("tooltipZIndex")==="auto"?J.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){this.getOption("tooltipZIndex")==="auto"&&J.clear(this.container),this.remove()}updateText(){let t=this.getOption("tooltipLabel");if(t&&typeof t.createEmbeddedView=="function"){let i=this.viewContainer.createEmbeddedView(t);i.detectChanges(),i.rootNodes.forEach(o=>this.tooltipText.appendChild(o))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(t))):this.tooltipText.innerHTML=t}align(){let t=this.getOption("tooltipPosition"),o={top:[this.alignTop,this.alignBottom,this.alignRight,this.alignLeft],bottom:[this.alignBottom,this.alignTop,this.alignRight,this.alignLeft],left:[this.alignLeft,this.alignRight,this.alignTop,this.alignBottom],right:[this.alignRight,this.alignLeft,this.alignTop,this.alignBottom]}[t]||[];for(let[s,r]of o.entries())if(s===0)r.call(this);else if(this.isOutOfBounds())r.call(this);else break}getHostOffset(){if(this.getOption("appendTo")==="body"||this.getOption("appendTo")==="target"){let t=this.el.nativeElement.getBoundingClientRect(),i=t.left+kt(),o=t.top+Vt();return{left:i,top:o}}else return{left:0,top:0}}get activeElement(){return this.el.nativeElement.nodeName.startsWith("P-")?W(this.el.nativeElement,".p-component"):this.el.nativeElement}alignRight(){this.preAlign("right");let t=this.activeElement,i=d(t),o=(y(t)-y(this.container))/2;this.alignTooltip(i,o);let s=this.getArrowElement();s.style.top="50%",s.style.right=null,s.style.bottom=null,s.style.left="0"}alignLeft(){this.preAlign("left");let t=this.getArrowElement(),i=d(this.container),o=(y(this.el.nativeElement)-y(this.container))/2;this.alignTooltip(-i,o),t.style.top="50%",t.style.right="0",t.style.bottom=null,t.style.left=null}alignTop(){this.preAlign("top");let t=this.getArrowElement(),i=this.getHostOffset(),o=d(this.container),s=(d(this.el.nativeElement)-d(this.container))/2,r=y(this.container);this.alignTooltip(s,-r);let l=i.left-this.getHostOffset().left+o/2;t.style.top=null,t.style.right=null,t.style.bottom="0",t.style.left=l+"px"}getArrowElement(){return W(this.container,'[data-pc-section="arrow"]')}alignBottom(){this.preAlign("bottom");let t=this.getArrowElement(),i=d(this.container),o=this.getHostOffset(),s=(d(this.el.nativeElement)-d(this.container))/2,r=y(this.el.nativeElement);this.alignTooltip(s,r);let l=o.left-this.getHostOffset().left+i/2;t.style.top="0",t.style.right=null,t.style.bottom=null,t.style.left=l+"px"}alignTooltip(t,i){let o=this.getHostOffset(),s=o.left+t,r=o.top+i;this.container.style.left=s+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}setOption(t){this._tooltipOptions=f(f({},this._tooltipOptions),t)}getOption(t){return this._tooltipOptions[t]}getTarget(t){return A(t,"p-inputwrapper")?W(t,"input"):t}preAlign(t){this.container.style.left="-999px",this.container.style.top="-999px",this.container.className=this.cn(this.cx("root"),this.ptm("root")?.class,"p-tooltip-"+t,this.getOption("tooltipStyleClass"))}isOutOfBounds(){let t=this.container.getBoundingClientRect(),i=t.top,o=t.left,s=d(this.container),r=y(this.container),l=St();return o+s>l.width||o<0||i<0||i+r>l.height}onWindowResize(t){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Bt(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener),this.el.nativeElement.removeEventListener("touchstart",this.touchStartListener),this.el.nativeElement.removeEventListener("touchend",this.touchEndListener),this.unbindDocumentTouchListener()),t==="focus"||t==="both"){let i=this.el.nativeElement.querySelector(".p-component");i||(i=this.getTarget(this.el.nativeElement)),i.removeEventListener("focus",this.focusListener),i.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&(this.getOption("appendTo")==="body"?document.body.removeChild(this.container):this.getOption("appendTo")==="target"?this.el.nativeElement.removeChild(this.container):At(this.getOption("appendTo"),this.container)),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.unbindDocumentTouchListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}onDestroy(){this.unbindEvents(),this.container&&J.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.documentEscapeListener&&this.documentEscapeListener()}static \u0275fac=function(i){return new(i||n)(j(ct),j(dt))};static \u0275dir=ht({type:n,selectors:[["","pTooltip",""]],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[2,"escape","escape",h],showDelay:[2,"showDelay","showDelay",C],hideDelay:[2,"hideDelay","hideDelay",C],life:[2,"life","life",C],positionTop:[2,"positionTop","positionTop",C],positionLeft:[2,"positionLeft","positionLeft",C],autoHide:[2,"autoHide","autoHide",h],fitContent:[2,"fitContent","fitContent",h],hideOnEscape:[2,"hideOnEscape","hideOnEscape",h],showOnEllipsis:[2,"showOnEllipsis","showOnEllipsis",h],content:[0,"pTooltip","content"],disabled:[0,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions",appendTo:[1,"appendTo"],ptTooltip:[1,"ptTooltip"],pTooltipPT:[1,"pTooltipPT"],pTooltipUnstyled:[1,"pTooltipUnstyled"]},features:[Z([Zt,{provide:qt,useExisting:n},{provide:Q,useExisting:n}]),x]})}return n})(),Ve=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=R({type:n});static \u0275inj=B({imports:[at,at]})}return n})();var Xt=["data-p-icon","times-circle"],Ut=(()=>{class n extends Nt{pathId;onInit(){this.pathId="url(#"+U()+")"}static \u0275fac=(()=>{let t;return function(o){return(t||(t=E(n)))(o||n)}})();static \u0275cmp=F({type:n,selectors:[["","data-p-icon","times-circle"]],features:[x],attrs:Xt,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){i&1&&(z(),tt(0,"g"),it(1,"path",0),et(),tt(2,"defs")(3,"clipPath",1),it(4,"rect",2),et()()),i&2&&(w("clip-path",o.pathId),p(3),mt("id",o.pathId))},encapsulation:2})}return n})();var $t=`
62
- .p-chip {
63
- display: inline-flex;
64
- align-items: center;
65
- background: dt('chip.background');
66
- color: dt('chip.color');
67
- border-radius: dt('chip.border.radius');
68
- padding-block: dt('chip.padding.y');
69
- padding-inline: dt('chip.padding.x');
70
- gap: dt('chip.gap');
71
- }
72
-
73
- .p-chip-icon {
74
- color: dt('chip.icon.color');
75
- font-size: dt('chip.icon.size');
76
- width: dt('chip.icon.size');
77
- height: dt('chip.icon.size');
78
- }
79
-
80
- .p-chip-image {
81
- border-radius: 50%;
82
- width: dt('chip.image.width');
83
- height: dt('chip.image.height');
84
- margin-inline-start: calc(-1 * dt('chip.padding.y'));
85
- }
86
-
87
- .p-chip:has(.p-chip-remove-icon) {
88
- padding-inline-end: dt('chip.padding.y');
89
- }
90
-
91
- .p-chip:has(.p-chip-image) {
92
- padding-block-start: calc(dt('chip.padding.y') / 2);
93
- padding-block-end: calc(dt('chip.padding.y') / 2);
94
- }
95
-
96
- .p-chip-remove-icon {
97
- cursor: pointer;
98
- font-size: dt('chip.remove.icon.size');
99
- width: dt('chip.remove.icon.size');
100
- height: dt('chip.remove.icon.size');
101
- color: dt('chip.remove.icon.color');
102
- border-radius: 50%;
103
- transition:
104
- outline-color dt('chip.transition.duration'),
105
- box-shadow dt('chip.transition.duration');
106
- outline-color: transparent;
107
- }
108
-
109
- .p-chip-remove-icon:focus-visible {
110
- box-shadow: dt('chip.remove.icon.focus.ring.shadow');
111
- outline: dt('chip.remove.icon.focus.ring.width') dt('chip.remove.icon.focus.ring.style') dt('chip.remove.icon.focus.ring.color');
112
- outline-offset: dt('chip.remove.icon.focus.ring.offset');
113
- }
114
- `;var Yt=["removeicon"],jt=["*"];function te(n,e){if(n&1){let t=k();L(0,"img",4),V("error",function(o){m(t);let s=a();return g(s.imageError(o))}),I()}if(n&2){let t=a();v(t.cx("image")),c("pBind",t.ptm("image"))("src",t.image,pt)("alt",t.alt)}}function ee(n,e){if(n&1&&ft(0,"span",6),n&2){let t=a(2);v(t.icon),c("pBind",t.ptm("icon"))("ngClass",t.cx("icon"))}}function ie(n,e){if(n&1&&b(0,ee,1,4,"span",5),n&2){let t=a();c("ngIf",t.icon)}}function ne(n,e){if(n&1&&(L(0,"div",7),Et(1),I()),n&2){let t=a();v(t.cx("label")),c("pBind",t.ptm("label")),p(),bt(t.label)}}function oe(n,e){if(n&1){let t=k();L(0,"span",11),V("click",function(o){m(t);let s=a(3);return g(s.close(o))})("keydown",function(o){m(t);let s=a(3);return g(s.onKeydown(o))}),I()}if(n&2){let t=a(3);v(t.removeIcon),c("pBind",t.ptm("removeIcon"))("ngClass",t.cx("removeIcon")),w("tabindex",t.disabled?-1:0)("aria-label",t.removeAriaLabel)}}function se(n,e){if(n&1){let t=k();z(),L(0,"svg",12),V("click",function(o){m(t);let s=a(3);return g(s.close(o))})("keydown",function(o){m(t);let s=a(3);return g(s.onKeydown(o))}),I()}if(n&2){let t=a(3);v(t.cx("removeIcon")),c("pBind",t.ptm("removeIcon")),w("tabindex",t.disabled?-1:0)("aria-label",t.removeAriaLabel)}}function re(n,e){if(n&1&&(nt(0),b(1,oe,1,6,"span",9)(2,se,1,5,"svg",10),ot()),n&2){let t=a(2);p(),c("ngIf",t.removeIcon),p(),c("ngIf",!t.removeIcon)}}function le(n,e){}function ae(n,e){n&1&&b(0,le,0,0,"ng-template")}function ce(n,e){if(n&1){let t=k();L(0,"span",13),V("click",function(o){m(t);let s=a(2);return g(s.close(o))})("keydown",function(o){m(t);let s=a(2);return g(s.onKeydown(o))}),b(1,ae,1,0,null,14),I()}if(n&2){let t=a(2);v(t.cx("removeIcon")),c("pBind",t.ptm("removeIcon")),w("tabindex",t.disabled?-1:0)("aria-label",t.removeAriaLabel),p(),c("ngTemplateOutlet",t.removeIconTemplate||t._removeIconTemplate)}}function pe(n,e){if(n&1&&(nt(0),b(1,re,3,2,"ng-container",3)(2,ce,2,6,"span",8),ot()),n&2){let t=a();p(),c("ngIf",!t.removeIconTemplate&&!t._removeIconTemplate),p(),c("ngIf",t.removeIconTemplate||t._removeIconTemplate)}}var de={root:({instance:n})=>({display:!n.visible&&"none"})},he={root:({instance:n})=>["p-chip p-component",{"p-disabled":n.disabled}],image:"p-chip-image",icon:"p-chip-icon",label:"p-chip-label",removeIcon:"p-chip-remove-icon"},Kt=(()=>{class n extends K{name="chip";style=$t;classes=he;inlineStyles=de;static \u0275fac=(()=>{let t;return function(o){return(t||(t=E(n)))(o||n)}})();static \u0275prov=H({token:n,factory:n.\u0275fac})}return n})();var Qt=new N("CHIP_INSTANCE"),ue=(()=>{class n extends G{componentName="Chip";$pcChip=T(Qt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=T(P,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}label;icon;image;alt;styleClass;disabled=!1;removable=!1;removeIcon;onRemove=new X;onImageError=new X;visible=!0;get removeAriaLabel(){return this.config.getTranslation(Ht.ARIA).removeLabel}get chipProps(){return this._chipProps}set chipProps(t){this._chipProps=t,t&&typeof t=="object"&&Object.entries(t).forEach(([i,o])=>this[`_${i}`]!==o&&(this[`_${i}`]=o))}_chipProps;_componentStyle=T(Kt);removeIconTemplate;templates;_removeIconTemplate;onAfterContentInit(){this.templates.forEach(t=>{t.getType()==="removeicon"?this._removeIconTemplate=t.template:this._removeIconTemplate=t.template})}onChanges(t){if(t.chipProps&&t.chipProps.currentValue){let{currentValue:i}=t.chipProps;i.label!==void 0&&(this.label=i.label),i.icon!==void 0&&(this.icon=i.icon),i.image!==void 0&&(this.image=i.image),i.alt!==void 0&&(this.alt=i.alt),i.styleClass!==void 0&&(this.styleClass=i.styleClass),i.removable!==void 0&&(this.removable=i.removable),i.removeIcon!==void 0&&(this.removeIcon=i.removeIcon)}}close(t){this.visible=!1,this.onRemove.emit(t)}onKeydown(t){(t.key==="Enter"||t.key==="Backspace")&&this.close(t)}imageError(t){this.onImageError.emit(t)}get dataP(){return this.cn({removable:this.removable})}static \u0275fac=(()=>{let t;return function(o){return(t||(t=E(n)))(o||n)}})();static \u0275cmp=F({type:n,selectors:[["p-chip"]],contentQueries:function(i,o,s){if(i&1&&yt(s,Yt,4)(s,Pt,4),i&2){let r;st(r=rt())&&(o.removeIconTemplate=r.first),st(r=rt())&&(o.templates=r)}},hostVars:6,hostBindings:function(i,o){i&2&&(w("aria-label",o.label)("data-p",o.dataP),Tt(o.sx("root")),v(o.cn(o.cx("root"),o.styleClass)))},inputs:{label:"label",icon:"icon",image:"image",alt:"alt",styleClass:"styleClass",disabled:[2,"disabled","disabled",h],removable:[2,"removable","removable",h],removeIcon:"removeIcon",chipProps:"chipProps"},outputs:{onRemove:"onRemove",onImageError:"onImageError"},features:[Z([Kt,{provide:Qt,useExisting:n},{provide:Q,useExisting:n}]),ut([P]),x],ngContentSelectors:jt,decls:6,vars:4,consts:[["iconTemplate",""],[3,"pBind","class","src","alt","error",4,"ngIf","ngIfElse"],[3,"pBind","class",4,"ngIf"],[4,"ngIf"],[3,"error","pBind","src","alt"],[3,"pBind","class","ngClass",4,"ngIf"],[3,"pBind","ngClass"],[3,"pBind"],["role","button",3,"pBind","class","click","keydown",4,"ngIf"],["role","button",3,"pBind","class","ngClass","click","keydown",4,"ngIf"],["data-p-icon","times-circle","role","button",3,"pBind","class","click","keydown",4,"ngIf"],["role","button",3,"click","keydown","pBind","ngClass"],["data-p-icon","times-circle","role","button",3,"click","keydown","pBind"],["role","button",3,"click","keydown","pBind"],[4,"ngTemplateOutlet"]],template:function(i,o){if(i&1&&(gt(),vt(0),b(1,te,1,5,"img",1)(2,ie,1,1,"ng-template",null,0,wt)(4,ne,2,4,"div",2)(5,pe,3,2,"ng-container",3)),i&2){let s=_t(3);p(),c("ngIf",o.image)("ngIfElse",s),p(3),c("ngIf",o.label),p(),c("ngIf",o.removable)}},dependencies:[Ot,Lt,It,Ct,Ut,$,P],encapsulation:2,changeDetection:0})}return n})(),oi=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=R({type:n});static \u0275inj=B({imports:[ue,$,$]})}return n})();export{zt as a,fe as b,J as c,ke as d,Ve as e,ue as f,oi as g};
@@ -1 +0,0 @@
1
- import{a as Ae,b as xe}from"./chunk-G6SL4UFD.js";import{A as T,Ab as fe,B as L,Bb as ye,Cb as ve,Db as Ie,Eb as be,Fb as ke,Ga as d,Gb as we,H as oe,Ha as m,I as l,Ia as N,Lc as Se,Mc as _e,O,V as se,W as ae,Z as le,_ as ce,a as X,ab as _,ad as F,b as Y,bd as j,c as C,ca as R,da as a,dd as Ee,ea as c,ed as p,f as V,fa as P,fd as Pe,gd as I,j as Z,l as v,n as q,o as D,oa as de,p as s,qa as W,r as ee,ra as G,s as te,tb as me,ub as pe,v as ne,vb as A,w as re,wb as ue,xb as he,z as ie,zb as ge}from"./chunk-AVRC55YV.js";import"./chunk-Q7L6LLAK.js";var Te=[{path:"",pathMatch:"full",redirectTo:"graph"},{path:"graph",loadComponent:()=>import("./chunk-VJAWM5V3.js").then(n=>n.GraphView),data:{title:"Graph"}},{path:"list",loadComponent:()=>import("./chunk-T5SUVDLE.js").then(n=>n.ListView),data:{title:"List"}},{path:"inspector",loadComponent:()=>import("./chunk-WFJRSBK6.js").then(n=>n.InspectorView),data:{title:"Inspector"}},{path:"**",redirectTo:"graph"}];var f={errors:{unknownMode:n=>`SKILL_MAP_MODE: unknown value "${n}"`,restPrefix:n=>`BFF error [${n}]: `,malformedResponse:"BFF returned a malformed response",demoFetchFailed:(n,e)=>`Demo bundle fetch failed for "${n}": ${e}`,demoParseFailed:(n,e)=>`Demo bundle parse failed for "${n}": ${e}`,graphFormatNotInDemo:n=>`Graph format "${n}" is not bundled in demo mode (only "ascii").`}};function Re(n){if(typeof n!="object"||n===null)return!1;let e=n;if(typeof e.type!="string"||e.type.length===0)return!1;let t=e.timestamp;return!(typeof t!="number"&&typeof t!="string"||!("data"in e))}var b=new q("SKILL_MAP_MODE");function Me(){return typeof document>"u"?"live":document.querySelector('meta[name="skill-map-mode"]')?.content==="demo"?"demo":"live"}var u={connected:n=>`[ws] connected to ${n}`,closed:(n,e)=>`[ws] closed (code=${n}, reason="${e}")`,malformedFrame:n=>`[ws] malformed frame dropped: ${n}`,socketError:n=>`[ws] socket error: ${n}`,reconnectScheduled:(n,e)=>`[ws] reconnect attempt ${e} scheduled in ${n}ms`,reconnectGiveUp:n=>`[ws] giving up after ${n} failed reconnect attempts`};var Ce=[1e3,2e3,4e3,8e3,16e3,3e4],J=10,Ve=new Set([1e3,1001]);function Ge(){return typeof window>"u"||!window.location?"ws://127.0.0.1:4242/ws":`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`}var k=class n{mode=s(b);destroyRef=s(re);subject=new Y;socket=null;reconnectTimer=null;reconnectAttempt=0;disposed=!1;socketFactory=e=>new WebSocket(e);url=Ge();events$;_setSocketFactory(e){this.socketFactory=e}_setUrl(e){this.url=e}constructor(){this.mode!=="live"?this.events$=C:this.events$=new X(e=>{!this.socket&&!this.disposed&&this.connect();let t=this.subject.subscribe(e);return()=>t.unsubscribe()}).pipe(Z({resetOnRefCountZero:!1})),this.destroyRef.onDestroy(()=>this.disconnect())}disconnect(){if(!this.disposed){if(this.disposed=!0,this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.socket){try{this.socket.close(1e3,"client disconnect")}catch{}this.socket=null}this.subject.complete()}}ngOnDestroy(){this.disconnect()}connect(){if(this.disposed)return;let e;try{e=this.socketFactory(this.url)}catch(t){let r=t instanceof Error?t.message:String(t);console.warn(u.socketError(r)),this.scheduleReconnect();return}this.socket=e,e.onopen=()=>{this.reconnectAttempt=0,console.info(u.connected(this.url))},e.onmessage=t=>{this.handleFrame(t.data)},e.onerror=t=>{let r=typeof t=="object"&&t!==null&&"message"in t?String(t.message??"unknown"):"unknown";console.warn(u.socketError(r))},e.onclose=t=>{console.info(u.closed(t.code,t.reason)),this.socket=null,!this.disposed&&(Ve.has(t.code)||this.scheduleReconnect())}}handleFrame(e){if(typeof e!="string"){console.warn(u.malformedFrame("non-string frame"));return}let t;try{t=JSON.parse(e)}catch(r){let i=r instanceof Error?r.message:String(r);console.warn(u.malformedFrame(i));return}if(!Re(t)){console.warn(u.malformedFrame("envelope shape"));return}this.subject.next(t)}scheduleReconnect(){if(this.disposed)return;if(this.reconnectAttempt>=J){console.warn(u.reconnectGiveUp(J)),this.subject.error(new Error(u.reconnectGiveUp(J)));return}let e=Math.min(this.reconnectAttempt,Ce.length-1),t=Ce[e];this.reconnectAttempt+=1,console.info(u.reconnectScheduled(t,this.reconnectAttempt)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},t)}get _reconnectAttempt(){return this.reconnectAttempt}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})};function De(n){let e=new TextEncoder().encode(n),t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}var y="/api",$=class n{http;ws;kindRegistry;constructor(e,t,r){this.http=e??s(A),this.ws=t??s(k),this.kindRegistry=r??s(I)}async health(){return this.getJson(`${y}/health`)}async loadScan(){let[e]=await Promise.all([this.getJson(`${y}/scan`),this.listNodes({limit:0}).catch(()=>null)]);return e}async listNodes(e={}){let t=Xe(e),r=await this.getJson(`${y}/nodes${t}`);return this.ingestRegistry(r.kindRegistry),r}async getNode(e,t={}){let r=De(e),i=t.includeBody?"?include=body":"";try{let o=await this.getJson(`${y}/nodes/${r}${i}`);return this.ingestRegistry(o.kindRegistry),o}catch(o){if(o instanceof p&&o.code==="not-found")return null;throw o}}async listLinks(e={}){let t=Ye(e),r=await this.getJson(`${y}/links${t}`);return this.ingestRegistry(r.kindRegistry),r}async listIssues(e={}){let t=Ze(e),r=await this.getJson(`${y}/issues${t}`);return this.ingestRegistry(r.kindRegistry),r}async loadGraph(e="ascii"){let t=`${y}/graph?format=${encodeURIComponent(e)}`;try{return await V(this.http.get(t,{responseType:"text"}))}catch(r){throw this.translateError(r)}}async loadConfig(){let e=await this.getJson(`${y}/config`);return this.ingestRegistry(e.kindRegistry),e.value}async listPlugins(){let e=await this.getJson(`${y}/plugins`);return this.ingestRegistry(e.kindRegistry),e}ingestRegistry(e){e&&this.kindRegistry.ingest(e)}events(){return this.ws.events$}async getJson(e){try{return await V(this.http.get(e))}catch(t){throw this.translateError(t)}}translateError(e){if(e instanceof p)return e;if(e instanceof pe){let r=qe(e.error);return r?new p(r.error.code,r.error.message,r.error.details):new p("internal",e.message||f.errors.malformedResponse)}let t=e instanceof Error?e.message:String(e);return new p("internal",t)}static \u0275fac=function(t){return new(t||n)(D(A),D(k),D(I))};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})};function Xe(n){let e=new URLSearchParams;n.kind&&n.kind.length>0&&e.set("kind",n.kind.join(",")),n.hasIssues!==void 0&&e.set("hasIssues",String(n.hasIssues)),n.path&&e.set("path",n.path),n.limit!==void 0&&e.set("limit",String(n.limit)),n.offset!==void 0&&e.set("offset",String(n.offset));let t=e.toString();return t?`?${t}`:""}function Ye(n){let e=new URLSearchParams;n.kind&&n.kind.length>0&&e.set("kind",n.kind.join(",")),n.from&&e.set("from",n.from),n.to&&e.set("to",n.to);let t=e.toString();return t?`?${t}`:""}function Ze(n){let e=new URLSearchParams;n.severity&&e.set("severity",n.severity),n.ruleId&&e.set("ruleId",n.ruleId),n.node&&e.set("node",n.node);let t=e.toString();return t?`?${t}`:""}function qe(n){if(typeof n!="object"||n===null)return null;let e=n;if(e.ok!==!1)return null;let t=e.error;if(typeof t!="object"||t===null)return null;let r=t;return typeof r.code!="string"||typeof r.message!="string"?null:{ok:!1,error:{code:r.code,message:r.message,details:r.details}}}var et="data.json",tt="data.meta.json",U=class{constructor(e=globalThis.fetch.bind(globalThis),t){this.fetchImpl=e;this.kindRegistry=t??s(I)}metaPromise=null;dataPromise=null;kindRegistry;async health(){return(await this.loadMeta()).health}async loadScan(){let[e,t]=await Promise.all([this.loadData(),this.loadMeta()]);return this.kindRegistry.ingest(t.nodes.kindRegistry),e}async listNodes(e={}){let t=await this.loadMeta();if(nt(e))return this.kindRegistry.ingest(t.nodes.kindRegistry),t.nodes;let r=await this.loadData(),i=r.issues,o=r.nodes;if(e.kind&&e.kind.length>0){let w=new Set(e.kind);o=o.filter(S=>w.has(S.kind))}if(e.path){let w=ot(e.path);o=o.filter(S=>w.test(S.path))}if(e.hasIssues===!0){let w=Le(i);o=o.filter(S=>w.has(S.path))}else if(e.hasIssues===!1){let w=Le(i);o=o.filter(S=>!w.has(S.path))}let g=o.length,E=e.offset??0,x=e.limit??1e3,h=o.slice(E,E+x);return this.kindRegistry.ingest(t.nodes.kindRegistry),{schemaVersion:"1",kind:"nodes",items:h,filters:{kind:e.kind??null,hasIssues:e.hasIssues??null,path:e.path?[e.path]:null},counts:{total:g,returned:h.length,page:{offset:E,limit:x}},kindRegistry:t.nodes.kindRegistry}}async getNode(e,t={}){let[r,i]=await Promise.all([this.loadData(),this.loadMeta()]),o=r.nodes.find(h=>h.path===e);if(!o)return null;let g=r.links.filter(h=>h.target===e),E=r.links.filter(h=>h.source===e),x=r.issues.filter(h=>h.nodeIds.includes(e));return this.kindRegistry.ingest(i.nodes.kindRegistry),{schemaVersion:"1",kind:"node",item:o,links:{incoming:g,outgoing:E},issues:x,kindRegistry:i.nodes.kindRegistry}}async listLinks(e={}){let t=await this.loadMeta();if(rt(e))return this.kindRegistry.ingest(t.links.kindRegistry),t.links;let i=(await this.loadData()).links;if(e.kind&&e.kind.length>0){let o=new Set(e.kind);i=i.filter(g=>o.has(g.kind))}return e.from&&(i=i.filter(o=>o.source===e.from)),e.to&&(i=i.filter(o=>o.target===e.to)),this.kindRegistry.ingest(t.links.kindRegistry),{schemaVersion:"1",kind:"links",items:i,filters:{kind:e.kind??null,from:e.from??null,to:e.to??null},counts:{total:i.length,returned:i.length},kindRegistry:t.links.kindRegistry}}async listIssues(e={}){let t=await this.loadMeta();if(it(e))return this.kindRegistry.ingest(t.issues.kindRegistry),t.issues;let i=(await this.loadData()).issues;return e.severity&&(i=i.filter(o=>o.severity===e.severity)),e.ruleId&&(i=i.filter(o=>o.ruleId===e.ruleId)),e.node&&(i=i.filter(o=>o.nodeIds.includes(e.node))),this.kindRegistry.ingest(t.issues.kindRegistry),{schemaVersion:"1",kind:"issues",items:i,filters:{severity:e.severity??null,ruleId:e.ruleId??null,node:e.node??null},counts:{total:i.length,returned:i.length},kindRegistry:t.issues.kindRegistry}}async loadGraph(e="ascii"){if(e!=="ascii")throw new p("bad-query",f.errors.graphFormatNotInDemo(e));return(await this.loadMeta()).graph.ascii}async loadConfig(){let e=await this.loadMeta();return this.kindRegistry.ingest(e.config.kindRegistry),e.config.value}async listPlugins(){let e=await this.loadMeta();return this.kindRegistry.ingest(e.plugins.kindRegistry),e.plugins}events(){return C}loadMeta(){return this.metaPromise||(this.metaPromise=this.fetchJson(tt)),this.metaPromise}loadData(){return this.dataPromise||(this.dataPromise=this.fetchJson(et)),this.dataPromise}async fetchJson(e){let t;try{t=await this.fetchImpl(e)}catch(r){let i=r instanceof Error?r.message:String(r);throw new p("internal",f.errors.demoFetchFailed(e,i))}if(!t.ok)throw new p("internal",f.errors.demoFetchFailed(e,`HTTP ${t.status}`));try{return await t.json()}catch(r){let i=r instanceof Error?r.message:String(r);throw new p("internal",f.errors.demoParseFailed(e,i))}}};function nt(n){return!(n.kind&&n.kind.length>0||n.hasIssues!==void 0||n.path||n.offset!==void 0&&n.offset!==0||n.limit!==void 0)}function rt(n){return!(n.kind&&n.kind.length>0||n.from||n.to)}function it(n){return!(n.severity||n.ruleId||n.node)}function Le(n){let e=new Set;for(let t of n)for(let r of t.nodeIds)e.add(r);return e}function ot(n){let t=n.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${t}$`)}function Oe(){let n=s(b);if(n==="live")return new $(s(A),s(k));if(n==="demo")return new U;let e=n;throw new Error(f.errors.unknownMode(String(e)))}var We={providers:[ie(),ke(Te,we()),ue(he()),_e({}),se(async()=>{let n=s(Se),{default:e}=await import("./chunk-FWFBO7KA.js");n.setThemeConfig({theme:{preset:e,options:{darkModeSelector:".app-dark"}}})}),{provide:b,useFactory:Me},{provide:Ee,useFactory:Oe}]};var Ne={brand:"skill-map",tag:"ui prototype \xB7 Step 3",nav:{graph:"Graph",list:"List",inspector:"Inspector"},actions:{},badge:{nodes:"nodes"},a11y:{viewSwitcher:"View switcher"},viewportWarning:{title:"Looks like you're on a small screen",subtitle:"skill-map is built for desktop",body:"The graph and inspector need room to breathe. Pop this open on a screen at least 768px wide \u2014 see you there."}};var K={toggleToAuto:"Switch to auto theme (follow system)",toggleToLight:"Switch to light theme",toggleToDark:"Switch to dark theme"};var Fe="search",je="kinds",$e="stabilities",Ue="hasIssues",B=class n{filters=s(xe);router=s(ve);activatedRoute=s(fe);kindRegistry=s(I);suppressUrlReadback=!1;constructor(){this.applyUrlToFilters(this.currentParams()),this.router.events.subscribe(e=>{if(e instanceof ge){if(this.suppressUrlReadback)return;this.applyUrlToFilters(this.currentParams())}}),L(()=>{let e=this.computeQueryParams();this.writeQueryParams(e)})}currentParams(){let e=this.router.parseUrl(this.router.url),t=new URLSearchParams;for(let[r,i]of Object.entries(e.queryParams))Array.isArray(i)?t.set(r,i.join(",")):i!=null&&t.set(r,String(i));return this.activatedRoute,t}applyUrlToFilters(e){let t=e.get(Fe)??"";t!==this.filters.searchText()&&this.filters.setSearchText(t);let r=st(e.get(je),this.kindRegistry.kinds().map(g=>g.name));Ke(r,this.filters.selectedKinds())||this.filters.setKinds(r);let i=at(e.get($e));Ke(i,this.filters.selectedStabilities())||this.filters.setStabilities(i);let o=e.get(Ue)==="true";o!==this.filters.hasIssuesOnly()&&this.filters.setHasIssuesOnly(o)}computeQueryParams(){let e=this.filters.searchText().trim(),t=this.filters.selectedKinds(),r=this.filters.selectedStabilities(),i=this.filters.hasIssuesOnly();return{[Fe]:e.length>0?e:null,[je]:t.length>0?t.join(","):null,[$e]:r.length>0?r.join(","):null,[Ue]:i?"true":null}}writeQueryParams(e){let t=this.currentParams(),r=new Map(Object.entries(e)),i=!1;for(let[o,g]of r)if((t.get(o)??null)!==g){i=!0;break}i&&(this.suppressUrlReadback=!0,this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:e,queryParamsHandling:"merge",replaceUrl:!0}).finally(()=>{setTimeout(()=>{this.suppressUrlReadback=!1},0)}))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})};function st(n,e){if(!n)return[];let t=new Set(e);return n.split(",").map(r=>r.trim()).filter(r=>t.has(r))}function at(n){if(!n)return[];let e=new Set(Ae);return n.split(",").map(t=>t.trim()).filter(t=>e.has(t))}function Ke(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}var Be="skill-map.ui.theme",lt="app-dark",ct="dark",Qe="(prefers-color-scheme: dark)",Q=class n{doc=s(ne);mode=T(this.readInitial());systemPrefersDark=T(this.readSystemPref());resolved=_(()=>{let e=this.mode();return e==="auto"?this.systemPrefersDark()?"dark":"light":e});constructor(){this.subscribeToSystemPref(),L(()=>{let e=this.resolved()==="dark",t=this.doc.documentElement;t.classList.toggle(lt,e),t.classList.toggle(ct,e);try{this.doc.defaultView?.localStorage.setItem(Be,this.mode())}catch{}})}toggle(){this.mode.update(e=>e==="auto"?"light":e==="light"?"dark":"auto")}set(e){this.mode.set(e)}readInitial(){try{let e=this.doc.defaultView?.localStorage.getItem(Be);if(e==="auto"||e==="light"||e==="dark")return e}catch{}return"auto"}readSystemPref(){try{return this.doc.defaultView?.matchMedia(Qe).matches??!1}catch{return!1}}subscribeToSystemPref(){let e=this.doc.defaultView;if(!e||typeof e.matchMedia!="function")return;e.matchMedia(Qe).addEventListener("change",r=>{this.systemPrefersDark.set(r.matches)})}static \u0275fac=function(t){return new(t||n)};static \u0275prov=v({token:n,factory:n.\u0275fac,providedIn:"root"})};var He={body:"You are viewing a static demo of skill-map's UI. Install it:",installCommand:"npm i -g @skill-map/cli",homeCta:"\u2190 Back to skill-map.dev",homeHref:"/",dismissAria:"Dismiss demo banner"};function pt(n,e){if(n&1){let t=de();a(0,"div",0),P(1,"span",1),a(2,"p",2),d(3),a(4,"code",3),d(5),c()(),a(6,"a",4),d(7),c(),a(8,"p-button",5),W("onClick",function(){ee(t);let i=G();return te(i.dismiss())}),c()()}if(n&2){let t=G();l(3),N(" ",t.texts.body," "),l(2),m(t.texts.installCommand),l(),R("href",t.texts.homeHref,oe),l(),m(t.texts.homeCta),l(),R("ariaLabel",t.texts.dismissAria)("text",!0)("rounded",!0)}}var ze="sm.demoBannerDismissed",H=class n{mode=s(b);texts=He;dismissed=T(this.readDismissed());visible=_(()=>this.mode==="demo"&&!this.dismissed());dismiss(){this.dismissed.set(!0);try{globalThis.localStorage?.setItem(ze,"1")}catch{}}readDismissed(){if(this.mode!=="demo")return!0;try{return globalThis.localStorage?.getItem(ze)==="1"}catch{return!1}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=O({type:n,selectors:[["sm-demo-banner"]],decls:1,vars:1,consts:[["role","status","data-testid","demo-banner",1,"demo-banner"],["aria-hidden","true",1,"demo-banner__icon","pi","pi-info-circle"],[1,"demo-banner__body"],["data-testid","demo-banner-install",1,"demo-banner__cmd"],["data-testid","demo-banner-home",1,"demo-banner__home",3,"href"],["icon","pi pi-times","severity","secondary","size","small","data-testid","demo-banner-dismiss",3,"onClick","ariaLabel","text","rounded"]],template:function(t,r){t&1&&le(0,pt,9,7,"div",0),t&2&&ce(r.visible()?0:-1)},dependencies:[j,F],styles:["[_nghost-%COMP%]{display:block}.demo-banner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;padding:.5rem 1rem;border-bottom:1px solid var(--p-content-border-color);background:var(--p-highlight-background);color:var(--p-text-color);font-size:.875rem}.demo-banner__icon[_ngcontent-%COMP%]{font-size:1.1rem;color:var(--p-primary-color)}.demo-banner__body[_ngcontent-%COMP%]{flex:1 1 auto;margin:0;line-height:1.4}.demo-banner__cmd[_ngcontent-%COMP%]{font-family:var(--font-family-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);background:var(--p-content-background);border:1px solid var(--p-content-border-color);border-radius:.25rem;padding:.05rem .4rem;font-size:.85em;margin-left:.25rem}.demo-banner__home[_ngcontent-%COMP%]{color:var(--p-primary-color);font-weight:500;text-decoration:none;white-space:nowrap}.demo-banner__home[_ngcontent-%COMP%]:hover, .demo-banner__home[_ngcontent-%COMP%]:focus-visible{text-decoration:underline}"],changeDetection:0})};var z=class n{loader=s(Pe);theme=s(Q);_filterUrlSync=s(B);texts=Ne;count=this.loader.count;themeMode=this.theme.mode;themeIcon=_(()=>{switch(this.themeMode()){case"auto":return"pi pi-desktop";case"light":return"pi pi-sun";case"dark":return"pi pi-moon"}});themeLabel=_(()=>{switch(this.themeMode()){case"auto":return K.toggleToLight;case"light":return K.toggleToDark;case"dark":return K.toggleToAuto}});ngOnInit(){this.loader.load()}toggleTheme(){this.theme.toggle()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=O({type:n,selectors:[["app-root"]],decls:35,vars:15,consts:[["role","alert","data-testid","viewport-warning",1,"viewport-warning"],[1,"viewport-warning__card"],["aria-hidden","true",1,"pi","pi-desktop","viewport-warning__icon"],[1,"viewport-warning__title"],[1,"viewport-warning__subtitle"],[1,"viewport-warning__body"],["data-testid","shell",1,"shell"],["data-testid","shell-topbar",1,"shell__topbar"],[1,"shell__brand"],[1,"shell__brand-mark"],[1,"shell__tag"],["data-testid","shell-nav",1,"shell__nav"],["routerLink","/graph","routerLinkActive","is-active","data-testid","nav-graph"],["routerLink","/list","routerLinkActive","is-active","data-testid","nav-list"],["routerLink","/inspector","routerLinkActive","is-active","data-testid","nav-inspector"],[1,"shell__actions"],["severity","secondary","size","small","data-testid","action-theme-toggle",3,"onClick","icon","ariaLabel","text","rounded"],["aria-live","polite","data-testid","shell-nodes-badge",1,"shell__badge"],[1,"shell__main"]],template:function(t,r){t&1&&(a(0,"div",0)(1,"div",1),P(2,"i",2),a(3,"h2",3),d(4),c(),a(5,"p",4),d(6),c(),a(7,"p",5),d(8),c()()(),a(9,"div",6),P(10,"sm-demo-banner"),a(11,"header",7)(12,"div",8)(13,"span",9),d(14,"sm"),c(),a(15,"div")(16,"h1"),d(17),c(),a(18,"p",10),d(19),c()()(),a(20,"nav",11)(21,"a",12),d(22),c(),a(23,"a",13),d(24),c(),a(25,"a",14),d(26),c()(),a(27,"div",15)(28,"p-button",16),W("onClick",function(){return r.toggleTheme()}),c(),a(29,"div",17)(30,"strong"),d(31),c(),d(32),c()()(),a(33,"main",18),P(34,"router-outlet"),c()()),t&2&&(l(4),m(r.texts.viewportWarning.title),l(2),m(r.texts.viewportWarning.subtitle),l(2),m(r.texts.viewportWarning.body),l(9),m(r.texts.brand),l(2),m(r.texts.tag),l(),ae("aria-label",r.texts.a11y.viewSwitcher),l(2),m(r.texts.nav.graph),l(2),m(r.texts.nav.list),l(2),m(r.texts.nav.inspector),l(2),R("icon",r.themeIcon())("ariaLabel",r.themeLabel())("text",!0)("rounded",!0),l(3),m(r.count()),l(),N(" ",r.texts.badge.nodes," "))},dependencies:[ye,Ie,be,j,F,H],styles:["[_nghost-%COMP%]{display:block;height:100dvh}.shell[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100dvh}.shell__topbar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:2rem;padding:.75rem 1.5rem;background:var(--sm-bg-content);border-bottom:1px solid var(--sm-border);box-shadow:var(--sm-shadow-topbar)}.shell__brand[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.shell__brand-mark[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:.5rem;background:var(--p-primary-color);color:var(--p-primary-contrast-color);font-weight:700;font-size:.85rem;letter-spacing:.04em}.shell__brand[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:1.05rem;font-weight:600;letter-spacing:-.01em}.shell__tag[_ngcontent-%COMP%]{margin:0;font-size:.72rem;color:var(--p-text-muted-color);letter-spacing:.02em;text-transform:uppercase}.shell__nav[_ngcontent-%COMP%]{display:flex;gap:.25rem;margin-left:auto}.shell__nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:.5rem .9rem;border-radius:.5rem;font-size:.9rem;font-weight:500;color:var(--p-text-muted-color);transition:background .15s ease,color .15s ease}.shell__nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--sm-bg-hover);color:var(--p-text-color)}.shell__nav[_ngcontent-%COMP%] a.is-active[_ngcontent-%COMP%]{background:var(--sm-nav-active-bg);color:var(--p-primary-color)}.shell__actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.shell__badge[_ngcontent-%COMP%]{padding:.4rem .8rem;border-radius:999px;background:var(--sm-bg-hover);color:var(--p-text-muted-color);font-size:.85rem}.shell__badge[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--p-text-color);margin-right:.25rem}.shell__main[_ngcontent-%COMP%]{flex:1;min-height:0;overflow-y:auto;padding:1.5rem;max-width:1400px;width:100%;margin:0 auto}@media(max-width:1280px){.shell__topbar[_ngcontent-%COMP%]{gap:1rem;padding:.5rem 1rem}.shell__tag[_ngcontent-%COMP%]{display:none}.shell__nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:.4rem .7rem;font-size:.85rem}.shell__main[_ngcontent-%COMP%]{padding:1rem}}.viewport-warning[_ngcontent-%COMP%]{display:none}@media(max-width:767px){.viewport-warning[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:var(--sm-bg-content)}.viewport-warning__card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.85rem;max-width:22rem}.viewport-warning__icon[_ngcontent-%COMP%]{font-size:3rem;color:var(--p-primary-color);margin-bottom:.25rem}.viewport-warning__title[_ngcontent-%COMP%]{margin:0;font-size:1.35rem;font-weight:700;color:var(--p-text-color);line-height:1.25}.viewport-warning__subtitle[_ngcontent-%COMP%]{margin:0;font-size:1rem;font-weight:500;color:var(--p-primary-color);line-height:1.35}.viewport-warning__body[_ngcontent-%COMP%]{margin:0;color:var(--p-text-muted-color);line-height:1.5;font-size:.9rem}.shell[_ngcontent-%COMP%]{display:none}}"],changeDetection:0})};me(z,We).catch(n=>console.error(n));