@ngocsangairvds/vsaf 5.1.6 → 5.1.7

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 (77) hide show
  1. package/package.json +1 -1
  2. package/packages/cli/dist/adapters/antigravity.d.ts.map +1 -1
  3. package/packages/cli/dist/adapters/antigravity.js +9 -30
  4. package/packages/cli/dist/adapters/antigravity.js.map +1 -1
  5. package/packages/cli/dist/adapters/claude.d.ts.map +1 -1
  6. package/packages/cli/dist/adapters/claude.js +8 -10
  7. package/packages/cli/dist/adapters/claude.js.map +1 -1
  8. package/packages/cli/dist/adapters/codex.d.ts.map +1 -1
  9. package/packages/cli/dist/adapters/codex.js +6 -9
  10. package/packages/cli/dist/adapters/codex.js.map +1 -1
  11. package/packages/cli/dist/adapters/cursor.d.ts.map +1 -1
  12. package/packages/cli/dist/adapters/cursor.js +22 -24
  13. package/packages/cli/dist/adapters/cursor.js.map +1 -1
  14. package/packages/cli/dist/commands/init.d.ts.map +1 -1
  15. package/packages/cli/dist/commands/init.js +7 -19
  16. package/packages/cli/dist/commands/init.js.map +1 -1
  17. package/packages/cli/dist/commands/install.d.ts +3 -6
  18. package/packages/cli/dist/commands/install.d.ts.map +1 -1
  19. package/packages/cli/dist/commands/install.js +6 -9
  20. package/packages/cli/dist/commands/install.js.map +1 -1
  21. package/packages/cli/dist/commands/skill.d.ts.map +1 -1
  22. package/packages/cli/dist/commands/skill.js +35 -14
  23. package/packages/cli/dist/commands/skill.js.map +1 -1
  24. package/packages/cli/dist/index.js +2 -2
  25. package/packages/cli/dist/index.js.map +1 -1
  26. package/packages/cli/dist/install/orchestrator.d.ts +0 -8
  27. package/packages/cli/dist/install/orchestrator.d.ts.map +1 -1
  28. package/packages/cli/dist/install/orchestrator.js +3 -54
  29. package/packages/cli/dist/install/orchestrator.js.map +1 -1
  30. package/packages/cli/dist/server/routes/runs.d.ts.map +1 -1
  31. package/packages/cli/dist/server/routes/runs.js +81 -3
  32. package/packages/cli/dist/server/routes/runs.js.map +1 -1
  33. package/packages/cli/dist/server/routes/workflows.d.ts.map +1 -1
  34. package/packages/cli/dist/server/routes/workflows.js +76 -17
  35. package/packages/cli/dist/server/routes/workflows.js.map +1 -1
  36. package/packages/cli/dist/server/services/execution-manager.d.ts +11 -1
  37. package/packages/cli/dist/server/services/execution-manager.d.ts.map +1 -1
  38. package/packages/cli/dist/server/services/execution-manager.js +88 -17
  39. package/packages/cli/dist/server/services/execution-manager.js.map +1 -1
  40. package/packages/cli/dist/server/static.d.ts.map +1 -1
  41. package/packages/cli/dist/server/static.js +4 -1
  42. package/packages/cli/dist/server/static.js.map +1 -1
  43. package/packages/cli/dist/server/workflow-path.d.ts +3 -0
  44. package/packages/cli/dist/server/workflow-path.d.ts.map +1 -0
  45. package/packages/cli/dist/server/workflow-path.js +25 -0
  46. package/packages/cli/dist/server/workflow-path.js.map +1 -0
  47. package/packages/core/dist/store/recovery.d.ts.map +1 -1
  48. package/packages/core/dist/store/recovery.js +12 -1
  49. package/packages/core/dist/store/recovery.js.map +1 -1
  50. package/packages/core/dist/store/run-store.d.ts +3 -0
  51. package/packages/core/dist/store/run-store.d.ts.map +1 -1
  52. package/packages/core/dist/store/run-store.js +33 -0
  53. package/packages/core/dist/store/run-store.js.map +1 -1
  54. package/packages/core/dist/store/types.d.ts +2 -2
  55. package/packages/core/dist/store/types.d.ts.map +1 -1
  56. package/packages/core/dist/store/types.js.map +1 -1
  57. package/packages/core/dist/store/wal.js +1 -1
  58. package/packages/core/dist/store/wal.js.map +1 -1
  59. package/packages/web/dist/web/3rdpartylicenses.txt +26 -26
  60. package/packages/web/dist/web/browser/chunk-4YPNNQ2T.js +4 -0
  61. package/packages/web/dist/web/browser/chunk-E227ZHPJ.js +1 -0
  62. package/packages/web/dist/web/browser/chunk-JFBK3MNW.js +1 -0
  63. package/packages/web/dist/web/browser/chunk-L2VOQBBI.js +1 -0
  64. package/packages/web/dist/web/browser/chunk-OJJM5VOH.js +1 -0
  65. package/packages/web/dist/web/browser/chunk-U2H3QYAG.js +5 -0
  66. package/packages/web/dist/web/browser/chunk-VA7KFQOR.js +1 -0
  67. package/packages/web/dist/web/browser/chunk-WV3C6DNH.js +1 -0
  68. package/packages/web/dist/web/browser/index.html +2 -2
  69. package/packages/web/dist/web/browser/main-THGFWXYL.js +1 -0
  70. package/packages/web/dist/web/browser/{styles-JBPZVY54.css → styles-PWTTI45T.css} +1 -1
  71. package/packages/web/dist/web/browser/chunk-IPMFXW6N.js +0 -1
  72. package/packages/web/dist/web/browser/chunk-IX2QWMX2.js +0 -1
  73. package/packages/web/dist/web/browser/chunk-QMAH5NZC.js +0 -1
  74. package/packages/web/dist/web/browser/chunk-RGFLNLPM.js +0 -1
  75. package/packages/web/dist/web/browser/chunk-RKWDHBN3.js +0 -5
  76. package/packages/web/dist/web/browser/chunk-XGYEZIV4.js +0 -1
  77. package/packages/web/dist/web/browser/main-IIUZVPMI.js +0 -1
