@duplicati/ngclient 0.0.44 → 0.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/assets/spk.woff2 +0 -0
  2. package/chunk-24YPS3CV.js +1 -0
  3. package/chunk-2JO4W5FR.js +1 -0
  4. package/chunk-2YS2DW25.js +1 -0
  5. package/{chunk-FCHQLLN2.js → chunk-3IE7QZ4D.js} +1 -1
  6. package/{chunk-ARZ3SWC2.js → chunk-4WKXZKTC.js} +1 -1
  7. package/chunk-5522ZDTF.js +1 -0
  8. package/chunk-55X7NAJI.js +1 -0
  9. package/{chunk-5ZK3D2RS.js → chunk-65UFWL3O.js} +1 -1
  10. package/chunk-67RPUUUD.js +1 -0
  11. package/chunk-74JHDVI6.js +1 -0
  12. package/chunk-7FNERKST.js +1 -0
  13. package/{chunk-EUZXGGH4.js → chunk-7SHJPVM2.js} +1 -1
  14. package/chunk-7TRDO7JO.js +1 -0
  15. package/{chunk-J3H4BCHI.js → chunk-7WQR24NO.js} +1 -1
  16. package/{chunk-6M3MNJ52.js → chunk-AC2LD55W.js} +1 -1
  17. package/chunk-AQETBV7M.js +1 -0
  18. package/{chunk-KL64745B.js → chunk-ARPRGK23.js} +1 -1
  19. package/{chunk-LTYC3AYW.js → chunk-AYGRA5MA.js} +1 -1
  20. package/{chunk-P7FSPM3M.js → chunk-AZAFLOEO.js} +1 -1
  21. package/{chunk-66TOS62R.js → chunk-BDFM44OC.js} +15 -15
  22. package/{chunk-4TN5W4QO.js → chunk-BNGZWBKC.js} +1 -1
  23. package/chunk-BV3HBNH3.js +1 -0
  24. package/{chunk-DGBBEZNN.js → chunk-BWR2LHUK.js} +1 -1
  25. package/chunk-CVLCJRED.js +1 -0
  26. package/chunk-F7AUCVVD.js +1 -0
  27. package/{chunk-K7H3KYW7.js → chunk-FBAABDBH.js} +1 -1
  28. package/chunk-FSY6N6QG.js +1 -0
  29. package/{chunk-N35HGIXN.js → chunk-GH3U5NF5.js} +1 -1
  30. package/chunk-HHNBFONH.js +1 -0
  31. package/chunk-IBZEQWFY.js +1 -0
  32. package/chunk-JEGJAUF7.js +1 -0
  33. package/{chunk-ZVU4LS6E.js → chunk-JIBWXS4Q.js} +1 -1
  34. package/{chunk-5XX7BU4I.js → chunk-JQGZUGRK.js} +2 -2
  35. package/chunk-K5R45UNO.js +1 -0
  36. package/{chunk-MXEBWT5C.js → chunk-KWEPVNDD.js} +1 -1
  37. package/{chunk-4237W7DB.js → chunk-LM6FM44S.js} +1 -1
  38. package/{chunk-27GCJTV5.js → chunk-MN2U4RJK.js} +1 -1
  39. package/{chunk-OQEYKIKK.js → chunk-NIFWUYP5.js} +1 -1
  40. package/{chunk-7TWD5GBS.js → chunk-NN3K5WJK.js} +1 -1
  41. package/chunk-NUXXITWB.js +1 -0
  42. package/{chunk-3NZI2UZ4.js → chunk-OAL3AILX.js} +1 -1
  43. package/{chunk-OVIL3KMN.js → chunk-QJZQNKYK.js} +1 -1
  44. package/chunk-R47UOCMB.js +1 -0
  45. package/chunk-R5PXH3UQ.js +1 -0
  46. package/{chunk-MTJ4JC4K.js → chunk-RHX2BKJQ.js} +1 -1
  47. package/{chunk-HEBDWN5N.js → chunk-STY2S4SE.js} +1 -1
  48. package/chunk-TEBYIIAM.js +1 -0
  49. package/{chunk-AKLJ23OZ.js → chunk-UUC5AIWR.js} +1 -1
  50. package/chunk-UYXZTHXX.js +7 -0
  51. package/chunk-VZ377A5M.js +1 -0
  52. package/{chunk-2HOCLZ5J.js → chunk-XC5IIBG3.js} +1 -1
  53. package/chunk-XEK5PR4Q.js +1 -0
  54. package/{chunk-UYK4G7KS.js → chunk-XPH3GUDU.js} +1 -1
  55. package/{chunk-6CG2PO47.js → chunk-YEWPXKXM.js} +1 -1
  56. package/{chunk-XGN4FDKH.js → chunk-YF43IPBW.js} +1 -1
  57. package/chunk-YZP7MR43.js +6 -0
  58. package/index.html +2 -2
  59. package/main-WZQB5GLN.js +1 -0
  60. package/package.json +1 -1
  61. package/styles-DLE2HCON.css +1 -0
  62. package/chunk-5OHRSCEC.js +0 -1
  63. package/chunk-6HO4XDHH.js +0 -1
  64. package/chunk-7FKHU74A.js +0 -1
  65. package/chunk-BEZGDXHL.js +0 -1
  66. package/chunk-DUCYT6JV.js +0 -1
  67. package/chunk-ED3PEZLO.js +0 -1
  68. package/chunk-HCLD4U7B.js +0 -1
  69. package/chunk-HZVRWBX3.js +0 -1
  70. package/chunk-IH5A7VZA.js +0 -1
  71. package/chunk-KFGIVU27.js +0 -1
  72. package/chunk-KMNTAMUY.js +0 -1
  73. package/chunk-LVPMH5RR.js +0 -1
  74. package/chunk-M2HNXB57.js +0 -1
  75. package/chunk-MQK3LTIE.js +0 -1
  76. package/chunk-MR4RE3IB.js +0 -7
  77. package/chunk-N5EDV26Z.js +0 -1
  78. package/chunk-P6LV5I2K.js +0 -1
  79. package/chunk-RMTCHBH3.js +0 -6
  80. package/chunk-TQVKGGE4.js +0 -1
  81. package/chunk-WWJ757LM.js +0 -1
  82. package/main-HHDIDPSW.js +0 -1
  83. package/styles-DO5TEHSB.css +0 -1
