homebridge-config-ui-x 5.0.0-beta.55 → 5.0.0-beta.56
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.
- package/CHANGELOG.md +3 -2
- package/package.json +14 -9
- package/public/{chunk-DKYXLNGS.js → chunk-2COJW6JZ.js} +1 -1
- package/public/{chunk-BY7R34BA.js → chunk-2IW5LNPB.js} +1 -1
- package/public/{chunk-HBSDY26I.js → chunk-3BELKOOV.js} +1 -1
- package/public/chunk-4CHT7AT4.js +1 -0
- package/public/chunk-4M72X5OK.js +1 -0
- package/public/chunk-4RHFK7T7.js +1 -0
- package/public/chunk-5V2DC7MB.js +1 -0
- package/public/{chunk-624CM2T3.js → chunk-66N6LPDX.js} +1 -1
- package/public/{chunk-CP2SJFWV.js → chunk-6ANUJDFI.js} +1 -1
- package/public/{chunk-QNWPOWRO.js → chunk-6JZDPQRU.js} +1 -1
- package/public/chunk-6UJYW2BC.js +1 -0
- package/public/{chunk-3LVJVXOR.js → chunk-736OOU3Z.js} +1 -1
- package/public/{chunk-PTXWCPV7.js → chunk-773OTB2G.js} +1 -1
- package/public/{chunk-J3AMOH5Y.js → chunk-A6S2CSNA.js} +1 -1
- package/public/chunk-AK5KQMIG.js +1 -0
- package/public/chunk-AOTHIRMY.js +1 -0
- package/public/{chunk-B75F7CUZ.js → chunk-AXQ3BC2K.js} +1 -1
- package/public/{chunk-TR4NZKA2.js → chunk-B2ERIJJG.js} +1 -1
- package/public/{chunk-3NYGPFUX.js → chunk-BBVFH2MI.js} +1 -1
- package/public/{chunk-NZOTW24P.js → chunk-D3QNROQA.js} +1 -1
- package/public/{chunk-VYV2IVDF.js → chunk-DCC24Q4F.js} +1 -1
- package/public/{chunk-5E6U5Y4F.js → chunk-DVN556RD.js} +1 -1
- package/public/{chunk-VZOSCXVJ.js → chunk-E3OYPTR2.js} +5 -5
- package/public/{chunk-VAECS3ST.js → chunk-G75CPMPQ.js} +1 -1
- package/public/{chunk-MY6CGMNC.js → chunk-HLM36W2F.js} +1 -1
- package/public/chunk-HNSNM4LP.js +1 -0
- package/public/{chunk-E7KALXAM.js → chunk-IQBKWEOJ.js} +1 -1
- package/public/chunk-IYB7FT3D.js +1 -0
- package/public/{chunk-6QX3MMJP.js → chunk-IYWODW5F.js} +1 -1
- package/public/{chunk-WVBOP2LW.js → chunk-J3SOHF7U.js} +1 -1
- package/public/chunk-J6F5YEE7.js +1 -0
- package/public/{chunk-OYCLVTQL.js → chunk-JJGSWCQV.js} +1 -1
- package/public/chunk-JJNXRO4M.js +1 -0
- package/public/chunk-JO3D6NVS.js +1 -0
- package/public/chunk-KSS2AKKJ.js +1 -0
- package/public/chunk-KZVBUYFA.js +1 -0
- package/public/{chunk-DCNG2M5F.js → chunk-L4SPVWCZ.js} +1 -1
- package/public/{chunk-AHTFOOTM.js → chunk-LS2FIX2L.js} +1 -1
- package/public/chunk-LSEE2EJ5.js +1 -0
- package/public/{chunk-4DC564T2.js → chunk-LYECLRZK.js} +1 -1
- package/public/chunk-M7SOMZDC.js +1 -0
- package/public/{chunk-5C5HO7YG.js → chunk-N4Z4UGMV.js} +1 -1
- package/public/chunk-NGIHFGBF.js +1 -0
- package/public/{chunk-HEL4RGNB.js → chunk-NKLCJU2S.js} +1 -1
- package/public/chunk-OARRUSU5.js +1 -0
- package/public/{chunk-7JNBJKZO.js → chunk-OPSX6NGT.js} +1 -1
- package/public/chunk-P3FBSUT6.js +1 -0
- package/public/{chunk-QI6ARLTK.js → chunk-P6AJ5TS2.js} +1 -1
- package/public/chunk-Q6TB7XJF.js +1 -0
- package/public/{chunk-GG52KGAI.js → chunk-QAB7LTBA.js} +1 -1
- package/public/{chunk-5R5SNIWB.js → chunk-QIWZD5HO.js} +1 -1
- package/public/{chunk-LLHKFCES.js → chunk-QX4JJLN4.js} +1 -1
- package/public/{chunk-DCBQXYKE.js → chunk-R5QHD2MV.js} +1 -1
- package/public/{chunk-MY2S4HAC.js → chunk-REYVZJK4.js} +1 -1
- package/public/{chunk-SJ3UWAAJ.js → chunk-S7I53EZU.js} +1 -1
- package/public/chunk-SD6V7IFJ.js +1 -0
- package/public/{chunk-KDJYMZFG.js → chunk-SHPANMJF.js} +1 -1
- package/public/{chunk-ZAWXBC3X.js → chunk-SZTIHT5G.js} +1 -1
- package/public/{chunk-VWW5OXYB.js → chunk-T6O5C7ES.js} +1 -1
- package/public/{chunk-54KHHHVC.js → chunk-TH7WF563.js} +1 -1
- package/public/chunk-THIDU5VO.js +1 -0
- package/public/{chunk-NAEAPYF6.js → chunk-TLHK2BEJ.js} +1 -1
- package/public/{chunk-DBJHYM6V.js → chunk-TOSAT7VK.js} +1 -1
- package/public/{chunk-TVD6GFRS.js → chunk-U3XAGOD7.js} +1 -1
- package/public/{chunk-AR7DMLNC.js → chunk-UE3HPVVJ.js} +1 -1
- package/public/{chunk-S5NGU6NT.js → chunk-UHIT6NQS.js} +1 -1
- package/public/{chunk-NXJPK6JI.js → chunk-UXBIRDFV.js} +1 -1
- package/public/chunk-UXGMJXWE.js +1 -0
- package/public/{chunk-RBZHYCMS.js → chunk-VZPOY7LH.js} +1 -1
- package/public/chunk-WROPKO5D.js +1 -0
- package/public/{chunk-YQSLQ3BS.js → chunk-XJTWPBNY.js} +1 -1
- package/public/{chunk-T2GRE36D.js → chunk-XK5P2LIO.js} +1 -1
- package/public/{chunk-OZCC7YKF.js → chunk-XKZJKXVQ.js} +1 -1
- package/public/chunk-XSVWXIZ3.js +1 -0
- package/public/{chunk-FMKGRMAH.js → chunk-Y5BDWQTD.js} +1 -1
- package/public/{chunk-FA7ICRJL.js → chunk-Y7QARRGO.js} +1 -1
- package/public/{chunk-XW7GWYFD.js → chunk-YBF3LNSH.js} +1 -1
- package/public/{chunk-LL54UFJE.js → chunk-YCHPFYO5.js} +1 -1
- package/public/{chunk-OMGG43SK.js → chunk-YSSMQJIR.js} +1 -1
- package/public/{chunk-4OGTUIG4.js → chunk-YVLNDNOU.js} +1 -1
- package/public/chunk-ZEDF3XZB.js +1 -0
- package/public/{chunk-N3KVODFS.js → chunk-ZEGJJ2QZ.js} +1 -1
- package/public/chunk-ZUXRWBEO.js +1 -0
- package/public/index.html +1 -1
- package/public/{main-CBCOTPKJ.js → main-KLOKN23N.js} +1 -1
- package/public/chunk-3Q7XB2WT.js +0 -1
- package/public/chunk-65WTJRTP.js +0 -1
- package/public/chunk-AK2OL7BC.js +0 -1
- package/public/chunk-ALEJ35FB.js +0 -1
- package/public/chunk-CNL3SMTK.js +0 -1
- package/public/chunk-DNDUU6MV.js +0 -1
- package/public/chunk-ESHZ74WN.js +0 -1
- package/public/chunk-HFC26QPP.js +0 -1
- package/public/chunk-JSWQJ6V6.js +0 -1
- package/public/chunk-JZGZ5SYW.js +0 -1
- package/public/chunk-M26MCENI.js +0 -1
- package/public/chunk-MW6DM2X7.js +0 -1
- package/public/chunk-NAGTO24L.js +0 -1
- package/public/chunk-NKUJNNAM.js +0 -1
- package/public/chunk-PE233UAD.js +0 -1
- package/public/chunk-Q4G2TRSH.js +0 -1
- package/public/chunk-QHZFT356.js +0 -1
- package/public/chunk-R2PBAQ35.js +0 -1
- package/public/chunk-RPGE3RJH.js +0 -1
- package/public/chunk-RSWIVWAL.js +0 -1
- package/public/chunk-SFHKXQSB.js +0 -1
- package/public/chunk-TR7NPBZA.js +0 -1
- package/public/chunk-TZQXMRKN.js +0 -1
- package/public/chunk-V2DJBKJO.js +0 -1
- package/public/chunk-VFRL2KBN.js +0 -1
- package/public/chunk-VK24YDWN.js +0 -1
- package/public/chunk-WQ2LJPDD.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `homebridge-config-ui-x` will be documented in this file. This project tries to adhere to [Semantic Versioning](http://semver.org/).
|
|
4
4
|
|
|
5
|
-
## BETA
|
|
5
|
+
## BETA
|
|
6
6
|
|
|
7
7
|
### ⚠️ Breaking Changes
|
|
8
8
|
|
|
@@ -32,7 +32,7 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file.
|
|
|
32
32
|
- `@homebridge/node-pty-prebuilt-multiarch` @ `v0.12.0-beta`
|
|
33
33
|
- `@homebridge/plugin-ui-utils` @ `v2.0.2`
|
|
34
34
|
|
|
35
|
-
##
|
|
35
|
+
## v4.73.0 (2025-04-19)
|
|
36
36
|
|
|
37
37
|
### UI Changes
|
|
38
38
|
|
|
@@ -51,6 +51,7 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file.
|
|
|
51
51
|
- allow package mode users to disable the terminal
|
|
52
52
|
- various copilot improvements for file paths
|
|
53
53
|
- updated dependencies
|
|
54
|
+
- remove `ubuntu-20.04` from actions as unsupported
|
|
54
55
|
|
|
55
56
|
### Homebridge Dependencies
|
|
56
57
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-config-ui-x",
|
|
3
3
|
"displayName": "Homebridge UI",
|
|
4
|
-
"version": "5.0.0-beta.
|
|
4
|
+
"version": "5.0.0-beta.56",
|
|
5
5
|
"description": "A web based management, configuration and control platform for Homebridge.",
|
|
6
6
|
"author": "oznu <dev@oz.nu>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -85,21 +85,21 @@
|
|
|
85
85
|
"@homebridge/hap-client": "2.1.0",
|
|
86
86
|
"@homebridge/node-pty-prebuilt-multiarch": "0.12.0-beta.5",
|
|
87
87
|
"@nestjs/axios": "4.0.0",
|
|
88
|
-
"@nestjs/common": "11.0.
|
|
89
|
-
"@nestjs/core": "11.0.
|
|
88
|
+
"@nestjs/common": "11.0.20",
|
|
89
|
+
"@nestjs/core": "11.0.20",
|
|
90
90
|
"@nestjs/jwt": "11.0.0",
|
|
91
91
|
"@nestjs/passport": "11.0.5",
|
|
92
|
-
"@nestjs/platform-fastify": "11.0.
|
|
93
|
-
"@nestjs/platform-socket.io": "11.0.
|
|
94
|
-
"@nestjs/swagger": "11.1.
|
|
95
|
-
"@nestjs/websockets": "11.0.
|
|
92
|
+
"@nestjs/platform-fastify": "11.0.20",
|
|
93
|
+
"@nestjs/platform-socket.io": "11.0.20",
|
|
94
|
+
"@nestjs/swagger": "11.1.4",
|
|
95
|
+
"@nestjs/websockets": "11.0.20",
|
|
96
96
|
"axios": "1.8.4",
|
|
97
97
|
"bash-color": "0.0.4",
|
|
98
98
|
"class-transformer": "0.5.1",
|
|
99
99
|
"class-validator": "0.14.1",
|
|
100
100
|
"commander": "13.1.0",
|
|
101
101
|
"dayjs": "1.11.13",
|
|
102
|
-
"fastify": "5.
|
|
102
|
+
"fastify": "5.3.2",
|
|
103
103
|
"fs-extra": "11.3.0",
|
|
104
104
|
"jsonwebtoken": "9.0.2",
|
|
105
105
|
"lodash": "4.17.21",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
},
|
|
122
122
|
"devDependencies": {
|
|
123
123
|
"@antfu/eslint-config": "^4.12.0",
|
|
124
|
-
"@nestjs/testing": "^11.0.
|
|
124
|
+
"@nestjs/testing": "^11.0.20",
|
|
125
125
|
"@prettier/plugin-xml": "^3.4.1",
|
|
126
126
|
"@types/fs-extra": "^11.0.4",
|
|
127
127
|
"@types/lodash": "^4.17.16",
|
|
@@ -145,6 +145,11 @@
|
|
|
145
145
|
"unplugin-swc": "^1.5.1",
|
|
146
146
|
"vitest": "^3.1.1"
|
|
147
147
|
},
|
|
148
|
+
"overrides": {
|
|
149
|
+
"@nestjs/platform-fastify": {
|
|
150
|
+
"fastify": "5.3.2"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
148
153
|
"maintainers": [
|
|
149
154
|
{
|
|
150
155
|
"email": "bwp91@icloud.com",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as I}from"./chunk-
|
|
1
|
+
import{e as I}from"./chunk-6JZDPQRU.js";var j=I((k,m)=>{(function(g,l){typeof k=="object"&&typeof m=="object"?m.exports=l():typeof define=="function"&&define.amd?define([],l):typeof k=="object"?k.WebLinksAddon=l():g.WebLinksAddon=l()})(self,function(){return(()=>{"use strict";var g={6:(a,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.LinkComputer=r.WebLinkProvider=void 0;var s=function(){function o(n,i,e,t){t===void 0&&(t={}),this._terminal=n,this._regex=i,this._handler=e,this._options=t}return o.prototype.provideLinks=function(n,i){var e=p.computeLink(n,this._regex,this._terminal,this._handler);i(this._addCallbacks(e))},o.prototype._addCallbacks=function(n){var i=this;return n.map(function(e){return e.leave=i._options.leave,e.hover=function(t,u){if(i._options.hover){var c=e.range;i._options.hover(t,u,c)}},e})},o}();r.WebLinkProvider=s;var p=function(){function o(){}return o.computeLink=function(n,i,e,t){for(var u,c=new RegExp(i.source,(i.flags||"")+"g"),_=o._translateBufferLineToStringWithWrap(n-1,!1,e),d=_[0],f=_[1],v=-1,w=[];(u=c.exec(d))!==null;){var h=u[1];if(!h){console.log("match found without corresponding matchIndex");break}if(v=d.indexOf(h,v+1),c.lastIndex=v+h.length,v<0)break;for(var b=v+h.length,y=f+1;b>e.cols;)b-=e.cols,y++;for(var L=v+1,P=f+1;L>e.cols;)L-=e.cols,P++;var M={start:{x:L,y:P},end:{x:b,y}};w.push({range:M,text:h,activate:t})}return w},o._translateBufferLineToStringWithWrap=function(n,i,e){var t,u,c="";do{if(!(d=e.buffer.active.getLine(n)))break;d.isWrapped&&n--,u=d.isWrapped}while(u);var _=n;do{var d,f=e.buffer.active.getLine(n+1);if(t=!!f&&f.isWrapped,!(d=e.buffer.active.getLine(n)))break;c+=d.translateToString(!t&&i).substring(0,e.cols),n++}while(t);return[c,_]},o}();r.LinkComputer=p}},l={};function x(a){var r=l[a];if(r!==void 0)return r.exports;var s=l[a]={exports:{}};return g[a](s,s.exports,x),s.exports}var W={};return(()=>{var a=W;Object.defineProperty(a,"__esModule",{value:!0}),a.WebLinksAddon=void 0;var r=x(6),s=new RegExp(`(?:^|[^\\da-z\\.-]+)((https?:\\/\\/)((([\\da-z\\.-]+)\\.([a-z\\.]{2,18}))|((\\d{1,3}\\.){3}\\d{1,3})|(localhost))(:\\d{1,5})?((\\/[\\/\\w\\.\\-%~:+@]*)*([^:"'\\s]))?(\\?[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*)?(#[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*)?)($|[^\\/\\w\\.\\-%]+)`);function p(n,i){var e=window.open();if(e){try{e.opener=null}catch{}e.location.href=i}else console.warn("Opening link blocked as opener could not be cleared")}var o=function(){function n(i,e,t){i===void 0&&(i=p),e===void 0&&(e={}),t===void 0&&(t=!1),this._handler=i,this._options=e,this._useLinkProvider=t}return n.prototype.activate=function(i){if(this._terminal=i,this._useLinkProvider&&"registerLinkProvider"in this._terminal){var e=(t=this._options).urlRegex||s;this._linkProvider=this._terminal.registerLinkProvider(new r.WebLinkProvider(this._terminal,e,this._handler,t))}else{var t;(t=this._options).matchIndex=1,this._linkMatcherId=this._terminal.registerLinkMatcher(s,this._handler,t)}},n.prototype.dispose=function(){var i;this._linkMatcherId!==void 0&&this._terminal!==void 0&&this._terminal.deregisterLinkMatcher(this._linkMatcherId),(i=this._linkProvider)===null||i===void 0||i.dispose()},n}();a.WebLinksAddon=o})(),W})()})});export{j as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as ln}from"./chunk-VAECS3ST.js";import{$ as j,A as De,Aa as jr,Ab as Gr,B as Mr,Ba as kr,C as kt,Ca as ie,Da as et,Ec as rt,Fb as Qr,Ga as Lr,Gb as Ht,Gc as nt,H as K,Ha as Bt,Hb as Kr,Ib as Zr,Jb as Yr,Jc as it,K as re,L as ne,N as Lt,Nc as nn,O as de,Oc as on,Qa as $r,S as Je,Sa as zr,T as Z,Tc as sn,U as $t,Uc as Ne,V as Dr,W as Er,Wb as Xr,Wc as an,Xc as fe,Yc as un,_ as Ur,a as h,aa as Nr,b as P,ba as w,bc as Jr,da as b,eb as Fr,fc as en,ga as C,ha as Pr,hc as tn,i as Ir,ia as xr,ic as rn,j as Ar,ja as O,ka as zt,l as _t,la as G,lb as Vt,m as jt,ma as p,mb as k,n as H,nb as qr,nd as cn,o as x,ob as Br,p as W,q as I,qa as pe,r as d,ra as $,rb as Vr,s as Me,sb as tt,t as Tr,ta as Ee,tb as Hr,u as Or,ub as Wr,vb as Ue,x as m,xa as Ft,y as Xe,ya as _r,z as T,za as qt}from"./chunk-QNWPOWRO.js";var f="primary",He=Symbol("RouteTitle"),Zt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ae(t){return new Zt(t)}function Rn(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let i={};for(let s=0;s<r.length;s++){let o=r[s],a=t[s];if(o[0]===":")i[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function li(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!z(t[e],n[e]))return!1;return!0}function z(t,n){let e=t?Yt(t):void 0,r=n?Yt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let s=0;s<e.length;s++)if(i=e[s],!Sn(t[i],n[i]))return!1;return!0}function Yt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Sn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,s)=>r[s]===i)}else return t===n}function yn(t){return t.length>0?t[t.length-1]:null}function te(t){return Tr(t)?t:Qr(t)?I(Promise.resolve(t)):d(t)}var hi={exact:wn,subset:bn},Cn={exact:di,subset:pi,ignored:()=>!0};function hn(t,n,e){return hi[e.paths](t.root,n.root,e.matrixParams)&&Cn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function di(t,n){return z(t,n)}function wn(t,n,e){if(!oe(t.segments,n.segments)||!at(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!wn(t.children[r],n.children[r],e))return!1;return!0}function pi(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Sn(t[e],n[e]))}function bn(t,n,e){return In(t,n,n.segments,e)}function In(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!oe(i,e)||n.hasChildren()||!at(i,e,r))}else if(t.segments.length===e.length){if(!oe(t.segments,e)||!at(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!bn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!oe(t.segments,i)||!at(t.segments,i,r)||!t.children[f]?!1:In(t.children[f],n,s,r)}}function at(t,n,e){return n.every((r,i)=>Cn[e](t[i].parameters,r.parameters))}var q=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){var n;return(n=this._queryParamMap)!=null||(this._queryParamMap=ae(this.queryParams)),this._queryParamMap}toString(){return vi.serialize(this)}},v=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ut(this)}},Y=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){var n;return(n=this._parameterMap)!=null||(this._parameterMap=ae(this.parameters)),this._parameterMap}toString(){return Tn(this)}};function fi(t,n){return oe(t,n)&&t.every((e,r)=>z(e.parameters,n[r].parameters))}function oe(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function gi(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)))}),e}var ue=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>new X,providedIn:"root"})}return t})(),X=class{parse(n){let e=new Jt(n);return new q(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Pe(n.root,!0)}`,r=Si(n.queryParams),i=typeof n.fragment=="string"?`#${mi(n.fragment)}`:"";return`${e}${r}${i}`}},vi=new X;function ut(t){return t.segments.map(n=>Tn(n)).join("/")}function Pe(t,n){if(!t.hasChildren())return ut(t);if(n){let e=t.children[f]?Pe(t.children[f],!1):"",r=[];return Object.entries(t.children).forEach(([i,s])=>{i!==f&&r.push(`${i}:${Pe(s,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=gi(t,(r,i)=>i===f?[Pe(t.children[f],!1)]:[`${i}:${Pe(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${ut(t)}/${e[0]}`:`${ut(t)}/(${e.join("//")})`}}function An(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ot(t){return An(t).replace(/%3B/gi,";")}function mi(t){return encodeURI(t)}function Xt(t){return An(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ct(t){return decodeURIComponent(t)}function dn(t){return ct(t.replace(/\+/g,"%20"))}function Tn(t){return`${Xt(t.path)}${Ri(t.parameters)}`}function Ri(t){return Object.entries(t).map(([n,e])=>`;${Xt(n)}=${Xt(e)}`).join("")}function Si(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${ot(e)}=${ot(i)}`).join("&"):`${ot(e)}=${ot(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var yi=/^[^\/()?;#]+/;function Wt(t){let n=t.match(yi);return n?n[0]:""}var Ci=/^[^\/()?;=#]+/;function wi(t){let n=t.match(Ci);return n?n[0]:""}var bi=/^[^=?&#]+/;function Ii(t){let n=t.match(bi);return n?n[0]:""}var Ai=/^[^&#]+/;function Ti(t){let n=t.match(Ai);return n?n[0]:""}var Jt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[f]=new v(n,e)),r}parseSegment(){let n=Wt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new Y(ct(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=wi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Wt(this.remaining);i&&(r=i,this.capture(r))}n[ct(e)]=ct(r)}parseQueryParam(n){let e=Ii(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let o=Ti(this.remaining);o&&(r=o,this.capture(r))}let i=dn(e),s=dn(r);if(n.hasOwnProperty(i)){let o=n[i];Array.isArray(o)||(o=[o],n[i]=o),o.push(s)}else n[i]=s}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Wt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let s;r.indexOf(":")>-1?(s=r.slice(0,r.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=f);let o=this.parseChildren();e[s]=Object.keys(o).length===1?o[f]:new v([],o),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new b(4011,!1)}};function On(t){return t.segments.length>0?new v([],{[f]:t}):t}function Mn(t){let n={};for(let[r,i]of Object.entries(t.children)){let s=Mn(i);if(r===f&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))n[o]=a;else(s.segments.length>0||s.hasChildren())&&(n[r]=s)}let e=new v(t.segments,n);return Oi(e)}function Oi(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new v(t.segments.concat(n.segments),n.children)}return t}function J(t){return t instanceof q}function Dn(t,n,e=null,r=null){let i=En(t);return Un(i,n,e,r)}function En(t){let n;function e(s){let o={};for(let u of s.children){let c=e(u);o[u.outlet]=c}let a=new v(s.url,o);return s===t&&(n=a),a}let r=e(t.root),i=On(r);return n!=null?n:i}function Un(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return Gt(i,i,i,e,r);let s=Mi(n);if(s.toRoot())return Gt(i,i,new v([],{}),e,r);let o=Di(s,i,t),a=o.processChildren?_e(o.segmentGroup,o.index,s.commands):Pn(o.segmentGroup,o.index,s.commands);return Gt(i,o.segmentGroup,a,e,r)}function ht(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ke(t){return typeof t=="object"&&t!=null&&t.outlets}function Gt(t,n,e,r,i){let s={};r&&Object.entries(r).forEach(([u,c])=>{s[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let o;t===n?o=e:o=Nn(t,n,e);let a=On(Mn(o));return new q(a,s,i)}function Nn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,s])=>{s===n?r[i]=e:r[i]=Nn(s,n,e)}),new v(t.segments,r)}var dt=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&ht(r[0]))throw new b(4003,!1);let i=r.find(ke);if(i&&i!==yn(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Mi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new dt(!0,0,t);let n=0,e=!1,r=t.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,s]},[]);return new dt(e,n,r)}var me=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Di(t,n,e){if(t.isAbsolute)return new me(n,!0,0);if(!e)return new me(n,!1,NaN);if(e.parent===null)return new me(e,!0,0);let r=ht(t.commands[0])?0:1,i=e.segments.length-1+r;return Ei(e,i,t.numberOfDoubleDots)}function Ei(t,n,e){let r=t,i=n,s=e;for(;s>i;){if(s-=i,r=r.parent,!r)throw new b(4005,!1);i=r.segments.length}return new me(r,!1,i-s)}function Ui(t){return ke(t[0])?t[0].outlets:{[f]:t}}function Pn(t,n,e){if(t!=null||(t=new v([],{})),t.segments.length===0&&t.hasChildren())return _e(t,n,e);let r=Ni(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let s=new v(t.segments.slice(0,r.pathIndex),{});return s.children[f]=new v(t.segments.slice(r.pathIndex),t.children),_e(s,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?er(t,n,e):r.match?_e(t,0,i):er(t,n,e)}function _e(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=Ui(e),i={};if(Object.keys(r).some(s=>s!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let s=_e(t.children[f],n,e);return new v(t.segments,s.children)}return Object.entries(r).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=Pn(t.children[s],n,o))}),Object.entries(t.children).forEach(([s,o])=>{r[s]===void 0&&(i[s]=o)}),new v(t.segments,i)}}function Ni(t,n,e){let r=0,i=n,s={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return s;let o=t.segments[i],a=e[r];if(ke(a))break;let u=`${a}`,c=r<e.length-1?e[r+1]:null;if(i>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!fn(u,c,o))return s;r+=2}else{if(!fn(u,{},o))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function er(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let s=e[i];if(ke(s)){let u=Pi(s.outlets);return new v(r,u)}if(i===0&&ht(e[0])){let u=t.segments[n];r.push(new Y(u.path,pn(e[0]))),i++;continue}let o=ke(s)?s.outlets[f]:`${s}`,a=i<e.length-1?e[i+1]:null;o&&a&&ht(a)?(r.push(new Y(o,pn(a))),i+=2):(r.push(new Y(o,{})),i++)}return new v(r,{})}function Pi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=er(new v([],{}),0,r))}),n}function pn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function fn(t,n,e){return t==e.path&&z(n,e.parameters)}var lt="imperative",y=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(y||{}),U=class{id;url;constructor(n,e){this.id=n,this.url=e}},ee=class extends U{type=y.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},N=class extends U{urlAfterRedirects;type=y.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},M=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(M||{}),Se=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Se||{}),F=class extends U{reason;code;type=y.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},B=class extends U{reason;code;type=y.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},ye=class extends U{error;target;type=y.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Le=class extends U{urlAfterRedirects;state;type=y.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pt=class extends U{urlAfterRedirects;state;type=y.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ft=class extends U{urlAfterRedirects;state;shouldActivate;type=y.GuardsCheckEnd;constructor(n,e,r,i,s){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},gt=class extends U{urlAfterRedirects;state;type=y.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vt=class extends U{urlAfterRedirects;state;type=y.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mt=class{route;type=y.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Rt=class{route;type=y.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},St=class{snapshot;type=y.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=y.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ct=class{snapshot;type=y.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wt=class{snapshot;type=y.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ce=class{routerEvent;position;anchor;type=y.Scroll;constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},$e=class{},we=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function xi(t,n){var e;return t.providers&&!t._injector&&(t._injector=tt(t.providers,n,`Route: ${t.path}`)),(e=t._injector)!=null?e:n}function L(t){return t.outlet||f}function _i(t,n){let e=t.filter(r=>L(r)===n);return e.push(...t.filter(r=>L(r)!==n)),e}function We(t){var n;if(!t)return null;if((n=t.routeConfig)!=null&&n._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r!=null&&r._loadedInjector)return r._loadedInjector;if(r!=null&&r._injector)return r._injector}return null}var bt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){var n,e;return(e=We((n=this.route)==null?void 0:n.snapshot))!=null?e:this.rootInjector}constructor(n){this.rootInjector=n,this.children=new ce(this.rootInjector)}},ce=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new bt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(G(pe))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),It=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=tr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=tr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=rr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return rr(n,this._root).map(e=>e.value)}};function tr(t,n){if(t===n.value)return n;for(let e of n.children){let r=tr(t,e);if(r)return r}return null}function rr(t,n){if(t===n.value)return[n];for(let e of n.children){let r=rr(t,e);if(r.length)return r.unshift(n),r}return[]}var E=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ve(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var ze=class extends It{snapshot;constructor(n,e){super(n),this.snapshot=e,lr(this,n)}toString(){return this.snapshot.toString()}};function xn(t){let n=ji(t),e=new x([new Y("",{})]),r=new x({}),i=new x({}),s=new x({}),o=new x(""),a=new Q(e,r,s,o,i,f,t,n.root);return a.snapshot=n.root,new ze(new E(a,[]),n)}function ji(t){let n={},e={},r={},i="",s=new se([],n,r,i,e,f,t,null,{});return new Fe("",new E(s,[]))}var Q=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,s,o,a,u){var c,l;this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=u,this.title=(l=(c=this.dataSubject)==null?void 0:c.pipe(m(g=>g[He])))!=null?l:d(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=s}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(){var n;return(n=this._paramMap)!=null||(this._paramMap=this.params.pipe(m(e=>ae(e)))),this._paramMap}get queryParamMap(){var n;return(n=this._queryParamMap)!=null||(this._queryParamMap=this.queryParams.pipe(m(e=>ae(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function At(t,n,e="emptyOnly"){var s,o;let r,{routeConfig:i}=t;return n!==null&&(e==="always"||(i==null?void 0:i.path)===""||!n.component&&!((s=n.routeConfig)!=null&&s.loadComponent))?r={params:h(h({},n.params),t.params),data:h(h({},n.data),t.data),resolve:h(h(h(h({},t.data),n.data),i==null?void 0:i.data),t._resolvedData)}:r={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),(o=t._resolvedData)!=null?o:{})},i&&jn(i)&&(r.resolve[He]=i.title),r}var se=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){var n;return(n=this.data)==null?void 0:n[He]}constructor(n,e,r,i,s,o,a,u,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=s,this.outlet=o,this.component=a,this.routeConfig=u,this._resolve=c}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(){var n;return(n=this._paramMap)!=null||(this._paramMap=ae(this.params)),this._paramMap}get queryParamMap(){var n;return(n=this._queryParamMap)!=null||(this._queryParamMap=ae(this.queryParams)),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Fe=class extends It{url;constructor(n,e){super(e),this.url=n,lr(this,e)}toString(){return _n(this._root)}};function lr(t,n){n.value._routerState=t,n.children.forEach(e=>lr(t,e))}function _n(t){let n=t.children.length>0?` { ${t.children.map(_n).join(", ")} } `:"";return`${t.value}${n}`}function Qt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,z(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),z(n.params,e.params)||t.paramsSubject.next(e.params),li(n.url,e.url)||t.urlSubject.next(e.url),z(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function nr(t,n){let e=z(t.params,n.params)&&fi(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||nr(t.parent,n.parent))}function jn(t){return typeof t.title=="string"||t.title===null}var kn=new O(""),hr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new ie;deactivateEvents=new ie;attachEvents=new ie;detachEvents=new ie;routerOutletData=Lr(void 0);parentContexts=p(ce);location=p(Br);changeDetector=p(nt);inputBinder=p(Ge,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){var e;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),(e=this.inputBinder)==null||e.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){var r;return((r=this.parentContexts.getContext(e))==null?void 0:r.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e!=null&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){var i;this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),(i=this.inputBinder)==null||i.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){var c;if(this.isActivated)throw new b(4013,!1);this._activatedRoute=e;let i=this.location,o=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new ir(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(o,{index:i.length,injector:u,environmentInjector:r}),this.changeDetector.markForCheck(),(c=this.inputBinder)==null||c.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ue({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ee]})}return t})(),ir=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===Q?this.route:n===ce?this.childContexts:n===kn?this.outletData:this.parent.get(n,e)}},Ge=new O(""),dr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){var r;(r=this.outletDataSubscriptions.get(e))==null||r.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Xe([r.queryParams,r.params,r.data]).pipe(j(([s,o,a],u)=>(a=h(h(h({},s),o),a),u===0?d(a):Promise.resolve(a)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let o=nn(r.component);if(!o){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of o.inputs)e.activatedComponentRef.setInput(a,s[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function ki(t,n,e){let r=qe(t,n._root,e?e._root:void 0);return new ze(r,n)}function qe(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Li(t,n,e);return new E(r,i)}else{if(t.shouldAttach(n.value)){let s=t.retrieve(n.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=n.value,o.children=n.children.map(a=>qe(t,a)),o}}let r=$i(n.value),i=n.children.map(s=>qe(t,s));return new E(r,i)}}function Li(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return qe(t,r,i);return qe(t,r)})}function $i(t){return new Q(new x(t.url),new x(t.params),new x(t.queryParams),new x(t.fragment),new x(t.data),t.outlet,t.component,t)}var be=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},Ln="ngNavigationCancelingError";function Tt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=J(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=$n(!1,M.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function $n(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[Ln]=!0,e.cancellationCode=n,e}function zi(t){return zn(t)&&J(t.url)}function zn(t){return!!t&&t[Ln]}var Fi=(t,n,e,r)=>m(i=>(new or(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),or=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,s){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=s}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Qt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ve(e);n.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],r),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(n,e,r){let i=n.value,s=e?e.value:null;if(i===s)if(i.component){let o=r.getContext(i.outlet);o&&this.deactivateChildRoutes(n,e,o.children)}else this.deactivateChildRoutes(n,e,r);else s&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,s=ve(n);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(r&&r.outlet){let o=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:o,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,s=ve(n);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=ve(e);n.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],r),this.forwardEvent(new wt(s.value.snapshot))}),n.children.length&&this.forwardEvent(new yt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,s=e?e.value:null;if(Qt(i),i===s)if(i.component){let o=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,o.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let o=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Qt(a.route.value),this.activateChildRoutes(n,null,o.children)}else o.attachRef=null,o.route=i,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(n,null,o.children)}else this.activateChildRoutes(n,null,r)}},Ot=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Re=class{component;route;constructor(n,e){this.component=n,this.route=e}};function qi(t,n,e){let r=t._root,i=n?n._root:null;return xe(r,i,e,[r.value])}function Bi(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ae(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!xr(t)?t:n.get(t):r}function xe(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=ve(n);return t.children.forEach(o=>{Vi(o,s[o.value.outlet],e,r.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>je(a,e.getContext(o),i)),i}function Vi(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let u=Hi(o,s,s.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Ot(r)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?xe(t,n,a?a.children:null,r,i):xe(t,n,e,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Re(a.outlet.component,o))}else o&&je(n,a,i),i.canActivateChecks.push(new Ot(r)),s.component?xe(t,null,a?a.children:null,r,i):xe(t,null,e,r,i);return i}function Hi(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!oe(t.url,n.url);case"pathParamsOrQueryParamsChange":return!oe(t.url,n.url)||!z(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!nr(t,n)||!z(t.queryParams,n.queryParams);case"paramsChange":default:return!nr(t,n)}}function je(t,n,e){let r=ve(t),i=t.value;Object.entries(r).forEach(([s,o])=>{i.component?n?je(o,n.children.getContext(s),e):je(o,null,e):je(o,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Re(n.outlet.component,i)):e.canDeactivateChecks.push(new Re(null,i)):e.canDeactivateChecks.push(new Re(null,i))}function Qe(t){return typeof t=="function"}function Wi(t){return typeof t=="boolean"}function Gi(t){return t&&Qe(t.canLoad)}function Qi(t){return t&&Qe(t.canActivate)}function Ki(t){return t&&Qe(t.canActivateChild)}function Zi(t){return t&&Qe(t.canDeactivate)}function Yi(t){return t&&Qe(t.canMatch)}function Fn(t){return t instanceof Or||(t==null?void 0:t.name)==="EmptyError"}var st=Symbol("INITIAL_VALUE");function Ie(){return j(t=>Xe(t.map(n=>n.pipe(de(1),Ur(st)))).pipe(m(n=>{for(let e of n)if(e!==!0){if(e===st)return st;if(e===!1||Xi(e))return e}return!0}),K(n=>n!==st),de(1)))}function Xi(t){return J(t)||t instanceof be}function Ji(t,n){return T(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return o.length===0&&s.length===0?d(P(h({},e),{guardsResult:!0})):eo(o,r,i,t).pipe(T(a=>a&&Wi(a)?to(r,s,t,n):d(a)),m(a=>P(h({},e),{guardsResult:a})))})}function eo(t,n,e,r){return I(t).pipe(T(i=>so(i.component,i.route,e,n,r)),Z(i=>i!==!0,!0))}function to(t,n,e,r){return I(n).pipe(ne(i=>Mr(no(i.route.parent,r),ro(i.route,r),oo(t,i.path,e),io(t,i.route,e))),Z(i=>i!==!0,!0))}function ro(t,n){return t!==null&&n&&n(new Ct(t)),d(!0)}function no(t,n){return t!==null&&n&&n(new St(t)),d(!0)}function io(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return d(!0);let i=r.map(s=>kt(()=>{var c;let o=(c=We(n))!=null?c:e,a=Ae(s,o),u=Qi(a)?a.canActivate(n,t):$(o,()=>a(n,t));return te(u).pipe(Z())}));return d(i).pipe(Ie())}function oo(t,n,e){let r=n[n.length-1],s=n.slice(0,n.length-1).reverse().map(o=>Bi(o)).filter(o=>o!==null).map(o=>kt(()=>{let a=o.guards.map(u=>{var R;let c=(R=We(o.node))!=null?R:e,l=Ae(u,c),g=Ki(l)?l.canActivateChild(r,t):$(c,()=>l(r,t));return te(g).pipe(Z())});return d(a).pipe(Ie())}));return d(s).pipe(Ie())}function so(t,n,e,r,i){let s=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!s||s.length===0)return d(!0);let o=s.map(a=>{var g;let u=(g=We(n))!=null?g:i,c=Ae(a,u),l=Zi(c)?c.canDeactivate(t,n,e,r):$(u,()=>c(t,n,e,r));return te(l).pipe(Z())});return d(o).pipe(Ie())}function ao(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return d(!0);let s=i.map(o=>{let a=Ae(o,t),u=Gi(a)?a.canLoad(n,e):$(t,()=>a(n,e));return te(u)});return d(s).pipe(Ie(),qn(r))}function qn(t){return Ar(w(n=>{if(typeof n!="boolean")throw Tt(t,n)}),m(n=>n===!0))}function uo(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return d(!0);let s=i.map(o=>{let a=Ae(o,t),u=Yi(a)?a.canMatch(n,e):$(t,()=>a(n,e));return te(u)});return d(s).pipe(Ie(),qn(r))}var Be=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Ve=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ge(t){return Me(new Be(t))}function co(t){return Me(new b(4e3,!1))}function lo(t){return Me($n(!1,M.GuardRejected))}var sr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return d(r);if(i.numberOfChildren>1||!i.children[f])return co(`${n.redirectTo}`);i=i.children[f]}}applyRedirectCommands(n,e,r,i,s){if(typeof e!="string"){let a=e,{queryParams:u,fragment:c,routeConfig:l,url:g,outlet:R,params:S,data:D,title:A}=i,_=$(s,()=>a({params:S,data:D,queryParams:u,fragment:c,routeConfig:l,url:g,outlet:R,title:A}));if(_ instanceof q)throw new Ve(_);e=_}let o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new Ve(o);return o}applyRedirectCreateUrlTree(n,e,r,i){let s=this.createSegmentGroup(n,e.root,r,i);return new q(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,s])=>{if(typeof s=="string"&&s[0]===":"){let a=s.substring(1);r[i]=e[a]}else r[i]=s}),r}createSegmentGroup(n,e,r,i){let s=this.createSegments(n,e.segments,r,i),o={};return Object.entries(e.children).forEach(([a,u])=>{o[a]=this.createSegmentGroup(n,u,r,i)}),new v(s,o)}createSegments(n,e,r,i){return e.map(s=>s.path[0]===":"?this.findPosParam(n,s,i):this.findOrReturn(s,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new b(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}},ar={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ho(t,n,e,r,i){let s=Bn(t,n,e);return s.matched?(r=xi(n,r),uo(r,n,e,i).pipe(m(o=>o===!0?s:h({},ar)))):d(s)}function Bn(t,n,e){var a,u;if(n.path==="**")return po(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},ar):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Rn)(e,t,n);if(!i)return h({},ar);let s={};Object.entries((a=i.posParams)!=null?a:{}).forEach(([c,l])=>{s[c]=l.path});let o=i.consumed.length>0?h(h({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:o,positionalParamSegments:(u=i.posParams)!=null?u:{}}}function po(t){return{matched:!0,parameters:t.length>0?yn(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function gn(t,n,e,r){return e.length>0&&vo(t,e,r)?{segmentGroup:new v(n,go(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&mo(t,e,r)?{segmentGroup:new v(t.segments,fo(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function fo(t,n,e,r){let i={};for(let s of e)if(Dt(t,n,s)&&!r[L(s)]){let o=new v([],{});i[L(s)]=o}return h(h({},r),i)}function go(t,n){let e={};e[f]=n;for(let r of t)if(r.path===""&&L(r)!==f){let i=new v([],{});e[L(r)]=i}return e}function vo(t,n,e){return e.some(r=>Dt(t,n,r)&&L(r)!==f)}function mo(t,n,e){return e.some(r=>Dt(t,n,r))}function Dt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Ro(t,n,e){return n.length===0&&!t.children[e]}var ur=class{};function So(t,n,e,r,i,s,o="emptyOnly"){return new cr(t,n,e,r,i,o,s).recognize()}var yo=31,cr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,s,o,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new sr(this.urlSerializer,this.urlTree)}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}recognize(){let n=gn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(m(({children:e,rootSnapshot:r})=>{let i=new E(r,e),s=new Fe("",i),o=Dn(r,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(n){let e=new se([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,f,e).pipe(m(r=>({children:r,rootSnapshot:e})),re(r=>{if(r instanceof Ve)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Be?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,s){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,s):this.processSegment(n,e,r,r.segments,i,!0,s).pipe(m(o=>o instanceof E?[o]:[]))}processChildren(n,e,r,i){let s=[];for(let o of Object.keys(r.children))o==="primary"?s.unshift(o):s.push(o);return I(s).pipe(ne(o=>{let a=r.children[o],u=_i(e,o);return this.processSegmentGroup(n,u,a,o,i)}),Er((o,a)=>(o.push(...a),o)),Lt(null),Dr(),T(o=>{if(o===null)return ge(r);let a=Vn(o);return Co(a),d(a)}))}processSegment(n,e,r,i,s,o,a){return I(e).pipe(ne(u=>{var c;return this.processSegmentAgainstRoute((c=u._injector)!=null?c:n,e,u,r,i,s,o,a).pipe(re(l=>{if(l instanceof Be)return d(null);throw l}))}),Z(u=>!!u),re(u=>{if(Fn(u))return Ro(r,i,s)?d(new ur):ge(r);throw u}))}processSegmentAgainstRoute(n,e,r,i,s,o,a,u){return L(r)!==o&&(o===f||!Dt(i,s,r))?ge(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,s,o,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,s,o,u):ge(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,s,o,a){var _,he;let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:g,remainingSegments:R}=Bn(e,i,s);if(!u)return ge(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>yo&&(this.allowRedirects=!1));let S=new se(s,c,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,vn(i),L(i),(he=(_=i.component)!=null?_:i._loadedComponent)!=null?he:null,i,mn(i)),D=At(S,a,this.paramsInheritanceStrategy);S.params=Object.freeze(D.params),S.data=Object.freeze(D.data);let A=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,g,S,n);return this.applyRedirects.lineralizeSegments(i,A).pipe(T(Oe=>this.processSegment(n,r,e,Oe.concat(R),o,!1,a)))}matchSegmentAgainstRoute(n,e,r,i,s,o){let a=ho(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),a.pipe(j(u=>{var c;return u.matched?(n=(c=r._injector)!=null?c:n,this.getChildConfig(n,r,i).pipe(j(({routes:l})=>{var Cr,wr,br;let g=(Cr=r._loadedInjector)!=null?Cr:n,{parameters:R,consumedSegments:S,remainingSegments:D}=u,A=new se(S,R,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,vn(r),L(r),(br=(wr=r.component)!=null?wr:r._loadedComponent)!=null?br:null,r,mn(r)),_=At(A,o,this.paramsInheritanceStrategy);A.params=Object.freeze(_.params),A.data=Object.freeze(_.data);let{segmentGroup:he,slicedSegments:Oe}=gn(e,S,D,l);if(Oe.length===0&&he.hasChildren())return this.processChildren(g,l,he,A).pipe(m(Ye=>new E(A,Ye)));if(l.length===0&&Oe.length===0)return d(new E(A,[]));let ui=L(r)===s;return this.processSegment(g,l,he,Oe,ui?f:s,!0,A).pipe(m(Ye=>new E(A,Ye instanceof E?[Ye]:[])))}))):ge(e)}))}getChildConfig(n,e,r){return e.children?d({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?d({routes:e._loadedRoutes,injector:e._loadedInjector}):ao(n,e,r,this.urlSerializer).pipe(T(i=>i?this.configLoader.loadChildren(n,e).pipe(w(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):lo(e))):d({routes:[],injector:n})}};function Co(t){t.sort((n,e)=>n.value.outlet===f?-1:e.value.outlet===f?1:n.value.outlet.localeCompare(e.value.outlet))}function wo(t){let n=t.value.routeConfig;return n&&n.path===""}function Vn(t){let n=[],e=new Set;for(let r of t){if(!wo(r)){n.push(r);continue}let i=n.find(s=>r.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=Vn(r.children);n.push(new E(r.value,i))}return n.filter(r=>!e.has(r))}function vn(t){return t.data||{}}function mn(t){return t.resolve||{}}function bo(t,n,e,r,i,s){return T(o=>So(t,n,e,r,o.extractedUrl,i,s).pipe(m(({state:a,tree:u})=>P(h({},o),{targetSnapshot:a,urlAfterRedirects:u}))))}function Io(t,n){return T(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return d(e);let s=new Set(i.map(u=>u.route)),o=new Set;for(let u of s)if(!o.has(u))for(let c of Hn(u))o.add(c);let a=0;return I(o).pipe(ne(u=>s.has(u)?Ao(u,r,t,n):(u.data=At(u,u.parent,t).resolve,d(void 0))),w(()=>a++),$t(1),T(u=>a===o.size?d(e):W))})}function Hn(t){let n=t.children.map(e=>Hn(e)).flat();return[t,...n]}function Ao(t,n,e,r){let i=t.routeConfig,s=t._resolve;return(i==null?void 0:i.title)!==void 0&&!jn(i)&&(s[He]=i.title),To(s,t,n,r).pipe(m(o=>(t._resolvedData=o,t.data=At(t,t.parent,e).resolve,null)))}function To(t,n,e,r){let i=Yt(t);if(i.length===0)return d({});let s={};return I(i).pipe(T(o=>Oo(t[o],n,e,r).pipe(Z(),w(a=>{if(a instanceof be)throw Tt(new X,a);s[o]=a}))),$t(1),m(()=>s),re(o=>Fn(o)?W:Me(o)))}function Oo(t,n,e,r){var a;let i=(a=We(n))!=null?a:r,s=Ae(t,i),o=s.resolve?s.resolve(n,e):$(i,()=>s(n,e));return te(o)}function Kt(t){return j(n=>{let e=t(n);return e?I(e).pipe(m(()=>n)):d(n)})}var pr=(()=>{class t{buildTitle(e){var s;let r,i=e.root;for(;i!==void 0;)r=(s=this.getResolvedTitleForRoute(i))!=null?s:r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(e){return e.data[He]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(Wn),providedIn:"root"})}return t})(),Wn=(()=>{class t extends pr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(G(ln))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),le=new O("",{providedIn:"root",factory:()=>({})}),fr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Hr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Xr(0,"router-outlet")},dependencies:[hr],encapsulation:2})}return t})();function gr(t){let n=t.children&&t.children.map(gr),e=n?P(h({},t),{children:n}):h({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=fr),e}var Te=new O(""),Et=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(rt);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return d(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=te(e.loadComponent()).pipe(m(Qn),w(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),Je(()=>{this.componentLoaders.delete(e)})),i=new jt(r,()=>new H).pipe(_t());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return d({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=Gn(r,this.compiler,e,this.onLoadEndListener).pipe(Je(()=>{this.childrenLoaders.delete(r)})),o=new jt(s,()=>new H).pipe(_t());return this.childrenLoaders.set(r,o),o}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Gn(t,n,e,r){return te(t.loadChildren()).pipe(m(Qn),T(i=>i instanceof Vr||Array.isArray(i)?d(i):I(n.compileModuleAsync(i))),m(i=>{r&&r(t);let s,o,a=!1;return Array.isArray(i)?(o=i,a=!0):(s=i.create(e).injector,o=s.get(Te,[],{optional:!0,self:!0}).flat()),{routes:o.map(gr),injector:s}}))}function Mo(t){return t&&typeof t=="object"&&"default"in t}function Qn(t){return Mo(t)?t.default:t}var Ut=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(Do),providedIn:"root"})}return t})(),Do=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vr=new O(""),mr=new O("");function Kn(t,n,e){let r=t.get(mr),i=t.get(on);return t.get(et).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let s,o=new Promise(c=>{s=c}),a=i.startViewTransition(()=>(s(),Eo(t))),{onViewTransitionCreated:u}=r;return u&&$(t,()=>u({transition:a,from:n,to:e})),o})}function Eo(t){return new Promise(n=>{zr({read:()=>setTimeout(n)},{injector:t})})}var Rr=new O(""),Nt=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new H;transitionAbortSubject=new H;configLoader=p(Et);environmentInjector=p(pe);destroyRef=p(jr);urlSerializer=p(ue);rootContexts=p(ce);location=p(fe);inputBindingEnabled=p(Ge,{optional:!0})!==null;titleStrategy=p(pr);options=p(le,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(Ut);createViewTransition=p(vr,{optional:!0});navigationErrorHandler=p(Rr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>d(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new mt(i)),r=i=>this.events.next(new Rt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){var e;(e=this.transitions)==null||e.complete()}handleNavigationRequest(e){var i;let r=++this.navigationId;(i=this.transitions)==null||i.next(P(h({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))}setupNavigations(e){return this.transitions=new x(null),this.transitions.pipe(K(r=>r!==null),j(r=>{let i=!1,s=!1;return d(r).pipe(j(o=>{var c;if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",M.SupersededByNewNavigation),W;this.currentTransition=r,this.currentNavigation={id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?P(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=(c=o.extras.onSameUrlNavigation)!=null?c:e.onSameUrlNavigation;if(!a&&u!=="reload"){let l="";return this.events.next(new B(o.id,this.urlSerializer.serialize(o.rawUrl),l,Se.IgnoredSameUrlNavigation)),o.resolve(!1),W}if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return d(o).pipe(j(l=>(this.events.next(new ee(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?W:Promise.resolve(l))),bo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),w(l=>{r.targetSnapshot=l.targetSnapshot,r.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation=P(h({},this.currentNavigation),{finalUrl:l.urlAfterRedirects});let g=new Le(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(g)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:l,extractedUrl:g,source:R,restoredState:S,extras:D}=o,A=new ee(l,this.urlSerializer.serialize(g),R,S);this.events.next(A);let _=xn(this.rootComponentType).snapshot;return this.currentTransition=r=P(h({},o),{targetSnapshot:_,urlAfterRedirects:g,extras:P(h({},D),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=g,d(r)}else{let l="";return this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),l,Se.IgnoredByUrlHandlingStrategy)),o.resolve(!1),W}}),w(o=>{let a=new pt(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(a)}),m(o=>(this.currentTransition=r=P(h({},o),{guards:qi(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),r)),Ji(this.environmentInjector,o=>this.events.next(o)),w(o=>{if(r.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw Tt(this.urlSerializer,o.guardsResult);let a=new ft(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(a)}),K(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",M.GuardRejected),!1)),Kt(o=>{if(o.guards.canActivateChecks.length!==0)return d(o).pipe(w(a=>{let u=new gt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),j(a=>{let u=!1;return d(a).pipe(Io(this.paramsInheritanceStrategy,this.environmentInjector),w({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(a,"",M.NoDataFromResolver)}}))}),w(a=>{let u=new vt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}))}),Kt(o=>{let a=u=>{var l;let c=[];(l=u.routeConfig)!=null&&l.loadComponent&&!u.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(u.routeConfig).pipe(w(g=>{u.component=g}),m(()=>{})));for(let g of u.children)c.push(...a(g));return c};return Xe(a(o.targetSnapshot.root)).pipe(Lt(null),de(1))}),Kt(()=>this.afterPreactivation()),j(()=>{var c;let{currentSnapshot:o,targetSnapshot:a}=r,u=(c=this.createViewTransition)==null?void 0:c.call(this,this.environmentInjector,o.root,a.root);return u?I(u).pipe(m(()=>r)):d(r)}),m(o=>{let a=ki(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=r=P(h({},o),{targetRouterState:a}),this.currentNavigation.targetRouterState=a,r}),w(()=>{this.events.next(new $e)}),Fi(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),de(1),w({next:o=>{var a;i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new N(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),(a=this.titleStrategy)==null||a.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),Nr(this.transitionAbortSubject.pipe(w(o=>{throw o}))),Je(()=>{var o;!i&&!s&&this.cancelNavigationTransition(r,"",M.SupersededByNewNavigation),((o=this.currentTransition)==null?void 0:o.id)===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),re(o=>{var a;if(this.destroyed)return r.resolve(!1),W;if(s=!0,zn(o))this.events.next(new F(r.id,this.urlSerializer.serialize(r.extractedUrl),o.message,o.cancellationCode)),zi(o)?this.events.next(new we(o.url,o.navigationBehaviorOptions)):r.resolve(!1);else{let u=new ye(r.id,this.urlSerializer.serialize(r.extractedUrl),o,(a=r.targetSnapshot)!=null?a:void 0);try{let c=$(this.environmentInjector,()=>{var l;return(l=this.navigationErrorHandler)==null?void 0:l.call(this,u)});if(c instanceof be){let{message:l,cancellationCode:g}=Tt(this.urlSerializer,c);this.events.next(new F(r.id,this.urlSerializer.serialize(r.extractedUrl),l,g)),this.events.next(new we(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(u),o}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return W}))}))}cancelNavigationTransition(e,r,i){let s=new F(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(s),e.resolve(!1)}isUpdatingInternalState(){var e,r;return((e=this.currentTransition)==null?void 0:e.extractedUrl.toString())!==((r=this.currentTransition)==null?void 0:r.currentUrlTree.toString())}isUpdatedBrowserUrl(){var i,s,o,a;let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=(o=(i=this.currentNavigation)==null?void 0:i.targetBrowserUrl)!=null?o:(s=this.currentNavigation)==null?void 0:s.extractedUrl;return e.toString()!==(r==null?void 0:r.toString())&&!((a=this.currentNavigation)!=null&&a.extras.skipLocationChange)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Uo(t){return t!==lt}var Zn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(No),providedIn:"root"})}return t})(),Mt=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},No=(()=>{class t extends Mt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ft(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Yn=(()=>{class t{urlSerializer=p(ue);options=p(le,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(fe);urlHandlingStrategy=p(Ut);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new q;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let s=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,o=i!=null?i:s;return o instanceof q?this.urlSerializer.serialize(o):o}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=xn(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e!=null?e:this.rawUrlTree)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(Po),providedIn:"root"})}return t})(),Po=(()=>{class t extends Yn{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){var e,r;return this.canceledNavigationResolution!=="computed"?this.currentPageId:(r=(e=this.restoredState())==null?void 0:e.\u0275routerPageId)!=null?r:this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof ee?this.updateStateMemento():e instanceof B?this.commitTransition(r):e instanceof Le?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof $e?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof F&&(e.code===M.GuardRejected||e.code===M.NoDataFromResolver)?this.restoreHistory(r):e instanceof ye?this.restoreHistory(r,!0):e instanceof N&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:s,state:o}=r;if(this.location.isCurrentPathEqualTo(e)||s){let a=this.browserPageId,u=h(h({},o),this.generateNgRouterState(i,a));this.location.replaceState(e,"",u)}else{let a=h(h({},o),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.getCurrentUrlTree()===e.finalUrl&&s===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ft(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Pt(t,n){t.events.pipe(K(e=>e instanceof N||e instanceof F||e instanceof ye||e instanceof B),m(e=>e instanceof N||e instanceof B?0:(e instanceof F?e.code===M.Redirect||e.code===M.SupersededByNewNavigation:!1)?2:1),K(e=>e!==2),de(1)).subscribe(()=>{n()})}var xo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_o={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},V=(()=>{var n,e;class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(Gr);stateManager=p(Yn);options=p(le,{optional:!0})||{};pendingTasks=p(kr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(Nt);urlSerializer=p(ue);location=p(fe);urlHandlingStrategy=p(Ut);_events=new H;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(Zn);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(e=(n=p(Te,{optional:!0}))==null?void 0:n.flat())!=null?e:[];componentInputBindingEnabled=!!p(Ge,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ir;subscribeToNavigationEvents(){let i=this.navigationTransitions.events.subscribe(s=>{try{let o=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(o!==null&&a!==null){if(this.stateManager.handleRouterEvent(s,a),s instanceof F&&s.code!==M.Redirect&&s.code!==M.SupersededByNewNavigation)this.navigated=!0;else if(s instanceof N)this.navigated=!0;else if(s instanceof we){let u=s.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(s.url,o.currentRawUrl),l=h({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Uo(o.source)},u);this.scheduleNavigation(c,lt,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}ko(s)&&this._events.next(s)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(i)}resetRootComponentType(i){this.routerState.root.component=i,this.navigationTransitions.rootComponentType=i}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),lt,this.stateManager.restoredState())}setUpLocationChangeListener(){var i;(i=this.nonRouterCurrentEntryChangeSubscription)!=null||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((s,o,a)=>{this.navigateToSyncWithBrowser(s,a,o)}))}navigateToSyncWithBrowser(i,s,o){let a={replaceUrl:!0},u=o!=null&&o.navigationId?o:null;if(o){let l=h({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(a.state=l)}let c=this.parseUrl(i);this.scheduleNavigation(c,s,u,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(i){this.config=i.map(gr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(i,s={}){let{relativeTo:o,queryParams:a,fragment:u,queryParamsHandling:c,preserveFragment:l}=s,g=l?this.currentUrlTree.fragment:u,R=null;switch(c!=null?c:this.options.defaultQueryParamsHandling){case"merge":R=h(h({},this.currentUrlTree.queryParams),a);break;case"preserve":R=this.currentUrlTree.queryParams;break;default:R=a||null}R!==null&&(R=this.removeEmptyProps(R));let S;try{let D=o?o.snapshot:this.routerState.snapshot.root;S=En(D)}catch{(typeof i[0]!="string"||i[0][0]!=="/")&&(i=[]),S=this.currentUrlTree.root}return Un(S,i,R,g!=null?g:null)}navigateByUrl(i,s={skipLocationChange:!1}){let o=J(i)?i:this.parseUrl(i),a=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(a,lt,null,s)}navigate(i,s={skipLocationChange:!1}){return jo(i),this.navigateByUrl(this.createUrlTree(i,s),s)}serializeUrl(i){return this.urlSerializer.serialize(i)}parseUrl(i){try{return this.urlSerializer.parse(i)}catch{return this.urlSerializer.parse("/")}}isActive(i,s){let o;if(s===!0?o=h({},xo):s===!1?o=h({},_o):o=s,J(i))return hn(this.currentUrlTree,i,o);let a=this.parseUrl(i);return hn(this.currentUrlTree,a,o)}removeEmptyProps(i){return Object.entries(i).reduce((s,[o,a])=>(a!=null&&(s[o]=a),s),{})}scheduleNavigation(i,s,o,a,u){if(this.disposed)return Promise.resolve(!1);let c,l,g;u?(c=u.resolve,l=u.reject,g=u.promise):g=new Promise((S,D)=>{c=S,l=D});let R=this.pendingTasks.add();return Pt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(R))}),this.navigationTransitions.handleNavigationRequest({source:s,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:a,resolve:c,reject:l,promise:g,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),g.catch(S=>Promise.reject(S))}static \u0275fac=function(s){return new(s||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new b(4008,!1)}function ko(t){return!(t instanceof $e)&&!(t instanceof we)}var xt=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new H;constructor(e,r,i,s,o,a){var c;this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=s,this.el=o,this.locationStrategy=a;let u=(c=o.nativeElement.tagName)==null?void 0:c.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof N&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(J(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,s,o){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||i||s||o||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u),!this.isAnchorElement}ngOnDestroy(){var e;(e=this.subscription)==null||e.unsubscribe()}updateHref(){var i;let e=this.urlTree;this.href=e!==null&&this.locationStrategy?(i=this.locationStrategy)==null?void 0:i.prepareExternalUrl(this.router.serializeUrl(e)):null;let r=this.href===null?null:Fr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(e,r){let i=this.renderer,s=this.el.nativeElement;r!==null?i.setAttribute(s,e,r):i.removeAttribute(s,e)}get urlTree(){return this.routerLinkInput===null?null:J(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(k(V),k(Q),_r("tabindex"),k(Vt),k(Bt),k(Ne))};static \u0275dir=Ue({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&Jr("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),r&2&&Yr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",it],skipLocationChange:[2,"skipLocationChange","skipLocationChange",it],replaceUrl:[2,"replaceUrl","replaceUrl",it],routerLink:"routerLink"},features:[Ee]})}return t})(),Lo=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new ie;constructor(e,r,i,s,o){this.router=e,this.element=r,this.renderer=i,this.cdr=s,this.link=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof N&&this.update()})}ngAfterContentInit(){d(this.links.changes,d(null)).pipe(De()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var r;(r=this.linkInputChangesSubscription)==null||r.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=I(e).pipe(De()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),(e=this.linkInputChangesSubscription)==null||e.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=$o(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let s=i.urlTree;return s?e.isActive(s,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(k(V),k(Bt),k(Vt),k(nt),k(xt,8))};static \u0275dir=Ue({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,s){if(r&1&&en(s,xt,5),r&2){let o;tn(o=rn())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ee]})}return t})();function $o(t){return!!t.paths}var Ke=class{};var Xn=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,s,o){this.router=e,this.injector=i,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(K(e=>e instanceof N),ne(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){var s,o,a;let i=[];for(let u of r){u.providers&&!u._injector&&(u._injector=tt(u.providers,e,`Route: ${u.path}`));let c=(s=u._injector)!=null?s:e,l=(o=u._loadedInjector)!=null?o:c;(u.loadChildren&&!u._loadedRoutes&&u.canLoad===void 0||u.loadComponent&&!u._loadedComponent)&&i.push(this.preloadConfig(c,u)),(u.children||u._loadedRoutes)&&i.push(this.processRoutes(l,(a=u.children)!=null?a:u._loadedRoutes))}return I(i).pipe(De())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=d(null);let s=i.pipe(T(o=>{var a;return o===null?d(void 0):(r._loadedRoutes=o.routes,r._loadedInjector=o.injector,this.processRoutes((a=o.injector)!=null?a:e,o.routes))}));if(r.loadComponent&&!r._loadedComponent){let o=this.loader.loadComponent(r);return I([s,o]).pipe(De())}else return s})}static \u0275fac=function(r){return new(r||t)(G(V),G(rt),G(pe),G(Ke),G(Et))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Jn=new O(""),zo=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,r,i,s,o={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=s,this.options=o,o.scrollPositionRestoration||(o.scrollPositionRestoration="disabled"),o.anchorScrolling||(o.anchorScrolling="disabled")}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ee?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof N?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof B&&e.code===Se.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ce&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ce(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){var e,r;(e=this.routerEventsSubscription)==null||e.unsubscribe(),(r=this.scrollEventsSubscription)==null||r.unsubscribe()}static \u0275fac=function(r){qr()};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function Fo(t){return t.routerState.root}function Ze(t,n){return{\u0275kind:t,\u0275providers:n}}function qo(){let t=p(qt);return n=>{var s,o;let e=t.get(Zr);if(n!==e.components[0])return;let r=t.get(V),i=t.get(ei);t.get(yr)===1&&r.initialNavigation(),(s=t.get(ni,null,zt.Optional))==null||s.setUpPreloading(),(o=t.get(Jn,null,zt.Optional))==null||o.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ei=new O("",{factory:()=>new H}),yr=new O("",{providedIn:"root",factory:()=>1});function ti(){let t=[{provide:yr,useValue:0},Ht(()=>{let n=p(qt);return n.get(sn,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(V),s=n.get(ei);Pt(i,()=>{r(!0)}),n.get(Nt).afterPreactivation=()=>(r(!0),s.closed?d(void 0):s),i.initialNavigation()}))})];return Ze(2,t)}function ri(){let t=[Ht(()=>{p(V).setUpLocationChangeListener()}),{provide:yr,useValue:2}];return Ze(3,t)}var ni=new O("");function ii(t){return Ze(0,[{provide:ni,useExisting:Xn},{provide:Ke,useExisting:t}])}function oi(){return Ze(8,[dr,{provide:Ge,useExisting:dr}])}function si(t){$r("NgRouterViewTransitions");let n=[{provide:vr,useValue:Kn},{provide:mr,useValue:h({skipNextTransition:!!(t!=null&&t.skipInitialTransition)},t)}];return Ze(9,n)}var ai=[fe,{provide:ue,useClass:X},V,ce,{provide:Q,useFactory:Fo,deps:[V]},Et,[]],Bo=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[ai,[],{provide:Te,multi:!0,useValue:e},[],r!=null&&r.errorHandler?{provide:Rr,useValue:r.errorHandler}:[],{provide:le,useValue:r||{}},r!=null&&r.useHash?Ho():Wo(),Vo(),r!=null&&r.preloadingStrategy?ii(r.preloadingStrategy).\u0275providers:[],r!=null&&r.initialNavigation?Go(r):[],r!=null&&r.bindToComponentInputs?oi().\u0275providers:[],r!=null&&r.enableViewTransitions?si().\u0275providers:[],Qo()]}}static forChild(e){return{ngModule:t,providers:[{provide:Te,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Wr({type:t});static \u0275inj=Pr({})}return t})();function Vo(){return{provide:Jn,useFactory:()=>{let t=p(cn),n=p(et),e=p(le),r=p(Nt),i=p(ue);return e.scrollOffset&&t.setOffset(e.scrollOffset),new zo(i,r,t,n,e)}}}function Ho(){return{provide:Ne,useClass:un}}function Wo(){return{provide:Ne,useClass:an}}function Go(t){return[t.initialNavigation==="disabled"?ri().\u0275providers:[],t.initialNavigation==="enabledBlocking"?ti().\u0275providers:[]]}var Sr=new O("");function Qo(){return[{provide:Sr,useFactory:qo},{provide:Kr,multi:!0,useExisting:Sr}]}export{N as a,Q as b,hr as c,V as d,xt as e,Lo as f,Bo as g};
|
|
1
|
+
import{l as ln}from"./chunk-G75CPMPQ.js";import{$ as j,A as De,Aa as jr,Ab as Gr,B as Mr,Ba as kr,C as kt,Ca as ie,Da as et,Ec as rt,Fb as Qr,Ga as Lr,Gb as Ht,Gc as nt,H as K,Ha as Bt,Hb as Kr,Ib as Zr,Jb as Yr,Jc as it,K as re,L as ne,N as Lt,Nc as nn,O as de,Oc as on,Qa as $r,S as Je,Sa as zr,T as Z,Tc as sn,U as $t,Uc as Ne,V as Dr,W as Er,Wb as Xr,Wc as an,Xc as fe,Yc as un,_ as Ur,a as h,aa as Nr,b as P,ba as w,bc as Jr,da as b,eb as Fr,fc as en,ga as C,ha as Pr,hc as tn,i as Ir,ia as xr,ic as rn,j as Ar,ja as O,ka as zt,l as _t,la as G,lb as Vt,m as jt,ma as p,mb as k,n as H,nb as qr,nd as cn,o as x,ob as Br,p as W,q as I,qa as pe,r as d,ra as $,rb as Vr,s as Me,sb as tt,t as Tr,ta as Ee,tb as Hr,u as Or,ub as Wr,vb as Ue,x as m,xa as Ft,y as Xe,ya as _r,z as T,za as qt}from"./chunk-6JZDPQRU.js";var f="primary",He=Symbol("RouteTitle"),Zt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ae(t){return new Zt(t)}function Rn(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let i={};for(let s=0;s<r.length;s++){let o=r[s],a=t[s];if(o[0]===":")i[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function li(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!z(t[e],n[e]))return!1;return!0}function z(t,n){let e=t?Yt(t):void 0,r=n?Yt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let s=0;s<e.length;s++)if(i=e[s],!Sn(t[i],n[i]))return!1;return!0}function Yt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Sn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,s)=>r[s]===i)}else return t===n}function yn(t){return t.length>0?t[t.length-1]:null}function te(t){return Tr(t)?t:Qr(t)?I(Promise.resolve(t)):d(t)}var hi={exact:wn,subset:bn},Cn={exact:di,subset:pi,ignored:()=>!0};function hn(t,n,e){return hi[e.paths](t.root,n.root,e.matrixParams)&&Cn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function di(t,n){return z(t,n)}function wn(t,n,e){if(!oe(t.segments,n.segments)||!at(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!wn(t.children[r],n.children[r],e))return!1;return!0}function pi(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Sn(t[e],n[e]))}function bn(t,n,e){return In(t,n,n.segments,e)}function In(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!oe(i,e)||n.hasChildren()||!at(i,e,r))}else if(t.segments.length===e.length){if(!oe(t.segments,e)||!at(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!bn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!oe(t.segments,i)||!at(t.segments,i,r)||!t.children[f]?!1:In(t.children[f],n,s,r)}}function at(t,n,e){return n.every((r,i)=>Cn[e](t[i].parameters,r.parameters))}var q=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){var n;return(n=this._queryParamMap)!=null||(this._queryParamMap=ae(this.queryParams)),this._queryParamMap}toString(){return vi.serialize(this)}},v=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ut(this)}},Y=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){var n;return(n=this._parameterMap)!=null||(this._parameterMap=ae(this.parameters)),this._parameterMap}toString(){return Tn(this)}};function fi(t,n){return oe(t,n)&&t.every((e,r)=>z(e.parameters,n[r].parameters))}function oe(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function gi(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)))}),e}var ue=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>new X,providedIn:"root"})}return t})(),X=class{parse(n){let e=new Jt(n);return new q(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Pe(n.root,!0)}`,r=Si(n.queryParams),i=typeof n.fragment=="string"?`#${mi(n.fragment)}`:"";return`${e}${r}${i}`}},vi=new X;function ut(t){return t.segments.map(n=>Tn(n)).join("/")}function Pe(t,n){if(!t.hasChildren())return ut(t);if(n){let e=t.children[f]?Pe(t.children[f],!1):"",r=[];return Object.entries(t.children).forEach(([i,s])=>{i!==f&&r.push(`${i}:${Pe(s,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=gi(t,(r,i)=>i===f?[Pe(t.children[f],!1)]:[`${i}:${Pe(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${ut(t)}/${e[0]}`:`${ut(t)}/(${e.join("//")})`}}function An(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ot(t){return An(t).replace(/%3B/gi,";")}function mi(t){return encodeURI(t)}function Xt(t){return An(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ct(t){return decodeURIComponent(t)}function dn(t){return ct(t.replace(/\+/g,"%20"))}function Tn(t){return`${Xt(t.path)}${Ri(t.parameters)}`}function Ri(t){return Object.entries(t).map(([n,e])=>`;${Xt(n)}=${Xt(e)}`).join("")}function Si(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${ot(e)}=${ot(i)}`).join("&"):`${ot(e)}=${ot(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var yi=/^[^\/()?;#]+/;function Wt(t){let n=t.match(yi);return n?n[0]:""}var Ci=/^[^\/()?;=#]+/;function wi(t){let n=t.match(Ci);return n?n[0]:""}var bi=/^[^=?&#]+/;function Ii(t){let n=t.match(bi);return n?n[0]:""}var Ai=/^[^&#]+/;function Ti(t){let n=t.match(Ai);return n?n[0]:""}var Jt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[f]=new v(n,e)),r}parseSegment(){let n=Wt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new Y(ct(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=wi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Wt(this.remaining);i&&(r=i,this.capture(r))}n[ct(e)]=ct(r)}parseQueryParam(n){let e=Ii(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let o=Ti(this.remaining);o&&(r=o,this.capture(r))}let i=dn(e),s=dn(r);if(n.hasOwnProperty(i)){let o=n[i];Array.isArray(o)||(o=[o],n[i]=o),o.push(s)}else n[i]=s}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Wt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let s;r.indexOf(":")>-1?(s=r.slice(0,r.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=f);let o=this.parseChildren();e[s]=Object.keys(o).length===1?o[f]:new v([],o),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new b(4011,!1)}};function On(t){return t.segments.length>0?new v([],{[f]:t}):t}function Mn(t){let n={};for(let[r,i]of Object.entries(t.children)){let s=Mn(i);if(r===f&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))n[o]=a;else(s.segments.length>0||s.hasChildren())&&(n[r]=s)}let e=new v(t.segments,n);return Oi(e)}function Oi(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new v(t.segments.concat(n.segments),n.children)}return t}function J(t){return t instanceof q}function Dn(t,n,e=null,r=null){let i=En(t);return Un(i,n,e,r)}function En(t){let n;function e(s){let o={};for(let u of s.children){let c=e(u);o[u.outlet]=c}let a=new v(s.url,o);return s===t&&(n=a),a}let r=e(t.root),i=On(r);return n!=null?n:i}function Un(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return Gt(i,i,i,e,r);let s=Mi(n);if(s.toRoot())return Gt(i,i,new v([],{}),e,r);let o=Di(s,i,t),a=o.processChildren?_e(o.segmentGroup,o.index,s.commands):Pn(o.segmentGroup,o.index,s.commands);return Gt(i,o.segmentGroup,a,e,r)}function ht(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ke(t){return typeof t=="object"&&t!=null&&t.outlets}function Gt(t,n,e,r,i){let s={};r&&Object.entries(r).forEach(([u,c])=>{s[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let o;t===n?o=e:o=Nn(t,n,e);let a=On(Mn(o));return new q(a,s,i)}function Nn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,s])=>{s===n?r[i]=e:r[i]=Nn(s,n,e)}),new v(t.segments,r)}var dt=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&ht(r[0]))throw new b(4003,!1);let i=r.find(ke);if(i&&i!==yn(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Mi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new dt(!0,0,t);let n=0,e=!1,r=t.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,s]},[]);return new dt(e,n,r)}var me=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Di(t,n,e){if(t.isAbsolute)return new me(n,!0,0);if(!e)return new me(n,!1,NaN);if(e.parent===null)return new me(e,!0,0);let r=ht(t.commands[0])?0:1,i=e.segments.length-1+r;return Ei(e,i,t.numberOfDoubleDots)}function Ei(t,n,e){let r=t,i=n,s=e;for(;s>i;){if(s-=i,r=r.parent,!r)throw new b(4005,!1);i=r.segments.length}return new me(r,!1,i-s)}function Ui(t){return ke(t[0])?t[0].outlets:{[f]:t}}function Pn(t,n,e){if(t!=null||(t=new v([],{})),t.segments.length===0&&t.hasChildren())return _e(t,n,e);let r=Ni(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let s=new v(t.segments.slice(0,r.pathIndex),{});return s.children[f]=new v(t.segments.slice(r.pathIndex),t.children),_e(s,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?er(t,n,e):r.match?_e(t,0,i):er(t,n,e)}function _e(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=Ui(e),i={};if(Object.keys(r).some(s=>s!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let s=_e(t.children[f],n,e);return new v(t.segments,s.children)}return Object.entries(r).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=Pn(t.children[s],n,o))}),Object.entries(t.children).forEach(([s,o])=>{r[s]===void 0&&(i[s]=o)}),new v(t.segments,i)}}function Ni(t,n,e){let r=0,i=n,s={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return s;let o=t.segments[i],a=e[r];if(ke(a))break;let u=`${a}`,c=r<e.length-1?e[r+1]:null;if(i>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!fn(u,c,o))return s;r+=2}else{if(!fn(u,{},o))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function er(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let s=e[i];if(ke(s)){let u=Pi(s.outlets);return new v(r,u)}if(i===0&&ht(e[0])){let u=t.segments[n];r.push(new Y(u.path,pn(e[0]))),i++;continue}let o=ke(s)?s.outlets[f]:`${s}`,a=i<e.length-1?e[i+1]:null;o&&a&&ht(a)?(r.push(new Y(o,pn(a))),i+=2):(r.push(new Y(o,{})),i++)}return new v(r,{})}function Pi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=er(new v([],{}),0,r))}),n}function pn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function fn(t,n,e){return t==e.path&&z(n,e.parameters)}var lt="imperative",y=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(y||{}),U=class{id;url;constructor(n,e){this.id=n,this.url=e}},ee=class extends U{type=y.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},N=class extends U{urlAfterRedirects;type=y.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},M=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(M||{}),Se=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Se||{}),F=class extends U{reason;code;type=y.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},B=class extends U{reason;code;type=y.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},ye=class extends U{error;target;type=y.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Le=class extends U{urlAfterRedirects;state;type=y.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pt=class extends U{urlAfterRedirects;state;type=y.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ft=class extends U{urlAfterRedirects;state;shouldActivate;type=y.GuardsCheckEnd;constructor(n,e,r,i,s){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},gt=class extends U{urlAfterRedirects;state;type=y.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vt=class extends U{urlAfterRedirects;state;type=y.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mt=class{route;type=y.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Rt=class{route;type=y.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},St=class{snapshot;type=y.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=y.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ct=class{snapshot;type=y.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wt=class{snapshot;type=y.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ce=class{routerEvent;position;anchor;type=y.Scroll;constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},$e=class{},we=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function xi(t,n){var e;return t.providers&&!t._injector&&(t._injector=tt(t.providers,n,`Route: ${t.path}`)),(e=t._injector)!=null?e:n}function L(t){return t.outlet||f}function _i(t,n){let e=t.filter(r=>L(r)===n);return e.push(...t.filter(r=>L(r)!==n)),e}function We(t){var n;if(!t)return null;if((n=t.routeConfig)!=null&&n._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r!=null&&r._loadedInjector)return r._loadedInjector;if(r!=null&&r._injector)return r._injector}return null}var bt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){var n,e;return(e=We((n=this.route)==null?void 0:n.snapshot))!=null?e:this.rootInjector}constructor(n){this.rootInjector=n,this.children=new ce(this.rootInjector)}},ce=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new bt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(G(pe))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),It=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=tr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=tr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=rr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return rr(n,this._root).map(e=>e.value)}};function tr(t,n){if(t===n.value)return n;for(let e of n.children){let r=tr(t,e);if(r)return r}return null}function rr(t,n){if(t===n.value)return[n];for(let e of n.children){let r=rr(t,e);if(r.length)return r.unshift(n),r}return[]}var E=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ve(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var ze=class extends It{snapshot;constructor(n,e){super(n),this.snapshot=e,lr(this,n)}toString(){return this.snapshot.toString()}};function xn(t){let n=ji(t),e=new x([new Y("",{})]),r=new x({}),i=new x({}),s=new x({}),o=new x(""),a=new Q(e,r,s,o,i,f,t,n.root);return a.snapshot=n.root,new ze(new E(a,[]),n)}function ji(t){let n={},e={},r={},i="",s=new se([],n,r,i,e,f,t,null,{});return new Fe("",new E(s,[]))}var Q=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,s,o,a,u){var c,l;this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=u,this.title=(l=(c=this.dataSubject)==null?void 0:c.pipe(m(g=>g[He])))!=null?l:d(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=s}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(){var n;return(n=this._paramMap)!=null||(this._paramMap=this.params.pipe(m(e=>ae(e)))),this._paramMap}get queryParamMap(){var n;return(n=this._queryParamMap)!=null||(this._queryParamMap=this.queryParams.pipe(m(e=>ae(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function At(t,n,e="emptyOnly"){var s,o;let r,{routeConfig:i}=t;return n!==null&&(e==="always"||(i==null?void 0:i.path)===""||!n.component&&!((s=n.routeConfig)!=null&&s.loadComponent))?r={params:h(h({},n.params),t.params),data:h(h({},n.data),t.data),resolve:h(h(h(h({},t.data),n.data),i==null?void 0:i.data),t._resolvedData)}:r={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),(o=t._resolvedData)!=null?o:{})},i&&jn(i)&&(r.resolve[He]=i.title),r}var se=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){var n;return(n=this.data)==null?void 0:n[He]}constructor(n,e,r,i,s,o,a,u,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=s,this.outlet=o,this.component=a,this.routeConfig=u,this._resolve=c}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(){var n;return(n=this._paramMap)!=null||(this._paramMap=ae(this.params)),this._paramMap}get queryParamMap(){var n;return(n=this._queryParamMap)!=null||(this._queryParamMap=ae(this.queryParams)),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Fe=class extends It{url;constructor(n,e){super(e),this.url=n,lr(this,e)}toString(){return _n(this._root)}};function lr(t,n){n.value._routerState=t,n.children.forEach(e=>lr(t,e))}function _n(t){let n=t.children.length>0?` { ${t.children.map(_n).join(", ")} } `:"";return`${t.value}${n}`}function Qt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,z(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),z(n.params,e.params)||t.paramsSubject.next(e.params),li(n.url,e.url)||t.urlSubject.next(e.url),z(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function nr(t,n){let e=z(t.params,n.params)&&fi(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||nr(t.parent,n.parent))}function jn(t){return typeof t.title=="string"||t.title===null}var kn=new O(""),hr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new ie;deactivateEvents=new ie;attachEvents=new ie;detachEvents=new ie;routerOutletData=Lr(void 0);parentContexts=p(ce);location=p(Br);changeDetector=p(nt);inputBinder=p(Ge,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){var e;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),(e=this.inputBinder)==null||e.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){var r;return((r=this.parentContexts.getContext(e))==null?void 0:r.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e!=null&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){var i;this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),(i=this.inputBinder)==null||i.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){var c;if(this.isActivated)throw new b(4013,!1);this._activatedRoute=e;let i=this.location,o=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new ir(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(o,{index:i.length,injector:u,environmentInjector:r}),this.changeDetector.markForCheck(),(c=this.inputBinder)==null||c.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ue({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ee]})}return t})(),ir=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===Q?this.route:n===ce?this.childContexts:n===kn?this.outletData:this.parent.get(n,e)}},Ge=new O(""),dr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){var r;(r=this.outletDataSubscriptions.get(e))==null||r.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Xe([r.queryParams,r.params,r.data]).pipe(j(([s,o,a],u)=>(a=h(h(h({},s),o),a),u===0?d(a):Promise.resolve(a)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let o=nn(r.component);if(!o){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of o.inputs)e.activatedComponentRef.setInput(a,s[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function ki(t,n,e){let r=qe(t,n._root,e?e._root:void 0);return new ze(r,n)}function qe(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Li(t,n,e);return new E(r,i)}else{if(t.shouldAttach(n.value)){let s=t.retrieve(n.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=n.value,o.children=n.children.map(a=>qe(t,a)),o}}let r=$i(n.value),i=n.children.map(s=>qe(t,s));return new E(r,i)}}function Li(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return qe(t,r,i);return qe(t,r)})}function $i(t){return new Q(new x(t.url),new x(t.params),new x(t.queryParams),new x(t.fragment),new x(t.data),t.outlet,t.component,t)}var be=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},Ln="ngNavigationCancelingError";function Tt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=J(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=$n(!1,M.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function $n(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[Ln]=!0,e.cancellationCode=n,e}function zi(t){return zn(t)&&J(t.url)}function zn(t){return!!t&&t[Ln]}var Fi=(t,n,e,r)=>m(i=>(new or(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),or=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,s){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=s}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Qt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ve(e);n.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],r),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(n,e,r){let i=n.value,s=e?e.value:null;if(i===s)if(i.component){let o=r.getContext(i.outlet);o&&this.deactivateChildRoutes(n,e,o.children)}else this.deactivateChildRoutes(n,e,r);else s&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,s=ve(n);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(r&&r.outlet){let o=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:o,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,s=ve(n);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=ve(e);n.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],r),this.forwardEvent(new wt(s.value.snapshot))}),n.children.length&&this.forwardEvent(new yt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,s=e?e.value:null;if(Qt(i),i===s)if(i.component){let o=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,o.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let o=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Qt(a.route.value),this.activateChildRoutes(n,null,o.children)}else o.attachRef=null,o.route=i,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(n,null,o.children)}else this.activateChildRoutes(n,null,r)}},Ot=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Re=class{component;route;constructor(n,e){this.component=n,this.route=e}};function qi(t,n,e){let r=t._root,i=n?n._root:null;return xe(r,i,e,[r.value])}function Bi(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ae(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!xr(t)?t:n.get(t):r}function xe(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=ve(n);return t.children.forEach(o=>{Vi(o,s[o.value.outlet],e,r.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>je(a,e.getContext(o),i)),i}function Vi(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let u=Hi(o,s,s.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Ot(r)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?xe(t,n,a?a.children:null,r,i):xe(t,n,e,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Re(a.outlet.component,o))}else o&&je(n,a,i),i.canActivateChecks.push(new Ot(r)),s.component?xe(t,null,a?a.children:null,r,i):xe(t,null,e,r,i);return i}function Hi(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!oe(t.url,n.url);case"pathParamsOrQueryParamsChange":return!oe(t.url,n.url)||!z(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!nr(t,n)||!z(t.queryParams,n.queryParams);case"paramsChange":default:return!nr(t,n)}}function je(t,n,e){let r=ve(t),i=t.value;Object.entries(r).forEach(([s,o])=>{i.component?n?je(o,n.children.getContext(s),e):je(o,null,e):je(o,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Re(n.outlet.component,i)):e.canDeactivateChecks.push(new Re(null,i)):e.canDeactivateChecks.push(new Re(null,i))}function Qe(t){return typeof t=="function"}function Wi(t){return typeof t=="boolean"}function Gi(t){return t&&Qe(t.canLoad)}function Qi(t){return t&&Qe(t.canActivate)}function Ki(t){return t&&Qe(t.canActivateChild)}function Zi(t){return t&&Qe(t.canDeactivate)}function Yi(t){return t&&Qe(t.canMatch)}function Fn(t){return t instanceof Or||(t==null?void 0:t.name)==="EmptyError"}var st=Symbol("INITIAL_VALUE");function Ie(){return j(t=>Xe(t.map(n=>n.pipe(de(1),Ur(st)))).pipe(m(n=>{for(let e of n)if(e!==!0){if(e===st)return st;if(e===!1||Xi(e))return e}return!0}),K(n=>n!==st),de(1)))}function Xi(t){return J(t)||t instanceof be}function Ji(t,n){return T(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return o.length===0&&s.length===0?d(P(h({},e),{guardsResult:!0})):eo(o,r,i,t).pipe(T(a=>a&&Wi(a)?to(r,s,t,n):d(a)),m(a=>P(h({},e),{guardsResult:a})))})}function eo(t,n,e,r){return I(t).pipe(T(i=>so(i.component,i.route,e,n,r)),Z(i=>i!==!0,!0))}function to(t,n,e,r){return I(n).pipe(ne(i=>Mr(no(i.route.parent,r),ro(i.route,r),oo(t,i.path,e),io(t,i.route,e))),Z(i=>i!==!0,!0))}function ro(t,n){return t!==null&&n&&n(new Ct(t)),d(!0)}function no(t,n){return t!==null&&n&&n(new St(t)),d(!0)}function io(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return d(!0);let i=r.map(s=>kt(()=>{var c;let o=(c=We(n))!=null?c:e,a=Ae(s,o),u=Qi(a)?a.canActivate(n,t):$(o,()=>a(n,t));return te(u).pipe(Z())}));return d(i).pipe(Ie())}function oo(t,n,e){let r=n[n.length-1],s=n.slice(0,n.length-1).reverse().map(o=>Bi(o)).filter(o=>o!==null).map(o=>kt(()=>{let a=o.guards.map(u=>{var R;let c=(R=We(o.node))!=null?R:e,l=Ae(u,c),g=Ki(l)?l.canActivateChild(r,t):$(c,()=>l(r,t));return te(g).pipe(Z())});return d(a).pipe(Ie())}));return d(s).pipe(Ie())}function so(t,n,e,r,i){let s=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!s||s.length===0)return d(!0);let o=s.map(a=>{var g;let u=(g=We(n))!=null?g:i,c=Ae(a,u),l=Zi(c)?c.canDeactivate(t,n,e,r):$(u,()=>c(t,n,e,r));return te(l).pipe(Z())});return d(o).pipe(Ie())}function ao(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return d(!0);let s=i.map(o=>{let a=Ae(o,t),u=Gi(a)?a.canLoad(n,e):$(t,()=>a(n,e));return te(u)});return d(s).pipe(Ie(),qn(r))}function qn(t){return Ar(w(n=>{if(typeof n!="boolean")throw Tt(t,n)}),m(n=>n===!0))}function uo(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return d(!0);let s=i.map(o=>{let a=Ae(o,t),u=Yi(a)?a.canMatch(n,e):$(t,()=>a(n,e));return te(u)});return d(s).pipe(Ie(),qn(r))}var Be=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Ve=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ge(t){return Me(new Be(t))}function co(t){return Me(new b(4e3,!1))}function lo(t){return Me($n(!1,M.GuardRejected))}var sr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return d(r);if(i.numberOfChildren>1||!i.children[f])return co(`${n.redirectTo}`);i=i.children[f]}}applyRedirectCommands(n,e,r,i,s){if(typeof e!="string"){let a=e,{queryParams:u,fragment:c,routeConfig:l,url:g,outlet:R,params:S,data:D,title:A}=i,_=$(s,()=>a({params:S,data:D,queryParams:u,fragment:c,routeConfig:l,url:g,outlet:R,title:A}));if(_ instanceof q)throw new Ve(_);e=_}let o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new Ve(o);return o}applyRedirectCreateUrlTree(n,e,r,i){let s=this.createSegmentGroup(n,e.root,r,i);return new q(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,s])=>{if(typeof s=="string"&&s[0]===":"){let a=s.substring(1);r[i]=e[a]}else r[i]=s}),r}createSegmentGroup(n,e,r,i){let s=this.createSegments(n,e.segments,r,i),o={};return Object.entries(e.children).forEach(([a,u])=>{o[a]=this.createSegmentGroup(n,u,r,i)}),new v(s,o)}createSegments(n,e,r,i){return e.map(s=>s.path[0]===":"?this.findPosParam(n,s,i):this.findOrReturn(s,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new b(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}},ar={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ho(t,n,e,r,i){let s=Bn(t,n,e);return s.matched?(r=xi(n,r),uo(r,n,e,i).pipe(m(o=>o===!0?s:h({},ar)))):d(s)}function Bn(t,n,e){var a,u;if(n.path==="**")return po(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},ar):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Rn)(e,t,n);if(!i)return h({},ar);let s={};Object.entries((a=i.posParams)!=null?a:{}).forEach(([c,l])=>{s[c]=l.path});let o=i.consumed.length>0?h(h({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:o,positionalParamSegments:(u=i.posParams)!=null?u:{}}}function po(t){return{matched:!0,parameters:t.length>0?yn(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function gn(t,n,e,r){return e.length>0&&vo(t,e,r)?{segmentGroup:new v(n,go(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&mo(t,e,r)?{segmentGroup:new v(t.segments,fo(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function fo(t,n,e,r){let i={};for(let s of e)if(Dt(t,n,s)&&!r[L(s)]){let o=new v([],{});i[L(s)]=o}return h(h({},r),i)}function go(t,n){let e={};e[f]=n;for(let r of t)if(r.path===""&&L(r)!==f){let i=new v([],{});e[L(r)]=i}return e}function vo(t,n,e){return e.some(r=>Dt(t,n,r)&&L(r)!==f)}function mo(t,n,e){return e.some(r=>Dt(t,n,r))}function Dt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Ro(t,n,e){return n.length===0&&!t.children[e]}var ur=class{};function So(t,n,e,r,i,s,o="emptyOnly"){return new cr(t,n,e,r,i,o,s).recognize()}var yo=31,cr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,s,o,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new sr(this.urlSerializer,this.urlTree)}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}recognize(){let n=gn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(m(({children:e,rootSnapshot:r})=>{let i=new E(r,e),s=new Fe("",i),o=Dn(r,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(n){let e=new se([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,f,e).pipe(m(r=>({children:r,rootSnapshot:e})),re(r=>{if(r instanceof Ve)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Be?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,s){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,s):this.processSegment(n,e,r,r.segments,i,!0,s).pipe(m(o=>o instanceof E?[o]:[]))}processChildren(n,e,r,i){let s=[];for(let o of Object.keys(r.children))o==="primary"?s.unshift(o):s.push(o);return I(s).pipe(ne(o=>{let a=r.children[o],u=_i(e,o);return this.processSegmentGroup(n,u,a,o,i)}),Er((o,a)=>(o.push(...a),o)),Lt(null),Dr(),T(o=>{if(o===null)return ge(r);let a=Vn(o);return Co(a),d(a)}))}processSegment(n,e,r,i,s,o,a){return I(e).pipe(ne(u=>{var c;return this.processSegmentAgainstRoute((c=u._injector)!=null?c:n,e,u,r,i,s,o,a).pipe(re(l=>{if(l instanceof Be)return d(null);throw l}))}),Z(u=>!!u),re(u=>{if(Fn(u))return Ro(r,i,s)?d(new ur):ge(r);throw u}))}processSegmentAgainstRoute(n,e,r,i,s,o,a,u){return L(r)!==o&&(o===f||!Dt(i,s,r))?ge(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,s,o,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,s,o,u):ge(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,s,o,a){var _,he;let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:g,remainingSegments:R}=Bn(e,i,s);if(!u)return ge(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>yo&&(this.allowRedirects=!1));let S=new se(s,c,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,vn(i),L(i),(he=(_=i.component)!=null?_:i._loadedComponent)!=null?he:null,i,mn(i)),D=At(S,a,this.paramsInheritanceStrategy);S.params=Object.freeze(D.params),S.data=Object.freeze(D.data);let A=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,g,S,n);return this.applyRedirects.lineralizeSegments(i,A).pipe(T(Oe=>this.processSegment(n,r,e,Oe.concat(R),o,!1,a)))}matchSegmentAgainstRoute(n,e,r,i,s,o){let a=ho(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),a.pipe(j(u=>{var c;return u.matched?(n=(c=r._injector)!=null?c:n,this.getChildConfig(n,r,i).pipe(j(({routes:l})=>{var Cr,wr,br;let g=(Cr=r._loadedInjector)!=null?Cr:n,{parameters:R,consumedSegments:S,remainingSegments:D}=u,A=new se(S,R,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,vn(r),L(r),(br=(wr=r.component)!=null?wr:r._loadedComponent)!=null?br:null,r,mn(r)),_=At(A,o,this.paramsInheritanceStrategy);A.params=Object.freeze(_.params),A.data=Object.freeze(_.data);let{segmentGroup:he,slicedSegments:Oe}=gn(e,S,D,l);if(Oe.length===0&&he.hasChildren())return this.processChildren(g,l,he,A).pipe(m(Ye=>new E(A,Ye)));if(l.length===0&&Oe.length===0)return d(new E(A,[]));let ui=L(r)===s;return this.processSegment(g,l,he,Oe,ui?f:s,!0,A).pipe(m(Ye=>new E(A,Ye instanceof E?[Ye]:[])))}))):ge(e)}))}getChildConfig(n,e,r){return e.children?d({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?d({routes:e._loadedRoutes,injector:e._loadedInjector}):ao(n,e,r,this.urlSerializer).pipe(T(i=>i?this.configLoader.loadChildren(n,e).pipe(w(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):lo(e))):d({routes:[],injector:n})}};function Co(t){t.sort((n,e)=>n.value.outlet===f?-1:e.value.outlet===f?1:n.value.outlet.localeCompare(e.value.outlet))}function wo(t){let n=t.value.routeConfig;return n&&n.path===""}function Vn(t){let n=[],e=new Set;for(let r of t){if(!wo(r)){n.push(r);continue}let i=n.find(s=>r.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=Vn(r.children);n.push(new E(r.value,i))}return n.filter(r=>!e.has(r))}function vn(t){return t.data||{}}function mn(t){return t.resolve||{}}function bo(t,n,e,r,i,s){return T(o=>So(t,n,e,r,o.extractedUrl,i,s).pipe(m(({state:a,tree:u})=>P(h({},o),{targetSnapshot:a,urlAfterRedirects:u}))))}function Io(t,n){return T(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return d(e);let s=new Set(i.map(u=>u.route)),o=new Set;for(let u of s)if(!o.has(u))for(let c of Hn(u))o.add(c);let a=0;return I(o).pipe(ne(u=>s.has(u)?Ao(u,r,t,n):(u.data=At(u,u.parent,t).resolve,d(void 0))),w(()=>a++),$t(1),T(u=>a===o.size?d(e):W))})}function Hn(t){let n=t.children.map(e=>Hn(e)).flat();return[t,...n]}function Ao(t,n,e,r){let i=t.routeConfig,s=t._resolve;return(i==null?void 0:i.title)!==void 0&&!jn(i)&&(s[He]=i.title),To(s,t,n,r).pipe(m(o=>(t._resolvedData=o,t.data=At(t,t.parent,e).resolve,null)))}function To(t,n,e,r){let i=Yt(t);if(i.length===0)return d({});let s={};return I(i).pipe(T(o=>Oo(t[o],n,e,r).pipe(Z(),w(a=>{if(a instanceof be)throw Tt(new X,a);s[o]=a}))),$t(1),m(()=>s),re(o=>Fn(o)?W:Me(o)))}function Oo(t,n,e,r){var a;let i=(a=We(n))!=null?a:r,s=Ae(t,i),o=s.resolve?s.resolve(n,e):$(i,()=>s(n,e));return te(o)}function Kt(t){return j(n=>{let e=t(n);return e?I(e).pipe(m(()=>n)):d(n)})}var pr=(()=>{class t{buildTitle(e){var s;let r,i=e.root;for(;i!==void 0;)r=(s=this.getResolvedTitleForRoute(i))!=null?s:r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(e){return e.data[He]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(Wn),providedIn:"root"})}return t})(),Wn=(()=>{class t extends pr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(G(ln))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),le=new O("",{providedIn:"root",factory:()=>({})}),fr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Hr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Xr(0,"router-outlet")},dependencies:[hr],encapsulation:2})}return t})();function gr(t){let n=t.children&&t.children.map(gr),e=n?P(h({},t),{children:n}):h({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=fr),e}var Te=new O(""),Et=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(rt);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return d(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=te(e.loadComponent()).pipe(m(Qn),w(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),Je(()=>{this.componentLoaders.delete(e)})),i=new jt(r,()=>new H).pipe(_t());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return d({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=Gn(r,this.compiler,e,this.onLoadEndListener).pipe(Je(()=>{this.childrenLoaders.delete(r)})),o=new jt(s,()=>new H).pipe(_t());return this.childrenLoaders.set(r,o),o}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Gn(t,n,e,r){return te(t.loadChildren()).pipe(m(Qn),T(i=>i instanceof Vr||Array.isArray(i)?d(i):I(n.compileModuleAsync(i))),m(i=>{r&&r(t);let s,o,a=!1;return Array.isArray(i)?(o=i,a=!0):(s=i.create(e).injector,o=s.get(Te,[],{optional:!0,self:!0}).flat()),{routes:o.map(gr),injector:s}}))}function Mo(t){return t&&typeof t=="object"&&"default"in t}function Qn(t){return Mo(t)?t.default:t}var Ut=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(Do),providedIn:"root"})}return t})(),Do=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vr=new O(""),mr=new O("");function Kn(t,n,e){let r=t.get(mr),i=t.get(on);return t.get(et).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let s,o=new Promise(c=>{s=c}),a=i.startViewTransition(()=>(s(),Eo(t))),{onViewTransitionCreated:u}=r;return u&&$(t,()=>u({transition:a,from:n,to:e})),o})}function Eo(t){return new Promise(n=>{zr({read:()=>setTimeout(n)},{injector:t})})}var Rr=new O(""),Nt=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new H;transitionAbortSubject=new H;configLoader=p(Et);environmentInjector=p(pe);destroyRef=p(jr);urlSerializer=p(ue);rootContexts=p(ce);location=p(fe);inputBindingEnabled=p(Ge,{optional:!0})!==null;titleStrategy=p(pr);options=p(le,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(Ut);createViewTransition=p(vr,{optional:!0});navigationErrorHandler=p(Rr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>d(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new mt(i)),r=i=>this.events.next(new Rt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){var e;(e=this.transitions)==null||e.complete()}handleNavigationRequest(e){var i;let r=++this.navigationId;(i=this.transitions)==null||i.next(P(h({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))}setupNavigations(e){return this.transitions=new x(null),this.transitions.pipe(K(r=>r!==null),j(r=>{let i=!1,s=!1;return d(r).pipe(j(o=>{var c;if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",M.SupersededByNewNavigation),W;this.currentTransition=r,this.currentNavigation={id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?P(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=(c=o.extras.onSameUrlNavigation)!=null?c:e.onSameUrlNavigation;if(!a&&u!=="reload"){let l="";return this.events.next(new B(o.id,this.urlSerializer.serialize(o.rawUrl),l,Se.IgnoredSameUrlNavigation)),o.resolve(!1),W}if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return d(o).pipe(j(l=>(this.events.next(new ee(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?W:Promise.resolve(l))),bo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),w(l=>{r.targetSnapshot=l.targetSnapshot,r.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation=P(h({},this.currentNavigation),{finalUrl:l.urlAfterRedirects});let g=new Le(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(g)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:l,extractedUrl:g,source:R,restoredState:S,extras:D}=o,A=new ee(l,this.urlSerializer.serialize(g),R,S);this.events.next(A);let _=xn(this.rootComponentType).snapshot;return this.currentTransition=r=P(h({},o),{targetSnapshot:_,urlAfterRedirects:g,extras:P(h({},D),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=g,d(r)}else{let l="";return this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),l,Se.IgnoredByUrlHandlingStrategy)),o.resolve(!1),W}}),w(o=>{let a=new pt(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(a)}),m(o=>(this.currentTransition=r=P(h({},o),{guards:qi(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),r)),Ji(this.environmentInjector,o=>this.events.next(o)),w(o=>{if(r.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw Tt(this.urlSerializer,o.guardsResult);let a=new ft(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(a)}),K(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",M.GuardRejected),!1)),Kt(o=>{if(o.guards.canActivateChecks.length!==0)return d(o).pipe(w(a=>{let u=new gt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),j(a=>{let u=!1;return d(a).pipe(Io(this.paramsInheritanceStrategy,this.environmentInjector),w({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(a,"",M.NoDataFromResolver)}}))}),w(a=>{let u=new vt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}))}),Kt(o=>{let a=u=>{var l;let c=[];(l=u.routeConfig)!=null&&l.loadComponent&&!u.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(u.routeConfig).pipe(w(g=>{u.component=g}),m(()=>{})));for(let g of u.children)c.push(...a(g));return c};return Xe(a(o.targetSnapshot.root)).pipe(Lt(null),de(1))}),Kt(()=>this.afterPreactivation()),j(()=>{var c;let{currentSnapshot:o,targetSnapshot:a}=r,u=(c=this.createViewTransition)==null?void 0:c.call(this,this.environmentInjector,o.root,a.root);return u?I(u).pipe(m(()=>r)):d(r)}),m(o=>{let a=ki(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=r=P(h({},o),{targetRouterState:a}),this.currentNavigation.targetRouterState=a,r}),w(()=>{this.events.next(new $e)}),Fi(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),de(1),w({next:o=>{var a;i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new N(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),(a=this.titleStrategy)==null||a.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),Nr(this.transitionAbortSubject.pipe(w(o=>{throw o}))),Je(()=>{var o;!i&&!s&&this.cancelNavigationTransition(r,"",M.SupersededByNewNavigation),((o=this.currentTransition)==null?void 0:o.id)===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),re(o=>{var a;if(this.destroyed)return r.resolve(!1),W;if(s=!0,zn(o))this.events.next(new F(r.id,this.urlSerializer.serialize(r.extractedUrl),o.message,o.cancellationCode)),zi(o)?this.events.next(new we(o.url,o.navigationBehaviorOptions)):r.resolve(!1);else{let u=new ye(r.id,this.urlSerializer.serialize(r.extractedUrl),o,(a=r.targetSnapshot)!=null?a:void 0);try{let c=$(this.environmentInjector,()=>{var l;return(l=this.navigationErrorHandler)==null?void 0:l.call(this,u)});if(c instanceof be){let{message:l,cancellationCode:g}=Tt(this.urlSerializer,c);this.events.next(new F(r.id,this.urlSerializer.serialize(r.extractedUrl),l,g)),this.events.next(new we(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(u),o}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return W}))}))}cancelNavigationTransition(e,r,i){let s=new F(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(s),e.resolve(!1)}isUpdatingInternalState(){var e,r;return((e=this.currentTransition)==null?void 0:e.extractedUrl.toString())!==((r=this.currentTransition)==null?void 0:r.currentUrlTree.toString())}isUpdatedBrowserUrl(){var i,s,o,a;let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=(o=(i=this.currentNavigation)==null?void 0:i.targetBrowserUrl)!=null?o:(s=this.currentNavigation)==null?void 0:s.extractedUrl;return e.toString()!==(r==null?void 0:r.toString())&&!((a=this.currentNavigation)!=null&&a.extras.skipLocationChange)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Uo(t){return t!==lt}var Zn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(No),providedIn:"root"})}return t})(),Mt=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},No=(()=>{class t extends Mt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ft(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Yn=(()=>{class t{urlSerializer=p(ue);options=p(le,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(fe);urlHandlingStrategy=p(Ut);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new q;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let s=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,o=i!=null?i:s;return o instanceof q?this.urlSerializer.serialize(o):o}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=xn(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e!=null?e:this.rawUrlTree)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(Po),providedIn:"root"})}return t})(),Po=(()=>{class t extends Yn{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){var e,r;return this.canceledNavigationResolution!=="computed"?this.currentPageId:(r=(e=this.restoredState())==null?void 0:e.\u0275routerPageId)!=null?r:this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof ee?this.updateStateMemento():e instanceof B?this.commitTransition(r):e instanceof Le?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof $e?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof F&&(e.code===M.GuardRejected||e.code===M.NoDataFromResolver)?this.restoreHistory(r):e instanceof ye?this.restoreHistory(r,!0):e instanceof N&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:s,state:o}=r;if(this.location.isCurrentPathEqualTo(e)||s){let a=this.browserPageId,u=h(h({},o),this.generateNgRouterState(i,a));this.location.replaceState(e,"",u)}else{let a=h(h({},o),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.getCurrentUrlTree()===e.finalUrl&&s===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ft(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Pt(t,n){t.events.pipe(K(e=>e instanceof N||e instanceof F||e instanceof ye||e instanceof B),m(e=>e instanceof N||e instanceof B?0:(e instanceof F?e.code===M.Redirect||e.code===M.SupersededByNewNavigation:!1)?2:1),K(e=>e!==2),de(1)).subscribe(()=>{n()})}var xo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_o={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},V=(()=>{var n,e;class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(Gr);stateManager=p(Yn);options=p(le,{optional:!0})||{};pendingTasks=p(kr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(Nt);urlSerializer=p(ue);location=p(fe);urlHandlingStrategy=p(Ut);_events=new H;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(Zn);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(e=(n=p(Te,{optional:!0}))==null?void 0:n.flat())!=null?e:[];componentInputBindingEnabled=!!p(Ge,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ir;subscribeToNavigationEvents(){let i=this.navigationTransitions.events.subscribe(s=>{try{let o=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(o!==null&&a!==null){if(this.stateManager.handleRouterEvent(s,a),s instanceof F&&s.code!==M.Redirect&&s.code!==M.SupersededByNewNavigation)this.navigated=!0;else if(s instanceof N)this.navigated=!0;else if(s instanceof we){let u=s.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(s.url,o.currentRawUrl),l=h({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Uo(o.source)},u);this.scheduleNavigation(c,lt,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}ko(s)&&this._events.next(s)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(i)}resetRootComponentType(i){this.routerState.root.component=i,this.navigationTransitions.rootComponentType=i}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),lt,this.stateManager.restoredState())}setUpLocationChangeListener(){var i;(i=this.nonRouterCurrentEntryChangeSubscription)!=null||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((s,o,a)=>{this.navigateToSyncWithBrowser(s,a,o)}))}navigateToSyncWithBrowser(i,s,o){let a={replaceUrl:!0},u=o!=null&&o.navigationId?o:null;if(o){let l=h({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(a.state=l)}let c=this.parseUrl(i);this.scheduleNavigation(c,s,u,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(i){this.config=i.map(gr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(i,s={}){let{relativeTo:o,queryParams:a,fragment:u,queryParamsHandling:c,preserveFragment:l}=s,g=l?this.currentUrlTree.fragment:u,R=null;switch(c!=null?c:this.options.defaultQueryParamsHandling){case"merge":R=h(h({},this.currentUrlTree.queryParams),a);break;case"preserve":R=this.currentUrlTree.queryParams;break;default:R=a||null}R!==null&&(R=this.removeEmptyProps(R));let S;try{let D=o?o.snapshot:this.routerState.snapshot.root;S=En(D)}catch{(typeof i[0]!="string"||i[0][0]!=="/")&&(i=[]),S=this.currentUrlTree.root}return Un(S,i,R,g!=null?g:null)}navigateByUrl(i,s={skipLocationChange:!1}){let o=J(i)?i:this.parseUrl(i),a=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(a,lt,null,s)}navigate(i,s={skipLocationChange:!1}){return jo(i),this.navigateByUrl(this.createUrlTree(i,s),s)}serializeUrl(i){return this.urlSerializer.serialize(i)}parseUrl(i){try{return this.urlSerializer.parse(i)}catch{return this.urlSerializer.parse("/")}}isActive(i,s){let o;if(s===!0?o=h({},xo):s===!1?o=h({},_o):o=s,J(i))return hn(this.currentUrlTree,i,o);let a=this.parseUrl(i);return hn(this.currentUrlTree,a,o)}removeEmptyProps(i){return Object.entries(i).reduce((s,[o,a])=>(a!=null&&(s[o]=a),s),{})}scheduleNavigation(i,s,o,a,u){if(this.disposed)return Promise.resolve(!1);let c,l,g;u?(c=u.resolve,l=u.reject,g=u.promise):g=new Promise((S,D)=>{c=S,l=D});let R=this.pendingTasks.add();return Pt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(R))}),this.navigationTransitions.handleNavigationRequest({source:s,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:a,resolve:c,reject:l,promise:g,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),g.catch(S=>Promise.reject(S))}static \u0275fac=function(s){return new(s||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new b(4008,!1)}function ko(t){return!(t instanceof $e)&&!(t instanceof we)}var xt=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new H;constructor(e,r,i,s,o,a){var c;this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=s,this.el=o,this.locationStrategy=a;let u=(c=o.nativeElement.tagName)==null?void 0:c.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof N&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(J(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,s,o){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||i||s||o||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u),!this.isAnchorElement}ngOnDestroy(){var e;(e=this.subscription)==null||e.unsubscribe()}updateHref(){var i;let e=this.urlTree;this.href=e!==null&&this.locationStrategy?(i=this.locationStrategy)==null?void 0:i.prepareExternalUrl(this.router.serializeUrl(e)):null;let r=this.href===null?null:Fr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(e,r){let i=this.renderer,s=this.el.nativeElement;r!==null?i.setAttribute(s,e,r):i.removeAttribute(s,e)}get urlTree(){return this.routerLinkInput===null?null:J(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(k(V),k(Q),_r("tabindex"),k(Vt),k(Bt),k(Ne))};static \u0275dir=Ue({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&Jr("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),r&2&&Yr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",it],skipLocationChange:[2,"skipLocationChange","skipLocationChange",it],replaceUrl:[2,"replaceUrl","replaceUrl",it],routerLink:"routerLink"},features:[Ee]})}return t})(),Lo=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new ie;constructor(e,r,i,s,o){this.router=e,this.element=r,this.renderer=i,this.cdr=s,this.link=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof N&&this.update()})}ngAfterContentInit(){d(this.links.changes,d(null)).pipe(De()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var r;(r=this.linkInputChangesSubscription)==null||r.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=I(e).pipe(De()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),(e=this.linkInputChangesSubscription)==null||e.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=$o(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let s=i.urlTree;return s?e.isActive(s,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(k(V),k(Bt),k(Vt),k(nt),k(xt,8))};static \u0275dir=Ue({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,s){if(r&1&&en(s,xt,5),r&2){let o;tn(o=rn())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ee]})}return t})();function $o(t){return!!t.paths}var Ke=class{};var Xn=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,s,o){this.router=e,this.injector=i,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(K(e=>e instanceof N),ne(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){var s,o,a;let i=[];for(let u of r){u.providers&&!u._injector&&(u._injector=tt(u.providers,e,`Route: ${u.path}`));let c=(s=u._injector)!=null?s:e,l=(o=u._loadedInjector)!=null?o:c;(u.loadChildren&&!u._loadedRoutes&&u.canLoad===void 0||u.loadComponent&&!u._loadedComponent)&&i.push(this.preloadConfig(c,u)),(u.children||u._loadedRoutes)&&i.push(this.processRoutes(l,(a=u.children)!=null?a:u._loadedRoutes))}return I(i).pipe(De())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=d(null);let s=i.pipe(T(o=>{var a;return o===null?d(void 0):(r._loadedRoutes=o.routes,r._loadedInjector=o.injector,this.processRoutes((a=o.injector)!=null?a:e,o.routes))}));if(r.loadComponent&&!r._loadedComponent){let o=this.loader.loadComponent(r);return I([s,o]).pipe(De())}else return s})}static \u0275fac=function(r){return new(r||t)(G(V),G(rt),G(pe),G(Ke),G(Et))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Jn=new O(""),zo=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,r,i,s,o={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=s,this.options=o,o.scrollPositionRestoration||(o.scrollPositionRestoration="disabled"),o.anchorScrolling||(o.anchorScrolling="disabled")}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ee?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof N?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof B&&e.code===Se.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ce&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ce(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){var e,r;(e=this.routerEventsSubscription)==null||e.unsubscribe(),(r=this.scrollEventsSubscription)==null||r.unsubscribe()}static \u0275fac=function(r){qr()};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function Fo(t){return t.routerState.root}function Ze(t,n){return{\u0275kind:t,\u0275providers:n}}function qo(){let t=p(qt);return n=>{var s,o;let e=t.get(Zr);if(n!==e.components[0])return;let r=t.get(V),i=t.get(ei);t.get(yr)===1&&r.initialNavigation(),(s=t.get(ni,null,zt.Optional))==null||s.setUpPreloading(),(o=t.get(Jn,null,zt.Optional))==null||o.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ei=new O("",{factory:()=>new H}),yr=new O("",{providedIn:"root",factory:()=>1});function ti(){let t=[{provide:yr,useValue:0},Ht(()=>{let n=p(qt);return n.get(sn,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(V),s=n.get(ei);Pt(i,()=>{r(!0)}),n.get(Nt).afterPreactivation=()=>(r(!0),s.closed?d(void 0):s),i.initialNavigation()}))})];return Ze(2,t)}function ri(){let t=[Ht(()=>{p(V).setUpLocationChangeListener()}),{provide:yr,useValue:2}];return Ze(3,t)}var ni=new O("");function ii(t){return Ze(0,[{provide:ni,useExisting:Xn},{provide:Ke,useExisting:t}])}function oi(){return Ze(8,[dr,{provide:Ge,useExisting:dr}])}function si(t){$r("NgRouterViewTransitions");let n=[{provide:vr,useValue:Kn},{provide:mr,useValue:h({skipNextTransition:!!(t!=null&&t.skipInitialTransition)},t)}];return Ze(9,n)}var ai=[fe,{provide:ue,useClass:X},V,ce,{provide:Q,useFactory:Fo,deps:[V]},Et,[]],Bo=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[ai,[],{provide:Te,multi:!0,useValue:e},[],r!=null&&r.errorHandler?{provide:Rr,useValue:r.errorHandler}:[],{provide:le,useValue:r||{}},r!=null&&r.useHash?Ho():Wo(),Vo(),r!=null&&r.preloadingStrategy?ii(r.preloadingStrategy).\u0275providers:[],r!=null&&r.initialNavigation?Go(r):[],r!=null&&r.bindToComponentInputs?oi().\u0275providers:[],r!=null&&r.enableViewTransitions?si().\u0275providers:[],Qo()]}}static forChild(e){return{ngModule:t,providers:[{provide:Te,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Wr({type:t});static \u0275inj=Pr({})}return t})();function Vo(){return{provide:Jn,useFactory:()=>{let t=p(cn),n=p(et),e=p(le),r=p(Nt),i=p(ue);return e.scrollOffset&&t.setOffset(e.scrollOffset),new zo(i,r,t,n,e)}}}function Ho(){return{provide:Ne,useClass:un}}function Wo(){return{provide:Ne,useClass:an}}function Go(t){return[t.initialNavigation==="disabled"?ri().\u0275providers:[],t.initialNavigation==="enabledBlocking"?ti().\u0275providers:[]]}var Sr=new O("");function Qo(){return[{provide:Sr,useFactory:qo},{provide:Kr,multi:!0,useExisting:Sr}]}export{N as a,Q as b,hr as c,V as d,xt as e,Lo as f,Bo as g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as b}from"./chunk-
|
|
1
|
+
import{a as b}from"./chunk-2COJW6JZ.js";import{a as p,b as w}from"./chunk-L4SPVWCZ.js";import{a as c}from"./chunk-QX4JJLN4.js";import{M as i,g as o,ga as m,ma as h,n}from"./chunk-6JZDPQRU.js";var d=o(p(),1),a=o(w(),1),l=o(b(),1);var v=(()=>{class e{$ws=h(c);term;io;fitAddon;webLinksAddon;resize;elementResize;constructor(){}destroyTerminal(){this.io.end(),this.term.dispose(),this.resize.complete(),this.elementResize&&this.elementResize.complete()}startTerminal(r,s={},f){this.elementResize=f,this.io=this.$ws.connectToNamespace("platform-tools/terminal"),this.term=new d.Terminal(s),setTimeout(()=>{this.term.loadAddon(this.fitAddon),this.term.loadAddon(this.webLinksAddon)}),this.fitAddon=new a.FitAddon,this.webLinksAddon=new l.WebLinksAddon,this.resize=new n,this.term.open(r.nativeElement),setTimeout(()=>{this.fitAddon.activate(this.term),this.fitAddon.fit()}),this.io.connected.pipe(i(200)).subscribe(()=>{this.startSession()}),this.io.socket.on("disconnect",()=>{this.term.write(`
|
|
2
2
|
\r
|
|
3
3
|
\rTerminal disconnected. Is the server running?
|
|
4
4
|
\r
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as f}from"./chunk-YSSMQJIR.js";import{a as s}from"./chunk-NKLCJU2S.js";import"./chunk-VZPOY7LH.js";import"./chunk-A6S2CSNA.js";import"./chunk-REYVZJK4.js";import"./chunk-TH7WF563.js";import"./chunk-Y5BDWQTD.js";import"./chunk-BBVFH2MI.js";import"./chunk-D3QNROQA.js";import"./chunk-TOSAT7VK.js";import"./chunk-2COJW6JZ.js";import"./chunk-ZEGJJ2QZ.js";import"./chunk-SZTIHT5G.js";import"./chunk-L4SPVWCZ.js";import"./chunk-YCHPFYO5.js";import"./chunk-B2ERIJJG.js";import"./chunk-IQBKWEOJ.js";import{q as l}from"./chunk-U3XAGOD7.js";import{y as m,z as u}from"./chunk-DVN556RD.js";import"./chunk-QX4JJLN4.js";import{g as e}from"./chunk-2IW5LNPB.js";import"./chunk-UXBIRDFV.js";import"./chunk-SHPANMJF.js";import"./chunk-4M72X5OK.js";import"./chunk-G75CPMPQ.js";import{c as p}from"./chunk-QIWZD5HO.js";import{gd as n,ha as t,ub as r}from"./chunk-6JZDPQRU.js";var g=[{path:"",loadComponent:()=>import("./chunk-JO3D6NVS.js").then(o=>o.PluginsComponent)}],d=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[e.forChild(g),e]})}return o})();var v=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[n,m,u,p.forChild(),l,f,d,s]})}return o})();export{v as PluginsModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as ft,m as gt}from"./chunk-G75CPMPQ.js";import{$c as J,Da as Z,Ia as O,Ib as M,Jb as E,Kb as l,Lb as F,Nb as p,Oc as Q,Ub as h,Vb as m,Wb as j,Xb as U,Yb as Y,_b as K,a as u,ac as mt,b as T,bb as ht,bc as A,cb as q,cc as c,e as xt,ga as C,gb as r,ha as lt,ja as ct,jb as dt,la as w,ma as _,mb as y,mc as f,n as g,na as ut,oc as b,tb as G,ua as V,ub as pt,va as z,za as N,zb as S}from"./chunk-6JZDPQRU.js";var Tt=xt((De,Ut)=>{Ut.exports={name:"homebridge-config-ui-x",displayName:"Homebridge UI",version:"5.0.0-beta.56",description:"A web based management, configuration and control platform for Homebridge.",author:"oznu <dev@oz.nu>",license:"MIT",funding:[{type:"github",url:"https://github.com/sponsors/oznu"},{type:"paypal",url:"https://paypal.me/oznu"}],repository:{type:"git",url:"git+https://github.com/homebridge/homebridge-config-ui-x.git"},bugs:{url:"https://github.com/homebridge/homebridge-config-ui-x/issues"},keywords:["homebridge-plugin","ui","gui","web","homebridge","homebridge-config-ui-x","ui-x","config-ui-x","homebridge-x","homebridge server","homebridge ui","homebridge-ui","homebridge gui","homebridge-gui","web interface","config ui","management","config editor","linux","macOS","osx","windows","raspberry pi","accessory control","smart home","hb-service"],main:"./dist/index.js",bin:{"homebridge-config-ui-x":"dist/bin/standalone.js","hb-service":"dist/bin/hb-service.js"},engines:{node:"^20 || ^22",homebridge:"^1.8.0 || ^2.0.0-beta.0"},scripts:{build:"npm run build:server && npm run build:ui","build:server":"rimraf dist && tsc -p tsconfig.build.json","build:ui":"npm run build --prefix ui",check:"npm run check:server && npm run check:ui","check:server":"npm install && npm outdated","check:ui":"npm install --prefix ui && npm outdated --prefix ui","lang-sync":"ts-node scripts/lang-sync.ts",lint:"eslint . --max-warnings=0","lint:fix":"npm run lint -- --fix",prepublishOnly:"npm i --package-lock-only && npm run lint && npm run build",start:"ts-node -r tsconfig-paths/register src/main.ts",test:"vitest run","test-coverage":"npm run test -- --coverage","upgrade-install":"./scripts/upgrade-install.sh",watch:'concurrently "npm run watch:ui" "npm run watch:server"',"watch:server":"nodemon","watch:ui":"npm run start --prefix ui"},dependencies:{"@fastify/helmet":"13.0.1","@fastify/multipart":"9.0.3","@fastify/static":"8.1.1","@homebridge/hap-client":"2.1.0","@homebridge/node-pty-prebuilt-multiarch":"0.12.0-beta.5","@nestjs/axios":"4.0.0","@nestjs/common":"11.0.20","@nestjs/core":"11.0.20","@nestjs/jwt":"11.0.0","@nestjs/passport":"11.0.5","@nestjs/platform-fastify":"11.0.20","@nestjs/platform-socket.io":"11.0.20","@nestjs/swagger":"11.1.4","@nestjs/websockets":"11.0.20",axios:"1.8.4","bash-color":"0.0.4","class-transformer":"0.5.1","class-validator":"0.14.1",commander:"13.1.0",dayjs:"1.11.13",fastify:"5.3.2","fs-extra":"11.3.0",jsonwebtoken:"9.0.2",lodash:"4.17.21","node-cache":"5.1.2","node-schedule":"2.1.1",ora:"5.4.1",otplib:"12.0.1","p-limit":"3.1.0",passport:"0.7.0","passport-jwt":"4.0.1","reflect-metadata":"0.2.2",rxjs:"7.8.2",semver:"7.7.1",systeminformation:"5.25.11",tail:"2.2.6",tar:"7.4.3","tcp-port-used":"1.0.2",unzipper:"0.12.3"},devDependencies:{"@antfu/eslint-config":"^4.12.0","@nestjs/testing":"^11.0.20","@prettier/plugin-xml":"^3.4.1","@types/fs-extra":"^11.0.4","@types/lodash":"^4.17.16","@types/node":"^22.14.1","@types/node-schedule":"^2.1.7","@types/passport-jwt":"^4.0.1","@types/semver":"^7.7.0","@types/tail":"^2.2.3","@types/tcp-port-used":"^1.0.4","@types/unzipper":"^0.10.11","@vitest/coverage-v8":"^3.1.1",concurrently:"^9.1.2","eslint-plugin-format":"^1.0.1","form-data":"^4.0.2",nodemon:"^3.1.9",rimraf:"^6.0.1","ts-loader":"^9.5.2","ts-node":"^10.9.2","tsconfig-paths":"^4.2.0",typescript:"^5.8.3","unplugin-swc":"^1.5.1",vitest:"^3.1.1"},overrides:{"@nestjs/platform-fastify":{fastify:"5.3.2"}},maintainers:[{email:"bwp91@icloud.com",name:"bwp91"},{email:"dev@oz.nu",name:"oznu"},{email:"northern.man1@gmail.com",name:"northernman"},{email:"mail@anderl-bauer.de",name:"supereg"},{email:"khaos.tian@gmail.com",name:"khaost"},{email:"erik.baauw@xs4all.nl",name:"ebaauw"},{email:"donavan.becker@icloud.com",name:"donavanbecker"},{email:"dustin.greif@gmail.com",name:"dustin.greif"},{email:"nfarina@gmail.com",name:"nfarina"}],scarfSettings:{enabled:!1}}});var v=function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i}(v||{}),It="*";function tt(i,s){return{type:v.Trigger,name:i,definitions:s,options:{}}}function P(i,s=null){return{type:v.Animate,styles:s,timings:i}}function Yt(i,s=null){return{type:v.Sequence,steps:i,options:s}}function R(i){return{type:v.Style,styles:i,offset:null}}function H(i,s,t){return{type:v.State,name:i,styles:s,options:t}}function B(i,s,t=null){return{type:v.Transition,expr:i,animation:s,options:t}}var W=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(s=0,t=0){this.totalTime=s+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(s=>s()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(s){this._position=this.totalTime?s*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(s){let t=s=="start"?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}},X=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(s){this.players=s;let t=0,e=0,n=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++t==o&&this._onFinish()}),a.onDestroy(()=>{++e==o&&this._onDestroy()}),a.onStart(()=>{++n==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,d)=>Math.max(a,d.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this.players.forEach(s=>s.init())}onStart(s){this._onStartFns.push(s)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(s=>s()),this._onStartFns=[])}onDone(s){this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(s=>s.play())}pause(){this.players.forEach(s=>s.pause())}restart(){this.players.forEach(s=>s.restart())}finish(){this._onFinish(),this.players.forEach(s=>s.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(s=>s.destroy()),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this.players.forEach(s=>s.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(s){let t=s*this.totalTime;this.players.forEach(e=>{let n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let s=this.players.reduce((t,e)=>t===null||e.totalTime>t.totalTime?e:t,null);return s!=null?s.getPosition():0}beforeDestroy(){this.players.forEach(s=>{s.beforeDestroy&&s.beforeDestroy()})}triggerCallback(s){let t=s=="start"?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}},Ot="!";var _t=["toast-component",""];function Et(i,s){if(i&1){let t=K();h(0,"button",5),A("click",function(){V(t);let n=c();return z(n.remove())}),h(1,"span",6),f(2,"\xD7"),m()()}}function Ft(i,s){if(i&1&&(U(0),f(1),Y()),i&2){let t=c(2);r(),b("[",t.duplicatesCount+1,"]")}}function jt(i,s){if(i&1&&(h(0,"div"),f(1),S(2,Ft,2,1,"ng-container",4),m()),i&2){let t=c();p(t.options.titleClass),E("aria-label",t.title),r(),b(" ",t.title," "),r(),l("ngIf",t.duplicatesCount)}}function At(i,s){if(i&1&&j(0,"div",7),i&2){let t=c();p(t.options.messageClass),l("innerHTML",t.message,q)}}function Rt(i,s){if(i&1&&(h(0,"div",8),f(1),m()),i&2){let t=c();p(t.options.messageClass),E("aria-label",t.message),r(),b(" ",t.message," ")}}function Ht(i,s){if(i&1&&(h(0,"div"),j(1,"div",9),m()),i&2){let t=c();r(),F("width",t.width()+"%")}}function kt(i,s){if(i&1){let t=K();h(0,"button",5),A("click",function(){V(t);let n=c();return z(n.remove())}),h(1,"span",6),f(2,"\xD7"),m()()}}function Nt(i,s){if(i&1&&(U(0),f(1),Y()),i&2){let t=c(2);r(),b("[",t.duplicatesCount+1,"]")}}function Mt(i,s){if(i&1&&(h(0,"div"),f(1),S(2,Nt,2,1,"ng-container",4),m()),i&2){let t=c();p(t.options.titleClass),E("aria-label",t.title),r(),b(" ",t.title," "),r(),l("ngIf",t.duplicatesCount)}}function Pt(i,s){if(i&1&&j(0,"div",7),i&2){let t=c();p(t.options.messageClass),l("innerHTML",t.message,q)}}function Bt(i,s){if(i&1&&(h(0,"div",8),f(1),m()),i&2){let t=c();p(t.options.messageClass),E("aria-label",t.message),r(),b(" ",t.message," ")}}function $t(i,s){if(i&1&&(h(0,"div"),j(1,"div",9),m()),i&2){let t=c();r(),F("width",t.width()+"%")}}var et=class{_attachedHost;component;viewContainerRef;injector;constructor(s,t){this.component=s,this.injector=t}attach(s,t){return this._attachedHost=s,s.attach(this,t)}detach(){let s=this._attachedHost;if(s)return this._attachedHost=void 0,s.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(s){this._attachedHost=s}},it=class{_attachedPortal;_disposeFn;attach(s,t){return this._attachedPortal=s,this.attachComponentPortal(s,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(s){this._disposeFn=s}},st=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new g;_activate=new g;_manualClose=new g;_resetTimeout=new g;_countDuplicate=new g;constructor(s){this._overlayRef=s}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(s,t){s&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}},D=class{toastId;config;message;title;toastType;toastRef;_onTap=new g;_onAction=new g;constructor(s,t,e,n,o,a){this.toastId=s,this.config=t,this.message=e,this.title=n,this.toastType=o,this.toastRef=a,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(s){this._onAction.next(s)}onAction(){return this._onAction.asObservable()}},vt={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},yt=new ct("ToastConfig"),nt=class extends it{_hostDomElement;_componentFactoryResolver;_appRef;constructor(s,t,e){super(),this._hostDomElement=s,this._componentFactoryResolver=t,this._appRef=e}attachComponentPortal(s,t){let e=this._componentFactoryResolver.resolveComponentFactory(s.component),n;return n=e.create(s.injector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(n),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(n)),n}_getComponentRootNode(s){return s.hostView.rootNodes[0]}},Lt=(()=>{class i{_document=_(Q);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(e){return new(e||i)};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),ot=class{_portalHost;constructor(s){this._portalHost=s}attach(s,t=!0){return this._portalHost.attach(s,t)}detach(){return this._portalHost.detach()}},Vt=(()=>{class i{_overlayContainer=_(Lt);_componentFactoryResolver=_(dt);_appRef=_(M);_document=_(Q);_paneElements=new Map;create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){let n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(t){return new nt(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new ot(this._createPortalHost(t))}static \u0275fac=function(e){return new(e||i)};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),bt=(()=>{class i{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,e,n,o,a){this.overlay=e,this._injector=n,this.sanitizer=o,this.ngZone=a,this.toastrConfig=u(u({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=u(u({},t.default.iconClasses),t.config.iconClasses))}show(t,e,n={},o=""){return this._preBuildNotification(o,t,e,this.applyConfig(n))}success(t,e,n={}){let o=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(o,t,e,this.applyConfig(n))}error(t,e,n={}){let o=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(o,t,e,this.applyConfig(n))}info(t,e,n={}){let o=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(o,t,e,this.applyConfig(n))}warning(t,e,n={}){let o=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(o,t,e,this.applyConfig(n))}clear(t){for(let e of this.toasts)if(t!==void 0){if(e.toastId===t){e.toastRef.manualClose();return}}else e.toastRef.manualClose()}remove(t){let e=this._findToast(t);if(!e||(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let n=this.toasts[this.currentlyActive].toastRef;n.isInactive()||(this.currentlyActive=this.currentlyActive+1,n.activate())}return!0}findDuplicate(t="",e="",n,o){let{includeTitleDuplicates:a}=this.toastrConfig;for(let d of this.toasts){let k=a&&d.title===t;if((!a||k)&&d.message===e)return d.toastRef.onDuplicate(n,o),d}return null}applyConfig(t={}){return u(u({},this.toastrConfig),t)}_findToast(t){for(let e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null}_preBuildNotification(t,e,n,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,e,n,o)):this._buildNotification(t,e,n,o)}_buildNotification(t,e,n,o){if(!o.toastComponent)throw new Error("toastComponent required");let a=this.findDuplicate(n,e,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&n||e)&&this.toastrConfig.preventDuplicates&&a!==null)return a;this.previousToastMessage=e;let d=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(d=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let k=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let rt=e;e&&o.enableHtml&&(rt=this.sanitizer.sanitize(ht.HTML,e));let I=new st(k),$=new D(this.index,o,rt,n,t,I),Ct=[{provide:D,useValue:$}],wt=N.create({providers:Ct,parent:this._injector}),Dt=new et(o.toastComponent,wt),at=k.attach(Dt,o.newestOnTop);I.componentInstance=at.instance;let L={toastId:this.index,title:n||"",message:e||"",toastRef:I,onShown:I.afterActivate(),onHidden:I.afterClosed(),onTap:$.onTap(),onAction:$.onAction(),portal:at};return d||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{L.toastRef.activate()})),this.toasts.push(L),L}static \u0275fac=function(e){return new(e||i)(w(yt),w(Vt),w(N),w(gt),w(Z))};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),zt=(()=>{class i{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=O(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.ngZone=n,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state=O({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>T(u({},t),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(n=>100-n),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>T(u({},t),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(t=>T(u({},t),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(e){return new(e||i)(y(bt),y(D),y(Z))};static \u0275cmp=G({type:i,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,n){e&1&&A("click",function(){return n.tapToast()})("mouseenter",function(){return n.stickAround()})("mouseleave",function(){return n.delayedHideToast()}),e&2&&(mt("@flyInOut",n._state),p(n.toastClasses),F("display",n.displayStyle))},attrs:_t,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,n){e&1&&S(0,Et,3,0,"button",0)(1,jt,3,5,"div",1)(2,At,1,3,"div",2)(3,Rt,2,4,"div",3)(4,Ht,2,2,"div",4),e&2&&(l("ngIf",n.options.closeButton),r(),l("ngIf",n.title),r(),l("ngIf",n.message&&n.options.enableHtml),r(),l("ngIf",n.message&&!n.options.enableHtml),r(),l("ngIf",n.options.progressBar))},dependencies:[J],encapsulation:2,data:{animation:[tt("flyInOut",[H("inactive",R({opacity:0})),H("active",R({opacity:1})),H("removed",R({opacity:0})),B("inactive => active",P("{{ easeTime }}ms {{ easing }}")),B("active => removed",P("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return i})(),Zt=T(u({},vt),{toastComponent:zt}),qt=(i={})=>ut([{provide:yt,useValue:{default:Zt,config:i}}]),be=(()=>{class i{static forRoot(t={}){return{ngModule:i,providers:[qt(t)]}}static \u0275fac=function(e){return new(e||i)};static \u0275mod=pt({type:i});static \u0275inj=lt({})}return i})();var Gt=(()=>{class i{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=O(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=O("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.appRef=n,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(n=>100-n),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(e){return new(e||i)(y(bt),y(D),y(M))};static \u0275cmp=G({type:i,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,n){e&1&&A("click",function(){return n.tapToast()})("mouseenter",function(){return n.stickAround()})("mouseleave",function(){return n.delayedHideToast()}),e&2&&(p(n.toastClasses),F("display",n.displayStyle))},attrs:_t,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,n){e&1&&S(0,kt,3,0,"button",0)(1,Mt,3,5,"div",1)(2,Pt,1,3,"div",2)(3,Bt,2,4,"div",3)(4,$t,2,2,"div",4),e&2&&(l("ngIf",n.options.closeButton),r(),l("ngIf",n.title),r(),l("ngIf",n.message&&n.options.enableHtml),r(),l("ngIf",n.message&&!n.options.enableHtml),r(),l("ngIf",n.options.progressBar))},dependencies:[J],encapsulation:2,changeDetection:0})}return i})(),Te=T(u({},vt),{toastComponent:Gt});var x={serverTarget:Tt().version,production:!0,socket:"",api:{base:"/api",socket:`${window.location.protocol==="http:"?"ws://":"wss://"}${window.location.host}`,origin:window.location.origin},jwt:{tokenKey:"access_token",allowedDomains:[document.location.host],disallowedRoutes:[`${window.location.protocol}//${document.location.host}/api/auth/login`]},apiHttpOptions:{},owm:{appid:"fec67b55f7f74deaa28df89ba6a60821"}};var Fe=(()=>{class i{$http=_(ft);constructor(){}get(t,e){return this.$http.get(`${x.api.base}${t}`,e)}post(t,e,n){return this.$http.post(`${x.api.base}${t}`,e,n)}put(t,e,n){return this.$http.put(`${x.api.base}${t}`,e,n)}patch(t,e,n){return this.$http.patch(`${x.api.base}${t}`,e,n)}delete(t,e){return this.$http.delete(`${x.api.base}${t}`,e)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();export{v as a,It as b,Yt as c,R as d,W as e,X as f,Ot as g,bt as h,be as i,x as j,Fe as k};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-66N6LPDX.js";import{q as p}from"./chunk-U3XAGOD7.js";import{z as m}from"./chunk-DVN556RD.js";import{g as i}from"./chunk-2IW5LNPB.js";import"./chunk-SHPANMJF.js";import"./chunk-4M72X5OK.js";import"./chunk-G75CPMPQ.js";import{c as s}from"./chunk-QIWZD5HO.js";import{gd as n,ha as t,ub as r}from"./chunk-6JZDPQRU.js";var a=[{path:"",loadComponent:()=>import("./chunk-ZEDF3XZB.js").then(o=>o.PowerOptionsComponent)}],u=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[i.forChild(a),i]})}return o})();var j=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[n,u,p,m,s]})}return o})();export{j as PowerOptionsModule};
|