@skill-map/cli 0.40.1 → 0.42.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.
Files changed (39) hide show
  1. package/dist/cli/tutorial/sm-tutorial/SKILL.md +10 -1
  2. package/dist/cli.js +429 -95
  3. package/dist/cli.js.map +1 -1
  4. package/dist/index.js +39 -29
  5. package/dist/index.js.map +1 -1
  6. package/dist/kernel/index.d.ts +101 -0
  7. package/dist/kernel/index.js +39 -29
  8. package/dist/kernel/index.js.map +1 -1
  9. package/dist/migrations/001_initial.sql +8 -0
  10. package/dist/ui/chunk-5GD2GBPS.js +2190 -0
  11. package/dist/ui/{chunk-4HTOYDCM.js → chunk-5WJRN3LD.js} +1 -1
  12. package/dist/ui/{chunk-3SI3TVER.js → chunk-C2YUQODZ.js} +2 -2
  13. package/dist/ui/{chunk-NGIFGXW7.js → chunk-CFJBTDAA.js} +1 -1
  14. package/dist/ui/{chunk-YWWD62BR.js → chunk-HEJCH7BA.js} +1 -1
  15. package/dist/ui/chunk-HFPA56IM.js +1 -0
  16. package/dist/ui/chunk-HHPSCDLM.js +315 -0
  17. package/dist/ui/chunk-HP375T2O.js +2 -0
  18. package/dist/ui/chunk-HWP3HM55.js +123 -0
  19. package/dist/ui/{chunk-ZAEGBMF7.js → chunk-IUDL3NDH.js} +1 -1
  20. package/dist/ui/{chunk-Z3C2OSRL.js → chunk-JPYAASHN.js} +1 -1
  21. package/dist/ui/chunk-PZ6Q5AOT.js +1 -0
  22. package/dist/ui/chunk-XJL4DZ4M.js +1 -0
  23. package/dist/ui/{chunk-W2JMLJCF.js → chunk-XOHD5XWA.js} +1 -1
  24. package/dist/ui/chunk-YL6SWAFJ.js +1024 -0
  25. package/dist/ui/index.html +2 -2
  26. package/dist/ui/main-7VYTTJP7.js +3 -0
  27. package/dist/ui/{styles-6H4GSOHY.css → styles-HI4A6IWA.css} +1 -1
  28. package/migrations/001_initial.sql +8 -0
  29. package/package.json +2 -2
  30. package/dist/ui/chunk-4X4GYACU.js +0 -123
  31. package/dist/ui/chunk-7Q3IO77R.js +0 -317
  32. package/dist/ui/chunk-FL6RV2IG.js +0 -2
  33. package/dist/ui/chunk-HGNE4UVQ.js +0 -1
  34. package/dist/ui/chunk-IS5ULQSF.js +0 -1
  35. package/dist/ui/chunk-KVWYVO6I.js +0 -1
  36. package/dist/ui/chunk-N4XX4WPE.js +0 -2190
  37. package/dist/ui/chunk-P7TXZKUX.js +0 -2
  38. package/dist/ui/chunk-UVVXMEZT.js +0 -1025
  39. package/dist/ui/main-F7N5RV4Y.js +0 -3
