@skill-map/cli 0.14.1 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import{a as de,b as ce}from"./chunk-DOJURY6T.js";import{d as oe,e as ae,f as Ge,g as le}from"./chunk-ZF7H74JY.js";import{$ as V,A as T,B as W,Ba as $,Cb as ze,D as xe,Da as Le,Db as He,Ea as G,Fa as P,Fc as $e,G as Se,Ga as d,Gc as je,H as q,Ha as c,Hc as z,I as i,Ia as ge,Ic as ee,Ja as w,Kc as Ue,Nc as Qe,O as B,Oa as he,Oc as Ke,P as we,Pa as J,Qa as f,R as Ee,Ra as Ne,S as Pe,T as h,Ta as j,Uc as U,Vc as te,W as E,Z as m,_,_a as Fe,aa as b,ab as R,ad as ne,ba as k,bb as De,bd as ie,ca as p,cb as A,cd as We,da as r,dd as re,ea as a,fa as y,fd as Xe,ga as X,gd as Ye,ha as fe,i as be,ia as Me,ja as Ce,ka as ye,l as K,la as S,m as ke,n as Te,oa as L,ob as Re,p as v,qa as N,qb as Z,r as M,ra as l,rb as Ae,s as O,sa as Oe,ta as Y,tc as qe,ua as Ve,w as Ie,wa as F,xa as D,yb as Be}from"./chunk-AVRC55YV.js";import"./chunk-Q7L6LLAK.js";var Je=`
1
+ import{a as de,b as ce}from"./chunk-TGJQE3TH.js";import{a as Ge,b as le}from"./chunk-TG6IWVEC.js";import{$ as V,$c as ae,A as T,Ac as z,B as W,Ba as $,Bc as ee,Cb as ze,D as xe,Da as Le,Db as He,Dc as Ue,Ea as G,Fa as P,G as Se,Ga as d,Gc as Qe,H as q,Ha as c,Hc as Ke,I as i,Ia as ge,Ja as w,Nc as U,O as B,Oa as he,Oc as te,P as we,Pa as J,Qa as f,R as Ee,Ra as Ne,S as Pe,T as h,Ta as j,Vc as ne,W as E,Wc as ie,Z as m,_,_a as Fe,_c as oe,aa as b,ab as R,ad as We,ba as k,bb as De,bd as re,ca as p,cb as A,da as r,dd as Xe,ea as a,ed as Ye,fa as y,ga as X,ha as fe,i as be,ia as Me,ja as Ce,ka as ye,l as K,la as S,m as ke,mc as qe,n as Te,oa as L,ob as Re,p as v,qa as N,qb as Z,r as M,ra as l,rb as Ae,s as O,sa as Oe,ta as Y,ua as Ve,w as Ie,wa as F,xa as D,yb as Be,yc as $e,zc as je}from"./chunk-7PFTODKS.js";import"./chunk-Q7L6LLAK.js";var Je=`
2
2
  .p-card {
3
3
  background: dt('card.background');
4
4
  color: dt('card.color');
@@ -1,4 +1,4 @@
1
- import{g as Ai,h as Li,i as zi,u as Bi,v as Gi,w as xf}from"./chunk-TEPC3SFH.js";import{b as Fi}from"./chunk-G6SL4UFD.js";import{d as Qt,e as Jt}from"./chunk-ZF7H74JY.js";import{$ as at,$a as Pt,A as re,Aa as We,B as Re,C as Kt,Ca as gt,Cb as yf,D as X,Da as $e,E as he,F as bi,Fa as tt,Ga as T,Ha as N,I as f,Ia as dt,J as lf,K as uf,Ka as gf,L as ff,M as sl,N as Ii,O as se,Oa as _f,P as hf,Pa as Mi,Q as pe,Qa as _t,Ra as be,S as ce,T as Si,W as te,Z as k,_ as O,_a as pf,aa as me,ab as G,ad as vf,ba as ye,bb as lt,bd as Cf,ca as A,cb as F,d as _,da as y,db as ve,ea as v,eb as Ri,fa as U,fb as cl,fd as ki,ga as Je,gb as Mt,gd as Oi,ha as et,ia as Zt,ib as oe,ja as Di,jb as Ne,ka as Ti,l as u,m as cf,ma as Ei,n as ee,na as Pi,o as Yt,oa as Et,p as c,q as df,qa as Ie,r as ue,ra as S,rb as mf,s as fe,sa as En,sb as Ni,t as Ge,ta as Se,u as Ae,v as wi,w as Ze,x as Qe,y as Tn,ya as al,za as ct}from"./chunk-AVRC55YV.js";import{a as J,b as rl}from"./chunk-Q7L6LLAK.js";var Rt=class{constructor(i,e,t,o,r){this.center=i,this.radiusX=e,this.radiusY=t,this.startAngle=o,this.endAngle=r}},M=class n{static castToPoint(i){return i||n.initialize()}static initialize(i=0,e=0){return{x:i,y:e}}static copy(i){return n.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,t){let o=1-t;return n.initialize(i.x*o+e.x*t,i.y*o+e.y*t)}static roundTo(i,e){let t=Math.trunc(i.x/e),o=Math.trunc(i.y/e);return{x:t*e,y:o*e}}static hypotenuse(i,e){let t=e.x-i.x,o=e.y-i.y;return Math.abs(Math.sqrt(t*t+o*o))}static distance(i,e){let t=i.x-e.x,o=i.y-e.y;return Math.sqrt(t*t+o*o)}static getMinimum(i,e){return n.initialize(Math.min(i.x,e.x),Math.min(i.y,e.y))}static getMaximum(i,e){return n.initialize(Math.max(i.x,e.x),Math.max(i.y,e.y))}static matrixTransform(i,e){let t=n.initialize(i.x,i.y),o=e.getScreenCTM();if(o){let r=e.createSVGPoint();r.x=i.x,r.y=i.y,t=r.matrixTransform(o.inverse())}return t}static elementTransform(i,e){let t=n.initialize(i.x,i.y),o=e.getBoundingClientRect();return t=n.sub(t,n.initialize(o.left,o.top)),t}},j=class n{constructor(i=0,e=0){this.x=i,this.y=e}static fromPoint(i){return new n(i.x,i.y)}add(i){let e=M.sum(this,i);return n.fromPoint(e)}sub(i){let e=M.sub(this,i);return n.fromPoint(e)}subNumber(i){let e=M.sub(this,new n(i,i));return n.fromPoint(e)}div(i){let e=M.div(this,i);return n.fromPoint(e)}mult(i){let e=M.mult(this,i);return n.fromPoint(e)}matrixTransform(i){let e=M.matrixTransform(this,i);return n.fromPoint(e)}elementTransform(i){let e=M.elementTransform(this,i);return n.fromPoint(e)}},Pn=class{static initialize(i=M.initialize(),e=M.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))}},Nt=class{constructor(i,e){this.point1=i,this.point2=e}},z=class n{static initialize(i=0,e=0,t=0,o=0){t<0&&(i=i+t,t=-t),o<0&&(e=e+o,o=-o);let r=M.initialize(i+t/2,e+o/2);return{x:i,y:e,width:t,height:o,gravityCenter:r}}static copy(i){return n.initialize(i.x,i.y,i.width,i.height)}static fromElement(i){let{x:e,y:t,width:o,height:r}=i.getBoundingClientRect();return n.initialize(e,t,o,r)}static isIncludePoint(i,e){return e.x>=n.left(i)&&e.x<=n.right(i)&&e.y>=n.top(i)&&e.y<=n.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 t=n.copy(i);return t.x+=e.x,t.y+=e.y,this.initialize(t.x,t.y,t.width,t.height)}static mult(i,e){let t=n.copy(i);return t.x*=e,t.y*=e,t.width*=e,t.height*=e,this.initialize(t.x,t.y,t.width,t.height)}static div(i,e){let t=n.copy(i);return t.x/=e,t.y/=e,t.width/=e,t.height/=e,this.initialize(t.x,t.y,t.width,t.height)}static addPointToSize(i,e){let t=n.copy(i);return t.width+=e.x,t.height+=e.y,this.initialize(t.x,t.y,t.width,t.height)}static union(i){return!i||i.length===0?null:i.reduce((e,t)=>{let o=Math.min(e.x,t.x),r=Math.min(e.y,t.y),s=Math.max(e.x+e.width,t.x+t.width),a=Math.max(e.y+e.height,t.y+t.height);return n.initialize(o,r,s-o,a-r)},i[0])}static elementTransform(i,e){let t=e.getBoundingClientRect(),o=M.sub(i,M.initialize(t.left,t.top));return n.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)?n.initialize(0,0,0,0):i}};function wf(n,i){let e=Math.max(n.width,i),t=Math.max(n.height,i),o=(e-n.width)/2,r=(t-n.height)/2;return z.initialize(n.x-o,n.y-r,e,t)}function ll(n,i){n=z.updateIsNotFinite(n),i.setAttribute("x",n.x.toString()),i.setAttribute("y",n.y.toString()),i.setAttribute("width",n.width.toString()),i.setAttribute("height",n.height.toString())}function bf(n,i){n=z.updateIsNotFinite(n),i.setAttribute("viewBox",`${n.x} ${n.y} ${n.width} ${n.height}`)}var ge=class n{constructor(i=0,e=0,t=0,o=0,r=0,s=0,a=0,d=0){this.x=i,this.y=e,this.width=t,this.height=o,this.radius1=r,this.radius2=s,this.radius3=a,this.radius4=d,this.gravityCenter=M.initialize(),this.gravityCenter=this.calculateGravityCenter(this)}calculateGravityCenter(i){return new j(i.x+i.width/2,i.y+i.height/2)}static fromRect(i){return new n(i.x,i.y,i.width,i.height)}static fromRoundedRect(i){return new n(i.x,i.y,i.width,i.height,i.radius1,i.radius2,i.radius3,i.radius4)}static fromCenter(i,e,t){return new n(i.gravityCenter.x-e/2,i.gravityCenter.y-t/2,e,t,i.radius1,i.radius2,i.radius3,i.radius4)}static fromPoint(i){return new n(i.x,i.y)}addPoint(i){let e=n.fromRoundedRect(this);return e.x+=i.x,e.y+=i.y,e.gravityCenter=this.calculateGravityCenter(e),e}},Xe=class n{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 n.initialize(e.width,e.height)}else if(i instanceof HTMLElement)return n.initialize(i.offsetWidth,i.offsetHeight)}};function Ag(){return{position:M.initialize(),scaledPosition:M.initialize(),scale:1,rotate:0}}function Lg(n){let i;if(n){n=n.replace("matrix(",""),n=n.replace(")","");let e=n.split(" ");i={position:{x:Number(e[4]),y:Number(e[5])},scaledPosition:M.initialize(),scale:Number(e[0]),rotate:0}}return i}var pt=class{static toString(i){let e=M.sum(i.position,i.scaledPosition);return`matrix(${i.scale}, 0, 0, ${i.scale}, ${e.x}, ${e.y})`}static fromString(i){return Lg(i)}static default(){return Ag()}},Le=class n{static initialize(i=0,e=0){return M.initialize(i,e)}static fromPoints(i,e){return n.initialize(e.x-i.x,e.y-i.y)}static vectorLength(i){return Math.sqrt(n.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 n.initialize(i.x-e.x,i.y-e.y)}static add(i,e){return n.initialize(i.x+e.x,i.y+e.y)}static scale(i,e){return n.initialize(i.x*e,i.y*e)}static angle(i,e){let t=Math.acos(Math.max(-1,Math.min(n.dotProduct(i,e)/(n.vectorLength(i)*n.vectorLength(e)),1)));return n.crossProduct(i,e)<0?-t:t}},dl=class{static parseRoundedRect(i){let e=Math.PI*.5,t=i.x,o=i.y,r=i.x+i.width,s=i.y+i.height,a=i.x+i.radius1,d=i.y+i.radius1,l=i.x+i.width-i.radius2,h=i.y+i.radius2,g=i.x+i.width-i.radius3,x=i.y+i.height-i.radius3,m=i.x+i.radius4,E=i.y+i.height-i.radius4;return[new Rt({x:a,y:d},i.radius1,i.radius1,2*e,3*e),new Nt({x:a,y:o},{x:l,y:o}),new Rt({x:l,y:h},i.radius2,i.radius2,3*e,4*e),new Nt({x:r,y:h},{x:r,y:x}),new Rt({x:g,y:x},i.radius3,i.radius3,0,e),new Nt({x:g,y:s},{x:m,y:s}),new Rt({x:m,y:E},i.radius4,i.radius4,e,2*e),new Nt({x:t,y:E},{x:t,y:d})]}},en=class{static getRoundedRectIntersections(i,e,t){let o=dl.parseRoundedRect(t);for(let r of o)if(r instanceof Rt){let s=this.intersectArcWithLine(r,i,e);if(s.length>0)return s}else if(r instanceof Nt){let s=this.intersectLineSegments(i,e,r.point1,r.point2);if(s)return[s]}return[]}static getRoundedRectIntersectionsWithSVGPath(i,e){let t=i.getTotalLength(),o=[];for(let r=0;r<=t;r+=1){let s=i.getPointAtLength(r);o.push({x:s.x,y:s.y})}for(let r=1;r<o.length;r++){let s=this.getRoundedRectIntersections(o[r-1],o[r],e);if(s.length>0)return s}return[]}static intersectArcWithLine(i,e,t){return this.filterPointsWithinArc(this.findEllipseLineIntersections(i.center,i.radiusX,i.radiusY,e,t),i)}static intersectLineSegments(i,e,t,o){let r=e.x-i.x,s=e.y-i.y,a=o.x-t.x,d=o.y-t.y,l=(-s*(i.x-t.x)+r*(i.y-t.y))/(-a*s+r*d),h=(a*(i.y-t.y)-d*(i.x-t.x))/(-a*s+r*d);return l>=0&&l<=1&&h>=0&&h<=1?{x:i.x+h*r,y:i.y+h*s}:null}static filterPointsWithinArc(i,e){let{center:t,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 s=[];for(let a of i){let d=this.normalizeAngle(Le.angle(Le.initialize(1,0),Le.initialize(a.x-t.x,a.y-t.y)));d<o&&(d+=2*Math.PI),o<=d&&d<=r&&s.push(a)}return s}static normalizeAngle(i){let e=i%(2*Math.PI);return e<0?e+2*Math.PI:e}static findEllipseLineIntersections(i,e,t,o,r){let s=Le.initialize(o.x,o.y),a=Le.fromPoints(o,r),d=Le.initialize(i.x,i.y),l=Le.subtract(s,d),h=Le.initialize(a.x/(e*e),a.y/(t*t)),g=Le.initialize(l.x/(e*e),l.y/(t*t)),x=Le.dotProduct(a,h),m=Le.dotProduct(a,g),E=Le.dotProduct(l,g)-1,b=m*m-x*E;return b<0?[]:this.calculateIntersectionPoints(b,x,m,o,r)}static calculateIntersectionPoints(i,e,t,o,r){let s=[];if(i>0){let a=Math.sqrt(i),d=(-t-a)/e,l=(-t+a)/e;d>=0&&d<=1&&s.push(M.interpolatePoints(o,r,d)),l>=0&&l<=1&&s.push(M.interpolatePoints(o,r,l))}else{let a=-t/e;a>=0&&a<=1&&s.push(M.interpolatePoints(o,r,a))}return s}};var ul=class{handle(i,e){let t=!0;if(this.validator&&(t=e.get(this.validator).handle(i)),!!t)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}},D=class n{constructor(){this._injector=c(Ae)}static registerPipeline(i,e,t){if(!i||!i.fToken)throw new Error("Type must have a fToken static property.");let o=this.pipelines.get(i.fToken)||new ul;t?o.setValidator(e):o.setExecution(e),this.pipelines.set(i.fToken,o)}send(i){let e=n.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 n.pipelines.get(i.constructor.fToken).execute(i,this._injector)}};D.pipelines=new Map;D.\u0275fac=function(i){return new(i||D)};D.\u0275prov=u({token:D,factory:D.\u0275fac});function p(n){return function(i){D.registerPipeline(n,i,!1)}}var zg=(()=>{class n{setItem(e,t){localStorage.setItem(e,t)}getItem(e){return localStorage.getItem(e)}removeItem(e){localStorage.removeItem(e)}clear(){localStorage.clear()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Bg=(()=>{class n{storage={};setItem(e,t){this.storage[e]=t}getItem(e){return this.storage[e]||null}removeItem(e){delete this.storage[e]}clear(){this.storage={}}static \u0275fac=function(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Gg=new ee("F_LOCAL_STORAGE",{providedIn:"root",factory:()=>Ni(c(bi))?c(zg):c(Bg)}),Hg=(()=>{class n{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,t,o){window.open(e,t,o)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),jg=(()=>{class n{getComputedStyle(e){return new Proxy({getPropertyValue:t=>"0"},{get:(t,o)=>o==="getPropertyValue"?t.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,t,o){}static \u0275fac=function(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Vg=new ee("F_WINDOW",{providedIn:"root",factory:()=>Ni(c(bi))?c(Hg):c(jg)}),mt=(function(n){return n.MAC_OS="macos",n.IOS="ios",n.WINDOWS="windows",n.ANDROID="android",n.LINUX="linux",n})(mt||{}),fl;try{fl=typeof Intl<"u"&&Intl.v8BreakIterator}catch{fl=!1}var hl=(()=>{class n{_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||fl)&&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?Ni(this._platformId):typeof document=="object"&&!!document}getOS(){let e=navigator.userAgent.toLowerCase(),t=/(macintosh|macintel|macppc|mac68k|macos)/i,o=/(win32|win64|windows|wince)/i,r;return t.test(e)?r=mt.MAC_OS:this.IOS?r=mt.IOS:o.test(e)?r=mt.WINDOWS:this.ANDROID?r=mt.ANDROID:!r&&/linux/.test(e)&&(r=mt.LINUX),r}static \u0275fac=function(t){return new(t||n)(Yt(bi))};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),_e=(()=>{class n{injectedDocument;windowService;localStorageService;platformService;constructor(e,t,o,r){this.injectedDocument=e,this.windowService=t,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,t,o,r){if(e.endsWith("px"))return parseFloat(e);if(e.endsWith("%")){let s=parseFloat(e)/100;return Math.max(t,o)*s}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 s=this.window.innerHeight/100;return parseFloat(e)*s}else if(e.endsWith("vw")){let s=this.window.innerWidth/100;return parseFloat(e)*s}}return parseFloat(e)||0}static \u0275fac=function(t){return new(t||n)(Yt(wi),Yt(Vg),Yt(Gg),Yt(hl))};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function gl(n,i){return n.reduce((e,t)=>[...e,...i(t)],[])}function _l(n){let i=n.cloneNode(!0),e=i.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();i.removeAttribute("id");for(let o=0;o<e.length;o++)e[o].removeAttribute("id");return t==="canvas"?Df(n,i):(t==="input"||t==="select"||t==="textarea")&&Sf(n,i),If("canvas",n,i,Df),If("input, textarea, select",n,i,Sf),i}function If(n,i,e,t){let o=i.querySelectorAll(n);if(o.length){let r=e.querySelectorAll(n);for(let s=0;s<o.length;s++)t(o[s],r[s])}}var Ug=0;function Sf(n,i){i.type!=="file"&&(i.value=n.value),i.type==="radio"&&i.name&&(i.name=`mat-clone-${i.name}-${Ug++}`)}function Df(n,i){let e=i.getContext("2d");if(e)try{e.drawImage(n,0,0)}catch{}}function pl(n,i,e){for(let t in i)if(i.hasOwnProperty(t)){let o=i[t];o?n.setProperty(t,o,e?.has(t)?"important":""):n.removeProperty(t)}return n}function Tf(n){pl(n.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 Ef(n,i,e){return Wg(n,e).dataset[i]}function Wg(n,i){return n.closest(i)}function ml(n,i){let e=n.rootNodes;if(e.length===1&&e[0].nodeType===i.ELEMENT_NODE)return e[0];let t=i.createElement("div");return e.forEach(o=>t.appendChild(o)),t}function Mn(n,i){let e=$g(n,i);return!!e&&!e.classList.contains(i+"-disabled")}function $g(n,i){return n.closest(i)}function ut(n){return n.match(/^[a-zA-Z_]/)||(n="_"+n),n.replace(/[^a-zA-Z0-9_\-:.]/g,"_")}function tn(n,i,e){let t=e[n.toUpperCase()]||Xg(e,n.toLowerCase());if(t===void 0)throw new Error(`Unknown ${i}: ${n}. Accepted values: ${Object.keys(e).join(", ")}`);return t}function Xg(n,i){return Object.keys(n).find(e=>n[e]===i)}var qg=["markerElement"],Yg=["fConnectionGradientRenderer",""],Kg=["f-connection-path",""],Zg=["fConnectionSelection",""],Qg=["f-connection-drag-handle-start",""],Jg=["f-connection-drag-handle-end",""],e_=["defs"],t_=["*"],n_=["fGroupsContainer"],i_=["fNodesContainer"],o_=["fConnectionsContainer"],r_=[[["","fGroup",""],["","fGroups",""]],[["f-snap-connection"]],[["f-connection"],["","fConnections",""]],[["f-connection-for-create"]],[["","fNode",""],["","fNodes",""]]],s_=["[fGroup], [fGroups]","f-snap-connection","f-connection, [fConnections]","f-connection-for-create","[fNode], [fNodes]"],a_=[[["svg","fMarker",""]],[["f-connection-marker-circle"],["f-connection-marker-arrow"]],[["f-connection-gradient"]],[["f-connection-waypoints"]],[["","fConnectionContent",""]]],c_=["svg[fMarker]","f-connection-marker-circle, f-connection-marker-arrow","f-connection-gradient","f-connection-waypoints","[fConnectionContent]"];function d_(n,i){n&1&&(Ge(),U(0,"linearGradient",3)),n&2&&A("fConnectionGradientRendererFor",i)}function l_(n,i){n&1&&(Ge(),U(0,"circle",6))}function u_(n,i){n&1&&Se(0,4)}var f_="[_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}",h_=[[["","fDefinitions",""]],[["f-background"]],[["f-line-alignment"]],[["f-canvas"]],[["f-selection-area"]],"*"],g_=["[fDefinitions]","f-background","f-line-alignment","f-canvas","f-selection-area","*"],wl=new ee("F_BACKGROUND_PATTERN"),ha=class{fPattern;static fToken=Symbol("AddPatternToBackgroundRequest");constructor(i){this.fPattern=i}},sn=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(),t=this._byId.get(e);if(!t)return!1;this._byId.delete(e);let o=this._items.indexOf(t);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 t=this._items.indexOf(e);return t>=0&&this._items.splice(t,1),e}clear(){this._items.length=0,this._byId.clear()}};function Ot(n){return{name:n}}var bl=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()}},kn=class extends sn{kind;constructor(i){super(),this.kind=i}},Il=class extends sn{kind="Connection Marker"},Sl=class extends sn{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}},Dl=class extends sn{kind="Node"},nn=class{notifyOnSubscribe;static fToken=Symbol("ListenConnectionsChangesRequest");constructor(i=!0){this.notifyOnSubscribe=i}};function __(){return n=>{let i=null,e=null,t=()=>{i!==null&&cancelAnimationFrame(i),e!==null&&cancelAnimationFrame(e),i=e=null};return{callback:()=>{t(),i=requestAnimationFrame(()=>{i=null,e=requestAnimationFrame(()=>{e=null,n()})})},cleanup:t}}}function p_(){return n=>{let i=null;return{callback:()=>{i!==null&&cancelAnimationFrame(i),i=requestAnimationFrame(()=>{i=null,n()})},cleanup:()=>{i!==null&&cancelAnimationFrame(i),i=null}}}}function ga(n){return i=>{let e=null;return{callback:()=>{e!==null&&clearTimeout(e),e=setTimeout(()=>{e=null,i()},n)},cleanup:()=>{e!==null&&clearTimeout(e),e=null}}}}var je=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)}},Tl=class extends je{_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}},it=class n{_channels=[];_operators=[];constructor(...i){this._channels=[...i]}pipe(...i){let e=new n(...this._channels);return e._operators=[...this._operators,...i],e}listen(i,e){let t=e,o=[],r=[],s=[];for(let g of[...this._operators].reverse()){let x=g(t);t=x.callback,x.cleanup&&o.push(x.cleanup),x.onSubscribe&&r.push(x.onSubscribe),x.setTeardown&&s.push(x.setTeardown)}let a=this._channels.map(g=>g.listen(()=>t())),d=null,l=!1,h=()=>{l||(l=!0,d?.(),d=null,a.forEach(g=>g()),o.forEach(g=>g()))};s.slice().reverse().forEach(g=>g(h)),r.slice().reverse().forEach(g=>g(t)),d=i.onDestroy(h)}};function Bd(){return n=>{let i=!0;return{callback:n,onSubscribe:e=>{queueMicrotask(()=>{i&&e()})},cleanup:()=>{i=!1}}}}function Pf(){return n=>{let i=!1,e=null;return{setTeardown:t=>e=t,callback:()=>{if(!i){i=!0;try{n()}finally{e?.()}}}}}}var m_=(()=>{let n=class Vi{_store=c(C);handle({notifyOnSubscribe:e}){return e?new it(this._store.connectionsChanges$).pipe(Bd(),ga(1)):new it(this._store.connectionsChanges$).pipe(ga(1))}static \u0275fac=function(t){return new(t||Vi)};static \u0275prov=u({token:Vi,factory:Vi.\u0275fac})};return n=_([p(nn)],n),n})(),El=class{static fToken=Symbol("ListenNodesChangesRequest")},y_=(()=>{let n=class Ui{_store=c(C);handle(e){return new it(this._store.nodesChanges$)}static \u0275fac=function(t){return new(t||Ui)};static \u0275prov=u({token:Ui,factory:Ui.\u0275fac})};return n=_([p(El)],n),n})(),_a=class{static fToken=Symbol("ListenTransformChangesRequest")},v_=(()=>{let n=class Wi{_store=c(C);handle(e){return new it(this._store.transformChanges$,this._store.connectionsChanges$,this._store.nodesChanges$)}static \u0275fac=function(t){return new(t||Wi)};static \u0275prov=u({token:Wi,factory:Wi.\u0275fac})};return n=_([p(_a)],n),n})(),Ft=class{static fToken=Symbol("EmitConnectionsChangesRequest")},C_=(()=>{let n=class $i{_store=c(C);handle(e){this._store.emitConnectionChanges()}static \u0275fac=function(t){return new(t||$i)};static \u0275prov=u({token:$i,factory:$i.\u0275fac})};return n=_([p(Ft)],n),n})(),xt=class{static fToken=Symbol("NotifyTransformChangedRequest")},C=(()=>{class n{transformChanges$=new je;viewportAnimationChanges$=new je;connectionsChanges$=new je;_connectionsRevision=0;connectionsRenderedChanges$=new je;_connectionsRenderedRevision=0;_connectionsRenderedNodesRevision=0;_viewportAnimationCount=0;nodesChanges$=new je;_nodesRevision=0;progressiveRenderChanges$=new je;_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 Dl;connections=new Sl;connectionMarkers=new Il;outputs=new kn("Output");inputs=new kn("Input");outlets=new kn("Outlet");instances=new bl;fDraggable;emitNodeChanges(){this._nodesRevision++,this.nodesChanges$.notify()}emitConnectionChanges(){this._connectionsRevision++,this.connectionsChanges$.notify()}completeConnectionsRender(e,t){e<this._connectionsRenderedRevision||e===this._connectionsRenderedRevision&&t<=this._connectionsRenderedNodesRevision||(this._connectionsRenderedRevision=Math.min(e,this._connectionsRevision),this._connectionsRenderedNodesRevision=t,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(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac})}return n})(),ae={MAGNETIC_LINES:Ot("magnetic-lines"),MAGNETIC_RECTS:Ot("magnetic-rects"),ZOOM:Ot("zoom-controls"),BACKGROUND:Ot("background"),SELECTION_AREA:Ot("selection-area"),MINIMAP:Ot("minimap"),AUTO_PAN:Ot("auto-pan")},x_=(()=>{let n=class Xi{_store=c(C);handle(e){this._store.transformChanged()}static \u0275fac=function(t){return new(t||Xi)};static \u0275prov=u({token:Xi,factory:Xi.\u0275fac})};return n=_([p(xt)],n),n})(),At=class{key;instance;static fToken=Symbol("RegisterPluginInstanceRequest");constructor(i,e){this.key=i,this.instance=e}},w_=(()=>{let n=class qi{_store=c(C);handle({key:e,instance:t}){this._store.instances.add(e,t)}static \u0275fac=function(t){return new(t||qi)};static \u0275prov=u({token:qi,factory:qi.\u0275fac})};return n=_([p(At)],n),n})(),Lt=class{key;static fToken=Symbol("RemovePluginInstanceRequest");constructor(i){this.key=i}},b_=(()=>{let n=class Yi{_store=c(C);handle({key:e}){this._store.instances.remove(e)}static \u0275fac=function(t){return new(t||Yi)};static \u0275prov=u({token:Yi,factory:Yi.\u0275fac})};return n=_([p(Lt)],n),n})(),I_=[C,y_,m_,v_,C_,x_,w_,b_],S_=0,D_=(()=>{let n=class Ki{_store=c(C);_browser=c(_e);get _backgroundElement(){return this._store.instances.get(ae.BACKGROUND)?.hostElement}handle(e){let t=this._getPatterns(e.fPattern?.hostElement);if(!t?.length)return;let o=rn("defs",this._browser);if(e.fPattern?.hostElement.remove(),t.forEach(r=>{o.append(r)}),t.length){this._backgroundElement?.firstChild?.appendChild(o),t[t.length-1].id="f-background-pattern-"+S_++;let r=t[t.length-1].id,s=rn("rect",this._browser);s.setAttribute("fill","url(#"+r+")"),s.setAttribute("width","100%"),s.setAttribute("height","100%"),this._backgroundElement?.firstChild?.appendChild(s);let a=this._store.fCanvas?.transform||pt.default();e.fPattern?.setTransform(a)}}_getPatterns(e){return Array.from(e?.getElementsByTagName("pattern")||[])}static \u0275fac=function(t){return new(t||Ki)};static \u0275prov=u({token:Ki,factory:Ki.\u0275fac})};return n=_([p(ha)],n),n})(),On=class{fTransform;static fToken=Symbol("SetBackgroundTransformRequest");constructor(i){this.fTransform=i}},T_=(()=>{let n=class Zi{_store=c(C);handle(e){this._store.instances.get(ae.BACKGROUND)?.setTransform(e.fTransform)}static \u0275fac=function(t){return new(t||Zi)};static \u0275prov=u({token:Zi,factory:Zi.\u0275fac})};return n=_([p(On)],n),n})(),E_=[D_,T_],pa=class{instance;static fToken=Symbol("AddCanvasToStoreRequest");constructor(i){this.instance=i}},P_=(()=>{let n=class Qi{_store=c(C);handle({instance:e}){this._store.fCanvas=e}static \u0275fac=function(t){return new(t||Qi)};static \u0275prov=u({token:Qi,factory:Qi.\u0275fac})};return n=_([p(pa)],n),n})(),ma=class{id;animated;static fToken=Symbol("CenterGroupOrNodeRequest");constructor(i,e){this.id=i,this.animated=e}},M_=(()=>{let n=class Ji{_store=c(C);_mediator=c(D);get _transform(){return this._store.transform}handle({id:e,animated:t}){let o=this._store.nodes.get(e);o&&(this._toCenter(this._getNodeRect(o),this._getFlowRect(),o._position),this._mediator.execute(new an(t,zt.VIEWPORT_ONLY)))}_toCenter(e,t,o){this._transform.scaledPosition=M.initialize(),this._transform.position=M.initialize((t.width-e.width)/2-o.x*this._transform.scale,(t.height-e.height)/2-o.y*this._transform.scale)}_getNodeRect(e){return z.fromElement(e.hostElement)}_getFlowRect(){return z.fromElement(this._store.flowHost)}static \u0275fac=function(t){return new(t||Ji)};static \u0275prov=u({token:Ji,factory:Ji.\u0275fac})};return n=_([p(ma)],n),n})(),ya=class{toCenter;animated;static fToken=Symbol("FitToFlowRequest");constructor(i,e){this.toCenter=i,this.animated=e}},R_=(()=>{let n=class eo{_store=c(C);get _transform(){return this._store.transform}_mediator=c(D);handle({toCenter:e,animated:t}){let o=this._mediator.execute(new gn)||z.initialize();o.width===0||o.height===0||(this.fitToParent(o,z.fromElement(this._store.flowHost),this._store.nodes.getAll().map(r=>r._position),e),this._mediator.execute(new an(t,zt.VIEWPORT_ONLY)))}fitToParent(e,t,o,r){this._transform.scaledPosition=M.initialize(),this._transform.position=this._getZeroPositionWithoutScale(o);let s=e.width/this._transform.scale+r.x,a=e.height/this._transform.scale+r.y;(s>t.width||a>t.height||s<t.width&&a<t.height)&&(this._transform.scale=Math.min(t.width/s,t.height/a));let d=(t.width-s*this._transform.scale)/2-this._transform.position.x*this._transform.scale,l=(t.height-a*this._transform.scale)/2-this._transform.position.y*this._transform.scale;this._transform.position=M.initialize(d+r.x/2*this._transform.scale,l+r.y/2*this._transform.scale)}_getZeroPositionWithoutScale(e){let t=e.length?Math.min(...e.map(r=>r.x)):0,o=e.length?Math.min(...e.map(r=>r.y)):0;return M.initialize(t,o)}static \u0275fac=function(t){return new(t||eo)};static \u0275prov=u({token:eo,factory:eo.\u0275fac})};return n=_([p(ya)],n),n})(),va=class{transform;position;static fToken=Symbol("InputCanvasPositionRequest");constructor(i,e){this.transform=i,this.position=e}},N_=(()=>{let n=class to{_store=c(C);handle({transform:e,position:t}){t&&(M.isEqual(this._calculateTransformPosition(e),t)||(e.position=t,e.scaledPosition=M.initialize(),this._store.fCanvas?.redraw()))}_calculateTransformPosition(e){return M.sum(e.position,e.scaledPosition)}static \u0275fac=function(t){return new(t||to)};static \u0275prov=u({token:to,factory:to.\u0275fac})};return n=_([p(va)],n),n})(),Ca=class{transform;scale;static fToken=Symbol("InputCanvasScaleRequest");constructor(i,e){this.transform=i,this.scale=e}},k_=(()=>{let n=class no{_store=c(C);handle(e){!e.scale&&e.scale!==0||(e.transform.scale=e.scale,this._store.fCanvas?.redraw())}static \u0275fac=function(t){return new(t||no)};static \u0275prov=u({token:no,factory:no.\u0275fac})};return n=_([p(Ca)],n),n})(),zt=(function(n){return n.VIEWPORT_ONLY="VIEWPORT_ONLY",n.WITH_CONNECTION_CHANGES="WITH_CONNECTION_CHANGES",n})(zt||{}),an=class{animated;context;static fToken=Symbol("RedrawCanvasWithAnimationRequest");constructor(i,e=zt.WITH_CONNECTION_CHANGES){this.animated=i,this.context=e}};function nh(n,i){let e=t=>{t.propertyName==="transform"&&(n.removeEventListener("transitionend",e),i(t))};n.addEventListener("transitionend",e)}var O_=(()=>{let n=class io{_store=c(C);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(),nh(this._canvas.hostElement,()=>{this._store.endViewportAnimation(),e===zt.WITH_CONNECTION_CHANGES&&this._store.emitConnectionChanges()})}_redraw(e){this._canvas?.redraw(),e===zt.WITH_CONNECTION_CHANGES&&this._store.emitConnectionChanges()}static \u0275fac=function(t){return new(t||io)};static \u0275prov=u({token:io,factory:io.\u0275fac})};return n=_([p(an)],n),n})(),xa=class{static fToken=Symbol("RemoveCanvasFromStoreRequest")},F_=(()=>{let n=class oo{_store=c(C);handle(e){this._store.fCanvas=void 0}static \u0275fac=function(t){return new(t||oo)};static \u0275prov=u({token:oo,factory:oo.\u0275fac})};return n=_([p(xa)],n),n})(),wa=class{static fToken=Symbol("ResetScaleRequest")},A_=(()=>{let n=class ro{_store=c(C);get _transform(){return this._store.transform}handle(e){this._transform.scale=1,this._transform.scaledPosition=M.initialize()}static \u0275fac=function(t){return new(t||ro)};static \u0275prov=u({token:ro,factory:ro.\u0275fac})};return n=_([p(wa)],n),n})(),ba=class{animated;static fToken=Symbol("ResetScaleAndCenterRequest");constructor(i){this.animated=i}},L_=(()=>{let n=class so{_mediator=c(D);_store=c(C);get _transform(){return this._store.transform}handle({animated:e}){let t=this._mediator.execute(new gn)||z.initialize();t.width===0||t.height===0||(this._oneToOneCentering(t,z.fromElement(this._store.flowHost),this._store.nodes.getAll().map(o=>o._position)),this._mediator.execute(new an(e,zt.VIEWPORT_ONLY)))}_oneToOneCentering(e,t,o){this._transform.scaledPosition=M.initialize(),this._transform.position=this._getZeroPositionWithoutScale(o);let r=(t.width-e.width/this._transform.scale)/2-this._transform.position.x,s=(t.height-e.height/this._transform.scale)/2-this._transform.position.y;this._transform.scale=1,this._transform.position=M.initialize(r,s)}_getZeroPositionWithoutScale(e){let t=e.length?Math.min(...e.map(r=>r.x)):0,o=e.length?Math.min(...e.map(r=>r.y)):0;return M.initialize(t,o)}static \u0275fac=function(t){return new(t||so)};static \u0275prov=u({token:so,factory:so.\u0275fac})};return n=_([p(ba)],n),n})(),Ia=class{scale;toPosition;static fToken=Symbol("UpdateScaleRequest");constructor(i,e){this.scale=i,this.toPosition=e}},z_=(()=>{let n=class ao{_store=c(C);get _transform(){return this._store.transform}handle({scale:e,toPosition:t}){if(e===this._transform.scale)return;let o=M.sum(this._transform.scaledPosition,this._transform.position),r=t.x-(t.x-o.x)*e/this._transform.scale,s=t.y-(t.y-o.y)*e/this._transform.scale;this._transform.scale=e,this._transform.scaledPosition=M.sub(M.initialize(r,s),this._transform.position)}static \u0275fac=function(t){return new(t||ao)};static \u0275prov=u({token:ao,factory:ao.\u0275fac})};return n=_([p(Ia)],n),n})(),B_=[P_,M_,R_,N_,k_,O_,F_,A_,L_,z_],Pl=class{connection;static fToken=Symbol("AddConnectionForCreateToStoreRequest");constructor(i){this.connection=i}},G_=(()=>{let n=class co{_store=c(C);handle({connection:e}){this._store.connections.addForCreate(e)}static \u0275fac=function(t){return new(t||co)};static \u0275prov=u({token:co,factory:co.\u0275fac})};return n=_([p(Pl)],n),n})(),Ml=class{instance;static fToken=Symbol("AddConnectionMarkerToStoreRequest");constructor(i){this.instance=i}},H_=(()=>{let n=class lo{_store=c(C);handle({instance:e}){this._store.connectionMarkers.add(e),this._store.emitNodeChanges()}static \u0275fac=function(t){return new(t||lo)};static \u0275prov=u({token:lo,factory:lo.\u0275fac})};return n=_([p(Ml)],n),n})(),Sa=class{connection;static fToken=Symbol("AddConnectionToStoreRequest");constructor(i){this.connection=i}},j_=(()=>{let n=class uo{_store=c(C);handle({connection:e}){this._store.connections.add(e),this._store.emitConnectionChanges()}static \u0275fac=function(t){return new(t||uo)};static \u0275prov=u({token:uo,factory:uo.\u0275fac})};return n=_([p(Sa)],n),n})(),Rl=class{connection;static fToken=Symbol("AddSnapConnectionToStoreRequest");constructor(i){this.connection=i}},V_=(()=>{let n=class fo{_store=c(C);handle({connection:e}){this._store.connections.addForSnap(e)}static \u0275fac=function(t){return new(t||fo)};static \u0275prov=u({token:fo,factory:fo.\u0275fac})};return n=_([p(Rl)],n),n})(),cn=class{connection;static fToken=Symbol("CreateConnectionMarkersRequest");constructor(i){this.connection=i}},Mf=new ee("F_CONNECTION_CONTENT");var Da=class n{points;cumulativeLengths;segmentTangents;totalLength;constructor(i){let e=n._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 t=this.points.length,o=t-1,r=new Array(t).fill(0),s=new Array(o),a=0;for(let d=0;d<o;d++){let l=this.points[d+1].x-this.points[d].x,h=this.points[d+1].y-this.points[d].y,g=Math.hypot(l,h),x=g?l/g:1,m=g?h/g:0;s[d]={x,y:m},a+=g,r[d+1]=a}this.cumulativeLengths=r,this.segmentTangents=s,this.totalLength=a||1}static from(i){return new n(i.map(e=>({x:e.x,y:e.y})))}static _removeConsecutiveDuplicates(i){let e=[];for(let t of i){let o=e[e.length-1];(!o||o.x!==t.x||o.y!==t.y)&&e.push({x:t.x,y:t.y})}return e}},Nl=class n{_polyline;constructor(i=[]){this._polyline=new Da(i)}updatePoints(i){return this._polyline=new Da(i),this._polyline.totalLength}calculateTotalLength(i){return this.updatePoints(i)}get totalLength(){return this._polyline.totalLength}getPointAtProgress(i){let{points:e,cumulativeLengths:t,segmentTangents:o,totalLength:r}=this._polyline,a=n._clamp(i,0,1)*r,d=.5;if(a<=d)return{point:e[0],tangent:o[0]??{x:1,y:0},atEdge:!0};if(r-a<=d){let P=e.length-1;return{point:e[P],tangent:o[P-1]??{x:1,y:0},atEdge:!0}}let l=n._findRightIndex(t,a),h=Math.max(1,l),g=t[h-1],x=t[h],m=n._safeRatio(a-g,x-g),E=e[h-1],b=e[h],w={x:n._lerp(E.x,b.x,m),y:n._lerp(E.y,b.y,m)},I=o[h-1]??{x:1,y:0};return{point:w,tangent:I,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 t=0,o=i.length-1;for(;t<o;){let r=t+o>>1;i[r]<e?t=r+1:o=r}return t}static _lerp(i,e,t){return i+(e-i)*t}static _clamp(i,e,t){return i<e?e:i>t?t:i}static _safeRatio(i,e){let t=Math.abs(e)<1e-6?1e-6:e;return i/t}},ih=(function(n){return n.NONE="none",n.ALONG="along",n})(ih||{}),kl=class{compute(i,e){let t=this._clamp01(e.position()),{point:o,tangent:r}=i.getPointAtLength(t),s={x:-r.y,y:r.x},a=e.offset()??0,d=o.x+s.x*a,l=o.y+s.y*a,g=this._sizeAlongDirection(e.hostElement,r)*.5,x=t*i.totalLength,m=i.totalLength-x,E=this._applyEdgeGuard(d,l,r,x,m,g),b=this._calculateContentRotation(e.align(),r);return{position:E,rotationDeg:b}}_clamp01(i){return i<=0?0:i>=1?1:i}_applyEdgeGuard(i,e,t,o,r,s){if(o<=s){let a=s-o;return{x:i+t.x*a,y:e+t.y*a}}if(r<=s){let a=s-r;return{x:i-t.x*a,y:e-t.y*a}}return{x:i,y:e}}_sizeAlongDirection(i,e){let t=z.fromElement(i);return Math.abs(e.x)*t.width+Math.abs(e.y)*t.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 t=0;return i===ih.ALONG&&(t=Math.atan2(e.y,e.x)*180/Math.PI,t=this._keepUpright(t)),t}},Ol=class{_placement;constructor(i=new kl){this._placement=i}layout(i,e){let t=new Nl(i),o=t.totalLength;for(let r of e){let{position:s,rotationDeg:a}=this._placement.compute(t,r);r.hostElement.style.transform=this._createTransformString(s,a)}return o}_createTransformString(i,e){return`translate3d(${i.x}px, ${i.y}px, 0) translate(-50%, -50%) rotate(${e}deg)`}};var Rf=new ee("F_CONNECTION_WAYPOINTS");function oh(n,i,e){return(n.x-i.x)**2+(n.y-i.y)**2<=e**2}function U_(n,i){let e=n.fWaypoints(),t=e?.radius()||8;return e?.candidates().find(o=>oh(i,o,t))}function W_(n,i){let e=n.fWaypoints(),t=e?.radius()||8;return e?.waypoints().find(o=>oh(i,o,t))}function $_(n,i){for(let e of n){let t=W_(e,i);if(t&&e.fWaypoints()?.visibility())return{connection:e,waypoint:t};let o=U_(e,i);if(o&&e.fWaypoints()?.visibility())return{connection:e,candidate:o}}}var Gd=new ee("F_CONNECTION_COMPONENTS_PARENT");var ne=(function(n){return n.START="f-connection-marker-start",n.END="f-connection-marker-end",n.SELECTED_START="f-connection-selected-marker-start",n.SELECTED_END="f-connection-selected-marker-end",n.START_ALL_STATES="f-connection-marker-start-all-states",n.END_ALL_STATES="f-connection-marker-end-all-states",n})(ne||{}),Fl=new ee("F_CONNECTION_MARKER"),X_=0,Al=class{fId=re(`f-marker-${X_++}`);hostElement=c(he).nativeElement};function q_(n,i=ne.START){if(typeof n!="string")return i;let e=n.trim().toLowerCase();return e?Y_(e)??i:i}function Y_(n){switch(n){case"start":case"f-connection-marker-start":return ne.START;case"end":case"f-connection-marker-end":return ne.END;case"selected-start":case"f-connection-selected-marker-start":return ne.SELECTED_START;case"selected-end":case"f-connection-selected-marker-end":return ne.SELECTED_END;case"start-all-states":case"f-connection-marker-start-all-states":case"start-all":case"all-start":return ne.START_ALL_STATES;case"end-all-states":case"f-connection-marker-end-all-states":case"end-all":case"all-end":return ne.END_ALL_STATES;default:return null}}var rh=(()=>{class n extends Al{_markerElement=ve.required("markerElement");_type=F(ne.END_ALL_STATES,{alias:"type",transform:e=>q_(e,ne.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=X(n)))(o||n)}})();static \u0275cmp=se({type:n,selectors:[["f-connection-marker-arrow"]],viewQuery:function(t,o){t&1&&ct(o._markerElement,qg,5),t&2&&We()},hostAttrs:[1,"f-component",2,"display","none"],inputs:{_type:[1,"type","_type"]},features:[be([{provide:Fl,useExisting:n}]),ce],decls:3,vars:0,consts:[["markerElement",""],["viewBox","0 0 6 6",1,"f-marker"],["d","M0,0 L6,3 0,6Z"]],template:function(t,o){t&1&&(Ge(),Je(0,"svg",1,0),Zt(2,"path",2),et())},encapsulation:2})}return n})();var vt=(function(n){return n.FIXED="fixed",n.FIXED_CENTER="fixed_center",n.FLOATING="floating",n})(vt||{}),ke=(function(n){return n.DEFAULT="default",n.TOP="top",n.BOTTOM="bottom",n.LEFT="left",n.RIGHT="right",n.CALCULATE="calculate",n.CALCULATE_HORIZONTAL="calculate_horizontal",n.CALCULATE_VERTICAL="calculate_vertical",n})(ke||{});function K_({sourceRect:n,targetRect:i}){return{point1:n.gravityCenter,point2:i.gravityCenter}}var R=(function(n){return n.LEFT="left",n.TOP="top",n.RIGHT="right",n.BOTTOM="bottom",n.CALCULATE="calculate",n.CALCULATE_HORIZONTAL="calculate_horizontal",n.CALCULATE_VERTICAL="calculate_vertical",n.AUTO="auto",n})(R||{}),yt=(function(n){return n.SEGMENT="segment",n.STRAIGHT="straight",n.BEZIER="bezier",n.ADAPTIVE_CURVE="adaptive-curve",n})(yt||{});function Z_({sourceRect:n,sourceConnectableSide:i,targetRect:e,targetConnectableSide:t}){return{point1:Nf(n,i===R.AUTO?R.BOTTOM:i),point2:Nf(e,t===R.AUTO?R.TOP:t)}}function Nf(n,i){switch(i){case R.TOP:return{x:n.x+n.width/2,y:n.y};case R.BOTTOM:return{x:n.x+n.width/2,y:n.y+n.height};case R.LEFT:return{x:n.x,y:n.y+n.height/2};case R.RIGHT:return{x:n.x+n.width,y:n.y+n.height/2};default:throw new Error(`Unknown side: ${i}`)}}function sh(n,i,e,t){if(!t||!t.rotationDeg)return en.getRoundedRectIntersections(n,i,e)[0];let o=ho(n,-t.rotationDeg,t.pivot),r=ho(i,-t.rotationDeg,t.pivot),s=Q_(e,-t.rotationDeg,t.pivot),a=en.getRoundedRectIntersections(o,r,s)[0];return a?ho(a,t.rotationDeg,t.pivot):void 0}function Q_(n,i,e){let t=ho(J_(n),i,e);return new ge(t.x-n.width/2,t.y-n.height/2,n.width,n.height,n.radius1,n.radius2,n.radius3,n.radius4)}function J_(n){return{x:n.x+n.width/2,y:n.y+n.height/2}}function ho(n,i,e){let t=n.x-e.x,o=n.y-e.y,r=i*Math.PI/180,s=Math.cos(r),a=Math.sin(r);return{x:t*s-o*a+e.x,y:t*a+o*s+e.y}}function ep({sourceRect:n,targetRect:i,sourceRotationContext:e,targetRotationContext:t}){return ip(tp(n,i,e),np(n,i,t),n,i)}function tp(n,i,e){return sh(n.gravityCenter,i.gravityCenter,n,e)}function np(n,i,e){return sh(i.gravityCenter,n.gravityCenter,i,e)}function ip(n,i,e,t){return{point1:n||e.gravityCenter,point2:i||t.gravityCenter}}var Hi=.5,op={[vt.FLOATING]:ep,[vt.FIXED_CENTER]:K_,[vt.FIXED]:Z_},Cn=(()=>{class n{handle(e){let t=this._calculateDirectionalVectors(e.sourceRect.gravityCenter.x,e.sourceRect.gravityCenter.y,e.targetRect.gravityCenter.x,e.targetRect.gravityCenter.y),o=this._determineSourceSide(e,t),r=this._determineTargetSide(e,t);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,t,o,r){let s=o-e,a=r-t;return{sourceToTargetX:s,sourceToTargetY:a,targetToSourceX:-s,targetToSourceY:-a}}_determineSourceSide(e,t){return this._resolveConnectableSide(e.connection.fOutputSide(),t.sourceToTargetX,t.sourceToTargetY,e.sourceConnectableSide)}_determineTargetSide(e,t){return this._resolveConnectableSide(e.connection.fInputSide(),t.targetToSourceX,t.targetToSourceY,e.targetConnectableSide)}_resolveConnectableSide(e,t,o,r){if(e===ke.DEFAULT)return r;let s=Math.abs(t),a=Math.abs(o);if(s<Hi&&a<Hi)return r;let l=s>=a;switch(e){case ke.CALCULATE:return l?t>=0?R.RIGHT:R.LEFT:o>=0?R.BOTTOM:R.TOP;case ke.CALCULATE_HORIZONTAL:return s<Hi?r:t>=0?R.RIGHT:R.LEFT;case ke.CALCULATE_VERTICAL:return a<Hi?r:o>=0?R.BOTTOM:R.TOP;case ke.TOP:return R.TOP;case ke.BOTTOM:return R.BOTTOM;case ke.LEFT:return R.LEFT;case ke.RIGHT:return R.RIGHT;default:return r}}_getBehaviorHandler(e){let t=op[e];if(!t)throw new Error(`[Behavior] No handler for behavior: ${e}`);return t}static \u0275fac=function(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac})}return n})(),Ye=class{sourceRect;targetRect;connection;sourceConnectableSide;targetConnectableSide;sourceRotationContext;targetRotationContext;constructor(i,e,t,o,r,s,a){this.sourceRect=i,this.targetRect=e,this.connection=t,this.sourceConnectableSide=o,this.targetConnectableSide=r,this.sourceRotationContext=s,this.targetRotationContext=a}};function Hd(n,i,e){return[n,...e??[],i]}function rp(n,i){let e=Math.abs(i.x-n.x)/2,t=i.x<n.x?i.x+e:i.x-e,o=Math.abs(i.y-n.y)/2,r=i.y<n.y?i.y+o:i.y-o;return{x:t,y:r}}function sp(n,i=32){let e=new Array(i+1);e[0]=J({},n[0]);for(let t=1;t<=i;t++)e[t]=ah(n[0],n[1],n[2],n[3],t/i);return e}function ah(n,i,e,t,o){let r=1-o,s=o*o,a=r*r,d=a*r,l=s*o;return{x:d*n.x+3*a*o*i.x+3*r*s*e.x+l*t.x,y:d*n.y+3*a*o*i.y+3*r*s*e.y+l*t.y}}function ch(n){return n.map(i=>ah(i.p0,i.c1,i.c2,i.p3,.5))}function ap(n){if(n.length<2)throw new Error("Polylines must be at least two points");let i=cp(n);return i<=0?[J({},n[0])]:[dp(n,i/2)]}function cp(n){let i=0;for(let e=0;e<n.length-1;e++)i+=dh(n[e],n[e+1]);return i}function dp(n,i){let e=0;for(let o=0;o<n.length-1;o++){let r=n[o],s=n[o+1],a=dh(r,s);if(!(a<=0)){if(e+a>=i){let d=(i-e)/a;return{x:r.x+(s.x-r.x)*d,y:r.y+(s.y-r.y)*d}}e+=a}}let t=n[n.length-1];return{x:t.x,y:t.y}}function dh(n,i){return Math.hypot(i.x-n.x,i.y-n.y)}function lp(n){let i=[];for(let e of n)for(let t of e){let o=i[i.length-1];(!o||o.x!==t.x||o.y!==t.y)&&i.push(t)}return i}function lh(n){if(!n.length)return"";let i=`M ${n[0].p0.x} ${n[0].p0.y}`;for(let e=0;e<n.length;e++){let t=n[e],o=e===n.length-1,r=o?t.p3.x+2e-4:t.p3.x,s=o?t.p3.y+2e-4:t.p3.y;i+=` C ${t.c1.x} ${t.c1.y}, ${t.c2.x} ${t.c2.y}, ${r} ${s}`}return i}function uh(n,i=16){if(!n.length)return[];let e=[];for(let t=0;t<n.length;t++){let o=n[t],r=sp([o.p0,o.c1,o.c2,o.p3],i);t>0&&r.shift(),e.push(...r)}return e}function up(n,i=1e-6){let e=n.length;if(e<=2)return n;let t=[];t.push(n[0]);for(let r=1;r<e;r++){let s=n[r],a=t[t.length-1];(Math.abs(s.x-a.x)>i||Math.abs(s.y-a.y)>i)&&t.push(s)}if(t.length<=2)return t;let o=[];o.push(t[0]);for(let r=1;r<t.length-1;r++){let s=o[o.length-1],a=t[r],d=t[r+1],l=Math.abs(s.x-a.x)<=i&&Math.abs(a.x-d.x)<=i,h=Math.abs(s.y-a.y)<=i&&Math.abs(a.y-d.y)<=i;!l&&!h&&o.push(a)}return o.push(t[t.length-1]),o}var Ll=class n{static _dir(i){switch(i){case R.LEFT:return{x:-1,y:0};case R.RIGHT:return{x:1,y:0};case R.TOP:return{x:0,y:-1};case R.BOTTOM:return{x:0,y:1};case R.AUTO:return{x:0,y:0}}return{x:0,y:0}}static _isHorizontal(i){return i===R.LEFT||i===R.RIGHT}static _handleLength(i,e,t,o){let r=Math.abs(e.x-i.x),s=Math.abs(e.y-i.y),a=Math.hypot(r,s),d=t===R.AUTO?Math.max(r,s):this._isHorizontal(t)?r:s,l=Math.max(8,o),h=o+.5*a,g=o*1.05+d*.3;return Math.min(h,Math.max(l,g))}static _softControl(i,e,t,o){let r=this._dir(i),s=t.x-e.x,a=t.y-e.y,d=Math.hypot(s,a)||1,l=s/d,h=a/d;if(i===R.AUTO)return{x:e.x+l*o,y:e.y+h*o};let g=r.x*l+r.y*h,x=.12,m=Math.max(0,-g)*.08,E=Math.min(.2,x+m),b=r.x*(1-E)+l*E,w=r.y*(1-E)+h*E,I=Math.hypot(b,w)||1;return{x:e.x+b/I*o,y:e.y+w/I*o}}handle({source:i,sourceSide:e,target:t,targetSide:o,offset:r,waypoints:s}){let a=Math.max(0,r??0),d=Hd(i,t,s),l=[];for(let g=0;g<d.length-1;g++){let x=d[g],m=d[g+1],E=n._handleLength(x,m,e,a),b=n._handleLength(m,x,o,a),w=n._softControl(e,x,m,E),I=n._softControl(o,m,x,b);l.push({p0:x,c1:w,c2:I,p3:m,chainIndex:g})}let h=uh(l,12);return{path:lh(l),secondPoint:l[0]?.c1??i,penultimatePoint:l[l.length-1]?.c2??t,points:h,candidates:ch(l)}}},zl=class{handle({source:i,sourceSide:e,target:t,targetSide:o,offset:r,waypoints:s}){let a=Hd(i,t,s),d=[];for(let h=0;h<a.length-1;h++){let g=a[h],x=a[h+1],m=kf(e,g,x,r??0),E=kf(o,x,g,r??0);d.push({p0:g,c1:m,c2:E,p3:x,chainIndex:h})}let l=uh(d,12);return{path:lh(d),secondPoint:d[0]?.c1??i,penultimatePoint:d[d.length-1]?.c2??t,points:l,candidates:ch(d)}}};function kf(n,i,e,t){let o={x:i.x,y:i.y};switch(n){case R.LEFT:o.x-=ji(i.x-e.x,t);break;case R.RIGHT:o.x+=ji(e.x-i.x,t);break;case R.TOP:o.y-=ji(i.y-e.y,t);break;case R.BOTTOM:o.y+=ji(e.y-i.y,t);break;case R.AUTO:break}return o}function ji(n,i){return n>=i?n:i*Math.sqrt(i-n)}function fp(n){let{axis:i,source:e,target:t,sourceSide:o,targetSide:r,sourceGap:s,targetGap:a,sourceDir:d,targetDir:l,currentDir:h,offset:g,sourceGapOffset:x,targetGapOffset:m}=n,E=hp(s,a),b=gp(i,d,h,E);return o===r?_p(i,e,t,g,d,h,s,a,x,m):b=pp(i,d,l,s,a,E,b),b}function hp(n,i){return{sourceTarget:[{x:n.x,y:i.y}],targetSource:[{x:i.x,y:n.y}]}}function gp(n,i,e,t){return n==="x"?i.x===e?t.targetSource:t.sourceTarget:i.y===e?t.sourceTarget:t.targetSource}function _p(n,i,e,t,o,r,s,a,d,l){let h=Math.abs(i[n]-e[n]);if(h>t)return;let g=Math.min(t-1,t-h);g<=0||(o[n]===r?d[n]=(s[n]>i[n]?-1:1)*g:l[n]=(a[n]>e[n]?-1:1)*g)}function pp(n,i,e,t,o,r,s){let a=n==="x"?"y":"x",d=i[n]===e[a],l=t[a]>o[a],h=t[a]<o[a];return i[n]===1&&(!d&&l||d&&h)||i[n]!==1&&(!d&&h||d&&l)?n==="x"?r.sourceTarget:r.targetSource:s}var Rn=1e-6,Of=2e-4,mp=.75;function yp(n,i){let e=n.length,t=[];t.push(`M ${n[0].x} ${n[0].y}`);for(let r=1;r<e-1;r++)t.push(vp(n[r-1],n[r],n[r+1],i));let o=n[e-1];return t.push(`L ${o.x+Of} ${o.y+Of}`),t.join(" ")}function vp(n,i,e,t){let o=i.x,r=i.y;if(t<=0)return`L ${o} ${r}`;let s=Math.abs(n.x-o)<=Rn&&Math.abs(o-e.x)<=Rn,a=Math.abs(n.y-r)<=Rn&&Math.abs(r-e.y)<=Rn;if(s||a)return`L ${o} ${r}`;let d=Math.hypot(o-n.x,r-n.y),l=Math.hypot(e.x-o,e.y-r),h=Math.min(d*.5,l*.5,t);if(h<mp)return`L ${o} ${r}`;if(Math.abs(n.y-r)<=Rn){let w=n.x<e.x?-1:1,I=n.y<e.y?1:-1,P=o+h*w,L=r+h*I;return`L ${P} ${r} Q ${o} ${r} ${o} ${L}`}let x=n.x<e.x?1:-1,m=n.y<e.y?-1:1,E=r+h*m,b=o+h*x;return`L ${o} ${E} Q ${o} ${r} ${b} ${r}`}var Ff={[R.LEFT]:M.initialize(-1,0),[R.RIGHT]:M.initialize(1,0),[R.TOP]:M.initialize(0,-1),[R.BOTTOM]:M.initialize(0,1),[R.AUTO]:M.initialize(0,0)},Bl=class{handle({source:i,sourceSide:e,target:t,targetSide:o,waypoints:r,offset:s,radius:a}){let d=Hd(i,t,r),l=[],h=[];for(let E=0;E<d.length-1;E++){let b=d[E],w=d[E+1],I=this._getPathPoints(b,e,w,o,s??0);l.push(I),h.push(...ap(I))}let g=up(lp(l)),x=g.length>1?g[g.length-2]:i,m=g.length>1?g[1]:t;return{path:yp(g,a??0),penultimatePoint:x,secondPoint:m,points:g,candidates:h}}_getPathPoints(i,e,t,o,r){let s=Ff[e],a=Ff[o],d={x:i.x+s.x*r,y:i.y+s.y*r},l={x:t.x+a.x*r,y:t.y+a.y*r},h=this._getDirection(d,e,l),g=h.x!==0?"x":"y",x=h[g],m=[],E=M.initialize(),b=M.initialize(),w=rp(i,t);if(s[g]*a[g]===-1){let I=[{x:w.x,y:d.y},{x:w.x,y:l.y}],P=[{x:d.x,y:w.y},{x:l.x,y:w.y}];s[g]===x?m=g==="x"?I:P:m=g==="x"?P:I}else m=fp({axis:g,source:i,target:t,sourceSide:e,targetSide:o,sourceGap:d,targetGap:l,sourceDir:s,targetDir:a,currentDir:x,offset:r,sourceGapOffset:E,targetGapOffset:b});return[i,{x:d.x+E.x,y:d.y+E.y},...m,{x:l.x+b.x,y:l.y+b.y},t]}_getDirection(i,e,t){return e===R.LEFT||e===R.RIGHT?i.x<t.x?M.initialize(1,0):M.initialize(-1,0):i.y<t.y?M.initialize(0,1):M.initialize(0,-1)}},Af=2e-4,Gl=class{handle(i){let e=Hd(i.source,i.target,i.waypoints),t=e.length,o=e[0],r=`M ${o.x} ${o.y}`,s=new Array(t-1);for(let a=0;a<t-1;a++){let d=e[a],l=e[a+1],h=a===t-2,g=h?l.x+Af:l.x,x=h?l.y+Af:l.y;r+=` L ${g} ${x}`,s[a]={x:(d.x+l.x)*.5,y:(d.y+l.y)*.5}}return{path:r,candidates:s,points:e,secondPoint:e[1]??i.target,penultimatePoint:e[t-2]??i.source}}},Cp=new ee("F_CONNECTION_BUILDERS"),fh=(()=>{class n{_builtinBuilders={[yt.STRAIGHT]:new Gl,[yt.BEZIER]:new zl,[yt.ADAPTIVE_CURVE]:new Ll,[yt.SEGMENT]:new Bl};_providedBuilders;_builders;constructor(){this._providedBuilders=c(Cp,{optional:!0})||{},this._builders=J(J({},this._builtinBuilders),this._providedBuilders)}handle({type:e,payload:t}){let o=this._builders[e];if(!o)throw this._createBuilderNotFoundError(e);return o.handle(t)}_createBuilderNotFoundError(e){let t=Object.keys(this._builtinBuilders).sort(),o=Object.keys(this._providedBuilders).sort(),r=Object.keys(this._builders).sort(),s=t.filter(d=>d in this._providedBuilders).sort(),a=[`Connection Builder Error: builder type "${e}" not found.`,`Registered types: ${r.length?r.join(", "):"(none)"}`,`Built-in types: ${t.length?t.join(", "):"(none)"}`,`Provided (F_CONNECTION_BUILDERS) types: ${o.length?o.join(", "):"(none)"}`,s.length?`Overridden built-ins: ${s.join(", ")}`:null,"Tip: ensure you pass a valid Connection Type or provide a builder via F_CONNECTION_BUILDERS."].filter(Boolean);return new Error(a.join(`
1
+ import{g as Ai,h as Li,i as zi,u as Bi,v as Gi,w as xf}from"./chunk-KPEISNOV.js";import{b as Fi}from"./chunk-UGEECDPV.js";import"./chunk-TG6IWVEC.js";import{$ as at,$a as Pt,$c as Jt,A as re,Aa as We,B as Re,C as Kt,Ca as gt,Cb as yf,D as X,Da as $e,E as he,F as bi,Fa as tt,Ga as T,Ha as N,I as f,Ia as dt,J as lf,K as uf,Ka as gf,L as ff,M as sl,N as Ii,O as se,Oa as _f,P as hf,Pa as Mi,Q as pe,Qa as _t,Ra as be,S as ce,T as Si,Vc as vf,W as te,Wc as Cf,Z as k,_ as O,_a as pf,_c as Qt,aa as me,ab as G,ba as ye,bb as lt,ca as A,cb as F,d as _,da as y,db as ve,dd as ki,ea as v,eb as Ri,ed as Oi,fa as U,fb as cl,ga as Je,gb as Mt,ha as et,ia as Zt,ib as oe,ja as Di,jb as Ne,ka as Ti,l as u,m as cf,ma as Ei,n as ee,na as Pi,o as Yt,oa as Et,p as c,q as df,qa as Ie,r as ue,ra as S,rb as mf,s as fe,sa as En,sb as Ni,t as Ge,ta as Se,u as Ae,v as wi,w as Ze,x as Qe,y as Tn,ya as al,za as ct}from"./chunk-7PFTODKS.js";import{a as J,b as rl}from"./chunk-Q7L6LLAK.js";var Rt=class{constructor(i,e,t,o,r){this.center=i,this.radiusX=e,this.radiusY=t,this.startAngle=o,this.endAngle=r}},M=class n{static castToPoint(i){return i||n.initialize()}static initialize(i=0,e=0){return{x:i,y:e}}static copy(i){return n.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,t){let o=1-t;return n.initialize(i.x*o+e.x*t,i.y*o+e.y*t)}static roundTo(i,e){let t=Math.trunc(i.x/e),o=Math.trunc(i.y/e);return{x:t*e,y:o*e}}static hypotenuse(i,e){let t=e.x-i.x,o=e.y-i.y;return Math.abs(Math.sqrt(t*t+o*o))}static distance(i,e){let t=i.x-e.x,o=i.y-e.y;return Math.sqrt(t*t+o*o)}static getMinimum(i,e){return n.initialize(Math.min(i.x,e.x),Math.min(i.y,e.y))}static getMaximum(i,e){return n.initialize(Math.max(i.x,e.x),Math.max(i.y,e.y))}static matrixTransform(i,e){let t=n.initialize(i.x,i.y),o=e.getScreenCTM();if(o){let r=e.createSVGPoint();r.x=i.x,r.y=i.y,t=r.matrixTransform(o.inverse())}return t}static elementTransform(i,e){let t=n.initialize(i.x,i.y),o=e.getBoundingClientRect();return t=n.sub(t,n.initialize(o.left,o.top)),t}},j=class n{constructor(i=0,e=0){this.x=i,this.y=e}static fromPoint(i){return new n(i.x,i.y)}add(i){let e=M.sum(this,i);return n.fromPoint(e)}sub(i){let e=M.sub(this,i);return n.fromPoint(e)}subNumber(i){let e=M.sub(this,new n(i,i));return n.fromPoint(e)}div(i){let e=M.div(this,i);return n.fromPoint(e)}mult(i){let e=M.mult(this,i);return n.fromPoint(e)}matrixTransform(i){let e=M.matrixTransform(this,i);return n.fromPoint(e)}elementTransform(i){let e=M.elementTransform(this,i);return n.fromPoint(e)}},Pn=class{static initialize(i=M.initialize(),e=M.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))}},Nt=class{constructor(i,e){this.point1=i,this.point2=e}},z=class n{static initialize(i=0,e=0,t=0,o=0){t<0&&(i=i+t,t=-t),o<0&&(e=e+o,o=-o);let r=M.initialize(i+t/2,e+o/2);return{x:i,y:e,width:t,height:o,gravityCenter:r}}static copy(i){return n.initialize(i.x,i.y,i.width,i.height)}static fromElement(i){let{x:e,y:t,width:o,height:r}=i.getBoundingClientRect();return n.initialize(e,t,o,r)}static isIncludePoint(i,e){return e.x>=n.left(i)&&e.x<=n.right(i)&&e.y>=n.top(i)&&e.y<=n.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 t=n.copy(i);return t.x+=e.x,t.y+=e.y,this.initialize(t.x,t.y,t.width,t.height)}static mult(i,e){let t=n.copy(i);return t.x*=e,t.y*=e,t.width*=e,t.height*=e,this.initialize(t.x,t.y,t.width,t.height)}static div(i,e){let t=n.copy(i);return t.x/=e,t.y/=e,t.width/=e,t.height/=e,this.initialize(t.x,t.y,t.width,t.height)}static addPointToSize(i,e){let t=n.copy(i);return t.width+=e.x,t.height+=e.y,this.initialize(t.x,t.y,t.width,t.height)}static union(i){return!i||i.length===0?null:i.reduce((e,t)=>{let o=Math.min(e.x,t.x),r=Math.min(e.y,t.y),s=Math.max(e.x+e.width,t.x+t.width),a=Math.max(e.y+e.height,t.y+t.height);return n.initialize(o,r,s-o,a-r)},i[0])}static elementTransform(i,e){let t=e.getBoundingClientRect(),o=M.sub(i,M.initialize(t.left,t.top));return n.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)?n.initialize(0,0,0,0):i}};function wf(n,i){let e=Math.max(n.width,i),t=Math.max(n.height,i),o=(e-n.width)/2,r=(t-n.height)/2;return z.initialize(n.x-o,n.y-r,e,t)}function ll(n,i){n=z.updateIsNotFinite(n),i.setAttribute("x",n.x.toString()),i.setAttribute("y",n.y.toString()),i.setAttribute("width",n.width.toString()),i.setAttribute("height",n.height.toString())}function bf(n,i){n=z.updateIsNotFinite(n),i.setAttribute("viewBox",`${n.x} ${n.y} ${n.width} ${n.height}`)}var ge=class n{constructor(i=0,e=0,t=0,o=0,r=0,s=0,a=0,d=0){this.x=i,this.y=e,this.width=t,this.height=o,this.radius1=r,this.radius2=s,this.radius3=a,this.radius4=d,this.gravityCenter=M.initialize(),this.gravityCenter=this.calculateGravityCenter(this)}calculateGravityCenter(i){return new j(i.x+i.width/2,i.y+i.height/2)}static fromRect(i){return new n(i.x,i.y,i.width,i.height)}static fromRoundedRect(i){return new n(i.x,i.y,i.width,i.height,i.radius1,i.radius2,i.radius3,i.radius4)}static fromCenter(i,e,t){return new n(i.gravityCenter.x-e/2,i.gravityCenter.y-t/2,e,t,i.radius1,i.radius2,i.radius3,i.radius4)}static fromPoint(i){return new n(i.x,i.y)}addPoint(i){let e=n.fromRoundedRect(this);return e.x+=i.x,e.y+=i.y,e.gravityCenter=this.calculateGravityCenter(e),e}},Xe=class n{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 n.initialize(e.width,e.height)}else if(i instanceof HTMLElement)return n.initialize(i.offsetWidth,i.offsetHeight)}};function Ag(){return{position:M.initialize(),scaledPosition:M.initialize(),scale:1,rotate:0}}function Lg(n){let i;if(n){n=n.replace("matrix(",""),n=n.replace(")","");let e=n.split(" ");i={position:{x:Number(e[4]),y:Number(e[5])},scaledPosition:M.initialize(),scale:Number(e[0]),rotate:0}}return i}var pt=class{static toString(i){let e=M.sum(i.position,i.scaledPosition);return`matrix(${i.scale}, 0, 0, ${i.scale}, ${e.x}, ${e.y})`}static fromString(i){return Lg(i)}static default(){return Ag()}},Le=class n{static initialize(i=0,e=0){return M.initialize(i,e)}static fromPoints(i,e){return n.initialize(e.x-i.x,e.y-i.y)}static vectorLength(i){return Math.sqrt(n.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 n.initialize(i.x-e.x,i.y-e.y)}static add(i,e){return n.initialize(i.x+e.x,i.y+e.y)}static scale(i,e){return n.initialize(i.x*e,i.y*e)}static angle(i,e){let t=Math.acos(Math.max(-1,Math.min(n.dotProduct(i,e)/(n.vectorLength(i)*n.vectorLength(e)),1)));return n.crossProduct(i,e)<0?-t:t}},dl=class{static parseRoundedRect(i){let e=Math.PI*.5,t=i.x,o=i.y,r=i.x+i.width,s=i.y+i.height,a=i.x+i.radius1,d=i.y+i.radius1,l=i.x+i.width-i.radius2,h=i.y+i.radius2,g=i.x+i.width-i.radius3,x=i.y+i.height-i.radius3,m=i.x+i.radius4,E=i.y+i.height-i.radius4;return[new Rt({x:a,y:d},i.radius1,i.radius1,2*e,3*e),new Nt({x:a,y:o},{x:l,y:o}),new Rt({x:l,y:h},i.radius2,i.radius2,3*e,4*e),new Nt({x:r,y:h},{x:r,y:x}),new Rt({x:g,y:x},i.radius3,i.radius3,0,e),new Nt({x:g,y:s},{x:m,y:s}),new Rt({x:m,y:E},i.radius4,i.radius4,e,2*e),new Nt({x:t,y:E},{x:t,y:d})]}},en=class{static getRoundedRectIntersections(i,e,t){let o=dl.parseRoundedRect(t);for(let r of o)if(r instanceof Rt){let s=this.intersectArcWithLine(r,i,e);if(s.length>0)return s}else if(r instanceof Nt){let s=this.intersectLineSegments(i,e,r.point1,r.point2);if(s)return[s]}return[]}static getRoundedRectIntersectionsWithSVGPath(i,e){let t=i.getTotalLength(),o=[];for(let r=0;r<=t;r+=1){let s=i.getPointAtLength(r);o.push({x:s.x,y:s.y})}for(let r=1;r<o.length;r++){let s=this.getRoundedRectIntersections(o[r-1],o[r],e);if(s.length>0)return s}return[]}static intersectArcWithLine(i,e,t){return this.filterPointsWithinArc(this.findEllipseLineIntersections(i.center,i.radiusX,i.radiusY,e,t),i)}static intersectLineSegments(i,e,t,o){let r=e.x-i.x,s=e.y-i.y,a=o.x-t.x,d=o.y-t.y,l=(-s*(i.x-t.x)+r*(i.y-t.y))/(-a*s+r*d),h=(a*(i.y-t.y)-d*(i.x-t.x))/(-a*s+r*d);return l>=0&&l<=1&&h>=0&&h<=1?{x:i.x+h*r,y:i.y+h*s}:null}static filterPointsWithinArc(i,e){let{center:t,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 s=[];for(let a of i){let d=this.normalizeAngle(Le.angle(Le.initialize(1,0),Le.initialize(a.x-t.x,a.y-t.y)));d<o&&(d+=2*Math.PI),o<=d&&d<=r&&s.push(a)}return s}static normalizeAngle(i){let e=i%(2*Math.PI);return e<0?e+2*Math.PI:e}static findEllipseLineIntersections(i,e,t,o,r){let s=Le.initialize(o.x,o.y),a=Le.fromPoints(o,r),d=Le.initialize(i.x,i.y),l=Le.subtract(s,d),h=Le.initialize(a.x/(e*e),a.y/(t*t)),g=Le.initialize(l.x/(e*e),l.y/(t*t)),x=Le.dotProduct(a,h),m=Le.dotProduct(a,g),E=Le.dotProduct(l,g)-1,b=m*m-x*E;return b<0?[]:this.calculateIntersectionPoints(b,x,m,o,r)}static calculateIntersectionPoints(i,e,t,o,r){let s=[];if(i>0){let a=Math.sqrt(i),d=(-t-a)/e,l=(-t+a)/e;d>=0&&d<=1&&s.push(M.interpolatePoints(o,r,d)),l>=0&&l<=1&&s.push(M.interpolatePoints(o,r,l))}else{let a=-t/e;a>=0&&a<=1&&s.push(M.interpolatePoints(o,r,a))}return s}};var ul=class{handle(i,e){let t=!0;if(this.validator&&(t=e.get(this.validator).handle(i)),!!t)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}},D=class n{constructor(){this._injector=c(Ae)}static registerPipeline(i,e,t){if(!i||!i.fToken)throw new Error("Type must have a fToken static property.");let o=this.pipelines.get(i.fToken)||new ul;t?o.setValidator(e):o.setExecution(e),this.pipelines.set(i.fToken,o)}send(i){let e=n.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 n.pipelines.get(i.constructor.fToken).execute(i,this._injector)}};D.pipelines=new Map;D.\u0275fac=function(i){return new(i||D)};D.\u0275prov=u({token:D,factory:D.\u0275fac});function p(n){return function(i){D.registerPipeline(n,i,!1)}}var zg=(()=>{class n{setItem(e,t){localStorage.setItem(e,t)}getItem(e){return localStorage.getItem(e)}removeItem(e){localStorage.removeItem(e)}clear(){localStorage.clear()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Bg=(()=>{class n{storage={};setItem(e,t){this.storage[e]=t}getItem(e){return this.storage[e]||null}removeItem(e){delete this.storage[e]}clear(){this.storage={}}static \u0275fac=function(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Gg=new ee("F_LOCAL_STORAGE",{providedIn:"root",factory:()=>Ni(c(bi))?c(zg):c(Bg)}),Hg=(()=>{class n{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,t,o){window.open(e,t,o)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),jg=(()=>{class n{getComputedStyle(e){return new Proxy({getPropertyValue:t=>"0"},{get:(t,o)=>o==="getPropertyValue"?t.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,t,o){}static \u0275fac=function(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Vg=new ee("F_WINDOW",{providedIn:"root",factory:()=>Ni(c(bi))?c(Hg):c(jg)}),mt=(function(n){return n.MAC_OS="macos",n.IOS="ios",n.WINDOWS="windows",n.ANDROID="android",n.LINUX="linux",n})(mt||{}),fl;try{fl=typeof Intl<"u"&&Intl.v8BreakIterator}catch{fl=!1}var hl=(()=>{class n{_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||fl)&&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?Ni(this._platformId):typeof document=="object"&&!!document}getOS(){let e=navigator.userAgent.toLowerCase(),t=/(macintosh|macintel|macppc|mac68k|macos)/i,o=/(win32|win64|windows|wince)/i,r;return t.test(e)?r=mt.MAC_OS:this.IOS?r=mt.IOS:o.test(e)?r=mt.WINDOWS:this.ANDROID?r=mt.ANDROID:!r&&/linux/.test(e)&&(r=mt.LINUX),r}static \u0275fac=function(t){return new(t||n)(Yt(bi))};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),_e=(()=>{class n{injectedDocument;windowService;localStorageService;platformService;constructor(e,t,o,r){this.injectedDocument=e,this.windowService=t,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,t,o,r){if(e.endsWith("px"))return parseFloat(e);if(e.endsWith("%")){let s=parseFloat(e)/100;return Math.max(t,o)*s}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 s=this.window.innerHeight/100;return parseFloat(e)*s}else if(e.endsWith("vw")){let s=this.window.innerWidth/100;return parseFloat(e)*s}}return parseFloat(e)||0}static \u0275fac=function(t){return new(t||n)(Yt(wi),Yt(Vg),Yt(Gg),Yt(hl))};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function gl(n,i){return n.reduce((e,t)=>[...e,...i(t)],[])}function _l(n){let i=n.cloneNode(!0),e=i.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();i.removeAttribute("id");for(let o=0;o<e.length;o++)e[o].removeAttribute("id");return t==="canvas"?Df(n,i):(t==="input"||t==="select"||t==="textarea")&&Sf(n,i),If("canvas",n,i,Df),If("input, textarea, select",n,i,Sf),i}function If(n,i,e,t){let o=i.querySelectorAll(n);if(o.length){let r=e.querySelectorAll(n);for(let s=0;s<o.length;s++)t(o[s],r[s])}}var Ug=0;function Sf(n,i){i.type!=="file"&&(i.value=n.value),i.type==="radio"&&i.name&&(i.name=`mat-clone-${i.name}-${Ug++}`)}function Df(n,i){let e=i.getContext("2d");if(e)try{e.drawImage(n,0,0)}catch{}}function pl(n,i,e){for(let t in i)if(i.hasOwnProperty(t)){let o=i[t];o?n.setProperty(t,o,e?.has(t)?"important":""):n.removeProperty(t)}return n}function Tf(n){pl(n.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 Ef(n,i,e){return Wg(n,e).dataset[i]}function Wg(n,i){return n.closest(i)}function ml(n,i){let e=n.rootNodes;if(e.length===1&&e[0].nodeType===i.ELEMENT_NODE)return e[0];let t=i.createElement("div");return e.forEach(o=>t.appendChild(o)),t}function Mn(n,i){let e=$g(n,i);return!!e&&!e.classList.contains(i+"-disabled")}function $g(n,i){return n.closest(i)}function ut(n){return n.match(/^[a-zA-Z_]/)||(n="_"+n),n.replace(/[^a-zA-Z0-9_\-:.]/g,"_")}function tn(n,i,e){let t=e[n.toUpperCase()]||Xg(e,n.toLowerCase());if(t===void 0)throw new Error(`Unknown ${i}: ${n}. Accepted values: ${Object.keys(e).join(", ")}`);return t}function Xg(n,i){return Object.keys(n).find(e=>n[e]===i)}var qg=["markerElement"],Yg=["fConnectionGradientRenderer",""],Kg=["f-connection-path",""],Zg=["fConnectionSelection",""],Qg=["f-connection-drag-handle-start",""],Jg=["f-connection-drag-handle-end",""],e_=["defs"],t_=["*"],n_=["fGroupsContainer"],i_=["fNodesContainer"],o_=["fConnectionsContainer"],r_=[[["","fGroup",""],["","fGroups",""]],[["f-snap-connection"]],[["f-connection"],["","fConnections",""]],[["f-connection-for-create"]],[["","fNode",""],["","fNodes",""]]],s_=["[fGroup], [fGroups]","f-snap-connection","f-connection, [fConnections]","f-connection-for-create","[fNode], [fNodes]"],a_=[[["svg","fMarker",""]],[["f-connection-marker-circle"],["f-connection-marker-arrow"]],[["f-connection-gradient"]],[["f-connection-waypoints"]],[["","fConnectionContent",""]]],c_=["svg[fMarker]","f-connection-marker-circle, f-connection-marker-arrow","f-connection-gradient","f-connection-waypoints","[fConnectionContent]"];function d_(n,i){n&1&&(Ge(),U(0,"linearGradient",3)),n&2&&A("fConnectionGradientRendererFor",i)}function l_(n,i){n&1&&(Ge(),U(0,"circle",6))}function u_(n,i){n&1&&Se(0,4)}var f_="[_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}",h_=[[["","fDefinitions",""]],[["f-background"]],[["f-line-alignment"]],[["f-canvas"]],[["f-selection-area"]],"*"],g_=["[fDefinitions]","f-background","f-line-alignment","f-canvas","f-selection-area","*"],wl=new ee("F_BACKGROUND_PATTERN"),ha=class{fPattern;static fToken=Symbol("AddPatternToBackgroundRequest");constructor(i){this.fPattern=i}},sn=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(),t=this._byId.get(e);if(!t)return!1;this._byId.delete(e);let o=this._items.indexOf(t);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 t=this._items.indexOf(e);return t>=0&&this._items.splice(t,1),e}clear(){this._items.length=0,this._byId.clear()}};function Ot(n){return{name:n}}var bl=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()}},kn=class extends sn{kind;constructor(i){super(),this.kind=i}},Il=class extends sn{kind="Connection Marker"},Sl=class extends sn{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}},Dl=class extends sn{kind="Node"},nn=class{notifyOnSubscribe;static fToken=Symbol("ListenConnectionsChangesRequest");constructor(i=!0){this.notifyOnSubscribe=i}};function __(){return n=>{let i=null,e=null,t=()=>{i!==null&&cancelAnimationFrame(i),e!==null&&cancelAnimationFrame(e),i=e=null};return{callback:()=>{t(),i=requestAnimationFrame(()=>{i=null,e=requestAnimationFrame(()=>{e=null,n()})})},cleanup:t}}}function p_(){return n=>{let i=null;return{callback:()=>{i!==null&&cancelAnimationFrame(i),i=requestAnimationFrame(()=>{i=null,n()})},cleanup:()=>{i!==null&&cancelAnimationFrame(i),i=null}}}}function ga(n){return i=>{let e=null;return{callback:()=>{e!==null&&clearTimeout(e),e=setTimeout(()=>{e=null,i()},n)},cleanup:()=>{e!==null&&clearTimeout(e),e=null}}}}var je=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)}},Tl=class extends je{_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}},it=class n{_channels=[];_operators=[];constructor(...i){this._channels=[...i]}pipe(...i){let e=new n(...this._channels);return e._operators=[...this._operators,...i],e}listen(i,e){let t=e,o=[],r=[],s=[];for(let g of[...this._operators].reverse()){let x=g(t);t=x.callback,x.cleanup&&o.push(x.cleanup),x.onSubscribe&&r.push(x.onSubscribe),x.setTeardown&&s.push(x.setTeardown)}let a=this._channels.map(g=>g.listen(()=>t())),d=null,l=!1,h=()=>{l||(l=!0,d?.(),d=null,a.forEach(g=>g()),o.forEach(g=>g()))};s.slice().reverse().forEach(g=>g(h)),r.slice().reverse().forEach(g=>g(t)),d=i.onDestroy(h)}};function Bd(){return n=>{let i=!0;return{callback:n,onSubscribe:e=>{queueMicrotask(()=>{i&&e()})},cleanup:()=>{i=!1}}}}function Pf(){return n=>{let i=!1,e=null;return{setTeardown:t=>e=t,callback:()=>{if(!i){i=!0;try{n()}finally{e?.()}}}}}}var m_=(()=>{let n=class Vi{_store=c(C);handle({notifyOnSubscribe:e}){return e?new it(this._store.connectionsChanges$).pipe(Bd(),ga(1)):new it(this._store.connectionsChanges$).pipe(ga(1))}static \u0275fac=function(t){return new(t||Vi)};static \u0275prov=u({token:Vi,factory:Vi.\u0275fac})};return n=_([p(nn)],n),n})(),El=class{static fToken=Symbol("ListenNodesChangesRequest")},y_=(()=>{let n=class Ui{_store=c(C);handle(e){return new it(this._store.nodesChanges$)}static \u0275fac=function(t){return new(t||Ui)};static \u0275prov=u({token:Ui,factory:Ui.\u0275fac})};return n=_([p(El)],n),n})(),_a=class{static fToken=Symbol("ListenTransformChangesRequest")},v_=(()=>{let n=class Wi{_store=c(C);handle(e){return new it(this._store.transformChanges$,this._store.connectionsChanges$,this._store.nodesChanges$)}static \u0275fac=function(t){return new(t||Wi)};static \u0275prov=u({token:Wi,factory:Wi.\u0275fac})};return n=_([p(_a)],n),n})(),Ft=class{static fToken=Symbol("EmitConnectionsChangesRequest")},C_=(()=>{let n=class $i{_store=c(C);handle(e){this._store.emitConnectionChanges()}static \u0275fac=function(t){return new(t||$i)};static \u0275prov=u({token:$i,factory:$i.\u0275fac})};return n=_([p(Ft)],n),n})(),xt=class{static fToken=Symbol("NotifyTransformChangedRequest")},C=(()=>{class n{transformChanges$=new je;viewportAnimationChanges$=new je;connectionsChanges$=new je;_connectionsRevision=0;connectionsRenderedChanges$=new je;_connectionsRenderedRevision=0;_connectionsRenderedNodesRevision=0;_viewportAnimationCount=0;nodesChanges$=new je;_nodesRevision=0;progressiveRenderChanges$=new je;_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 Dl;connections=new Sl;connectionMarkers=new Il;outputs=new kn("Output");inputs=new kn("Input");outlets=new kn("Outlet");instances=new bl;fDraggable;emitNodeChanges(){this._nodesRevision++,this.nodesChanges$.notify()}emitConnectionChanges(){this._connectionsRevision++,this.connectionsChanges$.notify()}completeConnectionsRender(e,t){e<this._connectionsRenderedRevision||e===this._connectionsRenderedRevision&&t<=this._connectionsRenderedNodesRevision||(this._connectionsRenderedRevision=Math.min(e,this._connectionsRevision),this._connectionsRenderedNodesRevision=t,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(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac})}return n})(),ae={MAGNETIC_LINES:Ot("magnetic-lines"),MAGNETIC_RECTS:Ot("magnetic-rects"),ZOOM:Ot("zoom-controls"),BACKGROUND:Ot("background"),SELECTION_AREA:Ot("selection-area"),MINIMAP:Ot("minimap"),AUTO_PAN:Ot("auto-pan")},x_=(()=>{let n=class Xi{_store=c(C);handle(e){this._store.transformChanged()}static \u0275fac=function(t){return new(t||Xi)};static \u0275prov=u({token:Xi,factory:Xi.\u0275fac})};return n=_([p(xt)],n),n})(),At=class{key;instance;static fToken=Symbol("RegisterPluginInstanceRequest");constructor(i,e){this.key=i,this.instance=e}},w_=(()=>{let n=class qi{_store=c(C);handle({key:e,instance:t}){this._store.instances.add(e,t)}static \u0275fac=function(t){return new(t||qi)};static \u0275prov=u({token:qi,factory:qi.\u0275fac})};return n=_([p(At)],n),n})(),Lt=class{key;static fToken=Symbol("RemovePluginInstanceRequest");constructor(i){this.key=i}},b_=(()=>{let n=class Yi{_store=c(C);handle({key:e}){this._store.instances.remove(e)}static \u0275fac=function(t){return new(t||Yi)};static \u0275prov=u({token:Yi,factory:Yi.\u0275fac})};return n=_([p(Lt)],n),n})(),I_=[C,y_,m_,v_,C_,x_,w_,b_],S_=0,D_=(()=>{let n=class Ki{_store=c(C);_browser=c(_e);get _backgroundElement(){return this._store.instances.get(ae.BACKGROUND)?.hostElement}handle(e){let t=this._getPatterns(e.fPattern?.hostElement);if(!t?.length)return;let o=rn("defs",this._browser);if(e.fPattern?.hostElement.remove(),t.forEach(r=>{o.append(r)}),t.length){this._backgroundElement?.firstChild?.appendChild(o),t[t.length-1].id="f-background-pattern-"+S_++;let r=t[t.length-1].id,s=rn("rect",this._browser);s.setAttribute("fill","url(#"+r+")"),s.setAttribute("width","100%"),s.setAttribute("height","100%"),this._backgroundElement?.firstChild?.appendChild(s);let a=this._store.fCanvas?.transform||pt.default();e.fPattern?.setTransform(a)}}_getPatterns(e){return Array.from(e?.getElementsByTagName("pattern")||[])}static \u0275fac=function(t){return new(t||Ki)};static \u0275prov=u({token:Ki,factory:Ki.\u0275fac})};return n=_([p(ha)],n),n})(),On=class{fTransform;static fToken=Symbol("SetBackgroundTransformRequest");constructor(i){this.fTransform=i}},T_=(()=>{let n=class Zi{_store=c(C);handle(e){this._store.instances.get(ae.BACKGROUND)?.setTransform(e.fTransform)}static \u0275fac=function(t){return new(t||Zi)};static \u0275prov=u({token:Zi,factory:Zi.\u0275fac})};return n=_([p(On)],n),n})(),E_=[D_,T_],pa=class{instance;static fToken=Symbol("AddCanvasToStoreRequest");constructor(i){this.instance=i}},P_=(()=>{let n=class Qi{_store=c(C);handle({instance:e}){this._store.fCanvas=e}static \u0275fac=function(t){return new(t||Qi)};static \u0275prov=u({token:Qi,factory:Qi.\u0275fac})};return n=_([p(pa)],n),n})(),ma=class{id;animated;static fToken=Symbol("CenterGroupOrNodeRequest");constructor(i,e){this.id=i,this.animated=e}},M_=(()=>{let n=class Ji{_store=c(C);_mediator=c(D);get _transform(){return this._store.transform}handle({id:e,animated:t}){let o=this._store.nodes.get(e);o&&(this._toCenter(this._getNodeRect(o),this._getFlowRect(),o._position),this._mediator.execute(new an(t,zt.VIEWPORT_ONLY)))}_toCenter(e,t,o){this._transform.scaledPosition=M.initialize(),this._transform.position=M.initialize((t.width-e.width)/2-o.x*this._transform.scale,(t.height-e.height)/2-o.y*this._transform.scale)}_getNodeRect(e){return z.fromElement(e.hostElement)}_getFlowRect(){return z.fromElement(this._store.flowHost)}static \u0275fac=function(t){return new(t||Ji)};static \u0275prov=u({token:Ji,factory:Ji.\u0275fac})};return n=_([p(ma)],n),n})(),ya=class{toCenter;animated;static fToken=Symbol("FitToFlowRequest");constructor(i,e){this.toCenter=i,this.animated=e}},R_=(()=>{let n=class eo{_store=c(C);get _transform(){return this._store.transform}_mediator=c(D);handle({toCenter:e,animated:t}){let o=this._mediator.execute(new gn)||z.initialize();o.width===0||o.height===0||(this.fitToParent(o,z.fromElement(this._store.flowHost),this._store.nodes.getAll().map(r=>r._position),e),this._mediator.execute(new an(t,zt.VIEWPORT_ONLY)))}fitToParent(e,t,o,r){this._transform.scaledPosition=M.initialize(),this._transform.position=this._getZeroPositionWithoutScale(o);let s=e.width/this._transform.scale+r.x,a=e.height/this._transform.scale+r.y;(s>t.width||a>t.height||s<t.width&&a<t.height)&&(this._transform.scale=Math.min(t.width/s,t.height/a));let d=(t.width-s*this._transform.scale)/2-this._transform.position.x*this._transform.scale,l=(t.height-a*this._transform.scale)/2-this._transform.position.y*this._transform.scale;this._transform.position=M.initialize(d+r.x/2*this._transform.scale,l+r.y/2*this._transform.scale)}_getZeroPositionWithoutScale(e){let t=e.length?Math.min(...e.map(r=>r.x)):0,o=e.length?Math.min(...e.map(r=>r.y)):0;return M.initialize(t,o)}static \u0275fac=function(t){return new(t||eo)};static \u0275prov=u({token:eo,factory:eo.\u0275fac})};return n=_([p(ya)],n),n})(),va=class{transform;position;static fToken=Symbol("InputCanvasPositionRequest");constructor(i,e){this.transform=i,this.position=e}},N_=(()=>{let n=class to{_store=c(C);handle({transform:e,position:t}){t&&(M.isEqual(this._calculateTransformPosition(e),t)||(e.position=t,e.scaledPosition=M.initialize(),this._store.fCanvas?.redraw()))}_calculateTransformPosition(e){return M.sum(e.position,e.scaledPosition)}static \u0275fac=function(t){return new(t||to)};static \u0275prov=u({token:to,factory:to.\u0275fac})};return n=_([p(va)],n),n})(),Ca=class{transform;scale;static fToken=Symbol("InputCanvasScaleRequest");constructor(i,e){this.transform=i,this.scale=e}},k_=(()=>{let n=class no{_store=c(C);handle(e){!e.scale&&e.scale!==0||(e.transform.scale=e.scale,this._store.fCanvas?.redraw())}static \u0275fac=function(t){return new(t||no)};static \u0275prov=u({token:no,factory:no.\u0275fac})};return n=_([p(Ca)],n),n})(),zt=(function(n){return n.VIEWPORT_ONLY="VIEWPORT_ONLY",n.WITH_CONNECTION_CHANGES="WITH_CONNECTION_CHANGES",n})(zt||{}),an=class{animated;context;static fToken=Symbol("RedrawCanvasWithAnimationRequest");constructor(i,e=zt.WITH_CONNECTION_CHANGES){this.animated=i,this.context=e}};function nh(n,i){let e=t=>{t.propertyName==="transform"&&(n.removeEventListener("transitionend",e),i(t))};n.addEventListener("transitionend",e)}var O_=(()=>{let n=class io{_store=c(C);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(),nh(this._canvas.hostElement,()=>{this._store.endViewportAnimation(),e===zt.WITH_CONNECTION_CHANGES&&this._store.emitConnectionChanges()})}_redraw(e){this._canvas?.redraw(),e===zt.WITH_CONNECTION_CHANGES&&this._store.emitConnectionChanges()}static \u0275fac=function(t){return new(t||io)};static \u0275prov=u({token:io,factory:io.\u0275fac})};return n=_([p(an)],n),n})(),xa=class{static fToken=Symbol("RemoveCanvasFromStoreRequest")},F_=(()=>{let n=class oo{_store=c(C);handle(e){this._store.fCanvas=void 0}static \u0275fac=function(t){return new(t||oo)};static \u0275prov=u({token:oo,factory:oo.\u0275fac})};return n=_([p(xa)],n),n})(),wa=class{static fToken=Symbol("ResetScaleRequest")},A_=(()=>{let n=class ro{_store=c(C);get _transform(){return this._store.transform}handle(e){this._transform.scale=1,this._transform.scaledPosition=M.initialize()}static \u0275fac=function(t){return new(t||ro)};static \u0275prov=u({token:ro,factory:ro.\u0275fac})};return n=_([p(wa)],n),n})(),ba=class{animated;static fToken=Symbol("ResetScaleAndCenterRequest");constructor(i){this.animated=i}},L_=(()=>{let n=class so{_mediator=c(D);_store=c(C);get _transform(){return this._store.transform}handle({animated:e}){let t=this._mediator.execute(new gn)||z.initialize();t.width===0||t.height===0||(this._oneToOneCentering(t,z.fromElement(this._store.flowHost),this._store.nodes.getAll().map(o=>o._position)),this._mediator.execute(new an(e,zt.VIEWPORT_ONLY)))}_oneToOneCentering(e,t,o){this._transform.scaledPosition=M.initialize(),this._transform.position=this._getZeroPositionWithoutScale(o);let r=(t.width-e.width/this._transform.scale)/2-this._transform.position.x,s=(t.height-e.height/this._transform.scale)/2-this._transform.position.y;this._transform.scale=1,this._transform.position=M.initialize(r,s)}_getZeroPositionWithoutScale(e){let t=e.length?Math.min(...e.map(r=>r.x)):0,o=e.length?Math.min(...e.map(r=>r.y)):0;return M.initialize(t,o)}static \u0275fac=function(t){return new(t||so)};static \u0275prov=u({token:so,factory:so.\u0275fac})};return n=_([p(ba)],n),n})(),Ia=class{scale;toPosition;static fToken=Symbol("UpdateScaleRequest");constructor(i,e){this.scale=i,this.toPosition=e}},z_=(()=>{let n=class ao{_store=c(C);get _transform(){return this._store.transform}handle({scale:e,toPosition:t}){if(e===this._transform.scale)return;let o=M.sum(this._transform.scaledPosition,this._transform.position),r=t.x-(t.x-o.x)*e/this._transform.scale,s=t.y-(t.y-o.y)*e/this._transform.scale;this._transform.scale=e,this._transform.scaledPosition=M.sub(M.initialize(r,s),this._transform.position)}static \u0275fac=function(t){return new(t||ao)};static \u0275prov=u({token:ao,factory:ao.\u0275fac})};return n=_([p(Ia)],n),n})(),B_=[P_,M_,R_,N_,k_,O_,F_,A_,L_,z_],Pl=class{connection;static fToken=Symbol("AddConnectionForCreateToStoreRequest");constructor(i){this.connection=i}},G_=(()=>{let n=class co{_store=c(C);handle({connection:e}){this._store.connections.addForCreate(e)}static \u0275fac=function(t){return new(t||co)};static \u0275prov=u({token:co,factory:co.\u0275fac})};return n=_([p(Pl)],n),n})(),Ml=class{instance;static fToken=Symbol("AddConnectionMarkerToStoreRequest");constructor(i){this.instance=i}},H_=(()=>{let n=class lo{_store=c(C);handle({instance:e}){this._store.connectionMarkers.add(e),this._store.emitNodeChanges()}static \u0275fac=function(t){return new(t||lo)};static \u0275prov=u({token:lo,factory:lo.\u0275fac})};return n=_([p(Ml)],n),n})(),Sa=class{connection;static fToken=Symbol("AddConnectionToStoreRequest");constructor(i){this.connection=i}},j_=(()=>{let n=class uo{_store=c(C);handle({connection:e}){this._store.connections.add(e),this._store.emitConnectionChanges()}static \u0275fac=function(t){return new(t||uo)};static \u0275prov=u({token:uo,factory:uo.\u0275fac})};return n=_([p(Sa)],n),n})(),Rl=class{connection;static fToken=Symbol("AddSnapConnectionToStoreRequest");constructor(i){this.connection=i}},V_=(()=>{let n=class fo{_store=c(C);handle({connection:e}){this._store.connections.addForSnap(e)}static \u0275fac=function(t){return new(t||fo)};static \u0275prov=u({token:fo,factory:fo.\u0275fac})};return n=_([p(Rl)],n),n})(),cn=class{connection;static fToken=Symbol("CreateConnectionMarkersRequest");constructor(i){this.connection=i}},Mf=new ee("F_CONNECTION_CONTENT");var Da=class n{points;cumulativeLengths;segmentTangents;totalLength;constructor(i){let e=n._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 t=this.points.length,o=t-1,r=new Array(t).fill(0),s=new Array(o),a=0;for(let d=0;d<o;d++){let l=this.points[d+1].x-this.points[d].x,h=this.points[d+1].y-this.points[d].y,g=Math.hypot(l,h),x=g?l/g:1,m=g?h/g:0;s[d]={x,y:m},a+=g,r[d+1]=a}this.cumulativeLengths=r,this.segmentTangents=s,this.totalLength=a||1}static from(i){return new n(i.map(e=>({x:e.x,y:e.y})))}static _removeConsecutiveDuplicates(i){let e=[];for(let t of i){let o=e[e.length-1];(!o||o.x!==t.x||o.y!==t.y)&&e.push({x:t.x,y:t.y})}return e}},Nl=class n{_polyline;constructor(i=[]){this._polyline=new Da(i)}updatePoints(i){return this._polyline=new Da(i),this._polyline.totalLength}calculateTotalLength(i){return this.updatePoints(i)}get totalLength(){return this._polyline.totalLength}getPointAtProgress(i){let{points:e,cumulativeLengths:t,segmentTangents:o,totalLength:r}=this._polyline,a=n._clamp(i,0,1)*r,d=.5;if(a<=d)return{point:e[0],tangent:o[0]??{x:1,y:0},atEdge:!0};if(r-a<=d){let P=e.length-1;return{point:e[P],tangent:o[P-1]??{x:1,y:0},atEdge:!0}}let l=n._findRightIndex(t,a),h=Math.max(1,l),g=t[h-1],x=t[h],m=n._safeRatio(a-g,x-g),E=e[h-1],b=e[h],w={x:n._lerp(E.x,b.x,m),y:n._lerp(E.y,b.y,m)},I=o[h-1]??{x:1,y:0};return{point:w,tangent:I,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 t=0,o=i.length-1;for(;t<o;){let r=t+o>>1;i[r]<e?t=r+1:o=r}return t}static _lerp(i,e,t){return i+(e-i)*t}static _clamp(i,e,t){return i<e?e:i>t?t:i}static _safeRatio(i,e){let t=Math.abs(e)<1e-6?1e-6:e;return i/t}},ih=(function(n){return n.NONE="none",n.ALONG="along",n})(ih||{}),kl=class{compute(i,e){let t=this._clamp01(e.position()),{point:o,tangent:r}=i.getPointAtLength(t),s={x:-r.y,y:r.x},a=e.offset()??0,d=o.x+s.x*a,l=o.y+s.y*a,g=this._sizeAlongDirection(e.hostElement,r)*.5,x=t*i.totalLength,m=i.totalLength-x,E=this._applyEdgeGuard(d,l,r,x,m,g),b=this._calculateContentRotation(e.align(),r);return{position:E,rotationDeg:b}}_clamp01(i){return i<=0?0:i>=1?1:i}_applyEdgeGuard(i,e,t,o,r,s){if(o<=s){let a=s-o;return{x:i+t.x*a,y:e+t.y*a}}if(r<=s){let a=s-r;return{x:i-t.x*a,y:e-t.y*a}}return{x:i,y:e}}_sizeAlongDirection(i,e){let t=z.fromElement(i);return Math.abs(e.x)*t.width+Math.abs(e.y)*t.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 t=0;return i===ih.ALONG&&(t=Math.atan2(e.y,e.x)*180/Math.PI,t=this._keepUpright(t)),t}},Ol=class{_placement;constructor(i=new kl){this._placement=i}layout(i,e){let t=new Nl(i),o=t.totalLength;for(let r of e){let{position:s,rotationDeg:a}=this._placement.compute(t,r);r.hostElement.style.transform=this._createTransformString(s,a)}return o}_createTransformString(i,e){return`translate3d(${i.x}px, ${i.y}px, 0) translate(-50%, -50%) rotate(${e}deg)`}};var Rf=new ee("F_CONNECTION_WAYPOINTS");function oh(n,i,e){return(n.x-i.x)**2+(n.y-i.y)**2<=e**2}function U_(n,i){let e=n.fWaypoints(),t=e?.radius()||8;return e?.candidates().find(o=>oh(i,o,t))}function W_(n,i){let e=n.fWaypoints(),t=e?.radius()||8;return e?.waypoints().find(o=>oh(i,o,t))}function $_(n,i){for(let e of n){let t=W_(e,i);if(t&&e.fWaypoints()?.visibility())return{connection:e,waypoint:t};let o=U_(e,i);if(o&&e.fWaypoints()?.visibility())return{connection:e,candidate:o}}}var Gd=new ee("F_CONNECTION_COMPONENTS_PARENT");var ne=(function(n){return n.START="f-connection-marker-start",n.END="f-connection-marker-end",n.SELECTED_START="f-connection-selected-marker-start",n.SELECTED_END="f-connection-selected-marker-end",n.START_ALL_STATES="f-connection-marker-start-all-states",n.END_ALL_STATES="f-connection-marker-end-all-states",n})(ne||{}),Fl=new ee("F_CONNECTION_MARKER"),X_=0,Al=class{fId=re(`f-marker-${X_++}`);hostElement=c(he).nativeElement};function q_(n,i=ne.START){if(typeof n!="string")return i;let e=n.trim().toLowerCase();return e?Y_(e)??i:i}function Y_(n){switch(n){case"start":case"f-connection-marker-start":return ne.START;case"end":case"f-connection-marker-end":return ne.END;case"selected-start":case"f-connection-selected-marker-start":return ne.SELECTED_START;case"selected-end":case"f-connection-selected-marker-end":return ne.SELECTED_END;case"start-all-states":case"f-connection-marker-start-all-states":case"start-all":case"all-start":return ne.START_ALL_STATES;case"end-all-states":case"f-connection-marker-end-all-states":case"end-all":case"all-end":return ne.END_ALL_STATES;default:return null}}var rh=(()=>{class n extends Al{_markerElement=ve.required("markerElement");_type=F(ne.END_ALL_STATES,{alias:"type",transform:e=>q_(e,ne.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=X(n)))(o||n)}})();static \u0275cmp=se({type:n,selectors:[["f-connection-marker-arrow"]],viewQuery:function(t,o){t&1&&ct(o._markerElement,qg,5),t&2&&We()},hostAttrs:[1,"f-component",2,"display","none"],inputs:{_type:[1,"type","_type"]},features:[be([{provide:Fl,useExisting:n}]),ce],decls:3,vars:0,consts:[["markerElement",""],["viewBox","0 0 6 6",1,"f-marker"],["d","M0,0 L6,3 0,6Z"]],template:function(t,o){t&1&&(Ge(),Je(0,"svg",1,0),Zt(2,"path",2),et())},encapsulation:2})}return n})();var vt=(function(n){return n.FIXED="fixed",n.FIXED_CENTER="fixed_center",n.FLOATING="floating",n})(vt||{}),ke=(function(n){return n.DEFAULT="default",n.TOP="top",n.BOTTOM="bottom",n.LEFT="left",n.RIGHT="right",n.CALCULATE="calculate",n.CALCULATE_HORIZONTAL="calculate_horizontal",n.CALCULATE_VERTICAL="calculate_vertical",n})(ke||{});function K_({sourceRect:n,targetRect:i}){return{point1:n.gravityCenter,point2:i.gravityCenter}}var R=(function(n){return n.LEFT="left",n.TOP="top",n.RIGHT="right",n.BOTTOM="bottom",n.CALCULATE="calculate",n.CALCULATE_HORIZONTAL="calculate_horizontal",n.CALCULATE_VERTICAL="calculate_vertical",n.AUTO="auto",n})(R||{}),yt=(function(n){return n.SEGMENT="segment",n.STRAIGHT="straight",n.BEZIER="bezier",n.ADAPTIVE_CURVE="adaptive-curve",n})(yt||{});function Z_({sourceRect:n,sourceConnectableSide:i,targetRect:e,targetConnectableSide:t}){return{point1:Nf(n,i===R.AUTO?R.BOTTOM:i),point2:Nf(e,t===R.AUTO?R.TOP:t)}}function Nf(n,i){switch(i){case R.TOP:return{x:n.x+n.width/2,y:n.y};case R.BOTTOM:return{x:n.x+n.width/2,y:n.y+n.height};case R.LEFT:return{x:n.x,y:n.y+n.height/2};case R.RIGHT:return{x:n.x+n.width,y:n.y+n.height/2};default:throw new Error(`Unknown side: ${i}`)}}function sh(n,i,e,t){if(!t||!t.rotationDeg)return en.getRoundedRectIntersections(n,i,e)[0];let o=ho(n,-t.rotationDeg,t.pivot),r=ho(i,-t.rotationDeg,t.pivot),s=Q_(e,-t.rotationDeg,t.pivot),a=en.getRoundedRectIntersections(o,r,s)[0];return a?ho(a,t.rotationDeg,t.pivot):void 0}function Q_(n,i,e){let t=ho(J_(n),i,e);return new ge(t.x-n.width/2,t.y-n.height/2,n.width,n.height,n.radius1,n.radius2,n.radius3,n.radius4)}function J_(n){return{x:n.x+n.width/2,y:n.y+n.height/2}}function ho(n,i,e){let t=n.x-e.x,o=n.y-e.y,r=i*Math.PI/180,s=Math.cos(r),a=Math.sin(r);return{x:t*s-o*a+e.x,y:t*a+o*s+e.y}}function ep({sourceRect:n,targetRect:i,sourceRotationContext:e,targetRotationContext:t}){return ip(tp(n,i,e),np(n,i,t),n,i)}function tp(n,i,e){return sh(n.gravityCenter,i.gravityCenter,n,e)}function np(n,i,e){return sh(i.gravityCenter,n.gravityCenter,i,e)}function ip(n,i,e,t){return{point1:n||e.gravityCenter,point2:i||t.gravityCenter}}var Hi=.5,op={[vt.FLOATING]:ep,[vt.FIXED_CENTER]:K_,[vt.FIXED]:Z_},Cn=(()=>{class n{handle(e){let t=this._calculateDirectionalVectors(e.sourceRect.gravityCenter.x,e.sourceRect.gravityCenter.y,e.targetRect.gravityCenter.x,e.targetRect.gravityCenter.y),o=this._determineSourceSide(e,t),r=this._determineTargetSide(e,t);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,t,o,r){let s=o-e,a=r-t;return{sourceToTargetX:s,sourceToTargetY:a,targetToSourceX:-s,targetToSourceY:-a}}_determineSourceSide(e,t){return this._resolveConnectableSide(e.connection.fOutputSide(),t.sourceToTargetX,t.sourceToTargetY,e.sourceConnectableSide)}_determineTargetSide(e,t){return this._resolveConnectableSide(e.connection.fInputSide(),t.targetToSourceX,t.targetToSourceY,e.targetConnectableSide)}_resolveConnectableSide(e,t,o,r){if(e===ke.DEFAULT)return r;let s=Math.abs(t),a=Math.abs(o);if(s<Hi&&a<Hi)return r;let l=s>=a;switch(e){case ke.CALCULATE:return l?t>=0?R.RIGHT:R.LEFT:o>=0?R.BOTTOM:R.TOP;case ke.CALCULATE_HORIZONTAL:return s<Hi?r:t>=0?R.RIGHT:R.LEFT;case ke.CALCULATE_VERTICAL:return a<Hi?r:o>=0?R.BOTTOM:R.TOP;case ke.TOP:return R.TOP;case ke.BOTTOM:return R.BOTTOM;case ke.LEFT:return R.LEFT;case ke.RIGHT:return R.RIGHT;default:return r}}_getBehaviorHandler(e){let t=op[e];if(!t)throw new Error(`[Behavior] No handler for behavior: ${e}`);return t}static \u0275fac=function(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac})}return n})(),Ye=class{sourceRect;targetRect;connection;sourceConnectableSide;targetConnectableSide;sourceRotationContext;targetRotationContext;constructor(i,e,t,o,r,s,a){this.sourceRect=i,this.targetRect=e,this.connection=t,this.sourceConnectableSide=o,this.targetConnectableSide=r,this.sourceRotationContext=s,this.targetRotationContext=a}};function Hd(n,i,e){return[n,...e??[],i]}function rp(n,i){let e=Math.abs(i.x-n.x)/2,t=i.x<n.x?i.x+e:i.x-e,o=Math.abs(i.y-n.y)/2,r=i.y<n.y?i.y+o:i.y-o;return{x:t,y:r}}function sp(n,i=32){let e=new Array(i+1);e[0]=J({},n[0]);for(let t=1;t<=i;t++)e[t]=ah(n[0],n[1],n[2],n[3],t/i);return e}function ah(n,i,e,t,o){let r=1-o,s=o*o,a=r*r,d=a*r,l=s*o;return{x:d*n.x+3*a*o*i.x+3*r*s*e.x+l*t.x,y:d*n.y+3*a*o*i.y+3*r*s*e.y+l*t.y}}function ch(n){return n.map(i=>ah(i.p0,i.c1,i.c2,i.p3,.5))}function ap(n){if(n.length<2)throw new Error("Polylines must be at least two points");let i=cp(n);return i<=0?[J({},n[0])]:[dp(n,i/2)]}function cp(n){let i=0;for(let e=0;e<n.length-1;e++)i+=dh(n[e],n[e+1]);return i}function dp(n,i){let e=0;for(let o=0;o<n.length-1;o++){let r=n[o],s=n[o+1],a=dh(r,s);if(!(a<=0)){if(e+a>=i){let d=(i-e)/a;return{x:r.x+(s.x-r.x)*d,y:r.y+(s.y-r.y)*d}}e+=a}}let t=n[n.length-1];return{x:t.x,y:t.y}}function dh(n,i){return Math.hypot(i.x-n.x,i.y-n.y)}function lp(n){let i=[];for(let e of n)for(let t of e){let o=i[i.length-1];(!o||o.x!==t.x||o.y!==t.y)&&i.push(t)}return i}function lh(n){if(!n.length)return"";let i=`M ${n[0].p0.x} ${n[0].p0.y}`;for(let e=0;e<n.length;e++){let t=n[e],o=e===n.length-1,r=o?t.p3.x+2e-4:t.p3.x,s=o?t.p3.y+2e-4:t.p3.y;i+=` C ${t.c1.x} ${t.c1.y}, ${t.c2.x} ${t.c2.y}, ${r} ${s}`}return i}function uh(n,i=16){if(!n.length)return[];let e=[];for(let t=0;t<n.length;t++){let o=n[t],r=sp([o.p0,o.c1,o.c2,o.p3],i);t>0&&r.shift(),e.push(...r)}return e}function up(n,i=1e-6){let e=n.length;if(e<=2)return n;let t=[];t.push(n[0]);for(let r=1;r<e;r++){let s=n[r],a=t[t.length-1];(Math.abs(s.x-a.x)>i||Math.abs(s.y-a.y)>i)&&t.push(s)}if(t.length<=2)return t;let o=[];o.push(t[0]);for(let r=1;r<t.length-1;r++){let s=o[o.length-1],a=t[r],d=t[r+1],l=Math.abs(s.x-a.x)<=i&&Math.abs(a.x-d.x)<=i,h=Math.abs(s.y-a.y)<=i&&Math.abs(a.y-d.y)<=i;!l&&!h&&o.push(a)}return o.push(t[t.length-1]),o}var Ll=class n{static _dir(i){switch(i){case R.LEFT:return{x:-1,y:0};case R.RIGHT:return{x:1,y:0};case R.TOP:return{x:0,y:-1};case R.BOTTOM:return{x:0,y:1};case R.AUTO:return{x:0,y:0}}return{x:0,y:0}}static _isHorizontal(i){return i===R.LEFT||i===R.RIGHT}static _handleLength(i,e,t,o){let r=Math.abs(e.x-i.x),s=Math.abs(e.y-i.y),a=Math.hypot(r,s),d=t===R.AUTO?Math.max(r,s):this._isHorizontal(t)?r:s,l=Math.max(8,o),h=o+.5*a,g=o*1.05+d*.3;return Math.min(h,Math.max(l,g))}static _softControl(i,e,t,o){let r=this._dir(i),s=t.x-e.x,a=t.y-e.y,d=Math.hypot(s,a)||1,l=s/d,h=a/d;if(i===R.AUTO)return{x:e.x+l*o,y:e.y+h*o};let g=r.x*l+r.y*h,x=.12,m=Math.max(0,-g)*.08,E=Math.min(.2,x+m),b=r.x*(1-E)+l*E,w=r.y*(1-E)+h*E,I=Math.hypot(b,w)||1;return{x:e.x+b/I*o,y:e.y+w/I*o}}handle({source:i,sourceSide:e,target:t,targetSide:o,offset:r,waypoints:s}){let a=Math.max(0,r??0),d=Hd(i,t,s),l=[];for(let g=0;g<d.length-1;g++){let x=d[g],m=d[g+1],E=n._handleLength(x,m,e,a),b=n._handleLength(m,x,o,a),w=n._softControl(e,x,m,E),I=n._softControl(o,m,x,b);l.push({p0:x,c1:w,c2:I,p3:m,chainIndex:g})}let h=uh(l,12);return{path:lh(l),secondPoint:l[0]?.c1??i,penultimatePoint:l[l.length-1]?.c2??t,points:h,candidates:ch(l)}}},zl=class{handle({source:i,sourceSide:e,target:t,targetSide:o,offset:r,waypoints:s}){let a=Hd(i,t,s),d=[];for(let h=0;h<a.length-1;h++){let g=a[h],x=a[h+1],m=kf(e,g,x,r??0),E=kf(o,x,g,r??0);d.push({p0:g,c1:m,c2:E,p3:x,chainIndex:h})}let l=uh(d,12);return{path:lh(d),secondPoint:d[0]?.c1??i,penultimatePoint:d[d.length-1]?.c2??t,points:l,candidates:ch(d)}}};function kf(n,i,e,t){let o={x:i.x,y:i.y};switch(n){case R.LEFT:o.x-=ji(i.x-e.x,t);break;case R.RIGHT:o.x+=ji(e.x-i.x,t);break;case R.TOP:o.y-=ji(i.y-e.y,t);break;case R.BOTTOM:o.y+=ji(e.y-i.y,t);break;case R.AUTO:break}return o}function ji(n,i){return n>=i?n:i*Math.sqrt(i-n)}function fp(n){let{axis:i,source:e,target:t,sourceSide:o,targetSide:r,sourceGap:s,targetGap:a,sourceDir:d,targetDir:l,currentDir:h,offset:g,sourceGapOffset:x,targetGapOffset:m}=n,E=hp(s,a),b=gp(i,d,h,E);return o===r?_p(i,e,t,g,d,h,s,a,x,m):b=pp(i,d,l,s,a,E,b),b}function hp(n,i){return{sourceTarget:[{x:n.x,y:i.y}],targetSource:[{x:i.x,y:n.y}]}}function gp(n,i,e,t){return n==="x"?i.x===e?t.targetSource:t.sourceTarget:i.y===e?t.sourceTarget:t.targetSource}function _p(n,i,e,t,o,r,s,a,d,l){let h=Math.abs(i[n]-e[n]);if(h>t)return;let g=Math.min(t-1,t-h);g<=0||(o[n]===r?d[n]=(s[n]>i[n]?-1:1)*g:l[n]=(a[n]>e[n]?-1:1)*g)}function pp(n,i,e,t,o,r,s){let a=n==="x"?"y":"x",d=i[n]===e[a],l=t[a]>o[a],h=t[a]<o[a];return i[n]===1&&(!d&&l||d&&h)||i[n]!==1&&(!d&&h||d&&l)?n==="x"?r.sourceTarget:r.targetSource:s}var Rn=1e-6,Of=2e-4,mp=.75;function yp(n,i){let e=n.length,t=[];t.push(`M ${n[0].x} ${n[0].y}`);for(let r=1;r<e-1;r++)t.push(vp(n[r-1],n[r],n[r+1],i));let o=n[e-1];return t.push(`L ${o.x+Of} ${o.y+Of}`),t.join(" ")}function vp(n,i,e,t){let o=i.x,r=i.y;if(t<=0)return`L ${o} ${r}`;let s=Math.abs(n.x-o)<=Rn&&Math.abs(o-e.x)<=Rn,a=Math.abs(n.y-r)<=Rn&&Math.abs(r-e.y)<=Rn;if(s||a)return`L ${o} ${r}`;let d=Math.hypot(o-n.x,r-n.y),l=Math.hypot(e.x-o,e.y-r),h=Math.min(d*.5,l*.5,t);if(h<mp)return`L ${o} ${r}`;if(Math.abs(n.y-r)<=Rn){let w=n.x<e.x?-1:1,I=n.y<e.y?1:-1,P=o+h*w,L=r+h*I;return`L ${P} ${r} Q ${o} ${r} ${o} ${L}`}let x=n.x<e.x?1:-1,m=n.y<e.y?-1:1,E=r+h*m,b=o+h*x;return`L ${o} ${E} Q ${o} ${r} ${b} ${r}`}var Ff={[R.LEFT]:M.initialize(-1,0),[R.RIGHT]:M.initialize(1,0),[R.TOP]:M.initialize(0,-1),[R.BOTTOM]:M.initialize(0,1),[R.AUTO]:M.initialize(0,0)},Bl=class{handle({source:i,sourceSide:e,target:t,targetSide:o,waypoints:r,offset:s,radius:a}){let d=Hd(i,t,r),l=[],h=[];for(let E=0;E<d.length-1;E++){let b=d[E],w=d[E+1],I=this._getPathPoints(b,e,w,o,s??0);l.push(I),h.push(...ap(I))}let g=up(lp(l)),x=g.length>1?g[g.length-2]:i,m=g.length>1?g[1]:t;return{path:yp(g,a??0),penultimatePoint:x,secondPoint:m,points:g,candidates:h}}_getPathPoints(i,e,t,o,r){let s=Ff[e],a=Ff[o],d={x:i.x+s.x*r,y:i.y+s.y*r},l={x:t.x+a.x*r,y:t.y+a.y*r},h=this._getDirection(d,e,l),g=h.x!==0?"x":"y",x=h[g],m=[],E=M.initialize(),b=M.initialize(),w=rp(i,t);if(s[g]*a[g]===-1){let I=[{x:w.x,y:d.y},{x:w.x,y:l.y}],P=[{x:d.x,y:w.y},{x:l.x,y:w.y}];s[g]===x?m=g==="x"?I:P:m=g==="x"?P:I}else m=fp({axis:g,source:i,target:t,sourceSide:e,targetSide:o,sourceGap:d,targetGap:l,sourceDir:s,targetDir:a,currentDir:x,offset:r,sourceGapOffset:E,targetGapOffset:b});return[i,{x:d.x+E.x,y:d.y+E.y},...m,{x:l.x+b.x,y:l.y+b.y},t]}_getDirection(i,e,t){return e===R.LEFT||e===R.RIGHT?i.x<t.x?M.initialize(1,0):M.initialize(-1,0):i.y<t.y?M.initialize(0,1):M.initialize(0,-1)}},Af=2e-4,Gl=class{handle(i){let e=Hd(i.source,i.target,i.waypoints),t=e.length,o=e[0],r=`M ${o.x} ${o.y}`,s=new Array(t-1);for(let a=0;a<t-1;a++){let d=e[a],l=e[a+1],h=a===t-2,g=h?l.x+Af:l.x,x=h?l.y+Af:l.y;r+=` L ${g} ${x}`,s[a]={x:(d.x+l.x)*.5,y:(d.y+l.y)*.5}}return{path:r,candidates:s,points:e,secondPoint:e[1]??i.target,penultimatePoint:e[t-2]??i.source}}},Cp=new ee("F_CONNECTION_BUILDERS"),fh=(()=>{class n{_builtinBuilders={[yt.STRAIGHT]:new Gl,[yt.BEZIER]:new zl,[yt.ADAPTIVE_CURVE]:new Ll,[yt.SEGMENT]:new Bl};_providedBuilders;_builders;constructor(){this._providedBuilders=c(Cp,{optional:!0})||{},this._builders=J(J({},this._builtinBuilders),this._providedBuilders)}handle({type:e,payload:t}){let o=this._builders[e];if(!o)throw this._createBuilderNotFoundError(e);return o.handle(t)}_createBuilderNotFoundError(e){let t=Object.keys(this._builtinBuilders).sort(),o=Object.keys(this._providedBuilders).sort(),r=Object.keys(this._builders).sort(),s=t.filter(d=>d in this._providedBuilders).sort(),a=[`Connection Builder Error: builder type "${e}" not found.`,`Registered types: ${r.length?r.join(", "):"(none)"}`,`Built-in types: ${t.length?t.join(", "):"(none)"}`,`Provided (F_CONNECTION_BUILDERS) types: ${o.length?o.join(", "):"(none)"}`,s.length?`Overridden built-ins: ${s.join(", ")}`:null,"Tip: ensure you pass a valid Connection Type or provide a builder via F_CONNECTION_BUILDERS."].filter(Boolean);return new Error(a.join(`
2
2
  `))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac})}return n})();function xp(n,i,e){return ut("connection_"+n+i+e)}function wp(n,i,e){return ut("connection_for_selection_"+n+i+e)}function hh(n){return ut("connection_gradient_"+n)}function bp(n){return`url(#${hh(n)})`}var Ip=(()=>{class n{_connection=c(Gd);_hostElement=c(he).nativeElement;_injector=c(Ae);_hostAttributes=new Map;_startColor;_endColor;gradientId=G(()=>hh(this._connection.fId()));ngOnInit(){this._listenColorChanges()}_listenColorChanges(){Re(()=>{this.gradient().fStartColor(),this.gradient().fEndColor(),Pt(()=>{this._updateGradient()})},{injector:this._injector})}get stop1Element(){return this._hostElement.children.item(0)}get stop2Element(){return this._hostElement.children.item(1)}redraw(e){let t=e.point2.x-e.point1.x,o=e.point2.y-e.point1.y,r=Math.sqrt(t*t+o*o)||.01,s=new j(.5-.5*t/r,.5-.5*o/r);this._setHostAttribute("x1",s.x.toString()),this._setHostAttribute("y1",s.y.toString());let a=new j(.5+.5*t/r,.5+.5*o/r);this._setHostAttribute("x2",a.x.toString()),this._setHostAttribute("y2",a.y.toString()),this._updateGradient()}_updateGradient(){let e=this.gradient();this._setFromColor(e.fStartColor()),this._setToColor(e.fEndColor())}_setFromColor(e){let t=e||"transparent";this._startColor!==t&&(this._startColor=t,this.stop1Element.setAttribute("stop-color",t),this.stop1Element.style.setProperty("stop-color",t))}_setToColor(e){let t=e||"transparent";this._endColor!==t&&(this._endColor=t,this.stop2Element.setAttribute("stop-color",t),this.stop2Element.style.setProperty("stop-color",t))}_setHostAttribute(e,t){this._hostAttributes.get(e)!==t&&(this._hostAttributes.set(e,t),this._hostElement.setAttribute(e,t))}static \u0275fac=function(t){return new(t||n)};static \u0275dir=pe({type:n,standalone:!1})}return n})(),Hl=(()=>{class n extends Ip{gradient=F.required({alias:"fConnectionGradientRendererFor"});static \u0275fac=(()=>{let e;return function(o){return(e||(e=X(n)))(o||n)}})();static \u0275cmp=se({type:n,selectors:[["linearGradient","fConnectionGradientRenderer",""]],hostVars:1,hostBindings:function(t,o){t&2&&te("id",o.gradientId())},inputs:{gradient:[1,"fConnectionGradientRendererFor","gradient"]},features:[ce],attrs:Yg,decls:3,vars:0,consts:[[0,"xmlns","svg","http://www.w3.org/2000/svg"],["offset","0%"],["offset","100%"]],template:function(t,o){t&1&&(Ei(0,0),Ge(),Zt(1,"stop",1)(2,"stop",2),Pi())},encapsulation:2,changeDetection:0})}return n})(),Lf=new ee("F_CONNECTION_GRADIENT");var jl=new ee("F_CONNECTION_PATH"),Vl=class{hostElement=c(he).nativeElement},Sp=(()=>{class n extends Vl{_connection=c(Gd);useGradient=F(!1);linkToGradient=G(()=>this.useGradient()?bp(this._connection.fId()):null);get fPathId(){return this._connection.fId()}get attrConnectionId(){return xp(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(#${Ep(this._connection.fId())})`),this.hostElement.setAttribute("marker-end",`url(#${Pp(this._connection.fId())})`)}deselect(){this.hostElement.setAttribute("marker-start",`url(#${Dp(this._connection.fId())})`),this.hostElement.setAttribute("marker-end",`url(#${Tp(this._connection.fId())})`)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=X(n)))(o||n)}})();static \u0275cmp=se({type:n,selectors:[["path","f-connection-path",""]],hostAttrs:[1,"f-component","f-connection-path"],hostVars:4,hostBindings:function(t,o){t&2&&(te("id",o.attrConnectionId)("data-f-path-id",o.fPathId),gt("stroke",o.linkToGradient()))},inputs:{useGradient:[1,"useGradient"]},standalone:!1,features:[be([{provide:jl,useExisting:n}]),ce],attrs:Kg,decls:0,vars:0,template:function(t,o){},styles:["[_nghost-%COMP%]{fill:none;pointer-events:stroke}"],changeDetection:0})}return n})();function Dp(n){return ut(`f-connection-marker-start-${n}`)}function Tp(n){return ut(`f-connection-marker-end-${n}`)}function Ep(n){return ut(`f-connection-selected-marker-start-${n}`)}function Pp(n){return ut(`f-connection-selected-marker-end-${n}`)}var Ul=new ee("F_CONNECTION_SELECTION"),Wl=class{hostElement=c(he).nativeElement},Mp=(()=>{class n extends Wl{_connection=c(Gd);get connectionForSelectionId(){return wp(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=X(n)))(o||n)}})();static \u0275cmp=se({type:n,selectors:[["path","fConnectionSelection",""]],hostAttrs:[1,"f-component","f-connection-selection"],hostVars:1,hostBindings:function(t,o){t&2&&te("id",o.connectionForSelectionId)},standalone:!1,features:[be([{provide:Ul,useExisting:n}]),ce],attrs:Zg,decls:0,vars:0,template:function(t,o){},styles:["[_nghost-%COMP%]{fill:none;pointer-events:stroke}"],changeDetection:0})}return n})(),$l=new ee("F_CONNECTION_DRAG_HANDLE_END"),Xl=new ee("F_CONNECTION_DRAG_HANDLE_START"),Ta=class{hostElement=c(he).nativeElement;point=M.initialize();class="f-connection-drag-handle";calculateCircleCenter(i,e,t){let o={x:e.x-i.x,y:e.y-i.y},r=Math.sqrt(o.x*o.x+o.y*o.y)||1,s={x:o.x/r,y:o.y/r},a={x:s.x*t,y:s.y*t};return{x:e.x-a.x,y:e.y-a.y}}},Rp=(()=>{class n extends Ta{redraw(e,t){this.point=this.calculateCircleCenter(e,t,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=X(n)))(o||n)}})();static \u0275cmp=se({type:n,selectors:[["circle","f-connection-drag-handle-start",""]],hostVars:2,hostBindings:function(t,o){t&2&&tt(o.class)},standalone:!1,features:[be([{provide:Xl,useExisting:n}]),ce],attrs:Qg,decls:0,vars:0,template:function(t,o){},encapsulation:2,changeDetection:0})}return n})(),Np=(()=>{class n extends Ta{redraw(e,t){this.point=this.calculateCircleCenter(e,t,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=X(n)))(o||n)}})();static \u0275cmp=se({type:n,selectors:[["circle","f-connection-drag-handle-end",""]],hostVars:2,hostBindings:function(t,o){t&2&&tt(o.class)},standalone:!1,features:[be([{provide:$l,useExisting:n}]),ce],attrs:Jg,decls:0,vars:0,template:function(t,o){},encapsulation:2,changeDetection:0})}return n})(),yl="f-selected";function gh(n){return class extends n{fId=re("");fSelectionDisabled=re(!1);unmarkAsSelected(){this.unmarkChildrenAsSelected?.(),this.hostElement.classList.remove(yl)}markAsSelected(){this.markChildrenAsSelected?.(),this.isSelected()||this.hostElement.classList.add(yl)}isSelected(){return this.hostElement.classList.contains(yl)}markChildrenAsSelected(){}unmarkChildrenAsSelected(){}constructor(...i){super(...i)}}}function kp(n){return class extends n{show(){this.hostElement.style.display="unset"}hide(){this.hostElement.style.display="none"}constructor(...i){super(...i)}}}var Op=gh(kp(class{hostElement;constructor(n){this.hostElement=n}})),Fp=(()=>{class n extends Op{_fConnectionBuilder=c(fh);path="";line=Pn.initialize();fReassignableStart=re(!1);fDraggingDisabled=re(!1);fSelectionDisabled=re(!1);fDefs=ve.required("defs");fPath=ve.required(jl);fDragHandleStart=ve(Xl);fDragHandleEnd=ve.required($l);fSelection=ve.required(Ul);fContents=cl(Mf,{descendants:!0});fMarkers=cl(Fl,{descendants:!0});fGradient=Ri(Lf);_fGradientRenderer=ve(Hl);fWaypoints=Ri(Rf);fInputSide=re(ke.DEFAULT);_contentLayoutEngine=new Ol;_sourceSide=R.AUTO;fOutputSide=re(ke.DEFAULT);_targetSide=R.AUTO;_penultimatePoint=M.initialize();_secondPoint=M.initialize();constructor(){super(c(he).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(t=>t.hostElement?.contains(e))||this.fWaypoints()?.hostElement?.contains(e)}setLine({point1:e,point2:t}){this.line=Pn.initialize(e,t);let{path:o,points:r,penultimatePoint:s,secondPoint:a,candidates:d}=this._getPathResult(e,t);this.path=o,this._penultimatePoint=s||e,this._secondPoint=a||t,this.fWaypoints()?.candidates.set(d||[]),this._contentLayoutEngine.layout(r||[],this._contents())}_contents(){return Array.from(this.fContents()?.values()??[])}_getPathResult(e,t){return this._fConnectionBuilder.handle({type:this.fType,payload:{source:e,sourceSide:this._sourceSide,target:t,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,t){this._sourceSide=e,this._targetSide=t}static \u0275fac=function(t){return new(t||n)};static \u0275dir=pe({type:n,contentQueries:function(t,o,r){t&1&&al(r,o.fContents,Mf,5)(r,o.fMarkers,Fl,5)(r,o.fGradient,Lf,5)(r,o.fWaypoints,Rf,5),t&2&&We(4)},viewQuery:function(t,o){t&1&&ct(o.fDefs,e_,5)(o.fPath,jl,5)(o.fDragHandleStart,Xl,5)(o.fDragHandleEnd,$l,5)(o.fSelection,Ul,5)(o._fGradientRenderer,Hl,5),t&2&&We(6)},standalone:!1,features:[ce]})}return n})(),Ap=(()=>{let n=class go{_browser=c(_e);_markerCache=new WeakMap;handle({connection:e}){let t=this._findConnectionMarkers(e),o=e.fDefs();if(!o)return!1;let r=Lp(t),s=this._markerCache.get(e);if(s?.signature===r&&s.defsElement===o.nativeElement)return!1;let a=ph("defs",this._browser);return t.forEach(d=>{_h(d.type).forEach(l=>{let h=zp(l,d,e.fId(),this._browser),g=d.markerElement.cloneNode(!0);g.setAttribute("height",`${d.height}`),g.setAttribute("width",`${d.width}`),g.removeAttribute("markerUnits"),g.style.display="unset",h.append(g),a.append(h)})}),o.nativeElement.innerHTML=a.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(t){return new(t||go)};static \u0275prov=u({token:go,factory:go.\u0275fac})};return n=_([p(cn)],n),n})();function Lp(n){return n.map(i=>[..._h(i.type),i.width,i.height,i.refX,i.refY,i.orient,i.markerUnits,i.markerElement.outerHTML].join("|")).join("||")}function zp(n,i,e,t){let o=ph("marker",t);return o.setAttribute("id",ut(n+"-"+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 _h(n){switch(n){case ne.START:return[ne.START];case ne.END:return[ne.END];case ne.SELECTED_START:return[ne.SELECTED_START];case ne.SELECTED_END:return[ne.SELECTED_END];case ne.START_ALL_STATES:return[ne.START,ne.SELECTED_START];case ne.END_ALL_STATES:return[ne.END,ne.SELECTED_END];default:return[]}}function ph(n,i){return i.document.createElementNS("http://www.w3.org/2000/svg",n)}var jd=(()=>{class n{renderTicket=0;_connectedInPreviousRender=new Set;beginRender(){return++this.renderTicket}resetConnectedConnectors(){for(let e of this._connectedInPreviousRender)e.resetConnected();this._connectedInPreviousRender.clear()}trackConnectedConnectors(e,t){this._connectedInPreviousRender.add(e),this._connectedInPreviousRender.add(t)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac})}return n})(),Bp=String.raw`
3
3
  const EPSILON = 0.5;
4
4
 
@@ -1,4 +1,4 @@
1
- import{a as Zi,b as Yi}from"./chunk-G6SL4UFD.js";import{a as We,c as Et,d as Wi,f as Xi}from"./chunk-ZF7H74JY.js";import{$a as De,$b as Oi,$c as Ui,A as W,Ac as Mt,B as Be,Ba as Se,C as fi,Ca as ot,D as M,Da as vi,Dc as Bi,E as Ut,Ea as Me,Ec as Tt,Fa as h,Fc as Pi,Ga as be,Gc as Ri,Ha as Re,Hc as Ee,I as c,Ia as yt,Ib as Xe,Ic as U,Jb as st,Jc as at,Kb as Si,Kc as ne,L as qt,La as yi,M as q,Ma as bi,Na as Ci,Nc as oe,O as N,Ob as Mi,Oc as me,P as X,Pc as zi,Q as fe,Qb as Ti,R as ee,Ra as K,Rb as wi,Rc as Hi,S as T,Sa as je,Sb as Ei,Sc as ji,T as u,Ta as Q,Tb as Zt,Tc as $i,U as gi,Ua as Te,Uc as I,Va as bt,Vc as _e,W as w,Xb as Je,Yb as we,Yc as wt,Z as ae,Zc as Ve,_ as ce,_a as de,_b as Vi,_c as Gi,ab as j,ac as $e,ad as qi,b as ui,bb as ke,bd as Ki,ca as l,cb as _,cc as Di,da as m,e as pi,ea as y,fa as te,fc as Ge,g as hi,ga as Kt,gd as Qi,h as mi,ha as Wt,hb as xi,hc as Yt,ia as ye,ib as S,ic as ki,ja as O,jb as Fe,jc as Ue,k as Oe,ka as D,kb as Ii,kc as St,l as J,la as R,lb as Qt,m as Z,mb as Ct,n as H,nb as xt,oa as ie,ob as Ae,oc as Xt,p as b,pa as _i,pb as It,qa as E,qb as Ce,qc as Fi,r as F,ra as a,rb as se,rc as Le,s as A,sa as ge,sb as rt,sc as qe,t as Y,ta as he,tc as Ke,ua as Ie,uc as Ai,va as Pe,vc as lt,wa as f,wc as Li,x,xa as g,y as Ye,yc as Ni,zc as Jt}from"./chunk-AVRC55YV.js";import{a as P,b as pe}from"./chunk-Q7L6LLAK.js";var ln=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(q(qt),q(Ut))};static \u0275dir=fe({type:t})}return t})(),fo=(()=>{class t extends ln{static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275dir=fe({type:t,features:[T]})}return t})(),ze=new H("");var go={provide:ze,useExisting:Oe(()=>Ft),multi:!0};function _o(){let t=Qt()?Qt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var vo=new H(""),Ft=(()=>{class t extends ln{_compositionMode;_composing=!1;constructor(e,i,n){super(e,i),this._compositionMode=n,this._compositionMode==null&&(this._compositionMode=!_o())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||t)(q(qt),q(Ut),q(vo,8))};static \u0275dir=fe({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,n){i&1&&E("input",function(s){return n._handleInput(s.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(s){return n._compositionEnd(s.target.value)})},standalone:!1,features:[K([go]),T]})}return t})();var yo=new H(""),bo=new H("");function an(t){return t!=null}function cn(t){return gi(t)?pi(t):t}function dn(t){let o={};return t.forEach(e=>{o=e!=null?P(P({},o),e):o}),Object.keys(o).length===0?null:o}function un(t,o){return o.map(e=>e(t))}function Co(t){return!t.validate}function pn(t){return t.map(o=>Co(o)?o:e=>o.validate(e))}function xo(t){if(!t)return null;let o=t.filter(an);return o.length==0?null:function(e){return dn(un(e,o))}}function hn(t){return t!=null?xo(pn(t)):null}function Io(t){if(!t)return null;let o=t.filter(an);return o.length==0?null:function(e){let i=un(e,o).map(cn);return mi(i).pipe(hi(dn))}}function mn(t){return t!=null?Io(pn(t)):null}function Ji(t,o){return t===null?[o]:Array.isArray(t)?[...t,o]:[t,o]}function So(t){return t._rawValidators}function Mo(t){return t._rawAsyncValidators}function ei(t){return t?Array.isArray(t)?t:[t]:[]}function Ot(t,o){return Array.isArray(t)?t.includes(o):t===o}function en(t,o){let e=ei(o);return ei(t).forEach(n=>{Ot(e,n)||e.push(n)}),e}function tn(t,o){return ei(o).filter(e=>!Ot(t,e))}var Dt=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(o){this._rawValidators=o||[],this._composedValidatorFn=hn(this._rawValidators)}_setAsyncValidators(o){this._rawAsyncValidators=o||[],this._composedAsyncValidatorFn=mn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(o){this._onDestroyCallbacks.push(o)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(o=>o()),this._onDestroyCallbacks=[]}reset(o=void 0){this.control?.reset(o)}hasError(o,e){return this.control?this.control.hasError(o,e):!1}getError(o,e){return this.control?this.control.getError(o,e):null}},ti=class extends Dt{name;get formDirective(){return null}get path(){return null}},Ne=class extends Dt{_parent=null;name=null;valueAccessor=null},ii=class{_cd;constructor(o){this._cd=o}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var ht=(()=>{class t extends ii{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(q(Ne,2))};static \u0275dir=fe({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,n){i&2&&vi("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},standalone:!1,features:[T]})}return t})();var ct="VALID",Vt="INVALID",et="PENDING",dt="DISABLED",Qe=class{},kt=class extends Qe{value;source;constructor(o,e){super(),this.value=o,this.source=e}},ut=class extends Qe{pristine;source;constructor(o,e){super(),this.pristine=o,this.source=e}},pt=class extends Qe{touched;source;constructor(o,e){super(),this.touched=o,this.source=e}},tt=class extends Qe{status;source;constructor(o,e){super(),this.status=o,this.source=e}};var ni=class extends Qe{source;constructor(o){super(),this.source=o}};function To(t){return(At(t)?t.validators:t)||null}function wo(t){return Array.isArray(t)?hn(t):t||null}function Eo(t,o){return(At(o)?o.asyncValidators:t)||null}function Vo(t){return Array.isArray(t)?mn(t):t||null}function At(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var oi=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(o,e){this._assignValidators(o),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(o){this._rawValidators=this._composedValidatorFn=o}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(o){this._rawAsyncValidators=this._composedAsyncValidatorFn=o}get parent(){return this._parent}get status(){return De(this.statusReactive)}set status(o){De(()=>this.statusReactive.set(o))}_status=j(()=>this.statusReactive());statusReactive=W(void 0);get valid(){return this.status===ct}get invalid(){return this.status===Vt}get pending(){return this.status===et}get disabled(){return this.status===dt}get enabled(){return this.status!==dt}errors;get pristine(){return De(this.pristineReactive)}set pristine(o){De(()=>this.pristineReactive.set(o))}_pristine=j(()=>this.pristineReactive());pristineReactive=W(!0);get dirty(){return!this.pristine}get touched(){return De(this.touchedReactive)}set touched(o){De(()=>this.touchedReactive.set(o))}_touched=j(()=>this.touchedReactive());touchedReactive=W(!1);get untouched(){return!this.touched}_events=new ui;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(o){this._assignValidators(o)}setAsyncValidators(o){this._assignAsyncValidators(o)}addValidators(o){this.setValidators(en(o,this._rawValidators))}addAsyncValidators(o){this.setAsyncValidators(en(o,this._rawAsyncValidators))}removeValidators(o){this.setValidators(tn(o,this._rawValidators))}removeAsyncValidators(o){this.setAsyncValidators(tn(o,this._rawAsyncValidators))}hasValidator(o){return Ot(this._rawValidators,o)}hasAsyncValidator(o){return Ot(this._rawAsyncValidators,o)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(o={}){let e=this.touched===!1;this.touched=!0;let i=o.sourceControl??this;o.onlySelf||this._parent?.markAsTouched(pe(P({},o),{sourceControl:i})),e&&o.emitEvent!==!1&&this._events.next(new pt(!0,i))}markAllAsDirty(o={}){this.markAsDirty({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(o))}markAllAsTouched(o={}){this.markAsTouched({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(o))}markAsUntouched(o={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=o.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:i})}),o.onlySelf||this._parent?._updateTouched(o,i),e&&o.emitEvent!==!1&&this._events.next(new pt(!1,i))}markAsDirty(o={}){let e=this.pristine===!0;this.pristine=!1;let i=o.sourceControl??this;o.onlySelf||this._parent?.markAsDirty(pe(P({},o),{sourceControl:i})),e&&o.emitEvent!==!1&&this._events.next(new ut(!1,i))}markAsPristine(o={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=o.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:o.emitEvent})}),o.onlySelf||this._parent?._updatePristine(o,i),e&&o.emitEvent!==!1&&this._events.next(new ut(!0,i))}markAsPending(o={}){this.status=et;let e=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new tt(this.status,e)),this.statusChanges.emit(this.status)),o.onlySelf||this._parent?.markAsPending(pe(P({},o),{sourceControl:e}))}disable(o={}){let e=this._parentMarkedDirty(o.onlySelf);this.status=dt,this.errors=null,this._forEachChild(n=>{n.disable(pe(P({},o),{onlySelf:!0}))}),this._updateValue();let i=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new kt(this.value,i)),this._events.next(new tt(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(pe(P({},o),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(o={}){let e=this._parentMarkedDirty(o.onlySelf);this.status=ct,this._forEachChild(i=>{i.enable(pe(P({},o),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent}),this._updateAncestors(pe(P({},o),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(o,e){o.onlySelf||(this._parent?.updateValueAndValidity(o),o.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(o){this._parent=o}getRawValue(){return this.value}updateValueAndValidity(o={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ct||this.status===et)&&this._runAsyncValidator(i,o.emitEvent)}let e=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new kt(this.value,e)),this._events.next(new tt(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),o.onlySelf||this._parent?.updateValueAndValidity(pe(P({},o),{sourceControl:e}))}_updateTreeValidity(o={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(o)),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?dt:ct}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(o,e){if(this.asyncValidator){this.status=et,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:o!==!1};let i=cn(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:e,shouldHaveEmitted:o})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let o=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,o}return!1}setErrors(o,e={}){this.errors=o,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(o){let e=o;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,n)=>i&&i._find(n),this)}getError(o,e){let i=e?this.get(e):this;return i?.errors?i.errors[o]:null}hasError(o,e){return!!this.getError(o,e)}get root(){let o=this;for(;o._parent;)o=o._parent;return o}_updateControlsErrors(o,e,i){this.status=this._calculateStatus(),o&&this.statusChanges.emit(this.status),(o||i)&&this._events.next(new tt(this.status,e)),this._parent&&this._parent._updateControlsErrors(o,e,i)}_initObservables(){this.valueChanges=new x,this.statusChanges=new x}_calculateStatus(){return this._allControlsDisabled()?dt:this.errors?Vt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(et)?et:this._anyControlsHaveStatus(Vt)?Vt:ct}_anyControlsHaveStatus(o){return this._anyControls(e=>e.status===o)}_anyControlsDirty(){return this._anyControls(o=>o.dirty)}_anyControlsTouched(){return this._anyControls(o=>o.touched)}_updatePristine(o,e){let i=!this._anyControlsDirty(),n=this.pristine!==i;this.pristine=i,o.onlySelf||this._parent?._updatePristine(o,e),n&&this._events.next(new ut(this.pristine,e))}_updateTouched(o={},e){this.touched=this._anyControlsTouched(),this._events.next(new pt(this.touched,e)),o.onlySelf||this._parent?._updateTouched(o,e)}_onDisabledChange=[];_registerOnCollectionChange(o){this._onCollectionChange=o}_setUpdateStrategy(o){At(o)&&o.updateOn!=null&&(this._updateOn=o.updateOn)}_parentMarkedDirty(o){return!o&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(o){return null}_assignValidators(o){this._rawValidators=Array.isArray(o)?o.slice():o,this._composedValidatorFn=wo(this._rawValidators)}_assignAsyncValidators(o){this._rawAsyncValidators=Array.isArray(o)?o.slice():o,this._composedAsyncValidatorFn=Vo(this._rawAsyncValidators)}};var fn=new H("",{factory:()=>ri}),ri="always";function Oo(t,o){return[...o.path,t]}function Do(t,o,e=ri){Fo(t,o),o.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&o.valueAccessor.setDisabledState?.(t.disabled),Ao(t,o),No(t,o),Lo(t,o),ko(t,o)}function nn(t,o){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(o)})}function ko(t,o){if(o.valueAccessor.setDisabledState){let e=i=>{o.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),o._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function Fo(t,o){let e=So(t);o.validator!==null?t.setValidators(Ji(e,o.validator)):typeof e=="function"&&t.setValidators([e]);let i=Mo(t);o.asyncValidator!==null?t.setAsyncValidators(Ji(i,o.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let n=()=>t.updateValueAndValidity();nn(o._rawValidators,n),nn(o._rawAsyncValidators,n)}function Ao(t,o){o.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&gn(t,o)})}function Lo(t,o){o.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&gn(t,o),t.updateOn!=="submit"&&t.markAsTouched()})}function gn(t,o){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),o.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function No(t,o){let e=(i,n)=>{o.valueAccessor.writeValue(i),n&&o.viewToModelUpdate(i)};t.registerOnChange(e),o._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function Bo(t,o){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(o,e.currentValue)}function Po(t){return Object.getPrototypeOf(t.constructor)===fo}function Ro(t,o){if(!o)return null;Array.isArray(o);let e,i,n;return o.forEach(r=>{r.constructor===Ft?e=r:Po(r)?i=r:n=r}),n||i||e||null}function on(t,o){let e=t.indexOf(o);e>-1&&t.splice(e,1)}function rn(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var zo=class extends oi{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(o=null,e,i){super(To(e),Eo(i,e)),this._applyFormState(o),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),At(e)&&(e.nonNullable||e.initialValueIsDefault)&&(rn(o)?this.defaultValue=o.value:this.defaultValue=o)}setValue(o,e={}){this.value=this._pendingValue=o,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(o,e={}){this.setValue(o,e)}reset(o=this.defaultValue,e={}){this._applyFormState(o),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new ni(this))}_updateValue(){}_anyControls(o){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(o){this._onChange.push(o)}_unregisterOnChange(o){on(this._onChange,o)}registerOnDisabledChange(o){this._onDisabledChange.push(o)}_unregisterOnDisabledChange(o){on(this._onDisabledChange,o)}_forEachChild(o){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(o){rn(o)?(this.value=this._pendingValue=o.value,o.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=o}};var Ho={provide:Ne,useExisting:Oe(()=>it)},sn=Promise.resolve(),it=(()=>{class t extends Ne{_changeDetectorRef;callSetDisabledState;control=new zo;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new x;constructor(e,i,n,r,s,d){super(),this._changeDetectorRef=s,this.callSetDisabledState=d,this._parent=e,this._setValidators(i),this._setAsyncValidators(n),this.valueAccessor=Ro(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Bo(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Do(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){sn.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,n=i!==0&&S(i);sn.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Oo(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(q(ti,9),q(yo,10),q(bo,10),q(ze,10),q(xi,8),q(fn,8))};static \u0275dir=fe({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[K([Ho]),T,fi]})}return t})();var jo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=Z({})}return t})();var mt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:fn,useValue:e.callSetDisabledState??ri}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=Z({imports:[jo]})}return t})();var vn=`
1
+ import{a as Zi,b as Yi}from"./chunk-UGEECDPV.js";import{a as Xi}from"./chunk-TG6IWVEC.js";import{$a as De,$b as Ge,A as W,Ac as Ee,B as Be,Ba as Se,Bc as U,C as fi,Ca as ot,Cc as at,D as M,Da as vi,Dc as ne,E as Ut,Ea as Me,Fa as h,Ga as be,Gc as oe,Ha as Re,Hc as me,I as c,Ia as yt,Ib as Xe,Ic as zi,Jb as st,Kb as Si,Kc as Hi,L as qt,La as yi,Lb as Mi,Lc as ji,M as q,Ma as bi,Mc as $i,Na as Ci,Nb as Ti,Nc as I,O as N,Ob as wi,Oc as _e,P as X,Pb as Ei,Q as fe,Qb as Zt,R as ee,Ra as K,Rc as wt,S as T,Sa as je,Sb as Je,Sc as Ve,T as u,Ta as Q,Tb as we,Tc as Gi,U as gi,Ua as Te,Uc as Ui,Va as bt,Vb as Vi,Vc as qi,W as w,Wb as Oi,Wc as Ki,Xb as $e,Xc as We,Z as ae,Zb as Di,Zc as Et,_ as ce,_a as de,_c as Wi,ab as j,b as ui,bb as ke,bc as Yt,ca as l,cb as _,cc as ki,da as m,dc as Ue,e as pi,ea as y,ec as St,ed as Qi,fa as te,g as hi,ga as Kt,h as mi,ha as Wt,hb as xi,hc as Xt,ia as ye,ib as S,ja as O,jb as Fe,jc as Fi,k as Oe,ka as D,kb as Ii,kc as Le,l as J,la as R,lb as Qt,lc as qe,m as Z,mb as Ct,mc as Ke,n as H,nb as xt,nc as Ai,oa as ie,ob as Ae,oc as lt,p as b,pa as _i,pb as It,pc as Li,qa as E,qb as Ce,r as F,ra as a,rb as se,rc as Ni,s as A,sa as ge,sb as rt,sc as Jt,t as Y,ta as he,tc as Mt,ua as Ie,va as Pe,wa as f,wc as Bi,x,xa as g,xc as Tt,y as Ye,yc as Pi,zc as Ri}from"./chunk-7PFTODKS.js";import{a as P,b as pe}from"./chunk-Q7L6LLAK.js";var ln=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(q(qt),q(Ut))};static \u0275dir=fe({type:t})}return t})(),fo=(()=>{class t extends ln{static \u0275fac=(()=>{let e;return function(n){return(e||(e=M(t)))(n||t)}})();static \u0275dir=fe({type:t,features:[T]})}return t})(),ze=new H("");var go={provide:ze,useExisting:Oe(()=>Ft),multi:!0};function _o(){let t=Qt()?Qt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var vo=new H(""),Ft=(()=>{class t extends ln{_compositionMode;_composing=!1;constructor(e,i,n){super(e,i),this._compositionMode=n,this._compositionMode==null&&(this._compositionMode=!_o())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||t)(q(qt),q(Ut),q(vo,8))};static \u0275dir=fe({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,n){i&1&&E("input",function(s){return n._handleInput(s.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(s){return n._compositionEnd(s.target.value)})},standalone:!1,features:[K([go]),T]})}return t})();var yo=new H(""),bo=new H("");function an(t){return t!=null}function cn(t){return gi(t)?pi(t):t}function dn(t){let o={};return t.forEach(e=>{o=e!=null?P(P({},o),e):o}),Object.keys(o).length===0?null:o}function un(t,o){return o.map(e=>e(t))}function Co(t){return!t.validate}function pn(t){return t.map(o=>Co(o)?o:e=>o.validate(e))}function xo(t){if(!t)return null;let o=t.filter(an);return o.length==0?null:function(e){return dn(un(e,o))}}function hn(t){return t!=null?xo(pn(t)):null}function Io(t){if(!t)return null;let o=t.filter(an);return o.length==0?null:function(e){let i=un(e,o).map(cn);return mi(i).pipe(hi(dn))}}function mn(t){return t!=null?Io(pn(t)):null}function Ji(t,o){return t===null?[o]:Array.isArray(t)?[...t,o]:[t,o]}function So(t){return t._rawValidators}function Mo(t){return t._rawAsyncValidators}function ei(t){return t?Array.isArray(t)?t:[t]:[]}function Ot(t,o){return Array.isArray(t)?t.includes(o):t===o}function en(t,o){let e=ei(o);return ei(t).forEach(n=>{Ot(e,n)||e.push(n)}),e}function tn(t,o){return ei(o).filter(e=>!Ot(t,e))}var Dt=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(o){this._rawValidators=o||[],this._composedValidatorFn=hn(this._rawValidators)}_setAsyncValidators(o){this._rawAsyncValidators=o||[],this._composedAsyncValidatorFn=mn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(o){this._onDestroyCallbacks.push(o)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(o=>o()),this._onDestroyCallbacks=[]}reset(o=void 0){this.control?.reset(o)}hasError(o,e){return this.control?this.control.hasError(o,e):!1}getError(o,e){return this.control?this.control.getError(o,e):null}},ti=class extends Dt{name;get formDirective(){return null}get path(){return null}},Ne=class extends Dt{_parent=null;name=null;valueAccessor=null},ii=class{_cd;constructor(o){this._cd=o}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var ht=(()=>{class t extends ii{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(q(Ne,2))};static \u0275dir=fe({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,n){i&2&&vi("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},standalone:!1,features:[T]})}return t})();var ct="VALID",Vt="INVALID",et="PENDING",dt="DISABLED",Qe=class{},kt=class extends Qe{value;source;constructor(o,e){super(),this.value=o,this.source=e}},ut=class extends Qe{pristine;source;constructor(o,e){super(),this.pristine=o,this.source=e}},pt=class extends Qe{touched;source;constructor(o,e){super(),this.touched=o,this.source=e}},tt=class extends Qe{status;source;constructor(o,e){super(),this.status=o,this.source=e}};var ni=class extends Qe{source;constructor(o){super(),this.source=o}};function To(t){return(At(t)?t.validators:t)||null}function wo(t){return Array.isArray(t)?hn(t):t||null}function Eo(t,o){return(At(o)?o.asyncValidators:t)||null}function Vo(t){return Array.isArray(t)?mn(t):t||null}function At(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var oi=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(o,e){this._assignValidators(o),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(o){this._rawValidators=this._composedValidatorFn=o}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(o){this._rawAsyncValidators=this._composedAsyncValidatorFn=o}get parent(){return this._parent}get status(){return De(this.statusReactive)}set status(o){De(()=>this.statusReactive.set(o))}_status=j(()=>this.statusReactive());statusReactive=W(void 0);get valid(){return this.status===ct}get invalid(){return this.status===Vt}get pending(){return this.status===et}get disabled(){return this.status===dt}get enabled(){return this.status!==dt}errors;get pristine(){return De(this.pristineReactive)}set pristine(o){De(()=>this.pristineReactive.set(o))}_pristine=j(()=>this.pristineReactive());pristineReactive=W(!0);get dirty(){return!this.pristine}get touched(){return De(this.touchedReactive)}set touched(o){De(()=>this.touchedReactive.set(o))}_touched=j(()=>this.touchedReactive());touchedReactive=W(!1);get untouched(){return!this.touched}_events=new ui;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(o){this._assignValidators(o)}setAsyncValidators(o){this._assignAsyncValidators(o)}addValidators(o){this.setValidators(en(o,this._rawValidators))}addAsyncValidators(o){this.setAsyncValidators(en(o,this._rawAsyncValidators))}removeValidators(o){this.setValidators(tn(o,this._rawValidators))}removeAsyncValidators(o){this.setAsyncValidators(tn(o,this._rawAsyncValidators))}hasValidator(o){return Ot(this._rawValidators,o)}hasAsyncValidator(o){return Ot(this._rawAsyncValidators,o)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(o={}){let e=this.touched===!1;this.touched=!0;let i=o.sourceControl??this;o.onlySelf||this._parent?.markAsTouched(pe(P({},o),{sourceControl:i})),e&&o.emitEvent!==!1&&this._events.next(new pt(!0,i))}markAllAsDirty(o={}){this.markAsDirty({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(o))}markAllAsTouched(o={}){this.markAsTouched({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(o))}markAsUntouched(o={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=o.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:i})}),o.onlySelf||this._parent?._updateTouched(o,i),e&&o.emitEvent!==!1&&this._events.next(new pt(!1,i))}markAsDirty(o={}){let e=this.pristine===!0;this.pristine=!1;let i=o.sourceControl??this;o.onlySelf||this._parent?.markAsDirty(pe(P({},o),{sourceControl:i})),e&&o.emitEvent!==!1&&this._events.next(new ut(!1,i))}markAsPristine(o={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=o.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:o.emitEvent})}),o.onlySelf||this._parent?._updatePristine(o,i),e&&o.emitEvent!==!1&&this._events.next(new ut(!0,i))}markAsPending(o={}){this.status=et;let e=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new tt(this.status,e)),this.statusChanges.emit(this.status)),o.onlySelf||this._parent?.markAsPending(pe(P({},o),{sourceControl:e}))}disable(o={}){let e=this._parentMarkedDirty(o.onlySelf);this.status=dt,this.errors=null,this._forEachChild(n=>{n.disable(pe(P({},o),{onlySelf:!0}))}),this._updateValue();let i=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new kt(this.value,i)),this._events.next(new tt(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(pe(P({},o),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(o={}){let e=this._parentMarkedDirty(o.onlySelf);this.status=ct,this._forEachChild(i=>{i.enable(pe(P({},o),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent}),this._updateAncestors(pe(P({},o),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(o,e){o.onlySelf||(this._parent?.updateValueAndValidity(o),o.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(o){this._parent=o}getRawValue(){return this.value}updateValueAndValidity(o={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ct||this.status===et)&&this._runAsyncValidator(i,o.emitEvent)}let e=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new kt(this.value,e)),this._events.next(new tt(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),o.onlySelf||this._parent?.updateValueAndValidity(pe(P({},o),{sourceControl:e}))}_updateTreeValidity(o={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(o)),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?dt:ct}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(o,e){if(this.asyncValidator){this.status=et,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:o!==!1};let i=cn(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:e,shouldHaveEmitted:o})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let o=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,o}return!1}setErrors(o,e={}){this.errors=o,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(o){let e=o;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,n)=>i&&i._find(n),this)}getError(o,e){let i=e?this.get(e):this;return i?.errors?i.errors[o]:null}hasError(o,e){return!!this.getError(o,e)}get root(){let o=this;for(;o._parent;)o=o._parent;return o}_updateControlsErrors(o,e,i){this.status=this._calculateStatus(),o&&this.statusChanges.emit(this.status),(o||i)&&this._events.next(new tt(this.status,e)),this._parent&&this._parent._updateControlsErrors(o,e,i)}_initObservables(){this.valueChanges=new x,this.statusChanges=new x}_calculateStatus(){return this._allControlsDisabled()?dt:this.errors?Vt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(et)?et:this._anyControlsHaveStatus(Vt)?Vt:ct}_anyControlsHaveStatus(o){return this._anyControls(e=>e.status===o)}_anyControlsDirty(){return this._anyControls(o=>o.dirty)}_anyControlsTouched(){return this._anyControls(o=>o.touched)}_updatePristine(o,e){let i=!this._anyControlsDirty(),n=this.pristine!==i;this.pristine=i,o.onlySelf||this._parent?._updatePristine(o,e),n&&this._events.next(new ut(this.pristine,e))}_updateTouched(o={},e){this.touched=this._anyControlsTouched(),this._events.next(new pt(this.touched,e)),o.onlySelf||this._parent?._updateTouched(o,e)}_onDisabledChange=[];_registerOnCollectionChange(o){this._onCollectionChange=o}_setUpdateStrategy(o){At(o)&&o.updateOn!=null&&(this._updateOn=o.updateOn)}_parentMarkedDirty(o){return!o&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(o){return null}_assignValidators(o){this._rawValidators=Array.isArray(o)?o.slice():o,this._composedValidatorFn=wo(this._rawValidators)}_assignAsyncValidators(o){this._rawAsyncValidators=Array.isArray(o)?o.slice():o,this._composedAsyncValidatorFn=Vo(this._rawAsyncValidators)}};var fn=new H("",{factory:()=>ri}),ri="always";function Oo(t,o){return[...o.path,t]}function Do(t,o,e=ri){Fo(t,o),o.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&o.valueAccessor.setDisabledState?.(t.disabled),Ao(t,o),No(t,o),Lo(t,o),ko(t,o)}function nn(t,o){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(o)})}function ko(t,o){if(o.valueAccessor.setDisabledState){let e=i=>{o.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),o._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function Fo(t,o){let e=So(t);o.validator!==null?t.setValidators(Ji(e,o.validator)):typeof e=="function"&&t.setValidators([e]);let i=Mo(t);o.asyncValidator!==null?t.setAsyncValidators(Ji(i,o.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let n=()=>t.updateValueAndValidity();nn(o._rawValidators,n),nn(o._rawAsyncValidators,n)}function Ao(t,o){o.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&gn(t,o)})}function Lo(t,o){o.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&gn(t,o),t.updateOn!=="submit"&&t.markAsTouched()})}function gn(t,o){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),o.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function No(t,o){let e=(i,n)=>{o.valueAccessor.writeValue(i),n&&o.viewToModelUpdate(i)};t.registerOnChange(e),o._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function Bo(t,o){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(o,e.currentValue)}function Po(t){return Object.getPrototypeOf(t.constructor)===fo}function Ro(t,o){if(!o)return null;Array.isArray(o);let e,i,n;return o.forEach(r=>{r.constructor===Ft?e=r:Po(r)?i=r:n=r}),n||i||e||null}function on(t,o){let e=t.indexOf(o);e>-1&&t.splice(e,1)}function rn(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var zo=class extends oi{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(o=null,e,i){super(To(e),Eo(i,e)),this._applyFormState(o),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),At(e)&&(e.nonNullable||e.initialValueIsDefault)&&(rn(o)?this.defaultValue=o.value:this.defaultValue=o)}setValue(o,e={}){this.value=this._pendingValue=o,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(o,e={}){this.setValue(o,e)}reset(o=this.defaultValue,e={}){this._applyFormState(o),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new ni(this))}_updateValue(){}_anyControls(o){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(o){this._onChange.push(o)}_unregisterOnChange(o){on(this._onChange,o)}registerOnDisabledChange(o){this._onDisabledChange.push(o)}_unregisterOnDisabledChange(o){on(this._onDisabledChange,o)}_forEachChild(o){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(o){rn(o)?(this.value=this._pendingValue=o.value,o.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=o}};var Ho={provide:Ne,useExisting:Oe(()=>it)},sn=Promise.resolve(),it=(()=>{class t extends Ne{_changeDetectorRef;callSetDisabledState;control=new zo;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new x;constructor(e,i,n,r,s,d){super(),this._changeDetectorRef=s,this.callSetDisabledState=d,this._parent=e,this._setValidators(i),this._setAsyncValidators(n),this.valueAccessor=Ro(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Bo(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Do(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){sn.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,n=i!==0&&S(i);sn.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Oo(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(q(ti,9),q(yo,10),q(bo,10),q(ze,10),q(xi,8),q(fn,8))};static \u0275dir=fe({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[K([Ho]),T,fi]})}return t})();var jo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=Z({})}return t})();var mt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:fn,useValue:e.callSetDisabledState??ri}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=X({type:t});static \u0275inj=Z({imports:[jo]})}return t})();var vn=`
2
2
  .p-iconfield {
3
3
  position: relative;
4
4
  display: block;
@@ -1,4 +1,4 @@
1
- import{a as Qn,b as At,c as Yn,d as qe,e as Ae,f as Nt,g as Kt,h as $t,i as ot,j as ti,k as ni,l as rt,m as ii,n as lt,o as ai,p as oi,q as st,r as ri,s as Gt,t as pn,u as li,w as si}from"./chunk-TEPC3SFH.js";import{b as ei}from"./chunk-G6SL4UFD.js";import{a as ci,b as di}from"./chunk-DOJURY6T.js";import{a as U,b as Wn,c as at,d as Zn}from"./chunk-ZF7H74JY.js";import{$b as On,$c as Qe,A as Ne,Ac as le,B as Tn,Ba as Ie,Bc as $n,Ca as Pe,Cb as Bn,Cc as sn,D as S,Da as Jt,Dc as Pt,Ea as Ee,Ec as Lt,Fa as g,G as kn,Ga as R,Ha as Y,Hb as Be,Hc as pe,I as c,Ia as ne,Ib as en,Ic as Q,Ja as Dn,Jc as xe,Kc as ye,La as ft,M as Ce,Ma as _t,Na as gt,Nc as fe,O as E,Ob as tn,Oc as De,P as ge,Pb as nn,Pc as $,Q as Ft,Qb as Vn,Qc as Gn,R as be,Ra as se,Rb as Rn,Rc as zt,S as M,Sa as Mn,Sc as cn,T as p,Ta as j,Tb as an,Tc as je,Ua as Se,Uc as K,Vc as Me,W as w,Wa as Xt,Wb as Le,Wc as Un,X as Bt,Xa as Ot,Xb as ae,Xc as jn,Y as Vt,Ya as bt,Yb as Ue,Yc as qn,Z as oe,Za as En,Zb as on,Zc as G,_ as re,_a as ie,_b as vt,_c as dn,aa as In,ab as me,ad as Tt,b as nt,ba as Sn,bc as xt,bd as Ht,ca as r,cb as X,cc as Pn,da as u,ea as m,ec as Ln,fa as I,fd as Jn,ga as ee,gc as zn,gd as Xn,ha as te,hb as Fn,ia as H,ib as C,ja as P,jb as Z,jc as An,k as Re,ka as L,l as ce,la as F,m as _e,mb as $e,mc as Hn,n as ue,nb as Ge,nc as wt,oa as N,ob as we,p as A,pa as de,pb as Ke,pc as rn,qa as k,qb as ve,qc as Nn,r as f,ra as s,rb as he,rc as it,s as _,sa as Rt,sb as yt,sc as ze,t as T,ta as ht,tc as Ze,u as Et,ua as Te,va as Oe,vc as ln,wa as y,x as D,xa as v,xc as Ct,y as We,yc as Kn}from"./chunk-AVRC55YV.js";import{a as ke,b as tt}from"./chunk-Q7L6LLAK.js";var pi=`
1
+ import{a as Qn,b as At,c as Yn,d as qe,e as Ae,f as Nt,g as Kt,h as $t,i as ot,j as ti,k as ni,l as rt,m as ii,n as lt,o as ai,p as oi,q as st,r as ri,s as Gt,t as pn,u as li,w as si}from"./chunk-KPEISNOV.js";import{b as ei}from"./chunk-UGEECDPV.js";import{a as ci,b as di}from"./chunk-TGJQE3TH.js";import"./chunk-TG6IWVEC.js";import{A as Ne,Ac as pe,B as Tn,Ba as Ie,Bc as Q,Ca as Pe,Cb as Bn,Cc as xe,D as S,Da as Jt,Dc as ye,Ea as Ee,Fa as g,G as kn,Ga as R,Gc as fe,Ha as Y,Hb as Be,Hc as De,I as c,Ia as ne,Ib as en,Ic as $,Ja as Dn,Jc as Gn,Kc as zt,La as ft,Lb as tn,Lc as cn,M as Ce,Ma as _t,Mb as nn,Mc as je,Na as gt,Nb as Vn,Nc as K,O as E,Ob as Rn,Oc as Me,P as ge,Pc as Un,Q as Ft,Qb as an,Qc as jn,R as be,Ra as se,Rb as Le,Rc as qn,S as M,Sa as Mn,Sb as ae,Sc as G,T as p,Ta as j,Tb as Ue,Tc as dn,Ua as Se,Ub as on,Uc as Qe,Vb as vt,Vc as Tt,W as w,Wa as Xt,Wb as On,Wc as Ht,X as Bt,Xa as Ot,Xc as U,Y as Vt,Ya as bt,Yb as xt,Yc as Wn,Z as oe,Za as En,Zb as Pn,Zc as at,_ as re,_a as ie,_b as Ln,_c as Zn,aa as In,ab as me,ac as zn,b as nt,ba as Sn,ca as r,cb as X,da as u,dc as An,dd as Jn,ea as m,ed as Xn,fa as I,fc as Hn,ga as ee,gc as wt,ha as te,hb as Fn,ia as H,ib as C,ic as rn,ja as P,jb as Z,jc as Nn,k as Re,ka as L,kc as it,l as ce,la as F,lc as ze,m as _e,mb as $e,mc as Ze,n as ue,nb as Ge,oa as N,ob as we,oc as ln,p as A,pa as de,pb as Ke,qa as k,qb as ve,qc as Ct,r as f,ra as s,rb as he,rc as Kn,s as _,sa as Rt,sb as yt,t as T,ta as ht,tc as le,u as Et,ua as Te,uc as $n,va as Oe,vc as sn,wa as y,wc as Pt,x as D,xa as v,xc as Lt,y as We}from"./chunk-7PFTODKS.js";import{a as ke,b as tt}from"./chunk-Q7L6LLAK.js";var pi=`
2
2
  .p-datatable {
3
3
  position: relative;
4
4
  display: block;
@@ -0,0 +1,54 @@
1
+ import{Ac as ie,Ba as $,Bc as T,Cc as oe,D as h,Dc as re,Ea as q,Fa as d,Ga as G,Gc as ce,H as j,Ha as U,Hc as ae,I as a,Nc as v,O as x,P as z,R,Ra as J,S as w,Sc as se,T as m,W as _,_a as W,ca as c,da as f,ea as g,fa as K,ga as E,ha as B,ia as V,ib as A,ja as M,ka as S,l as F,m as L,mb as X,n as N,oa as u,ob as Y,p as b,pa as O,qa as C,qb as ee,r as p,ra as r,rb as te,s as l,sa as Q,t as I,ta as H,tc as ne,ua as Z,wa as P,x as k,xa as D}from"./chunk-7PFTODKS.js";var fe=["data-p-icon","times-circle"],pe=(()=>{class t extends se{pathId;onInit(){this.pathId="url(#"+ne()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=h(t)))(i||t)}})();static \u0275cmp=x({type:t,selectors:[["","data-p-icon","times-circle"]],features:[w],attrs:fe,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(I(),E(0,"g"),V(1,"path",0),B(),E(2,"defs")(3,"clipPath",1),V(4,"rect",2),B()()),n&2&&(_("clip-path",i.pathId),a(3),O("id",i.pathId))},encapsulation:2})}return t})();var le=`
2
+ .p-chip {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ background: dt('chip.background');
6
+ color: dt('chip.color');
7
+ border-radius: dt('chip.border.radius');
8
+ padding-block: dt('chip.padding.y');
9
+ padding-inline: dt('chip.padding.x');
10
+ gap: dt('chip.gap');
11
+ }
12
+
13
+ .p-chip-icon {
14
+ color: dt('chip.icon.color');
15
+ font-size: dt('chip.icon.size');
16
+ width: dt('chip.icon.size');
17
+ height: dt('chip.icon.size');
18
+ }
19
+
20
+ .p-chip-image {
21
+ border-radius: 50%;
22
+ width: dt('chip.image.width');
23
+ height: dt('chip.image.height');
24
+ margin-inline-start: calc(-1 * dt('chip.padding.y'));
25
+ }
26
+
27
+ .p-chip:has(.p-chip-remove-icon) {
28
+ padding-inline-end: dt('chip.padding.y');
29
+ }
30
+
31
+ .p-chip:has(.p-chip-image) {
32
+ padding-block-start: calc(dt('chip.padding.y') / 2);
33
+ padding-block-end: calc(dt('chip.padding.y') / 2);
34
+ }
35
+
36
+ .p-chip-remove-icon {
37
+ cursor: pointer;
38
+ font-size: dt('chip.remove.icon.size');
39
+ width: dt('chip.remove.icon.size');
40
+ height: dt('chip.remove.icon.size');
41
+ color: dt('chip.remove.icon.color');
42
+ border-radius: 50%;
43
+ transition:
44
+ outline-color dt('chip.transition.duration'),
45
+ box-shadow dt('chip.transition.duration');
46
+ outline-color: transparent;
47
+ }
48
+
49
+ .p-chip-remove-icon:focus-visible {
50
+ box-shadow: dt('chip.remove.icon.focus.ring.shadow');
51
+ outline: dt('chip.remove.icon.focus.ring.width') dt('chip.remove.icon.focus.ring.style') dt('chip.remove.icon.focus.ring.color');
52
+ outline-offset: dt('chip.remove.icon.focus.ring.offset');
53
+ }
54
+ `;var ge=["removeicon"],he=["*"];function ue(t,s){if(t&1){let e=u();f(0,"img",4),C("error",function(i){p(e);let o=r();return l(o.imageError(i))}),g()}if(t&2){let e=r();d(e.cx("image")),c("pBind",e.ptm("image"))("src",e.image,j)("alt",e.alt)}}function Ce(t,s){if(t&1&&K(0,"span",6),t&2){let e=r(2);d(e.icon),c("pBind",e.ptm("icon"))("ngClass",e.cx("icon"))}}function ve(t,s){if(t&1&&m(0,Ce,1,4,"span",5),t&2){let e=r();c("ngIf",e.icon)}}function ye(t,s){if(t&1&&(f(0,"div",7),G(1),g()),t&2){let e=r();d(e.cx("label")),c("pBind",e.ptm("label")),a(),U(e.label)}}function be(t,s){if(t&1){let e=u();f(0,"span",11),C("click",function(i){p(e);let o=r(3);return l(o.close(i))})("keydown",function(i){p(e);let o=r(3);return l(o.onKeydown(i))}),g()}if(t&2){let e=r(3);d(e.removeIcon),c("pBind",e.ptm("removeIcon"))("ngClass",e.cx("removeIcon")),_("tabindex",e.disabled?-1:0)("aria-label",e.removeAriaLabel)}}function Ie(t,s){if(t&1){let e=u();I(),f(0,"svg",12),C("click",function(i){p(e);let o=r(3);return l(o.close(i))})("keydown",function(i){p(e);let o=r(3);return l(o.onKeydown(i))}),g()}if(t&2){let e=r(3);d(e.cx("removeIcon")),c("pBind",e.ptm("removeIcon")),_("tabindex",e.disabled?-1:0)("aria-label",e.removeAriaLabel)}}function xe(t,s){if(t&1&&(M(0),m(1,be,1,6,"span",9)(2,Ie,1,5,"svg",10),S()),t&2){let e=r(2);a(),c("ngIf",e.removeIcon),a(),c("ngIf",!e.removeIcon)}}function we(t,s){}function Te(t,s){t&1&&m(0,we,0,0,"ng-template")}function ke(t,s){if(t&1){let e=u();f(0,"span",13),C("click",function(i){p(e);let o=r(2);return l(o.close(i))})("keydown",function(i){p(e);let o=r(2);return l(o.onKeydown(i))}),m(1,Te,1,0,null,14),g()}if(t&2){let e=r(2);d(e.cx("removeIcon")),c("pBind",e.ptm("removeIcon")),_("tabindex",e.disabled?-1:0)("aria-label",e.removeAriaLabel),a(),c("ngTemplateOutlet",e.removeIconTemplate||e._removeIconTemplate)}}function Ee(t,s){if(t&1&&(M(0),m(1,xe,3,2,"ng-container",3)(2,ke,2,6,"span",8),S()),t&2){let e=r();a(),c("ngIf",!e.removeIconTemplate&&!e._removeIconTemplate),a(),c("ngIf",e.removeIconTemplate||e._removeIconTemplate)}}var Be={root:({instance:t})=>({display:!t.visible&&"none"})},Ve={root:({instance:t})=>["p-chip p-component",{"p-disabled":t.disabled}],image:"p-chip-image",icon:"p-chip-icon",label:"p-chip-label",removeIcon:"p-chip-remove-icon"},de=(()=>{class t extends re{name="chip";style=le;classes=Ve;inlineStyles=Be;static \u0275fac=(()=>{let e;return function(i){return(e||(e=h(t)))(i||t)}})();static \u0275prov=F({token:t,factory:t.\u0275fac})}return t})();var me=new N("CHIP_INSTANCE"),Me=(()=>{class t extends ae{componentName="Chip";$pcChip=b(me,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=b(v,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}label;icon;image;alt;styleClass;disabled=!1;removable=!1;removeIcon;onRemove=new k;onImageError=new k;visible=!0;get removeAriaLabel(){return this.config.getTranslation(oe.ARIA).removeLabel}get chipProps(){return this._chipProps}set chipProps(e){this._chipProps=e,e&&typeof e=="object"&&Object.entries(e).forEach(([n,i])=>this[`_${n}`]!==i&&(this[`_${n}`]=i))}_chipProps;_componentStyle=b(de);removeIconTemplate;templates;_removeIconTemplate;onAfterContentInit(){this.templates.forEach(e=>{e.getType()==="removeicon"?this._removeIconTemplate=e.template:this._removeIconTemplate=e.template})}onChanges(e){if(e.chipProps&&e.chipProps.currentValue){let{currentValue:n}=e.chipProps;n.label!==void 0&&(this.label=n.label),n.icon!==void 0&&(this.icon=n.icon),n.image!==void 0&&(this.image=n.image),n.alt!==void 0&&(this.alt=n.alt),n.styleClass!==void 0&&(this.styleClass=n.styleClass),n.removable!==void 0&&(this.removable=n.removable),n.removeIcon!==void 0&&(this.removeIcon=n.removeIcon)}}close(e){this.visible=!1,this.onRemove.emit(e)}onKeydown(e){(e.key==="Enter"||e.key==="Backspace")&&this.close(e)}imageError(e){this.onImageError.emit(e)}get dataP(){return this.cn({removable:this.removable})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=h(t)))(i||t)}})();static \u0275cmp=x({type:t,selectors:[["p-chip"]],contentQueries:function(n,i,o){if(n&1&&Z(o,ge,4)(o,ie,4),n&2){let y;P(y=D())&&(i.removeIconTemplate=y.first),P(y=D())&&(i.templates=y)}},hostVars:6,hostBindings:function(n,i){n&2&&(_("aria-label",i.label)("data-p",i.dataP),q(i.sx("root")),d(i.cn(i.cx("root"),i.styleClass)))},inputs:{label:"label",icon:"icon",image:"image",alt:"alt",styleClass:"styleClass",disabled:[2,"disabled","disabled",A],removable:[2,"removable","removable",A],removeIcon:"removeIcon",chipProps:"chipProps"},outputs:{onRemove:"onRemove",onImageError:"onImageError"},features:[J([de,{provide:me,useExisting:t},{provide:ce,useExisting:t}]),R([v]),w],ngContentSelectors:he,decls:6,vars:4,consts:[["iconTemplate",""],[3,"pBind","class","src","alt","error",4,"ngIf","ngIfElse"],[3,"pBind","class",4,"ngIf"],[4,"ngIf"],[3,"error","pBind","src","alt"],[3,"pBind","class","ngClass",4,"ngIf"],[3,"pBind","ngClass"],[3,"pBind"],["role","button",3,"pBind","class","click","keydown",4,"ngIf"],["role","button",3,"pBind","class","ngClass","click","keydown",4,"ngIf"],["data-p-icon","times-circle","role","button",3,"pBind","class","click","keydown",4,"ngIf"],["role","button",3,"click","keydown","pBind","ngClass"],["data-p-icon","times-circle","role","button",3,"click","keydown","pBind"],["role","button",3,"click","keydown","pBind"],[4,"ngTemplateOutlet"]],template:function(n,i){if(n&1&&(Q(),H(0),m(1,ue,1,5,"img",1)(2,ve,1,1,"ng-template",null,0,W)(4,ye,2,4,"div",2)(5,Ee,3,2,"ng-container",3)),n&2){let o=$(3);a(),c("ngIf",i.image)("ngIfElse",o),a(3),c("ngIf",i.label),a(),c("ngIf",i.removable)}},dependencies:[te,X,Y,ee,pe,T,v],encapsulation:2,changeDetection:0})}return t})(),et=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=z({type:t});static \u0275inj=L({imports:[Me,T,T]})}return t})();export{Me as a,et as b};
@@ -1,4 +1,4 @@
1
- import{D as m,Fa as c,Ga as F,Ha as j,Hc as q,I as i,Ic as u,Kc as G,Nc as H,O as I,Oc as $,P as k,R as x,Ra as z,S as B,T as r,Uc as s,W as M,ca as a,da as f,ea as y,fa as w,ib as P,ja as D,ka as N,l as b,m as h,mb as Q,n as C,ob as O,p as l,qb as R,ra as g,rb as V,sa as S,ta as E,ua as A,wa as v,xa as T}from"./chunk-AVRC55YV.js";var J=`
1
+ import{Ac as q,Bc as u,D as m,Dc as G,Fa as c,Ga as F,Gc as H,Ha as j,Hc as $,I as i,Nc as s,O as I,P as k,R as x,Ra as z,S as B,T as r,W as M,ca as a,da as f,ea as y,fa as w,ib as P,ja as D,ka as N,l as b,m as h,mb as Q,n as C,ob as O,p as l,qb as R,ra as g,rb as V,sa as S,ta as E,ua as A,wa as v,xa as T}from"./chunk-7PFTODKS.js";var J=`
2
2
  .p-tag {
3
3
  display: inline-flex;
4
4
  align-items: center;
@@ -1 +1 @@
1
- import{A as a,ab as h,gd as u,l as r,p as c}from"./chunk-AVRC55YV.js";var K=["stable","experimental","deprecated"],f=class n{kindRegistry=c(u);searchText=a("");selectedKinds=a([]);selectedStabilities=a([]);hasIssuesOnly=a(!1);isActive=h(()=>this.searchText().trim().length>0||this.selectedKinds().length>0||this.selectedStabilities().length>0||this.hasIssuesOnly());setSearchText(e){this.searchText.set(e)}setKinds(e){this.selectedKinds.set([...e])}toggleKind(e){let t=this.selectedKinds(),d=this.kindRegistry.kinds().map(l=>l.name),s=t.length===0?new Set(d):new Set(t);s.has(e)?s.delete(e):s.add(e),s.size===d.length?this.selectedKinds.set([]):this.selectedKinds.set([...s])}isKindActive(e){let t=this.selectedKinds();return t.length===0?!0:t.includes(e)}setStabilities(e){this.selectedStabilities.set([...e])}setHasIssuesOnly(e){this.hasIssuesOnly.set(e)}reset(){this.searchText.set(""),this.selectedKinds.set([]),this.selectedStabilities.set([]),this.hasIssuesOnly.set(!1)}apply(e){let t=this.searchText().trim().toLowerCase(),d=this.selectedKinds(),s=this.selectedStabilities(),l=this.hasIssuesOnly();return e.filter(i=>{if(t&&![i.path,i.frontmatter.name??"",i.frontmatter.description??""].join(" ").toLowerCase().includes(t)||d.length>0&&!d.includes(i.kind))return!1;if(s.length>0){let o=i.frontmatter.metadata?.stability;if(!o||!s.includes(o))return!1}return!(l&&!y(i))})}static \u0275fac=function(t){return new(t||n)};static \u0275prov=r({token:n,factory:n.\u0275fac,providedIn:"root"})};function y(n){let e=n.frontmatter.metadata;return e?e.stability==="deprecated"||!!e.supersededBy:!1}export{K as a,f as b};
1
+ import{A as a,ab as h,ed as u,l as r,p as c}from"./chunk-7PFTODKS.js";var K=["stable","experimental","deprecated"],f=class n{kindRegistry=c(u);searchText=a("");selectedKinds=a([]);selectedStabilities=a([]);hasIssuesOnly=a(!1);isActive=h(()=>this.searchText().trim().length>0||this.selectedKinds().length>0||this.selectedStabilities().length>0||this.hasIssuesOnly());setSearchText(e){this.searchText.set(e)}setKinds(e){this.selectedKinds.set([...e])}toggleKind(e){let t=this.selectedKinds(),d=this.kindRegistry.kinds().map(l=>l.name),s=t.length===0?new Set(d):new Set(t);s.has(e)?s.delete(e):s.add(e),s.size===d.length?this.selectedKinds.set([]):this.selectedKinds.set([...s])}isKindActive(e){let t=this.selectedKinds();return t.length===0?!0:t.includes(e)}setStabilities(e){this.selectedStabilities.set([...e])}setHasIssuesOnly(e){this.hasIssuesOnly.set(e)}reset(){this.searchText.set(""),this.selectedKinds.set([]),this.selectedStabilities.set([]),this.hasIssuesOnly.set(!1)}apply(e){let t=this.searchText().trim().toLowerCase(),d=this.selectedKinds(),s=this.selectedStabilities(),l=this.hasIssuesOnly();return e.filter(i=>{if(t&&![i.path,i.frontmatter.name??"",i.frontmatter.description??""].join(" ").toLowerCase().includes(t)||d.length>0&&!d.includes(i.kind))return!1;if(s.length>0){let o=i.frontmatter.metadata?.stability;if(!o||!s.includes(o))return!1}return!(l&&!y(i))})}static \u0275fac=function(t){return new(t||n)};static \u0275prov=r({token:n,factory:n.\u0275fac,providedIn:"root"})};function y(n){let e=n.frontmatter.metadata;return e?e.stability==="deprecated"||!!e.supersededBy:!1}export{K as a,f as b};
@@ -23,5 +23,5 @@
23
23
  <style>:root{--ff-white:#ffffff;--ff-black:#000000;--ff-gray-0:#ffffff;--ff-gray-25:#fcfcfc;--ff-gray-50:#f8f8f7;--ff-gray-75:#f2f2f0;--ff-gray-100:#e9e9e6;--ff-gray-150:#dcdcd7;--ff-gray-200:#c9c9c1;--ff-gray-300:#afafa5;--ff-gray-400:#8d8d81;--ff-gray-500:#69695f;--ff-gray-600:#505048;--ff-gray-700:#3c3c36;--ff-gray-800:#272722;--ff-gray-900:#1b1b18;--ff-gray-950:#141412;--ff-gray-1000:#0f0f0d;--ff-alpha-black-04:rgba(15, 15, 13, .04);--ff-alpha-black-06:rgba(15, 15, 13, .06);--ff-alpha-black-08:rgba(15, 15, 13, .08);--ff-alpha-black-10:rgba(15, 15, 13, .1);--ff-alpha-black-12:rgba(15, 15, 13, .12);--ff-alpha-black-15:rgba(15, 15, 13, .15);--ff-alpha-black-20:rgba(15, 15, 13, .2);--ff-alpha-black-30:rgba(15, 15, 13, .3);--ff-alpha-black-40:rgba(15, 15, 13, .4);--ff-alpha-black-60:rgba(15, 15, 13, .6);--ff-alpha-white-04:rgba(255, 255, 255, .04);--ff-alpha-white-06:rgba(255, 255, 255, .06);--ff-alpha-white-08:rgba(255, 255, 255, .08);--ff-alpha-white-10:rgba(255, 255, 255, .1);--ff-alpha-white-12:rgba(255, 255, 255, .12);--ff-alpha-white-15:rgba(255, 255, 255, .15);--ff-alpha-white-20:rgba(255, 255, 255, .2);--ff-alpha-white-30:rgba(255, 255, 255, .3);--ff-alpha-white-40:rgba(255, 255, 255, .4);--ff-alpha-white-60:rgba(255, 255, 255, .6);--ff-blue-100:#e8f2ff;--ff-blue-200:#bad8ff;--ff-blue-300:#7db7ff;--ff-blue-400:#4176ff;--ff-blue-500:#2759db;--ff-blue-600:#1b3f9e;--ff-green-100:#e7f7ef;--ff-green-300:#71c795;--ff-green-400:#2b9b5f;--ff-green-500:#1e7748;--ff-yellow-100:#fff5de;--ff-yellow-300:#e1b354;--ff-yellow-400:#bb8121;--ff-yellow-500:#916112;--ff-red-100:#feeceb;--ff-red-300:#e48d85;--ff-red-400:#c55245;--ff-red-500:#9e3a2f;--ff-radius-4:4px;--ff-radius-6:6px;--ff-radius-pill:999px;--ff-font-family-sans:"Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--ff-font-family-mono:ui-monospace, "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;--ff-font-size-xs:12px;--ff-font-size-sm:14px;--ff-font-size-md:16px;--ff-font-size-lg:18px;--ff-shadow-1:0 1px 2px rgba(15, 15, 13, .05), 0 8px 20px rgba(15, 15, 13, .04);--ff-shadow-2:0 10px 28px rgba(15, 15, 13, .08), 0 3px 10px rgba(15, 15, 13, .05);--ff-shadow-3:0 18px 48px rgba(15, 15, 13, .12), 0 6px 16px rgba(15, 15, 13, .08)}:root{--ff-color-surface-page:var(--ff-gray-25);--ff-color-surface-canvas:var(--ff-gray-25);--ff-color-surface-card:var(--ff-white);--ff-color-surface-group:rgba(65, 118, 255, .14);--ff-color-surface-group-active:rgba(65, 118, 255, .2);--ff-color-surface-muted:var(--ff-gray-50);--ff-color-surface-soft:var(--ff-gray-75);--ff-color-surface-accent-soft:rgba(65, 118, 255, .1);--ff-color-border-default:var(--ff-alpha-black-12);--ff-color-border-subtle:var(--ff-alpha-black-08);--ff-color-border-strong:var(--ff-alpha-black-20);--ff-color-border-accent:var(--ff-blue-500);--ff-color-text-primary:var(--ff-gray-800);--ff-color-text-secondary:var(--ff-gray-500);--ff-color-text-tertiary:var(--ff-gray-400);--ff-color-text-inverse:var(--ff-white);--ff-color-accent:var(--ff-blue-500);--ff-color-accent-strong:var(--ff-blue-600);--ff-color-success:var(--ff-green-400);--ff-color-warning:var(--ff-yellow-400);--ff-color-danger:var(--ff-red-400);--ff-color-disabled-surface:var(--ff-gray-100);--ff-color-disabled-border:var(--ff-alpha-black-10);--ff-color-disabled-text:var(--ff-gray-300);--ff-color-selection-fill:rgba(65, 118, 255, .12);--ff-color-selection-stroke:rgba(65, 118, 255, .28);--ff-color-grid:var(--ff-alpha-black-08);--ff-color-grid-strong:var(--ff-alpha-black-15);--ff-color-connector-connected:var(--ff-blue-500);--ff-color-connection:var(--ff-gray-600);--ff-color-connection-muted:var(--ff-gray-300);--ff-color-connection-hover:var(--ff-alpha-black-12);--ff-color-grouping-drop-target-border:var(--ff-gray-800);--ff-color-grouping-drop-target-border-active:var(--ff-gray-800);--ff-color-waypoint-fill:var(--ff-white);--ff-color-waypoint-stroke:var(--ff-blue-500);--ff-color-waypoint-candidate-fill:var(--ff-white);--ff-color-waypoint-candidate-stroke:var(--ff-green-400);--ff-color-minimap-surface:var(--ff-white);--ff-color-minimap-node:var(--ff-gray-700);--ff-color-minimap-view:rgba(65, 118, 255, .14);--ff-color-magnetic-line:var(--ff-blue-500);--ff-color-magnetic-rect-fill:rgba(65, 118, 255, .08);--ff-color-magnetic-rect-border:rgba(65, 118, 255, .24);--ff-radius-node:var(--ff-radius-4);--ff-radius-group:var(--ff-radius-4);--ff-radius-control:var(--ff-radius-4);--ff-radius-socket-square:var(--ff-radius-6);--ff-radius-pill:var(--ff-radius-pill);--ff-font-sans:var(--ff-font-family-sans);--ff-font-mono:var(--ff-font-family-mono);--ff-font-size-body:var(--ff-font-size-sm);--ff-font-size-label:var(--ff-font-size-xs);--ff-shadow-surface:var(--ff-shadow-1);--ff-shadow-floating:var(--ff-shadow-2)}:root{--ff-flow-background-color:var(--ff-color-surface-page);--ff-flow-text-color:var(--ff-color-text-primary);--ff-flow-font-family:var(--ff-font-sans);--ff-flow-font-size:var(--ff-font-size-body);--ff-canvas-background-color:var(--ff-color-surface-canvas);--ff-node-background-color:var(--ff-color-surface-card);--ff-node-background-color-inverse:var(--ff-color-text-primary);--ff-node-border-color:var(--ff-color-border-default);--ff-node-border-color-selected:var(--ff-color-border-accent);--ff-node-color:var(--ff-color-text-primary);--ff-node-border-radius:var(--ff-radius-node);--ff-node-shadow:var(--ff-shadow-surface);--ff-node-shadow-selected:var(--ff-shadow-floating);--ff-node-width:120px;--ff-node-min-height:56px;--ff-node-padding:24px;--ff-group-background-color:var(--ff-color-surface-group);--ff-group-background-color-active:var(--ff-color-surface-group-active);--ff-group-border-color:var(--ff-color-border-subtle);--ff-group-border-color-selected:var(--ff-color-border-accent);--ff-group-border-color-active:var(--ff-color-border-accent);--ff-group-color:var(--ff-color-text-secondary);--ff-group-border-radius:var(--ff-radius-group);--ff-group-min-width:180px;--ff-group-min-height:120px;--ff-group-padding:24px;--ff-grouping-drop-target-border-color:var(--ff-color-grouping-drop-target-border);--ff-grouping-drop-target-border-style:dashed;--ff-grouping-drop-target-border-width:1px;--ff-grouping-drop-target-border-color-active:var(--ff-color-grouping-drop-target-border-active);--ff-grouping-drop-target-border-style-active:dashed;--ff-grouping-drop-target-border-width-active:2px;--ff-handle-background-color:var(--ff-color-surface-card);--ff-handle-border-color:var(--ff-color-border-strong);--ff-handle-color:var(--ff-color-text-secondary);--ff-handle-size:12px;--ff-handle-radius:var(--ff-radius-control);--ff-rotate-handle-size:16px;--ff-connector-background-color:var(--ff-color-surface-card);--ff-connector-border-color:var(--ff-color-border-default);--ff-connector-connected-color:var(--ff-color-connector-connected);--ff-connector-accent-color:var(--ff-color-accent);--ff-connector-disabled-color:var(--ff-color-disabled-surface);--ff-connector-disabled-border-color:var(--ff-color-disabled-border);--ff-connector-size:16px;--ff-connector-node-ring-color:var(--ff-canvas-background-color);--ff-outlet-background-color:var(--ff-color-surface-muted);--ff-outlet-border-color:var(--ff-color-border-default);--ff-outlet-color:var(--ff-color-accent);--ff-outlet-disabled-background-color:var(--ff-color-disabled-surface);--ff-outlet-disabled-border-color:var(--ff-color-disabled-border);--ff-outlet-disabled-color:var(--ff-color-disabled-text);--ff-outlet-border-radius:var(--ff-radius-pill);--ff-outlet-padding-y:6px;--ff-outlet-padding-x:12px;--ff-connection-color:var(--ff-color-connection);--ff-snap-connection-color:var(--ff-color-connection-muted);--ff-connection-hover-color:var(--ff-color-connection-hover);--ff-connection-selected-color:var(--ff-color-accent);--ff-connection-label-color:var(--ff-color-text-secondary);--ff-connection-content-color:var(--ff-node-color);--ff-connection-content-background-color:var(--ff-node-background-color);--ff-connection-content-border-color:var(--ff-node-border-color);--ff-connection-content-border-color-selected:var(--ff-connection-selected-color);--ff-connection-content-border-radius:var(--ff-node-border-radius);--ff-connection-content-font-size:13px;--ff-connection-content-padding-y:2px;--ff-connection-content-padding-x:8px;--ff-connection-width:2px;--ff-connection-hit-width:14px;--ff-connection-drag-handle-fill:var(--ff-color-surface-card);--ff-connection-drag-handle-stroke:var(--ff-color-accent);--ff-marker-color:var(--ff-connection-color);--ff-waypoint-fill:var(--ff-color-waypoint-fill);--ff-waypoint-stroke:var(--ff-color-waypoint-stroke);--ff-waypoint-candidate-fill:var(--ff-color-waypoint-candidate-fill);--ff-waypoint-candidate-stroke:var(--ff-color-waypoint-candidate-stroke);--ff-background-line-color:var(--ff-color-grid);--ff-background-dot-color:var(--ff-color-grid-strong);--ff-selection-area-color:var(--ff-color-selection-fill);--ff-selection-area-border-color:var(--ff-color-selection-stroke);--ff-minimap-background-color:var(--ff-color-minimap-surface);--ff-minimap-border-color:var(--ff-color-border-default);--ff-minimap-node-color:var(--ff-color-minimap-node);--ff-minimap-node-selected-color:var(--ff-color-accent);--ff-minimap-view-color:var(--ff-color-minimap-view);--ff-minimap-view-border-color:var(--ff-color-selection-stroke);--ff-minimap-border-radius:var(--ff-radius-node);--ff-minimap-shadow:var(--ff-shadow-floating);--ff-magnetic-line-color:var(--ff-color-magnetic-line);--ff-magnetic-rect-fill:var(--ff-color-magnetic-rect-fill);--ff-magnetic-rect-border-color:var(--ff-color-magnetic-rect-border);--ff-external-item-background-color:var(--ff-color-surface-card);--ff-external-item-border-color:var(--ff-color-border-default);--ff-external-item-color:var(--ff-color-text-primary);--ff-external-item-disabled-color:var(--ff-color-disabled-text);--ff-external-item-disabled-background-color:var(--ff-color-disabled-surface);--ff-external-item-border-radius:var(--ff-radius-node);--ff-external-item-shadow:var(--ff-shadow-surface);--ff-external-item-preview-shadow:var(--ff-shadow-floating);--ff-external-item-placeholder-background-color:var(--ff-color-surface-soft);--ff-external-item-placeholder-border-color:var(--ff-color-border-subtle)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}:root{--sm-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;--sm-bg-page:#f8fafc;--sm-bg-content:#ffffff;--sm-bg-hover:#f1f5f9;--sm-border:#e2e8f0;--sm-nav-active-bg:#eff6ff;--sm-edge-invokes:#f59e0b;--sm-edge-references:#3b82f6;--sm-edge-mentions:#9ca3af;--sm-edge-supersedes:#8b5cf6;--sm-link-in-bg:#e0e7ff;--sm-link-in-fg:#3730a3;--sm-link-out-bg:#fef3c7;--sm-link-out-fg:#92400e;--sm-severity-info:#1e3a8a;--sm-severity-success:#065f46;--sm-severity-warn:#92400e;--sm-severity-error:#991b1b;--sm-severity-warn-bg:rgba(254, 243, 199, .35);--sm-severity-error-bg:rgba(254, 226, 226, .35);--sm-shadow-topbar:0 1px 2px rgba(0, 0, 0, .03);--sm-shadow-eventlog:0 -4px 16px rgba(0, 0, 0, .08);--sm-shadow-floating:0 4px 14px rgba(0, 0, 0, .08);--sm-shadow-card:0 1px 2px rgba(0, 0, 0, .05);--sm-shadow-card-hover:0 3px 12px rgba(0, 0, 0, .12)}html,body{margin:0;padding:0;height:100dvh;overflow:hidden;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--sm-bg-page);color:var(--p-text-color)}*,*:before,*:after{box-sizing:border-box}</style><link rel="stylesheet" href="styles-TCK5JUQE.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-TCK5JUQE.css"></noscript></head>
24
24
  <body>
25
25
  <app-root></app-root>
26
- <link rel="modulepreload" href="chunk-G6SL4UFD.js"><link rel="modulepreload" href="chunk-AVRC55YV.js"><link rel="modulepreload" href="chunk-Q7L6LLAK.js"><script src="main-TG4BEOVI.js" type="module"></script></body>
26
+ <link rel="modulepreload" href="chunk-UGEECDPV.js"><link rel="modulepreload" href="chunk-7PFTODKS.js"><link rel="modulepreload" href="chunk-Q7L6LLAK.js"><script src="main-JI2DDER5.js" type="module"></script></body>
27
27
  </html>