@skill-map/cli 0.24.2 → 0.24.4

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{c as Nt}from"./chunk-DUE22NNK.js";import{a as ko,b as In,c as No,d as Ro,e as nh,f as ih,g as oh}from"./chunk-7KJXEUBZ.js";import{b as Hp,e as _o,f as Gp,j as We,k as Le,l as Yp,m as bo,n as wo,o as So,p as Zp,q as Qp,r as Jp,s as ku,t as ci,u as Sn,w as Io}from"./chunk-CUNKB7ZS.js";import{c as vo,d as Co,f as eh,g as th}from"./chunk-SG23AWC6.js";import{h as To,i as Eo,j as Po,m as Do,n as Mo}from"./chunk-ZYPPIYEF.js";import{$ as _t,$a as Kt,$b as Zt,Aa as _e,Ab as Bp,Ba as Ee,Bc as vn,Eb as rt,Fb as Ae,Gb as Z,Gc as Up,Hb as ge,Hc as Wp,Ib as oi,Ic as Cn,J as y,Jb as ri,Jc as go,K as ro,Ka as Y,Lc as $p,M as pe,N as _n,Na as S,O as d,Oa as I,Oc as qp,Pc as Xp,Qa as be,Qb as ai,R as Pp,Ra as ee,S as Pt,Sa as te,Sb as gt,T as G,Ta as E,Tb as D,U as j,Ua as f,V as Ze,Va as p,Vc as si,W as Dp,Wa as B,Wb as De,Wc as yo,X as Qe,Xa as U,Xb as F,Y as ao,Ya as $,Yb as Se,Z as je,Za as Dt,Zb as po,_a as Xt,_b as Du,aa as ni,ab as yn,bb as uo,bd as xn,cb as fo,cc as xe,cd as bn,da as W,db as ce,dc as qe,ea as ae,eb as Eu,fa as gn,fb as q,g as x,ga as ne,gd as wn,hb as m,hd as Kp,ia as we,ib as Yt,id as Mt,ja as so,jb as Pe,jd as Mu,ka as Mp,kb as Ap,la as Iu,mb as wt,mc as zp,md as xo,n as Tp,na as kp,nb as St,nd as kt,oa as c,ob as Pu,oc as Vp,pa as Np,pb as ut,pc as ho,qa as Rp,qb as it,qc as mo,ra as Op,sa as Tu,sb as ot,ta as co,tb as re,u as Ep,ub as Lp,vb as Ve,wa as J,wb as _,xa as lo,xb as v,ya as Ce,yb as Ue,za as Fp,zb as ii}from"./chunk-XPMAU22J.js";import{V as jp}from"./chunk-3R7E3HPC.js";import{a as se,b as ti}from"./chunk-Q7L6LLAK.js";var Qt=class{constructor(i,e,n,o,r){this.center=i,this.radiusX=e,this.radiusY=n,this.startAngle=o,this.endAngle=r}},A=class t{static castToPoint(i){return i||t.initialize()}static initialize(i=0,e=0){return{x:i,y:e}}static copy(i){return t.initialize(i.x,i.y)}static isEqual(i,e){return i.x===e.x&&i.y===e.y}static sum(i,e){return{x:i.x+e.x,y:i.y+e.y}}static sub(i,e){return{x:i.x-e.x,y:i.y-e.y}}static div(i,e){return{x:i.x/e,y:i.y/e}}static mult(i,e){return{x:i.x*e,y:i.y*e}}static interpolatePoints(i,e,n){let o=1-n;return t.initialize(i.x*o+e.x*n,i.y*o+e.y*n)}static roundTo(i,e){let n=Math.trunc(i.x/e),o=Math.trunc(i.y/e);return{x:n*e,y:o*e}}static hypotenuse(i,e){let n=e.x-i.x,o=e.y-i.y;return Math.abs(Math.sqrt(n*n+o*o))}static distance(i,e){let n=i.x-e.x,o=i.y-e.y;return Math.sqrt(n*n+o*o)}static getMinimum(i,e){return t.initialize(Math.min(i.x,e.x),Math.min(i.y,e.y))}static getMaximum(i,e){return t.initialize(Math.max(i.x,e.x),Math.max(i.y,e.y))}static matrixTransform(i,e){let n=t.initialize(i.x,i.y),o=e.getScreenCTM();if(o){let r=e.createSVGPoint();r.x=i.x,r.y=i.y,n=r.matrixTransform(o.inverse())}return n}static elementTransform(i,e){let n=t.initialize(i.x,i.y),o=e.getBoundingClientRect();return n=t.sub(n,t.initialize(o.left,o.top)),n}},K=class t{constructor(i=0,e=0){this.x=i,this.y=e}static fromPoint(i){return new t(i.x,i.y)}add(i){let e=A.sum(this,i);return t.fromPoint(e)}sub(i){let e=A.sub(this,i);return t.fromPoint(e)}subNumber(i){let e=A.sub(this,new t(i,i));return t.fromPoint(e)}div(i){let e=A.div(this,i);return t.fromPoint(e)}mult(i){let e=A.mult(this,i);return t.fromPoint(e)}matrixTransform(i){let e=A.matrixTransform(this,i);return t.fromPoint(e)}elementTransform(i){let e=A.elementTransform(this,i);return t.fromPoint(e)}},di=class{static initialize(i=A.initialize(),e=A.initialize()){return{point1:i,point2:e}}static copy(i){return{point1:i.point1,point2:i.point2}}static hypotenuse(i){return Math.sqrt(Math.pow(i.point1.x-i.point2.x,2)+Math.pow(i.point1.y-i.point2.y,2))}},Jt=class{constructor(i,e){this.point1=i,this.point2=e}},H=class t{static initialize(i=0,e=0,n=0,o=0){n<0&&(i=i+n,n=-n),o<0&&(e=e+o,o=-o);let r=A.initialize(i+n/2,e+o/2);return{x:i,y:e,width:n,height:o,gravityCenter:r}}static copy(i){return t.initialize(i.x,i.y,i.width,i.height)}static fromElement(i){let{x:e,y:n,width:o,height:r}=i.getBoundingClientRect();return t.initialize(e,n,o,r)}static isIncludePoint(i,e){return e.x>=t.left(i)&&e.x<=t.right(i)&&e.y>=t.top(i)&&e.y<=t.bottom(i)}static intersectionWithRect(i,e){return!(i.x+i.width<e.x||e.x+e.width<i.x||i.y+i.height<e.y||e.y+e.height<i.y)}static left(i){return i.x}static top(i){return i.y}static right(i){return i.x+i.width}static bottom(i){return i.y+i.height}static addPoint(i,e){let n=t.copy(i);return n.x+=e.x,n.y+=e.y,this.initialize(n.x,n.y,n.width,n.height)}static mult(i,e){let n=t.copy(i);return n.x*=e,n.y*=e,n.width*=e,n.height*=e,this.initialize(n.x,n.y,n.width,n.height)}static div(i,e){let n=t.copy(i);return n.x/=e,n.y/=e,n.width/=e,n.height/=e,this.initialize(n.x,n.y,n.width,n.height)}static addPointToSize(i,e){let n=t.copy(i);return n.width+=e.x,n.height+=e.y,this.initialize(n.x,n.y,n.width,n.height)}static union(i){return!i||i.length===0?null:i.reduce((e,n)=>{let o=Math.min(e.x,n.x),r=Math.min(e.y,n.y),a=Math.max(e.x+e.width,n.x+n.width),s=Math.max(e.y+e.height,n.y+n.height);return t.initialize(o,r,a-o,s-r)},i[0])}static elementTransform(i,e){let n=e.getBoundingClientRect(),o=A.sub(i,A.initialize(n.left,n.top));return t.initialize(o.x,o.y,i.width,i.height)}static updateIsNotFinite(i){return!Number.isFinite(i.width)||!Number.isFinite(i.height)||!Number.isFinite(i.x)||!Number.isFinite(i.y)?t.initialize(0,0,0,0):i}};function rh(t,i){let e=Math.max(t.width,i),n=Math.max(t.height,i),o=(e-t.width)/2,r=(n-t.height)/2;return H.initialize(t.x-o,t.y-r,e,n)}function Ru(t,i){t=H.updateIsNotFinite(t),i.setAttribute("x",t.x.toString()),i.setAttribute("y",t.y.toString()),i.setAttribute("width",t.width.toString()),i.setAttribute("height",t.height.toString())}function ah(t,i){t=H.updateIsNotFinite(t),i.setAttribute("viewBox",`${t.x} ${t.y} ${t.width} ${t.height}`)}var Me=class t{constructor(i=0,e=0,n=0,o=0,r=0,a=0,s=0,l=0){this.x=i,this.y=e,this.width=n,this.height=o,this.radius1=r,this.radius2=a,this.radius3=s,this.radius4=l,this.gravityCenter=A.initialize(),this.gravityCenter=this.calculateGravityCenter(this)}calculateGravityCenter(i){return new K(i.x+i.width/2,i.y+i.height/2)}static fromRect(i){return new t(i.x,i.y,i.width,i.height)}static fromRoundedRect(i){return new t(i.x,i.y,i.width,i.height,i.radius1,i.radius2,i.radius3,i.radius4)}static fromCenter(i,e,n){return new t(i.gravityCenter.x-e/2,i.gravityCenter.y-n/2,e,n,i.radius1,i.radius2,i.radius3,i.radius4)}static fromPoint(i){return new t(i.x,i.y)}addPoint(i){let e=t.fromRoundedRect(this);return e.x+=i.x,e.y+=i.y,e.gravityCenter=this.calculateGravityCenter(e),e}},ft=class t{static initialize(i=0,e=0){return{width:i,height:e}}static isEqual(i,e){return i.width===e.width&&i.height===e.height}static offsetFromElement(i){if(i instanceof SVGGraphicsElement){let e=i.getBBox();return t.initialize(e.width,e.height)}else if(i instanceof HTMLElement)return t.initialize(i.offsetWidth,i.offsetHeight)}};function fg(){return{position:A.initialize(),scaledPosition:A.initialize(),scale:1,rotate:0}}function pg(t){let i;if(t){t=t.replace("matrix(",""),t=t.replace(")","");let e=t.split(" ");i={position:{x:Number(e[4]),y:Number(e[5])},scaledPosition:A.initialize(),scale:Number(e[0]),rotate:0}}return i}var Rt=class{static toString(i){let e=A.sum(i.position,i.scaledPosition);return`matrix(${i.scale}, 0, 0, ${i.scale}, ${e.x}, ${e.y})`}static fromString(i){return pg(i)}static default(){return fg()}},Je=class t{static initialize(i=0,e=0){return A.initialize(i,e)}static fromPoints(i,e){return t.initialize(e.x-i.x,e.y-i.y)}static vectorLength(i){return Math.sqrt(t.magnitudeSquared(i))}static magnitudeSquared(i){return i.x*i.x+i.y*i.y}static dotProduct(i,e){return i.x*e.x+i.y*e.y}static crossProduct(i,e){return i.x*e.y-i.y*e.x}static subtract(i,e){return t.initialize(i.x-e.x,i.y-e.y)}static add(i,e){return t.initialize(i.x+e.x,i.y+e.y)}static scale(i,e){return t.initialize(i.x*e,i.y*e)}static angle(i,e){let n=Math.acos(Math.max(-1,Math.min(t.dotProduct(i,e)/(t.vectorLength(i)*t.vectorLength(e)),1)));return t.crossProduct(i,e)<0?-n:n}},Nu=class{static parseRoundedRect(i){let e=Math.PI*.5,n=i.x,o=i.y,r=i.x+i.width,a=i.y+i.height,s=i.x+i.radius1,l=i.y+i.radius1,u=i.x+i.width-i.radius2,h=i.y+i.radius2,g=i.x+i.width-i.radius3,C=i.y+i.height-i.radius3,w=i.x+i.radius4,P=i.y+i.height-i.radius4;return[new Qt({x:s,y:l},i.radius1,i.radius1,2*e,3*e),new Jt({x:s,y:o},{x:u,y:o}),new Qt({x:u,y:h},i.radius2,i.radius2,3*e,4*e),new Jt({x:r,y:h},{x:r,y:C}),new Qt({x:g,y:C},i.radius3,i.radius3,0,e),new Jt({x:g,y:a},{x:w,y:a}),new Qt({x:w,y:P},i.radius4,i.radius4,e,2*e),new Jt({x:n,y:P},{x:n,y:l})]}},Tn=class{static getRoundedRectIntersections(i,e,n){let o=Nu.parseRoundedRect(n);for(let r of o)if(r instanceof Qt){let a=this.intersectArcWithLine(r,i,e);if(a.length>0)return a}else if(r instanceof Jt){let a=this.intersectLineSegments(i,e,r.point1,r.point2);if(a)return[a]}return[]}static getRoundedRectIntersectionsWithSVGPath(i,e){let n=i.getTotalLength(),o=[];for(let r=0;r<=n;r+=1){let a=i.getPointAtLength(r);o.push({x:a.x,y:a.y})}for(let r=1;r<o.length;r++){let a=this.getRoundedRectIntersections(o[r-1],o[r],e);if(a.length>0)return a}return[]}static intersectArcWithLine(i,e,n){return this.filterPointsWithinArc(this.findEllipseLineIntersections(i.center,i.radiusX,i.radiusY,e,n),i)}static intersectLineSegments(i,e,n,o){let r=e.x-i.x,a=e.y-i.y,s=o.x-n.x,l=o.y-n.y,u=(-a*(i.x-n.x)+r*(i.y-n.y))/(-s*a+r*l),h=(s*(i.y-n.y)-l*(i.x-n.x))/(-s*a+r*l);return u>=0&&u<=1&&h>=0&&h<=1?{x:i.x+h*r,y:i.y+h*a}:null}static filterPointsWithinArc(i,e){let{center:n,startAngle:o,endAngle:r}=e;if(i.length===0)return i;r<o&&([o,r]=[r,o]),(o<0||r<0)&&(o+=2*Math.PI,r+=2*Math.PI);let a=[];for(let s of i){let l=this.normalizeAngle(Je.angle(Je.initialize(1,0),Je.initialize(s.x-n.x,s.y-n.y)));l<o&&(l+=2*Math.PI),o<=l&&l<=r&&a.push(s)}return a}static normalizeAngle(i){let e=i%(2*Math.PI);return e<0?e+2*Math.PI:e}static findEllipseLineIntersections(i,e,n,o,r){let a=Je.initialize(o.x,o.y),s=Je.fromPoints(o,r),l=Je.initialize(i.x,i.y),u=Je.subtract(a,l),h=Je.initialize(s.x/(e*e),s.y/(n*n)),g=Je.initialize(u.x/(e*e),u.y/(n*n)),C=Je.dotProduct(s,h),w=Je.dotProduct(s,g),P=Je.dotProduct(u,g)-1,T=w*w-C*P;return T<0?[]:this.calculateIntersectionPoints(T,C,w,o,r)}static calculateIntersectionPoints(i,e,n,o,r){let a=[];if(i>0){let s=Math.sqrt(i),l=(-n-s)/e,u=(-n+s)/e;l>=0&&l<=1&&a.push(A.interpolatePoints(o,r,l)),u>=0&&u<=1&&a.push(A.interpolatePoints(o,r,u))}else{let s=-n/e;s>=0&&s<=1&&a.push(A.interpolatePoints(o,r,s))}return a}};var Ou=class{handle(i,e){let n=!0;if(this.validator&&(n=e.get(this.validator).handle(i)),!!n)return e.get(this.execution).handle(i)}execute(i,e){return e.get(this.execution).handle(i)}setValidator(i){this.validator=i}setExecution(i){this.execution=i}},R=class t{constructor(){this._injector=d(Qe)}static registerPipeline(i,e,n){if(!i||!i.fToken)throw new Error("Type must have a fToken static property.");let o=this.pipelines.get(i.fToken)||new Ou;n?o.setValidator(e):o.setExecution(e),this.pipelines.set(i.fToken,o)}send(i){let e=t.pipelines.get(i.constructor.fToken);if(e)return e.handle(i,this._injector);throw new Error("Handler not registered for request type.")}execute(i){return t.pipelines.get(i.constructor.fToken).execute(i,this._injector)}};R.pipelines=new Map;R.\u0275fac=function(i){return new(i||R)};R.\u0275prov=y({token:R,factory:R.\u0275fac});function b(t){return function(i){R.registerPipeline(t,i,!1)}}var hg=(()=>{class t{setItem(e,n){localStorage.setItem(e,n)}getItem(e){return localStorage.getItem(e)}removeItem(e){localStorage.removeItem(e)}clear(){localStorage.clear()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mg=(()=>{class t{storage={};setItem(e,n){this.storage[e]=n}getItem(e){return this.storage[e]||null}removeItem(e){delete this.storage[e]}clear(){this.storage={}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_g=new pe("F_LOCAL_STORAGE",{providedIn:"root",factory:()=>mo(d(so))?d(hg):d(mg)}),gg=(()=>{class t{getComputedStyle(e){return window.getComputedStyle(e)}get innerWidth(){return window.innerWidth}get innerHeight(){return window.innerHeight}get pageXOffset(){return window.pageXOffset}get pageYOffset(){return window.pageYOffset}isMediaQuery(e){return window.matchMedia(e).matches}requestAnimationFrame(e){return window.requestAnimationFrame(e)}get location(){return window.location}open(e,n,o){window.open(e,n,o)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yg=(()=>{class t{getComputedStyle(e){return new Proxy({getPropertyValue:n=>"0"},{get:(n,o)=>o==="getPropertyValue"?n.getPropertyValue:"0"})}get innerWidth(){return 0}get innerHeight(){return 0}get pageXOffset(){return 0}get pageYOffset(){return 0}isMediaQuery(e){return!1}requestAnimationFrame(e){return setTimeout(e,0)}get location(){return{href:"",pathname:"",search:"",hash:"",origin:""}}open(e,n,o){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vg=new pe("F_WINDOW",{providedIn:"root",factory:()=>mo(d(so))?d(gg):d(yg)}),Ot=(function(t){return t.MAC_OS="macos",t.IOS="ios",t.WINDOWS="windows",t.ANDROID="android",t.LINUX="linux",t})(Ot||{}),Fu;try{Fu=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Fu=!1}var Au=(()=>{class t{_platformId;isBrowser=!1;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Fu)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(e){this._platformId=e,this.isBrowser=this._platformId?mo(this._platformId):typeof document=="object"&&!!document}getOS(){let e=navigator.userAgent.toLowerCase(),n=/(macintosh|macintel|macppc|mac68k|macos)/i,o=/(win32|win64|windows|wince)/i,r;return n.test(e)?r=Ot.MAC_OS:this.IOS?r=Ot.IOS:o.test(e)?r=Ot.WINDOWS:this.ANDROID?r=Ot.ANDROID:!r&&/linux/.test(e)&&(r=Ot.LINUX),r}static \u0275fac=function(n){return new(n||t)(_n(so))};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ke=(()=>{class t{injectedDocument;windowService;localStorageService;platformService;constructor(e,n,o,r){this.injectedDocument=e,this.windowService=n,this.localStorageService=o,this.platformService=r}isBrowser(){return this.platformService.isBrowser}get window(){return this.windowService}get localStorage(){return this.localStorageService}get document(){return this.injectedDocument}toPixels(e,n,o,r){if(e.endsWith("px"))return parseFloat(e);if(e.endsWith("%")){let a=parseFloat(e)/100;return Math.max(n,o)*a}else{if(e.endsWith("em"))return parseFloat(e)*parseFloat(r);if(e.endsWith("rem"))return parseFloat(e)*parseFloat(getComputedStyle(this.document.documentElement).fontSize);if(e.endsWith("vh")){let a=this.window.innerHeight/100;return parseFloat(e)*a}else if(e.endsWith("vw")){let a=this.window.innerWidth/100;return parseFloat(e)*a}}return parseFloat(e)||0}static \u0275fac=function(n){return new(n||t)(_n(ao),_n(vg),_n(_g),_n(Au))};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Lu(t,i){return t.reduce((e,n)=>[...e,...i(n)],[])}function Bu(t){let i=t.cloneNode(!0),e=i.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();i.removeAttribute("id");for(let o=0;o<e.length;o++)e[o].removeAttribute("id");return n==="canvas"?dh(t,i):(n==="input"||n==="select"||n==="textarea")&&ch(t,i),sh("canvas",t,i,dh),sh("input, textarea, select",t,i,ch),i}function sh(t,i,e,n){let o=i.querySelectorAll(t);if(o.length){let r=e.querySelectorAll(t);for(let a=0;a<o.length;a++)n(o[a],r[a])}}var Cg=0;function ch(t,i){i.type!=="file"&&(i.value=t.value),i.type==="radio"&&i.name&&(i.name=`mat-clone-${i.name}-${Cg++}`)}function dh(t,i){let e=i.getContext("2d");if(e)try{e.drawImage(t,0,0)}catch{}}function zu(t,i,e){for(let n in i)if(i.hasOwnProperty(n)){let o=i[n];o?t.setProperty(n,o,e?.has(n)?"important":""):t.removeProperty(n)}return t}function lh(t){zu(t.style,{"touch-action":"none","-webkit-user-drag":"none","-webkit-tap-highlight-color":"transparent","user-select":"none","-ms-user-select":"none","-webkit-user-select":"none","-moz-user-select":"none"})}function uh(t,i,e){return xg(t,e).dataset[i]}function xg(t,i){return t.closest(i)}function Vu(t,i){let e=t.rootNodes;if(e.length===1&&e[0].nodeType===i.ELEMENT_NODE)return e[0];let n=i.createElement("div");return e.forEach(o=>n.appendChild(o)),n}function li(t,i){let e=bg(t,i);return!!e&&!e.classList.contains(i+"-disabled")}function bg(t,i){return t.closest(i)}function It(t){return t.match(/^[a-zA-Z_]/)||(t="_"+t),t.replace(/[^a-zA-Z0-9_\-:.]/g,"_")}function En(t,i,e){let n=e[t.toUpperCase()]||wg(e,t.toLowerCase());if(n===void 0)throw new Error(`Unknown ${i}: ${t}. Accepted values: ${Object.keys(e).join(", ")}`);return n}function wg(t,i){return Object.keys(t).find(e=>t[e]===i)}var Sg=["markerElement"],Ig=["fConnectionGradientRenderer",""],Tg=["f-connection-path",""],Eg=["fConnectionSelection",""],Pg=["f-connection-drag-handle-start",""],Dg=["f-connection-drag-handle-end",""],Mg=["defs"],kg=["*"],Ng=["fGroupsContainer"],Rg=["fNodesContainer"],Og=["fConnectionsContainer"],Fg=[[["","fGroup",""],["","fGroups",""]],[["f-snap-connection"]],[["f-connection"],["","fConnections",""]],[["f-connection-for-create"]],[["","fNode",""],["","fNodes",""]]],Ag=["[fGroup], [fGroups]","f-snap-connection","f-connection, [fConnections]","f-connection-for-create","[fNode], [fNodes]"],Lg=[[["svg","fMarker",""]],[["f-connection-marker-circle"],["f-connection-marker-arrow"]],[["f-connection-gradient"]],[["f-connection-waypoints"]],[["","fConnectionContent",""]]],Bg=["svg[fMarker]","f-connection-marker-circle, f-connection-marker-arrow","f-connection-gradient","f-connection-waypoints","[fConnectionContent]"];function zg(t,i){t&1&&(Ze(),B(0,"linearGradient",3)),t&2&&E("fConnectionGradientRendererFor",i)}function Vg(t,i){t&1&&(Ze(),B(0,"circle",6))}function Hg(t,i){t&1&&Pe(0,4)}var Gg="[_nghost-%COMP%]{display:block;position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none;-webkit-user-select:none;user-select:none}",jg=[[["","fDefinitions",""]],[["f-background"]],[["f-line-alignment"]],[["f-canvas"]],[["f-selection-area"]],"*"],Ug=["[fDefinitions]","f-background","f-line-alignment","f-canvas","f-selection-area","*"],Wu=new pe("F_BACKGROUND_PATTERN"),rc=class{fPattern;static fToken=Symbol("AddPatternToBackgroundRequest");constructor(i){this.fPattern=i}},Nn=class{_items=[];_byId=new Map;get(i){return this._byId.get(i)}require(i){let e=this._byId.get(i);if(!e)throw new Error(`${this.kind} not found: ${i}`);return e}has(i){return this._byId.has(i)}getAll(){return this._items}size(){return this._items.length}add(i){let e=i.fId();if(this._byId.has(e))throw new Error(`${this.kind} already exists: ${e}`);this._items.push(i),this._byId.set(e,i)}addMany(i){for(let e of i)this.add(e)}remove(i){let e=i.fId(),n=this._byId.get(e);if(!n)return!1;this._byId.delete(e);let o=this._items.indexOf(n);return o>=0&&this._items.splice(o,1),!0}removeById(i){let e=this._byId.get(i);if(!e)return;this._byId.delete(i);let n=this._items.indexOf(e);return n>=0&&this._items.splice(n,1),e}clear(){this._items.length=0,this._byId.clear()}};function en(t){return{name:t}}var $u=class{_instances=new Map;get(i){return this._instances.get(i.name)}require(i){let e=this.get(i);if(!e)throw new Error(`Instance not found: ${i.name}`);return e}has(i){return this._instances.has(i.name)}add(i,e){if(this._instances.has(i.name))throw new Error(`${i.name} already exists`);this._instances.set(i.name,e)}remove(i){if(!this._instances.has(i.name))throw new Error(`${i.name} does not exist`);return this._instances.delete(i.name),!0}clear(){this._instances.clear()}},pi=class extends Nn{kind;constructor(i){super(),this.kind=i}},qu=class extends Nn{kind="Connection Marker"},Xu=class extends Nn{kind="Connection";_instancesForCreate;_instancesForSnap;getForSnap(){return this._instancesForSnap}getForCreate(){return this._instancesForCreate}addForCreate(i){this._instancesForCreate=i}addForSnap(i){this._instancesForSnap=i}removeInstanceForCreate(){this._instancesForCreate=void 0}removeInstanceForSnap(){this._instancesForSnap=void 0}},Ku=class extends Nn{kind="Node"},Dn=class{notifyOnSubscribe;static fToken=Symbol("ListenConnectionsChangesRequest");constructor(i=!0){this.notifyOnSubscribe=i}};function Wg(){return t=>{let i=null,e=null,n=()=>{i!==null&&cancelAnimationFrame(i),e!==null&&cancelAnimationFrame(e),i=e=null};return{callback:()=>{n(),i=requestAnimationFrame(()=>{i=null,e=requestAnimationFrame(()=>{e=null,t()})})},cleanup:n}}}function $g(){return t=>{let i=null;return{callback:()=>{i!==null&&cancelAnimationFrame(i),i=requestAnimationFrame(()=>{i=null,t()})},cleanup:()=>{i!==null&&cancelAnimationFrame(i),i=null}}}}function ac(t){return i=>{let e=null;return{callback:()=>{e!==null&&clearTimeout(e),e=setTimeout(()=>{e=null,i()},t)},cleanup:()=>{e!==null&&clearTimeout(e),e=null}}}}var ct=class{_listeners=new Set;notify(){this._listeners.forEach(i=>i())}listen(i){return this._listeners.add(i),()=>this.stop(i)}stop(i){this._listeners.delete(i)}},Yu=class extends ct{_htmlElement;_observer=new ResizeObserver(()=>this.notify());_isObserving=!1;constructor(i){super(),this._htmlElement=i}listen(i){return this._isObserving||(this._observer.observe(this._htmlElement),this._isObserving=!0),super.listen(i)}stop(i){super.stop(i),this._listeners.size===0&&this._disconnect()}_disconnect(){this._observer.unobserve(this._htmlElement),this._observer.disconnect(),this._isObserving=!1}},vt=class t{_channels=[];_operators=[];constructor(...i){this._channels=[...i]}pipe(...i){let e=new t(...this._channels);return e._operators=[...this._operators,...i],e}listen(i,e){let n=e,o=[],r=[],a=[];for(let g of[...this._operators].reverse()){let C=g(n);n=C.callback,C.cleanup&&o.push(C.cleanup),C.onSubscribe&&r.push(C.onSubscribe),C.setTeardown&&a.push(C.setTeardown)}let s=this._channels.map(g=>g.listen(()=>n())),l=null,u=!1,h=()=>{u||(u=!0,l?.(),l=null,s.forEach(g=>g()),o.forEach(g=>g()))};a.slice().reverse().forEach(g=>g(h)),r.slice().reverse().forEach(g=>g(n)),l=i.onDestroy(h)}};function Fl(){return t=>{let i=!0;return{callback:t,onSubscribe:e=>{queueMicrotask(()=>{i&&e()})},cleanup:()=>{i=!1}}}}function fh(){return t=>{let i=!1,e=null;return{setTeardown:n=>e=n,callback:()=>{if(!i){i=!0;try{t()}finally{e?.()}}}}}}var qg=(()=>{let t=class Ao{_store=d(M);handle({notifyOnSubscribe:e}){return e?new vt(this._store.connectionsChanges$).pipe(Fl(),ac(1)):new vt(this._store.connectionsChanges$).pipe(ac(1))}static \u0275fac=function(n){return new(n||Ao)};static \u0275prov=y({token:Ao,factory:Ao.\u0275fac})};return t=x([b(Dn)],t),t})(),Zu=class{static fToken=Symbol("ListenNodesChangesRequest")},Xg=(()=>{let t=class Lo{_store=d(M);handle(e){return new vt(this._store.nodesChanges$)}static \u0275fac=function(n){return new(n||Lo)};static \u0275prov=y({token:Lo,factory:Lo.\u0275fac})};return t=x([b(Zu)],t),t})(),sc=class{static fToken=Symbol("ListenTransformChangesRequest")},Kg=(()=>{let t=class Bo{_store=d(M);handle(e){return new vt(this._store.transformChanges$,this._store.connectionsChanges$,this._store.nodesChanges$)}static \u0275fac=function(n){return new(n||Bo)};static \u0275prov=y({token:Bo,factory:Bo.\u0275fac})};return t=x([b(sc)],t),t})(),tn=class{static fToken=Symbol("EmitConnectionsChangesRequest")},Yg=(()=>{let t=class zo{_store=d(M);handle(e){this._store.emitConnectionChanges()}static \u0275fac=function(n){return new(n||zo)};static \u0275prov=y({token:zo,factory:zo.\u0275fac})};return t=x([b(tn)],t),t})(),Lt=class{static fToken=Symbol("NotifyTransformChangedRequest")},M=(()=>{class t{transformChanges$=new ct;viewportAnimationChanges$=new ct;connectionsChanges$=new ct;_connectionsRevision=0;connectionsRenderedChanges$=new ct;_connectionsRenderedRevision=0;_connectionsRenderedNodesRevision=0;_viewportAnimationCount=0;nodesChanges$=new ct;_nodesRevision=0;progressiveRenderChanges$=new ct;_pendingProgressiveRenderCount=0;get connectionsRevision(){return this._connectionsRevision}get connectionsRenderedRevision(){return this._connectionsRenderedRevision}get connectionsRenderedNodesRevision(){return this._connectionsRenderedNodesRevision}get nodesRevision(){return this._nodesRevision}get hasPendingProgressiveRender(){return this._pendingProgressiveRenderCount>0}get isViewportAnimating(){return this._viewportAnimationCount>0}get flowHost(){return this.fFlow?.hostElement}fFlow;fCanvas;get transform(){return this.fCanvas?.transform}nodes=new Ku;connections=new Xu;connectionMarkers=new qu;outputs=new pi("Output");inputs=new pi("Input");outlets=new pi("Outlet");instances=new $u;fDraggable;emitNodeChanges(){this._nodesRevision++,this.nodesChanges$.notify()}emitConnectionChanges(){this._connectionsRevision++,this.connectionsChanges$.notify()}completeConnectionsRender(e,n){e<this._connectionsRenderedRevision||e===this._connectionsRenderedRevision&&n<=this._connectionsRenderedNodesRevision||(this._connectionsRenderedRevision=Math.min(e,this._connectionsRevision),this._connectionsRenderedNodesRevision=n,this.connectionsRenderedChanges$.notify())}beginProgressiveRender(){this._pendingProgressiveRenderCount++,this.progressiveRenderChanges$.notify()}endProgressiveRender(){this._pendingProgressiveRenderCount&&(this._pendingProgressiveRenderCount--,this.progressiveRenderChanges$.notify())}transformChanged(){this.transformChanges$.notify()}beginViewportAnimation(){this._viewportAnimationCount++,this.viewportAnimationChanges$.notify()}endViewportAnimation(){this._viewportAnimationCount&&(this._viewportAnimationCount--,this.viewportAnimationChanges$.notify())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac})}return t})(),ye={MAGNETIC_LINES:en("magnetic-lines"),MAGNETIC_RECTS:en("magnetic-rects"),ZOOM:en("zoom-controls"),BACKGROUND:en("background"),SELECTION_AREA:en("selection-area"),MINIMAP:en("minimap"),AUTO_PAN:en("auto-pan")},Zg=(()=>{let t=class Vo{_store=d(M);handle(e){this._store.transformChanged()}static \u0275fac=function(n){return new(n||Vo)};static \u0275prov=y({token:Vo,factory:Vo.\u0275fac})};return t=x([b(Lt)],t),t})(),Bt=class{key;instance;static fToken=Symbol("RegisterPluginInstanceRequest");constructor(i,e){this.key=i,this.instance=e}},Qg=(()=>{let t=class Ho{_store=d(M);handle({key:e,instance:n}){this._store.instances.add(e,n)}static \u0275fac=function(n){return new(n||Ho)};static \u0275prov=y({token:Ho,factory:Ho.\u0275fac})};return t=x([b(Bt)],t),t})(),zt=class{key;static fToken=Symbol("RemovePluginInstanceRequest");constructor(i){this.key=i}},Jg=(()=>{let t=class Go{_store=d(M);handle({key:e}){this._store.instances.remove(e)}static \u0275fac=function(n){return new(n||Go)};static \u0275prov=y({token:Go,factory:Go.\u0275fac})};return t=x([b(zt)],t),t})(),e0=[M,Xg,qg,Kg,Yg,Zg,Qg,Jg],t0=0,n0=(()=>{let t=class jo{_store=d(M);_browser=d(ke);get _backgroundElement(){return this._store.instances.get(ye.BACKGROUND)?.hostElement}handle(e){let n=this._getPatterns(e.fPattern?.hostElement);if(!n?.length)return;let o=kn("defs",this._browser);if(e.fPattern?.hostElement.remove(),n.forEach(r=>{o.append(r)}),n.length){this._backgroundElement?.firstChild?.appendChild(o),n[n.length-1].id="f-background-pattern-"+t0++;let r=n[n.length-1].id,a=kn("rect",this._browser);a.setAttribute("fill","url(#"+r+")"),a.setAttribute("width","100%"),a.setAttribute("height","100%"),this._backgroundElement?.firstChild?.appendChild(a);let s=this._store.fCanvas?.transform||Rt.default();e.fPattern?.setTransform(s)}}_getPatterns(e){return Array.from(e?.getElementsByTagName("pattern")||[])}static \u0275fac=function(n){return new(n||jo)};static \u0275prov=y({token:jo,factory:jo.\u0275fac})};return t=x([b(rc)],t),t})(),hi=class{fTransform;static fToken=Symbol("SetBackgroundTransformRequest");constructor(i){this.fTransform=i}},i0=(()=>{let t=class Uo{_store=d(M);handle(e){this._store.instances.get(ye.BACKGROUND)?.setTransform(e.fTransform)}static \u0275fac=function(n){return new(n||Uo)};static \u0275prov=y({token:Uo,factory:Uo.\u0275fac})};return t=x([b(hi)],t),t})(),o0=[n0,i0],cc=class{instance;static fToken=Symbol("AddCanvasToStoreRequest");constructor(i){this.instance=i}},r0=(()=>{let t=class Wo{_store=d(M);handle({instance:e}){this._store.fCanvas=e}static \u0275fac=function(n){return new(n||Wo)};static \u0275prov=y({token:Wo,factory:Wo.\u0275fac})};return t=x([b(cc)],t),t})(),dc=class{id;animated;static fToken=Symbol("CenterGroupOrNodeRequest");constructor(i,e){this.id=i,this.animated=e}},a0=(()=>{let t=class $o{_store=d(M);_mediator=d(R);get _transform(){return this._store.transform}handle({id:e,animated:n}){let o=this._store.nodes.get(e);o&&(this._toCenter(this._getNodeRect(o),this._getFlowRect(),o._position),this._mediator.execute(new Rn(n,nn.VIEWPORT_ONLY)))}_toCenter(e,n,o){this._transform.scaledPosition=A.initialize(),this._transform.position=A.initialize((n.width-e.width)/2-o.x*this._transform.scale,(n.height-e.height)/2-o.y*this._transform.scale)}_getNodeRect(e){return H.fromElement(e.hostElement)}_getFlowRect(){return H.fromElement(this._store.flowHost)}static \u0275fac=function(n){return new(n||$o)};static \u0275prov=y({token:$o,factory:$o.\u0275fac})};return t=x([b(dc)],t),t})(),lc=class{toCenter;animated;static fToken=Symbol("FitToFlowRequest");constructor(i,e){this.toCenter=i,this.animated=e}},s0=(()=>{let t=class qo{_store=d(M);get _transform(){return this._store.transform}_mediator=d(R);handle({toCenter:e,animated:n}){let o=this._mediator.execute(new Vn)||H.initialize();o.width===0||o.height===0||(this.fitToParent(o,H.fromElement(this._store.flowHost),this._store.nodes.getAll().map(r=>r._position),e),this._mediator.execute(new Rn(n,nn.VIEWPORT_ONLY)))}fitToParent(e,n,o,r){this._transform.scaledPosition=A.initialize(),this._transform.position=this._getZeroPositionWithoutScale(o);let a=e.width/this._transform.scale+r.x,s=e.height/this._transform.scale+r.y;(a>n.width||s>n.height||a<n.width&&s<n.height)&&(this._transform.scale=Math.min(n.width/a,n.height/s));let l=(n.width-a*this._transform.scale)/2-this._transform.position.x*this._transform.scale,u=(n.height-s*this._transform.scale)/2-this._transform.position.y*this._transform.scale;this._transform.position=A.initialize(l+r.x/2*this._transform.scale,u+r.y/2*this._transform.scale)}_getZeroPositionWithoutScale(e){let n=e.length?Math.min(...e.map(r=>r.x)):0,o=e.length?Math.min(...e.map(r=>r.y)):0;return A.initialize(n,o)}static \u0275fac=function(n){return new(n||qo)};static \u0275prov=y({token:qo,factory:qo.\u0275fac})};return t=x([b(lc)],t),t})(),uc=class{transform;position;static fToken=Symbol("InputCanvasPositionRequest");constructor(i,e){this.transform=i,this.position=e}},c0=(()=>{let t=class Xo{_store=d(M);handle({transform:e,position:n}){n&&(A.isEqual(this._calculateTransformPosition(e),n)||(e.position=n,e.scaledPosition=A.initialize(),this._store.fCanvas?.redraw()))}_calculateTransformPosition(e){return A.sum(e.position,e.scaledPosition)}static \u0275fac=function(n){return new(n||Xo)};static \u0275prov=y({token:Xo,factory:Xo.\u0275fac})};return t=x([b(uc)],t),t})(),fc=class{transform;scale;static fToken=Symbol("InputCanvasScaleRequest");constructor(i,e){this.transform=i,this.scale=e}},d0=(()=>{let t=class Ko{_store=d(M);handle(e){!e.scale&&e.scale!==0||(e.transform.scale=e.scale,this._store.fCanvas?.redraw())}static \u0275fac=function(n){return new(n||Ko)};static \u0275prov=y({token:Ko,factory:Ko.\u0275fac})};return t=x([b(fc)],t),t})(),nn=(function(t){return t.VIEWPORT_ONLY="VIEWPORT_ONLY",t.WITH_CONNECTION_CHANGES="WITH_CONNECTION_CHANGES",t})(nn||{}),Rn=class{animated;context;static fToken=Symbol("RedrawCanvasWithAnimationRequest");constructor(i,e=nn.WITH_CONNECTION_CHANGES){this.animated=i,this.context=e}};function zh(t,i){let e=n=>{n.propertyName==="transform"&&(t.removeEventListener("transitionend",e),i(n))};t.addEventListener("transitionend",e)}var l0=(()=>{let t=class Yo{_store=d(M);get _canvas(){return this._store.fCanvas}handle(e){e.animated?this._redrawWithAnimation(e.context):this._redraw(e.context),this._canvas?.emitCanvasChangeEvent()}_redrawWithAnimation(e){this._store.beginViewportAnimation(),this._canvas?.redrawWithAnimation(),zh(this._canvas.hostElement,()=>{this._store.endViewportAnimation(),e===nn.WITH_CONNECTION_CHANGES&&this._store.emitConnectionChanges()})}_redraw(e){this._canvas?.redraw(),e===nn.WITH_CONNECTION_CHANGES&&this._store.emitConnectionChanges()}static \u0275fac=function(n){return new(n||Yo)};static \u0275prov=y({token:Yo,factory:Yo.\u0275fac})};return t=x([b(Rn)],t),t})(),pc=class{static fToken=Symbol("RemoveCanvasFromStoreRequest")},u0=(()=>{let t=class Zo{_store=d(M);handle(e){this._store.fCanvas=void 0}static \u0275fac=function(n){return new(n||Zo)};static \u0275prov=y({token:Zo,factory:Zo.\u0275fac})};return t=x([b(pc)],t),t})(),hc=class{static fToken=Symbol("ResetScaleRequest")},f0=(()=>{let t=class Qo{_store=d(M);get _transform(){return this._store.transform}handle(e){this._transform.scale=1,this._transform.scaledPosition=A.initialize()}static \u0275fac=function(n){return new(n||Qo)};static \u0275prov=y({token:Qo,factory:Qo.\u0275fac})};return t=x([b(hc)],t),t})(),mc=class{animated;static fToken=Symbol("ResetScaleAndCenterRequest");constructor(i){this.animated=i}},p0=(()=>{let t=class Jo{_mediator=d(R);_store=d(M);get _transform(){return this._store.transform}handle({animated:e}){let n=this._mediator.execute(new Vn)||H.initialize();n.width===0||n.height===0||(this._oneToOneCentering(n,H.fromElement(this._store.flowHost),this._store.nodes.getAll().map(o=>o._position)),this._mediator.execute(new Rn(e,nn.VIEWPORT_ONLY)))}_oneToOneCentering(e,n,o){this._transform.scaledPosition=A.initialize(),this._transform.position=this._getZeroPositionWithoutScale(o);let r=(n.width-e.width/this._transform.scale)/2-this._transform.position.x,a=(n.height-e.height/this._transform.scale)/2-this._transform.position.y;this._transform.scale=1,this._transform.position=A.initialize(r,a)}_getZeroPositionWithoutScale(e){let n=e.length?Math.min(...e.map(r=>r.x)):0,o=e.length?Math.min(...e.map(r=>r.y)):0;return A.initialize(n,o)}static \u0275fac=function(n){return new(n||Jo)};static \u0275prov=y({token:Jo,factory:Jo.\u0275fac})};return t=x([b(mc)],t),t})(),_c=class{scale;toPosition;static fToken=Symbol("UpdateScaleRequest");constructor(i,e){this.scale=i,this.toPosition=e}},h0=(()=>{let t=class er{_store=d(M);get _transform(){return this._store.transform}handle({scale:e,toPosition:n}){if(e===this._transform.scale)return;let o=A.sum(this._transform.scaledPosition,this._transform.position),r=n.x-(n.x-o.x)*e/this._transform.scale,a=n.y-(n.y-o.y)*e/this._transform.scale;this._transform.scale=e,this._transform.scaledPosition=A.sub(A.initialize(r,a),this._transform.position)}static \u0275fac=function(n){return new(n||er)};static \u0275prov=y({token:er,factory:er.\u0275fac})};return t=x([b(_c)],t),t})(),m0=[r0,a0,s0,c0,d0,l0,u0,f0,p0,h0],Qu=class{connection;static fToken=Symbol("AddConnectionForCreateToStoreRequest");constructor(i){this.connection=i}},_0=(()=>{let t=class tr{_store=d(M);handle({connection:e}){this._store.connections.addForCreate(e)}static \u0275fac=function(n){return new(n||tr)};static \u0275prov=y({token:tr,factory:tr.\u0275fac})};return t=x([b(Qu)],t),t})(),gc=class{instance;static fToken=Symbol("AddConnectionMarkerToStoreRequest");constructor(i){this.instance=i}},g0=(()=>{let t=class nr{_store=d(M);handle({instance:e}){this._store.connectionMarkers.add(e),this._store.emitNodeChanges()}static \u0275fac=function(n){return new(n||nr)};static \u0275prov=y({token:nr,factory:nr.\u0275fac})};return t=x([b(gc)],t),t})(),yc=class{connection;static fToken=Symbol("AddConnectionToStoreRequest");constructor(i){this.connection=i}},y0=(()=>{let t=class ir{_store=d(M);handle({connection:e}){this._store.connections.add(e),this._store.emitConnectionChanges()}static \u0275fac=function(n){return new(n||ir)};static \u0275prov=y({token:ir,factory:ir.\u0275fac})};return t=x([b(yc)],t),t})(),Ju=class{connection;static fToken=Symbol("AddSnapConnectionToStoreRequest");constructor(i){this.connection=i}},v0=(()=>{let t=class or{_store=d(M);handle({connection:e}){this._store.connections.addForSnap(e)}static \u0275fac=function(n){return new(n||or)};static \u0275prov=y({token:or,factory:or.\u0275fac})};return t=x([b(Ju)],t),t})(),On=class{connection;static fToken=Symbol("CreateConnectionMarkersRequest");constructor(i){this.connection=i}},ph=new pe("F_CONNECTION_CONTENT");var vc=class t{points;cumulativeLengths;segmentTangents;totalLength;constructor(i){let e=t._removeConsecutiveDuplicates(i);if(e.length<2){this.points=[{x:0,y:0},{x:1,y:0}],this.cumulativeLengths=[0,1],this.segmentTangents=[{x:1,y:0}],this.totalLength=1;return}this.points=e;let n=this.points.length,o=n-1,r=new Array(n).fill(0),a=new Array(o),s=0;for(let l=0;l<o;l++){let u=this.points[l+1].x-this.points[l].x,h=this.points[l+1].y-this.points[l].y,g=Math.hypot(u,h),C=g?u/g:1,w=g?h/g:0;a[l]={x:C,y:w},s+=g,r[l+1]=s}this.cumulativeLengths=r,this.segmentTangents=a,this.totalLength=s||1}static from(i){return new t(i.map(e=>({x:e.x,y:e.y})))}static _removeConsecutiveDuplicates(i){let e=[];for(let n of i){let o=e[e.length-1];(!o||o.x!==n.x||o.y!==n.y)&&e.push({x:n.x,y:n.y})}return e}},ef=class t{_polyline;constructor(i=[]){this._polyline=new vc(i)}updatePoints(i){return this._polyline=new vc(i),this._polyline.totalLength}calculateTotalLength(i){return this.updatePoints(i)}get totalLength(){return this._polyline.totalLength}getPointAtProgress(i){let{points:e,cumulativeLengths:n,segmentTangents:o,totalLength:r}=this._polyline,s=t._clamp(i,0,1)*r,l=.5;if(s<=l)return{point:e[0],tangent:o[0]??{x:1,y:0},atEdge:!0};if(r-s<=l){let O=e.length-1;return{point:e[O],tangent:o[O-1]??{x:1,y:0},atEdge:!0}}let u=t._findRightIndex(n,s),h=Math.max(1,u),g=n[h-1],C=n[h],w=t._safeRatio(s-g,C-g),P=e[h-1],T=e[h],k={x:t._lerp(P.x,T.x,w),y:t._lerp(P.y,T.y,w)},N=o[h-1]??{x:1,y:0};return{point:k,tangent:N,atEdge:!1}}getPointAtLength(i){return this.getPointAtProgress(i)}getPointAtDistance(i){let e=this._polyline.totalLength?i/this._polyline.totalLength:0;return this.getPointAtProgress(e)}static _findRightIndex(i,e){let n=0,o=i.length-1;for(;n<o;){let r=n+o>>1;i[r]<e?n=r+1:o=r}return n}static _lerp(i,e,n){return i+(e-i)*n}static _clamp(i,e,n){return i<e?e:i>n?n:i}static _safeRatio(i,e){let n=Math.abs(e)<1e-6?1e-6:e;return i/n}},Vh=(function(t){return t.NONE="none",t.ALONG="along",t})(Vh||{}),tf=class{compute(i,e){let n=this._clamp01(e.position()),{point:o,tangent:r}=i.getPointAtLength(n),a={x:-r.y,y:r.x},s=e.offset()??0,l=o.x+a.x*s,u=o.y+a.y*s,g=this._sizeAlongDirection(e.hostElement,r)*.5,C=n*i.totalLength,w=i.totalLength-C,P=this._applyEdgeGuard(l,u,r,C,w,g),T=this._calculateContentRotation(e.align(),r);return{position:P,rotationDeg:T}}_clamp01(i){return i<=0?0:i>=1?1:i}_applyEdgeGuard(i,e,n,o,r,a){if(o<=a){let s=a-o;return{x:i+n.x*s,y:e+n.y*s}}if(r<=a){let s=a-r;return{x:i-n.x*s,y:e-n.y*s}}return{x:i,y:e}}_sizeAlongDirection(i,e){let n=H.fromElement(i);return Math.abs(e.x)*n.width+Math.abs(e.y)*n.height}_normalize180(i){let e=(i+180)%360;return e<0&&(e+=360),e-180}_keepUpright(i){let e=this._normalize180(i);return e>90?e-=180:e<-90&&(e+=180),e}_calculateContentRotation(i,e){let n=0;return i===Vh.ALONG&&(n=Math.atan2(e.y,e.x)*180/Math.PI,n=this._keepUpright(n)),n}},nf=class{_placement;constructor(i=new tf){this._placement=i}layout(i,e){let n=new ef(i),o=n.totalLength;for(let r of e){let{position:a,rotationDeg:s}=this._placement.compute(n,r);r.hostElement.style.transform=this._createTransformString(a,s)}return o}_createTransformString(i,e){return`translate3d(${i.x}px, ${i.y}px, 0) translate(-50%, -50%) rotate(${e}deg)`}};var hh=new pe("F_CONNECTION_WAYPOINTS");function Hh(t,i,e){return(t.x-i.x)**2+(t.y-i.y)**2<=e**2}function C0(t,i){let e=t.fWaypoints(),n=e?.radius()||8;return e?.candidates().find(o=>Hh(i,o,n))}function x0(t,i){let e=t.fWaypoints(),n=e?.radius()||8;return e?.waypoints().find(o=>Hh(i,o,n))}function b0(t,i){for(let e of t){let n=x0(e,i);if(n&&e.fWaypoints()?.visibility())return{connection:e,waypoint:n};let o=C0(e,i);if(o&&e.fWaypoints()?.visibility())return{connection:e,candidate:o}}}var Al=new pe("F_CONNECTION_COMPONENTS_PARENT");var fe=(function(t){return t.START="f-connection-marker-start",t.END="f-connection-marker-end",t.SELECTED_START="f-connection-selected-marker-start",t.SELECTED_END="f-connection-selected-marker-end",t.START_ALL_STATES="f-connection-marker-start-all-states",t.END_ALL_STATES="f-connection-marker-end-all-states",t})(fe||{}),Cc=new pe("F_CONNECTION_MARKER"),w0=0,xc=class{fId=W(`f-marker-${w0++}`);hostElement=d(we).nativeElement};function Gh(t,i=fe.START){if(typeof t!="string")return i;let e=t.trim().toLowerCase();return e?S0(e)??i:i}function S0(t){switch(t){case"start":case"f-connection-marker-start":return fe.START;case"end":case"f-connection-marker-end":return fe.END;case"selected-start":case"f-connection-selected-marker-start":return fe.SELECTED_START;case"selected-end":case"f-connection-selected-marker-end":return fe.SELECTED_END;case"start-all-states":case"f-connection-marker-start-all-states":case"start-all":case"all-start":return fe.START_ALL_STATES;case"end-all-states":case"f-connection-marker-end-all-states":case"end-all":case"all-end":return fe.END_ALL_STATES;default:return null}}var jh=(()=>{class t extends xc{_markerElement=Se.required("markerElement");_type=F(fe.END_ALL_STATES,{alias:"type",transform:e=>Gh(e,fe.END_ALL_STATES)});get markerElement(){return this._markerElement().nativeElement}width=6;height=7;refX=5.5;refY=3.5;get type(){return this._type()}orient="auto";markerUnits="strokeWidth";static \u0275fac=(()=>{let e;return function(o){return(e||(e=ne(t)))(o||t)}})();static \u0275cmp=J({type:t,selectors:[["f-connection-marker-arrow"]],viewQuery:function(n,o){n&1&&ut(o._markerElement,Sg,5),n&2&&it()},hostAttrs:[1,"f-component",2,"display","none"],inputs:{_type:[1,"type","_type"]},features:[ge([{provide:Cc,useExisting:t}]),_e],decls:3,vars:0,consts:[["markerElement",""],["viewBox","0 0 6 6",1,"f-marker"],["d","M0,0 L6,3 0,6Z"]],template:function(n,o){n&1&&(Ze(),U(0,"svg",1,0),Dt(2,"path",2),$())},encapsulation:2})}return t})();var Uh=(()=>{class t extends xc{_mediator=d(R);markerElement=this.hostElement;width=0;height=0;refX=0;refY=0;type=fe.START;orient="auto";markerUnits="strokeWidth";ngOnInit(){this.hostElement.style.display="none",this._mediator.execute(new gc(this))}ngOnDestroy(){this._mediator.execute(new Uc(this))}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ne(t)))(o||t)}})();static \u0275dir=Ce({type:t,selectors:[["svg","fMarker",""]],hostAttrs:[1,"f-component","f-marker"],inputs:{width:"width",height:"height",refX:"refX",refY:"refY",type:[2,"type","type",e=>Gh(e,fe.START)],orient:"orient",markerUnits:"markerUnits"},standalone:!1,features:[ge([{provide:Cc,useExisting:t}]),_e]})}return t})(),Ft=(function(t){return t.FIXED="fixed",t.FIXED_CENTER="fixed_center",t.FLOATING="floating",t})(Ft||{}),Xe=(function(t){return t.DEFAULT="default",t.TOP="top",t.BOTTOM="bottom",t.LEFT="left",t.RIGHT="right",t.CALCULATE="calculate",t.CALCULATE_HORIZONTAL="calculate_horizontal",t.CALCULATE_VERTICAL="calculate_vertical",t})(Xe||{});function I0({sourceRect:t,targetRect:i}){return{point1:t.gravityCenter,point2:i.gravityCenter}}var L=(function(t){return t.LEFT="left",t.TOP="top",t.RIGHT="right",t.BOTTOM="bottom",t.CALCULATE="calculate",t.CALCULATE_HORIZONTAL="calculate_horizontal",t.CALCULATE_VERTICAL="calculate_vertical",t.AUTO="auto",t})(L||{}),Pn=(function(t){return t.SEGMENT="segment",t.STRAIGHT="straight",t.BEZIER="bezier",t.ADAPTIVE_CURVE="adaptive-curve",t})(Pn||{});function T0({sourceRect:t,sourceConnectableSide:i,targetRect:e,targetConnectableSide:n}){return{point1:mh(t,i===L.AUTO?L.BOTTOM:i),point2:mh(e,n===L.AUTO?L.TOP:n)}}function mh(t,i){switch(i){case L.TOP:return{x:t.x+t.width/2,y:t.y};case L.BOTTOM:return{x:t.x+t.width/2,y:t.y+t.height};case L.LEFT:return{x:t.x,y:t.y+t.height/2};case L.RIGHT:return{x:t.x+t.width,y:t.y+t.height/2};default:throw new Error(`Unknown side: ${i}`)}}function Wh(t,i,e,n){if(!n||!n.rotationDeg)return Tn.getRoundedRectIntersections(t,i,e)[0];let o=rr(t,-n.rotationDeg,n.pivot),r=rr(i,-n.rotationDeg,n.pivot),a=E0(e,-n.rotationDeg,n.pivot),s=Tn.getRoundedRectIntersections(o,r,a)[0];return s?rr(s,n.rotationDeg,n.pivot):void 0}function E0(t,i,e){let n=rr(P0(t),i,e);return new Me(n.x-t.width/2,n.y-t.height/2,t.width,t.height,t.radius1,t.radius2,t.radius3,t.radius4)}function P0(t){return{x:t.x+t.width/2,y:t.y+t.height/2}}function rr(t,i,e){let n=t.x-e.x,o=t.y-e.y,r=i*Math.PI/180,a=Math.cos(r),s=Math.sin(r);return{x:n*a-o*s+e.x,y:n*s+o*a+e.y}}function D0({sourceRect:t,targetRect:i,sourceRotationContext:e,targetRotationContext:n}){return N0(M0(t,i,e),k0(t,i,n),t,i)}function M0(t,i,e){return Wh(t.gravityCenter,i.gravityCenter,t,e)}function k0(t,i,e){return Wh(i.gravityCenter,t.gravityCenter,i,e)}function N0(t,i,e,n){return{point1:t||e.gravityCenter,point2:i||n.gravityCenter}}var Oo=.5,R0={[Ft.FLOATING]:D0,[Ft.FIXED_CENTER]:I0,[Ft.FIXED]:T0},$n=(()=>{class t{handle(e){let n=this._calculateDirectionalVectors(e.sourceRect.gravityCenter.x,e.sourceRect.gravityCenter.y,e.targetRect.gravityCenter.x,e.targetRect.gravityCenter.y),o=this._determineSourceSide(e,n),r=this._determineTargetSide(e,n);return e.connection._applyResolvedSidesToConnection(o,r),this._getBehaviorHandler(e.connection.fBehavior)({sourceRect:e.sourceRect,targetRect:e.targetRect,sourceConnectableSide:o,targetConnectableSide:r,sourceRotationContext:e.sourceRotationContext,targetRotationContext:e.targetRotationContext})}_calculateDirectionalVectors(e,n,o,r){let a=o-e,s=r-n;return{sourceToTargetX:a,sourceToTargetY:s,targetToSourceX:-a,targetToSourceY:-s}}_determineSourceSide(e,n){return this._resolveConnectableSide(e.connection.fOutputSide(),n.sourceToTargetX,n.sourceToTargetY,e.sourceConnectableSide)}_determineTargetSide(e,n){return this._resolveConnectableSide(e.connection.fInputSide(),n.targetToSourceX,n.targetToSourceY,e.targetConnectableSide)}_resolveConnectableSide(e,n,o,r){if(e===Xe.DEFAULT)return r;let a=Math.abs(n),s=Math.abs(o);if(a<Oo&&s<Oo)return r;let u=a>=s;switch(e){case Xe.CALCULATE:return u?n>=0?L.RIGHT:L.LEFT:o>=0?L.BOTTOM:L.TOP;case Xe.CALCULATE_HORIZONTAL:return a<Oo?r:n>=0?L.RIGHT:L.LEFT;case Xe.CALCULATE_VERTICAL:return s<Oo?r:o>=0?L.BOTTOM:L.TOP;case Xe.TOP:return L.TOP;case Xe.BOTTOM:return L.BOTTOM;case Xe.LEFT:return L.LEFT;case Xe.RIGHT:return L.RIGHT;default:return r}}_getBehaviorHandler(e){let n=R0[e];if(!n)throw new Error(`[Behavior] No handler for behavior: ${e}`);return n}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac})}return t})(),ht=class{sourceRect;targetRect;connection;sourceConnectableSide;targetConnectableSide;sourceRotationContext;targetRotationContext;constructor(i,e,n,o,r,a,s){this.sourceRect=i,this.targetRect=e,this.connection=n,this.sourceConnectableSide=o,this.targetConnectableSide=r,this.sourceRotationContext=a,this.targetRotationContext=s}};function Ll(t,i,e){return[t,...e??[],i]}function O0(t,i){let e=Math.abs(i.x-t.x)/2,n=i.x<t.x?i.x+e:i.x-e,o=Math.abs(i.y-t.y)/2,r=i.y<t.y?i.y+o:i.y-o;return{x:n,y:r}}function F0(t,i=32){let e=new Array(i+1);e[0]=se({},t[0]);for(let n=1;n<=i;n++)e[n]=$h(t[0],t[1],t[2],t[3],n/i);return e}function $h(t,i,e,n,o){let r=1-o,a=o*o,s=r*r,l=s*r,u=a*o;return{x:l*t.x+3*s*o*i.x+3*r*a*e.x+u*n.x,y:l*t.y+3*s*o*i.y+3*r*a*e.y+u*n.y}}function qh(t){return t.map(i=>$h(i.p0,i.c1,i.c2,i.p3,.5))}function A0(t){if(t.length<2)throw new Error("Polylines must be at least two points");let i=L0(t);return i<=0?[se({},t[0])]:[B0(t,i/2)]}function L0(t){let i=0;for(let e=0;e<t.length-1;e++)i+=Xh(t[e],t[e+1]);return i}function B0(t,i){let e=0;for(let o=0;o<t.length-1;o++){let r=t[o],a=t[o+1],s=Xh(r,a);if(!(s<=0)){if(e+s>=i){let l=(i-e)/s;return{x:r.x+(a.x-r.x)*l,y:r.y+(a.y-r.y)*l}}e+=s}}let n=t[t.length-1];return{x:n.x,y:n.y}}function Xh(t,i){return Math.hypot(i.x-t.x,i.y-t.y)}function z0(t){let i=[];for(let e of t)for(let n of e){let o=i[i.length-1];(!o||o.x!==n.x||o.y!==n.y)&&i.push(n)}return i}function Kh(t){if(!t.length)return"";let i=`M ${t[0].p0.x} ${t[0].p0.y}`;for(let e=0;e<t.length;e++){let n=t[e],o=e===t.length-1,r=o?n.p3.x+2e-4:n.p3.x,a=o?n.p3.y+2e-4:n.p3.y;i+=` C ${n.c1.x} ${n.c1.y}, ${n.c2.x} ${n.c2.y}, ${r} ${a}`}return i}function Yh(t,i=16){if(!t.length)return[];let e=[];for(let n=0;n<t.length;n++){let o=t[n],r=F0([o.p0,o.c1,o.c2,o.p3],i);n>0&&r.shift(),e.push(...r)}return e}function V0(t,i=1e-6){let e=t.length;if(e<=2)return t;let n=[];n.push(t[0]);for(let r=1;r<e;r++){let a=t[r],s=n[n.length-1];(Math.abs(a.x-s.x)>i||Math.abs(a.y-s.y)>i)&&n.push(a)}if(n.length<=2)return n;let o=[];o.push(n[0]);for(let r=1;r<n.length-1;r++){let a=o[o.length-1],s=n[r],l=n[r+1],u=Math.abs(a.x-s.x)<=i&&Math.abs(s.x-l.x)<=i,h=Math.abs(a.y-s.y)<=i&&Math.abs(s.y-l.y)<=i;!u&&!h&&o.push(s)}return o.push(n[n.length-1]),o}var of=class t{static _dir(i){switch(i){case L.LEFT:return{x:-1,y:0};case L.RIGHT:return{x:1,y:0};case L.TOP:return{x:0,y:-1};case L.BOTTOM:return{x:0,y:1};case L.AUTO:return{x:0,y:0}}return{x:0,y:0}}static _isHorizontal(i){return i===L.LEFT||i===L.RIGHT}static _handleLength(i,e,n,o){let r=Math.abs(e.x-i.x),a=Math.abs(e.y-i.y),s=Math.hypot(r,a),l=n===L.AUTO?Math.max(r,a):this._isHorizontal(n)?r:a,u=Math.max(8,o),h=o+.5*s,g=o*1.05+l*.3;return Math.min(h,Math.max(u,g))}static _softControl(i,e,n,o){let r=this._dir(i),a=n.x-e.x,s=n.y-e.y,l=Math.hypot(a,s)||1,u=a/l,h=s/l;if(i===L.AUTO)return{x:e.x+u*o,y:e.y+h*o};let g=r.x*u+r.y*h,C=.12,w=Math.max(0,-g)*.08,P=Math.min(.2,C+w),T=r.x*(1-P)+u*P,k=r.y*(1-P)+h*P,N=Math.hypot(T,k)||1;return{x:e.x+T/N*o,y:e.y+k/N*o}}handle({source:i,sourceSide:e,target:n,targetSide:o,offset:r,waypoints:a}){let s=Math.max(0,r??0),l=Ll(i,n,a),u=[];for(let g=0;g<l.length-1;g++){let C=l[g],w=l[g+1],P=t._handleLength(C,w,e,s),T=t._handleLength(w,C,o,s),k=t._softControl(e,C,w,P),N=t._softControl(o,w,C,T);u.push({p0:C,c1:k,c2:N,p3:w,chainIndex:g})}let h=Yh(u,12);return{path:Kh(u),secondPoint:u[0]?.c1??i,penultimatePoint:u[u.length-1]?.c2??n,points:h,candidates:qh(u)}}},rf=class{handle({source:i,sourceSide:e,target:n,targetSide:o,offset:r,waypoints:a}){let s=Ll(i,n,a),l=[];for(let h=0;h<s.length-1;h++){let g=s[h],C=s[h+1],w=_h(e,g,C,r??0),P=_h(o,C,g,r??0);l.push({p0:g,c1:w,c2:P,p3:C,chainIndex:h})}let u=Yh(l,12);return{path:Kh(l),secondPoint:l[0]?.c1??i,penultimatePoint:l[l.length-1]?.c2??n,points:u,candidates:qh(l)}}};function _h(t,i,e,n){let o={x:i.x,y:i.y};switch(t){case L.LEFT:o.x-=Fo(i.x-e.x,n);break;case L.RIGHT:o.x+=Fo(e.x-i.x,n);break;case L.TOP:o.y-=Fo(i.y-e.y,n);break;case L.BOTTOM:o.y+=Fo(e.y-i.y,n);break;case L.AUTO:break}return o}function Fo(t,i){return t>=i?t:i*Math.sqrt(i-t)}function H0(t){let{axis:i,source:e,target:n,sourceSide:o,targetSide:r,sourceGap:a,targetGap:s,sourceDir:l,targetDir:u,currentDir:h,offset:g,sourceGapOffset:C,targetGapOffset:w}=t,P=G0(a,s),T=j0(i,l,h,P);return o===r?U0(i,e,n,g,l,h,a,s,C,w):T=W0(i,l,u,a,s,P,T),T}function G0(t,i){return{sourceTarget:[{x:t.x,y:i.y}],targetSource:[{x:i.x,y:t.y}]}}function j0(t,i,e,n){return t==="x"?i.x===e?n.targetSource:n.sourceTarget:i.y===e?n.sourceTarget:n.targetSource}function U0(t,i,e,n,o,r,a,s,l,u){let h=Math.abs(i[t]-e[t]);if(h>n)return;let g=Math.min(n-1,n-h);g<=0||(o[t]===r?l[t]=(a[t]>i[t]?-1:1)*g:u[t]=(s[t]>e[t]?-1:1)*g)}function W0(t,i,e,n,o,r,a){let s=t==="x"?"y":"x",l=i[t]===e[s],u=n[s]>o[s],h=n[s]<o[s];return i[t]===1&&(!l&&u||l&&h)||i[t]!==1&&(!l&&h||l&&u)?t==="x"?r.sourceTarget:r.targetSource:a}var ui=1e-6,gh=2e-4,$0=.75;function q0(t,i){let e=t.length,n=[];n.push(`M ${t[0].x} ${t[0].y}`);for(let r=1;r<e-1;r++)n.push(X0(t[r-1],t[r],t[r+1],i));let o=t[e-1];return n.push(`L ${o.x+gh} ${o.y+gh}`),n.join(" ")}function X0(t,i,e,n){let o=i.x,r=i.y;if(n<=0)return`L ${o} ${r}`;let a=Math.abs(t.x-o)<=ui&&Math.abs(o-e.x)<=ui,s=Math.abs(t.y-r)<=ui&&Math.abs(r-e.y)<=ui;if(a||s)return`L ${o} ${r}`;let l=Math.hypot(o-t.x,r-t.y),u=Math.hypot(e.x-o,e.y-r),h=Math.min(l*.5,u*.5,n);if(h<$0)return`L ${o} ${r}`;if(Math.abs(t.y-r)<=ui){let k=t.x<e.x?-1:1,N=t.y<e.y?1:-1,O=o+h*k,V=r+h*N;return`L ${O} ${r} Q ${o} ${r} ${o} ${V}`}let C=t.x<e.x?1:-1,w=t.y<e.y?-1:1,P=r+h*w,T=o+h*C;return`L ${o} ${P} Q ${o} ${r} ${T} ${r}`}var yh={[L.LEFT]:A.initialize(-1,0),[L.RIGHT]:A.initialize(1,0),[L.TOP]:A.initialize(0,-1),[L.BOTTOM]:A.initialize(0,1),[L.AUTO]:A.initialize(0,0)},af=class{handle({source:i,sourceSide:e,target:n,targetSide:o,waypoints:r,offset:a,radius:s}){let l=Ll(i,n,r),u=[],h=[];for(let P=0;P<l.length-1;P++){let T=l[P],k=l[P+1],N=this._getPathPoints(T,e,k,o,a??0);u.push(N),h.push(...A0(N))}let g=V0(z0(u)),C=g.length>1?g[g.length-2]:i,w=g.length>1?g[1]:n;return{path:q0(g,s??0),penultimatePoint:C,secondPoint:w,points:g,candidates:h}}_getPathPoints(i,e,n,o,r){let a=yh[e],s=yh[o],l={x:i.x+a.x*r,y:i.y+a.y*r},u={x:n.x+s.x*r,y:n.y+s.y*r},h=this._getDirection(l,e,u),g=h.x!==0?"x":"y",C=h[g],w=[],P=A.initialize(),T=A.initialize(),k=O0(i,n);if(a[g]*s[g]===-1){let N=[{x:k.x,y:l.y},{x:k.x,y:u.y}],O=[{x:l.x,y:k.y},{x:u.x,y:k.y}];a[g]===C?w=g==="x"?N:O:w=g==="x"?O:N}else w=H0({axis:g,source:i,target:n,sourceSide:e,targetSide:o,sourceGap:l,targetGap:u,sourceDir:a,targetDir:s,currentDir:C,offset:r,sourceGapOffset:P,targetGapOffset:T});return[i,{x:l.x+P.x,y:l.y+P.y},...w,{x:u.x+T.x,y:u.y+T.y},n]}_getDirection(i,e,n){return e===L.LEFT||e===L.RIGHT?i.x<n.x?A.initialize(1,0):A.initialize(-1,0):i.y<n.y?A.initialize(0,1):A.initialize(0,-1)}},vh=2e-4,sf=class{handle(i){let e=Ll(i.source,i.target,i.waypoints),n=e.length,o=e[0],r=`M ${o.x} ${o.y}`,a=new Array(n-1);for(let s=0;s<n-1;s++){let l=e[s],u=e[s+1],h=s===n-2,g=h?u.x+vh:u.x,C=h?u.y+vh:u.y;r+=` L ${g} ${C}`,a[s]={x:(l.x+u.x)*.5,y:(l.y+u.y)*.5}}return{path:r,candidates:a,points:e,secondPoint:e[1]??i.target,penultimatePoint:e[n-2]??i.source}}},K0=new pe("F_CONNECTION_BUILDERS"),Zh=(()=>{class t{_builtinBuilders={[Pn.STRAIGHT]:new sf,[Pn.BEZIER]:new rf,[Pn.ADAPTIVE_CURVE]:new of,[Pn.SEGMENT]:new af};_providedBuilders;_builders;constructor(){this._providedBuilders=d(K0,{optional:!0})||{},this._builders=se(se({},this._builtinBuilders),this._providedBuilders)}handle({type:e,payload:n}){let o=this._builders[e];if(!o)throw this._createBuilderNotFoundError(e);return o.handle(n)}_createBuilderNotFoundError(e){let n=Object.keys(this._builtinBuilders).sort(),o=Object.keys(this._providedBuilders).sort(),r=Object.keys(this._builders).sort(),a=n.filter(l=>l in this._providedBuilders).sort(),s=[`Connection Builder Error: builder type "${e}" not found.`,`Registered types: ${r.length?r.join(", "):"(none)"}`,`Built-in types: ${n.length?n.join(", "):"(none)"}`,`Provided (F_CONNECTION_BUILDERS) types: ${o.length?o.join(", "):"(none)"}`,a.length?`Overridden built-ins: ${a.join(", ")}`:null,"Tip: ensure you pass a valid Connection Type or provide a builder via F_CONNECTION_BUILDERS."].filter(Boolean);return new Error(s.join(`
1
+ import{c as Nt}from"./chunk-RR36XBDS.js";import{a as ko,b as In,c as No,d as Ro,e as nh,f as ih,g as oh}from"./chunk-Z2667C3S.js";import{b as Hp,e as _o,f as Gp,j as We,k as Le,l as Yp,m as bo,n as wo,o as So,p as Zp,q as Qp,r as Jp,s as ku,t as ci,u as Sn,w as Io}from"./chunk-533YMAY3.js";import{c as vo,d as Co,f as eh,g as th}from"./chunk-AD7RBRD3.js";import{h as To,i as Eo,j as Po,m as Do,n as Mo}from"./chunk-VO6NF24F.js";import{$ as _t,$a as Kt,$b as Zt,Aa as _e,Ab as Bp,Ba as Ee,Bc as vn,Eb as rt,Fb as Ae,Gb as Z,Gc as Up,Hb as ge,Hc as Wp,Ib as oi,Ic as Cn,J as y,Jb as ri,Jc as go,K as ro,Ka as Y,Lc as $p,M as pe,N as _n,Na as S,O as d,Oa as I,Oc as qp,Pc as Xp,Qa as be,Qb as ai,R as Pp,Ra as ee,S as Pt,Sa as te,Sb as gt,T as G,Ta as E,Tb as D,U as j,Ua as f,V as Ze,Va as p,Vc as si,W as Dp,Wa as B,Wb as De,Wc as yo,X as Qe,Xa as U,Xb as F,Y as ao,Ya as $,Yb as Se,Z as je,Za as Dt,Zb as po,_a as Xt,_b as Du,aa as ni,ab as yn,bb as uo,bd as xn,cb as fo,cc as xe,cd as bn,da as W,db as ce,dc as qe,ea as ae,eb as Eu,fa as gn,fb as q,g as x,ga as ne,gd as wn,hb as m,hd as Kp,ia as we,ib as Yt,id as Mt,ja as so,jb as Pe,jd as Mu,ka as Mp,kb as Ap,la as Iu,mb as wt,mc as zp,md as xo,n as Tp,na as kp,nb as St,nd as kt,oa as c,ob as Pu,oc as Vp,pa as Np,pb as ut,pc as ho,qa as Rp,qb as it,qc as mo,ra as Op,sa as Tu,sb as ot,ta as co,tb as re,u as Ep,ub as Lp,vb as Ve,wa as J,wb as _,xa as lo,xb as v,ya as Ce,yb as Ue,za as Fp,zb as ii}from"./chunk-J3YWUNFO.js";import{V as jp}from"./chunk-H2J55DNK.js";import{a as se,b as ti}from"./chunk-Q7L6LLAK.js";var Qt=class{constructor(i,e,n,o,r){this.center=i,this.radiusX=e,this.radiusY=n,this.startAngle=o,this.endAngle=r}},A=class t{static castToPoint(i){return i||t.initialize()}static initialize(i=0,e=0){return{x:i,y:e}}static copy(i){return t.initialize(i.x,i.y)}static isEqual(i,e){return i.x===e.x&&i.y===e.y}static sum(i,e){return{x:i.x+e.x,y:i.y+e.y}}static sub(i,e){return{x:i.x-e.x,y:i.y-e.y}}static div(i,e){return{x:i.x/e,y:i.y/e}}static mult(i,e){return{x:i.x*e,y:i.y*e}}static interpolatePoints(i,e,n){let o=1-n;return t.initialize(i.x*o+e.x*n,i.y*o+e.y*n)}static roundTo(i,e){let n=Math.trunc(i.x/e),o=Math.trunc(i.y/e);return{x:n*e,y:o*e}}static hypotenuse(i,e){let n=e.x-i.x,o=e.y-i.y;return Math.abs(Math.sqrt(n*n+o*o))}static distance(i,e){let n=i.x-e.x,o=i.y-e.y;return Math.sqrt(n*n+o*o)}static getMinimum(i,e){return t.initialize(Math.min(i.x,e.x),Math.min(i.y,e.y))}static getMaximum(i,e){return t.initialize(Math.max(i.x,e.x),Math.max(i.y,e.y))}static matrixTransform(i,e){let n=t.initialize(i.x,i.y),o=e.getScreenCTM();if(o){let r=e.createSVGPoint();r.x=i.x,r.y=i.y,n=r.matrixTransform(o.inverse())}return n}static elementTransform(i,e){let n=t.initialize(i.x,i.y),o=e.getBoundingClientRect();return n=t.sub(n,t.initialize(o.left,o.top)),n}},K=class t{constructor(i=0,e=0){this.x=i,this.y=e}static fromPoint(i){return new t(i.x,i.y)}add(i){let e=A.sum(this,i);return t.fromPoint(e)}sub(i){let e=A.sub(this,i);return t.fromPoint(e)}subNumber(i){let e=A.sub(this,new t(i,i));return t.fromPoint(e)}div(i){let e=A.div(this,i);return t.fromPoint(e)}mult(i){let e=A.mult(this,i);return t.fromPoint(e)}matrixTransform(i){let e=A.matrixTransform(this,i);return t.fromPoint(e)}elementTransform(i){let e=A.elementTransform(this,i);return t.fromPoint(e)}},di=class{static initialize(i=A.initialize(),e=A.initialize()){return{point1:i,point2:e}}static copy(i){return{point1:i.point1,point2:i.point2}}static hypotenuse(i){return Math.sqrt(Math.pow(i.point1.x-i.point2.x,2)+Math.pow(i.point1.y-i.point2.y,2))}},Jt=class{constructor(i,e){this.point1=i,this.point2=e}},H=class t{static initialize(i=0,e=0,n=0,o=0){n<0&&(i=i+n,n=-n),o<0&&(e=e+o,o=-o);let r=A.initialize(i+n/2,e+o/2);return{x:i,y:e,width:n,height:o,gravityCenter:r}}static copy(i){return t.initialize(i.x,i.y,i.width,i.height)}static fromElement(i){let{x:e,y:n,width:o,height:r}=i.getBoundingClientRect();return t.initialize(e,n,o,r)}static isIncludePoint(i,e){return e.x>=t.left(i)&&e.x<=t.right(i)&&e.y>=t.top(i)&&e.y<=t.bottom(i)}static intersectionWithRect(i,e){return!(i.x+i.width<e.x||e.x+e.width<i.x||i.y+i.height<e.y||e.y+e.height<i.y)}static left(i){return i.x}static top(i){return i.y}static right(i){return i.x+i.width}static bottom(i){return i.y+i.height}static addPoint(i,e){let n=t.copy(i);return n.x+=e.x,n.y+=e.y,this.initialize(n.x,n.y,n.width,n.height)}static mult(i,e){let n=t.copy(i);return n.x*=e,n.y*=e,n.width*=e,n.height*=e,this.initialize(n.x,n.y,n.width,n.height)}static div(i,e){let n=t.copy(i);return n.x/=e,n.y/=e,n.width/=e,n.height/=e,this.initialize(n.x,n.y,n.width,n.height)}static addPointToSize(i,e){let n=t.copy(i);return n.width+=e.x,n.height+=e.y,this.initialize(n.x,n.y,n.width,n.height)}static union(i){return!i||i.length===0?null:i.reduce((e,n)=>{let o=Math.min(e.x,n.x),r=Math.min(e.y,n.y),a=Math.max(e.x+e.width,n.x+n.width),s=Math.max(e.y+e.height,n.y+n.height);return t.initialize(o,r,a-o,s-r)},i[0])}static elementTransform(i,e){let n=e.getBoundingClientRect(),o=A.sub(i,A.initialize(n.left,n.top));return t.initialize(o.x,o.y,i.width,i.height)}static updateIsNotFinite(i){return!Number.isFinite(i.width)||!Number.isFinite(i.height)||!Number.isFinite(i.x)||!Number.isFinite(i.y)?t.initialize(0,0,0,0):i}};function rh(t,i){let e=Math.max(t.width,i),n=Math.max(t.height,i),o=(e-t.width)/2,r=(n-t.height)/2;return H.initialize(t.x-o,t.y-r,e,n)}function Ru(t,i){t=H.updateIsNotFinite(t),i.setAttribute("x",t.x.toString()),i.setAttribute("y",t.y.toString()),i.setAttribute("width",t.width.toString()),i.setAttribute("height",t.height.toString())}function ah(t,i){t=H.updateIsNotFinite(t),i.setAttribute("viewBox",`${t.x} ${t.y} ${t.width} ${t.height}`)}var Me=class t{constructor(i=0,e=0,n=0,o=0,r=0,a=0,s=0,l=0){this.x=i,this.y=e,this.width=n,this.height=o,this.radius1=r,this.radius2=a,this.radius3=s,this.radius4=l,this.gravityCenter=A.initialize(),this.gravityCenter=this.calculateGravityCenter(this)}calculateGravityCenter(i){return new K(i.x+i.width/2,i.y+i.height/2)}static fromRect(i){return new t(i.x,i.y,i.width,i.height)}static fromRoundedRect(i){return new t(i.x,i.y,i.width,i.height,i.radius1,i.radius2,i.radius3,i.radius4)}static fromCenter(i,e,n){return new t(i.gravityCenter.x-e/2,i.gravityCenter.y-n/2,e,n,i.radius1,i.radius2,i.radius3,i.radius4)}static fromPoint(i){return new t(i.x,i.y)}addPoint(i){let e=t.fromRoundedRect(this);return e.x+=i.x,e.y+=i.y,e.gravityCenter=this.calculateGravityCenter(e),e}},ft=class t{static initialize(i=0,e=0){return{width:i,height:e}}static isEqual(i,e){return i.width===e.width&&i.height===e.height}static offsetFromElement(i){if(i instanceof SVGGraphicsElement){let e=i.getBBox();return t.initialize(e.width,e.height)}else if(i instanceof HTMLElement)return t.initialize(i.offsetWidth,i.offsetHeight)}};function fg(){return{position:A.initialize(),scaledPosition:A.initialize(),scale:1,rotate:0}}function pg(t){let i;if(t){t=t.replace("matrix(",""),t=t.replace(")","");let e=t.split(" ");i={position:{x:Number(e[4]),y:Number(e[5])},scaledPosition:A.initialize(),scale:Number(e[0]),rotate:0}}return i}var Rt=class{static toString(i){let e=A.sum(i.position,i.scaledPosition);return`matrix(${i.scale}, 0, 0, ${i.scale}, ${e.x}, ${e.y})`}static fromString(i){return pg(i)}static default(){return fg()}},Je=class t{static initialize(i=0,e=0){return A.initialize(i,e)}static fromPoints(i,e){return t.initialize(e.x-i.x,e.y-i.y)}static vectorLength(i){return Math.sqrt(t.magnitudeSquared(i))}static magnitudeSquared(i){return i.x*i.x+i.y*i.y}static dotProduct(i,e){return i.x*e.x+i.y*e.y}static crossProduct(i,e){return i.x*e.y-i.y*e.x}static subtract(i,e){return t.initialize(i.x-e.x,i.y-e.y)}static add(i,e){return t.initialize(i.x+e.x,i.y+e.y)}static scale(i,e){return t.initialize(i.x*e,i.y*e)}static angle(i,e){let n=Math.acos(Math.max(-1,Math.min(t.dotProduct(i,e)/(t.vectorLength(i)*t.vectorLength(e)),1)));return t.crossProduct(i,e)<0?-n:n}},Nu=class{static parseRoundedRect(i){let e=Math.PI*.5,n=i.x,o=i.y,r=i.x+i.width,a=i.y+i.height,s=i.x+i.radius1,l=i.y+i.radius1,u=i.x+i.width-i.radius2,h=i.y+i.radius2,g=i.x+i.width-i.radius3,C=i.y+i.height-i.radius3,w=i.x+i.radius4,P=i.y+i.height-i.radius4;return[new Qt({x:s,y:l},i.radius1,i.radius1,2*e,3*e),new Jt({x:s,y:o},{x:u,y:o}),new Qt({x:u,y:h},i.radius2,i.radius2,3*e,4*e),new Jt({x:r,y:h},{x:r,y:C}),new Qt({x:g,y:C},i.radius3,i.radius3,0,e),new Jt({x:g,y:a},{x:w,y:a}),new Qt({x:w,y:P},i.radius4,i.radius4,e,2*e),new Jt({x:n,y:P},{x:n,y:l})]}},Tn=class{static getRoundedRectIntersections(i,e,n){let o=Nu.parseRoundedRect(n);for(let r of o)if(r instanceof Qt){let a=this.intersectArcWithLine(r,i,e);if(a.length>0)return a}else if(r instanceof Jt){let a=this.intersectLineSegments(i,e,r.point1,r.point2);if(a)return[a]}return[]}static getRoundedRectIntersectionsWithSVGPath(i,e){let n=i.getTotalLength(),o=[];for(let r=0;r<=n;r+=1){let a=i.getPointAtLength(r);o.push({x:a.x,y:a.y})}for(let r=1;r<o.length;r++){let a=this.getRoundedRectIntersections(o[r-1],o[r],e);if(a.length>0)return a}return[]}static intersectArcWithLine(i,e,n){return this.filterPointsWithinArc(this.findEllipseLineIntersections(i.center,i.radiusX,i.radiusY,e,n),i)}static intersectLineSegments(i,e,n,o){let r=e.x-i.x,a=e.y-i.y,s=o.x-n.x,l=o.y-n.y,u=(-a*(i.x-n.x)+r*(i.y-n.y))/(-s*a+r*l),h=(s*(i.y-n.y)-l*(i.x-n.x))/(-s*a+r*l);return u>=0&&u<=1&&h>=0&&h<=1?{x:i.x+h*r,y:i.y+h*a}:null}static filterPointsWithinArc(i,e){let{center:n,startAngle:o,endAngle:r}=e;if(i.length===0)return i;r<o&&([o,r]=[r,o]),(o<0||r<0)&&(o+=2*Math.PI,r+=2*Math.PI);let a=[];for(let s of i){let l=this.normalizeAngle(Je.angle(Je.initialize(1,0),Je.initialize(s.x-n.x,s.y-n.y)));l<o&&(l+=2*Math.PI),o<=l&&l<=r&&a.push(s)}return a}static normalizeAngle(i){let e=i%(2*Math.PI);return e<0?e+2*Math.PI:e}static findEllipseLineIntersections(i,e,n,o,r){let a=Je.initialize(o.x,o.y),s=Je.fromPoints(o,r),l=Je.initialize(i.x,i.y),u=Je.subtract(a,l),h=Je.initialize(s.x/(e*e),s.y/(n*n)),g=Je.initialize(u.x/(e*e),u.y/(n*n)),C=Je.dotProduct(s,h),w=Je.dotProduct(s,g),P=Je.dotProduct(u,g)-1,T=w*w-C*P;return T<0?[]:this.calculateIntersectionPoints(T,C,w,o,r)}static calculateIntersectionPoints(i,e,n,o,r){let a=[];if(i>0){let s=Math.sqrt(i),l=(-n-s)/e,u=(-n+s)/e;l>=0&&l<=1&&a.push(A.interpolatePoints(o,r,l)),u>=0&&u<=1&&a.push(A.interpolatePoints(o,r,u))}else{let s=-n/e;s>=0&&s<=1&&a.push(A.interpolatePoints(o,r,s))}return a}};var Ou=class{handle(i,e){let n=!0;if(this.validator&&(n=e.get(this.validator).handle(i)),!!n)return e.get(this.execution).handle(i)}execute(i,e){return e.get(this.execution).handle(i)}setValidator(i){this.validator=i}setExecution(i){this.execution=i}},R=class t{constructor(){this._injector=d(Qe)}static registerPipeline(i,e,n){if(!i||!i.fToken)throw new Error("Type must have a fToken static property.");let o=this.pipelines.get(i.fToken)||new Ou;n?o.setValidator(e):o.setExecution(e),this.pipelines.set(i.fToken,o)}send(i){let e=t.pipelines.get(i.constructor.fToken);if(e)return e.handle(i,this._injector);throw new Error("Handler not registered for request type.")}execute(i){return t.pipelines.get(i.constructor.fToken).execute(i,this._injector)}};R.pipelines=new Map;R.\u0275fac=function(i){return new(i||R)};R.\u0275prov=y({token:R,factory:R.\u0275fac});function b(t){return function(i){R.registerPipeline(t,i,!1)}}var hg=(()=>{class t{setItem(e,n){localStorage.setItem(e,n)}getItem(e){return localStorage.getItem(e)}removeItem(e){localStorage.removeItem(e)}clear(){localStorage.clear()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mg=(()=>{class t{storage={};setItem(e,n){this.storage[e]=n}getItem(e){return this.storage[e]||null}removeItem(e){delete this.storage[e]}clear(){this.storage={}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_g=new pe("F_LOCAL_STORAGE",{providedIn:"root",factory:()=>mo(d(so))?d(hg):d(mg)}),gg=(()=>{class t{getComputedStyle(e){return window.getComputedStyle(e)}get innerWidth(){return window.innerWidth}get innerHeight(){return window.innerHeight}get pageXOffset(){return window.pageXOffset}get pageYOffset(){return window.pageYOffset}isMediaQuery(e){return window.matchMedia(e).matches}requestAnimationFrame(e){return window.requestAnimationFrame(e)}get location(){return window.location}open(e,n,o){window.open(e,n,o)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yg=(()=>{class t{getComputedStyle(e){return new Proxy({getPropertyValue:n=>"0"},{get:(n,o)=>o==="getPropertyValue"?n.getPropertyValue:"0"})}get innerWidth(){return 0}get innerHeight(){return 0}get pageXOffset(){return 0}get pageYOffset(){return 0}isMediaQuery(e){return!1}requestAnimationFrame(e){return setTimeout(e,0)}get location(){return{href:"",pathname:"",search:"",hash:"",origin:""}}open(e,n,o){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vg=new pe("F_WINDOW",{providedIn:"root",factory:()=>mo(d(so))?d(gg):d(yg)}),Ot=(function(t){return t.MAC_OS="macos",t.IOS="ios",t.WINDOWS="windows",t.ANDROID="android",t.LINUX="linux",t})(Ot||{}),Fu;try{Fu=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Fu=!1}var Au=(()=>{class t{_platformId;isBrowser=!1;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Fu)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(e){this._platformId=e,this.isBrowser=this._platformId?mo(this._platformId):typeof document=="object"&&!!document}getOS(){let e=navigator.userAgent.toLowerCase(),n=/(macintosh|macintel|macppc|mac68k|macos)/i,o=/(win32|win64|windows|wince)/i,r;return n.test(e)?r=Ot.MAC_OS:this.IOS?r=Ot.IOS:o.test(e)?r=Ot.WINDOWS:this.ANDROID?r=Ot.ANDROID:!r&&/linux/.test(e)&&(r=Ot.LINUX),r}static \u0275fac=function(n){return new(n||t)(_n(so))};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ke=(()=>{class t{injectedDocument;windowService;localStorageService;platformService;constructor(e,n,o,r){this.injectedDocument=e,this.windowService=n,this.localStorageService=o,this.platformService=r}isBrowser(){return this.platformService.isBrowser}get window(){return this.windowService}get localStorage(){return this.localStorageService}get document(){return this.injectedDocument}toPixels(e,n,o,r){if(e.endsWith("px"))return parseFloat(e);if(e.endsWith("%")){let a=parseFloat(e)/100;return Math.max(n,o)*a}else{if(e.endsWith("em"))return parseFloat(e)*parseFloat(r);if(e.endsWith("rem"))return parseFloat(e)*parseFloat(getComputedStyle(this.document.documentElement).fontSize);if(e.endsWith("vh")){let a=this.window.innerHeight/100;return parseFloat(e)*a}else if(e.endsWith("vw")){let a=this.window.innerWidth/100;return parseFloat(e)*a}}return parseFloat(e)||0}static \u0275fac=function(n){return new(n||t)(_n(ao),_n(vg),_n(_g),_n(Au))};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Lu(t,i){return t.reduce((e,n)=>[...e,...i(n)],[])}function Bu(t){let i=t.cloneNode(!0),e=i.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();i.removeAttribute("id");for(let o=0;o<e.length;o++)e[o].removeAttribute("id");return n==="canvas"?dh(t,i):(n==="input"||n==="select"||n==="textarea")&&ch(t,i),sh("canvas",t,i,dh),sh("input, textarea, select",t,i,ch),i}function sh(t,i,e,n){let o=i.querySelectorAll(t);if(o.length){let r=e.querySelectorAll(t);for(let a=0;a<o.length;a++)n(o[a],r[a])}}var Cg=0;function ch(t,i){i.type!=="file"&&(i.value=t.value),i.type==="radio"&&i.name&&(i.name=`mat-clone-${i.name}-${Cg++}`)}function dh(t,i){let e=i.getContext("2d");if(e)try{e.drawImage(t,0,0)}catch{}}function zu(t,i,e){for(let n in i)if(i.hasOwnProperty(n)){let o=i[n];o?t.setProperty(n,o,e?.has(n)?"important":""):t.removeProperty(n)}return t}function lh(t){zu(t.style,{"touch-action":"none","-webkit-user-drag":"none","-webkit-tap-highlight-color":"transparent","user-select":"none","-ms-user-select":"none","-webkit-user-select":"none","-moz-user-select":"none"})}function uh(t,i,e){return xg(t,e).dataset[i]}function xg(t,i){return t.closest(i)}function Vu(t,i){let e=t.rootNodes;if(e.length===1&&e[0].nodeType===i.ELEMENT_NODE)return e[0];let n=i.createElement("div");return e.forEach(o=>n.appendChild(o)),n}function li(t,i){let e=bg(t,i);return!!e&&!e.classList.contains(i+"-disabled")}function bg(t,i){return t.closest(i)}function It(t){return t.match(/^[a-zA-Z_]/)||(t="_"+t),t.replace(/[^a-zA-Z0-9_\-:.]/g,"_")}function En(t,i,e){let n=e[t.toUpperCase()]||wg(e,t.toLowerCase());if(n===void 0)throw new Error(`Unknown ${i}: ${t}. Accepted values: ${Object.keys(e).join(", ")}`);return n}function wg(t,i){return Object.keys(t).find(e=>t[e]===i)}var Sg=["markerElement"],Ig=["fConnectionGradientRenderer",""],Tg=["f-connection-path",""],Eg=["fConnectionSelection",""],Pg=["f-connection-drag-handle-start",""],Dg=["f-connection-drag-handle-end",""],Mg=["defs"],kg=["*"],Ng=["fGroupsContainer"],Rg=["fNodesContainer"],Og=["fConnectionsContainer"],Fg=[[["","fGroup",""],["","fGroups",""]],[["f-snap-connection"]],[["f-connection"],["","fConnections",""]],[["f-connection-for-create"]],[["","fNode",""],["","fNodes",""]]],Ag=["[fGroup], [fGroups]","f-snap-connection","f-connection, [fConnections]","f-connection-for-create","[fNode], [fNodes]"],Lg=[[["svg","fMarker",""]],[["f-connection-marker-circle"],["f-connection-marker-arrow"]],[["f-connection-gradient"]],[["f-connection-waypoints"]],[["","fConnectionContent",""]]],Bg=["svg[fMarker]","f-connection-marker-circle, f-connection-marker-arrow","f-connection-gradient","f-connection-waypoints","[fConnectionContent]"];function zg(t,i){t&1&&(Ze(),B(0,"linearGradient",3)),t&2&&E("fConnectionGradientRendererFor",i)}function Vg(t,i){t&1&&(Ze(),B(0,"circle",6))}function Hg(t,i){t&1&&Pe(0,4)}var Gg="[_nghost-%COMP%]{display:block;position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none;-webkit-user-select:none;user-select:none}",jg=[[["","fDefinitions",""]],[["f-background"]],[["f-line-alignment"]],[["f-canvas"]],[["f-selection-area"]],"*"],Ug=["[fDefinitions]","f-background","f-line-alignment","f-canvas","f-selection-area","*"],Wu=new pe("F_BACKGROUND_PATTERN"),rc=class{fPattern;static fToken=Symbol("AddPatternToBackgroundRequest");constructor(i){this.fPattern=i}},Nn=class{_items=[];_byId=new Map;get(i){return this._byId.get(i)}require(i){let e=this._byId.get(i);if(!e)throw new Error(`${this.kind} not found: ${i}`);return e}has(i){return this._byId.has(i)}getAll(){return this._items}size(){return this._items.length}add(i){let e=i.fId();if(this._byId.has(e))throw new Error(`${this.kind} already exists: ${e}`);this._items.push(i),this._byId.set(e,i)}addMany(i){for(let e of i)this.add(e)}remove(i){let e=i.fId(),n=this._byId.get(e);if(!n)return!1;this._byId.delete(e);let o=this._items.indexOf(n);return o>=0&&this._items.splice(o,1),!0}removeById(i){let e=this._byId.get(i);if(!e)return;this._byId.delete(i);let n=this._items.indexOf(e);return n>=0&&this._items.splice(n,1),e}clear(){this._items.length=0,this._byId.clear()}};function en(t){return{name:t}}var $u=class{_instances=new Map;get(i){return this._instances.get(i.name)}require(i){let e=this.get(i);if(!e)throw new Error(`Instance not found: ${i.name}`);return e}has(i){return this._instances.has(i.name)}add(i,e){if(this._instances.has(i.name))throw new Error(`${i.name} already exists`);this._instances.set(i.name,e)}remove(i){if(!this._instances.has(i.name))throw new Error(`${i.name} does not exist`);return this._instances.delete(i.name),!0}clear(){this._instances.clear()}},pi=class extends Nn{kind;constructor(i){super(),this.kind=i}},qu=class extends Nn{kind="Connection Marker"},Xu=class extends Nn{kind="Connection";_instancesForCreate;_instancesForSnap;getForSnap(){return this._instancesForSnap}getForCreate(){return this._instancesForCreate}addForCreate(i){this._instancesForCreate=i}addForSnap(i){this._instancesForSnap=i}removeInstanceForCreate(){this._instancesForCreate=void 0}removeInstanceForSnap(){this._instancesForSnap=void 0}},Ku=class extends Nn{kind="Node"},Dn=class{notifyOnSubscribe;static fToken=Symbol("ListenConnectionsChangesRequest");constructor(i=!0){this.notifyOnSubscribe=i}};function Wg(){return t=>{let i=null,e=null,n=()=>{i!==null&&cancelAnimationFrame(i),e!==null&&cancelAnimationFrame(e),i=e=null};return{callback:()=>{n(),i=requestAnimationFrame(()=>{i=null,e=requestAnimationFrame(()=>{e=null,t()})})},cleanup:n}}}function $g(){return t=>{let i=null;return{callback:()=>{i!==null&&cancelAnimationFrame(i),i=requestAnimationFrame(()=>{i=null,t()})},cleanup:()=>{i!==null&&cancelAnimationFrame(i),i=null}}}}function ac(t){return i=>{let e=null;return{callback:()=>{e!==null&&clearTimeout(e),e=setTimeout(()=>{e=null,i()},t)},cleanup:()=>{e!==null&&clearTimeout(e),e=null}}}}var ct=class{_listeners=new Set;notify(){this._listeners.forEach(i=>i())}listen(i){return this._listeners.add(i),()=>this.stop(i)}stop(i){this._listeners.delete(i)}},Yu=class extends ct{_htmlElement;_observer=new ResizeObserver(()=>this.notify());_isObserving=!1;constructor(i){super(),this._htmlElement=i}listen(i){return this._isObserving||(this._observer.observe(this._htmlElement),this._isObserving=!0),super.listen(i)}stop(i){super.stop(i),this._listeners.size===0&&this._disconnect()}_disconnect(){this._observer.unobserve(this._htmlElement),this._observer.disconnect(),this._isObserving=!1}},vt=class t{_channels=[];_operators=[];constructor(...i){this._channels=[...i]}pipe(...i){let e=new t(...this._channels);return e._operators=[...this._operators,...i],e}listen(i,e){let n=e,o=[],r=[],a=[];for(let g of[...this._operators].reverse()){let C=g(n);n=C.callback,C.cleanup&&o.push(C.cleanup),C.onSubscribe&&r.push(C.onSubscribe),C.setTeardown&&a.push(C.setTeardown)}let s=this._channels.map(g=>g.listen(()=>n())),l=null,u=!1,h=()=>{u||(u=!0,l?.(),l=null,s.forEach(g=>g()),o.forEach(g=>g()))};a.slice().reverse().forEach(g=>g(h)),r.slice().reverse().forEach(g=>g(n)),l=i.onDestroy(h)}};function Fl(){return t=>{let i=!0;return{callback:t,onSubscribe:e=>{queueMicrotask(()=>{i&&e()})},cleanup:()=>{i=!1}}}}function fh(){return t=>{let i=!1,e=null;return{setTeardown:n=>e=n,callback:()=>{if(!i){i=!0;try{t()}finally{e?.()}}}}}}var qg=(()=>{let t=class Ao{_store=d(M);handle({notifyOnSubscribe:e}){return e?new vt(this._store.connectionsChanges$).pipe(Fl(),ac(1)):new vt(this._store.connectionsChanges$).pipe(ac(1))}static \u0275fac=function(n){return new(n||Ao)};static \u0275prov=y({token:Ao,factory:Ao.\u0275fac})};return t=x([b(Dn)],t),t})(),Zu=class{static fToken=Symbol("ListenNodesChangesRequest")},Xg=(()=>{let t=class Lo{_store=d(M);handle(e){return new vt(this._store.nodesChanges$)}static \u0275fac=function(n){return new(n||Lo)};static \u0275prov=y({token:Lo,factory:Lo.\u0275fac})};return t=x([b(Zu)],t),t})(),sc=class{static fToken=Symbol("ListenTransformChangesRequest")},Kg=(()=>{let t=class Bo{_store=d(M);handle(e){return new vt(this._store.transformChanges$,this._store.connectionsChanges$,this._store.nodesChanges$)}static \u0275fac=function(n){return new(n||Bo)};static \u0275prov=y({token:Bo,factory:Bo.\u0275fac})};return t=x([b(sc)],t),t})(),tn=class{static fToken=Symbol("EmitConnectionsChangesRequest")},Yg=(()=>{let t=class zo{_store=d(M);handle(e){this._store.emitConnectionChanges()}static \u0275fac=function(n){return new(n||zo)};static \u0275prov=y({token:zo,factory:zo.\u0275fac})};return t=x([b(tn)],t),t})(),Lt=class{static fToken=Symbol("NotifyTransformChangedRequest")},M=(()=>{class t{transformChanges$=new ct;viewportAnimationChanges$=new ct;connectionsChanges$=new ct;_connectionsRevision=0;connectionsRenderedChanges$=new ct;_connectionsRenderedRevision=0;_connectionsRenderedNodesRevision=0;_viewportAnimationCount=0;nodesChanges$=new ct;_nodesRevision=0;progressiveRenderChanges$=new ct;_pendingProgressiveRenderCount=0;get connectionsRevision(){return this._connectionsRevision}get connectionsRenderedRevision(){return this._connectionsRenderedRevision}get connectionsRenderedNodesRevision(){return this._connectionsRenderedNodesRevision}get nodesRevision(){return this._nodesRevision}get hasPendingProgressiveRender(){return this._pendingProgressiveRenderCount>0}get isViewportAnimating(){return this._viewportAnimationCount>0}get flowHost(){return this.fFlow?.hostElement}fFlow;fCanvas;get transform(){return this.fCanvas?.transform}nodes=new Ku;connections=new Xu;connectionMarkers=new qu;outputs=new pi("Output");inputs=new pi("Input");outlets=new pi("Outlet");instances=new $u;fDraggable;emitNodeChanges(){this._nodesRevision++,this.nodesChanges$.notify()}emitConnectionChanges(){this._connectionsRevision++,this.connectionsChanges$.notify()}completeConnectionsRender(e,n){e<this._connectionsRenderedRevision||e===this._connectionsRenderedRevision&&n<=this._connectionsRenderedNodesRevision||(this._connectionsRenderedRevision=Math.min(e,this._connectionsRevision),this._connectionsRenderedNodesRevision=n,this.connectionsRenderedChanges$.notify())}beginProgressiveRender(){this._pendingProgressiveRenderCount++,this.progressiveRenderChanges$.notify()}endProgressiveRender(){this._pendingProgressiveRenderCount&&(this._pendingProgressiveRenderCount--,this.progressiveRenderChanges$.notify())}transformChanged(){this.transformChanges$.notify()}beginViewportAnimation(){this._viewportAnimationCount++,this.viewportAnimationChanges$.notify()}endViewportAnimation(){this._viewportAnimationCount&&(this._viewportAnimationCount--,this.viewportAnimationChanges$.notify())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac})}return t})(),ye={MAGNETIC_LINES:en("magnetic-lines"),MAGNETIC_RECTS:en("magnetic-rects"),ZOOM:en("zoom-controls"),BACKGROUND:en("background"),SELECTION_AREA:en("selection-area"),MINIMAP:en("minimap"),AUTO_PAN:en("auto-pan")},Zg=(()=>{let t=class Vo{_store=d(M);handle(e){this._store.transformChanged()}static \u0275fac=function(n){return new(n||Vo)};static \u0275prov=y({token:Vo,factory:Vo.\u0275fac})};return t=x([b(Lt)],t),t})(),Bt=class{key;instance;static fToken=Symbol("RegisterPluginInstanceRequest");constructor(i,e){this.key=i,this.instance=e}},Qg=(()=>{let t=class Ho{_store=d(M);handle({key:e,instance:n}){this._store.instances.add(e,n)}static \u0275fac=function(n){return new(n||Ho)};static \u0275prov=y({token:Ho,factory:Ho.\u0275fac})};return t=x([b(Bt)],t),t})(),zt=class{key;static fToken=Symbol("RemovePluginInstanceRequest");constructor(i){this.key=i}},Jg=(()=>{let t=class Go{_store=d(M);handle({key:e}){this._store.instances.remove(e)}static \u0275fac=function(n){return new(n||Go)};static \u0275prov=y({token:Go,factory:Go.\u0275fac})};return t=x([b(zt)],t),t})(),e0=[M,Xg,qg,Kg,Yg,Zg,Qg,Jg],t0=0,n0=(()=>{let t=class jo{_store=d(M);_browser=d(ke);get _backgroundElement(){return this._store.instances.get(ye.BACKGROUND)?.hostElement}handle(e){let n=this._getPatterns(e.fPattern?.hostElement);if(!n?.length)return;let o=kn("defs",this._browser);if(e.fPattern?.hostElement.remove(),n.forEach(r=>{o.append(r)}),n.length){this._backgroundElement?.firstChild?.appendChild(o),n[n.length-1].id="f-background-pattern-"+t0++;let r=n[n.length-1].id,a=kn("rect",this._browser);a.setAttribute("fill","url(#"+r+")"),a.setAttribute("width","100%"),a.setAttribute("height","100%"),this._backgroundElement?.firstChild?.appendChild(a);let s=this._store.fCanvas?.transform||Rt.default();e.fPattern?.setTransform(s)}}_getPatterns(e){return Array.from(e?.getElementsByTagName("pattern")||[])}static \u0275fac=function(n){return new(n||jo)};static \u0275prov=y({token:jo,factory:jo.\u0275fac})};return t=x([b(rc)],t),t})(),hi=class{fTransform;static fToken=Symbol("SetBackgroundTransformRequest");constructor(i){this.fTransform=i}},i0=(()=>{let t=class Uo{_store=d(M);handle(e){this._store.instances.get(ye.BACKGROUND)?.setTransform(e.fTransform)}static \u0275fac=function(n){return new(n||Uo)};static \u0275prov=y({token:Uo,factory:Uo.\u0275fac})};return t=x([b(hi)],t),t})(),o0=[n0,i0],cc=class{instance;static fToken=Symbol("AddCanvasToStoreRequest");constructor(i){this.instance=i}},r0=(()=>{let t=class Wo{_store=d(M);handle({instance:e}){this._store.fCanvas=e}static \u0275fac=function(n){return new(n||Wo)};static \u0275prov=y({token:Wo,factory:Wo.\u0275fac})};return t=x([b(cc)],t),t})(),dc=class{id;animated;static fToken=Symbol("CenterGroupOrNodeRequest");constructor(i,e){this.id=i,this.animated=e}},a0=(()=>{let t=class $o{_store=d(M);_mediator=d(R);get _transform(){return this._store.transform}handle({id:e,animated:n}){let o=this._store.nodes.get(e);o&&(this._toCenter(this._getNodeRect(o),this._getFlowRect(),o._position),this._mediator.execute(new Rn(n,nn.VIEWPORT_ONLY)))}_toCenter(e,n,o){this._transform.scaledPosition=A.initialize(),this._transform.position=A.initialize((n.width-e.width)/2-o.x*this._transform.scale,(n.height-e.height)/2-o.y*this._transform.scale)}_getNodeRect(e){return H.fromElement(e.hostElement)}_getFlowRect(){return H.fromElement(this._store.flowHost)}static \u0275fac=function(n){return new(n||$o)};static \u0275prov=y({token:$o,factory:$o.\u0275fac})};return t=x([b(dc)],t),t})(),lc=class{toCenter;animated;static fToken=Symbol("FitToFlowRequest");constructor(i,e){this.toCenter=i,this.animated=e}},s0=(()=>{let t=class qo{_store=d(M);get _transform(){return this._store.transform}_mediator=d(R);handle({toCenter:e,animated:n}){let o=this._mediator.execute(new Vn)||H.initialize();o.width===0||o.height===0||(this.fitToParent(o,H.fromElement(this._store.flowHost),this._store.nodes.getAll().map(r=>r._position),e),this._mediator.execute(new Rn(n,nn.VIEWPORT_ONLY)))}fitToParent(e,n,o,r){this._transform.scaledPosition=A.initialize(),this._transform.position=this._getZeroPositionWithoutScale(o);let a=e.width/this._transform.scale+r.x,s=e.height/this._transform.scale+r.y;(a>n.width||s>n.height||a<n.width&&s<n.height)&&(this._transform.scale=Math.min(n.width/a,n.height/s));let l=(n.width-a*this._transform.scale)/2-this._transform.position.x*this._transform.scale,u=(n.height-s*this._transform.scale)/2-this._transform.position.y*this._transform.scale;this._transform.position=A.initialize(l+r.x/2*this._transform.scale,u+r.y/2*this._transform.scale)}_getZeroPositionWithoutScale(e){let n=e.length?Math.min(...e.map(r=>r.x)):0,o=e.length?Math.min(...e.map(r=>r.y)):0;return A.initialize(n,o)}static \u0275fac=function(n){return new(n||qo)};static \u0275prov=y({token:qo,factory:qo.\u0275fac})};return t=x([b(lc)],t),t})(),uc=class{transform;position;static fToken=Symbol("InputCanvasPositionRequest");constructor(i,e){this.transform=i,this.position=e}},c0=(()=>{let t=class Xo{_store=d(M);handle({transform:e,position:n}){n&&(A.isEqual(this._calculateTransformPosition(e),n)||(e.position=n,e.scaledPosition=A.initialize(),this._store.fCanvas?.redraw()))}_calculateTransformPosition(e){return A.sum(e.position,e.scaledPosition)}static \u0275fac=function(n){return new(n||Xo)};static \u0275prov=y({token:Xo,factory:Xo.\u0275fac})};return t=x([b(uc)],t),t})(),fc=class{transform;scale;static fToken=Symbol("InputCanvasScaleRequest");constructor(i,e){this.transform=i,this.scale=e}},d0=(()=>{let t=class Ko{_store=d(M);handle(e){!e.scale&&e.scale!==0||(e.transform.scale=e.scale,this._store.fCanvas?.redraw())}static \u0275fac=function(n){return new(n||Ko)};static \u0275prov=y({token:Ko,factory:Ko.\u0275fac})};return t=x([b(fc)],t),t})(),nn=(function(t){return t.VIEWPORT_ONLY="VIEWPORT_ONLY",t.WITH_CONNECTION_CHANGES="WITH_CONNECTION_CHANGES",t})(nn||{}),Rn=class{animated;context;static fToken=Symbol("RedrawCanvasWithAnimationRequest");constructor(i,e=nn.WITH_CONNECTION_CHANGES){this.animated=i,this.context=e}};function zh(t,i){let e=n=>{n.propertyName==="transform"&&(t.removeEventListener("transitionend",e),i(n))};t.addEventListener("transitionend",e)}var l0=(()=>{let t=class Yo{_store=d(M);get _canvas(){return this._store.fCanvas}handle(e){e.animated?this._redrawWithAnimation(e.context):this._redraw(e.context),this._canvas?.emitCanvasChangeEvent()}_redrawWithAnimation(e){this._store.beginViewportAnimation(),this._canvas?.redrawWithAnimation(),zh(this._canvas.hostElement,()=>{this._store.endViewportAnimation(),e===nn.WITH_CONNECTION_CHANGES&&this._store.emitConnectionChanges()})}_redraw(e){this._canvas?.redraw(),e===nn.WITH_CONNECTION_CHANGES&&this._store.emitConnectionChanges()}static \u0275fac=function(n){return new(n||Yo)};static \u0275prov=y({token:Yo,factory:Yo.\u0275fac})};return t=x([b(Rn)],t),t})(),pc=class{static fToken=Symbol("RemoveCanvasFromStoreRequest")},u0=(()=>{let t=class Zo{_store=d(M);handle(e){this._store.fCanvas=void 0}static \u0275fac=function(n){return new(n||Zo)};static \u0275prov=y({token:Zo,factory:Zo.\u0275fac})};return t=x([b(pc)],t),t})(),hc=class{static fToken=Symbol("ResetScaleRequest")},f0=(()=>{let t=class Qo{_store=d(M);get _transform(){return this._store.transform}handle(e){this._transform.scale=1,this._transform.scaledPosition=A.initialize()}static \u0275fac=function(n){return new(n||Qo)};static \u0275prov=y({token:Qo,factory:Qo.\u0275fac})};return t=x([b(hc)],t),t})(),mc=class{animated;static fToken=Symbol("ResetScaleAndCenterRequest");constructor(i){this.animated=i}},p0=(()=>{let t=class Jo{_mediator=d(R);_store=d(M);get _transform(){return this._store.transform}handle({animated:e}){let n=this._mediator.execute(new Vn)||H.initialize();n.width===0||n.height===0||(this._oneToOneCentering(n,H.fromElement(this._store.flowHost),this._store.nodes.getAll().map(o=>o._position)),this._mediator.execute(new Rn(e,nn.VIEWPORT_ONLY)))}_oneToOneCentering(e,n,o){this._transform.scaledPosition=A.initialize(),this._transform.position=this._getZeroPositionWithoutScale(o);let r=(n.width-e.width/this._transform.scale)/2-this._transform.position.x,a=(n.height-e.height/this._transform.scale)/2-this._transform.position.y;this._transform.scale=1,this._transform.position=A.initialize(r,a)}_getZeroPositionWithoutScale(e){let n=e.length?Math.min(...e.map(r=>r.x)):0,o=e.length?Math.min(...e.map(r=>r.y)):0;return A.initialize(n,o)}static \u0275fac=function(n){return new(n||Jo)};static \u0275prov=y({token:Jo,factory:Jo.\u0275fac})};return t=x([b(mc)],t),t})(),_c=class{scale;toPosition;static fToken=Symbol("UpdateScaleRequest");constructor(i,e){this.scale=i,this.toPosition=e}},h0=(()=>{let t=class er{_store=d(M);get _transform(){return this._store.transform}handle({scale:e,toPosition:n}){if(e===this._transform.scale)return;let o=A.sum(this._transform.scaledPosition,this._transform.position),r=n.x-(n.x-o.x)*e/this._transform.scale,a=n.y-(n.y-o.y)*e/this._transform.scale;this._transform.scale=e,this._transform.scaledPosition=A.sub(A.initialize(r,a),this._transform.position)}static \u0275fac=function(n){return new(n||er)};static \u0275prov=y({token:er,factory:er.\u0275fac})};return t=x([b(_c)],t),t})(),m0=[r0,a0,s0,c0,d0,l0,u0,f0,p0,h0],Qu=class{connection;static fToken=Symbol("AddConnectionForCreateToStoreRequest");constructor(i){this.connection=i}},_0=(()=>{let t=class tr{_store=d(M);handle({connection:e}){this._store.connections.addForCreate(e)}static \u0275fac=function(n){return new(n||tr)};static \u0275prov=y({token:tr,factory:tr.\u0275fac})};return t=x([b(Qu)],t),t})(),gc=class{instance;static fToken=Symbol("AddConnectionMarkerToStoreRequest");constructor(i){this.instance=i}},g0=(()=>{let t=class nr{_store=d(M);handle({instance:e}){this._store.connectionMarkers.add(e),this._store.emitNodeChanges()}static \u0275fac=function(n){return new(n||nr)};static \u0275prov=y({token:nr,factory:nr.\u0275fac})};return t=x([b(gc)],t),t})(),yc=class{connection;static fToken=Symbol("AddConnectionToStoreRequest");constructor(i){this.connection=i}},y0=(()=>{let t=class ir{_store=d(M);handle({connection:e}){this._store.connections.add(e),this._store.emitConnectionChanges()}static \u0275fac=function(n){return new(n||ir)};static \u0275prov=y({token:ir,factory:ir.\u0275fac})};return t=x([b(yc)],t),t})(),Ju=class{connection;static fToken=Symbol("AddSnapConnectionToStoreRequest");constructor(i){this.connection=i}},v0=(()=>{let t=class or{_store=d(M);handle({connection:e}){this._store.connections.addForSnap(e)}static \u0275fac=function(n){return new(n||or)};static \u0275prov=y({token:or,factory:or.\u0275fac})};return t=x([b(Ju)],t),t})(),On=class{connection;static fToken=Symbol("CreateConnectionMarkersRequest");constructor(i){this.connection=i}},ph=new pe("F_CONNECTION_CONTENT");var vc=class t{points;cumulativeLengths;segmentTangents;totalLength;constructor(i){let e=t._removeConsecutiveDuplicates(i);if(e.length<2){this.points=[{x:0,y:0},{x:1,y:0}],this.cumulativeLengths=[0,1],this.segmentTangents=[{x:1,y:0}],this.totalLength=1;return}this.points=e;let n=this.points.length,o=n-1,r=new Array(n).fill(0),a=new Array(o),s=0;for(let l=0;l<o;l++){let u=this.points[l+1].x-this.points[l].x,h=this.points[l+1].y-this.points[l].y,g=Math.hypot(u,h),C=g?u/g:1,w=g?h/g:0;a[l]={x:C,y:w},s+=g,r[l+1]=s}this.cumulativeLengths=r,this.segmentTangents=a,this.totalLength=s||1}static from(i){return new t(i.map(e=>({x:e.x,y:e.y})))}static _removeConsecutiveDuplicates(i){let e=[];for(let n of i){let o=e[e.length-1];(!o||o.x!==n.x||o.y!==n.y)&&e.push({x:n.x,y:n.y})}return e}},ef=class t{_polyline;constructor(i=[]){this._polyline=new vc(i)}updatePoints(i){return this._polyline=new vc(i),this._polyline.totalLength}calculateTotalLength(i){return this.updatePoints(i)}get totalLength(){return this._polyline.totalLength}getPointAtProgress(i){let{points:e,cumulativeLengths:n,segmentTangents:o,totalLength:r}=this._polyline,s=t._clamp(i,0,1)*r,l=.5;if(s<=l)return{point:e[0],tangent:o[0]??{x:1,y:0},atEdge:!0};if(r-s<=l){let O=e.length-1;return{point:e[O],tangent:o[O-1]??{x:1,y:0},atEdge:!0}}let u=t._findRightIndex(n,s),h=Math.max(1,u),g=n[h-1],C=n[h],w=t._safeRatio(s-g,C-g),P=e[h-1],T=e[h],k={x:t._lerp(P.x,T.x,w),y:t._lerp(P.y,T.y,w)},N=o[h-1]??{x:1,y:0};return{point:k,tangent:N,atEdge:!1}}getPointAtLength(i){return this.getPointAtProgress(i)}getPointAtDistance(i){let e=this._polyline.totalLength?i/this._polyline.totalLength:0;return this.getPointAtProgress(e)}static _findRightIndex(i,e){let n=0,o=i.length-1;for(;n<o;){let r=n+o>>1;i[r]<e?n=r+1:o=r}return n}static _lerp(i,e,n){return i+(e-i)*n}static _clamp(i,e,n){return i<e?e:i>n?n:i}static _safeRatio(i,e){let n=Math.abs(e)<1e-6?1e-6:e;return i/n}},Vh=(function(t){return t.NONE="none",t.ALONG="along",t})(Vh||{}),tf=class{compute(i,e){let n=this._clamp01(e.position()),{point:o,tangent:r}=i.getPointAtLength(n),a={x:-r.y,y:r.x},s=e.offset()??0,l=o.x+a.x*s,u=o.y+a.y*s,g=this._sizeAlongDirection(e.hostElement,r)*.5,C=n*i.totalLength,w=i.totalLength-C,P=this._applyEdgeGuard(l,u,r,C,w,g),T=this._calculateContentRotation(e.align(),r);return{position:P,rotationDeg:T}}_clamp01(i){return i<=0?0:i>=1?1:i}_applyEdgeGuard(i,e,n,o,r,a){if(o<=a){let s=a-o;return{x:i+n.x*s,y:e+n.y*s}}if(r<=a){let s=a-r;return{x:i-n.x*s,y:e-n.y*s}}return{x:i,y:e}}_sizeAlongDirection(i,e){let n=H.fromElement(i);return Math.abs(e.x)*n.width+Math.abs(e.y)*n.height}_normalize180(i){let e=(i+180)%360;return e<0&&(e+=360),e-180}_keepUpright(i){let e=this._normalize180(i);return e>90?e-=180:e<-90&&(e+=180),e}_calculateContentRotation(i,e){let n=0;return i===Vh.ALONG&&(n=Math.atan2(e.y,e.x)*180/Math.PI,n=this._keepUpright(n)),n}},nf=class{_placement;constructor(i=new tf){this._placement=i}layout(i,e){let n=new ef(i),o=n.totalLength;for(let r of e){let{position:a,rotationDeg:s}=this._placement.compute(n,r);r.hostElement.style.transform=this._createTransformString(a,s)}return o}_createTransformString(i,e){return`translate3d(${i.x}px, ${i.y}px, 0) translate(-50%, -50%) rotate(${e}deg)`}};var hh=new pe("F_CONNECTION_WAYPOINTS");function Hh(t,i,e){return(t.x-i.x)**2+(t.y-i.y)**2<=e**2}function C0(t,i){let e=t.fWaypoints(),n=e?.radius()||8;return e?.candidates().find(o=>Hh(i,o,n))}function x0(t,i){let e=t.fWaypoints(),n=e?.radius()||8;return e?.waypoints().find(o=>Hh(i,o,n))}function b0(t,i){for(let e of t){let n=x0(e,i);if(n&&e.fWaypoints()?.visibility())return{connection:e,waypoint:n};let o=C0(e,i);if(o&&e.fWaypoints()?.visibility())return{connection:e,candidate:o}}}var Al=new pe("F_CONNECTION_COMPONENTS_PARENT");var fe=(function(t){return t.START="f-connection-marker-start",t.END="f-connection-marker-end",t.SELECTED_START="f-connection-selected-marker-start",t.SELECTED_END="f-connection-selected-marker-end",t.START_ALL_STATES="f-connection-marker-start-all-states",t.END_ALL_STATES="f-connection-marker-end-all-states",t})(fe||{}),Cc=new pe("F_CONNECTION_MARKER"),w0=0,xc=class{fId=W(`f-marker-${w0++}`);hostElement=d(we).nativeElement};function Gh(t,i=fe.START){if(typeof t!="string")return i;let e=t.trim().toLowerCase();return e?S0(e)??i:i}function S0(t){switch(t){case"start":case"f-connection-marker-start":return fe.START;case"end":case"f-connection-marker-end":return fe.END;case"selected-start":case"f-connection-selected-marker-start":return fe.SELECTED_START;case"selected-end":case"f-connection-selected-marker-end":return fe.SELECTED_END;case"start-all-states":case"f-connection-marker-start-all-states":case"start-all":case"all-start":return fe.START_ALL_STATES;case"end-all-states":case"f-connection-marker-end-all-states":case"end-all":case"all-end":return fe.END_ALL_STATES;default:return null}}var jh=(()=>{class t extends xc{_markerElement=Se.required("markerElement");_type=F(fe.END_ALL_STATES,{alias:"type",transform:e=>Gh(e,fe.END_ALL_STATES)});get markerElement(){return this._markerElement().nativeElement}width=6;height=7;refX=5.5;refY=3.5;get type(){return this._type()}orient="auto";markerUnits="strokeWidth";static \u0275fac=(()=>{let e;return function(o){return(e||(e=ne(t)))(o||t)}})();static \u0275cmp=J({type:t,selectors:[["f-connection-marker-arrow"]],viewQuery:function(n,o){n&1&&ut(o._markerElement,Sg,5),n&2&&it()},hostAttrs:[1,"f-component",2,"display","none"],inputs:{_type:[1,"type","_type"]},features:[ge([{provide:Cc,useExisting:t}]),_e],decls:3,vars:0,consts:[["markerElement",""],["viewBox","0 0 6 6",1,"f-marker"],["d","M0,0 L6,3 0,6Z"]],template:function(n,o){n&1&&(Ze(),U(0,"svg",1,0),Dt(2,"path",2),$())},encapsulation:2})}return t})();var Uh=(()=>{class t extends xc{_mediator=d(R);markerElement=this.hostElement;width=0;height=0;refX=0;refY=0;type=fe.START;orient="auto";markerUnits="strokeWidth";ngOnInit(){this.hostElement.style.display="none",this._mediator.execute(new gc(this))}ngOnDestroy(){this._mediator.execute(new Uc(this))}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ne(t)))(o||t)}})();static \u0275dir=Ce({type:t,selectors:[["svg","fMarker",""]],hostAttrs:[1,"f-component","f-marker"],inputs:{width:"width",height:"height",refX:"refX",refY:"refY",type:[2,"type","type",e=>Gh(e,fe.START)],orient:"orient",markerUnits:"markerUnits"},standalone:!1,features:[ge([{provide:Cc,useExisting:t}]),_e]})}return t})(),Ft=(function(t){return t.FIXED="fixed",t.FIXED_CENTER="fixed_center",t.FLOATING="floating",t})(Ft||{}),Xe=(function(t){return t.DEFAULT="default",t.TOP="top",t.BOTTOM="bottom",t.LEFT="left",t.RIGHT="right",t.CALCULATE="calculate",t.CALCULATE_HORIZONTAL="calculate_horizontal",t.CALCULATE_VERTICAL="calculate_vertical",t})(Xe||{});function I0({sourceRect:t,targetRect:i}){return{point1:t.gravityCenter,point2:i.gravityCenter}}var L=(function(t){return t.LEFT="left",t.TOP="top",t.RIGHT="right",t.BOTTOM="bottom",t.CALCULATE="calculate",t.CALCULATE_HORIZONTAL="calculate_horizontal",t.CALCULATE_VERTICAL="calculate_vertical",t.AUTO="auto",t})(L||{}),Pn=(function(t){return t.SEGMENT="segment",t.STRAIGHT="straight",t.BEZIER="bezier",t.ADAPTIVE_CURVE="adaptive-curve",t})(Pn||{});function T0({sourceRect:t,sourceConnectableSide:i,targetRect:e,targetConnectableSide:n}){return{point1:mh(t,i===L.AUTO?L.BOTTOM:i),point2:mh(e,n===L.AUTO?L.TOP:n)}}function mh(t,i){switch(i){case L.TOP:return{x:t.x+t.width/2,y:t.y};case L.BOTTOM:return{x:t.x+t.width/2,y:t.y+t.height};case L.LEFT:return{x:t.x,y:t.y+t.height/2};case L.RIGHT:return{x:t.x+t.width,y:t.y+t.height/2};default:throw new Error(`Unknown side: ${i}`)}}function Wh(t,i,e,n){if(!n||!n.rotationDeg)return Tn.getRoundedRectIntersections(t,i,e)[0];let o=rr(t,-n.rotationDeg,n.pivot),r=rr(i,-n.rotationDeg,n.pivot),a=E0(e,-n.rotationDeg,n.pivot),s=Tn.getRoundedRectIntersections(o,r,a)[0];return s?rr(s,n.rotationDeg,n.pivot):void 0}function E0(t,i,e){let n=rr(P0(t),i,e);return new Me(n.x-t.width/2,n.y-t.height/2,t.width,t.height,t.radius1,t.radius2,t.radius3,t.radius4)}function P0(t){return{x:t.x+t.width/2,y:t.y+t.height/2}}function rr(t,i,e){let n=t.x-e.x,o=t.y-e.y,r=i*Math.PI/180,a=Math.cos(r),s=Math.sin(r);return{x:n*a-o*s+e.x,y:n*s+o*a+e.y}}function D0({sourceRect:t,targetRect:i,sourceRotationContext:e,targetRotationContext:n}){return N0(M0(t,i,e),k0(t,i,n),t,i)}function M0(t,i,e){return Wh(t.gravityCenter,i.gravityCenter,t,e)}function k0(t,i,e){return Wh(i.gravityCenter,t.gravityCenter,i,e)}function N0(t,i,e,n){return{point1:t||e.gravityCenter,point2:i||n.gravityCenter}}var Oo=.5,R0={[Ft.FLOATING]:D0,[Ft.FIXED_CENTER]:I0,[Ft.FIXED]:T0},$n=(()=>{class t{handle(e){let n=this._calculateDirectionalVectors(e.sourceRect.gravityCenter.x,e.sourceRect.gravityCenter.y,e.targetRect.gravityCenter.x,e.targetRect.gravityCenter.y),o=this._determineSourceSide(e,n),r=this._determineTargetSide(e,n);return e.connection._applyResolvedSidesToConnection(o,r),this._getBehaviorHandler(e.connection.fBehavior)({sourceRect:e.sourceRect,targetRect:e.targetRect,sourceConnectableSide:o,targetConnectableSide:r,sourceRotationContext:e.sourceRotationContext,targetRotationContext:e.targetRotationContext})}_calculateDirectionalVectors(e,n,o,r){let a=o-e,s=r-n;return{sourceToTargetX:a,sourceToTargetY:s,targetToSourceX:-a,targetToSourceY:-s}}_determineSourceSide(e,n){return this._resolveConnectableSide(e.connection.fOutputSide(),n.sourceToTargetX,n.sourceToTargetY,e.sourceConnectableSide)}_determineTargetSide(e,n){return this._resolveConnectableSide(e.connection.fInputSide(),n.targetToSourceX,n.targetToSourceY,e.targetConnectableSide)}_resolveConnectableSide(e,n,o,r){if(e===Xe.DEFAULT)return r;let a=Math.abs(n),s=Math.abs(o);if(a<Oo&&s<Oo)return r;let u=a>=s;switch(e){case Xe.CALCULATE:return u?n>=0?L.RIGHT:L.LEFT:o>=0?L.BOTTOM:L.TOP;case Xe.CALCULATE_HORIZONTAL:return a<Oo?r:n>=0?L.RIGHT:L.LEFT;case Xe.CALCULATE_VERTICAL:return s<Oo?r:o>=0?L.BOTTOM:L.TOP;case Xe.TOP:return L.TOP;case Xe.BOTTOM:return L.BOTTOM;case Xe.LEFT:return L.LEFT;case Xe.RIGHT:return L.RIGHT;default:return r}}_getBehaviorHandler(e){let n=R0[e];if(!n)throw new Error(`[Behavior] No handler for behavior: ${e}`);return n}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac})}return t})(),ht=class{sourceRect;targetRect;connection;sourceConnectableSide;targetConnectableSide;sourceRotationContext;targetRotationContext;constructor(i,e,n,o,r,a,s){this.sourceRect=i,this.targetRect=e,this.connection=n,this.sourceConnectableSide=o,this.targetConnectableSide=r,this.sourceRotationContext=a,this.targetRotationContext=s}};function Ll(t,i,e){return[t,...e??[],i]}function O0(t,i){let e=Math.abs(i.x-t.x)/2,n=i.x<t.x?i.x+e:i.x-e,o=Math.abs(i.y-t.y)/2,r=i.y<t.y?i.y+o:i.y-o;return{x:n,y:r}}function F0(t,i=32){let e=new Array(i+1);e[0]=se({},t[0]);for(let n=1;n<=i;n++)e[n]=$h(t[0],t[1],t[2],t[3],n/i);return e}function $h(t,i,e,n,o){let r=1-o,a=o*o,s=r*r,l=s*r,u=a*o;return{x:l*t.x+3*s*o*i.x+3*r*a*e.x+u*n.x,y:l*t.y+3*s*o*i.y+3*r*a*e.y+u*n.y}}function qh(t){return t.map(i=>$h(i.p0,i.c1,i.c2,i.p3,.5))}function A0(t){if(t.length<2)throw new Error("Polylines must be at least two points");let i=L0(t);return i<=0?[se({},t[0])]:[B0(t,i/2)]}function L0(t){let i=0;for(let e=0;e<t.length-1;e++)i+=Xh(t[e],t[e+1]);return i}function B0(t,i){let e=0;for(let o=0;o<t.length-1;o++){let r=t[o],a=t[o+1],s=Xh(r,a);if(!(s<=0)){if(e+s>=i){let l=(i-e)/s;return{x:r.x+(a.x-r.x)*l,y:r.y+(a.y-r.y)*l}}e+=s}}let n=t[t.length-1];return{x:n.x,y:n.y}}function Xh(t,i){return Math.hypot(i.x-t.x,i.y-t.y)}function z0(t){let i=[];for(let e of t)for(let n of e){let o=i[i.length-1];(!o||o.x!==n.x||o.y!==n.y)&&i.push(n)}return i}function Kh(t){if(!t.length)return"";let i=`M ${t[0].p0.x} ${t[0].p0.y}`;for(let e=0;e<t.length;e++){let n=t[e],o=e===t.length-1,r=o?n.p3.x+2e-4:n.p3.x,a=o?n.p3.y+2e-4:n.p3.y;i+=` C ${n.c1.x} ${n.c1.y}, ${n.c2.x} ${n.c2.y}, ${r} ${a}`}return i}function Yh(t,i=16){if(!t.length)return[];let e=[];for(let n=0;n<t.length;n++){let o=t[n],r=F0([o.p0,o.c1,o.c2,o.p3],i);n>0&&r.shift(),e.push(...r)}return e}function V0(t,i=1e-6){let e=t.length;if(e<=2)return t;let n=[];n.push(t[0]);for(let r=1;r<e;r++){let a=t[r],s=n[n.length-1];(Math.abs(a.x-s.x)>i||Math.abs(a.y-s.y)>i)&&n.push(a)}if(n.length<=2)return n;let o=[];o.push(n[0]);for(let r=1;r<n.length-1;r++){let a=o[o.length-1],s=n[r],l=n[r+1],u=Math.abs(a.x-s.x)<=i&&Math.abs(s.x-l.x)<=i,h=Math.abs(a.y-s.y)<=i&&Math.abs(s.y-l.y)<=i;!u&&!h&&o.push(s)}return o.push(n[n.length-1]),o}var of=class t{static _dir(i){switch(i){case L.LEFT:return{x:-1,y:0};case L.RIGHT:return{x:1,y:0};case L.TOP:return{x:0,y:-1};case L.BOTTOM:return{x:0,y:1};case L.AUTO:return{x:0,y:0}}return{x:0,y:0}}static _isHorizontal(i){return i===L.LEFT||i===L.RIGHT}static _handleLength(i,e,n,o){let r=Math.abs(e.x-i.x),a=Math.abs(e.y-i.y),s=Math.hypot(r,a),l=n===L.AUTO?Math.max(r,a):this._isHorizontal(n)?r:a,u=Math.max(8,o),h=o+.5*s,g=o*1.05+l*.3;return Math.min(h,Math.max(u,g))}static _softControl(i,e,n,o){let r=this._dir(i),a=n.x-e.x,s=n.y-e.y,l=Math.hypot(a,s)||1,u=a/l,h=s/l;if(i===L.AUTO)return{x:e.x+u*o,y:e.y+h*o};let g=r.x*u+r.y*h,C=.12,w=Math.max(0,-g)*.08,P=Math.min(.2,C+w),T=r.x*(1-P)+u*P,k=r.y*(1-P)+h*P,N=Math.hypot(T,k)||1;return{x:e.x+T/N*o,y:e.y+k/N*o}}handle({source:i,sourceSide:e,target:n,targetSide:o,offset:r,waypoints:a}){let s=Math.max(0,r??0),l=Ll(i,n,a),u=[];for(let g=0;g<l.length-1;g++){let C=l[g],w=l[g+1],P=t._handleLength(C,w,e,s),T=t._handleLength(w,C,o,s),k=t._softControl(e,C,w,P),N=t._softControl(o,w,C,T);u.push({p0:C,c1:k,c2:N,p3:w,chainIndex:g})}let h=Yh(u,12);return{path:Kh(u),secondPoint:u[0]?.c1??i,penultimatePoint:u[u.length-1]?.c2??n,points:h,candidates:qh(u)}}},rf=class{handle({source:i,sourceSide:e,target:n,targetSide:o,offset:r,waypoints:a}){let s=Ll(i,n,a),l=[];for(let h=0;h<s.length-1;h++){let g=s[h],C=s[h+1],w=_h(e,g,C,r??0),P=_h(o,C,g,r??0);l.push({p0:g,c1:w,c2:P,p3:C,chainIndex:h})}let u=Yh(l,12);return{path:Kh(l),secondPoint:l[0]?.c1??i,penultimatePoint:l[l.length-1]?.c2??n,points:u,candidates:qh(l)}}};function _h(t,i,e,n){let o={x:i.x,y:i.y};switch(t){case L.LEFT:o.x-=Fo(i.x-e.x,n);break;case L.RIGHT:o.x+=Fo(e.x-i.x,n);break;case L.TOP:o.y-=Fo(i.y-e.y,n);break;case L.BOTTOM:o.y+=Fo(e.y-i.y,n);break;case L.AUTO:break}return o}function Fo(t,i){return t>=i?t:i*Math.sqrt(i-t)}function H0(t){let{axis:i,source:e,target:n,sourceSide:o,targetSide:r,sourceGap:a,targetGap:s,sourceDir:l,targetDir:u,currentDir:h,offset:g,sourceGapOffset:C,targetGapOffset:w}=t,P=G0(a,s),T=j0(i,l,h,P);return o===r?U0(i,e,n,g,l,h,a,s,C,w):T=W0(i,l,u,a,s,P,T),T}function G0(t,i){return{sourceTarget:[{x:t.x,y:i.y}],targetSource:[{x:i.x,y:t.y}]}}function j0(t,i,e,n){return t==="x"?i.x===e?n.targetSource:n.sourceTarget:i.y===e?n.sourceTarget:n.targetSource}function U0(t,i,e,n,o,r,a,s,l,u){let h=Math.abs(i[t]-e[t]);if(h>n)return;let g=Math.min(n-1,n-h);g<=0||(o[t]===r?l[t]=(a[t]>i[t]?-1:1)*g:u[t]=(s[t]>e[t]?-1:1)*g)}function W0(t,i,e,n,o,r,a){let s=t==="x"?"y":"x",l=i[t]===e[s],u=n[s]>o[s],h=n[s]<o[s];return i[t]===1&&(!l&&u||l&&h)||i[t]!==1&&(!l&&h||l&&u)?t==="x"?r.sourceTarget:r.targetSource:a}var ui=1e-6,gh=2e-4,$0=.75;function q0(t,i){let e=t.length,n=[];n.push(`M ${t[0].x} ${t[0].y}`);for(let r=1;r<e-1;r++)n.push(X0(t[r-1],t[r],t[r+1],i));let o=t[e-1];return n.push(`L ${o.x+gh} ${o.y+gh}`),n.join(" ")}function X0(t,i,e,n){let o=i.x,r=i.y;if(n<=0)return`L ${o} ${r}`;let a=Math.abs(t.x-o)<=ui&&Math.abs(o-e.x)<=ui,s=Math.abs(t.y-r)<=ui&&Math.abs(r-e.y)<=ui;if(a||s)return`L ${o} ${r}`;let l=Math.hypot(o-t.x,r-t.y),u=Math.hypot(e.x-o,e.y-r),h=Math.min(l*.5,u*.5,n);if(h<$0)return`L ${o} ${r}`;if(Math.abs(t.y-r)<=ui){let k=t.x<e.x?-1:1,N=t.y<e.y?1:-1,O=o+h*k,V=r+h*N;return`L ${O} ${r} Q ${o} ${r} ${o} ${V}`}let C=t.x<e.x?1:-1,w=t.y<e.y?-1:1,P=r+h*w,T=o+h*C;return`L ${o} ${P} Q ${o} ${r} ${T} ${r}`}var yh={[L.LEFT]:A.initialize(-1,0),[L.RIGHT]:A.initialize(1,0),[L.TOP]:A.initialize(0,-1),[L.BOTTOM]:A.initialize(0,1),[L.AUTO]:A.initialize(0,0)},af=class{handle({source:i,sourceSide:e,target:n,targetSide:o,waypoints:r,offset:a,radius:s}){let l=Ll(i,n,r),u=[],h=[];for(let P=0;P<l.length-1;P++){let T=l[P],k=l[P+1],N=this._getPathPoints(T,e,k,o,a??0);u.push(N),h.push(...A0(N))}let g=V0(z0(u)),C=g.length>1?g[g.length-2]:i,w=g.length>1?g[1]:n;return{path:q0(g,s??0),penultimatePoint:C,secondPoint:w,points:g,candidates:h}}_getPathPoints(i,e,n,o,r){let a=yh[e],s=yh[o],l={x:i.x+a.x*r,y:i.y+a.y*r},u={x:n.x+s.x*r,y:n.y+s.y*r},h=this._getDirection(l,e,u),g=h.x!==0?"x":"y",C=h[g],w=[],P=A.initialize(),T=A.initialize(),k=O0(i,n);if(a[g]*s[g]===-1){let N=[{x:k.x,y:l.y},{x:k.x,y:u.y}],O=[{x:l.x,y:k.y},{x:u.x,y:k.y}];a[g]===C?w=g==="x"?N:O:w=g==="x"?O:N}else w=H0({axis:g,source:i,target:n,sourceSide:e,targetSide:o,sourceGap:l,targetGap:u,sourceDir:a,targetDir:s,currentDir:C,offset:r,sourceGapOffset:P,targetGapOffset:T});return[i,{x:l.x+P.x,y:l.y+P.y},...w,{x:u.x+T.x,y:u.y+T.y},n]}_getDirection(i,e,n){return e===L.LEFT||e===L.RIGHT?i.x<n.x?A.initialize(1,0):A.initialize(-1,0):i.y<n.y?A.initialize(0,1):A.initialize(0,-1)}},vh=2e-4,sf=class{handle(i){let e=Ll(i.source,i.target,i.waypoints),n=e.length,o=e[0],r=`M ${o.x} ${o.y}`,a=new Array(n-1);for(let s=0;s<n-1;s++){let l=e[s],u=e[s+1],h=s===n-2,g=h?u.x+vh:u.x,C=h?u.y+vh:u.y;r+=` L ${g} ${C}`,a[s]={x:(l.x+u.x)*.5,y:(l.y+u.y)*.5}}return{path:r,candidates:a,points:e,secondPoint:e[1]??i.target,penultimatePoint:e[n-2]??i.source}}},K0=new pe("F_CONNECTION_BUILDERS"),Zh=(()=>{class t{_builtinBuilders={[Pn.STRAIGHT]:new sf,[Pn.BEZIER]:new rf,[Pn.ADAPTIVE_CURVE]:new of,[Pn.SEGMENT]:new af};_providedBuilders;_builders;constructor(){this._providedBuilders=d(K0,{optional:!0})||{},this._builders=se(se({},this._builtinBuilders),this._providedBuilders)}handle({type:e,payload:n}){let o=this._builders[e];if(!o)throw this._createBuilderNotFoundError(e);return o.handle(n)}_createBuilderNotFoundError(e){let n=Object.keys(this._builtinBuilders).sort(),o=Object.keys(this._providedBuilders).sort(),r=Object.keys(this._builders).sort(),a=n.filter(l=>l in this._providedBuilders).sort(),s=[`Connection Builder Error: builder type "${e}" not found.`,`Registered types: ${r.length?r.join(", "):"(none)"}`,`Built-in types: ${n.length?n.join(", "):"(none)"}`,`Provided (F_CONNECTION_BUILDERS) types: ${o.length?o.join(", "):"(none)"}`,a.length?`Overridden built-ins: ${a.join(", ")}`:null,"Tip: ensure you pass a valid Connection Type or provide a builder via F_CONNECTION_BUILDERS."].filter(Boolean);return new Error(s.join(`
2
2
  `))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac})}return t})();function Y0(t,i,e){return It("connection_"+t+i+e)}function Z0(t,i,e){return It("connection_for_selection_"+t+i+e)}function Qh(t){return It("connection_gradient_"+t)}function Q0(t){return`url(#${Qh(t)})`}var J0=(()=>{class t{_connection=d(Al);_hostElement=d(we).nativeElement;_injector=d(Qe);_hostAttributes=new Map;_startColor;_endColor;gradientId=D(()=>Qh(this._connection.fId()));ngOnInit(){this._listenColorChanges()}_listenColorChanges(){ae(()=>{this.gradient().fStartColor(),this.gradient().fEndColor(),gt(()=>{this._updateGradient()})},{injector:this._injector})}get stop1Element(){return this._hostElement.children.item(0)}get stop2Element(){return this._hostElement.children.item(1)}redraw(e){let n=e.point2.x-e.point1.x,o=e.point2.y-e.point1.y,r=Math.sqrt(n*n+o*o)||.01,a=new K(.5-.5*n/r,.5-.5*o/r);this._setHostAttribute("x1",a.x.toString()),this._setHostAttribute("y1",a.y.toString());let s=new K(.5+.5*n/r,.5+.5*o/r);this._setHostAttribute("x2",s.x.toString()),this._setHostAttribute("y2",s.y.toString()),this._updateGradient()}_updateGradient(){let e=this.gradient();this._setFromColor(e.fStartColor()),this._setToColor(e.fEndColor())}_setFromColor(e){let n=e||"transparent";this._startColor!==n&&(this._startColor=n,this.stop1Element.setAttribute("stop-color",n),this.stop1Element.style.setProperty("stop-color",n))}_setToColor(e){let n=e||"transparent";this._endColor!==n&&(this._endColor=n,this.stop2Element.setAttribute("stop-color",n),this.stop2Element.style.setProperty("stop-color",n))}_setHostAttribute(e,n){this._hostAttributes.get(e)!==n&&(this._hostAttributes.set(e,n),this._hostElement.setAttribute(e,n))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Ce({type:t,standalone:!1})}return t})(),cf=(()=>{class t extends J0{gradient=F.required({alias:"fConnectionGradientRendererFor"});static \u0275fac=(()=>{let e;return function(o){return(e||(e=ne(t)))(o||t)}})();static \u0275cmp=J({type:t,selectors:[["linearGradient","fConnectionGradientRenderer",""]],hostVars:1,hostBindings:function(n,o){n&2&&Y("id",o.gradientId())},inputs:{gradient:[1,"fConnectionGradientRendererFor","gradient"]},features:[_e],attrs:Ig,decls:3,vars:0,consts:[[0,"xmlns","svg","http://www.w3.org/2000/svg"],["offset","0%"],["offset","100%"]],template:function(n,o){n&1&&(uo(0,0),Ze(),Dt(1,"stop",1)(2,"stop",2),fo())},encapsulation:2,changeDetection:0})}return t})(),Ch=new pe("F_CONNECTION_GRADIENT");var df=new pe("F_CONNECTION_PATH"),lf=class{hostElement=d(we).nativeElement},ey=(()=>{class t extends lf{_connection=d(Al);useGradient=F(!1);linkToGradient=D(()=>this.useGradient()?Q0(this._connection.fId()):null);get fPathId(){return this._connection.fId()}get attrConnectionId(){return Y0(this._connection.fId(),this._connection.fOutputId(),this._connection.fInputId())}initialize(){this.deselect()}setPath(e){this.hostElement.setAttribute("d",`${e}`)}select(){this.hostElement.setAttribute("marker-start",`url(#${iy(this._connection.fId())})`),this.hostElement.setAttribute("marker-end",`url(#${oy(this._connection.fId())})`)}deselect(){this.hostElement.setAttribute("marker-start",`url(#${ty(this._connection.fId())})`),this.hostElement.setAttribute("marker-end",`url(#${ny(this._connection.fId())})`)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ne(t)))(o||t)}})();static \u0275cmp=J({type:t,selectors:[["path","f-connection-path",""]],hostAttrs:[1,"f-component","f-connection-path"],hostVars:4,hostBindings:function(n,o){n&2&&(Y("id",o.attrConnectionId)("data-f-path-id",o.fPathId),ot("stroke",o.linkToGradient()))},inputs:{useGradient:[1,"useGradient"]},standalone:!1,features:[ge([{provide:df,useExisting:t}]),_e],attrs:Tg,decls:0,vars:0,template:function(n,o){},styles:["[_nghost-%COMP%]{fill:none;pointer-events:stroke}"],changeDetection:0})}return t})();function ty(t){return It(`f-connection-marker-start-${t}`)}function ny(t){return It(`f-connection-marker-end-${t}`)}function iy(t){return It(`f-connection-selected-marker-start-${t}`)}function oy(t){return It(`f-connection-selected-marker-end-${t}`)}var uf=new pe("F_CONNECTION_SELECTION"),ff=class{hostElement=d(we).nativeElement},ry=(()=>{class t extends ff{_connection=d(Al);get connectionForSelectionId(){return Z0(this._connection.fId(),this._connection.fOutputId(),this._connection.fInputId())}setPath(e){this.hostElement.setAttribute("d",`${e}`)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ne(t)))(o||t)}})();static \u0275cmp=J({type:t,selectors:[["path","fConnectionSelection",""]],hostAttrs:[1,"f-component","f-connection-selection"],hostVars:1,hostBindings:function(n,o){n&2&&Y("id",o.connectionForSelectionId)},standalone:!1,features:[ge([{provide:uf,useExisting:t}]),_e],attrs:Eg,decls:0,vars:0,template:function(n,o){},styles:["[_nghost-%COMP%]{fill:none;pointer-events:stroke}"],changeDetection:0})}return t})(),pf=new pe("F_CONNECTION_DRAG_HANDLE_END"),hf=new pe("F_CONNECTION_DRAG_HANDLE_START"),bc=class{hostElement=d(we).nativeElement;point=A.initialize();class="f-connection-drag-handle";calculateCircleCenter(i,e,n){let o={x:e.x-i.x,y:e.y-i.y},r=Math.sqrt(o.x*o.x+o.y*o.y)||1,a={x:o.x/r,y:o.y/r},s={x:a.x*n,y:a.y*n};return{x:e.x-s.x,y:e.y-s.y}}},ay=(()=>{class t extends bc{redraw(e,n){this.point=this.calculateCircleCenter(e,n,8),this.hostElement.setAttribute("cx",this.point.x.toString()),this.hostElement.setAttribute("cy",this.point.y.toString())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ne(t)))(o||t)}})();static \u0275cmp=J({type:t,selectors:[["circle","f-connection-drag-handle-start",""]],hostVars:2,hostBindings:function(n,o){n&2&&Ve(o.class)},standalone:!1,features:[ge([{provide:hf,useExisting:t}]),_e],attrs:Pg,decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})(),sy=(()=>{class t extends bc{redraw(e,n){this.point=this.calculateCircleCenter(e,n,8),this.hostElement.setAttribute("cx",this.point.x.toString()),this.hostElement.setAttribute("cy",this.point.y.toString())}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ne(t)))(o||t)}})();static \u0275cmp=J({type:t,selectors:[["circle","f-connection-drag-handle-end",""]],hostVars:2,hostBindings:function(n,o){n&2&&Ve(o.class)},standalone:!1,features:[ge([{provide:pf,useExisting:t}]),_e],attrs:Dg,decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})(),Hu="f-selected";function Jh(t){return class extends t{fId=W("");fSelectionDisabled=W(!1);unmarkAsSelected(){this.unmarkChildrenAsSelected?.(),this.hostElement.classList.remove(Hu)}markAsSelected(){this.markChildrenAsSelected?.(),this.isSelected()||this.hostElement.classList.add(Hu)}isSelected(){return this.hostElement.classList.contains(Hu)}markChildrenAsSelected(){}unmarkChildrenAsSelected(){}constructor(...i){super(...i)}}}function cy(t){return class extends t{show(){this.hostElement.style.display="unset"}hide(){this.hostElement.style.display="none"}constructor(...i){super(...i)}}}var dy=Jh(cy(class{hostElement;constructor(t){this.hostElement=t}})),ly=(()=>{class t extends dy{_fConnectionBuilder=d(Zh);path="";line=di.initialize();fReassignableStart=W(!1);fDraggingDisabled=W(!1);fSelectionDisabled=W(!1);fDefs=Se.required("defs");fPath=Se.required(df);fDragHandleStart=Se(hf);fDragHandleEnd=Se.required(pf);fSelection=Se.required(uf);fContents=Du(ph,{descendants:!0});fMarkers=Du(Cc,{descendants:!0});fGradient=po(Ch);_fGradientRenderer=Se(cf);fWaypoints=po(hh);fInputSide=W(Xe.DEFAULT);_contentLayoutEngine=new nf;_sourceSide=L.AUTO;fOutputSide=W(Xe.DEFAULT);_targetSide=L.AUTO;_penultimatePoint=A.initialize();_secondPoint=A.initialize();constructor(){super(d(we).nativeElement)}initialize(){this.redraw(),this.isSelected()?this.markChildrenAsSelected():this.unmarkChildrenAsSelected()}isContains(e){return(this.hostElement.firstChild?.lastChild).contains(e)||Array.from(this.fContents()?.values()??[]).some(n=>n.hostElement?.contains(e))||this.fWaypoints()?.hostElement?.contains(e)}setLine({point1:e,point2:n}){this.line=di.initialize(e,n);let{path:o,points:r,penultimatePoint:a,secondPoint:s,candidates:l}=this._getPathResult(e,n);this.path=o,this._penultimatePoint=a||e,this._secondPoint=s||n,this.fWaypoints()?.candidates.set(l||[]),this._contentLayoutEngine.layout(r||[],this._contents())}_contents(){return Array.from(this.fContents()?.values()??[])}_getPathResult(e,n){return this._fConnectionBuilder.handle({type:this.fType,payload:{source:e,sourceSide:this._sourceSide,target:n,targetSide:this._targetSide,radius:this.fRadius,offset:this.fOffset,waypoints:this.fWaypoints()?.waypoints()||[]}})}markChildrenAsSelected(){this.fPath().select()}unmarkChildrenAsSelected(){this.fPath().deselect()}redraw(){this.fPath().setPath(this.path),this.fSelection().setPath(this.path),this.fDragHandleEnd().redraw(this._penultimatePoint,this.line.point2),this.fDragHandleStart()?.redraw(this._secondPoint,this.line.point1),this._fGradientRenderer()?.redraw(this.line)}getResolvedSides(){return{sourceSide:this._sourceSide,targetSide:this._targetSide}}_applyResolvedSidesToConnection(e,n){this._sourceSide=e,this._targetSide=n}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Ce({type:t,contentQueries:function(n,o,r){n&1&&Pu(r,o.fContents,ph,5)(r,o.fMarkers,Cc,5)(r,o.fGradient,Ch,5)(r,o.fWaypoints,hh,5),n&2&&it(4)},viewQuery:function(n,o){n&1&&ut(o.fDefs,Mg,5)(o.fPath,df,5)(o.fDragHandleStart,hf,5)(o.fDragHandleEnd,pf,5)(o.fSelection,uf,5)(o._fGradientRenderer,cf,5),n&2&&it(6)},standalone:!1,features:[_e]})}return t})(),uy=(()=>{let t=class ar{_browser=d(ke);_markerCache=new WeakMap;handle({connection:e}){let n=this._findConnectionMarkers(e),o=e.fDefs();if(!o)return!1;let r=fy(n),a=this._markerCache.get(e);if(a?.signature===r&&a.defsElement===o.nativeElement)return!1;let s=tm("defs",this._browser);return n.forEach(l=>{em(l.type).forEach(u=>{let h=py(u,l,e.fId(),this._browser),g=l.markerElement.cloneNode(!0);g.setAttribute("height",`${l.height}`),g.setAttribute("width",`${l.width}`),g.removeAttribute("markerUnits"),g.style.display="unset",h.append(g),s.append(h)})}),o.nativeElement.innerHTML=s.innerHTML,this._markerCache.set(e,{signature:r,defsElement:o.nativeElement}),this._makeSafariCompatible(e),!0}_findConnectionMarkers(e){return Array.from(e.fMarkers()??[])}_makeSafariCompatible(e){e.fPath().hostElement.replaceWith(e.fPath().hostElement)}static \u0275fac=function(n){return new(n||ar)};static \u0275prov=y({token:ar,factory:ar.\u0275fac})};return t=x([b(On)],t),t})();function fy(t){return t.map(i=>[...em(i.type),i.width,i.height,i.refX,i.refY,i.orient,i.markerUnits,i.markerElement.outerHTML].join("|")).join("||")}function py(t,i,e,n){let o=tm("marker",n);return o.setAttribute("id",It(t+"-"+e)),o.setAttribute("markerHeight",`${i.height}`),o.setAttribute("markerWidth",`${i.width}`),o.setAttribute("orient",`${i.orient}`),o.setAttribute("refX",`${i.refX}`),o.setAttribute("refY",`${i.refY}`),o.setAttribute("markerUnits",`${i.markerUnits}`),o}function em(t){switch(t){case fe.START:return[fe.START];case fe.END:return[fe.END];case fe.SELECTED_START:return[fe.SELECTED_START];case fe.SELECTED_END:return[fe.SELECTED_END];case fe.START_ALL_STATES:return[fe.START,fe.SELECTED_START];case fe.END_ALL_STATES:return[fe.END,fe.SELECTED_END];default:return[]}}function tm(t,i){return i.document.createElementNS("http://www.w3.org/2000/svg",t)}var Bl=(()=>{class t{renderTicket=0;_connectedInPreviousRender=new Set;beginRender(){return++this.renderTicket}resetConnectedConnectors(){for(let e of this._connectedInPreviousRender)e.resetConnected();this._connectedInPreviousRender.clear()}trackConnectedConnectors(e,n){this._connectedInPreviousRender.add(e),this._connectedInPreviousRender.add(n)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac})}return t})(),hy=String.raw`
3
3
  const EPSILON = 0.5;
4
4
 
@@ -1 +1 @@
1
- import{e as xe,j as T,k as w}from"./chunk-CUNKB7ZS.js";import{Ba as ue,Ib as be,J as V,Jb as Ce,Ka as g,M as le,Na as p,O as R,Oa as m,Pa as ge,Ra as x,Sa as I,T as ce,Ta as C,Tb as r,U as pe,Ua as f,Va as v,Wa as F,Xa as s,Xb as y,Ya as l,Za as $,ab as ye,da as j,db as fe,ea as me,gb as ve,hb as a,kc as he,oa as i,sb as _e,tb as E,vb as oe,wa as _,wb as d,xb as c,yb as z}from"./chunk-XPMAU22J.js";import{c as se}from"./chunk-Q7L6LLAK.js";var q="sm-debug-slots",Ee="debug-slots",Se="is-debug-slots",K=class n{visible=j(!1);constructor(){this.visible.set(this.resolveInitial()),me(()=>{let e=this.visible();document.documentElement.classList.toggle(Se,e)})}toggle(){let e=!this.visible();this.visible.set(e);try{localStorage.setItem(q,e?"1":"0")}catch{}}resolveInitial(){let t=new URLSearchParams(window.location.search).get(Ee);if(t==="1"||t==="true"){try{localStorage.setItem(q,"1")}catch{}return!0}if(t==="0"||t==="false"){try{localStorage.setItem(q,"0")}catch{}return!1}try{return localStorage.getItem(q)==="1"}catch{return!1}}static \u0275fac=function(t){return new(t||n)};static \u0275prov=V({token:n,factory:n.\u0275fac,providedIn:"root"})};var H=class n{registry=j({});setRegistry(e){e&&this.registry.set(e)}get(e){return this.registry()[e]}all(){return this.registry()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=V({token:n,factory:n.\u0275fac,providedIn:"root"})};function k(n){return typeof n=="object"&&n!==null}function O(n,e){return k(n)&&Array.isArray(n[e])}function U(n,e){return k(n)&&typeof n[e]=="string"}var h={panelHeader:"Plugin contributions",panelCount:n=>`${n} contribution${n===1?"":"s"}`,emptyDefault:"No contributions for this node.",rendererInvalid:"Contribution data failed schema validation.",rendererUnknownSlot:n=>`Unknown slot: ${n}. Update the UI to a newer catalog version.`,overflowBadge:n=>`+${n}`,overflowTooltip:n=>`Hidden: ${n}`,recordsCell:{boolTrue:"yes",boolFalse:"no"}};var De=(n,e)=>e.label;function Pe(n,e){if(n&1&&(s(0,"h5",1),d(1),l()),n&2){let t=a();i(),c(t.label())}}function Oe(n,e){if(n&1&&(s(0,"p",2),d(1),l()),n&2){let t=a();i(),c(t.emptyText())}}function Re(n,e){if(n&1&&(s(0,"li",4)(1,"span",5),d(2),l(),s(3,"span",6),$(4,"span",7),l(),s(5,"span",8),d(6),l()()),n&2){let t=e.$implicit,o=a(2);g("title",t.tooltip??""),i(2),c(t.label),i(2),_e("width",o.percent(t.value),"%"),i(2),c(t.value)}}function Fe(n,e){if(n&1&&(s(0,"ul",3),x(1,Re,7,5,"li",4,De),l()),n&2){let t=a();i(),I(t.entries())}}var W=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return k(e)?O(e,"entries")?e:{entries:[]}:{entries:[]}});entries=r(()=>this.typed().entries??[]);label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??h.emptyDefault);maxValue=r(()=>this.entries().reduce((t,o)=>o.value>t?o.value:t,0));percent(e){let t=this.maxValue();return t===0?0:Math.round(e/t*100)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(s(0,"section",0),p(1,Pe,2,1,"h5",1),p(2,Oe,2,1,"p",2)(3,Fe,3,0,"ul",3),l()),t&2&&(g("data-testid","renderer-node-breakdown"),i(),m(o.label()?1:-1),i(),m(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})};function $e(n,e){if(n&1&&(s(0,"span",1),d(1),l()),n&2){let t=a(),o=a();oe(o.hostClass()),i(),c(t.text)}}function Le(n,e){if(n&1&&$(0,"i",1),n&2){let t=a(),o=a();oe(o.hostClass()+" "+t.cls)}}function Ae(n,e){n&1&&p(0,$e,2,3,"span",0)(1,Le,1,2,"i",0),n&2&&m(e.kind==="emoji"?0:1)}function Ve(n){if(!n)return null;let e=n.trim();if(e.length===0)return null;let t=e.codePointAt(0)??0;if(!(t>=65&&t<=90||t>=97&&t<=122))return{kind:"emoji",text:e};if(/^pi pi-[a-z0-9-]+$/.test(e))return{kind:"pi",cls:e};if(/^pi-[a-z0-9-]+$/.test(e))return{kind:"pi",cls:`pi ${e}`};if(/^fa-(?:solid|regular|brands) fa-[a-z0-9-]+$/.test(e))return{kind:"fa",cls:e};if(/^fa-[a-z0-9-]+$/.test(e)){let u=e.slice(3);return u==="solid"||u==="regular"||u==="brands"||u.includes("fa-")?null:{kind:"fa",cls:`fa-solid ${e}`}}return null}var P=class n{icon=y(void 0);hostClass=y("");resolved=r(()=>{let e=this.icon(),t=Ve(e);return e&&!t&&console.warn(`[sm-icon] Invalid icon string "${e}". Expected emoji, pi-foo, pi pi-foo, fa-{solid|regular|brands} fa-foo, or fa-foo.`),t});static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){if(t&1&&p(0,Ae,2,1),t&2){let u;m((u=o.resolved())?0:-1,u)}},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})};function Be(n,e){if(n&1&&(f(0,"span",3),d(1),v()),n&2){let t=a();g("aria-label",t.ariaLabel()),i(),c(t.value())}}var L=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{value:0}:e});value=r(()=>this.typed().value);icon=r(()=>this.inputs().icon);severity=r(()=>this.typed().severity);resolvedTooltip=r(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=r(()=>this.inputs().label??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(f(0,"span",0)(1,"span",1),F(2,"sm-icon",2),v(),p(3,Be,2,2,"span",3),v()),t&2&&(E("vc-counter--info",o.severity()==="info")("vc-counter--warn",o.severity()==="warn")("vc-counter--success",o.severity()==="success")("vc-counter--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),g("data-testid","renderer-node-counter"),i(2),C("icon",o.icon()),i(),m(o.value()>0?3:-1))},dependencies:[w,T,P],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%], .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%], .vc-counter--danger[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})};var je=(n,e)=>e.key;function ze(n,e){if(n&1&&(f(0,"h5",1),d(1),v()),n&2){let t=a();i(),c(t.label())}}function qe(n,e){if(n&1&&(f(0,"p",2),d(1),v()),n&2){let t=a();i(),c(t.emptyText())}}function Ke(n,e){if(n&1&&(f(0,"dt",4),d(1),v(),f(2,"dd"),d(3),v()),n&2){let t=e.$implicit,o=a(2);C("pTooltip",t.tooltip??""),i(),c(t.key),i(2),c(o.formatValue(t.value))}}function He(n,e){if(n&1&&(f(0,"dl",3),x(1,Ke,4,3,null,null,je),v()),n&2){let t=a();i(),I(t.entries())}}var X=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return k(e)?O(e,"entries")?e:{entries:[]}:{entries:[]}});entries=r(()=>this.typed().entries??[]);label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??h.emptyDefault);formatValue(e){return e==null?"\u2014":typeof e=="boolean"?e?"true":"false":String(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(f(0,"section",0),p(1,ze,2,1,"h5",1),p(2,qe,2,1,"p",2)(3,He,3,0,"dl",3),v()),t&2&&(g("data-testid","renderer-node-key-values"),i(),m(o.label()?1:-1),i(),m(o.entries().length===0?2:3))},dependencies:[w,T],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})};var ie=class n{router=R(xe);open(e){this.router.navigate(["/graph"],{queryParams:{path:e}})}static \u0275fac=function(t){return new(t||n)};static \u0275prov=V({token:n,factory:n.\u0275fac,providedIn:"root"})},Ie=new le("NODE_OPEN_INTENT",{providedIn:"root",factory:()=>R(ie)});var Ue=(n,e)=>e.path;function We(n,e){if(n&1&&(s(0,"h5",1),d(1),l()),n&2){let t=a();i(),c(t.label())}}function Xe(n,e){if(n&1&&(s(0,"p",2),d(1),l()),n&2){let t=a();i(),c(t.emptyText())}}function Ye(n,e){if(n&1&&(s(0,"span",5),d(1),l()),n&2){let t=a().$implicit;i(),c(t.kind)}}function Ge(n,e){if(n&1){let t=fe();s(0,"li")(1,"button",4),ve("click",function(){let u=ce(t).$implicit,b=a(2);return pe(b.onOpenPath(u.path))}),p(2,Ye,2,1,"span",5),s(3,"span",6),d(4),l()()()}if(n&2){let t=e.$implicit;i(2),m(t.kind?2:-1),i(2),c(t.label??t.path)}}function Qe(n,e){if(n&1&&(s(0,"ul",3),x(1,Ge,5,2,"li",null,Ue),l()),n&2){let t=a();i(),I(t.entries())}}var Y=class n{openIntent=R(Ie);inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return k(e)?O(e,"entries")?e:{entries:[]}:{entries:[]}});entries=r(()=>this.typed().entries??[]);label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??h.emptyDefault);onOpenPath(e){this.openIntent.open(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(s(0,"section",0),p(1,We,2,1,"h5",1),p(2,Xe,2,1,"p",2)(3,Qe,3,0,"ul",3),l()),t&2&&(g("data-testid","renderer-node-link-list"),i(),m(o.label()?1:-1),i(),m(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(--p-font-family-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})};var Ne=(n,e)=>e.key;function Je(n,e){if(n&1&&(s(0,"h5",1),d(1),l()),n&2){let t=a();i(),c(t.label())}}function Ze(n,e){if(n&1&&(s(0,"p",2),d(1),l()),n&2){let t=a();i(),c(t.emptyText())}}function et(n,e){if(n&1&&(s(0,"th"),d(1),l()),n&2){let t=e.$implicit;i(),c(t.label)}}function tt(n,e){if(n&1&&$(0,"i",4),n&2){let t=a(4);g("aria-label",t.texts.boolTrue)}}function nt(n,e){if(n&1&&$(0,"i",5),n&2){let t=a(4);g("aria-label",t.texts.boolFalse)}}function ot(n,e){}function it(n,e){if(n&1&&d(0),n&2){let t=a().$implicit,o=a().$implicit,u=a(2);z(" ",u.cellText(o[t.key])," ")}}function rt(n,e){if(n&1&&(s(0,"td"),p(1,tt,1,1,"i",4)(2,nt,1,1,"i",5)(3,ot,0,0)(4,it,1,1),l()),n&2){let t,o=e.$implicit,u=a().$implicit,b=a(2);i(),m((t=b.cellKind(u[o.key]))==="bool-true"?1:t==="bool-false"?2:t==="empty"?3:4)}}function at(n,e){if(n&1&&(s(0,"tr"),x(1,rt,5,1,"td",null,Ne),l()),n&2){let t=a(2);i(),I(t.columns())}}function dt(n,e){if(n&1&&(s(0,"table",3)(1,"thead")(2,"tr"),x(3,et,2,1,"th",null,Ne),l()(),s(5,"tbody"),x(6,at,3,0,"tr",null,ge),l()()),n&2){let t=a();i(3),I(t.columns()),i(3),I(t.rows())}}var G=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return k(e)?!O(e,"columns")||!O(e,"rows")?{columns:[],rows:[]}:e:{columns:[],rows:[]}});columns=r(()=>this.typed().columns??[]);rows=r(()=>this.typed().rows??[]);label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??h.emptyDefault);texts=h.recordsCell;cellKind(e){return e==null?"empty":typeof e=="boolean"?e?"bool-true":"bool-false":"text"}cellText(e){return e==null?"":String(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(s(0,"section",0),p(1,Je,2,1,"h5",1),p(2,Ze,2,1,"p",2)(3,dt,8,0,"table",3),l()),t&2&&(g("data-testid","renderer-node-records"),i(),m(o.label()?1:-1),i(),m(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})};function st(n,e){if(n&1&&(s(0,"h5",1),d(1),l()),n&2){let t=a();i(),c(t.label())}}function lt(n,e){if(n&1&&(s(0,"p",2),d(1),l()),n&2){let t=a();i(),c(t.emptyText())}}function ct(n,e){if(n&1&&(s(0,"pre",3),d(1),l()),n&2){let t=a();i(),c(t.markdown())}}var Q=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return k(e)?U(e,"markdown")?e:{markdown:""}:{markdown:""}});markdown=r(()=>this.typed().markdown??"");label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??h.emptyDefault);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(s(0,"section",0),p(1,st,2,1,"h5",1),p(2,lt,2,1,"p",2)(3,ct,2,1,"pre",3),l()),t&2&&(g("data-testid","renderer-node-markdown"),i(),m(o.label()?1:-1),i(),m(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})};function pt(n,e){if(n&1&&(f(0,"span",1),d(1),v()),n&2){let t=a();i(),c(t.icon())}}var J=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{label:""}:e});label=r(()=>this.typed().label||"");icon=r(()=>this.inputs().icon);severity=r(()=>this.typed().severity);resolvedTooltip=r(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(f(0,"span",0),p(1,pt,2,1,"span",1),f(2,"span",2),d(3),v()()),t&2&&(E("vc-tag--info",o.severity()==="info")("vc-tag--warn",o.severity()==="warn")("vc-tag--success",o.severity()==="success")("vc-tag--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),g("data-testid","renderer-node-tag"),i(),m(o.icon()?1:-1),i(2),c(o.label()))},dependencies:[w,T],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})};var mt=()=>[],Te=(n,e)=>e.label;function ut(n,e){if(n&1&&(s(0,"h5",1),d(1),l()),n&2){let t=a();i(),c(t.label())}}function gt(n,e){if(n&1&&(s(0,"p",2),d(1),l()),n&2){let t=a();i(),c(t.emptyText())}}function yt(n,e){if(n&1&&(s(0,"span",5),d(1),l()),n&2){let t=a().$implicit;i(),c(t.marker)}}function ft(n,e){if(n&1&&(s(0,"span",5),d(1),l()),n&2){let t=a().$implicit;i(),c(t.marker)}}function vt(n,e){if(n&1&&(s(0,"li",4),p(1,ft,2,1,"span",5),s(2,"span",6),d(3),l()()),n&2){let t=e.$implicit;g("title",t.tooltip??""),i(),m(t.marker?1:-1),i(2),c(t.label)}}function _t(n,e){if(n&1&&(s(0,"ul",7),x(1,vt,4,3,"li",4,Te),l()),n&2){let t=a().$implicit;i(),I(t.children)}}function bt(n,e){if(n&1&&(s(0,"li",4),p(1,yt,2,1,"span",5),s(2,"span",6),d(3),l(),p(4,_t,3,0,"ul",7),l()),n&2){let t=e.$implicit;g("title",t.tooltip??""),i(),m(t.marker?1:-1),i(2),c(t.label),i(),m(t.children&&t.children.length>0?4:-1)}}function Ct(n,e){if(n&1&&(s(0,"ul",3),x(1,bt,5,4,"li",4,Te),l()),n&2){let t=a();i(),I(t.root().children??be(0,mt))}}var Z=class n{inputs=y.required();root=r(()=>{let e=this.inputs().payload;return k(e)?U(e,"label")?e.children!==void 0&&!Array.isArray(e.children)?{label:""}:e:{label:""}:{label:""}});rootIsEmpty=r(()=>{let e=this.root();return!e.children||e.children.length===0});label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??h.emptyDefault);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(s(0,"section",0),p(1,ut,2,1,"h5",1),p(2,gt,2,1,"p",2)(3,Ct,3,1,"ul",3),l()),t&2&&(g("data-testid","renderer-node-tree"),i(),m(o.label()?1:-1),i(),m(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})};function ht(n,e){if(n&1&&(f(0,"span",2),d(1),v()),n&2){let t=a();i(),c(t.formattedCount())}}var ee=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{}:e});icon=r(()=>this.typed().icon??this.inputs().icon);severity=r(()=>this.typed().severity);count=r(()=>this.typed().count??null);resolvedTooltip=r(()=>this.typed().tooltip??this.inputs().tooltip??"");formattedCount=r(()=>{let e=this.count();return e===null?"":e>=99?"99+":String(e)});static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(f(0,"span",0),F(1,"sm-icon",1),p(2,ht,2,1,"span",2),v()),t&2&&(E("vc-alert--info",o.severity()==="info")("vc-alert--warn",o.severity()==="warn")("vc-alert--success",o.severity()==="success")("vc-alert--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),g("data-testid","renderer-node-alert"),i(),C("icon",o.icon()),i(),m(o.count()!==null?2:-1))},dependencies:[w,T,P],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})};var te=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{}:e});icon=r(()=>this.typed().icon??this.inputs().icon);severity=r(()=>this.typed().severity);resolvedTooltip=r(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=r(()=>this.inputs().label??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(f(0,"span",0),F(1,"sm-icon",1),v()),t&2&&(E("vc-icon--info",o.severity()==="info")("vc-icon--warn",o.severity()==="warn")("vc-icon--success",o.severity()==="success")("vc-icon--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),g("aria-label",o.ariaLabel())("data-testid","renderer-node-icon"),i(),C("icon",o.icon()))},dependencies:[w,T,P],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})};function xt(n,e){if(n&1&&(f(0,"span",3),d(1),v()),n&2){let t=a();i(),c(t.label())}}var ne=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{value:""}:e});value=r(()=>String(this.typed().value??""));label=r(()=>this.typed().label??this.inputs().label);icon=r(()=>this.inputs().icon);severity=r(()=>this.typed().severity);resolvedTooltip=r(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(f(0,"span",0),F(1,"sm-icon",1),f(2,"span",2),d(3),v(),p(4,xt,2,1,"span",3),v()),t&2&&(E("vc-stat--info",o.severity()==="info")("vc-stat--warn",o.severity()==="warn")("vc-stat--success",o.severity()==="success")("vc-stat--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),g("data-testid","renderer-scope-stat"),i(),C("icon",o.icon()),i(2),c(o.value()),i(),m(o.label()?4:-1))},dependencies:[w,T,P],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})};var re={"card.title.right":te,"card.subtitle.left":L,"card.footer.left":L,"card.footer.right":L,"graph.node.alert":ee,"inspector.header.badge.counter":L,"inspector.header.badge.tag":J,"inspector.body.panel.breakdown":W,"inspector.body.panel.records":G,"inspector.body.panel.tree":Z,"inspector.body.panel.key-values":X,"inspector.body.panel.link-list":Y,"inspector.body.panel.markdown":Q,"topbar.nav.start":ne};function we(n){return n in re}var A={"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 It=n=>({inputs:n}),Nt=(n,e)=>e.qualifiedId;function Tt(n,e){n&1&&ye(0)}function wt(n,e){if(n&1&&(f(0,"span",1),ue(1,Tt,1,0,"ng-container",3),v()),n&2){let t=e.$implicit,o=a(2);g("data-testid","contribution-"+t.qualifiedId.replaceAll("/","-")),i(),C("ngComponentOutlet",o.rendererFor(t.slot))("ngComponentOutletInputs",Ce(3,It,t.rendererInputs))}}function kt(n,e){if(n&1&&(f(0,"span",2),d(1),v()),n&2){let t=a(2);C("pTooltip",t.overflowTooltip()),i(),z(" ",t.overflowBadge()," ")}}function Mt(n,e){if(n&1&&(f(0,"span",0),x(1,wt,2,5,"span",1,Nt),p(3,kt,2,2,"span",2),v()),n&2){let t=a();g("data-testid","view-contributions-host-"+t.testidSuffix()),i(),I(t.visible()),i(2),m(t.overflowCount()>0&&t.showOverflowBadge()?3:-1)}}var ke=class n{slot=y.required();node=y(null);debugSlots=R(K);debugVisible=this.debugSlots.visible;testidSuffix=r(()=>this.slot().replaceAll(".","-"));registry=R(H);dispatched=r(()=>{let e=this.node();if(!e)return[];let t=e.contributions??[];if(t.length===0)return[];let o=this.slot(),u=t.filter(b=>b.slot===o).filter(b=>we(b.slot));return this.sortBySlotOrder(u,o).map(b=>({qualifiedId:`${b.pluginId}/${b.extensionId}/${b.contributionId}`,slot:b.slot,rendererInputs:this.buildInputs(b,o)}))});visible=r(()=>{let e=this.dispatched(),t=A[this.slot()].maxItems;return e.slice(0,t)});overflowCount=r(()=>{let e=this.dispatched(),t=A[this.slot()].maxItems;return Math.max(0,e.length-t)});showOverflowBadge=r(()=>A[this.slot()].showOverflowBadge!==!1);overflowBadge=r(()=>h.overflowBadge(this.overflowCount()));overflowTooltip=r(()=>{let e=this.dispatched(),t=A[this.slot()].maxItems,o=e.slice(t).map(u=>u.qualifiedId).join(", ");return h.overflowTooltip(o)});rendererFor(e){return re[e]}buildInputs(e,t){let o=`${e.pluginId}/${e.extensionId}/${e.contributionId}`,u=this.registry.get(o),b=A[t].respectSeverity!==!1,M=e.payload;if(!b&&typeof M=="object"&&M!==null&&"severity"in M){let de=M,{severity:Et}=de;M=se(de,["severity"])}let D={pluginId:e.pluginId,extensionId:e.extensionId,contributionId:e.contributionId,payload:M};return u?.label&&(D.label=u.label),u?.tooltip&&(D.tooltip=u.tooltip),u?.icon&&(D.icon=u.icon),u?.emptyText&&(D.emptyText=u.emptyText),D}sortBySlotOrder(e,t){let o=A[t].order;return o==="fifo"?e.slice():o==="priority"?e.slice().sort((u,b)=>{let M=this.priorityFor(u),D=this.priorityFor(b);return M!==D?M-D:ae(u,b)}):o==="severity"?e.slice().sort((u,b)=>{let M=Me(u),D=Me(b);return M!==D?D-M:ae(u,b)}):e.slice().sort(ae)}priorityFor(e){let t=`${e.pluginId}/${e.extensionId}/${e.contributionId}`;return this.registry.get(t)?.priority??100}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-view-contributions-host"]],hostVars:3,hostBindings:function(t,o){t&2&&(g("data-debug-slot",o.debugVisible()?o.slot():null),E("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(t,o){t&1&&p(0,Mt,4,2,"span",0),t&2&&m(o.visible().length>0||o.overflowCount()>0?0:-1)},dependencies:[he,w,T],styles:[".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})};function ae(n,e){let t=`${n.pluginId}/${n.extensionId}/${n.contributionId}`,o=`${e.pluginId}/${e.extensionId}/${e.contributionId}`;return t<o?-1:t>o?1:0}function Me(n){let e=n.payload;if(typeof e!="object"||e===null)return 0;switch(e.severity){case"danger":return 4;case"warn":return 3;case"info":return 2;case"success":return 1;default:return 0}}export{K as a,H as b,ke as c};
1
+ import{e as xe,j as T,k as w}from"./chunk-533YMAY3.js";import{Ba as ue,Ib as be,J as V,Jb as Ce,Ka as g,M as le,Na as p,O as R,Oa as m,Pa as ge,Ra as x,Sa as I,T as ce,Ta as C,Tb as r,U as pe,Ua as f,Va as v,Wa as F,Xa as s,Xb as y,Ya as l,Za as $,ab as ye,da as j,db as fe,ea as me,gb as ve,hb as a,kc as he,oa as i,sb as _e,tb as E,vb as oe,wa as _,wb as d,xb as c,yb as z}from"./chunk-J3YWUNFO.js";import{c as se}from"./chunk-Q7L6LLAK.js";var q="sm-debug-slots",Ee="debug-slots",Se="is-debug-slots",K=class n{visible=j(!1);constructor(){this.visible.set(this.resolveInitial()),me(()=>{let e=this.visible();document.documentElement.classList.toggle(Se,e)})}toggle(){let e=!this.visible();this.visible.set(e);try{localStorage.setItem(q,e?"1":"0")}catch{}}resolveInitial(){let t=new URLSearchParams(window.location.search).get(Ee);if(t==="1"||t==="true"){try{localStorage.setItem(q,"1")}catch{}return!0}if(t==="0"||t==="false"){try{localStorage.setItem(q,"0")}catch{}return!1}try{return localStorage.getItem(q)==="1"}catch{return!1}}static \u0275fac=function(t){return new(t||n)};static \u0275prov=V({token:n,factory:n.\u0275fac,providedIn:"root"})};var H=class n{registry=j({});setRegistry(e){e&&this.registry.set(e)}get(e){return this.registry()[e]}all(){return this.registry()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=V({token:n,factory:n.\u0275fac,providedIn:"root"})};function k(n){return typeof n=="object"&&n!==null}function O(n,e){return k(n)&&Array.isArray(n[e])}function U(n,e){return k(n)&&typeof n[e]=="string"}var h={panelHeader:"Plugin contributions",panelCount:n=>`${n} contribution${n===1?"":"s"}`,emptyDefault:"No contributions for this node.",rendererInvalid:"Contribution data failed schema validation.",rendererUnknownSlot:n=>`Unknown slot: ${n}. Update the UI to a newer catalog version.`,overflowBadge:n=>`+${n}`,overflowTooltip:n=>`Hidden: ${n}`,recordsCell:{boolTrue:"yes",boolFalse:"no"}};var De=(n,e)=>e.label;function Pe(n,e){if(n&1&&(s(0,"h5",1),d(1),l()),n&2){let t=a();i(),c(t.label())}}function Oe(n,e){if(n&1&&(s(0,"p",2),d(1),l()),n&2){let t=a();i(),c(t.emptyText())}}function Re(n,e){if(n&1&&(s(0,"li",4)(1,"span",5),d(2),l(),s(3,"span",6),$(4,"span",7),l(),s(5,"span",8),d(6),l()()),n&2){let t=e.$implicit,o=a(2);g("title",t.tooltip??""),i(2),c(t.label),i(2),_e("width",o.percent(t.value),"%"),i(2),c(t.value)}}function Fe(n,e){if(n&1&&(s(0,"ul",3),x(1,Re,7,5,"li",4,De),l()),n&2){let t=a();i(),I(t.entries())}}var W=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return k(e)?O(e,"entries")?e:{entries:[]}:{entries:[]}});entries=r(()=>this.typed().entries??[]);label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??h.emptyDefault);maxValue=r(()=>this.entries().reduce((t,o)=>o.value>t?o.value:t,0));percent(e){let t=this.maxValue();return t===0?0:Math.round(e/t*100)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(s(0,"section",0),p(1,Pe,2,1,"h5",1),p(2,Oe,2,1,"p",2)(3,Fe,3,0,"ul",3),l()),t&2&&(g("data-testid","renderer-node-breakdown"),i(),m(o.label()?1:-1),i(),m(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})};function $e(n,e){if(n&1&&(s(0,"span",1),d(1),l()),n&2){let t=a(),o=a();oe(o.hostClass()),i(),c(t.text)}}function Le(n,e){if(n&1&&$(0,"i",1),n&2){let t=a(),o=a();oe(o.hostClass()+" "+t.cls)}}function Ae(n,e){n&1&&p(0,$e,2,3,"span",0)(1,Le,1,2,"i",0),n&2&&m(e.kind==="emoji"?0:1)}function Ve(n){if(!n)return null;let e=n.trim();if(e.length===0)return null;let t=e.codePointAt(0)??0;if(!(t>=65&&t<=90||t>=97&&t<=122))return{kind:"emoji",text:e};if(/^pi pi-[a-z0-9-]+$/.test(e))return{kind:"pi",cls:e};if(/^pi-[a-z0-9-]+$/.test(e))return{kind:"pi",cls:`pi ${e}`};if(/^fa-(?:solid|regular|brands) fa-[a-z0-9-]+$/.test(e))return{kind:"fa",cls:e};if(/^fa-[a-z0-9-]+$/.test(e)){let u=e.slice(3);return u==="solid"||u==="regular"||u==="brands"||u.includes("fa-")?null:{kind:"fa",cls:`fa-solid ${e}`}}return null}var P=class n{icon=y(void 0);hostClass=y("");resolved=r(()=>{let e=this.icon(),t=Ve(e);return e&&!t&&console.warn(`[sm-icon] Invalid icon string "${e}". Expected emoji, pi-foo, pi pi-foo, fa-{solid|regular|brands} fa-foo, or fa-foo.`),t});static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){if(t&1&&p(0,Ae,2,1),t&2){let u;m((u=o.resolved())?0:-1,u)}},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})};function Be(n,e){if(n&1&&(f(0,"span",3),d(1),v()),n&2){let t=a();g("aria-label",t.ariaLabel()),i(),c(t.value())}}var L=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{value:0}:e});value=r(()=>this.typed().value);icon=r(()=>this.inputs().icon);severity=r(()=>this.typed().severity);resolvedTooltip=r(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=r(()=>this.inputs().label??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(f(0,"span",0)(1,"span",1),F(2,"sm-icon",2),v(),p(3,Be,2,2,"span",3),v()),t&2&&(E("vc-counter--info",o.severity()==="info")("vc-counter--warn",o.severity()==="warn")("vc-counter--success",o.severity()==="success")("vc-counter--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),g("data-testid","renderer-node-counter"),i(2),C("icon",o.icon()),i(),m(o.value()>0?3:-1))},dependencies:[w,T,P],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%], .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%], .vc-counter--danger[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})};var je=(n,e)=>e.key;function ze(n,e){if(n&1&&(f(0,"h5",1),d(1),v()),n&2){let t=a();i(),c(t.label())}}function qe(n,e){if(n&1&&(f(0,"p",2),d(1),v()),n&2){let t=a();i(),c(t.emptyText())}}function Ke(n,e){if(n&1&&(f(0,"dt",4),d(1),v(),f(2,"dd"),d(3),v()),n&2){let t=e.$implicit,o=a(2);C("pTooltip",t.tooltip??""),i(),c(t.key),i(2),c(o.formatValue(t.value))}}function He(n,e){if(n&1&&(f(0,"dl",3),x(1,Ke,4,3,null,null,je),v()),n&2){let t=a();i(),I(t.entries())}}var X=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return k(e)?O(e,"entries")?e:{entries:[]}:{entries:[]}});entries=r(()=>this.typed().entries??[]);label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??h.emptyDefault);formatValue(e){return e==null?"\u2014":typeof e=="boolean"?e?"true":"false":String(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(f(0,"section",0),p(1,ze,2,1,"h5",1),p(2,qe,2,1,"p",2)(3,He,3,0,"dl",3),v()),t&2&&(g("data-testid","renderer-node-key-values"),i(),m(o.label()?1:-1),i(),m(o.entries().length===0?2:3))},dependencies:[w,T],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})};var ie=class n{router=R(xe);open(e){this.router.navigate(["/graph"],{queryParams:{path:e}})}static \u0275fac=function(t){return new(t||n)};static \u0275prov=V({token:n,factory:n.\u0275fac,providedIn:"root"})},Ie=new le("NODE_OPEN_INTENT",{providedIn:"root",factory:()=>R(ie)});var Ue=(n,e)=>e.path;function We(n,e){if(n&1&&(s(0,"h5",1),d(1),l()),n&2){let t=a();i(),c(t.label())}}function Xe(n,e){if(n&1&&(s(0,"p",2),d(1),l()),n&2){let t=a();i(),c(t.emptyText())}}function Ye(n,e){if(n&1&&(s(0,"span",5),d(1),l()),n&2){let t=a().$implicit;i(),c(t.kind)}}function Ge(n,e){if(n&1){let t=fe();s(0,"li")(1,"button",4),ve("click",function(){let u=ce(t).$implicit,b=a(2);return pe(b.onOpenPath(u.path))}),p(2,Ye,2,1,"span",5),s(3,"span",6),d(4),l()()()}if(n&2){let t=e.$implicit;i(2),m(t.kind?2:-1),i(2),c(t.label??t.path)}}function Qe(n,e){if(n&1&&(s(0,"ul",3),x(1,Ge,5,2,"li",null,Ue),l()),n&2){let t=a();i(),I(t.entries())}}var Y=class n{openIntent=R(Ie);inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return k(e)?O(e,"entries")?e:{entries:[]}:{entries:[]}});entries=r(()=>this.typed().entries??[]);label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??h.emptyDefault);onOpenPath(e){this.openIntent.open(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(s(0,"section",0),p(1,We,2,1,"h5",1),p(2,Xe,2,1,"p",2)(3,Qe,3,0,"ul",3),l()),t&2&&(g("data-testid","renderer-node-link-list"),i(),m(o.label()?1:-1),i(),m(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(--p-font-family-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})};var Ne=(n,e)=>e.key;function Je(n,e){if(n&1&&(s(0,"h5",1),d(1),l()),n&2){let t=a();i(),c(t.label())}}function Ze(n,e){if(n&1&&(s(0,"p",2),d(1),l()),n&2){let t=a();i(),c(t.emptyText())}}function et(n,e){if(n&1&&(s(0,"th"),d(1),l()),n&2){let t=e.$implicit;i(),c(t.label)}}function tt(n,e){if(n&1&&$(0,"i",4),n&2){let t=a(4);g("aria-label",t.texts.boolTrue)}}function nt(n,e){if(n&1&&$(0,"i",5),n&2){let t=a(4);g("aria-label",t.texts.boolFalse)}}function ot(n,e){}function it(n,e){if(n&1&&d(0),n&2){let t=a().$implicit,o=a().$implicit,u=a(2);z(" ",u.cellText(o[t.key])," ")}}function rt(n,e){if(n&1&&(s(0,"td"),p(1,tt,1,1,"i",4)(2,nt,1,1,"i",5)(3,ot,0,0)(4,it,1,1),l()),n&2){let t,o=e.$implicit,u=a().$implicit,b=a(2);i(),m((t=b.cellKind(u[o.key]))==="bool-true"?1:t==="bool-false"?2:t==="empty"?3:4)}}function at(n,e){if(n&1&&(s(0,"tr"),x(1,rt,5,1,"td",null,Ne),l()),n&2){let t=a(2);i(),I(t.columns())}}function dt(n,e){if(n&1&&(s(0,"table",3)(1,"thead")(2,"tr"),x(3,et,2,1,"th",null,Ne),l()(),s(5,"tbody"),x(6,at,3,0,"tr",null,ge),l()()),n&2){let t=a();i(3),I(t.columns()),i(3),I(t.rows())}}var G=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return k(e)?!O(e,"columns")||!O(e,"rows")?{columns:[],rows:[]}:e:{columns:[],rows:[]}});columns=r(()=>this.typed().columns??[]);rows=r(()=>this.typed().rows??[]);label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??h.emptyDefault);texts=h.recordsCell;cellKind(e){return e==null?"empty":typeof e=="boolean"?e?"bool-true":"bool-false":"text"}cellText(e){return e==null?"":String(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(s(0,"section",0),p(1,Je,2,1,"h5",1),p(2,Ze,2,1,"p",2)(3,dt,8,0,"table",3),l()),t&2&&(g("data-testid","renderer-node-records"),i(),m(o.label()?1:-1),i(),m(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})};function st(n,e){if(n&1&&(s(0,"h5",1),d(1),l()),n&2){let t=a();i(),c(t.label())}}function lt(n,e){if(n&1&&(s(0,"p",2),d(1),l()),n&2){let t=a();i(),c(t.emptyText())}}function ct(n,e){if(n&1&&(s(0,"pre",3),d(1),l()),n&2){let t=a();i(),c(t.markdown())}}var Q=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return k(e)?U(e,"markdown")?e:{markdown:""}:{markdown:""}});markdown=r(()=>this.typed().markdown??"");label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??h.emptyDefault);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(s(0,"section",0),p(1,st,2,1,"h5",1),p(2,lt,2,1,"p",2)(3,ct,2,1,"pre",3),l()),t&2&&(g("data-testid","renderer-node-markdown"),i(),m(o.label()?1:-1),i(),m(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})};function pt(n,e){if(n&1&&(f(0,"span",1),d(1),v()),n&2){let t=a();i(),c(t.icon())}}var J=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{label:""}:e});label=r(()=>this.typed().label||"");icon=r(()=>this.inputs().icon);severity=r(()=>this.typed().severity);resolvedTooltip=r(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(f(0,"span",0),p(1,pt,2,1,"span",1),f(2,"span",2),d(3),v()()),t&2&&(E("vc-tag--info",o.severity()==="info")("vc-tag--warn",o.severity()==="warn")("vc-tag--success",o.severity()==="success")("vc-tag--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),g("data-testid","renderer-node-tag"),i(),m(o.icon()?1:-1),i(2),c(o.label()))},dependencies:[w,T],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})};var mt=()=>[],Te=(n,e)=>e.label;function ut(n,e){if(n&1&&(s(0,"h5",1),d(1),l()),n&2){let t=a();i(),c(t.label())}}function gt(n,e){if(n&1&&(s(0,"p",2),d(1),l()),n&2){let t=a();i(),c(t.emptyText())}}function yt(n,e){if(n&1&&(s(0,"span",5),d(1),l()),n&2){let t=a().$implicit;i(),c(t.marker)}}function ft(n,e){if(n&1&&(s(0,"span",5),d(1),l()),n&2){let t=a().$implicit;i(),c(t.marker)}}function vt(n,e){if(n&1&&(s(0,"li",4),p(1,ft,2,1,"span",5),s(2,"span",6),d(3),l()()),n&2){let t=e.$implicit;g("title",t.tooltip??""),i(),m(t.marker?1:-1),i(2),c(t.label)}}function _t(n,e){if(n&1&&(s(0,"ul",7),x(1,vt,4,3,"li",4,Te),l()),n&2){let t=a().$implicit;i(),I(t.children)}}function bt(n,e){if(n&1&&(s(0,"li",4),p(1,yt,2,1,"span",5),s(2,"span",6),d(3),l(),p(4,_t,3,0,"ul",7),l()),n&2){let t=e.$implicit;g("title",t.tooltip??""),i(),m(t.marker?1:-1),i(2),c(t.label),i(),m(t.children&&t.children.length>0?4:-1)}}function Ct(n,e){if(n&1&&(s(0,"ul",3),x(1,bt,5,4,"li",4,Te),l()),n&2){let t=a();i(),I(t.root().children??be(0,mt))}}var Z=class n{inputs=y.required();root=r(()=>{let e=this.inputs().payload;return k(e)?U(e,"label")?e.children!==void 0&&!Array.isArray(e.children)?{label:""}:e:{label:""}:{label:""}});rootIsEmpty=r(()=>{let e=this.root();return!e.children||e.children.length===0});label=r(()=>this.inputs().label);emptyText=r(()=>this.inputs().emptyText??h.emptyDefault);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(s(0,"section",0),p(1,ut,2,1,"h5",1),p(2,gt,2,1,"p",2)(3,Ct,3,1,"ul",3),l()),t&2&&(g("data-testid","renderer-node-tree"),i(),m(o.label()?1:-1),i(),m(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})};function ht(n,e){if(n&1&&(f(0,"span",2),d(1),v()),n&2){let t=a();i(),c(t.formattedCount())}}var ee=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{}:e});icon=r(()=>this.typed().icon??this.inputs().icon);severity=r(()=>this.typed().severity);count=r(()=>this.typed().count??null);resolvedTooltip=r(()=>this.typed().tooltip??this.inputs().tooltip??"");formattedCount=r(()=>{let e=this.count();return e===null?"":e>=99?"99+":String(e)});static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(f(0,"span",0),F(1,"sm-icon",1),p(2,ht,2,1,"span",2),v()),t&2&&(E("vc-alert--info",o.severity()==="info")("vc-alert--warn",o.severity()==="warn")("vc-alert--success",o.severity()==="success")("vc-alert--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),g("data-testid","renderer-node-alert"),i(),C("icon",o.icon()),i(),m(o.count()!==null?2:-1))},dependencies:[w,T,P],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})};var te=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{}:e});icon=r(()=>this.typed().icon??this.inputs().icon);severity=r(()=>this.typed().severity);resolvedTooltip=r(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=r(()=>this.inputs().label??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(f(0,"span",0),F(1,"sm-icon",1),v()),t&2&&(E("vc-icon--info",o.severity()==="info")("vc-icon--warn",o.severity()==="warn")("vc-icon--success",o.severity()==="success")("vc-icon--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),g("aria-label",o.ariaLabel())("data-testid","renderer-node-icon"),i(),C("icon",o.icon()))},dependencies:[w,T,P],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})};function xt(n,e){if(n&1&&(f(0,"span",3),d(1),v()),n&2){let t=a();i(),c(t.label())}}var ne=class n{inputs=y.required();typed=r(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{value:""}:e});value=r(()=>String(this.typed().value??""));label=r(()=>this.typed().label??this.inputs().label);icon=r(()=>this.inputs().icon);severity=r(()=>this.typed().severity);resolvedTooltip=r(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,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(t,o){t&1&&(f(0,"span",0),F(1,"sm-icon",1),f(2,"span",2),d(3),v(),p(4,xt,2,1,"span",3),v()),t&2&&(E("vc-stat--info",o.severity()==="info")("vc-stat--warn",o.severity()==="warn")("vc-stat--success",o.severity()==="success")("vc-stat--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),g("data-testid","renderer-scope-stat"),i(),C("icon",o.icon()),i(2),c(o.value()),i(),m(o.label()?4:-1))},dependencies:[w,T,P],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})};var re={"card.title.right":te,"card.subtitle.left":L,"card.footer.left":L,"card.footer.right":L,"graph.node.alert":ee,"inspector.header.badge.counter":L,"inspector.header.badge.tag":J,"inspector.body.panel.breakdown":W,"inspector.body.panel.records":G,"inspector.body.panel.tree":Z,"inspector.body.panel.key-values":X,"inspector.body.panel.link-list":Y,"inspector.body.panel.markdown":Q,"topbar.nav.start":ne};function we(n){return n in re}var A={"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 It=n=>({inputs:n}),Nt=(n,e)=>e.qualifiedId;function Tt(n,e){n&1&&ye(0)}function wt(n,e){if(n&1&&(f(0,"span",1),ue(1,Tt,1,0,"ng-container",3),v()),n&2){let t=e.$implicit,o=a(2);g("data-testid","contribution-"+t.qualifiedId.replaceAll("/","-")),i(),C("ngComponentOutlet",o.rendererFor(t.slot))("ngComponentOutletInputs",Ce(3,It,t.rendererInputs))}}function kt(n,e){if(n&1&&(f(0,"span",2),d(1),v()),n&2){let t=a(2);C("pTooltip",t.overflowTooltip()),i(),z(" ",t.overflowBadge()," ")}}function Mt(n,e){if(n&1&&(f(0,"span",0),x(1,wt,2,5,"span",1,Nt),p(3,kt,2,2,"span",2),v()),n&2){let t=a();g("data-testid","view-contributions-host-"+t.testidSuffix()),i(),I(t.visible()),i(2),m(t.overflowCount()>0&&t.showOverflowBadge()?3:-1)}}var ke=class n{slot=y.required();node=y(null);debugSlots=R(K);debugVisible=this.debugSlots.visible;testidSuffix=r(()=>this.slot().replaceAll(".","-"));registry=R(H);dispatched=r(()=>{let e=this.node();if(!e)return[];let t=e.contributions??[];if(t.length===0)return[];let o=this.slot(),u=t.filter(b=>b.slot===o).filter(b=>we(b.slot));return this.sortBySlotOrder(u,o).map(b=>({qualifiedId:`${b.pluginId}/${b.extensionId}/${b.contributionId}`,slot:b.slot,rendererInputs:this.buildInputs(b,o)}))});visible=r(()=>{let e=this.dispatched(),t=A[this.slot()].maxItems;return e.slice(0,t)});overflowCount=r(()=>{let e=this.dispatched(),t=A[this.slot()].maxItems;return Math.max(0,e.length-t)});showOverflowBadge=r(()=>A[this.slot()].showOverflowBadge!==!1);overflowBadge=r(()=>h.overflowBadge(this.overflowCount()));overflowTooltip=r(()=>{let e=this.dispatched(),t=A[this.slot()].maxItems,o=e.slice(t).map(u=>u.qualifiedId).join(", ");return h.overflowTooltip(o)});rendererFor(e){return re[e]}buildInputs(e,t){let o=`${e.pluginId}/${e.extensionId}/${e.contributionId}`,u=this.registry.get(o),b=A[t].respectSeverity!==!1,M=e.payload;if(!b&&typeof M=="object"&&M!==null&&"severity"in M){let de=M,{severity:Et}=de;M=se(de,["severity"])}let D={pluginId:e.pluginId,extensionId:e.extensionId,contributionId:e.contributionId,payload:M};return u?.label&&(D.label=u.label),u?.tooltip&&(D.tooltip=u.tooltip),u?.icon&&(D.icon=u.icon),u?.emptyText&&(D.emptyText=u.emptyText),D}sortBySlotOrder(e,t){let o=A[t].order;return o==="fifo"?e.slice():o==="priority"?e.slice().sort((u,b)=>{let M=this.priorityFor(u),D=this.priorityFor(b);return M!==D?M-D:ae(u,b)}):o==="severity"?e.slice().sort((u,b)=>{let M=Me(u),D=Me(b);return M!==D?D-M:ae(u,b)}):e.slice().sort(ae)}priorityFor(e){let t=`${e.pluginId}/${e.extensionId}/${e.contributionId}`;return this.registry.get(t)?.priority??100}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-view-contributions-host"]],hostVars:3,hostBindings:function(t,o){t&2&&(g("data-debug-slot",o.debugVisible()?o.slot():null),E("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(t,o){t&1&&p(0,Mt,4,2,"span",0),t&2&&m(o.visible().length>0||o.overflowCount()>0?0:-1)},dependencies:[he,w,T],styles:[".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})};function ae(n,e){let t=`${n.pluginId}/${n.extensionId}/${n.contributionId}`,o=`${e.pluginId}/${e.extensionId}/${e.contributionId}`;return t<o?-1:t>o?1:0}function Me(n){let e=n.payload;if(typeof e!="object"||e===null)return 0;switch(e.severity){case"danger":return 4;case"warn":return 3;case"info":return 2;case"success":return 1;default:return 0}}export{K as a,H as b,ke as c};
@@ -1 +1 @@
1
- import{J as n,O as o,Tb as r,Y as d,Z as c,da as s,ea as g,id as i,jd as p,nd as u}from"./chunk-XPMAU22J.js";var L={triggerLabel:"Settings",triggerTooltip:"Settings",modalTitle:"Settings",closeLabel:"Close",sections:{plugins:"Plugins",general:"General",project:"Project",changelog:"Changelog",about:"About"},general:{heading:"General",intro:"User-scope preferences. These settings live in your home directory (`~/.skill-map/settings.json`) and follow you across projects.",loadErrorPrefix:"Could not load preferences:",saveErrorPrefix:"Could not save preferences:",toggles:{"updateCheck.enabled":{label:"Check for updates",description:"Check npm for newer @skill-map/cli releases."}},localPreferences:{heading:"This browser",intro:"Visual preferences saved in this browser only. They won't sync to another machine."},connectionType:{label:"Edge style",description:"Shape of the lines that connect nodes in the graph view.",options:{segment:{label:"Orthogonal",description:"Right-angled segments (default)."},straight:{label:"Straight",description:"Single straight line."},bezier:{label:"Bezier",description:"Smooth curve."},"adaptive-curve":{label:"Adaptive curve",description:"Curve that follows the connector orientation."}}}},project:{heading:"Project",intro:"These settings apply only to this project and are saved in its `.skill-map/settings.local.json` file.",loadErrorPrefix:"Could not load project settings:",saveErrorPrefix:"Could not save project settings:",extraFoldersLabel:"Extra folders to scan",extraFoldersDescription:"Additional folders included in the scan. Their files show up in the graph next to this project. Use ~/ for paths inside your home folder. This is the only way to extend the scan beyond this project.",extraFoldersPlaceholder:"~/.claude/agents, /path/to/another/folder",referencePathsLabel:"Folders for link validation",referencePathsDescription:'Folders checked only to validate links. Files here are not indexed and do not appear in the graph, they just stop "broken link" warnings when a link points to a real file outside this project.',referencePathsPlaceholder:"~/Documents/research, ~/.claude",addPathLabel:"Add path",removePathLabel:"Remove",confirmDialogHeader:"Allow access to folders outside this project?",confirmDialogIntro:"This change lets the scan read files in:",confirmDialogAccept:"Allow access",confirmDialogReject:"Cancel"},changelogHeading:"Changelog",changelogIntro:"What's new in skill-map. Each entry covers a release of @skill-map/cli (the CLI + bundled UI) and lists the user-facing changes plus the workspace(s) each one affects.",changelogEmpty:"No release notes yet. Future releases will populate this list automatically from the changesets shipped in each PR.",changelogInternalRelease:"Internal release. Focus on stability, infra, and refactors. No user-facing changes this time.",changelogAffectedPackages:"Affected packages",aboutHeading:"About",aboutIntro:"Version information for the running CLI / server.",aboutCliLabel:"skill-map CLI",aboutSpecLabel:"Spec version",aboutSchemaLabel:"Schema version",aboutScopeLabel:"Scope",aboutFolderLabel:"Project folder",aboutDbLabel:"Project DB",aboutHomeLabel:"Skill-map home",aboutDbValue:(e,t)=>e==="present"?t:`${e} \xB7 ${t}`,aboutLoading:"Loading\u2026",aboutUnknown:"\u2014",aboutErrorPrefix:"Could not read health endpoint:",aboutLinksHeading:"Links",aboutWebsiteLabel:"Website",aboutGithubLabel:"GitHub",aboutWebsiteUrl:"https://skill-map.dev/",aboutGithubUrl:"https://github.com/crystian/skill-map",aboutStarHeading:"Enjoying skill-map?",aboutStarBody:"If it's useful to you, drop us a star on GitHub, it helps a lot and keeps the project alive.",aboutStarCta:"Star on GitHub",aboutStarA11y:"Open the skill-map repository on GitHub to give it a star",pluginsHeading:"Plugins",pluginsIntro:"Enable or disable installed plugins.",pluginsSearchPlaceholder:"Filter by name\u2026",pluginsSearchA11y:"Filter plugins by name",pluginsSearchEmpty:e=>`No plugins match "${e}".`,pluginsKindFilterAll:"All",pluginsKindFilterA11y:"Filter plugins by kind",pluginsKindFilterOptionA11y:(e,t)=>t?`Show only ${e} extensions`:"Show all kinds",unsavedChangesMessage:e=>e===1?'1 unsaved change. Click "Apply" to persist it.':`${e} unsaved changes. Click "Apply" to persist them.`,startsAsDisabledRowHint:"This plugin started disabled and is not loaded in memory. Restart `sm serve` for the change to take effect.",startsAsDisabledFooterHint:"Some plugins were disabled when the server started. Consider restarting `sm serve` so they take effect.",discardChanges:"Discard",applyAndClose:"Apply",discardA11y:"Discard pending plugin changes",applyA11y:"Apply pending plugin changes and refresh the graph",confirmCloseTitle:"Apply pending changes?",confirmCloseBody:e=>e===1?"You have 1 unsaved change.":`You have ${e} unsaved changes.`,keepEditing:"Keep editing",sourceBuiltIn:"Built-in",sourceProject:"Project",sourceGlobal:"Global",enabledLabel:"Enabled",disabledLabel:"Disabled",lockedLabel:"Locked",lockedTooltip:"Locked by the host (cannot be toggled).",expandLabel:"Show extensions",collapseLabel:"Hide extensions",statusFailure:{"incompatible-spec":"Incompatible spec version","invalid-manifest":"Invalid manifest","load-error":"Failed to load","id-collision":"Plugin id collision"},loading:"Loading plugins\u2026",empty:"No plugins installed.",errorPrefix:"Could not load plugins:",toggleErrorPrefix:"Toggle failed:",a11y:{triggerLabel:"Open settings",pluginToggle:(e,t)=>t?`Enable plugin ${e}`:`Disable plugin ${e}`,extensionToggle:(e,t)=>t?`Enable ${e}`:`Disable ${e}`,pluginRow:e=>`Plugin ${e} row`,extensionRow:e=>`Extension ${e} row`}};var h={available:"Update available",tooltip:e=>`v${e} is available. Run \`npm i -g @skill-map/cli@latest\` to update.`,a11yLabel:e=>`Update available: version ${e}`,versionLabel:e=>`v${e}`,versionTooltip:e=>`skill-map CLI v${e}`,versionA11yLabel:e=>`Running version ${e}`,fetchFailed:e=>`UpdateCheckService: fetch failed (${e})`};var m=class e{dataSource=o(i);status=s(null);isOutdated=r(()=>this.status()?.isOutdated===!0);latest=r(()=>this.status()?.latest??null);current=r(()=>this.status()?.current??null);async load(){try{let t=await this.dataSource.getUpdateStatus();this.status.set(t)}catch(t){let a=t instanceof Error?t.message:String(t);console.warn(h.fetchFailed(a))}}static \u0275fac=function(a){return new(a||e)};static \u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"})};var f={scanFailed:e=>`scan-trigger failed: ${e}`};var y=class e{dataSource=o(i);loader=o(u);scanning=s(!1);scanError=s(null);async run(){if(!this.scanning()){this.scanning.set(!0),this.scanError.set(null);try{await this.dataSource.runScan(),await this.loader.load()}catch(t){let a=t instanceof p||t instanceof Error?t.message:String(t);this.scanError.set(a),console.warn(f.scanFailed(a))}finally{this.scanning.set(!1)}}}static \u0275fac=function(a){return new(a||e)};static \u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"})};var v="skill-map.ui.theme",E="app-dark",D="dark",S="(prefers-color-scheme: dark)",k=class e{doc=o(d);destroyRef=o(c);mode=s(this.readInitial());systemPrefersDark=s(this.readSystemPref());resolved=r(()=>{let t=this.mode();return t==="auto"?this.systemPrefersDark()?"dark":"light":t});constructor(){this.subscribeToSystemPref(),g(()=>{let t=this.resolved()==="dark",a=this.doc.documentElement;a.classList.toggle(E,t),a.classList.toggle(D,t);try{this.doc.defaultView?.localStorage.setItem(v,this.mode())}catch{}})}toggle(){this.mode.update(t=>t==="auto"?"light":t==="light"?"dark":"auto")}set(t){this.mode.set(t)}readInitial(){try{let t=this.doc.defaultView?.localStorage.getItem(v);if(t==="auto"||t==="light"||t==="dark")return t}catch{}return"auto"}readSystemPref(){try{return this.doc.defaultView?.matchMedia(S).matches??!1}catch{return!1}}subscribeToSystemPref(){let t=this.doc.defaultView;if(!t||typeof t.matchMedia!="function")return;let a=t.matchMedia(S),l=T=>{this.systemPrefersDark.set(T.matches)};a.addEventListener("change",l),this.destroyRef.onDestroy(()=>a.removeEventListener("change",l))}static \u0275fac=function(a){return new(a||e)};static \u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"})};export{h as a,m as b,L as c,y as d,k as e};
1
+ import{J as n,O as o,Tb as r,Y as d,Z as c,da as s,ea as g,id as i,jd as p,nd as u}from"./chunk-J3YWUNFO.js";var L={triggerLabel:"Settings",triggerTooltip:"Settings",modalTitle:"Settings",closeLabel:"Close",sections:{plugins:"Plugins",general:"General",project:"Project",changelog:"Changelog",about:"About"},general:{heading:"General",intro:"User-scope preferences. These settings live in your home directory (`~/.skill-map/settings.json`) and follow you across projects.",loadErrorPrefix:"Could not load preferences:",saveErrorPrefix:"Could not save preferences:",toggles:{"updateCheck.enabled":{label:"Check for updates",description:"Check npm for newer @skill-map/cli releases."}},localPreferences:{heading:"This browser",intro:"Visual preferences saved in this browser only. They won't sync to another machine."},connectionType:{label:"Edge style",description:"Shape of the lines that connect nodes in the graph view.",options:{segment:{label:"Orthogonal",description:"Right-angled segments (default)."},straight:{label:"Straight",description:"Single straight line."},bezier:{label:"Bezier",description:"Smooth curve."},"adaptive-curve":{label:"Adaptive curve",description:"Curve that follows the connector orientation."}}}},project:{heading:"Project",intro:"These settings apply only to this project and are saved in its `.skill-map/settings.local.json` file.",loadErrorPrefix:"Could not load project settings:",saveErrorPrefix:"Could not save project settings:",extraFoldersLabel:"Extra folders to scan",extraFoldersDescription:"Additional folders included in the scan. Their files show up in the graph next to this project. Use ~/ for paths inside your home folder. This is the only way to extend the scan beyond this project.",extraFoldersPlaceholder:"~/.claude/agents, /path/to/another/folder",referencePathsLabel:"Folders for link validation",referencePathsDescription:'Folders checked only to validate links. Files here are not indexed and do not appear in the graph, they just stop "broken link" warnings when a link points to a real file outside this project.',referencePathsPlaceholder:"~/Documents/research, ~/.claude",addPathLabel:"Add path",removePathLabel:"Remove",confirmDialogHeader:"Allow access to folders outside this project?",confirmDialogIntro:"This change lets the scan read files in:",confirmDialogAccept:"Allow access",confirmDialogReject:"Cancel"},changelogHeading:"Changelog",changelogIntro:"What's new in skill-map. Each entry covers a release of @skill-map/cli (the CLI + bundled UI) and lists the user-facing changes plus the workspace(s) each one affects.",changelogEmpty:"No release notes yet. Future releases will populate this list automatically from the changesets shipped in each PR.",changelogInternalRelease:"Internal release. Focus on stability, infra, and refactors. No user-facing changes this time.",changelogAffectedPackages:"Affected packages",aboutHeading:"About",aboutIntro:"Version information for the running CLI / server.",aboutCliLabel:"skill-map CLI",aboutSpecLabel:"Spec version",aboutSchemaLabel:"Schema version",aboutScopeLabel:"Scope",aboutFolderLabel:"Project folder",aboutDbLabel:"Project DB",aboutHomeLabel:"Skill-map home",aboutDbValue:(e,t)=>e==="present"?t:`${e} \xB7 ${t}`,aboutLoading:"Loading\u2026",aboutUnknown:"\u2014",aboutErrorPrefix:"Could not read health endpoint:",aboutLinksHeading:"Links",aboutWebsiteLabel:"Website",aboutGithubLabel:"GitHub",aboutWebsiteUrl:"https://skill-map.dev/",aboutGithubUrl:"https://github.com/crystian/skill-map",aboutStarHeading:"Enjoying skill-map?",aboutStarBody:"If it's useful to you, drop us a star on GitHub, it helps a lot and keeps the project alive.",aboutStarCta:"Star on GitHub",aboutStarA11y:"Open the skill-map repository on GitHub to give it a star",pluginsHeading:"Plugins",pluginsIntro:"Enable or disable installed plugins.",pluginsSearchPlaceholder:"Filter by name\u2026",pluginsSearchA11y:"Filter plugins by name",pluginsSearchEmpty:e=>`No plugins match "${e}".`,pluginsKindFilterAll:"All",pluginsKindFilterA11y:"Filter plugins by kind",pluginsKindFilterOptionA11y:(e,t)=>t?`Show only ${e} extensions`:"Show all kinds",unsavedChangesMessage:e=>e===1?'1 unsaved change. Click "Apply" to persist it.':`${e} unsaved changes. Click "Apply" to persist them.`,startsAsDisabledRowHint:"This plugin started disabled and is not loaded in memory. Restart `sm serve` for the change to take effect.",startsAsDisabledFooterHint:"Some plugins were disabled when the server started. Consider restarting `sm serve` so they take effect.",discardChanges:"Discard",applyAndClose:"Apply",discardA11y:"Discard pending plugin changes",applyA11y:"Apply pending plugin changes and refresh the graph",confirmCloseTitle:"Apply pending changes?",confirmCloseBody:e=>e===1?"You have 1 unsaved change.":`You have ${e} unsaved changes.`,keepEditing:"Keep editing",sourceBuiltIn:"Built-in",sourceProject:"Project",sourceGlobal:"Global",enabledLabel:"Enabled",disabledLabel:"Disabled",lockedLabel:"Locked",lockedTooltip:"Locked by the host (cannot be toggled).",expandLabel:"Show extensions",collapseLabel:"Hide extensions",statusFailure:{"incompatible-spec":"Incompatible spec version","invalid-manifest":"Invalid manifest","load-error":"Failed to load","id-collision":"Plugin id collision"},loading:"Loading plugins\u2026",empty:"No plugins installed.",errorPrefix:"Could not load plugins:",toggleErrorPrefix:"Toggle failed:",a11y:{triggerLabel:"Open settings",pluginToggle:(e,t)=>t?`Enable plugin ${e}`:`Disable plugin ${e}`,extensionToggle:(e,t)=>t?`Enable ${e}`:`Disable ${e}`,pluginRow:e=>`Plugin ${e} row`,extensionRow:e=>`Extension ${e} row`}};var h={available:"Update available",tooltip:e=>`v${e} is available. Run \`npm i -g @skill-map/cli@latest\` to update.`,a11yLabel:e=>`Update available: version ${e}`,versionLabel:e=>`v${e}`,versionTooltip:e=>`skill-map CLI v${e}`,versionA11yLabel:e=>`Running version ${e}`,fetchFailed:e=>`UpdateCheckService: fetch failed (${e})`};var m=class e{dataSource=o(i);status=s(null);isOutdated=r(()=>this.status()?.isOutdated===!0);latest=r(()=>this.status()?.latest??null);current=r(()=>this.status()?.current??null);async load(){try{let t=await this.dataSource.getUpdateStatus();this.status.set(t)}catch(t){let a=t instanceof Error?t.message:String(t);console.warn(h.fetchFailed(a))}}static \u0275fac=function(a){return new(a||e)};static \u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"})};var f={scanFailed:e=>`scan-trigger failed: ${e}`};var y=class e{dataSource=o(i);loader=o(u);scanning=s(!1);scanError=s(null);async run(){if(!this.scanning()){this.scanning.set(!0),this.scanError.set(null);try{await this.dataSource.runScan(),await this.loader.load()}catch(t){let a=t instanceof p||t instanceof Error?t.message:String(t);this.scanError.set(a),console.warn(f.scanFailed(a))}finally{this.scanning.set(!1)}}}static \u0275fac=function(a){return new(a||e)};static \u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"})};var v="skill-map.ui.theme",E="app-dark",D="dark",S="(prefers-color-scheme: dark)",k=class e{doc=o(d);destroyRef=o(c);mode=s(this.readInitial());systemPrefersDark=s(this.readSystemPref());resolved=r(()=>{let t=this.mode();return t==="auto"?this.systemPrefersDark()?"dark":"light":t});constructor(){this.subscribeToSystemPref(),g(()=>{let t=this.resolved()==="dark",a=this.doc.documentElement;a.classList.toggle(E,t),a.classList.toggle(D,t);try{this.doc.defaultView?.localStorage.setItem(v,this.mode())}catch{}})}toggle(){this.mode.update(t=>t==="auto"?"light":t==="light"?"dark":"auto")}set(t){this.mode.set(t)}readInitial(){try{let t=this.doc.defaultView?.localStorage.getItem(v);if(t==="auto"||t==="light"||t==="dark")return t}catch{}return"auto"}readSystemPref(){try{return this.doc.defaultView?.matchMedia(S).matches??!1}catch{return!1}}subscribeToSystemPref(){let t=this.doc.defaultView;if(!t||typeof t.matchMedia!="function")return;let a=t.matchMedia(S),l=T=>{this.systemPrefersDark.set(T.matches)};a.addEventListener("change",l),this.destroyRef.onDestroy(()=>a.removeEventListener("change",l))}static \u0275fac=function(a){return new(a||e)};static \u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"})};export{h as a,m as b,L as c,y as d,k as e};
@@ -1,4 +1,4 @@
1
- import{a as we,d as Ee,e as Ne,g as Be,h as ke,i as De,j as Se,k as ze,l as Fe,m as Oe}from"./chunk-ZYPPIYEF.js";import{$ as R,Aa as T,Ba as I,Hb as E,I as ae,Ic as ee,J as v,Jb as xe,Jc as b,K as x,Ka as u,Kb as ye,La as pe,Lc as N,M as y,Ma as ue,Na as w,O as l,Oa as M,Oc as B,Pc as $,Qb as X,Ra as me,Sa as ge,T as q,Ta as c,Tb as J,U as K,Ua as D,V as le,Va as S,Vc as r,Wa as U,Wc as H,Xb as f,Zc as Ie,ab as P,ad as Me,cc as h,da as re,db as G,dc as _e,ea as se,fb as V,ga as m,hb as d,ib as j,jb as L,jc as Ce,ka as ce,kb as W,mb as z,mc as Te,nb as F,oa as g,oc as Y,pc as O,rb as fe,tb as he,vb as p,wa as k,wb as be,xa as _,xb as ve,ya as de,za as C}from"./chunk-XPMAU22J.js";import{U as Z,V as Q}from"./chunk-3R7E3HPC.js";import{a as ie}from"./chunk-Q7L6LLAK.js";var Ae=`
1
+ import{a as we,d as Ee,e as Ne,g as Be,h as ke,i as De,j as Se,k as ze,l as Fe,m as Oe}from"./chunk-VO6NF24F.js";import{$ as R,Aa as T,Ba as I,Hb as E,I as ae,Ic as ee,J as v,Jb as xe,Jc as b,K as x,Ka as u,Kb as ye,La as pe,Lc as N,M as y,Ma as ue,Na as w,O as l,Oa as M,Oc as B,Pc as $,Qb as X,Ra as me,Sa as ge,T as q,Ta as c,Tb as J,U as K,Ua as D,V as le,Va as S,Vc as r,Wa as U,Wc as H,Xb as f,Zc as Ie,ab as P,ad as Me,cc as h,da as re,db as G,dc as _e,ea as se,fb as V,ga as m,hb as d,ib as j,jb as L,jc as Ce,ka as ce,kb as W,mb as z,mc as Te,nb as F,oa as g,oc as Y,pc as O,rb as fe,tb as he,vb as p,wa as k,wb as be,xa as _,xb as ve,ya as de,za as C}from"./chunk-J3YWUNFO.js";import{U as Z,V as Q}from"./chunk-H2J55DNK.js";import{a as ie}from"./chunk-Q7L6LLAK.js";var Ae=`
2
2
  .p-message {
3
3
  display: grid;
4
4
  grid-template-rows: 1fr;
@@ -1,4 +1,4 @@
1
- import{$ as L,Aa as c,Ba as Fe,Ea as nt,Hb as S,I as $,Ic as vt,J as U,Jb as Se,Jc as he,K as O,Ka as re,Lc as fe,M as b,Na as P,O as M,Oa as R,Oc as z,Pc as Z,Sb as A,Ta as j,Tb as D,Ua as we,V as et,Va as Ie,Vc as I,Wa as it,Wb as u,Wc as ge,Xb as s,Za as ot,_c as yt,ab as Ne,ad as _t,bc as ct,cc as w,d as Ke,da as V,dc as ht,ea as ie,ec as Oe,fa as tt,fb as se,ga as v,gc as xe,h as Ye,hb as q,ia as Ae,ib as rt,jb as st,kb as at,mb as ae,n as Xe,nb as le,oa as W,oc as ft,pc as de,ra as Ee,sa as y,t as Je,tb as lt,vb as T,wa as B,wb as dt,xa as x,xb as ut,ya as C,za as oe}from"./chunk-XPMAU22J.js";import{I as pt,K as ce,P as ke,T as mt,b as ue,d as Te,fa as Le,g as gt}from"./chunk-3R7E3HPC.js";import{a as p,b as F}from"./chunk-Q7L6LLAK.js";var Xt=["data-p-icon","times"],si=(()=>{class t extends yt{static \u0275fac=(()=>{let e;return function(o){return(e||(e=v(t)))(o||t)}})();static \u0275cmp=B({type:t,selectors:[["","data-p-icon","times"]],features:[c],attrs:Xt,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(i,o){i&1&&(et(),ot(0,"path",0))},encapsulation:2})}return t})();var Jt=Object.defineProperty,Ct=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,bt=(t,n,e)=>n in t?Jt(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,Dt=(t,n)=>{for(var e in n||(n={}))en.call(n,e)&&bt(t,e,n[e]);if(Ct)for(var e of Ct(n))tn.call(n,e)&&bt(t,e,n[e]);return t},nn=(t,n,e)=>new Promise((i,o)=>{var r=l=>{try{g(e.next(l))}catch(h){o(h)}},a=l=>{try{g(e.throw(l))}catch(h){o(h)}},g=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,a);g((e=e.apply(t,n)).next())}),pe="animation",K="transition";function on(t){return t?t.disabled||!!(t.safe&&pt()):!1}function rn(t,n){return t?Dt(Dt({},t),Object.entries(n).reduce((e,[i,o])=>{var r;return e[i]=(r=t[i])!=null?r:o,e},{})):n}function sn(t){let{name:n,enterClass:e,leaveClass:i}=t||{};return{enter:{from:e?.from||`${n}-enter-from`,to:e?.to||`${n}-enter-to`,active:e?.active||`${n}-enter-active`},leave:{from:i?.from||`${n}-leave-from`,to:i?.to||`${n}-leave-to`,active:i?.active||`${n}-leave-active`}}}function an(t){return{enter:{onBefore:t?.onBeforeEnter,onStart:t?.onEnter,onAfter:t?.onAfterEnter,onCancelled:t?.onEnterCancelled},leave:{onBefore:t?.onBeforeLeave,onStart:t?.onLeave,onAfter:t?.onAfterLeave,onCancelled:t?.onLeaveCancelled}}}function ln(t,n){let e=window.getComputedStyle(t),i=m=>{let N=e[`${m}Delay`],E=e[`${m}Duration`];return[N.split(", ").map(Le),E.split(", ").map(Le)]},[o,r]=i(K),[a,g]=i(pe),l=Math.max(...r.map((m,N)=>m+o[N])),h=Math.max(...g.map((m,N)=>m+a[N])),d,f=0,_=0;return n===K?l>0&&(d=K,f=l,_=r.length):n===pe?h>0&&(d=pe,f=h,_=g.length):(f=Math.max(l,h),d=f>0?l>h?K:pe:void 0,_=d?d===K?r.length:g.length:0),{type:d,timeout:f,count:_}}function me(t,n){return typeof t=="number"?t:typeof t=="object"&&t[n]!=null?t[n]:null}function dn(t,n=!0,e=!1){if(!n&&!e)return;let i=gt(t);n&&ke(t,"--pui-motion-height",i.height+"px"),e&&ke(t,"--pui-motion-width",i.width+"px")}var un={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function Be(t,n){if(!t)throw new Error("Element is required.");let e={},i=!1,o={},r=null,a={},g=d=>{if(Object.assign(e,rn(d,un)),!e.enter&&!e.leave)throw new Error("Enter or leave must be true.");a=an(e),i=on(e),o=sn(e),r=null},l=d=>nn(null,null,function*(){r?.();let{onBefore:f,onStart:_,onAfter:m,onCancelled:N}=a[d]||{},E={element:t};if(i){f?.(E),_?.(E),m?.(E);return}let{from:We,active:qe,to:ze}=o[d]||{};return dn(t,e.autoHeight,e.autoWidth),f?.(E),ue(t,We),ue(t,qe),t.offsetHeight,Te(t,We),ue(t,ze),_?.(E),new Promise(Ze=>{let Kt=me(e.duration,d),Qe=()=>{Te(t,[ze,qe]),r=null},Yt=()=>{Qe(),m?.(E),Ze()};r=()=>{Qe(),N?.(E),Ze()},hn(t,e.type,Kt,Yt)})});g(n);let h={enter:()=>e.enter?l("enter"):Promise.resolve(),leave:()=>e.leave?l("leave"):Promise.resolve(),cancel:()=>{r?.(),r=null},update:(d,f)=>{if(!d)throw new Error("Element is required.");t=d,h.cancel(),g(f)}};return e.appear&&h.enter(),h}var cn=0;function hn(t,n,e,i){let o=t._motionEndId=++cn,r=()=>{o===t._motionEndId&&i()};if(e!=null)return setTimeout(r,e);let{type:a,timeout:g,count:l}=ln(t,n);if(!a){i();return}let h=a+"end",d=0,f=()=>{t.removeEventListener(h,_,!0),r()},_=m=>{m.target===t&&++d>=l&&f()};t.addEventListener(h,_,{capture:!0,once:!0}),setTimeout(()=>{d<l&&f()},g+1)}var gn=["*"];function pn(t,n){t&1&&st(0)}var ve=new WeakMap;function Y(t,n){if(t)switch(ve.has(t)||ve.set(t,{display:t.style.display,visibility:t.style.visibility,maxHeight:t.style.maxHeight,overflow:t.style.overflow}),n){case"display":t.style.display="none";break;case"visibility":t.style.visibility="hidden",t.style.maxHeight="0",t.style.overflow="hidden";break}}function ye(t,n){if(!t)return;let e=ve.get(t)??t.style;switch(n){case"display":t.style.display=e?.display||"";break;case"visibility":t.style.visibility=e?.visibility||"",t.style.maxHeight=e?.maxHeight||"",t.style.overflow=e?.overflow||"";break}ve.delete(t)}var mn=`
1
+ import{$ as L,Aa as c,Ba as Fe,Ea as nt,Hb as S,I as $,Ic as vt,J as U,Jb as Se,Jc as he,K as O,Ka as re,Lc as fe,M as b,Na as P,O as M,Oa as R,Oc as z,Pc as Z,Sb as A,Ta as j,Tb as D,Ua as we,V as et,Va as Ie,Vc as I,Wa as it,Wb as u,Wc as ge,Xb as s,Za as ot,_c as yt,ab as Ne,ad as _t,bc as ct,cc as w,d as Ke,da as V,dc as ht,ea as ie,ec as Oe,fa as tt,fb as se,ga as v,gc as xe,h as Ye,hb as q,ia as Ae,ib as rt,jb as st,kb as at,mb as ae,n as Xe,nb as le,oa as W,oc as ft,pc as de,ra as Ee,sa as y,t as Je,tb as lt,vb as T,wa as B,wb as dt,xa as x,xb as ut,ya as C,za as oe}from"./chunk-J3YWUNFO.js";import{I as pt,K as ce,P as ke,T as mt,b as ue,d as Te,fa as Le,g as gt}from"./chunk-H2J55DNK.js";import{a as p,b as F}from"./chunk-Q7L6LLAK.js";var Xt=["data-p-icon","times"],si=(()=>{class t extends yt{static \u0275fac=(()=>{let e;return function(o){return(e||(e=v(t)))(o||t)}})();static \u0275cmp=B({type:t,selectors:[["","data-p-icon","times"]],features:[c],attrs:Xt,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(i,o){i&1&&(et(),ot(0,"path",0))},encapsulation:2})}return t})();var Jt=Object.defineProperty,Ct=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,bt=(t,n,e)=>n in t?Jt(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,Dt=(t,n)=>{for(var e in n||(n={}))en.call(n,e)&&bt(t,e,n[e]);if(Ct)for(var e of Ct(n))tn.call(n,e)&&bt(t,e,n[e]);return t},nn=(t,n,e)=>new Promise((i,o)=>{var r=l=>{try{g(e.next(l))}catch(h){o(h)}},a=l=>{try{g(e.throw(l))}catch(h){o(h)}},g=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,a);g((e=e.apply(t,n)).next())}),pe="animation",K="transition";function on(t){return t?t.disabled||!!(t.safe&&pt()):!1}function rn(t,n){return t?Dt(Dt({},t),Object.entries(n).reduce((e,[i,o])=>{var r;return e[i]=(r=t[i])!=null?r:o,e},{})):n}function sn(t){let{name:n,enterClass:e,leaveClass:i}=t||{};return{enter:{from:e?.from||`${n}-enter-from`,to:e?.to||`${n}-enter-to`,active:e?.active||`${n}-enter-active`},leave:{from:i?.from||`${n}-leave-from`,to:i?.to||`${n}-leave-to`,active:i?.active||`${n}-leave-active`}}}function an(t){return{enter:{onBefore:t?.onBeforeEnter,onStart:t?.onEnter,onAfter:t?.onAfterEnter,onCancelled:t?.onEnterCancelled},leave:{onBefore:t?.onBeforeLeave,onStart:t?.onLeave,onAfter:t?.onAfterLeave,onCancelled:t?.onLeaveCancelled}}}function ln(t,n){let e=window.getComputedStyle(t),i=m=>{let N=e[`${m}Delay`],E=e[`${m}Duration`];return[N.split(", ").map(Le),E.split(", ").map(Le)]},[o,r]=i(K),[a,g]=i(pe),l=Math.max(...r.map((m,N)=>m+o[N])),h=Math.max(...g.map((m,N)=>m+a[N])),d,f=0,_=0;return n===K?l>0&&(d=K,f=l,_=r.length):n===pe?h>0&&(d=pe,f=h,_=g.length):(f=Math.max(l,h),d=f>0?l>h?K:pe:void 0,_=d?d===K?r.length:g.length:0),{type:d,timeout:f,count:_}}function me(t,n){return typeof t=="number"?t:typeof t=="object"&&t[n]!=null?t[n]:null}function dn(t,n=!0,e=!1){if(!n&&!e)return;let i=gt(t);n&&ke(t,"--pui-motion-height",i.height+"px"),e&&ke(t,"--pui-motion-width",i.width+"px")}var un={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function Be(t,n){if(!t)throw new Error("Element is required.");let e={},i=!1,o={},r=null,a={},g=d=>{if(Object.assign(e,rn(d,un)),!e.enter&&!e.leave)throw new Error("Enter or leave must be true.");a=an(e),i=on(e),o=sn(e),r=null},l=d=>nn(null,null,function*(){r?.();let{onBefore:f,onStart:_,onAfter:m,onCancelled:N}=a[d]||{},E={element:t};if(i){f?.(E),_?.(E),m?.(E);return}let{from:We,active:qe,to:ze}=o[d]||{};return dn(t,e.autoHeight,e.autoWidth),f?.(E),ue(t,We),ue(t,qe),t.offsetHeight,Te(t,We),ue(t,ze),_?.(E),new Promise(Ze=>{let Kt=me(e.duration,d),Qe=()=>{Te(t,[ze,qe]),r=null},Yt=()=>{Qe(),m?.(E),Ze()};r=()=>{Qe(),N?.(E),Ze()},hn(t,e.type,Kt,Yt)})});g(n);let h={enter:()=>e.enter?l("enter"):Promise.resolve(),leave:()=>e.leave?l("leave"):Promise.resolve(),cancel:()=>{r?.(),r=null},update:(d,f)=>{if(!d)throw new Error("Element is required.");t=d,h.cancel(),g(f)}};return e.appear&&h.enter(),h}var cn=0;function hn(t,n,e,i){let o=t._motionEndId=++cn,r=()=>{o===t._motionEndId&&i()};if(e!=null)return setTimeout(r,e);let{type:a,timeout:g,count:l}=ln(t,n);if(!a){i();return}let h=a+"end",d=0,f=()=>{t.removeEventListener(h,_,!0),r()},_=m=>{m.target===t&&++d>=l&&f()};t.addEventListener(h,_,{capture:!0,once:!0}),setTimeout(()=>{d<l&&f()},g+1)}var gn=["*"];function pn(t,n){t&1&&st(0)}var ve=new WeakMap;function Y(t,n){if(t)switch(ve.has(t)||ve.set(t,{display:t.style.display,visibility:t.style.visibility,maxHeight:t.style.maxHeight,overflow:t.style.overflow}),n){case"display":t.style.display="none";break;case"visibility":t.style.visibility="hidden",t.style.maxHeight="0",t.style.overflow="hidden";break}}function ye(t,n){if(!t)return;let e=ve.get(t)??t.style;switch(n){case"display":t.style.display=e?.display||"";break;case"visibility":t.style.visibility=e?.visibility||"",t.style.maxHeight=e?.maxHeight||"",t.style.overflow=e?.overflow||"";break}ve.delete(t)}var mn=`
2
2
  .p-motion {
3
3
  display: block;
4
4
  }