@@ -1 +1 @@
1
- import{b as rn}from"./chunk-P6LV5I2K.js";import{Ea as xt,e as Jr,g as en,j as se,l as tn,m as Ut,n as Ae}from"./chunk-5ZK3D2RS.js";import{A as Rt,Ac as Ke,B as ie,Ba as jr,C as Rr,E as He,Ec as Ze,F as Q,G as wt,Gb as Wr,H as wr,I as br,Ic as Ye,K as Ir,L as P,M as Ar,N as R,O as b,Oc as Xr,Pa as Nr,R as C,S as Dr,Sa as j,T as Mr,Ta as Lr,U as A,V as bt,W as q,Wa as Mt,Wb as Gr,X as l,Xa as $r,Y as Tr,Z as Or,_ as Er,a as vr,aa as Ie,ba as k,bc as Qr,c as mr,cb as kr,cc as Kr,da as We,dc as Zr,e as yt,eb as Tt,f as Ct,fb as _r,g as W,gb as zr,h as E,ha as It,hb as Qe,ia as Ur,j as G,ja as At,k as I,kb as Fr,l as f,la as xr,m as we,ma as oe,mb as qr,n as yr,na as Ge,nb as Br,o as Cr,p as m,pb as Ot,q as Ve,qb as Et,r as M,ra as Pr,rb as Vr,s as be,sa as Dt,t as Sr,u as St,ub as Hr,w as X,y as J,z as ne,zc as Yr}from"./chunk-MR4RE3IB.js";import{a as h,b as D}from"./chunk-C6Q5SG76.js";var g="primary",_e=Symbol("RouteTitle"),$t=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 de(t){return new $t(t)}function Xn(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 o=0;o<r.length;o++){let s=r[o],u=t[o];if(s[0]===":")i[s.substring(1)]=u;else if(s!==u.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function Jn(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!_(t[e],n[e]))return!1;return!0}function _(t,n){let e=t?kt(t):void 0,r=n?kt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!gn(t[i],n[i]))return!1;return!0}function kt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function gn(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,o)=>r[o]===i)}else return t===n}function vn(t){return t.length>0?t[t.length-1]:null}function Y(t){return yr(t)?t:Br(t)?I(Promise.resolve(t)):f(t)}var ei={exact:yn,subset:Cn},mn={exact:ti,subset:ri,ignored:()=>!0};function nn(t,n,e){return ei[e.paths](t.root,n.root,e.matrixParams)&&mn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function ti(t,n){return _(t,n)}function yn(t,n,e){if(!te(t.segments,n.segments)||!et(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!yn(t.children[r],n.children[r],e))return!1;return!0}function ri(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>gn(t[e],n[e]))}function Cn(t,n,e){return Sn(t,n,n.segments,e)}function Sn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!te(i,e)||n.hasChildren()||!et(i,e,r))}else if(t.segments.length===e.length){if(!te(t.segments,e)||!et(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Cn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!te(t.segments,i)||!et(t.segments,i,r)||!t.children[g]?!1:Sn(t.children[g],n,o,r)}}function et(t,n,e){return n.every((r,i)=>mn[e](t[i].parameters,r.parameters))}var V=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=de(this.queryParams),this._queryParamMap}toString(){return oi.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 tt(this)}},ee=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=de(this.parameters),this._parameterMap}toString(){return wn(this)}};function ni(t,n){return te(t,n)&&t.every((e,r)=>_(e.parameters,n[r].parameters))}function te(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function ii(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===g&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==g&&(e=e.concat(n(i,r)))}),e}var ye=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>new fe,providedIn:"root"})}return t})(),fe=class{parse(n){let e=new zt(n);return new V(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${De(n.root,!0)}`,r=ui(n.queryParams),i=typeof n.fragment=="string"?`#${si(n.fragment)}`:"";return`${e}${r}${i}`}},oi=new fe;function tt(t){return t.segments.map(n=>wn(n)).join("/")}function De(t,n){if(!t.hasChildren())return tt(t);if(n){let e=t.children[g]?De(t.children[g],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==g&&r.push(`${i}:${De(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=ii(t,(r,i)=>i===g?[De(t.children[g],!1)]:[`${i}:${De(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[g]!=null?`${tt(t)}/${e[0]}`:`${tt(t)}/(${e.join("//")})`}}function Rn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xe(t){return Rn(t).replace(/%3B/gi,";")}function si(t){return encodeURI(t)}function _t(t){return Rn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rt(t){return decodeURIComponent(t)}function on(t){return rt(t.replace(/\+/g,"%20"))}function wn(t){return`${_t(t.path)}${ai(t.parameters)}`}function ai(t){return Object.entries(t).map(([n,e])=>`;${_t(n)}=${_t(e)}`).join("")}function ui(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${Xe(e)}=${Xe(i)}`).join("&"):`${Xe(e)}=${Xe(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ci=/^[^\/()?;#]+/;function Pt(t){let n=t.match(ci);return n?n[0]:""}var li=/^[^\/()?;=#]+/;function hi(t){let n=t.match(li);return n?n[0]:""}var di=/^[^=?&#]+/;function fi(t){let n=t.match(di);return n?n[0]:""}var pi=/^[^&#]+/;function gi(t){let n=t.match(pi);return n?n[0]:""}var zt=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[g]=new v(n,e)),r}parseSegment(){let n=Pt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new ee(rt(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=hi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Pt(this.remaining);i&&(r=i,this.capture(r))}n[rt(e)]=rt(r)}parseQueryParam(n){let e=fi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=gi(this.remaining);s&&(r=s,this.capture(r))}let i=on(e),o=on(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Pt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=g);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[g]:new v([],s),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 bn(t){return t.segments.length>0?new v([],{[g]:t}):t}function In(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=In(i);if(r===g&&o.segments.length===0&&o.hasChildren())for(let[s,u]of Object.entries(o.children))n[s]=u;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new v(t.segments,n);return vi(e)}function vi(t){if(t.numberOfChildren===1&&t.children[g]){let n=t.children[g];return new v(t.segments.concat(n.segments),n.children)}return t}function re(t){return t instanceof V}function mi(t,n,e=null,r=null){let i=An(t);return Dn(i,n,e,r)}function An(t){let n;function e(o){let s={};for(let a of o.children){let c=e(a);s[a.outlet]=c}let u=new v(o.url,s);return o===t&&(n=u),u}let r=e(t.root),i=bn(r);return n??i}function Dn(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return jt(i,i,i,e,r);let o=yi(n);if(o.toRoot())return jt(i,i,new v([],{}),e,r);let s=Ci(o,i,t),u=s.processChildren?Oe(s.segmentGroup,s.index,o.commands):Tn(s.segmentGroup,s.index,o.commands);return jt(i,s.segmentGroup,u,e,r)}function nt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function xe(t){return typeof t=="object"&&t!=null&&t.outlets}function jt(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([a,c])=>{o[a]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;t===n?s=e:s=Mn(t,n,e);let u=bn(In(s));return new V(u,o,i)}function Mn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Mn(o,n,e)}),new v(t.segments,r)}var it=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&nt(r[0]))throw new b(4003,!1);let i=r.find(xe);if(i&&i!==vn(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function yi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new it(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let u={};return Object.entries(o.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?e=!0:u===".."?n++:u!=""&&i.push(u))}),i):[...i,o]},[]);return new it(e,n,r)}var ce=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Ci(t,n,e){if(t.isAbsolute)return new ce(n,!0,0);if(!e)return new ce(n,!1,NaN);if(e.parent===null)return new ce(e,!0,0);let r=nt(t.commands[0])?0:1,i=e.segments.length-1+r;return Si(e,i,t.numberOfDoubleDots)}function Si(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new b(4005,!1);i=r.segments.length}return new ce(r,!1,i-o)}function Ri(t){return xe(t[0])?t[0].outlets:{[g]:t}}function Tn(t,n,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return Oe(t,n,e);let r=wi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,r.pathIndex),{});return o.children[g]=new v(t.segments.slice(r.pathIndex),t.children),Oe(o,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?Ft(t,n,e):r.match?Oe(t,0,i):Ft(t,n,e)}function Oe(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=Ri(e),i={};if(Object.keys(r).some(o=>o!==g)&&t.children[g]&&t.numberOfChildren===1&&t.children[g].segments.length===0){let o=Oe(t.children[g],n,e);return new v(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Tn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function wi(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],u=e[r];if(xe(u))break;let a=`${u}`,c=r<e.length-1?e[r+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!an(a,c,s))return o;r+=2}else{if(!an(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Ft(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(xe(o)){let a=bi(o.outlets);return new v(r,a)}if(i===0&&nt(e[0])){let a=t.segments[n];r.push(new ee(a.path,sn(e[0]))),i++;continue}let s=xe(o)?o.outlets[g]:`${o}`,u=i<e.length-1?e[i+1]:null;s&&u&&nt(u)?(r.push(new ee(s,sn(u))),i+=2):(r.push(new ee(s,{})),i++)}return new v(r,{})}function bi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Ft(new v([],{}),0,r))}),n}function sn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function an(t,n,e){return t==e.path&&_(n,e.parameters)}var Ee="imperative",S=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}(S||{}),U=class{id;url;constructor(n,e){this.id=n,this.url=e}},pe=class extends U{type=S.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}')`}},L=class extends U{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},O=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(O||{}),ot=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(ot||{}),B=class extends U{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},K=class extends U{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},Pe=class extends U{error;target;type=S.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})`}},st=class extends U{urlAfterRedirects;state;type=S.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})`}},qt=class extends U{urlAfterRedirects;state;type=S.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})`}},Bt=class extends U{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Vt=class extends U{urlAfterRedirects;state;type=S.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})`}},Ht=class extends U{urlAfterRedirects;state;type=S.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})`}},Wt=class{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Gt=class{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Qt=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kt=class{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Zt=class{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yt=class{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},at=class{routerEvent;position;anchor;type=S.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}')`}},je=class{},ge=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Ii(t,n){return t.providers&&!t._injector&&(t._injector=Tt(t.providers,n,`Route: ${t.path}`)),t._injector??n}function N(t){return t.outlet||g}function Ai(t,n){let e=t.filter(r=>N(r)===n);return e.push(...t.filter(r=>N(r)!==n)),e}function ze(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Xt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return ze(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Fe(this.rootInjector)}},Fe=(()=>{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 Xt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(q(Ie))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ut=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=Jt(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Jt(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=er(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return er(n,this._root).map(e=>e.value)}};function Jt(t,n){if(t===n.value)return n;for(let e of n.children){let r=Jt(t,e);if(r)return r}return null}function er(t,n){if(t===n.value)return[n];for(let e of n.children){let r=er(t,e);if(r.length)return r.unshift(n),r}return[]}var T=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ue(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var ct=class extends ut{snapshot;constructor(n,e){super(n),this.snapshot=e,cr(this,n)}toString(){return this.snapshot.toString()}};function On(t){let n=Di(t),e=new E([new ee("",{})]),r=new E({}),i=new E({}),o=new E({}),s=new E(""),u=new Z(e,r,o,s,i,g,t,n.root);return u.snapshot=n.root,new ct(new T(u,[]),n)}function Di(t){let n={},e={},r={},i="",o=new le([],n,r,i,e,g,t,null,{});return new ht("",new T(o,[]))}var Z=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,u,a){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(m(c=>c[_e]))??f(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(m(n=>de(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(n=>de(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function lt(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.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?.data),t._resolvedData)}:r={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&Un(i)&&(r.resolve[_e]=i.title),r}var le=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[_e]}constructor(n,e,r,i,o,s,u,a,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=u,this.routeConfig=a,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(){return this._paramMap??=de(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=de(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}')`}},ht=class extends ut{url;constructor(n,e){super(e),this.url=n,cr(this,e)}toString(){return En(this._root)}};function cr(t,n){n.value._routerState=t,n.children.forEach(e=>cr(t,e))}function En(t){let n=t.children.length>0?` { ${t.children.map(En).join(", ")} } `:"";return`${t.value}${n}`}function Nt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,_(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),_(n.params,e.params)||t.paramsSubject.next(e.params),Jn(n.url,e.url)||t.urlSubject.next(e.url),_(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function tr(t,n){let e=_(t.params,n.params)&&ni(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||tr(t.parent,n.parent))}function Un(t){return typeof t.title=="string"||t.title===null}var Mi=new A(""),Ti=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=g;activateEvents=new oe;deactivateEvents=new oe;attachEvents=new oe;detachEvents=new oe;routerOutletData=Pr(void 0);parentContexts=l(Fe);location=l($r);changeDetector=l(Ze);inputBinder=l(gt,{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(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new 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){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new rr(e,u,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:a,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Qe({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[We]})}return t})(),rr=class t{route;childContexts;parent;outletData;__ngOutletInjector(n){return new t(this.route,this.childContexts,n,this.outletData)}constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===Z?this.route:n===Fe?this.childContexts:n===Mi?this.outletData:this.parent.get(n,e)}},gt=new A(""),un=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Ve([r.queryParams,r.params,r.data]).pipe(P(([o,s,u],a)=>(u=h(h(h({},o),s),u),a===0?f(u):Promise.resolve(u)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=Xr(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:u}of s.inputs)e.activatedComponentRef.setInput(u,o[u])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function Oi(t,n,e){let r=Ne(t,n._root,e?e._root:void 0);return new ct(r,n)}function Ne(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Ei(t,n,e);return new T(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(u=>Ne(t,u)),s}}let r=Ui(n.value),i=n.children.map(o=>Ne(t,o));return new T(r,i)}}function Ei(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Ne(t,r,i);return Ne(t,r)})}function Ui(t){return new Z(new E(t.url),new E(t.params),new E(t.queryParams),new E(t.fragment),new E(t.data),t.outlet,t.component,t)}var Le=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},xn="ngNavigationCancelingError";function dt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=re(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Pn(!1,O.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Pn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[xn]=!0,e.cancellationCode=n,e}function xi(t){return jn(t)&&re(t.url)}function jn(t){return!!t&&t[xn]}var Pi=(t,n,e,r)=>m(i=>(new nr(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),nr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Nt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ue(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&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,o=ue(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),u=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:u})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ue(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=ue(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Yt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Kt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Nt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(u.contexts),s.attachRef=u.componentRef,s.route=u.route.value,s.outlet&&s.outlet.attach(u.componentRef,u.route.value),Nt(u.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},ft=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},he=class{component;route;constructor(n,e){this.component=n,this.route=e}};function ji(t,n,e){let r=t._root,i=n?n._root:null;return Me(r,i,e,[r.value])}function Ni(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ce(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Mr(t)?t:n.get(t):r}function Me(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ue(n);return t.children.forEach(s=>{Li(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,u])=>Ue(u,e.getContext(s),i)),i}function Li(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,u=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let a=$i(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new ft(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Me(t,n,u?u.children:null,r,i):Me(t,n,e,r,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new he(u.outlet.component,s))}else s&&Ue(n,u,i),i.canActivateChecks.push(new ft(r)),o.component?Me(t,null,u?u.children:null,r,i):Me(t,null,e,r,i);return i}function $i(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!te(t.url,n.url);case"pathParamsOrQueryParamsChange":return!te(t.url,n.url)||!_(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tr(t,n)||!_(t.queryParams,n.queryParams);case"paramsChange":default:return!tr(t,n)}}function Ue(t,n,e){let r=ue(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Ue(s,n.children.getContext(o),e):Ue(s,null,e):Ue(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new he(n.outlet.component,i)):e.canDeactivateChecks.push(new he(null,i)):e.canDeactivateChecks.push(new he(null,i))}function qe(t){return typeof t=="function"}function ki(t){return typeof t=="boolean"}function _i(t){return t&&qe(t.canLoad)}function zi(t){return t&&qe(t.canActivate)}function Fi(t){return t&&qe(t.canActivateChild)}function qi(t){return t&&qe(t.canDeactivate)}function Bi(t){return t&&qe(t.canMatch)}function Nn(t){return t instanceof Cr||t?.name==="EmptyError"}var Je=Symbol("INITIAL_VALUE");function ve(){return P(t=>Ve(t.map(n=>n.pipe(ie(1),Ir(Je)))).pipe(m(n=>{for(let e of n)if(e!==!0){if(e===Je)return Je;if(e===!1||Vi(e))return e}return!0}),X(n=>n!==Je),ie(1)))}function Vi(t){return re(t)||t instanceof Le}function Hi(t,n){return M(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?f(D(h({},e),{guardsResult:!0})):Wi(s,r,i,t).pipe(M(u=>u&&ki(u)?Gi(r,o,t,n):f(u)),m(u=>D(h({},e),{guardsResult:u})))})}function Wi(t,n,e,r){return I(t).pipe(M(i=>Xi(i.component,i.route,e,n,r)),Q(i=>i!==!0,!0))}function Gi(t,n,e,r){return I(n).pipe(ne(i=>Sr(Ki(i.route.parent,r),Qi(i.route,r),Yi(t,i.path,e),Zi(t,i.route,e))),Q(i=>i!==!0,!0))}function Qi(t,n){return t!==null&&n&&n(new Zt(t)),f(!0)}function Ki(t,n){return t!==null&&n&&n(new Qt(t)),f(!0)}function Zi(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return f(!0);let i=r.map(o=>St(()=>{let s=ze(n)??e,u=Ce(o,s),a=zi(u)?u.canActivate(n,t):k(s,()=>u(n,t));return Y(a).pipe(Q())}));return f(i).pipe(ve())}function Yi(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>Ni(s)).filter(s=>s!==null).map(s=>St(()=>{let u=s.guards.map(a=>{let c=ze(s.node)??e,d=Ce(a,c),p=Fi(d)?d.canActivateChild(r,t):k(c,()=>d(r,t));return Y(p).pipe(Q())});return f(u).pipe(ve())}));return f(o).pipe(ve())}function Xi(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return f(!0);let s=o.map(u=>{let a=ze(n)??i,c=Ce(u,a),d=qi(c)?c.canDeactivate(t,n,e,r):k(a,()=>c(t,n,e,r));return Y(d).pipe(Q())});return f(s).pipe(ve())}function Ji(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return f(!0);let o=i.map(s=>{let u=Ce(s,t),a=_i(u)?u.canLoad(n,e):k(t,()=>u(n,e));return Y(a)});return f(o).pipe(ve(),Ln(r))}function Ln(t){return mr(R(n=>{if(typeof n!="boolean")throw dt(t,n)}),m(n=>n===!0))}function eo(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return f(!0);let o=i.map(s=>{let u=Ce(s,t),a=Bi(u)?u.canMatch(n,e):k(t,()=>u(n,e));return Y(a)});return f(o).pipe(ve(),Ln(r))}var $e=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},ke=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ae(t){return we(new $e(t))}function to(t){return we(new b(4e3,!1))}function ro(t){return we(Pn(!1,O.GuardRejected))}var ir=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 f(r);if(i.numberOfChildren>1||!i.children[g])return to(`${n.redirectTo}`);i=i.children[g]}}applyRedirectCommands(n,e,r,i,o){if(typeof e!="string"){let u=e,{queryParams:a,fragment:c,routeConfig:d,url:p,outlet:y,params:$,data:w,title:H}=i,x=k(o,()=>u({params:$,data:w,queryParams:a,fragment:c,routeConfig:d,url:p,outlet:y,title:H}));if(x instanceof V)throw new ke(x);e=x}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new ke(s);return s}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new V(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let u=o.substring(1);r[i]=e[u]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([u,a])=>{s[u]=this.createSegmentGroup(n,a,r,i)}),new v(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,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}},or={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function no(t,n,e,r,i){let o=$n(t,n,e);return o.matched?(r=Ii(n,r),eo(r,n,e,i).pipe(m(s=>s===!0?o:h({},or)))):f(o)}function $n(t,n,e){if(n.path==="**")return io(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},or):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Xn)(e,t,n);if(!i)return h({},or);let o={};Object.entries(i.posParams??{}).forEach(([u,a])=>{o[u]=a.path});let s=i.consumed.length>0?h(h({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function io(t){return{matched:!0,parameters:t.length>0?vn(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function cn(t,n,e,r){return e.length>0&&ao(t,e,r)?{segmentGroup:new v(n,so(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&uo(t,e,r)?{segmentGroup:new v(t.segments,oo(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function oo(t,n,e,r){let i={};for(let o of e)if(vt(t,n,o)&&!r[N(o)]){let s=new v([],{});i[N(o)]=s}return h(h({},r),i)}function so(t,n){let e={};e[g]=n;for(let r of t)if(r.path===""&&N(r)!==g){let i=new v([],{});e[N(r)]=i}return e}function ao(t,n,e){return e.some(r=>vt(t,n,r)&&N(r)!==g)}function uo(t,n,e){return e.some(r=>vt(t,n,r))}function vt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function co(t,n,e){return n.length===0&&!t.children[e]}var sr=class{};function lo(t,n,e,r,i,o,s="emptyOnly"){return new ar(t,n,e,r,i,s,o).recognize()}var ho=31,ar=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,u){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=u,this.applyRedirects=new ir(this.urlSerializer,this.urlTree)}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}recognize(){let n=cn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(m(({children:e,rootSnapshot:r})=>{let i=new T(r,e),o=new ht("",i),s=mi(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new le([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),g,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,g,e).pipe(m(r=>({children:r,rootSnapshot:e})),J(r=>{if(r instanceof ke)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof $e?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,o):this.processSegment(n,e,r,r.segments,i,!0,o).pipe(m(s=>s instanceof T?[s]:[]))}processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return I(o).pipe(ne(s=>{let u=r.children[s],a=Ai(e,s);return this.processSegmentGroup(n,a,u,s,i)}),br((s,u)=>(s.push(...u),s)),Rt(null),wr(),M(s=>{if(s===null)return ae(r);let u=kn(s);return fo(u),f(u)}))}processSegment(n,e,r,i,o,s,u){return I(e).pipe(ne(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,r,i,o,s,u).pipe(J(c=>{if(c instanceof $e)return f(null);throw c}))),Q(a=>!!a),J(a=>{if(Nn(a))return co(r,i,o)?f(new sr):ae(r);throw a}))}processSegmentAgainstRoute(n,e,r,i,o,s,u,a){return N(r)!==s&&(s===g||!vt(i,o,r))?ae(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,a):ae(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,u){let{matched:a,parameters:c,consumedSegments:d,positionalParamSegments:p,remainingSegments:y}=$n(e,i,o);if(!a)return ae(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ho&&(this.allowRedirects=!1));let $=new le(o,c,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,ln(i),N(i),i.component??i._loadedComponent??null,i,hn(i)),w=lt($,u,this.paramsInheritanceStrategy);$.params=Object.freeze(w.params),$.data=Object.freeze(w.data);let H=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,p,$,n);return this.applyRedirects.lineralizeSegments(i,H).pipe(M(x=>this.processSegment(n,r,e,x.concat(y),s,!1,u)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let u=no(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),u.pipe(P(a=>a.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(P(({routes:c})=>{let d=r._loadedInjector??n,{parameters:p,consumedSegments:y,remainingSegments:$}=a,w=new le(y,p,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,ln(r),N(r),r.component??r._loadedComponent??null,r,hn(r)),H=lt(w,s,this.paramsInheritanceStrategy);w.params=Object.freeze(H.params),w.data=Object.freeze(H.data);let{segmentGroup:x,slicedSegments:Re}=cn(e,y,$,c);if(Re.length===0&&x.hasChildren())return this.processChildren(d,c,x,w).pipe(m(Be=>new T(w,Be)));if(c.length===0&&Re.length===0)return f(new T(w,[]));let Yn=N(r)===o;return this.processSegment(d,c,x,Re,Yn?g:o,!0,w).pipe(m(Be=>new T(w,Be instanceof T?[Be]:[])))}))):ae(e)))}getChildConfig(n,e,r){return e.children?f({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?f({routes:e._loadedRoutes,injector:e._loadedInjector}):Ji(n,e,r,this.urlSerializer).pipe(M(i=>i?this.configLoader.loadChildren(n,e).pipe(R(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):ro(e))):f({routes:[],injector:n})}};function fo(t){t.sort((n,e)=>n.value.outlet===g?-1:e.value.outlet===g?1:n.value.outlet.localeCompare(e.value.outlet))}function po(t){let n=t.value.routeConfig;return n&&n.path===""}function kn(t){let n=[],e=new Set;for(let r of t){if(!po(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=kn(r.children);n.push(new T(r.value,i))}return n.filter(r=>!e.has(r))}function ln(t){return t.data||{}}function hn(t){return t.resolve||{}}function go(t,n,e,r,i,o){return M(s=>lo(t,n,e,r,s.extractedUrl,i,o).pipe(m(({state:u,tree:a})=>D(h({},s),{targetSnapshot:u,urlAfterRedirects:a}))))}function vo(t,n){return M(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return f(e);let o=new Set(i.map(a=>a.route)),s=new Set;for(let a of o)if(!s.has(a))for(let c of _n(a))s.add(c);let u=0;return I(s).pipe(ne(a=>o.has(a)?mo(a,r,t,n):(a.data=lt(a,a.parent,t).resolve,f(void 0))),R(()=>u++),wt(1),M(a=>u===s.size?f(e):G))})}function _n(t){let n=t.children.map(e=>_n(e)).flat();return[t,...n]}function mo(t,n,e,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!Un(i)&&(o[_e]=i.title),yo(o,t,n,r).pipe(m(s=>(t._resolvedData=s,t.data=lt(t,t.parent,e).resolve,null)))}function yo(t,n,e,r){let i=kt(t);if(i.length===0)return f({});let o={};return I(i).pipe(M(s=>Co(t[s],n,e,r).pipe(Q(),R(u=>{if(u instanceof Le)throw dt(new fe,u);o[s]=u}))),wt(1),Rr(o),J(s=>Nn(s)?G:we(s)))}function Co(t,n,e,r){let i=ze(n)??r,o=Ce(t,i),s=o.resolve?o.resolve(n,e):k(i,()=>o(n,e));return Y(s)}function Lt(t){return P(n=>{let e=t(n);return e?I(e).pipe(m(()=>n)):f(n)})}var zn=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===g);return r}getResolvedTitleForRoute(e){return e.data[_e]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(So),providedIn:"root"})}return t})(),So=(()=>{class t extends zn{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)(q(rn))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Se=new A("",{providedIn:"root",factory:()=>({})}),Ro=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=_r({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(r,i){r&1&&Wr(0,"router-outlet")},dependencies:[Ti],encapsulation:2})}return t})();function lr(t){let n=t.children&&t.children.map(lr),e=n?D(h({},t),{children:n}):h({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==g&&(e.component=Ro),e}var me=new A(""),hr=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=l(Ke);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=Y(e.loadComponent()).pipe(m(Fn),R(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),He(()=>{this.componentLoaders.delete(e)})),i=new Ct(r,()=>new W).pipe(yt());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return f({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=wo(r,this.compiler,e,this.onLoadEndListener).pipe(He(()=>{this.childrenLoaders.delete(r)})),s=new Ct(o,()=>new W).pipe(yt());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wo(t,n,e,r){return Y(t.loadChildren()).pipe(m(Fn),M(i=>i instanceof kr||Array.isArray(i)?f(i):I(n.compileModuleAsync(i))),m(i=>{r&&r(t);let o,s,u=!1;return Array.isArray(i)?(s=i,u=!0):(o=i.create(e).injector,s=o.get(me,[],{optional:!0,self:!0}).flat()),{routes:s.map(lr),injector:o}}))}function bo(t){return t&&typeof t=="object"&&"default"in t}function Fn(t){return bo(t)?t.default:t}var dr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(Io),providedIn:"root"})}return t})(),Io=(()=>{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})(),qn=new A(""),Bn=new A("");function Ao(t,n,e){let r=t.get(Bn),i=t.get(Jr);return t.get(Ge).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),u=i.startViewTransition(()=>(o(),Do(t))),{onViewTransitionCreated:a}=r;return a&&k(t,()=>a({transition:u,from:n,to:e})),s})}function Do(t){return new Promise(n=>{jr({read:()=>setTimeout(n)},{injector:t})})}var fr=new A(""),mt=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new W;transitionAbortSubject=new W;configLoader=l(hr);environmentInjector=l(Ie);urlSerializer=l(ye);rootContexts=l(Fe);location=l(Ae);inputBindingEnabled=l(gt,{optional:!0})!==null;titleStrategy=l(zn);options=l(Se,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=l(dr);createViewTransition=l(qn,{optional:!0});navigationErrorHandler=l(fr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>f(void 0);rootComponentType=null;constructor(){let e=i=>this.events.next(new Wt(i)),r=i=>this.events.next(new Gt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;this.transitions?.next(D(h(h({},this.transitions.value),e),{id:r}))}setupNavigations(e,r,i){return this.transitions=new E({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Ee,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(o=>o.id!==0),m(o=>D(h({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),P(o=>{let s=!1,u=!1;return f(o).pipe(P(a=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",O.SupersededByNewNavigation),G;this.currentTransition=o,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?D(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&d!=="reload"){let p="";return this.events.next(new K(a.id,this.urlSerializer.serialize(a.rawUrl),p,ot.IgnoredSameUrlNavigation)),a.resolve(!1),G}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return f(a).pipe(P(p=>{let y=this.transitions?.getValue();return this.events.next(new pe(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),y!==this.transitions?.getValue()?G:Promise.resolve(p)}),go(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),R(p=>{o.targetSnapshot=p.targetSnapshot,o.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation=D(h({},this.currentNavigation),{finalUrl:p.urlAfterRedirects});let y=new st(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(y)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:p,extractedUrl:y,source:$,restoredState:w,extras:H}=a,x=new pe(p,this.urlSerializer.serialize(y),$,w);this.events.next(x);let Re=On(this.rootComponentType).snapshot;return this.currentTransition=o=D(h({},a),{targetSnapshot:Re,urlAfterRedirects:y,extras:D(h({},H),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,f(o)}else{let p="";return this.events.next(new K(a.id,this.urlSerializer.serialize(a.extractedUrl),p,ot.IgnoredByUrlHandlingStrategy)),a.resolve(!1),G}}),R(a=>{let c=new qt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),m(a=>(this.currentTransition=o=D(h({},a),{guards:ji(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),o)),Hi(this.environmentInjector,a=>this.events.next(a)),R(a=>{if(o.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw dt(this.urlSerializer,a.guardsResult);let c=new Bt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(c)}),X(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",O.GuardRejected),!1)),Lt(a=>{if(a.guards.canActivateChecks.length)return f(a).pipe(R(c=>{let d=new Vt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),P(c=>{let d=!1;return f(c).pipe(vo(this.paramsInheritanceStrategy,this.environmentInjector),R({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",O.NoDataFromResolver)}}))}),R(c=>{let d=new Ht(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),Lt(a=>{let c=d=>{let p=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(d.routeConfig).pipe(R(y=>{d.component=y}),m(()=>{})));for(let y of d.children)p.push(...c(y));return p};return Ve(c(a.targetSnapshot.root)).pipe(Rt(null),ie(1))}),Lt(()=>this.afterPreactivation()),P(()=>{let{currentSnapshot:a,targetSnapshot:c}=o,d=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return d?I(d).pipe(m(()=>o)):f(o)}),m(a=>{let c=Oi(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=o=D(h({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),R(()=>{this.events.next(new je)}),Pi(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),ie(1),R({next:a=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new L(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{s=!0}}),Ar(this.transitionAbortSubject.pipe(R(a=>{throw a}))),He(()=>{!s&&!u&&this.cancelNavigationTransition(o,"",O.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),J(a=>{if(u=!0,jn(a))this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),a.message,a.cancellationCode)),xi(a)?this.events.next(new ge(a.url,a.navigationBehaviorOptions)):o.resolve(!1);else{let c=new Pe(o.id,this.urlSerializer.serialize(o.extractedUrl),a,o.targetSnapshot??void 0);try{let d=k(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(d instanceof Le){let{message:p,cancellationCode:y}=dt(this.urlSerializer,d);this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),p,y)),this.events.next(new ge(d.redirectTo,d.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return G}))}))}cancelNavigationTransition(e,r,i){let o=new B(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Mo(t){return t!==Ee}var To=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(Oo),providedIn:"root"})}return t})(),ur=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},Oo=(()=>{class t extends ur{static \u0275fac=(()=>{let e;return function(i){return(e||(e=It(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Vn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(Eo),providedIn:"root"})}return t})(),Eo=(()=>{class t extends Vn{location=l(Ae);urlSerializer=l(ye);options=l(Se,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=l(dr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new V;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=On(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&e(r.url,r.state)})}handleRouterEvent(e,r){if(e instanceof pe)this.stateMemento=this.createStateMemento();else if(e instanceof K)this.rawUrlTree=r.initialUrl;else if(e instanceof st){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else e instanceof je?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):e instanceof B&&(e.code===O.GuardRejected||e.code===O.NoDataFromResolver)?this.restoreHistory(r):e instanceof Pe?this.restoreHistory(r,!0):e instanceof L&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let i=e instanceof V?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=h(h({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=h(h({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",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=It(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Te=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Te||{});function Hn(t,n){t.events.pipe(X(e=>e instanceof L||e instanceof B||e instanceof Pe||e instanceof K),m(e=>e instanceof L||e instanceof K?Te.COMPLETE:(e instanceof B?e.code===O.Redirect||e.code===O.SupersededByNewNavigation:!1)?Te.REDIRECTING:Te.FAILED),X(e=>e!==Te.REDIRECTING),ie(1)).subscribe(()=>{n()})}var Uo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},z=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=l(qr);stateManager=l(Vn);options=l(Se,{optional:!0})||{};pendingTasks=l(xr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=l(mt);urlSerializer=l(ye);location=l(Ae);urlHandlingStrategy=l(dr);_events=new W;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=l(To);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=l(me,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!l(gt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new vr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof B&&r.code!==O.Redirect&&r.code!==O.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof L)this.navigated=!0;else if(r instanceof ge){let s=r.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),a=h({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Mo(i.source)},s);this.scheduleNavigation(u,Ee,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}jo(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ee,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",r)},0)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let a=h({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(o.state=a)}let u=this.parseUrl(e);this.scheduleNavigation(u,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(lr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:u,preserveFragment:a}=r,c=a?this.currentUrlTree.fragment:s,d=null;switch(u??this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let p;try{let y=i?i.snapshot:this.routerState.snapshot.root;p=An(y)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),p=this.currentUrlTree.root}return Dn(p,e,d,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=re(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ee,null,r)}navigate(e,r={skipLocationChange:!1}){return Po(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=h({},Uo):r===!1?i=h({},xo):i=r,re(e))return nn(this.currentUrlTree,e,i);let o=this.parseUrl(e);return nn(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let u,a,c;s?(u=s.resolve,a=s.reject,c=s.promise):c=new Promise((p,y)=>{u=p,a=y});let d=this.pendingTasks.add();return Hn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:u,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(p=>Promise.reject(p))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Po(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new b(4008,!1)}function jo(t){return!(t instanceof je)&&!(t instanceof ge)}var dn=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new W;constructor(e,r,i,o,s,u){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=u;let a=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof L&&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)):(re(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let u=this.urlTree;if(u===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,a),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let r=this.href===null?null:Nr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:re(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)(j(z),j(Z),Ur("tabindex"),j(Mt),j(Dt),j(se))};static \u0275dir=Qe({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&Gr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Hr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ye],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ye],replaceUrl:[2,"replaceUrl","replaceUrl",Ye],routerLink:"routerLink"},features:[Fr,We]})}return t})(),ms=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new oe;constructor(e,r,i,o,s){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(u=>{u instanceof L&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(be()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=I(e).pipe(be()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(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=No(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,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)(j(z),j(Dt),j(Mt),j(Ze),j(dn,8))};static \u0275dir=Qe({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Qr(o,dn,5),r&2){let s;Kr(s=Zr())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[We]})}return t})();function No(t){return!!t.paths}var pt=class{},ys=(()=>{class t{preload(e,r){return r().pipe(J(()=>f(null)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cs=(()=>{class t{preload(e,r){return f(null)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Lo=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o,s){this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(X(e=>e instanceof L),ne(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Tt(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,u=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(u,o.children??o._loadedRoutes))}return I(i).pipe(be())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=f(null);let o=i.pipe(M(s=>s===null?f(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return I([o,s]).pipe(be())}else return o})}static \u0275fac=function(r){return new(r||t)(q(z),q(Ke),q(Ie),q(pt),q(hr))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pr=new A(""),Wn=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,r,i,o,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.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 pe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof L?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof K&&e.code===ot.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 at&&(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 at(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Lr()};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function Ss(t,...n){return Er([{provide:me,multi:!0,useValue:t},[],{provide:Z,useFactory:Gn,deps:[z]},{provide:Et,multi:!0,useFactory:Qn},n.map(e=>e.\u0275providers)])}function Gn(t){return t.routerState.root}function F(t,n){return{\u0275kind:t,\u0275providers:n}}function Rs(t){return[{provide:me,multi:!0,useValue:t},[]]}function ws(t={}){return F(4,[{provide:pr,useFactory:()=>{let e=l(xt),r=l(Ge),i=l(mt),o=l(ye);return new Wn(o,i,e,r,t)}}])}function Qn(){let t=l(At);return n=>{let e=t.get(Vr);if(n!==e.components[0])return;let r=t.get(z),i=t.get(Kn);t.get(gr)===1&&r.initialNavigation(),t.get(Zn,null,bt.Optional)?.setUpPreloading(),t.get(pr,null,bt.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Kn=new A("",{factory:()=>new W}),gr=new A("",{providedIn:"root",factory:()=>1});function $o(){return F(2,[{provide:gr,useValue:0},{provide:Ot,multi:!0,deps:[At],useFactory:n=>{let e=n.get(en,Promise.resolve());return()=>e.then(()=>new Promise(r=>{let i=n.get(z),o=n.get(Kn);Hn(i,()=>{r(!0)}),n.get(mt).afterPreactivation=()=>(r(!0),o.closed?f(void 0):o),i.initialNavigation()}))}}])}function ko(){return F(3,[{provide:Ot,multi:!0,useFactory:()=>{let n=l(z);return()=>{n.setUpLocationChangeListener()}}},{provide:gr,useValue:2}])}function bs(){let t=[];return t=[],F(1,t)}var Zn=new A("");function _o(t){return F(0,[{provide:Zn,useExisting:Lo},{provide:pt,useExisting:t}])}function Is(t){return F(5,[{provide:Se,useValue:t}])}function As(){return F(6,[{provide:se,useClass:Ut}])}function Ds(t){return F(7,[{provide:fr,useValue:t}])}function zo(){return F(8,[un,{provide:gt,useExisting:un}])}function Fo(t){let n=[{provide:qn,useValue:Ao},{provide:Bn,useValue:h({skipNextTransition:!!t?.skipInitialTransition},t)}];return F(9,n)}var fn=new A("ROUTER_FORROOT_GUARD"),qo=[Ae,{provide:ye,useClass:fe},z,Fe,{provide:Z,useFactory:Gn,deps:[z]},hr,[]],Ms=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[qo,[],{provide:me,multi:!0,useValue:e},{provide:fn,useFactory:Wo,deps:[[z,new Tr,new Or]]},r?.errorHandler?{provide:fr,useValue:r.errorHandler}:[],{provide:Se,useValue:r||{}},r?.useHash?Vo():Ho(),Bo(),r?.preloadingStrategy?_o(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Go(r):[],r?.bindToComponentInputs?zo().\u0275providers:[],r?.enableViewTransitions?Fo().\u0275providers:[],Qo()]}}static forChild(e){return{ngModule:t,providers:[{provide:me,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)(q(fn,8))};static \u0275mod=zr({type:t});static \u0275inj=Dr({})}return t})();function Bo(){return{provide:pr,useFactory:()=>{let t=l(xt),n=l(Ge),e=l(Se),r=l(mt),i=l(ye);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Wn(i,r,t,n,e)}}}function Vo(){return{provide:se,useClass:Ut}}function Ho(){return{provide:se,useClass:tn}}function Wo(t){return"guarded"}function Go(t){return[t.initialNavigation==="disabled"?ko().\u0275providers:[],t.initialNavigation==="enabledBlocking"?$o().\u0275providers:[]]}var pn=new A("");function Qo(){return[{provide:pn,useFactory:Qn},{provide:Et,multi:!0,useExisting:pn}]}function Ts(t){return t.map(n=>(...e)=>l(n).canMatch(...e))}function Os(t){return t.map(n=>(...e)=>l(n).canActivate(...e))}function Es(t){return t.map(n=>(...e)=>l(n).canActivateChild(...e))}function Us(t){return t.map(n=>(...e)=>l(n).canDeactivate(...e))}function xs(t){return(...n)=>l(t).resolve(...n)}var Ps=new Yr("19.0.1");export{g as a,de as b,Xn as c,V as d,v as e,ee as f,ye as g,fe as h,mi as i,S as j,U as k,pe as l,L as m,O as n,ot as o,B as p,K as q,Pe as r,st as s,qt as t,Bt as u,Vt as v,Ht as w,Wt as x,Gt as y,Qt as z,Kt as A,Zt as B,Yt as C,at as D,Xt as E,Fe as F,ct as G,Z as H,le as I,ht as J,Mi as K,Ti as L,Le as M,zn as N,So as O,Se as P,Ro as Q,me as R,wo as S,dr as T,To as U,ur as V,Hn as W,z as X,dn as Y,ms as Z,pt as _,ys as $,Cs as aa,Lo as ba,Ss as ca,Rs as da,ws as ea,$o as fa,ko as ga,bs as ha,_o as ia,Is as ja,As as ka,Ds as la,zo as ma,Fo as na,qo as oa,Ms as pa,pn as qa,Ts as ra,Os as sa,Es as ta,Us as ua,xs as va,Ps as wa};
1
+ import{b as rn}from"./chunk-FSY6N6QG.js";import{Ea as xt,e as Jr,g as en,j as se,l as tn,m as Ut,n as Ae}from"./chunk-65UFWL3O.js";import{A as Rt,Ac as Ke,B as ie,Ba as jr,C as Rr,E as He,Ec as Ze,F as Q,G as wt,Gb as Wr,H as wr,I as br,Ic as Ye,K as Ir,L as P,M as Ar,N as R,O as b,Pa as Nr,Pc as Xr,R as C,S as Dr,Sa as j,T as Mr,Ta as Lr,U as A,V as bt,W as q,Wa as Mt,Wb as Gr,X as l,Xa as $r,Y as Tr,Z as Or,_ as Er,a as vr,aa as Ie,ba as k,bc as Qr,c as mr,cb as kr,cc as Kr,da as We,dc as Zr,e as yt,eb as Tt,f as Ct,fb as _r,g as W,gb as zr,h as E,ha as It,hb as Qe,ia as Ur,j as G,ja as At,k as I,kb as Fr,l as f,la as xr,m as we,ma as oe,mb as qr,n as yr,na as Ge,nb as Br,o as Cr,p as m,pb as Ot,q as Ve,qb as Et,r as M,ra as Pr,rb as Vr,s as be,sa as Dt,t as Sr,u as St,ub as Hr,w as X,y as J,z as ne,zc as Yr}from"./chunk-UYXZTHXX.js";import{a as h,b as D}from"./chunk-C6Q5SG76.js";var g="primary",_e=Symbol("RouteTitle"),$t=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 de(t){return new $t(t)}function Xn(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 o=0;o<r.length;o++){let s=r[o],u=t[o];if(s[0]===":")i[s.substring(1)]=u;else if(s!==u.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function Jn(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!_(t[e],n[e]))return!1;return!0}function _(t,n){let e=t?kt(t):void 0,r=n?kt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!gn(t[i],n[i]))return!1;return!0}function kt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function gn(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,o)=>r[o]===i)}else return t===n}function vn(t){return t.length>0?t[t.length-1]:null}function Y(t){return yr(t)?t:Br(t)?I(Promise.resolve(t)):f(t)}var ei={exact:yn,subset:Cn},mn={exact:ti,subset:ri,ignored:()=>!0};function nn(t,n,e){return ei[e.paths](t.root,n.root,e.matrixParams)&&mn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function ti(t,n){return _(t,n)}function yn(t,n,e){if(!te(t.segments,n.segments)||!et(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!yn(t.children[r],n.children[r],e))return!1;return!0}function ri(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>gn(t[e],n[e]))}function Cn(t,n,e){return Sn(t,n,n.segments,e)}function Sn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!te(i,e)||n.hasChildren()||!et(i,e,r))}else if(t.segments.length===e.length){if(!te(t.segments,e)||!et(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Cn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!te(t.segments,i)||!et(t.segments,i,r)||!t.children[g]?!1:Sn(t.children[g],n,o,r)}}function et(t,n,e){return n.every((r,i)=>mn[e](t[i].parameters,r.parameters))}var V=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=de(this.queryParams),this._queryParamMap}toString(){return oi.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 tt(this)}},ee=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=de(this.parameters),this._parameterMap}toString(){return wn(this)}};function ni(t,n){return te(t,n)&&t.every((e,r)=>_(e.parameters,n[r].parameters))}function te(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function ii(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===g&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==g&&(e=e.concat(n(i,r)))}),e}var ye=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>new fe,providedIn:"root"})}return t})(),fe=class{parse(n){let e=new zt(n);return new V(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${De(n.root,!0)}`,r=ui(n.queryParams),i=typeof n.fragment=="string"?`#${si(n.fragment)}`:"";return`${e}${r}${i}`}},oi=new fe;function tt(t){return t.segments.map(n=>wn(n)).join("/")}function De(t,n){if(!t.hasChildren())return tt(t);if(n){let e=t.children[g]?De(t.children[g],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==g&&r.push(`${i}:${De(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=ii(t,(r,i)=>i===g?[De(t.children[g],!1)]:[`${i}:${De(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[g]!=null?`${tt(t)}/${e[0]}`:`${tt(t)}/(${e.join("//")})`}}function Rn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xe(t){return Rn(t).replace(/%3B/gi,";")}function si(t){return encodeURI(t)}function _t(t){return Rn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rt(t){return decodeURIComponent(t)}function on(t){return rt(t.replace(/\+/g,"%20"))}function wn(t){return`${_t(t.path)}${ai(t.parameters)}`}function ai(t){return Object.entries(t).map(([n,e])=>`;${_t(n)}=${_t(e)}`).join("")}function ui(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${Xe(e)}=${Xe(i)}`).join("&"):`${Xe(e)}=${Xe(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ci=/^[^\/()?;#]+/;function Pt(t){let n=t.match(ci);return n?n[0]:""}var li=/^[^\/()?;=#]+/;function hi(t){let n=t.match(li);return n?n[0]:""}var di=/^[^=?&#]+/;function fi(t){let n=t.match(di);return n?n[0]:""}var pi=/^[^&#]+/;function gi(t){let n=t.match(pi);return n?n[0]:""}var zt=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[g]=new v(n,e)),r}parseSegment(){let n=Pt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new ee(rt(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=hi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Pt(this.remaining);i&&(r=i,this.capture(r))}n[rt(e)]=rt(r)}parseQueryParam(n){let e=fi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=gi(this.remaining);s&&(r=s,this.capture(r))}let i=on(e),o=on(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Pt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=g);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[g]:new v([],s),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 bn(t){return t.segments.length>0?new v([],{[g]:t}):t}function In(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=In(i);if(r===g&&o.segments.length===0&&o.hasChildren())for(let[s,u]of Object.entries(o.children))n[s]=u;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new v(t.segments,n);return vi(e)}function vi(t){if(t.numberOfChildren===1&&t.children[g]){let n=t.children[g];return new v(t.segments.concat(n.segments),n.children)}return t}function re(t){return t instanceof V}function mi(t,n,e=null,r=null){let i=An(t);return Dn(i,n,e,r)}function An(t){let n;function e(o){let s={};for(let a of o.children){let c=e(a);s[a.outlet]=c}let u=new v(o.url,s);return o===t&&(n=u),u}let r=e(t.root),i=bn(r);return n??i}function Dn(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return jt(i,i,i,e,r);let o=yi(n);if(o.toRoot())return jt(i,i,new v([],{}),e,r);let s=Ci(o,i,t),u=s.processChildren?Oe(s.segmentGroup,s.index,o.commands):Tn(s.segmentGroup,s.index,o.commands);return jt(i,s.segmentGroup,u,e,r)}function nt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function xe(t){return typeof t=="object"&&t!=null&&t.outlets}function jt(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([a,c])=>{o[a]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;t===n?s=e:s=Mn(t,n,e);let u=bn(In(s));return new V(u,o,i)}function Mn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Mn(o,n,e)}),new v(t.segments,r)}var it=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&nt(r[0]))throw new b(4003,!1);let i=r.find(xe);if(i&&i!==vn(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function yi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new it(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let u={};return Object.entries(o.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?e=!0:u===".."?n++:u!=""&&i.push(u))}),i):[...i,o]},[]);return new it(e,n,r)}var ce=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Ci(t,n,e){if(t.isAbsolute)return new ce(n,!0,0);if(!e)return new ce(n,!1,NaN);if(e.parent===null)return new ce(e,!0,0);let r=nt(t.commands[0])?0:1,i=e.segments.length-1+r;return Si(e,i,t.numberOfDoubleDots)}function Si(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new b(4005,!1);i=r.segments.length}return new ce(r,!1,i-o)}function Ri(t){return xe(t[0])?t[0].outlets:{[g]:t}}function Tn(t,n,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return Oe(t,n,e);let r=wi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,r.pathIndex),{});return o.children[g]=new v(t.segments.slice(r.pathIndex),t.children),Oe(o,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?Ft(t,n,e):r.match?Oe(t,0,i):Ft(t,n,e)}function Oe(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=Ri(e),i={};if(Object.keys(r).some(o=>o!==g)&&t.children[g]&&t.numberOfChildren===1&&t.children[g].segments.length===0){let o=Oe(t.children[g],n,e);return new v(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Tn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function wi(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],u=e[r];if(xe(u))break;let a=`${u}`,c=r<e.length-1?e[r+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!an(a,c,s))return o;r+=2}else{if(!an(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Ft(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(xe(o)){let a=bi(o.outlets);return new v(r,a)}if(i===0&&nt(e[0])){let a=t.segments[n];r.push(new ee(a.path,sn(e[0]))),i++;continue}let s=xe(o)?o.outlets[g]:`${o}`,u=i<e.length-1?e[i+1]:null;s&&u&&nt(u)?(r.push(new ee(s,sn(u))),i+=2):(r.push(new ee(s,{})),i++)}return new v(r,{})}function bi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Ft(new v([],{}),0,r))}),n}function sn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function an(t,n,e){return t==e.path&&_(n,e.parameters)}var Ee="imperative",S=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}(S||{}),U=class{id;url;constructor(n,e){this.id=n,this.url=e}},pe=class extends U{type=S.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}')`}},L=class extends U{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},O=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(O||{}),ot=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(ot||{}),B=class extends U{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},K=class extends U{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},Pe=class extends U{error;target;type=S.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})`}},st=class extends U{urlAfterRedirects;state;type=S.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})`}},qt=class extends U{urlAfterRedirects;state;type=S.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})`}},Bt=class extends U{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Vt=class extends U{urlAfterRedirects;state;type=S.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})`}},Ht=class extends U{urlAfterRedirects;state;type=S.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})`}},Wt=class{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Gt=class{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Qt=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kt=class{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Zt=class{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yt=class{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},at=class{routerEvent;position;anchor;type=S.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}')`}},je=class{},ge=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Ii(t,n){return t.providers&&!t._injector&&(t._injector=Tt(t.providers,n,`Route: ${t.path}`)),t._injector??n}function N(t){return t.outlet||g}function Ai(t,n){let e=t.filter(r=>N(r)===n);return e.push(...t.filter(r=>N(r)!==n)),e}function ze(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Xt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return ze(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Fe(this.rootInjector)}},Fe=(()=>{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 Xt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(q(Ie))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ut=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=Jt(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Jt(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=er(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return er(n,this._root).map(e=>e.value)}};function Jt(t,n){if(t===n.value)return n;for(let e of n.children){let r=Jt(t,e);if(r)return r}return null}function er(t,n){if(t===n.value)return[n];for(let e of n.children){let r=er(t,e);if(r.length)return r.unshift(n),r}return[]}var T=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ue(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var ct=class extends ut{snapshot;constructor(n,e){super(n),this.snapshot=e,cr(this,n)}toString(){return this.snapshot.toString()}};function On(t){let n=Di(t),e=new E([new ee("",{})]),r=new E({}),i=new E({}),o=new E({}),s=new E(""),u=new Z(e,r,o,s,i,g,t,n.root);return u.snapshot=n.root,new ct(new T(u,[]),n)}function Di(t){let n={},e={},r={},i="",o=new le([],n,r,i,e,g,t,null,{});return new ht("",new T(o,[]))}var Z=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,u,a){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(m(c=>c[_e]))??f(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(m(n=>de(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(n=>de(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function lt(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.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?.data),t._resolvedData)}:r={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&Un(i)&&(r.resolve[_e]=i.title),r}var le=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[_e]}constructor(n,e,r,i,o,s,u,a,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=u,this.routeConfig=a,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(){return this._paramMap??=de(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=de(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}')`}},ht=class extends ut{url;constructor(n,e){super(e),this.url=n,cr(this,e)}toString(){return En(this._root)}};function cr(t,n){n.value._routerState=t,n.children.forEach(e=>cr(t,e))}function En(t){let n=t.children.length>0?` { ${t.children.map(En).join(", ")} } `:"";return`${t.value}${n}`}function Nt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,_(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),_(n.params,e.params)||t.paramsSubject.next(e.params),Jn(n.url,e.url)||t.urlSubject.next(e.url),_(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function tr(t,n){let e=_(t.params,n.params)&&ni(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||tr(t.parent,n.parent))}function Un(t){return typeof t.title=="string"||t.title===null}var Mi=new A(""),Ti=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=g;activateEvents=new oe;deactivateEvents=new oe;attachEvents=new oe;detachEvents=new oe;routerOutletData=Pr(void 0);parentContexts=l(Fe);location=l($r);changeDetector=l(Ze);inputBinder=l(gt,{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(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new 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){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new rr(e,u,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:a,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Qe({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[We]})}return t})(),rr=class t{route;childContexts;parent;outletData;__ngOutletInjector(n){return new t(this.route,this.childContexts,n,this.outletData)}constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===Z?this.route:n===Fe?this.childContexts:n===Mi?this.outletData:this.parent.get(n,e)}},gt=new A(""),un=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Ve([r.queryParams,r.params,r.data]).pipe(P(([o,s,u],a)=>(u=h(h(h({},o),s),u),a===0?f(u):Promise.resolve(u)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=Xr(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:u}of s.inputs)e.activatedComponentRef.setInput(u,o[u])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function Oi(t,n,e){let r=Ne(t,n._root,e?e._root:void 0);return new ct(r,n)}function Ne(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Ei(t,n,e);return new T(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(u=>Ne(t,u)),s}}let r=Ui(n.value),i=n.children.map(o=>Ne(t,o));return new T(r,i)}}function Ei(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Ne(t,r,i);return Ne(t,r)})}function Ui(t){return new Z(new E(t.url),new E(t.params),new E(t.queryParams),new E(t.fragment),new E(t.data),t.outlet,t.component,t)}var Le=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},xn="ngNavigationCancelingError";function dt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=re(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Pn(!1,O.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Pn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[xn]=!0,e.cancellationCode=n,e}function xi(t){return jn(t)&&re(t.url)}function jn(t){return!!t&&t[xn]}var Pi=(t,n,e,r)=>m(i=>(new nr(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),nr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Nt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ue(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&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,o=ue(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),u=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:u})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ue(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=ue(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Yt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Kt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Nt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(u.contexts),s.attachRef=u.componentRef,s.route=u.route.value,s.outlet&&s.outlet.attach(u.componentRef,u.route.value),Nt(u.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},ft=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},he=class{component;route;constructor(n,e){this.component=n,this.route=e}};function ji(t,n,e){let r=t._root,i=n?n._root:null;return Me(r,i,e,[r.value])}function Ni(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ce(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Mr(t)?t:n.get(t):r}function Me(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ue(n);return t.children.forEach(s=>{Li(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,u])=>Ue(u,e.getContext(s),i)),i}function Li(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,u=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let a=$i(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new ft(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Me(t,n,u?u.children:null,r,i):Me(t,n,e,r,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new he(u.outlet.component,s))}else s&&Ue(n,u,i),i.canActivateChecks.push(new ft(r)),o.component?Me(t,null,u?u.children:null,r,i):Me(t,null,e,r,i);return i}function $i(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!te(t.url,n.url);case"pathParamsOrQueryParamsChange":return!te(t.url,n.url)||!_(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tr(t,n)||!_(t.queryParams,n.queryParams);case"paramsChange":default:return!tr(t,n)}}function Ue(t,n,e){let r=ue(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Ue(s,n.children.getContext(o),e):Ue(s,null,e):Ue(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new he(n.outlet.component,i)):e.canDeactivateChecks.push(new he(null,i)):e.canDeactivateChecks.push(new he(null,i))}function qe(t){return typeof t=="function"}function ki(t){return typeof t=="boolean"}function _i(t){return t&&qe(t.canLoad)}function zi(t){return t&&qe(t.canActivate)}function Fi(t){return t&&qe(t.canActivateChild)}function qi(t){return t&&qe(t.canDeactivate)}function Bi(t){return t&&qe(t.canMatch)}function Nn(t){return t instanceof Cr||t?.name==="EmptyError"}var Je=Symbol("INITIAL_VALUE");function ve(){return P(t=>Ve(t.map(n=>n.pipe(ie(1),Ir(Je)))).pipe(m(n=>{for(let e of n)if(e!==!0){if(e===Je)return Je;if(e===!1||Vi(e))return e}return!0}),X(n=>n!==Je),ie(1)))}function Vi(t){return re(t)||t instanceof Le}function Hi(t,n){return M(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?f(D(h({},e),{guardsResult:!0})):Wi(s,r,i,t).pipe(M(u=>u&&ki(u)?Gi(r,o,t,n):f(u)),m(u=>D(h({},e),{guardsResult:u})))})}function Wi(t,n,e,r){return I(t).pipe(M(i=>Xi(i.component,i.route,e,n,r)),Q(i=>i!==!0,!0))}function Gi(t,n,e,r){return I(n).pipe(ne(i=>Sr(Ki(i.route.parent,r),Qi(i.route,r),Yi(t,i.path,e),Zi(t,i.route,e))),Q(i=>i!==!0,!0))}function Qi(t,n){return t!==null&&n&&n(new Zt(t)),f(!0)}function Ki(t,n){return t!==null&&n&&n(new Qt(t)),f(!0)}function Zi(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return f(!0);let i=r.map(o=>St(()=>{let s=ze(n)??e,u=Ce(o,s),a=zi(u)?u.canActivate(n,t):k(s,()=>u(n,t));return Y(a).pipe(Q())}));return f(i).pipe(ve())}function Yi(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>Ni(s)).filter(s=>s!==null).map(s=>St(()=>{let u=s.guards.map(a=>{let c=ze(s.node)??e,d=Ce(a,c),p=Fi(d)?d.canActivateChild(r,t):k(c,()=>d(r,t));return Y(p).pipe(Q())});return f(u).pipe(ve())}));return f(o).pipe(ve())}function Xi(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return f(!0);let s=o.map(u=>{let a=ze(n)??i,c=Ce(u,a),d=qi(c)?c.canDeactivate(t,n,e,r):k(a,()=>c(t,n,e,r));return Y(d).pipe(Q())});return f(s).pipe(ve())}function Ji(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return f(!0);let o=i.map(s=>{let u=Ce(s,t),a=_i(u)?u.canLoad(n,e):k(t,()=>u(n,e));return Y(a)});return f(o).pipe(ve(),Ln(r))}function Ln(t){return mr(R(n=>{if(typeof n!="boolean")throw dt(t,n)}),m(n=>n===!0))}function eo(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return f(!0);let o=i.map(s=>{let u=Ce(s,t),a=Bi(u)?u.canMatch(n,e):k(t,()=>u(n,e));return Y(a)});return f(o).pipe(ve(),Ln(r))}var $e=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},ke=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ae(t){return we(new $e(t))}function to(t){return we(new b(4e3,!1))}function ro(t){return we(Pn(!1,O.GuardRejected))}var ir=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 f(r);if(i.numberOfChildren>1||!i.children[g])return to(`${n.redirectTo}`);i=i.children[g]}}applyRedirectCommands(n,e,r,i,o){if(typeof e!="string"){let u=e,{queryParams:a,fragment:c,routeConfig:d,url:p,outlet:y,params:$,data:w,title:H}=i,x=k(o,()=>u({params:$,data:w,queryParams:a,fragment:c,routeConfig:d,url:p,outlet:y,title:H}));if(x instanceof V)throw new ke(x);e=x}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new ke(s);return s}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new V(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let u=o.substring(1);r[i]=e[u]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([u,a])=>{s[u]=this.createSegmentGroup(n,a,r,i)}),new v(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,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}},or={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function no(t,n,e,r,i){let o=$n(t,n,e);return o.matched?(r=Ii(n,r),eo(r,n,e,i).pipe(m(s=>s===!0?o:h({},or)))):f(o)}function $n(t,n,e){if(n.path==="**")return io(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},or):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Xn)(e,t,n);if(!i)return h({},or);let o={};Object.entries(i.posParams??{}).forEach(([u,a])=>{o[u]=a.path});let s=i.consumed.length>0?h(h({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function io(t){return{matched:!0,parameters:t.length>0?vn(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function cn(t,n,e,r){return e.length>0&&ao(t,e,r)?{segmentGroup:new v(n,so(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&uo(t,e,r)?{segmentGroup:new v(t.segments,oo(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function oo(t,n,e,r){let i={};for(let o of e)if(vt(t,n,o)&&!r[N(o)]){let s=new v([],{});i[N(o)]=s}return h(h({},r),i)}function so(t,n){let e={};e[g]=n;for(let r of t)if(r.path===""&&N(r)!==g){let i=new v([],{});e[N(r)]=i}return e}function ao(t,n,e){return e.some(r=>vt(t,n,r)&&N(r)!==g)}function uo(t,n,e){return e.some(r=>vt(t,n,r))}function vt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function co(t,n,e){return n.length===0&&!t.children[e]}var sr=class{};function lo(t,n,e,r,i,o,s="emptyOnly"){return new ar(t,n,e,r,i,s,o).recognize()}var ho=31,ar=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,u){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=u,this.applyRedirects=new ir(this.urlSerializer,this.urlTree)}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}recognize(){let n=cn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(m(({children:e,rootSnapshot:r})=>{let i=new T(r,e),o=new ht("",i),s=mi(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new le([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),g,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,g,e).pipe(m(r=>({children:r,rootSnapshot:e})),J(r=>{if(r instanceof ke)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof $e?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,o):this.processSegment(n,e,r,r.segments,i,!0,o).pipe(m(s=>s instanceof T?[s]:[]))}processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return I(o).pipe(ne(s=>{let u=r.children[s],a=Ai(e,s);return this.processSegmentGroup(n,a,u,s,i)}),br((s,u)=>(s.push(...u),s)),Rt(null),wr(),M(s=>{if(s===null)return ae(r);let u=kn(s);return fo(u),f(u)}))}processSegment(n,e,r,i,o,s,u){return I(e).pipe(ne(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,r,i,o,s,u).pipe(J(c=>{if(c instanceof $e)return f(null);throw c}))),Q(a=>!!a),J(a=>{if(Nn(a))return co(r,i,o)?f(new sr):ae(r);throw a}))}processSegmentAgainstRoute(n,e,r,i,o,s,u,a){return N(r)!==s&&(s===g||!vt(i,o,r))?ae(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,a):ae(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,u){let{matched:a,parameters:c,consumedSegments:d,positionalParamSegments:p,remainingSegments:y}=$n(e,i,o);if(!a)return ae(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ho&&(this.allowRedirects=!1));let $=new le(o,c,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,ln(i),N(i),i.component??i._loadedComponent??null,i,hn(i)),w=lt($,u,this.paramsInheritanceStrategy);$.params=Object.freeze(w.params),$.data=Object.freeze(w.data);let H=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,p,$,n);return this.applyRedirects.lineralizeSegments(i,H).pipe(M(x=>this.processSegment(n,r,e,x.concat(y),s,!1,u)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let u=no(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),u.pipe(P(a=>a.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(P(({routes:c})=>{let d=r._loadedInjector??n,{parameters:p,consumedSegments:y,remainingSegments:$}=a,w=new le(y,p,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,ln(r),N(r),r.component??r._loadedComponent??null,r,hn(r)),H=lt(w,s,this.paramsInheritanceStrategy);w.params=Object.freeze(H.params),w.data=Object.freeze(H.data);let{segmentGroup:x,slicedSegments:Re}=cn(e,y,$,c);if(Re.length===0&&x.hasChildren())return this.processChildren(d,c,x,w).pipe(m(Be=>new T(w,Be)));if(c.length===0&&Re.length===0)return f(new T(w,[]));let Yn=N(r)===o;return this.processSegment(d,c,x,Re,Yn?g:o,!0,w).pipe(m(Be=>new T(w,Be instanceof T?[Be]:[])))}))):ae(e)))}getChildConfig(n,e,r){return e.children?f({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?f({routes:e._loadedRoutes,injector:e._loadedInjector}):Ji(n,e,r,this.urlSerializer).pipe(M(i=>i?this.configLoader.loadChildren(n,e).pipe(R(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):ro(e))):f({routes:[],injector:n})}};function fo(t){t.sort((n,e)=>n.value.outlet===g?-1:e.value.outlet===g?1:n.value.outlet.localeCompare(e.value.outlet))}function po(t){let n=t.value.routeConfig;return n&&n.path===""}function kn(t){let n=[],e=new Set;for(let r of t){if(!po(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=kn(r.children);n.push(new T(r.value,i))}return n.filter(r=>!e.has(r))}function ln(t){return t.data||{}}function hn(t){return t.resolve||{}}function go(t,n,e,r,i,o){return M(s=>lo(t,n,e,r,s.extractedUrl,i,o).pipe(m(({state:u,tree:a})=>D(h({},s),{targetSnapshot:u,urlAfterRedirects:a}))))}function vo(t,n){return M(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return f(e);let o=new Set(i.map(a=>a.route)),s=new Set;for(let a of o)if(!s.has(a))for(let c of _n(a))s.add(c);let u=0;return I(s).pipe(ne(a=>o.has(a)?mo(a,r,t,n):(a.data=lt(a,a.parent,t).resolve,f(void 0))),R(()=>u++),wt(1),M(a=>u===s.size?f(e):G))})}function _n(t){let n=t.children.map(e=>_n(e)).flat();return[t,...n]}function mo(t,n,e,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!Un(i)&&(o[_e]=i.title),yo(o,t,n,r).pipe(m(s=>(t._resolvedData=s,t.data=lt(t,t.parent,e).resolve,null)))}function yo(t,n,e,r){let i=kt(t);if(i.length===0)return f({});let o={};return I(i).pipe(M(s=>Co(t[s],n,e,r).pipe(Q(),R(u=>{if(u instanceof Le)throw dt(new fe,u);o[s]=u}))),wt(1),Rr(o),J(s=>Nn(s)?G:we(s)))}function Co(t,n,e,r){let i=ze(n)??r,o=Ce(t,i),s=o.resolve?o.resolve(n,e):k(i,()=>o(n,e));return Y(s)}function Lt(t){return P(n=>{let e=t(n);return e?I(e).pipe(m(()=>n)):f(n)})}var zn=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===g);return r}getResolvedTitleForRoute(e){return e.data[_e]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(So),providedIn:"root"})}return t})(),So=(()=>{class t extends zn{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)(q(rn))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Se=new A("",{providedIn:"root",factory:()=>({})}),Ro=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=_r({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(r,i){r&1&&Wr(0,"router-outlet")},dependencies:[Ti],encapsulation:2})}return t})();function lr(t){let n=t.children&&t.children.map(lr),e=n?D(h({},t),{children:n}):h({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==g&&(e.component=Ro),e}var me=new A(""),hr=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=l(Ke);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=Y(e.loadComponent()).pipe(m(Fn),R(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),He(()=>{this.componentLoaders.delete(e)})),i=new Ct(r,()=>new W).pipe(yt());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return f({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=wo(r,this.compiler,e,this.onLoadEndListener).pipe(He(()=>{this.childrenLoaders.delete(r)})),s=new Ct(o,()=>new W).pipe(yt());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wo(t,n,e,r){return Y(t.loadChildren()).pipe(m(Fn),M(i=>i instanceof kr||Array.isArray(i)?f(i):I(n.compileModuleAsync(i))),m(i=>{r&&r(t);let o,s,u=!1;return Array.isArray(i)?(s=i,u=!0):(o=i.create(e).injector,s=o.get(me,[],{optional:!0,self:!0}).flat()),{routes:s.map(lr),injector:o}}))}function bo(t){return t&&typeof t=="object"&&"default"in t}function Fn(t){return bo(t)?t.default:t}var dr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(Io),providedIn:"root"})}return t})(),Io=(()=>{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})(),qn=new A(""),Bn=new A("");function Ao(t,n,e){let r=t.get(Bn),i=t.get(Jr);return t.get(Ge).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),u=i.startViewTransition(()=>(o(),Do(t))),{onViewTransitionCreated:a}=r;return a&&k(t,()=>a({transition:u,from:n,to:e})),s})}function Do(t){return new Promise(n=>{jr({read:()=>setTimeout(n)},{injector:t})})}var fr=new A(""),mt=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new W;transitionAbortSubject=new W;configLoader=l(hr);environmentInjector=l(Ie);urlSerializer=l(ye);rootContexts=l(Fe);location=l(Ae);inputBindingEnabled=l(gt,{optional:!0})!==null;titleStrategy=l(zn);options=l(Se,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=l(dr);createViewTransition=l(qn,{optional:!0});navigationErrorHandler=l(fr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>f(void 0);rootComponentType=null;constructor(){let e=i=>this.events.next(new Wt(i)),r=i=>this.events.next(new Gt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;this.transitions?.next(D(h(h({},this.transitions.value),e),{id:r}))}setupNavigations(e,r,i){return this.transitions=new E({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Ee,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(o=>o.id!==0),m(o=>D(h({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),P(o=>{let s=!1,u=!1;return f(o).pipe(P(a=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",O.SupersededByNewNavigation),G;this.currentTransition=o,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?D(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&d!=="reload"){let p="";return this.events.next(new K(a.id,this.urlSerializer.serialize(a.rawUrl),p,ot.IgnoredSameUrlNavigation)),a.resolve(!1),G}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return f(a).pipe(P(p=>{let y=this.transitions?.getValue();return this.events.next(new pe(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),y!==this.transitions?.getValue()?G:Promise.resolve(p)}),go(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),R(p=>{o.targetSnapshot=p.targetSnapshot,o.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation=D(h({},this.currentNavigation),{finalUrl:p.urlAfterRedirects});let y=new st(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(y)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:p,extractedUrl:y,source:$,restoredState:w,extras:H}=a,x=new pe(p,this.urlSerializer.serialize(y),$,w);this.events.next(x);let Re=On(this.rootComponentType).snapshot;return this.currentTransition=o=D(h({},a),{targetSnapshot:Re,urlAfterRedirects:y,extras:D(h({},H),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,f(o)}else{let p="";return this.events.next(new K(a.id,this.urlSerializer.serialize(a.extractedUrl),p,ot.IgnoredByUrlHandlingStrategy)),a.resolve(!1),G}}),R(a=>{let c=new qt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),m(a=>(this.currentTransition=o=D(h({},a),{guards:ji(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),o)),Hi(this.environmentInjector,a=>this.events.next(a)),R(a=>{if(o.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw dt(this.urlSerializer,a.guardsResult);let c=new Bt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(c)}),X(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",O.GuardRejected),!1)),Lt(a=>{if(a.guards.canActivateChecks.length)return f(a).pipe(R(c=>{let d=new Vt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),P(c=>{let d=!1;return f(c).pipe(vo(this.paramsInheritanceStrategy,this.environmentInjector),R({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",O.NoDataFromResolver)}}))}),R(c=>{let d=new Ht(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),Lt(a=>{let c=d=>{let p=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(d.routeConfig).pipe(R(y=>{d.component=y}),m(()=>{})));for(let y of d.children)p.push(...c(y));return p};return Ve(c(a.targetSnapshot.root)).pipe(Rt(null),ie(1))}),Lt(()=>this.afterPreactivation()),P(()=>{let{currentSnapshot:a,targetSnapshot:c}=o,d=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return d?I(d).pipe(m(()=>o)):f(o)}),m(a=>{let c=Oi(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=o=D(h({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),R(()=>{this.events.next(new je)}),Pi(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),ie(1),R({next:a=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new L(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{s=!0}}),Ar(this.transitionAbortSubject.pipe(R(a=>{throw a}))),He(()=>{!s&&!u&&this.cancelNavigationTransition(o,"",O.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),J(a=>{if(u=!0,jn(a))this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),a.message,a.cancellationCode)),xi(a)?this.events.next(new ge(a.url,a.navigationBehaviorOptions)):o.resolve(!1);else{let c=new Pe(o.id,this.urlSerializer.serialize(o.extractedUrl),a,o.targetSnapshot??void 0);try{let d=k(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(d instanceof Le){let{message:p,cancellationCode:y}=dt(this.urlSerializer,d);this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),p,y)),this.events.next(new ge(d.redirectTo,d.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return G}))}))}cancelNavigationTransition(e,r,i){let o=new B(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Mo(t){return t!==Ee}var To=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(Oo),providedIn:"root"})}return t})(),ur=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},Oo=(()=>{class t extends ur{static \u0275fac=(()=>{let e;return function(i){return(e||(e=It(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Vn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(Eo),providedIn:"root"})}return t})(),Eo=(()=>{class t extends Vn{location=l(Ae);urlSerializer=l(ye);options=l(Se,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=l(dr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new V;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=On(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&e(r.url,r.state)})}handleRouterEvent(e,r){if(e instanceof pe)this.stateMemento=this.createStateMemento();else if(e instanceof K)this.rawUrlTree=r.initialUrl;else if(e instanceof st){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else e instanceof je?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):e instanceof B&&(e.code===O.GuardRejected||e.code===O.NoDataFromResolver)?this.restoreHistory(r):e instanceof Pe?this.restoreHistory(r,!0):e instanceof L&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let i=e instanceof V?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=h(h({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=h(h({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",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=It(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Te=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Te||{});function Hn(t,n){t.events.pipe(X(e=>e instanceof L||e instanceof B||e instanceof Pe||e instanceof K),m(e=>e instanceof L||e instanceof K?Te.COMPLETE:(e instanceof B?e.code===O.Redirect||e.code===O.SupersededByNewNavigation:!1)?Te.REDIRECTING:Te.FAILED),X(e=>e!==Te.REDIRECTING),ie(1)).subscribe(()=>{n()})}var Uo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},z=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=l(qr);stateManager=l(Vn);options=l(Se,{optional:!0})||{};pendingTasks=l(xr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=l(mt);urlSerializer=l(ye);location=l(Ae);urlHandlingStrategy=l(dr);_events=new W;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=l(To);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=l(me,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!l(gt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new vr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof B&&r.code!==O.Redirect&&r.code!==O.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof L)this.navigated=!0;else if(r instanceof ge){let s=r.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),a=h({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Mo(i.source)},s);this.scheduleNavigation(u,Ee,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}jo(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ee,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",r)},0)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let a=h({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(o.state=a)}let u=this.parseUrl(e);this.scheduleNavigation(u,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(lr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:u,preserveFragment:a}=r,c=a?this.currentUrlTree.fragment:s,d=null;switch(u??this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let p;try{let y=i?i.snapshot:this.routerState.snapshot.root;p=An(y)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),p=this.currentUrlTree.root}return Dn(p,e,d,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=re(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ee,null,r)}navigate(e,r={skipLocationChange:!1}){return Po(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=h({},Uo):r===!1?i=h({},xo):i=r,re(e))return nn(this.currentUrlTree,e,i);let o=this.parseUrl(e);return nn(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let u,a,c;s?(u=s.resolve,a=s.reject,c=s.promise):c=new Promise((p,y)=>{u=p,a=y});let d=this.pendingTasks.add();return Hn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:u,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(p=>Promise.reject(p))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Po(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new b(4008,!1)}function jo(t){return!(t instanceof je)&&!(t instanceof ge)}var dn=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new W;constructor(e,r,i,o,s,u){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=u;let a=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof L&&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)):(re(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let u=this.urlTree;if(u===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,a),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let r=this.href===null?null:Nr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:re(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)(j(z),j(Z),Ur("tabindex"),j(Mt),j(Dt),j(se))};static \u0275dir=Qe({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&Gr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Hr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ye],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ye],replaceUrl:[2,"replaceUrl","replaceUrl",Ye],routerLink:"routerLink"},features:[Fr,We]})}return t})(),ms=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new oe;constructor(e,r,i,o,s){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(u=>{u instanceof L&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(be()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=I(e).pipe(be()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(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=No(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,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)(j(z),j(Dt),j(Mt),j(Ze),j(dn,8))};static \u0275dir=Qe({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Qr(o,dn,5),r&2){let s;Kr(s=Zr())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[We]})}return t})();function No(t){return!!t.paths}var pt=class{},ys=(()=>{class t{preload(e,r){return r().pipe(J(()=>f(null)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cs=(()=>{class t{preload(e,r){return f(null)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Lo=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o,s){this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(X(e=>e instanceof L),ne(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Tt(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,u=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(u,o.children??o._loadedRoutes))}return I(i).pipe(be())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=f(null);let o=i.pipe(M(s=>s===null?f(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return I([o,s]).pipe(be())}else return o})}static \u0275fac=function(r){return new(r||t)(q(z),q(Ke),q(Ie),q(pt),q(hr))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pr=new A(""),Wn=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,r,i,o,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.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 pe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof L?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof K&&e.code===ot.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 at&&(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 at(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Lr()};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function Ss(t,...n){return Er([{provide:me,multi:!0,useValue:t},[],{provide:Z,useFactory:Gn,deps:[z]},{provide:Et,multi:!0,useFactory:Qn},n.map(e=>e.\u0275providers)])}function Gn(t){return t.routerState.root}function F(t,n){return{\u0275kind:t,\u0275providers:n}}function Rs(t){return[{provide:me,multi:!0,useValue:t},[]]}function ws(t={}){return F(4,[{provide:pr,useFactory:()=>{let e=l(xt),r=l(Ge),i=l(mt),o=l(ye);return new Wn(o,i,e,r,t)}}])}function Qn(){let t=l(At);return n=>{let e=t.get(Vr);if(n!==e.components[0])return;let r=t.get(z),i=t.get(Kn);t.get(gr)===1&&r.initialNavigation(),t.get(Zn,null,bt.Optional)?.setUpPreloading(),t.get(pr,null,bt.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Kn=new A("",{factory:()=>new W}),gr=new A("",{providedIn:"root",factory:()=>1});function $o(){return F(2,[{provide:gr,useValue:0},{provide:Ot,multi:!0,deps:[At],useFactory:n=>{let e=n.get(en,Promise.resolve());return()=>e.then(()=>new Promise(r=>{let i=n.get(z),o=n.get(Kn);Hn(i,()=>{r(!0)}),n.get(mt).afterPreactivation=()=>(r(!0),o.closed?f(void 0):o),i.initialNavigation()}))}}])}function ko(){return F(3,[{provide:Ot,multi:!0,useFactory:()=>{let n=l(z);return()=>{n.setUpLocationChangeListener()}}},{provide:gr,useValue:2}])}function bs(){let t=[];return t=[],F(1,t)}var Zn=new A("");function _o(t){return F(0,[{provide:Zn,useExisting:Lo},{provide:pt,useExisting:t}])}function Is(t){return F(5,[{provide:Se,useValue:t}])}function As(){return F(6,[{provide:se,useClass:Ut}])}function Ds(t){return F(7,[{provide:fr,useValue:t}])}function zo(){return F(8,[un,{provide:gt,useExisting:un}])}function Fo(t){let n=[{provide:qn,useValue:Ao},{provide:Bn,useValue:h({skipNextTransition:!!t?.skipInitialTransition},t)}];return F(9,n)}var fn=new A("ROUTER_FORROOT_GUARD"),qo=[Ae,{provide:ye,useClass:fe},z,Fe,{provide:Z,useFactory:Gn,deps:[z]},hr,[]],Ms=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[qo,[],{provide:me,multi:!0,useValue:e},{provide:fn,useFactory:Wo,deps:[[z,new Tr,new Or]]},r?.errorHandler?{provide:fr,useValue:r.errorHandler}:[],{provide:Se,useValue:r||{}},r?.useHash?Vo():Ho(),Bo(),r?.preloadingStrategy?_o(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Go(r):[],r?.bindToComponentInputs?zo().\u0275providers:[],r?.enableViewTransitions?Fo().\u0275providers:[],Qo()]}}static forChild(e){return{ngModule:t,providers:[{provide:me,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)(q(fn,8))};static \u0275mod=zr({type:t});static \u0275inj=Dr({})}return t})();function Bo(){return{provide:pr,useFactory:()=>{let t=l(xt),n=l(Ge),e=l(Se),r=l(mt),i=l(ye);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Wn(i,r,t,n,e)}}}function Vo(){return{provide:se,useClass:Ut}}function Ho(){return{provide:se,useClass:tn}}function Wo(t){return"guarded"}function Go(t){return[t.initialNavigation==="disabled"?ko().\u0275providers:[],t.initialNavigation==="enabledBlocking"?$o().\u0275providers:[]]}var pn=new A("");function Qo(){return[{provide:pn,useFactory:Qn},{provide:Et,multi:!0,useExisting:pn}]}function Ts(t){return t.map(n=>(...e)=>l(n).canMatch(...e))}function Os(t){return t.map(n=>(...e)=>l(n).canActivate(...e))}function Es(t){return t.map(n=>(...e)=>l(n).canActivateChild(...e))}function Us(t){return t.map(n=>(...e)=>l(n).canDeactivate(...e))}function xs(t){return(...n)=>l(t).resolve(...n)}var Ps=new Yr("19.0.4");export{g as a,de as b,Xn as c,V as d,v as e,ee as f,ye as g,fe as h,mi as i,S as j,U as k,pe as l,L as m,O as n,ot as o,B as p,K as q,Pe as r,st as s,qt as t,Bt as u,Vt as v,Ht as w,Wt as x,Gt as y,Qt as z,Kt as A,Zt as B,Yt as C,at as D,Xt as E,Fe as F,ct as G,Z as H,le as I,ht as J,Mi as K,Ti as L,Le as M,zn as N,So as O,Se as P,Ro as Q,me as R,wo as S,dr as T,To as U,ur as V,Hn as W,z as X,dn as Y,ms as Z,pt as _,ys as $,Cs as aa,Lo as ba,Ss as ca,Rs as da,ws as ea,$o as fa,ko as ga,bs as ha,_o as ia,Is as ja,As as ka,Ds as la,zo as ma,Fo as na,qo as oa,Ms as pa,pn as qa,Ts as ra,Os as sa,Es as ta,Us as ua,xs as va,Ps as wa};
@@ -1 +1 @@
1
- import{Ba as s,Ca as r}from"./chunk-5ZK3D2RS.js";import{R as l,X as a,wa as o}from"./chunk-MR4RE3IB.js";var n=class i{platformId=a(o);STORAGE_VERSION="v1";APP_NAME="duplicati";getItemParsed(t,e=!1){return r(this.platformId)?null:JSON.parse(localStorage.getItem(`${this.STORAGE_VERSION}:${e?"presist-duplicati":this.APP_NAME}:${t}`)??"null")}setItemParsed(t,e,m=!1){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${m?"presist-duplicati":this.APP_NAME}:${t}`,JSON.stringify(e))}get length(){return s(this.platformId)?localStorage.length:0}getItem(t){return r(this.platformId)?null:localStorage.getItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)??null}setItem(t,e){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`,e)}removeItem(t){r(this.platformId)||localStorage.removeItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)}clearAllNotCurrentVersion(){if(!r(this.platformId))for(var t in localStorage)!t.startsWith(this.STORAGE_VERSION)&&t.includes(this.APP_NAME)&&localStorage.removeItem(t)}clearAll(){r(this.platformId)||localStorage.clear()}clear(){if(!r(this.platformId))for(var t in localStorage)t.includes(this.APP_NAME)&&!t.includes(`presist-${this.APP_NAME}`)&&localStorage.removeItem(t)}key(t){return r(this.platformId)?null:localStorage.key(t)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac})};export{n as a};
1
+ import{Ba as s,Ca as r}from"./chunk-65UFWL3O.js";import{R as l,X as a,wa as o}from"./chunk-UYXZTHXX.js";var n=class i{platformId=a(o);STORAGE_VERSION="v1";APP_NAME="duplicati";getItemParsed(t,e=!1){return r(this.platformId)?null:JSON.parse(localStorage.getItem(`${this.STORAGE_VERSION}:${e?"presist-duplicati":this.APP_NAME}:${t}`)??"null")}setItemParsed(t,e,m=!1){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${m?"presist-duplicati":this.APP_NAME}:${t}`,JSON.stringify(e))}get length(){return s(this.platformId)?localStorage.length:0}getItem(t){return r(this.platformId)?null:localStorage.getItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)??null}setItem(t,e){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`,e)}removeItem(t){r(this.platformId)||localStorage.removeItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)}clearAllNotCurrentVersion(){if(!r(this.platformId))for(var t in localStorage)!t.startsWith(this.STORAGE_VERSION)&&t.includes(this.APP_NAME)&&localStorage.removeItem(t)}clearAll(){r(this.platformId)||localStorage.clear()}clear(){if(!r(this.platformId))for(var t in localStorage)t.includes(this.APP_NAME)&&!t.includes(`presist-${this.APP_NAME}`)&&localStorage.removeItem(t)}key(t){return r(this.platformId)?null:localStorage.key(t)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac})};export{n as a};
@@ -0,0 +1 @@
1
+ import{c as a,d as b}from"./chunk-2JO4W5FR.js";import"./chunk-FBAABDBH.js";import"./chunk-TEBYIIAM.js";import"./chunk-K5R45UNO.js";import"./chunk-OAL3AILX.js";import"./chunk-5522ZDTF.js";import"./chunk-NN3K5WJK.js";import"./chunk-IBZEQWFY.js";import"./chunk-UUC5AIWR.js";import"./chunk-7WQR24NO.js";import"./chunk-FSY6N6QG.js";import"./chunk-JQGZUGRK.js";import"./chunk-65UFWL3O.js";import"./chunk-UYXZTHXX.js";import"./chunk-C6Q5SG76.js";export{a as createRestoreSelectFilesForm,b as default};
@@ -1 +1 @@
1
- import{a as c}from"./chunk-6M3MNJ52.js";import{a as m}from"./chunk-AKLJ23OZ.js";import{X as u}from"./chunk-J3H4BCHI.js";import{B as e,E as l,Mc as h,N as i,R as a,X as s,Za as o}from"./chunk-MR4RE3IB.js";var p=class r{#e=s(c);#i=s(u);#s=s(m);#t=o(this.#e.getItemParsed("token")??null);#r=o(this.#e.getItemParsed("tokenSetTime")??null);#o=o(!1);tokenSetTime=this.#r.asReadonly();token=this.#t.asReadonly();isLoggingOut=this.#o.asReadonly();#n=h(()=>{if(!this.#t()){this.#e.clearAll(),this.#i.navigate(["/login"]);return}let t=Date.now();this.#e.setItemParsed("tokenSetTime",t),this.#e.setItemParsed("token",this.#t()),this.#r.set(this.#t()?t:null)});login(t="helloworld"){return this.#s.postApiV1AuthLogin({requestBody:{Password:t,RememberMe:!0}}).pipe(e(1),i(n=>this.#t.set(n.AccessToken??null)))}refreshToken(){return this.#s.postApiV1AuthRefresh().pipe(e(1),i(t=>this.#t.set(t.AccessToken??null)))}logout(){this.#o.set(!0),this.#s.postApiV1AuthRefreshLogout().pipe(e(1),l(()=>this.#o.set(!1)),i(t=>{this.#t.set(null),this.#e.clearAll(),this.#i.navigate(["/login"])})).subscribe({error:t=>{this.#t.set(null),this.#e.clearAll(),this.#i.navigate(["/login"])}})}static \u0275fac=function(n){return new(n||r)};static \u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})};export{p as a};
1
+ import{a as c}from"./chunk-AC2LD55W.js";import{a as m}from"./chunk-UUC5AIWR.js";import{X as u}from"./chunk-7WQR24NO.js";import{B as e,E as l,Mc as h,N as i,R as a,X as s,Za as o}from"./chunk-UYXZTHXX.js";var p=class r{#e=s(c);#i=s(u);#s=s(m);#t=o(this.#e.getItemParsed("token")??null);#r=o(this.#e.getItemParsed("tokenSetTime")??null);#o=o(!1);tokenSetTime=this.#r.asReadonly();token=this.#t.asReadonly();isLoggingOut=this.#o.asReadonly();#n=h(()=>{if(!this.#t()){this.#e.clearAll(),this.#i.navigate(["/login"]);return}let t=Date.now();this.#e.setItemParsed("tokenSetTime",t),this.#e.setItemParsed("token",this.#t()),this.#r.set(this.#t()?t:null)});login(t="helloworld"){return this.#s.postApiV1AuthLogin({requestBody:{Password:t,RememberMe:!0}}).pipe(e(1),i(n=>this.#t.set(n.AccessToken??null)))}refreshToken(){return this.#s.postApiV1AuthRefresh().pipe(e(1),i(t=>this.#t.set(t.AccessToken??null)))}logout(){this.#o.set(!0),this.#s.postApiV1AuthRefreshLogout().pipe(e(1),l(()=>this.#o.set(!1)),i(t=>{this.#t.set(null),this.#e.clearAll(),this.#i.navigate(["/login"])})).subscribe({error:t=>{this.#t.set(null),this.#e.clearAll(),this.#i.navigate(["/login"])}})}static \u0275fac=function(n){return new(n||r)};static \u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})};export{p as a};
@@ -1,2 +1,2 @@
1
- import{a as D,t as U}from"./chunk-ED3PEZLO.js";import{a as B}from"./chunk-AKLJ23OZ.js";import"./chunk-5XX7BU4I.js";import{pa as R}from"./chunk-5ZK3D2RS.js";import{Ab as b,Bb as N,Cb as x,Db as I,E as S,Eb as o,Fb as a,Gb as u,Kb as v,Na as T,Ra as l,Sb as p,Wb as A,X as O,Xb as c,Za as d,ea as M,fa as L,fb as f,ic as _,jc as g,lb as E,mc as $,nc as k,oc as y,vb as m,vc as G,wb as P,xb as h,xc as w}from"./chunk-MR4RE3IB.js";import"./chunk-C6Q5SG76.js";function X(s,n){if(s&1&&(o(0,"tr")(1,"td",10)(2,"code"),u(3,"ol",11),a()()()),s&2){let e=c().$implicit,t=c();l(),P("grid-column","1 / -1")("height","auto"),l(2),m("innerHTML",t.breakIntoLines(e.Exception),T)}}function z(s,n){if(s&1){let e=v();o(0,"tr",7),A("click",function(){let i=M(e).$index,r=c();return L(r.toggleRow(i))}),o(1,"td"),_(2),G(3,"date"),a(),o(4,"td",8),_(5),a(),o(6,"td"),_(7),a(),o(8,"td")(9,"button",9)(10,"spk-icon"),_(11,"caret-down"),a()()()(),E(12,X,4,5,"tr")}if(s&2){let e=n.$implicit,t=n.$index,i=c();l(2),g(w(3,6,e.Timestamp,"MMM dd. hh:mm")),l(3),g(e.BackupID>=0?e.BackupID:"-"),l(2),g(e.Message),l(2),h("rotated-icon",t===i.openRowIndex()),l(3),b(t===i.openRowIndex()?12:-1)}}var F=["BackupID","Timestamp","Message","actions"],C=class s{#e=O(B);displayedColumns=d(F);logsLoading=d(!0);openRowIndex=d(null);logs=d([]);ngOnInit(){this.init()}init(){this.#e.getApiV1LogdataLog().pipe(S(()=>this.logsLoading.set(!1))).subscribe({next:n=>{console.log(n),this.logs.set(n)}})}toggleRow(n){this.openRowIndex.set(n===this.openRowIndex()?null:n)}breakIntoLines(n){let e=n.split(`
1
+ import{a as D,u as U}from"./chunk-IBZEQWFY.js";import{a as B}from"./chunk-UUC5AIWR.js";import"./chunk-JQGZUGRK.js";import{pa as R}from"./chunk-65UFWL3O.js";import{Ab as b,Bb as N,Cb as x,Db as I,E as S,Eb as o,Fb as a,Gb as u,Kb as v,Na as T,Ra as l,Sb as p,Wb as A,X as O,Xb as c,Za as d,ea as M,fa as L,fb as f,ic as _,jc as g,lb as E,mc as $,nc as k,oc as y,vb as m,vc as G,wb as P,xb as h,xc as w}from"./chunk-UYXZTHXX.js";import"./chunk-C6Q5SG76.js";function X(s,n){if(s&1&&(o(0,"tr")(1,"td",10)(2,"code"),u(3,"ol",11),a()()()),s&2){let e=c().$implicit,t=c();l(),P("grid-column","1 / -1")("height","auto"),l(2),m("innerHTML",t.breakIntoLines(e.Exception),T)}}function z(s,n){if(s&1){let e=v();o(0,"tr",7),A("click",function(){let i=M(e).$index,r=c();return L(r.toggleRow(i))}),o(1,"td"),_(2),G(3,"date"),a(),o(4,"td",8),_(5),a(),o(6,"td"),_(7),a(),o(8,"td")(9,"button",9)(10,"spk-icon"),_(11,"caret-down"),a()()()(),E(12,X,4,5,"tr")}if(s&2){let e=n.$implicit,t=n.$index,i=c();l(2),g(w(3,6,e.Timestamp,"MMM dd. hh:mm")),l(3),g(e.BackupID>=0?e.BackupID:"-"),l(2),g(e.Message),l(2),h("rotated-icon",t===i.openRowIndex()),l(3),b(t===i.openRowIndex()?12:-1)}}var F=["BackupID","Timestamp","Message","actions"],C=class s{#e=O(B);displayedColumns=d(F);logsLoading=d(!0);openRowIndex=d(null);logs=d([]);ngOnInit(){this.init()}init(){this.#e.getApiV1LogdataLog().pipe(S(()=>this.logsLoading.set(!1))).subscribe({next:n=>{console.log(n),this.logs.set(n)}})}toggleRow(n){this.openRowIndex.set(n===this.openRowIndex()?null:n)}breakIntoLines(n){let e=n.split(`
2
2
  `),t="";for(let i=0;i<e.length;i++)t+=`<li>${e[i]}</li>`;return t}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=f({type:s,selectors:[["app-logs"]],decls:15,vars:2,consts:()=>{let n;n=$localize`Timestamp`;let e;e=$localize`Backup ID`;let t;t=$localize`Message`;let i;return i=$localize`No data available`,[n,e,t,i,[3,"dataChange","data","loading"],["table-header",""],["table-no-rows",""],[3,"click"],[1,"id"],["spk-button","","type","button",1,"outlined","small"],[2,"white-space","pre-wrap"],[1,"line-numbers-ol",3,"innerHTML"]]},template:function(e,t){e&1&&(o(0,"h3"),_(1,"Logs"),a(),o(2,"spk-table",4),y("dataChange",function(r){return k(t.logs,r)||(t.logs=r),r}),o(3,"tr",5)(4,"th"),p(5,0),a(),o(6,"th"),p(7,1),a(),o(8,"th"),p(9,2),a(),u(10,"th"),a(),x(11,z,13,9,null,null,N),o(13,"div",6),p(14,3),a()()),e&2&&(l(2),$("data",t.logs),m("loading",t.logsLoading()),l(9),I(t.logs()))},dependencies:[U,R,D],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}spk-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{C as default};
@@ -1 +1 @@
1
- import{a as xe}from"./chunk-K7H3KYW7.js";import{a as we}from"./chunk-27GCJTV5.js";import{a as K}from"./chunk-N35HGIXN.js";import{a as z}from"./chunk-3NZI2UZ4.js";import"./chunk-KFGIVU27.js";import{a as ke}from"./chunk-DGBBEZNN.js";import"./chunk-EUZXGGH4.js";import{b as V,d as B,e as Re,g as W,h as Fe,j as he,l as Pe,m as Ie,o as ye,p as $e,q as j,r as Ge}from"./chunk-7TWD5GBS.js";import{a as Oe}from"./chunk-6M3MNJ52.js";import{g as be,k as Ae,o as ve,p as De,q as Le}from"./chunk-ED3PEZLO.js";import{a as U}from"./chunk-AKLJ23OZ.js";import"./chunk-5XX7BU4I.js";import"./chunk-OVIL3KMN.js";import"./chunk-5ZK3D2RS.js";import{Ab as N,Bb as y,Cb as $,Db as G,Eb as i,Fb as o,Gb as c,K as v,Kb as M,Kc as X,Mc as Me,Oa as Ce,Qb as O,R as ge,Ra as a,Rb as R,Sb as s,Tb as Q,Ub as Y,Vb as Ee,Wb as p,X as S,Xb as d,Za as E,_b as Ne,c as me,ea as g,fa as C,fb as D,ic as f,jc as b,kc as L,lb as H,mc as k,nc as w,oc as x,p as Te,rc as fe,vb as m,xb as J}from"./chunk-MR4RE3IB.js";import"./chunk-C6Q5SG76.js";var F=class l{#e=S(U);#i=S(z);repeatRegisterTimer=null;state=E("unknown");claimUrl=E(null);registerUrl=E("");status=X(()=>{let e=this.state();return e==="enabled"?"Remote control is enabled but not connected":e==="connected"?"Remote control is connected":e==="registering"?"Registering machine...":e==="registeringfaulted"?"Registration failed":e==="registered"?"Registered, waiting for accept":e==="disabled"?"Remote control is configured but not enabled":e==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=Me(()=>{let e=this.#i.systemInfo();e&&this.registerUrl.set(e.RemoteControlRegistrationUrl??"")});#t(e){e.RegistrationUrl&&this.claimUrl.set(e.RegistrationUrl),e.IsConnected?this.state.set("connected"):e.IsEnabled?this.state.set("enabled"):e.CanEnable?this.state.set("disabled"):e.IsRegisteringFaulted?this.state.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let t=this.state();console.log("currentState: ",t),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),t==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),(t==="enabled"||t==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),e.IsRegistering&&e.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n)})}#n(e){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}deleteRemoteControl(){let e=this;confirm("Are you sure you want to delete the remote control registration?")&&e.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:t=>e.#t(t),error:t=>e.#n(t)})}static \u0275fac=function(t){return new(t||l)};static \u0275prov=ge({token:l,factory:l.\u0275fac,providedIn:"root"})};function We(l,e){if(l&1){let t=M();i(0,"spk-form-field",10)(1,"input",11),x("ngModelChange",function(r){g(t);let u=d(2);return w(u.registerUrl,r)||(u.registerUrl=r),C(r)}),o()(),i(2,"button",12),p("click",function(){g(t);let r=d(2);return C(r.register())}),s(3,0),o()}if(l&2){let t=d(2);a(),k("ngModel",t.registerUrl)}}function je(l,e){if(l&1&&(i(0,"div",8)(1,"label"),s(2,1),o(),i(3,"a",13),f(4),o()()),l&2){let t=d(2);a(3),Ne("href",t.claimUrl(),Ce),a(),b(t.claimUrl())}}function Ke(l,e){l&1&&(i(0,"div",8)(1,"label"),s(2,2),o()())}function qe(l,e){if(l&1){let t=M();i(0,"button",12),p("click",function(){g(t);let r=d(2);return C(r.cancel())}),s(1,3),o()}}function He(l,e){if(l&1){let t=M();i(0,"button",12),p("click",function(){g(t);let r=d(2);return C(r.disable())}),s(1,4),o()}}function Je(l,e){if(l&1){let t=M();i(0,"button",12),p("click",function(){g(t);let r=d(2);return C(r.enable())}),s(1,5),o(),i(2,"button",14),p("click",function(){g(t);let r=d(2);return C(r.delete())}),s(3,6),o()}}function Qe(l,e){if(l&1&&(i(0,"div",7),H(1,We,4,1)(2,je,5,2,"div",8)(3,Ke,3,0,"div",8)(4,qe,2,0,"button",9)(5,He,2,0,"button",9)(6,Je,4,0),o()),l&2){let t=d();a(),N(t.state()==="inactive"?1:-1),a(),N(t.state()==="registered"?2:-1),a(),N(t.state()==="registering"?3:-1),a(),N(t.state()==="registering"||t.state()==="registeringfaulted"||t.state()==="registered"?4:-1),a(),N(t.state()==="connected"||t.state()==="enabled"?5:-1),a(),N(t.state()==="disabled"?6:-1)}}var q=class l{#e=S(F);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}static \u0275fac=function(t){return new(t||l)};static \u0275cmp=D({type:l,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let e;e=$localize`Register for remote control`;let t;t=$localize`Machine is now registered, open this link to add it to your account:`;let n;n=$localize`Registering, please wait...`;let r;r=$localize`Cancel registration`;let u;u=$localize`Disable remote control`;let P;P=$localize`Enable remote control`;let I;return I=$localize`Delete remote control setup`,[e,t,n,r,u,P,I,[1,"field-row"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","warn",3,"click"]]},template:function(t,n){t&1&&H(0,Qe,7,6,"div",7),t&2&&N(n.state()!=="unknown"?0:-1)},dependencies:[j,V,B,W,Ae],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};var Ye=()=>({standalone:!0});function Ze(l,e){if(l&1&&(i(0,"spk-option",32),f(1),o()),l&2){let t=e.$implicit;m("value",t),a(),b(t)}}function et(l,e){if(l&1){let t=M();i(0,"spk-option",51),p("click",function(){let r=g(t).$implicit,u=d();return C(u.pauseSettings.controls.timeType.setValue(r.value))}),f(1),o()}if(l&2){let t=e.$implicit;m("value",t.value),a(),L(" ",t.label," ")}}function tt(l,e){if(l&1&&(i(0,"spk-option",32),f(1),o()),l&2){let t=e.$implicit;m("value",t.value),a(),L(" ",t.label," ")}}function nt(l,e){if(l&1&&(i(0,"spk-option",32),f(1),o()),l&2){let t=e.$implicit;m("value",t.value),a(),L(" ",t.label," ")}}var h=new $e,Ue=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],ze=[{value:"",label:$localize`System default (information)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"none",label:$localize`None / disabled`}],Z=class l{#e=S(ke);#i=S(z);#t=S(U);#n=S(F);#o=S(Oe);#r=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=E("list");langCtrl=E(this.#r);remoteControlStatus=this.#n.status;settingsForm=h.group({pauseSettings:h.group({time:h.control(0),timeType:h.control("s")}),usageStatistics:h.control(""),updateChannel:h.control("")});get pauseSettings(){return this.settingsForm.controls.pauseSettings}languageOptions=X(()=>{let e=this.langCtrl();return e?K.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):K});usageStatisticsOptions=E(ze);timeTypeOptions=E(Ue);timeOptions=xe([this.pauseSettings.controls.timeType.valueChanges.pipe(v("s")),this.pauseSettings.controls.time.valueChanges.pipe(v(null))],me(Te(([e,t])=>{let n=this.#l(e);return t!==null?n.filter(r=>r.toString().includes(t.toString())):n}),v([])));#l(e){let t=e==="h"?25:61;return new Array(t).fill(0).map((n,r)=>r)}ngOnInit(){this.getServerSettings()}saveLocale(e){this.#o.setItem("locale",e),window.location.reload()}submit(){let e=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e,"update-channel":this.settingsForm.controls.updateChannel.value}}).subscribe({next:t=>{console.log("res",t)},error:t=>{console.error("err",t)}})}getServerSettings(){return this.#t.getApiV1Serversettings().subscribe({next:e=>{let t=e["startup-delay"],n=t.slice(-1),r=t.slice(0,-1),u=["s","m","h"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(r==""?"0":r),timeType:u.includes(n)?n:"s"},usageStatistics:e["usage-reporter-level"],updateChannel:e["update-channel"]})}})}languageDisplay(){let e=this;return()=>{let t=e.langCtrl();return t?K.find(n=>n.value===t)?.label??null:null}}typeDisplay(){let e=this;return()=>{let t=e.settingsForm.value.pauseSettings?.timeType;return t==null?null:Ue.find(n=>n.value===t)?.label??null}}usageDisplay(){let e=this;return()=>{let t=e.settingsForm.value.usageStatistics;return t==null?null:ze.find(n=>n.value===t)?.label??null}}setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(t){return new(t||l)};static \u0275cmp=D({type:l,selectors:[["app-settings"]],decls:106,vars:17,consts:()=>{let e;e=$localize`Settings`;let t;t=$localize`Configure your backup settings.`;let n;n=$localize`Save changes`;let r;r=$localize`Remote access control`;let u;u=$localize`Pause after startup or hibernation`;let P;P=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let I;I=$localize`Color theme`;let T;T=$localize`Customize your application theme`;let ee;ee=$localize`Language`;let te;te=$localize`Select a language for the platform`;let ne;ne=$localize`Update channel`;let ie;ie=$localize`Update channel selection is not implemented yet.`;let oe;oe=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) ${"\uFFFD#65\uFFFD\uFFFD/#65\uFFFD"}:TAG_INPUT:`;let re;re=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let le;le=$localize` Stable ${"\uFFFD#71\uFFFD\uFFFD/#71\uFFFD"}:TAG_INPUT:`;let ae;ae=$localize`Official releases`;let se;se=$localize` Beta ${"\uFFFD#77\uFFFD\uFFFD/#77\uFFFD"}:TAG_INPUT:`;let _e;_e=$localize` Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. `;let ue;ue=$localize` Experimental ${"\uFFFD#83\uFFFD\uFFFD/#83\uFFFD"}:TAG_INPUT:`;let pe;pe=$localize`Specific builds for developers only. Not for use with important data.`;let ce;ce=$localize` Canary ${"\uFFFD#89\uFFFD\uFFFD/#89\uFFFD"}:TAG_INPUT:`;let de;de=$localize`Individual builds for developers only. Not for use with important data.`;let Se;Se=$localize`Usage statistics`;let A;return A=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#98\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#98\uFFFD"}:CLOSE_LINK:${"[\uFFFD#99\uFFFD\uFFFD/#99\uFFFD|\uFFFD#100\uFFFD\uFFFD/#100\uFFFD]"}:LINE_BREAK:${"[\uFFFD#99\uFFFD\uFFFD/#99\uFFFD|\uFFFD#100\uFFFD\uFFFD/#100\uFFFD]"}:LINE_BREAK: All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `,A=Ee(A),[e,t,n,r,u,P,I,T,ee,te,ne,ie,oe,re,le,ae,se,_e,ue,pe,ce,de,Se,A,[1,"content",3,"submit","formGroup"],[1,"title"],["type","submit","spk-button","",1,"raised","primary"],[1,"left"],[1,"right"],["formGroupName","pauseSettings",1,"field-row"],[3,"hideClearButton"],["type","search","formControlName","time"],[3,"value"],[3,"displayFn","hideClearButton"],["type","text","formControlName","timeType"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[3,"change","displayFn","hideClearButton"],["type","search",3,"ngModelChange","ngModel","ngModelOptions"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"outlined","primary"],["type","radio","name","updateChannel","value","","formControlName","updateChannel"],["type","radio","name","updateChannel","value","stable","formControlName","updateChannel"],["type","radio","name","updateChannel","value","beta","formControlName","updateChannel"],["type","radio","name","updateChannel","value","experimental","formControlName","updateChannel"],["type","radio","name","updateChannel","value","canary","formControlName","updateChannel"],["href","#"],[3,"displayFn"],["type","text","formControlName","usageStatistics"],[3,"click","value"]]},template:function(t,n){if(t&1&&(c(0,"app-status-bar"),i(1,"form",24),p("submit",function(){return n.submit()}),i(2,"header")(3,"div",25)(4,"h2"),s(5,0),o(),i(6,"p"),s(7,1),o()(),i(8,"button",26),s(9,2),o()(),i(10,"section")(11,"div",27)(12,"h3"),s(13,3),o(),i(14,"p"),f(15),o()(),i(16,"div",28),c(17,"app-remote-control"),o()(),i(18,"section")(19,"div",27)(20,"h3"),s(21,4),o(),i(22,"p"),s(23,5),o()(),i(24,"div",28)(25,"div",29)(26,"spk-select",30),c(27,"input",31),$(28,Ze,2,2,"spk-option",32,y),o(),i(30,"spk-select",33),c(31,"input",34),$(32,et,2,2,"spk-option",32,y),o()()()(),i(34,"section")(35,"div",27)(36,"h3"),s(37,6),o(),i(38,"p"),s(39,7),o()(),i(40,"div",28)(41,"div",35)(42,"img",36),p("click",function(){return n.setLightMode()}),o(),i(43,"img",37),p("click",function(){return n.setDarkMode()}),o()()()(),i(44,"section")(45,"div",27)(46,"h3"),s(47,8),o(),i(48,"p"),s(49,9),o()(),i(50,"div",28)(51,"spk-select",38),p("change",function(u){return n.saveLocale(u)}),i(52,"input",39),x("ngModelChange",function(u){return w(n.langCtrl,u)||(n.langCtrl=u),u}),o(),$(53,tt,2,2,"spk-option",32,y),o()()(),i(55,"section")(56,"div",27)(57,"h3"),s(58,10),o(),i(59,"p"),s(60,11),o()(),i(61,"div",40)(62,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("")}),i(63,"spk-radio",42),O(64,12),c(65,"input",43),R(),o(),i(66,"p"),s(67,13),o()(),i(68,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("stable")}),i(69,"spk-radio",42),O(70,14),c(71,"input",44),R(),o(),i(72,"p"),s(73,15),o()(),i(74,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("beta")}),i(75,"spk-radio",42),O(76,16),c(77,"input",45),R(),o(),i(78,"p"),s(79,17),o()(),i(80,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("experimental")}),i(81,"spk-radio",42),O(82,18),c(83,"input",46),R(),o(),i(84,"p"),s(85,19),o()(),i(86,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("canary")}),i(87,"spk-radio",42),O(88,20),c(89,"input",47),R(),o(),i(90,"p"),s(91,21),o()()()(),i(92,"section")(93,"div",27)(94,"h3"),s(95,22),o(),i(96,"p"),O(97,23),c(98,"a",48)(99,"br")(100,"br"),R(),o()(),i(101,"div",28)(102,"spk-select",49),c(103,"input",50),$(104,nt,2,2,"spk-option",32,y),o()()()()),t&2){let r,u;a(),m("formGroup",n.settingsForm),a(14),b(n.remoteControlStatus()),a(11),m("hideClearButton",!0),a(2),G(n.timeOptions()),a(2),m("displayFn",n.typeDisplay())("hideClearButton",!0),a(2),G(n.timeTypeOptions()),a(10),J("active",!n.isDarkMode()),a(),J("active",n.isDarkMode()),a(8),m("displayFn",n.languageDisplay())("hideClearButton",!0),a(),k("ngModel",n.langCtrl),m("ngModelOptions",fe(16,Ye)),a(),G(n.languageOptions()),a(12),Q((r=n.sysinfo())==null?null:r.DefaultUpdateChannel),Y(64),a(2),Q((u=n.sysinfo())==null?null:u.ServerVersionType),Y(67),a(35),m("displayFn",n.usageDisplay()),a(2),G(n.usageStatisticsOptions())}},dependencies:[j,Fe,V,he,B,Re,W,Ge,Pe,ye,Ie,we,q,De,be,ve,Le],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};export{Z as default};
1
+ import{a as xe}from"./chunk-FBAABDBH.js";import{a as we}from"./chunk-MN2U4RJK.js";import{a as K}from"./chunk-GH3U5NF5.js";import{a as z}from"./chunk-OAL3AILX.js";import"./chunk-5522ZDTF.js";import{a as ke}from"./chunk-BWR2LHUK.js";import"./chunk-7SHJPVM2.js";import{b as V,d as B,e as Re,g as W,h as Fe,j as he,l as Pe,m as Ie,o as ye,p as $e,q as j,r as Ge}from"./chunk-NN3K5WJK.js";import{a as Oe}from"./chunk-AC2LD55W.js";import{g as be,l as Ae,p as ve,q as De,r as Le}from"./chunk-IBZEQWFY.js";import{a as U}from"./chunk-UUC5AIWR.js";import"./chunk-JQGZUGRK.js";import"./chunk-QJZQNKYK.js";import"./chunk-65UFWL3O.js";import{Ab as N,Bb as y,Cb as $,Db as G,Eb as i,Fb as o,Gb as c,K as v,Kb as M,Kc as X,Mc as Me,Oa as Ce,Qb as O,R as ge,Ra as a,Rb as R,Sb as s,Tb as Q,Ub as Y,Vb as Ee,Wb as p,X as S,Xb as d,Za as E,_b as Ne,c as me,ea as g,fa as C,fb as D,ic as f,jc as b,kc as L,lb as H,mc as k,nc as w,oc as x,p as Te,rc as fe,vb as m,xb as J}from"./chunk-UYXZTHXX.js";import"./chunk-C6Q5SG76.js";var F=class l{#e=S(U);#i=S(z);repeatRegisterTimer=null;state=E("unknown");claimUrl=E(null);registerUrl=E("");status=X(()=>{let e=this.state();return e==="enabled"?"Remote control is enabled but not connected":e==="connected"?"Remote control is connected":e==="registering"?"Registering machine...":e==="registeringfaulted"?"Registration failed":e==="registered"?"Registered, waiting for accept":e==="disabled"?"Remote control is configured but not enabled":e==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=Me(()=>{let e=this.#i.systemInfo();e&&this.registerUrl.set(e.RemoteControlRegistrationUrl??"")});#t(e){e.RegistrationUrl&&this.claimUrl.set(e.RegistrationUrl),e.IsConnected?this.state.set("connected"):e.IsEnabled?this.state.set("enabled"):e.CanEnable?this.state.set("disabled"):e.IsRegisteringFaulted?this.state.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let t=this.state();console.log("currentState: ",t),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),t==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),(t==="enabled"||t==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),e.IsRegistering&&e.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n)})}#n(e){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}deleteRemoteControl(){let e=this;confirm("Are you sure you want to delete the remote control registration?")&&e.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:t=>e.#t(t),error:t=>e.#n(t)})}static \u0275fac=function(t){return new(t||l)};static \u0275prov=ge({token:l,factory:l.\u0275fac,providedIn:"root"})};function We(l,e){if(l&1){let t=M();i(0,"spk-form-field",10)(1,"input",11),x("ngModelChange",function(r){g(t);let u=d(2);return w(u.registerUrl,r)||(u.registerUrl=r),C(r)}),o()(),i(2,"button",12),p("click",function(){g(t);let r=d(2);return C(r.register())}),s(3,0),o()}if(l&2){let t=d(2);a(),k("ngModel",t.registerUrl)}}function je(l,e){if(l&1&&(i(0,"div",8)(1,"label"),s(2,1),o(),i(3,"a",13),f(4),o()()),l&2){let t=d(2);a(3),Ne("href",t.claimUrl(),Ce),a(),b(t.claimUrl())}}function Ke(l,e){l&1&&(i(0,"div",8)(1,"label"),s(2,2),o()())}function qe(l,e){if(l&1){let t=M();i(0,"button",12),p("click",function(){g(t);let r=d(2);return C(r.cancel())}),s(1,3),o()}}function He(l,e){if(l&1){let t=M();i(0,"button",12),p("click",function(){g(t);let r=d(2);return C(r.disable())}),s(1,4),o()}}function Je(l,e){if(l&1){let t=M();i(0,"button",12),p("click",function(){g(t);let r=d(2);return C(r.enable())}),s(1,5),o(),i(2,"button",14),p("click",function(){g(t);let r=d(2);return C(r.delete())}),s(3,6),o()}}function Qe(l,e){if(l&1&&(i(0,"div",7),H(1,We,4,1)(2,je,5,2,"div",8)(3,Ke,3,0,"div",8)(4,qe,2,0,"button",9)(5,He,2,0,"button",9)(6,Je,4,0),o()),l&2){let t=d();a(),N(t.state()==="inactive"?1:-1),a(),N(t.state()==="registered"?2:-1),a(),N(t.state()==="registering"?3:-1),a(),N(t.state()==="registering"||t.state()==="registeringfaulted"||t.state()==="registered"?4:-1),a(),N(t.state()==="connected"||t.state()==="enabled"?5:-1),a(),N(t.state()==="disabled"?6:-1)}}var q=class l{#e=S(F);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}static \u0275fac=function(t){return new(t||l)};static \u0275cmp=D({type:l,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let e;e=$localize`Register for remote control`;let t;t=$localize`Machine is now registered, open this link to add it to your account:`;let n;n=$localize`Registering, please wait...`;let r;r=$localize`Cancel registration`;let u;u=$localize`Disable remote control`;let P;P=$localize`Enable remote control`;let I;return I=$localize`Delete remote control setup`,[e,t,n,r,u,P,I,[1,"field-row"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","warn",3,"click"]]},template:function(t,n){t&1&&H(0,Qe,7,6,"div",7),t&2&&N(n.state()!=="unknown"?0:-1)},dependencies:[j,V,B,W,Ae],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};var Ye=()=>({standalone:!0});function Ze(l,e){if(l&1&&(i(0,"spk-option",32),f(1),o()),l&2){let t=e.$implicit;m("value",t),a(),b(t)}}function et(l,e){if(l&1){let t=M();i(0,"spk-option",51),p("click",function(){let r=g(t).$implicit,u=d();return C(u.pauseSettings.controls.timeType.setValue(r.value))}),f(1),o()}if(l&2){let t=e.$implicit;m("value",t.value),a(),L(" ",t.label," ")}}function tt(l,e){if(l&1&&(i(0,"spk-option",32),f(1),o()),l&2){let t=e.$implicit;m("value",t.value),a(),L(" ",t.label," ")}}function nt(l,e){if(l&1&&(i(0,"spk-option",32),f(1),o()),l&2){let t=e.$implicit;m("value",t.value),a(),L(" ",t.label," ")}}var h=new $e,Ue=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],ze=[{value:"",label:$localize`System default (information)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"none",label:$localize`None / disabled`}],Z=class l{#e=S(ke);#i=S(z);#t=S(U);#n=S(F);#o=S(Oe);#r=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=E("list");langCtrl=E(this.#r);remoteControlStatus=this.#n.status;settingsForm=h.group({pauseSettings:h.group({time:h.control(0),timeType:h.control("s")}),usageStatistics:h.control(""),updateChannel:h.control("")});get pauseSettings(){return this.settingsForm.controls.pauseSettings}languageOptions=X(()=>{let e=this.langCtrl();return e?K.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):K});usageStatisticsOptions=E(ze);timeTypeOptions=E(Ue);timeOptions=xe([this.pauseSettings.controls.timeType.valueChanges.pipe(v("s")),this.pauseSettings.controls.time.valueChanges.pipe(v(null))],me(Te(([e,t])=>{let n=this.#l(e);return t!==null?n.filter(r=>r.toString().includes(t.toString())):n}),v([])));#l(e){let t=e==="h"?25:61;return new Array(t).fill(0).map((n,r)=>r)}ngOnInit(){this.getServerSettings()}saveLocale(e){this.#o.setItem("locale",e),window.location.reload()}submit(){let e=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e,"update-channel":this.settingsForm.controls.updateChannel.value}}).subscribe({next:t=>{console.log("res",t)},error:t=>{console.error("err",t)}})}getServerSettings(){return this.#t.getApiV1Serversettings().subscribe({next:e=>{let t=e["startup-delay"],n=t.slice(-1),r=t.slice(0,-1),u=["s","m","h"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(r==""?"0":r),timeType:u.includes(n)?n:"s"},usageStatistics:e["usage-reporter-level"],updateChannel:e["update-channel"]})}})}languageDisplay(){let e=this;return()=>{let t=e.langCtrl();return t?K.find(n=>n.value===t)?.label??null:null}}typeDisplay(){let e=this;return()=>{let t=e.settingsForm.value.pauseSettings?.timeType;return t==null?null:Ue.find(n=>n.value===t)?.label??null}}usageDisplay(){let e=this;return()=>{let t=e.settingsForm.value.usageStatistics;return t==null?null:ze.find(n=>n.value===t)?.label??null}}setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(t){return new(t||l)};static \u0275cmp=D({type:l,selectors:[["app-settings"]],decls:106,vars:17,consts:()=>{let e;e=$localize`Settings`;let t;t=$localize`Configure your backup settings.`;let n;n=$localize`Save changes`;let r;r=$localize`Remote access control`;let u;u=$localize`Pause after startup or hibernation`;let P;P=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let I;I=$localize`Color theme`;let T;T=$localize`Customize your application theme`;let ee;ee=$localize`Language`;let te;te=$localize`Select a language for the platform`;let ne;ne=$localize`Update channel`;let ie;ie=$localize`Update channel selection is not implemented yet.`;let oe;oe=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) ${"\uFFFD#65\uFFFD\uFFFD/#65\uFFFD"}:TAG_INPUT:`;let re;re=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let le;le=$localize` Stable ${"\uFFFD#71\uFFFD\uFFFD/#71\uFFFD"}:TAG_INPUT:`;let ae;ae=$localize`Official releases`;let se;se=$localize` Beta ${"\uFFFD#77\uFFFD\uFFFD/#77\uFFFD"}:TAG_INPUT:`;let _e;_e=$localize` Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. `;let ue;ue=$localize` Experimental ${"\uFFFD#83\uFFFD\uFFFD/#83\uFFFD"}:TAG_INPUT:`;let pe;pe=$localize`Specific builds for developers only. Not for use with important data.`;let ce;ce=$localize` Canary ${"\uFFFD#89\uFFFD\uFFFD/#89\uFFFD"}:TAG_INPUT:`;let de;de=$localize`Individual builds for developers only. Not for use with important data.`;let Se;Se=$localize`Usage statistics`;let A;return A=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#98\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#98\uFFFD"}:CLOSE_LINK:${"[\uFFFD#99\uFFFD\uFFFD/#99\uFFFD|\uFFFD#100\uFFFD\uFFFD/#100\uFFFD]"}:LINE_BREAK:${"[\uFFFD#99\uFFFD\uFFFD/#99\uFFFD|\uFFFD#100\uFFFD\uFFFD/#100\uFFFD]"}:LINE_BREAK: All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `,A=Ee(A),[e,t,n,r,u,P,I,T,ee,te,ne,ie,oe,re,le,ae,se,_e,ue,pe,ce,de,Se,A,[1,"content",3,"submit","formGroup"],[1,"title"],["type","submit","spk-button","",1,"raised","primary"],[1,"left"],[1,"right"],["formGroupName","pauseSettings",1,"field-row"],[3,"hideClearButton"],["type","search","formControlName","time"],[3,"value"],[3,"displayFn","hideClearButton"],["type","text","formControlName","timeType"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[3,"change","displayFn","hideClearButton"],["type","search",3,"ngModelChange","ngModel","ngModelOptions"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"outlined","primary"],["type","radio","name","updateChannel","value","","formControlName","updateChannel"],["type","radio","name","updateChannel","value","stable","formControlName","updateChannel"],["type","radio","name","updateChannel","value","beta","formControlName","updateChannel"],["type","radio","name","updateChannel","value","experimental","formControlName","updateChannel"],["type","radio","name","updateChannel","value","canary","formControlName","updateChannel"],["href","#"],[3,"displayFn"],["type","text","formControlName","usageStatistics"],[3,"click","value"]]},template:function(t,n){if(t&1&&(c(0,"app-status-bar"),i(1,"form",24),p("submit",function(){return n.submit()}),i(2,"header")(3,"div",25)(4,"h2"),s(5,0),o(),i(6,"p"),s(7,1),o()(),i(8,"button",26),s(9,2),o()(),i(10,"section")(11,"div",27)(12,"h3"),s(13,3),o(),i(14,"p"),f(15),o()(),i(16,"div",28),c(17,"app-remote-control"),o()(),i(18,"section")(19,"div",27)(20,"h3"),s(21,4),o(),i(22,"p"),s(23,5),o()(),i(24,"div",28)(25,"div",29)(26,"spk-select",30),c(27,"input",31),$(28,Ze,2,2,"spk-option",32,y),o(),i(30,"spk-select",33),c(31,"input",34),$(32,et,2,2,"spk-option",32,y),o()()()(),i(34,"section")(35,"div",27)(36,"h3"),s(37,6),o(),i(38,"p"),s(39,7),o()(),i(40,"div",28)(41,"div",35)(42,"img",36),p("click",function(){return n.setLightMode()}),o(),i(43,"img",37),p("click",function(){return n.setDarkMode()}),o()()()(),i(44,"section")(45,"div",27)(46,"h3"),s(47,8),o(),i(48,"p"),s(49,9),o()(),i(50,"div",28)(51,"spk-select",38),p("change",function(u){return n.saveLocale(u)}),i(52,"input",39),x("ngModelChange",function(u){return w(n.langCtrl,u)||(n.langCtrl=u),u}),o(),$(53,tt,2,2,"spk-option",32,y),o()()(),i(55,"section")(56,"div",27)(57,"h3"),s(58,10),o(),i(59,"p"),s(60,11),o()(),i(61,"div",40)(62,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("")}),i(63,"spk-radio",42),O(64,12),c(65,"input",43),R(),o(),i(66,"p"),s(67,13),o()(),i(68,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("stable")}),i(69,"spk-radio",42),O(70,14),c(71,"input",44),R(),o(),i(72,"p"),s(73,15),o()(),i(74,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("beta")}),i(75,"spk-radio",42),O(76,16),c(77,"input",45),R(),o(),i(78,"p"),s(79,17),o()(),i(80,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("experimental")}),i(81,"spk-radio",42),O(82,18),c(83,"input",46),R(),o(),i(84,"p"),s(85,19),o()(),i(86,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("canary")}),i(87,"spk-radio",42),O(88,20),c(89,"input",47),R(),o(),i(90,"p"),s(91,21),o()()()(),i(92,"section")(93,"div",27)(94,"h3"),s(95,22),o(),i(96,"p"),O(97,23),c(98,"a",48)(99,"br")(100,"br"),R(),o()(),i(101,"div",28)(102,"spk-select",49),c(103,"input",50),$(104,nt,2,2,"spk-option",32,y),o()()()()),t&2){let r,u;a(),m("formGroup",n.settingsForm),a(14),b(n.remoteControlStatus()),a(11),m("hideClearButton",!0),a(2),G(n.timeOptions()),a(2),m("displayFn",n.typeDisplay())("hideClearButton",!0),a(2),G(n.timeTypeOptions()),a(10),J("active",!n.isDarkMode()),a(),J("active",n.isDarkMode()),a(8),m("displayFn",n.languageDisplay())("hideClearButton",!0),a(),k("ngModel",n.langCtrl),m("ngModelOptions",fe(16,Ye)),a(),G(n.languageOptions()),a(12),Q((r=n.sysinfo())==null?null:r.DefaultUpdateChannel),Y(64),a(2),Q((u=n.sysinfo())==null?null:u.ServerVersionType),Y(67),a(35),m("displayFn",n.usageDisplay()),a(2),G(n.usageStatisticsOptions())}},dependencies:[j,Fe,V,he,B,Re,W,Ge,Pe,ye,Ie,we,q,De,be,ve,Le],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};export{Z as default};