@@ -0,0 +1,5 @@
1
+ var cv=Object.defineProperty,uv=Object.defineProperties;var lv=Object.getOwnPropertyDescriptors;var Xd=Object.getOwnPropertySymbols;var dv=Object.prototype.hasOwnProperty,fv=Object.prototype.propertyIsEnumerable;var ef=(e,t,n)=>t in e?cv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||={})dv.call(t,n)&&ef(e,n,t[n]);if(Xd)for(var n of Xd(t))fv.call(t,n)&&ef(e,n,t[n]);return e},U=(e,t)=>uv(e,lv(t));var $=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function M(e){return typeof e=="function"}function Wn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var hi=Wn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
+ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n});function zr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var se=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(M(r))try{r()}catch(i){t=i instanceof hi?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{tf(i)}catch(s){t=t??[],s instanceof hi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new hi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)tf(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&zr(n,t)}remove(t){let{_finalizers:n}=this;n&&zr(n,t),t instanceof e&&t._removeParent(this)}};se.EMPTY=(()=>{let e=new se;return e.closed=!0,e})();var ic=se.EMPTY;function pi(e){return e instanceof se||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function tf(e){M(e)?e():e.unsubscribe()}var Ge={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var qn={setTimeout(e,t,...n){let{delegate:r}=qn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=qn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function gi(e){qn.setTimeout(()=>{let{onUnhandledError:t}=Ge;if(t)t(e);else throw e})}function Gr(){}var nf=sc("C",void 0,void 0);function rf(e){return sc("E",void 0,e)}function of(e){return sc("N",e,void 0)}function sc(e,t,n){return{kind:e,value:t,error:n}}var sn=null;function Zn(e){if(Ge.useDeprecatedSynchronousErrorHandling){let t=!sn;if(t&&(sn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=sn;if(sn=null,n)throw r}}else e()}function sf(e){Ge.useDeprecatedSynchronousErrorHandling&&sn&&(sn.errorThrown=!0,sn.error=e)}var an=class extends se{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,pi(t)&&t.add(this)):this.destination=gv}static create(t,n,r){return new Yn(t,n,r)}next(t){this.isStopped?cc(of(t),this):this._next(t)}error(t){this.isStopped?cc(rf(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?cc(nf,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},hv=Function.prototype.bind;function ac(e,t){return hv.call(e,t)}var uc=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){mi(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){mi(r)}else mi(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){mi(n)}}},Yn=class extends an{constructor(t,n,r){super();let o;if(M(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Ge.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ac(t.next,i),error:t.error&&ac(t.error,i),complete:t.complete&&ac(t.complete,i)}):o=t}this.destination=new uc(o)}};function mi(e){Ge.useDeprecatedSynchronousErrorHandling?sf(e):gi(e)}function pv(e){throw e}function cc(e,t){let{onStoppedNotification:n}=Ge;n&&qn.setTimeout(()=>n(e,t))}var gv={closed:!0,next:Gr,error:pv,complete:Gr};var Qn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function We(e){return e}function lc(...e){return dc(e)}function dc(e){return e.length===0?We:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var x=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=yv(n)?n:new Yn(n,r,o);return Zn(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=af(r),new r((o,i)=>{let s=new Yn({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Qn](){return this}pipe(...n){return dc(n)(this)}toPromise(n){return n=af(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function af(e){var t;return(t=e??Ge.Promise)!==null&&t!==void 0?t:Promise}function mv(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function yv(e){return e&&e instanceof an||mv(e)&&pi(e)}var{isArray:vv}=Array,{getPrototypeOf:Dv,prototype:Ev,keys:Iv}=Object;function yi(e){if(e.length===1){let t=e[0];if(vv(t))return{args:t,keys:null};if(wv(t)){let n=Iv(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function wv(e){return e&&typeof e=="object"&&Dv(e)===Ev}function uf(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function cf(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function cn(e){return this instanceof cn?(this.v=e,this):new cn(e)}function lf(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(h){return function(g){return Promise.resolve(g).then(h,d)}}function a(h,g){r[h]&&(o[h]=function(C){return new Promise(function(D,I){i.push([h,C,D,I])>1||c(h,C)})},g&&(o[h]=g(o[h])))}function c(h,g){try{u(r[h](g))}catch(C){f(i[0][3],C)}}function u(h){h.value instanceof cn?Promise.resolve(h.value.v).then(l,d):f(i[0][2],h)}function l(h){c("next",h)}function d(h){c("throw",h)}function f(h,g){h(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function df(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof cf=="function"?cf(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var vi=e=>e&&typeof e.length=="number"&&typeof e!="function";function Di(e){return M(e?.then)}function Ei(e){return M(e[Qn])}function Ii(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function wi(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Cv(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ci=Cv();function bi(e){return M(e?.[Ci])}function Ti(e){return lf(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield cn(n.read());if(o)return yield cn(void 0);yield yield cn(r)}}finally{n.releaseLock()}})}function Si(e){return M(e?.getReader)}function re(e){if(e instanceof x)return e;if(e!=null){if(Ei(e))return bv(e);if(vi(e))return Tv(e);if(Di(e))return Sv(e);if(Ii(e))return ff(e);if(bi(e))return _v(e);if(Si(e))return Mv(e)}throw wi(e)}function bv(e){return new x(t=>{let n=e[Qn]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Tv(e){return new x(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Sv(e){return new x(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,gi)})}function _v(e){return new x(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function ff(e){return new x(t=>{Nv(e,t).catch(n=>t.error(n))})}function Mv(e){return ff(Ti(e))}function Nv(e,t){var n,r,o,i;return uf(this,void 0,void 0,function*(){try{for(n=df(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function hf(e){return e&&M(e.schedule)}function pf(e){return e[e.length-1]}function _i(e){return M(pf(e))?e.pop():void 0}function jt(e){return hf(pf(e))?e.pop():void 0}function P(e,t,n,r,o){return new fc(e,t,n,r,o)}var fc=class extends an{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function Rv(e){return M(e?.lift)}function F(e){return t=>{if(Rv(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function V(e,t){return F((n,r)=>{let o=0;n.subscribe(P(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Av}=Array;function xv(e,t){return Av(t)?e(...t):e(t)}function Mi(e){return V(t=>xv(e,t))}function Ni(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Ov(...e){let t=_i(e),{args:n,keys:r}=yi(e),o=new x(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=!1;re(n[l]).subscribe(P(i,f=>{d||(d=!0,u--),a[l]=f},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?Ni(r,a):a),i.complete())}))}});return t?o.pipe(Mi(t)):o}function Kn(e){return F((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}var gf=Wn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ue=(()=>{class e extends x{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Ri(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new gf}next(n){Zn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Zn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Zn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?ic:(this.currentObservers=null,i.push(n),new se(()=>{this.currentObservers=null,zr(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new x;return n.source=this,n}}return e.create=(t,n)=>new Ri(t,n),e})(),Ri=class extends ue{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ic}};var he=class extends ue{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var pe=new x(e=>e.complete());function _e(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Ai(e,t=0){return F((n,r)=>{n.subscribe(P(r,o=>_e(r,e,()=>r.next(o),t),()=>_e(r,e,()=>r.complete(),t),o=>_e(r,e,()=>r.error(o),t)))})}function xi(e,t=0){return F((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function mf(e,t){return re(e).pipe(xi(t),Ai(t))}function yf(e,t){return re(e).pipe(xi(t),Ai(t))}function vf(e,t){return new x(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Df(e,t){return new x(n=>{let r;return _e(n,t,()=>{r=e[Ci](),_e(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>M(r?.return)&&r.return()})}function Oi(e,t){if(!e)throw new Error("Iterable cannot be null");return new x(n=>{_e(n,t,()=>{let r=e[Symbol.asyncIterator]();_e(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Ef(e,t){return Oi(Ti(e),t)}function If(e,t){if(e!=null){if(Ei(e))return mf(e,t);if(vi(e))return vf(e,t);if(Di(e))return yf(e,t);if(Ii(e))return Oi(e,t);if(bi(e))return Df(e,t);if(Si(e))return Ef(e,t)}throw wi(e)}function K(e,t){return t?If(e,t):re(e)}function A(...e){let t=jt(e);return K(e,t)}function hc(e,t){let n=M(e)?e:()=>e,r=o=>o.error(n());return new x(t?o=>t.schedule(r,0,o):r)}function ki(e){return!!e&&(e instanceof x||M(e.lift)&&M(e.subscribe))}var un=Wn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function pc(...e){let t=jt(e),n=_i(e),{args:r,keys:o}=yi(e);if(r.length===0)return K([],t);let i=new x(kv(r,t,o?s=>Ni(o,s):We));return n?i.pipe(Mi(n)):i}function kv(e,t,n=We){return r=>{wf(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)wf(t,()=>{let u=K(e[c],t),l=!1;u.subscribe(P(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function wf(e,t,n){e?_e(n,e,t):t()}function Cf(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&t.complete()},h=C=>u<r?g(C):c.push(C),g=C=>{i&&t.next(C),u++;let D=!1;re(n(C,l++)).subscribe(P(t,I=>{o?.(I),i?h(I):t.next(I)},()=>{D=!0},void 0,()=>{if(D)try{for(u--;c.length&&u<r;){let I=c.shift();s?_e(t,s,()=>g(I)):g(I)}f()}catch(I){t.error(I)}}))};return e.subscribe(P(t,h,()=>{d=!0,f()})),()=>{a?.()}}function ye(e,t,n=1/0){return M(t)?ye((r,o)=>V((i,s)=>t(r,i,o,s))(re(e(r,o))),n):(typeof t=="number"&&(n=t),F((r,o)=>Cf(r,o,e,n)))}function Jn(e=1/0){return ye(We,e)}function bf(){return Jn(1)}function Xn(...e){return bf()(K(e,jt(e)))}function Wr(e){return new x(t=>{re(e()).subscribe(t)})}function Le(e,t){return F((n,r)=>{let o=0;n.subscribe(P(r,i=>e.call(t,i,o++)&&r.next(i)))})}function er(e){return F((t,n)=>{let r=null,o=!1,i;r=t.subscribe(P(n,void 0,void 0,s=>{i=re(e(s,er(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function ln(e,t){return M(t)?ye(e,t,1):ye(e,1)}function Tf(e){return F((t,n)=>{let r=!1;t.subscribe(P(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Et(e){return e<=0?()=>pe:F((t,n)=>{let r=0;t.subscribe(P(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Sf(e=Pv){return F((t,n)=>{let r=!1;t.subscribe(P(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Pv(){return new un}function It(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Le((o,i)=>e(o,i,r)):We,Et(1),n?Tf(t):Sf(()=>new un))}function Pi(e){return e<=0?()=>pe:F((t,n)=>{let r=[];t.subscribe(P(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function gc(...e){let t=jt(e);return F((n,r)=>{(t?Xn(e,n,t):Xn(e,n)).subscribe(r)})}function Re(e,t){return F((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(P(r,c=>{o?.unsubscribe();let u=0,l=i++;re(e(c,l)).subscribe(o=P(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function qr(e){return F((t,n)=>{re(e).subscribe(P(n,()=>n.complete(),Gr)),!n.closed&&t.subscribe(n)})}function je(e,t,n){let r=M(e)||t||n?{next:e,error:t,complete:n}:e;return r?F((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(P(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):We}var ve=null,Fi=!1,mc=1,Fv=null,le=Symbol("SIGNAL");function b(e){let t=ve;return ve=e,t}function Li(){return ve}var hn={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function pn(e){if(Fi)throw new Error("");if(ve===null)return;ve.consumerOnSignalRead(e);let t=ve.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=ve.recomputing;if(r&&(n=t!==void 0?t.nextProducer:ve.producers,n!==void 0&&n.producer===e)){ve.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===ve&&(!r||jv(o,ve)))return;let i=rr(ve),s={producer:e,consumer:ve,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};ve.producersTail=s,t!==void 0?t.nextProducer=s:ve.producers=s,i&&Rf(e,s)}function _f(){mc++}function gn(e){if(!(rr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===mc)){if(!e.producerMustRecompute(e)&&!ji(e)){tr(e);return}e.producerRecomputeValue(e),tr(e)}}function yc(e){if(e.consumers===void 0)return;let t=Fi;Fi=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Lv(r)}}finally{Fi=t}}function vc(){return ve?.consumerAllowSignalWrites!==!1}function Lv(e){e.dirty=!0,yc(e),e.consumerMarkedDirty?.(e)}function tr(e){e.dirty=!1,e.lastCleanEpoch=mc}function mn(e){return e&&Mf(e),b(e)}function Mf(e){e.producersTail=void 0,e.recomputing=!0}function nr(e,t){b(t),e&&Nf(e)}function Nf(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(rr(e))do n=Dc(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function ji(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(gn(n),r!==n.version))return!0}return!1}function Zr(e){if(rr(e)){let t=e.producers;for(;t!==void 0;)t=Dc(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Rf(e,t){let n=e.consumersTail,r=rr(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Rf(o.producer,o)}function Dc(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!rr(t)){let i=t.producers;for(;i!==void 0;)i=Dc(i)}return n}function rr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Yr(e){Fv?.(e)}function jv(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function Qr(e,t){return Object.is(e,t)}function Ui(e,t){let n=Object.create(Uv);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(gn(n),pn(n),n.value===st)throw n.error;return n.value};return r[le]=n,Yr(n),r}var dn=Symbol("UNSET"),fn=Symbol("COMPUTING"),st=Symbol("ERRORED"),Uv=U(y({},hn),{value:dn,dirty:!0,error:null,equal:Qr,kind:"computed",producerMustRecompute(e){return e.value===dn||e.value===fn},producerRecomputeValue(e){if(e.value===fn)throw new Error("");let t=e.value;e.value=fn;let n=mn(e),r,o=!1;try{r=e.computation(),b(null),o=t!==dn&&t!==st&&r!==st&&e.equal(t,r)}catch(i){r=st,e.error=i}finally{nr(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Bv(){throw new Error}var Af=Bv;function xf(e){Af(e)}function Ec(e){Af=e}var Vv=null;function Ic(e,t){let n=Object.create(Vi);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Of(n);return r[le]=n,Yr(n),[r,s=>yn(n,s),s=>Bi(n,s)]}function Of(e){return pn(e),e.value}function yn(e,t){vc()||xf(e),e.equal(e.value,t)||(e.value=t,Hv(e))}function Bi(e,t){vc()||xf(e),yn(e,t(e.value))}var Vi=U(y({},hn),{equal:Qr,value:void 0,kind:"signal"});function Hv(e){e.version++,_f(),yc(e),Vv?.(e)}var wc;function Hi(){return wc}function at(e){let t=wc;return wc=e,t}var kf=Symbol("NotFound");function or(e){return e===kf||e?.name==="\u0275NotFound"}function Cc(e,t,n){let r=Object.create($v);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(gn(r),pn(r),r.value===st)throw r.error;return r.value};return i[le]=r,Yr(r),i}function Pf(e,t){gn(e),yn(e,t),tr(e)}function Ff(e,t){if(gn(e),e.value===st)throw e.error;Bi(e,t),tr(e)}var $v=U(y({},hn),{value:dn,dirty:!0,error:null,equal:Qr,kind:"linkedSignal",producerMustRecompute(e){return e.value===dn||e.value===fn},producerRecomputeValue(e){if(e.value===fn)throw new Error("");let t=e.value;e.value=fn;let n=mn(e),r,o=!1;try{let i=e.source(),s=t!==dn&&t!==st,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,b(null),o=s&&r!==st&&e.equal(t,r)}catch(i){r=st,e.error=i}finally{nr(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Lf(e){let t=b(null);try{return e()}finally{b(t)}}var qi="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",m=class extends Error{code;constructor(t,n){super(Vt(t,n)),this.code=t}};function Wv(e){return`NG0${Math.abs(e)}`}function Vt(e,t){return`${Wv(e)}${t?": "+t:""}`}var bt=globalThis;function L(e){for(let t in e)if(e[t]===L)return t;throw Error("")}function Hf(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function no(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(no).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function Zi(e,t){return e?t?`${e} ${t}`:e:t||""}var qv=L({__forward_ref__:L});function Yi(e){return e.__forward_ref__=Yi,e}function ge(e){return jc(e)?e():e}function jc(e){return typeof e=="function"&&e.hasOwnProperty(qv)&&e.__forward_ref__===Yi}function v(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ht(e){return{providers:e.providers||[],imports:e.imports||[]}}function ro(e){return Zv(e,Qi)}function Uc(e){return ro(e)!==null}function Zv(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Yv(e){let t=e?.[Qi]??null;return t||null}function Tc(e){return e&&e.hasOwnProperty(zi)?e[zi]:null}var Qi=L({\u0275prov:L}),zi=L({\u0275inj:L}),E=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=v({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Bc(e){return e&&!!e.\u0275providers}var oo=L({\u0275cmp:L}),io=L({\u0275dir:L}),Vc=L({\u0275pipe:L}),Hc=L({\u0275mod:L}),Jr=L({\u0275fac:L}),wn=L({__NG_ELEMENT_ID__:L}),jf=L({__NG_ENV_ID__:L});function $c(e){return Ki(e,"@NgModule"),e[Hc]||null}function $t(e){return Ki(e,"@Component"),e[oo]||null}function zc(e){return Ki(e,"@Directive"),e[io]||null}function $f(e){return Ki(e,"@Pipe"),e[Vc]||null}function Ki(e,t){if(e==null)throw new m(-919,!1)}function sr(e){return typeof e=="string"?e:e==null?"":String(e)}var zf=L({ngErrorCode:L}),Qv=L({ngErrorMessage:L}),Kv=L({ngTokenPath:L});function Gc(e,t){return Gf("",-200,t)}function Ji(e,t){throw new m(-201,!1)}function Gf(e,t,n){let r=new m(t,e);return r[zf]=t,r[Qv]=e,n&&(r[Kv]=n),r}function Jv(e){return e[zf]}var Sc;function Wf(){return Sc}function Ce(e){let t=Sc;return Sc=e,t}function Wc(e,t,n){let r=ro(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;Ji(e,"")}var Xv={},vn=Xv,eD="__NG_DI_FLAG__",_c=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Dn(n)||0;try{return this.injector.get(t,r&8?null:vn,r)}catch(o){if(or(o))return o;throw o}}};function tD(e,t=0){let n=Hi();if(n===void 0)throw new m(-203,!1);if(n===null)return Wc(e,void 0,t);{let r=nD(t),o=n.retrieve(e,r);if(or(o)){if(r.optional)return null;throw o}return o}}function T(e,t=0){return(Wf()||tD)(ge(e),t)}function p(e,t){return T(e,Dn(t))}function Dn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function nD(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Mc(e){let t=[];for(let n=0;n<e.length;n++){let r=ge(e[n]);if(Array.isArray(r)){if(r.length===0)throw new m(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=rD(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(T(o,i))}else t.push(T(r))}return t}function rD(e){return e[eD]}function Ut(e,t){let n=e.hasOwnProperty(Jr);return n?e[Jr]:null}function qf(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Zf(e){return e.flat(Number.POSITIVE_INFINITY)}function Xi(e,t){e.forEach(n=>Array.isArray(n)?Xi(n,t):t(n))}function qc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function so(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Yf(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function es(e,t,n){let r=ar(e,t);return r>=0?e[r|1]=n:(r=~r,Yf(e,r,t,n)),r}function ts(e,t){let n=ar(e,t);if(n>=0)return e[n|1]}function ar(e,t){return oD(e,t,1)}function oD(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var zt={},be=[],Gt=new E(""),Zc=new E("",-1),Yc=new E(""),Xr=class{get(t,n=vn){if(n===vn){let o=Gf("",-201);throw o.name="\u0275NotFound",o}return n}};function Cn(e){return{\u0275providers:e}}function Qf(...e){return{\u0275providers:Qc(!0,e),\u0275fromNgModule:!0}}function Qc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Xi(t,s=>{let a=s;Gi(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Kf(o,i),n}function Kf(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Kc(o,i=>{t(i,r)})}}function Gi(e,t,n,r){if(e=ge(e),!e)return!1;let o=null,i=Tc(e),s=!i&&$t(e);if(!i&&!s){let c=e.ngModule;if(i=Tc(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Gi(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;Xi(i.imports,l=>{Gi(l,t,n,r)&&(u||=[],u.push(l))}),u!==void 0&&Kf(u,t)}if(!a){let u=Ut(o)||(()=>new o);t({provide:o,useFactory:u,deps:be},o),t({provide:Yc,useValue:o,multi:!0},o),t({provide:Gt,useValue:()=>T(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Kc(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Kc(e,t){for(let n of e)Bc(n)&&(n=n.\u0275providers),Array.isArray(n)?Kc(n,t):t(n)}var iD=L({provide:String,useValue:L});function Jf(e){return e!==null&&typeof e=="object"&&iD in e}function sD(e){return!!(e&&e.useExisting)}function aD(e){return!!(e&&e.useFactory)}function En(e){return typeof e=="function"}function Xf(e){return!!e.useClass}var ao=new E(""),$i={},Uf={},bc;function co(){return bc===void 0&&(bc=new Xr),bc}var W=class{},In=class extends W{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Rc(t,s=>this.processProvider(s)),this.records.set(Zc,ir(void 0,this)),o.has("environment")&&this.records.set(W,ir(void 0,this));let i=this.records.get(ao);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Yc,be,{self:!0}))}retrieve(t,n){let r=Dn(n)||0;try{return this.get(t,vn,r)}catch(o){if(or(o))return o;throw o}}destroy(){Kr(this),this._destroyed=!0;let t=b(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),b(t)}}onDestroy(t){return Kr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Kr(this);let n=at(this),r=Ce(void 0),o;try{return t()}finally{at(n),Ce(r)}}get(t,n=vn,r){if(Kr(this),t.hasOwnProperty(jf))return t[jf](this);let o=Dn(r),i,s=at(this),a=Ce(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=fD(t)&&ro(t);l&&this.injectableDefInScope(l)?u=ir(Nc(t),$i):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?co():this.parent;return n=o&8&&n===vn?null:n,c.get(t,n)}catch(c){let u=Jv(c);throw u===-200||u===-201?new m(u,null):c}finally{Ce(a),at(s)}}resolveInjectorInitializers(){let t=b(null),n=at(this),r=Ce(void 0),o;try{let i=this.get(Gt,be,{self:!0});for(let s of i)s()}finally{at(n),Ce(r),b(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=ge(t);let n=En(t)?t:ge(t&&t.provide),r=uD(t);if(!En(t)&&t.multi===!0){let o=this.records.get(n);o||(o=ir(void 0,$i,!0),o.factory=()=>Mc(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=b(null);try{if(n.value===Uf)throw Gc("");return n.value===$i&&(n.value=Uf,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&dD(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{b(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ge(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Nc(e){let t=ro(e),n=t!==null?t.factory:Ut(e);if(n!==null)return n;if(e instanceof E)throw new m(-204,!1);if(e instanceof Function)return cD(e);throw new m(-204,!1)}function cD(e){if(e.length>0)throw new m(-204,!1);let n=Yv(e);return n!==null?()=>n.factory(e):()=>new e}function uD(e){if(Jf(e))return ir(void 0,e.useValue);{let t=Jc(e);return ir(t,$i)}}function Jc(e,t,n){let r;if(En(e)){let o=ge(e);return Ut(o)||Nc(o)}else if(Jf(e))r=()=>ge(e.useValue);else if(aD(e))r=()=>e.useFactory(...Mc(e.deps||[]));else if(sD(e))r=(o,i)=>T(ge(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=ge(e&&(e.useClass||e.provide));if(lD(e))r=()=>new o(...Mc(e.deps));else return Ut(o)||Nc(o)}return r}function Kr(e){if(e.destroyed)throw new m(-205,!1)}function ir(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function lD(e){return!!e.deps}function dD(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function fD(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Rc(e,t){for(let n of e)Array.isArray(n)?Rc(n,t):n&&Bc(n)?Rc(n.\u0275providers,t):t(n)}function de(e,t){let n;e instanceof In?(Kr(e),n=e):n=new _c(e);let r,o=at(n),i=Ce(void 0);try{return t()}finally{at(o),Ce(i)}}function eh(){return Wf()!==void 0||Hi()!=null}var Ze=0,w=1,S=2,ae=3,Ue=4,Be=5,cr=6,ur=7,J=8,Tt=9,Ye=10,G=11,lr=12,Xc=13,bn=14,Ae=15,Wt=16,Tn=17,ct=18,St=19,eu=20,wt=21,ns=22,uo=23,xe=24,Sn=25,qt=26,X=27,th=1,tu=6,Zt=7,lo=8,_n=9,Y=10;function _t(e){return Array.isArray(e)&&typeof e[th]=="object"}function Qe(e){return Array.isArray(e)&&e[th]===!0}function nu(e){return(e.flags&4)!==0}function Mt(e){return e.componentOffset>-1}function dr(e){return(e.flags&1)===1}function ut(e){return!!e.template}function fr(e){return(e[S]&512)!==0}function Mn(e){return(e[S]&256)===256}var ru="svg",nh="math";function Ve(e){for(;Array.isArray(e);)e=e[Ze];return e}function ou(e,t){return Ve(t[e])}function Ke(e,t){return Ve(t[e.index])}function rs(e,t){return e.data[t]}function iu(e,t){return e[t]}function su(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function He(e,t){let n=t[e];return _t(n)?n:n[Ze]}function rh(e){return(e[S]&4)===4}function os(e){return(e[S]&128)===128}function oh(e){return Qe(e[ae])}function lt(e,t){return t==null?null:e[t]}function au(e){e[Tn]=0}function cu(e){e[S]&1024||(e[S]|=1024,os(e)&&hr(e))}function ih(e,t){for(;e>0;)t=t[bn],e--;return t}function fo(e){return!!(e[S]&9216||e[xe]?.dirty)}function is(e){e[Ye].changeDetectionScheduler?.notify(8),e[S]&64&&(e[S]|=1024),fo(e)&&hr(e)}function hr(e){e[Ye].changeDetectionScheduler?.notify(0);let t=Bt(e);for(;t!==null&&!(t[S]&8192||(t[S]|=8192,!os(t)));)t=Bt(t)}function uu(e,t){if(Mn(e))throw new m(911,!1);e[wt]===null&&(e[wt]=[]),e[wt].push(t)}function sh(e,t){if(e[wt]===null)return;let n=e[wt].indexOf(t);n!==-1&&e[wt].splice(n,1)}function Bt(e){let t=e[ae];return Qe(t)?t[ae]:t}function lu(e){return e[ur]??=[]}function du(e){return e.cleanup??=[]}function ah(e,t,n,r){let o=lu(t);o.push(n),e.firstCreatePass&&du(e).push(r,o.length-1)}var R={lFrame:Sh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ac=!1;function ch(){return R.lFrame.elementDepthCount}function uh(){R.lFrame.elementDepthCount++}function lh(){R.lFrame.elementDepthCount--}function ss(){return R.bindingsEnabled}function dh(){return R.skipHydrationRootTNode!==null}function fh(e){return R.skipHydrationRootTNode===e}function hh(){R.skipHydrationRootTNode=null}function N(){return R.lFrame.lView}function ee(){return R.lFrame.tView}function ph(e){return R.lFrame.contextLView=e,e[J]}function gh(e){return R.lFrame.contextLView=null,e}function me(){let e=fu();for(;e!==null&&e.type===64;)e=e.parent;return e}function fu(){return R.lFrame.currentTNode}function mh(){let e=R.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function pr(e,t){let n=R.lFrame;n.currentTNode=e,n.isParent=t}function hu(){return R.lFrame.isParent}function yh(){R.lFrame.isParent=!1}function vh(){return R.lFrame.contextLView}function pu(){return Ac}function gu(e){let t=Ac;return Ac=e,t}function as(){let e=R.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Dh(){return R.lFrame.bindingIndex}function Eh(e){return R.lFrame.bindingIndex=e}function Nn(){return R.lFrame.bindingIndex++}function cs(e){let t=R.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ih(){return R.lFrame.inI18n}function wh(e,t){let n=R.lFrame;n.bindingIndex=n.bindingRootIndex=e,us(t)}function Ch(){return R.lFrame.currentDirectiveIndex}function us(e){R.lFrame.currentDirectiveIndex=e}function bh(e){let t=R.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function mu(){return R.lFrame.currentQueryIndex}function ls(e){R.lFrame.currentQueryIndex=e}function hD(e){let t=e[w];return t.type===2?t.declTNode:t.type===1?e[Be]:null}function yu(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=hD(i),o===null||(i=i[bn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=R.lFrame=Th();return r.currentTNode=t,r.lView=e,!0}function ds(e){let t=Th(),n=e[w];R.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Th(){let e=R.lFrame,t=e===null?null:e.child;return t===null?Sh(e):t}function Sh(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function _h(){let e=R.lFrame;return R.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var vu=_h;function fs(){let e=_h();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Mh(e){return(R.lFrame.contextLView=ih(e,R.lFrame.contextLView))[J]}function dt(){return R.lFrame.selectedIndex}function Yt(e){R.lFrame.selectedIndex=e}function hs(){let e=R.lFrame;return rs(e.tView,e.selectedIndex)}function Nh(){R.lFrame.currentNamespace=ru}function Rh(){pD()}function pD(){R.lFrame.currentNamespace=null}function Du(){return R.lFrame.currentNamespace}var Ah=!0;function ps(){return Ah}function ho(e){Ah=e}function xc(e,t=null,n=null,r){let o=Eu(e,t,n,r);return o.resolveInjectorInitializers(),o}function Eu(e,t=null,n=null,r,o=new Set){let i=[n||be,Qf(e)],s;return new In(i,t||co(),s||null,o)}var Me=class e{static THROW_IF_NOT_FOUND=vn;static NULL=new Xr;static create(t,n){if(Array.isArray(t))return xc({name:""},n,t,"");{let r=t.name??"";return xc({name:r},t.parent,t.providers,r)}}static \u0275prov=v({token:e,providedIn:"any",factory:()=>T(Zc)});static __NG_ELEMENT_ID__=-1},oe=new E(""),ft=(()=>{class e{static __NG_ELEMENT_ID__=gD;static __NG_ENV_ID__=n=>n}return e})(),Oc=class extends ft{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Mn(this._lView)}onDestroy(t){let n=this._lView;return uu(n,t),()=>sh(n,t)}};function gD(){return new Oc(N())}var Iu=!1,xh=new E(""),ht=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new he(!1);debugTaskTracker=p(xh,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new x(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=v({token:e,providedIn:"root",factory:()=>new e})}return e})(),kc=class extends ue{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,eh()&&(this.destroyRef=p(ft,{optional:!0})??void 0,this.pendingTasks=p(ht,{optional:!0})??void 0)}emit(t){let n=b(null);try{super.next(t)}finally{b(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof se&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},De=kc;function Wi(...e){}function wu(e){let t,n;function r(){e=Wi;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch(o){}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Oh(e){return queueMicrotask(()=>e()),()=>{e=Wi}}var Cu="isAngularZone",eo=Cu+"_ID",mD=0,Z=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new De(!1);onMicrotaskEmpty=new De(!1);onStable=new De(!1);onError=new De(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Iu}=t;if(typeof Zone>"u")throw new m(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,DD(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Cu)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new m(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new m(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,yD,Wi,Wi);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},yD={};function bu(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function vD(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){wu(()=>{e.callbackScheduled=!1,Pc(e),e.isCheckStableRunning=!0,bu(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Pc(e)}function DD(e){let t=()=>{vD(e)},n=mD++;e._inner=e._inner.fork({name:"angular",properties:{[Cu]:!0,[eo]:n,[eo+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(ED(c))return r.invokeTask(i,s,a,c);try{return Bf(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Vf(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Bf(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!ID(c)&&t(),Vf(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Pc(e),bu(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Pc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Bf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Vf(e){e._nesting--,bu(e)}var to=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new De;onMicrotaskEmpty=new De;onStable=new De;onError=new De;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function ED(e){return kh(e,"__ignore_ng_zone__")}function ID(e){return kh(e,"__scheduler_tick__")}function kh(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var qe=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Oe=new E("",{factory:()=>{let e=p(Z),t=p(W),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(qe),n.handleError(r))})}}}),Ph={provide:Gt,useValue:()=>{let e=p(qe,{optional:!0})},multi:!0};function te(e,t){let[n,r,o]=Ic(e,t?.equal),i=n,s=i[le];return i.set=r,i.update=o,i.asReadonly=gs.bind(i),i}function gs(){let e=this[le];if(e.readonlyFn===void 0){let t=()=>this();t[le]=e,e.readonlyFn=t}return e.readonlyFn}var ms=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=wD}return e})();function wD(){return new ms(N(),me())}var Ct=class{},gr=new E("",{factory:()=>!0});var ys=new E(""),po=(()=>{class e{internalPendingTasks=p(ht);scheduler=p(Ct);errorHandler=p(Oe);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();n().catch(this.errorHandler).finally(r)}static \u0275prov=v({token:e,providedIn:"root",factory:()=>new e})}return e})(),Tu=(()=>{class e{static \u0275prov=v({token:e,providedIn:"root",factory:()=>new Fc})}return e})(),Fc=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},Lc=class{[le];constructor(t){this[le]=t}destroy(){this[le].destroy()}};function So(e){return{toString:e}.toString()}function ND(e){return typeof e=="function"}function hp(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var bs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}},Jt=(()=>{let e=()=>pp;return e.ngInherit=!0,e})();function pp(e){return e.type.prototype.ngOnChanges&&(e.setInput=AD),RD}function RD(){let e=mp(this),t=e?.current;if(t){let n=e.previous;if(n===zt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function AD(e,t,n,r,o){let i=this.declaredInputs[r],s=mp(e)||xD(e,{previous:zt,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new bs(u&&u.currentValue,n,c===zt),hp(e,t,o,n)}var gp="__ngSimpleChanges__";function mp(e){return e[gp]||null}function xD(e,t){return e[gp]=t}var Fh=[];var j=function(e,t=null,n){for(let r=0;r<Fh.length;r++){let o=Fh[r];o(e,t,n)}},O=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(O||{});function OD(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=pp(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function yp(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function Es(e,t,n){vp(e,t,3,n)}function Is(e,t,n,r){(e[S]&3)===n&&vp(e,t,n,r)}function Su(e,t){let n=e[S];(n&3)===t&&(n&=16383,n+=1,e[S]=n)}function vp(e,t,n,r){let o=r!==void 0?e[Tn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Tn]+=65536),(a<i||i==-1)&&(kD(e,n,t,c),e[Tn]=(e[Tn]&4294901760)+c+2),c++}function Lh(e,t){j(O.LifecycleHookStart,e,t);let n=b(null);try{t.call(e)}finally{b(n),j(O.LifecycleHookEnd,e,t)}}function kD(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[S]>>14<e[Tn]>>16&&(e[S]&3)===t&&(e[S]+=16384,Lh(a,i)):Lh(a,i)}var yr=-1,An=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function PD(e){return(e.flags&8)!==0}function FD(e){return(e.flags&16)!==0}function LD(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];jD(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Dp(e){return e===3||e===4||e===6}function jD(e){return e.charCodeAt(0)===64}function Do(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?jh(e,n,o,null,t[++r]):jh(e,n,o,null,null))}}return e}function jh(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function Ep(e){return e!==yr}function Ts(e){return e&32767}function UD(e){return e>>16}function Ss(e,t){let n=UD(e),r=t;for(;n>0;)r=r[bn],n--;return r}var ju=!0;function _s(e){let t=ju;return ju=e,t}var BD=256,Ip=BD-1,wp=5,VD=0,pt={};function HD(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(wn)&&(r=n[wn]),r==null&&(r=n[wn]=VD++);let o=r&Ip,i=1<<o;t.data[e+(o>>wp)]|=i}function Ms(e,t){let n=Cp(e,t);if(n!==-1)return n;let r=t[w];r.firstCreatePass&&(e.injectorIndex=t.length,_u(r.data,e),_u(t,null),_u(r.blueprint,null));let o=pl(e,t),i=e.injectorIndex;if(Ep(o)){let s=Ts(o),a=Ss(o,t),c=a[w].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function _u(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Cp(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function pl(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Mp(o),r===null)return yr;if(n++,o=o[bn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return yr}function Uu(e,t,n){HD(e,t,n)}function $D(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(Dp(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else{if(i===t)return n[o+1];o=o+2}}}return null}function bp(e,t,n){if(n&8||e!==void 0)return e;Ji(t,"NodeInjector")}function Tp(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Tt],i=Ce(void 0);try{return o?o.get(t,r,n&8):Wc(t,r,n&8)}finally{Ce(i)}}return bp(r,t,n)}function Sp(e,t,n,r=0,o){if(e!==null){if(t[S]&2048&&!(r&2)){let s=qD(e,t,n,r,pt);if(s!==pt)return s}let i=_p(e,t,n,r,pt);if(i!==pt)return i}return Tp(t,n,r,o)}function _p(e,t,n,r,o){let i=GD(n);if(typeof i=="function"){if(!yu(t,e,r))return r&1?bp(o,n,r):Tp(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Ji(n);else return s}finally{vu()}}else if(typeof i=="number"){let s=null,a=Cp(e,t),c=yr,u=r&1?t[Ae][Be]:null;for((a===-1||r&4)&&(c=a===-1?pl(e,t):t[a+8],c===yr||!Bh(r,!1)?a=-1:(s=t[w],a=Ts(c),t=Ss(c,t)));a!==-1;){let l=t[w];if(Uh(i,a,l.data)){let d=zD(a,t,n,s,r,u);if(d!==pt)return d}c=t[a+8],c!==yr&&Bh(r,t[w].data[a+8]===u)&&Uh(i,a,t)?(s=l,a=Ts(c),t=Ss(c,t)):a=-1}}return o}function zD(e,t,n,r,o,i){let s=t[w],a=s.data[e+8],c=r==null?Mt(a)&&ju:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=ws(a,s,n,c,u);return l!==null?Eo(t,s,l,a,o):pt}function ws(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,f=o?a+l:u;for(let h=d;h<f;h++){let g=s[h];if(h<c&&n===g||h>=c&&g.type===n)return h}if(o){let h=s[c];if(h&&ut(h)&&h.type===n)return c}return null}function Eo(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof An){let a=i;if(a.resolving)throw Gc("");let c=_s(a.canSeeViewProviders);a.resolving=!0;let u=s[n].type||s[n],l,d=a.injectImpl?Ce(a.injectImpl):null,f=yu(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&OD(n,s[n],t)}finally{d!==null&&Ce(d),_s(c),a.resolving=!1,vu()}}return i}function GD(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(wn)?e[wn]:void 0;return typeof t=="number"?t>=0?t&Ip:WD:t}function Uh(e,t,n){let r=1<<e;return!!(n[t+(e>>wp)]&r)}function Bh(e,t){return!(e&2)&&!(e&1&&t)}var Rn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Sp(this._tNode,this._lView,t,Dn(r),n)}};function WD(){return new Rn(me(),N())}function _o(e){return So(()=>{let t=e.prototype.constructor,n=t[Jr]||Bu(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Jr]||Bu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Bu(e){return jc(e)?()=>{let t=Bu(ge(e));return t&&t()}:Ut(e)}function qD(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[S]&2048&&!fr(s);){let a=_p(i,s,n,r|2,pt);if(a!==pt)return a;let c=i.parent;if(!c){let u=s[eu];if(u){let l=u.get(n,pt,r&-5);if(l!==pt)return l}c=Mp(s),s=s[bn]}i=c}return o}function Mp(e){let t=e[w],n=t.type;return n===2?t.declTNode:n===1?e[Be]:null}function Mo(e){return $D(me(),e)}function ZD(){return Ir(me(),N())}function Ir(e,t){return new mt(Ke(e,t))}var mt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=ZD}return e})();function YD(e){return e instanceof mt?e.nativeElement:e}function QD(){return this._results[Symbol.iterator]()}var Ns=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ue}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Zf(t);(this._changesDetected=!qf(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=QD};function Np(e){return(e.flags&128)===128}var gl=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(gl||{}),Rp=new Map,KD=0;function JD(){return KD++}function XD(e){Rp.set(e[St],e)}function Vu(e){Rp.delete(e[St])}var Vh="__ngContext__";function vr(e,t){_t(t)?(e[Vh]=t[St],XD(t)):e[Vh]=t}function Ap(e){return Op(e[lr])}function xp(e){return Op(e[Ue])}function Op(e){for(;e!==null&&!Qe(e);)e=e[Ue];return e}var eE;function ml(e){eE=e}var $s=new E("",{factory:()=>tE}),tE="ng";var zs=new E(""),No=new E("",{providedIn:"platform",factory:()=>"unknown"});var Ro=new E("",{factory:()=>p(oe).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var kp="r";var Pp="di";var Fp=!1,Lp=new E("",{factory:()=>Fp});var Hh=new WeakMap;function nE(e,t){if(e==null||typeof e!="object")return;let n=Hh.get(e);n||(n=new WeakSet,Hh.set(e,n)),n.add(t)}var rE=(e,t,n,r)=>{};function oE(e,t,n,r){rE(e,t,n,r)}function yl(e){return(e.flags&32)===32}var iE=()=>null;function jp(e,t,n=!1){return iE(e,t,n)}function Up(e,t){let n=e.contentQueries;if(n!==null){let r=b(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];ls(i),a.contentQueries(2,t[s],s)}}}finally{b(r)}}}function Hu(e,t,n){ls(0);let r=b(null);try{t(e,n)}finally{b(r)}}function vl(e,t,n){if(nu(t)){let r=b(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{b(r)}}}var et=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(et||{});var vs;function sE(){if(vs===void 0&&(vs=null,bt.trustedTypes))try{vs=bt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return vs}function $h(e){return sE()?.createScriptURL(e)||e}var Rs=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qi})`}};function Ao(e){return e instanceof Rs?e.changingThisBreaksApplicationSecurity:e}function Dl(e,t){let n=Bp(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${qi})`)}return n===t}function Bp(e){return e instanceof Rs&&e.getTypeName()||null}var aE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Vp(e){return e=String(e),e.match(aE)?e:"unsafe:"+e}var cE=/^>|^->|<!--|-->|--!>|<!-$/g,uE=/(<|>)/g,lE="\u200B$1\u200B";function dE(e){return e.replace(cE,t=>t.replace(uE,lE))}function fE(e,t){return e.createText(t)}function hE(e,t,n){e.setValue(t,n)}function pE(e,t){return e.createComment(dE(t))}function Hp(e,t,n){return e.createElement(t,n)}function As(e,t,n,r,o){e.insertBefore(t,n,r,o)}function $p(e,t,n){e.appendChild(t,n)}function zh(e,t,n,r,o){r!==null?As(e,t,n,r,o):$p(e,t,n)}function zp(e,t,n,r){e.removeChild(null,t,n,r)}function gE(e,t,n){e.setAttribute(t,"style",n)}function mE(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Gp(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&LD(e,t,r),o!==null&&mE(e,t,o),i!==null&&gE(e,t,i)}var Gs=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(Gs||{});function Wp(e){let t=Zp();return t?t.sanitize(Gs.URL,e)||"":Dl(e,"URL")?Ao(e):Vp(sr(e))}function qp(e){let t=Zp();if(t)return $h(t.sanitize(Gs.RESOURCE_URL,e)||"");if(Dl(e,"ResourceURL"))return $h(Ao(e));throw new m(904,!1)}var yE={embed:{src:!0},frame:{src:!0},iframe:{src:!0},media:{src:!0},base:{href:!0},link:{href:!0},object:{data:!0,codebase:!0}};function vE(e,t){return yE[e.toLowerCase()]?.[t.toLowerCase()]===!0?qp:Wp}function El(e,t,n){return vE(t,n)(e)}function Zp(){let e=N();return e&&e[Ye].sanitizer}function Yp(e){return e instanceof Function?e():e}function DE(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Qp="ng-template";function EE(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&DE(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Il(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Il(e){return e.type===4&&e.value!==Qp}function IE(e,t,n){let r=e.type===4&&!n?Qp:e.value;return t===r}function wE(e,t,n){let r=4,o=e.attrs,i=o!==null?TE(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!Je(r)&&!Je(c))return!1;if(s&&Je(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!IE(e,c,n)||c===""&&t.length===1){if(Je(r))return!1;s=!0}}else if(r&8){if(o===null||!EE(e,o,c,n)){if(Je(r))return!1;s=!0}}else{let u=t[++a],l=CE(c,o,Il(e),n);if(l===-1){if(Je(r))return!1;s=!0;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(Je(r))return!1;s=!0}}}}return Je(r)||s}function Je(e){return(e&1)===0}function CE(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return SE(t,e)}function bE(e,t,n=!1){for(let r=0;r<t.length;r++)if(wE(e,t[r],n))return!0;return!1}function TE(e){for(let t=0;t<e.length;t++){let n=e[t];if(Dp(n))return t}return e.length}function SE(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Gh(e,t){return e?":not("+t.trim()+")":t}function _E(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Je(s)&&(t+=Gh(i,o),o=""),r=s,i=i||!Je(r);n++}return o!==""&&(t+=Gh(i,o)),t}function ME(e){return e.map(_E).join(",")}function NE(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!Je(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Te={};function wl(e,t,n,r,o,i,s,a,c,u,l){let d=X+r,f=d+o,h=RE(d,f),g=typeof u=="function"?u():u;return h[w]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:g,incompleteFirstPass:!1,ssrId:l}}function RE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Te);return n}function AE(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=wl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Cl(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[Ze]=o,d[S]=r|4|128|8|64|1024,(u!==null||e&&e[S]&2048)&&(d[S]|=2048),au(d),d[ae]=d[bn]=e,d[J]=n,d[Ye]=s||e&&e[Ye],d[G]=a||e&&e[G],d[Tt]=c||e&&e[Tt]||null,d[Be]=i,d[St]=JD(),d[cr]=l,d[eu]=u,d[Ae]=t.type==2?e[Ae]:d,d}function xE(e,t,n){let r=Ke(t,e),o=AE(n),i=e[Ye].rendererFactory,s=bl(e,Cl(e,o,null,Kp(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Kp(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Jp(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function bl(e,t){return e[lr]?e[Xc][Ue]=t:e[lr]=t,e[Xc]=t,t}function OE(e=1){Xp(ee(),N(),dt()+e,!1)}function Xp(e,t,n,r){if(!r)if((t[S]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Es(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Is(t,i,0,n)}Yt(n)}var Ws=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Ws||{});function $u(e,t,n,r){let o=b(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Ws.SignalBased)!==0&&(c=t[i][le]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):hp(t,c,i,r)}finally{b(o)}}var gt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(gt||{}),kE;function Tl(e,t){return kE(e,t)}var dO=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var zu=new WeakMap,mo=new WeakSet;function PE(e,t){let n=zu.get(e);if(!n||n.length===0)return;let r=t.parentNode,o=t.previousSibling;for(let i=n.length-1;i>=0;i--){let s=n[i],a=s.parentNode;s===t?(n.splice(i,1),mo.add(s),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&s===o||a&&r&&a!==r)&&(n.splice(i,1),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),s.parentNode?.removeChild(s))}}function FE(e,t){let n=zu.get(e);n?n.includes(t)||n.push(t):zu.set(e,[t])}var xn=new Set,qs=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(qs||{}),yt=new E(""),Wh=new Set;function Nt(e){Wh.has(e)||(Wh.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Sl=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=v({token:e,providedIn:"root",factory:()=>new e})}return e})(),eg=[0,1,2,3],tg=(()=>{class e{ngZone=p(Z);scheduler=p(Ct);errorHandler=p(qe,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){p(yt,{optional:!0})}execute(){let n=this.sequences.size>0;n&&j(O.AfterRenderHooksStart),this.executing=!0;for(let r of eg)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&j(O.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[Sn]??=[]).push(n),hr(r),r[S]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(qs.AFTER_NEXT_RENDER,n):n()}static \u0275prov=v({token:e,providedIn:"root",factory:()=>new e})}return e})(),xs=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[Sn];t&&(this.view[Sn]=t.filter(n=>n!==this))}};function _l(e,t){let n=t?.injector??p(Me);return Nt("NgAfterNextRender"),jE(e,n,t,!0)}function LE(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function jE(e,t,n,r){let o=t.get(Sl);o.impl??=t.get(tg);let i=t.get(yt,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(ft):null,a=t.get(ms,null,{optional:!0}),c=new xs(o.impl,LE(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var ng=new E("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:p(W)})});function rg(e,t,n){let r=e.get(ng);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function UE(e,t){let n=e.get(ng);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function BE(e,t){for(let[n,r]of t)rg(e,r.animateFns)}function qh(e,t,n,r){let o=e?.[qt]?.enter;t!==null&&o&&o.has(n.index)&&BE(r,o)}function mr(e,t,n,r,o,i,s,a){if(o!=null){let c,u=!1;Qe(o)?c=o:_t(o)&&(u=!0,o=o[Ze]);let l=Ve(o);e===0&&r!==null?(qh(a,r,i,n),s==null?$p(t,r,l):As(t,r,l,s||null,!0)):e===1&&r!==null?(qh(a,r,i,n),As(t,r,l,s||null,!0),PE(i,l)):e===2?(a?.[qt]?.leave?.has(i.index)&&FE(i,l),mo.delete(l),Zh(a,i,n,d=>{if(mo.has(l)){mo.delete(l);return}zp(t,l,u,d)})):e===3&&(mo.delete(l),Zh(a,i,n,()=>{t.destroyNode(l)})),c!=null&&XE(t,e,n,c,i,r,s)}}function VE(e,t){og(e,t),t[Ze]=null,t[Be]=null}function HE(e,t,n,r,o,i){r[Ze]=o,r[Be]=t,Ys(e,r,n,1,o,i)}function og(e,t){t[Ye].changeDetectionScheduler?.notify(9),Ys(e,t,t[G],2,null,null)}function $E(e){let t=e[lr];if(!t)return Mu(e[w],e);for(;t;){let n=null;if(_t(t))n=t[lr];else{let r=t[Y];r&&(n=r)}if(!n){for(;t&&!t[Ue]&&t!==e;)_t(t)&&Mu(t[w],t),t=t[ae];t===null&&(t=e),_t(t)&&Mu(t[w],t),n=t&&t[Ue]}t=n}}function Ml(e,t){let n=e[_n],r=n.indexOf(t);n.splice(r,1)}function Zs(e,t){if(Mn(t))return;let n=t[G];n.destroyNode&&Ys(e,t,n,3,null,null),$E(t)}function Mu(e,t){if(Mn(t))return;let n=b(null);try{t[S]&=-129,t[S]|=256,t[xe]&&Zr(t[xe]),WE(e,t),GE(e,t),t[w].type===1&&t[G].destroy();let r=t[Wt];if(r!==null&&Qe(t[ae])){r!==t[ae]&&Ml(r,t);let o=t[ct];o!==null&&o.detachView(e)}Vu(t)}finally{b(n)}}function Zh(e,t,n,r){let o=e?.[qt];if(o==null||o.leave==null||!o.leave.has(t.index))return r(!1);e&&xn.add(e[St]),rg(n,()=>{if(o.leave&&o.leave.has(t.index)){let s=o.leave.get(t.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){let u=s.animateFns[c],{promise:l}=u();a.push(l)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(a),zE(e,r)}else e&&xn.delete(e[St]),r(!1)},o)}function zE(e,t){let n=e[qt]?.running;if(n){n.then(()=>{e[qt].running=void 0,xn.delete(e[St]),t(!0)});return}t(!1)}function GE(e,t){let n=e.cleanup,r=t[ur];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[ur]=null);let o=t[wt];if(o!==null){t[wt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[uo];if(i!==null){t[uo]=null;for(let s of i)s.destroy()}}function WE(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof An)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];j(O.LifecycleHookStart,a,c);try{c.call(a)}finally{j(O.LifecycleHookEnd,a,c)}}else{j(O.LifecycleHookStart,o,i);try{i.call(o)}finally{j(O.LifecycleHookEnd,o,i)}}}}}function qE(e,t,n){return ZE(e,t.parent,n)}function ZE(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ze];if(Mt(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===et.None||o===et.Emulated)return null}return Ke(r,n)}function YE(e,t,n){return KE(e,t,n)}function QE(e,t,n){return e.type&40?Ke(e,n):null}var KE=QE,Yh;function Nl(e,t,n,r){let o=qE(e,r,t),i=t[G],s=r.parent||t[Be],a=YE(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)zh(i,o,n[c],a,!1);else zh(i,o,n,a,!1);Yh!==void 0&&Yh(i,r,t,n,o)}function yo(e,t){if(t!==null){let n=t.type;if(n&3)return Ke(t,e);if(n&4)return Gu(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return yo(e,r);{let o=e[t.index];return Qe(o)?Gu(-1,o):Ve(o)}}else{if(n&128)return yo(e,t.next);if(n&32)return Tl(t,e)()||Ve(e[t.index]);{let r=ig(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Bt(e[Ae]);return yo(o,r)}else return yo(e,t.next)}}}return null}function ig(e,t){if(t!==null){let r=e[Ae][Be],o=t.projection;return r.projection[o]}return null}function Gu(e,t){let n=Y+e+1;if(n<t.length){let r=t[n],o=r[w].firstChild;if(o!==null)return yo(r,o)}return t[Zt]}function Rl(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Tt];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&vr(Ve(c),r),n.flags|=2),!yl(n))if(u&8)Rl(e,t,n.child,r,o,i,!1),mr(t,e,a,o,c,n,i,r);else if(u&32){let l=Tl(n,r),d;for(;d=l();)mr(t,e,a,o,d,n,i,r);mr(t,e,a,o,c,n,i,r)}else u&16?JE(e,t,r,n,o,i):mr(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function Ys(e,t,n,r,o,i){Rl(n,r,e.firstChild,t,o,i,!1)}function JE(e,t,n,r,o,i){let s=n[Ae],c=s[Be].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];mr(t,e,n[Tt],o,l,r,i,n)}else{let u=c,l=s[ae];Np(r)&&(u.flags|=128),Rl(e,t,u,l,o,i,!0)}}function XE(e,t,n,r,o,i,s){let a=r[Zt],c=Ve(r);a!==c&&mr(t,e,n,i,a,o,s);for(let u=Y;u<r.length;u++){let l=r[u];Ys(l[w],l,e,t,i,a)}}function eI(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:gt.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=gt.Important),e.setStyle(n,r,o,i))}}function sg(e,t,n,r,o){let i=dt(),s=r&2;try{Yt(-1),s&&t.length>X&&Xp(e,t,X,!1);let a=s?O.TemplateUpdateStart:O.TemplateCreateStart;j(a,o,n),n(r,o)}finally{Yt(i);let a=s?O.TemplateUpdateEnd:O.TemplateCreateEnd;j(a,o,n)}}function Qs(e,t,n){aI(e,t,n),(n.flags&64)===64&&cI(e,t,n)}function Ks(e,t,n=Ke){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function tI(e,t,n,r){let i=r.get(Lp,Fp)||n===et.ShadowDom||n===et.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);if(s.tagName.toLowerCase()==="script")throw new m(905,!1);return nI(s),s}function nI(e){rI(e)}var rI=()=>null;function oI(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function ag(e,t,n,r,o,i){let s=t[w];if(xl(e,s,t,n,r)){Mt(e)&&sI(t,e.index);return}e.type&3&&(n=oI(n)),iI(e,t,n,r,o,i)}function iI(e,t,n,r,o,i){if(e.type&3){let s=Ke(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function sI(e,t){let n=He(t,e);n[S]&16||(n[S]|=64)}function aI(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Mt(n)&&xE(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Ms(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Eo(t,e,s,n);if(vr(c,t),i!==null&&fI(t,s-r,c,a,n,i),ut(a)){let u=He(n.index,t);u[J]=Eo(t,e,s,n)}}}function cI(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Ch();try{Yt(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];us(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&uI(c,u)}}finally{Yt(-1),us(s)}}function uI(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Al(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];bE(t,i.selectors,!1)&&(r??=[],ut(i)?r.unshift(i):r.push(i))}return r}function lI(e,t,n,r,o,i){let s=Ke(e,t);dI(t[G],s,i,e.value,n,r,o)}function dI(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?sr(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function fI(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];$u(r,n,c,u)}}function cg(e,t,n,r,o){let i=X+n,s=t[w],a=o(s,t,e,r,n);t[i]=a,pr(e,!0);let c=e.type===2;return c?(Gp(t[G],a,e),(ch()===0||dr(e))&&vr(a,t),uh()):vr(a,t),ps()&&(!c||!yl(e))&&Nl(s,t,a,e),e}function ug(e){let t=e;return hu()?yh():(t=t.parent,pr(t,!1)),t}function hI(e,t){let n=e[Tt];if(!n)return;let r;try{r=n.get(Oe,null)}catch(o){r=null}r?.(t)}function xl(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];$u(d,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];$u(l,u,r,o),a=!0}return a}function pI(e,t){let n=He(t,e),r=n[w];gI(r,n);let o=n[Ze];o!==null&&n[cr]===null&&(n[cr]=jp(o,n[Tt])),j(O.ComponentStart);try{Ol(r,n,n[J])}finally{j(O.ComponentEnd,n[J])}}function gI(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Ol(e,t,n){ds(t);try{let r=e.viewQuery;r!==null&&Hu(1,r,n);let o=e.template;o!==null&&sg(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[ct]?.finishViewCreation(e),e.staticContentQueries&&Up(e,t),e.staticViewQueries&&Hu(2,e.viewQuery,n);let i=e.components;i!==null&&mI(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[S]&=-5,fs()}}function mI(e,t){for(let n=0;n<t.length;n++)pI(e,t[n])}function Js(e,t,n,r){let o=b(null);try{let i=t.tView,a=e[S]&4096?4096:16,c=Cl(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[Wt]=u;let l=e[ct];return l!==null&&(c[ct]=l.createEmbeddedView(i)),Ol(i,c,n),c}finally{b(o)}}function Io(e,t){return!t||t.firstChild===null||Np(e)}function wo(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(Ve(i)),Qe(i)&&lg(i,r);let s=n.type;if(s&8)wo(e,t,n.child,r);else if(s&32){let a=Tl(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=ig(t,n);if(Array.isArray(a))r.push(...a);else{let c=Bt(t[Ae]);wo(c[w],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function lg(e,t){for(let n=Y;n<e.length;n++){let r=e[n],o=r[w].firstChild;o!==null&&wo(r[w],r,o,t)}e[Zt]!==e[Ze]&&t.push(e[Zt])}function dg(e){if(e[Sn]!==null){for(let t of e[Sn])t.impl.addSequence(t);e[Sn].length=0}}var fg=[];function yI(e){return e[xe]??vI(e)}function vI(e){let t=fg.pop()??Object.create(EI);return t.lView=e,t}function DI(e){e.lView[xe]!==e&&(e.lView=null,fg.push(e))}var EI=U(y({},hn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{hr(e.lView)},consumerOnSignalRead(){this.lView[xe]=this}});function II(e){let t=e[xe]??Object.create(wI);return t.lView=e,t}var wI=U(y({},hn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Bt(e.lView);for(;t&&!hg(t[w]);)t=Bt(t);t&&cu(t)},consumerOnSignalRead(){this.lView[xe]=this}});function hg(e){return e.type!==2}function pg(e){if(e[uo]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[uo])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[S]&8192)}}var CI=100;function gg(e,t=0){let r=e[Ye].rendererFactory,o=!1;o||r.begin?.();try{bI(e,t)}finally{o||r.end?.()}}function bI(e,t){let n=pu();try{gu(!0),Wu(e,t);let r=0;for(;fo(e);){if(r===CI)throw new m(103,!1);r++,Wu(e,1)}}finally{gu(n)}}function TI(e,t,n,r){if(Mn(t))return;let o=t[S],i=!1,s=!1;ds(t);let a=!0,c=null,u=null;i||(hg(e)?(u=yI(t),c=mn(u)):Li()===null?(a=!1,u=II(t),c=mn(u)):t[xe]&&(Zr(t[xe]),t[xe]=null));try{au(t),Eh(e.bindingStartIndex),n!==null&&sg(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let h=e.preOrderCheckHooks;h!==null&&Es(t,h,null)}else{let h=e.preOrderHooks;h!==null&&Is(t,h,0,null),Su(t,0)}if(s||SI(t),pg(t),mg(t,0),e.contentQueries!==null&&Up(e,t),!i)if(l){let h=e.contentCheckHooks;h!==null&&Es(t,h)}else{let h=e.contentHooks;h!==null&&Is(t,h,1),Su(t,1)}MI(e,t);let d=e.components;d!==null&&vg(t,d,0);let f=e.viewQuery;if(f!==null&&Hu(2,f,r),!i)if(l){let h=e.viewCheckHooks;h!==null&&Es(t,h)}else{let h=e.viewHooks;h!==null&&Is(t,h,2),Su(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ns]){for(let h of t[ns])h();t[ns]=null}i||(dg(t),t[S]&=-73)}catch(l){throw i||hr(t),l}finally{u!==null&&(nr(u,c),a&&DI(u)),fs()}}function mg(e,t){for(let n=Ap(e);n!==null;n=xp(n))for(let r=Y;r<n.length;r++){let o=n[r];yg(o,t)}}function SI(e){for(let t=Ap(e);t!==null;t=xp(t)){if(!(t[S]&2))continue;let n=t[_n];for(let r=0;r<n.length;r++){let o=n[r];cu(o)}}}function _I(e,t,n){j(O.ComponentStart);let r=He(t,e);try{yg(r,n)}finally{j(O.ComponentEnd,r[J])}}function yg(e,t){os(e)&&Wu(e,t)}function Wu(e,t){let r=e[w],o=e[S],i=e[xe],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&ji(i)),s||=!1,i&&(i.dirty=!1),e[S]&=-9217,s)TI(r,e,r.template,e[J]);else if(o&8192){let a=b(null);try{pg(e),mg(e,1);let c=r.components;c!==null&&vg(e,c,1),dg(e)}finally{b(a)}}}function vg(e,t,n){for(let r=0;r<t.length;r++)_I(e,t[r],n)}function MI(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Yt(~o);else{let i=o,s=n[++r],a=n[++r];wh(s,i);let c=t[i];j(O.HostBindingsUpdateStart,c);try{a(2,c)}finally{j(O.HostBindingsUpdateEnd,c)}}}}finally{Yt(-1)}}function kl(e,t){let n=pu()?64:1088;for(e[Ye].changeDetectionScheduler?.notify(t);e;){e[S]|=n;let r=Bt(e);if(fr(e)&&!r)return e;e=r}return null}function Dg(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Eg(e,t){let n=Y+t;if(n<e.length)return e[n]}function Xs(e,t,n,r=!0){let o=t[w];if(NI(o,t,e,n),r){let s=Gu(n,e),a=t[G],c=a.parentNode(e[Zt]);c!==null&&HE(o,e[Be],a,t,c,s)}let i=t[cr];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Ig(e,t){let n=Co(e,t);return n!==void 0&&Zs(n[w],n),n}function Co(e,t){if(e.length<=Y)return;let n=Y+t,r=e[n];if(r){let o=r[Wt];o!==null&&o!==e&&Ml(o,r),t>0&&(e[n-1][Ue]=r[Ue]);let i=so(e,Y+t);VE(r[w],r);let s=i[ct];s!==null&&s.detachView(i[w]),r[ae]=null,r[Ue]=null,r[S]&=-129}return r}function NI(e,t,n,r){let o=Y+r,i=n.length;r>0&&(n[o-1][Ue]=t),r<i-Y?(t[Ue]=n[o],qc(n,Y+r,t)):(n.push(t),t[Ue]=null),t[ae]=n;let s=t[Wt];s!==null&&n!==s&&wg(s,t);let a=t[ct];a!==null&&a.insertView(e),is(t),t[S]|=128}function wg(e,t){let n=e[_n],r=t[ae];if(_t(r))e[S]|=2;else{let o=r[ae][Ae];t[Ae]!==o&&(e[S]|=2)}n===null?e[_n]=[t]:n.push(t)}var Qt=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[w];return wo(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[J]}set context(t){this._lView[J]=t}get destroyed(){return Mn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ae];if(Qe(t)){let n=t[lo],r=n?n.indexOf(this):-1;r>-1&&(Co(t,r),so(n,r))}this._attachedToViewContainer=!1}Zs(this._lView[w],this._lView)}onDestroy(t){uu(this._lView,t)}markForCheck(){kl(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[S]&=-129}reattach(){is(this._lView),this._lView[S]|=128}detectChanges(){this._lView[S]|=1024,gg(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=fr(this._lView),n=this._lView[Wt];n!==null&&!t&&Ml(n,this._lView),og(this._lView[w],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new m(902,!1);this._appRef=t;let n=fr(this._lView),r=this._lView[Wt];r!==null&&!n&&wg(r,this._lView),is(this._lView)}};var Kt=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=RI;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=Js(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new Qt(i)}}return e})();function RI(){return ea(me(),N())}function ea(e,t){return e.type&4?new Kt(t,e,Ir(e,t)):null}function ta(e,t,n,r,o){let i=e.data[t];if(i===null)i=AI(e,t,n,r,o),Ih()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=mh();i.injectorIndex=s===null?-1:s.injectorIndex}return pr(i,!0),i}function AI(e,t,n,r,o){let i=fu(),s=hu(),a=s?i:i&&i.parent,c=e.data[t]=OI(e,a,n,t,r,o);return xI(e,c,i,s),c}function xI(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function OI(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return dh()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:Du(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function kI(e){let t=e[tu]??[],r=e[ae][G],o=[];for(let i of t)i.data[Pp]!==void 0?o.push(i):PI(i,r);e[tu]=o}function PI(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[kp];for(;n<o;){let i=r.nextSibling;zp(t,r,!1),r=i,n++}}}var FI=()=>null,LI=()=>null;function qu(e,t){return FI(e,t)}function Cg(e,t,n){return LI(e,t,n)}var bg=class{},na=class{},Zu=class{resolveComponentFactory(t){throw new m(917,!1)}},xo=class{static NULL=new Zu},On=class{},wr=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>jI()}return e})();function jI(){let e=N(),t=me(),n=He(t.index,e);return(_t(n)?n:e)[G]}var Tg=(()=>{class e{static \u0275prov=v({token:e,providedIn:"root",factory:()=>null})}return e})();var Cs={},Yu=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,Cs,r);return o!==Cs||n===Cs?o:this.parentInjector.get(t,n,r)}};function Qh(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=Zi(o,a);else if(i==2){let c=a,u=t[++s];r=Zi(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function H(e,t=0){let n=N();if(n===null)return T(e,t);let r=me();return Sp(r,n,ge(e),t)}function Sg(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}VI(e,t,n,a,i,c,u)}i!==null&&r!==null&&UI(n,r,i)}function UI(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new m(-301,!1);r.push(t[o],i)}}function BI(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function VI(e,t,n,r,o,i,s){let a=r.length,c=null;for(let f=0;f<a;f++){let h=r[f];c===null&&ut(h)&&(c=h,BI(e,n,f)),Uu(Ms(n,t),e,h.type)}qI(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let f=0;f<a;f++){let h=r[f];h.providersResolver&&h.providersResolver(h)}let u=!1,l=!1,d=Jp(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let f=0;f<a;f++){let h=r[f];if(n.mergedAttrs=Do(n.mergedAttrs,h.hostAttrs),$I(e,n,t,d,h),WI(d,h,o),s!==null&&s.has(h)){let[C,D]=s.get(h);n.directiveToIndex.set(h.type,[d,C+n.directiveStart,D+n.directiveStart])}else(i===null||!i.has(h))&&n.directiveToIndex.set(h.type,d);h.contentQueries!==null&&(n.flags|=4),(h.hostBindings!==null||h.hostAttrs!==null||h.hostVars!==0)&&(n.flags|=64);let g=h.type.prototype;!u&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(g.ngOnChanges||g.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),d++}HI(e,n,i)}function HI(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Kh(0,t,o,r),Kh(1,t,o,r),Xh(t,r,!1);else{let i=n.get(o);Jh(0,t,i,r),Jh(1,t,i,r),Xh(t,r,!0)}}}function Kh(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),_g(t,i)}}function Jh(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),_g(t,s)}}function _g(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Xh(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Il(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function $I(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Ut(o.type,!0)),s=new An(i,ut(o),H,null);e.blueprint[r]=s,n[r]=s,zI(e,t,r,Jp(e,n,o.hostVars,Te),o)}function zI(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;GI(s)!=a&&s.push(a),s.push(n,r,i)}}function GI(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function WI(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;ut(t)&&(n[""]=e)}}function qI(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Pl(e,t,n,r,o,i,s,a){let c=t[w],u=c.consts,l=lt(u,s),d=ta(c,e,n,r,l);return i&&Sg(c,t,d,lt(u,a),o),d.mergedAttrs=Do(d.mergedAttrs,d.attrs),d.attrs!==null&&Qh(d,d.attrs,!1),d.mergedAttrs!==null&&Qh(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function Fl(e,t){yp(e,t),nu(t)&&e.queries.elementEnd(t)}function Ll(e){return Ng(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Mg(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function Ng(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function jl(e,t,n){return e[t]=n}function ZI(e,t){return e[t]}function tt(e,t,n){if(n===Te)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Rg(e,t,n,r){let o=tt(e,t,n);return tt(e,t+1,r)||o}function Nu(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&nE(o,i);let s=Mt(e)?He(e.index,t):t;kl(s,5);let a=t[J],c=ep(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=ep(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function ep(e,t,n,r){let o=b(null);try{return j(O.OutputStart,t,n),n(r)!==!1}catch(i){return hI(e,i),!1}finally{j(O.OutputEnd,t,n),b(o)}}function YI(e,t,n,r,o,i,s,a){let c=dr(e),u=!1,l=null;if(!r&&c&&(l=KI(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=!0}else{let d=Ke(e,n),f=r?r(d):d;oE(n,f,i,a),r||(a.__ngNativeEl__=d);let h=o.listen(f,i,a);if(!QI(i)){let g=r?C=>r(Ve(C[e.index])):e.index;Ag(g,t,n,i,a,h,!1)}}return u}function QI(e){return e.startsWith("animation")||e.startsWith("transition")}function KI(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[ur],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Ag(e,t,n,r,o,i,s){let a=t.firstCreatePass?du(t):null,c=lu(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1))}function tp(e,t,n,r,o,i){let s=t[n],a=t[w],u=a.data[n].outputs[r],d=s[u].subscribe(i);Ag(e.index,a,t,o,i,d,!0)}var Qu=Symbol("BINDING");function xg(e){return e.debugInfo?.className||e.type.name||null}var Os=class extends xo{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=$t(t);return new Dr(n,this.ngModule)}};function JI(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Ws.SignalBased)!==0};return o&&(i.transform=o),i})}function XI(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function ew(e,t,n){let r=t instanceof W?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Yu(n,r):n}function tw(e){let t=e.get(On,null);if(t===null)throw new m(407,!1);let n=e.get(Tg,null),r=e.get(Ct,null),o=e.get(yt,null,{optional:!0});return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function nw(e,t){let n=Og(e);return Hp(t,n,n==="svg"?ru:n==="math"?nh:null)}function Og(e){return(e.selectors[0][0]||"div").toLowerCase()}var Dr=class extends na{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=JI(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=XI(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=ME(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){j(O.DynamicComponentStart);let a=b(null);try{let c=this.componentDef,u=ew(c,o||this.ngModule,t),l=tw(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(xg(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{b(a)}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=rw(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?tI(u,o,a.encapsulation,n):nw(a,u),d=s?.some(np)||i?.some(g=>typeof g!="function"&&g.bindings.some(np)),f=Cl(null,c,null,512|Kp(a),null,null,t,u,n,null,jp(l,n,!0));f[X]=l,ds(f);let h=null;try{let g=Pl(X,f,2,"#host",()=>c.directiveRegistry,!0,0);Gp(u,l,g),vr(l,f),Qs(c,f,g),vl(c,g,f),Fl(c,g),r!==void 0&&iw(g,this.ngContentSelectors,r),h=He(g.index,f),f[J]=h[J],Ol(c,f,null)}catch(g){throw h!==null&&Vu(h),Vu(f),g}finally{j(O.DynamicComponentEnd),fs()}return new ks(this.componentType,f,!!d)}};function rw(e,t,n,r){let o=e?["ng-version","21.2.17"]:NE(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[Qu].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!="function")for(let f of d.bindings){a+=f[Qu].requiredVars;let h=l+1;f.create&&(f.targetIdx=h,(i??=[]).push(f)),f.update&&(f.targetIdx=h,(s??=[]).push(f))}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,f=zc(d);c.push(f)}return wl(0,null,ow(i,s),1,a,c,null,null,null,[o],null)}function ow(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function np(e){let t=e[Qu].kind;return t==="input"||t==="twoWay"}var ks=class extends bg{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=rs(n[w],X),this.location=Ir(this._tNode,n),this.instance=He(this._tNode.index,n)[J],this.hostView=this.changeDetectorRef=new Qt(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=xl(r,o[w],o,t,n);this.previousInputValues.set(t,n);let s=He(r.index,o);kl(s,1)}get injector(){return new Rn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function iw(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var vt=(()=>{class e{static __NG_ELEMENT_ID__=sw}return e})();function sw(){let e=me();return kg(e,N())}var Ku=class e extends vt{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ir(this._hostTNode,this._hostLView)}get injector(){return new Rn(this._hostTNode,this._hostLView)}get parentInjector(){let t=pl(this._hostTNode,this._hostLView);if(Ep(t)){let n=Ss(t,this._hostLView),r=Ts(t),o=n[w].data[r+8];return new Rn(o,n)}else return new Rn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=rp(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Y}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=qu(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Io(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!ND(t),u;if(c)u=n;else{let D=n||{};u=D.index,r=D.injector,o=D.projectableNodes,i=D.environmentInjector||D.ngModuleRef,s=D.directives,a=D.bindings}let l=c?t:new Dr($t(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let I=(c?d:this.parentInjector).get(W,null);I&&(i=I)}let f=$t(l.componentType??{}),h=qu(this._lContainer,f?.id??null),g=h?.firstChild??null,C=l.create(d,o,g,i,s,a);return this.insertImpl(C.hostView,u,Io(this._hostTNode,h)),C}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(oh(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[ae],u=new e(c,c[Be],c[ae]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Xs(s,o,i,r),t.attachToViewContainerRef(),qc(Ru(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=rp(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Co(this._lContainer,n);r&&(so(Ru(this._lContainer),n),Zs(r[w],r))}detach(t){let n=this._adjustIndex(t,-1),r=Co(this._lContainer,n);return r&&so(Ru(this._lContainer),n)!=null?new Qt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function rp(e){return e[lo]}function Ru(e){return e[lo]||(e[lo]=[])}function kg(e,t){let n,r=t[e.index];return Qe(r)?n=r:(n=Dg(r,t,null,e),t[e.index]=n,bl(t,n)),cw(n,t,e,r),new Ku(n,e,t)}function aw(e,t){let n=e[G],r=n.createComment(""),o=Ke(t,e),i=n.parentNode(o);return As(n,i,r,n.nextSibling(o),!1),r}var cw=dw,uw=()=>!1;function lw(e,t,n){return uw(e,t,n)}function dw(e,t,n,r){if(e[Zt])return;let o;n.type&8?o=Ve(r):o=aw(t,n),e[Zt]=o}var Ju=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Xu=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Ul(t,n).matches!==null&&this.queries[n].setDirty()}},el=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=Dw(t):this.predicate=t}},tl=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},nl=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,fw(n,i)),this.matchTNodeWithReadOption(t,n,ws(n,t,i,!1,!1))}else r===Kt?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,ws(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===mt||o===vt||o===Kt&&n.type&4)this.addMatch(n.index,-2);else{let i=ws(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function fw(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function hw(e,t){return e.type&11?Ir(e,t):e.type&4?ea(e,t):null}function pw(e,t,n,r){return n===-1?hw(t,e):n===-2?gw(e,t,r):Eo(e,e[w],n,t)}function gw(e,t,n){if(n===mt)return Ir(t,e);if(n===Kt)return ea(t,e);if(n===vt)return kg(t,e)}function Pg(e,t,n,r){let o=t[ct].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else{let l=i[u];a.push(pw(t,l,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function rl(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Pg(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let u=i[a+1],l=t[-c];for(let d=Y;d<l.length;d++){let f=l[d];f[Wt]===f[ae]&&rl(f[w],f,u,r)}if(l[_n]!==null){let d=l[_n];for(let f=0;f<d.length;f++){let h=d[f];rl(h[w],h,u,r)}}}}}return r}function mw(e,t){return e[ct].queries[t].queryList}function yw(e,t,n){let r=new Ns((n&4)===4);return ah(e,t,r,r.destroy),(t[ct]??=new Xu).queries.push(new Ju(r))-1}function vw(e,t,n,r){let o=ee();if(o.firstCreatePass){let i=me();Ew(o,new el(t,n,r),i.index),Iw(o,e),(n&2)===2&&(o.staticContentQueries=!0)}return yw(o,N(),n)}function Dw(e){return e.split(",").map(t=>t.trim())}function Ew(e,t,n){e.queries===null&&(e.queries=new tl),e.queries.track(new nl(t,n))}function Iw(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function Ul(e,t){return e.queries.getByIndex(t)}function ww(e,t){let n=e[w],r=Ul(n,t);return r.crossesNgTemplate?rl(n,e,t,[]):Pg(n,e,r,t)}var kn=class{},ra=class{};var Ps=class extends kn{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Os(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=$c(t);this._bootstrapComponents=Yp(i.bootstrap),this._r3Injector=Eu(t,n,[{provide:kn,useValue:this},{provide:xo,useValue:this.componentFactoryResolver},...r],no(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Fs=class extends ra{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Ps(this.moduleType,t,[])}};var bo=class extends kn{injector;componentFactoryResolver=new Os(this);instance=null;constructor(t){super();let n=new In([...t.providers,{provide:kn,useValue:this},{provide:xo,useValue:this.componentFactoryResolver}],t.parent||co(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Oo(e,t,n=null){return new bo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Cw=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Qc(!1,n.type),o=r.length>0?Oo([r],this._injector,""):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=v({token:e,providedIn:"environment",factory:()=>new e(T(W))})}return e})();function Bl(e){return So(()=>{let t=Fg(e),n=U(y({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===gl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Cw).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||et.Emulated,styles:e.styles||be,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Nt("NgStandalone"),Lg(n);let r=e.dependencies;return n.directiveDefs=op(r,bw),n.pipeDefs=op(r,$f),n.id=_w(n),n})}function bw(e){return $t(e)||zc(e)}function Fn(e){return So(()=>({type:e.type,bootstrap:e.bootstrap||be,declarations:e.declarations||be,imports:e.imports||be,exports:e.exports||be,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Tw(e,t){if(e==null)return zt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Ws.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function Sw(e){if(e==null)return zt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function nt(e){return So(()=>{let t=Fg(e);return Lg(t),t})}function Vl(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Fg(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||zt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||be,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:Tw(e.inputs,t),outputs:Sw(e.outputs),debugInfo:null}}function Lg(e){e.features?.forEach(t=>t(e))}function op(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function _w(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Mw(e){return Object.getPrototypeOf(e.prototype).constructor}function jg(e){let t=Mw(e.type),n=!0,r=[e];for(;t&&t!==Function.prototype&&t!==Object.prototype;){let o,i=Object.hasOwn(t,oo)?t[oo]:void 0,s=Object.hasOwn(t,io)?t[io]:void 0;if(ut(e))o=i??s;else{if(i)throw new m(903,!1);o=s}if(o){if(n){r.push(o);let c=e;c.inputs=Au(e.inputs),c.declaredInputs=Au(e.declaredInputs),c.outputs=Au(e.outputs);let u=o.hostBindings;u&&Ow(e,u);let l=o.viewQuery,d=o.contentQueries;if(l&&Aw(e,l),d&&xw(e,d),Nw(e,o),Hf(e.outputs,o.outputs),ut(o)&&o.data.animation){let f=e.data;f.animation=(f.animation||[]).concat(o.data.animation)}}let a=o.features;if(a)for(let c=0;c<a.length;c++){let u=a[c];u&&u.ngInherit&&u(e),u===jg&&(n=!1)}}t=Object.getPrototypeOf(t)}Rw(r)}function Nw(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function Rw(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Do(o.hostAttrs,n=Do(n,o.hostAttrs))}}function Au(e){return e===zt?{}:e===be?[]:e}function Aw(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function xw(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Ow(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Ug(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Do(e.mergedAttrs,e.attrs);let l=e.tView=wl(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),pr(e,!1);let c=Pw(n,t,e,r);ps()&&Nl(n,t,c,e),vr(c,t);let u=Dg(c,t,c,e);t[r+X]=u,bl(t,u),lw(u,e,t)}function kw(e,t,n,r,o,i,s,a,c,u,l){let d=n+X,f;return t.firstCreatePass?(f=ta(t,d,4,s||null,a||null),ss()&&Sg(t,e,f,lt(t.consts,u),Al),yp(t,f)):f=t.data[d],Ug(f,e,t,n,r,o,i,c),dr(f)&&Qs(t,e,f),u!=null&&Ks(e,f,l),f}function Ls(e,t,n,r,o,i,s,a,c,u,l){let d=n+X,f;if(t.firstCreatePass){if(f=ta(t,d,4,s||null,a||null),u!=null){let h=lt(t.consts,u);f.localNames=[];for(let g=0;g<h.length;g+=2)f.localNames.push(h[g],-1)}}else f=t.data[d];return Ug(f,e,t,n,r,o,i,c),u!=null&&Ks(e,f,l),f}function Bg(e,t,n,r,o,i,s,a){let c=N(),u=ee(),l=lt(u.consts,i);return kw(c,u,e,t,n,r,o,l,void 0,s,a),Bg}var Pw=Fw;function Fw(e,t,n,r){return ho(!0),t[G].createComment("")}var Hl=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function $l(e){return typeof e=="function"&&e[le]!==void 0}function zl(e){return $l(e)&&typeof e.set=="function"}var Gl=new E("");function Cr(e){return!!e&&typeof e.then=="function"}function Wl(e){return!!e&&typeof e.subscribe=="function"}var Vg=new E("");var ql=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=p(Vg,{optional:!0})??[];injector=p(Me);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=de(this.injector,o);if(Cr(i))n.push(i);else if(Wl(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),oa=new E("");function Hg(){Ec(()=>{let e="";throw new m(600,e)})}function $g(e){return e.isBoundToModule}var Lw=10;var Ln=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(Oe);afterRenderManager=p(Sl);zonelessEnabled=p(gr);rootEffectScheduler=p(Tu);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ue;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p(ht);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(V(n=>!n))}constructor(){p(yt,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=p(W);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Me.NULL){return this._injector.get(Z).run(()=>{j(O.BootstrapComponentStart);let s=n instanceof na;if(!this._injector.get(ql).done){let g="";throw new m(405,g)}let c;s?c=n:c=this._injector.get(xo).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let u=$g(c)?void 0:this._injector.get(kn),l=r||c.selector,d=c.create(o,[],l,u),f=d.location.nativeElement,h=d.injector.get(Gl,null);return h?.registerApplication(f),d.onDestroy(()=>{this.detachView(d.hostView),vo(this.components,d),h?.unregisterApplication(f)}),this._loadComponent(d),j(O.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){j(O.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(qs.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw j(O.ChangeDetectionEnd),new m(101,!1);let n=b(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,b(n),this.afterTick.next(),j(O.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(On,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<Lw;){j(O.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{j(O.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!fo(o))continue;let i=r&&!this.zonelessEnabled?0:1;gg(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>fo(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;vo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(oa,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>vo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new m(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ia(e,t,n,r){let o=N(),i=Nn();if(tt(o,i,t)){let s=ee(),a=hs();lI(a,o,e,t,n,r)}return ia}var ol=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function xu(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function jw(e,t,n,r){let o,i,s=0,a=e.length-1,c=void 0;if(Array.isArray(t)){b(r);let u=t.length-1;for(b(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],f=xu(s,l,s,d,n);if(f!==0){f<0&&e.updateValue(s,d),s++;continue}let h=e.at(a),g=t[u],C=xu(a,h,u,g,n);if(C!==0){C<0&&e.updateValue(a,g),a--,u--;continue}let D=n(s,l),I=n(a,h),q=n(s,d);if(Object.is(q,I)){let we=n(u,g);Object.is(we,D)?(e.swap(s,a),e.updateValue(a,g),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new js,i??=sp(e,s,a,n),il(e,o,s,q))e.updateValue(s,d),s++,a++;else if(i.has(q))o.set(D,e.detach(s)),a--;else{let we=e.create(s,t[s]);e.attach(s,we),s++,a++}}for(;s<=u;)ip(e,o,n,s,t[s]),s++}else if(t!=null){b(r);let u=t[Symbol.iterator]();b(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),f=l.value,h=xu(s,d,s,f,n);if(h!==0)h<0&&e.updateValue(s,f),s++,l=u.next();else{o??=new js,i??=sp(e,s,a,n);let g=n(s,f);if(il(e,o,s,g))e.updateValue(s,f),s++,a++,l=u.next();else if(!i.has(g))e.attach(s,e.create(s,f)),s++,a++,l=u.next();else{let C=n(s,d);o.set(C,e.detach(s)),a--}}}for(;!l.done;)ip(e,o,n,e.length,l.value),l=u.next()}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(u=>{e.destroy(u)})}function il(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function ip(e,t,n,r,o){if(il(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function sp(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var js=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function Uw(e,t,n,r,o,i,s,a){Nt("NgControlFlow");let c=N(),u=ee(),l=lt(u.consts,i);return Ls(c,u,e,t,n,r,o,l,256,s,a),Zl}function Zl(e,t,n,r,o,i,s,a){Nt("NgControlFlow");let c=N(),u=ee(),l=lt(u.consts,i);return Ls(c,u,e,t,n,r,o,l,512,s,a),Zl}function Bw(e,t){Nt("NgControlFlow");let n=N(),r=Nn(),o=n[r]!==Te?n[r]:-1,i=o!==-1?Us(n,X+o):void 0,s=0;if(tt(n,r,e)){let a=b(null);try{if(i!==void 0&&Ig(i,s),e!==-1){let c=X+e,u=Us(n,c),l=ul(n[w],c),d=Cg(u,l,n),f=Js(n,l,t,{dehydratedView:d});Xs(u,f,s,Io(l,d))}}finally{b(a)}}else if(i!==void 0){let a=Eg(i,s);a!==void 0&&(a[J]=t)}}var sl=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-Y}};var al=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Vw(e,t,n,r,o,i,s,a,c,u,l,d,f){Nt("NgControlFlow");let h=N(),g=ee(),C=c!==void 0,D=N(),I=a?s.bind(D[Ae][J]):s,q=new al(C,I);D[X+e]=q,Ls(h,g,e+1,t,n,r,o,lt(g.consts,i),256),C&&Ls(h,g,e+2,c,u,l,d,lt(g.consts,f),512)}var cl=class extends ol{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-Y}at(t){return this.getLView(t)[J].$implicit}attach(t,n){let r=n[cr];this.needsIndexUpdate||=t!==this.length,Xs(this.lContainer,n,t,Io(this.templateTNode,r)),$w(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,zw(this.lContainer,t),Gw(this.lContainer,t)}create(t,n){let r=qu(this.lContainer,this.templateTNode.tView.ssrId);return Js(this.hostLView,this.templateTNode,new sl(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Zs(t[w],t)}updateValue(t,n){this.getLView(t)[J].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[J].$index=t}getLView(t){return Ww(this.lContainer,t)}};function Hw(e){let t=b(null),n=dt();try{let r=N(),o=r[w],i=r[n],s=n+1,a=Us(r,s);if(i.liveCollection===void 0){let u=ul(o,s);i.liveCollection=new cl(a,r,u)}else i.liveCollection.reset();let c=i.liveCollection;if(jw(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Nn(),l=c.length===0;if(tt(r,u,l)){let d=n+2,f=Us(r,d);if(l){let h=ul(o,d),g=Cg(f,h,r),C=Js(r,h,void 0,{dehydratedView:g});Xs(f,C,0,Io(h,g))}else o.firstUpdatePass&&kI(f),Ig(f,0)}}}finally{b(t)}}function Us(e,t){return e[t]}function $w(e,t){if(e.length<=Y)return;let n=Y+t,r=e[n],o=r?r[qt]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Tt];UE(i,o),xn.delete(r[St]),o.detachedLeaveAnimationFns=void 0}}function zw(e,t){if(e.length<=Y)return;let n=Y+t,r=e[n],o=r?r[qt]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function Gw(e,t){return Co(e,t)}function Ww(e,t){return Eg(e,t)}function ul(e,t){return rs(e,t)}function zg(e,t,n){let r=N(),o=Nn();if(tt(r,o,t)){let i=ee(),s=hs();ag(s,r,e,t,r[G],n)}return zg}function ll(e,t,n,r,o){xl(t,e,n,o?"class":"style",r)}function Bs(e,t,n,r){let o=N(),i=o[w],s=e+X,a=i.firstCreatePass?Pl(s,o,2,t,Al,ss(),n,r):i.data[s];if(Mt(a)){let c=o[Ye].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(xg(u),()=>(ap(e,t,o,a,r),Bs))}}return ap(e,t,o,a,r),Bs}function ap(e,t,n,r,o){if(cg(r,n,e,t,qw),dr(r)){let i=n[w];Qs(i,n,r),vl(i,r,n)}o!=null&&Ks(n,r)}function Yl(){let e=ee(),t=me(),n=ug(t);return e.firstCreatePass&&Fl(e,n),fh(n)&&hh(),lh(),n.classesWithoutHost!=null&&PD(n)&&ll(e,n,N(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&FD(n)&&ll(e,n,N(),n.stylesWithoutHost,!1),Yl}function sa(e,t,n,r){return Bs(e,t,n,r),Yl(),sa}var qw=(e,t,n,r,o)=>(ho(!0),Hp(t[G],r,Du()));function Ql(e,t,n){let r=N(),o=r[w],i=e+X,s=o.firstCreatePass?Pl(i,r,8,"ng-container",Al,ss(),t,n):o.data[i];if(cg(s,r,e,"ng-container",Zw),dr(s)){let a=r[w];Qs(a,r,s),vl(a,s,r)}return n!=null&&Ks(r,s),Ql}function Kl(){let e=ee(),t=me(),n=ug(t);return e.firstCreatePass&&Fl(e,n),Kl}function Gg(e,t,n){return Ql(e,t,n),Kl(),Gg}var Zw=(e,t,n,r,o)=>(ho(!0),pE(t[G],""));function Yw(){return N()}var go=void 0;function Qw(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Kw=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],go,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],go,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",go,go,go],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Qw],Ou=Object.create(null);function ke(e){let t=Jw(e),n=cp(t);if(n)return n;let r=t.split("-")[0];if(n=cp(r),n)return n;if(r==="en")return Kw;throw new m(701,!1)}function cp(e){return e in Ou||(Ou[e]=bt.ng&&bt.ng.common&&bt.ng.common.locales&&bt.ng.common.locales[e]),Ou[e]}var ne=(function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e})(ne||{});function Jw(e){return e.toLowerCase().replace(/_/g,"-")}var ko="en-US";var Xw=ko;function Wg(e){typeof e=="string"&&(Xw=e.toLowerCase().replace(/_/g,"-"))}function aa(e,t,n){let r=N(),o=ee(),i=me();return qg(o,r,r[G],i,e,t,n),aa}function qg(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=Nu(r,t,i),YI(r,e,t,s,n,o,i,c)&&(a=!1)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let f=l[d],h=l[d+1];c??=Nu(r,t,i),tp(r,t,f,h,o,c)}if(u&&u.length)for(let d of u)c??=Nu(r,t,i),tp(r,t,d,o,o,c)}}function eC(e=1){return Mh(e)}function ca(e,t,n,r){return vw(e,t,n,r),ca}function Jl(e){let t=N(),n=ee(),r=mu();ls(r+1);let o=Ul(n,r);if(e.dirty&&rh(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=ww(t,r);e.reset(i,YD),e.notifyOnChanges()}return!0}return!1}function Xl(){return mw(N(),mu())}function tC(e){let t=vh();return iu(t,X+e)}function Ds(e,t){return e<<17|t<<2}function Pn(e){return e>>17&32767}function nC(e){return(e&2)==2}function rC(e,t){return e&131071|t<<17}function dl(e){return e|2}function Er(e){return(e&131068)>>2}function ku(e,t){return e&-131069|t<<2}function oC(e){return(e&1)===1}function fl(e){return e|1}function iC(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Pn(s),c=Er(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||ar(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let f=Pn(e[a+1]);e[r+1]=Ds(f,a),f!==0&&(e[f+1]=ku(e[f+1],r)),e[a+1]=rC(e[a+1],r)}else e[r+1]=Ds(a,0),a!==0&&(e[a+1]=ku(e[a+1],r)),a=r;else e[r+1]=Ds(c,0),a===0?a=r:e[c+1]=ku(e[c+1],r),c=r;u&&(e[r+1]=dl(e[r+1])),up(e,l,r,!0),up(e,l,r,!1),sC(t,l,e,r,i),s=Ds(a,c),i?t.classBindings=s:t.styleBindings=s}function sC(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&ar(i,t)>=0&&(n[r+1]=fl(n[r+1]))}function up(e,t,n,r){let o=e[n+1],i=t===null,s=r?Pn(o):Er(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];aC(c,t)&&(a=!0,e[s+1]=r?fl(u):dl(u)),s=r?Pn(u):Er(u)}a&&(e[n+1]=r?dl(o):fl(o))}function aC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?ar(e,t)>=0:!1}var Xe={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function cC(e){return e.substring(Xe.key,Xe.keyEnd)}function uC(e){return lC(e),Zg(e,Yg(e,0,Xe.textEnd))}function Zg(e,t){let n=Xe.textEnd;return n===t?-1:(t=Xe.keyEnd=dC(e,Xe.key=t,n),Yg(e,t,n))}function lC(e){Xe.key=0,Xe.keyEnd=0,Xe.value=0,Xe.valueEnd=0,Xe.textEnd=e.length}function Yg(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function dC(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function Qg(e,t,n){return Jg(e,t,n,!1),Qg}function Kg(e,t){return Jg(e,t,null,!0),Kg}function fC(e){pC(EC,hC,e,!0)}function hC(e,t){for(let n=uC(t);n>=0;n=Zg(t,n))es(e,cC(t),!0)}function Jg(e,t,n,r){let o=N(),i=ee(),s=cs(2);if(i.firstUpdatePass&&em(i,e,s,r),t!==Te&&tt(o,s,t)){let a=i.data[dt()];tm(i,a,o,o[G],e,o[s+1]=wC(t,n),r,s)}}function pC(e,t,n,r){let o=ee(),i=cs(2);o.firstUpdatePass&&em(o,null,i,r);let s=N();if(n!==Te&&tt(s,i,n)){let a=o.data[dt()];if(nm(a,r)&&!Xg(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Zi(c,n||"")),ll(o,a,s,n,r)}else IC(o,a,s,s[G],s[i+1],s[i+1]=DC(e,t,n),r,i)}}function Xg(e,t){return t>=e.expandoStartIndex}function em(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[dt()],s=Xg(e,n);nm(i,r)&&t===null&&!s&&(t=!1),t=gC(o,i,t,r),iC(o,i,t,n,s,r)}}function gC(e,t,n,r){let o=bh(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Pu(null,e,t,n,r),n=To(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Pu(o,e,t,n,r),i===null){let c=mC(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Pu(null,e,t,c[1],r),c=To(c,t.attrs,r),yC(e,t,r,c))}else i=vC(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function mC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Er(r)!==0)return e[Pn(r)]}function yC(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Pn(o)]=r}function vC(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=To(r,s,n)}return To(r,t.attrs,n)}function Pu(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=To(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function To(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),es(e,s,n?!0:t[++i]))}return e===void 0?null:e}function DC(e,t,n){if(n==null||n==="")return be;let r=[],o=Ao(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(o instanceof Set)for(let i of o)e(r,i,!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function EC(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&es(e,r,n)}function IC(e,t,n,r,o,i,s,a){o===Te&&(o=be);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let f=c<o.length?o[c+1]:void 0,h=u<i.length?i[u+1]:void 0,g=null,C;l===d?(c+=2,u+=2,f!==h&&(g=d,C=h)):d===null||l!==null&&l<d?(c+=2,g=l):(u+=2,g=d,C=h),g!==null&&tm(e,t,n,r,g,C,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null}}function tm(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=oC(u)?lp(c,t,n,o,Er(u),s):void 0;if(!Vs(l)){Vs(i)||nC(u)&&(i=lp(c,null,n,o,a,s));let d=ou(dt(),n);eI(r,s,d,o,i)}}function lp(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=n[o+1];f===Te&&(f=d?be:void 0);let h=d?ts(f,r):l===r?f:void 0;if(u&&!Vs(h)&&(h=ts(c,r)),Vs(h)&&(a=h,s))return a;let g=e[o+1];o=s?Pn(g):Er(g)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=ts(c,r))}return a}function Vs(e){return e!==void 0}function wC(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=no(Ao(e)))),e}function nm(e,t){return(e.flags&(t?8:16))!==0}function CC(e,t=""){let n=N(),r=ee(),o=e+X,i=r.firstCreatePass?ta(r,o,1,t,null):r.data[o],s=bC(r,n,i,t);n[o]=s,ps()&&Nl(r,n,s,i),pr(i,!1)}var bC=(e,t,n,r)=>(ho(!0),fE(t[G],r));function TC(e,t,n,r=""){return tt(e,Nn(),n)?t+sr(n)+r:Te}function SC(e,t,n,r,o,i=""){let s=Dh(),a=Rg(e,s,n,o);return cs(2),a?t+sr(n)+r+sr(o)+i:Te}function rm(e){return ed("",e),rm}function ed(e,t,n){let r=N(),o=TC(r,e,t,n);return o!==Te&&im(r,dt(),o),ed}function om(e,t,n,r,o){let i=N(),s=SC(i,e,t,n,r,o);return s!==Te&&im(i,dt(),s),om}function im(e,t,n){let r=ou(t,e);hE(e[G],r,n)}function sm(e,t,n){zl(t)&&(t=t());let r=N(),o=Nn();if(tt(r,o,t)){let i=ee(),s=hs();ag(s,r,e,t,r[G],n)}return sm}function _C(e,t){let n=zl(e);return n&&e.set(t),n}function am(e,t){let n=N(),r=ee(),o=me();return qg(r,n,n[G],o,e,t),am}function dp(e,t,n){let r=ee();r.firstCreatePass&&cm(t,r.data,r.blueprint,ut(e),n)}function cm(e,t,n,r,o){if(e=ge(e),Array.isArray(e))for(let i=0;i<e.length;i++)cm(e[i],t,n,r,o);else{let i=ee(),s=N(),a=me(),c=En(e)?e:ge(e.provide),u=Jc(e),l=a.providerIndexes&1048575,d=a.directiveStart,f=a.providerIndexes>>20;if(En(e)||!e.multi){let h=new An(u,o,H,null),g=Lu(c,t,o?l:l+f,d);g===-1?(Uu(Ms(a,s),i,c),Fu(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(h),s.push(h)):(n[g]=h,s[g]=h)}else{let h=Lu(c,t,l+f,d),g=Lu(c,t,l,l+f),C=h>=0&&n[h],D=g>=0&&n[g];if(o&&!D||!o&&!C){Uu(Ms(a,s),i,c);let I=RC(o?NC:MC,n.length,o,r,u,e);!o&&D&&(n[g].providerFactory=I),Fu(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(I),s.push(I)}else{let I=um(n[o?g:h],u,!o&&r);Fu(i,e,h>-1?h:g,I)}!o&&r&&D&&n[g].componentProviders++}}}function Fu(e,t,n,r){let o=En(t),i=Xf(t);if(o||i){let c=(i?ge(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function um(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Lu(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function MC(e,t,n,r,o){return hl(this.multi,[])}function NC(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Eo(r,r[w],this.providerFactory.index,o);s=c.slice(0,a),hl(i,s);for(let u=a;u<c.length;u++)s.push(c[u])}else s=[],hl(i,s);return s}function hl(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function RC(e,t,n,r,o,i){let s=new An(e,n,H,null);return s.multi=[],s.index=t,s.componentProviders=0,um(s,o,r&&!n),s}function AC(e,t){return n=>{n.providersResolver=(r,o)=>dp(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>dp(r,o?o(t):t,!0))}}function xC(e,t){let n=as()+e,r=N();return r[n]===Te?jl(r,n,t()):ZI(r,n)}function OC(e,t,n){return kC(N(),as(),e,t,n)}function lm(e,t){let n=e[t];return n===Te?void 0:n}function kC(e,t,n,r,o,i){let s=t+n;return tt(e,s,o)?jl(e,s+1,i?r.call(i,o):r(o)):lm(e,s+1)}function PC(e,t,n,r,o,i,s){let a=t+n;return Rg(e,a,o,i)?jl(e,a+2,s?r.call(s,o,i):r(o,i)):lm(e,a+2)}function FC(e,t){let n=ee(),r,o=e+X;n.firstCreatePass?(r=LC(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Ut(r.type,!0)),s,a=Ce(H);try{let c=_s(!1),u=i();return _s(c),su(n,N(),o,u),u}finally{Ce(a)}}function LC(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function jC(e,t,n,r){let o=e+X,i=N(),s=iu(i,o);return UC(i,o)?PC(i,as(),t,s.transform,n,r,s):s.transform(n,r)}function UC(e,t){return e[w].data[t].pure}function BC(e,t){return ea(e,t)}var Hs=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},td=(()=>{class e{compileModuleSync(n){return new Fs(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=$c(n),i=Yp(o.declarations).reduce((s,a)=>{let c=$t(a);return c&&s.push(new Dr(c)),s},[]);return new Hs(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var dm=(()=>{class e{applicationErrorHandler=p(Oe);appRef=p(Ln);taskService=p(ht);ngZone=p(Z);zonelessEnabled=p(gr);tracing=p(yt,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new se;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(eo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(ys,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Oh:wu;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(eo+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fm(){return[{provide:Ct,useExisting:dm},{provide:Z,useClass:to},{provide:gr,useValue:!0}]}function VC(){return typeof $localize<"u"&&$localize.locale||ko}var Po=new E("",{factory:()=>p(Po,{optional:!0,skipSelf:!0})||VC()});function Q(e){return Lf(e)}function Fo(e,t){return Ui(e,t?.equal)}var $C=e=>e;function nd(e,t){if(typeof e=="function"){let n=Cc(e,$C,t?.equal);return hm(n,t?.debugName)}else{let n=Cc(e.source,e.computation,e.equal);return hm(n,e.debugName)}}function hm(e,t){let n=e[le],r=e;return r.set=o=>Pf(n,o),r.update=o=>Ff(n,o),r.asReadonly=gs.bind(e),r}var ym=Symbol("InputSignalNode#UNSET"),ob=U(y({},Vi),{transformFn:void 0,applyValueToInputSignal(e,t){yn(e,t)}});function vm(e,t){let n=Object.create(ob);n.value=e,n.transformFn=t?.transform;function r(){if(pn(n),n.value===ym){let o=null;throw new m(-950,o)}return n.value}return r[le]=n,r}var la=class{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>Mo(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}};function pm(e,t){return vm(e,t)}function ib(e){return vm(ym,e)}var Dm=(pm.required=ib,pm);var sb=(()=>{class e{zone=p(Z);changeDetectionScheduler=p(Ct);applicationRef=p(Ln);applicationErrorHandler=p(Oe);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(n){this.applicationErrorHandler(n)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ab=new E("",{factory:()=>!1});function cb({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new Z(U(y({},Em()),{scheduleInRootZone:t})),[{provide:gr,useValue:!1},{provide:Z,useFactory:e},{provide:Gt,multi:!0,useFactory:()=>{let n=p(sb,{optional:!0});return()=>n.initialize()}},{provide:Gt,multi:!0,useFactory:()=>{let n=p(ub);return()=>{n.initialize()}}},{provide:ys,useValue:t??Iu}]}function xj(e){let t=e?.scheduleInRootZone,n=cb({ngZoneFactory:()=>{let r=Em(e);return r.scheduleInRootZone=t,r.shouldCoalesceEventChangeDetection&&Nt("NgZone_CoalesceEvent"),new Z(r)},scheduleInRootZone:t});return Cn([{provide:ab,useValue:!0},n])}function Em(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var ub=(()=>{class e{subscription=new se;initialized=!1;zone=p(Z);pendingTasks=p(ht);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Z.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Z.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var rd=new E(""),lb=new E("");function Lo(e){return!e.moduleRef}function db(e){let t=Lo(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Z);return n.run(()=>{Lo(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Oe),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Lo(e)){let i=()=>t.destroy(),s=e.platformInjector.get(rd);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(rd);s.add(i),e.moduleRef.onDestroy(()=>{vo(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return hb(r,n,()=>{let i=t.get(ht),s=i.add(),a=t.get(ql);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Po,ko);if(Wg(c||ko),!t.get(lb,!0))return Lo(e)?t.get(Ln):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Lo(e)){let l=t.get(Ln);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return fb?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var fb;function hb(e,t,n){try{let r=n();return Cr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var ua=null;function pb(e=[],t){return Me.create({name:t,providers:[{provide:ao,useValue:"platform"},{provide:rd,useValue:new Set([()=>ua=null])},...e]})}function gb(e=[]){if(ua)return ua;let t=pb(e);return ua=t,Hg(),mb(t),t}function mb(e){let t=e.get(zs,null);de(e,()=>{t?.forEach(n=>n())})}var yb=1e4;var Oj=yb-1e3;var jo=(()=>{class e{static __NG_ELEMENT_ID__=vb}return e})();function vb(e){return Db(me(),N(),(e&16)===16)}function Db(e,t,n){if(Mt(e)&&!n){let r=He(e.index,t);return new Qt(r,r)}else if(e.type&175){let r=t[Ae];return new Qt(r,t)}return null}var od=class{supports(t){return Ll(t)}create(t){return new id(t)}},Eb=(e,t)=>t,id=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||Eb}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<gm(r,o,i)?n:r,a=gm(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let u=a-o,l=c-o;if(u!=l){for(let f=0;f<u;f++){let h=f<i.length?i[f]:i[f]=0,g=h+f;l<=g&&g<u&&(i[f]=h+1)}let d=s.previousIndex;i[d]=l-u}}a!==c&&t(s,a,c)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!Ll(t))throw new m(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,Mg(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new sd(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new da),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new da),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},sd=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},ad=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},da=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new ad,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function gm(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function mm(){return new cd([new od])}var cd=(()=>{class e{factories;static \u0275prov=v({token:e,providedIn:"root",factory:mm});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:()=>{let r=p(e,{optional:!0,skipSelf:!0});return e.create(n,r||mm())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new m(901,!1)}}return e})();function Im(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;j(O.BootstrapApplicationStart);try{let i=o?.injector??gb(r),s=[fm(),Ph,...n||[]],a=new bo({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return db({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{j(O.BootstrapApplicationEnd)}}function fa(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var wm=null;function At(){return wm}function ud(e){wm??=e}var Uo=class{},br=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:()=>p(Cm),providedIn:"platform"})}return e})();var Cm=(()=>{class e extends br{_location;_history;_doc=p(oe);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return At().getBaseHref(this._doc)}onPopState(n){let r=At().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=At().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Sm(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function bm(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Xt(e){return e&&e[0]!=="?"?`?${e}`:e}var Tr=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:()=>p(wb),providedIn:"root"})}return e})(),Ib=new E(""),wb=(()=>{class e extends Tr{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(oe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Sm(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Xt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Xt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Xt(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(T(br),T(Ib,8))};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Sr=(()=>{class e{_subject=new ue;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=Tb(bm(Tm(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Xt(r))}normalize(n){return e.stripTrailingSlash(bb(this._basePath,Tm(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Xt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Xt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=Xt;static joinWithSlash=Sm;static stripTrailingSlash=bm;static \u0275fac=function(r){return new(r||e)(T(Tr))};static \u0275prov=v({token:e,factory:()=>Cb(),providedIn:"root"})}return e})();function Cb(){return new Sr(T(Tr))}function bb(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Tm(e){return e.replace(/\/index\.html$/,"")}function Tb(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var Ee=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(Ee||{}),B=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(B||{}),Ne=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Ne||{}),Ot={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Am(e){return ke(e)[ne.LocaleId]}function xm(e,t,n){let r=ke(e),o=[r[ne.DayPeriodsFormat],r[ne.DayPeriodsStandalone]],i=$e(o,t);return $e(i,n)}function Om(e,t,n){let r=ke(e),o=[r[ne.DaysFormat],r[ne.DaysStandalone]],i=$e(o,t);return $e(i,n)}function km(e,t,n){let r=ke(e),o=[r[ne.MonthsFormat],r[ne.MonthsStandalone]],i=$e(o,t);return $e(i,n)}function Pm(e,t){let r=ke(e)[ne.Eras];return $e(r,t)}function Bo(e,t){let n=ke(e);return $e(n[ne.DateFormat],t)}function Vo(e,t){let n=ke(e);return $e(n[ne.TimeFormat],t)}function Ho(e,t){let r=ke(e)[ne.DateTimeFormat];return $e(r,t)}function $o(e,t){let n=ke(e),r=n[ne.NumberSymbols][t];if(typeof r>"u"){if(t===Ot.CurrencyDecimal)return n[ne.NumberSymbols][Ot.Decimal];if(t===Ot.CurrencyGroup)return n[ne.NumberSymbols][Ot.Group]}return r}function Fm(e){if(!e[ne.ExtraData])throw new m(2303,!1)}function Lm(e){let t=ke(e);return Fm(t),(t[ne.ExtraData][2]||[]).map(r=>typeof r=="string"?ld(r):[ld(r[0]),ld(r[1])])}function jm(e,t,n){let r=ke(e);Fm(r);let o=[r[ne.ExtraData][0],r[ne.ExtraData][1]],i=$e(o,t)||[];return $e(i,n)||[]}function $e(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new m(2304,!1)}function ld(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var Sb=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ha={},_b=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Mb=256;function Um(e,t,n,r){let o=jb(e);Nb(t),t=xt(n,t)||t;let s=[],a;for(;t;)if(a=_b.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=Vm(r,c),o=Lb(o,r));let u="";return s.forEach(l=>{let d=Pb(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Nb(e){if(e.length>Mb)throw new m(2300,!1)}function va(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function xt(e,t){let n=Am(e);if(ha[n]??={},ha[n][t])return ha[n][t];let r="";switch(t){case"shortDate":r=Bo(e,Ne.Short);break;case"mediumDate":r=Bo(e,Ne.Medium);break;case"longDate":r=Bo(e,Ne.Long);break;case"fullDate":r=Bo(e,Ne.Full);break;case"shortTime":r=Vo(e,Ne.Short);break;case"mediumTime":r=Vo(e,Ne.Medium);break;case"longTime":r=Vo(e,Ne.Long);break;case"fullTime":r=Vo(e,Ne.Full);break;case"short":let o=xt(e,"shortTime"),i=xt(e,"shortDate");r=pa(Ho(e,Ne.Short),[o,i]);break;case"medium":let s=xt(e,"mediumTime"),a=xt(e,"mediumDate");r=pa(Ho(e,Ne.Medium),[s,a]);break;case"long":let c=xt(e,"longTime"),u=xt(e,"longDate");r=pa(Ho(e,Ne.Long),[c,u]);break;case"full":let l=xt(e,"fullTime"),d=xt(e,"fullDate");r=pa(Ho(e,Ne.Full),[l,d]);break}return r&&(ha[n][t]=r),r}function pa(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function rt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function Rb(e,t){return rt(e,3).substring(0,t)}function ie(e,t,n=0,r=!1,o=!1){return function(i,s){let a=Ab(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return Rb(a,t);let c=$o(s,Ot.MinusSign);return rt(a,t,c,r,o)}}function Ab(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new m(2301,!1)}}function z(e,t,n=Ee.Format,r=!1){return function(o,i){return xb(o,i,e,t,n,r)}}function xb(e,t,n,r,o,i){switch(n){case 2:return km(t,o,r)[e.getMonth()];case 1:return Om(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=Lm(t),l=jm(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,g]=f,C=s>=h.hours&&a>=h.minutes,D=s<g.hours||s===g.hours&&a<g.minutes;if(h.hours<g.hours){if(C&&D)return!0}else if(C||D)return!0}else if(f.hours===s&&f.minutes===a)return!0;return!1});if(d!==-1)return l[d]}return xm(t,o,r)[s<12?0:1];case 3:return Pm(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new m(2302,!1)}}function ga(e){return function(t,n,r){let o=-1*r,i=$o(n,Ot.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+rt(s,2,i)+rt(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+rt(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+rt(s,2,i)+":"+rt(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+rt(s,2,i)+":"+rt(Math.abs(o%60),2,i);default:throw new m(2310,!1)}}}var Ob=0,ya=4;function kb(e){let t=va(e,Ob,1).getDay();return va(e,0,1+(t<=ya?ya:ya+7)-t)}function Bm(e){let t=e.getDay(),n=t===0?-3:ya-t;return va(e.getFullYear(),e.getMonth(),e.getDate()+n)}function dd(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=Bm(n),s=kb(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return rt(o,e,$o(r,Ot.MinusSign))}}function ma(e,t=!1){return function(n,r){let i=Bm(n).getFullYear();return rt(i,e,$o(r,Ot.MinusSign),t)}}var fd={};function Pb(e){if(fd[e])return fd[e];let t;switch(e){case"G":case"GG":case"GGG":t=z(3,B.Abbreviated);break;case"GGGG":t=z(3,B.Wide);break;case"GGGGG":t=z(3,B.Narrow);break;case"y":t=ie(0,1,0,!1,!0);break;case"yy":t=ie(0,2,0,!0,!0);break;case"yyy":t=ie(0,3,0,!1,!0);break;case"yyyy":t=ie(0,4,0,!1,!0);break;case"Y":t=ma(1);break;case"YY":t=ma(2,!0);break;case"YYY":t=ma(3);break;case"YYYY":t=ma(4);break;case"M":case"L":t=ie(1,1,1);break;case"MM":case"LL":t=ie(1,2,1);break;case"MMM":t=z(2,B.Abbreviated);break;case"MMMM":t=z(2,B.Wide);break;case"MMMMM":t=z(2,B.Narrow);break;case"LLL":t=z(2,B.Abbreviated,Ee.Standalone);break;case"LLLL":t=z(2,B.Wide,Ee.Standalone);break;case"LLLLL":t=z(2,B.Narrow,Ee.Standalone);break;case"w":t=dd(1);break;case"ww":t=dd(2);break;case"W":t=dd(1,!0);break;case"d":t=ie(2,1);break;case"dd":t=ie(2,2);break;case"c":case"cc":t=ie(7,1);break;case"ccc":t=z(1,B.Abbreviated,Ee.Standalone);break;case"cccc":t=z(1,B.Wide,Ee.Standalone);break;case"ccccc":t=z(1,B.Narrow,Ee.Standalone);break;case"cccccc":t=z(1,B.Short,Ee.Standalone);break;case"E":case"EE":case"EEE":t=z(1,B.Abbreviated);break;case"EEEE":t=z(1,B.Wide);break;case"EEEEE":t=z(1,B.Narrow);break;case"EEEEEE":t=z(1,B.Short);break;case"a":case"aa":case"aaa":t=z(0,B.Abbreviated);break;case"aaaa":t=z(0,B.Wide);break;case"aaaaa":t=z(0,B.Narrow);break;case"b":case"bb":case"bbb":t=z(0,B.Abbreviated,Ee.Standalone,!0);break;case"bbbb":t=z(0,B.Wide,Ee.Standalone,!0);break;case"bbbbb":t=z(0,B.Narrow,Ee.Standalone,!0);break;case"B":case"BB":case"BBB":t=z(0,B.Abbreviated,Ee.Format,!0);break;case"BBBB":t=z(0,B.Wide,Ee.Format,!0);break;case"BBBBB":t=z(0,B.Narrow,Ee.Format,!0);break;case"h":t=ie(3,1,-12);break;case"hh":t=ie(3,2,-12);break;case"H":t=ie(3,1);break;case"HH":t=ie(3,2);break;case"m":t=ie(4,1);break;case"mm":t=ie(4,2);break;case"s":t=ie(5,1);break;case"ss":t=ie(5,2);break;case"S":t=ie(6,1);break;case"SS":t=ie(6,2);break;case"SSS":t=ie(6,3);break;case"Z":case"ZZ":case"ZZZ":t=ga(0);break;case"ZZZZZ":t=ga(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ga(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=ga(2);break;default:return null}return fd[e]=t,t}function Vm(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Fb(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Lb(e,t,n){let o=e.getTimezoneOffset(),i=Vm(t,o);return Fb(e,-1*(i-o))}function jb(e){if(_m(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return va(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(Sb))return Ub(r)}let t=new Date(e);if(!_m(t))throw new m(2311,!1);return t}function Ub(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function _m(e){return e instanceof Date&&!isNaN(e.valueOf())}var hd=/\s+/,Mm=[],Bb=(()=>{class e{_ngEl;_renderer;initialClasses=Mm;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(hd):Mm}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(hd):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(hd).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(H(mt),H(wr))};static \u0275dir=nt({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var Da=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Hm=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new Da(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Nm(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);Nm(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(H(vt),H(Kt),H(cd))};static \u0275dir=nt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Nm(e,t){e.context.$implicit=t.item}var Vb=(()=>{class e{_viewContainer;_context=new Ea;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Rm(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Rm(n,!1),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(H(vt),H(Kt))};static \u0275dir=nt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Ea=class{$implicit=null;ngIf=null};function Rm(e,t){if(e&&!e.createEmbeddedView)throw new m(2020,!1)}var Hb=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=p(Me);constructor(n){this._viewContainerRef=n}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(H(vt))};static \u0275dir=nt({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Jt]})}return e})();function $b(e,t){return new m(2100,!1)}var zb="mediumDate",$m=new E(""),zm=new E(""),Gb=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??zb,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Um(n,s,i||this.locale,a)}catch(s){throw $b(e,s.message)}}static \u0275fac=function(r){return new(r||e)(H(Po,16),H($m,24),H(zm,24))};static \u0275pipe=Vl({name:"date",type:e,pure:!0})}return e})();var Gm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Fn({type:e});static \u0275inj=Ht({})}return e})();function zo(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var jn=class{};var Wm="browser";var Go=class{_doc;constructor(t){this._doc=t}manager},Ia=(()=>{class e extends Go{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(T(oe))};static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})(),ba=new E(""),yd=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof Ia));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Ia);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new m(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(T(ba),T(Z))};static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})(),pd="ng-app-id";function qm(e){for(let t of e)t.remove()}function Zm(e,t){let n=t.createElement("style");return n.textContent=e,n}function qb(e,t,n,r){let o=e.head?.querySelectorAll(`style[${pd}="${t}"],link[${pd}="${t}"]`);if(o)for(let i of o)i.removeAttribute(pd),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function md(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var vd=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,qb(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Zm);r?.forEach(o=>this.addUsage(o,this.external,md))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(qm(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])qm(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Zm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,md(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(T(oe),T($s),T(Ro,8),T(No))};static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})(),gd={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Dd=/%COMP%/g;var Qm="%COMP%",Zb=`_nghost-${Qm}`,Yb=`_ngcontent-${Qm}`,Qb=!0,Kb=new E("",{factory:()=>Qb});function Jb(e){return Yb.replace(Dd,e)}function Xb(e){return Zb.replace(Dd,e)}function Km(e,t){return t.map(n=>n.replace(Dd,e))}var Ed=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,o,i,s,a,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.defaultRenderer=new Wo(n,s,a,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Ca?o.applyToHost(n):o instanceof qo&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case et.Emulated:i=new Ca(c,u,r,this.appId,l,s,a,d);break;case et.ShadowDom:return new wa(c,n,r,s,a,this.nonce,d,u);case et.ExperimentalIsolatedShadowDom:return new wa(c,n,r,s,a,this.nonce,d);default:i=new qo(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(T(yd),T(vd),T($s),T(Kb),T(oe),T(Z),T(Ro),T(yt,8))};static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})(),Wo=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(gd[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Ym(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Ym(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new m(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=gd[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=gd[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(gt.DashCase|gt.Important)?t.style.setProperty(n,r,o&gt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&gt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=At().getGlobalEventTarget(this.doc,t),!t))throw new m(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function Ym(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var wa=class extends Wo{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=Km(r.id,u);for(let d of u){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=d,this.shadowRoot.appendChild(f)}let l=r.getExternalStyles?.();if(l)for(let d of l){let f=md(d,o);s&&f.setAttribute("nonce",s),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},qo=class extends Wo{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=c?Km(c,u):u,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&xn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Ca=class extends qo{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=Jb(u),this.hostAttr=Xb(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Ta=class e extends Uo{supportsDOMEvents=!0;static makeCurrent(){ud(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=eT();return n==null?null:tT(n)}resetBaseElement(){Zo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return zo(document.cookie,t)}},Zo=null;function eT(){return Zo=Zo||document.head.querySelector("base"),Zo?Zo.getAttribute("href"):null}function tT(e){return new URL(e,document.baseURI).pathname}var nT=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})(),Jm=["alt","control","meta","shift"],rT={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},oT={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Xm=(()=>{class e extends Go{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>At().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Jm.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=rT[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Jm.forEach(s=>{if(s!==o){let a=oT[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(T(oe))};static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})();function iT(e,t,n){return $(this,null,function*(){let r=y({rootComponent:e},sT(t,n));return Im(r)})}function sT(e,t){return{platformRef:t?.platformRef,appProviders:[...dT,...e?.providers??[]],platformProviders:lT}}function aT(){Ta.makeCurrent()}function cT(){return new qe}function uT(){return ml(document),document}var lT=[{provide:No,useValue:Wm},{provide:zs,useValue:aT,multi:!0},{provide:oe,useFactory:uT}];var dT=[{provide:ao,useValue:"root"},{provide:qe,useFactory:cT},{provide:ba,useClass:Ia,multi:!0},{provide:ba,useClass:Xm,multi:!0},Ed,vd,yd,{provide:On,useExisting:Ed},{provide:jn,useClass:nT},[]];var en=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
+ `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var _a=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},Ma=class{encodeKey(t){return ey(t)}encodeValue(t){return ey(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function fT(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var hT=/%(\d[a-f0-9])/gi,pT={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ey(e){return encodeURIComponent(e).replace(hT,(t,n)=>pT[n]??t)}function Sa(e){return`${e}`}var kt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Ma,t.fromString){if(t.fromObject)throw new m(2805,!1);this.map=fT(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Sa):[Sa(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Sa(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Sa(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};function gT(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ty(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function ny(e){return typeof Blob<"u"&&e instanceof Blob}function ry(e){return typeof FormData<"u"&&e instanceof FormData}function mT(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var oy="Content-Type",iy="Accept",sy="text/plain",ay="application/json",yT=`${ay}, ${sy}, */*`,_r=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(gT(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new m(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new en,this.context??=new _a,!this.params)this.params=new kt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ty(this.body)||ny(this.body)||ry(this.body)||mT(this.body)?this.body:this.body instanceof kt?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||ry(this.body)?null:ny(this.body)?this.body.type||null:ty(this.body)?null:typeof this.body=="string"?sy:this.body instanceof kt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?ay:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer??this.referrer,f=t.integrity||this.integrity,h=t.referrerPolicy||this.referrerPolicy,g=t.transferCache??this.transferCache,C=t.timeout??this.timeout,D=t.body!==void 0?t.body:this.body,I=t.withCredentials??this.withCredentials,q=t.reportProgress??this.reportProgress,we=t.headers||this.headers,ce=t.params||this.params,Hr=t.context??this.context;return t.setHeaders!==void 0&&(we=Object.keys(t.setHeaders).reduce(($r,on)=>$r.set(on,t.setHeaders[on]),we)),t.setParams&&(ce=Object.keys(t.setParams).reduce(($r,on)=>$r.set(on,t.setParams[on]),ce)),new e(n,r,D,{params:ce,headers:we,context:Hr,reportProgress:q,responseType:o,withCredentials:I,transferCache:g,keepalive:i,cache:a,priority:s,timeout:C,mode:c,redirect:u,credentials:l,referrer:d,integrity:f,referrerPolicy:h})}},Un=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(Un||{}),Nr=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new en,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},Na=class e extends Nr{constructor(t={}){super(t)}type=Un.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Yo=class e extends Nr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Un.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},Mr=class extends Nr{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},vT=200,DT=204;var ET=new E("");var IT=/^\)\]\}',?\n/;var wd=(()=>{class e{xhrFactory;tracingService=p(yt,{optional:!0});constructor(n){this.xhrFactory=n}maybePropagateTrace(n){return this.tracingService?.propagate?this.tracingService.propagate(n):n}handle(n){if(n.method==="JSONP")throw new m(-2800,!1);let r=this.xhrFactory;return A(null).pipe(Re(()=>new x(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((D,I)=>s.setRequestHeader(D,I.join(","))),n.headers.has(iy)||s.setRequestHeader(iy,yT),!n.headers.has(oy)){let D=n.detectContentTypeHeader();D!==null&&s.setRequestHeader(oy,D)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let D=n.responseType.toLowerCase();s.responseType=D!=="json"?D:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let D=s.statusText||"OK",I=new en(s.getAllResponseHeaders()),q=s.responseURL||n.url;return c=new Na({headers:I,status:s.status,statusText:D,url:q}),c},l=this.maybePropagateTrace(()=>{let{headers:D,status:I,statusText:q,url:we}=u(),ce=null;I!==DT&&(ce=typeof s.response>"u"?s.responseText:s.response),I===0&&(I=ce?vT:0);let Hr=I>=200&&I<300;if(n.responseType==="json"&&typeof ce=="string"){let $r=ce;ce=ce.replace(IT,"");try{ce=ce!==""?JSON.parse(ce):null}catch(on){ce=$r,Hr&&(Hr=!1,ce={error:on,text:ce})}}Hr?(i.next(new Yo({body:ce,headers:D,status:I,statusText:q,url:we||void 0})),i.complete()):i.error(new Mr({error:ce,headers:D,status:I,statusText:q,url:we||void 0}))}),d=this.maybePropagateTrace(D=>{let{url:I}=u(),q=new Mr({error:D,status:s.status||0,statusText:s.statusText||"Unknown Error",url:I||void 0});i.error(q)}),f=d;n.timeout&&(f=this.maybePropagateTrace(D=>{let{url:I}=u(),q=new Mr({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:I||void 0});i.error(q)}));let h=!1,g=this.maybePropagateTrace(D=>{h||(i.next(u()),h=!0);let I={type:Un.DownloadProgress,loaded:D.loaded};D.lengthComputable&&(I.total=D.total),n.responseType==="text"&&s.responseText&&(I.partialText=s.responseText),i.next(I)}),C=this.maybePropagateTrace(D=>{let I={type:Un.UploadProgress,loaded:D.loaded};D.lengthComputable&&(I.total=D.total),i.next(I)});return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",f),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",g),a!==null&&s.upload&&s.upload.addEventListener("progress",C)),s.send(a),i.next({type:Un.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",f),n.reportProgress&&(s.removeEventListener("progress",g),a!==null&&s.upload&&s.upload.removeEventListener("progress",C)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(T(jn))};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function wT(e,t){return t(e)}function CT(e,t,n){return(r,o)=>de(n,()=>t(r,i=>e(i,o)))}var cy=new E("",{factory:()=>[]}),uy=new E(""),ly=new E("",{factory:()=>!0});var Cd=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=T(wd),o},providedIn:"root"})}return e})();var Ra=(()=>{class e{backend;injector;chain=null;pendingTasks=p(po);contributeToStability=p(ly);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(cy),...this.injector.get(uy,[])]));this.chain=r.reduceRight((o,i)=>CT(o,i,this.injector),wT)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Kn(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(T(Cd),T(W))};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),bd=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=T(Ra),o},providedIn:"root"})}return e})();function Id(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer,referrerPolicy:e.referrerPolicy}}var dy=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof _r)i=n;else{let c;o.headers instanceof en?c=o.headers:c=new en(o.headers);let u;o.params&&(o.params instanceof kt?u=o.params:u=new kt({fromObject:o.params})),i=new _r(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let s=A(i).pipe(ln(c=>this.handler.handle(c)));if(n instanceof _r||o.observe==="events")return s;let a=s.pipe(Le(c=>c instanceof Yo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(V(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new m(2806,!1);return c.body}));case"blob":return a.pipe(V(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new m(2807,!1);return c.body}));case"text":return a.pipe(V(c=>{if(c.body!==null&&typeof c.body!="string")throw new m(2808,!1);return c.body}));default:return a.pipe(V(c=>c.body))}case"response":return a;default:throw new m(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new kt().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Id(o,r))}post(n,r,o={}){return this.request("POST",n,Id(o,r))}put(n,r,o={}){return this.request("PUT",n,Id(o,r))}static \u0275fac=function(r){return new(r||e)(T(bd))};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var bT=new E("",{factory:()=>!0}),TT="XSRF-TOKEN",ST=new E("",{factory:()=>TT}),_T="X-XSRF-TOKEN",MT=new E("",{factory:()=>_T}),NT=(()=>{class e{cookieName=p(ST);doc=p(oe);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=zo(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),fy=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=T(NT),o},providedIn:"root"})}return e})();function RT(e,t){if(!p(bT)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=p(br).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch(o){return t(e)}let n=p(fy).getToken(),r=p(MT);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function AT(...e){let t=[dy,Ra,{provide:bd,useExisting:Ra},{provide:Cd,useFactory:()=>p(ET,{optional:!0})??p(wd)},{provide:cy,useValue:RT,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return Cn(t)}var hy=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(T(oe))};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var _="primary",li=Symbol("RouteTitle"),Nd=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Vn(e){return new Nd(e)}function Td(e,t,n){for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(o[0]===":")n[o.substring(1)]=i;else if(o!==i.path)return!1}return!0}function Ey(e,t,n){let r=n.path.split("/"),o=r.indexOf("**");if(o===-1){if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let c={},u=e.slice(0,r.length);return Td(r,u,c)?{consumed:u,posParams:c}:null}if(o!==r.lastIndexOf("**"))return null;let i=r.slice(0,o),s=r.slice(o+1);if(i.length+s.length>e.length||n.pathMatch==="full"&&t.hasChildren()&&n.path!=="**")return null;let a={};return!Td(i,e.slice(0,i.length),a)||!Td(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function Fa(e){return new Promise((t,n)=>{e.pipe(It()).subscribe({next:r=>t(r),error:r=>n(r)})})}function OT(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Dt(e[n],t[n]))return!1;return!0}function Dt(e,t){let n=e?Rd(e):void 0,r=t?Rd(t):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!Iy(e[o],t[o]))return!1;return!0}function Rd(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Iy(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}else return e===t}function kT(e){return e.length>0?e[e.length-1]:null}function zn(e){return ki(e)?e:Cr(e)?K(Promise.resolve(e)):A(e)}function wy(e){return ki(e)?Fa(e):Promise.resolve(e)}var PT={exact:by,subset:Ty},Cy={exact:FT,subset:LT,ignored:()=>!0},zd={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ti={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Gd(e,t,n){let r=e instanceof Se?e:t.parseUrl(e);return Fo(()=>Ad(t.lastSuccessfulNavigation()?.finalUrl??new Se,r,y(y({},ti),n)))}function Ad(e,t,n){return PT[n.paths](e.root,t.root,n.matrixParams)&&Cy[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function FT(e,t){return Dt(e,t)}function by(e,t,n){if(!Bn(e.segments,t.segments)||!Oa(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!by(e.children[r],t.children[r],n))return!1;return!0}function LT(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Iy(e[n],t[n]))}function Ty(e,t,n){return Sy(e,t,t.segments,n)}function Sy(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Bn(o,n)||t.hasChildren()||!Oa(o,n,r))}else if(e.segments.length===n.length){if(!Bn(e.segments,n)||!Oa(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!Ty(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!Bn(e.segments,o)||!Oa(e.segments,o,r)||!e.children[_]?!1:Sy(e.children[_],t,i,r)}}function Oa(e,t,n){return t.every((r,o)=>Cy[n](e[o].parameters,r.parameters))}var Se=class{root;queryParams;fragment;_queryParamMap;constructor(t=new k([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Vn(this.queryParams),this._queryParamMap}toString(){return BT.serialize(this)}},k=class{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ka(this)}},tn=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Vn(this.parameters),this._parameterMap}toString(){return My(this)}};function jT(e,t){return Bn(e,t)&&e.every((n,r)=>Dt(n.parameters,t[r].parameters))}function Bn(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function UT(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===_&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==_&&(n=n.concat(t(o,r)))}),n}var jr=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:()=>new nn,providedIn:"root"})}return e})(),nn=class{parse(t){let n=new Od(t);return new Se(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Qo(t.root,!0)}`,r=$T(t.queryParams),o=typeof t.fragment=="string"?`#${VT(t.fragment)}`:"";return`${n}${r}${o}`}},BT=new nn;function ka(e){return e.segments.map(t=>My(t)).join("/")}function Qo(e,t){if(!e.hasChildren())return ka(e);if(t){let n=e.children[_]?Qo(e.children[_],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==_&&r.push(`${o}:${Qo(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=UT(e,(r,o)=>o===_?[Qo(e.children[_],!1)]:[`${o}:${Qo(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[_]!=null?`${ka(e)}/${n[0]}`:`${ka(e)}/(${n.join("//")})`}}function _y(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Aa(e){return _y(e).replace(/%3B/gi,";")}function VT(e){return encodeURI(e)}function xd(e){return _y(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pa(e){return decodeURIComponent(e)}function py(e){return Pa(e.replace(/\+/g,"%20"))}function My(e){return`${xd(e.path)}${HT(e.parameters)}`}function HT(e){return Object.entries(e).map(([t,n])=>`;${xd(t)}=${xd(n)}`).join("")}function $T(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Aa(n)}=${Aa(o)}`).join("&"):`${Aa(n)}=${Aa(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var zT=/^[^\/()?;#]+/;function Sd(e){let t=e.match(zT);return t?t[0]:""}var GT=/^[^\/()?;=#]+/;function WT(e){let t=e.match(GT);return t?t[0]:""}var qT=/^[^=?&#]+/;function ZT(e){let t=e.match(qT);return t?t[0]:""}var YT=/^[^&#]+/;function QT(e){let t=e.match(YT);return t?t[0]:""}var Od=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new k([],{}):new k([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(t=0){if(t>50)throw new m(4010,!1);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 r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,t));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1,t)),(n.length>0||Object.keys(r).length>0)&&(o[_]=new k(n,r)),o}parseSegment(){let t=Sd(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new m(4009,!1);return this.capture(t),new tn(Pa(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=WT(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=Sd(this.remaining);o&&(r=o,this.capture(r))}t[Pa(n)]=Pa(r)}parseQueryParam(t){let n=ZT(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=QT(this.remaining);s&&(r=s,this.capture(r))}let o=py(n),i=py(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t,n){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=Sd(this.remaining),i=this.remaining[o.length];if(i!=="/"&&i!==")"&&i!==";")throw new m(4010,!1);let s;o.indexOf(":")>-1?(s=o.slice(0,o.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=_);let a=this.parseChildren(n+1);r[s??_]=Object.keys(a).length===1&&a[_]?a[_]:new k([],a),this.consumeOptional("//")}return r}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new m(4011,!1)}};function Ny(e){return e.segments.length>0?new k([],{[_]:e}):e}function Ry(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=Ry(o);if(r===_&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new k(e.segments,t);return KT(n)}function KT(e){if(e.numberOfChildren===1&&e.children[_]){let t=e.children[_];return new k(e.segments.concat(t.segments),t.children)}return e}function rn(e){return e instanceof Se}function Ay(e,t,n=null,r=null,o=new nn){let i=xy(e);return Oy(i,t,n,r,o)}function xy(e){let t;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u}let a=new k(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=Ny(r);return t??o}function Oy(e,t,n,r,o){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return _d(i,i,i,n,r,o);let s=JT(t);if(s.toRoot())return _d(i,i,new k([],{}),n,r,o);let a=XT(s,i,e),c=a.processChildren?Jo(a.segmentGroup,a.index,s.commands):Py(a.segmentGroup,a.index,s.commands);return _d(i,a.segmentGroup,c,n,r,o)}function La(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function ni(e){return typeof e=="object"&&e!=null&&e.outlets}function gy(e,t,n){e||="\u0275";let r=new Se;return r.queryParams={[e]:t},n.parse(n.serialize(r)).queryParams[e]}function _d(e,t,n,r,o,i){let s={};for(let[u,l]of Object.entries(r??{}))s[u]=Array.isArray(l)?l.map(d=>gy(u,d,i)):gy(u,l,i);let a;e===t?a=n:a=ky(e,t,n);let c=Ny(Ry(a));return new Se(c,s,o)}function ky(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=ky(i,t,n)}),new k(e.segments,r)}var ja=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&La(r[0]))throw new m(4003,!1);let o=r.find(ni);if(o&&o!==kT(r))throw new m(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function JT(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new ja(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new ja(n,t,r)}var Ar=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function XT(e,t,n){if(e.isAbsolute)return new Ar(t,!0,0);if(!n)return new Ar(t,!1,NaN);if(n.parent===null)return new Ar(n,!0,0);let r=La(e.commands[0])?0:1,o=n.segments.length-1+r;return eS(n,o,e.numberOfDoubleDots)}function eS(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new m(4005,!1);o=r.segments.length}return new Ar(r,!1,o-i)}function tS(e){return ni(e[0])?e[0].outlets:{[_]:e}}function Py(e,t,n){if(e??=new k([],{}),e.segments.length===0&&e.hasChildren())return Jo(e,t,n);let r=nS(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new k(e.segments.slice(0,r.pathIndex),{});return i.children[_]=new k(e.segments.slice(r.pathIndex),e.children),Jo(i,0,o)}else return r.match&&o.length===0?new k(e.segments,{}):r.match&&!e.hasChildren()?kd(e,t,n):r.match?Jo(e,0,o):kd(e,t,n)}function Jo(e,t,n){if(n.length===0)return new k(e.segments,{});{let r=tS(n),o={};if(Object.keys(r).some(i=>i!==_)&&e.children[_]&&e.numberOfChildren===1&&e.children[_].segments.length===0){let i=Jo(e.children[_],t,n);return new k(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Py(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new k(e.segments,o)}}function nS(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;let s=e.segments[o],a=n[r];if(ni(a))break;let c=`${a}`,u=r<n.length-1?n[r+1]:null;if(o>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!yy(c,u,s))return i;r+=2}else{if(!yy(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function kd(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o<n.length;){let i=n[o];if(ni(i)){let c=rS(i.outlets);return new k(r,c)}if(o===0&&La(n[0])){let c=e.segments[t];r.push(new tn(c.path,my(n[0]))),o++;continue}let s=ni(i)?i.outlets[_]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&La(a)?(r.push(new tn(s,my(a))),o+=2):(r.push(new tn(s,{})),o++)}return new k(r,{})}function rS(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=kd(new k([],{}),0,r))}),t}function my(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function yy(e,t,n){return e==n.path&&Dt(t,n.parameters)}var Xo="imperative",fe=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(fe||{}),Fe=class{id;url;constructor(t,n){this.id=t,this.url=n}},Hn=class extends Fe{type=fe.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},it=class extends Fe{urlAfterRedirects;type=fe.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ie=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(Ie||{}),ri=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(ri||{}),ze=class extends Fe{reason;code;type=fe.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Fy(e){return e instanceof ze&&(e.code===Ie.Redirect||e.code===Ie.SupersededByNewNavigation)}var Ft=class extends Fe{reason;code;type=fe.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},$n=class extends Fe{error;target;type=fe.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},oi=class extends Fe{urlAfterRedirects;state;type=fe.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ua=class extends Fe{urlAfterRedirects;state;type=fe.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ba=class extends Fe{urlAfterRedirects;state;shouldActivate;type=fe.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Va=class extends Fe{urlAfterRedirects;state;type=fe.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ha=class extends Fe{urlAfterRedirects;state;type=fe.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$a=class{route;type=fe.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},za=class{route;type=fe.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ga=class{snapshot;type=fe.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Wa=class{snapshot;type=fe.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},qa=class{snapshot;type=fe.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Za=class{snapshot;type=fe.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Or=class{},ii=class{},kr=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function oS(e){return!(e instanceof Or)&&!(e instanceof kr)&&!(e instanceof ii)}var Ya=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new Ur(this.rootInjector)}},Ur=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Ya(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(T(W))};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Qa=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Pd(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Pd(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Fd(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Fd(t,this._root).map(n=>n.value)}};function Pd(e,t){if(e===t.value)return t;for(let n of t.children){let r=Pd(e,n);if(r)return r}return null}function Fd(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Fd(e,n);if(r.length)return r.unshift(t),r}return[]}var Pe=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Rr(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var si=class extends Qa{snapshot;constructor(t,n){super(t),this.snapshot=n,qd(this,t)}toString(){return this.snapshot.toString()}};function Ly(e,t){let n=iS(e,t),r=new he([new tn("",{})]),o=new he({}),i=new he({}),s=new he({}),a=new he(""),c=new Lt(r,o,s,a,i,_,e,n.root);return c.snapshot=n.root,new si(new Pe(c,[]),n)}function iS(e,t){let n={},r={},o={},s=new Pr([],n,o,"",r,_,e,null,{},t);return new ai("",new Pe(s,[]))}var Lt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(V(u=>u[li]))??A(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}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(V(t=>Vn(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(V(t=>Vn(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Wd(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:y(y({},t.params),e.params),data:y(y({},t.data),e.data),resolve:y(y(y(y({},e.data),t.data),o?.data),e._resolvedData)}:r={params:y({},e.params),data:y({},e.data),resolve:y(y({},e.data),e._resolvedData??{})},o&&Uy(o)&&(r.resolve[li]=o.title),r}var Pr=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[li]}constructor(t,n,r,o,i,s,a,c,u,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=l}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??=Vn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Vn(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},ai=class extends Qa{url;constructor(t,n){super(n),this.url=t,qd(this,n)}toString(){return jy(this._root)}};function qd(e,t){t.value._routerState=e,t.children.forEach(n=>qd(e,n))}function jy(e){let t=e.children.length>0?` { ${e.children.map(jy).join(", ")} } `:"";return`${e.value}${t}`}function Md(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Dt(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Dt(t.params,n.params)||e.paramsSubject.next(n.params),OT(t.url,n.url)||e.urlSubject.next(n.url),Dt(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Ld(e,t){let n=Dt(e.params,t.params)&&jT(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Ld(e.parent,t.parent))}function Uy(e){return typeof e.title=="string"||e.title===null}var By=new E(""),Zd=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=_;activateEvents=new De;deactivateEvents=new De;attachEvents=new De;detachEvents=new De;routerOutletData=Dm();parentContexts=p(Ur);location=p(vt);changeDetector=p(jo);inputBinder=p(ec,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new m(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new m(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new m(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new m(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new jd(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=nt({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Jt]})}return e})(),jd=class{route;childContexts;parent;outletData;constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o}get(t,n){return t===Lt?this.route:t===Ur?this.childContexts:t===By?this.outletData:this.parent.get(t,n)}},ec=new E("");var Yd=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Bl({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&sa(0,"router-outlet")},dependencies:[Zd],encapsulation:2})}return e})();function Qd(e){let t=e.children&&e.children.map(Qd),n=t?U(y({},e),{children:t}):y({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==_&&(n.component=Yd),n}function sS(e,t,n){let r=ci(e,t._root,n?n._root:void 0);return new si(r,t)}function ci(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=aS(e,t,n);return new Pe(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ci(e,a)),s}}let r=cS(t.value),o=t.children.map(i=>ci(e,i));return new Pe(r,o)}}function aS(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return ci(e,r,o);return ci(e,r)})}function cS(e){return new Lt(new he(e.url),new he(e.params),new he(e.queryParams),new he(e.fragment),new he(e.data),e.outlet,e.component,e)}var Fr=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Vy="ngNavigationCancelingError";function Ka(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=rn(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Hy(!1,Ie.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function Hy(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Vy]=!0,n.cancellationCode=t,n}function uS(e){return $y(e)&&rn(e.url)}function $y(e){return!!e&&e[Vy]}var Ud=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Md(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Rr(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Rr(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Rr(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=Rr(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Za(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Wa(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Md(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Md(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Ja=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},xr=class{component;route;constructor(t,n){this.component=t,this.route=n}};function lS(e,t,n){let r=e._root,o=t?t._root:null;return Ko(r,o,n,[r.value])}function dS(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Br(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Uc(e)?e:t.get(e):r}function Ko(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Rr(t);return e.children.forEach(s=>{fS(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>ei(a,n.getContext(s),o)),o}function fS(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=hS(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Ja(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Ko(e,t,a?a.children:null,r,o):Ko(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new xr(a.outlet.component,s))}else s&&ei(t,a,o),o.canActivateChecks.push(new Ja(r)),i.component?Ko(e,null,a?a.children:null,r,o):Ko(e,null,n,r,o);return o}function hS(e,t,n){if(typeof n=="function")return de(t._environmentInjector,()=>n(e,t));switch(n){case"pathParamsChange":return!Bn(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Bn(e.url,t.url)||!Dt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ld(e,t)||!Dt(e.queryParams,t.queryParams);default:return!Ld(e,t)}}function ei(e,t,n){let r=Rr(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?ei(s,t.children.getContext(i),n):ei(s,null,n):ei(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new xr(t.outlet.component,o)):n.canDeactivateChecks.push(new xr(null,o)):n.canDeactivateChecks.push(new xr(null,o))}function di(e){return typeof e=="function"}function pS(e){return typeof e=="boolean"}function gS(e){return e&&di(e.canLoad)}function mS(e){return e&&di(e.canActivate)}function yS(e){return e&&di(e.canActivateChild)}function vS(e){return e&&di(e.canDeactivate)}function DS(e){return e&&di(e.canMatch)}function zy(e){return e instanceof un||e?.name==="EmptyError"}var xa=Symbol("INITIAL_VALUE");function Lr(){return Re(e=>pc(e.map(t=>t.pipe(Et(1),gc(xa)))).pipe(V(t=>{for(let n of t)if(n!==!0){if(n===xa)return xa;if(n===!1||ES(n))return n}return!0}),Le(t=>t!==xa),Et(1)))}function ES(e){return rn(e)||e instanceof Fr}function Gy(e){return e.aborted?A(void 0).pipe(Et(1)):new x(t=>{let n=()=>{t.next(),t.complete()};return e.addEventListener("abort",n),()=>e.removeEventListener("abort",n)})}function Wy(e){return qr(Gy(e))}function IS(e){return ye(t=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:i}}=t;return i.length===0&&o.length===0?A(U(y({},t),{guardsResult:!0})):wS(i,n,r).pipe(ye(s=>s&&pS(s)?CS(n,o,e):A(s)),V(s=>U(y({},t),{guardsResult:s})))})}function wS(e,t,n){return K(e).pipe(ye(r=>MS(r.component,r.route,n,t)),It(r=>r!==!0,!0))}function CS(e,t,n){return K(t).pipe(ln(r=>Xn(TS(r.route.parent,n),bS(r.route,n),_S(e,r.path),SS(e,r.route))),It(r=>r!==!0,!0))}function bS(e,t){return e!==null&&t&&t(new qa(e)),A(!0)}function TS(e,t){return e!==null&&t&&t(new Ga(e)),A(!0)}function SS(e,t){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return A(!0);let r=n.map(o=>Wr(()=>{let i=t._environmentInjector,s=Br(o,i),a=mS(s)?s.canActivate(t,e):de(i,()=>s(t,e));return zn(a).pipe(It())}));return A(r).pipe(Lr())}function _S(e,t){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(i=>dS(i)).filter(i=>i!==null).map(i=>Wr(()=>{let s=i.guards.map(a=>{let c=i.node._environmentInjector,u=Br(a,c),l=yS(u)?u.canActivateChild(n,e):de(c,()=>u(n,e));return zn(l).pipe(It())});return A(s).pipe(Lr())}));return A(o).pipe(Lr())}function MS(e,t,n,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return A(!0);let i=o.map(s=>{let a=t._environmentInjector,c=Br(s,a),u=vS(c)?c.canDeactivate(e,t,n,r):de(a,()=>c(e,t,n,r));return zn(u).pipe(It())});return A(i).pipe(Lr())}function NS(e,t,n,r,o){let i=t.canLoad;if(i===void 0||i.length===0)return A(!0);let s=i.map(a=>{let c=Br(a,e),u=gS(c)?c.canLoad(t,n):de(e,()=>c(t,n)),l=zn(u);return o?l.pipe(Wy(o)):l});return A(s).pipe(Lr(),qy(r))}function qy(e){return lc(je(t=>{if(typeof t!="boolean")throw Ka(e,t)}),V(t=>t===!0))}function RS(e,t,n,r,o,i){let s=t.canMatch;if(!s||s.length===0)return A(!0);let a=s.map(c=>{let u=Br(c,e),l=DS(u)?u.canMatch(t,n,o):de(e,()=>u(t,n,o));return zn(l).pipe(Wy(i))});return A(a).pipe(Lr(),qy(r))}var Pt=class e extends Error{segmentGroup;constructor(t){super(),this.segmentGroup=t||null,Object.setPrototypeOf(this,e.prototype)}},ui=class e extends Error{urlTree;constructor(t){super(),this.urlTree=t,Object.setPrototypeOf(this,e.prototype)}};function AS(e){throw new m(4e3,!1)}function xS(e){throw Hy(!1,Ie.GuardRejected)}var Bd=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){return $(this,null,function*(){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return r;if(o.numberOfChildren>1||!o.children[_])throw AS(`${t.redirectTo}`);o=o.children[_]}})}applyRedirectCommands(t,n,r,o,i){return $(this,null,function*(){let s=yield OS(n,o,i);if(s instanceof Se)throw new ui(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new ui(a);return a})}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Se(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new k(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new m(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}};function OS(e,t,n){if(typeof e=="string")return Promise.resolve(e);let r=e;return Fa(zn(de(n,()=>r(t))))}function kS(e,t){return e.providers&&!e._injector&&(e._injector=Oo(e.providers,t,`Route: ${e.path}`)),e._injector??t}function ot(e){return e.outlet||_}function PS(e,t){let n=e.filter(r=>ot(r)===t);return n.push(...e.filter(r=>ot(r)!==t)),n}var Vd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Zy(e){return{routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function FS(e,t,n,r,o,i,s){let a=Yy(e,t,n);if(!a.matched)return A(a);let c=Zy(i(a));return r=kS(t,r),RS(r,t,n,o,c,s).pipe(V(u=>u===!0?a:y({},Vd)))}function Yy(e,t,n){if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?y({},Vd):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||Ey)(n,e,t);if(!o)return y({},Vd);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?y(y({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function vy(e,t,n,r,o){return n.length>0&&US(e,n,r,o)?{segmentGroup:new k(t,jS(r,new k(n,e.children))),slicedSegments:[]}:n.length===0&&BS(e,n,r)?{segmentGroup:new k(e.segments,LS(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new k(e.segments,e.children),slicedSegments:n}}function LS(e,t,n,r){let o={};for(let i of n)if(tc(e,t,i)&&!r[ot(i)]){let s=new k([],{});o[ot(i)]=s}return y(y({},r),o)}function jS(e,t){let n={};n[_]=t;for(let r of e)if(r.path===""&&ot(r)!==_){let o=new k([],{});n[ot(r)]=o}return n}function US(e,t,n,r){return n.some(o=>!tc(e,t,o)||!(ot(o)!==_)?!1:!(r!==void 0&&ot(o)===r))}function BS(e,t,n){return n.some(r=>tc(e,t,r))}function tc(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function VS(e,t,n){return t.length===0&&!e.children[n]}var Hd=class{};function HS(e,t,n,r,o,i,s="emptyOnly",a){return $(this,null,function*(){return new $d(e,t,n,r,o,s,i,a).recognize()})}var $S=31,$d=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,o,i,s,a,c){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new Bd(this.urlSerializer,this.urlTree)}noMatchError(t){return new m(4002,`'${t.segmentGroup}'`)}recognize(){return $(this,null,function*(){let t=vy(this.urlTree.root,[],[],this.config).segmentGroup,{children:n,rootSnapshot:r}=yield this.match(t),o=new Pe(r,n),i=new ai("",o),s=Ay(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}})}match(t){return $(this,null,function*(){let n=new Pr([],Object.freeze({}),Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),_,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,t,_,n),rootSnapshot:n}}catch(r){if(r instanceof ui)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Pt?this.noMatchError(r):r}})}processSegmentGroup(t,n,r,o,i){return $(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(t,n,r,i);let s=yield this.processSegment(t,n,r,r.segments,o,!0,i);return s instanceof Pe?[s]:[]})}processChildren(t,n,r,o){return $(this,null,function*(){let i=[];for(let c of Object.keys(r.children))c==="primary"?i.unshift(c):i.push(c);let s=[];for(let c of i){let u=r.children[c],l=PS(n,c),d=yield this.processSegmentGroup(t,l,u,c,o);s.push(...d)}let a=Qy(s);return zS(a),a})}processSegment(t,n,r,o,i,s,a){return $(this,null,function*(){for(let c of n)try{return yield this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a)}catch(u){if(u instanceof Pt||zy(u))continue;throw u}if(VS(r,o,i))return new Hd;throw new Pt(r)})}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return $(this,null,function*(){if(ot(r)!==s&&(s===_||!tc(o,i,r)))throw new Pt(o);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(t,o,r,i,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c);throw new Pt(o)})}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){return $(this,null,function*(){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:f}=Yy(n,o,i);if(!c)throw new Pt(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>$S&&(this.allowRedirects=!1));let h=this.createSnapshot(t,o,i,u,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let g=yield this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,Zy(h),t),C=yield this.applyRedirects.lineralizeSegments(o,g);return this.processSegment(t,r,n,C.concat(f),s,!1,a)})}createSnapshot(t,n,r,o,i){let s=new Pr(r,o,Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,WS(n),ot(n),n.component??n._loadedComponent??null,n,qS(n),t),a=Wd(s,i,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}matchSegmentAgainstRoute(t,n,r,o,i,s){return $(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=we=>this.createSnapshot(t,r,we.consumedSegments,we.parameters,s),c=yield Fa(FS(n,r,o,t,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(n.children={}),!c?.matched)throw new Pt(n);t=r._injector??t;let{routes:u}=yield this.getChildConfig(t,r,o),l=r._loadedInjector??t,{parameters:d,consumedSegments:f,remainingSegments:h}=c,g=this.createSnapshot(t,r,f,d,s),{segmentGroup:C,slicedSegments:D}=vy(n,f,h,u,i);if(D.length===0&&C.hasChildren()){let we=yield this.processChildren(l,u,C,g);return new Pe(g,we)}if(u.length===0&&D.length===0)return new Pe(g,[]);let I=ot(r)===i,q=yield this.processSegment(l,u,C,D,I?_:i,!0,g);return new Pe(g,q instanceof Pe?[q]:[])})}getChildConfig(t,n,r){return $(this,null,function*(){if(n.children)return{routes:n.children,injector:t};if(n.loadChildren){if(n._loadedRoutes!==void 0){let i=n._loadedNgModuleFactory;return i&&!n._loadedInjector&&(n._loadedInjector=i.create(t).injector),{routes:n._loadedRoutes,injector:n._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield Fa(NS(t,n,r,this.urlSerializer,this.abortSignal))){let i=yield this.configLoader.loadChildren(t,n);return n._loadedRoutes=i.routes,n._loadedInjector=i.injector,n._loadedNgModuleFactory=i.factory,i}throw xS(n)}return{routes:[],injector:t}})}};function zS(e){e.sort((t,n)=>t.value.outlet===_?-1:n.value.outlet===_?1:t.value.outlet.localeCompare(n.value.outlet))}function GS(e){let t=e.value.routeConfig;return t&&t.path===""}function Qy(e){let t=[],n=new Set;for(let r of e){if(!GS(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=Qy(r.children);t.push(new Pe(r.value,o))}return t.filter(r=>!n.has(r))}function WS(e){return e.data||{}}function qS(e){return e.resolve||{}}function ZS(e,t,n,r,o,i,s){return ye(a=>$(null,null,function*(){let{state:c,tree:u}=yield HS(e,t,n,r,a.extractedUrl,o,i,s);return U(y({},a),{targetSnapshot:c,urlAfterRedirects:u})}))}function YS(e){return ye(t=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=t;if(!r.length)return A(t);let o=new Set(r.map(a=>a.route)),i=new Set;for(let a of o)if(!i.has(a))for(let c of Ky(a))i.add(c);let s=0;return K(i).pipe(ln(a=>o.has(a)?QS(a,n,e):(a.data=Wd(a,a.parent,e).resolve,A(void 0))),je(()=>s++),Pi(1),ye(a=>s===i.size?A(t):pe))})}function Ky(e){let t=e.children.map(n=>Ky(n)).flat();return[e,...t]}function QS(e,t,n){let r=e.routeConfig,o=e._resolve;return r?.title!==void 0&&!Uy(r)&&(o[li]=r.title),Wr(()=>(e.data=Wd(e,e.parent,n).resolve,KS(o,e,t).pipe(V(i=>(e._resolvedData=i,e.data=y(y({},e.data),i),null)))))}function KS(e,t,n){let r=Rd(e);if(r.length===0)return A({});let o={};return K(r).pipe(ye(i=>JS(e[i],t,n).pipe(It(),je(s=>{if(s instanceof Fr)throw Ka(new nn,s);o[i]=s}))),Pi(1),V(()=>o),er(i=>zy(i)?pe:hc(i)))}function JS(e,t,n){let r=t._environmentInjector,o=Br(e,r),i=o.resolve?o.resolve(t,n):de(r,()=>o(t,n));return zn(i)}function Dy(e){return Re(t=>{let n=e(t);return n?K(n).pipe(V(()=>t)):A(t)})}var Kd=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===_);return r}getResolvedTitleForRoute(n){return n.data[li]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:()=>p(Jy),providedIn:"root"})}return e})(),Jy=(()=>{class e extends Kd{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(T(hy))};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Vr=new E("",{factory:()=>({})}),fi=new E(""),Xy=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(td);loadComponent(n,r){return $(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let o=$(this,null,function*(){try{let i=yield wy(de(n,()=>r.loadComponent())),s=yield nv(tv(i));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}});return this.componentLoaders.set(r,o),o})}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=$(this,null,function*(){try{let i=yield ev(r,this.compiler,n,this.onLoadEndListener);return r._loadedRoutes=i.routes,r._loadedInjector=i.injector,r._loadedNgModuleFactory=i.factory,i}finally{this.childrenLoaders.delete(r)}});return this.childrenLoaders.set(r,o),o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ev(e,t,n,r){return $(this,null,function*(){let o=yield wy(de(n,()=>e.loadChildren())),i=yield nv(tv(o)),s;i instanceof ra||Array.isArray(i)?s=i:s=yield t.compileModuleAsync(i),r&&r(e);let a,c,u=!1,l;return Array.isArray(s)?(c=s,u=!0):(a=s.create(n).injector,l=s,c=a.get(fi,[],{optional:!0,self:!0}).flat()),{routes:c.map(Qd),injector:a,factory:l}})}function XS(e){return e&&typeof e=="object"&&"default"in e}function tv(e){return XS(e)?e.default:e}function nv(e){return $(this,null,function*(){return e})}var nc=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:()=>p(e_),providedIn:"root"})}return e})(),e_=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),rv=new E("");var t_=()=>{},ov=new E(""),iv=(()=>{class e{currentNavigation=te(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=te(null);events=new ue;transitionAbortWithErrorSubject=new ue;configLoader=p(Xy);environmentInjector=p(W);destroyRef=p(ft);urlSerializer=p(jr);rootContexts=p(Ur);location=p(Sr);inputBindingEnabled=p(ec,{optional:!0})!==null;titleStrategy=p(Kd);options=p(Vr,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(nc);createViewTransition=p(rv,{optional:!0});navigationErrorHandler=p(ov,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>A(void 0);rootComponentType=null;destroyed=!1;constructor(){let n=o=>this.events.next(new $a(o)),r=o=>this.events.next(new za(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;Q(()=>{this.transitions?.next(U(y({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(n){return this.transitions=new he(null),this.transitions.pipe(Le(r=>r!==null),Re(r=>{let o=!1,i=new AbortController,s=()=>!o&&this.currentTransition?.id===r.id;return A(r).pipe(Re(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",Ie.SupersededByNewNavigation),pe;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?U(y({},c),{previousNavigation:null}):null,abort:()=>i.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=a.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&l!=="reload")return this.events.next(new Ft(a.id,this.urlSerializer.serialize(a.rawUrl),"",ri.IgnoredSameUrlNavigation)),a.resolve(!1),pe;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return A(a).pipe(Re(d=>(this.events.next(new Hn(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),d.id!==this.navigationId?pe:Promise.resolve(d))),ZS(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy,i.signal),je(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation.update(f=>(f.finalUrl=d.urlAfterRedirects,f)),this.events.next(new ii)}),Re(d=>K(r.routesRecognizeHandler.deferredHandle??A(void 0)).pipe(V(()=>d))),je(()=>{let d=new oi(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:f,source:h,restoredState:g,extras:C}=a,D=new Hn(d,this.urlSerializer.serialize(f),h,g);this.events.next(D);let I=Ly(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=U(y({},a),{targetSnapshot:I,urlAfterRedirects:f,extras:U(y({},C),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(q=>(q.finalUrl=f,q)),A(r)}else return this.events.next(new Ft(a.id,this.urlSerializer.serialize(a.extractedUrl),"",ri.IgnoredByUrlHandlingStrategy)),a.resolve(!1),pe}),V(a=>{let c=new Ua(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=U(y({},a),{guards:lS(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),IS(a=>this.events.next(a)),Re(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Ka(this.urlSerializer,a.guardsResult);let c=new Ba(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return pe;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",Ie.GuardRejected),pe;if(a.guards.canActivateChecks.length===0)return A(a);let u=new Va(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(u),!s())return pe;let l=!1;return A(a).pipe(YS(this.paramsInheritanceStrategy),je({next:()=>{l=!0;let d=new Ha(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)},complete:()=>{l||this.cancelNavigationTransition(a,"",Ie.NoDataFromResolver)}}))}),Dy(a=>{let c=l=>{let d=[];if(l.routeConfig?._loadedComponent)l.component=l.routeConfig?._loadedComponent;else if(l.routeConfig?.loadComponent){let f=l._environmentInjector;d.push(this.configLoader.loadComponent(f,l.routeConfig).then(h=>{l.component=h}))}for(let f of l.children)d.push(...c(f));return d},u=c(a.targetSnapshot.root);return u.length===0?A(a):K(Promise.all(u).then(()=>a))}),Dy(()=>this.afterPreactivation()),Re(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return u?K(u).pipe(V(()=>r)):A(r)}),Et(1),Re(a=>{let c=sS(n.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=U(y({},a),{targetRouterState:c}),this.currentNavigation.update(l=>(l.targetRouterState=c,l)),this.events.next(new Or);let u=r.beforeActivateHandler.deferredHandle;return u?K(u.then(()=>a)):A(a)}),je(a=>{new Ud(n.routeReuseStrategy,r.targetRouterState,r.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),s()&&(o=!0,this.currentNavigation.update(c=>(c.abort=t_,c)),this.lastSuccessfulNavigation.set(Q(this.currentNavigation)),this.events.next(new it(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),qr(Gy(i.signal).pipe(Le(()=>!o&&!r.targetRouterState),je(()=>{this.cancelNavigationTransition(r,i.signal.reason+"",Ie.Aborted)}))),je({complete:()=>{o=!0}}),qr(this.transitionAbortWithErrorSubject.pipe(je(a=>{throw a}))),Kn(()=>{i.abort(),o||this.cancelNavigationTransition(r,"",Ie.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),er(a=>{if(o=!0,this.destroyed)return r.resolve(!1),pe;if($y(a))this.events.next(new ze(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),uS(a)?this.events.next(new kr(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new $n(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let u=de(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof Fr){let{message:l,cancellationCode:d}=Ka(this.urlSerializer,u);this.events.next(new ze(r.id,this.urlSerializer.serialize(r.extractedUrl),l,d)),this.events.next(new kr(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return pe}))}))}cancelNavigationTransition(n,r,o){let i=new ze(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=Q(this.currentNavigation),o=r?.targetBrowserUrl??r?.extractedUrl;return n.toString()!==o?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function n_(e){return e!==Xo}var sv=new E("");var av=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:()=>p(r_),providedIn:"root"})}return e})(),Xa=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}shouldDestroyInjector(t){return!0}},r_=(()=>{class e extends Xa{static \u0275fac=(()=>{let n;return function(o){return(n||(n=_o(e)))(o||e)}})();static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),rc=(()=>{class e{urlSerializer=p(jr);options=p(Vr,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(Sr);urlHandlingStrategy=p(nc);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Se;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:n,initialUrl:r,targetBrowserUrl:o}){let i=n!==void 0?this.urlHandlingStrategy.merge(n,r):r,s=o??i;return s instanceof Se?this.urlSerializer.serialize(s):s}routerUrlState(n){return n?.targetBrowserUrl===void 0||n?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(n.finalUrl)}}commitTransition({targetRouterState:n,finalUrl:r,initialUrl:o}){r&&n?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=n):this.rawUrlTree=o}routerState=Ly(null,p(W));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:()=>p(o_),providedIn:"root"})}return e})(),o_=(()=>{class e extends rc{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{n(r.url,r.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(n,r){n instanceof Hn?this.updateStateMemento():n instanceof Ft?this.commitTransition(r):n instanceof oi?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof Or?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof ze&&!Fy(n)?this.restoreHistory(r):n instanceof $n?this.restoreHistory(r,!0):n instanceof it&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let{extras:o,id:i}=r,{replaceUrl:s,state:a}=o;if(this.location.isCurrentPathEqualTo(n)||s){let c=this.browserPageId,u=y(y({},a),this.generateNgRouterState(i,c,r));this.location.replaceState(n,"",u)}else{let c=y(y({},a),this.generateNgRouterState(i,this.browserPageId+1,r));this.location.go(n,"",c)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===n.finalUrl&&i===0&&(this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r,o){return this.canceledNavigationResolution==="computed"?y({navigationId:n,\u0275routerPageId:r},this.routerUrlState(o)):y({navigationId:n},this.routerUrlState(o))}static \u0275fac=(()=>{let n;return function(o){return(n||(n=_o(e)))(o||e)}})();static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Jd(e,t){e.events.pipe(Le(n=>n instanceof it||n instanceof ze||n instanceof $n||n instanceof Ft),V(n=>n instanceof it||n instanceof Ft?0:(n instanceof ze?n.code===Ie.Redirect||n.code===Ie.SupersededByNewNavigation:!1)?2:1),Le(n=>n!==2),Et(1)).subscribe(()=>{t()})}var Gn=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(Hl);stateManager=p(rc);options=p(Vr,{optional:!0})||{};pendingTasks=p(ht);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(iv);urlSerializer=p(jr);location=p(Sr);urlHandlingStrategy=p(nc);injector=p(W);_events=new ue;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(av);injectorCleanup=p(sv,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(fi,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(ec,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new se;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=Q(this.navigationTransitions.currentNavigation);if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof ze&&r.code!==Ie.Redirect&&r.code!==Ie.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof it)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof kr){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=y({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||n_(o.source)},s);this.scheduleNavigation(a,Xo,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}oS(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Xo,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,o,i)=>{this.navigateToSyncWithBrowser(n,o,r,i)})}navigateToSyncWithBrowser(n,r,o,i){let s=o?.navigationId?o:null,a=o?.\u0275routerUrl??n;if(o?.\u0275routerUrl&&(i=U(y({},i),{browserUrl:n})),o){let u=y({},o);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(i.state=u)}let c=this.parseUrl(a);this.scheduleNavigation(c,r,s,i).catch(u=>{this.disposed||this.injector.get(Oe)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Q(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Qd),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=y(y({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let f=o?o.snapshot:this.routerState.snapshot.root;d=xy(f)}catch(f){(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return Oy(d,n,l,u??null,this.urlSerializer)}navigateByUrl(n,r={skipLocationChange:!1}){let o=rn(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Xo,null,r)}navigate(n,r={skipLocationChange:!1}){return i_(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch(r){return this.console.warn(Vt(4018,!1)),this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=y({},zd):r===!1?o=y({},ti):o=y(y({},ti),r),rn(n))return Ad(this.currentUrlTree,n,o);let i=this.parseUrl(n);return Ad(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,f)=>{a=d,c=f});let l=this.pendingTasks.add();return Jd(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function i_(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new m(4008,!1)}var a_=(()=>{class e{router=p(Gn);stateManager=p(rc);fragment=te("");queryParams=te({});path=te("");serializer=p(jr);constructor(){this.updateState(),this.router.events?.subscribe(n=>{n instanceof it&&this.updateState()})}updateState(){let{fragment:n,root:r,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(n),this.queryParams.set(o),this.path.set(this.serializer.serialize(new Se(r)))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),oc=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=p(new la("href"),{optional:!0});reactiveHref=nd(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return Q(this.reactiveHref)}set href(n){this.reactiveHref.set(n)}set target(n){this._target.set(n)}get target(){return Q(this._target)}_target=te(void 0);set queryParams(n){this._queryParams.set(n)}get queryParams(){return Q(this._queryParams)}_queryParams=te(void 0,{equal:()=>!1});set fragment(n){this._fragment.set(n)}get fragment(){return Q(this._fragment)}_fragment=te(void 0);set queryParamsHandling(n){this._queryParamsHandling.set(n)}get queryParamsHandling(){return Q(this._queryParamsHandling)}_queryParamsHandling=te(void 0);set state(n){this._state.set(n)}get state(){return Q(this._state)}_state=te(void 0,{equal:()=>!1});set info(n){this._info.set(n)}get info(){return Q(this._info)}_info=te(void 0,{equal:()=>!1});set relativeTo(n){this._relativeTo.set(n)}get relativeTo(){return Q(this._relativeTo)}_relativeTo=te(void 0);set preserveFragment(n){this._preserveFragment.set(n)}get preserveFragment(){return Q(this._preserveFragment)}_preserveFragment=te(!1);set skipLocationChange(n){this._skipLocationChange.set(n)}get skipLocationChange(){return Q(this._skipLocationChange)}_skipLocationChange=te(!1);set replaceUrl(n){this._replaceUrl.set(n)}get replaceUrl(){return Q(this._replaceUrl)}_replaceUrl=te(!1);isAnchorElement;onChanges=new ue;applicationErrorHandler=p(Oe);options=p(Vr,{optional:!0});reactiveRouterState=p(a_);constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.onChanges.next(this)}routerLinkInput=te(null);set routerLink(n){n==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(rn(n)?this.routerLinkInput.set(n):this.routerLinkInput.set(Array.isArray(n)?n:[n]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,o,i,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(n!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n)}_urlTree=Fo(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let n=o=>o==="preserve"||o==="merge";(n(this._queryParamsHandling())||n(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:rn(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(n,r)=>this.computeHref(n)===this.computeHref(r)});get urlTree(){return Q(this._urlTree)}computeHref(n){return n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n))??"":null}static \u0275fac=function(r){return new(r||e)(H(Gn),H(Lt),Mo("tabindex"),H(wr),H(mt),H(Tr))};static \u0275dir=nt({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,o){r&1&&aa("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&ia("href",o.reactiveHref(),El)("target",o._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",fa],skipLocationChange:[2,"skipLocationChange","skipLocationChange",fa],replaceUrl:[2,"replaceUrl","replaceUrl",fa],routerLink:"routerLink"},features:[Jt]})}return e})(),c_=(()=>{class e{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new De;link=p(oc,{optional:!0});constructor(n,r,o,i){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.routerEventsSubscription=n.events.subscribe(s=>{s instanceof it&&this.update()})}ngAfterContentInit(){A(this.links.changes,A(null)).pipe(Jn()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=K(n).pipe(Jn()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&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!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let r=u_(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??!1?y({},zd):y({},ti);return o=>{let i=o.urlTree;return i?Q(Gd(i,n,r)):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}static \u0275fac=function(r){return new(r||e)(H(Gn),H(mt),H(wr),H(jo))};static \u0275dir=nt({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(r&1&&ca(i,oc,5),r&2){let s;Jl(s=Xl())&&(o.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Jt]})}return e})();function u_(e){let t=e;return!!(t.paths||t.matrixParams||t.queryParams||t.fragment)}var l_=new E("");function d_(e,...t){return Cn([{provide:fi,multi:!0,useValue:e},[],{provide:Lt,useFactory:f_},{provide:oa,multi:!0,useFactory:h_},t.map(n=>n.\u0275providers)])}function f_(){return p(Gn).routerState.root}function h_(){let e=p(Me);return t=>{let n=e.get(Ln);if(t!==n.components[0])return;let r=e.get(Gn),o=e.get(p_);e.get(g_)===1&&r.initialNavigation(),e.get(m_,null,{optional:!0})?.setUpPreloading(),e.get(l_,null,{optional:!0})?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var p_=new E("",{factory:()=>new ue}),g_=new E("",{factory:()=>1});var m_=new E("");export{y as a,U as b,x as c,ue as d,K as e,V as f,Ov as g,Kn as h,m as i,Yi as j,v as k,Ht as l,E as m,p as n,ph as o,gh as p,Nh as q,Rh as r,ft as s,De as t,Z as u,te as v,Jt as w,_o as x,mt as y,OE as z,_l as A,wr as B,H as C,Bl as D,Fn as E,nt as F,jg as G,Bg as H,Cr as I,Ln as J,ia as K,Uw as L,Bw as M,Vw as N,Hw as O,zg as P,Bs as Q,Yl as R,sa as S,Ql as T,Kl as U,Gg as V,Yw as W,aa as X,eC as Y,tC as Z,Qg as _,Kg as $,fC as aa,CC as ba,rm as ca,ed as da,om as ea,sm as fa,_C as ga,am as ha,AC as ia,xC as ja,OC as ka,FC as la,jC as ma,BC as na,Q as oa,Fo as pa,xj as qa,jo as ra,fa as sa,At as ta,Bb as ua,Hm as va,Vb as wa,Hb as xa,Gb as ya,Gm as za,iT as Aa,dy as Ba,AT as Ca,Lt as Da,Zd as Ea,Gn as Fa,oc as Ga,c_ as Ha,d_ as Ia};