@@ -1,2 +0,0 @@
1
- import{a as nt,b as ot,c as at,d as lt,e as st,f as rt,g as h,h as pt}from"./chunk-N4XX4WPE.js";import{p as ct,q as mt}from"./chunk-4HTOYDCM.js";import"./chunk-ZAEGBMF7.js";import{a as U,b as Q,e as tt,f as et,g as it}from"./chunk-Z3C2OSRL.js";import"./chunk-W2JMLJCF.js";import{e as z,l as j,n as W,p as X,q as Y,r as q,v as G,w as J,y as Z}from"./chunk-KVWYVO6I.js";import{$c as $,Aa as V,Gc as F,Ja as v,Ma as u,N as x,Na as g,Qa as L,Ra as R,S as C,Sa as f,Sb as k,T as y,Ta as n,Ua as a,Va as p,ad as D,cb as b,eb as S,ed as B,fd as H,gb as c,na as i,nd as K,sb as N,tb as A,va as E,vb as l,wb as d,xb as _}from"./chunk-UVVXMEZT.js";import"./chunk-3SI3TVER.js";import"./chunk-VB56BUGO.js";var wt=(e,o)=>o.source+":"+o.tag;function bt(e,o){if(e&1&&(l(0),n(1,"strong"),l(2),a(),l(3)),e&2){let t=c();_(" ",t.texts.showingPrefix," "),i(2),d(t.visibleCount()),i(),_("",t.texts.showingSuffix(t.total())," ")}}function St(e,o){if(e&1&&l(0),e&2){let t=c();_(" ",t.texts.subtitleDefault," ")}}function kt(e,o){if(e&1&&p(0,"p-message",3),e&2){let t=c();f("text",t.error())}}function Tt(e,o){if(e&1&&(n(0,"div",4),p(1,"p-progressSpinner",6),n(2,"span",7),l(3),a()()),e&2){let t=c();i(3),d(t.texts.loading)}}function It(e,o){if(e&1&&(n(0,"tr")(1,"th",11),l(2),p(3,"p-sortIcon",12),a(),n(4,"th",13),l(5),p(6,"p-sortIcon",14),a(),n(7,"th",15),l(8),p(9,"p-sortIcon",16),a(),n(10,"th",17),l(11),a(),n(12,"th",18),l(13),p(14,"p-sortIcon",19),a(),n(15,"th",20),l(16),p(17,"p-sortIcon",21),a(),n(18,"th",22),l(19),p(20,"p-sortIcon",23),a(),n(21,"th",24),l(22),a(),n(23,"th",25),l(24),p(25,"p-sortIcon",26),a()()),e&2){let t=c(2);i(2),_(" ",t.texts.columns.kind," "),i(3),_(" ",t.texts.columns.path," "),i(3),_(" ",t.texts.columns.name," "),i(3),_(" ",t.texts.columns.tags," "),i(),f("pTooltip",t.texts.linksInHeaderTooltip),i(),_(" ",t.texts.columns.linksIn," "),i(2),f("pTooltip",t.texts.linksOutHeaderTooltip),i(),_(" ",t.texts.columns.linksOut," "),i(3),_(" ",t.texts.columns.tokens," "),i(3),_(" ",t.texts.columns.stability," "),i(2),_(" ",t.texts.columns.issues," ")}}function Ot(e,o){if(e&1&&(n(0,"span",43),l(1),a()),e&2){let t=o.$implicit;N("list__chip--author",t.source==="author")("list__chip--user",t.source==="user"),i(),d(t.tag)}}function Pt(e,o){if(e&1&&(n(0,"span",42),l(1),a()),e&2){let t=c(2).$implicit,r=c(2);f("pTooltip",t.tagsOverflowTooltip),v("aria-label",t.tagsOverflowTooltip),i(),d(r.texts.tagsOverflow(t.tagsOverflow))}}function Mt(e,o){if(e&1&&(n(0,"span",32),L(1,Ot,2,5,"span",41,wt),u(3,Pt,2,3,"span",42),a()),e&2){let t=c().$implicit;i(),R(t.tags),i(2),g(t.tagsOverflow>0?3:-1)}}function Et(e,o){if(e&1&&p(0,"i",37),e&2){let t=c().$implicit;f("pTooltip",t.staleTooltip),v("aria-label",t.staleTooltip)}}function Vt(e,o){if(e&1&&(n(0,"span",38),p(1,"i",44),n(2,"span",45),l(3),a()()),e&2){let t=c().$implicit;i(3),d(t.errors)}}function Lt(e,o){if(e&1&&(n(0,"span",39),p(1,"i",46),n(2,"span",45),l(3),a()()),e&2){let t=c().$implicit;i(3),d(t.warns)}}function Rt(e,o){if(e&1&&(n(0,"span",40),l(1),a()),e&2){let t=c(3);i(),d(t.texts.missing)}}function Nt(e,o){if(e&1){let t=b();n(0,"tr",27),S("click",function(){let m=C(t).$implicit,s=c(2);return y(s.openNode(m))})("keydown.enter",function(){let m=C(t).$implicit,s=c(2);return y(s.openNode(m))})("keydown.space",function(m){let s=C(t).$implicit,w=c(2);return m.preventDefault(),y(w.openNode(s))}),n(1,"td"),p(2,"p-tag",28),a(),n(3,"td",29)(4,"code"),l(5),a()(),n(6,"td",30),l(7),a(),n(8,"td",31),u(9,Mt,4,1,"span",32),a(),n(10,"td",33),l(11),a(),n(12,"td",33),l(13),a(),n(14,"td",33),l(15),a(),n(16,"td"),p(17,"p-tag",34),a(),n(18,"td",35)(19,"span",36),u(20,Et,1,2,"i",37),u(21,Vt,4,1,"span",38),u(22,Lt,4,1,"span",39),u(23,Rt,2,1,"span",40),a()()()}if(e&2){let t=o.$implicit,r=c(2);v("aria-label",r.texts.rowAriaLabel(t.name))("data-testid","list-row-"+t.path),i(2),A(t.kindStyle),f("value",t.kindLabel),i(2),v("title",t.path),i(),d(t.path),i(2),d(t.name),i(2),g(t.tags.length||t.tagsOverflow>0?9:-1),i(2),d(t.linksIn),i(2),d(t.linksOut),i(),v("title",t.tokensRaw>0?r.texts.tokensTooltip(t.tokensRaw):null),i(),d(t.tokens),i(2),f("value",t.stability)("severity",t.stabilitySeverity)("rounded",!0),i(3),g(t.isStale?20:-1),i(),g(t.errors>0?21:-1),i(),g(t.warns>0?22:-1),i(),g(!t.isStale&&t.errors===0&&t.warns===0?23:-1)}}function At(e,o){if(e&1){let t=b();p(0,"i",49),n(1,"p",50),l(2),a(),n(3,"p-button",51),S("onClick",function(){C(t);let m=c(3);return y(m.resetFilters())}),a()}if(e&2){let t=c(3);i(2),d(t.texts.emptyFiltered),i(),f("label",t.texts.resetFilters)("text",!0)}}function zt(e,o){if(e&1&&(p(0,"i",52),n(1,"p",53),l(2),a(),n(3,"p",54),l(4),a()),e&2){let t=c(3);i(2),d(t.texts.emptyAll),i(2),d(t.texts.emptyAllHint)}}function Ft(e,o){if(e&1&&(n(0,"tr")(1,"td",47)(2,"div",48),u(3,At,4,3)(4,zt,5,2),a()()()),e&2){let t=c(2);i(3),g(t.filtersActive()?3:4)}}function $t(e,o){if(e&1&&(n(0,"p-table",5),V(1,It,26,11,"ng-template",8)(2,Nt,24,20,"ng-template",9)(3,Ft,5,1,"ng-template",10),a()),e&2){let t=c();f("value",t.rows())("paginator",!1)("scrollable",!0)("sortOrder",1)}}var dt=class e{loader=x(K);filters=x(G);issuePaths=x(U);router=x(z);kindRegistry=x(J);texts=h;loading=this.loader.loading;error=this.loader.error;total=this.loader.count;filtersActive=this.filters.isActive;rows=k(()=>{let o=this.issuePaths.bySeverity(),t=this.filters.apply(this.loader.nodes(),o),r=ut(this.loader.scan()?.issues,"error"),m=ut(this.loader.scan()?.issues,"warn");return t.map(s=>{let w=Ht(s),T=r.get(s.path)??0,I=m.get(s.path)??0,gt=s.tokensTotal??0,ft=s.linksInCount??0,xt=s.linksOutCount??0,O=W(s),P=Bt(s),vt=P.slice(0,_t),M=P.slice(_t),ht=M.length,Ct=M.map(yt=>yt.tag).join(`
2
- `);return{path:s.path,kind:s.kind,kindLabel:this.kindRegistry.labelOf(s.kind),kindStyle:Kt(s.kind),name:Dt(s),tags:vt,tagsOverflow:ht,tagsOverflowTooltip:Ct,linksIn:s.linksInCount!==void 0?String(s.linksInCount):h.missing,linksInRaw:ft,linksOut:s.linksOutCount!==void 0?String(s.linksOutCount):h.missing,linksOutRaw:xt,tokens:s.tokensTotal!==void 0?q(s.tokensTotal):h.missing,tokensRaw:gt,stability:w,stabilitySeverity:it[w],isStale:O,staleTooltip:O?Y(s,Q.sidecar):"",errors:T,warns:I,issuesRank:T*1e3+I,node:s}})});visibleCount=k(()=>this.rows().length);ngOnInit(){this.loader.nodes().length===0&&!this.loader.loading()&&this.loader.load()}openNode(o){this.router.navigate(["/graph"],{queryParams:{path:o.path}})}resetFilters(){this.filters.reset()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=E({type:e,selectors:[["sm-list-view"]],decls:12,vars:4,consts:[["data-testid","list-view",1,"list"],[1,"list__header"],[1,"list__sub"],["severity","error",3,"text"],["data-testid","list-loading",1,"list__loading"],["scrollHeight","calc(100dvh - 280px)","dataKey","path","sortMode","single","sortField","path","styleClass","p-datatable-sm list__table","data-testid","list-table",3,"value","paginator","scrollable","sortOrder"],["strokeWidth","3"],[1,"list__loading-label"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["pSortableColumn","kind",2,"width","120px"],["field","kind"],["pSortableColumn","path",1,"list__col-path"],["field","path"],["pSortableColumn","name"],["field","name"],[1,"list__col-tags"],["pSortableColumn","linksInRaw","tooltipPosition","top",1,"list__col-num",2,"width","70px",3,"pTooltip"],["field","linksInRaw"],["pSortableColumn","linksOutRaw","tooltipPosition","top",1,"list__col-num",2,"width","70px",3,"pTooltip"],["field","linksOutRaw"],["pSortableColumn","tokensRaw",1,"list__col-num",2,"width","110px"],["field","tokensRaw"],[2,"width","140px"],["pSortableColumn","issuesRank",2,"width","130px"],["field","issuesRank"],["role","button","tabindex","0",1,"list__row",3,"click","keydown.enter","keydown.space"],[3,"value"],[1,"list__cell-path"],[1,"list__cell-name"],[1,"list__cell-tags"],["aria-label","tags",1,"list__chips"],[1,"list__cell-num"],[3,"value","severity","rounded"],[1,"list__cell-issues"],[1,"list__issues-row"],["tooltipPosition","top",1,"pi","pi-clock","list__stale-icon",3,"pTooltip"],[1,"list__issue","list__issue--error"],[1,"list__issue","list__issue--warn"],["aria-hidden","true",1,"list__cell-issues-empty"],[1,"list__chip",3,"list__chip--author","list__chip--user"],["tooltipPosition","top",1,"list__chip-more",3,"pTooltip"],[1,"list__chip"],["aria-hidden","true",1,"pi","pi-times-circle"],[1,"list__issue-count"],["aria-hidden","true",1,"pi","pi-exclamation-triangle"],["colspan","9",1,"list__empty-cell"],[1,"empty-state"],["aria-hidden","true",1,"pi","pi-filter-slash","empty-state__icon"],["data-testid","list-empty-filtered",1,"empty-state__title"],["size","small","data-testid","list-reset-filters",3,"onClick","label","text"],["aria-hidden","true",1,"pi","pi-inbox","empty-state__icon"],["data-testid","list-empty-all",1,"empty-state__title"],[1,"empty-state__desc"]],template:function(t,r){t&1&&(n(0,"section",0)(1,"header",1)(2,"div")(3,"h2"),l(4),a(),n(5,"p",2),u(6,bt,4,3)(7,St,1,1),a()()(),p(8,"sm-filter-bar"),u(9,kt,1,1,"p-message",3),u(10,Tt,4,1,"div",4)(11,$t,4,4,"p-table",5),a()),t&2&&(i(4),d(r.texts.title),i(2),g(r.filtersActive()?6:7),i(3),g(r.error()?9:-1),i(),g(r.loading()?10:r.error()?-1:11))},dependencies:[pt,lt,nt,F,ot,at,et,tt,rt,st,mt,ct,D,$,H,B],styles:["[_nghost-%COMP%]{--list-fs-xs: .75rem;--list-fs-mono: .8rem;--list-fs-sm: .875rem;--list-fs-md: 1rem;--list-fs-lg: 1.25rem;display:block;padding:1.5rem;max-width:1400px;width:100%;margin:0 auto;box-sizing:border-box}@media(max-width:1280px){[_nghost-%COMP%]{padding:1rem}}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.list__header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:var(--list-fs-lg);font-weight:600}.list__sub[_ngcontent-%COMP%]{margin:.25rem 0 0;color:var(--p-text-muted-color);font-size:var(--list-fs-xs)}.list__loading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:3rem 2rem;color:var(--p-text-muted-color)}.list__loading-label[_ngcontent-%COMP%]{font-size:var(--list-fs-sm)}.list__table[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .list__table .p-datatable-tbody td{font-size:var(--list-fs-sm);vertical-align:middle}[_nghost-%COMP%] .list__table .p-datatable-sort-icon{opacity:0;transition:opacity .12s ease-out}[_nghost-%COMP%] .list__table .p-datatable-sortable-column:hover .p-datatable-sort-icon, [_nghost-%COMP%] .list__table .p-datatable-sortable-column:focus-visible .p-datatable-sort-icon, [_nghost-%COMP%] .list__table .p-datatable-sortable-column.p-datatable-column-sorted .p-datatable-sort-icon{opacity:1}.list__row[_ngcontent-%COMP%]{cursor:pointer}.list__row[_ngcontent-%COMP%]:hover{background:var(--sm-bg-hover)}.list__cell-name[_ngcontent-%COMP%]{font-weight:500}.list__col-tags[_ngcontent-%COMP%], .list__cell-tags[_ngcontent-%COMP%]{max-width:240px}.list__chips[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.25rem;font-weight:400;line-height:1}.list__chip[_ngcontent-%COMP%]{font-size:var(--list-fs-xs);font-family:var(--sm-font-mono);padding:.05rem .35rem;border-radius:var(--sm-radius-sm);background:var(--sm-bg-hover);color:var(--sm-text-muted);line-height:1.4}.list__chip--author[_ngcontent-%COMP%]{background:transparent;border:1px solid var(--sm-text-muted);padding:calc(.05rem - 1px) calc(.35rem - 1px);color:var(--sm-text-muted)}.list__chip-more[_ngcontent-%COMP%]{font-size:var(--list-fs-xs);color:var(--p-text-muted-color);align-self:center}.list__row[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{font-size:var(--list-fs-mono);font-family:var(--sm-font-mono);color:var(--p-text-muted-color)}.list__col-path[_ngcontent-%COMP%], .list__cell-path[_ngcontent-%COMP%]{max-width:360px}.list__cell-path[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list__col-num[_ngcontent-%COMP%]{text-align:right}.list__cell-num[_ngcontent-%COMP%]{text-align:right;font-family:var(--sm-font-mono);font-size:var(--list-fs-mono);color:var(--p-text-muted-color)}.list__stale-icon[_ngcontent-%COMP%]{font-size:var(--list-fs-sm);color:var(--sm-severity-warn);line-height:1;opacity:.65}.list__issues-row[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.6rem}.list__issue[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;font-weight:600;font-size:var(--list-fs-sm);line-height:1;opacity:.65}.list__issue[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:var(--list-fs-sm);line-height:1}.list__issue-count[_ngcontent-%COMP%]{font-variant-numeric:tabular-nums}.list__issue--error[_ngcontent-%COMP%]{color:var(--sm-severity-error)}.list__issue--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.list__cell-issues-empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-family:var(--sm-font-mono);font-size:var(--list-fs-mono)}.list__empty-cell[_ngcontent-%COMP%]{padding:0}"],changeDetection:0})};function Dt(e){let o=e.frontmatter.name?.trim();return o||Z(e.path)||h.missing}var _t=3;function Bt(e){let o=[],r=e.frontmatter.tags;if(Array.isArray(r))for(let m of r)typeof m=="string"&&m.length>0&&o.push({tag:m,source:"author"});for(let m of X(e))o.push({tag:m,source:"user"});return o}function Ht(e){return j(e)??"stable"}function ut(e,o){let t=new Map;if(!e)return t;for(let r of e)if(r.severity===o)for(let m of r.nodeIds)t.set(m,(t.get(m)??0)+1);return t}function Kt(e){return{background:`var(--sm-kind-${e}-bg)`,color:`var(--sm-kind-${e}-fg)`}}export{dt as ListView};
@@ -1 +0,0 @@
1
- import{I as o,N as i,Sb as n,X as g,Y as h,ca as r,da as u,id as c,jd as m,nd as f}from"./chunk-UVVXMEZT.js";var F={triggerLabel:"Settings",triggerTooltip:"Settings",modalTitle:"Settings",closeLabel:"Close",sections:{plugins:"Plugins",general:"General",project:"Project",changelog:"Changelog",about:"About"},general:{heading:"General",intro:"Per-machine preferences.",loadErrorPrefix:"Could not load preferences:",saveErrorPrefix:"Could not save preferences:",toggles:{"updateCheck.enabled":{label:"Check for updates",description:"Check npm for newer @skill-map/cli releases."}},extraTheme:{label:"Theme",description:"Pick a specialty theme.",options:{none:{label:"None",description:"Use the topbar dark/light toggle."},matrix:{label:"Matrix",description:"Cyber-green retint on the dark palette."}}},storageHintLabel:"Settings are stored in:",storageHintPath:"~/.skill-map/settings.json"},project:{heading:"Project",introPrefix:"These settings apply only to this project and are saved in",introPath:".skill-map/settings.local.json",introSuffix:".",loadErrorPrefix:"Could not load project settings:",saveErrorPrefix:"Could not save project settings:",referencePathsLabel:"Folders for link validation",referencePathsDescription:"If your notes link to files outside this project, list those folders here. Skill-map checks them only to confirm the links work, nothing from these folders shows up in the graph.",referencePathsPlaceholder:"~/Documents/research",commaForbidden:"Add one path at a time, without commas.",addPathLabel:"Add path",removePathLabel:"Remove",confirmDialogHeader:"Allow access to folders outside this project?",confirmDialogIntro:"This change lets the scan read files in:",confirmDialogAccept:"Allow access",confirmDialogReject:"Cancel",ignorePatternsLabel:"Ignored patterns",ignorePatternsDescriptionPrefix:"Patterns that exclude files and folders from the scan, stored in",ignorePatternsDescriptionFile:".skillmapignore",ignorePatternsDescriptionMiddle:"at the project root. Same syntax as",ignorePatternsDescriptionGitignore:".gitignore",ignorePatternsDescriptionSuffix:"(one pattern per line).",ignorePatternsPlaceholder:"secrets.md",ignorePatternEmpty:"Pattern cannot be empty or whitespace-only.",ignorePatternHasControlChar:"Pattern must be a single line without control characters.",ignorePatternDuplicate:"This pattern is already in the list.",addIgnorePatternLabel:"Add pattern",removeIgnorePatternLabel:"Remove",activeProviderLabel:"Active provider",activeProviderDescription:"Selects which provider sees this project. The graph reflects how the chosen provider interprets your files.",activeProviderSourceAutodetect:"Auto-detected from your files (no value saved yet).",activeProviderSourceNone:"No provider detected. Install or enable a provider to start.",activeProviderDetectedPrefix:"Detected:",activeProviderEmptyOption:"(none)",activeProviderConfirmHeader:"Switch the active provider?",activeProviderConfirmIntro:"Switching will clear the persisted scan (nodes, links, issues). Jobs and history are kept. You will need to run `sm scan` after the switch.",activeProviderConfirmAccept:"Switch and clear scan",activeProviderConfirmReject:"Cancel",activeProviderSwitchedPrefix:"Lens switched. Cleared",activeProviderSwitchedSuffix:"scan table(s). Run `sm scan` to repopulate.",activeProviderSwitchedNoDb:"Lens switched. Run `sm scan` to populate the graph under the new lens."},changelogHeading:"Changelog",changelogIntro:"What's new in skill-map. Each entry covers a release of @skill-map/cli (the CLI + bundled UI) and lists the user-facing changes plus the workspace(s) each one affects.",changelogEmpty:"No release notes yet. Future releases will populate this list automatically from the changesets shipped in each PR.",changelogInternalRelease:"Internal release. Focus on stability, infra, and refactors. No user-facing changes this time.",changelogAffectedPackages:"Affected packages",changelogFooterText:"Want the full changelog?",changelogFooterLinkLabel:"See it on GitHub \u2192",changelogFooterUrl:"https://github.com/crystian/skill-map/blob/main/src/CHANGELOG.md",aboutHeading:"About",aboutIntro:"Version information for the running CLI / server.",aboutCliLabel:"skill-map CLI",aboutSpecLabel:"Spec version",aboutSchemaLabel:"Schema version",aboutFolderLabel:"Project folder",aboutDbLabel:"Project DB",aboutDbValue:(t,e)=>t==="present"?e:`${t} \xB7 ${e}`,aboutLoading:"Loading\u2026",aboutUnknown:"-",aboutErrorPrefix:"Could not read health endpoint:",aboutLinksHeading:"Links",aboutWebsiteLabel:"Website",aboutGithubLabel:"GitHub",aboutWebsiteUrl:"https://skill-map.dev/",aboutGithubUrl:"https://github.com/crystian/skill-map",aboutStarHeading:"Enjoying skill-map?",aboutStarBody:"If it's useful to you, drop us a star on GitHub, it helps a lot and keeps the project alive.",aboutStarCta:"Star on GitHub",aboutStarA11y:"Open the skill-map repository on GitHub to give it a star",pluginsHeading:"Plugins",pluginsIntro:"Enable or disable installed plugins.",pluginsSearchPlaceholder:"Filter by name\u2026",pluginsSearchA11y:"Filter plugins by name",pluginsSearchEmpty:t=>`No plugins match "${t}".`,pluginsKindFilterAll:"All",pluginsKindFilterA11y:"Filter plugins by kind",pluginsKindFilterOptionA11y:(t,e)=>e?`Show only ${t} extensions`:"Show all kinds",unsavedChangesMessage:t=>t===1?'1 unsaved change. Click "Apply" to persist it.':`${t} unsaved changes. Click "Apply" to persist them.`,startsAsDisabledRowHint:"This plugin started disabled and is not loaded in memory. Restart `sm serve` for the change to take effect.",startsAsDisabledFooterHint:"Some plugins were disabled when the server started. Consider restarting `sm serve` so they take effect.",discardChanges:"Discard",applyAndClose:"Apply",discardA11y:"Discard pending plugin changes",applyA11y:"Apply pending plugin changes and refresh the graph",confirmCloseTitle:"Apply pending changes?",confirmCloseBody:t=>t===1?"You have 1 unsaved change.":`You have ${t} unsaved changes.`,keepEditing:"Keep editing",sourceBuiltIn:"Built-in",sourceProject:"Project",enabledLabel:"Enabled",disabledLabel:"Disabled",lockedLabel:"Locked",lockedTooltip:"Locked by the host (cannot be toggled).",expandLabel:"Show extensions",collapseLabel:"Hide extensions",statusFailure:{"incompatible-spec":"Incompatible spec version","invalid-manifest":"Invalid manifest","load-error":"Failed to load","id-collision":"Plugin id collision"},loading:"Loading plugins\u2026",empty:"No plugins installed.",errorPrefix:"Could not load plugins:",toggleErrorPrefix:"Toggle failed:",a11y:{triggerLabel:"Open settings",pluginToggle:(t,e)=>e?`Enable plugin ${t}`:`Disable plugin ${t}`,extensionToggle:(t,e)=>e?`Enable ${t}`:`Disable ${t}`,pluginRow:t=>`Plugin ${t} row`,extensionRow:t=>`Extension ${t} row`}};var b={available:"Update available",copiedLabel:"Copied!",tooltip:t=>`v${t} is available. Click to copy the install command.`,copyCommand:"npm i -g @skill-map/cli@latest",copiedTooltip:"Copied! Paste it in your terminal.",npmLinkUrl:"https://www.npmjs.com/package/@skill-map/cli",npmLinkTooltip:"Open on npm",npmLinkA11y:"Open the @skill-map/cli package page on npm",a11yLabel:t=>`Update available: version ${t}, click to copy the install command`,versionLabel:t=>`v${t}`,versionTooltip:t=>`skill-map CLI v${t}`,versionA11yLabel:t=>`Running version ${t}`,fetchFailed:t=>`UpdateCheckService: fetch failed (${t})`};var v=class t{dataSource=i(c);status=r(null);isOutdated=n(()=>this.status()?.isOutdated===!0);latest=n(()=>this.status()?.latest??null);current=n(()=>this.status()?.current??null);async load(){try{let e=await this.dataSource.getUpdateStatus();this.status.set(e)}catch(e){let a=e instanceof Error?e.message:String(e);console.warn(b.fetchFailed(a))}}static \u0275fac=function(a){return new(a||t)};static \u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"})};var k={scanFailed:t=>`scan-trigger failed: ${t}`};var S=class t{dataSource=i(c);loader=i(f);scanning=r(!1);scanError=r(null);async run(){if(!this.scanning()){this.scanning.set(!0),this.scanError.set(null);try{await this.dataSource.runScan(),await this.loader.load()}catch(e){let a=e instanceof m||e instanceof Error?e.message:String(e);this.scanError.set(a),console.warn(k.scanFailed(a))}finally{this.scanning.set(!1)}}}static \u0275fac=function(a){return new(a||t)};static \u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"})};var P="skill-map.ui.theme",p="skill-map.ui.extra-theme",A="app-dark",C="dark",L="app-matrix",T="(prefers-color-scheme: dark)",D="favicon.svg",I="favicon-matrix.svg",w='link[rel="icon"][type="image/svg+xml"]',R="https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap",E="sm-matrix-font",x=class t{doc=i(g);destroyRef=i(h);mode=r(this.readInitialMode());extraTheme=r(this.readInitialExtra());systemPrefersDark=r(this.readSystemPref());resolved=n(()=>{let e=this.mode();return e==="auto"?this.systemPrefersDark()?"dark":"light":e});constructor(){this.subscribeToSystemPref(),u(()=>{let e=this.extraTheme(),s=this.resolved()==="dark"||e==="matrix",l=this.doc.documentElement;l.classList.toggle(A,s),l.classList.toggle(C,s),l.classList.toggle(L,e==="matrix"),this.applyFavicon(e==="matrix"?I:D),e==="matrix"&&this.ensureMatrixFont();try{let d=this.doc.defaultView?.localStorage;d?.setItem(P,this.mode()),e===null?d?.removeItem(p):d?.setItem(p,e)}catch{}})}toggle(){this.extraTheme()!==null&&this.extraTheme.set(null),this.mode.update(e=>e==="auto"?"light":e==="light"?"dark":"auto")}set(e){this.mode.set(e)}setExtraTheme(e){this.extraTheme.set(e)}readInitialMode(){try{let e=this.doc.defaultView?.localStorage.getItem(P);if(e==="auto"||e==="light"||e==="dark")return e}catch{}return"auto"}readInitialExtra(){try{let e=this.doc.defaultView?.localStorage.getItem(p);if(e==="matrix")return e}catch{}return null}readSystemPref(){try{return this.doc.defaultView?.matchMedia(T).matches??!1}catch{return!1}}ensureMatrixFont(){if(this.doc.getElementById(E))return;let e=this.doc.head;if(!e)return;let a=this.doc.createElement("link");a.id=E,a.rel="stylesheet",a.href=R,e.appendChild(a)}applyFavicon(e){let a=this.doc.querySelector(w);a&&a.getAttribute("href")!==e&&a.setAttribute("href",e)}subscribeToSystemPref(){let e=this.doc.defaultView;if(!e||typeof e.matchMedia!="function")return;let a=e.matchMedia(T),s=l=>{this.systemPrefersDark.set(l.matches)};a.addEventListener("change",s),this.destroyRef.onDestroy(()=>a.removeEventListener("change",s))}static \u0275fac=function(a){return new(a||t)};static \u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"})};export{b as a,v as b,F as c,S as d,x as e};
@@ -1 +0,0 @@
1
- import{e as bt,x as je,z as Ge}from"./chunk-KVWYVO6I.js";import{$a as mt,Aa as pt,Hb as vt,I as me,Ib as _t,Ja as E,L as st,Ma as k,N as ae,Na as M,Oa as ut,Qa as G,Ra as U,S as lt,Sa as F,Sb as g,T as ct,Ta as P,Ua as O,Va as se,Wa as w,Wb as D,Xa as N,Ya as le,ca as be,cb as ft,da as dt,ed as q,fb as gt,fd as Y,gb as h,ic as ht,na as u,rb as yt,sb as Q,ub as Be,va as A,vb as I,wb as T,xb as xe}from"./chunk-UVVXMEZT.js";import{d as at}from"./chunk-VB56BUGO.js";var Ie="sm-debug-slots",rn="debug-slots",an="is-debug-slots",we=class e{visible=be(!1);constructor(){this.visible.set(this.resolveInitial()),dt(()=>{let t=this.visible();document.documentElement.classList.toggle(an,t)})}toggle(){let t=!this.visible();this.visible.set(t);try{localStorage.setItem(Ie,t?"1":"0")}catch{}}resolveInitial(){let n=new URLSearchParams(window.location.search).get(rn);if(n==="1"||n==="true"){try{localStorage.setItem(Ie,"1")}catch{}return!0}if(n==="0"||n==="false"){try{localStorage.setItem(Ie,"0")}catch{}return!1}try{return localStorage.getItem(Ie)==="1"}catch{return!1}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=me({token:e,factory:e.\u0275fac,providedIn:"root"})};var Ce=class e{registry=be({});setRegistry(t){t&&this.registry.set(t)}get(t){return this.registry()[t]}all(){return this.registry()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=me({token:e,factory:e.\u0275fac,providedIn:"root"})};function X(e){return typeof e=="object"&&e!==null}function oe(e,t){return X(e)&&Array.isArray(e[t])}function Ne(e,t){return X(e)&&typeof e[t]=="string"}var B={panelHeader:"Plugin contributions",panelCount:e=>`${e} contribution${e===1?"":"s"}`,emptyDefault:"No contributions for this node.",rendererInvalid:"Contribution data failed schema validation.",rendererUnknownSlot:e=>`Unknown slot: ${e}. Update the UI to a newer catalog version.`,overflowBadge:e=>`+${e}`,overflowTooltip:e=>`Hidden: ${e}`,recordsCell:{boolTrue:"yes",boolFalse:"no"}};var sn=(e,t)=>t.label;function ln(e,t){if(e&1&&(w(0,"h5",1),I(1),N()),e&2){let n=h();u(),T(n.label())}}function cn(e,t){if(e&1&&(w(0,"p",2),I(1),N()),e&2){let n=h();u(),T(n.emptyText())}}function dn(e,t){if(e&1&&(w(0,"li",4)(1,"span",5),I(2),N(),w(3,"span",6),le(4,"span",7),N(),w(5,"span",8),I(6),N()()),e&2){let n=t.$implicit,o=h(2);E("title",n.tooltip??""),u(2),T(n.label),u(2),yt("width",o.percent(n.value),"%"),u(2),T(n.value)}}function pn(e,t){if(e&1&&(w(0,"ul",3),G(1,dn,7,5,"li",4,sn),N()),e&2){let n=h();u(),U(n.entries())}}var Te=class e{inputs=D.required();typed=g(()=>{let t=this.inputs().payload;return X(t)?oe(t,"entries")?t:{entries:[]}:{entries:[]}});entries=g(()=>this.typed().entries??[]);label=g(()=>this.inputs().label);emptyText=g(()=>this.inputs().emptyText??B.emptyDefault);maxValue=g(()=>this.entries().reduce((n,o)=>o.value>n?o.value:n,0));percent(t){let n=this.maxValue();return n===0?0:Math.round(t/n*100)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-breakdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-breakdown"],[1,"vc-breakdown__header"],[1,"vc-breakdown__empty"],[1,"vc-breakdown__rows"],[1,"vc-breakdown__row"],[1,"vc-breakdown__label"],[1,"vc-breakdown__bar-track"],["aria-hidden","true",1,"vc-breakdown__bar"],[1,"vc-breakdown__value"]],template:function(n,o){n&1&&(w(0,"section",0),k(1,ln,2,1,"h5",1),k(2,cn,2,1,"p",2)(3,pn,3,0,"ul",3),N()),n&2&&(E("data-testid","renderer-node-breakdown"),u(),M(o.label()?1:-1),u(),M(o.entries().length===0?2:3))},styles:[".vc-breakdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-breakdown__rows[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.25rem}.vc-breakdown__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(4rem,.4fr) 1fr 3rem;align-items:center;gap:.5rem;font-size:.85rem}.vc-breakdown__label[_ngcontent-%COMP%]{color:var(--p-surface-700);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vc-breakdown__bar-track[_ngcontent-%COMP%]{background:var(--p-surface-100);border-radius:var(--sm-radius-md);height:.625rem;overflow:hidden}.vc-breakdown__bar[_ngcontent-%COMP%]{display:block;height:100%;background:var(--p-primary-500)}.vc-breakdown__value[_ngcontent-%COMP%]{text-align:right;color:var(--p-surface-600)}.vc-breakdown__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function un(e,t){if(e&1&&(w(0,"span",1),I(1),N()),e&2){let n=h(),o=h();Be(o.hostClass()),u(),T(n.text)}}function mn(e,t){if(e&1&&le(0,"i",1),e&2){let n=h(),o=h();Be(o.hostClass()+" "+n.cls)}}function fn(e,t){e&1&&k(0,un,2,3,"span",0)(1,mn,1,2,"i",0),e&2&&M(t.kind==="emoji"?0:1)}function gn(e){if(!e)return null;let t=e.trim();if(t.length===0)return null;let n=t.codePointAt(0)??0;if(!(n>=65&&n<=90||n>=97&&n<=122))return{kind:"emoji",text:t};if(/^pi pi-[a-z0-9-]+$/.test(t))return{kind:"pi",cls:t};if(/^pi-[a-z0-9-]+$/.test(t))return{kind:"pi",cls:`pi ${t}`};if(/^fa-(?:solid|regular|brands) fa-[a-z0-9-]+$/.test(t))return{kind:"fa",cls:t};if(/^fa-[a-z0-9-]+$/.test(t)){let r=t.slice(3);return r==="solid"||r==="regular"||r==="brands"||r.includes("fa-")?null:{kind:"fa",cls:`fa-solid ${t}`}}return null}var te=class e{icon=D(void 0);hostClass=D("");resolved=g(()=>{let t=this.icon(),n=gn(t);return t&&!n&&console.warn(`[sm-icon] Invalid icon string "${t}". Expected emoji, pi-foo, pi pi-foo, fa-{solid|regular|brands} fa-foo, or fa-foo.`),n});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-icon"]],inputs:{icon:[1,"icon"],hostClass:[1,"hostClass"]},decls:1,vars:1,consts:[["aria-hidden","true",3,"class"],["aria-hidden","true"]],template:function(n,o){if(n&1&&k(0,fn,2,1),n&2){let r;M((r=o.resolved())?0:-1,r)}},styles:["[_nghost-%COMP%] i[_ngcontent-%COMP%], [_nghost-%COMP%] span[_ngcontent-%COMP%]{font-size:inherit;line-height:inherit}[_nghost-%COMP%] i[_ngcontent-%COMP%]{transform:translateY(1px)}"],changeDetection:0})};function yn(e,t){if(e&1&&(P(0,"span",3),I(1),O()),e&2){let n=h();E("aria-label",n.ariaLabel()),u(),T(n.value())}}var ce=class e{inputs=D.required();typed=g(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{value:0}:t});value=g(()=>this.typed().value);icon=g(()=>this.inputs().icon);severity=g(()=>this.typed().severity);resolvedTooltip=g(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=g(()=>this.inputs().label??"");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-counter"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-counter",3,"pTooltip"],[1,"vc-counter__icon"],[3,"icon"],[1,"vc-counter__value"]],template:function(n,o){n&1&&(P(0,"span",0)(1,"span",1),se(2,"sm-icon",2),O(),k(3,yn,2,2,"span",3),O()),n&2&&(Q("vc-counter--info",o.severity()==="info")("vc-counter--warn",o.severity()==="warn")("vc-counter--success",o.severity()==="success")("vc-counter--danger",o.severity()==="danger"),F("pTooltip",o.resolvedTooltip()),E("data-testid","renderer-node-counter"),u(2),F("icon",o.icon()),u(),M(o.value()>0?3:-1))},dependencies:[Y,q,te],styles:[".vc-counter[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1}.vc-counter__icon[_ngcontent-%COMP%]{font-size:.6rem;line-height:1;display:block}.vc-counter__value[_ngcontent-%COMP%]{font-weight:600;color:var(--p-text-color);line-height:1;display:block}.vc-counter--info[_ngcontent-%COMP%], .vc-counter--info[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-counter--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn);opacity:.85}.vc-counter--warn[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-counter--success[_ngcontent-%COMP%], .vc-counter--success[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-counter--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error);opacity:.85}.vc-counter--danger[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})};var vn=(e,t)=>t.key;function _n(e,t){if(e&1&&(P(0,"h5",1),I(1),O()),e&2){let n=h();u(),T(n.label())}}function hn(e,t){if(e&1&&(P(0,"p",2),I(1),O()),e&2){let n=h();u(),T(n.emptyText())}}function bn(e,t){if(e&1&&(P(0,"dt",4),I(1),O(),P(2,"dd"),I(3),O()),e&2){let n=t.$implicit,o=h(2);F("pTooltip",n.tooltip??""),u(),T(n.key),u(2),T(o.formatValue(n.value))}}function xn(e,t){if(e&1&&(P(0,"dl",3),G(1,bn,4,3,null,null,vn),O()),e&2){let n=h();u(),U(n.entries())}}var ke=class e{inputs=D.required();typed=g(()=>{let t=this.inputs().payload;return X(t)?oe(t,"entries")?t:{entries:[]}:{entries:[]}});entries=g(()=>this.typed().entries??[]);label=g(()=>this.inputs().label);emptyText=g(()=>this.inputs().emptyText??B.emptyDefault);formatValue(t){return t==null?"\xB7":typeof t=="boolean"?t?"true":"false":String(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-key-values"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-kv"],[1,"vc-kv__header"],[1,"vc-kv__empty"],[1,"vc-kv__list"],[3,"pTooltip"]],template:function(n,o){n&1&&(P(0,"section",0),k(1,_n,2,1,"h5",1),k(2,hn,2,1,"p",2)(3,xn,3,0,"dl",3),O()),n&2&&(E("data-testid","renderer-node-key-values"),u(),M(o.label()?1:-1),u(),M(o.entries().length===0?2:3))},dependencies:[Y,q],styles:[".vc-kv__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-kv__list[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(6rem,max-content) 1fr;gap:.25rem .75rem;margin:0;font-size:.85rem}.vc-kv__list[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{color:var(--p-surface-600);font-weight:500}.vc-kv__list[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{color:var(--p-surface-800);margin:0;word-break:break-word}.vc-kv__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};var Ue=class e{router=ae(bt);open(t){this.router.navigate(["/graph"],{queryParams:{path:t}})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=me({token:e,factory:e.\u0275fac,providedIn:"root"})},xt=new st("NODE_OPEN_INTENT",{providedIn:"root",factory:()=>ae(Ue)});var In=(e,t)=>t.path;function wn(e,t){if(e&1&&(w(0,"h5",1),I(1),N()),e&2){let n=h();u(),T(n.label())}}function Cn(e,t){if(e&1&&(w(0,"p",2),I(1),N()),e&2){let n=h();u(),T(n.emptyText())}}function Nn(e,t){if(e&1&&(w(0,"span",5),I(1),N()),e&2){let n=h().$implicit;u(),T(n.kind)}}function Tn(e,t){if(e&1){let n=ft();w(0,"li")(1,"button",4),gt("click",function(){let r=lt(n).$implicit,i=h(2);return ct(i.onOpenPath(r.path))}),k(2,Nn,2,1,"span",5),w(3,"span",6),I(4),N()()()}if(e&2){let n=t.$implicit;u(2),M(n.kind?2:-1),u(2),T(n.label??n.path)}}function kn(e,t){if(e&1&&(w(0,"ul",3),G(1,Tn,5,2,"li",null,In),N()),e&2){let n=h();u(),U(n.entries())}}var Me=class e{openIntent=ae(xt);inputs=D.required();typed=g(()=>{let t=this.inputs().payload;return X(t)?oe(t,"entries")?t:{entries:[]}:{entries:[]}});entries=g(()=>this.typed().entries??[]);label=g(()=>this.inputs().label);emptyText=g(()=>this.inputs().emptyText??B.emptyDefault);onOpenPath(t){this.openIntent.open(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-link-list"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-links"],[1,"vc-links__header"],[1,"vc-links__empty"],[1,"vc-links__list"],["type","button",1,"vc-links__btn",3,"click"],[1,"vc-links__kind"],[1,"vc-links__label"]],template:function(n,o){n&1&&(w(0,"section",0),k(1,wn,2,1,"h5",1),k(2,Cn,2,1,"p",2)(3,kn,3,0,"ul",3),N()),n&2&&(E("data-testid","renderer-node-link-list"),u(),M(o.label()?1:-1),u(),M(o.entries().length===0?2:3))},styles:[".vc-links__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-links__list[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.125rem;font-size:.85rem}.vc-links__btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;background:transparent;border:0;padding:.25rem .5rem;border-radius:var(--sm-radius-md);color:var(--p-primary-600);cursor:pointer;text-align:left;width:100%}.vc-links__btn[_ngcontent-%COMP%]:hover{background:var(--p-surface-100)}.vc-links__kind[_ngcontent-%COMP%]{color:var(--p-surface-500);font-family:var(--p-font-family-mono);font-size:.75rem}.vc-links__label[_ngcontent-%COMP%]{word-break:break-all}.vc-links__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};var It=(e,t)=>t.key;function Mn(e,t){if(e&1&&(w(0,"h5",1),I(1),N()),e&2){let n=h();u(),T(n.label())}}function Sn(e,t){if(e&1&&(w(0,"p",2),I(1),N()),e&2){let n=h();u(),T(n.emptyText())}}function En(e,t){if(e&1&&(w(0,"th"),I(1),N()),e&2){let n=t.$implicit;u(),T(n.label)}}function Dn(e,t){if(e&1&&le(0,"i",4),e&2){let n=h(4);E("aria-label",n.texts.boolTrue)}}function Pn(e,t){if(e&1&&le(0,"i",5),e&2){let n=h(4);E("aria-label",n.texts.boolFalse)}}function On(e,t){}function An(e,t){if(e&1&&I(0),e&2){let n=h().$implicit,o=h().$implicit,r=h(2);xe(" ",r.cellText(o[n.key])," ")}}function Ln(e,t){if(e&1&&(w(0,"td"),k(1,Dn,1,1,"i",4)(2,Pn,1,1,"i",5)(3,On,0,0)(4,An,1,1),N()),e&2){let n,o=t.$implicit,r=h().$implicit,i=h(2);u(),M((n=i.cellKind(r[o.key]))==="bool-true"?1:n==="bool-false"?2:n==="empty"?3:4)}}function Rn(e,t){if(e&1&&(w(0,"tr"),G(1,Ln,5,1,"td",null,It),N()),e&2){let n=h(2);u(),U(n.columns())}}function Fn(e,t){if(e&1&&(w(0,"table",3)(1,"thead")(2,"tr"),G(3,En,2,1,"th",null,It),N()(),w(5,"tbody"),G(6,Rn,3,0,"tr",null,ut),N()()),e&2){let n=h();u(3),U(n.columns()),u(3),U(n.rows())}}var Se=class e{inputs=D.required();typed=g(()=>{let t=this.inputs().payload;return X(t)?!oe(t,"columns")||!oe(t,"rows")?{columns:[],rows:[]}:t:{columns:[],rows:[]}});columns=g(()=>this.typed().columns??[]);rows=g(()=>this.typed().rows??[]);label=g(()=>this.inputs().label);emptyText=g(()=>this.inputs().emptyText??B.emptyDefault);texts=B.recordsCell;cellKind(t){return t==null?"empty":typeof t=="boolean"?t?"bool-true":"bool-false":"text"}cellText(t){return t==null?"":String(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-records"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-records"],[1,"vc-records__header"],[1,"vc-records__empty"],[1,"vc-records__table"],["role","img",1,"pi","pi-check","vc-records__bool","vc-records__bool--true"],["role","img",1,"pi","pi-minus","vc-records__bool","vc-records__bool--false"]],template:function(n,o){n&1&&(w(0,"section",0),k(1,Mn,2,1,"h5",1),k(2,Sn,2,1,"p",2)(3,Fn,8,0,"table",3),N()),n&2&&(E("data-testid","renderer-node-records"),u(),M(o.label()?1:-1),u(),M(o.rows().length===0?2:3))},styles:[".vc-records__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-records__table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.85rem}.vc-records__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left;padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-200);color:var(--p-surface-700);font-weight:600}.vc-records__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-100);color:var(--p-surface-800);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:16rem}.vc-records__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}.vc-records__bool[_ngcontent-%COMP%]{font-size:.9rem;line-height:1}.vc-records__bool--true[_ngcontent-%COMP%]{color:var(--p-primary-color)}.vc-records__bool--false[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}"],changeDetection:0})};function $n(e,t){if(e&1&&(w(0,"h5",1),I(1),N()),e&2){let n=h();u(),T(n.label())}}function Vn(e,t){if(e&1&&(w(0,"p",2),I(1),N()),e&2){let n=h();u(),T(n.emptyText())}}function zn(e,t){if(e&1&&(w(0,"pre",3),I(1),N()),e&2){let n=h();u(),T(n.markdown())}}var Ee=class e{inputs=D.required();typed=g(()=>{let t=this.inputs().payload;return X(t)?Ne(t,"markdown")?t:{markdown:""}:{markdown:""}});markdown=g(()=>this.typed().markdown??"");label=g(()=>this.inputs().label);emptyText=g(()=>this.inputs().emptyText??B.emptyDefault);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-markdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-markdown"],[1,"vc-markdown__header"],[1,"vc-markdown__empty"],[1,"vc-markdown__body"]],template:function(n,o){n&1&&(w(0,"section",0),k(1,$n,2,1,"h5",1),k(2,Vn,2,1,"p",2)(3,zn,2,1,"pre",3),N()),n&2&&(E("data-testid","renderer-node-markdown"),u(),M(o.label()?1:-1),u(),M(o.markdown()?3:2))},styles:[".vc-markdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-markdown__body[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-800);background:var(--p-surface-50);padding:.5rem;border-radius:var(--sm-radius-md);white-space:pre-wrap;word-break:break-word;margin:0;max-height:12rem;overflow:auto}.vc-markdown__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function Bn(e,t){if(e&1&&(P(0,"span",1),I(1),O()),e&2){let n=h();u(),T(n.icon())}}var De=class e{inputs=D.required();typed=g(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{label:""}:t});label=g(()=>this.typed().label||"");icon=g(()=>this.inputs().icon);severity=g(()=>this.typed().severity);resolvedTooltip=g(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-tag"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-tag",3,"pTooltip"],["aria-hidden","true",1,"vc-tag__icon"],[1,"vc-tag__label"]],template:function(n,o){n&1&&(P(0,"span",0),k(1,Bn,2,1,"span",1),P(2,"span",2),I(3),O()()),n&2&&(Q("vc-tag--info",o.severity()==="info")("vc-tag--warn",o.severity()==="warn")("vc-tag--success",o.severity()==="success")("vc-tag--danger",o.severity()==="danger"),F("pTooltip",o.resolvedTooltip()),E("data-testid","renderer-node-tag"),u(),M(o.icon()?1:-1),u(2),T(o.label()))},dependencies:[Y,q],styles:[".vc-tag[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1}.vc-tag__icon[_ngcontent-%COMP%]{font-size:.85em;line-height:1;display:block}.vc-tag__label[_ngcontent-%COMP%]{font-weight:500;line-height:1;display:block}.vc-tag--info[_ngcontent-%COMP%]{background:var(--sm-severity-info-bg);color:var(--sm-severity-info);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-tag--warn[_ngcontent-%COMP%]{background:var(--sm-severity-warn-bg);color:var(--sm-severity-warn);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-tag--success[_ngcontent-%COMP%]{background:var(--sm-severity-success-bg);color:var(--sm-severity-success);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-tag--danger[_ngcontent-%COMP%]{background:var(--sm-severity-error-bg);color:var(--sm-severity-error);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}"],changeDetection:0})};var jn=()=>[],wt=(e,t)=>t.label;function Gn(e,t){if(e&1&&(w(0,"h5",1),I(1),N()),e&2){let n=h();u(),T(n.label())}}function Un(e,t){if(e&1&&(w(0,"p",2),I(1),N()),e&2){let n=h();u(),T(n.emptyText())}}function Kn(e,t){if(e&1&&(w(0,"span",5),I(1),N()),e&2){let n=h().$implicit;u(),T(n.marker)}}function Hn(e,t){if(e&1&&(w(0,"span",5),I(1),N()),e&2){let n=h().$implicit;u(),T(n.marker)}}function qn(e,t){if(e&1&&(w(0,"li",4),k(1,Hn,2,1,"span",5),w(2,"span",6),I(3),N()()),e&2){let n=t.$implicit;E("title",n.tooltip??""),u(),M(n.marker?1:-1),u(2),T(n.label)}}function Yn(e,t){if(e&1&&(w(0,"ul",7),G(1,qn,4,3,"li",4,wt),N()),e&2){let n=h().$implicit;u(),U(n.children)}}function Xn(e,t){if(e&1&&(w(0,"li",4),k(1,Kn,2,1,"span",5),w(2,"span",6),I(3),N(),k(4,Yn,3,0,"ul",7),N()),e&2){let n=t.$implicit;E("title",n.tooltip??""),u(),M(n.marker?1:-1),u(2),T(n.label),u(),M(n.children&&n.children.length>0?4:-1)}}function Wn(e,t){if(e&1&&(w(0,"ul",3),G(1,Xn,5,4,"li",4,wt),N()),e&2){let n=h();u(),U(n.root().children??vt(0,jn))}}var Pe=class e{inputs=D.required();root=g(()=>{let t=this.inputs().payload;return X(t)?Ne(t,"label")?t.children!==void 0&&!Array.isArray(t.children)?{label:""}:t:{label:""}:{label:""}});rootIsEmpty=g(()=>{let t=this.root();return!t.children||t.children.length===0});label=g(()=>this.inputs().label);emptyText=g(()=>this.inputs().emptyText??B.emptyDefault);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-tree"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-tree"],[1,"vc-tree__header"],[1,"vc-tree__empty"],["role","tree",1,"vc-tree__list"],["role","treeitem"],["aria-hidden","true",1,"vc-tree__marker"],[1,"vc-tree__label"],["role","group",1,"vc-tree__list"]],template:function(n,o){n&1&&(w(0,"section",0),k(1,Gn,2,1,"h5",1),k(2,Un,2,1,"p",2)(3,Wn,3,1,"ul",3),N()),n&2&&(E("data-testid","renderer-node-tree"),u(),M(o.label()?1:-1),u(),M(o.rootIsEmpty()?2:3))},styles:[".vc-tree__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-surface-700);margin:0 0 .5rem}.vc-tree__list[_ngcontent-%COMP%]{list-style:none;padding-left:1rem;margin:0;font-size:.85rem}.vc-tree__list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{padding:.125rem 0}.vc-tree__marker[_ngcontent-%COMP%]{margin-right:.25rem;opacity:.7}.vc-tree__label[_ngcontent-%COMP%]{color:var(--p-surface-800)}.vc-tree__empty[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.85rem;margin:0}"],changeDetection:0})};function Qn(e,t){if(e&1&&(P(0,"span",2),I(1),O()),e&2){let n=h();u(),T(n.formattedCount())}}var Oe=class e{inputs=D.required();typed=g(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{}:t});icon=g(()=>this.typed().icon??this.inputs().icon);severity=g(()=>this.typed().severity);count=g(()=>this.typed().count??null);resolvedTooltip=g(()=>this.typed().tooltip??this.inputs().tooltip??"");formattedCount=g(()=>{let t=this.count();return t===null?"":t>=99?"99+":String(t)});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-alert"]],inputs:{inputs:[1,"inputs"]},decls:3,vars:12,consts:[[1,"vc-alert",3,"pTooltip"],["hostClass","vc-alert__icon",3,"icon"],[1,"vc-alert__count"]],template:function(n,o){n&1&&(P(0,"span",0),se(1,"sm-icon",1),k(2,Qn,2,1,"span",2),O()),n&2&&(Q("vc-alert--info",o.severity()==="info")("vc-alert--warn",o.severity()==="warn")("vc-alert--success",o.severity()==="success")("vc-alert--danger",o.severity()==="danger"),F("pTooltip",o.resolvedTooltip()),E("data-testid","renderer-node-alert"),u(),F("icon",o.icon()),u(),M(o.count()!==null?2:-1))},dependencies:[Y,q,te],styles:[".vc-alert[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:.125rem;min-width:1.1rem;min-height:1.1rem;font-size:.85rem;color:var(--p-surface-700)}.vc-alert--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-alert--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-alert--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-alert--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})};var Ae=class e{inputs=D.required();typed=g(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{}:t});icon=g(()=>this.typed().icon??this.inputs().icon);severity=g(()=>this.typed().severity);resolvedTooltip=g(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=g(()=>this.inputs().label??"");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-icon"]],inputs:{inputs:[1,"inputs"]},decls:2,vars:12,consts:[[1,"vc-icon",3,"pTooltip"],["hostClass","vc-icon__glyph",3,"icon"]],template:function(n,o){n&1&&(P(0,"span",0),se(1,"sm-icon",1),O()),n&2&&(Q("vc-icon--info",o.severity()==="info")("vc-icon--warn",o.severity()==="warn")("vc-icon--success",o.severity()==="success")("vc-icon--danger",o.severity()==="danger"),F("pTooltip",o.resolvedTooltip()),E("aria-label",o.ariaLabel())("data-testid","renderer-node-icon"),u(),F("icon",o.icon()))},dependencies:[Y,q,te],styles:[".vc-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;line-height:1;width:22px;height:22px}.vc-icon__glyph[_ngcontent-%COMP%]{font-size:.7rem;line-height:1;display:block}.vc-icon--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-icon--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-icon--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-icon--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})};function Jn(e,t){if(e&1&&(P(0,"span",3),I(1),O()),e&2){let n=h();u(),T(n.label())}}var Le=class e{inputs=D.required();typed=g(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{value:""}:t});value=g(()=>String(this.typed().value??""));label=g(()=>this.typed().label??this.inputs().label);icon=g(()=>this.inputs().icon);severity=g(()=>this.typed().severity);resolvedTooltip=g(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-scope-stat"]],inputs:{inputs:[1,"inputs"]},decls:5,vars:13,consts:[[1,"vc-stat",3,"pTooltip"],["hostClass","vc-stat__icon",3,"icon"],[1,"vc-stat__value"],[1,"vc-stat__label"]],template:function(n,o){n&1&&(P(0,"span",0),se(1,"sm-icon",1),P(2,"span",2),I(3),O(),k(4,Jn,2,1,"span",3),O()),n&2&&(Q("vc-stat--info",o.severity()==="info")("vc-stat--warn",o.severity()==="warn")("vc-stat--success",o.severity()==="success")("vc-stat--danger",o.severity()==="danger"),F("pTooltip",o.resolvedTooltip()),E("data-testid","renderer-scope-stat"),u(),F("icon",o.icon()),u(2),T(o.value()),u(),M(o.label()?4:-1))},dependencies:[Y,q,te],styles:[".vc-stat[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:.75rem;font-size:.85rem;background:var(--p-surface-100);color:var(--p-surface-800)}.vc-stat__label[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.8rem}.vc-stat--info[_ngcontent-%COMP%]{background:var(--p-blue-100);color:var(--p-blue-700)}.vc-stat--warn[_ngcontent-%COMP%]{background:var(--p-yellow-100);color:var(--p-yellow-800)}.vc-stat--success[_ngcontent-%COMP%]{background:var(--p-green-100);color:var(--p-green-700)}.vc-stat--danger[_ngcontent-%COMP%]{background:var(--p-red-100);color:var(--p-red-700)}"],changeDetection:0})};var Ke={"card.title.right":Ae,"card.subtitle.left":ce,"card.footer.left":ce,"card.footer.right":ce,"graph.node.alert":Oe,"inspector.header.badge.counter":ce,"inspector.header.badge.tag":De,"inspector.body.panel.breakdown":Te,"inspector.body.panel.records":Se,"inspector.body.panel.tree":Pe,"inspector.body.panel.key-values":ke,"inspector.body.panel.link-list":Me,"inspector.body.panel.markdown":Ee,"topbar.nav.start":Le};function Ct(e){return e in Ke}var de={"topbar.nav.start":{id:"topbar.nav.start",cardinality:"multi",maxItems:3,order:"alphabetical",strategy:"append"},"inspector.header.badge.counter":{id:"inspector.header.badge.counter",cardinality:"multi",maxItems:4,order:"alphabetical",strategy:"append"},"inspector.header.badge.tag":{id:"inspector.header.badge.tag",cardinality:"multi",maxItems:4,order:"alphabetical",strategy:"append"},"inspector.body.panel.breakdown":{id:"inspector.body.panel.breakdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.records":{id:"inspector.body.panel.records",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.tree":{id:"inspector.body.panel.tree",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.key-values":{id:"inspector.body.panel.key-values",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.link-list":{id:"inspector.body.panel.link-list",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.markdown":{id:"inspector.body.panel.markdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"card.footer.left":{id:"card.footer.left",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.footer.right":{id:"card.footer.right",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.subtitle.left":{id:"card.subtitle.left",cardinality:"multi",maxItems:3,order:"priority",strategy:"append",respectSeverity:!0},"card.title.right":{id:"card.title.right",cardinality:"multi",maxItems:2,order:"priority",strategy:"append",respectSeverity:!0},"graph.node.alert":{id:"graph.node.alert",cardinality:"multi",maxItems:1,order:"severity",strategy:"append",showOverflowBadge:!1}};var Zn=e=>({inputs:e}),eo=(e,t)=>t.qualifiedId;function to(e,t){e&1&&mt(0)}function no(e,t){if(e&1&&(P(0,"span",1),pt(1,to,1,0,"ng-container",3),O()),e&2){let n=t.$implicit,o=h(2);E("data-testid","contribution-"+n.qualifiedId.replaceAll("/","-")),u(),F("ngComponentOutlet",o.rendererFor(n.slot))("ngComponentOutletInputs",_t(3,Zn,n.rendererInputs))}}function oo(e,t){if(e&1&&(P(0,"span",2),I(1),O()),e&2){let n=h(2);F("pTooltip",n.overflowTooltip()),u(),xe(" ",n.overflowBadge()," ")}}function ro(e,t){if(e&1&&(P(0,"span",0),G(1,no,2,5,"span",1,eo),k(3,oo,2,2,"span",2),O()),e&2){let n=h();E("data-testid","view-contributions-host-"+n.testidSuffix()),u(),U(n.visible()),u(2),M(n.overflowCount()>0&&n.showOverflowBadge()?3:-1)}}var Nt=class e{slot=D.required();node=D(null);debugSlots=ae(we);debugVisible=this.debugSlots.visible;testidSuffix=g(()=>this.slot().replaceAll(".","-"));registry=ae(Ce);dispatched=g(()=>{let t=this.node();if(!t)return[];let n=t.contributions??[];if(n.length===0)return[];let o=this.slot(),r=n.filter(i=>i.slot===o).filter(i=>Ct(i.slot));return this.sortBySlotOrder(r,o).map(i=>({qualifiedId:`${i.pluginId}/${i.extensionId}/${i.contributionId}`,slot:i.slot,rendererInputs:this.buildInputs(i,o)}))});visible=g(()=>{let t=this.dispatched(),n=de[this.slot()].maxItems;return t.slice(0,n)});overflowCount=g(()=>{let t=this.dispatched(),n=de[this.slot()].maxItems;return Math.max(0,t.length-n)});showOverflowBadge=g(()=>de[this.slot()].showOverflowBadge!==!1);overflowBadge=g(()=>B.overflowBadge(this.overflowCount()));overflowTooltip=g(()=>{let t=this.dispatched(),n=de[this.slot()].maxItems,o=t.slice(n).map(r=>r.qualifiedId).join(", ");return B.overflowTooltip(o)});rendererFor(t){return Ke[t]}buildInputs(t,n){let o=`${t.pluginId}/${t.extensionId}/${t.contributionId}`,r=this.registry.get(o),i=de[n].respectSeverity!==!1,l=t.payload;if(!i&&typeof l=="object"&&l!==null&&"severity"in l){let c=l,{severity:s}=c;l=at(c,["severity"])}let a={pluginId:t.pluginId,extensionId:t.extensionId,contributionId:t.contributionId,payload:l};return r?.label&&(a.label=r.label),r?.tooltip&&(a.tooltip=r.tooltip),r?.icon&&(a.icon=r.icon),r?.emptyText&&(a.emptyText=r.emptyText),a}sortBySlotOrder(t,n){let o=de[n].order;return o==="fifo"?t.slice():o==="priority"?t.slice().sort((r,i)=>{let l=this.priorityFor(r),a=this.priorityFor(i);return l!==a?l-a:He(r,i)}):o==="severity"?t.slice().sort((r,i)=>{let l=Tt(r),a=Tt(i);return l!==a?a-l:He(r,i)}):t.slice().sort(He)}priorityFor(t){let n=`${t.pluginId}/${t.extensionId}/${t.contributionId}`;return this.registry.get(n)?.priority??100}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-view-contributions-host"]],hostVars:3,hostBindings:function(n,o){n&2&&(E("data-debug-slot",o.debugVisible()?o.slot():null),Q("sm-debug-slot",o.debugVisible()))},inputs:{slot:[1,"slot"],node:[1,"node"]},decls:1,vars:1,consts:[[1,"vch"],[1,"vch__slot"],["data-testid","view-contributions-host-overflow",1,"vch__overflow",3,"pTooltip"],[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(n,o){n&1&&k(0,ro,4,2,"span",0),n&2&&M(o.visible().length>0||o.overflowCount()>0?0:-1)},dependencies:[ht,Y,q],styles:[".vch[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.7rem;flex-wrap:wrap}.vch__slot[_ngcontent-%COMP%]{display:inline-flex}.vch__overflow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:.75rem;background:var(--p-surface-100);color:var(--p-surface-600);font-size:.8rem;cursor:default}"],changeDetection:0})};function He(e,t){let n=`${e.pluginId}/${e.extensionId}/${e.contributionId}`,o=`${t.pluginId}/${t.extensionId}/${t.contributionId}`;return n<o?-1:n>o?1:0}function Tt(e){let t=e.payload;if(typeof t!="object"||t===null)return 0;switch(t.severity){case"danger":return 4;case"warn":return 3;case"info":return 2;case"success":return 1;default:return 0}}function qe(e,t){var n,o=1;e==null&&(e=0),t==null&&(t=0);function r(){var i,l=n.length,a,c=0,s=0;for(i=0;i<l;++i)a=n[i],c+=a.x,s+=a.y;for(c=(c/l-e)*o,s=(s/l-t)*o,i=0;i<l;++i)a=n[i],a.x-=c,a.y-=s}return r.initialize=function(i){n=i},r.x=function(i){return arguments.length?(e=+i,r):e},r.y=function(i){return arguments.length?(t=+i,r):t},r.strength=function(i){return arguments.length?(o=+i,r):o},r}function kt(e){let t=+this._x.call(null,e),n=+this._y.call(null,e);return Mt(this.cover(t,n),t,n,e)}function Mt(e,t,n,o){if(isNaN(t)||isNaN(n))return e;var r,i=e._root,l={data:o},a=e._x0,c=e._y0,s=e._x1,m=e._y1,_,v,p,C,f,d,y,b;if(!i)return e._root=l,e;for(;i.length;)if((f=t>=(_=(a+s)/2))?a=_:s=_,(d=n>=(v=(c+m)/2))?c=v:m=v,r=i,!(i=i[y=d<<1|f]))return r[y]=l,e;if(p=+e._x.call(null,i.data),C=+e._y.call(null,i.data),t===p&&n===C)return l.next=i,r?r[y]=l:e._root=l,e;do r=r?r[y]=new Array(4):e._root=new Array(4),(f=t>=(_=(a+s)/2))?a=_:s=_,(d=n>=(v=(c+m)/2))?c=v:m=v;while((y=d<<1|f)===(b=(C>=v)<<1|p>=_));return r[b]=i,r[y]=l,e}function St(e){var t,n,o=e.length,r,i,l=new Array(o),a=new Array(o),c=1/0,s=1/0,m=-1/0,_=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(l[n]=r,a[n]=i,r<c&&(c=r),r>m&&(m=r),i<s&&(s=i),i>_&&(_=i));if(c>m||s>_)return this;for(this.cover(c,s).cover(m,_),n=0;n<o;++n)Mt(this,l[n],a[n],e[n]);return this}function Et(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,o=this._y0,r=this._x1,i=this._y1;if(isNaN(n))r=(n=Math.floor(e))+1,i=(o=Math.floor(t))+1;else{for(var l=r-n||1,a=this._root,c,s;n>e||e>=r||o>t||t>=i;)switch(s=(t<o)<<1|e<n,c=new Array(4),c[s]=a,a=c,l*=2,s){case 0:r=n+l,i=o+l;break;case 1:n=r-l,i=o+l;break;case 2:r=n+l,o=i-l;break;case 3:n=r-l,o=i-l;break}this._root&&this._root.length&&(this._root=a)}return this._x0=n,this._y0=o,this._x1=r,this._y1=i,this}function Dt(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Pt(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function z(e,t,n,o,r){this.node=e,this.x0=t,this.y0=n,this.x1=o,this.y1=r}function Ot(e,t,n){var o,r=this._x0,i=this._y0,l,a,c,s,m=this._x1,_=this._y1,v=[],p=this._root,C,f;for(p&&v.push(new z(p,r,i,m,_)),n==null?n=1/0:(r=e-n,i=t-n,m=e+n,_=t+n,n*=n);C=v.pop();)if(!(!(p=C.node)||(l=C.x0)>m||(a=C.y0)>_||(c=C.x1)<r||(s=C.y1)<i))if(p.length){var d=(l+c)/2,y=(a+s)/2;v.push(new z(p[3],d,y,c,s),new z(p[2],l,y,d,s),new z(p[1],d,a,c,y),new z(p[0],l,a,d,y)),(f=(t>=y)<<1|e>=d)&&(C=v[v.length-1],v[v.length-1]=v[v.length-1-f],v[v.length-1-f]=C)}else{var b=e-+this._x.call(null,p.data),S=t-+this._y.call(null,p.data),x=b*b+S*S;if(x<n){var L=Math.sqrt(n=x);r=e-L,i=t-L,m=e+L,_=t+L,o=p.data}}return o}function At(e){if(isNaN(m=+this._x.call(null,e))||isNaN(_=+this._y.call(null,e)))return this;var t,n=this._root,o,r,i,l=this._x0,a=this._y0,c=this._x1,s=this._y1,m,_,v,p,C,f,d,y;if(!n)return this;if(n.length)for(;;){if((C=m>=(v=(l+c)/2))?l=v:c=v,(f=_>=(p=(a+s)/2))?a=p:s=p,t=n,!(n=n[d=f<<1|C]))return this;if(!n.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(o=t,y=d)}for(;n.data!==e;)if(r=n,!(n=n.next))return this;return(i=n.next)&&delete n.next,r?(i?r.next=i:delete r.next,this):t?(i?t[d]=i:delete t[d],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(o?o[y]=n:this._root=n),this):(this._root=i,this)}function Lt(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function Rt(){return this._root}function Ft(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function $t(e){var t=[],n,o=this._root,r,i,l,a,c;for(o&&t.push(new z(o,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(o=n.node,i=n.x0,l=n.y0,a=n.x1,c=n.y1)&&o.length){var s=(i+a)/2,m=(l+c)/2;(r=o[3])&&t.push(new z(r,s,m,a,c)),(r=o[2])&&t.push(new z(r,i,m,s,c)),(r=o[1])&&t.push(new z(r,s,l,a,m)),(r=o[0])&&t.push(new z(r,i,l,s,m))}return this}function Vt(e){var t=[],n=[],o;for(this._root&&t.push(new z(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var r=o.node;if(r.length){var i,l=o.x0,a=o.y0,c=o.x1,s=o.y1,m=(l+c)/2,_=(a+s)/2;(i=r[0])&&t.push(new z(i,l,a,m,_)),(i=r[1])&&t.push(new z(i,m,a,c,_)),(i=r[2])&&t.push(new z(i,l,_,m,s)),(i=r[3])&&t.push(new z(i,m,_,c,s))}n.push(o)}for(;o=n.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function zt(e){return e[0]}function Bt(e){return arguments.length?(this._x=e,this):this._x}function jt(e){return e[1]}function Gt(e){return arguments.length?(this._y=e,this):this._y}function pe(e,t,n){var o=new Ye(t??zt,n??jt,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function Ye(e,t,n,o,r,i){this._x=e,this._y=t,this._x0=n,this._y0=o,this._x1=r,this._y1=i,this._root=void 0}function Ut(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var H=pe.prototype=Ye.prototype;H.copy=function(){var e=new Ye(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,o;if(!t)return e;if(!t.length)return e._root=Ut(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var r=0;r<4;++r)(o=t.source[r])&&(o.length?n.push({source:o,target:t.target[r]=new Array(4)}):t.target[r]=Ut(o));return e};H.add=kt;H.addAll=St;H.cover=Et;H.data=Dt;H.extent=Pt;H.find=Ot;H.remove=At;H.removeAll=Lt;H.root=Rt;H.size=Ft;H.visit=$t;H.visitAfter=Vt;H.x=Bt;H.y=Gt;function R(e){return function(){return e}}function ee(e){return(e()-.5)*1e-6}function io(e){return e.x+e.vx}function ao(e){return e.y+e.vy}function Xe(e){var t,n,o,r=1,i=1;typeof e!="function"&&(e=R(e==null?1:+e));function l(){for(var s,m=t.length,_,v,p,C,f,d,y=0;y<i;++y)for(_=pe(t,io,ao).visitAfter(a),s=0;s<m;++s)v=t[s],f=n[v.index],d=f*f,p=v.x+v.vx,C=v.y+v.vy,_.visit(b);function b(S,x,L,j,W){var $=S.data,Z=S.r,V=f+Z;if($){if($.index>v.index){var re=p-$.x-$.vx,ie=C-$.y-$.vy,ne=re*re+ie*ie;ne<V*V&&(re===0&&(re=ee(o),ne+=re*re),ie===0&&(ie=ee(o),ne+=ie*ie),ne=(V-(ne=Math.sqrt(ne)))/ne*r,v.vx+=(re*=ne)*(V=(Z*=Z)/(d+Z)),v.vy+=(ie*=ne)*V,$.vx-=re*(V=1-V),$.vy-=ie*V)}return}return x>p+V||j<p-V||L>C+V||W<C-V}}function a(s){if(s.data)return s.r=n[s.data.index];for(var m=s.r=0;m<4;++m)s[m]&&s[m].r>s.r&&(s.r=s[m].r)}function c(){if(t){var s,m=t.length,_;for(n=new Array(m),s=0;s<m;++s)_=t[s],n[_.index]=+e(_,s,t)}}return l.initialize=function(s,m){t=s,o=m,c()},l.iterations=function(s){return arguments.length?(i=+s,l):i},l.strength=function(s){return arguments.length?(r=+s,l):r},l.radius=function(s){return arguments.length?(e=typeof s=="function"?s:R(+s),c(),l):e},l}function so(e){return e.index}function Kt(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function We(e){var t=so,n=_,o,r=R(30),i,l,a,c,s,m=1;e==null&&(e=[]);function _(d){return 1/Math.min(a[d.source.index],a[d.target.index])}function v(d){for(var y=0,b=e.length;y<m;++y)for(var S=0,x,L,j,W,$,Z,V;S<b;++S)x=e[S],L=x.source,j=x.target,W=j.x+j.vx-L.x-L.vx||ee(s),$=j.y+j.vy-L.y-L.vy||ee(s),Z=Math.sqrt(W*W+$*$),Z=(Z-i[S])/Z*d*o[S],W*=Z,$*=Z,j.vx-=W*(V=c[S]),j.vy-=$*V,L.vx+=W*(V=1-V),L.vy+=$*V}function p(){if(l){var d,y=l.length,b=e.length,S=new Map(l.map((L,j)=>[t(L,j,l),L])),x;for(d=0,a=new Array(y);d<b;++d)x=e[d],x.index=d,typeof x.source!="object"&&(x.source=Kt(S,x.source)),typeof x.target!="object"&&(x.target=Kt(S,x.target)),a[x.source.index]=(a[x.source.index]||0)+1,a[x.target.index]=(a[x.target.index]||0)+1;for(d=0,c=new Array(b);d<b;++d)x=e[d],c[d]=a[x.source.index]/(a[x.source.index]+a[x.target.index]);o=new Array(b),C(),i=new Array(b),f()}}function C(){if(l)for(var d=0,y=e.length;d<y;++d)o[d]=+n(e[d],d,e)}function f(){if(l)for(var d=0,y=e.length;d<y;++d)i[d]=+r(e[d],d,e)}return v.initialize=function(d,y){l=d,s=y,p()},v.links=function(d){return arguments.length?(e=d,p(),v):e},v.id=function(d){return arguments.length?(t=d,v):t},v.iterations=function(d){return arguments.length?(m=+d,v):m},v.strength=function(d){return arguments.length?(n=typeof d=="function"?d:R(+d),C(),v):n},v.distance=function(d){return arguments.length?(r=typeof d=="function"?d:R(+d),f(),v):r},v}var lo={value:()=>{}};function qt(){for(var e=0,t=arguments.length,n={},o;e<t;++e){if(!(o=arguments[e]+"")||o in n||/[\s.]/.test(o))throw new Error("illegal type: "+o);n[o]=[]}return new Re(n)}function Re(e){this._=e}function co(e,t){return e.trim().split(/^|\s+/).map(function(n){var o="",r=n.indexOf(".");if(r>=0&&(o=n.slice(r+1),n=n.slice(0,r)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}Re.prototype=qt.prototype={constructor:Re,on:function(e,t){var n=this._,o=co(e+"",n),r,i=-1,l=o.length;if(arguments.length<2){for(;++i<l;)if((r=(e=o[i]).type)&&(r=po(n[r],e.name)))return r;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<l;)if(r=(e=o[i]).type)n[r]=Ht(n[r],e.name,t);else if(t==null)for(r in n)n[r]=Ht(n[r],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Re(e)},call:function(e,t){if((r=arguments.length-2)>0)for(var n=new Array(r),o=0,r,i;o<r;++o)n[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],o=0,r=i.length;o<r;++o)i[o].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)}};function po(e,t){for(var n=0,o=e.length,r;n<o;++n)if((r=e[n]).name===t)return r.value}function Ht(e,t,n){for(var o=0,r=e.length;o<r;++o)if(e[o].name===t){e[o]=lo,e=e.slice(0,o).concat(e.slice(o+1));break}return n!=null&&e.push({name:t,value:n}),e}var Qe=qt;var ge=0,ve=0,ye=0,Xt=1e3,Fe,_e,$e=0,ue=0,Ve=0,he=typeof performance=="object"&&performance.now?performance:Date,Wt=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function et(){return ue||(Wt(uo),ue=he.now()+Ve)}function uo(){ue=0}function Je(){this._call=this._time=this._next=null}Je.prototype=ze.prototype={constructor:Je,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?et():+n)+(t==null?0:+t),!this._next&&_e!==this&&(_e?_e._next=this:Fe=this,_e=this),this._call=e,this._time=n,Ze()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ze())}};function ze(e,t,n){var o=new Je;return o.restart(e,t,n),o}function Qt(){et(),++ge;for(var e=Fe,t;e;)(t=ue-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ge}function Yt(){ue=($e=he.now())+Ve,ge=ve=0;try{Qt()}finally{ge=0,fo(),ue=0}}function mo(){var e=he.now(),t=e-$e;t>Xt&&(Ve-=t,$e=e)}function fo(){for(var e,t=Fe,n,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Fe=n);_e=e,Ze(o)}function Ze(e){if(!ge){ve&&(ve=clearTimeout(ve));var t=e-ue;t>24?(e<1/0&&(ve=setTimeout(Yt,e-he.now()-Ve)),ye&&(ye=clearInterval(ye))):(ye||($e=he.now(),ye=setInterval(mo,Xt)),ge=1,Wt(Yt))}}function Jt(){let e=1;return()=>(e=(1664525*e+1013904223)%4294967296)/4294967296}function Zt(e){return e.x}function en(e){return e.y}var go=10,yo=Math.PI*(3-Math.sqrt(5));function tt(e){var t,n=1,o=.001,r=1-Math.pow(o,1/300),i=0,l=.6,a=new Map,c=ze(_),s=Qe("tick","end"),m=Jt();e==null&&(e=[]);function _(){v(),s.call("tick",t),n<o&&(c.stop(),s.call("end",t))}function v(f){var d,y=e.length,b;f===void 0&&(f=1);for(var S=0;S<f;++S)for(n+=(i-n)*r,a.forEach(function(x){x(n)}),d=0;d<y;++d)b=e[d],b.fx==null?b.x+=b.vx*=l:(b.x=b.fx,b.vx=0),b.fy==null?b.y+=b.vy*=l:(b.y=b.fy,b.vy=0);return t}function p(){for(var f=0,d=e.length,y;f<d;++f){if(y=e[f],y.index=f,y.fx!=null&&(y.x=y.fx),y.fy!=null&&(y.y=y.fy),isNaN(y.x)||isNaN(y.y)){var b=go*Math.sqrt(.5+f),S=f*yo;y.x=b*Math.cos(S),y.y=b*Math.sin(S)}(isNaN(y.vx)||isNaN(y.vy))&&(y.vx=y.vy=0)}}function C(f){return f.initialize&&f.initialize(e,m),f}return p(),t={tick:v,restart:function(){return c.restart(_),t},stop:function(){return c.stop(),t},nodes:function(f){return arguments.length?(e=f,p(),a.forEach(C),t):e},alpha:function(f){return arguments.length?(n=+f,t):n},alphaMin:function(f){return arguments.length?(o=+f,t):o},alphaDecay:function(f){return arguments.length?(r=+f,t):+r},alphaTarget:function(f){return arguments.length?(i=+f,t):i},velocityDecay:function(f){return arguments.length?(l=1-f,t):1-l},randomSource:function(f){return arguments.length?(m=f,a.forEach(C),t):m},force:function(f,d){return arguments.length>1?(d==null?a.delete(f):a.set(f,C(d)),t):a.get(f)},find:function(f,d,y){var b=0,S=e.length,x,L,j,W,$;for(y==null?y=1/0:y*=y,b=0;b<S;++b)W=e[b],x=f-W.x,L=d-W.y,j=x*x+L*L,j<y&&($=W,y=j);return $},on:function(f,d){return arguments.length>1?(s.on(f,d),t):s.on(f)}}}function nt(){var e,t,n,o,r=R(-30),i,l=1,a=1/0,c=.81;function s(p){var C,f=e.length,d=pe(e,Zt,en).visitAfter(_);for(o=p,C=0;C<f;++C)t=e[C],d.visit(v)}function m(){if(e){var p,C=e.length,f;for(i=new Array(C),p=0;p<C;++p)f=e[p],i[f.index]=+r(f,p,e)}}function _(p){var C=0,f,d,y=0,b,S,x;if(p.length){for(b=S=x=0;x<4;++x)(f=p[x])&&(d=Math.abs(f.value))&&(C+=f.value,y+=d,b+=d*f.x,S+=d*f.y);p.x=b/y,p.y=S/y}else{f=p,f.x=f.data.x,f.y=f.data.y;do C+=i[f.data.index];while(f=f.next)}p.value=C}function v(p,C,f,d){if(!p.value)return!0;var y=p.x-t.x,b=p.y-t.y,S=d-C,x=y*y+b*b;if(S*S/c<x)return x<a&&(y===0&&(y=ee(n),x+=y*y),b===0&&(b=ee(n),x+=b*b),x<l&&(x=Math.sqrt(l*x)),t.vx+=y*p.value*o/x,t.vy+=b*p.value*o/x),!0;if(p.length||x>=a)return;(p.data!==t||p.next)&&(y===0&&(y=ee(n),x+=y*y),b===0&&(b=ee(n),x+=b*b),x<l&&(x=Math.sqrt(l*x)));do p.data!==t&&(S=i[p.data.index]*o/x,t.vx+=y*S,t.vy+=b*S);while(p=p.next)}return s.initialize=function(p,C){e=p,n=C,m()},s.strength=function(p){return arguments.length?(r=typeof p=="function"?p:R(+p),m(),s):r},s.distanceMin=function(p){return arguments.length?(l=p*p,s):Math.sqrt(l)},s.distanceMax=function(p){return arguments.length?(a=p*p,s):Math.sqrt(a)},s.theta=function(p){return arguments.length?(c=p*p,s):Math.sqrt(c)},s}function ot(e){var t=R(.1),n,o,r;typeof e!="function"&&(e=R(e==null?0:+e));function i(a){for(var c=0,s=n.length,m;c<s;++c)m=n[c],m.vx+=(r[c]-m.x)*o[c]*a}function l(){if(n){var a,c=n.length;for(o=new Array(c),r=new Array(c),a=0;a<c;++a)o[a]=isNaN(r[a]=+e(n[a],a,n))?0:+t(n[a],a,n)}}return i.initialize=function(a){n=a,l()},i.strength=function(a){return arguments.length?(t=typeof a=="function"?a:R(+a),l(),i):t},i.x=function(a){return arguments.length?(e=typeof a=="function"?a:R(+a),l(),i):e},i}function rt(e){var t=R(.1),n,o,r;typeof e!="function"&&(e=R(e==null?0:+e));function i(a){for(var c=0,s=n.length,m;c<s;++c)m=n[c],m.vy+=(r[c]-m.y)*o[c]*a}function l(){if(n){var a,c=n.length;for(o=new Array(c),r=new Array(c),a=0;a<c;++a)o[a]=isNaN(r[a]=+e(n[a],a,n))?0:+t(n[a],a,n)}}return i.initialize=function(a){n=a,l()},i.strength=function(a){return arguments.length?(t=typeof a=="function"?a:R(+a),l(),i):t},i.y=function(a){return arguments.length?(e=typeof a=="function"?a:R(+a),l(),i):e},i}var vo=["network-simplex","longest-path","force"];function Ra(e){return e!=="force"}function Fa(e){return e!=="force"}var _o=["TOP_BOTTOM","BOTTOM_TOP","LEFT_RIGHT","RIGHT_LEFT"],ho=["compact","normal","spacious"],tn={compact:{nodeGap:40,layerGap:56},normal:{nodeGap:64,layerGap:96},spacious:{nodeGap:96,layerGap:144}},$a="network-simplex",Va="TOP_BOTTOM",za="normal";function Ba(e){return typeof e=="string"&&vo.includes(e)}function ja(e){return typeof e=="string"&&_o.includes(e)}function Ga(e){return typeof e=="string"&&ho.includes(e)}var it=260,nn=120;function Wa(e,t){let n=t?.links??[],o=new Set(e.map(_=>_.path)),r=je(e),i=new Set,l=0,a=0,c=0,s=0,m=0;for(let _ of n){if(!o.has(_.source)){l++;continue}let v=Ge(_.target,_.trigger?.normalizedTrigger??null,r);if(!o.has(v)){a++;continue}if(_.source===v){c++;continue}let p=on(_.kind,_.source,v);if(i.has(p)){s++;continue}i.add(p),m++}return{raw:n.length,drawn:m,brokenSource:l,brokenTarget:a,selfLoops:c,duplicates:s}}function Qa(e,t){let n=e.map(r=>r.path).sort(),o=t.map(r=>r.id).sort();return`${n.length}|${n.join(",")}|${o.length}|${o.join(",")}`}function Ja(e,t){let n=new Set(e.map(s=>s.path)),o=je(e),r=new Map,i=t?.links??[];for(let s of i){if(!n.has(s.source))continue;let m=Ge(s.target,s.trigger?.normalizedTrigger??null,o);if(!n.has(m)||s.source===m)continue;let _=on(s.kind,s.source,m),v=typeof s.confidence=="number"?s.confidence:.6,p=r.get(_);p?v>p.confidence&&(p.confidence=v):r.set(_,{id:_,from:s.source,to:m,kind:s.kind,confidence:v})}let l=[...r.values()],a=new Map;for(let s of e)a.set(s.path,s);let c=new Map;for(let s of t?.nodes??[])c.set(s.path,s);return{nodesByPath:a,apiNodesByPath:c,edges:l}}async function Za(e,t,n,o){let r={width:it,height:nn},i=t.map(m=>({id:m.path,size:r})),l=n.map(m=>({source:m.from,target:m.to})),a=tn[o.spacing],c=await e.calculate(i,l,{algorithm:o.algorithm,direction:o.direction,nodeGap:a.nodeGap,layerGap:a.layerGap}),s=new Map;for(let{id:m,position:_}of c.nodes)s.set(m,{x:_.x,y:_.y});return s}function es(e,t){let n=e.map(a=>({id:a.path})),o=t.map(a=>({source:a.from,target:a.to})),r=tt(n).force("link",We(o).id(a=>a.id).distance(90).strength(1)).force("charge",nt().strength(-200)).force("center",qe(0,0)).force("x",ot(0).strength(.06)).force("y",rt(0).strength(.06)).force("collide",Xe(it/2+12)).stop(),i=400;for(let a=0;a<i;a++)r.tick();let l=new Map;for(let a of n)l.set(a.id,{x:(a.x??0)-it/2,y:(a.y??0)-nn/2});return l}function ts(e,t,n,o=null){let r=e.edges.filter(c=>t.has(c.from)&&t.has(c.to)&&(o===null||o.has(c.kind))),i=new Map,l=new Map;for(let c of r)i.set(c.from,(i.get(c.from)??0)+1),l.set(c.to,(l.get(c.to)??0)+1);let a=[];for(let c of t){let s=e.nodesByPath.get(c);if(!s)continue;let m=e.apiNodesByPath.get(c),_=n.get(c),v=e.positions.get(c)??{x:0,y:0},p=_?{x:_.x,y:_.y}:v;a.push({id:c,path:c,view:s,kind:s.kind,position:p,stats:{linksIn:l.get(c)??0,linksOut:i.get(c)??0,bytesTotal:m?.bytes.total,tokensTotal:m?.tokens?.total,externalRefsCount:m?.externalRefsCount},summary:bo(s)})}return{nodes:a,edges:r}}function bo(e){let t={injectionDetected:!1,contentQuality:"clean"},n=(e.frontmatter.description??e.frontmatter.name??"").trim();return{kind:"markdown",confidence:.6,safety:t,whatItCovers:n||`${e.kind} entry`,topics:[],keyFacts:[]}}function on(e,t,n){return`${e}:${t}::${n}`}export{vo as a,Ra as b,Fa as c,_o as d,ho as e,$a as f,Va as g,za as h,Ba as i,ja as j,Ga as k,we as l,Ce as m,Nt as n,Wa as o,Qa as p,Ja as q,Za as r,es as s,ts as t};
@@ -1 +0,0 @@
1
- import{A as Pt,B as _r,C as L,Ca as $r,D as Ze,Da as Fr,E as j,F as C,Fa as zr,G as Nr,Ga as Hr,I as R,Ja as Br,K as Mr,L as N,M as Ye,N as h,O as Dr,P as Q,Q as P,Qb as Qr,Rb as b,Sb as Z,Tb as Zr,Ub as Yr,Va as qr,W as xr,Wb as Jr,X as Ut,Y as Lt,Z as Or,_ as ne,a as br,aa as Je,ac as Xe,b as wr,bc as et,c as Cr,ca as v,d as te,e as O,ea as Ae,eb as Vr,ec as Xr,f as k,fa as jt,fc as en,ga as kr,gc as tt,h as _,ha as $t,i as g,j as Ir,jb as Kr,k as xt,l as Tr,la as Pr,lb as Wr,mb as Gr,n as A,o as Ot,p as B,q as kt,qa as Ft,r as Ar,ra as z,s as We,sa as Ur,ta as Lr,u as re,ua as zt,v as Ge,va as jr,vc as tn,w as Qe,x as he,xa as Ee,y as Er,z as G}from"./chunk-UVVXMEZT.js";import{a as u,b as x}from"./chunk-VB56BUGO.js";var p="primary",He=Symbol("RouteTitle"),Kt=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function oe(t){return new Kt(t)}function Ht(t,r,e){for(let n=0;n<t.length;n++){let i=t[n],o=r[n];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function cn(t,r,e){let n=e.path.split("/"),i=n.indexOf("**");if(i===-1){if(n.length>t.length||e.pathMatch==="full"&&(r.hasChildren()||n.length<t.length))return null;let l={},c=t.slice(0,n.length);return Ht(n,c,l)?{consumed:c,posParams:l}:null}if(i!==n.lastIndexOf("**"))return null;let o=n.slice(0,i),s=n.slice(i+1);if(o.length+s.length>t.length||e.pathMatch==="full"&&r.hasChildren()&&e.path!=="**")return null;let a={};return!Ht(o,t.slice(0,o.length),a)||!Ht(s,t.slice(t.length-s.length),a)?null:{consumed:t,posParams:a}}function at(t){return new Promise((r,e)=>{t.pipe(G()).subscribe({next:n=>r(n),error:n=>e(n)})})}function ci(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!H(t[e],r[e]))return!1;return!0}function H(t,r){let e=t?Wt(t):void 0,n=r?Wt(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!un(t[i],r[i]))return!1;return!0}function Wt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function un(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,o)=>n[o]===i)}else return t===r}function ui(t){return t.length>0?t[t.length-1]:null}function le(t){return xt(t)?t:Fr(t)?_(Promise.resolve(t)):g(t)}function dn(t){return xt(t)?at(t):Promise.resolve(t)}var di={exact:fn,subset:pn},hn={exact:hi,subset:fi,ignored:()=>!0},lr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Oe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function cr(t,r,e){let n=t instanceof E?t:r.parseUrl(t);return Z(()=>Gt(r.lastSuccessfulNavigation()?.finalUrl??new E,n,u(u({},Oe),e)))}function Gt(t,r,e){return di[e.paths](t.root,r.root,e.matrixParams)&&hn[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function hi(t,r){return H(t,r)}function fn(t,r,e){if(!ie(t.segments,r.segments)||!it(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!fn(t.children[n],r.children[n],e))return!1;return!0}function fi(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>un(t[e],r[e]))}function pn(t,r,e){return gn(t,r,r.segments,e)}function gn(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ie(i,e)||r.hasChildren()||!it(i,e,n))}else if(t.segments.length===e.length){if(!ie(t.segments,e)||!it(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!pn(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!ie(t.segments,i)||!it(t.segments,i,n)||!t.children[p]?!1:gn(t.children[p],r,o,n)}}function it(t,r,e){return r.every((n,i)=>hn[e](t[i].parameters,n.parameters))}var E=class{root;queryParams;fragment;_queryParamMap;constructor(r=new m([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=oe(this.queryParams),this._queryParamMap}toString(){return vi.serialize(this)}},m=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ot(this)}},Y=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=oe(this.parameters),this._parameterMap}toString(){return mn(this)}};function pi(t,r){return ie(t,r)&&t.every((e,n)=>H(e.parameters,r[n].parameters))}function ie(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function gi(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===p&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==p&&(e=e.concat(r(i,n)))}),e}var be=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>new J,providedIn:"root"})}return t})(),J=class{parse(r){let e=new Zt(r);return new E(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${_e(r.root,!0)}`,n=Ri(r.queryParams),i=typeof r.fragment=="string"?`#${mi(r.fragment)}`:"";return`${e}${n}${i}`}},vi=new J;function ot(t){return t.segments.map(r=>mn(r)).join("/")}function _e(t,r){if(!t.hasChildren())return ot(t);if(r){let e=t.children[p]?_e(t.children[p],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&n.push(`${i}:${_e(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=gi(t,(n,i)=>i===p?[_e(t.children[p],!1)]:[`${i}:${_e(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${ot(t)}/${e[0]}`:`${ot(t)}/(${e.join("//")})`}}function vn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rt(t){return vn(t).replace(/%3B/gi,";")}function mi(t){return encodeURI(t)}function Qt(t){return vn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function st(t){return decodeURIComponent(t)}function rn(t){return st(t.replace(/\+/g,"%20"))}function mn(t){return`${Qt(t.path)}${yi(t.parameters)}`}function yi(t){return Object.entries(t).map(([r,e])=>`;${Qt(r)}=${Qt(e)}`).join("")}function Ri(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${rt(e)}=${rt(i)}`).join("&"):`${rt(e)}=${rt(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var Si=/^[^\/()?;#]+/;function Bt(t){let r=t.match(Si);return r?r[0]:""}var bi=/^[^\/()?;=#]+/;function wi(t){let r=t.match(bi);return r?r[0]:""}var Ci=/^[^=?&#]+/;function Ii(t){let r=t.match(Ci);return r?r[0]:""}var Ti=/^[^&#]+/;function Ai(t){let r=t.match(Ti);return r?r[0]:""}var Zt=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(r=0){if(r>50)throw new C(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,r));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,r)),(e.length>0||Object.keys(n).length>0)&&(i[p]=new m(e,n)),i}parseSegment(){let r=Bt(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(r),new Y(st(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=wi(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=Bt(this.remaining);i&&(n=i,this.capture(n))}r[st(e)]=st(n)}parseQueryParam(r){let e=Ii(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=Ai(this.remaining);s&&(n=s,this.capture(n))}let i=rn(e),o=rn(n);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r,e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=Bt(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new C(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=p);let a=this.parseChildren(e+1);n[s??p]=Object.keys(a).length===1&&a[p]?a[p]:new m([],a),this.consumeOptional("//")}return n}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new C(4011,!1)}};function yn(t){return t.segments.length>0?new m([],{[p]:t}):t}function Rn(t){let r={};for(let[n,i]of Object.entries(t.children)){let o=Rn(i);if(n===p&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))r[s]=a;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let e=new m(t.segments,r);return Ei(e)}function Ei(t){if(t.numberOfChildren===1&&t.children[p]){let r=t.children[p];return new m(t.segments.concat(r.segments),r.children)}return t}function X(t){return t instanceof E}function Sn(t,r,e=null,n=null,i=new J){let o=bn(t);return wn(o,r,e,n,i)}function bn(t){let r;function e(o){let s={};for(let l of o.children){let c=e(l);s[l.outlet]=c}let a=new m(o.url,s);return o===t&&(r=a),a}let n=e(t.root),i=yn(n);return r??i}function wn(t,r,e,n,i){let o=t;for(;o.parent;)o=o.parent;if(r.length===0)return qt(o,o,o,e,n,i);let s=_i(r);if(s.toRoot())return qt(o,o,new m([],{}),e,n,i);let a=Ni(s,o,t),l=a.processChildren?Me(a.segmentGroup,a.index,s.commands):In(a.segmentGroup,a.index,s.commands);return qt(o,a.segmentGroup,l,e,n,i)}function lt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ke(t){return typeof t=="object"&&t!=null&&t.outlets}function nn(t,r,e){t||="\u0275";let n=new E;return n.queryParams={[t]:r},e.parse(e.serialize(n)).queryParams[t]}function qt(t,r,e,n,i,o){let s={};for(let[c,d]of Object.entries(n??{}))s[c]=Array.isArray(d)?d.map(f=>nn(c,f,o)):nn(c,d,o);let a;t===r?a=e:a=Cn(t,r,e);let l=yn(Rn(a));return new E(l,s,i)}function Cn(t,r,e){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===r?n[i]=e:n[i]=Cn(o,r,e)}),new m(t.segments,n)}var ct=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&lt(n[0]))throw new C(4003,!1);let i=n.find(ke);if(i&&i!==ui(n))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function _i(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ct(!0,0,t);let r=0,e=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new ct(e,r,n)}var pe=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function Ni(t,r,e){if(t.isAbsolute)return new pe(r,!0,0);if(!e)return new pe(r,!1,NaN);if(e.parent===null)return new pe(e,!0,0);let n=lt(t.commands[0])?0:1,i=e.segments.length-1+n;return Mi(e,i,t.numberOfDoubleDots)}function Mi(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new C(4005,!1);i=n.segments.length}return new pe(n,!1,i-o)}function Di(t){return ke(t[0])?t[0].outlets:{[p]:t}}function In(t,r,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return Me(t,r,e);let n=xi(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,n.pathIndex),{});return o.children[p]=new m(t.segments.slice(n.pathIndex),t.children),Me(o,0,i)}else return n.match&&i.length===0?new m(t.segments,{}):n.match&&!t.hasChildren()?Yt(t,r,e):n.match?Me(t,0,i):Yt(t,r,e)}function Me(t,r,e){if(e.length===0)return new m(t.segments,{});{let n=Di(e),i={};if(Object.keys(n).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=Me(t.children[p],r,e);return new m(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=In(t.children[o],r,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new m(t.segments,i)}}function xi(t,r,e){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return o;let s=t.segments[i],a=e[n];if(ke(a))break;let l=`${a}`,c=n<e.length-1?e[n+1]:null;if(i>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!sn(l,c,s))return o;n+=2}else{if(!sn(l,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Yt(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(ke(o)){let l=Oi(o.outlets);return new m(n,l)}if(i===0&&lt(e[0])){let l=t.segments[r];n.push(new Y(l.path,on(e[0]))),i++;continue}let s=ke(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&lt(a)?(n.push(new Y(s,on(a))),i+=2):(n.push(new Y(s,{})),i++)}return new m(n,{})}function Oi(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=Yt(new m([],{}),0,n))}),r}function on(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function sn(t,r,e){return t==e.path&&H(r,e.parameters)}var De="imperative",w=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(w||{}),D=class{id;url;constructor(r,e){this.id=r,this.url=e}},se=class extends D{type=w.NavigationStart;navigationTrigger;restoredState;constructor(r,e,n="imperative",i=null){super(r,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},F=class extends D{urlAfterRedirects;type=w.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},I=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(I||{}),Pe=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Pe||{}),U=class extends D{reason;code;type=w.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Tn(t){return t instanceof U&&(t.code===I.Redirect||t.code===I.SupersededByNewNavigation)}var V=class extends D{reason;code;type=w.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},ae=class extends D{error;target;type=w.NavigationError;constructor(r,e,n,i){super(r,e),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ue=class extends D{urlAfterRedirects;state;type=w.RoutesRecognized;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ut=class extends D{urlAfterRedirects;state;type=w.GuardsCheckStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dt=class extends D{urlAfterRedirects;state;shouldActivate;type=w.GuardsCheckEnd;constructor(r,e,n,i,o){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ht=class extends D{urlAfterRedirects;state;type=w.ResolveStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ft=class extends D{urlAfterRedirects;state;type=w.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pt=class{route;type=w.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},gt=class{route;type=w.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},vt=class{snapshot;type=w.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mt=class{snapshot;type=w.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=w.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rt=class{snapshot;type=w.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var ve=class{},Le=class{},me=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function ki(t){return!(t instanceof ve)&&!(t instanceof me)&&!(t instanceof Le)}var St=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new we(this.rootInjector)}},we=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new St(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(Ye(Q))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),bt=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=Jt(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=Jt(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=Xt(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return Xt(r,this._root).map(e=>e.value)}};function Jt(t,r){if(t===r.value)return r;for(let e of r.children){let n=Jt(t,e);if(n)return n}return null}function Xt(t,r){if(t===r.value)return[r];for(let e of r.children){let n=Xt(t,e);if(n.length)return n.unshift(r),n}return[]}var M=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function fe(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var je=class extends bt{snapshot;constructor(r,e){super(r),this.snapshot=e,dr(this,r)}toString(){return this.snapshot.toString()}};function An(t,r){let e=Pi(t,r),n=new O([new Y("",{})]),i=new O({}),o=new O({}),s=new O({}),a=new O(""),l=new K(n,i,s,a,o,p,t,e.root);return l.snapshot=e.root,new je(new M(l,[]),e)}function Pi(t,r){let e={},n={},i={},s=new ye([],e,i,"",n,p,t,null,{},r);return new $e("",new M(s,[]))}var K=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,o,s,a,l){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(A(c=>c[He]))??g(void 0),this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(A(r=>oe(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(A(r=>oe(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function ur(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:u(u({},r.params),t.params),data:u(u({},r.data),t.data),resolve:u(u(u(u({},t.data),r.data),i?.data),t._resolvedData)}:n={params:u({},t.params),data:u({},t.data),resolve:u(u({},t.data),t._resolvedData??{})},i&&_n(i)&&(n.resolve[He]=i.title),n}var ye=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[He]}constructor(r,e,n,i,o,s,a,l,c,d){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c,this._environmentInjector=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=oe(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=oe(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},$e=class extends bt{url;constructor(r,e){super(e),this.url=r,dr(this,e)}toString(){return En(this._root)}};function dr(t,r){r.value._routerState=t,r.children.forEach(e=>dr(t,e))}function En(t){let r=t.children.length>0?` { ${t.children.map(En).join(", ")} } `:"";return`${t.value}${r}`}function Vt(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,H(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),H(r.params,e.params)||t.paramsSubject.next(e.params),ci(r.url,e.url)||t.urlSubject.next(e.url),H(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function er(t,r){let e=H(t.params,r.params)&&pi(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||er(t.parent,r.parent))}function _n(t){return typeof t.title=="string"||t.title===null}var Nn=new N(""),hr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new ne;deactivateEvents=new ne;attachEvents=new ne;detachEvents=new ne;routerOutletData=Jr();parentContexts=h(we);location=h(Ur);changeDetector=h(Xe);inputBinder=h(Be,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new tr(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=Ee({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ae]})}return t})(),tr=class{route;childContexts;parent;outletData;constructor(r,e,n,i){this.route=r,this.childContexts=e,this.parent=n,this.outletData=i}get(r,e){return r===K?this.route:r===we?this.childContexts:r===Nn?this.outletData:this.parent.get(r,e)}},Be=new N(""),fr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,i=Ot([n.queryParams,n.params,n.data]).pipe(L(([o,s,a],l)=>(a=u(u(u({},o),s),a),l===0?g(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let s=Xr(n.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),pr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=jr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&qr(0,"router-outlet")},dependencies:[hr],encapsulation:2})}return t})();function gr(t){let r=t.children&&t.children.map(gr),e=r?x(u({},t),{children:r}):u({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=pr),e}function Ui(t,r,e){let n=Fe(t,r._root,e?e._root:void 0);return new je(n,r)}function Fe(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=Li(t,r,e);return new M(n,i)}else{if(t.shouldAttach(r.value)){let o=t.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>Fe(t,a)),s}}let n=ji(r.value),i=r.children.map(o=>Fe(t,o));return new M(n,i)}}function Li(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Fe(t,n,i);return Fe(t,n)})}function ji(t){return new K(new O(t.url),new O(t.params),new O(t.queryParams),new O(t.fragment),new O(t.data),t.outlet,t.component,t)}var Re=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},Mn="ngNavigationCancelingError";function wt(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=X(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=Dn(!1,I.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function Dn(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[Mn]=!0,e.cancellationCode=r,e}function $i(t){return xn(t)&&X(t.url)}function xn(t){return!!t&&t[Mn]}var rr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),Vt(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=fe(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=fe(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=fe(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,e,n){let i=fe(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Rt(o.value.snapshot))}),r.children.length&&this.forwardEvent(new mt(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(Vt(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Vt(a.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,n)}},Ct=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},ge=class{component;route;constructor(r,e){this.component=r,this.route=e}};function Fi(t,r,e){let n=t._root,i=r?r._root:null;return Ne(n,i,e,[n.value])}function zi(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function Ce(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!Mr(t)?t:r.get(t):n}function Ne(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=fe(r);return t.children.forEach(s=>{Hi(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>xe(a,e.getContext(s),i)),i}function Hi(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=r?r.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=Bi(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Ct(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ne(t,r,a?a.children:null,n,i):Ne(t,r,e,n,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ge(a.outlet.component,s))}else s&&xe(r,a,i),i.canActivateChecks.push(new Ct(n)),o.component?Ne(t,null,a?a.children:null,n,i):Ne(t,null,e,n,i);return i}function Bi(t,r,e){if(typeof e=="function")return P(r._environmentInjector,()=>e(t,r));switch(e){case"pathParamsChange":return!ie(t.url,r.url);case"pathParamsOrQueryParamsChange":return!ie(t.url,r.url)||!H(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!er(t,r)||!H(t.queryParams,r.queryParams);default:return!er(t,r)}}function xe(t,r,e){let n=fe(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?r?xe(s,r.children.getContext(o),e):xe(s,null,e):xe(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new ge(r.outlet.component,i)):e.canDeactivateChecks.push(new ge(null,i)):e.canDeactivateChecks.push(new ge(null,i))}function qe(t){return typeof t=="function"}function qi(t){return typeof t=="boolean"}function Vi(t){return t&&qe(t.canLoad)}function Ki(t){return t&&qe(t.canActivate)}function Wi(t){return t&&qe(t.canActivateChild)}function Gi(t){return t&&qe(t.canDeactivate)}function Qi(t){return t&&qe(t.canMatch)}function On(t){return t instanceof Tr||t?.name==="EmptyError"}var nt=Symbol("INITIAL_VALUE");function Se(){return L(t=>Ot(t.map(r=>r.pipe(he(1),_r(nt)))).pipe(A(r=>{for(let e of r)if(e!==!0){if(e===nt)return nt;if(e===!1||Zi(e))return e}return!0}),re(r=>r!==nt),he(1)))}function Zi(t){return X(t)||t instanceof Re}function kn(t){return t.aborted?g(void 0).pipe(he(1)):new Cr(r=>{let e=()=>{r.next(),r.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Pn(t){return Ze(kn(t))}function Yi(t){return B(r=>{let{targetSnapshot:e,currentSnapshot:n,guards:{canActivateChecks:i,canDeactivateChecks:o}}=r;return o.length===0&&i.length===0?g(x(u({},r),{guardsResult:!0})):Ji(o,e,n).pipe(B(s=>s&&qi(s)?Xi(e,i,t):g(s)),A(s=>x(u({},r),{guardsResult:s})))})}function Ji(t,r,e){return _(t).pipe(B(n=>io(n.component,n.route,e,r)),G(n=>n!==!0,!0))}function Xi(t,r,e){return _(r).pipe(Qe(n=>Ar(to(n.route.parent,e),eo(n.route,e),no(t,n.path),ro(t,n.route))),G(n=>n!==!0,!0))}function eo(t,r){return t!==null&&r&&r(new yt(t)),g(!0)}function to(t,r){return t!==null&&r&&r(new vt(t)),g(!0)}function ro(t,r){let e=r.routeConfig?r.routeConfig.canActivate:null;if(!e||e.length===0)return g(!0);let n=e.map(i=>We(()=>{let o=r._environmentInjector,s=Ce(i,o),a=Ki(s)?s.canActivate(r,t):P(o,()=>s(r,t));return le(a).pipe(G())}));return g(n).pipe(Se())}function no(t,r){let e=r[r.length-1],i=r.slice(0,r.length-1).reverse().map(o=>zi(o)).filter(o=>o!==null).map(o=>We(()=>{let s=o.guards.map(a=>{let l=o.node._environmentInjector,c=Ce(a,l),d=Wi(c)?c.canActivateChild(e,t):P(l,()=>c(e,t));return le(d).pipe(G())});return g(s).pipe(Se())}));return g(i).pipe(Se())}function io(t,r,e,n){let i=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(s=>{let a=r._environmentInjector,l=Ce(s,a),c=Gi(l)?l.canDeactivate(t,r,e,n):P(a,()=>l(t,r,e,n));return le(c).pipe(G())});return g(o).pipe(Se())}function oo(t,r,e,n,i){let o=r.canLoad;if(o===void 0||o.length===0)return g(!0);let s=o.map(a=>{let l=Ce(a,t),c=Vi(l)?l.canLoad(r,e):P(t,()=>l(r,e)),d=le(c);return i?d.pipe(Pn(i)):d});return g(s).pipe(Se(),Un(n))}function Un(t){return wr(j(r=>{if(typeof r!="boolean")throw wt(t,r)}),A(r=>r===!0))}function so(t,r,e,n,i,o){let s=r.canMatch;if(!s||s.length===0)return g(!0);let a=s.map(l=>{let c=Ce(l,t),d=Qi(c)?c.canMatch(r,e,i):P(t,()=>c(r,e,i));return le(d).pipe(Pn(o))});return g(a).pipe(Se(),Un(n))}var q=class t extends Error{segmentGroup;constructor(r){super(),this.segmentGroup=r||null,Object.setPrototypeOf(this,t.prototype)}},ze=class t extends Error{urlTree;constructor(r){super(),this.urlTree=r,Object.setPrototypeOf(this,t.prototype)}};function ao(t){throw new C(4e3,!1)}function lo(t){throw Dn(!1,I.GuardRejected)}var nr=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}async lineralizeSegments(r,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return n;if(i.numberOfChildren>1||!i.children[p])throw ao(`${r.redirectTo}`);i=i.children[p]}}async applyRedirectCommands(r,e,n,i,o){let s=await co(e,i,o);if(s instanceof E)throw new ze(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),r,n);if(s[0]==="/")throw new ze(a);return a}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new E(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=e[a]}else n[i]=o}),n}createSegmentGroup(r,e,n,i){let o=this.createSegments(r,e.segments,n,i),s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(r,l,n,i)}),new m(o,s)}createSegments(r,e,n,i){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new C(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}};function co(t,r,e){if(typeof t=="string")return Promise.resolve(t);let n=t;return at(le(P(e,()=>n(r))))}function uo(t,r){return t.providers&&!t._injector&&(t._injector=zt(t.providers,r,`Route: ${t.path}`)),t._injector??r}function $(t){return t.outlet||p}function ho(t,r){let e=t.filter(n=>$(n)===r);return e.push(...t.filter(n=>$(n)!==r)),e}var ir={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ln(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function fo(t,r,e,n,i,o,s){let a=jn(t,r,e);if(!a.matched)return g(a);let l=Ln(o(a));return n=uo(r,n),so(n,r,e,i,l,s).pipe(A(c=>c===!0?a:u({},ir)))}function jn(t,r,e){if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?u({},ir):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||cn)(e,t,r);if(!i)return u({},ir);let o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=i.consumed.length>0?u(u({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function an(t,r,e,n,i){return e.length>0&&vo(t,e,n,i)?{segmentGroup:new m(r,go(n,new m(e,t.children))),slicedSegments:[]}:e.length===0&&mo(t,e,n)?{segmentGroup:new m(t.segments,po(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function po(t,r,e,n){let i={};for(let o of e)if(Tt(t,r,o)&&!n[$(o)]){let s=new m([],{});i[$(o)]=s}return u(u({},n),i)}function go(t,r){let e={};e[p]=r;for(let n of t)if(n.path===""&&$(n)!==p){let i=new m([],{});e[$(n)]=i}return e}function vo(t,r,e,n){return e.some(i=>!Tt(t,r,i)||!($(i)!==p)?!1:!(n!==void 0&&$(i)===n))}function mo(t,r,e){return e.some(n=>Tt(t,r,n))}function Tt(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function yo(t,r,e){return r.length===0&&!t.children[e]}var or=class{};async function Ro(t,r,e,n,i,o,s="emptyOnly",a){return new sr(t,r,e,n,i,s,o,a).recognize()}var So=31,sr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,o,s,a,l){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=l,this.applyRedirects=new nr(this.urlSerializer,this.urlTree)}noMatchError(r){return new C(4002,`'${r.segmentGroup}'`)}async recognize(){let r=an(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:n}=await this.match(r),i=new M(n,e),o=new $e("",i),s=Sn(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}async match(r){let e=new ye([],Object.freeze({}),Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,r,p,e),rootSnapshot:e}}catch(n){if(n instanceof ze)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof q?this.noMatchError(n):n}}async processSegmentGroup(r,e,n,i,o){if(n.segments.length===0&&n.hasChildren())return this.processChildren(r,e,n,o);let s=await this.processSegment(r,e,n,n.segments,i,!0,o);return s instanceof M?[s]:[]}async processChildren(r,e,n,i){let o=[];for(let l of Object.keys(n.children))l==="primary"?o.unshift(l):o.push(l);let s=[];for(let l of o){let c=n.children[l],d=ho(e,l),f=await this.processSegmentGroup(r,d,c,l,i);s.push(...f)}let a=$n(s);return bo(a),a}async processSegment(r,e,n,i,o,s,a){for(let l of e)try{return await this.processSegmentAgainstRoute(l._injector??r,e,l,n,i,o,s,a)}catch(c){if(c instanceof q||On(c))continue;throw c}if(yo(n,i,o))return new or;throw new q(n)}async processSegmentAgainstRoute(r,e,n,i,o,s,a,l){if($(n)!==s&&(s===p||!Tt(i,o,n)))throw new q(i);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(r,i,n,o,s,l);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,o,s,l);throw new q(i)}async expandSegmentAgainstRouteUsingRedirect(r,e,n,i,o,s,a){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:f,remainingSegments:y}=jn(e,i,o);if(!l)throw new q(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>So&&(this.allowRedirects=!1));let S=this.createSnapshot(r,i,o,c,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let T=await this.applyRedirects.applyRedirectCommands(d,i.redirectTo,f,Ln(S),r),W=await this.applyRedirects.lineralizeSegments(i,T);return this.processSegment(r,n,e,W.concat(y),s,!1,a)}createSnapshot(r,e,n,i,o){let s=new ye(n,i,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,Co(e),$(e),e.component??e._loadedComponent??null,e,Io(e),r),a=ur(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}async matchSegmentAgainstRoute(r,e,n,i,o,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=de=>this.createSnapshot(r,n,de.consumedSegments,de.parameters,s),l=await at(fo(e,n,i,r,this.urlSerializer,a,this.abortSignal));if(n.path==="**"&&(e.children={}),!l?.matched)throw new q(e);r=n._injector??r;let{routes:c}=await this.getChildConfig(r,n,i),d=n._loadedInjector??r,{parameters:f,consumedSegments:y,remainingSegments:S}=l,T=this.createSnapshot(r,n,y,f,s),{segmentGroup:W,slicedSegments:ee}=an(e,y,S,c,o);if(ee.length===0&&W.hasChildren()){let de=await this.processChildren(d,c,W,T);return new M(T,de)}if(c.length===0&&ee.length===0)return new M(T,[]);let Te=$(n)===o,ue=await this.processSegment(d,c,W,ee,Te?p:o,!0,T);return new M(T,ue instanceof M?[ue]:[])}async getChildConfig(r,e,n){if(e.children)return{routes:e.children,injector:r};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(r).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await at(oo(r,e,n,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(r,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw lo(e)}return{routes:[],injector:r}}};function bo(t){t.sort((r,e)=>r.value.outlet===p?-1:e.value.outlet===p?1:r.value.outlet.localeCompare(e.value.outlet))}function wo(t){let r=t.value.routeConfig;return r&&r.path===""}function $n(t){let r=[],e=new Set;for(let n of t){if(!wo(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=$n(n.children);r.push(new M(n.value,i))}return r.filter(n=>!e.has(n))}function Co(t){return t.data||{}}function Io(t){return t.resolve||{}}function To(t,r,e,n,i,o,s){return B(async a=>{let{state:l,tree:c}=await Ro(t,r,e,n,a.extractedUrl,i,o,s);return x(u({},a),{targetSnapshot:l,urlAfterRedirects:c})})}function Ao(t){return B(r=>{let{targetSnapshot:e,guards:{canActivateChecks:n}}=r;if(!n.length)return g(r);let i=new Set(n.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let l of Fn(a))o.add(l);let s=0;return _(o).pipe(Qe(a=>i.has(a)?Eo(a,e,t):(a.data=ur(a,a.parent,t).resolve,g(void 0))),j(()=>s++),Pt(1),B(a=>s===o.size?g(r):k))})}function Fn(t){let r=t.children.map(e=>Fn(e)).flat();return[t,...r]}function Eo(t,r,e){let n=t.routeConfig,i=t._resolve;return n?.title!==void 0&&!_n(n)&&(i[He]=n.title),We(()=>(t.data=ur(t,t.parent,e).resolve,_o(i,t,r).pipe(A(o=>(t._resolvedData=o,t.data=u(u({},t.data),o),null)))))}function _o(t,r,e){let n=Wt(t);if(n.length===0)return g({});let i={};return _(n).pipe(B(o=>No(t[o],r,e).pipe(G(),j(s=>{if(s instanceof Re)throw wt(new J,s);i[o]=s}))),Pt(1),A(()=>i),Ge(o=>On(o)?k:Ir(o)))}function No(t,r,e){let n=r._environmentInjector,i=Ce(t,n),o=i.resolve?i.resolve(r,e):P(n,()=>i(r,e));return le(o)}function ln(t){return L(r=>{let e=t(r);return e?_(e).pipe(A(()=>r)):g(r)})}var vr=(()=>{class t{buildTitle(e){let n,i=e.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===p);return n}getResolvedTitleForRoute(e){return e.data[He]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>h(zn),providedIn:"root"})}return t})(),zn=(()=>{class t extends vr{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(Ye(tn))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ie=new N("",{factory:()=>({})}),Ve=new N(""),Hn=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=h(Qr);async loadComponent(e,n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=(async()=>{try{let o=await dn(P(e,()=>n.loadComponent())),s=await Vn(qn(o));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s,s}finally{this.componentLoaders.delete(n)}})();return this.componentLoaders.set(n,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let i=(async()=>{try{let o=await Bn(n,this.compiler,e,this.onLoadEndListener);return n._loadedRoutes=o.routes,n._loadedInjector=o.injector,n._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(n)}})();return this.childrenLoaders.set(n,i),i}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();async function Bn(t,r,e,n){let i=await dn(P(e,()=>t.loadChildren())),o=await Vn(qn(i)),s;o instanceof Lr||Array.isArray(o)?s=o:s=await r.compileModuleAsync(o),n&&n(t);let a,l,c=!1,d;return Array.isArray(s)?(l=s,c=!0):(a=s.create(e).injector,d=s,l=a.get(Ve,[],{optional:!0,self:!0}).flat()),{routes:l.map(gr),injector:a,factory:d}}function Mo(t){return t&&typeof t=="object"&&"default"in t}function qn(t){return Mo(t)?t.default:t}async function Vn(t){return t}var At=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>h(Do),providedIn:"root"})}return t})(),Do=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Kn=new N("");var xo=()=>{},Wn=new N(""),Gn=(()=>{class t{currentNavigation=v(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=v(null);events=new te;transitionAbortWithErrorSubject=new te;configLoader=h(Hn);environmentInjector=h(Q);destroyRef=h(Lt);urlSerializer=h(be);rootContexts=h(we);location=h(tt);inputBindingEnabled=h(Be,{optional:!0})!==null;titleStrategy=h(vr);options=h(Ie,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=h(At);createViewTransition=h(Kn,{optional:!0});navigationErrorHandler=h(Wn,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new pt(i)),n=i=>this.events.next(new gt(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;b(()=>{this.transitions?.next(x(u({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new O(null),this.transitions.pipe(re(n=>n!==null),L(n=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===n.id;return g(n).pipe(L(a=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",I.SupersededByNewNavigation),k;this.currentTransition=n;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:l?x(u({},l),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&d!=="reload")return this.events.next(new V(a.id,this.urlSerializer.serialize(a.rawUrl),"",Pe.IgnoredSameUrlNavigation)),a.resolve(!1),k;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return g(a).pipe(L(f=>(this.events.next(new se(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?k:Promise.resolve(f))),To(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),j(f=>{n.targetSnapshot=f.targetSnapshot,n.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(y=>(y.finalUrl=f.urlAfterRedirects,y)),this.events.next(new Le)}),L(f=>_(n.routesRecognizeHandler.deferredHandle??g(void 0)).pipe(A(()=>f))),j(()=>{let f=new Ue(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(f)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:f,extractedUrl:y,source:S,restoredState:T,extras:W}=a,ee=new se(f,this.urlSerializer.serialize(y),S,T);this.events.next(ee);let Te=An(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=x(u({},a),{targetSnapshot:Te,urlAfterRedirects:y,extras:x(u({},W),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(ue=>(ue.finalUrl=y,ue)),g(n)}else return this.events.next(new V(a.id,this.urlSerializer.serialize(a.extractedUrl),"",Pe.IgnoredByUrlHandlingStrategy)),a.resolve(!1),k}),A(a=>{let l=new ut(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(l),this.currentTransition=n=x(u({},a),{guards:Fi(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),n}),Yi(a=>this.events.next(a)),L(a=>{if(n.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw wt(this.urlSerializer,a.guardsResult);let l=new dt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(l),!s())return k;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",I.GuardRejected),k;if(a.guards.canActivateChecks.length===0)return g(a);let c=new ht(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(c),!s())return k;let d=!1;return g(a).pipe(Ao(this.paramsInheritanceStrategy),j({next:()=>{d=!0;let f=new ft(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(f)},complete:()=>{d||this.cancelNavigationTransition(a,"",I.NoDataFromResolver)}}))}),ln(a=>{let l=d=>{let f=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let y=d._environmentInjector;f.push(this.configLoader.loadComponent(y,d.routeConfig).then(S=>{d.component=S}))}for(let y of d.children)f.push(...l(y));return f},c=l(a.targetSnapshot.root);return c.length===0?g(a):_(Promise.all(c).then(()=>a))}),ln(()=>this.afterPreactivation()),L(()=>{let{currentSnapshot:a,targetSnapshot:l}=n,c=this.createViewTransition?.(this.environmentInjector,a.root,l.root);return c?_(c).pipe(A(()=>n)):g(n)}),he(1),L(a=>{let l=Ui(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=n=a=x(u({},a),{targetRouterState:l}),this.currentNavigation.update(d=>(d.targetRouterState=l,d)),this.events.next(new ve);let c=n.beforeActivateHandler.deferredHandle;return c?_(c.then(()=>a)):g(a)}),j(a=>{new rr(e.routeReuseStrategy,n.targetRouterState,n.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(l=>(l.abort=xo,l)),this.lastSuccessfulNavigation.set(b(this.currentNavigation)),this.events.next(new F(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),Ze(kn(o.signal).pipe(re(()=>!i&&!n.targetRouterState),j(()=>{this.cancelNavigationTransition(n,o.signal.reason+"",I.Aborted)}))),j({complete:()=>{i=!0}}),Ze(this.transitionAbortWithErrorSubject.pipe(j(a=>{throw a}))),Er(()=>{o.abort(),i||this.cancelNavigationTransition(n,"",I.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Ge(a=>{if(i=!0,this.destroyed)return n.resolve(!1),k;if(xn(a))this.events.next(new U(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode)),$i(a)?this.events.next(new me(a.url,a.navigationBehaviorOptions)):n.resolve(!1);else{let l=new ae(n.id,this.urlSerializer.serialize(n.extractedUrl),a,n.targetSnapshot??void 0);try{let c=P(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(c instanceof Re){let{message:d,cancellationCode:f}=wt(this.urlSerializer,c);this.events.next(new U(n.id,this.urlSerializer.serialize(n.extractedUrl),d,f)),this.events.next(new me(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(l),a}catch(c){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(c)}}return k}))}))}cancelNavigationTransition(e,n,i){let o=new U(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=b(this.currentNavigation),i=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==i?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Oo(t){return t!==De}var Qn=new N("");var Zn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>h(ko),providedIn:"root"})}return t})(),It=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}shouldDestroyInjector(r){return!0}},ko=(()=>{class t extends It{static \u0275fac=(()=>{let e;return function(i){return(e||(e=jt(t)))(i||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Et=(()=>{class t{urlSerializer=h(be);options=h(Ie,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=h(tt);urlHandlingStrategy=h(At);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new E;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,s=i??o;return s instanceof E?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:i}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=e):this.rawUrlTree=i}routerState=An(null,h(Q));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>h(Po),providedIn:"root"})}return t})(),Po=(()=>{class t extends Et{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,n){e instanceof se?this.updateStateMemento():e instanceof V?this.commitTransition(n):e instanceof Ue?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof ve?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof U&&!Tn(e)?this.restoreHistory(n):e instanceof ae?this.restoreHistory(n,!0):e instanceof F&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:n,id:i}){let{replaceUrl:o,state:s}=n;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,l=u(u({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",l)}else{let a=u(u({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=jt(t)))(i||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mr(t,r){t.events.pipe(re(e=>e instanceof F||e instanceof U||e instanceof ae||e instanceof V),A(e=>e instanceof F||e instanceof V?0:(e instanceof U?e.code===I.Redirect||e.code===I.SupersededByNewNavigation:!1)?2:1),re(e=>e!==2),he(1)).subscribe(()=>{r()})}var ce=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=h($r);stateManager=h(Et);options=h(Ie,{optional:!0})||{};pendingTasks=h(Or);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=h(Gn);urlSerializer=h(be);location=h(tt);urlHandlingStrategy=h(At);injector=h(Q);_events=new te;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=h(Zn);injectorCleanup=h(Qn,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=h(Ve,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!h(Be,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new br;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=b(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof U&&n.code!==I.Redirect&&n.code!==I.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof F)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof me){let s=n.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),l=u({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Oo(i.source)},s);this.scheduleNavigation(a,De,null,l,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}ki(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),De,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,i,o)=>{this.navigateToSyncWithBrowser(e,i,n,o)})}navigateToSyncWithBrowser(e,n,i,o){let s=i?.navigationId?i:null;if(i){let l=u({},i);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let a=this.parseUrl(e);this.scheduleNavigation(a,n,s,o).catch(l=>{this.disposed||this.injector.get(Je)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return b(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(gr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=u(u({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let y=i?i.snapshot:this.routerState.snapshot.root;f=bn(y)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),f=this.currentUrlTree.root}return wn(f,e,d,c??null,this.urlSerializer)}navigateByUrl(e,n={skipLocationChange:!1}){let i=X(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,De,null,n)}navigate(e,n={skipLocationChange:!1}){return Uo(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Nr(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let i;if(n===!0?i=u({},lr):n===!1?i=u({},Oe):i=u(u({},Oe),n),X(e))return Gt(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Gt(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(e,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((f,y)=>{a=f,l=y});let d=this.pendingTasks.add();return mr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Uo(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new C(4008,!1)}var jo=(()=>{class t{router=h(ce);stateManager=h(Et);fragment=v("");queryParams=v({});path=v("");serializer=h(be);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof F&&this.updateState()})}updateState(){let{fragment:e,root:n,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new E(n)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_t=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=h(new Yr("href"),{optional:!0});reactiveHref=Zr(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return b(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return b(this._target)}_target=v(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return b(this._queryParams)}_queryParams=v(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return b(this._fragment)}_fragment=v(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return b(this._queryParamsHandling)}_queryParamsHandling=v(void 0);set state(e){this._state.set(e)}get state(){return b(this._state)}_state=v(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return b(this._info)}_info=v(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return b(this._relativeTo)}_relativeTo=v(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return b(this._preserveFragment)}_preserveFragment=v(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return b(this._skipLocationChange)}_skipLocationChange=v(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return b(this._replaceUrl)}_replaceUrl=v(!1);isAnchorElement;onChanges=new te;applicationErrorHandler=h(Je);options=h(Ie,{optional:!0});reactiveRouterState=h(jo);constructor(e,n,i,o,s,a){this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a;let l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=v(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(X(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,o,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(e!==0||n||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,e,n):i.removeAttribute(o,e)}_urlTree=Z(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:X(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,n)=>this.computeHref(e)===this.computeHref(n)});get urlTree(){return b(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(n){return new(n||t)(z(ce),z(K),kr("tabindex"),z(Ft),z($t),z(en))};static \u0275dir=Ee({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,i){n&1&&Vr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&Br("href",i.reactiveHref(),Pr)("target",i._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",et],skipLocationChange:[2,"skipLocationChange","skipLocationChange",et],replaceUrl:[2,"replaceUrl","replaceUrl",et],routerLink:"routerLink"},features:[Ae]})}return t})(),$o=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new ne;link=h(_t,{optional:!0});constructor(e,n,i,o){this.router=e,this.element=n,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof F&&this.update()})}ngAfterContentInit(){g(this.links.changes,g(null)).pipe(kt()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=_(e).pipe(kt()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=Fo(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??!1?u({},lr):u({},Oe);return i=>{let o=i.urlTree;return o?b(cr(o,e,n)):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(n){return new(n||t)(z(ce),z($t),z(Ft),z(Xe))};static \u0275dir=Ee({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&Kr(o,_t,5),n&2){let s;Wr(s=Gr())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ae]})}return t})();function Fo(t){let r=t;return!!(r.paths||r.matrixParams||r.queryParams||r.fragment)}var zo=new N("");function Ho(t,...r){return Dr([{provide:Ve,multi:!0,useValue:t},[],{provide:K,useFactory:Bo},{provide:zr,multi:!0,useFactory:Vo},r.map(e=>e.\u0275providers)])}function Bo(){return h(ce).routerState.root}function qo(t,r){return{\u0275kind:t,\u0275providers:r}}function Vo(){let t=h(xr);return r=>{let e=t.get(Hr);if(r!==e.components[0])return;let n=t.get(ce),i=t.get(Ko);t.get(Wo)===1&&n.initialNavigation(),t.get(Go,null,{optional:!0})?.setUpPreloading(),t.get(zo,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Ko=new N("",{factory:()=>new te}),Wo=new N("",{factory:()=>1});var Go=new N("");function Qo(){return qo(8,[fr,{provide:Be,useExisting:fr}])}var Zo=new Set(["stale-body","stale-frontmatter","stale-both"]);function Nt(t){return t?Zo.has(t.status??null):!1}function Ke(t){let r=t.metadata;return r&&typeof r=="object"&&!Array.isArray(r)?r:null}function Ca(t){if(!t)return null;let r=t.sidecar?.annotations;if(r&&typeof r.version=="number")return`v${r.version}`;let e=Ke(t.frontmatter)?.version;return typeof e=="string"&&e.length>0?`v${e}`:null}function yr(t){if(!t)return null;let e=t.sidecar?.annotations?.stability;if(e==="stable"||e==="experimental"||e==="deprecated")return e;let n=Ke(t.frontmatter)?.stability;return n==="stable"||n==="experimental"||n==="deprecated"?n:null}function Ia(t){if(!t)return[];let r=t.frontmatter,e=[];if(t.kind==="agent"&&Array.isArray(r.tools))for(let n of r.tools)typeof n=="string"&&n.length>0&&e.push(n);if(t.kind==="skill"||t.kind==="command"){let n=r["allowed-tools"];if(Array.isArray(n))for(let i of n)typeof i=="string"&&i.length>0&&e.push(i);else typeof n=="string"&&n.length>0&&e.push(n)}return e}function Ta(t){return Nt(t?.sidecar)}function Yn(t){if(!t)return null;let e=t.sidecar?.annotations?.supersededBy;if(typeof e=="string"&&e.length>0)return e;let n=Ke(t.frontmatter)?.supersededBy;return typeof n=="string"&&n.length>0?n:null}function Jn(t){if(!t)return[];let e=t.sidecar?.annotations?.tags;if(Array.isArray(e))return e.filter(i=>typeof i=="string"&&i.length>0);let n=Ke(t.frontmatter)?.tags;return Array.isArray(n)?n.filter(i=>typeof i=="string"&&i.length>0):[]}function Aa(t,r){switch(t?.sidecar?.status){case"stale-body":return r.staleBody;case"stale-frontmatter":return r.staleFrontmatter;case"stale-both":return r.staleBoth;default:return""}}function Ea(t){return t<1e3?`${t}`:t<1e4?`${(t/1e3).toFixed(1).replace(/\.0$/,"")}k`:`${Math.round(t/1e3)}k`}function _a(t){let r=new Date(t);if(isNaN(r.getTime()))return t;let e=Date.now()-r.getTime(),n=Math.floor(e/1e3);if(n<60)return"just now";let i=Math.floor(n/60);if(i<60)return`${i} minute${i===1?"":"s"} ago`;let o=Math.floor(i/60);if(o<24)return`${o} hour${o===1?"":"s"} ago`;let s=Math.floor(o/24);if(s<30)return`${s} day${s===1?"":"s"} ago`;let a=Math.floor(s/30);if(a<12)return`${a} month${a===1?"":"s"} ago`;let l=Math.floor(s/365);return`${l} year${l===1?"":"s"} ago`}var ka=["stable","experimental","deprecated"],Xn=["invokes","references","mentions","supersedes"],ei=class t{_searchText=v("");_selectedKinds=v([]);_kindToggleExplicitEmpty=v(!1);_selectedStabilities=v([]);_hasIssuesOnly=v(!1);_staleOnly=v(!1);_favoritesOnly=v(!1);_selectedLinkKinds=v([]);_severityErrorActive=v(!1);_severityWarnActive=v(!1);searchText=this._searchText.asReadonly();selectedKinds=this._selectedKinds.asReadonly();selectedStabilities=this._selectedStabilities.asReadonly();hasIssuesOnly=this._hasIssuesOnly.asReadonly();staleOnly=this._staleOnly.asReadonly();favoritesOnly=this._favoritesOnly.asReadonly();selectedLinkKinds=this._selectedLinkKinds.asReadonly();severityErrorActive=this._severityErrorActive.asReadonly();severityWarnActive=this._severityWarnActive.asReadonly();kindToggleExplicitEmpty=this._kindToggleExplicitEmpty.asReadonly();isActive=Z(()=>this._searchText().trim().length>0||this._selectedKinds().length>0||this._kindToggleExplicitEmpty()||this._selectedStabilities().length>0||this._hasIssuesOnly()||this._staleOnly()||this._favoritesOnly()||this._selectedLinkKinds().length>0||this._severityErrorActive()||this._severityWarnActive());setSearchText(r){this._searchText.set(r)}setKinds(r){this._kindToggleExplicitEmpty.set(!1),this._selectedKinds.set([...r])}toggleKind(r,e){let n=this._selectedKinds(),i=e,s=this._kindToggleExplicitEmpty()?new Set:n.length===0?new Set(i):new Set(n);s.has(r)?s.delete(r):s.add(r),s.size===i.length?(this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!1)):s.size===0?(this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!0)):(this._selectedKinds.set([...s]),this._kindToggleExplicitEmpty.set(!1))}isKindActive(r){if(this._kindToggleExplicitEmpty())return!1;let e=this._selectedKinds();return e.length===0?!0:e.includes(r)}setStabilities(r){this._selectedStabilities.set([...r])}setHasIssuesOnly(r){this._hasIssuesOnly.set(r)}setStaleOnly(r){this._staleOnly.set(r)}setFavoritesOnly(r){this._favoritesOnly.set(r)}setLinkKinds(r){this._selectedLinkKinds.set([...r])}toggleLinkKind(r){let e=this._selectedLinkKinds(),n=e.length===0?new Set(Xn):new Set(e);n.has(r)?n.delete(r):n.add(r),n.size===Xn.length?this._selectedLinkKinds.set([]):this._selectedLinkKinds.set([...n])}isLinkKindActive(r){let e=this._selectedLinkKinds();return e.length===0?!0:e.includes(r)}toggleSeverity(r){r==="error"?this._severityErrorActive.set(!this._severityErrorActive()):this._severityWarnActive.set(!this._severityWarnActive())}isSeverityActive(r){return r==="error"?this._severityErrorActive():this._severityWarnActive()}setSeverityFilters(r){let e=new Set(r);this._severityErrorActive.set(e.has("error")),this._severityWarnActive.set(e.has("warn"))}reset(){this._searchText.set(""),this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!1),this._selectedStabilities.set([]),this._hasIssuesOnly.set(!1),this._staleOnly.set(!1),this._favoritesOnly.set(!1),this._selectedLinkKinds.set([]),this._severityErrorActive.set(!1),this._severityWarnActive.set(!1)}apply(r,e){let n=this.searchText().trim().toLowerCase(),i=this.selectedKinds(),o=this._kindToggleExplicitEmpty(),s=this.selectedStabilities(),a=this.hasIssuesOnly(),l=this.staleOnly(),c=this.favoritesOnly(),d=this._severityErrorActive(),f=this._severityWarnActive(),y=(d||f)&&e!==void 0;return r.filter(S=>{if(n){let T=S.frontmatter,ee=(Array.isArray(T.tags)?T.tags:[]).filter(de=>typeof de=="string").join(" "),Te=Jn(S).join(" ");if(![S.path,S.frontmatter.name??"",S.frontmatter.description??"",ee,Te].join(" ").toLowerCase().includes(n))return!1}if(o||i.length>0&&!i.includes(S.kind))return!1;if(s.length>0){let T=yr(S);if(!T||!s.includes(T))return!1}return!(a&&!Yo(S,e)||l&&!Nt(S.sidecar)||c&&S.isFavorite!==!0||y&&(d&&!e.errors.has(S.path)||f&&!e.warns.has(S.path)))})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})};function Yo(t,r){return!!(yr(t)==="deprecated"||Yn(t)!==null||r&&(r.errors.has(t.path)||r.warns.has(t.path)))}var ti={invalidHex:t=>`deriveTints: invalid hex color "${t}" (expected #RRGGBB)`};function Mt(t,r,e){return[Math.round(t[0]+(r[0]-t[0])*e),Math.round(t[1]+(r[1]-t[1])*e),Math.round(t[2]+(r[2]-t[2])*e)]}function Jo(t){let r=/^#([0-9a-f]{6})$/i.exec(t);if(!r)throw new Error(ti.invalidHex(t));let e=parseInt(r[1],16);return[e>>16&255,e>>8&255,e&255]}function Dt([t,r,e]){let n=i=>Math.max(0,Math.min(255,i)).toString(16).padStart(2,"0");return`#${n(t)}${n(r)}${n(e)}`}var ri=[255,255,255],ni=[0,0,0];function Rr(t,r){let e=Jo(t);return r==="light"?{bg:Dt(Mt(e,ri,.85)),fg:Dt(Mt(e,ni,.5))}:{bg:Dt(Mt(e,ni,.7)),fg:Dt(Mt(e,ri,.6))}}var Xo=/^[a-zA-Z][a-zA-Z0-9_-]{0,63}$/,ii=/^#[0-9a-f]{6}$/i,oi=class t{doc=h(Ut);_entries=v([]);kinds=this._entries.asReadonly();index=Z(()=>{let r=new Map;for(let e of this._entries())r.set(e.name,e);return r});ingest(r){if(!r)return;let e=[];for(let[i,o]of Object.entries(r)){if(!Xo.test(i))continue;let s=o.providers[o.primaryProviderId];if(!s)continue;let a={name:i,primaryProviderId:o.primaryProviderId,providers:o.providers,label:s.label,color:s.color};s.colorDark!==void 0&&(a.colorDark=s.colorDark),s.emoji!==void 0&&(a.emoji=s.emoji),s.icon!==void 0&&(a.icon=s.icon),e.push(a)}let n=this._entries();ts(n,e)||(this._entries.set(e),this.applyCssVars())}lookup(r){return this.index().get(r)}labelOf(r){return this.lookup(r)?.label??r}colorOf(r,e="light"){let n=this.lookup(r);return n?e==="dark"?n.colorDark??n.color:n.color:"#9ca3af"}iconOf(r){return this.lookup(r)?.icon}emojiOf(r){return this.lookup(r)?.emoji}providersOf(r){return this.lookup(r)?.providers}applyCssVars(){if(!this.doc.head)return;let r=es(this.doc),e=[],n=[];for(let i of this._entries()){if(!ii.test(i.color))continue;let o=i.colorDark??i.color;if(ii.test(o))try{let s=Rr(i.color,"light"),a=Rr(o,"dark");e.push(`--sm-kind-${i.name}: ${i.color};`),e.push(`--sm-kind-${i.name}-bg: ${s.bg};`),e.push(`--sm-kind-${i.name}-fg: ${s.fg};`),n.push(`--sm-kind-${i.name}: ${o};`),n.push(`--sm-kind-${i.name}-bg: ${a.bg};`),n.push(`--sm-kind-${i.name}-fg: ${a.fg};`)}catch{continue}}r.textContent=`:root { ${e.join(" ")} } .app-dark { ${n.join(" ")} }`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})},si="sm-kind-vars";function es(t){let r=t.getElementById(si);return r||(r=t.createElement("style"),r.id=si,t.head.appendChild(r)),r}function ts(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;e++){let n=t[e],i=r[e];if(n.name!==i.name||n.primaryProviderId!==i.primaryProviderId||JSON.stringify(n.providers)!==JSON.stringify(i.providers))return!1}return!0}function Sr(t){let r=t.normalize("NFD");return r=r.replace(new RegExp("\\p{Mn}+","gu"),""),r=r.toLowerCase(),r=r.replace(/[-_\s]+/g," "),r=r.replace(/\s+/g," "),r.trim()}function qa(t){let r=new Map;return rs(t,r),ns(t,r),r}function rs(t,r){for(let e of t){let n=ai(e);if(n===null)continue;let i=Sr(n);r.has(i)||r.set(i,e.path)}}function ns(t,r){for(let e of t){if(ai(e)!==null)continue;let n=is(e.path);if(n.length===0)continue;let i=Sr(n);r.has(i)||r.set(i,e.path)}}function ai(t){let r=t.frontmatter?.name;return typeof r!="string"||r.length===0?null:r}function is(t){let r=t.split("/").filter(n=>n.length>0);if(r.length===0)return t;let e=r[r.length-1];return e==="SKILL.md"&&r.length>=2?r[r.length-2]:e.replace(/\.md$/,"")}function Va(t,r,e){let n=t.charAt(0);if(n!=="/"&&n!=="@")return t;let i=r!==null?r.replace(/^[/@]/,"").trim():Sr(t.slice(1));return e.get(i)??t}export{F as a,K as b,hr as c,vr as d,ce as e,_t as f,$o as g,Ho as h,Qo as i,Nt as j,Ca as k,yr as l,Ia as m,Ta as n,Yn as o,Jn as p,Aa as q,Ea as r,_a as s,ka as t,Xn as u,ei as v,oi as w,qa as x,is as y,Va as z};