@skill-map/cli 0.22.0 → 0.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- import{J as s,M as i,O as r,Sb as n,W as l,ba as o,ca as d,gd as c,hd as u,id as g}from"./chunk-25AWRVIC.js";var L={triggerLabel:"Settings",triggerTooltip:"Settings",modalTitle:"Settings",closeLabel:"Close",sections:{plugins:"Plugins",general:"General",project:"Project",changelog:"Changelog",about:"About"},comingSoonTitle:"Coming soon",comingSoonBody:t=>`${t} settings will land in a future release. The section is reserved here so you know where to look when it ships.`,general:{heading:"General",intro:"User-scope preferences. These settings live in your home directory (`~/.skill-map/settings.json`) and follow you across projects.",loadErrorPrefix:"Could not load preferences:",saveErrorPrefix:"Could not save preferences:",toggles:{"updateCheck.enabled":{label:"Check for updates",description:"Check npm for newer @skill-map/cli releases."}}},project:{heading:"Project",intro:"These settings apply only to this project and are saved in its `.skill-map/settings.local.json` file.",loadErrorPrefix:"Could not load project settings:",saveErrorPrefix:"Could not save project settings:",extraFoldersLabel:"Extra folders to scan",extraFoldersDescription:"Additional folders included in the scan. Their files show up in the graph next to this project. Use ~/ for paths inside your home folder. This is the only way to extend the scan beyond this project.",extraFoldersPlaceholder:"~/.claude/agents, /path/to/another/folder",referencePathsLabel:"Folders for link validation",referencePathsDescription:'Folders checked only to validate links. Files here are not indexed and do not appear in the graph \u2014 they just stop "broken link" warnings when a link points to a real file outside this project.',referencePathsPlaceholder:"~/Documents/research, ~/.claude",addPathLabel:"Add path",removePathLabel:"Remove",confirmDialogHeader:"Allow access to folders outside this project?",confirmDialogIntro:"This change lets the scan read files in:",confirmDialogAccept:"Allow access",confirmDialogReject:"Cancel"},changelogHeading:"Changelog",changelogIntro:"What's new in skill-map. Each entry covers a release of @skill-map/cli (the CLI + bundled UI) and lists the user-facing changes plus the workspace(s) each one affects.",changelogEmpty:"No release notes yet. Future releases will populate this list automatically from the changesets shipped in each PR.",changelogInternalRelease:"Internal release \u2014 focus on stability, infra, and refactors. No user-facing changes this time.",changelogAffectedPackages:"Affected packages",aboutHeading:"About",aboutIntro:"Version information for the running CLI / server.",aboutCliLabel:"skill-map CLI",aboutSpecLabel:"Spec version",aboutSchemaLabel:"Schema version",aboutScopeLabel:"Scope",aboutFolderLabel:"Project folder",aboutDbLabel:"Project DB",aboutHomeLabel:"Skill-map home",aboutDbValue:(t,e)=>t==="present"?e:`${t} \xB7 ${e}`,aboutLoading:"Loading\u2026",aboutUnknown:"\u2014",aboutErrorPrefix:"Could not read health endpoint:",aboutLinksHeading:"Links",aboutWebsiteLabel:"Website",aboutGithubLabel:"GitHub",aboutWebsiteUrl:"https://skill-map.dev/",aboutGithubUrl:"https://github.com/crystian/skill-map",aboutStarHeading:"Enjoying skill-map?",aboutStarBody:"If it's useful to you, drop us a star on GitHub \u2014 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 \u2014 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",sourceGlobal:"Global",enabledLabel:"Enabled",disabledLabel:"Disabled",lockedLabel:"Locked",lockedTooltip:"Locked by the host \u2014 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}`}};var w=new i("SKILL_MAP_MODE");function p(){return typeof document>"u"?"live":document.querySelector('meta[name="skill-map-mode"]')?.content==="demo"?"demo":"live"}var h=class t{dataSource=r(c);loader=r(g);scanning=o(!1);scanError=o(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 u||e instanceof Error?e.message:String(e);this.scanError.set(a),console.warn(`scan-trigger failed: ${a}`)}finally{this.scanning.set(!1)}}}static \u0275fac=function(a){return new(a||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};var f=class t{status=o(null);isOutdated=n(()=>this.status()?.isOutdated===!0);latest=n(()=>this.status()?.latest??null);current=n(()=>this.status()?.current??null);async load(){if(p()!=="demo")try{let e=await globalThis.fetch("/api/update-status");if(!e.ok){console.warn(`UpdateCheckService: /api/update-status returned HTTP ${e.status}`);return}let a=await e.json();this.status.set(a)}catch(e){let a=e instanceof Error?e.message:String(e);console.warn(`UpdateCheckService: fetch failed (${a})`)}}static \u0275fac=function(a){return new(a||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};var b="skill-map.ui.theme",S="app-dark",T="dark",y="(prefers-color-scheme: dark)",v=class t{doc=r(l);mode=o(this.readInitial());systemPrefersDark=o(this.readSystemPref());resolved=n(()=>{let e=this.mode();return e==="auto"?this.systemPrefersDark()?"dark":"light":e});constructor(){this.subscribeToSystemPref(),d(()=>{let e=this.resolved()==="dark",a=this.doc.documentElement;a.classList.toggle(S,e),a.classList.toggle(T,e);try{this.doc.defaultView?.localStorage.setItem(b,this.mode())}catch{}})}toggle(){this.mode.update(e=>e==="auto"?"light":e==="light"?"dark":"auto")}set(e){this.mode.set(e)}readInitial(){try{let e=this.doc.defaultView?.localStorage.getItem(b);if(e==="auto"||e==="light"||e==="dark")return e}catch{}return"auto"}readSystemPref(){try{return this.doc.defaultView?.matchMedia(y).matches??!1}catch{return!1}}subscribeToSystemPref(){let e=this.doc.defaultView;if(!e||typeof e.matchMedia!="function")return;e.matchMedia(y).addEventListener("change",k=>{this.systemPrefersDark.set(k.matches)})}static \u0275fac=function(a){return new(a||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};export{w as a,p as b,L as c,h as d,f as e,v as f};
@@ -1 +0,0 @@
1
- import{i as N,j as w}from"./chunk-V3SZQETX.js";import{$a as ae,Aa as re,Hb as pe,Ib as me,J as Z,Ja as y,Ma as p,Na as m,O as ee,Oa as ie,Qa as I,Ra as x,S as te,Sa as C,Sb as i,T as ne,Ta as f,Ua as v,Va as P,Vb as ue,Wa as d,Wb as g,Xa as c,Ya as $,ba as oe,cb as se,fb as de,gb as a,jc as ye,na as r,rb as le,sb as D,ub as X,va as _,vb as s,wb as l,xb as ce}from"./chunk-25AWRVIC.js";import{c as Q}from"./chunk-Q7L6LLAK.js";var L=class n{registry=oe({});setRegistry(e){e&&this.registry.set(e)}get(e){return this.registry()[e]}all(){return this.registry()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"})};var h={panelHeader:"Plugin contributions",panelCount:n=>`${n} contribution${n===1?"":"s"}`,emptyDefault:"No contributions for this node.",rendererInvalid:"Contribution data failed schema validation.",rendererUnknownSlot:n=>`Unknown slot: ${n}. Update the UI to a newer catalog version.`,overflowBadge:n=>`+${n}`,overflowTooltip:n=>`Hidden: ${n}`};var Ce=(n,e)=>e.label;function Ie(n,e){if(n&1&&(d(0,"h5",1),s(1),c()),n&2){let t=a();r(),l(t.label())}}function xe(n,e){if(n&1&&(d(0,"p",2),s(1),c()),n&2){let t=a();r(),l(t.emptyText())}}function he(n,e){if(n&1&&(d(0,"li",4)(1,"span",5),s(2),c(),d(3,"span",6),$(4,"span",7),c(),d(5,"span",8),s(6),c()()),n&2){let t=e.$implicit,o=a(2);y("title",t.tooltip??""),r(2),l(t.label),r(2),le("width",o.percent(t.value),"%"),r(2),l(t.value)}}function Ne(n,e){if(n&1&&(d(0,"ul",3),I(1,he,7,5,"li",4,Ce),c()),n&2){let t=a();r(),x(t.entries())}}var B=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{entries:[]}:e});entries=i(()=>this.typed().entries??[]);label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);maxValue=i(()=>this.entries().reduce((t,o)=>o.value>t?o.value:t,0));percent(e){let t=this.maxValue();return t===0?0:Math.round(e/t*100)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-breakdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-breakdown"],[1,"vc-breakdown__header"],[1,"vc-breakdown__empty"],[1,"vc-breakdown__rows"],[1,"vc-breakdown__row"],[1,"vc-breakdown__label"],[1,"vc-breakdown__bar-track"],["aria-hidden","true",1,"vc-breakdown__bar"],[1,"vc-breakdown__value"]],template:function(t,o){t&1&&(d(0,"section",0),p(1,Ie,2,1,"h5",1),p(2,xe,2,1,"p",2)(3,Ne,3,0,"ul",3),c()),t&2&&(y("data-testid","renderer-node-breakdown"),r(),m(o.label()?1:-1),r(),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:.25rem;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 we(n,e){if(n&1&&(d(0,"span",1),s(1),c()),n&2){let t=a(),o=a();X(o.hostClass()),r(),l(t.text)}}function Te(n,e){if(n&1&&$(0,"i",1),n&2){let t=a(),o=a();X(o.hostClass()+" "+t.cls)}}function Me(n,e){n&1&&p(0,we,2,3,"span",0)(1,Te,1,2,"i",0),n&2&&m(e.kind==="emoji"?0:1)}function ke(n){if(!n)return null;let e=n.trim();if(e.length===0)return null;let t=e.codePointAt(0)??0;if(!(t>=65&&t<=90||t>=97&&t<=122))return{kind:"emoji",text:e};if(/^pi pi-[a-z0-9-]+$/.test(e))return{kind:"pi",cls:e};if(/^pi-[a-z0-9-]+$/.test(e))return{kind:"pi",cls:`pi ${e}`};if(/^fa-(?:solid|regular|brands) fa-[a-z0-9-]+$/.test(e))return{kind:"fa",cls:e};if(/^fa-[a-z0-9-]+$/.test(e)){let u=e.slice(3);return u==="solid"||u==="regular"||u==="brands"||u.includes("fa-")?null:{kind:"fa",cls:`fa-solid ${e}`}}return null}var S=class n{icon=g(void 0);hostClass=g("");resolved=i(()=>{let e=this.icon(),t=ke(e);return e&&!t&&console.warn(`[sm-icon] Invalid icon string "${e}". Expected emoji, pi-foo, pi pi-foo, fa-{solid|regular|brands} fa-foo, or fa-foo.`),t});static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-icon"]],inputs:{icon:[1,"icon"],hostClass:[1,"hostClass"]},decls:1,vars:1,consts:[["aria-hidden","true",3,"class"],["aria-hidden","true"]],template:function(t,o){if(t&1&&p(0,Me,2,1),t&2){let u;m((u=o.resolved())?0:-1,u)}},styles:["[_nghost-%COMP%] i[_ngcontent-%COMP%], [_nghost-%COMP%] span[_ngcontent-%COMP%]{font-size:inherit;line-height:inherit}[_nghost-%COMP%] i[_ngcontent-%COMP%]{transform:translateY(1px)}"],changeDetection:0})};function Ee(n,e){if(n&1&&(f(0,"span",3),s(1),v()),n&2){let t=a();y("aria-label",t.ariaLabel()),r(),l(t.value())}}var O=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{value:0}:e});value=i(()=>this.typed().value);icon=i(()=>this.inputs().icon);severity=i(()=>this.typed().severity);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=i(()=>this.inputs().label??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-counter"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-counter",3,"pTooltip"],[1,"vc-counter__icon"],[3,"icon"],[1,"vc-counter__value"]],template:function(t,o){t&1&&(f(0,"span",0)(1,"span",1),P(2,"sm-icon",2),v(),p(3,Ee,2,2,"span",3),v()),t&2&&(D("vc-counter--info",o.severity()==="info")("vc-counter--warn",o.severity()==="warn")("vc-counter--success",o.severity()==="success")("vc-counter--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),y("data-testid","renderer-node-counter"),r(2),C("icon",o.icon()),r(),m(o.value()>0?3:-1))},dependencies:[w,N,S],styles:[".vc-counter[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1}.vc-counter__icon[_ngcontent-%COMP%]{font-size:.6rem;line-height:1;display:block}.vc-counter__value[_ngcontent-%COMP%]{font-weight:600;color:var(--p-text-color);line-height:1;display:block}.vc-counter--info[_ngcontent-%COMP%], .vc-counter--info[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-counter--warn[_ngcontent-%COMP%], .vc-counter--warn[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-counter--success[_ngcontent-%COMP%], .vc-counter--success[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-counter--danger[_ngcontent-%COMP%], .vc-counter--danger[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})};var De=(n,e)=>e.key;function Se(n,e){if(n&1&&(f(0,"h5",1),s(1),v()),n&2){let t=a();r(),l(t.label())}}function Pe(n,e){if(n&1&&(f(0,"p",2),s(1),v()),n&2){let t=a();r(),l(t.emptyText())}}function Oe(n,e){if(n&1&&(f(0,"dt",4),s(1),v(),f(2,"dd"),s(3),v()),n&2){let t=e.$implicit,o=a(2);C("pTooltip",t.tooltip??""),r(),l(t.key),r(2),l(o.formatValue(t.value))}}function Re(n,e){if(n&1&&(f(0,"dl",3),I(1,Oe,4,3,null,null,De),v()),n&2){let t=a();r(),x(t.entries())}}var F=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{entries:[]}:e});entries=i(()=>this.typed().entries??[]);label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);formatValue(e){return e==null?"\u2014":typeof e=="boolean"?e?"true":"false":String(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-key-values"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-kv"],[1,"vc-kv__header"],[1,"vc-kv__empty"],[1,"vc-kv__list"],[3,"pTooltip"]],template:function(t,o){t&1&&(f(0,"section",0),p(1,Se,2,1,"h5",1),p(2,Pe,2,1,"p",2)(3,Re,3,0,"dl",3),v()),t&2&&(y("data-testid","renderer-node-key-values"),r(),m(o.label()?1:-1),r(),m(o.entries().length===0?2:3))},dependencies:[w,N],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 We=(n,e)=>e.path;function $e(n,e){if(n&1&&(d(0,"h5",1),s(1),c()),n&2){let t=a();r(),l(t.label())}}function Le(n,e){if(n&1&&(d(0,"p",2),s(1),c()),n&2){let t=a();r(),l(t.emptyText())}}function Be(n,e){if(n&1&&(d(0,"span",5),s(1),c()),n&2){let t=a().$implicit;r(),l(t.kind)}}function Fe(n,e){if(n&1){let t=se();d(0,"li")(1,"button",4),de("click",function(){let u=te(t).$implicit,b=a(2);return ne(b.openPath.emit(u.path))}),p(2,Be,2,1,"span",5),d(3,"span",6),s(4),c()()()}if(n&2){let t=e.$implicit;r(2),m(t.kind?2:-1),r(2),l(t.label??t.path)}}function ze(n,e){if(n&1&&(d(0,"ul",3),I(1,Fe,5,2,"li",null,We),c()),n&2){let t=a();r(),x(t.entries())}}var z=class n{inputs=g.required();openPath=ue();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{entries:[]}:e});entries=i(()=>this.typed().entries??[]);label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-link-list"]],inputs:{inputs:[1,"inputs"]},outputs:{openPath:"openPath"},decls:4,vars:3,consts:[[1,"vc-links"],[1,"vc-links__header"],[1,"vc-links__empty"],[1,"vc-links__list"],["type","button",1,"vc-links__btn",3,"click"],[1,"vc-links__kind"],[1,"vc-links__label"]],template:function(t,o){t&1&&(d(0,"section",0),p(1,$e,2,1,"h5",1),p(2,Le,2,1,"p",2)(3,ze,3,0,"ul",3),c()),t&2&&(y("data-testid","renderer-node-link-list"),r(),m(o.label()?1:-1),r(),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:.25rem;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, monospace);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 ge=(n,e)=>e.key;function Ve(n,e){if(n&1&&(d(0,"h5",1),s(1),c()),n&2){let t=a();r(),l(t.label())}}function Ae(n,e){if(n&1&&(d(0,"p",2),s(1),c()),n&2){let t=a();r(),l(t.emptyText())}}function je(n,e){if(n&1&&(d(0,"th"),s(1),c()),n&2){let t=e.$implicit;r(),l(t.label)}}function qe(n,e){if(n&1&&(d(0,"td"),s(1),c()),n&2){let t=e.$implicit,o=a().$implicit,u=a(2);r(),l(u.formatCell(o[t.key]))}}function Ke(n,e){if(n&1&&(d(0,"tr"),I(1,qe,2,1,"td",null,ge),c()),n&2){let t=a(2);r(),x(t.columns())}}function Ue(n,e){if(n&1&&(d(0,"table",3)(1,"thead")(2,"tr"),I(3,je,2,1,"th",null,ge),c()(),d(5,"tbody"),I(6,Ke,3,0,"tr",null,ie),c()()),n&2){let t=a();r(3),x(t.columns()),r(3),x(t.rows())}}var V=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{columns:[],rows:[]}:e});columns=i(()=>this.typed().columns??[]);rows=i(()=>this.typed().rows??[]);label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);formatCell(e){return e==null?"":typeof e=="boolean"?e?"\u2713":"\xB7":String(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-records"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-records"],[1,"vc-records__header"],[1,"vc-records__empty"],[1,"vc-records__table"]],template:function(t,o){t&1&&(d(0,"section",0),p(1,Ve,2,1,"h5",1),p(2,Ae,2,1,"p",2)(3,Ue,8,0,"table",3),c()),t&2&&(y("data-testid","renderer-node-records"),r(),m(o.label()?1:-1),r(),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}"],changeDetection:0})};function He(n,e){if(n&1&&(d(0,"h5",1),s(1),c()),n&2){let t=a();r(),l(t.label())}}function Xe(n,e){if(n&1&&(d(0,"p",2),s(1),c()),n&2){let t=a();r(),l(t.emptyText())}}function Ye(n,e){if(n&1&&(d(0,"pre",3),s(1),c()),n&2){let t=a();r(),l(t.markdown())}}var A=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{markdown:""}:e});markdown=i(()=>this.typed().markdown??"");label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-markdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-markdown"],[1,"vc-markdown__header"],[1,"vc-markdown__empty"],[1,"vc-markdown__body"]],template:function(t,o){t&1&&(d(0,"section",0),p(1,He,2,1,"h5",1),p(2,Xe,2,1,"p",2)(3,Ye,2,1,"pre",3),c()),t&2&&(y("data-testid","renderer-node-markdown"),r(),m(o.label()?1:-1),r(),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:.25rem;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 Ge(n,e){if(n&1&&(f(0,"span",1),s(1),v()),n&2){let t=a();r(),l(t.icon())}}var j=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{label:""}:e});label=i(()=>this.typed().label||"");icon=i(()=>this.inputs().icon);severity=i(()=>this.typed().severity);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-tag"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-tag",3,"pTooltip"],["aria-hidden","true",1,"vc-tag__icon"],[1,"vc-tag__label"]],template:function(t,o){t&1&&(f(0,"span",0),p(1,Ge,2,1,"span",1),f(2,"span",2),s(3),v()()),t&2&&(D("vc-tag--info",o.severity()==="info")("vc-tag--warn",o.severity()==="warn")("vc-tag--success",o.severity()==="success")("vc-tag--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),y("data-testid","renderer-node-tag"),r(),m(o.icon()?1:-1),r(2),l(o.label()))},dependencies:[w,N],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:3px}.vc-tag--warn[_ngcontent-%COMP%]{background:var(--sm-severity-warn-bg);color:var(--sm-severity-warn);padding:.1rem .4rem;border-radius:3px}.vc-tag--success[_ngcontent-%COMP%]{background:var(--sm-severity-success-bg);color:var(--sm-severity-success);padding:.1rem .4rem;border-radius:3px}.vc-tag--danger[_ngcontent-%COMP%]{background:var(--sm-severity-error-bg);color:var(--sm-severity-error);padding:.1rem .4rem;border-radius:3px}"],changeDetection:0})};var Je=()=>[],fe=(n,e)=>e.label;function Qe(n,e){if(n&1&&(d(0,"h5",1),s(1),c()),n&2){let t=a();r(),l(t.label())}}function Ze(n,e){if(n&1&&(d(0,"p",2),s(1),c()),n&2){let t=a();r(),l(t.emptyText())}}function et(n,e){if(n&1&&(d(0,"span",5),s(1),c()),n&2){let t=a().$implicit;r(),l(t.marker)}}function tt(n,e){if(n&1&&(d(0,"span",5),s(1),c()),n&2){let t=a().$implicit;r(),l(t.marker)}}function nt(n,e){if(n&1&&(d(0,"li",4),p(1,tt,2,1,"span",5),d(2,"span",6),s(3),c()()),n&2){let t=e.$implicit;y("title",t.tooltip??""),r(),m(t.marker?1:-1),r(2),l(t.label)}}function ot(n,e){if(n&1&&(d(0,"ul",7),I(1,nt,4,3,"li",4,fe),c()),n&2){let t=a().$implicit;r(),x(t.children)}}function rt(n,e){if(n&1&&(d(0,"li",4),p(1,et,2,1,"span",5),d(2,"span",6),s(3),c(),p(4,ot,3,0,"ul",7),c()),n&2){let t=e.$implicit;y("title",t.tooltip??""),r(),m(t.marker?1:-1),r(2),l(t.label),r(),m(t.children&&t.children.length>0?4:-1)}}function it(n,e){if(n&1&&(d(0,"ul",3),I(1,rt,5,4,"li",4,fe),c()),n&2){let t=a();r(),x(t.root().children??pe(0,Je))}}var q=class n{inputs=g.required();root=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{label:""}:e});rootIsEmpty=i(()=>{let e=this.root();return!e.children||e.children.length===0});label=i(()=>this.inputs().label);emptyText=i(()=>this.inputs().emptyText??h.emptyDefault);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-tree"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-tree"],[1,"vc-tree__header"],[1,"vc-tree__empty"],["role","tree",1,"vc-tree__list"],["role","treeitem"],["aria-hidden","true",1,"vc-tree__marker"],[1,"vc-tree__label"],["role","group",1,"vc-tree__list"]],template:function(t,o){t&1&&(d(0,"section",0),p(1,Qe,2,1,"h5",1),p(2,Ze,2,1,"p",2)(3,it,3,1,"ul",3),c()),t&2&&(y("data-testid","renderer-node-tree"),r(),m(o.label()?1:-1),r(),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 at(n,e){if(n&1&&(f(0,"span",2),s(1),v()),n&2){let t=a();r(),l(t.formattedCount())}}var K=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{}:e});icon=i(()=>this.typed().icon??this.inputs().icon);severity=i(()=>this.typed().severity);count=i(()=>this.typed().count??null);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");formattedCount=i(()=>{let e=this.count();return e===null?"":e>=99?"99+":String(e)});static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-alert"]],inputs:{inputs:[1,"inputs"]},decls:3,vars:12,consts:[[1,"vc-alert",3,"pTooltip"],["hostClass","vc-alert__icon",3,"icon"],[1,"vc-alert__count"]],template:function(t,o){t&1&&(f(0,"span",0),P(1,"sm-icon",1),p(2,at,2,1,"span",2),v()),t&2&&(D("vc-alert--info",o.severity()==="info")("vc-alert--warn",o.severity()==="warn")("vc-alert--success",o.severity()==="success")("vc-alert--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),y("data-testid","renderer-node-alert"),r(),C("icon",o.icon()),r(),m(o.count()!==null?2:-1))},dependencies:[w,N,S],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 U=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{}:e});icon=i(()=>this.typed().icon??this.inputs().icon);severity=i(()=>this.typed().severity);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=i(()=>this.inputs().label??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-node-icon"]],inputs:{inputs:[1,"inputs"]},decls:2,vars:12,consts:[[1,"vc-icon",3,"pTooltip"],["hostClass","vc-icon__glyph",3,"icon"]],template:function(t,o){t&1&&(f(0,"span",0),P(1,"sm-icon",1),v()),t&2&&(D("vc-icon--info",o.severity()==="info")("vc-icon--warn",o.severity()==="warn")("vc-icon--success",o.severity()==="success")("vc-icon--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),y("aria-label",o.ariaLabel())("data-testid","renderer-node-icon"),r(),C("icon",o.icon()))},dependencies:[w,N,S],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 st(n,e){if(n&1&&(f(0,"span",3),s(1),v()),n&2){let t=a();r(),l(t.label())}}var H=class n{inputs=g.required();typed=i(()=>{let e=this.inputs().payload;return typeof e!="object"||e===null?{value:""}:e});value=i(()=>String(this.typed().value??""));label=i(()=>this.typed().label??this.inputs().label);icon=i(()=>this.inputs().icon);severity=i(()=>this.typed().severity);resolvedTooltip=i(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-scope-stat"]],inputs:{inputs:[1,"inputs"]},decls:5,vars:13,consts:[[1,"vc-stat",3,"pTooltip"],["hostClass","vc-stat__icon",3,"icon"],[1,"vc-stat__value"],[1,"vc-stat__label"]],template:function(t,o){t&1&&(f(0,"span",0),P(1,"sm-icon",1),f(2,"span",2),s(3),v(),p(4,st,2,1,"span",3),v()),t&2&&(D("vc-stat--info",o.severity()==="info")("vc-stat--warn",o.severity()==="warn")("vc-stat--success",o.severity()==="success")("vc-stat--danger",o.severity()==="danger"),C("pTooltip",o.resolvedTooltip()),y("data-testid","renderer-scope-stat"),r(),C("icon",o.icon()),r(2),l(o.value()),r(),m(o.label()?4:-1))},dependencies:[w,N,S],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 Y={"card.title.right":U,"card.subtitle.left":O,"card.footer.left":O,"card.footer.right":O,"graph.node.alert":K,"inspector.header.badge.counter":O,"inspector.header.badge.tag":j,"inspector.body.panel.breakdown":B,"inspector.body.panel.records":V,"inspector.body.panel.tree":q,"inspector.body.panel.key-values":F,"inspector.body.panel.link-list":z,"inspector.body.panel.markdown":A,"topbar.nav.start":H};function ve(n){return n in Y}var R={"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 dt=n=>({inputs:n}),lt=(n,e)=>e.qualifiedId;function ct(n,e){n&1&&ae(0)}function pt(n,e){if(n&1&&(f(0,"span",1),re(1,ct,1,0,"ng-container",3),v()),n&2){let t=e.$implicit,o=a(2);y("data-testid","contribution-"+t.qualifiedId.replaceAll("/","-")),r(),C("ngComponentOutlet",o.rendererFor(t.slot))("ngComponentOutletInputs",me(3,dt,t.rendererInputs))}}function mt(n,e){if(n&1&&(f(0,"span",2),s(1),v()),n&2){let t=a(2);C("pTooltip",t.overflowTooltip()),r(),ce(" ",t.overflowBadge()," ")}}function ut(n,e){if(n&1&&(f(0,"span",0),I(1,pt,2,5,"span",1,lt),p(3,mt,2,2,"span",2),v()),n&2){let t=a();y("data-testid","view-contributions-host-"+t.testidSuffix()),r(),x(t.visible()),r(2),m(t.overflowCount()>0&&t.showOverflowBadge()?3:-1)}}var _e=class n{slot=g.required();node=g(null);testidSuffix=i(()=>this.slot().replaceAll(".","-"));registry=ee(L);dispatched=i(()=>{let e=this.node();if(!e)return[];let t=e.contributions??[];if(t.length===0)return[];let o=this.slot(),u=t.filter(b=>b.slot===o).filter(b=>ve(b.slot));return this.sortBySlotOrder(u,o).map(b=>({qualifiedId:`${b.pluginId}/${b.extensionId}/${b.contributionId}`,slot:b.slot,rendererInputs:this.buildInputs(b,o)}))});visible=i(()=>{let e=this.dispatched(),t=R[this.slot()].maxItems;return e.slice(0,t)});overflowCount=i(()=>{let e=this.dispatched(),t=R[this.slot()].maxItems;return Math.max(0,e.length-t)});showOverflowBadge=i(()=>R[this.slot()].showOverflowBadge!==!1);overflowBadge=i(()=>h.overflowBadge(this.overflowCount()));overflowTooltip=i(()=>{let e=this.dispatched(),t=R[this.slot()].maxItems,o=e.slice(t).map(u=>u.qualifiedId).join(", ");return h.overflowTooltip(o)});rendererFor(e){return Y[e]}buildInputs(e,t){let o=`${e.pluginId}/${e.extensionId}/${e.contributionId}`,u=this.registry.get(o),b=R[t].respectSeverity!==!1,M=e.payload;if(!b&&typeof M=="object"&&M!==null&&"severity"in M){let J=M,{severity:gt}=J;M=Q(J,["severity"])}let E={pluginId:e.pluginId,extensionId:e.extensionId,contributionId:e.contributionId,payload:M};return u?.label&&(E.label=u.label),u?.tooltip&&(E.tooltip=u.tooltip),u?.icon&&(E.icon=u.icon),u?.emptyText&&(E.emptyText=u.emptyText),E}sortBySlotOrder(e,t){let o=R[t].order;return o==="fifo"?e.slice():o==="priority"?e.slice().sort((u,b)=>{let M=this.priorityFor(u),E=this.priorityFor(b);return M!==E?M-E:G(u,b)}):o==="severity"?e.slice().sort((u,b)=>{let M=be(u),E=be(b);return M!==E?E-M:G(u,b)}):e.slice().sort(G)}priorityFor(e){let t=`${e.pluginId}/${e.extensionId}/${e.contributionId}`;return this.registry.get(t)?.priority??100}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["sm-view-contributions-host"]],inputs:{slot:[1,"slot"],node:[1,"node"]},decls:1,vars:1,consts:[[1,"vch"],[1,"vch__slot"],["data-testid","view-contributions-host-overflow",1,"vch__overflow",3,"pTooltip"],[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(t,o){t&1&&p(0,ut,4,2,"span",0),t&2&&m(o.visible().length>0||o.overflowCount()>0?0:-1)},dependencies:[ye,w,N],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 G(n,e){let t=`${n.pluginId}/${n.extensionId}/${n.contributionId}`,o=`${e.pluginId}/${e.extensionId}/${e.contributionId}`;return t<o?-1:t>o?1:0}function be(n){let e=n.payload;if(typeof e!="object"||e===null)return 0;switch(e.severity){case"danger":return 4;case"warn":return 3;case"info":return 2;case"success":return 1;default:return 0}}function yt(n){if(typeof n!="object"||n===null)return!1;let e=n;if(typeof e.type!="string"||e.type.length===0)return!1;let t=e.timestamp;return!(typeof t!="number"&&typeof t!="string"||!("data"in e))}function no(n){if(!yt(n)||n.type!=="sidecar.bumped")return!1;let e=n.data;if(typeof e!="object"||e===null||typeof e.nodePath!="string"||e.nodePath.length===0)return!1;let t=e.version;return!(t!==null&&typeof t!="number"||e.status!=="fresh")}export{L as a,_e as b,yt as c,no as d};
@@ -1,61 +0,0 @@
1
- import{$ as re,A as Ve,C as Fn,Ca as Jn,D as U,Da as Xn,E as ee,F as k,Fa as tr,G as S,Ga as er,Gb as lr,H as zn,J as y,Ja as nr,Jc as Sr,K as We,L as Bn,M as I,N as ne,O as d,Oc as Cr,P as qn,Pc as Tr,Q as Z,Qb as cr,R as P,Rb as R,Sb as H,Tb as ur,Tc as Ir,Ub as dr,V as Vn,Va as rr,Wb as at,Wc as en,X as Ge,Y as Wn,Z as ot,_ as Ke,a as Pn,ac as oe,b as _n,ba as m,bc as F,c as Un,ca as Qe,cc as gt,d as rt,da as Mt,e as L,ea as Nt,eb as ir,ec as hr,f as x,fa as Gn,fd as ce,ga as Ze,gc as pr,h as O,hc as se,i as g,j as kn,jb as or,k as ze,ka as Kn,l as jn,lb as sr,mb as ar,n as T,o as Be,p as V,pc as fr,q as qe,qa as Ye,r as $n,ra as A,s as Jt,sa as ie,ta as Qn,u as it,ua as Je,v as Xt,va as Zn,vc as gr,w as te,wa as Xe,x as ft,xa as st,xc as wr,y as Hn,z as Q,za as Yn}from"./chunk-25AWRVIC.js";import{D as Y,M as Rr,a as Lt,h as vr,i as mr,j as yr,m as z,p as tn,r as ae,s as br,u as le}from"./chunk-3R7E3HPC.js";import{a as u,b as N}from"./chunk-Q7L6LLAK.js";var p="primary",Gt=Symbol("RouteTitle"),an=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t[0]:t}return null}getAll(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function ct(e){return new an(e)}function nn(e,r,t){for(let n=0;n<e.length;n++){let i=e[n],o=r[n];if(i[0]===":")t[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function Lr(e,r,t){let n=t.path.split("/"),i=n.indexOf("**");if(i===-1){if(n.length>e.length||t.pathMatch==="full"&&(r.hasChildren()||n.length<e.length))return null;let l={},c=e.slice(0,n.length);return nn(n,c,l)?{consumed:c,posParams:l}:null}if(i!==n.lastIndexOf("**"))return null;let o=n.slice(0,i),a=n.slice(i+1);if(o.length+a.length>e.length||t.pathMatch==="full"&&r.hasChildren()&&t.path!=="**")return null;let s={};return!nn(o,e.slice(0,o.length),s)||!nn(a,e.slice(e.length-a.length),s)?null:{consumed:e,posParams:s}}function ge(e){return new Promise((r,t)=>{e.pipe(Q()).subscribe({next:n=>r(n),error:n=>t(n)})})}function Mi(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;++t)if(!B(e[t],r[t]))return!1;return!0}function B(e,r){let t=e?ln(e):void 0,n=r?ln(r):void 0;if(!t||!n||t.length!=n.length)return!1;let i;for(let o=0;o<t.length;o++)if(i=t[o],!xr(e[i],r[i]))return!1;return!0}function ln(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function xr(e,r){if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return!1;let t=[...e].sort(),n=[...r].sort();return t.every((i,o)=>n[o]===i)}else return e===r}function Ni(e){return e.length>0?e[e.length-1]:null}function ht(e){return ze(e)?e:Xn(e)?O(Promise.resolve(e)):g(e)}function Pr(e){return ze(e)?ge(e):Promise.resolve(e)}var Li={exact:Ur,subset:kr},_r={exact:xi,subset:Pi,ignored:()=>!0},Sn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},jt={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Cn(e,r,t){let n=e instanceof E?e:r.parseUrl(e);return H(()=>cn(r.lastSuccessfulNavigation()?.finalUrl??new E,n,u(u({},jt),t)))}function cn(e,r,t){return Li[t.paths](e.root,r.root,t.matrixParams)&&_r[t.queryParams](e.queryParams,r.queryParams)&&!(t.fragment==="exact"&&e.fragment!==r.fragment)}function xi(e,r){return B(e,r)}function Ur(e,r,t){if(!lt(e.segments,r.segments)||!he(e.segments,r.segments,t)||e.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!e.children[n]||!Ur(e.children[n],r.children[n],t))return!1;return!0}function Pi(e,r){return Object.keys(r).length<=Object.keys(e).length&&Object.keys(r).every(t=>xr(e[t],r[t]))}function kr(e,r,t){return jr(e,r,r.segments,t)}function jr(e,r,t,n){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!lt(i,t)||r.hasChildren()||!he(i,t,n))}else if(e.segments.length===t.length){if(!lt(e.segments,t)||!he(e.segments,t,n))return!1;for(let i in r.children)if(!e.children[i]||!kr(e.children[i],r.children[i],n))return!1;return!0}else{let i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!lt(e.segments,i)||!he(e.segments,i,n)||!e.children[p]?!1:jr(e.children[p],r,o,n)}}function he(e,r,t){return r.every((n,i)=>_r[t](e[i].parameters,n.parameters))}var E=class{root;queryParams;fragment;_queryParamMap;constructor(r=new v([],{}),t={},n=null){this.root=r,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ct(this.queryParams),this._queryParamMap}toString(){return ki.serialize(this)}},v=class{segments;children;parent=null;constructor(r,t){this.segments=r,this.children=t,Object.values(t).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return pe(this)}},J=class{path;parameters;_parameterMap;constructor(r,t){this.path=r,this.parameters=t}get parameterMap(){return this._parameterMap??=ct(this.parameters),this._parameterMap}toString(){return Hr(this)}};function _i(e,r){return lt(e,r)&&e.every((t,n)=>B(t.parameters,r[n].parameters))}function lt(e,r){return e.length!==r.length?!1:e.every((t,n)=>t.path===r[n].path)}function Ui(e,r){let t=[];return Object.entries(e.children).forEach(([n,i])=>{n===p&&(t=t.concat(r(i,n)))}),Object.entries(e.children).forEach(([n,i])=>{n!==p&&(t=t.concat(r(i,n)))}),t}var Tt=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>new X,providedIn:"root"})}return e})(),X=class{parse(r){let t=new dn(r);return new E(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(r){let t=`/${xt(r.root,!0)}`,n=Hi(r.queryParams),i=typeof r.fragment=="string"?`#${ji(r.fragment)}`:"";return`${t}${n}${i}`}},ki=new X;function pe(e){return e.segments.map(r=>Hr(r)).join("/")}function xt(e,r){if(!e.hasChildren())return pe(e);if(r){let t=e.children[p]?xt(e.children[p],!1):"",n=[];return Object.entries(e.children).forEach(([i,o])=>{i!==p&&n.push(`${i}:${xt(o,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}else{let t=Ui(e,(n,i)=>i===p?[xt(e.children[p],!1)]:[`${i}:${xt(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[p]!=null?`${pe(e)}/${t[0]}`:`${pe(e)}/(${t.join("//")})`}}function $r(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ue(e){return $r(e).replace(/%3B/gi,";")}function ji(e){return encodeURI(e)}function un(e){return $r(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function fe(e){return decodeURIComponent(e)}function Er(e){return fe(e.replace(/\+/g,"%20"))}function Hr(e){return`${un(e.path)}${$i(e.parameters)}`}function $i(e){return Object.entries(e).map(([r,t])=>`;${un(r)}=${un(t)}`).join("")}function Hi(e){let r=Object.entries(e).map(([t,n])=>Array.isArray(n)?n.map(i=>`${ue(t)}=${ue(i)}`).join("&"):`${ue(t)}=${ue(n)}`).filter(t=>t);return r.length?`?${r.join("&")}`:""}var Fi=/^[^\/()?;#]+/;function rn(e){let r=e.match(Fi);return r?r[0]:""}var zi=/^[^\/()?;=#]+/;function Bi(e){let r=e.match(zi);return r?r[0]:""}var qi=/^[^=?&#]+/;function Vi(e){let r=e.match(qi);return r?r[0]:""}var Wi=/^[^&#]+/;function Gi(e){let r=e.match(Wi);return r?r[0]:""}var dn=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],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 S(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,r));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,r)),(t.length>0||Object.keys(n).length>0)&&(i[p]=new v(t,n)),i}parseSegment(){let r=rn(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(r),new J(fe(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let t=Bi(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let i=rn(this.remaining);i&&(n=i,this.capture(n))}r[fe(t)]=fe(n)}parseQueryParam(r){let t=Vi(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let a=Gi(this.remaining);a&&(n=a,this.capture(n))}let i=Er(t),o=Er(n);if(r.hasOwnProperty(i)){let a=r[i];Array.isArray(a)||(a=[a],r[i]=a),a.push(o)}else r[i]=o}parseParens(r,t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=rn(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new S(4010,!1);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):r&&(a=p);let s=this.parseChildren(t+1);n[a??p]=Object.keys(s).length===1&&s[p]?s[p]:new v([],s),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 S(4011,!1)}};function Fr(e){return e.segments.length>0?new v([],{[p]:e}):e}function zr(e){let r={};for(let[n,i]of Object.entries(e.children)){let o=zr(i);if(n===p&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))r[a]=s;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let t=new v(e.segments,r);return Ki(t)}function Ki(e){if(e.numberOfChildren===1&&e.children[p]){let r=e.children[p];return new v(e.segments.concat(r.segments),r.children)}return e}function tt(e){return e instanceof E}function Br(e,r,t=null,n=null,i=new X){let o=qr(e);return Vr(o,r,t,n,i)}function qr(e){let r;function t(o){let a={};for(let l of o.children){let c=t(l);a[l.outlet]=c}let s=new v(o.url,a);return o===e&&(r=s),s}let n=t(e.root),i=Fr(n);return r??i}function Vr(e,r,t,n,i){let o=e;for(;o.parent;)o=o.parent;if(r.length===0)return on(o,o,o,t,n,i);let a=Qi(r);if(a.toRoot())return on(o,o,new v([],{}),t,n,i);let s=Zi(a,o,e),l=s.processChildren?_t(s.segmentGroup,s.index,a.commands):Gr(s.segmentGroup,s.index,a.commands);return on(o,s.segmentGroup,l,t,n,i)}function ve(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function $t(e){return typeof e=="object"&&e!=null&&e.outlets}function Or(e,r,t){e||="\u0275";let n=new E;return n.queryParams={[e]:r},t.parse(t.serialize(n)).queryParams[e]}function on(e,r,t,n,i,o){let a={};for(let[c,h]of Object.entries(n??{}))a[c]=Array.isArray(h)?h.map(f=>Or(c,f,o)):Or(c,h,o);let s;e===r?s=t:s=Wr(e,r,t);let l=Fr(zr(s));return new E(l,a,i)}function Wr(e,r,t){let n={};return Object.entries(e.children).forEach(([i,o])=>{o===r?n[i]=t:n[i]=Wr(o,r,t)}),new v(e.segments,n)}var me=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,t,n){if(this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=n,r&&n.length>0&&ve(n[0]))throw new S(4003,!1);let i=n.find($t);if(i&&i!==Ni(n))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Qi(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new me(!0,0,e);let r=0,t=!1,n=e.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,c])=>{s[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:s}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?t=!0:s===".."?r++:s!=""&&i.push(s))}),i):[...i,o]},[]);return new me(t,r,n)}var mt=class{segmentGroup;processChildren;index;constructor(r,t,n){this.segmentGroup=r,this.processChildren=t,this.index=n}};function Zi(e,r,t){if(e.isAbsolute)return new mt(r,!0,0);if(!t)return new mt(r,!1,NaN);if(t.parent===null)return new mt(t,!0,0);let n=ve(e.commands[0])?0:1,i=t.segments.length-1+n;return Yi(t,i,e.numberOfDoubleDots)}function Yi(e,r,t){let n=e,i=r,o=t;for(;o>i;){if(o-=i,n=n.parent,!n)throw new S(4005,!1);i=n.segments.length}return new mt(n,!1,i-o)}function Ji(e){return $t(e[0])?e[0].outlets:{[p]:e}}function Gr(e,r,t){if(e??=new v([],{}),e.segments.length===0&&e.hasChildren())return _t(e,r,t);let n=Xi(e,r,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){let o=new v(e.segments.slice(0,n.pathIndex),{});return o.children[p]=new v(e.segments.slice(n.pathIndex),e.children),_t(o,0,i)}else return n.match&&i.length===0?new v(e.segments,{}):n.match&&!e.hasChildren()?hn(e,r,t):n.match?_t(e,0,i):hn(e,r,t)}function _t(e,r,t){if(t.length===0)return new v(e.segments,{});{let n=Ji(t),i={};if(Object.keys(n).some(o=>o!==p)&&e.children[p]&&e.numberOfChildren===1&&e.children[p].segments.length===0){let o=_t(e.children[p],r,t);return new v(e.segments,o.children)}return Object.entries(n).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=Gr(e.children[o],r,a))}),Object.entries(e.children).forEach(([o,a])=>{n[o]===void 0&&(i[o]=a)}),new v(e.segments,i)}}function Xi(e,r,t){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(n>=t.length)return o;let a=e.segments[i],s=t[n];if($t(s))break;let l=`${s}`,c=n<t.length-1?t[n+1]:null;if(i>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!Dr(l,c,a))return o;n+=2}else{if(!Dr(l,{},a))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function hn(e,r,t){let n=e.segments.slice(0,r),i=0;for(;i<t.length;){let o=t[i];if($t(o)){let l=to(o.outlets);return new v(n,l)}if(i===0&&ve(t[0])){let l=e.segments[r];n.push(new J(l.path,Ar(t[0]))),i++;continue}let a=$t(o)?o.outlets[p]:`${o}`,s=i<t.length-1?t[i+1]:null;a&&s&&ve(s)?(n.push(new J(a,Ar(s))),i+=2):(n.push(new J(a,{})),i++)}return new v(n,{})}function to(e){let r={};return Object.entries(e).forEach(([t,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[t]=hn(new v([],{}),0,n))}),r}function Ar(e){let r={};return Object.entries(e).forEach(([t,n])=>r[t]=`${n}`),r}function Dr(e,r,t){return e==t.path&&B(r,t.parameters)}var Ut="imperative",w=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(w||{}),M=class{id;url;constructor(r,t){this.id=r,this.url=t}},ut=class extends M{type=w.NavigationStart;navigationTrigger;restoredState;constructor(r,t,n="imperative",i=null){super(r,t),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},$=class extends M{urlAfterRedirects;type=w.NavigationEnd;constructor(r,t,n){super(r,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},C=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(C||{}),Ht=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Ht||{}),_=class extends M{reason;code;type=w.NavigationCancel;constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Kr(e){return e instanceof _&&(e.code===C.Redirect||e.code===C.SupersededByNewNavigation)}var G=class extends M{reason;code;type=w.NavigationSkipped;constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i}},dt=class extends M{error;target;type=w.NavigationError;constructor(r,t,n,i){super(r,t),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ft=class extends M{urlAfterRedirects;state;type=w.RoutesRecognized;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ye=class extends M{urlAfterRedirects;state;type=w.GuardsCheckStart;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},be=class extends M{urlAfterRedirects;state;shouldActivate;type=w.GuardsCheckEnd;constructor(r,t,n,i,o){super(r,t),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})`}},Re=class extends M{urlAfterRedirects;state;type=w.ResolveStart;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},we=class extends M{urlAfterRedirects;state;type=w.ResolveEnd;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Se=class{route;type=w.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ce=class{route;type=w.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Te=class{snapshot;type=w.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ie=class{snapshot;type=w.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ee=class{snapshot;type=w.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Oe=class{snapshot;type=w.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var bt=class{},zt=class{},Rt=class{url;navigationBehaviorOptions;constructor(r,t){this.url=r,this.navigationBehaviorOptions=t}};function eo(e){return!(e instanceof bt)&&!(e instanceof Rt)&&!(e instanceof zt)}var Ae=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 It(this.rootInjector)}},It=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,n){let i=this.getOrCreateContext(t);i.outlet=n,this.contexts.set(t,i)}onChildOutletDestroyed(t){let n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new Ae(this.rootInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(n){return new(n||e)(ne(Z))};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),De=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let t=this.pathFromRoot(r);return t.length>1?t[t.length-2]:null}children(r){let t=pn(r,this._root);return t?t.children.map(n=>n.value):[]}firstChild(r){let t=pn(r,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(r){let t=fn(r,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return fn(r,this._root).map(t=>t.value)}};function pn(e,r){if(e===r.value)return r;for(let t of r.children){let n=pn(e,t);if(n)return n}return null}function fn(e,r){if(e===r.value)return[r];for(let t of r.children){let n=fn(e,t);if(n.length)return n.unshift(r),n}return[]}var D=class{value;children;constructor(r,t){this.value=r,this.children=t}toString(){return`TreeNode(${this.value})`}};function vt(e){let r={};return e&&e.children.forEach(t=>r[t.value.outlet]=t),r}var Bt=class extends De{snapshot;constructor(r,t){super(r),this.snapshot=t,In(this,r)}toString(){return this.snapshot.toString()}};function Qr(e,r){let t=no(e,r),n=new L([new J("",{})]),i=new L({}),o=new L({}),a=new L({}),s=new L(""),l=new K(n,i,a,s,o,p,e,t.root);return l.snapshot=t.root,new Bt(new D(l,[]),t)}function no(e,r){let t={},n={},i={},a=new wt([],t,i,"",n,p,e,null,{},r);return new qt("",new D(a,[]))}var K=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,t,n,i,o,a,s,l){this.urlSubject=r,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(T(c=>c[Gt]))??g(void 0),this.url=r,this.params=t,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(T(r=>ct(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(T(r=>ct(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Tn(e,r,t="emptyOnly"){let n,{routeConfig:i}=e;return r!==null&&(t==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:u(u({},r.params),e.params),data:u(u({},r.data),e.data),resolve:u(u(u(u({},e.data),r.data),i?.data),e._resolvedData)}:n={params:u({},e.params),data:u({},e.data),resolve:u(u({},e.data),e._resolvedData??{})},i&&Yr(i)&&(n.resolve[Gt]=i.title),n}var wt=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Gt]}constructor(r,t,n,i,o,a,s,l,c,h){this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c,this._environmentInjector=h}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??=ct(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ct(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${t}')`}},qt=class extends De{url;constructor(r,t){super(t),this.url=r,In(this,t)}toString(){return Zr(this._root)}};function In(e,r){r.value._routerState=e,r.children.forEach(t=>In(e,t))}function Zr(e){let r=e.children.length>0?` { ${e.children.map(Zr).join(", ")} } `:"";return`${e.value}${r}`}function sn(e){if(e.snapshot){let r=e.snapshot,t=e._futureSnapshot;e.snapshot=t,B(r.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),r.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),B(r.params,t.params)||e.paramsSubject.next(t.params),Mi(r.url,t.url)||e.urlSubject.next(t.url),B(r.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function gn(e,r){let t=B(e.params,r.params)&&_i(e.url,r.url),n=!e.parent!=!r.parent;return t&&!n&&(!e.parent||gn(e.parent,r.parent))}function Yr(e){return typeof e.title=="string"||e.title===null}var Jr=new I(""),En=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new ot;deactivateEvents=new ot;attachEvents=new ot;detachEvents=new ot;routerOutletData=at();parentContexts=d(It);location=d(ie);changeDetector=d(oe);inputBinder=d(Kt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:n,previousValue:i}=t.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(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=t;let i=this.location,a=t.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new vn(t,s,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{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||e)};static \u0275dir=st({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Mt]})}return e})(),vn=class{route;childContexts;parent;outletData;constructor(r,t,n,i){this.route=r,this.childContexts=t,this.parent=n,this.outletData=i}get(r,t){return r===K?this.route:r===It?this.childContexts:r===Jr?this.outletData:this.parent.get(r,t)}},Kt=new I(""),On=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:n}=t,i=Be([n.queryParams,n.params,n.data]).pipe(U(([o,a,s],l)=>(s=u(u(u({},o),a),s),l===0?g(s):Promise.resolve(s)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(t);return}let a=hr(n.component);if(!a){this.unsubscribeFromRouteData(t);return}for(let{templateName:s}of a.inputs)t.activatedComponentRef.setInput(s,o[s])});this.outletDataSubscriptions.set(t,i)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac})}return e})(),An=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Zn({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&rr(0,"router-outlet")},dependencies:[En],encapsulation:2})}return e})();function Dn(e){let r=e.children&&e.children.map(Dn),t=r?N(u({},e),{children:r}):u({},e);return!t.component&&!t.loadComponent&&(r||t.loadChildren)&&t.outlet&&t.outlet!==p&&(t.component=An),t}function ro(e,r,t){let n=Vt(e,r._root,t?t._root:void 0);return new Bt(n,r)}function Vt(e,r,t){if(t&&e.shouldReuseRoute(r.value,t.value.snapshot)){let n=t.value;n._futureSnapshot=r.value;let i=io(e,r,t);return new D(n,i)}else{if(e.shouldAttach(r.value)){let o=e.retrieve(r.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=r.value,a.children=r.children.map(s=>Vt(e,s)),a}}let n=oo(r.value),i=r.children.map(o=>Vt(e,o));return new D(n,i)}}function io(e,r,t){return r.children.map(n=>{for(let i of t.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return Vt(e,n,i);return Vt(e,n)})}function oo(e){return new K(new L(e.url),new L(e.params),new L(e.queryParams),new L(e.fragment),new L(e.data),e.outlet,e.component,e)}var St=class{redirectTo;navigationBehaviorOptions;constructor(r,t){this.redirectTo=r,this.navigationBehaviorOptions=t}},Xr="ngNavigationCancelingError";function Me(e,r){let{redirectTo:t,navigationBehaviorOptions:n}=tt(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=ti(!1,C.Redirect);return i.url=t,i.navigationBehaviorOptions=n,i}function ti(e,r){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[Xr]=!0,t.cancellationCode=r,t}function so(e){return ei(e)&&tt(e.url)}function ei(e){return!!e&&e[Xr]}var mn=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,t,n,i,o){this.routeReuseStrategy=r,this.futureState=t,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,r),sn(this.futureState.root),this.activateChildRoutes(t,n,r)}deactivateChildRoutes(r,t,n){let i=vt(t);r.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],n),delete i[a]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,t,n){let i=r.value,o=t?t.value:null;if(i===o)if(i.component){let a=n.getContext(i.outlet);a&&this.deactivateChildRoutes(r,t,a.children)}else this.deactivateChildRoutes(r,t,n);else o&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(r,t){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,t):this.deactivateRouteAndOutlet(r,t)}detachAndStoreRouteSubtree(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,o=vt(r);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:a,route:r,contexts:s})}}deactivateRouteAndOutlet(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,o=vt(r);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,t,n){let i=vt(t);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Oe(o.value.snapshot))}),r.children.length&&this.forwardEvent(new Ie(r.value.snapshot))}activateRoutes(r,t,n){let i=r.value,o=t?t.value:null;if(sn(i),i===o)if(i.component){let a=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,t,a.children)}else this.activateChildRoutes(r,t,n);else if(i.component){let a=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),sn(s.route.value),this.activateChildRoutes(r,null,a.children)}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(r,null,a.children)}else this.activateChildRoutes(r,null,n)}},Ne=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},yt=class{component;route;constructor(r,t){this.component=r,this.route=t}};function ao(e,r,t){let n=e._root,i=r?r._root:null;return Pt(n,i,t,[n.value])}function lo(e){let r=e.routeConfig?e.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:e,guards:r}}function Et(e,r){let t=Symbol(),n=r.get(e,t);return n===t?typeof e=="function"&&!Bn(e)?e:r.get(e):n}function Pt(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=vt(r);return e.children.forEach(a=>{co(a,o[a.value.outlet],t,n.concat([a.value]),i),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>kt(s,t.getContext(a),i)),i}function co(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,a=r?r.value:null,s=t?t.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=uo(a,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Ne(n)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Pt(e,r,s?s.children:null,n,i):Pt(e,r,t,n,i),l&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new yt(s.outlet.component,a))}else a&&kt(r,s,i),i.canActivateChecks.push(new Ne(n)),o.component?Pt(e,null,s?s.children:null,n,i):Pt(e,null,t,n,i);return i}function uo(e,r,t){if(typeof t=="function")return P(r._environmentInjector,()=>t(e,r));switch(t){case"pathParamsChange":return!lt(e.url,r.url);case"pathParamsOrQueryParamsChange":return!lt(e.url,r.url)||!B(e.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gn(e,r)||!B(e.queryParams,r.queryParams);default:return!gn(e,r)}}function kt(e,r,t){let n=vt(e),i=e.value;Object.entries(n).forEach(([o,a])=>{i.component?r?kt(a,r.children.getContext(o),t):kt(a,null,t):kt(a,r,t)}),i.component?r&&r.outlet&&r.outlet.isActivated?t.canDeactivateChecks.push(new yt(r.outlet.component,i)):t.canDeactivateChecks.push(new yt(null,i)):t.canDeactivateChecks.push(new yt(null,i))}function Qt(e){return typeof e=="function"}function ho(e){return typeof e=="boolean"}function po(e){return e&&Qt(e.canLoad)}function fo(e){return e&&Qt(e.canActivate)}function go(e){return e&&Qt(e.canActivateChild)}function vo(e){return e&&Qt(e.canDeactivate)}function mo(e){return e&&Qt(e.canMatch)}function ni(e){return e instanceof jn||e?.name==="EmptyError"}var de=Symbol("INITIAL_VALUE");function Ct(){return U(e=>Be(e.map(r=>r.pipe(ft(1),Fn(de)))).pipe(T(r=>{for(let t of r)if(t!==!0){if(t===de)return de;if(t===!1||yo(t))return t}return!0}),it(r=>r!==de),ft(1)))}function yo(e){return tt(e)||e instanceof St}function ri(e){return e.aborted?g(void 0).pipe(ft(1)):new Un(r=>{let t=()=>{r.next(),r.complete()};return e.addEventListener("abort",t),()=>e.removeEventListener("abort",t)})}function ii(e){return ee(ri(e))}function bo(e){return V(r=>{let{targetSnapshot:t,currentSnapshot:n,guards:{canActivateChecks:i,canDeactivateChecks:o}}=r;return o.length===0&&i.length===0?g(N(u({},r),{guardsResult:!0})):Ro(o,t,n).pipe(V(a=>a&&ho(a)?wo(t,i,e):g(a)),T(a=>N(u({},r),{guardsResult:a})))})}function Ro(e,r,t){return O(e).pipe(V(n=>Eo(n.component,n.route,t,r)),Q(n=>n!==!0,!0))}function wo(e,r,t){return O(r).pipe(te(n=>$n(Co(n.route.parent,t),So(n.route,t),Io(e,n.path),To(e,n.route))),Q(n=>n!==!0,!0))}function So(e,r){return e!==null&&r&&r(new Ee(e)),g(!0)}function Co(e,r){return e!==null&&r&&r(new Te(e)),g(!0)}function To(e,r){let t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||t.length===0)return g(!0);let n=t.map(i=>Jt(()=>{let o=r._environmentInjector,a=Et(i,o),s=fo(a)?a.canActivate(r,e):P(o,()=>a(r,e));return ht(s).pipe(Q())}));return g(n).pipe(Ct())}function Io(e,r){let t=r[r.length-1],i=r.slice(0,r.length-1).reverse().map(o=>lo(o)).filter(o=>o!==null).map(o=>Jt(()=>{let a=o.guards.map(s=>{let l=o.node._environmentInjector,c=Et(s,l),h=go(c)?c.canActivateChild(t,e):P(l,()=>c(t,e));return ht(h).pipe(Q())});return g(a).pipe(Ct())}));return g(i).pipe(Ct())}function Eo(e,r,t,n){let i=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(a=>{let s=r._environmentInjector,l=Et(a,s),c=vo(l)?l.canDeactivate(e,r,t,n):P(s,()=>l(e,r,t,n));return ht(c).pipe(Q())});return g(o).pipe(Ct())}function Oo(e,r,t,n,i){let o=r.canLoad;if(o===void 0||o.length===0)return g(!0);let a=o.map(s=>{let l=Et(s,e),c=po(l)?l.canLoad(r,t):P(e,()=>l(r,t)),h=ht(c);return i?h.pipe(ii(i)):h});return g(a).pipe(Ct(),oi(n))}function oi(e){return _n(k(r=>{if(typeof r!="boolean")throw Me(e,r)}),T(r=>r===!0))}function Ao(e,r,t,n,i,o){let a=r.canMatch;if(!a||a.length===0)return g(!0);let s=a.map(l=>{let c=Et(l,e),h=mo(c)?c.canMatch(r,t,i):P(e,()=>c(r,t,i));return ht(h).pipe(ii(o))});return g(s).pipe(Ct(),oi(n))}var W=class e extends Error{segmentGroup;constructor(r){super(),this.segmentGroup=r||null,Object.setPrototypeOf(this,e.prototype)}},Wt=class e extends Error{urlTree;constructor(r){super(),this.urlTree=r,Object.setPrototypeOf(this,e.prototype)}};function Do(e){throw new S(4e3,!1)}function Mo(e){throw ti(!1,C.GuardRejected)}var yn=class{urlSerializer;urlTree;constructor(r,t){this.urlSerializer=r,this.urlTree=t}async lineralizeSegments(r,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return n;if(i.numberOfChildren>1||!i.children[p])throw Do(`${r.redirectTo}`);i=i.children[p]}}async applyRedirectCommands(r,t,n,i,o){let a=await No(t,i,o);if(a instanceof E)throw new Wt(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),r,n);if(a[0]==="/")throw new Wt(s);return s}applyRedirectCreateUrlTree(r,t,n,i){let o=this.createSegmentGroup(r,t.root,n,i);return new E(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(r,t){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);n[i]=t[s]}else n[i]=o}),n}createSegmentGroup(r,t,n,i){let o=this.createSegments(r,t.segments,n,i),a={};return Object.entries(t.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(r,l,n,i)}),new v(o,a)}createSegments(r,t,n,i){return t.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,t,n){let i=n[t.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(r,t){let n=0;for(let i of t){if(i.path===r.path)return t.splice(n),i;n++}return r}};function No(e,r,t){if(typeof e=="string")return Promise.resolve(e);let n=e;return ge(ht(P(t,()=>n(r))))}function Lo(e,r){return e.providers&&!e._injector&&(e._injector=Je(e.providers,r,`Route: ${e.path}`)),e._injector??r}function j(e){return e.outlet||p}function xo(e,r){let t=e.filter(n=>j(n)===r);return t.push(...e.filter(n=>j(n)!==r)),t}var bn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function si(e){return{routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function Po(e,r,t,n,i,o,a){let s=ai(e,r,t);if(!s.matched)return g(s);let l=si(o(s));return n=Lo(r,n),Ao(n,r,t,i,l,a).pipe(T(c=>c===!0?s:u({},bn)))}function ai(e,r,t){if(r.path==="")return r.pathMatch==="full"&&(e.hasChildren()||t.length>0)?u({},bn):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(r.matcher||Lr)(t,e,r);if(!i)return u({},bn);let o={};Object.entries(i.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=i.consumed.length>0?u(u({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function Mr(e,r,t,n,i){return t.length>0&&ko(e,t,n,i)?{segmentGroup:new v(r,Uo(n,new v(t,e.children))),slicedSegments:[]}:t.length===0&&jo(e,t,n)?{segmentGroup:new v(e.segments,_o(e,t,n,e.children)),slicedSegments:t}:{segmentGroup:new v(e.segments,e.children),slicedSegments:t}}function _o(e,r,t,n){let i={};for(let o of t)if(Pe(e,r,o)&&!n[j(o)]){let a=new v([],{});i[j(o)]=a}return u(u({},n),i)}function Uo(e,r){let t={};t[p]=r;for(let n of e)if(n.path===""&&j(n)!==p){let i=new v([],{});t[j(n)]=i}return t}function ko(e,r,t,n){return t.some(i=>!Pe(e,r,i)||!(j(i)!==p)?!1:!(n!==void 0&&j(i)===n))}function jo(e,r,t){return t.some(n=>Pe(e,r,n))}function Pe(e,r,t){return(e.hasChildren()||r.length>0)&&t.pathMatch==="full"?!1:t.path===""}function $o(e,r,t){return r.length===0&&!e.children[t]}var Rn=class{};async function Ho(e,r,t,n,i,o,a="emptyOnly",s){return new wn(e,r,t,n,i,a,o,s).recognize()}var Fo=31,wn=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,t,n,i,o,a,s,l){this.injector=r,this.configLoader=t,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=l,this.applyRedirects=new yn(this.urlSerializer,this.urlTree)}noMatchError(r){return new S(4002,`'${r.segmentGroup}'`)}async recognize(){let r=Mr(this.urlTree.root,[],[],this.config).segmentGroup,{children:t,rootSnapshot:n}=await this.match(r),i=new D(n,t),o=new qt("",i),a=Br(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}async match(r){let t=new wt([],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,t),rootSnapshot:t}}catch(n){if(n instanceof Wt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof W?this.noMatchError(n):n}}async processSegmentGroup(r,t,n,i,o){if(n.segments.length===0&&n.hasChildren())return this.processChildren(r,t,n,o);let a=await this.processSegment(r,t,n,n.segments,i,!0,o);return a instanceof D?[a]:[]}async processChildren(r,t,n,i){let o=[];for(let l of Object.keys(n.children))l==="primary"?o.unshift(l):o.push(l);let a=[];for(let l of o){let c=n.children[l],h=xo(t,l),f=await this.processSegmentGroup(r,h,c,l,i);a.push(...f)}let s=li(a);return zo(s),s}async processSegment(r,t,n,i,o,a,s){for(let l of t)try{return await this.processSegmentAgainstRoute(l._injector??r,t,l,n,i,o,a,s)}catch(c){if(c instanceof W||ni(c))continue;throw c}if($o(n,i,o))return new Rn;throw new W(n)}async processSegmentAgainstRoute(r,t,n,i,o,a,s,l){if(j(n)!==a&&(a===p||!Pe(i,o,n)))throw new W(i);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(r,i,n,o,a,l);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(r,i,t,n,o,a,l);throw new W(i)}async expandSegmentAgainstRouteUsingRedirect(r,t,n,i,o,a,s){let{matched:l,parameters:c,consumedSegments:h,positionalParamSegments:f,remainingSegments:b}=ai(t,i,o);if(!l)throw new W(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Fo&&(this.allowRedirects=!1));let et=this.createSnapshot(r,i,o,c,s);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let q=await this.applyRedirects.applyRedirectCommands(h,i.redirectTo,f,si(et),r),nt=await this.applyRedirects.lineralizeSegments(i,q);return this.processSegment(r,n,t,nt.concat(b),a,!1,s)}createSnapshot(r,t,n,i,o){let a=new wt(n,i,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,qo(t),j(t),t.component??t._loadedComponent??null,t,Vo(t),r),s=Tn(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(s.params),a.data=Object.freeze(s.data),a}async matchSegmentAgainstRoute(r,t,n,i,o,a){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=Yt=>this.createSnapshot(r,n,Yt.consumedSegments,Yt.parameters,a),l=await ge(Po(t,n,i,r,this.urlSerializer,s,this.abortSignal));if(n.path==="**"&&(t.children={}),!l?.matched)throw new W(t);r=n._injector??r;let{routes:c}=await this.getChildConfig(r,n,i),h=n._loadedInjector??r,{parameters:f,consumedSegments:b,remainingSegments:et}=l,q=this.createSnapshot(r,n,b,f,a),{segmentGroup:nt,slicedSegments:At}=Mr(t,b,et,c,o);if(At.length===0&&nt.hasChildren()){let Yt=await this.processChildren(h,c,nt,q);return new D(q,Yt)}if(c.length===0&&At.length===0)return new D(q,[]);let Fe=j(n)===o,Dt=await this.processSegment(h,c,nt,At,Fe?p:o,!0,q);return new D(q,Dt instanceof D?[Dt]:[])}async getChildConfig(r,t,n){if(t.children)return{routes:t.children,injector:r};if(t.loadChildren){if(t._loadedRoutes!==void 0){let o=t._loadedNgModuleFactory;return o&&!t._loadedInjector&&(t._loadedInjector=o.create(r).injector),{routes:t._loadedRoutes,injector:t._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await ge(Oo(r,t,n,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(r,t);return t._loadedRoutes=o.routes,t._loadedInjector=o.injector,t._loadedNgModuleFactory=o.factory,o}throw Mo(t)}return{routes:[],injector:r}}};function zo(e){e.sort((r,t)=>r.value.outlet===p?-1:t.value.outlet===p?1:r.value.outlet.localeCompare(t.value.outlet))}function Bo(e){let r=e.value.routeConfig;return r&&r.path===""}function li(e){let r=[],t=new Set;for(let n of e){if(!Bo(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),t.add(i)):r.push(n)}for(let n of t){let i=li(n.children);r.push(new D(n.value,i))}return r.filter(n=>!t.has(n))}function qo(e){return e.data||{}}function Vo(e){return e.resolve||{}}function Wo(e,r,t,n,i,o,a){return V(async s=>{let{state:l,tree:c}=await Ho(e,r,t,n,s.extractedUrl,i,o,a);return N(u({},s),{targetSnapshot:l,urlAfterRedirects:c})})}function Go(e){return V(r=>{let{targetSnapshot:t,guards:{canActivateChecks:n}}=r;if(!n.length)return g(r);let i=new Set(n.map(s=>s.route)),o=new Set;for(let s of i)if(!o.has(s))for(let l of ci(s))o.add(l);let a=0;return O(o).pipe(te(s=>i.has(s)?Ko(s,t,e):(s.data=Tn(s,s.parent,e).resolve,g(void 0))),k(()=>a++),Ve(1),V(s=>a===o.size?g(r):x))})}function ci(e){let r=e.children.map(t=>ci(t)).flat();return[e,...r]}function Ko(e,r,t){let n=e.routeConfig,i=e._resolve;return n?.title!==void 0&&!Yr(n)&&(i[Gt]=n.title),Jt(()=>(e.data=Tn(e,e.parent,t).resolve,Qo(i,e,r).pipe(T(o=>(e._resolvedData=o,e.data=u(u({},e.data),o),null)))))}function Qo(e,r,t){let n=ln(e);if(n.length===0)return g({});let i={};return O(n).pipe(V(o=>Zo(e[o],r,t).pipe(Q(),k(a=>{if(a instanceof St)throw Me(new X,a);i[o]=a}))),Ve(1),T(()=>i),Xt(o=>ni(o)?x:kn(o)))}function Zo(e,r,t){let n=r._environmentInjector,i=Et(e,n),o=i.resolve?i.resolve(r,t):P(n,()=>i(r,t));return ht(o)}function Nr(e){return U(r=>{let t=e(r);return t?O(t).pipe(T(()=>r)):g(r)})}var Mn=(()=>{class e{buildTitle(t){let n,i=t.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===p);return n}getResolvedTitleForRoute(t){return t.data[Gt]}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(ui),providedIn:"root"})}return e})(),ui=(()=>{class e extends Mn{title;constructor(t){super(),this.title=t}updateTitle(t){let n=this.buildTitle(t);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||e)(ne(gr))};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ot=new I("",{factory:()=>({})}),Zt=new I(""),di=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(cr);async loadComponent(t,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 Pr(P(t,()=>n.loadComponent())),a=await fi(pi(o));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a,a}finally{this.componentLoaders.delete(n)}})();return this.componentLoaders.set(n,i),i}loadChildren(t,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 hi(n,this.compiler,t,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||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();async function hi(e,r,t,n){let i=await Pr(P(t,()=>e.loadChildren())),o=await fi(pi(i)),a;o instanceof Qn||Array.isArray(o)?a=o:a=await r.compileModuleAsync(o),n&&n(e);let s,l,c=!1,h;return Array.isArray(a)?(l=a,c=!0):(s=a.create(t).injector,h=a,l=s.get(Zt,[],{optional:!0,self:!0}).flat()),{routes:l.map(Dn),injector:s,factory:h}}function Yo(e){return e&&typeof e=="object"&&"default"in e}function pi(e){return Yo(e)?e.default:e}async function fi(e){return e}var _e=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(Jo),providedIn:"root"})}return e})(),Jo=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),gi=new I("");var Xo=()=>{},vi=new I(""),mi=(()=>{class e{currentNavigation=m(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=m(null);events=new rt;transitionAbortWithErrorSubject=new rt;configLoader=d(di);environmentInjector=d(Z);destroyRef=d(Ge);urlSerializer=d(Tt);rootContexts=d(It);location=d(se);inputBindingEnabled=d(Kt,{optional:!0})!==null;titleStrategy=d(Mn);options=d(Ot,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(_e);createViewTransition=d(gi,{optional:!0});navigationErrorHandler=d(vi,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let t=i=>this.events.next(new Se(i)),n=i=>this.events.next(new Ce(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=t,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){let n=++this.navigationId;R(()=>{this.transitions?.next(N(u({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(t){return this.transitions=new L(null),this.transitions.pipe(it(n=>n!==null),U(n=>{let i=!1,o=new AbortController,a=()=>!i&&this.currentTransition?.id===n.id;return g(n).pipe(U(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",C.SupersededByNewNavigation),x;this.currentTransition=n;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:l?N(u({},l),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let c=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=s.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!c&&h!=="reload")return this.events.next(new G(s.id,this.urlSerializer.serialize(s.rawUrl),"",Ht.IgnoredSameUrlNavigation)),s.resolve(!1),x;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return g(s).pipe(U(f=>(this.events.next(new ut(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?x:Promise.resolve(f))),Wo(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),k(f=>{n.targetSnapshot=f.targetSnapshot,n.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(b=>(b.finalUrl=f.urlAfterRedirects,b)),this.events.next(new zt)}),U(f=>O(n.routesRecognizeHandler.deferredHandle??g(void 0)).pipe(T(()=>f))),k(()=>{let f=new Ft(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(f)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:f,extractedUrl:b,source:et,restoredState:q,extras:nt}=s,At=new ut(f,this.urlSerializer.serialize(b),et,q);this.events.next(At);let Fe=Qr(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=N(u({},s),{targetSnapshot:Fe,urlAfterRedirects:b,extras:N(u({},nt),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Dt=>(Dt.finalUrl=b,Dt)),g(n)}else return this.events.next(new G(s.id,this.urlSerializer.serialize(s.extractedUrl),"",Ht.IgnoredByUrlHandlingStrategy)),s.resolve(!1),x}),T(s=>{let l=new ye(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(l),this.currentTransition=n=N(u({},s),{guards:ao(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n}),bo(s=>this.events.next(s)),U(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Me(this.urlSerializer,s.guardsResult);let l=new be(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(l),!a())return x;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",C.GuardRejected),x;if(s.guards.canActivateChecks.length===0)return g(s);let c=new Re(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(c),!a())return x;let h=!1;return g(s).pipe(Go(this.paramsInheritanceStrategy),k({next:()=>{h=!0;let f=new we(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(f)},complete:()=>{h||this.cancelNavigationTransition(s,"",C.NoDataFromResolver)}}))}),Nr(s=>{let l=h=>{let f=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let b=h._environmentInjector;f.push(this.configLoader.loadComponent(b,h.routeConfig).then(et=>{h.component=et}))}for(let b of h.children)f.push(...l(b));return f},c=l(s.targetSnapshot.root);return c.length===0?g(s):O(Promise.all(c).then(()=>s))}),Nr(()=>this.afterPreactivation()),U(()=>{let{currentSnapshot:s,targetSnapshot:l}=n,c=this.createViewTransition?.(this.environmentInjector,s.root,l.root);return c?O(c).pipe(T(()=>n)):g(n)}),ft(1),U(s=>{let l=ro(t.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);this.currentTransition=n=s=N(u({},s),{targetRouterState:l}),this.currentNavigation.update(h=>(h.targetRouterState=l,h)),this.events.next(new bt);let c=n.beforeActivateHandler.deferredHandle;return c?O(c.then(()=>s)):g(s)}),k(s=>{new mn(t.routeReuseStrategy,n.targetRouterState,n.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),a()&&(i=!0,this.currentNavigation.update(l=>(l.abort=Xo,l)),this.lastSuccessfulNavigation.set(R(this.currentNavigation)),this.events.next(new $(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0))}),ee(ri(o.signal).pipe(it(()=>!i&&!n.targetRouterState),k(()=>{this.cancelNavigationTransition(n,o.signal.reason+"",C.Aborted)}))),k({complete:()=>{i=!0}}),ee(this.transitionAbortWithErrorSubject.pipe(k(s=>{throw s}))),Hn(()=>{o.abort(),i||this.cancelNavigationTransition(n,"",C.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Xt(s=>{if(i=!0,this.destroyed)return n.resolve(!1),x;if(ei(s))this.events.next(new _(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),so(s)?this.events.next(new Rt(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let l=new dt(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let c=P(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(c instanceof St){let{message:h,cancellationCode:f}=Me(this.urlSerializer,c);this.events.next(new _(n.id,this.urlSerializer.serialize(n.extractedUrl),h,f)),this.events.next(new Rt(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(l),s}catch(c){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(c)}}return x}))}))}cancelNavigationTransition(t,n,i){let o=new _(t.id,this.urlSerializer.serialize(t.extractedUrl),n,i);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=R(this.currentNavigation),i=n?.targetBrowserUrl??n?.extractedUrl;return t.toString()!==i?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ts(e){return e!==Ut}var yi=new I("");var bi=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(es),providedIn:"root"})}return e})(),Le=class{shouldDetach(r){return!1}store(r,t){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,t){return r.routeConfig===t.routeConfig}shouldDestroyInjector(r){return!0}},es=(()=>{class e extends Le{static \u0275fac=(()=>{let t;return function(i){return(t||(t=Nt(e)))(i||e)}})();static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ue=(()=>{class e{urlSerializer=d(Tt);options=d(Ot,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(se);urlHandlingStrategy=d(_e);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new E;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:n,targetBrowserUrl:i}){let o=t!==void 0?this.urlHandlingStrategy.merge(t,n):n,a=i??o;return a instanceof E?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:t,finalUrl:n,initialUrl:i}){n&&t?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=t):this.rawUrlTree=i}routerState=Qr(null,d(Z));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||e)};static \u0275prov=y({token:e,factory:()=>d(ns),providedIn:"root"})}return e})(),ns=(()=>{class e extends Ue{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{t(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(t,n){t instanceof ut?this.updateStateMemento():t instanceof G?this.commitTransition(n):t instanceof Ft?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof bt?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof _&&!Kr(t)?this.restoreHistory(n):t instanceof dt?this.restoreHistory(n,!0):t instanceof $&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,{extras:n,id:i}){let{replaceUrl:o,state:a}=n;if(this.location.isCurrentPathEqualTo(t)||o){let s=this.browserPageId,l=u(u({},a),this.generateNgRouterState(i,s));this.location.replaceState(t,"",l)}else{let s=u(u({},a),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(t,"",s)}}restoreHistory(t,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===t.finalUrl&&o===0&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,n){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:n}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Nt(e)))(i||e)}})();static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Nn(e,r){e.events.pipe(it(t=>t instanceof $||t instanceof _||t instanceof dt||t instanceof G),T(t=>t instanceof $||t instanceof G?0:(t instanceof _?t.code===C.Redirect||t.code===C.SupersededByNewNavigation:!1)?2:1),it(t=>t!==2),ft(1)).subscribe(()=>{r()})}var pt=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(Jn);stateManager=d(Ue);options=d(Ot,{optional:!0})||{};pendingTasks=d(Wn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(mi);urlSerializer=d(Tt);location=d(se);urlHandlingStrategy=d(_e);injector=d(Z);_events=new rt;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(bi);injectorCleanup=d(yi,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(Zt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(Kt,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Pn;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=R(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof _&&n.code!==C.Redirect&&n.code!==C.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof $)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof Rt){let a=n.navigationBehaviorOptions,s=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"||ts(i.source)},a);this.scheduleNavigation(s,Ut,null,l,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}eo(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ut,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,n,i,o)=>{this.navigateToSyncWithBrowser(t,i,n,o)})}navigateToSyncWithBrowser(t,n,i,o){let a=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 s=this.parseUrl(t);this.scheduleNavigation(s,n,a,o).catch(l=>{this.disposed||this.injector.get(re)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return R(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Dn),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(t,n={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:a,h=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":h=u(u({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let f;try{let b=i?i.snapshot:this.routerState.snapshot.root;f=qr(b)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),f=this.currentUrlTree.root}return Vr(f,t,h,c??null,this.urlSerializer)}navigateByUrl(t,n={skipLocationChange:!1}){let i=tt(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ut,null,n)}navigate(t,n={skipLocationChange:!1}){return rs(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.console.warn(zn(4018,!1)),this.urlSerializer.parse("/")}}isActive(t,n){let i;if(n===!0?i=u({},Sn):n===!1?i=u({},jt):i=u(u({},jt),n),tt(t))return cn(this.currentUrlTree,t,i);let o=this.parseUrl(t);return cn(this.currentUrlTree,o,i)}removeEmptyProps(t){return Object.entries(t).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(t,n,i,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((f,b)=>{s=f,l=b});let h=this.pendingTasks.add();return Nn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function rs(e){for(let r=0;r<e.length;r++)if(e[r]==null)throw new S(4008,!1)}var os=(()=>{class e{router=d(pt);stateManager=d(Ue);fragment=m("");queryParams=m({});path=m("");serializer=d(Tt);constructor(){this.updateState(),this.router.events?.subscribe(t=>{t instanceof $&&this.updateState()})}updateState(){let{fragment:t,root:n,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(t),this.queryParams.set(i),this.path.set(this.serializer.serialize(new E(n)))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ke=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=d(new dr("href"),{optional:!0});reactiveHref=ur(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return R(this.reactiveHref)}set href(t){this.reactiveHref.set(t)}set target(t){this._target.set(t)}get target(){return R(this._target)}_target=m(void 0);set queryParams(t){this._queryParams.set(t)}get queryParams(){return R(this._queryParams)}_queryParams=m(void 0,{equal:()=>!1});set fragment(t){this._fragment.set(t)}get fragment(){return R(this._fragment)}_fragment=m(void 0);set queryParamsHandling(t){this._queryParamsHandling.set(t)}get queryParamsHandling(){return R(this._queryParamsHandling)}_queryParamsHandling=m(void 0);set state(t){this._state.set(t)}get state(){return R(this._state)}_state=m(void 0,{equal:()=>!1});set info(t){this._info.set(t)}get info(){return R(this._info)}_info=m(void 0,{equal:()=>!1});set relativeTo(t){this._relativeTo.set(t)}get relativeTo(){return R(this._relativeTo)}_relativeTo=m(void 0);set preserveFragment(t){this._preserveFragment.set(t)}get preserveFragment(){return R(this._preserveFragment)}_preserveFragment=m(!1);set skipLocationChange(t){this._skipLocationChange.set(t)}get skipLocationChange(){return R(this._skipLocationChange)}_skipLocationChange=m(!1);set replaceUrl(t){this._replaceUrl.set(t)}get replaceUrl(){return R(this._replaceUrl)}_replaceUrl=m(!1);isAnchorElement;onChanges=new rt;applicationErrorHandler=d(re);options=d(Ot,{optional:!0});reactiveRouterState=d(os);constructor(t,n,i,o,a,s){this.router=t,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=s;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.onChanges.next(this)}routerLinkInput=m(null);set routerLink(t){t==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(tt(t)?this.routerLinkInput.set(t):this.routerLinkInput.set(Array.isArray(t)?t:[t]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,n,i,o,a){let s=this._urlTree();if(s===null||this.isAnchorElement&&(t!==0||n||i||o||a||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(s,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(t,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,t,n):i.removeAttribute(o,t)}_urlTree=H(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let t=i=>i==="preserve"||i==="merge";(t(this._queryParamsHandling())||t(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:tt(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:(t,n)=>this.computeHref(t)===this.computeHref(n)});get urlTree(){return R(this._urlTree)}computeHref(t){return t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t))??"":null}static \u0275fac=function(n){return new(n||e)(A(pt),A(K),Gn("tabindex"),A(Ye),A(Ze),A(pr))};static \u0275dir=st({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,i){n&1&&ir("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&nr("href",i.reactiveHref(),Kn)("target",i._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",F],skipLocationChange:[2,"skipLocationChange","skipLocationChange",F],replaceUrl:[2,"replaceUrl","replaceUrl",F],routerLink:"routerLink"},features:[Mt]})}return e})(),ss=(()=>{class e{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new ot;link=d(ke,{optional:!0});constructor(t,n,i,o){this.router=t,this.element=n,this.renderer=i,this.cdr=o,this.routerEventsSubscription=t.events.subscribe(a=>{a instanceof $&&this.update()})}ngAfterContentInit(){g(this.links.changes,g(null)).pipe(qe()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let t=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=O(t).pipe(qe()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(t){let n=Array.isArray(t)?t:t.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let t=this.hasActiveLinks();this.classes.forEach(n=>{t?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),t&&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!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){let n=as(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??!1?u({},Sn):u({},jt);return i=>{let o=i.urlTree;return o?R(Cn(o,t,n)):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static \u0275fac=function(n){return new(n||e)(A(pt),A(Ze),A(Ye),A(oe))};static \u0275dir=st({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&or(o,ke,5),n&2){let a;sr(a=ar())&&(i.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Mt]})}return e})();function as(e){let r=e;return!!(r.paths||r.matrixParams||r.queryParams||r.fragment)}var ls=new I("");function cs(e,...r){return qn([{provide:Zt,multi:!0,useValue:e},[],{provide:K,useFactory:us},{provide:tr,multi:!0,useFactory:hs},r.map(t=>t.\u0275providers)])}function us(){return d(pt).routerState.root}function ds(e,r){return{\u0275kind:e,\u0275providers:r}}function hs(){let e=d(Vn);return r=>{let t=e.get(er);if(r!==t.components[0])return;let n=e.get(pt),i=e.get(ps);e.get(fs)===1&&n.initialNavigation(),e.get(gs,null,{optional:!0})?.setUpPreloading(),e.get(ls,null,{optional:!0})?.init(),n.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ps=new I("",{factory:()=>new rt}),fs=new I("",{factory:()=>1});var gs=new I("");function vs(){return ds(8,[On,{provide:Kt,useExisting:On}])}var Ri=`
2
- .p-tooltip {
3
- position: absolute;
4
- display: none;
5
- max-width: dt('tooltip.max.width');
6
- }
7
-
8
- .p-tooltip-right,
9
- .p-tooltip-left {
10
- padding: 0 dt('tooltip.gutter');
11
- }
12
-
13
- .p-tooltip-top,
14
- .p-tooltip-bottom {
15
- padding: dt('tooltip.gutter') 0;
16
- }
17
-
18
- .p-tooltip-text {
19
- white-space: pre-line;
20
- word-break: break-word;
21
- background: dt('tooltip.background');
22
- color: dt('tooltip.color');
23
- padding: dt('tooltip.padding');
24
- box-shadow: dt('tooltip.shadow');
25
- border-radius: dt('tooltip.border.radius');
26
- }
27
-
28
- .p-tooltip-arrow {
29
- position: absolute;
30
- width: 0;
31
- height: 0;
32
- border-color: transparent;
33
- border-style: solid;
34
- }
35
-
36
- .p-tooltip-right .p-tooltip-arrow {
37
- margin-top: calc(-1 * dt('tooltip.gutter'));
38
- border-width: dt('tooltip.gutter') dt('tooltip.gutter') dt('tooltip.gutter') 0;
39
- border-right-color: dt('tooltip.background');
40
- }
41
-
42
- .p-tooltip-left .p-tooltip-arrow {
43
- margin-top: calc(-1 * dt('tooltip.gutter'));
44
- border-width: dt('tooltip.gutter') 0 dt('tooltip.gutter') dt('tooltip.gutter');
45
- border-left-color: dt('tooltip.background');
46
- }
47
-
48
- .p-tooltip-top .p-tooltip-arrow {
49
- margin-left: calc(-1 * dt('tooltip.gutter'));
50
- border-width: dt('tooltip.gutter') dt('tooltip.gutter') 0 dt('tooltip.gutter');
51
- border-top-color: dt('tooltip.background');
52
- border-bottom-color: dt('tooltip.background');
53
- }
54
-
55
- .p-tooltip-bottom .p-tooltip-arrow {
56
- margin-left: calc(-1 * dt('tooltip.gutter'));
57
- border-width: 0 dt('tooltip.gutter') dt('tooltip.gutter') dt('tooltip.gutter');
58
- border-top-color: dt('tooltip.background');
59
- border-bottom-color: dt('tooltip.background');
60
- }
61
- `;var ms={root:"p-tooltip p-component",arrow:"p-tooltip-arrow",text:"p-tooltip-text"},wi=(()=>{class e extends Sr{name="tooltip";style=Ri;classes=ms;static \u0275fac=(()=>{let t;return function(i){return(t||(t=Nt(e)))(i||e)}})();static \u0275prov=y({token:e,factory:e.\u0275fac})}return e})();var Si=new I("TOOLTIP_INSTANCE"),Ya=(()=>{class e extends Tr{zone;viewContainer;componentName="Tooltip";$pcTooltip=d(Si,{optional:!0,skipSelf:!0})??void 0;tooltipPosition;tooltipEvent="hover";positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;showOnEllipsis=!1;content;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this.deactivate()}tooltipOptions;appendTo=at(void 0);$appendTo=H(()=>this.appendTo()||this.config.overlayAppendTo());_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,showOnEllipsis:!1,id:wr("pn_id_")+"_tooltip"};_disabled;container;styleClass;tooltipText;rootPTClasses="";showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;touchStartListener;touchEndListener;documentTouchListener;documentEscapeListener;scrollHandler;resizeListener;_componentStyle=d(wi);interactionInProgress=!1;ptTooltip=at();pTooltipPT=at();pTooltipUnstyled=at();constructor(t,n){super(),this.zone=t,this.viewContainer=n,Qe(()=>{let i=this.ptTooltip()||this.pTooltipPT();i&&this.directivePT.set(i)}),Qe(()=>{this.pTooltipUnstyled()&&this.directiveUnstyled.set(this.pTooltipUnstyled())})}onAfterViewInit(){fr(this.platformId)&&this.zone.runOutsideAngular(()=>{let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener),this.touchStartListener=this.onTouchStart.bind(this),this.touchEndListener=this.onTouchEnd.bind(this),this.el.nativeElement.addEventListener("touchstart",this.touchStartListener,{passive:!0}),this.el.nativeElement.addEventListener("touchend",this.touchEndListener,{passive:!0})),t==="focus"||t==="both"){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let n=this.el.nativeElement.querySelector(".p-component");n||(n=this.getTarget(this.el.nativeElement)),n.addEventListener("focus",this.focusListener),n.addEventListener("blur",this.blurListener)}})}onChanges(t){t.tooltipPosition&&this.setOption({tooltipPosition:t.tooltipPosition.currentValue}),t.tooltipEvent&&this.setOption({tooltipEvent:t.tooltipEvent.currentValue}),t.appendTo&&this.setOption({appendTo:t.appendTo.currentValue}),t.positionStyle&&this.setOption({positionStyle:t.positionStyle.currentValue}),t.tooltipStyleClass&&this.setOption({tooltipStyleClass:t.tooltipStyleClass.currentValue}),t.tooltipZIndex&&this.setOption({tooltipZIndex:t.tooltipZIndex.currentValue}),t.escape&&this.setOption({escape:t.escape.currentValue}),t.showDelay&&this.setOption({showDelay:t.showDelay.currentValue}),t.hideDelay&&this.setOption({hideDelay:t.hideDelay.currentValue}),t.life&&this.setOption({life:t.life.currentValue}),t.positionTop&&this.setOption({positionTop:t.positionTop.currentValue}),t.positionLeft&&this.setOption({positionLeft:t.positionLeft.currentValue}),t.disabled&&this.setOption({disabled:t.disabled.currentValue}),t.content&&(this.setOption({tooltipLabel:t.content.currentValue}),this.active&&(t.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),t.autoHide&&this.setOption({autoHide:t.autoHide.currentValue}),t.showOnEllipsis&&this.setOption({showOnEllipsis:t.showOnEllipsis.currentValue}),t.id&&this.setOption({id:t.id.currentValue}),t.tooltipOptions&&(this._tooltipOptions=u(u({},this._tooltipOptions),t.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(t){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(t){this.isAutoHide()?this.deactivate():!(Lt(t.relatedTarget,"p-tooltip")||Lt(t.relatedTarget,"p-tooltip-text")||Lt(t.relatedTarget,"p-tooltip-arrow"))&&this.deactivate()}onTouchStart(t){!this.container&&!this.showTimeout&&(this.activate(),this.isAutoHide()||this.bindDocumentTouchListener())}onTouchEnd(t){this.isAutoHide()&&this.deactivate()}bindDocumentTouchListener(){this.documentTouchListener||(this.documentTouchListener=this.renderer.listen("document","touchstart",t=>{this.container&&!this.container.contains(t.target)&&!this.el.nativeElement.contains(t.target)&&(this.deactivate(),this.unbindDocumentTouchListener())}))}unbindDocumentTouchListener(){this.documentTouchListener&&(this.documentTouchListener(),this.documentTouchListener=null)}onFocus(t){this.activate()}onBlur(t){this.deactivate()}onInputClick(t){this.deactivate()}hasEllipsis(){let t=this.el.nativeElement;return t.offsetWidth<t.scrollWidth||t.offsetHeight<t.scrollHeight}activate(){if(!this.interactionInProgress){if(this.getOption("showOnEllipsis")&&!this.hasEllipsis())return;if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let t=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},t)}this.getOption("hideOnEscape")&&(this.documentEscapeListener=this.renderer.listen("document","keydown.escape",()=>{this.deactivate(),this.documentEscapeListener?.()})),this.interactionInProgress=!0}}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide(),this.documentEscapeListener&&this.documentEscapeListener()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=ae("div",{class:this.cx("root"),"p-bind":this.ptm("root"),"data-pc-section":"root"}),this.container.setAttribute("role","tooltip");let t=ae("div",{class:this.cx("arrow"),"p-bind":this.ptm("arrow"),"data-pc-section":"arrow"});this.container.appendChild(t),this.tooltipText=ae("div",{class:this.cx("text"),"p-bind":this.ptm("text"),"data-pc-section":"text"}),this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),this.getOption("appendTo")==="body"?document.body.appendChild(this.container):this.getOption("appendTo")==="target"?tn(this.container,this.el.nativeElement):tn(this.getOption("appendTo"),this.container),this.container.style.display="none",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){let t=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(t,"mouseleave",n=>{this.deactivate()})}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){if(!this.getOption("tooltipLabel")||this.getOption("disabled"))return;this.create(),this.el.nativeElement.closest("p-dialog")?setTimeout(()=>{this.container&&(this.container.style.display="inline-block"),this.container&&this.align()},100):(this.container.style.display="inline-block",this.align()),br(this.container,250),this.getOption("tooltipZIndex")==="auto"?ce.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){this.getOption("tooltipZIndex")==="auto"&&ce.clear(this.container),this.remove()}updateText(){let t=this.getOption("tooltipLabel");if(t&&typeof t.createEmbeddedView=="function"){let n=this.viewContainer.createEmbeddedView(t);n.detectChanges(),n.rootNodes.forEach(i=>this.tooltipText.appendChild(i))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(t))):this.tooltipText.innerHTML=t}align(){let t=this.getOption("tooltipPosition"),i={top:[this.alignTop,this.alignBottom,this.alignRight,this.alignLeft],bottom:[this.alignBottom,this.alignTop,this.alignRight,this.alignLeft],left:[this.alignLeft,this.alignRight,this.alignTop,this.alignBottom],right:[this.alignRight,this.alignLeft,this.alignTop,this.alignBottom]}[t]||[];for(let[o,a]of i.entries())if(o===0)a.call(this);else if(this.isOutOfBounds())a.call(this);else break}getHostOffset(){if(this.getOption("appendTo")==="body"||this.getOption("appendTo")==="target"){let t=this.el.nativeElement.getBoundingClientRect(),n=t.left+mr(),i=t.top+yr();return{left:n,top:i}}else return{left:0,top:0}}get activeElement(){return this.el.nativeElement.nodeName.startsWith("P-")?le(this.el.nativeElement,".p-component"):this.el.nativeElement}alignRight(){this.preAlign("right");let t=this.activeElement,n=z(t),i=(Y(t)-Y(this.container))/2;this.alignTooltip(n,i);let o=this.getArrowElement();o.style.top="50%",o.style.right=null,o.style.bottom=null,o.style.left="0"}alignLeft(){this.preAlign("left");let t=this.getArrowElement(),n=z(this.container),i=(Y(this.el.nativeElement)-Y(this.container))/2;this.alignTooltip(-n,i),t.style.top="50%",t.style.right="0",t.style.bottom=null,t.style.left=null}alignTop(){this.preAlign("top");let t=this.getArrowElement(),n=this.getHostOffset(),i=z(this.container),o=(z(this.el.nativeElement)-z(this.container))/2,a=Y(this.container);this.alignTooltip(o,-a);let s=n.left-this.getHostOffset().left+i/2;t.style.top=null,t.style.right=null,t.style.bottom="0",t.style.left=s+"px"}getArrowElement(){return le(this.container,'[data-pc-section="arrow"]')}alignBottom(){this.preAlign("bottom");let t=this.getArrowElement(),n=z(this.container),i=this.getHostOffset(),o=(z(this.el.nativeElement)-z(this.container))/2,a=Y(this.el.nativeElement);this.alignTooltip(o,a);let s=i.left-this.getHostOffset().left+n/2;t.style.top="0",t.style.right=null,t.style.bottom=null,t.style.left=s+"px"}alignTooltip(t,n){let i=this.getHostOffset(),o=i.left+t,a=i.top+n;this.container.style.left=o+this.getOption("positionLeft")+"px",this.container.style.top=a+this.getOption("positionTop")+"px"}setOption(t){this._tooltipOptions=u(u({},this._tooltipOptions),t)}getOption(t){return this._tooltipOptions[t]}getTarget(t){return Lt(t,"p-inputwrapper")?le(t,"input"):t}preAlign(t){this.container.style.left="-999px",this.container.style.top="-999px",this.container.className=this.cn(this.cx("root"),this.ptm("root")?.class,"p-tooltip-"+t,this.getOption("tooltipStyleClass"))}isOutOfBounds(){let t=this.container.getBoundingClientRect(),n=t.top,i=t.left,o=z(this.container),a=Y(this.container),s=vr();return i+o>s.width||i<0||n<0||n+a>s.height}onWindowResize(t){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Ir(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener),this.el.nativeElement.removeEventListener("touchstart",this.touchStartListener),this.el.nativeElement.removeEventListener("touchend",this.touchEndListener),this.unbindDocumentTouchListener()),t==="focus"||t==="both"){let n=this.el.nativeElement.querySelector(".p-component");n||(n=this.getTarget(this.el.nativeElement)),n.removeEventListener("focus",this.focusListener),n.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&(this.getOption("appendTo")==="body"?document.body.removeChild(this.container):this.getOption("appendTo")==="target"?this.el.nativeElement.removeChild(this.container):Rr(this.getOption("appendTo"),this.container)),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.unbindDocumentTouchListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}onDestroy(){this.unbindEvents(),this.container&&ce.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.documentEscapeListener&&this.documentEscapeListener()}static \u0275fac=function(n){return new(n||e)(A(Ke),A(ie))};static \u0275dir=st({type:e,selectors:[["","pTooltip",""]],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[2,"escape","escape",F],showDelay:[2,"showDelay","showDelay",gt],hideDelay:[2,"hideDelay","hideDelay",gt],life:[2,"life","life",gt],positionTop:[2,"positionTop","positionTop",gt],positionLeft:[2,"positionLeft","positionLeft",gt],autoHide:[2,"autoHide","autoHide",F],fitContent:[2,"fitContent","fitContent",F],hideOnEscape:[2,"hideOnEscape","hideOnEscape",F],showOnEllipsis:[2,"showOnEllipsis","showOnEllipsis",F],content:[0,"pTooltip","content"],disabled:[0,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions",appendTo:[1,"appendTo"],ptTooltip:[1,"ptTooltip"],pTooltipPT:[1,"pTooltipPT"],pTooltipUnstyled:[1,"pTooltipUnstyled"]},features:[lr([wi,{provide:Si,useExisting:e},{provide:Cr,useExisting:e}]),Yn]})}return e})(),Ja=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Xe({type:e});static \u0275inj=We({imports:[en,en]})}return e})();var ys=new Set(["stale-body","stale-frontmatter","stale-both"]);function Ci(e){return e?ys.has(e.status??null):!1}function Ln(e){let r=e.metadata;return r&&typeof r=="object"&&!Array.isArray(r)?r:null}function je(e,r,t){return[Math.round(e[0]+(r[0]-e[0])*t),Math.round(e[1]+(r[1]-e[1])*t),Math.round(e[2]+(r[2]-e[2])*t)]}function bs(e){let r=/^#([0-9a-f]{6})$/i.exec(e);if(!r)throw new Error(`deriveTints: invalid hex color "${e}" (expected #RRGGBB)`);let t=parseInt(r[1],16);return[t>>16&255,t>>8&255,t&255]}function $e([e,r,t]){let n=i=>Math.max(0,Math.min(255,i)).toString(16).padStart(2,"0");return`#${n(e)}${n(r)}${n(t)}`}var Ti=[255,255,255],Ii=[0,0,0];function xn(e,r){let t=bs(e);return r==="light"?{bg:$e(je(t,Ti,.85)),fg:$e(je(t,Ii,.5))}:{bg:$e(je(t,Ii,.7)),fg:$e(je(t,Ti,.6))}}var He=class e{_entries=m([]);kinds=this._entries.asReadonly();index=H(()=>{let r=new Map;for(let t of this._entries())r.set(t.name,t);return r});ingest(r){if(!r)return;let t=[];for(let[i,o]of Object.entries(r)){let a=o.providers[o.primaryProviderId];if(!a)continue;let s={name:i,primaryProviderId:o.primaryProviderId,providers:o.providers,label:a.label,color:a.color};a.colorDark!==void 0&&(s.colorDark=a.colorDark),a.emoji!==void 0&&(s.emoji=a.emoji),a.icon!==void 0&&(s.icon=a.icon),t.push(s)}let n=this._entries();ws(n,t)||(this._entries.set(t),this.applyCssVars())}lookup(r){return this.index().get(r)}labelOf(r){return this.lookup(r)?.label??r}colorOf(r,t="light"){let n=this.lookup(r);return n?t==="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(typeof document>"u")return;let r=Rs(),t=[],n=[];for(let i of this._entries()){let o=xn(i.color,"light"),a=i.colorDark??i.color,s=xn(a,"dark");t.push(`--sm-kind-${i.name}: ${i.color};`),t.push(`--sm-kind-${i.name}-bg: ${o.bg};`),t.push(`--sm-kind-${i.name}-fg: ${o.fg};`),n.push(`--sm-kind-${i.name}: ${a};`),n.push(`--sm-kind-${i.name}-bg: ${s.bg};`),n.push(`--sm-kind-${i.name}-fg: ${s.fg};`)}r.textContent=`:root { ${t.join(" ")} } .app-dark { ${n.join(" ")} }`}static \u0275fac=function(t){return new(t||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})},Ei="sm-kind-vars";function Rs(){let e=document.getElementById(Ei);return e||(e=document.createElement("style"),e.id=Ei,document.head.appendChild(e)),e}function ws(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++){let n=e[t],i=r[t];if(n.name!==i.name||n.primaryProviderId!==i.primaryProviderId||JSON.stringify(n.providers)!==JSON.stringify(i.providers))return!1}return!0}var dl=["stable","experimental","deprecated"],Oi=class e{kindRegistry=d(He);searchText=m("");selectedKinds=m([]);selectedStabilities=m([]);hasIssuesOnly=m(!1);staleOnly=m(!1);favoritesOnly=m(!1);isActive=H(()=>this.searchText().trim().length>0||this.selectedKinds().length>0||this.selectedStabilities().length>0||this.hasIssuesOnly()||this.staleOnly()||this.favoritesOnly());setSearchText(r){this.searchText.set(r)}setKinds(r){this.selectedKinds.set([...r])}toggleKind(r){let t=this.selectedKinds(),n=this.kindRegistry.kinds().map(o=>o.name),i=t.length===0?new Set(n):new Set(t);i.has(r)?i.delete(r):i.add(r),i.size===n.length?this.selectedKinds.set([]):this.selectedKinds.set([...i])}isKindActive(r){let t=this.selectedKinds();return t.length===0?!0:t.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)}reset(){this.searchText.set(""),this.selectedKinds.set([]),this.selectedStabilities.set([]),this.hasIssuesOnly.set(!1),this.staleOnly.set(!1),this.favoritesOnly.set(!1)}apply(r){let t=this.searchText().trim().toLowerCase(),n=this.selectedKinds(),i=this.selectedStabilities(),o=this.hasIssuesOnly(),a=this.staleOnly(),s=this.favoritesOnly();return r.filter(l=>{if(t&&![l.path,l.frontmatter.name??"",l.frontmatter.description??""].join(" ").toLowerCase().includes(t)||n.length>0&&!n.includes(l.kind))return!1;if(i.length>0){let c=Ai(l);if(!c||!i.includes(c))return!1}return!(o&&!Ss(l)||a&&!Ci(l.sidecar)||s&&l.isFavorite!==!0)})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})};function Ai(e){let t=e.sidecar?.annotations?.stability;if(t==="stable"||t==="experimental"||t==="deprecated")return t;let n=Ln(e.frontmatter)?.stability;return n==="stable"||n==="experimental"||n==="deprecated"?n:null}function Ss(e){if(Ai(e)==="deprecated")return!0;let t=e.sidecar?.annotations?.supersededBy;if(typeof t=="string"&&t.length>0)return!0;let n=Ln(e.frontmatter)?.supersededBy;return typeof n=="string"&&n.length>0}export{$ as a,K as b,En as c,pt as d,ke as e,ss as f,cs as g,vs as h,Ya as i,Ja as j,Ci as k,Ln as l,He as m,dl as n,Oi as o};
@@ -1,2 +0,0 @@
1
- import{a as q,b as ze,c as We}from"./chunk-MF2M6GYF.js";import{a as Se,b as Ae,c as Ce,d as Te,e as xe,f as Re,g as Ee,h as Me,i as Fe,j as $e,m as S,n as je,o as Ue}from"./chunk-V3SZQETX.js";import{a as A,b as Be,c as He,d as Ke,e as Qe,f as Je}from"./chunk-HJHWJTFH.js";import{$b as _e,B as me,Ba as ge,Ea as he,Ha as fe,Ia as ve,J as k,Ja as w,Kc as Le,Lc as Oe,Ma as D,Mc as De,N as j,Na as F,O as s,S as W,Sa as g,Sb as m,T as B,Ta as l,Ua as c,Va as f,X as H,aa as ue,ba as R,bd as X,c as de,ca as K,cb as G,cd as Y,d as pe,eb as E,f as z,gb as _,gd as Z,hd as p,id as Ne,ja as Q,m as O,na as a,qc as Ie,rc as Pe,sb as ye,sc as $,tc as ke,ub as be,uc as we,va as J,vb as u,wb as h,xb as V}from"./chunk-25AWRVIC.js";import"./chunk-3R7E3HPC.js";import"./chunk-Q7L6LLAK.js";var Ge=[{path:"",pathMatch:"full",redirectTo:"graph"},{path:"graph",loadComponent:()=>import("./chunk-HC6PNQMW.js").then(n=>n.GraphView),data:{title:"Graph"}},{path:"list",loadComponent:()=>import("./chunk-MPMBTIUR.js").then(n=>n.ListView),data:{title:"List"}},{path:"**",redirectTo:"graph"}];var I={errors:{unknownMode:n=>`SKILL_MAP_MODE: unknown value "${n}"`,restPrefix:n=>`BFF error [${n}]: `,malformedResponse:"BFF returned a malformed response",demoFetchFailed:(n,e)=>`Demo bundle fetch failed for "${n}": ${e}`,demoParseFailed:(n,e)=>`Demo bundle parse failed for "${n}": ${e}`,graphFormatNotInDemo:n=>`Graph format "${n}" is not bundled in demo mode (only "ascii").`}};var v={connected:n=>`[ws] connected to ${n}`,closed:(n,e)=>`[ws] closed (code=${n}, reason="${e}")`,malformedFrame:n=>`[ws] malformed frame dropped: ${n}`,socketError:n=>`[ws] socket error: ${n}`,reconnectScheduled:(n,e)=>`[ws] reconnect attempt ${e} scheduled in ${n}ms`,reconnectGiveUp:n=>`[ws] giving up after ${n} failed reconnect attempts`};var Ve=[1e3,2e3,4e3,8e3,16e3,3e4],ce=10,at=new Set([1e3,1001]);function lt(){return typeof window>"u"||!window.location?"ws://127.0.0.1:4242/ws":`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`}var C=class n{mode=s(A);destroyRef=s(H);subject=new pe;socket=null;reconnectTimer=null;reconnectAttempt=0;disposed=!1;socketFactory=e=>new WebSocket(e);url=lt();events$;_setSocketFactory(e){this.socketFactory=e}_setUrl(e){this.url=e}constructor(){this.mode!=="live"?this.events$=z:this.events$=new de(e=>{!this.socket&&!this.disposed&&this.connect();let t=this.subject.subscribe(e);return()=>t.unsubscribe()}).pipe(me({resetOnRefCountZero:!1})),this.destroyRef.onDestroy(()=>this.disconnect())}disconnect(){if(!this.disposed){if(this.disposed=!0,this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.socket){try{this.socket.close(1e3,"client disconnect")}catch{}this.socket=null}this.subject.complete()}}ngOnDestroy(){this.disconnect()}connect(){if(this.disposed)return;let e;try{e=this.socketFactory(this.url)}catch(t){let i=t instanceof Error?t.message:String(t);console.warn(v.socketError(i)),this.scheduleReconnect();return}this.socket=e,e.onopen=()=>{this.reconnectAttempt=0,console.info(v.connected(this.url))},e.onmessage=t=>{this.handleFrame(t.data)},e.onerror=t=>{let i=typeof t=="object"&&t!==null&&"message"in t?String(t.message??"unknown"):"unknown";console.warn(v.socketError(i))},e.onclose=t=>{console.info(v.closed(t.code,t.reason)),this.socket=null,!this.disposed&&(at.has(t.code)||this.scheduleReconnect())}}handleFrame(e){if(typeof e!="string"){console.warn(v.malformedFrame("non-string frame"));return}let t;try{t=JSON.parse(e)}catch(i){let r=i instanceof Error?i.message:String(i);console.warn(v.malformedFrame(r));return}if(!We(t)){console.warn(v.malformedFrame("envelope shape"));return}this.subject.next(t)}scheduleReconnect(){if(this.disposed)return;if(this.reconnectAttempt>=ce){console.warn(v.reconnectGiveUp(ce)),this.subject.error(new Error(v.reconnectGiveUp(ce)));return}let e=Math.min(this.reconnectAttempt,Ve.length-1),t=Ve[e];this.reconnectAttempt+=1,console.info(v.reconnectScheduled(t,this.reconnectAttempt)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},t)}get _reconnectAttempt(){return this.reconnectAttempt}static \u0275fac=function(t){return new(t||n)};static \u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"})};function ee(n){let e=new TextEncoder().encode(n),t="";for(let i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}var d="/api",te=class n{http;ws;kindRegistry;contributionsRegistry;constructor(e,t,i,r){this.http=e??s($),this.ws=t??s(C),this.kindRegistry=i??s(S),this.contributionsRegistry=r??s(q)}async health(){return this.getJson(`${d}/health`)}async loadScan(){let[e]=await Promise.all([this.getJson(`${d}/scan`),this.listNodes({limit:0}).catch(()=>null)]);return e}async runScan(){return this.patchJson(`${d}/scan`,{},"POST")}async listNodes(e={}){let t=dt(e),i=await this.getJson(`${d}/nodes${t}`);return this.ingestRegistry(i.kindRegistry),this.ingestContributionsRegistry(i.contributionsRegistry),i}async getNode(e,t={}){let i=ee(e),r=t.includeBody?"?include=body":"";try{let o=await this.getJson(`${d}/nodes/${i}${r}`);return this.ingestRegistry(o.kindRegistry),this.ingestContributionsRegistry(o.contributionsRegistry),o}catch(o){if(o instanceof p&&o.code==="not-found")return null;throw o}}async listLinks(e={}){let t=pt(e),i=await this.getJson(`${d}/links${t}`);return this.ingestRegistry(i.kindRegistry),this.ingestContributionsRegistry(i.contributionsRegistry),i}async listIssues(e={}){let t=mt(e),i=await this.getJson(`${d}/issues${t}`);return this.ingestRegistry(i.kindRegistry),this.ingestContributionsRegistry(i.contributionsRegistry),i}async loadGraph(e="ascii"){let t=`${d}/graph?format=${encodeURIComponent(e)}`;try{return await O(this.http.get(t,{responseType:"text"}))}catch(i){throw this.translateError(i)}}async loadConfig(){let e=await this.getJson(`${d}/config`);return this.ingestRegistry(e.kindRegistry),this.ingestContributionsRegistry(e.contributionsRegistry),e.value}async listPlugins(){let e=await this.getJson(`${d}/plugins`);return this.ingestRegistry(e.kindRegistry),this.ingestContributionsRegistry(e.contributionsRegistry),e}async setPluginEnabled(e,t){let i=await this.patchJson(`${d}/plugins/${encodeURIComponent(e)}`,{enabled:t});return this.ingestRegistry(i.kindRegistry),this.ingestContributionsRegistry(i.contributionsRegistry),i}async setPluginExtensionEnabled(e,t,i){let r=await this.patchJson(`${d}/plugins/${encodeURIComponent(e)}/extensions/${encodeURIComponent(t)}`,{enabled:i});return this.ingestRegistry(r.kindRegistry),this.ingestContributionsRegistry(r.contributionsRegistry),r}async applyPluginChanges(e){let t=await this.patchJson(`${d}/plugins`,{changes:e});return this.ingestRegistry(t.kindRegistry),this.ingestContributionsRegistry(t.contributionsRegistry),t}async getPreferences(){return await this.getJson(`${d}/preferences`)}async setPreferences(e){return await this.patchJson(`${d}/preferences`,e)}async getProjectPreferences(){return await this.getJson(`${d}/project-preferences`)}async setProjectPreferences(e){return await this.patchJson(`${d}/project-preferences`,e)}async setFavorite(e){let t=ee(e);try{await O(this.http.put(`${d}/favorites/${t}`,null))}catch(i){throw this.translateError(i)}}async unsetFavorite(e){let t=ee(e);try{await O(this.http.delete(`${d}/favorites/${t}`))}catch(i){throw this.translateError(i)}}ingestRegistry(e){e&&this.kindRegistry.ingest(e)}ingestContributionsRegistry(e){this.contributionsRegistry.setRegistry(e)}async lookupContribution(e,t,i){let r=new URLSearchParams({path:i});try{return(await this.getJson(`${d}/contributions/${encodeURIComponent(e)}/${encodeURIComponent(t)}?${r.toString()}`)).items[0]??null}catch{return null}}events(){return this.ws.events$}async getJson(e){try{return await O(this.http.get(e))}catch(t){throw this.translateError(t)}}async patchJson(e,t,i="PATCH"){try{let r=i==="POST"?this.http.post(e,t):this.http.patch(e,t);return await O(r)}catch(r){throw this.translateError(r)}}translateError(e){if(e instanceof p)return e;if(e instanceof Pe){let i=ut(e.error);return i?new p(i.error.code,i.error.message,i.error.details):new p("internal",e.message||I.errors.malformedResponse)}let t=e instanceof Error?e.message:String(e);return new p("internal",t)}static \u0275fac=function(t){return new(t||n)(j($),j(C),j(S),j(q))};static \u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"})};function dt(n){let e=new URLSearchParams;n.kind&&n.kind.length>0&&e.set("kind",n.kind.join(",")),n.hasIssues!==void 0&&e.set("hasIssues",String(n.hasIssues)),n.path&&e.set("path",n.path),n.limit!==void 0&&e.set("limit",String(n.limit)),n.offset!==void 0&&e.set("offset",String(n.offset));let t=e.toString();return t?`?${t}`:""}function pt(n){let e=new URLSearchParams;n.kind&&n.kind.length>0&&e.set("kind",n.kind.join(",")),n.from&&e.set("from",n.from),n.to&&e.set("to",n.to);let t=e.toString();return t?`?${t}`:""}function mt(n){let e=new URLSearchParams;n.severity&&e.set("severity",n.severity),n.analyzerId&&e.set("analyzerId",n.analyzerId),n.node&&e.set("node",n.node);let t=e.toString();return t?`?${t}`:""}function ut(n){if(typeof n!="object"||n===null)return null;let e=n;if(e.ok!==!1)return null;let t=e.error;if(typeof t!="object"||t===null)return null;let i=t;return typeof i.code!="string"||typeof i.message!="string"?null:{ok:!1,error:{code:i.code,message:i.message,details:i.details}}}var gt="data.json",ht="data.meta.json",ne=class{constructor(e=globalThis.fetch.bind(globalThis),t){this.fetchImpl=e;this.kindRegistry=t??s(S)}metaPromise=null;dataPromise=null;kindRegistry;async health(){return(await this.loadMeta()).health}async loadScan(){let[e,t]=await Promise.all([this.loadData(),this.loadMeta()]);return this.kindRegistry.ingest(t.nodes.kindRegistry),e}async listNodes(e={}){let t=await this.loadMeta();if(ft(e))return this.kindRegistry.ingest(t.nodes.kindRegistry),t.nodes;let i=await this.loadData(),r=i.issues,o=i.nodes;if(e.kind&&e.kind.length>0){let T=new Set(e.kind);o=o.filter(x=>T.has(x.kind))}if(e.path){let T=bt(e.path);o=o.filter(x=>T.test(x.path))}if(e.hasIssues===!0){let T=Xe(r);o=o.filter(x=>T.has(x.path))}else if(e.hasIssues===!1){let T=Xe(r);o=o.filter(x=>!T.has(x.path))}let y=o.length,P=e.offset??0,N=e.limit??1e3,b=o.slice(P,P+N);return this.kindRegistry.ingest(t.nodes.kindRegistry),{schemaVersion:"1",kind:"nodes",items:b,filters:{kind:e.kind??null,hasIssues:e.hasIssues??null,path:e.path?[e.path]:null},counts:{total:y,returned:b.length,page:{offset:P,limit:N}},kindRegistry:t.nodes.kindRegistry}}async getNode(e,t={}){let[i,r]=await Promise.all([this.loadData(),this.loadMeta()]),o=i.nodes.find(b=>b.path===e);if(!o)return null;let y=i.links.filter(b=>b.target===e),P=i.links.filter(b=>b.source===e),N=i.issues.filter(b=>b.nodeIds.includes(e));return this.kindRegistry.ingest(r.nodes.kindRegistry),{schemaVersion:"1",kind:"node",item:o,links:{incoming:y,outgoing:P},issues:N,kindRegistry:r.nodes.kindRegistry}}async listLinks(e={}){let t=await this.loadMeta();if(vt(e))return this.kindRegistry.ingest(t.links.kindRegistry),t.links;let r=(await this.loadData()).links;if(e.kind&&e.kind.length>0){let o=new Set(e.kind);r=r.filter(y=>o.has(y.kind))}return e.from&&(r=r.filter(o=>o.source===e.from)),e.to&&(r=r.filter(o=>o.target===e.to)),this.kindRegistry.ingest(t.links.kindRegistry),{schemaVersion:"1",kind:"links",items:r,filters:{kind:e.kind??null,from:e.from??null,to:e.to??null},counts:{total:r.length,returned:r.length},kindRegistry:t.links.kindRegistry}}async listIssues(e={}){let t=await this.loadMeta();if(yt(e))return this.kindRegistry.ingest(t.issues.kindRegistry),t.issues;let r=(await this.loadData()).issues;return e.severity&&(r=r.filter(o=>o.severity===e.severity)),e.analyzerId&&(r=r.filter(o=>o.analyzerId===e.analyzerId)),e.node&&(r=r.filter(o=>o.nodeIds.includes(e.node))),this.kindRegistry.ingest(t.issues.kindRegistry),{schemaVersion:"1",kind:"issues",items:r,filters:{severity:e.severity??null,analyzerId:e.analyzerId??null,node:e.node??null},counts:{total:r.length,returned:r.length},kindRegistry:t.issues.kindRegistry}}async loadGraph(e="ascii"){if(e!=="ascii")throw new p("bad-query",I.errors.graphFormatNotInDemo(e));return(await this.loadMeta()).graph.ascii}async loadConfig(){let e=await this.loadMeta();return this.kindRegistry.ingest(e.config.kindRegistry),e.config.value}async listPlugins(){let e=await this.loadMeta();return this.kindRegistry.ingest(e.plugins.kindRegistry),e.plugins}async setFavorite(e){throw new p("demo-readonly","Favorites are not available in demo mode (static bundle is immutable).")}async unsetFavorite(e){throw new p("demo-readonly","Favorites are not available in demo mode (static bundle is immutable).")}async setPluginEnabled(e,t){throw new p("demo-readonly","Plugin toggles are not available in demo mode (static bundle is immutable).")}async setPluginExtensionEnabled(e,t,i){throw new p("demo-readonly","Plugin toggles are not available in demo mode (static bundle is immutable).")}async applyPluginChanges(e){throw new p("demo-readonly","Plugin toggles are not available in demo mode (static bundle is immutable).")}async runScan(){throw new p("demo-readonly","Manual scan is not available in demo mode (static bundle is immutable).")}async getPreferences(){return{updateCheck:{enabled:!0}}}async setPreferences(e){throw new p("demo-readonly","Preference toggles are not available in demo mode (static bundle is immutable).")}async getProjectPreferences(){return{scan:{extraFolders:[],referencePaths:[]}}}async setProjectPreferences(e){throw new p("demo-readonly","Project preferences are not available in demo mode (static bundle is immutable).")}async lookupContribution(){return null}events(){return z}loadMeta(){return this.metaPromise||(this.metaPromise=this.fetchJson(ht)),this.metaPromise}loadData(){return this.dataPromise||(this.dataPromise=this.fetchJson(gt)),this.dataPromise}async fetchJson(e){let t;try{t=await this.fetchImpl(e)}catch(i){let r=i instanceof Error?i.message:String(i);throw new p("internal",I.errors.demoFetchFailed(e,r))}if(!t.ok)throw new p("internal",I.errors.demoFetchFailed(e,`HTTP ${t.status}`));try{return await t.json()}catch(i){let r=i instanceof Error?i.message:String(i);throw new p("internal",I.errors.demoParseFailed(e,r))}}};function ft(n){return!(n.kind&&n.kind.length>0||n.hasIssues!==void 0||n.path||n.offset!==void 0&&n.offset!==0||n.limit!==void 0)}function vt(n){return!(n.kind&&n.kind.length>0||n.from||n.to)}function yt(n){return!(n.severity||n.analyzerId||n.node)}function Xe(n){let e=new Set;for(let t of n)for(let i of t.nodeIds)e.add(i);return e}function bt(n){let t=n.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp(`^${t}$`)}function Ye(){let n=s(A);if(n==="live")return new te(s($),s(C));if(n==="demo")return new ne;let e=n;throw new Error(I.errors.unknownMode(String(e)))}var Ze={providers:[ue(),Ee(Ge,Me()),ke(we()),Oe({}),he(async()=>{let n=s(Le),[{default:e},{definePreset:t}]=await Promise.all([import("./chunk-FWFBO7KA.js"),import("./chunk-UJOZYR5I.js")]),i=t(e,{semantic:{primary:{50:"#F5F3FF",100:"#EDE9FE",200:"#DDD6FE",300:"#C4B5FD",400:"#A78BFA",500:"#8B5CF6",600:"#7C3AED",700:"#6D28D9",800:"#4C1D95",900:"#2E1065",950:"#1E0A4D"}}});n.setThemeConfig({theme:{preset:i,options:{darkModeSelector:".app-dark"}}})}),{provide:A,useFactory:Be},{provide:Z,useFactory:Ye}]};var ie={brand:"skill-map",alpha:"ALPHA - do not use in production",nav:{graph:"Graph",list:"List",searchLabel:"Search nodes (coming soon)",searchTooltip:"Search \u2014 coming soon",listLabel:"List view (coming soon)",listTooltip:"List \u2014 coming soon"},actions:{},badge:{nodes:"nodes",graphInfo:(n,e)=>`Run scan
2
- ${n.toLocaleString()} nodes \xB7 ${e.toLocaleString()} links`,graphInfoA11y:(n,e)=>`Graph contains ${n} nodes and ${e} links`},a11y:{viewSwitcher:"View switcher"},viewportWarning:{title:"Looks like you're on a small screen",subtitle:"skill-map is built for desktop",body:"The graph and inspector need room to breathe. Pop this open on a screen at least 768px wide \u2014 see you there."}};var M={toggleToAuto:"Switch to auto theme (follow system)",toggleToLight:"Switch to light theme",toggleToDark:"Switch to dark theme",currentAuto:"Auto theme (follows system)",currentLight:"Light theme",currentDark:"Dark theme"};var L={available:"Update available",tooltip:n=>`v${n} is available. Run \`npm i -g @skill-map/cli@latest\` to update.`,a11yLabel:n=>`Update available: version ${n}`,versionLabel:n=>`v${n}`,versionTooltip:n=>`skill-map CLI v${n}`,versionA11yLabel:n=>`Running version ${n}`};var re="sm-debug-slots",_t="debug-slots",It="is-debug-slots",oe=class n{visible=R(!1);constructor(){this.visible.set(this.resolveInitial()),K(()=>{let e=this.visible();document.documentElement.classList.toggle(It,e)})}toggle(){let e=!this.visible();this.visible.set(e);try{localStorage.setItem(re,e?"1":"0")}catch{}}resolveInitial(){let t=new URLSearchParams(window.location.search).get(_t);if(t==="1"||t==="true"){try{localStorage.setItem(re,"1")}catch{}return!0}if(t==="0"||t==="false"){try{localStorage.setItem(re,"0")}catch{}return!1}try{return localStorage.getItem(re)==="1"}catch{return!1}}static \u0275fac=function(t){return new(t||n)};static \u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"})};var qe="search",et="kinds",tt="stabilities",nt="hasIssues",it="staleOnly",se=class n{filters=s(Ue);router=s(Te);activatedRoute=s(Ae);kindRegistry=s(S);destroyRef=s(H);suppressUrlReadback=!1;constructor(){this.applyUrlToFilters(this.currentParams()),this.router.events.pipe(De(this.destroyRef)).subscribe(e=>{if(e instanceof Se){if(this.suppressUrlReadback)return;this.applyUrlToFilters(this.currentParams())}}),K(()=>{let e=this.computeQueryParams();this.writeQueryParams(e)})}currentParams(){let e=this.router.parseUrl(this.router.url),t=new URLSearchParams;for(let[i,r]of Object.entries(e.queryParams))Array.isArray(r)?t.set(i,r.join(",")):r!=null&&t.set(i,String(r));return this.activatedRoute,t}applyUrlToFilters(e){let t=e.get(qe)??"";t!==this.filters.searchText()&&this.filters.setSearchText(t);let i=Pt(e.get(et),this.kindRegistry.kinds().map(P=>P.name));rt(i,this.filters.selectedKinds())||this.filters.setKinds(i);let r=kt(e.get(tt));rt(r,this.filters.selectedStabilities())||this.filters.setStabilities(r);let o=e.get(nt)==="true";o!==this.filters.hasIssuesOnly()&&this.filters.setHasIssuesOnly(o);let y=e.get(it)==="true";y!==this.filters.staleOnly()&&this.filters.setStaleOnly(y)}computeQueryParams(){let e=this.filters.searchText().trim(),t=this.filters.selectedKinds(),i=this.filters.selectedStabilities(),r=this.filters.hasIssuesOnly(),o=this.filters.staleOnly();return{[qe]:e.length>0?e:null,[et]:t.length>0?t.join(","):null,[tt]:i.length>0?i.join(","):null,[nt]:r?"true":null,[it]:o?"true":null}}writeQueryParams(e){let t=this.currentParams(),i=new Map(Object.entries(e)),r=!1;for(let[o,y]of i)if((t.get(o)??null)!==y){r=!0;break}r&&(this.suppressUrlReadback=!0,this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:e,queryParamsHandling:"merge",replaceUrl:!0}).finally(()=>{setTimeout(()=>{this.suppressUrlReadback=!1},0)}))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"})};function Pt(n,e){if(!n)return[];let t=new Set(e);return n.split(",").map(i=>i.trim()).filter(i=>t.has(i))}function kt(n){if(!n)return[];let e=new Set(je);return n.split(",").map(t=>t.trim()).filter(t=>e.has(t))}function rt(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}var ot={body:"You are viewing a static demo of skill-map's UI. Install it:",installCommand:"npm i -g @skill-map/cli",homeCta:"\u2190 Back to skill-map.dev",homeHref:"/",dismissAria:"Dismiss demo banner"};function At(n,e){if(n&1){let t=G();l(0,"div",0),f(1,"span",1),l(2,"p",2),u(3),l(4,"code",3),u(5),c()(),l(6,"a",4),u(7),c(),l(8,"p-button",5),E("onClick",function(){W(t);let r=_();return B(r.dismiss())}),c()()}if(n&2){let t=_();a(3),V(" ",t.texts.body," "),a(2),h(t.texts.installCommand),a(),g("href",t.texts.homeHref,Q),a(),h(t.texts.homeCta),a(),g("ariaLabel",t.texts.dismissAria)("text",!0)("rounded",!0)}}var st="sm.demoBannerDismissed",ae=class n{mode=s(A);texts=ot;dismissed=R(this.readDismissed());visible=m(()=>this.mode==="demo"&&!this.dismissed());dismiss(){this.dismissed.set(!0);try{globalThis.localStorage?.setItem(st,"1")}catch{}}readDismissed(){if(this.mode!=="demo")return!0;try{return globalThis.localStorage?.getItem(st)==="1"}catch{return!1}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=J({type:n,selectors:[["sm-demo-banner"]],decls:1,vars:1,consts:[["role","status","data-testid","demo-banner",1,"demo-banner"],["aria-hidden","true",1,"demo-banner__icon","fa-solid","fa-circle-info"],[1,"demo-banner__body"],["data-testid","demo-banner-install",1,"demo-banner__cmd"],["data-testid","demo-banner-home",1,"demo-banner__home",3,"href"],["icon","fa-solid fa-xmark","severity","secondary","size","small","data-testid","demo-banner-dismiss",3,"onClick","ariaLabel","text","rounded"]],template:function(t,i){t&1&&D(0,At,9,7,"div",0),t&2&&F(i.visible()?0:-1)},dependencies:[Y,X],styles:["[_nghost-%COMP%]{display:block}.demo-banner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;padding:.5rem 1rem;border-bottom:1px solid var(--p-content-border-color);background:var(--p-highlight-background);color:var(--p-text-color);font-size:.875rem}.demo-banner__icon[_ngcontent-%COMP%]{font-size:1.1rem;color:var(--p-primary-color)}.demo-banner__body[_ngcontent-%COMP%]{flex:1 1 auto;margin:0;line-height:1.4}.demo-banner__cmd[_ngcontent-%COMP%]{font-family:var(--font-family-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);background:var(--p-content-background);border:1px solid var(--p-content-border-color);border-radius:.25rem;padding:.05rem .4rem;font-size:.85em;margin-left:.25rem}.demo-banner__home[_ngcontent-%COMP%]{color:var(--p-primary-color);font-weight:500;text-decoration:none;white-space:nowrap}.demo-banner__home[_ngcontent-%COMP%]:hover, .demo-banner__home[_ngcontent-%COMP%]:focus-visible{text-decoration:underline}"],changeDetection:0})};var Ct=()=>[import("./chunk-GETTEQ3S.js").then(n=>n.SettingsModal)];function Tt(n,e){if(n&1&&(l(0,"span",10),u(1),c()),n&2){let t=_();g("pTooltip",t.versionTooltip()),w("aria-label",t.versionA11y()),a(),h(t.versionLabel())}}function xt(n,e){if(n&1&&(l(0,"a",12),f(1,"i",27),l(2,"span"),u(3),c()()),n&2){let t=_();g("pTooltip",t.updateChipTooltip()),w("aria-label",t.updateChipA11y()),a(3),h(t.updateChipText)}}function Rt(n,e){if(n&1&&(l(0,"p",13),u(1),c()),n&2){let t=_();a(),h(t.rootLabel())}}function Et(n,e){if(n&1){let t=G();l(0,"sm-settings-modal",28),E("visibleChange",function(r){W(t);let o=_();return B(o.settingsOpen.set(r))}),c()}if(n&2){let t=_();g("visible",t.settingsOpen())}}var le=class n{loader=s(Ne);theme=s(Je);dataSource=s(Z);scanTrigger=s(Ke);_filterUrlSync=s(se);_debugSlots=s(oe);updateCheck=s(Qe);texts=ie;settingsTexts=He;settingsOpen=R(!1);openSettings(){this.settingsOpen.set(!0)}scanning=this.scanTrigger.scanning;scanError=this.scanTrigger.scanError;triggerScan(){return this.scanTrigger.run()}updateChipText=L.available;updateChipTooltip=m(()=>L.tooltip(this.updateCheck.latest()??""));updateChipA11y=m(()=>L.a11yLabel(this.updateCheck.latest()??""));versionLabel=m(()=>L.versionLabel(this.updateCheck.current()??""));versionTooltip=m(()=>L.versionTooltip(this.updateCheck.current()??""));versionA11y=m(()=>L.versionA11yLabel(this.updateCheck.current()??""));count=this.loader.count;linkCount=m(()=>this.loader.scan()?.links?.length??0);graphInfoTooltip=m(()=>ie.badge.graphInfo(this.count(),this.linkCount()));graphInfoA11y=m(()=>ie.badge.graphInfoA11y(this.count(),this.linkCount()));rootLabel=m(()=>{let e=this.healthCwd();if(e&&e!==".")return e;let t=this.loader.scan()?.roots??[];if(t.length===0)return"";let i=t[0].replace(/[\\/]+$/,"");return!i||i==="."?"":i});healthCwd=R(null);isDevMode=_e();themeMode=this.theme.mode;markSrc=m(()=>this.theme.resolved()==="dark"?"skill-map-mark-light.svg":"skill-map-mark-dark.svg");themeIcon=m(()=>{switch(this.themeMode()){case"auto":return"pi pi-desktop";case"light":return"pi pi-sun";case"dark":return"fa-regular fa-moon"}});themeLabel=m(()=>{switch(this.themeMode()){case"auto":return M.toggleToLight;case"light":return M.toggleToDark;case"dark":return M.toggleToAuto}});themeTooltip=m(()=>{switch(this.themeMode()){case"auto":return M.currentAuto;case"light":return M.currentLight;case"dark":return M.currentDark}});ngOnInit(){this.loader.load(),this.updateCheck.load(),this.loadHealth()}async loadHealth(){try{let e=await this.dataSource.health();this.healthCwd.set(e.cwd)}catch(e){let t=e instanceof Error?e.message:String(e);console.warn(`App: /api/health probe failed (${t})`)}}toggleTheme(){this.theme.toggle()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=J({type:n,selectors:[["app-root"]],decls:41,vars:35,consts:[["role","alert","data-testid","viewport-warning",1,"viewport-warning"],[1,"viewport-warning__card"],["aria-hidden","true",1,"fa-solid","fa-desktop","viewport-warning__icon"],[1,"viewport-warning__title"],[1,"viewport-warning__subtitle"],[1,"viewport-warning__body"],["data-testid","shell",1,"shell"],["data-testid","shell-topbar",1,"shell__topbar"],[1,"shell__brand"],["alt","","aria-hidden","true",1,"shell__brand-mark",3,"src"],["tooltipPosition","bottom","data-testid","shell-version",1,"shell__version",3,"pTooltip"],[1,"shell__alpha"],["href","https://www.npmjs.com/package/@skill-map/cli","target","_blank","rel","noopener noreferrer","tooltipPosition","bottom","data-testid","shell-update-chip",1,"shell__update-chip",3,"pTooltip"],[1,"shell__tag"],["data-testid","shell-nav",1,"shell__nav"],["type","button","tooltipPosition","bottom","disabled","","data-testid","nav-search",1,"shell__nav-search",3,"pTooltip"],["aria-hidden","true",1,"pi","pi-search"],["data-debug-slot","topbar.nav.start",1,"sm-debug-slot"],["slot","topbar.nav.start",3,"node"],["routerLink","/graph","routerLinkActive","is-active","data-testid","nav-graph"],["type","button","tooltipPosition","bottom","disabled","","data-testid","nav-list",1,"shell__nav-disabled",3,"pTooltip"],[1,"shell__actions"],["type","button","tooltipPosition","bottom","data-testid","shell-refresh",1,"shell__refresh",3,"click","pTooltip","disabled"],["aria-hidden","true"],["severity","secondary","size","small","data-testid","action-theme-toggle",3,"onClick","icon","ariaLabel","pTooltip","text","rounded"],["icon","pi pi-sliders-h","severity","secondary","size","small","data-testid","action-settings",3,"onClick","ariaLabel","pTooltip","text","rounded"],[1,"shell__main"],["aria-hidden","true",1,"pi","pi-download"],[3,"visibleChange","visible"]],template:function(t,i){if(t&1&&(l(0,"div",0)(1,"div",1),f(2,"i",2),l(3,"h2",3),u(4),c(),l(5,"p",4),u(6),c(),l(7,"p",5),u(8),c()()(),l(9,"div",6),f(10,"sm-demo-banner"),l(11,"header",7)(12,"div",8),f(13,"img",9),l(14,"div")(15,"h1"),u(16),D(17,Tt,2,3,"span",10),l(18,"span",11),u(19),c(),D(20,xt,4,3,"a",12),c(),D(21,Rt,2,1,"p",13),c()(),l(22,"nav",14)(23,"button",15),f(24,"i",16),c(),l(25,"div",17),f(26,"sm-view-contributions-host",18),c(),l(27,"a",19),u(28),c(),l(29,"button",20),u(30),c()(),l(31,"div",21)(32,"button",22),E("click",function(){return i.triggerScan()}),f(33,"i",23),c(),l(34,"p-button",24),E("onClick",function(){return i.toggleTheme()}),c(),l(35,"p-button",25),E("onClick",function(){return i.openSettings()}),c()()(),l(36,"main",26),f(37,"router-outlet"),c(),ge(38,Et,1,1),fe(39,38,Ct),c()),t&2){let r;a(4),h(i.texts.viewportWarning.title),a(2),h(i.texts.viewportWarning.subtitle),a(2),h(i.texts.viewportWarning.body),a(5),g("src",i.markSrc(),Q),a(3),V(" ",i.texts.brand," "),a(),F((r=i.updateCheck.current())?17:-1,r),a(),w("aria-label",i.texts.alpha),a(),h(i.texts.alpha),a(),F(i.updateCheck.isOutdated()&&!i.isDevMode?20:-1),a(),F(i.rootLabel()?21:-1),a(),w("aria-label",i.texts.a11y.viewSwitcher),a(),g("pTooltip",i.texts.nav.searchTooltip),w("aria-label",i.texts.nav.searchLabel),a(3),g("node",null),a(2),h(i.texts.nav.graph),a(),g("pTooltip",i.texts.nav.listTooltip),w("aria-label",i.texts.nav.listLabel),a(),h(i.texts.nav.list),a(2),ye("is-spinning",i.scanning()),g("pTooltip",i.graphInfoTooltip())("disabled",i.scanning()),w("aria-label",i.graphInfoA11y()),a(),be(i.scanning()?"pi pi-sync pi-spin":"pi pi-sync"),a(),g("icon",i.themeIcon())("ariaLabel",i.themeLabel())("pTooltip",i.themeTooltip())("text",!0)("rounded",!0),a(),g("ariaLabel",i.settingsTexts.a11y.triggerLabel)("pTooltip",i.settingsTexts.triggerTooltip)("text",!0)("rounded",!0),a(4),ve(i.settingsOpen())}},dependencies:[Ce,xe,Re,Y,X,$e,Fe,ae,ze],styles:["[_nghost-%COMP%]{display:block;height:100dvh;--shell-topbar-bg: #FFFFFF;--shell-topbar-border: var(--sm-violet-100);--shell-topbar-text: var(--sm-violet-800);--shell-topbar-text-strong: var(--sm-violet-900);--shell-topbar-text-muted: var(--sm-violet-600);--shell-topbar-hover-bg: color-mix(in srgb, var(--sm-violet-500) 10%, transparent);--shell-topbar-active-bg: var(--sm-violet-100);--shell-topbar-active-text: var(--sm-violet-800);--shell-topbar-badge-bg: var(--sm-violet-100)}.app-dark[_nghost-%COMP%], .app-dark [_nghost-%COMP%]{--shell-topbar-bg: #1A1B22;--shell-topbar-border: color-mix(in srgb, var(--sm-violet-300) 8%, transparent);--shell-topbar-text: var(--sm-violet-100);--shell-topbar-text-strong: var(--sm-violet-100);--shell-topbar-text-muted: var(--sm-violet-300);--shell-topbar-hover-bg: color-mix(in srgb, var(--sm-violet-400) 12%, transparent);--shell-topbar-active-bg: color-mix(in srgb, var(--sm-violet-500) 22%, transparent);--shell-topbar-active-text: var(--sm-violet-100);--shell-topbar-badge-bg: color-mix(in srgb, var(--sm-violet-500) 14%, transparent)}.shell[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100dvh}.shell__topbar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;padding:.75rem 1.5rem;background:var(--shell-topbar-bg);border-bottom:1px solid var(--shell-topbar-border);color:var(--shell-topbar-text)}.shell__brand[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.shell__brand-mark[_ngcontent-%COMP%]{width:2rem;height:2rem;display:block}.shell__brand[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:1.05rem;font-weight:600;letter-spacing:-.01em;color:var(--shell-topbar-text-strong)}.shell__alpha[_ngcontent-%COMP%]{font-family:Geist,system-ui,sans-serif;font-weight:600;font-size:10px;line-height:1;letter-spacing:.06em;text-transform:uppercase;color:#ad322b;background:#ad322b14;border-radius:3px;padding:4px 8px;margin-left:8px;-webkit-user-select:none;user-select:none;display:inline-block;vertical-align:middle;white-space:nowrap}.app-dark[_nghost-%COMP%] .shell__alpha[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .shell__alpha[_ngcontent-%COMP%]{color:#e07570;background:#cf464024}.shell__version[_ngcontent-%COMP%]{display:inline-block;margin-left:6px;padding:2px 6px;border-radius:3px;font-family:var(--p-monospace-font-family, ui-monospace, monospace);font-size:11px;line-height:1;font-weight:500;letter-spacing:.02em;color:var(--p-text-muted-color);background:var(--p-content-hover-background);vertical-align:middle;-webkit-user-select:text;user-select:text}.shell__update-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;margin-left:8px;padding:3px 8px;font-size:11px;line-height:1;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--p-primary-color);background:var(--p-primary-50);border:1px solid var(--p-primary-200);border-radius:999px;text-decoration:none;transition:background-color .12s ease,color .12s ease;vertical-align:middle}.shell__update-chip[_ngcontent-%COMP%]:hover, .shell__update-chip[_ngcontent-%COMP%]:focus-visible{background:var(--p-primary-100);color:var(--p-primary-700)}.shell__update-chip[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:12px;transform:translateY(1px)}.app-dark[_nghost-%COMP%] .shell__update-chip[_ngcontent-%COMP%], .app-dark [_nghost-%COMP%] .shell__update-chip[_ngcontent-%COMP%]{color:var(--p-primary-300);background:#ffffff0a;border-color:var(--p-primary-700)}.shell__tag[_ngcontent-%COMP%]{margin:.35rem 0 0;font-size:.72rem;color:var(--shell-topbar-text-muted);letter-spacing:.02em;text-transform:uppercase}.shell__nav[_ngcontent-%COMP%]{display:flex;gap:.25rem;margin-left:auto}.shell__nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:.5rem .9rem;border-radius:.5rem;font-size:.9rem;font-weight:500;color:var(--shell-topbar-text-muted);transition:background .15s ease,color .15s ease}.shell__nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--shell-topbar-hover-bg);color:var(--shell-topbar-text-strong)}.shell__nav[_ngcontent-%COMP%] a.is-active[_ngcontent-%COMP%]{background:var(--shell-topbar-active-bg);color:var(--shell-topbar-active-text)}.shell__nav-disabled[_ngcontent-%COMP%]{padding:.5rem .9rem;border:none;background:transparent;border-radius:.5rem;font-size:.9rem;font-weight:500;color:var(--shell-topbar-text-muted);cursor:not-allowed;opacity:.55;font-family:inherit}.shell__nav-search[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;padding:0;border:none;border-radius:.5rem;background:transparent;color:var(--shell-topbar-text-muted);cursor:not-allowed;opacity:.55;transition:background .15s ease,color .15s ease,opacity .15s ease}.shell__nav-search[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--shell-topbar-hover-bg);color:var(--shell-topbar-text-strong);opacity:1}.shell__nav-search[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.95rem}.shell__actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;--p-button-text-secondary-color: var(--shell-topbar-text-muted);--p-button-text-secondary-hover-color: var(--shell-topbar-text-strong);--p-button-text-secondary-hover-background: var(--shell-topbar-hover-bg);--p-button-text-secondary-active-color: var(--shell-topbar-text-strong);--p-button-text-secondary-active-background: var(--shell-topbar-hover-bg)}.shell__refresh[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border:none;border-radius:999px;background:transparent;color:var(--shell-topbar-text-muted);cursor:pointer;transition:background .15s ease,color .15s ease}.shell__refresh[_ngcontent-%COMP%]:hover:not(:disabled), .shell__refresh[_ngcontent-%COMP%]:focus-visible:not(:disabled){background:var(--shell-topbar-hover-bg);color:var(--shell-topbar-text-strong);outline:none}.shell__refresh[_ngcontent-%COMP%]:disabled{cursor:progress;opacity:.7}.shell__refresh[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.shell__main[_ngcontent-%COMP%]{flex:1;min-height:0;overflow-y:auto;width:100%}@media(max-width:1280px){.shell__topbar[_ngcontent-%COMP%]{gap:1rem;padding:.5rem 1rem}.shell__tag[_ngcontent-%COMP%]{display:none}.shell__nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:.4rem .7rem;font-size:.85rem}}.viewport-warning[_ngcontent-%COMP%]{display:none}@media(max-width:767px){.viewport-warning[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:var(--sm-bg-content)}.viewport-warning__card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.85rem;max-width:22rem}.viewport-warning__icon[_ngcontent-%COMP%]{font-size:3rem;color:var(--p-primary-color);margin-bottom:.25rem}.viewport-warning__title[_ngcontent-%COMP%]{margin:0;font-size:1.35rem;font-weight:700;color:var(--p-text-color);line-height:1.25}.viewport-warning__subtitle[_ngcontent-%COMP%]{margin:0;font-size:1rem;font-weight:500;color:var(--p-primary-color);line-height:1.35}.viewport-warning__body[_ngcontent-%COMP%]{margin:0;color:var(--p-text-muted-color);line-height:1.5;font-size:.9rem}.shell[_ngcontent-%COMP%]{display:none}}"],changeDetection:0})};Ie(le,Ze).catch(n=>console.error(n));